diff --git a/sdk/eventgrid/eventgrid-system-events/CHANGELOG.md b/sdk/eventgrid/eventgrid-system-events/CHANGELOG.md index b462a05cd3cc..c6a3de5b617b 100644 --- a/sdk/eventgrid/eventgrid-system-events/CHANGELOG.md +++ b/sdk/eventgrid/eventgrid-system-events/CHANGELOG.md @@ -1,16 +1,12 @@ # Release History -## 1.0.0-beta.2 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed +## 1.0.0-beta.2 (2024-07-16) ### Other Changes -## 1.0.0-beta.1 (2026-06-11) +- Regenerated SDK with latest commit. Refer [#30399](https://github.com/Azure/azure-sdk-for-js/pull/30399) for further details. + +## 1.0.0-beta.1 (2024-06-11) ### Features Added diff --git a/sdk/eventgrid/eventgrid-system-events/review/eventgrid-system-events.api.md b/sdk/eventgrid/eventgrid-system-events/review/eventgrid-system-events.api.md index f8c781cac494..3fd32348ac6c 100644 --- a/sdk/eventgrid/eventgrid-system-events/review/eventgrid-system-events.api.md +++ b/sdk/eventgrid/eventgrid-system-events/review/eventgrid-system-events.api.md @@ -108,7 +108,7 @@ export interface AcsChatThreadCreatedEventData extends AcsChatThreadEventInThrea createdByCommunicationIdentifier: CommunicationIdentifierModel; metadata: Record; participants: AcsChatThreadParticipant[]; - properties: Record; + properties: Record; } // @public @@ -116,7 +116,7 @@ export interface AcsChatThreadCreatedWithUserEventData extends AcsChatThreadEven createdByCommunicationIdentifier: CommunicationIdentifierModel; metadata: Record; participants: AcsChatThreadParticipant[]; - properties: Record; + properties: Record; } // @public @@ -149,7 +149,7 @@ export interface AcsChatThreadPropertiesUpdatedEventData extends AcsChatThreadEv editedByCommunicationIdentifier: CommunicationIdentifierModel; editTime: Date; metadata: Record; - properties: Record; + properties: Record; } // @public @@ -157,7 +157,7 @@ export interface AcsChatThreadPropertiesUpdatedPerUserEventData extends AcsChatT editedByCommunicationIdentifier: CommunicationIdentifierModel; editTime: Date; metadata: Record; - properties: Record; + properties: Record; } // @public @@ -526,7 +526,7 @@ export interface AcsRouterWorkerSelector { expirationTime: Date; key?: string; labelOperator: AcsRouterLabelOperator; - labelValue: unknown; + labelValue: any; state: AcsRouterWorkerSelectorState; ttlSeconds: number; } @@ -1061,7 +1061,7 @@ export interface DeviceLifeCycleEvent { // @public export interface DeviceTelemetryEvent { - body: Record; + body: Record; properties: Record; systemProperties: Record; } @@ -1781,15 +1781,15 @@ export interface MachineLearningServicesModelDeployedEventData { modelIds?: string; serviceComputeType?: string; serviceName?: string; - serviceProperties: Record; - serviceTags: Record; + serviceProperties: Record; + serviceTags: Record; } // @public export interface MachineLearningServicesModelRegisteredEventData { modelName?: string; - modelProperties: Record; - modelTags: Record; + modelProperties: Record; + modelTags: Record; modelVersion?: string; } @@ -1798,8 +1798,8 @@ export interface MachineLearningServicesRunCompletedEventData { experimentId?: string; experimentName?: string; runId?: string; - runProperties: Record; - runTags: Record; + runProperties: Record; + runTags: Record; runType?: string; } @@ -1808,9 +1808,9 @@ export interface MachineLearningServicesRunStatusChangedEventData { experimentId?: string; experimentName?: string; runId?: string; - runProperties: Record; + runProperties: Record; runStatus?: string; - runTags: Record; + runTags: Record; runType?: string; } @@ -2298,7 +2298,7 @@ export interface ResourceNotificationsResourceUpdatedDetails { id?: string; location?: string; name?: string; - properties: Record; + properties: Record; tags: Record; type?: string; } @@ -2356,7 +2356,7 @@ export interface ResourceWriteSuccessEventData { } // @public -export type ServiceApiVersions = string; +export type ServiceApiVersions = "2024-01-01"; // @public export interface ServiceBusActiveMessagesAvailablePeriodicNotificationsEventData { @@ -2428,7 +2428,7 @@ export interface StorageAsyncOperationInitiatedEventData { identity?: string; requestId?: string; sequencer?: string; - storageDiagnostics: Record; + storageDiagnostics: Record; url?: string; } @@ -2444,7 +2444,7 @@ export interface StorageBlobCreatedEventData { identity?: string; requestId?: string; sequencer?: string; - storageDiagnostics: Record; + storageDiagnostics: Record; url?: string; } @@ -2457,7 +2457,7 @@ export interface StorageBlobDeletedEventData { identity?: string; requestId?: string; sequencer?: string; - storageDiagnostics: Record; + storageDiagnostics: Record; url?: string; } @@ -2481,7 +2481,7 @@ export interface StorageBlobRenamedEventData { requestId?: string; sequencer?: string; sourceUrl?: string; - storageDiagnostics: Record; + storageDiagnostics: Record; } // @public @@ -2494,7 +2494,7 @@ export interface StorageBlobTierChangedEventData { identity?: string; requestId?: string; sequencer?: string; - storageDiagnostics: Record; + storageDiagnostics: Record; url?: string; } @@ -2506,7 +2506,7 @@ export interface StorageDirectoryCreatedEventData { identity?: string; requestId?: string; sequencer?: string; - storageDiagnostics: Record; + storageDiagnostics: Record; url?: string; } @@ -2518,7 +2518,7 @@ export interface StorageDirectoryDeletedEventData { recursive?: string; requestId?: string; sequencer?: string; - storageDiagnostics: Record; + storageDiagnostics: Record; url?: string; } @@ -2531,7 +2531,7 @@ export interface StorageDirectoryRenamedEventData { requestId?: string; sequencer?: string; sourceUrl?: string; - storageDiagnostics: Record; + storageDiagnostics: Record; } // @public diff --git a/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/index.ts b/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/index.ts index d0862918ec5a..eb86db79e0d2 100644 --- a/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/index.ts +++ b/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/index.ts @@ -91,9 +91,9 @@ export { AcsRecordingFileStatusUpdatedEventData, AcsRecordingStorageInfo, AcsRecordingChunkInfo, - recordingContentType, - recordingChannelType, - recordingFormatType, + RecordingContentType, + RecordingChannelType, + RecordingFormatType, AcsEmailDeliveryReportReceivedEventData, AcsEmailDeliveryReportStatus, AcsEmailDeliveryReportStatusDetails, diff --git a/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/models/index.ts b/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/models/index.ts index 6950f804b8e8..b48b3547cbd8 100644 --- a/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/models/index.ts +++ b/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/models/index.ts @@ -91,9 +91,9 @@ export { AcsRecordingFileStatusUpdatedEventData, AcsRecordingStorageInfo, AcsRecordingChunkInfo, - recordingContentType, - recordingChannelType, - recordingFormatType, + RecordingContentType, + RecordingChannelType, + RecordingFormatType, AcsEmailDeliveryReportReceivedEventData, AcsEmailDeliveryReportStatus, AcsEmailDeliveryReportStatusDetails, diff --git a/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/models/models.ts b/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/models/models.ts index e8cff3233e65..deaab68079ff 100644 --- a/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/models/models.ts +++ b/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/models/models.ts @@ -500,7 +500,7 @@ export interface AcsChatThreadCreatedWithUserEventData extends AcsChatThreadEven /** The communication identifier of the user who created the thread */ createdByCommunicationIdentifier: CommunicationIdentifierModel; /** The thread properties */ - properties: Record; + properties: Record; /** The thread metadata */ metadata: Record; /** The list of properties of participants who are part of the thread */ @@ -530,7 +530,7 @@ export interface AcsChatThreadCreatedEventData extends AcsChatThreadEventInThrea /** The communication identifier of the user who created the thread */ createdByCommunicationIdentifier: CommunicationIdentifierModel; /** The thread properties */ - properties: Record; + properties: Record; /** The thread metadata */ metadata: Record; /** The list of properties of participants who are part of the thread */ @@ -562,7 +562,7 @@ export interface AcsChatThreadPropertiesUpdatedPerUserEventData extends AcsChatT /** The thread metadata */ metadata: Record; /** The updated thread properties */ - properties: Record; + properties: Record; } /** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatThreadPropertiesUpdated event. */ @@ -572,7 +572,7 @@ export interface AcsChatThreadPropertiesUpdatedEventData extends AcsChatThreadEv /** The time at which the properties of the thread were updated */ editTime: Date; /** The updated thread properties */ - properties: Record; + properties: Record; /** The thread metadata */ metadata: Record; } @@ -673,11 +673,11 @@ export interface AcsRecordingFileStatusUpdatedEventData { /** The recording duration in milliseconds */ recordingDurationMs?: number; /** The recording content type- AudioVideo, or Audio */ - recordingContentType: recordingContentType; + recordingContentType: RecordingContentType; /** The recording channel type - Mixed, Unmixed */ - recordingChannelType: recordingChannelType; + recordingChannelType: RecordingChannelType; /** The recording format type - Mp4, Mp3, Wav */ - recordingFormatType: recordingFormatType; + recordingFormatType: RecordingFormatType; /** The reason for ending recording session */ sessionEndReason?: string; } @@ -706,13 +706,13 @@ export interface AcsRecordingChunkInfo { /** Recording content type */ /** "AudioVideo", "Audio" */ -export type recordingContentType = string; +export type RecordingContentType = string; /** Recording channel type */ /** "Mixed", "Unmixed" */ -export type recordingChannelType = string; +export type RecordingChannelType = string; /** Recording format type */ /** "Wav", "Mp3", "Mp4" */ -export type recordingFormatType = string; +export type RecordingFormatType = string; /** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.EmailDeliveryReportReceived event. */ export interface AcsEmailDeliveryReportReceivedEventData { @@ -841,7 +841,7 @@ export interface AcsRouterWorkerSelector { /** Router Job Worker Selector Label Operator */ labelOperator: AcsRouterLabelOperator; /** Router Job Worker Selector Value */ - labelValue: unknown; + labelValue: any; /** Router Job Worker Selector Time to Live in Seconds */ ttlSeconds: number; /** Router Job Worker Selector State */ @@ -1547,7 +1547,7 @@ export interface DeviceConnectionStateEventInfo { /** Schema of the Data property of an EventGridEvent for a device telemetry event (DeviceTelemetry). */ export interface DeviceTelemetryEvent { /** The content of the message from the device. */ - body: Record; + body: Record; /** Application properties are user-defined strings that can be added to the message. These fields are optional. */ properties: Record; /** System properties help identify contents and source of the messages. */ @@ -1844,9 +1844,9 @@ export interface MachineLearningServicesModelRegisteredEventData { /** The version of the model that was registered. */ modelVersion?: string; /** The tags of the model that was registered. */ - modelTags: Record; + modelTags: Record; /** The properties of the model that was registered. */ - modelProperties: Record; + modelProperties: Record; } /** Schema of the Data property of an EventGridEvent for a Microsoft.MachineLearningServices.ModelDeployed event. */ @@ -1858,9 +1858,9 @@ export interface MachineLearningServicesModelDeployedEventData { /** A common separated list of model IDs. The IDs of the models deployed in the service. */ modelIds?: string; /** The tags of the deployed service. */ - serviceTags: Record; + serviceTags: Record; /** The properties of the deployed service. */ - serviceProperties: Record; + serviceProperties: Record; } /** Schema of the Data property of an EventGridEvent for a Microsoft.MachineLearningServices.RunCompleted event. */ @@ -1874,9 +1874,9 @@ export interface MachineLearningServicesRunCompletedEventData { /** The Run Type of the completed Run. */ runType?: string; /** The tags of the completed Run. */ - runTags: Record; + runTags: Record; /** The properties of the completed Run. */ - runProperties: Record; + runProperties: Record; } /** Schema of the Data property of an EventGridEvent for a Microsoft.MachineLearningServices.DatasetDriftDetected event. */ @@ -1910,9 +1910,9 @@ export interface MachineLearningServicesRunStatusChangedEventData { /** The Run Type of the Machine Learning Run. */ runType?: string; /** The tags of the Machine Learning Run. */ - runTags: Record; + runTags: Record; /** The properties of the Machine Learning Run. */ - runProperties: Record; + runProperties: Record; /** The status of the Machine Learning Run. */ runStatus?: string; } @@ -2730,7 +2730,7 @@ export interface StorageBlobCreatedEventData { /** The identity of the requester that triggered this event. */ identity?: string; /** For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers. */ - storageDiagnostics: Record; + storageDiagnostics: Record; } /** Schema of the Data property of an EventGridEvent for a Microsoft.Storage.BlobDeleted event. */ @@ -2752,7 +2752,7 @@ export interface StorageBlobDeletedEventData { /** The identity of the requester that triggered this event. */ identity?: string; /** For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers. */ - storageDiagnostics: Record; + storageDiagnostics: Record; } /** Schema of the Data property of an EventGridEvent for a Microsoft.Storage.DirectoryCreated event. */ @@ -2772,7 +2772,7 @@ export interface StorageDirectoryCreatedEventData { /** The identity of the requester that triggered this event. */ identity?: string; /** For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers. */ - storageDiagnostics: Record; + storageDiagnostics: Record; } /** Schema of the Data property of an EventGridEvent for a Microsoft.Storage.DirectoryDeleted event. */ @@ -2792,7 +2792,7 @@ export interface StorageDirectoryDeletedEventData { /** The identity of the requester that triggered this event. */ identity?: string; /** For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers. */ - storageDiagnostics: Record; + storageDiagnostics: Record; } /** Schema of the Data property of an EventGridEvent for a Microsoft.Storage.BlobRenamed event. */ @@ -2812,7 +2812,7 @@ export interface StorageBlobRenamedEventData { /** The identity of the requester that triggered this event. */ identity?: string; /** For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers. */ - storageDiagnostics: Record; + storageDiagnostics: Record; } /** Schema of the Data property of an EventGridEvent for a Microsoft.Storage.DirectoryRenamed event. */ @@ -2832,7 +2832,7 @@ export interface StorageDirectoryRenamedEventData { /** The identity of the requester that triggered this event. */ identity?: string; /** For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers. */ - storageDiagnostics: Record; + storageDiagnostics: Record; } /** Schema of the Data property of an EventGridEvent for a Microsoft.Storage.LifecyclePolicyCompleted event. */ @@ -2878,7 +2878,7 @@ export interface StorageBlobTierChangedEventData { /** The identity of the requester that triggered this event. */ identity?: string; /** For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers. */ - storageDiagnostics: Record; + storageDiagnostics: Record; } /** Schema of the Data property of an EventGridEvent for a Microsoft.Storage.AsyncOperationInitiated event. */ @@ -2902,7 +2902,7 @@ export interface StorageAsyncOperationInitiatedEventData { /** The identity of the requester that triggered this event. */ identity?: string; /** For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers. */ - storageDiagnostics: Record; + storageDiagnostics: Record; } /** Schema of the Data property of an EventGridEvent for an Microsoft.Storage.BlobInventoryPolicyCompleted event. */ @@ -3394,7 +3394,7 @@ export interface ResourceNotificationsResourceUpdatedDetails { /** the tags on the resource for which the event is being emitted */ tags: Record; /** properties in the payload of the resource for which the event is being emitted */ - properties: Record; + properties: Record; } /** details of operational info */ @@ -3457,6 +3457,6 @@ export interface ResourceNotificationsResourceManagementDeletedEventData extends ResourceNotificationsResourceDeletedEventData {} /** "2024-01-01" */ -export type ServiceApiVersions = string; +export type ServiceApiVersions = "2024-01-01"; /** Alias for MediaJobOutputUnion */ export type MediaJobOutputUnion = MediaJobOutputAsset | MediaJobOutput; diff --git a/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/rest/systemEventsClient.ts b/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/rest/systemEventsClient.ts index ab597326fb3d..8f71489dcc0e 100644 --- a/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/rest/systemEventsClient.ts +++ b/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/rest/systemEventsClient.ts @@ -16,7 +16,7 @@ export default function createClient( ): SystemEventsContext { const endpointUrl = options.endpoint ?? options.baseUrl ?? `${endpointParam}`; - const userAgentInfo = `azsdk-js-eventgrid-system-events-rest/1.0.0-beta.1`; + const userAgentInfo = `azsdk-js-eventgrid-system-events-rest/1.0.0-beta.2`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}` @@ -34,6 +34,11 @@ export default function createClient( const client = getClient(endpointUrl, options) as SystemEventsContext; client.pipeline.removePolicy({ name: "ApiVersionPolicy" }); + if (options.apiVersion) { + logger.warning( + "This client does not support client api-version, please change it at the operation level", + ); + } return client; } diff --git a/sdk/eventgrid/eventgrid-system-events/src/index.ts b/sdk/eventgrid/eventgrid-system-events/src/index.ts index 6ed9db9aface..eb0e13ee19df 100644 --- a/sdk/eventgrid/eventgrid-system-events/src/index.ts +++ b/sdk/eventgrid/eventgrid-system-events/src/index.ts @@ -91,9 +91,9 @@ export { AcsRecordingFileStatusUpdatedEventData, AcsRecordingStorageInfo, AcsRecordingChunkInfo, - recordingContentType as RecordingContentType, - recordingChannelType as RecordingChannelType, - recordingFormatType as RecordingFormatType, + RecordingContentType, + RecordingChannelType, + RecordingFormatType, AcsEmailDeliveryReportReceivedEventData, AcsEmailDeliveryReportStatus, AcsEmailDeliveryReportStatusDetails, diff --git a/sdk/eventgrid/eventgrid/CHANGELOG.md b/sdk/eventgrid/eventgrid/CHANGELOG.md index 1465da2e8a9a..5f5e98226bad 100644 --- a/sdk/eventgrid/eventgrid/CHANGELOG.md +++ b/sdk/eventgrid/eventgrid/CHANGELOG.md @@ -1,16 +1,12 @@ # Release History -## 5.5.1 (Unreleased) - -### Features Added - -### Breaking Changes +## 5.5.1 (2024-07-16) ### Bugs Fixed -### Other Changes +- Fixed deserialization bugs in `AcsEmailEngagementTrackingReportReceivedEventData` and `AcsEmailDeliveryReportReceivedEventData` system events that caused the `DeliveryAttemptTimestamp` and `UserActionTimeStamp` properties to be null. -## 5.5.0 (2026-06-11) +## 5.5.0 (2024-06-11) ### Features Added diff --git a/sdk/eventgrid/eventgrid/src/generated/models/mappers.ts b/sdk/eventgrid/eventgrid/src/generated/models/mappers.ts index 6d3e8d31b067..344ec344080d 100644 --- a/sdk/eventgrid/eventgrid/src/generated/models/mappers.ts +++ b/sdk/eventgrid/eventgrid/src/generated/models/mappers.ts @@ -6796,7 +6796,7 @@ export const AcsEmailDeliveryReportReceivedEventData: coreClient.CompositeMapper } }, deliveryAttemptTimestamp: { - serializedName: "deliveryAttemptTimeStamp", + serializedName: "deliveryAttemptTimestamp", required: true, type: { name: "String" @@ -6849,7 +6849,7 @@ export const AcsEmailEngagementTrackingReportReceivedEventData: coreClient.Compo } }, userActionTimestamp: { - serializedName: "userActionTimeStamp", + serializedName: "userActionTimestamp", required: true, type: { name: "String" diff --git a/sdk/eventgrid/eventgrid/swagger/README.md b/sdk/eventgrid/eventgrid/swagger/README.md index 4dcbd55f5094..9d204e77b907 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/5bc43b02efc097affda7d0bf23285f24433d6364/specification/eventgrid/data-plane/readme.md" +require: "https://github.com/Azure/azure-rest-api-specs/blob/1b0e82df2f7f953796af2aee0372e34e00baa2d2/specification/eventgrid/data-plane/readme.md" package-name: "@azure/eventgrid" package-version: "5.5.1" title: GeneratedClient