From 1c988c88a2d34a592b12e43bcbc9f6ed79eab826 Mon Sep 17 00:00:00 2001 From: Sarangan Rajamanickam Date: Mon, 6 Jan 2025 10:50:13 -0800 Subject: [PATCH 1/2] [@azure/eventgrid] - Release V5.10.0 Jan 2025 --- sdk/eventgrid/eventgrid/CHANGELOG.md | 12 +++++----- sdk/eventgrid/eventgrid/package.json | 2 +- .../eventgrid/review/eventgrid.api.md | 7 ++++-- .../src/generated/generatedClientContext.ts | 2 +- .../eventgrid/src/generated/models/index.ts | 10 ++++++-- .../eventgrid/src/generated/models/mappers.ts | 23 +++++++++++++++++-- sdk/eventgrid/eventgrid/src/tracing.ts | 2 +- sdk/eventgrid/eventgrid/swagger/README.md | 4 ++-- 8 files changed, 45 insertions(+), 17 deletions(-) diff --git a/sdk/eventgrid/eventgrid/CHANGELOG.md b/sdk/eventgrid/eventgrid/CHANGELOG.md index 303c94d43920..bf9bc3f39461 100644 --- a/sdk/eventgrid/eventgrid/CHANGELOG.md +++ b/sdk/eventgrid/eventgrid/CHANGELOG.md @@ -1,14 +1,14 @@ # Release History -## 5.9.1 (Unreleased) +## 5.10.0 (2025-01-13) ### Features Added -### Breaking Changes - -### Bugs Fixed - -### Other Changes +- Added `internetMessageId` property to `AcsEmailDeliveryReportReceivedEventData`. +- Added `recipientMailServerHostName` property to `AcsEmailDeliveryReportStatusDetails`. +- For `AcsSmsReceivedEventData`: + - Added `segmentCount` property + - Made `message` & `receivedTimestamp` properties optional. ## 5.9.0 (2024-12-02) diff --git a/sdk/eventgrid/eventgrid/package.json b/sdk/eventgrid/eventgrid/package.json index fe6ed41820e3..17f3fbd9bbb9 100644 --- a/sdk/eventgrid/eventgrid/package.json +++ b/sdk/eventgrid/eventgrid/package.json @@ -3,7 +3,7 @@ "sdk-type": "client", "author": "Microsoft Corporation", "description": "An isomorphic client library for the Azure Event Grid service.", - "version": "5.9.1", + "version": "5.10.0", "keywords": [ "node", "azure", diff --git a/sdk/eventgrid/eventgrid/review/eventgrid.api.md b/sdk/eventgrid/eventgrid/review/eventgrid.api.md index 7ab9306f6a13..3497acfd7cbb 100644 --- a/sdk/eventgrid/eventgrid/review/eventgrid.api.md +++ b/sdk/eventgrid/eventgrid/review/eventgrid.api.md @@ -204,6 +204,7 @@ export type AcsChatThreadWithUserDeletedEventData = AcsChatThreadEventBase & { export interface AcsEmailDeliveryReportReceivedEventData { deliveryAttemptTimestamp: string; deliveryStatusDetails: AcsEmailDeliveryReportStatusDetails; + internetMessageId: string; messageId: string; recipient: string; sender: string; @@ -215,6 +216,7 @@ export type AcsEmailDeliveryReportStatus = string; // @public export interface AcsEmailDeliveryReportStatusDetails { + recipientMailServerHostName: string; statusMessage: string; } @@ -637,8 +639,9 @@ export interface AcsSmsEventBase { // @public export type AcsSmsReceivedEventData = AcsSmsEventBase & { - message: string; - receivedTimestamp: string; + message?: string; + receivedTimestamp?: string; + segmentCount: number; }; // @public diff --git a/sdk/eventgrid/eventgrid/src/generated/generatedClientContext.ts b/sdk/eventgrid/eventgrid/src/generated/generatedClientContext.ts index c6f0537d31af..f6d0f0cfafff 100644 --- a/sdk/eventgrid/eventgrid/src/generated/generatedClientContext.ts +++ b/sdk/eventgrid/eventgrid/src/generated/generatedClientContext.ts @@ -26,7 +26,7 @@ export class GeneratedClientContext extends coreClient.ServiceClient { requestContentType: "application/json; charset=utf-8" }; - const packageDetails = `azsdk-js-eventgrid/5.9.1`; + const packageDetails = `azsdk-js-eventgrid/5.10.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` diff --git a/sdk/eventgrid/eventgrid/src/generated/models/index.ts b/sdk/eventgrid/eventgrid/src/generated/models/index.ts index 2dc00e6f267c..4df9186c8536 100644 --- a/sdk/eventgrid/eventgrid/src/generated/models/index.ts +++ b/sdk/eventgrid/eventgrid/src/generated/models/index.ts @@ -2339,6 +2339,8 @@ export interface AcsEmailDeliveryReportReceivedEventData { sender: string; /** The recipient Email Address */ recipient: string; + /** The Internet Message Id of the email been sent */ + internetMessageId: string; /** The Id of the email been sent */ messageId: string; /** The status of the email. Any value other than Delivered is considered failed. */ @@ -2351,6 +2353,8 @@ export interface AcsEmailDeliveryReportReceivedEventData { /** Detailed information about the status if any */ export interface AcsEmailDeliveryReportStatusDetails { + /** Recipient Mail Server Host Name */ + recipientMailServerHostName: string; /** Detailed status message */ statusMessage: string; } @@ -3106,9 +3110,11 @@ export type AcsSmsDeliveryReportReceivedEventData = AcsSmsEventBase & { /** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.SMSReceived event. */ export type AcsSmsReceivedEventData = AcsSmsEventBase & { /** The SMS content */ - message: string; + message?: string; /** The time at which the SMS was received */ - receivedTimestamp: string; + receivedTimestamp?: string; + /** Number of segments in the message */ + segmentCount: number; }; /** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.AdvancedMessageReceived event. */ diff --git a/sdk/eventgrid/eventgrid/src/generated/models/mappers.ts b/sdk/eventgrid/eventgrid/src/generated/models/mappers.ts index 1978e918fa6e..f3c5f9854d05 100644 --- a/sdk/eventgrid/eventgrid/src/generated/models/mappers.ts +++ b/sdk/eventgrid/eventgrid/src/generated/models/mappers.ts @@ -6809,6 +6809,13 @@ export const AcsEmailDeliveryReportReceivedEventData: coreClient.CompositeMapper name: "String" } }, + internetMessageId: { + serializedName: "internetMessageId", + required: true, + type: { + name: "String" + } + }, messageId: { serializedName: "messageId", required: true, @@ -6846,6 +6853,13 @@ export const AcsEmailDeliveryReportStatusDetails: coreClient.CompositeMapper = { name: "Composite", className: "AcsEmailDeliveryReportStatusDetails", modelProperties: { + recipientMailServerHostName: { + serializedName: "recipientMailServerHostName", + required: true, + type: { + name: "String" + } + }, statusMessage: { serializedName: "statusMessage", required: true, @@ -9162,17 +9176,22 @@ export const AcsSmsReceivedEventData: coreClient.CompositeMapper = { ...AcsSmsEventBase.type.modelProperties, message: { serializedName: "message", - required: true, type: { name: "String" } }, receivedTimestamp: { serializedName: "receivedTimestamp", - required: true, type: { name: "String" } + }, + segmentCount: { + serializedName: "segmentCount", + required: true, + type: { + name: "Number" + } } } } diff --git a/sdk/eventgrid/eventgrid/src/tracing.ts b/sdk/eventgrid/eventgrid/src/tracing.ts index 37cb709d0174..28ddb899b129 100644 --- a/sdk/eventgrid/eventgrid/src/tracing.ts +++ b/sdk/eventgrid/eventgrid/src/tracing.ts @@ -10,5 +10,5 @@ import { createTracingClient } from "@azure/core-tracing"; export const tracingClient = createTracingClient({ namespace: "Microsoft.Messaging.EventGrid", packageName: "@azure/event-grid", - packageVersion: "5.9.1", + packageVersion: "5.10.0", }); diff --git a/sdk/eventgrid/eventgrid/swagger/README.md b/sdk/eventgrid/eventgrid/swagger/README.md index 281d86d61ee6..79277ecf3bf0 100644 --- a/sdk/eventgrid/eventgrid/swagger/README.md +++ b/sdk/eventgrid/eventgrid/swagger/README.md @@ -5,9 +5,9 @@ ## Configuration ```yaml -require: "https://github.com/Azure/azure-rest-api-specs/blob/fb64eaa0dfc7ee8abc8e10369495729d5b3c1cc5/specification/eventgrid/data-plane/readme.md" +require: "https://github.com/Azure/azure-rest-api-specs/blob/8e10d65d0c92871abf9b0e6f044ceae9c7965aee/specification/eventgrid/data-plane/readme.md" package-name: "@azure/eventgrid" -package-version: "5.9.1" +package-version: "5.10.0" title: GeneratedClient description: EventGrid Client generate-metadata: false From 4467bd8d52e01939784fa5fbf018ca1e71092a66 Mon Sep 17 00:00:00 2001 From: Sarangan Rajamanickam Date: Fri, 17 Jan 2025 06:44:35 -0800 Subject: [PATCH 2/2] Update with Release commit --- sdk/eventgrid/eventgrid/CHANGELOG.md | 6 +++++- sdk/eventgrid/eventgrid/swagger/README.md | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/sdk/eventgrid/eventgrid/CHANGELOG.md b/sdk/eventgrid/eventgrid/CHANGELOG.md index bf9bc3f39461..23420229ea7a 100644 --- a/sdk/eventgrid/eventgrid/CHANGELOG.md +++ b/sdk/eventgrid/eventgrid/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 5.10.0 (2025-01-13) +## 5.10.0 (2025-01-21) ### Features Added @@ -8,6 +8,10 @@ - Added `recipientMailServerHostName` property to `AcsEmailDeliveryReportStatusDetails`. - For `AcsSmsReceivedEventData`: - Added `segmentCount` property + +### Bug fix + +- For `AcsSmsReceivedEventData`: - Made `message` & `receivedTimestamp` properties optional. ## 5.9.0 (2024-12-02) diff --git a/sdk/eventgrid/eventgrid/swagger/README.md b/sdk/eventgrid/eventgrid/swagger/README.md index 79277ecf3bf0..394604767a4e 100644 --- a/sdk/eventgrid/eventgrid/swagger/README.md +++ b/sdk/eventgrid/eventgrid/swagger/README.md @@ -5,7 +5,7 @@ ## Configuration ```yaml -require: "https://github.com/Azure/azure-rest-api-specs/blob/8e10d65d0c92871abf9b0e6f044ceae9c7965aee/specification/eventgrid/data-plane/readme.md" +require: "https://github.com/Azure/azure-rest-api-specs/blob/c18f249c85d002b7b2ddcc36b648512b574e1f4a/specification/eventgrid/data-plane/readme.md" package-name: "@azure/eventgrid" package-version: "5.10.0" title: GeneratedClient