@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.
- package/dist/index.js +836 -46
- package/dist/index.js.map +1 -1
- package/dist-esm/src/chatClient.js +4 -3
- package/dist-esm/src/chatClient.js.map +1 -1
- package/dist-esm/src/chatThreadClient.js +84 -4
- package/dist-esm/src/chatThreadClient.js.map +1 -1
- package/dist-esm/src/generated/src/chatApiClient.js +2 -2
- package/dist-esm/src/generated/src/chatApiClient.js.map +1 -1
- package/dist-esm/src/generated/src/models/index.js +8 -0
- package/dist-esm/src/generated/src/models/index.js.map +1 -1
- package/dist-esm/src/generated/src/models/mappers.js +298 -30
- package/dist-esm/src/generated/src/models/mappers.js.map +1 -1
- package/dist-esm/src/generated/src/models/parameters.js +73 -1
- package/dist-esm/src/generated/src/models/parameters.js.map +1 -1
- package/dist-esm/src/generated/src/operations/chatThread.js +98 -0
- package/dist-esm/src/generated/src/operations/chatThread.js.map +1 -1
- package/dist-esm/src/generated/src/operationsInterfaces/chatThread.js.map +1 -1
- package/dist-esm/src/generated/src/tracing.js +1 -1
- package/dist-esm/src/generated/src/tracing.js.map +1 -1
- package/dist-esm/src/models/mappers.js +82 -6
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/models.js.map +1 -1
- package/dist-esm/src/models/options.js.map +1 -1
- package/dist-esm/src/xhrHttpClient.js +186 -0
- package/dist-esm/src/xhrHttpClient.js.map +1 -0
- package/package.json +4 -4
- package/types/communication-chat.d.ts +129 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chatThread.js","sourceRoot":"","sources":["../../../../../src/generated/src/operations/chatThread.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK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AE,IAAI;SACd;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,0BAA0B;YAC9C,OAAO,EAAE,IAAI;SACd;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,0BAA0B;YAC9C,OAAO,EAAE,IAAI;SACd;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,0BAA0B;YAC9C,OAAO,EAAE,IAAI;SACd;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","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 { tracingClient } from \"../tracing\";\nimport { ChatThread } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { ChatApiClient } from \"../chatApiClient\";\nimport {\n ChatThreadListChatReadReceiptsOptionalParams,\n ChatThreadListChatReadReceiptsResponse,\n SendReadReceiptRequest,\n ChatThreadSendChatReadReceiptOptionalParams,\n SendChatMessageRequest,\n ChatThreadSendChatMessageOptionalParams,\n ChatThreadSendChatMessageResponse,\n ChatThreadListChatMessagesOptionalParams,\n ChatThreadListChatMessagesResponse,\n ChatThreadGetChatMessageOptionalParams,\n ChatThreadGetChatMessageResponse,\n UpdateChatMessageRequest,\n ChatThreadUpdateChatMessageOptionalParams,\n ChatThreadDeleteChatMessageOptionalParams,\n ChatThreadListChatParticipantsOptionalParams,\n ChatThreadListChatParticipantsResponse,\n CommunicationIdentifierModel,\n ChatThreadRemoveChatParticipantOptionalParams,\n AddChatParticipantsRequest,\n ChatThreadAddChatParticipantsOptionalParams,\n ChatThreadAddChatParticipantsResponse,\n UpdateChatThreadRequest,\n ChatThreadUpdateChatThreadPropertiesOptionalParams,\n ChatThreadGetChatThreadPropertiesOptionalParams,\n ChatThreadGetChatThreadPropertiesResponse,\n ChatThreadSendTypingNotificationOptionalParams,\n ChatThreadListChatReadReceiptsNextOptionalParams,\n ChatThreadListChatReadReceiptsNextResponse,\n ChatThreadListChatMessagesNextOptionalParams,\n ChatThreadListChatMessagesNextResponse,\n ChatThreadListChatParticipantsNextOptionalParams,\n ChatThreadListChatParticipantsNextResponse,\n} from \"../models\";\n\n/** Class containing ChatThread operations. */\nexport class ChatThreadImpl implements ChatThread {\n private readonly client: ChatApiClient;\n\n /**\n * Initialize a new instance of the class ChatThread class.\n * @param client Reference to the service client\n */\n constructor(client: ChatApiClient) {\n this.client = client;\n }\n\n /**\n * Gets chat message read receipts for a thread.\n * @param chatThreadId Thread id to get the chat message read receipts for.\n * @param options The options parameters.\n */\n async listChatReadReceipts(\n chatThreadId: string,\n options?: ChatThreadListChatReadReceiptsOptionalParams,\n ): Promise<ChatThreadListChatReadReceiptsResponse> {\n return tracingClient.withSpan(\n \"ChatApiClient.listChatReadReceipts\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, options },\n listChatReadReceiptsOperationSpec,\n ) as Promise<ChatThreadListChatReadReceiptsResponse>;\n },\n );\n }\n\n /**\n * Sends a read receipt event to a thread, on behalf of a user.\n * @param chatThreadId Thread id to send the read receipt event to.\n * @param sendReadReceiptRequest Read receipt details.\n * @param options The options parameters.\n */\n async sendChatReadReceipt(\n chatThreadId: string,\n sendReadReceiptRequest: SendReadReceiptRequest,\n options?: ChatThreadSendChatReadReceiptOptionalParams,\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ChatApiClient.sendChatReadReceipt\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, sendReadReceiptRequest, options },\n sendChatReadReceiptOperationSpec,\n ) as Promise<void>;\n },\n );\n }\n\n /**\n * Sends a message to a thread.\n * @param chatThreadId The thread id to send the message to.\n * @param sendChatMessageRequest Details of the message to send.\n * @param options The options parameters.\n */\n async sendChatMessage(\n chatThreadId: string,\n sendChatMessageRequest: SendChatMessageRequest,\n options?: ChatThreadSendChatMessageOptionalParams,\n ): Promise<ChatThreadSendChatMessageResponse> {\n return tracingClient.withSpan(\n \"ChatApiClient.sendChatMessage\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, sendChatMessageRequest, options },\n sendChatMessageOperationSpec,\n ) as Promise<ChatThreadSendChatMessageResponse>;\n },\n );\n }\n\n /**\n * Gets a list of messages from a thread.\n * @param chatThreadId The thread id of the message.\n * @param options The options parameters.\n */\n async listChatMessages(\n chatThreadId: string,\n options?: ChatThreadListChatMessagesOptionalParams,\n ): Promise<ChatThreadListChatMessagesResponse> {\n return tracingClient.withSpan(\n \"ChatApiClient.listChatMessages\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, options },\n listChatMessagesOperationSpec,\n ) as Promise<ChatThreadListChatMessagesResponse>;\n },\n );\n }\n\n /**\n * Gets a message by id.\n * @param chatThreadId The thread id to which the message was sent.\n * @param chatMessageId The message id.\n * @param options The options parameters.\n */\n async getChatMessage(\n chatThreadId: string,\n chatMessageId: string,\n options?: ChatThreadGetChatMessageOptionalParams,\n ): Promise<ChatThreadGetChatMessageResponse> {\n return tracingClient.withSpan(\n \"ChatApiClient.getChatMessage\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, chatMessageId, options },\n getChatMessageOperationSpec,\n ) as Promise<ChatThreadGetChatMessageResponse>;\n },\n );\n }\n\n /**\n * Updates a message.\n * @param chatThreadId The thread id to which the message was sent.\n * @param chatMessageId The message id.\n * @param updateChatMessageRequest Details of the request to update the message.\n * @param options The options parameters.\n */\n async updateChatMessage(\n chatThreadId: string,\n chatMessageId: string,\n updateChatMessageRequest: UpdateChatMessageRequest,\n options?: ChatThreadUpdateChatMessageOptionalParams,\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ChatApiClient.updateChatMessage\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, chatMessageId, updateChatMessageRequest, options },\n updateChatMessageOperationSpec,\n ) as Promise<void>;\n },\n );\n }\n\n /**\n * Deletes a message.\n * @param chatThreadId The thread id to which the message was sent.\n * @param chatMessageId The message id.\n * @param options The options parameters.\n */\n async deleteChatMessage(\n chatThreadId: string,\n chatMessageId: string,\n options?: ChatThreadDeleteChatMessageOptionalParams,\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ChatApiClient.deleteChatMessage\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, chatMessageId, options },\n deleteChatMessageOperationSpec,\n ) as Promise<void>;\n },\n );\n }\n\n /**\n * Gets the participants of a thread.\n * @param chatThreadId Thread id to get participants for.\n * @param options The options parameters.\n */\n async listChatParticipants(\n chatThreadId: string,\n options?: ChatThreadListChatParticipantsOptionalParams,\n ): Promise<ChatThreadListChatParticipantsResponse> {\n return tracingClient.withSpan(\n \"ChatApiClient.listChatParticipants\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, options },\n listChatParticipantsOperationSpec,\n ) as Promise<ChatThreadListChatParticipantsResponse>;\n },\n );\n }\n\n /**\n * Remove a participant from a thread.\n * @param chatThreadId Thread id to remove the participant from.\n * @param participantCommunicationIdentifier Id of the thread participant to remove from the thread.\n * @param options The options parameters.\n */\n async removeChatParticipant(\n chatThreadId: string,\n participantCommunicationIdentifier: CommunicationIdentifierModel,\n options?: ChatThreadRemoveChatParticipantOptionalParams,\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ChatApiClient.removeChatParticipant\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, participantCommunicationIdentifier, options },\n removeChatParticipantOperationSpec,\n ) as Promise<void>;\n },\n );\n }\n\n /**\n * Adds thread participants to a thread. If participants already exist, no change occurs.\n * @param chatThreadId Id of the thread to add participants to.\n * @param addChatParticipantsRequest Thread participants to be added to the thread.\n * @param options The options parameters.\n */\n async addChatParticipants(\n chatThreadId: string,\n addChatParticipantsRequest: AddChatParticipantsRequest,\n options?: ChatThreadAddChatParticipantsOptionalParams,\n ): Promise<ChatThreadAddChatParticipantsResponse> {\n return tracingClient.withSpan(\n \"ChatApiClient.addChatParticipants\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, addChatParticipantsRequest, options },\n addChatParticipantsOperationSpec,\n ) as Promise<ChatThreadAddChatParticipantsResponse>;\n },\n );\n }\n\n /**\n * Updates a thread's properties.\n * @param chatThreadId The id of the thread to update.\n * @param updateChatThreadRequest Request payload for updating a chat thread.\n * @param options The options parameters.\n */\n async updateChatThreadProperties(\n chatThreadId: string,\n updateChatThreadRequest: UpdateChatThreadRequest,\n options?: ChatThreadUpdateChatThreadPropertiesOptionalParams,\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ChatApiClient.updateChatThreadProperties\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, updateChatThreadRequest, options },\n updateChatThreadPropertiesOperationSpec,\n ) as Promise<void>;\n },\n );\n }\n\n /**\n * Gets a chat thread's properties.\n * @param chatThreadId Id of the thread.\n * @param options The options parameters.\n */\n async getChatThreadProperties(\n chatThreadId: string,\n options?: ChatThreadGetChatThreadPropertiesOptionalParams,\n ): Promise<ChatThreadGetChatThreadPropertiesResponse> {\n return tracingClient.withSpan(\n \"ChatApiClient.getChatThreadProperties\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, options },\n getChatThreadPropertiesOperationSpec,\n ) as Promise<ChatThreadGetChatThreadPropertiesResponse>;\n },\n );\n }\n\n /**\n * Posts a typing event to a thread, on behalf of a user.\n * @param chatThreadId Id of the thread.\n * @param options The options parameters.\n */\n async sendTypingNotification(\n chatThreadId: string,\n options?: ChatThreadSendTypingNotificationOptionalParams,\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ChatApiClient.sendTypingNotification\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, options },\n sendTypingNotificationOperationSpec,\n ) as Promise<void>;\n },\n );\n }\n\n /**\n * ListChatReadReceiptsNext\n * @param chatThreadId Thread id to get the chat message read receipts for.\n * @param nextLink The nextLink from the previous successful call to the ListChatReadReceipts method.\n * @param options The options parameters.\n */\n async listChatReadReceiptsNext(\n chatThreadId: string,\n nextLink: string,\n options?: ChatThreadListChatReadReceiptsNextOptionalParams,\n ): Promise<ChatThreadListChatReadReceiptsNextResponse> {\n return tracingClient.withSpan(\n \"ChatApiClient.listChatReadReceiptsNext\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, nextLink, options },\n listChatReadReceiptsNextOperationSpec,\n ) as Promise<ChatThreadListChatReadReceiptsNextResponse>;\n },\n );\n }\n\n /**\n * ListChatMessagesNext\n * @param chatThreadId The thread id of the message.\n * @param nextLink The nextLink from the previous successful call to the ListChatMessages method.\n * @param options The options parameters.\n */\n async listChatMessagesNext(\n chatThreadId: string,\n nextLink: string,\n options?: ChatThreadListChatMessagesNextOptionalParams,\n ): Promise<ChatThreadListChatMessagesNextResponse> {\n return tracingClient.withSpan(\n \"ChatApiClient.listChatMessagesNext\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, nextLink, options },\n listChatMessagesNextOperationSpec,\n ) as Promise<ChatThreadListChatMessagesNextResponse>;\n },\n );\n }\n\n /**\n * ListChatParticipantsNext\n * @param chatThreadId Thread id to get participants for.\n * @param nextLink The nextLink from the previous successful call to the ListChatParticipants method.\n * @param options The options parameters.\n */\n async listChatParticipantsNext(\n chatThreadId: string,\n nextLink: string,\n options?: ChatThreadListChatParticipantsNextOptionalParams,\n ): Promise<ChatThreadListChatParticipantsNextResponse> {\n return tracingClient.withSpan(\n \"ChatApiClient.listChatParticipantsNext\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, nextLink, options },\n listChatParticipantsNextOperationSpec,\n ) as Promise<ChatThreadListChatParticipantsNextResponse>;\n },\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listChatReadReceiptsOperationSpec: coreClient.OperationSpec = {\n path: \"/chat/threads/{chatThreadId}/readReceipts\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ChatMessageReadReceiptsCollection,\n },\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n queryParameters: [\n Parameters.maxPageSize,\n Parameters.skip,\n Parameters.apiVersion,\n ],\n urlParameters: [Parameters.endpoint, Parameters.chatThreadId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst sendChatReadReceiptOperationSpec: coreClient.OperationSpec = {\n path: \"/chat/threads/{chatThreadId}/readReceipts\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n requestBody: Parameters.sendReadReceiptRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.chatThreadId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst sendChatMessageOperationSpec: coreClient.OperationSpec = {\n path: \"/chat/threads/{chatThreadId}/messages\",\n httpMethod: \"POST\",\n responses: {\n 201: {\n bodyMapper: Mappers.SendChatMessageResult,\n },\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n requestBody: Parameters.sendChatMessageRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.chatThreadId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listChatMessagesOperationSpec: coreClient.OperationSpec = {\n path: \"/chat/threads/{chatThreadId}/messages\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ChatMessagesCollection,\n },\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n queryParameters: [\n Parameters.maxPageSize,\n Parameters.apiVersion,\n Parameters.startTime,\n ],\n urlParameters: [Parameters.endpoint, Parameters.chatThreadId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getChatMessageOperationSpec: coreClient.OperationSpec = {\n path: \"/chat/threads/{chatThreadId}/messages/{chatMessageId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ChatMessage,\n },\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.endpoint,\n Parameters.chatThreadId,\n Parameters.chatMessageId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateChatMessageOperationSpec: coreClient.OperationSpec = {\n path: \"/chat/threads/{chatThreadId}/messages/{chatMessageId}\",\n httpMethod: \"PATCH\",\n responses: {\n 204: {},\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n requestBody: Parameters.updateChatMessageRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.endpoint,\n Parameters.chatThreadId,\n Parameters.chatMessageId,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType1],\n mediaType: \"json\",\n serializer,\n};\nconst deleteChatMessageOperationSpec: coreClient.OperationSpec = {\n path: \"/chat/threads/{chatThreadId}/messages/{chatMessageId}\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {},\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.endpoint,\n Parameters.chatThreadId,\n Parameters.chatMessageId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listChatParticipantsOperationSpec: coreClient.OperationSpec = {\n path: \"/chat/threads/{chatThreadId}/participants\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ChatParticipantsCollection,\n },\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n queryParameters: [\n Parameters.maxPageSize,\n Parameters.skip,\n Parameters.apiVersion,\n ],\n urlParameters: [Parameters.endpoint, Parameters.chatThreadId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst removeChatParticipantOperationSpec: coreClient.OperationSpec = {\n path: \"/chat/threads/{chatThreadId}/participants/:remove\",\n httpMethod: \"POST\",\n responses: {\n 204: {},\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n requestBody: Parameters.participantCommunicationIdentifier,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.chatThreadId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst addChatParticipantsOperationSpec: coreClient.OperationSpec = {\n path: \"/chat/threads/{chatThreadId}/participants/:add\",\n httpMethod: \"POST\",\n responses: {\n 201: {\n bodyMapper: Mappers.AddChatParticipantsResult,\n },\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n requestBody: Parameters.addChatParticipantsRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.chatThreadId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst updateChatThreadPropertiesOperationSpec: coreClient.OperationSpec = {\n path: \"/chat/threads/{chatThreadId}\",\n httpMethod: \"PATCH\",\n responses: {\n 204: {},\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n requestBody: Parameters.updateChatThreadRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.chatThreadId],\n headerParameters: [Parameters.accept, Parameters.contentType1],\n mediaType: \"json\",\n serializer,\n};\nconst getChatThreadPropertiesOperationSpec: coreClient.OperationSpec = {\n path: \"/chat/threads/{chatThreadId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ChatThreadProperties,\n },\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.chatThreadId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst sendTypingNotificationOperationSpec: coreClient.OperationSpec = {\n path: \"/chat/threads/{chatThreadId}/typing\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n requestBody: Parameters.sendTypingNotificationRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.chatThreadId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listChatReadReceiptsNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ChatMessageReadReceiptsCollection,\n },\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n urlParameters: [\n Parameters.endpoint,\n Parameters.chatThreadId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listChatMessagesNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ChatMessagesCollection,\n },\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n urlParameters: [\n Parameters.endpoint,\n Parameters.chatThreadId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listChatParticipantsNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ChatParticipantsCollection,\n },\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n urlParameters: [\n Parameters.endpoint,\n Parameters.chatThreadId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"chatThread.js","sourceRoot":"","sources":["../../../../../src/generated/src/operations/chatThread.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AA2CnD,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IAGzB;;;OAGG;IACH,YAAY,MAAqB;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,oBAAoB,CACxB,YAAoB,EACpB,OAAsD;QAEtD,OAAO,aAAa,CAAC,QAAQ,CAC3B,oCAAoC,EACpC,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,EAAE,EACb,KAAK,EAAE,OAAO,EAAE,EAAE;YAChB,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,YAAY,EAAE,OAAO,EAAE,EACzB,iCAAiC,CACiB,CAAC;QACvD,CAAC,CACF,CAAC;IACJ,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,mBAAmB,CACvB,YAAoB,EACpB,sBAA8C,EAC9C,OAAqD;QAErD,OAAO,aAAa,CAAC,QAAQ,CAC3B,mCAAmC,EACnC,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,EAAE,EACb,KAAK,EAAE,OAAO,EAAE,EAAE;YAChB,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,YAAY,EAAE,sBAAsB,EAAE,OAAO,EAAE,EACjD,gCAAgC,CAChB,CAAC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EAAE,OAAO,CAAC,0BAA0B;YAC9C,OAAO,EAAE,IAAI;SACd;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qCAAqC,GAA6B;IACtE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,0BAA0B;SAC/C;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,0BAA0B;YAC9C,OAAO,EAAE,IAAI;SACd;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,0BAA0B;YAC9C,OAAO,EAAE,IAAI;SACd;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,0BAA0B;YAC9C,OAAO,EAAE,IAAI;SACd;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,0BAA0B;YAC9C,OAAO,EAAE,IAAI;SACd;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","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 { tracingClient } from \"../tracing\";\nimport { ChatThread } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { ChatApiClient } from \"../chatApiClient\";\nimport {\n ChatThreadListChatReadReceiptsOptionalParams,\n ChatThreadListChatReadReceiptsResponse,\n SendReadReceiptRequest,\n ChatThreadSendChatReadReceiptOptionalParams,\n SendChatMessageRequest,\n ChatThreadSendChatMessageOptionalParams,\n ChatThreadSendChatMessageResponse,\n ChatThreadListChatMessagesOptionalParams,\n ChatThreadListChatMessagesResponse,\n ChatThreadGetChatMessageOptionalParams,\n ChatThreadGetChatMessageResponse,\n UpdateChatMessageRequest,\n ChatThreadUpdateChatMessageOptionalParams,\n ChatThreadDeleteChatMessageOptionalParams,\n ChatThreadListChatParticipantsOptionalParams,\n ChatThreadListChatParticipantsResponse,\n CommunicationIdentifierModel,\n ChatThreadRemoveChatParticipantOptionalParams,\n AddChatParticipantsRequest,\n ChatThreadAddChatParticipantsOptionalParams,\n ChatThreadAddChatParticipantsResponse,\n UpdateChatThreadRequest,\n ChatThreadUpdateChatThreadPropertiesOptionalParams,\n ChatThreadGetChatThreadPropertiesOptionalParams,\n ChatThreadGetChatThreadPropertiesResponse,\n ChatThreadSendTypingNotificationOptionalParams,\n ChatThreadUploadChatImageOptionalParams,\n ChatThreadUploadChatImageResponse,\n ImageViewType,\n ChatThreadGetChatImageOptionalParams,\n ChatThreadGetChatImageResponse,\n ChatThreadDeleteChatImageOptionalParams,\n ChatThreadListChatReadReceiptsNextOptionalParams,\n ChatThreadListChatReadReceiptsNextResponse,\n ChatThreadListChatMessagesNextOptionalParams,\n ChatThreadListChatMessagesNextResponse,\n ChatThreadListChatParticipantsNextOptionalParams,\n ChatThreadListChatParticipantsNextResponse,\n} from \"../models\";\n\n/** Class containing ChatThread operations. */\nexport class ChatThreadImpl implements ChatThread {\n private readonly client: ChatApiClient;\n\n /**\n * Initialize a new instance of the class ChatThread class.\n * @param client Reference to the service client\n */\n constructor(client: ChatApiClient) {\n this.client = client;\n }\n\n /**\n * Gets chat message read receipts for a thread.\n * @param chatThreadId Thread id to get the chat message read receipts for.\n * @param options The options parameters.\n */\n async listChatReadReceipts(\n chatThreadId: string,\n options?: ChatThreadListChatReadReceiptsOptionalParams,\n ): Promise<ChatThreadListChatReadReceiptsResponse> {\n return tracingClient.withSpan(\n \"ChatApiClient.listChatReadReceipts\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, options },\n listChatReadReceiptsOperationSpec,\n ) as Promise<ChatThreadListChatReadReceiptsResponse>;\n },\n );\n }\n\n /**\n * Sends a read receipt event to a thread, on behalf of a user.\n * @param chatThreadId Thread id to send the read receipt event to.\n * @param sendReadReceiptRequest Read receipt details.\n * @param options The options parameters.\n */\n async sendChatReadReceipt(\n chatThreadId: string,\n sendReadReceiptRequest: SendReadReceiptRequest,\n options?: ChatThreadSendChatReadReceiptOptionalParams,\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ChatApiClient.sendChatReadReceipt\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, sendReadReceiptRequest, options },\n sendChatReadReceiptOperationSpec,\n ) as Promise<void>;\n },\n );\n }\n\n /**\n * Sends a message to a thread.\n * @param chatThreadId The thread id to send the message to.\n * @param sendChatMessageRequest Details of the message to send.\n * @param options The options parameters.\n */\n async sendChatMessage(\n chatThreadId: string,\n sendChatMessageRequest: SendChatMessageRequest,\n options?: ChatThreadSendChatMessageOptionalParams,\n ): Promise<ChatThreadSendChatMessageResponse> {\n return tracingClient.withSpan(\n \"ChatApiClient.sendChatMessage\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, sendChatMessageRequest, options },\n sendChatMessageOperationSpec,\n ) as Promise<ChatThreadSendChatMessageResponse>;\n },\n );\n }\n\n /**\n * Gets a list of messages from a thread.\n * @param chatThreadId The thread id of the message.\n * @param options The options parameters.\n */\n async listChatMessages(\n chatThreadId: string,\n options?: ChatThreadListChatMessagesOptionalParams,\n ): Promise<ChatThreadListChatMessagesResponse> {\n return tracingClient.withSpan(\n \"ChatApiClient.listChatMessages\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, options },\n listChatMessagesOperationSpec,\n ) as Promise<ChatThreadListChatMessagesResponse>;\n },\n );\n }\n\n /**\n * Gets a message by id.\n * @param chatThreadId The thread id to which the message was sent.\n * @param chatMessageId The message id.\n * @param options The options parameters.\n */\n async getChatMessage(\n chatThreadId: string,\n chatMessageId: string,\n options?: ChatThreadGetChatMessageOptionalParams,\n ): Promise<ChatThreadGetChatMessageResponse> {\n return tracingClient.withSpan(\n \"ChatApiClient.getChatMessage\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, chatMessageId, options },\n getChatMessageOperationSpec,\n ) as Promise<ChatThreadGetChatMessageResponse>;\n },\n );\n }\n\n /**\n * Updates a message.\n * @param chatThreadId The thread id to which the message was sent.\n * @param chatMessageId The message id.\n * @param updateChatMessageRequest Details of the request to update the message.\n * @param options The options parameters.\n */\n async updateChatMessage(\n chatThreadId: string,\n chatMessageId: string,\n updateChatMessageRequest: UpdateChatMessageRequest,\n options?: ChatThreadUpdateChatMessageOptionalParams,\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ChatApiClient.updateChatMessage\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, chatMessageId, updateChatMessageRequest, options },\n updateChatMessageOperationSpec,\n ) as Promise<void>;\n },\n );\n }\n\n /**\n * Deletes a message.\n * @param chatThreadId The thread id to which the message was sent.\n * @param chatMessageId The message id.\n * @param options The options parameters.\n */\n async deleteChatMessage(\n chatThreadId: string,\n chatMessageId: string,\n options?: ChatThreadDeleteChatMessageOptionalParams,\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ChatApiClient.deleteChatMessage\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, chatMessageId, options },\n deleteChatMessageOperationSpec,\n ) as Promise<void>;\n },\n );\n }\n\n /**\n * Gets the participants of a thread.\n * @param chatThreadId Thread id to get participants for.\n * @param options The options parameters.\n */\n async listChatParticipants(\n chatThreadId: string,\n options?: ChatThreadListChatParticipantsOptionalParams,\n ): Promise<ChatThreadListChatParticipantsResponse> {\n return tracingClient.withSpan(\n \"ChatApiClient.listChatParticipants\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, options },\n listChatParticipantsOperationSpec,\n ) as Promise<ChatThreadListChatParticipantsResponse>;\n },\n );\n }\n\n /**\n * Remove a participant from a thread.\n * @param chatThreadId Thread id to remove the participant from.\n * @param participantCommunicationIdentifier Id of the thread participant to remove from the thread.\n * @param options The options parameters.\n */\n async removeChatParticipant(\n chatThreadId: string,\n participantCommunicationIdentifier: CommunicationIdentifierModel,\n options?: ChatThreadRemoveChatParticipantOptionalParams,\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ChatApiClient.removeChatParticipant\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, participantCommunicationIdentifier, options },\n removeChatParticipantOperationSpec,\n ) as Promise<void>;\n },\n );\n }\n\n /**\n * Adds thread participants to a thread. If participants already exist, no change occurs.\n * @param chatThreadId Id of the thread to add participants to.\n * @param addChatParticipantsRequest Thread participants to be added to the thread.\n * @param options The options parameters.\n */\n async addChatParticipants(\n chatThreadId: string,\n addChatParticipantsRequest: AddChatParticipantsRequest,\n options?: ChatThreadAddChatParticipantsOptionalParams,\n ): Promise<ChatThreadAddChatParticipantsResponse> {\n return tracingClient.withSpan(\n \"ChatApiClient.addChatParticipants\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, addChatParticipantsRequest, options },\n addChatParticipantsOperationSpec,\n ) as Promise<ChatThreadAddChatParticipantsResponse>;\n },\n );\n }\n\n /**\n * Updates a thread's properties.\n * @param chatThreadId The id of the thread to update.\n * @param updateChatThreadRequest Request payload for updating a chat thread.\n * @param options The options parameters.\n */\n async updateChatThreadProperties(\n chatThreadId: string,\n updateChatThreadRequest: UpdateChatThreadRequest,\n options?: ChatThreadUpdateChatThreadPropertiesOptionalParams,\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ChatApiClient.updateChatThreadProperties\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, updateChatThreadRequest, options },\n updateChatThreadPropertiesOperationSpec,\n ) as Promise<void>;\n },\n );\n }\n\n /**\n * Gets a chat thread's properties.\n * @param chatThreadId Id of the thread.\n * @param options The options parameters.\n */\n async getChatThreadProperties(\n chatThreadId: string,\n options?: ChatThreadGetChatThreadPropertiesOptionalParams,\n ): Promise<ChatThreadGetChatThreadPropertiesResponse> {\n return tracingClient.withSpan(\n \"ChatApiClient.getChatThreadProperties\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, options },\n getChatThreadPropertiesOperationSpec,\n ) as Promise<ChatThreadGetChatThreadPropertiesResponse>;\n },\n );\n }\n\n /**\n * Posts a typing event to a thread, on behalf of a user.\n * @param chatThreadId Id of the thread.\n * @param options The options parameters.\n */\n async sendTypingNotification(\n chatThreadId: string,\n options?: ChatThreadSendTypingNotificationOptionalParams,\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ChatApiClient.sendTypingNotification\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, options },\n sendTypingNotificationOperationSpec,\n ) as Promise<void>;\n },\n );\n }\n\n /**\n * Upload an image in a thread, on behalf of a user.\n * @param chatThreadId Thread id where the uploaded image belongs to. (Teams meeting only)\n * @param chatImageFile Image binary data, allowed image formats: jpeg, png, gif, heic, webp\n * @param options The options parameters.\n */\n async uploadChatImage(\n chatThreadId: string,\n chatImageFile: coreRestPipeline.RequestBodyType,\n options?: ChatThreadUploadChatImageOptionalParams,\n ): Promise<ChatThreadUploadChatImageResponse> {\n return tracingClient.withSpan(\n \"ChatApiClient.uploadChatImage\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, chatImageFile, options },\n uploadChatImageOperationSpec,\n ) as Promise<ChatThreadUploadChatImageResponse>;\n },\n );\n }\n\n /**\n * Get an image by view type.\n * @param chatThreadId The thread id to which the message was sent.\n * @param imageId The image id.\n * @param imageViewType The view type of image.\n * @param options The options parameters.\n */\n async getChatImage(\n chatThreadId: string,\n imageId: string,\n imageViewType: ImageViewType,\n options?: ChatThreadGetChatImageOptionalParams,\n ): Promise<ChatThreadGetChatImageResponse> {\n return tracingClient.withSpan(\n \"ChatApiClient.getChatImage\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, imageId, imageViewType, options },\n getChatImageOperationSpec,\n ) as Promise<ChatThreadGetChatImageResponse>;\n },\n );\n }\n\n /**\n * Deletes a image.\n * @param chatThreadId The thread id to which the message was sent.\n * @param imageId The image id.\n * @param options The options parameters.\n */\n async deleteChatImage(\n chatThreadId: string,\n imageId: string,\n options?: ChatThreadDeleteChatImageOptionalParams,\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ChatApiClient.deleteChatImage\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, imageId, options },\n deleteChatImageOperationSpec,\n ) as Promise<void>;\n },\n );\n }\n\n /**\n * ListChatReadReceiptsNext\n * @param chatThreadId Thread id to get the chat message read receipts for.\n * @param nextLink The nextLink from the previous successful call to the ListChatReadReceipts method.\n * @param options The options parameters.\n */\n async listChatReadReceiptsNext(\n chatThreadId: string,\n nextLink: string,\n options?: ChatThreadListChatReadReceiptsNextOptionalParams,\n ): Promise<ChatThreadListChatReadReceiptsNextResponse> {\n return tracingClient.withSpan(\n \"ChatApiClient.listChatReadReceiptsNext\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, nextLink, options },\n listChatReadReceiptsNextOperationSpec,\n ) as Promise<ChatThreadListChatReadReceiptsNextResponse>;\n },\n );\n }\n\n /**\n * ListChatMessagesNext\n * @param chatThreadId The thread id of the message.\n * @param nextLink The nextLink from the previous successful call to the ListChatMessages method.\n * @param options The options parameters.\n */\n async listChatMessagesNext(\n chatThreadId: string,\n nextLink: string,\n options?: ChatThreadListChatMessagesNextOptionalParams,\n ): Promise<ChatThreadListChatMessagesNextResponse> {\n return tracingClient.withSpan(\n \"ChatApiClient.listChatMessagesNext\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, nextLink, options },\n listChatMessagesNextOperationSpec,\n ) as Promise<ChatThreadListChatMessagesNextResponse>;\n },\n );\n }\n\n /**\n * ListChatParticipantsNext\n * @param chatThreadId Thread id to get participants for.\n * @param nextLink The nextLink from the previous successful call to the ListChatParticipants method.\n * @param options The options parameters.\n */\n async listChatParticipantsNext(\n chatThreadId: string,\n nextLink: string,\n options?: ChatThreadListChatParticipantsNextOptionalParams,\n ): Promise<ChatThreadListChatParticipantsNextResponse> {\n return tracingClient.withSpan(\n \"ChatApiClient.listChatParticipantsNext\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, nextLink, options },\n listChatParticipantsNextOperationSpec,\n ) as Promise<ChatThreadListChatParticipantsNextResponse>;\n },\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listChatReadReceiptsOperationSpec: coreClient.OperationSpec = {\n path: \"/chat/threads/{chatThreadId}/readReceipts\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ChatMessageReadReceiptsCollection,\n },\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n queryParameters: [\n Parameters.maxPageSize,\n Parameters.skip,\n Parameters.apiVersion,\n ],\n urlParameters: [Parameters.endpoint, Parameters.chatThreadId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst sendChatReadReceiptOperationSpec: coreClient.OperationSpec = {\n path: \"/chat/threads/{chatThreadId}/readReceipts\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n requestBody: Parameters.sendReadReceiptRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.chatThreadId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst sendChatMessageOperationSpec: coreClient.OperationSpec = {\n path: \"/chat/threads/{chatThreadId}/messages\",\n httpMethod: \"POST\",\n responses: {\n 201: {\n bodyMapper: Mappers.SendChatMessageResult,\n },\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n requestBody: Parameters.sendChatMessageRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.chatThreadId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listChatMessagesOperationSpec: coreClient.OperationSpec = {\n path: \"/chat/threads/{chatThreadId}/messages\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ChatMessagesCollection,\n },\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n queryParameters: [\n Parameters.maxPageSize,\n Parameters.apiVersion,\n Parameters.startTime,\n ],\n urlParameters: [Parameters.endpoint, Parameters.chatThreadId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getChatMessageOperationSpec: coreClient.OperationSpec = {\n path: \"/chat/threads/{chatThreadId}/messages/{chatMessageId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ChatMessage,\n },\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.endpoint,\n Parameters.chatThreadId,\n Parameters.chatMessageId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateChatMessageOperationSpec: coreClient.OperationSpec = {\n path: \"/chat/threads/{chatThreadId}/messages/{chatMessageId}\",\n httpMethod: \"PATCH\",\n responses: {\n 204: {},\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n requestBody: Parameters.updateChatMessageRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.endpoint,\n Parameters.chatThreadId,\n Parameters.chatMessageId,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType1],\n mediaType: \"json\",\n serializer,\n};\nconst deleteChatMessageOperationSpec: coreClient.OperationSpec = {\n path: \"/chat/threads/{chatThreadId}/messages/{chatMessageId}\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {},\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.endpoint,\n Parameters.chatThreadId,\n Parameters.chatMessageId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listChatParticipantsOperationSpec: coreClient.OperationSpec = {\n path: \"/chat/threads/{chatThreadId}/participants\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ChatParticipantsCollection,\n },\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n queryParameters: [\n Parameters.maxPageSize,\n Parameters.skip,\n Parameters.apiVersion,\n ],\n urlParameters: [Parameters.endpoint, Parameters.chatThreadId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst removeChatParticipantOperationSpec: coreClient.OperationSpec = {\n path: \"/chat/threads/{chatThreadId}/participants/:remove\",\n httpMethod: \"POST\",\n responses: {\n 204: {},\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n requestBody: Parameters.participantCommunicationIdentifier,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.chatThreadId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst addChatParticipantsOperationSpec: coreClient.OperationSpec = {\n path: \"/chat/threads/{chatThreadId}/participants/:add\",\n httpMethod: \"POST\",\n responses: {\n 201: {\n bodyMapper: Mappers.AddChatParticipantsResult,\n },\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n requestBody: Parameters.addChatParticipantsRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.chatThreadId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst updateChatThreadPropertiesOperationSpec: coreClient.OperationSpec = {\n path: \"/chat/threads/{chatThreadId}\",\n httpMethod: \"PATCH\",\n responses: {\n 204: {},\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n requestBody: Parameters.updateChatThreadRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.chatThreadId],\n headerParameters: [Parameters.accept, Parameters.contentType1],\n mediaType: \"json\",\n serializer,\n};\nconst getChatThreadPropertiesOperationSpec: coreClient.OperationSpec = {\n path: \"/chat/threads/{chatThreadId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ChatThreadProperties,\n },\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.chatThreadId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst sendTypingNotificationOperationSpec: coreClient.OperationSpec = {\n path: \"/chat/threads/{chatThreadId}/typing\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n requestBody: Parameters.sendTypingNotificationRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.chatThreadId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst uploadChatImageOperationSpec: coreClient.OperationSpec = {\n path: \"/chat/threads/{chatThreadId}/images\",\n httpMethod: \"POST\",\n responses: {\n 201: {\n bodyMapper: Mappers.UploadChatImageResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.chatImageFile,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.chatThreadId],\n headerParameters: [\n Parameters.contentType2,\n Parameters.accept1,\n Parameters.imageFilename,\n ],\n mediaType: \"binary\",\n serializer,\n};\nconst getChatImageOperationSpec: coreClient.OperationSpec = {\n path: \"/chat/threads/{chatThreadId}/images/{imageId}/view/{imageViewType}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: {\n type: { name: \"Stream\" },\n serializedName: \"parsedResponse\",\n },\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.endpoint,\n Parameters.chatThreadId,\n Parameters.imageId,\n Parameters.imageViewType,\n ],\n headerParameters: [Parameters.accept2],\n serializer,\n};\nconst deleteChatImageOperationSpec: coreClient.OperationSpec = {\n path: \"/chat/threads/{chatThreadId}/images/{imageId}\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.endpoint,\n Parameters.chatThreadId,\n Parameters.imageId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listChatReadReceiptsNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ChatMessageReadReceiptsCollection,\n },\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n urlParameters: [\n Parameters.endpoint,\n Parameters.chatThreadId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listChatMessagesNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ChatMessagesCollection,\n },\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n urlParameters: [\n Parameters.endpoint,\n Parameters.chatThreadId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listChatParticipantsNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ChatParticipantsCollection,\n },\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n urlParameters: [\n Parameters.endpoint,\n Parameters.chatThreadId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chatThread.js","sourceRoot":"","sources":["../../../../../src/generated/src/operationsInterfaces/chatThread.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","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 {\n ChatThreadListChatReadReceiptsOptionalParams,\n ChatThreadListChatReadReceiptsResponse,\n SendReadReceiptRequest,\n ChatThreadSendChatReadReceiptOptionalParams,\n SendChatMessageRequest,\n ChatThreadSendChatMessageOptionalParams,\n ChatThreadSendChatMessageResponse,\n ChatThreadListChatMessagesOptionalParams,\n ChatThreadListChatMessagesResponse,\n ChatThreadGetChatMessageOptionalParams,\n ChatThreadGetChatMessageResponse,\n UpdateChatMessageRequest,\n ChatThreadUpdateChatMessageOptionalParams,\n ChatThreadDeleteChatMessageOptionalParams,\n ChatThreadListChatParticipantsOptionalParams,\n ChatThreadListChatParticipantsResponse,\n CommunicationIdentifierModel,\n ChatThreadRemoveChatParticipantOptionalParams,\n AddChatParticipantsRequest,\n ChatThreadAddChatParticipantsOptionalParams,\n ChatThreadAddChatParticipantsResponse,\n UpdateChatThreadRequest,\n ChatThreadUpdateChatThreadPropertiesOptionalParams,\n ChatThreadGetChatThreadPropertiesOptionalParams,\n ChatThreadGetChatThreadPropertiesResponse,\n ChatThreadSendTypingNotificationOptionalParams,\n ChatThreadListChatReadReceiptsNextOptionalParams,\n ChatThreadListChatReadReceiptsNextResponse,\n ChatThreadListChatMessagesNextOptionalParams,\n ChatThreadListChatMessagesNextResponse,\n ChatThreadListChatParticipantsNextOptionalParams,\n ChatThreadListChatParticipantsNextResponse,\n} from \"../models\";\n\n/** Interface representing a ChatThread. */\nexport interface ChatThread {\n /**\n * Gets chat message read receipts for a thread.\n * @param chatThreadId Thread id to get the chat message read receipts for.\n * @param options The options parameters.\n */\n listChatReadReceipts(\n chatThreadId: string,\n options?: ChatThreadListChatReadReceiptsOptionalParams,\n ): Promise<ChatThreadListChatReadReceiptsResponse>;\n /**\n * Sends a read receipt event to a thread, on behalf of a user.\n * @param chatThreadId Thread id to send the read receipt event to.\n * @param sendReadReceiptRequest Read receipt details.\n * @param options The options parameters.\n */\n sendChatReadReceipt(\n chatThreadId: string,\n sendReadReceiptRequest: SendReadReceiptRequest,\n options?: ChatThreadSendChatReadReceiptOptionalParams,\n ): Promise<void>;\n /**\n * Sends a message to a thread.\n * @param chatThreadId The thread id to send the message to.\n * @param sendChatMessageRequest Details of the message to send.\n * @param options The options parameters.\n */\n sendChatMessage(\n chatThreadId: string,\n sendChatMessageRequest: SendChatMessageRequest,\n options?: ChatThreadSendChatMessageOptionalParams,\n ): Promise<ChatThreadSendChatMessageResponse>;\n /**\n * Gets a list of messages from a thread.\n * @param chatThreadId The thread id of the message.\n * @param options The options parameters.\n */\n listChatMessages(\n chatThreadId: string,\n options?: ChatThreadListChatMessagesOptionalParams,\n ): Promise<ChatThreadListChatMessagesResponse>;\n /**\n * Gets a message by id.\n * @param chatThreadId The thread id to which the message was sent.\n * @param chatMessageId The message id.\n * @param options The options parameters.\n */\n getChatMessage(\n chatThreadId: string,\n chatMessageId: string,\n options?: ChatThreadGetChatMessageOptionalParams,\n ): Promise<ChatThreadGetChatMessageResponse>;\n /**\n * Updates a message.\n * @param chatThreadId The thread id to which the message was sent.\n * @param chatMessageId The message id.\n * @param updateChatMessageRequest Details of the request to update the message.\n * @param options The options parameters.\n */\n updateChatMessage(\n chatThreadId: string,\n chatMessageId: string,\n updateChatMessageRequest: UpdateChatMessageRequest,\n options?: ChatThreadUpdateChatMessageOptionalParams,\n ): Promise<void>;\n /**\n * Deletes a message.\n * @param chatThreadId The thread id to which the message was sent.\n * @param chatMessageId The message id.\n * @param options The options parameters.\n */\n deleteChatMessage(\n chatThreadId: string,\n chatMessageId: string,\n options?: ChatThreadDeleteChatMessageOptionalParams,\n ): Promise<void>;\n /**\n * Gets the participants of a thread.\n * @param chatThreadId Thread id to get participants for.\n * @param options The options parameters.\n */\n listChatParticipants(\n chatThreadId: string,\n options?: ChatThreadListChatParticipantsOptionalParams,\n ): Promise<ChatThreadListChatParticipantsResponse>;\n /**\n * Remove a participant from a thread.\n * @param chatThreadId Thread id to remove the participant from.\n * @param participantCommunicationIdentifier Id of the thread participant to remove from the thread.\n * @param options The options parameters.\n */\n removeChatParticipant(\n chatThreadId: string,\n participantCommunicationIdentifier: CommunicationIdentifierModel,\n options?: ChatThreadRemoveChatParticipantOptionalParams,\n ): Promise<void>;\n /**\n * Adds thread participants to a thread. If participants already exist, no change occurs.\n * @param chatThreadId Id of the thread to add participants to.\n * @param addChatParticipantsRequest Thread participants to be added to the thread.\n * @param options The options parameters.\n */\n addChatParticipants(\n chatThreadId: string,\n addChatParticipantsRequest: AddChatParticipantsRequest,\n options?: ChatThreadAddChatParticipantsOptionalParams,\n ): Promise<ChatThreadAddChatParticipantsResponse>;\n /**\n * Updates a thread's properties.\n * @param chatThreadId The id of the thread to update.\n * @param updateChatThreadRequest Request payload for updating a chat thread.\n * @param options The options parameters.\n */\n updateChatThreadProperties(\n chatThreadId: string,\n updateChatThreadRequest: UpdateChatThreadRequest,\n options?: ChatThreadUpdateChatThreadPropertiesOptionalParams,\n ): Promise<void>;\n /**\n * Gets a chat thread's properties.\n * @param chatThreadId Id of the thread.\n * @param options The options parameters.\n */\n getChatThreadProperties(\n chatThreadId: string,\n options?: ChatThreadGetChatThreadPropertiesOptionalParams,\n ): Promise<ChatThreadGetChatThreadPropertiesResponse>;\n /**\n * Posts a typing event to a thread, on behalf of a user.\n * @param chatThreadId Id of the thread.\n * @param options The options parameters.\n */\n sendTypingNotification(\n chatThreadId: string,\n options?: ChatThreadSendTypingNotificationOptionalParams,\n ): Promise<void>;\n /**\n * ListChatReadReceiptsNext\n * @param chatThreadId Thread id to get the chat message read receipts for.\n * @param nextLink The nextLink from the previous successful call to the ListChatReadReceipts method.\n * @param options The options parameters.\n */\n listChatReadReceiptsNext(\n chatThreadId: string,\n nextLink: string,\n options?: ChatThreadListChatReadReceiptsNextOptionalParams,\n ): Promise<ChatThreadListChatReadReceiptsNextResponse>;\n /**\n * ListChatMessagesNext\n * @param chatThreadId The thread id of the message.\n * @param nextLink The nextLink from the previous successful call to the ListChatMessages method.\n * @param options The options parameters.\n */\n listChatMessagesNext(\n chatThreadId: string,\n nextLink: string,\n options?: ChatThreadListChatMessagesNextOptionalParams,\n ): Promise<ChatThreadListChatMessagesNextResponse>;\n /**\n * ListChatParticipantsNext\n * @param chatThreadId Thread id to get participants for.\n * @param nextLink The nextLink from the previous successful call to the ListChatParticipants method.\n * @param options The options parameters.\n */\n listChatParticipantsNext(\n chatThreadId: string,\n nextLink: string,\n options?: ChatThreadListChatParticipantsNextOptionalParams,\n ): Promise<ChatThreadListChatParticipantsNextResponse>;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"chatThread.js","sourceRoot":"","sources":["../../../../../src/generated/src/operationsInterfaces/chatThread.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","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 coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n ChatThreadListChatReadReceiptsOptionalParams,\n ChatThreadListChatReadReceiptsResponse,\n SendReadReceiptRequest,\n ChatThreadSendChatReadReceiptOptionalParams,\n SendChatMessageRequest,\n ChatThreadSendChatMessageOptionalParams,\n ChatThreadSendChatMessageResponse,\n ChatThreadListChatMessagesOptionalParams,\n ChatThreadListChatMessagesResponse,\n ChatThreadGetChatMessageOptionalParams,\n ChatThreadGetChatMessageResponse,\n UpdateChatMessageRequest,\n ChatThreadUpdateChatMessageOptionalParams,\n ChatThreadDeleteChatMessageOptionalParams,\n ChatThreadListChatParticipantsOptionalParams,\n ChatThreadListChatParticipantsResponse,\n CommunicationIdentifierModel,\n ChatThreadRemoveChatParticipantOptionalParams,\n AddChatParticipantsRequest,\n ChatThreadAddChatParticipantsOptionalParams,\n ChatThreadAddChatParticipantsResponse,\n UpdateChatThreadRequest,\n ChatThreadUpdateChatThreadPropertiesOptionalParams,\n ChatThreadGetChatThreadPropertiesOptionalParams,\n ChatThreadGetChatThreadPropertiesResponse,\n ChatThreadSendTypingNotificationOptionalParams,\n ChatThreadUploadChatImageOptionalParams,\n ChatThreadUploadChatImageResponse,\n ImageViewType,\n ChatThreadGetChatImageOptionalParams,\n ChatThreadGetChatImageResponse,\n ChatThreadDeleteChatImageOptionalParams,\n ChatThreadListChatReadReceiptsNextOptionalParams,\n ChatThreadListChatReadReceiptsNextResponse,\n ChatThreadListChatMessagesNextOptionalParams,\n ChatThreadListChatMessagesNextResponse,\n ChatThreadListChatParticipantsNextOptionalParams,\n ChatThreadListChatParticipantsNextResponse,\n} from \"../models\";\n\n/** Interface representing a ChatThread. */\nexport interface ChatThread {\n /**\n * Gets chat message read receipts for a thread.\n * @param chatThreadId Thread id to get the chat message read receipts for.\n * @param options The options parameters.\n */\n listChatReadReceipts(\n chatThreadId: string,\n options?: ChatThreadListChatReadReceiptsOptionalParams,\n ): Promise<ChatThreadListChatReadReceiptsResponse>;\n /**\n * Sends a read receipt event to a thread, on behalf of a user.\n * @param chatThreadId Thread id to send the read receipt event to.\n * @param sendReadReceiptRequest Read receipt details.\n * @param options The options parameters.\n */\n sendChatReadReceipt(\n chatThreadId: string,\n sendReadReceiptRequest: SendReadReceiptRequest,\n options?: ChatThreadSendChatReadReceiptOptionalParams,\n ): Promise<void>;\n /**\n * Sends a message to a thread.\n * @param chatThreadId The thread id to send the message to.\n * @param sendChatMessageRequest Details of the message to send.\n * @param options The options parameters.\n */\n sendChatMessage(\n chatThreadId: string,\n sendChatMessageRequest: SendChatMessageRequest,\n options?: ChatThreadSendChatMessageOptionalParams,\n ): Promise<ChatThreadSendChatMessageResponse>;\n /**\n * Gets a list of messages from a thread.\n * @param chatThreadId The thread id of the message.\n * @param options The options parameters.\n */\n listChatMessages(\n chatThreadId: string,\n options?: ChatThreadListChatMessagesOptionalParams,\n ): Promise<ChatThreadListChatMessagesResponse>;\n /**\n * Gets a message by id.\n * @param chatThreadId The thread id to which the message was sent.\n * @param chatMessageId The message id.\n * @param options The options parameters.\n */\n getChatMessage(\n chatThreadId: string,\n chatMessageId: string,\n options?: ChatThreadGetChatMessageOptionalParams,\n ): Promise<ChatThreadGetChatMessageResponse>;\n /**\n * Updates a message.\n * @param chatThreadId The thread id to which the message was sent.\n * @param chatMessageId The message id.\n * @param updateChatMessageRequest Details of the request to update the message.\n * @param options The options parameters.\n */\n updateChatMessage(\n chatThreadId: string,\n chatMessageId: string,\n updateChatMessageRequest: UpdateChatMessageRequest,\n options?: ChatThreadUpdateChatMessageOptionalParams,\n ): Promise<void>;\n /**\n * Deletes a message.\n * @param chatThreadId The thread id to which the message was sent.\n * @param chatMessageId The message id.\n * @param options The options parameters.\n */\n deleteChatMessage(\n chatThreadId: string,\n chatMessageId: string,\n options?: ChatThreadDeleteChatMessageOptionalParams,\n ): Promise<void>;\n /**\n * Gets the participants of a thread.\n * @param chatThreadId Thread id to get participants for.\n * @param options The options parameters.\n */\n listChatParticipants(\n chatThreadId: string,\n options?: ChatThreadListChatParticipantsOptionalParams,\n ): Promise<ChatThreadListChatParticipantsResponse>;\n /**\n * Remove a participant from a thread.\n * @param chatThreadId Thread id to remove the participant from.\n * @param participantCommunicationIdentifier Id of the thread participant to remove from the thread.\n * @param options The options parameters.\n */\n removeChatParticipant(\n chatThreadId: string,\n participantCommunicationIdentifier: CommunicationIdentifierModel,\n options?: ChatThreadRemoveChatParticipantOptionalParams,\n ): Promise<void>;\n /**\n * Adds thread participants to a thread. If participants already exist, no change occurs.\n * @param chatThreadId Id of the thread to add participants to.\n * @param addChatParticipantsRequest Thread participants to be added to the thread.\n * @param options The options parameters.\n */\n addChatParticipants(\n chatThreadId: string,\n addChatParticipantsRequest: AddChatParticipantsRequest,\n options?: ChatThreadAddChatParticipantsOptionalParams,\n ): Promise<ChatThreadAddChatParticipantsResponse>;\n /**\n * Updates a thread's properties.\n * @param chatThreadId The id of the thread to update.\n * @param updateChatThreadRequest Request payload for updating a chat thread.\n * @param options The options parameters.\n */\n updateChatThreadProperties(\n chatThreadId: string,\n updateChatThreadRequest: UpdateChatThreadRequest,\n options?: ChatThreadUpdateChatThreadPropertiesOptionalParams,\n ): Promise<void>;\n /**\n * Gets a chat thread's properties.\n * @param chatThreadId Id of the thread.\n * @param options The options parameters.\n */\n getChatThreadProperties(\n chatThreadId: string,\n options?: ChatThreadGetChatThreadPropertiesOptionalParams,\n ): Promise<ChatThreadGetChatThreadPropertiesResponse>;\n /**\n * Posts a typing event to a thread, on behalf of a user.\n * @param chatThreadId Id of the thread.\n * @param options The options parameters.\n */\n sendTypingNotification(\n chatThreadId: string,\n options?: ChatThreadSendTypingNotificationOptionalParams,\n ): Promise<void>;\n /**\n * Upload an image in a thread, on behalf of a user.\n * @param chatThreadId Thread id where the uploaded image belongs to. (Teams meeting only)\n * @param chatImageFile Image binary data, allowed image formats: jpeg, png, gif, heic, webp\n * @param options The options parameters.\n */\n uploadChatImage(\n chatThreadId: string,\n chatImageFile: coreRestPipeline.RequestBodyType,\n options?: ChatThreadUploadChatImageOptionalParams,\n ): Promise<ChatThreadUploadChatImageResponse>;\n /**\n * Get an image by view type.\n * @param chatThreadId The thread id to which the message was sent.\n * @param imageId The image id.\n * @param imageViewType The view type of image.\n * @param options The options parameters.\n */\n getChatImage(\n chatThreadId: string,\n imageId: string,\n imageViewType: ImageViewType,\n options?: ChatThreadGetChatImageOptionalParams,\n ): Promise<ChatThreadGetChatImageResponse>;\n /**\n * Deletes a image.\n * @param chatThreadId The thread id to which the message was sent.\n * @param imageId The image id.\n * @param options The options parameters.\n */\n deleteChatImage(\n chatThreadId: string,\n imageId: string,\n options?: ChatThreadDeleteChatImageOptionalParams,\n ): Promise<void>;\n /**\n * ListChatReadReceiptsNext\n * @param chatThreadId Thread id to get the chat message read receipts for.\n * @param nextLink The nextLink from the previous successful call to the ListChatReadReceipts method.\n * @param options The options parameters.\n */\n listChatReadReceiptsNext(\n chatThreadId: string,\n nextLink: string,\n options?: ChatThreadListChatReadReceiptsNextOptionalParams,\n ): Promise<ChatThreadListChatReadReceiptsNextResponse>;\n /**\n * ListChatMessagesNext\n * @param chatThreadId The thread id of the message.\n * @param nextLink The nextLink from the previous successful call to the ListChatMessages method.\n * @param options The options parameters.\n */\n listChatMessagesNext(\n chatThreadId: string,\n nextLink: string,\n options?: ChatThreadListChatMessagesNextOptionalParams,\n ): Promise<ChatThreadListChatMessagesNextResponse>;\n /**\n * ListChatParticipantsNext\n * @param chatThreadId Thread id to get participants for.\n * @param nextLink The nextLink from the previous successful call to the ListChatParticipants method.\n * @param options The options parameters.\n */\n listChatParticipantsNext(\n chatThreadId: string,\n nextLink: string,\n options?: ChatThreadListChatParticipantsNextOptionalParams,\n ): Promise<ChatThreadListChatParticipantsNextResponse>;\n}\n"]}
|
|
@@ -9,6 +9,6 @@ import { createTracingClient } from "@azure/core-tracing";
|
|
|
9
9
|
export const tracingClient = createTracingClient({
|
|
10
10
|
namespace: "Azure.Communication",
|
|
11
11
|
packageName: "@azure/communication-chat",
|
|
12
|
-
packageVersion: "1.
|
|
12
|
+
packageVersion: "1.6.0-beta.2",
|
|
13
13
|
});
|
|
14
14
|
//# sourceMappingURL=tracing.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tracing.js","sourceRoot":"","sources":["../../../../src/generated/src/tracing.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE1D,MAAM,CAAC,MAAM,aAAa,GAAG,mBAAmB,CAAC;IAC/C,SAAS,EAAE,qBAAqB;IAChC,WAAW,EAAE,2BAA2B;IACxC,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"tracing.js","sourceRoot":"","sources":["../../../../src/generated/src/tracing.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE1D,MAAM,CAAC,MAAM,aAAa,GAAG,mBAAmB,CAAC;IAC/C,SAAS,EAAE,qBAAqB;IAChC,WAAW,EAAE,2BAA2B;IACxC,cAAc,EAAE,cAAc;CAC/B,CAAC,CAAC","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 { createTracingClient } from \"@azure/core-tracing\";\n\nexport const tracingClient = createTracingClient({\n namespace: \"Azure.Communication\",\n packageName: \"@azure/communication-chat\",\n packageVersion: \"1.6.0-beta.2\",\n});\n"]}
|
|
@@ -24,6 +24,41 @@ export const mapToAddChatParticipantsRequestRestModel = (addParticipantsRequest)
|
|
|
24
24
|
participants: (_a = addParticipantsRequest.participants) === null || _a === void 0 ? void 0 : _a.map((participant) => mapToChatParticipantRestModel(participant)),
|
|
25
25
|
};
|
|
26
26
|
};
|
|
27
|
+
/**
|
|
28
|
+
* @internal
|
|
29
|
+
* Mapping chat attachment SDK model to chat attachment REST model
|
|
30
|
+
*/
|
|
31
|
+
export const mapToChatAttachmentRestModel = (chatAttachment) => {
|
|
32
|
+
const { attachmentType } = chatAttachment, rest = __rest(chatAttachment, ["attachmentType"]);
|
|
33
|
+
if (attachmentType === "unknown") {
|
|
34
|
+
throw new Error("'unknown' attachmentType not supported");
|
|
35
|
+
}
|
|
36
|
+
return Object.assign(Object.assign({}, rest), { attachmentType: attachmentType });
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* @internal
|
|
40
|
+
* Mapping send message request and options to send chat message request REST model
|
|
41
|
+
*/
|
|
42
|
+
export const mapToSendChatMessageRequestRestModel = (sendMessageRequest, sendMessageOptions) => {
|
|
43
|
+
const { attachments } = sendMessageOptions, restOptions = __rest(sendMessageOptions, ["attachments"]);
|
|
44
|
+
let request = Object.assign(Object.assign({}, sendMessageRequest), restOptions);
|
|
45
|
+
if (attachments) {
|
|
46
|
+
request = Object.assign(Object.assign({}, request), { attachments: attachments === null || attachments === void 0 ? void 0 : attachments.map((attachment) => mapToChatAttachmentRestModel(attachment)) });
|
|
47
|
+
}
|
|
48
|
+
return request;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* @internal
|
|
52
|
+
* Mapping update message options to update chat message request REST model
|
|
53
|
+
*/
|
|
54
|
+
export const mapToUpdateChatMessageRequestRestModel = (updateMessageOptions) => {
|
|
55
|
+
const { attachments } = updateMessageOptions, restOptions = __rest(updateMessageOptions, ["attachments"]);
|
|
56
|
+
let request = Object.assign({}, restOptions);
|
|
57
|
+
if (attachments) {
|
|
58
|
+
request = Object.assign(Object.assign({}, request), { attachments: attachments === null || attachments === void 0 ? void 0 : attachments.map((attachment) => mapToChatAttachmentRestModel(attachment)) });
|
|
59
|
+
}
|
|
60
|
+
return request;
|
|
61
|
+
};
|
|
27
62
|
/**
|
|
28
63
|
* @internal
|
|
29
64
|
* Mapping chat participant REST model to chat participant SDK model
|
|
@@ -32,11 +67,19 @@ export const mapToChatParticipantSdkModel = (chatParticipant) => {
|
|
|
32
67
|
const { communicationIdentifier } = chatParticipant, rest = __rest(chatParticipant, ["communicationIdentifier"]);
|
|
33
68
|
return Object.assign(Object.assign({}, rest), { id: deserializeCommunicationIdentifier(communicationIdentifier) });
|
|
34
69
|
};
|
|
70
|
+
/**
|
|
71
|
+
* @internal
|
|
72
|
+
* Mapping chat attachment REST model to chat attachment SDK model
|
|
73
|
+
*/
|
|
74
|
+
export const mapToChatAttachmentSdkModel = (chatAttachment) => {
|
|
75
|
+
const { attachmentType } = chatAttachment, rest = __rest(chatAttachment, ["attachmentType"]);
|
|
76
|
+
return Object.assign(Object.assign({}, rest), { attachmentType: attachmentType });
|
|
77
|
+
};
|
|
35
78
|
/**
|
|
36
79
|
* @internal
|
|
37
80
|
*/
|
|
38
81
|
export const mapToChatContentSdkModel = (content) => {
|
|
39
|
-
const { participants, initiatorCommunicationIdentifier } = content, otherChatContents = __rest(content, ["participants", "initiatorCommunicationIdentifier"]);
|
|
82
|
+
const { participants, attachments, initiatorCommunicationIdentifier } = content, otherChatContents = __rest(content, ["participants", "attachments", "initiatorCommunicationIdentifier"]);
|
|
40
83
|
let result = Object.assign({}, otherChatContents);
|
|
41
84
|
if (initiatorCommunicationIdentifier) {
|
|
42
85
|
const initiator = deserializeCommunicationIdentifier(initiatorCommunicationIdentifier);
|
|
@@ -45,6 +88,19 @@ export const mapToChatContentSdkModel = (content) => {
|
|
|
45
88
|
if (participants) {
|
|
46
89
|
result = Object.assign(Object.assign({}, result), { participants: participants === null || participants === void 0 ? void 0 : participants.map((participant) => mapToChatParticipantSdkModel(participant)) });
|
|
47
90
|
}
|
|
91
|
+
if (attachments) {
|
|
92
|
+
result = Object.assign(Object.assign({}, result), { attachments: attachments === null || attachments === void 0 ? void 0 : attachments.map((attachment) => mapToChatAttachmentSdkModel(attachment)) });
|
|
93
|
+
}
|
|
94
|
+
return result;
|
|
95
|
+
};
|
|
96
|
+
/**
|
|
97
|
+
* @internal
|
|
98
|
+
*/
|
|
99
|
+
export const mapToChatPolicyViolationSdkModel = (policyVolation) => {
|
|
100
|
+
const { state } = policyVolation;
|
|
101
|
+
const result = {
|
|
102
|
+
result: state,
|
|
103
|
+
};
|
|
48
104
|
return result;
|
|
49
105
|
};
|
|
50
106
|
/**
|
|
@@ -52,7 +108,7 @@ export const mapToChatContentSdkModel = (content) => {
|
|
|
52
108
|
* Mapping chat message REST model to chat message SDK model
|
|
53
109
|
*/
|
|
54
110
|
export const mapToChatMessageSdkModel = (chatMessage) => {
|
|
55
|
-
const { content, senderCommunicationIdentifier } = chatMessage, otherChatMessage = __rest(chatMessage, ["content", "senderCommunicationIdentifier"]);
|
|
111
|
+
const { content, senderCommunicationIdentifier, policyViolation } = chatMessage, otherChatMessage = __rest(chatMessage, ["content", "senderCommunicationIdentifier", "policyViolation"]);
|
|
56
112
|
let result = Object.assign({}, otherChatMessage);
|
|
57
113
|
if (content) {
|
|
58
114
|
result = Object.assign(Object.assign({}, result), { content: mapToChatContentSdkModel(content) });
|
|
@@ -61,6 +117,9 @@ export const mapToChatMessageSdkModel = (chatMessage) => {
|
|
|
61
117
|
const sender = deserializeCommunicationIdentifier(senderCommunicationIdentifier);
|
|
62
118
|
result = Object.assign(Object.assign({}, result), { sender });
|
|
63
119
|
}
|
|
120
|
+
if (policyViolation) {
|
|
121
|
+
result = Object.assign(Object.assign({}, result), { policyViolation: mapToChatPolicyViolationSdkModel(policyViolation) });
|
|
122
|
+
}
|
|
64
123
|
return result;
|
|
65
124
|
};
|
|
66
125
|
/**
|
|
@@ -71,18 +130,35 @@ export const mapToChatMessagesSdkModelArray = (chatMessagesCollection) => {
|
|
|
71
130
|
var _a;
|
|
72
131
|
return (_a = chatMessagesCollection.value) === null || _a === void 0 ? void 0 : _a.map((chatMessage) => mapToChatMessageSdkModel(chatMessage));
|
|
73
132
|
};
|
|
133
|
+
/**
|
|
134
|
+
* @internal
|
|
135
|
+
* Mapping chat retention policy REST model to chat retention policy SDK model
|
|
136
|
+
*/
|
|
137
|
+
export const mapToRetentionPolicySdkModel = (retentionPolicy) => {
|
|
138
|
+
if (retentionPolicy.kind === "threadCreationDate") {
|
|
139
|
+
return retentionPolicy;
|
|
140
|
+
}
|
|
141
|
+
if (retentionPolicy.kind === "none") {
|
|
142
|
+
return retentionPolicy;
|
|
143
|
+
}
|
|
144
|
+
else {
|
|
145
|
+
throw new Error(`Retention Policy ${retentionPolicy.kind} is not supported`);
|
|
146
|
+
}
|
|
147
|
+
};
|
|
74
148
|
/**
|
|
75
149
|
* @internal
|
|
76
150
|
* Mapping chat thread REST model to chat thread SDK model
|
|
77
151
|
*/
|
|
78
152
|
export const mapToChatThreadPropertiesSdkModel = (chatThread) => {
|
|
79
|
-
const { createdByCommunicationIdentifier } = chatThread, rest = __rest(chatThread, ["createdByCommunicationIdentifier"]);
|
|
153
|
+
const { createdByCommunicationIdentifier, retentionPolicy } = chatThread, rest = __rest(chatThread, ["createdByCommunicationIdentifier", "retentionPolicy"]);
|
|
154
|
+
let result = Object.assign({}, rest);
|
|
80
155
|
if (createdByCommunicationIdentifier) {
|
|
81
|
-
|
|
156
|
+
result = Object.assign(Object.assign({}, result), { createdBy: deserializeCommunicationIdentifier(createdByCommunicationIdentifier) });
|
|
82
157
|
}
|
|
83
|
-
|
|
84
|
-
|
|
158
|
+
if (retentionPolicy) {
|
|
159
|
+
result = Object.assign(Object.assign({}, result), { retentionPolicy: mapToRetentionPolicySdkModel(retentionPolicy) });
|
|
85
160
|
}
|
|
161
|
+
return result;
|
|
86
162
|
};
|
|
87
163
|
/**
|
|
88
164
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mappers.js","sourceRoot":"","sources":["../../../src/models/mappers.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;AAElC,OAAO,EAEL,kCAAkC,EAClC,gCAAgC,GACjC,MAAM,6BAA6B,CAAC;AAarC,MAAM,CAAC,MAAM,qCAAqC,GAAG,CACnD,OAAgC,EACc,EAAE;IAChD,MAAM,EAAE,YAAY,EAAE,gBAAgB,KAAc,OAAO,EAAhB,IAAI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AgC,EAAE,CAAC;QACrC,uCACK,IAAI,KACP,SAAS,EAAE,kCAAkC,CAC3C,gCAAqE,CACtE,IACD;IACJ,CAAC;SAAM,CAAC;QACN,yBAAY,IAAI,EAAG;IACrB,CAAC;AACH,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,mCAAmC,GAAG,CACjD,MAAwC,EAChB,EAAE;IAC1B,MAAM,EAAE,UAAU,KAAc,MAAM,EAAf,IAAI,UAAK,MAAM,EAAhC,cAAuB,CAAS,CAAC;IACvC,IAAI,UAAU,EAAE,CAAC;QACf,uCACK,IAAI,KACP,UAAU,EAAE,iCAAiC,CAAC,UAAU,CAAC,IACzD;IACJ,CAAC;SAAM,CAAC;QACN,yBAAY,IAAI,EAAG;IACrB,CAAC;AACH,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CACtC,WAA6C,EACrB,EAAE;IAC1B,MAAM,EAAE,6BAA6B,KAAc,WAAW,EAApB,IAAI,UAAK,WAAW,EAAxD,iCAA0C,CAAc,CAAC;IAC/D,uCACK,IAAI,KACP,MAAM,EAAE,kCAAkC,CACxC,6BAAkE,CACnE,IACD;AACJ,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport {\n SerializedCommunicationIdentifier,\n deserializeCommunicationIdentifier,\n serializeCommunicationIdentifier,\n} from \"@azure/communication-common\";\nimport * as RestModel from \"../generated/src/models\";\nimport { AddParticipantsRequest } from \"./requests\";\nimport { CreateChatThreadOptions } from \"./options\";\nimport {\n ChatMessage,\n ChatMessageContent,\n ChatMessageReadReceipt,\n ChatParticipant,\n ChatThreadProperties,\n CreateChatThreadResult,\n} from \"./models\";\n\nexport const mapToCreateChatThreadOptionsRestModel = (\n options: CreateChatThreadOptions,\n): RestModel.ChatCreateChatThreadOptionalParams => {\n const { participants, idempotencyToken, ...rest } = options;\n return {\n repeatabilityRequestId: idempotencyToken,\n ...rest,\n };\n};\n\n/**\n * @internal\n * Mapping chat participant customer model to chat participant REST model\n */\nexport const mapToChatParticipantRestModel = (\n chatParticipant: ChatParticipant,\n): RestModel.ChatParticipant => {\n const { id, ...rest } = chatParticipant;\n return {\n ...rest,\n communicationIdentifier: serializeCommunicationIdentifier(id),\n };\n};\n\n/**\n * @internal\n * Mapping add participants request to add chat participants request REST model\n */\nexport const mapToAddChatParticipantsRequestRestModel = (\n addParticipantsRequest: AddParticipantsRequest,\n): RestModel.AddChatParticipantsRequest => {\n return {\n participants: addParticipantsRequest.participants?.map((participant) =>\n mapToChatParticipantRestModel(participant),\n ),\n };\n};\n\n/**\n * @internal\n * Mapping chat participant REST model to chat participant SDK model\n */\nexport const mapToChatParticipantSdkModel = (\n chatParticipant: RestModel.ChatParticipant,\n): ChatParticipant => {\n const { communicationIdentifier, ...rest } = chatParticipant;\n return {\n ...rest,\n id: deserializeCommunicationIdentifier(\n communicationIdentifier as SerializedCommunicationIdentifier,\n ),\n };\n};\n\n/**\n * @internal\n */\nexport const mapToChatContentSdkModel = (\n content: RestModel.ChatMessageContent,\n): ChatMessageContent => {\n const { participants, initiatorCommunicationIdentifier, ...otherChatContents } = content;\n let result: ChatMessageContent = { ...otherChatContents };\n if (initiatorCommunicationIdentifier) {\n const initiator = deserializeCommunicationIdentifier(\n initiatorCommunicationIdentifier as SerializedCommunicationIdentifier,\n );\n result = { ...result, initiator };\n }\n if (participants) {\n result = {\n ...result,\n participants: participants?.map((participant) => mapToChatParticipantSdkModel(participant)),\n };\n }\n return result;\n};\n\n/**\n * @internal\n * Mapping chat message REST model to chat message SDK model\n */\nexport const mapToChatMessageSdkModel = (chatMessage: RestModel.ChatMessage): ChatMessage => {\n const { content, senderCommunicationIdentifier, ...otherChatMessage } = chatMessage;\n let result: ChatMessage = { ...otherChatMessage };\n if (content) {\n result = {\n ...result,\n content: mapToChatContentSdkModel(content),\n };\n }\n if (senderCommunicationIdentifier) {\n const sender = deserializeCommunicationIdentifier(\n senderCommunicationIdentifier as SerializedCommunicationIdentifier,\n );\n result = { ...result, sender };\n }\n return result;\n};\n\n/**\n * @internal\n * Mapping chat messages collection REST model to chat message SDK model array\n */\nexport const mapToChatMessagesSdkModelArray = (\n chatMessagesCollection: RestModel.ChatMessagesCollection,\n): ChatMessage[] => {\n return chatMessagesCollection.value?.map((chatMessage) => mapToChatMessageSdkModel(chatMessage));\n};\n\n/**\n * @internal\n * Mapping chat thread REST model to chat thread SDK model\n */\nexport const mapToChatThreadPropertiesSdkModel = (\n chatThread: RestModel.ChatThreadProperties,\n): ChatThreadProperties => {\n const { createdByCommunicationIdentifier, ...rest } = chatThread;\n if (createdByCommunicationIdentifier) {\n return {\n ...rest,\n createdBy: deserializeCommunicationIdentifier(\n createdByCommunicationIdentifier as SerializedCommunicationIdentifier,\n ),\n };\n } else {\n return { ...rest };\n }\n};\n\n/**\n * @internal\n * Mapping chat thread REST model to chat thread SDK model\n */\nexport const mapToCreateChatThreadResultSdkModel = (\n result: RestModel.CreateChatThreadResult,\n): CreateChatThreadResult => {\n const { chatThread, ...rest } = result;\n if (chatThread) {\n return {\n ...rest,\n chatThread: mapToChatThreadPropertiesSdkModel(chatThread),\n };\n } else {\n return { ...rest };\n }\n};\n\n/**\n * @internal\n * Mapping read receipt REST model to read receipt SDK model\n */\nexport const mapToReadReceiptSdkModel = (\n readReceipt: RestModel.ChatMessageReadReceipt,\n): ChatMessageReadReceipt => {\n const { senderCommunicationIdentifier, ...rest } = readReceipt;\n return {\n ...rest,\n sender: deserializeCommunicationIdentifier(\n senderCommunicationIdentifier as SerializedCommunicationIdentifier,\n ),\n };\n};\n"]}
|
|
1
|
+
{"version":3,"file":"mappers.js","sourceRoot":"","sources":["../../../src/models/mappers.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;AAElC,OAAO,EAEL,kCAAkC,EAClC,gCAAgC,GACjC,MAAM,6BAA6B,CAAC;AAgBrC,MAAM,CAAC,MAAM,qCAAqC,GAAG,CACnD,OA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AM,EAAE,gCAAgC,EAAE,eAAe,KAAc,UAAU,EAAnB,IAAI,UAAK,UAAU,EAA3E,uDAA8D,CAAa,CAAC;IAClF,IAAI,MAAM,qBAA8B,IAAI,CAAE,CAAC;IAC/C,IAAI,gCAAgC,EAAE,CAAC;QACrC,MAAM,mCACD,MAAM,KACT,SAAS,EAAE,kCAAkC,CAC3C,gCAAqE,CACtE,GACF,CAAC;IACJ,CAAC;IAED,IAAI,eAAe,EAAE,CAAC;QACpB,MAAM,mCACD,MAAM,KACT,eAAe,EAAE,4BAA4B,CAAC,eAAe,CAAC,GAC/D,CAAC;IACJ,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,mCAAmC,GAAG,CACjD,MAAwC,EAChB,EAAE;IAC1B,MAAM,EAAE,UAAU,KAAc,MAAM,EAAf,IAAI,UAAK,MAAM,EAAhC,cAAuB,CAAS,CAAC;IACvC,IAAI,UAAU,EAAE,CAAC;QACf,uCACK,IAAI,KACP,UAAU,EAAE,iCAAiC,CAAC,UAAU,CAAC,IACzD;IACJ,CAAC;SAAM,CAAC;QACN,yBAAY,IAAI,EAAG;IACrB,CAAC;AACH,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CACtC,WAA6C,EACrB,EAAE;IAC1B,MAAM,EAAE,6BAA6B,KAAc,WAAW,EAApB,IAAI,UAAK,WAAW,EAAxD,iCAA0C,CAAc,CAAC;IAC/D,uCACK,IAAI,KACP,MAAM,EAAE,kCAAkC,CACxC,6BAAkE,CACnE,IACD;AACJ,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport {\n SerializedCommunicationIdentifier,\n deserializeCommunicationIdentifier,\n serializeCommunicationIdentifier,\n} from \"@azure/communication-common\";\nimport * as RestModel from \"../generated/src/models\";\nimport { AddParticipantsRequest, SendMessageRequest } from \"./requests\";\nimport { CreateChatThreadOptions, SendMessageOptions, UpdateMessageOptions } from \"./options\";\nimport {\n ChatAttachment,\n ChatMessage,\n ChatMessageContent,\n ChatMessageReadReceipt,\n ChatParticipant,\n ChatRetentionPolicy,\n ChatThreadProperties,\n CreateChatThreadResult,\n PolicyViolation,\n} from \"./models\";\n\nexport const mapToCreateChatThreadOptionsRestModel = (\n options: CreateChatThreadOptions,\n): RestModel.ChatCreateChatThreadOptionalParams => {\n const { participants, idempotencyToken, ...rest } = options;\n return {\n repeatabilityRequestId: idempotencyToken,\n ...rest,\n };\n};\n\n/**\n * @internal\n * Mapping chat participant customer model to chat participant REST model\n */\nexport const mapToChatParticipantRestModel = (\n chatParticipant: ChatParticipant,\n): RestModel.ChatParticipant => {\n const { id, ...rest } = chatParticipant;\n return {\n ...rest,\n communicationIdentifier: serializeCommunicationIdentifier(id),\n };\n};\n\n/**\n * @internal\n * Mapping add participants request to add chat participants request REST model\n */\nexport const mapToAddChatParticipantsRequestRestModel = (\n addParticipantsRequest: AddParticipantsRequest,\n): RestModel.AddChatParticipantsRequest => {\n return {\n participants: addParticipantsRequest.participants?.map((participant) =>\n mapToChatParticipantRestModel(participant),\n ),\n };\n};\n\n/**\n * @internal\n * Mapping chat attachment SDK model to chat attachment REST model\n */\nexport const mapToChatAttachmentRestModel = (\n chatAttachment: ChatAttachment,\n): RestModel.ChatAttachment => {\n const { attachmentType, ...rest } = chatAttachment;\n if (attachmentType === \"unknown\") {\n throw new Error(\"'unknown' attachmentType not supported\");\n }\n return {\n ...rest,\n attachmentType: attachmentType,\n };\n};\n\n/**\n * @internal\n * Mapping send message request and options to send chat message request REST model\n */\nexport const mapToSendChatMessageRequestRestModel = (\n sendMessageRequest: SendMessageRequest,\n sendMessageOptions: SendMessageOptions,\n): RestModel.SendChatMessageRequest => {\n const { attachments, ...restOptions } = sendMessageOptions;\n let request: RestModel.SendChatMessageRequest = { ...sendMessageRequest, ...restOptions };\n if (attachments) {\n request = {\n ...request,\n attachments: attachments?.map((attachment) => mapToChatAttachmentRestModel(attachment)),\n };\n }\n return request;\n};\n\n/**\n * @internal\n * Mapping update message options to update chat message request REST model\n */\nexport const mapToUpdateChatMessageRequestRestModel = (\n updateMessageOptions: UpdateMessageOptions,\n): RestModel.UpdateChatMessageRequest => {\n const { attachments, ...restOptions } = updateMessageOptions;\n let request: RestModel.UpdateChatMessageRequest = { ...restOptions };\n if (attachments) {\n request = {\n ...request,\n attachments: attachments?.map((attachment) => mapToChatAttachmentRestModel(attachment)),\n };\n }\n return request;\n};\n\n/**\n * @internal\n * Mapping chat participant REST model to chat participant SDK model\n */\nexport const mapToChatParticipantSdkModel = (\n chatParticipant: RestModel.ChatParticipant,\n): ChatParticipant => {\n const { communicationIdentifier, ...rest } = chatParticipant;\n return {\n ...rest,\n id: deserializeCommunicationIdentifier(\n communicationIdentifier as SerializedCommunicationIdentifier,\n ),\n };\n};\n\n/**\n * @internal\n * Mapping chat attachment REST model to chat attachment SDK model\n */\nexport const mapToChatAttachmentSdkModel = (\n chatAttachment: RestModel.ChatAttachment,\n): ChatAttachment => {\n const { attachmentType, ...rest } = chatAttachment;\n return {\n ...rest,\n attachmentType: attachmentType,\n };\n};\n\n/**\n * @internal\n */\nexport const mapToChatContentSdkModel = (\n content: RestModel.ChatMessageContent,\n): ChatMessageContent => {\n const { participants, attachments, initiatorCommunicationIdentifier, ...otherChatContents } =\n content;\n let result: ChatMessageContent = { ...otherChatContents };\n if (initiatorCommunicationIdentifier) {\n const initiator = deserializeCommunicationIdentifier(\n initiatorCommunicationIdentifier as SerializedCommunicationIdentifier,\n );\n result = { ...result, initiator };\n }\n if (participants) {\n result = {\n ...result,\n participants: participants?.map((participant) => mapToChatParticipantSdkModel(participant)),\n };\n }\n if (attachments) {\n result = {\n ...result,\n attachments: attachments?.map((attachment) => mapToChatAttachmentSdkModel(attachment)),\n };\n }\n return result;\n};\n\n/**\n * @internal\n */\nexport const mapToChatPolicyViolationSdkModel = (\n policyVolation: RestModel.PolicyViolation,\n): PolicyViolation => {\n const { state } = policyVolation;\n const result: PolicyViolation = {\n result: state,\n };\n return result;\n};\n\n/**\n * @internal\n * Mapping chat message REST model to chat message SDK model\n */\nexport const mapToChatMessageSdkModel = (chatMessage: RestModel.ChatMessage): ChatMessage => {\n const { content, senderCommunicationIdentifier, policyViolation, ...otherChatMessage } =\n chatMessage;\n let result: ChatMessage = { ...otherChatMessage };\n if (content) {\n result = {\n ...result,\n content: mapToChatContentSdkModel(content),\n };\n }\n if (senderCommunicationIdentifier) {\n const sender = deserializeCommunicationIdentifier(\n senderCommunicationIdentifier as SerializedCommunicationIdentifier,\n );\n result = { ...result, sender };\n }\n if (policyViolation) {\n result = {\n ...result,\n policyViolation: mapToChatPolicyViolationSdkModel(policyViolation),\n };\n }\n return result;\n};\n\n/**\n * @internal\n * Mapping chat messages collection REST model to chat message SDK model array\n */\nexport const mapToChatMessagesSdkModelArray = (\n chatMessagesCollection: RestModel.ChatMessagesCollection,\n): ChatMessage[] => {\n return chatMessagesCollection.value?.map((chatMessage) => mapToChatMessageSdkModel(chatMessage));\n};\n\n/**\n * @internal\n * Mapping chat retention policy REST model to chat retention policy SDK model\n */\nexport const mapToRetentionPolicySdkModel = (\n retentionPolicy: RestModel.ChatRetentionPolicyUnion,\n): ChatRetentionPolicy => {\n if (retentionPolicy.kind === \"threadCreationDate\") {\n return retentionPolicy as RestModel.ThreadCreationDateRetentionPolicy;\n }\n if (retentionPolicy.kind === \"none\") {\n return retentionPolicy as RestModel.NoneRetentionPolicy;\n } else {\n throw new Error(`Retention Policy ${retentionPolicy.kind} is not supported`);\n }\n};\n\n/**\n * @internal\n * Mapping chat thread REST model to chat thread SDK model\n */\nexport const mapToChatThreadPropertiesSdkModel = (\n chatThread: RestModel.ChatThreadProperties,\n): ChatThreadProperties => {\n const { createdByCommunicationIdentifier, retentionPolicy, ...rest } = chatThread;\n let result: ChatThreadProperties = { ...rest };\n if (createdByCommunicationIdentifier) {\n result = {\n ...result,\n createdBy: deserializeCommunicationIdentifier(\n createdByCommunicationIdentifier as SerializedCommunicationIdentifier,\n ),\n };\n }\n\n if (retentionPolicy) {\n result = {\n ...result,\n retentionPolicy: mapToRetentionPolicySdkModel(retentionPolicy),\n };\n }\n\n return result;\n};\n\n/**\n * @internal\n * Mapping chat thread REST model to chat thread SDK model\n */\nexport const mapToCreateChatThreadResultSdkModel = (\n result: RestModel.CreateChatThreadResult,\n): CreateChatThreadResult => {\n const { chatThread, ...rest } = result;\n if (chatThread) {\n return {\n ...rest,\n chatThread: mapToChatThreadPropertiesSdkModel(chatThread),\n };\n } else {\n return { ...rest };\n }\n};\n\n/**\n * @internal\n * Mapping read receipt REST model to read receipt SDK model\n */\nexport const mapToReadReceiptSdkModel = (\n readReceipt: RestModel.ChatMessageReadReceipt,\n): ChatMessageReadReceipt => {\n const { senderCommunicationIdentifier, ...rest } = readReceipt;\n return {\n ...rest,\n sender: deserializeCommunicationIdentifier(\n senderCommunicationIdentifier as SerializedCommunicationIdentifier,\n ),\n };\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/models/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { CommunicationIdentifier, CommunicationIdentifierKind } from \"@azure/communication-common\";\nimport { ChatError, ChatMessageType } from \"../generated/src\";\n\nexport {\n AddChatParticipantsResult,\n ChatMessageType,\n ChatThreadItem,\n ChatError,\n SendChatMessageResult,\n} from \"../generated/src/models\";\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 must be interpreted as a union: Apart from rawId, at most one further property may be set. */\n readonly createdBy?: CommunicationIdentifierKind;\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/** 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 must be interpreted as a union: Apart from rawId, at most one further property may be set. */\n sender?: CommunicationIdentifierKind;\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 /** metadata */\n metadata?: Record<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 /** Identifies a participant in Azure Communication services. A participant is, for example, a phone number or an Azure communication user. This model must be interpreted as a union: Apart from rawId, at most one further property may be set. */\n initiator?: CommunicationIdentifierKind;\n /**
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/models/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { CommunicationIdentifier, CommunicationIdentifierKind } from \"@azure/communication-common\";\nimport { ChatError, ChatMessageType } from \"../generated/src\";\n\nexport {\n AddChatParticipantsResult,\n ChatMessageType,\n ChatThreadItem,\n ChatError,\n SendChatMessageResult,\n} from \"../generated/src/models\";\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 must be interpreted as a union: Apart from rawId, at most one further property may be set. */\n readonly createdBy?: CommunicationIdentifierKind;\n /** The timestamp when the chat thread was deleted. The timestamp is in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`. */\n deletedOn?: Date;\n /** metadata */\n metadata?: Record<string, string>;\n /** Data retention policy for auto deletion. */\n retentionPolicy?: ChatRetentionPolicy;\n /** Messaging policy for a chat thread. */\n messagingPolicy?: MessagingPolicy;\n}\n\n/** Thread retention policy based on thread creation date. */\nexport interface ThreadCreationDateRetentionPolicy {\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 {\n /** Polymorphic discriminator, which specifies the different types this object can be */\n kind: \"none\";\n}\n\n/** Data retention policy for auto deletion. */\nexport declare type ChatRetentionPolicy = ThreadCreationDateRetentionPolicy | NoneRetentionPolicy;\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 must be interpreted as a union: Apart from rawId, at most one further property may be set. */\n sender?: CommunicationIdentifierKind;\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 /** metadata */\n metadata?: Record<string, string>;\n /** Policy Violation of a chat 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 must be interpreted as a union: Apart from rawId, at most one further property may be set. */\n initiator?: CommunicationIdentifierKind;\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/** 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 must be interpreted as a union: Apart from rawId, at most one further property may be set. */\n sender: CommunicationIdentifierKind;\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/** 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 must be interpreted as a union: Apart from rawId, at most one further property may be set. */\n id: CommunicationIdentifier;\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 /** metadata */\n metadata?: Record<string, string>;\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/**\n * Arguments for retrieving the next page of search results.\n */\nexport interface ListPageSettings {\n /**\n * A token used for retrieving the next page of results when the server\n * enforces pagination.\n */\n continuationToken?: string;\n}\n\n/** Result payload for uploading an image. */\nexport interface UploadChatImageResult {\n /** Id of the image. */\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/** Type of Supported Attachments. */\nexport type ChatAttachmentType = \"image\" | \"file\" | \"unknown\";\n\n/** Result of Policy Violation message. */\nexport type PolicyViolationMessageResult = \"contentBlocked\" | \"warning\";\n\n/** Policy violation of a message (if applicable). */\nexport interface PolicyViolation {\n /** Result of Policy Violation message. */\n result: PolicyViolationMessageResult;\n}\n\n/** Messaging policy of a chat thread. */\nexport interface MessagingPolicy {\n /** Boolean to track whether or not messages is restricted to only text. */\n textOnlyChat?: boolean;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../src/models/options.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\nimport { CommonClientOptions, OperationOptions } from \"@azure/core-client\";\nimport {\n ChatMessageType,\n ChatListChatThreadsOptionalParams as RestListChatThreadsOptions,\n ChatThreadListChatMessagesOptionalParams as RestListMessagesOptions,\n ChatThreadListChatParticipantsOptionalParams as RestListParticipantsOptions,\n ChatThreadListChatReadReceiptsOptionalParams as RestListReadReceiptsOptions,\n} from \"../generated/src/models\";\nimport { ChatParticipant } from \"./models\";\n\nexport {\n RestListMessagesOptions,\n RestListChatThreadsOptions,\n RestListParticipantsOptions,\n RestListReadReceiptsOptions,\n};\n\n/**\n * Options to create chat client.\n */\nexport interface ChatClientOptions extends CommonClientOptions {}\n\n/**\n * Options to create chat thread client.\n */\nexport interface ChatThreadClientOptions extends ChatClientOptions {}\n\n/**\n * Options to update a chat thread.\n */\nexport interface UpdateTopicOptions extends OperationOptions {}\n\n/**\n * Options to get chat threads.\n */\nexport type ListChatThreadsOptions = RestListChatThreadsOptions;\n\n/**\n * Options to send a chat message.\n */\nexport interface SendMessageOptions extends OperationOptions {\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?: Record<string, string>;\n}\n\n/**\n * Options to update a chat message.\n */\nexport interface UpdateMessageOptions extends OperationOptions {\n /** Chat message content. */\n content?: string;\n /** Message metadata. */\n metadata?: Record<string, string>;\n}\n\n/**\n * Options to list chat messages.\n */\nexport type ListMessagesOptions = RestListMessagesOptions;\n\n/**\n * Options to create a chat thread.\n */\nexport interface CreateChatThreadOptions extends OperationOptions {\n /** Participants to be added to the chat thread. */\n participants?: ChatParticipant[];\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 Idempotency-Token and get back an appropriate response without the server executing the request multiple times. The value of the Idempotency-Token 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 idempotencyToken?: string;\n}\n\n/**\n * Options to get a chat thread.\n */\nexport type GetPropertiesOptions = OperationOptions;\n\n/**\n * Options to delete a chat thread.\n */\nexport type DeleteChatThreadOptions = OperationOptions;\n\n/**\n * Options to get a chat message.\n */\nexport type GetMessageOptions = OperationOptions;\n\n/**\n * Options to delete a chat message.\n */\nexport type DeleteMessageOptions = OperationOptions;\n\n/**\n * Options to add a chat participant.\n */\nexport type AddParticipantsOptions = OperationOptions;\n\n/**\n * Options to list chat participants.\n */\nexport type ListParticipantsOptions = RestListParticipantsOptions;\n\n/**\n * Options to remove a chat participant.\n */\nexport type RemoveParticipantOptions = OperationOptions;\n\n/**\n * Options to send typing notifications.\n */\nexport interface SendTypingNotificationOptions extends OperationOptions {\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/**\n * Options to send read receipt.\n */\nexport type SendReadReceiptOptions = OperationOptions;\n\n/**\n * Options to list read receipts.\n */\nexport type ListReadReceiptsOptions = RestListReadReceiptsOptions;\n"]}
|
|
1
|
+
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../src/models/options.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\nimport { CommonClientOptions, OperationOptions } from \"@azure/core-client\";\nimport {\n ChatMessageType,\n ChatListChatThreadsOptionalParams as RestListChatThreadsOptions,\n ChatThreadListChatMessagesOptionalParams as RestListMessagesOptions,\n ChatThreadListChatParticipantsOptionalParams as RestListParticipantsOptions,\n ChatThreadListChatReadReceiptsOptionalParams as RestListReadReceiptsOptions,\n} from \"../generated/src/models\";\nimport { ChatAttachment, ChatParticipant, ChatRetentionPolicy } from \"./models\";\n\nexport {\n RestListMessagesOptions,\n RestListChatThreadsOptions,\n RestListParticipantsOptions,\n RestListReadReceiptsOptions,\n};\n\n/**\n * Options to create chat client.\n */\nexport interface ChatClientOptions extends CommonClientOptions {}\n\n/**\n * Options to create chat thread client.\n */\nexport interface ChatThreadClientOptions extends ChatClientOptions {}\n\n/**\n * Options to update a chat thread.\n */\nexport interface UpdateTopicOptions extends OperationOptions {}\n\n/**\n * Options to update a chat thread.\n */\nexport interface UpdateChatThreadPropertiesOptions extends OperationOptions {\n /** Thread topic. */\n topic?: string;\n /** Thread metadata. */\n metadata?: Record<string, string>;\n /** Data retention policy for auto deletion. */\n retentionPolicy?: ChatRetentionPolicy;\n}\n\n/**\n * Options to get chat threads.\n */\nexport type ListChatThreadsOptions = RestListChatThreadsOptions;\n\n/**\n * Options to send a chat message.\n */\nexport interface SendMessageOptions extends OperationOptions {\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?: Record<string, string>;\n /** Message attachments. */\n attachments?: ChatAttachment[];\n}\n\n/**\n * Options to update a chat message.\n */\nexport interface UpdateMessageOptions extends OperationOptions {\n /** Chat message content. */\n content?: string;\n /** Message metadata. */\n metadata?: Record<string, string>;\n /** Message attachments. */\n attachments?: ChatAttachment[];\n}\n\n/**\n * Options to list chat messages.\n */\nexport type ListMessagesOptions = RestListMessagesOptions;\n\n/**\n * Options to create a chat thread.\n */\nexport interface CreateChatThreadOptions extends OperationOptions {\n /** Participants to be added to the chat thread. */\n participants?: ChatParticipant[];\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 Idempotency-Token and get back an appropriate response without the server executing the request multiple times. The value of the Idempotency-Token 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 idempotencyToken?: string;\n /** metadata */\n metadata?: Record<string, string>;\n /** Data retention policy for auto deletion. */\n retentionPolicy?: ChatRetentionPolicy;\n}\n\n/**\n * Options to get a chat thread.\n */\nexport type GetPropertiesOptions = OperationOptions;\n\n/**\n * Options to delete a chat thread.\n */\nexport type DeleteChatThreadOptions = OperationOptions;\n\n/**\n * Options to get a chat message.\n */\nexport type GetMessageOptions = OperationOptions;\n\n/**\n * Options to delete a chat message.\n */\nexport type DeleteMessageOptions = OperationOptions;\n\n/**\n * Options to add a chat participant.\n */\nexport type AddParticipantsOptions = OperationOptions;\n\n/**\n * Options to list chat participants.\n */\nexport type ListParticipantsOptions = RestListParticipantsOptions;\n\n/**\n * Options to remove a chat participant.\n */\nexport type RemoveParticipantOptions = OperationOptions;\n\n/**\n * Options to send typing notifications.\n */\nexport interface SendTypingNotificationOptions extends OperationOptions {\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/**\n * Options to send read receipt.\n */\nexport type SendReadReceiptOptions = OperationOptions;\n\n/**\n * Options to list read receipts.\n */\nexport type ListReadReceiptsOptions = RestListReadReceiptsOptions;\n\n/**\n * Options to upload a chat image.\n */\nexport interface UploadImageOptions extends OperationOptions {\n /** Image blob size in bytes. */\n imageBytesLength?: number;\n}\n\n/**\n * Options to upload a chat image stream.\n */\nexport type UploadImageStreamOptions = OperationOptions;\n\n/**\n * Options to delete a chat image.\n */\nexport type DeleteImageOptions = OperationOptions;\n"]}
|