@azure/communication-chat 1.6.0-alpha.20240607.1 → 1.6.0-beta.2

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/generated/src/models/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAgTH,yFAAyF;AACzF,MAAM,CAAN,IAAY,qCAWX;AAXD,WAAY,qCAAqC;IAC/C,cAAc;IACd,4DAAmB,CAAA;IACnB,wBAAwB;IACxB,gFAAuC,CAAA;IACvC,kBAAkB;IAClB,oEAA2B,CAAA;IAC3B,yBAAyB;IACzB,kFAAyC,CAAA;IACzC,wBAAwB;IACxB,gFAAuC,CAAA;AACzC,CAAC,EAXW,qCAAqC,KAArC,qCAAqC,QAWhD;AAeD,2FAA2F;AAC3F,MAAM,CAAN,IAAY,uCAOX;AAPD,WAAY,uCAAuC;IACjD,aAAa;IACb,4DAAiB,CAAA;IACjB,UAAU;IACV,sDAAW,CAAA;IACX,WAAW;IACX,wDAAa,CAAA;AACf,CAAC,EAPW,uCAAuC,KAAvC,uCAAuC,QAOlD","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\n\n/** A paged collection of chat message read receipts. */\nexport interface ChatMessageReadReceiptsCollection {\n /** Collection of chat message read receipts. */\n value: ChatMessageReadReceipt[];\n /**\n * If there are more chat message read receipts that can be retrieved, the next link will be populated.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly nextLink?: string;\n}\n\n/** A chat message read receipt indicates the time a chat message was read by a recipient. */\nexport interface ChatMessageReadReceipt {\n /** Identifies a participant in Azure Communication services. A participant is, for example, a phone number or an Azure communication user. This model is polymorphic: Apart from kind and rawId, at most one further property may be set which must match the kind enum value. */\n senderCommunicationIdentifier: CommunicationIdentifierModel;\n /** Id of the chat message that has been read. This id is generated by the server. */\n chatMessageId: string;\n /** The time at which the message was read. The timestamp is in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`. */\n readOn: Date;\n}\n\n/** Identifies a participant in Azure Communication services. A participant is, for example, a phone number or an Azure communication user. This model is polymorphic: Apart from kind and rawId, at most one further property may be set which must match the kind enum value. */\nexport interface CommunicationIdentifierModel {\n /** The identifier kind. Only required in responses. */\n kind?: CommunicationIdentifierModelKind;\n /** Raw Id of the identifier. Optional in requests, required in responses. */\n rawId?: string;\n /** The communication user. */\n communicationUser?: CommunicationUserIdentifierModel;\n /** The phone number. */\n phoneNumber?: PhoneNumberIdentifierModel;\n /** The Microsoft Teams user. */\n microsoftTeamsUser?: MicrosoftTeamsUserIdentifierModel;\n /** The Microsoft Teams application. */\n microsoftTeamsApp?: MicrosoftTeamsAppIdentifierModel;\n}\n\n/** A user that got created with an Azure Communication Services resource. */\nexport interface CommunicationUserIdentifierModel {\n /** The Id of the communication user. */\n id: string;\n}\n\n/** A phone number. */\nexport interface PhoneNumberIdentifierModel {\n /** The phone number in E.164 format. */\n value: string;\n}\n\n/** A Microsoft Teams user. */\nexport interface MicrosoftTeamsUserIdentifierModel {\n /** The Id of the Microsoft Teams user. If not anonymous, this is the AAD object Id of the user. */\n userId: string;\n /** True if the Microsoft Teams user is anonymous. By default false if missing. */\n isAnonymous?: boolean;\n /** The cloud that the Microsoft Teams user belongs to. By default 'public' if missing. */\n cloud?: CommunicationCloudEnvironmentModel;\n}\n\n/** A Microsoft Teams application. */\nexport interface MicrosoftTeamsAppIdentifierModel {\n /** The Id of the Microsoft Teams application. */\n appId: string;\n /** The cloud that the Microsoft Teams application belongs to. By default 'public' if missing. */\n cloud?: CommunicationCloudEnvironmentModel;\n}\n\n/** The Communication Services error. */\nexport interface CommunicationErrorResponse {\n /** The Communication Services error. */\n error: ChatError;\n}\n\n/** The Communication Services error. */\nexport interface ChatError {\n /** The error code. */\n code: string;\n /** The error message. */\n message: string;\n /**\n * The error target.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly target?: string;\n /**\n * Further details about specific errors that led to this error.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly details?: ChatError[];\n /**\n * The inner error if any.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly innerError?: ChatError;\n}\n\n/** Request payload for sending a read receipt. */\nexport interface SendReadReceiptRequest {\n /** Id of the latest chat message read by the user. */\n chatMessageId: string;\n}\n\n/** Details of the message to send. */\nexport interface SendChatMessageRequest {\n /** Chat message content. */\n content: string;\n /** The display name of the chat message sender. This property is used to populate sender name for push notifications. */\n senderDisplayName?: string;\n /** The chat message type. */\n type?: ChatMessageType;\n /** Message metadata. */\n metadata?: { [propertyName: string]: string };\n}\n\n/** Result of the send message operation. */\nexport interface SendChatMessageResult {\n /** A server-generated message id. */\n id: string;\n}\n\n/** Collection of chat messages for a particular chat thread. */\nexport interface ChatMessagesCollection {\n /** Collection of chat messages. */\n value: ChatMessage[];\n /**\n * If there are more chat messages that can be retrieved, the next link will be populated.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly nextLink?: string;\n}\n\n/** Chat message. */\nexport interface ChatMessage {\n /** The id of the chat message. This id is server generated. */\n id: string;\n /** The chat message type. */\n type: ChatMessageType;\n /** Sequence of the chat message in the conversation. */\n sequenceId: string;\n /** Version of the chat message. */\n version: string;\n /** Content of a chat message. */\n content?: ChatMessageContent;\n /** The display name of the chat message sender. This property is used to populate sender name for push notifications. */\n senderDisplayName?: string;\n /** The timestamp when the chat message arrived at the server. The timestamp is in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`. */\n createdOn: Date;\n /** Identifies a participant in Azure Communication services. A participant is, for example, a phone number or an Azure communication user. This model is polymorphic: Apart from kind and rawId, at most one further property may be set which must match the kind enum value. */\n senderCommunicationIdentifier?: CommunicationIdentifierModel;\n /** The timestamp (if applicable) when the message was deleted. The timestamp is in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`. */\n deletedOn?: Date;\n /** The last timestamp (if applicable) when the message was edited. The timestamp is in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`. */\n editedOn?: Date;\n /** Message metadata. */\n metadata?: { [propertyName: string]: string };\n}\n\n/** Content of a chat message. */\nexport interface ChatMessageContent {\n /** Chat message content for messages of types text or html. */\n message?: string;\n /** Chat message content for messages of type topicUpdated. */\n topic?: string;\n /** Chat message content for messages of types participantAdded or participantRemoved. */\n participants?: ChatParticipant[];\n /** List of attachments for this message */\n attachments?: ChatAttachment[];\n /** Identifies a participant in Azure Communication services. A participant is, for example, a phone number or an Azure communication user. This model is polymorphic: Apart from kind and rawId, at most one further property may be set which must match the kind enum value. */\n initiatorCommunicationIdentifier?: CommunicationIdentifierModel;\n}\n\n/** A participant of the chat thread. */\nexport interface ChatParticipant {\n /** Identifies a participant in Azure Communication services. A participant is, for example, a phone number or an Azure communication user. This model is polymorphic: Apart from kind and rawId, at most one further property may be set which must match the kind enum value. */\n communicationIdentifier: CommunicationIdentifierModel;\n /** Display name for the chat participant. */\n displayName?: string;\n /** Time from which the chat history is shared with the participant. The timestamp is in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`. */\n shareHistoryTime?: Date;\n}\n\n/** An attachment in a chat message. */\nexport interface ChatAttachment {\n /** Id of the attachment */\n id: string;\n /** The type of attachment. */\n attachmentType: ChatAttachmentType;\n /** The name of the attachment content. */\n name?: string;\n /** The URL where the attachment can be downloaded */\n url?: string;\n /** The URL where the preview of attachment can be downloaded */\n previewUrl?: string;\n}\n\n/** Request payload for updating a chat message. */\nexport interface UpdateChatMessageRequest {\n /** Chat message content. */\n content?: string;\n /** Message metadata. */\n metadata?: { [propertyName: string]: string };\n}\n\n/** Collection of participants belong to a particular thread. */\nexport interface ChatParticipantsCollection {\n /** Chat participants. */\n value: ChatParticipant[];\n /**\n * If there are more chat participants that can be retrieved, the next link will be populated.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly nextLink?: string;\n}\n\n/** Participants to be added to the thread. */\nexport interface AddChatParticipantsRequest {\n /** Participants to add to a chat thread. */\n participants: ChatParticipant[];\n}\n\n/** Result of the add chat participants operation. */\nexport interface AddChatParticipantsResult {\n /**\n * The participants that failed to be added to the chat thread.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly invalidParticipants?: ChatError[];\n}\n\n/** Request payload for creating a chat thread. */\nexport interface CreateChatThreadRequest {\n /** The chat thread topic. */\n topic: string;\n /** Participants to be added to the chat thread. */\n participants?: ChatParticipant[];\n}\n\n/** Result of the create chat thread operation. */\nexport interface CreateChatThreadResult {\n /** Chat thread. */\n chatThread?: ChatThreadProperties;\n /**\n * The participants that failed to be added to the chat thread.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly invalidParticipants?: ChatError[];\n}\n\n/** Chat thread. */\nexport interface ChatThreadProperties {\n /** Chat thread id. */\n id: string;\n /** Chat thread topic. */\n topic: string;\n /** The timestamp when the chat thread was created. The timestamp is in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`. */\n createdOn: Date;\n /** Identifies a participant in Azure Communication services. A participant is, for example, a phone number or an Azure communication user. This model is polymorphic: Apart from kind and rawId, at most one further property may be set which must match the kind enum value. */\n createdByCommunicationIdentifier: CommunicationIdentifierModel;\n /** The timestamp when the chat thread was deleted. The timestamp is in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`. */\n deletedOn?: Date;\n}\n\n/** Collection of chat threads. */\nexport interface ChatThreadsItemCollection {\n /** Collection of chat threads. */\n value: ChatThreadItem[];\n /**\n * If there are more chat threads that can be retrieved, the next link will be populated.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly nextLink?: string;\n}\n\n/** Summary information of a chat thread. */\nexport interface ChatThreadItem {\n /** Chat thread id. */\n id: string;\n /** Chat thread topic. */\n topic: string;\n /** The timestamp when the chat thread was deleted. The timestamp is in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`. */\n deletedOn?: Date;\n /**\n * The timestamp when the last message arrived at the server. The timestamp is in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly lastMessageReceivedOn?: Date;\n}\n\n/** Request payload for updating a chat thread. */\nexport interface UpdateChatThreadRequest {\n /** Chat thread topic. */\n topic?: string;\n}\n\n/** Request payload for typing notifications. */\nexport interface SendTypingNotificationRequest {\n /** The display name of the typing notification sender. This property is used to populate sender name for push notifications. */\n senderDisplayName?: string;\n}\n\n/** Known values of {@link CommunicationIdentifierModelKind} that the service accepts. */\nexport enum KnownCommunicationIdentifierModelKind {\n /** Unknown */\n Unknown = \"unknown\",\n /** CommunicationUser */\n CommunicationUser = \"communicationUser\",\n /** PhoneNumber */\n PhoneNumber = \"phoneNumber\",\n /** MicrosoftTeamsUser */\n MicrosoftTeamsUser = \"microsoftTeamsUser\",\n /** MicrosoftTeamsApp */\n MicrosoftTeamsApp = \"microsoftTeamsApp\",\n}\n\n/**\n * Defines values for CommunicationIdentifierModelKind. \\\n * {@link KnownCommunicationIdentifierModelKind} can be used interchangeably with CommunicationIdentifierModelKind,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **unknown** \\\n * **communicationUser** \\\n * **phoneNumber** \\\n * **microsoftTeamsUser** \\\n * **microsoftTeamsApp**\n */\nexport type CommunicationIdentifierModelKind = string;\n\n/** Known values of {@link CommunicationCloudEnvironmentModel} that the service accepts. */\nexport enum KnownCommunicationCloudEnvironmentModel {\n /** Public */\n Public = \"public\",\n /** Dod */\n Dod = \"dod\",\n /** Gcch */\n Gcch = \"gcch\",\n}\n\n/**\n * Defines values for CommunicationCloudEnvironmentModel. \\\n * {@link KnownCommunicationCloudEnvironmentModel} can be used interchangeably with CommunicationCloudEnvironmentModel,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **public** \\\n * **dod** \\\n * **gcch**\n */\nexport type CommunicationCloudEnvironmentModel = string;\n/** Defines values for ChatMessageType. */\nexport type ChatMessageType =\n | \"text\"\n | \"html\"\n | \"topicUpdated\"\n | \"participantAdded\"\n | \"participantRemoved\";\n/** Defines values for ChatAttachmentType. */\nexport type ChatAttachmentType = \"image\" | \"file\";\n\n/** Optional parameters. */\nexport interface ChatThreadListChatReadReceiptsOptionalParams\n extends coreClient.OperationOptions {\n /** The maximum number of chat message read receipts to be returned per page. */\n maxPageSize?: number;\n /** Skips chat message read receipts up to a specified position in response. */\n skip?: number;\n}\n\n/** Contains response data for the listChatReadReceipts operation. */\nexport type ChatThreadListChatReadReceiptsResponse =\n ChatMessageReadReceiptsCollection;\n\n/** Optional parameters. */\nexport interface ChatThreadSendChatReadReceiptOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface ChatThreadSendChatMessageOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the sendChatMessage operation. */\nexport type ChatThreadSendChatMessageResponse = SendChatMessageResult;\n\n/** Optional parameters. */\nexport interface ChatThreadListChatMessagesOptionalParams\n extends coreClient.OperationOptions {\n /** The maximum number of messages to be returned per page. */\n maxPageSize?: number;\n /** The earliest point in time to get messages up to. The timestamp should be in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`. */\n startTime?: Date;\n}\n\n/** Contains response data for the listChatMessages operation. */\nexport type ChatThreadListChatMessagesResponse = ChatMessagesCollection;\n\n/** Optional parameters. */\nexport interface ChatThreadGetChatMessageOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the getChatMessage operation. */\nexport type ChatThreadGetChatMessageResponse = ChatMessage;\n\n/** Optional parameters. */\nexport interface ChatThreadUpdateChatMessageOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface ChatThreadDeleteChatMessageOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface ChatThreadListChatParticipantsOptionalParams\n extends coreClient.OperationOptions {\n /** The maximum number of participants to be returned per page. */\n maxPageSize?: number;\n /** Skips participants up to a specified position in response. */\n skip?: number;\n}\n\n/** Contains response data for the listChatParticipants operation. */\nexport type ChatThreadListChatParticipantsResponse = ChatParticipantsCollection;\n\n/** Optional parameters. */\nexport interface ChatThreadRemoveChatParticipantOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface ChatThreadAddChatParticipantsOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the addChatParticipants operation. */\nexport type ChatThreadAddChatParticipantsResponse = AddChatParticipantsResult;\n\n/** Optional parameters. */\nexport interface ChatThreadUpdateChatThreadPropertiesOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface ChatThreadGetChatThreadPropertiesOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the getChatThreadProperties operation. */\nexport type ChatThreadGetChatThreadPropertiesResponse = ChatThreadProperties;\n\n/** Optional parameters. */\nexport interface ChatThreadSendTypingNotificationOptionalParams\n extends coreClient.OperationOptions {\n /** Details of the typing notification request. */\n sendTypingNotificationRequest?: SendTypingNotificationRequest;\n}\n\n/** Optional parameters. */\nexport interface ChatThreadListChatReadReceiptsNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listChatReadReceiptsNext operation. */\nexport type ChatThreadListChatReadReceiptsNextResponse =\n ChatMessageReadReceiptsCollection;\n\n/** Optional parameters. */\nexport interface ChatThreadListChatMessagesNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listChatMessagesNext operation. */\nexport type ChatThreadListChatMessagesNextResponse = ChatMessagesCollection;\n\n/** Optional parameters. */\nexport interface ChatThreadListChatParticipantsNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listChatParticipantsNext operation. */\nexport type ChatThreadListChatParticipantsNextResponse =\n ChatParticipantsCollection;\n\n/** Optional parameters. */\nexport interface ChatCreateChatThreadOptionalParams\n extends coreClient.OperationOptions {\n /** If specified, the client directs that the request is repeatable; that is, that the client can make the request multiple times with the same Repeatability-Request-Id and get back an appropriate response without the server executing the request multiple times. The value of the Repeatability-Request-Id is an opaque string representing a client-generated, globally unique for all time, identifier for the request. It is recommended to use version 4 (random) UUIDs. */\n repeatabilityRequestId?: string;\n}\n\n/** Contains response data for the createChatThread operation. */\nexport type ChatCreateChatThreadResponse = CreateChatThreadResult;\n\n/** Optional parameters. */\nexport interface ChatListChatThreadsOptionalParams\n extends coreClient.OperationOptions {\n /** The maximum number of chat threads returned per page. */\n maxPageSize?: number;\n /** The earliest point in time to get chat threads up to. The timestamp should be in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`. */\n startTime?: Date;\n}\n\n/** Contains response data for the listChatThreads operation. */\nexport type ChatListChatThreadsResponse = ChatThreadsItemCollection;\n\n/** Optional parameters. */\nexport interface ChatDeleteChatThreadOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface ChatListChatThreadsNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listChatThreadsNext operation. */\nexport type ChatListChatThreadsNextResponse = ChatThreadsItemCollection;\n\n/** Optional parameters. */\nexport interface ChatApiClientOptionalParams\n extends coreClient.ServiceClientOptions {\n /** Api Version */\n apiVersion?: string;\n /** Overrides client endpoint. */\n endpoint?: string;\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/generated/src/models/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AA6YH,yFAAyF;AACzF,MAAM,CAAN,IAAY,qCAWX;AAXD,WAAY,qCAAqC;IAC/C,cAAc;IACd,4DAAmB,CAAA;IACnB,wBAAwB;IACxB,gFAAuC,CAAA;IACvC,kBAAkB;IAClB,oEAA2B,CAAA;IAC3B,yBAAyB;IACzB,kFAAyC,CAAA;IACzC,wBAAwB;IACxB,gFAAuC,CAAA;AACzC,CAAC,EAXW,qCAAqC,KAArC,qCAAqC,QAWhD;AAeD,2FAA2F;AAC3F,MAAM,CAAN,IAAY,uCAOX;AAPD,WAAY,uCAAuC;IACjD,aAAa;IACb,4DAAiB,CAAA;IACjB,UAAU;IACV,sDAAW,CAAA;IACX,WAAW;IACX,wDAAa,CAAA;AACf,CAAC,EAPW,uCAAuC,KAAvC,uCAAuC,QAOlD;AAaD,sEAAsE;AACtE,MAAM,CAAN,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,eAAe;IACf,2CAAqB,CAAA;IACrB,YAAY;IACZ,qCAAe,CAAA;AACjB,CAAC,EALW,kBAAkB,KAAlB,kBAAkB,QAK7B","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\n\nexport type ChatRetentionPolicyUnion =\n | ChatRetentionPolicy\n | ThreadCreationDateRetentionPolicy\n | NoneRetentionPolicy;\n\n/** A paged collection of chat message read receipts. */\nexport interface ChatMessageReadReceiptsCollection {\n /** Collection of chat message read receipts. */\n value: ChatMessageReadReceipt[];\n /**\n * If there are more chat message read receipts that can be retrieved, the next link will be populated.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly nextLink?: string;\n}\n\n/** A chat message read receipt indicates the time a chat message was read by a recipient. */\nexport interface ChatMessageReadReceipt {\n /** Identifies a participant in Azure Communication services. A participant is, for example, a phone number or an Azure communication user. This model is polymorphic: Apart from kind and rawId, at most one further property may be set which must match the kind enum value. */\n senderCommunicationIdentifier: CommunicationIdentifierModel;\n /** Id of the chat message that has been read. This id is generated by the server. */\n chatMessageId: string;\n /** The time at which the message was read. The timestamp is in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`. */\n readOn: Date;\n}\n\n/** Identifies a participant in Azure Communication services. A participant is, for example, a phone number or an Azure communication user. This model is polymorphic: Apart from kind and rawId, at most one further property may be set which must match the kind enum value. */\nexport interface CommunicationIdentifierModel {\n /** The identifier kind. Only required in responses. */\n kind?: CommunicationIdentifierModelKind;\n /** Raw Id of the identifier. Optional in requests, required in responses. */\n rawId?: string;\n /** The communication user. */\n communicationUser?: CommunicationUserIdentifierModel;\n /** The phone number. */\n phoneNumber?: PhoneNumberIdentifierModel;\n /** The Microsoft Teams user. */\n microsoftTeamsUser?: MicrosoftTeamsUserIdentifierModel;\n /** The Microsoft Teams application. */\n microsoftTeamsApp?: MicrosoftTeamsAppIdentifierModel;\n}\n\n/** A user that got created with an Azure Communication Services resource. */\nexport interface CommunicationUserIdentifierModel {\n /** The Id of the communication user. */\n id: string;\n}\n\n/** A phone number. */\nexport interface PhoneNumberIdentifierModel {\n /** The phone number in E.164 format. */\n value: string;\n}\n\n/** A Microsoft Teams user. */\nexport interface MicrosoftTeamsUserIdentifierModel {\n /** The Id of the Microsoft Teams user. If not anonymous, this is the AAD object Id of the user. */\n userId: string;\n /** True if the Microsoft Teams user is anonymous. By default false if missing. */\n isAnonymous?: boolean;\n /** The cloud that the Microsoft Teams user belongs to. By default 'public' if missing. */\n cloud?: CommunicationCloudEnvironmentModel;\n}\n\n/** A Microsoft Teams application. */\nexport interface MicrosoftTeamsAppIdentifierModel {\n /** The Id of the Microsoft Teams application. */\n appId: string;\n /** The cloud that the Microsoft Teams application belongs to. By default 'public' if missing. */\n cloud?: CommunicationCloudEnvironmentModel;\n}\n\n/** The Communication Services error. */\nexport interface CommunicationErrorResponse {\n /** The Communication Services error. */\n error: ChatError;\n}\n\n/** The Communication Services error. */\nexport interface ChatError {\n /** The error code. */\n code: string;\n /** The error message. */\n message: string;\n /**\n * The error target.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly target?: string;\n /**\n * Further details about specific errors that led to this error.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly details?: ChatError[];\n /**\n * The inner error if any.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly innerError?: ChatError;\n}\n\n/** Request payload for sending a read receipt. */\nexport interface SendReadReceiptRequest {\n /** Id of the latest chat message read by the user. */\n chatMessageId: string;\n}\n\n/** Details of the message to send. */\nexport interface SendChatMessageRequest {\n /** Chat message content. */\n content: string;\n /** The display name of the chat message sender. This property is used to populate sender name for push notifications. */\n senderDisplayName?: string;\n /** The chat message type. */\n type?: ChatMessageType;\n /** Message metadata. */\n metadata?: { [propertyName: string]: string };\n /** The array of attachments */\n attachments?: ChatAttachment[];\n}\n\n/** An attachment in a chat message. Currently only supported in Teams Interop scenarios. */\nexport interface ChatAttachment {\n /** Id of the attachment */\n id: string;\n /** The type of attachment. */\n attachmentType: ChatAttachmentType;\n /** The name of the attachment content. */\n name?: string;\n /** The URL where the attachment can be downloaded */\n url?: string;\n /** The URL where the preview of attachment can be downloaded */\n previewUrl?: string;\n}\n\n/** Result of the send message operation. */\nexport interface SendChatMessageResult {\n /** A server-generated message id. */\n id: string;\n}\n\n/** Collection of chat messages for a particular chat thread. */\nexport interface ChatMessagesCollection {\n /** Collection of chat messages. */\n value: ChatMessage[];\n /**\n * If there are more chat messages that can be retrieved, the next link will be populated.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly nextLink?: string;\n}\n\n/** Chat message. */\nexport interface ChatMessage {\n /** The id of the chat message. This id is server generated. */\n id: string;\n /** The chat message type. */\n type: ChatMessageType;\n /** Sequence of the chat message in the conversation. */\n sequenceId: string;\n /** Version of the chat message. */\n version: string;\n /** Content of a chat message. */\n content?: ChatMessageContent;\n /** The display name of the chat message sender. This property is used to populate sender name for push notifications. */\n senderDisplayName?: string;\n /** The timestamp when the chat message arrived at the server. The timestamp is in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`. */\n createdOn: Date;\n /** Identifies a participant in Azure Communication services. A participant is, for example, a phone number or an Azure communication user. This model is polymorphic: Apart from kind and rawId, at most one further property may be set which must match the kind enum value. */\n senderCommunicationIdentifier?: CommunicationIdentifierModel;\n /** The timestamp (if applicable) when the message was deleted. The timestamp is in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`. */\n deletedOn?: Date;\n /** The last timestamp (if applicable) when the message was edited. The timestamp is in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`. */\n editedOn?: Date;\n /** Message metadata. */\n metadata?: { [propertyName: string]: string };\n /** Policy violation of a message. */\n policyViolation?: PolicyViolation;\n}\n\n/** Content of a chat message. */\nexport interface ChatMessageContent {\n /** Chat message content for messages of types text or html. */\n message?: string;\n /** Chat message content for messages of type topicUpdated. */\n topic?: string;\n /** Chat message content for messages of types participantAdded or participantRemoved. */\n participants?: ChatParticipant[];\n /** List of attachments for this message */\n attachments?: ChatAttachment[];\n /** Identifies a participant in Azure Communication services. A participant is, for example, a phone number or an Azure communication user. This model is polymorphic: Apart from kind and rawId, at most one further property may be set which must match the kind enum value. */\n initiatorCommunicationIdentifier?: CommunicationIdentifierModel;\n}\n\n/** A participant of the chat thread. */\nexport interface ChatParticipant {\n /** Identifies a participant in Azure Communication services. A participant is, for example, a phone number or an Azure communication user. This model is polymorphic: Apart from kind and rawId, at most one further property may be set which must match the kind enum value. */\n communicationIdentifier: CommunicationIdentifierModel;\n /** Display name for the chat participant. */\n displayName?: string;\n /** Time from which the chat history is shared with the participant. The timestamp is in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`. */\n shareHistoryTime?: Date;\n /** Contextual metadata for the chat participant. The metadata consists of name/value pairs. The total size of all metadata pairs can be up to 1KB in size. */\n metadata?: { [propertyName: string]: string };\n}\n\n/** Policy violation of a message. */\nexport interface PolicyViolation {\n /** The policy violation state. */\n state: PolicyViolationMessageState;\n}\n\n/** Request payload for updating a chat message. */\nexport interface UpdateChatMessageRequest {\n /** Chat message content. */\n content?: string;\n /** Message metadata. */\n metadata?: { [propertyName: string]: string };\n /** The array of attachments */\n attachments?: ChatAttachment[];\n}\n\n/** Collection of participants belong to a particular thread. */\nexport interface ChatParticipantsCollection {\n /** Chat participants. */\n value: ChatParticipant[];\n /**\n * If there are more chat participants that can be retrieved, the next link will be populated.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly nextLink?: string;\n}\n\n/** Participants to be added to the thread. */\nexport interface AddChatParticipantsRequest {\n /** Participants to add to a chat thread. */\n participants: ChatParticipant[];\n}\n\n/** Result of the add chat participants operation. */\nexport interface AddChatParticipantsResult {\n /**\n * The participants that failed to be added to the chat thread.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly invalidParticipants?: ChatError[];\n}\n\n/** Request payload for creating a chat thread. */\nexport interface CreateChatThreadRequest {\n /** The chat thread topic. */\n topic: string;\n /** Participants to be added to the chat thread. */\n participants?: ChatParticipant[];\n /** Contextual metadata for the thread. The metadata consists of name/value pairs. The total size of all metadata pairs can be up to 1KB in size. */\n metadata?: { [propertyName: string]: string };\n /** Data retention policy for auto deletion. */\n retentionPolicy?: ChatRetentionPolicyUnion;\n}\n\n/** Data retention policy for auto deletion. */\nexport interface ChatRetentionPolicy {\n /** Polymorphic discriminator, which specifies the different types this object can be */\n kind: \"threadCreationDate\" | \"none\";\n}\n\n/** Result of the create chat thread operation. */\nexport interface CreateChatThreadResult {\n /** Chat thread. */\n chatThread?: ChatThreadProperties;\n /**\n * The participants that failed to be added to the chat thread.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly invalidParticipants?: ChatError[];\n}\n\n/** Chat thread. */\nexport interface ChatThreadProperties {\n /** Chat thread id. */\n id: string;\n /** Chat thread topic. */\n topic: string;\n /** The timestamp when the chat thread was created. The timestamp is in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`. */\n createdOn: Date;\n /** Identifies a participant in Azure Communication services. A participant is, for example, a phone number or an Azure communication user. This model is polymorphic: Apart from kind and rawId, at most one further property may be set which must match the kind enum value. */\n createdByCommunicationIdentifier: CommunicationIdentifierModel;\n /** The timestamp when the chat thread was deleted. The timestamp is in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`. */\n deletedOn?: Date;\n /** Contextual metadata for the thread. The metadata consists of name/value pairs. The total size of all metadata pairs can be up to 1KB in size. */\n metadata?: { [propertyName: string]: string };\n /** Data retention policy for auto deletion. */\n retentionPolicy?: ChatRetentionPolicyUnion;\n /** Messaging policy for a chat thread. */\n messagingPolicy?: MessagingPolicy;\n}\n\n/** Messaging policy for a chat thread. */\nexport interface MessagingPolicy {\n /** Allow text only chat with no message with attachment, if `textOnlyChat` is undefined assumed `false`. */\n textOnlyChat?: boolean;\n}\n\n/** Collection of chat threads. */\nexport interface ChatThreadsItemCollection {\n /** Collection of chat threads. */\n value: ChatThreadItem[];\n /**\n * If there are more chat threads that can be retrieved, the next link will be populated.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly nextLink?: string;\n}\n\n/** Summary information of a chat thread. */\nexport interface ChatThreadItem {\n /** Chat thread id. */\n id: string;\n /** Chat thread topic. */\n topic: string;\n /** The timestamp when the chat thread was deleted. The timestamp is in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`. */\n deletedOn?: Date;\n /**\n * The timestamp when the last message arrived at the server. The timestamp is in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly lastMessageReceivedOn?: Date;\n}\n\n/** Request payload for updating a chat thread. */\nexport interface UpdateChatThreadRequest {\n /** Chat thread topic. */\n topic?: string;\n /** Contextual metadata for the thread. The metadata consists of name/value pairs. The total size of all metadata pairs can be up to 1KB in size. */\n metadata?: { [propertyName: string]: string };\n /** Data retention policy for auto deletion. */\n retentionPolicy?: ChatRetentionPolicyUnion;\n}\n\n/** Request payload for typing notifications. */\nexport interface SendTypingNotificationRequest {\n /** The display name of the typing notification sender. This property is used to populate sender name for push notifications. */\n senderDisplayName?: string;\n}\n\n/** Result payload for uploading an image. */\nexport interface UploadChatImageResult {\n /** A server-generated image id. */\n id: string;\n /** The type of attachment. */\n attachmentType?: ChatAttachmentType;\n /** The name including file extension type of the attachment. */\n name?: string;\n}\n\n/** Wrapper for error response to follow ARM guidelines. */\nexport interface ErrorResponse {\n /** The error response. */\n error?: ErrorModel;\n}\n\n/** Error response information. */\nexport interface ErrorModel {\n /** Error code. */\n code: string;\n /** Error message. */\n message: string;\n /** An array of error detail objects. */\n details?: ErrorDetail[];\n}\n\n/** Error detail information. */\nexport interface ErrorDetail {\n /** Error code. */\n code: string;\n /** Error message. */\n message: string;\n}\n\n/** Thread retention policy based on thread creation date. */\nexport interface ThreadCreationDateRetentionPolicy extends ChatRetentionPolicy {\n /** Polymorphic discriminator, which specifies the different types this object can be */\n kind: \"threadCreationDate\";\n /** Indicates how many days after the thread creation the thread will be deleted. */\n deleteThreadAfterDays: number;\n}\n\n/** No thread retention policy. */\nexport interface NoneRetentionPolicy extends ChatRetentionPolicy {\n /** Polymorphic discriminator, which specifies the different types this object can be */\n kind: \"none\";\n}\n\n/** Known values of {@link CommunicationIdentifierModelKind} that the service accepts. */\nexport enum KnownCommunicationIdentifierModelKind {\n /** Unknown */\n Unknown = \"unknown\",\n /** CommunicationUser */\n CommunicationUser = \"communicationUser\",\n /** PhoneNumber */\n PhoneNumber = \"phoneNumber\",\n /** MicrosoftTeamsUser */\n MicrosoftTeamsUser = \"microsoftTeamsUser\",\n /** MicrosoftTeamsApp */\n MicrosoftTeamsApp = \"microsoftTeamsApp\",\n}\n\n/**\n * Defines values for CommunicationIdentifierModelKind. \\\n * {@link KnownCommunicationIdentifierModelKind} can be used interchangeably with CommunicationIdentifierModelKind,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **unknown** \\\n * **communicationUser** \\\n * **phoneNumber** \\\n * **microsoftTeamsUser** \\\n * **microsoftTeamsApp**\n */\nexport type CommunicationIdentifierModelKind = string;\n\n/** Known values of {@link CommunicationCloudEnvironmentModel} that the service accepts. */\nexport enum KnownCommunicationCloudEnvironmentModel {\n /** Public */\n Public = \"public\",\n /** Dod */\n Dod = \"dod\",\n /** Gcch */\n Gcch = \"gcch\",\n}\n\n/**\n * Defines values for CommunicationCloudEnvironmentModel. \\\n * {@link KnownCommunicationCloudEnvironmentModel} can be used interchangeably with CommunicationCloudEnvironmentModel,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **public** \\\n * **dod** \\\n * **gcch**\n */\nexport type CommunicationCloudEnvironmentModel = string;\n\n/** Known values of {@link ImageViewType} that the service accepts. */\nexport enum KnownImageViewType {\n /** Original */\n Original = \"original\",\n /** Small */\n Small = \"small\",\n}\n\n/**\n * Defines values for ImageViewType. \\\n * {@link KnownImageViewType} can be used interchangeably with ImageViewType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **original** \\\n * **small**\n */\nexport type ImageViewType = string;\n/** Defines values for ChatMessageType. */\nexport type ChatMessageType =\n | \"text\"\n | \"html\"\n | \"topicUpdated\"\n | \"participantAdded\"\n | \"participantRemoved\";\n/** Defines values for ChatAttachmentType. */\nexport type ChatAttachmentType = \"image\" | \"file\";\n/** Defines values for PolicyViolationMessageState. */\nexport type PolicyViolationMessageState = \"contentBlocked\" | \"warning\";\n/** Defines values for RetentionPolicyKind. */\nexport type RetentionPolicyKind = \"threadCreationDate\" | \"none\";\n\n/** Optional parameters. */\nexport interface ChatThreadListChatReadReceiptsOptionalParams\n extends coreClient.OperationOptions {\n /** The maximum number of chat message read receipts to be returned per page. */\n maxPageSize?: number;\n /** Skips chat message read receipts up to a specified position in response. */\n skip?: number;\n}\n\n/** Contains response data for the listChatReadReceipts operation. */\nexport type ChatThreadListChatReadReceiptsResponse =\n ChatMessageReadReceiptsCollection;\n\n/** Optional parameters. */\nexport interface ChatThreadSendChatReadReceiptOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface ChatThreadSendChatMessageOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the sendChatMessage operation. */\nexport type ChatThreadSendChatMessageResponse = SendChatMessageResult;\n\n/** Optional parameters. */\nexport interface ChatThreadListChatMessagesOptionalParams\n extends coreClient.OperationOptions {\n /** The maximum number of messages to be returned per page. */\n maxPageSize?: number;\n /** The earliest point in time to get messages after. The timestamp should be in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`. */\n startTime?: Date;\n}\n\n/** Contains response data for the listChatMessages operation. */\nexport type ChatThreadListChatMessagesResponse = ChatMessagesCollection;\n\n/** Optional parameters. */\nexport interface ChatThreadGetChatMessageOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the getChatMessage operation. */\nexport type ChatThreadGetChatMessageResponse = ChatMessage;\n\n/** Optional parameters. */\nexport interface ChatThreadUpdateChatMessageOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface ChatThreadDeleteChatMessageOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface ChatThreadListChatParticipantsOptionalParams\n extends coreClient.OperationOptions {\n /** The maximum number of participants to be returned per page. */\n maxPageSize?: number;\n /** Skips participants up to a specified position in response. */\n skip?: number;\n}\n\n/** Contains response data for the listChatParticipants operation. */\nexport type ChatThreadListChatParticipantsResponse = ChatParticipantsCollection;\n\n/** Optional parameters. */\nexport interface ChatThreadRemoveChatParticipantOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface ChatThreadAddChatParticipantsOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the addChatParticipants operation. */\nexport type ChatThreadAddChatParticipantsResponse = AddChatParticipantsResult;\n\n/** Optional parameters. */\nexport interface ChatThreadUpdateChatThreadPropertiesOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface ChatThreadGetChatThreadPropertiesOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the getChatThreadProperties operation. */\nexport type ChatThreadGetChatThreadPropertiesResponse = ChatThreadProperties;\n\n/** Optional parameters. */\nexport interface ChatThreadSendTypingNotificationOptionalParams\n extends coreClient.OperationOptions {\n /** Details of the typing notification request. */\n sendTypingNotificationRequest?: SendTypingNotificationRequest;\n}\n\n/** Optional parameters. */\nexport interface ChatThreadUploadChatImageOptionalParams\n extends coreClient.OperationOptions {\n /** The file name of the image. */\n imageFilename?: string;\n}\n\n/** Contains response data for the uploadChatImage operation. */\nexport type ChatThreadUploadChatImageResponse = UploadChatImageResult;\n\n/** Optional parameters. */\nexport interface ChatThreadGetChatImageOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the getChatImage operation. */\nexport type ChatThreadGetChatImageResponse = {\n /**\n * BROWSER ONLY\n *\n * The response body as a browser Blob.\n * Always `undefined` in node.js.\n */\n blobBody?: Promise<Blob>;\n /**\n * NODEJS ONLY\n *\n * The response body as a node.js Readable stream.\n * Always `undefined` in the browser.\n */\n readableStreamBody?: NodeJS.ReadableStream;\n};\n\n/** Optional parameters. */\nexport interface ChatThreadDeleteChatImageOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface ChatThreadListChatReadReceiptsNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listChatReadReceiptsNext operation. */\nexport type ChatThreadListChatReadReceiptsNextResponse =\n ChatMessageReadReceiptsCollection;\n\n/** Optional parameters. */\nexport interface ChatThreadListChatMessagesNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listChatMessagesNext operation. */\nexport type ChatThreadListChatMessagesNextResponse = ChatMessagesCollection;\n\n/** Optional parameters. */\nexport interface ChatThreadListChatParticipantsNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listChatParticipantsNext operation. */\nexport type ChatThreadListChatParticipantsNextResponse =\n ChatParticipantsCollection;\n\n/** Optional parameters. */\nexport interface ChatCreateChatThreadOptionalParams\n extends coreClient.OperationOptions {\n /** If specified, the client directs that the request is repeatable; that is, that the client can make the request multiple times with the same Repeatability-Request-Id and get back an appropriate response without the server executing the request multiple times. The value of the Repeatability-Request-Id is an opaque string representing a client-generated, globally unique for all time, identifier for the request. It is recommended to use version 4 (random) UUIDs. */\n repeatabilityRequestId?: string;\n}\n\n/** Contains response data for the createChatThread operation. */\nexport type ChatCreateChatThreadResponse = CreateChatThreadResult;\n\n/** Optional parameters. */\nexport interface ChatListChatThreadsOptionalParams\n extends coreClient.OperationOptions {\n /** The maximum number of chat threads returned per page. */\n maxPageSize?: number;\n /** The earliest point in time to get chat threads up to. The timestamp should be in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`. */\n startTime?: Date;\n}\n\n/** Contains response data for the listChatThreads operation. */\nexport type ChatListChatThreadsResponse = ChatThreadsItemCollection;\n\n/** Optional parameters. */\nexport interface ChatDeleteChatThreadOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface ChatListChatThreadsNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listChatThreadsNext operation. */\nexport type ChatListChatThreadsNextResponse = ChatThreadsItemCollection;\n\n/** Optional parameters. */\nexport interface ChatApiClientOptionalParams\n extends coreClient.ServiceClientOptions {\n /** Api Version */\n apiVersion?: string;\n /** Overrides client endpoint. */\n endpoint?: string;\n}\n"]}
@@ -305,6 +305,59 @@ export const SendChatMessageRequest = {
305
305
  value: { type: { name: "String" } },
306
306
  },
307
307
  },
308
+ attachments: {
309
+ serializedName: "attachments",
310
+ type: {
311
+ name: "Sequence",
312
+ element: {
313
+ type: {
314
+ name: "Composite",
315
+ className: "ChatAttachment",
316
+ },
317
+ },
318
+ },
319
+ },
320
+ },
321
+ },
322
+ };
323
+ export const ChatAttachment = {
324
+ type: {
325
+ name: "Composite",
326
+ className: "ChatAttachment",
327
+ modelProperties: {
328
+ id: {
329
+ serializedName: "id",
330
+ required: true,
331
+ type: {
332
+ name: "String",
333
+ },
334
+ },
335
+ attachmentType: {
336
+ serializedName: "attachmentType",
337
+ required: true,
338
+ type: {
339
+ name: "Enum",
340
+ allowedValues: ["image", "file"],
341
+ },
342
+ },
343
+ name: {
344
+ serializedName: "name",
345
+ type: {
346
+ name: "String",
347
+ },
348
+ },
349
+ url: {
350
+ serializedName: "url",
351
+ type: {
352
+ name: "String",
353
+ },
354
+ },
355
+ previewUrl: {
356
+ serializedName: "previewUrl",
357
+ type: {
358
+ name: "String",
359
+ },
360
+ },
308
361
  },
309
362
  },
310
363
  };
@@ -437,6 +490,13 @@ export const ChatMessage = {
437
490
  value: { type: { name: "String" } },
438
491
  },
439
492
  },
493
+ policyViolation: {
494
+ serializedName: "policyViolation",
495
+ type: {
496
+ name: "Composite",
497
+ className: "PolicyViolation",
498
+ },
499
+ },
440
500
  },
441
501
  },
442
502
  };
@@ -515,45 +575,27 @@ export const ChatParticipant = {
515
575
  name: "DateTime",
516
576
  },
517
577
  },
578
+ metadata: {
579
+ serializedName: "metadata",
580
+ type: {
581
+ name: "Dictionary",
582
+ value: { type: { name: "String" } },
583
+ },
584
+ },
518
585
  },
519
586
  },
520
587
  };
521
- export const ChatAttachment = {
588
+ export const PolicyViolation = {
522
589
  type: {
523
590
  name: "Composite",
524
- className: "ChatAttachment",
591
+ className: "PolicyViolation",
525
592
  modelProperties: {
526
- id: {
527
- serializedName: "id",
528
- required: true,
529
- type: {
530
- name: "String",
531
- },
532
- },
533
- attachmentType: {
534
- serializedName: "attachmentType",
593
+ state: {
594
+ serializedName: "state",
535
595
  required: true,
536
596
  type: {
537
597
  name: "Enum",
538
- allowedValues: ["image", "file"],
539
- },
540
- },
541
- name: {
542
- serializedName: "name",
543
- type: {
544
- name: "String",
545
- },
546
- },
547
- url: {
548
- serializedName: "url",
549
- type: {
550
- name: "String",
551
- },
552
- },
553
- previewUrl: {
554
- serializedName: "previewUrl",
555
- type: {
556
- name: "String",
598
+ allowedValues: ["contentBlocked", "warning"],
557
599
  },
558
600
  },
559
601
  },
@@ -577,6 +619,18 @@ export const UpdateChatMessageRequest = {
577
619
  value: { type: { name: "String" } },
578
620
  },
579
621
  },
622
+ attachments: {
623
+ serializedName: "attachments",
624
+ type: {
625
+ name: "Sequence",
626
+ element: {
627
+ type: {
628
+ name: "Composite",
629
+ className: "ChatAttachment",
630
+ },
631
+ },
632
+ },
633
+ },
580
634
  },
581
635
  },
582
636
  };
@@ -674,6 +728,41 @@ export const CreateChatThreadRequest = {
674
728
  },
675
729
  },
676
730
  },
731
+ metadata: {
732
+ serializedName: "metadata",
733
+ type: {
734
+ name: "Dictionary",
735
+ value: { type: { name: "String" } },
736
+ },
737
+ },
738
+ retentionPolicy: {
739
+ serializedName: "retentionPolicy",
740
+ type: {
741
+ name: "Composite",
742
+ className: "ChatRetentionPolicy",
743
+ },
744
+ },
745
+ },
746
+ },
747
+ };
748
+ export const ChatRetentionPolicy = {
749
+ type: {
750
+ name: "Composite",
751
+ className: "ChatRetentionPolicy",
752
+ uberParent: "ChatRetentionPolicy",
753
+ polymorphicDiscriminator: {
754
+ serializedName: "kind",
755
+ clientName: "kind",
756
+ },
757
+ modelProperties: {
758
+ kind: {
759
+ serializedName: "kind",
760
+ required: true,
761
+ type: {
762
+ name: "Enum",
763
+ allowedValues: ["threadCreationDate", "none"],
764
+ },
765
+ },
677
766
  },
678
767
  },
679
768
  };
@@ -744,6 +833,41 @@ export const ChatThreadProperties = {
744
833
  name: "DateTime",
745
834
  },
746
835
  },
836
+ metadata: {
837
+ serializedName: "metadata",
838
+ type: {
839
+ name: "Dictionary",
840
+ value: { type: { name: "String" } },
841
+ },
842
+ },
843
+ retentionPolicy: {
844
+ serializedName: "retentionPolicy",
845
+ type: {
846
+ name: "Composite",
847
+ className: "ChatRetentionPolicy",
848
+ },
849
+ },
850
+ messagingPolicy: {
851
+ serializedName: "messagingPolicy",
852
+ type: {
853
+ name: "Composite",
854
+ className: "MessagingPolicy",
855
+ },
856
+ },
857
+ },
858
+ },
859
+ };
860
+ export const MessagingPolicy = {
861
+ type: {
862
+ name: "Composite",
863
+ className: "MessagingPolicy",
864
+ modelProperties: {
865
+ textOnlyChat: {
866
+ serializedName: "textOnlyChat",
867
+ type: {
868
+ name: "Boolean",
869
+ },
870
+ },
747
871
  },
748
872
  },
749
873
  };
@@ -821,6 +945,20 @@ export const UpdateChatThreadRequest = {
821
945
  name: "String",
822
946
  },
823
947
  },
948
+ metadata: {
949
+ serializedName: "metadata",
950
+ type: {
951
+ name: "Dictionary",
952
+ value: { type: { name: "String" } },
953
+ },
954
+ },
955
+ retentionPolicy: {
956
+ serializedName: "retentionPolicy",
957
+ type: {
958
+ name: "Composite",
959
+ className: "ChatRetentionPolicy",
960
+ },
961
+ },
824
962
  },
825
963
  },
826
964
  };
@@ -838,4 +976,134 @@ export const SendTypingNotificationRequest = {
838
976
  },
839
977
  },
840
978
  };
979
+ export const UploadChatImageResult = {
980
+ type: {
981
+ name: "Composite",
982
+ className: "UploadChatImageResult",
983
+ modelProperties: {
984
+ id: {
985
+ serializedName: "id",
986
+ required: true,
987
+ type: {
988
+ name: "String",
989
+ },
990
+ },
991
+ attachmentType: {
992
+ serializedName: "attachmentType",
993
+ type: {
994
+ name: "Enum",
995
+ allowedValues: ["image", "file"],
996
+ },
997
+ },
998
+ name: {
999
+ serializedName: "name",
1000
+ type: {
1001
+ name: "String",
1002
+ },
1003
+ },
1004
+ },
1005
+ },
1006
+ };
1007
+ export const ErrorResponse = {
1008
+ type: {
1009
+ name: "Composite",
1010
+ className: "ErrorResponse",
1011
+ modelProperties: {
1012
+ error: {
1013
+ serializedName: "error",
1014
+ type: {
1015
+ name: "Composite",
1016
+ className: "ErrorModel",
1017
+ },
1018
+ },
1019
+ },
1020
+ },
1021
+ };
1022
+ export const ErrorModel = {
1023
+ type: {
1024
+ name: "Composite",
1025
+ className: "ErrorModel",
1026
+ modelProperties: {
1027
+ code: {
1028
+ serializedName: "code",
1029
+ required: true,
1030
+ type: {
1031
+ name: "String",
1032
+ },
1033
+ },
1034
+ message: {
1035
+ serializedName: "message",
1036
+ required: true,
1037
+ type: {
1038
+ name: "String",
1039
+ },
1040
+ },
1041
+ details: {
1042
+ serializedName: "details",
1043
+ type: {
1044
+ name: "Sequence",
1045
+ element: {
1046
+ type: {
1047
+ name: "Composite",
1048
+ className: "ErrorDetail",
1049
+ },
1050
+ },
1051
+ },
1052
+ },
1053
+ },
1054
+ },
1055
+ };
1056
+ export const ErrorDetail = {
1057
+ type: {
1058
+ name: "Composite",
1059
+ className: "ErrorDetail",
1060
+ modelProperties: {
1061
+ code: {
1062
+ serializedName: "code",
1063
+ required: true,
1064
+ type: {
1065
+ name: "String",
1066
+ },
1067
+ },
1068
+ message: {
1069
+ serializedName: "message",
1070
+ required: true,
1071
+ type: {
1072
+ name: "String",
1073
+ },
1074
+ },
1075
+ },
1076
+ },
1077
+ };
1078
+ export const ThreadCreationDateRetentionPolicy = {
1079
+ serializedName: "threadCreationDate",
1080
+ type: {
1081
+ name: "Composite",
1082
+ className: "ThreadCreationDateRetentionPolicy",
1083
+ uberParent: "ChatRetentionPolicy",
1084
+ polymorphicDiscriminator: ChatRetentionPolicy.type.polymorphicDiscriminator,
1085
+ modelProperties: Object.assign(Object.assign({}, ChatRetentionPolicy.type.modelProperties), { deleteThreadAfterDays: {
1086
+ serializedName: "deleteThreadAfterDays",
1087
+ required: true,
1088
+ type: {
1089
+ name: "Number",
1090
+ },
1091
+ } }),
1092
+ },
1093
+ };
1094
+ export const NoneRetentionPolicy = {
1095
+ serializedName: "none",
1096
+ type: {
1097
+ name: "Composite",
1098
+ className: "NoneRetentionPolicy",
1099
+ uberParent: "ChatRetentionPolicy",
1100
+ polymorphicDiscriminator: ChatRetentionPolicy.type.polymorphicDiscriminator,
1101
+ modelProperties: Object.assign({}, ChatRetentionPolicy.type.modelProperties),
1102
+ },
1103
+ };
1104
+ export let discriminators = {
1105
+ ChatRetentionPolicy: ChatRetentionPolicy,
1106
+ "ChatRetentionPolicy.threadCreationDate": ThreadCreationDateRetentionPolicy,
1107
+ "ChatRetentionPolicy.none": NoneRetentionPolicy,
1108
+ };
841
1109
  //# sourceMappingURL=mappers.js.map