@azure/eventgrid 5.12.1-alpha.20250619.1 → 5.12.1-alpha.20250718.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.
Files changed (62) hide show
  1. package/dist/browser/consumer.js +1 -1
  2. package/dist/browser/consumer.js.map +1 -1
  3. package/dist/browser/eventGridClient.js +30 -8
  4. package/dist/browser/eventGridClient.js.map +1 -1
  5. package/dist/browser/generateSharedAccessSignature.js +1 -1
  6. package/dist/browser/generateSharedAccessSignature.js.map +1 -1
  7. package/dist/browser/generated/generatedClient.js +8 -3
  8. package/dist/browser/generated/generatedClient.js.map +1 -1
  9. package/dist/browser/generated/generatedClientContext.js +8 -2
  10. package/dist/browser/generated/generatedClientContext.js.map +1 -1
  11. package/dist/browser/generated/models/mappers.js +665 -280
  12. package/dist/browser/generated/models/mappers.js.map +1 -1
  13. package/dist/browser/predicates.d.ts +1 -1
  14. package/dist/browser/predicates.d.ts.map +1 -1
  15. package/dist/browser/predicates.js.map +1 -1
  16. package/dist/commonjs/consumer.js +1 -1
  17. package/dist/commonjs/consumer.js.map +1 -1
  18. package/dist/commonjs/eventGridClient.js +30 -8
  19. package/dist/commonjs/eventGridClient.js.map +1 -1
  20. package/dist/commonjs/generateSharedAccessSignature.js +1 -1
  21. package/dist/commonjs/generateSharedAccessSignature.js.map +1 -1
  22. package/dist/commonjs/generated/generatedClient.js +8 -3
  23. package/dist/commonjs/generated/generatedClient.js.map +1 -1
  24. package/dist/commonjs/generated/generatedClientContext.js +8 -2
  25. package/dist/commonjs/generated/generatedClientContext.js.map +1 -1
  26. package/dist/commonjs/generated/models/mappers.js +665 -280
  27. package/dist/commonjs/generated/models/mappers.js.map +1 -1
  28. package/dist/commonjs/predicates.d.ts +1 -1
  29. package/dist/commonjs/predicates.d.ts.map +1 -1
  30. package/dist/commonjs/predicates.js.map +1 -1
  31. package/dist/commonjs/tsdoc-metadata.json +11 -11
  32. package/dist/esm/consumer.js +1 -1
  33. package/dist/esm/consumer.js.map +1 -1
  34. package/dist/esm/eventGridClient.js +30 -8
  35. package/dist/esm/eventGridClient.js.map +1 -1
  36. package/dist/esm/generateSharedAccessSignature.js +1 -1
  37. package/dist/esm/generateSharedAccessSignature.js.map +1 -1
  38. package/dist/esm/generated/generatedClient.js +8 -3
  39. package/dist/esm/generated/generatedClient.js.map +1 -1
  40. package/dist/esm/generated/generatedClientContext.js +8 -2
  41. package/dist/esm/generated/generatedClientContext.js.map +1 -1
  42. package/dist/esm/generated/models/mappers.js +665 -280
  43. package/dist/esm/generated/models/mappers.js.map +1 -1
  44. package/dist/esm/predicates.d.ts +1 -1
  45. package/dist/esm/predicates.d.ts.map +1 -1
  46. package/dist/esm/predicates.js.map +1 -1
  47. package/dist/react-native/consumer.js +1 -1
  48. package/dist/react-native/consumer.js.map +1 -1
  49. package/dist/react-native/eventGridClient.js +30 -8
  50. package/dist/react-native/eventGridClient.js.map +1 -1
  51. package/dist/react-native/generateSharedAccessSignature.js +1 -1
  52. package/dist/react-native/generateSharedAccessSignature.js.map +1 -1
  53. package/dist/react-native/generated/generatedClient.js +8 -3
  54. package/dist/react-native/generated/generatedClient.js.map +1 -1
  55. package/dist/react-native/generated/generatedClientContext.js +8 -2
  56. package/dist/react-native/generated/generatedClientContext.js.map +1 -1
  57. package/dist/react-native/generated/models/mappers.js +665 -280
  58. package/dist/react-native/generated/models/mappers.js.map +1 -1
  59. package/dist/react-native/predicates.d.ts +1 -1
  60. package/dist/react-native/predicates.d.ts.map +1 -1
  61. package/dist/react-native/predicates.js.map +1 -1
  62. package/package.json +2 -2
@@ -220,7 +220,7 @@ export interface SystemEventNameToEventData {
220
220
  /** An interface for the event data of a "Microsoft.Media.LiveEventTrackDiscontinuityDetected" event. */
221
221
  "Microsoft.Media.LiveEventTrackDiscontinuityDetected": MediaLiveEventTrackDiscontinuityDetectedEventData;
222
222
  /** An interface for the event data of a "Microsoft.PolicyInsights.PolicyStateChanged" event. */
223
- "Microsoft.PolicyInsights.PolicyStateChanged ": PolicyInsightsPolicyStateChangedEventData;
223
+ "Microsoft.PolicyInsights.PolicyStateChanged": PolicyInsightsPolicyStateChangedEventData;
224
224
  /** An interface for the event data of a " Microsoft.PolicyInsights.PolicyStateCreated" event. */
225
225
  "Microsoft.PolicyInsights.PolicyStateCreated": PolicyInsightsPolicyStateCreatedEventData;
226
226
  /** An interface for the event data of a "Microsoft.PolicyInsights.PolicyStateDeleted" event. */
@@ -1 +1 @@
1
- {"version":3,"file":"predicates.d.ts","sourceRoot":"","sources":["../../src/predicates.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,qBAAqB,EACrB,gCAAgC,EAChC,kCAAkC,EAClC,uBAAuB,EACvB,+CAA+C,EAC/C,8BAA8B,EAC9B,sCAAsC,EACtC,6BAA6B,EAC7B,qCAAqC,EACrC,+BAA+B,EAC/B,uCAAuC,EACvC,wCAAwC,EACxC,gDAAgD,EAChD,4CAA4C,EAC5C,oDAAoD,EACpD,qCAAqC,EACrC,8CAA8C,EAC9C,qCAAqC,EACrC,+CAA+C,EAC/C,sCAAsC,EACtC,qCAAqC,EACrC,uBAAuB,EACvB,4BAA4B,EAC5B,gCAAgC,EAChC,gCAAgC,EAChC,uCAAuC,EACvC,uCAAuC,EACvC,uCAAuC,EACvC,gCAAgC,EAChC,0CAA0C,EAC1C,0CAA0C,EAC1C,yCAAyC,EACzC,4CAA4C,EAC5C,oCAAoC,EACpC,oCAAoC,EACpC,oCAAoC,EACpC,yCAAyC,EACzC,yCAAyC,EACzC,yCAAyC,EACzC,iCAAiC,EACjC,iCAAiC,EACjC,iCAAiC,EACjC,wCAAwC,EACxC,yCAAyC,EACzC,sCAAsC,EACtC,qCAAqC,EACrC,sCAAsC,EACtC,qCAAqC,EACrC,sDAAsD,EACtD,qCAAqC,EACrC,mCAAmC,EACnC,oCAAoC,EACpC,oCAAoC,EACpC,sCAAsC,EACtC,sCAAsC,EACtC,sCAAsC,EACtC,8BAA8B,EAC9B,4BAA4B,EA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AQ,CAAS,CAAC,MAAM,KAAK,SAAS,CAAC;AACzC,CAAC;AA4BD,MAAM,UAAU,aAAa,CAC3B,SAAY,EACZ,KAAoD;IAIpD,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE,CAAC;QAC5B,OAAO,KAAK,CAAC,IAAI,KAAK,SAAS,CAAC;IAClC,CAAC;SAAM,CAAC;QACN,OAAO,KAAK,CAAC,SAAS,KAAK,SAAS,CAAC;IACvC,CAAC;AACH,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n AcsCallEndedEventData,\n AcsCallParticipantAddedEventData,\n AcsCallParticipantRemovedEventData,\n AcsCallStartedEventData,\n AcsChatAzureBotCommandReceivedInThreadEventData,\n AcsChatMessageDeletedEventData,\n AcsChatMessageDeletedInThreadEventData,\n AcsChatMessageEditedEventData,\n AcsChatMessageEditedInThreadEventData,\n AcsChatMessageReceivedEventData,\n AcsChatMessageReceivedInThreadEventData,\n AcsChatParticipantAddedToThreadEventData,\n AcsChatParticipantAddedToThreadWithUserEventData,\n AcsChatParticipantRemovedFromThreadEventData,\n AcsChatParticipantRemovedFromThreadWithUserEventData,\n AcsChatThreadCreatedWithUserEventData,\n AcsChatThreadPropertiesUpdatedPerUserEventData,\n AcsChatThreadWithUserDeletedEventData,\n AcsChatTypingIndicatorReceivedInThreadEventData,\n AcsRecordingFileStatusUpdatedEventData,\n AcsSmsDeliveryReportReceivedEventData,\n AcsSmsReceivedEventData,\n AcsUserDisconnectedEventData,\n ApiManagementApiCreatedEventData,\n ApiManagementApiDeletedEventData,\n ApiManagementApiReleaseCreatedEventData,\n ApiManagementApiReleaseDeletedEventData,\n ApiManagementApiReleaseUpdatedEventData,\n ApiManagementApiUpdatedEventData,\n ApiManagementCircuitBreakerClosedEventData,\n ApiManagementCircuitBreakerOpenedEventData,\n ApiManagementGatewayTokenExpiredEventData,\n ApiManagementGatewayTokenNearExpiryEventData,\n ApiManagementProductCreatedEventData,\n ApiManagementProductDeletedEventData,\n ApiManagementProductUpdatedEventData,\n ApiManagementSubscriptionCreatedEventData,\n ApiManagementSubscriptionDeletedEventData,\n ApiManagementSubscriptionUpdatedEventData,\n ApiManagementUserCreatedEventData,\n ApiManagementUserDeletedEventData,\n ApiManagementUserUpdatedEventData,\n AppConfigurationKeyValueDeletedEventData,\n AppConfigurationKeyValueModifiedEventData,\n ContainerRegistryChartDeletedEventData,\n ContainerRegistryChartPushedEventData,\n ContainerRegistryImageDeletedEventData,\n ContainerRegistryImagePushedEventData,\n ContainerServiceNewKubernetesVersionAvailableEventData,\n EdgeSolutionVersionPublishedEventData,\n EventHubCaptureFileCreatedEventData,\n HealthcareDicomImageCreatedEventData,\n HealthcareDicomImageDeletedEventData,\n HealthcareFhirResourceCreatedEventData,\n HealthcareFhirResourceDeletedEventData,\n HealthcareFhirResourceUpdatedEventData,\n IotHubDeviceConnectedEventData,\n IotHubDeviceCreatedEventData,\n IotHubDeviceDeletedEventData,\n IotHubDeviceDisconnectedEventData,\n IotHubDeviceTelemetryEventData,\n KeyVaultAccessPolicyChangedEventData,\n KeyVaultCertificateExpiredEventData,\n KeyVaultCertificateNearExpiryEventData,\n KeyVaultCertificateNewVersionCreatedEventData,\n KeyVaultKeyExpiredEventData,\n KeyVaultKeyNearExpiryEventData,\n KeyVaultKeyNewVersionCreatedEventData,\n KeyVaultSecretExpiredEventData,\n KeyVaultSecretNearExpiryEventData,\n KeyVaultSecretNewVersionCreatedEventData,\n MachineLearningServicesDatasetDriftDetectedEventData,\n MachineLearningServicesModelDeployedEventData,\n MachineLearningServicesModelRegisteredEventData,\n MachineLearningServicesRunCompletedEventData,\n MachineLearningServicesRunStatusChangedEventData,\n MapsGeofenceEnteredEventData,\n MapsGeofenceExitedEventData,\n MapsGeofenceResultEventData,\n MediaJobCanceledEventData,\n MediaJobCancelingEventData,\n MediaJobErroredEventData,\n MediaJobFinishedEventData,\n MediaJobOutputCanceledEventData,\n MediaJobOutputCancelingEventData,\n MediaJobOutputErroredEventData,\n MediaJobOutputFinishedEventData,\n MediaJobOutputProcessingEventData,\n MediaJobOutputProgressEventData,\n MediaJobOutputScheduledEventData,\n MediaJobOutputStateChangeEventData,\n MediaJobProcessingEventData,\n MediaJobScheduledEventData,\n MediaJobStateChangeEventData,\n MediaLiveEventChannelArchiveHeartbeatEventData,\n MediaLiveEventConnectionRejectedEventData,\n MediaLiveEventEncoderConnectedEventData,\n MediaLiveEventEncoderDisconnectedEventData,\n MediaLiveEventIncomingDataChunkDroppedEventData,\n MediaLiveEventIncomingStreamReceivedEventData,\n MediaLiveEventIncomingStreamsOutOfSyncEventData,\n MediaLiveEventIncomingVideoStreamsOutOfSyncEventData,\n MediaLiveEventIngestHeartbeatEventData,\n MediaLiveEventTrackDiscontinuityDetectedEventData,\n PolicyInsightsPolicyStateChangedEventData,\n PolicyInsightsPolicyStateCreatedEventData,\n PolicyInsightsPolicyStateDeletedEventData,\n ResourceActionCancelEventData,\n ResourceActionFailureEventData,\n ResourceActionSuccessEventData,\n ResourceDeleteCancelEventData,\n ResourceDeleteFailureEventData,\n ResourceDeleteSuccessEventData,\n ResourceWriteCancelEventData,\n ResourceWriteFailureEventData,\n ResourceWriteSuccessEventData,\n ServiceBusActiveMessagesAvailableWithNoListenersEventData,\n ServiceBusDeadletterMessagesAvailableWithNoListenersEventData,\n StorageAsyncOperationInitiatedEventData,\n StorageBlobCreatedEventData,\n StorageBlobDeletedEventData,\n StorageBlobInventoryPolicyCompletedEventData,\n StorageBlobRenamedEventData,\n StorageBlobTierChangedEventData,\n StorageDirectoryCreatedEventData,\n StorageDirectoryDeletedEventData,\n StorageDirectoryRenamedEventData,\n StorageLifecyclePolicyCompletedEventData,\n SubscriptionDeletedEventData,\n SubscriptionValidationEventData,\n WebAppServicePlanUpdatedEventData,\n WebAppUpdatedEventData,\n WebBackupOperationCompletedEventData,\n WebBackupOperationFailedEventData,\n WebBackupOperationStartedEventData,\n WebRestoreOperationCompletedEventData,\n WebRestoreOperationFailedEventData,\n WebRestoreOperationStartedEventData,\n WebSlotSwapCompletedEventData,\n WebSlotSwapFailedEventData,\n WebSlotSwapStartedEventData,\n WebSlotSwapWithPreviewCancelledEventData,\n WebSlotSwapWithPreviewStartedEventData,\n StorageTaskQueuedEventData,\n StorageTaskCompletedEventData,\n DataBoxCopyStartedEventData,\n DataBoxCopyCompletedEventData,\n DataBoxOrderCompletedEventData,\n AcsIncomingCallEventData,\n AcsEmailDeliveryReportReceivedEventData,\n AcsEmailEngagementTrackingReportReceivedEventData,\n ApiManagementGatewayCreatedEventData,\n ApiManagementGatewayUpdatedEventData,\n ApiManagementGatewayDeletedEventData,\n ApiManagementGatewayHostnameConfigurationCreatedEventData,\n ApiManagementGatewayHostnameConfigurationUpdatedEventData,\n ApiManagementGatewayHostnameConfigurationDeletedEventData,\n ApiManagementGatewayCertificateAuthorityCreatedEventData,\n ApiManagementGatewayCertificateAuthorityUpdatedEventData,\n ApiManagementGatewayCertificateAuthorityDeletedEventData,\n ApiManagementGatewayApiAddedEventData,\n ApiManagementGatewayApiRemovedEventData,\n HealthcareDicomImageUpdatedEventData,\n ContainerServiceClusterSupportEndedEventData,\n ContainerServiceClusterSupportEndingEventData,\n ContainerServiceNodePoolRollingStartedEventData,\n ContainerServiceNodePoolRollingSucceededEventData,\n ContainerServiceNodePoolRollingFailedEventData,\n EventGridMqttClientCreatedOrUpdatedEventData,\n EventGridMqttClientDeletedEventData,\n EventGridMqttClientSessionConnectedEventData,\n EventGridMqttClientSessionDisconnectedEventData,\n AppConfigurationSnapshotCreatedEventData,\n AppConfigurationSnapshotModifiedEventData,\n ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventData,\n ResourceNotificationsHealthResourcesAnnotatedEventData,\n AcsRouterWorkerDeregisteredEventData,\n AcsRouterWorkerRegisteredEventData,\n AcsRouterJobCancelledEventData,\n AcsRouterJobClassificationFailedEventData,\n AcsRouterJobClassifiedEventData,\n AcsRouterJobClosedEventData,\n AcsRouterJobCompletedEventData,\n AcsRouterJobDeletedEventData,\n AcsRouterJobExceptionTriggeredEventData,\n AcsRouterJobQueuedEventData,\n AcsRouterJobReceivedEventData,\n AcsRouterJobSchedulingFailedEventData,\n AcsRouterJobUnassignedEventData,\n AcsRouterJobWaitingForActivationEventData,\n AcsRouterJobWorkerSelectorsExpiredEventData,\n AcsRouterWorkerDeletedEventData,\n AcsRouterWorkerOfferAcceptedEventData,\n AcsRouterWorkerOfferDeclinedEventData,\n AcsRouterWorkerOfferExpiredEventData,\n AcsRouterWorkerOfferIssuedEventData,\n AcsRouterWorkerOfferRevokedEventData,\n ResourceNotificationsResourceManagementCreatedOrUpdatedEventData,\n ResourceNotificationsResourceManagementDeletedEventData,\n StorageTaskAssignmentQueuedEventData,\n AvsScriptExecutionStartedEventData,\n AvsScriptExecutionCancelledEventData,\n AvsClusterCreatedEventData,\n AvsPrivateCloudFailedEventData,\n AvsPrivateCloudUpdatingEventData,\n AvsPrivateCloudUpdatedEventData,\n AvsClusterUpdatingEventData,\n AvsClusterDeletedEventData,\n AvsScriptExecutionFailedEventData,\n AvsScriptExecutionFinishedEventData,\n StorageTaskAssignmentCompletedEventData,\n AvsClusterUpdatedEventData,\n AvsClusterFailedEventData,\n ApiCenterApiDefinitionAddedEventData,\n ApiCenterApiDefinitionUpdatedEventData,\n AcsMessageDeliveryStatusUpdatedEventData,\n AcsMessageReceivedEventData,\n AcsRouterWorkerUpdatedEventData,\n AcsChatThreadDeletedEventData,\n AcsChatThreadCreatedEventData,\n AcsChatThreadPropertiesUpdatedEventData,\n ResourceNotificationsContainerServiceEventResourcesScheduledEventData,\n} from \"./generated/models/index.js\";\n\nimport type { CloudEvent, EventGridEvent } from \"./models.js\";\n\n/**\n * The Event Types for all System Events. These may be used with `isSystemEvent` to determine if an\n * event is a system event of a given type.\n */\nexport type KnownSystemEventTypes = keyof SystemEventNameToEventData;\n\n/**\n * A mapping of event type names to event data type interfaces.\n */\nexport interface SystemEventNameToEventData {\n /** An interface for the event data of a \"Microsoft.ApiManagement.UserCreated\" event. */\n \"Microsoft.ApiManagement.UserCreated\": ApiManagementUserCreatedEventData;\n /** An interface for the event data of a \"Microsoft.ApiManagement.UserUpdated\" event. */\n \"Microsoft.ApiManagement.UserUpdated\": ApiManagementUserUpdatedEventData;\n /** An interface for the event data of a \"Microsoft.ApiManagement.UserDeleted\" event. */\n \"Microsoft.ApiManagement.UserDeleted\": ApiManagementUserDeletedEventData;\n /** An interface for the event data of a \"Microsoft.ApiManagement.SubscriptionCreated\" event. */\n \"Microsoft.ApiManagement.SubscriptionCreated\": ApiManagementSubscriptionCreatedEventData;\n /** An interface for the event data of a \"Microsoft.ApiManagement.SubscriptionUpdated\" event. */\n \"Microsoft.ApiManagement.SubscriptionUpdated\": ApiManagementSubscriptionUpdatedEventData;\n /** An interface for the event data of a \"Microsoft.ApiManagement.SubscriptionDeleted\" event. */\n \"Microsoft.ApiManagement.SubscriptionDeleted\": ApiManagementSubscriptionDeletedEventData;\n /** An interface for the event data of a \"Microsoft.ApiManagement.ProductCreated\" event. */\n \"Microsoft.ApiManagement.ProductCreated\": ApiManagementProductCreatedEventData;\n /** An interface for the event data of a \"Microsoft.ApiManagement.ProductUpdated\" event. */\n \"Microsoft.ApiManagement.ProductUpdated\": ApiManagementProductUpdatedEventData;\n /** An interface for the event data of a \"Microsoft.ApiManagement.ProductDeleted\" event. */\n \"Microsoft.ApiManagement.ProductDeleted\": ApiManagementProductDeletedEventData;\n /** An interface for the event data of a \"Microsoft.ApiManagement.APICreated\" event. */\n \"Microsoft.ApiManagement.APICreated\": ApiManagementApiCreatedEventData;\n /** An interface for the event data of a \"Microsoft.ApiManagement.APIUpdated\" event. */\n \"Microsoft.ApiManagement.APIUpdated\": ApiManagementApiUpdatedEventData;\n /** An interface for the event data of a \"Microsoft.ApiManagement.CircuitBreaker.Closed\" event. */\n \"Microsoft.ApiManagement.CircuitBreaker.Closed\": ApiManagementCircuitBreakerClosedEventData;\n /** An interface for the event data of a \"Microsoft.ApiManagement.CircuitBreaker.Opened\" event. */\n \"Microsoft.ApiManagement.CircuitBreaker.Opened\": ApiManagementCircuitBreakerOpenedEventData;\n /** An interface for the event data of a \"Microsoft.ApiManagement.APIDeleted\" event. */\n \"Microsoft.ApiManagement.APIDeleted\": ApiManagementApiDeletedEventData;\n /** An interface for the event data of a \"Microsoft.ApiManagement.APIReleaseCreated\" event. */\n \"Microsoft.ApiManagement.APIReleaseCreated\": ApiManagementApiReleaseCreatedEventData;\n /** An interface for the event data of a \"Microsoft.ApiManagement.APIReleaseUpdated\" event. */\n \"Microsoft.ApiManagement.APIReleaseUpdated\": ApiManagementApiReleaseUpdatedEventData;\n /** An interface for the event data of a \"Microsoft.ApiManagement.APIReleaseDeleted\" event. */\n \"Microsoft.ApiManagement.APIReleaseDeleted\": ApiManagementApiReleaseDeletedEventData;\n /** An interface for the event data of a \"Microsoft.ApiManagement.GatewayTokenExpired\" event. */\n \"Microsoft.ApiManagement.GatewayTokenExpired\": ApiManagementGatewayTokenExpiredEventData;\n /** An interface for the event data of a \"Microsoft.ApiManagement.GatewayTokenNearExpiry\" event. */\n \"Microsoft.ApiManagement.GatewayTokenNearExpiry\": ApiManagementGatewayTokenNearExpiryEventData;\n /** An interface for the event data of a \"Microsoft.Communication.CallEnded\" event. */\n \"Microsoft.Communication.CallEnded\": AcsCallEndedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.CallParticipantAdded\" event. */\n \"Microsoft.Communication.CallParticipantAdded\": AcsCallParticipantAddedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.CallParticipantRemoved\" event. */\n \"Microsoft.Communication.CallParticipantRemoved\": AcsCallParticipantRemovedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.CallStarted\" event. */\n \"Microsoft.Communication.CallStarted\": AcsCallStartedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.ChatAzureBotCommandReceivedInThread\" event. */\n \"Microsoft.Communication.ChatAzureBotCommandReceivedInThread\": AcsChatAzureBotCommandReceivedInThreadEventData;\n /** An interface for the event data of a \"Microsoft.Communication.ChatMessageReceived\" event. */\n \"Microsoft.Communication.ChatMessageReceived\": AcsChatMessageReceivedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.ChatMessageReceivedInThread\" event. */\n \"Microsoft.Communication.ChatMessageReceivedInThread\": AcsChatMessageReceivedInThreadEventData;\n /** An interface for the event data of a \"Microsoft.Communication.ChatMessageEdited\" event. */\n \"Microsoft.Communication.ChatMessageEdited\": AcsChatMessageEditedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.ChatMessageEditedInThread\" event. */\n \"Microsoft.Communication.ChatMessageEditedInThread\": AcsChatMessageEditedInThreadEventData;\n /** An interface for the event data of a \"Microsoft.Communication.ChatMessageDeleted\" event. */\n \"Microsoft.Communication.ChatMessageDeleted\": AcsChatMessageDeletedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.ChatMessageDeletedInThread\" event. */\n \"Microsoft.Communication.ChatMessageDeletedInThread\": AcsChatMessageDeletedInThreadEventData;\n /** An interface for the event data of a \"Microsoft.Communication.ChatThreadCreatedWithUser\" event. */\n \"Microsoft.Communication.ChatThreadCreatedWithUser\": AcsChatThreadCreatedWithUserEventData;\n /** An interface for the event data of a \"Microsoft.Communication.ChatThreadWithUserDeleted\" event. */\n \"Microsoft.Communication.ChatThreadWithUserDeleted\": AcsChatThreadWithUserDeletedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.ChatTypingIndicatorReceivedInThread\" event. */\n \"Microsoft.Communication.ChatTypingIndicatorReceivedInThread\": AcsChatTypingIndicatorReceivedInThreadEventData;\n /** An interface for the event data of a \"Microsoft.Communication.ChatThreadPropertiesUpdatedPerUser\" event. */\n \"Microsoft.Communication.ChatThreadPropertiesUpdatedPerUser\": AcsChatThreadPropertiesUpdatedPerUserEventData;\n /** An interface for the event data of a \"Microsoft.Communication.ChatThreadParticipantAdded\" event. */\n \"Microsoft.Communication.ChatThreadParticipantAdded\": AcsChatParticipantAddedToThreadEventData;\n /** An interface for the event data of a \"Microsoft.Communication.ChatParticipantAddedToThreadWithUser\" event. */\n \"Microsoft.Communication.ChatParticipantAddedToThreadWithUser\": AcsChatParticipantAddedToThreadWithUserEventData;\n /** An interface for the event data of a \"Microsoft.Communication.ChatThreadParticipantRemoved\" event. */\n \"Microsoft.Communication.ChatThreadParticipantRemoved\": AcsChatParticipantRemovedFromThreadEventData;\n /** An interface for the event data of a \"Microsoft.Communication.ChatParticipantRemovedFromThreadWithUser\" event. */\n \"Microsoft.Communication.ChatParticipantRemovedFromThreadWithUser\": AcsChatParticipantRemovedFromThreadWithUserEventData;\n /** An interface for the event data of a \"Microsoft.Communication.RecordingFileStatusUpdated\" event. */\n \"Microsoft.Communication.RecordingFileStatusUpdated\": AcsRecordingFileStatusUpdatedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.SMSDeliveryReportReceived\" event. */\n \"Microsoft.Communication.SMSDeliveryReportReceived\": AcsSmsDeliveryReportReceivedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.SMSReceived\" event. */\n \"Microsoft.Communication.SMSReceived\": AcsSmsReceivedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.UserDisconnected\" event. */\n \"Microsoft.Communication.UserDisconnected\": AcsUserDisconnectedEventData;\n /** An interface for the event data of a \"Microsoft.ContainerService.NewKubernetesVersionAvailable\" event. */\n \"Microsoft.ContainerService.NewKubernetesVersionAvailable\": ContainerServiceNewKubernetesVersionAvailableEventData;\n /** An interface for the event data of a \"Microsoft.AppConfiguration.KeyValueDeleted\" event. */\n \"Microsoft.AppConfiguration.KeyValueDeleted\": AppConfigurationKeyValueDeletedEventData;\n /** An interface for the event data of a \"Microsoft.AppConfiguration.KeyValueModified\" event. */\n \"Microsoft.AppConfiguration.KeyValueModified\": AppConfigurationKeyValueModifiedEventData;\n /** An interface for the event data of a \"Microsoft.ContainerRegistry.ImagePushed\" event. */\n \"Microsoft.ContainerRegistry.ImagePushed\": ContainerRegistryImagePushedEventData;\n /** An interface for the event data of a \"Microsoft.ContainerRegistry.ImageDeleted\" event. */\n \"Microsoft.ContainerRegistry.ImageDeleted\": ContainerRegistryImageDeletedEventData;\n /** An interface for the event data of a \"Microsoft.ContainerRegistry.ChartDeleted\" event. */\n \"Microsoft.ContainerRegistry.ChartDeleted\": ContainerRegistryChartDeletedEventData;\n /** An interface for the event data of a \"Microsoft.ContainerRegistry.ChartPushed\" event. */\n \"Microsoft.ContainerRegistry.ChartPushed\": ContainerRegistryChartPushedEventData;\n /** An interface for the event data of a \"Microsoft.Devices.DeviceCreated\" event. */\n \"Microsoft.Devices.DeviceCreated\": IotHubDeviceCreatedEventData;\n /** An interface for the event data of a \"Microsoft.Devices.DeviceDeleted\" event. */\n \"Microsoft.Devices.DeviceDeleted\": IotHubDeviceDeletedEventData;\n /** An interface for the event data of a \"Microsoft.Devices.DeviceConnected\" event. */\n \"Microsoft.Devices.DeviceConnected\": IotHubDeviceConnectedEventData;\n /** An interface for the event data of a \"Microsoft.Devices.DeviceDisconnected\" event. */\n \"Microsoft.Devices.DeviceDisconnected\": IotHubDeviceDisconnectedEventData;\n /** An interface for the event data of a \"Microsoft.Devices.DeviceTelemetry\" event. */\n \"Microsoft.Devices.DeviceTelemetry\": IotHubDeviceTelemetryEventData;\n /** An interface for the event data of a \"Microsoft.EventGrid.SubscriptionValidationEvent\" event. */\n \"Microsoft.EventGrid.SubscriptionValidationEvent\": SubscriptionValidationEventData;\n /** An interface for the event data of a \"Microsoft.EventGrid.SubscriptionDeletedEvent\" event. */\n \"Microsoft.EventGrid.SubscriptionDeletedEvent\": SubscriptionDeletedEventData;\n /** An interface for the event data of a \"Microsoft.EventHub.CaptureFileCreated\" event. */\n \"Microsoft.EventHub.CaptureFileCreated\": EventHubCaptureFileCreatedEventData;\n /** An interface for the event data of a \"Microsoft.HealthcareApis.DicomImageCreated\" event. */\n \"Microsoft.HealthcareApis.DicomImageCreated\": HealthcareDicomImageCreatedEventData;\n /** An interface for the event data of a \"Microsoft.HealthcareApis.DicomImageDeleted\" event. */\n \"Microsoft.HealthcareApis.DicomImageDeleted\": HealthcareDicomImageDeletedEventData;\n /** An interface for the event data of a \"Microsoft.HealthcareApis.FhirResourceCreated\" event. */\n \"Microsoft.HealthcareApis.FhirResourceCreated\": HealthcareFhirResourceCreatedEventData;\n /** An interface for the event data of a \"Microsoft.HealthcareApis.FhirUpdatedCreated\" event. */\n \"Microsoft.HealthcareApis.FhirUpdatedCreated\": HealthcareFhirResourceUpdatedEventData;\n /** An interface for the event data of a \"Microsoft.HealthcareApis.FhirDeletedCreated\" event. */\n \"Microsoft.HealthcareApis.FhirDeletedCreated\": HealthcareFhirResourceDeletedEventData;\n /** An interface for the event data of a \"Microsoft.KeyVault.CertificateNewVersionCreated\" event. */\n \"Microsoft.KeyVault.CertificateNewVersionCreated\": KeyVaultCertificateNewVersionCreatedEventData;\n /** An interface for the event data of a \"Microsoft.KeyVault.CertificateNearExpiry\" event. */\n \"Microsoft.KeyVault.CertificateNearExpiry\": KeyVaultCertificateNearExpiryEventData;\n /** An interface for the event data of a \"Microsoft.KeyVault.CertificateExpired\" event. */\n \"Microsoft.KeyVault.CertificateExpired\": KeyVaultCertificateExpiredEventData;\n /** An interface for the event data of a \"Microsoft.KeyVault.KeyNewVersionCreated\" event. */\n \"Microsoft.KeyVault.KeyNewVersionCreated\": KeyVaultKeyNewVersionCreatedEventData;\n /** An interface for the event data of a \"Microsoft.KeyVault.KeyNearExpiry\" event. */\n \"Microsoft.KeyVault.KeyNearExpiry\": KeyVaultKeyNearExpiryEventData;\n /** An interface for the event data of a \"Microsoft.KeyVault.KeyExpired\" event. */\n \"Microsoft.KeyVault.KeyExpired\": KeyVaultKeyExpiredEventData;\n /** An interface for the event data of a \"Microsoft.KeyVault.SecretNewVersionCreated\" event. */\n \"Microsoft.KeyVault.SecretNewVersionCreated\": KeyVaultSecretNewVersionCreatedEventData;\n /** An interface for the event data of a \"Microsoft.KeyVault.SecretNearExpiry\" event. */\n \"Microsoft.KeyVault.SecretNearExpiry\": KeyVaultSecretNearExpiryEventData;\n /** An interface for the event data of a \"Microsoft.KeyVault.SecretExpired\" event. */\n \"Microsoft.KeyVault.SecretExpired\": KeyVaultSecretExpiredEventData;\n /** An interface for the event data of a \"Microsoft.KeyVault.VaultAccessPolicyChanged\" event. */\n \"Microsoft.KeyVault.VaultAccessPolicyChanged\": KeyVaultAccessPolicyChangedEventData;\n /** An interface for the event data of a \"Microsoft.MachineLearningServices.DatasetDriftDetected\" event. */\n \"Microsoft.MachineLearningServices.DatasetDriftDetected\": MachineLearningServicesDatasetDriftDetectedEventData;\n /** An interface for the event data of a \"Microsoft.MachineLearningServices.ModelDeployed\" event. */\n \"Microsoft.MachineLearningServices.ModelDeployed\": MachineLearningServicesModelDeployedEventData;\n /** An interface for the event data of a \"Microsoft.MachineLearningServices.ModelRegistered\" event. */\n \"Microsoft.MachineLearningServices.ModelRegistered\": MachineLearningServicesModelRegisteredEventData;\n /** An interface for the event data of a \"Microsoft.MachineLearningServices.RunCompleted\" event. */\n \"Microsoft.MachineLearningServices.RunCompleted\": MachineLearningServicesRunCompletedEventData;\n /** An interface for the event data of a \"Microsoft.MachineLearningServices.RunStatusChanged\" event. */\n \"Microsoft.MachineLearningServices.RunStatusChanged\": MachineLearningServicesRunStatusChangedEventData;\n /** An interface for the event data of a \"Microsoft.Maps.GeofenceEntered\" event. */\n \"Microsoft.Maps.GeofenceEntered\": MapsGeofenceEnteredEventData;\n /** An interface for the event data of a \"Microsoft.Maps.GeofenceExited\" event. */\n \"Microsoft.Maps.GeofenceExited\": MapsGeofenceExitedEventData;\n /** An interface for the event data of a \"Microsoft.Maps.GeofenceResult\" event. */\n \"Microsoft.Maps.GeofenceResult\": MapsGeofenceResultEventData;\n /** An interface for the event data of a \"Microsoft.Media.JobStateChange\" event. */\n \"Microsoft.Media.JobStateChange\": MediaJobStateChangeEventData;\n /** An interface for the event data of a \"Microsoft.Media.JobOutputStateChange\" event. */\n \"Microsoft.Media.JobOutputStateChange\": MediaJobOutputStateChangeEventData;\n /** An interface for the event data of a \"Microsoft.Media.JobScheduled\" event. */\n \"Microsoft.Media.JobScheduled\": MediaJobScheduledEventData;\n /** An interface for the event data of a \"Microsoft.Media.JobProcessing\" event. */\n \"Microsoft.Media.JobProcessing\": MediaJobProcessingEventData;\n /** An interface for the event data of a \"Microsoft.Media.JobCanceling\" event. */\n \"Microsoft.Media.JobCanceling\": MediaJobCancelingEventData;\n /** An interface for the event data of a \"Microsoft.Media.JobFinished\" event. */\n \"Microsoft.Media.JobFinished\": MediaJobFinishedEventData;\n /** An interface for the event data of a \"Microsoft.Media.JobCanceled\" event. */\n \"Microsoft.Media.JobCanceled\": MediaJobCanceledEventData;\n /** An interface for the event data of a \"Microsoft.Media.JobErrored\" event. */\n \"Microsoft.Media.JobErrored\": MediaJobErroredEventData;\n /** An interface for the event data of a \"Microsoft.Media.JobOutputCanceled\" event. */\n \"Microsoft.Media.JobOutputCanceled\": MediaJobOutputCanceledEventData;\n /** An interface for the event data of a \"Microsoft.Media.JobOutputCanceling\" event. */\n \"Microsoft.Media.JobOutputCanceling\": MediaJobOutputCancelingEventData;\n /** An interface for the event data of a \"Microsoft.Media.JobOutputErrored\" event. */\n \"Microsoft.Media.JobOutputErrored\": MediaJobOutputErroredEventData;\n /** An interface for the event data of a \"Microsoft.Media.JobOutputFinished\" event. */\n \"Microsoft.Media.JobOutputFinished\": MediaJobOutputFinishedEventData;\n /** An interface for the event data of a \"Microsoft.Media.JobOutputProcessing\" event. */\n \"Microsoft.Media.JobOutputProcessing\": MediaJobOutputProcessingEventData;\n /** An interface for the event data of a \"Microsoft.Media.JobOutputScheduled\" event. */\n \"Microsoft.Media.JobOutputScheduled\": MediaJobOutputScheduledEventData;\n /** An interface for the event data of a \"Microsoft.Media.JobOutputProgress\" event. */\n \"Microsoft.Media.JobOutputProgress\": MediaJobOutputProgressEventData;\n /** An interface for the event data of a \"Microsoft.Media.LiveEventEncoderConnected\" event. */\n \"Microsoft.Media.LiveEventEncoderConnected\": MediaLiveEventEncoderConnectedEventData;\n /** An interface for the event data of a \"Microsoft.Media.LiveEventChannelArchiveHeartbeat\" event. */\n \"Microsoft.Media.LiveEventChannelArchiveHeartbeat\": MediaLiveEventChannelArchiveHeartbeatEventData;\n /** An interface for the event data of a \"Microsoft.Media.LiveEventConnectionRejected\" event. */\n \"Microsoft.Media.LiveEventConnectionRejected\": MediaLiveEventConnectionRejectedEventData;\n /** An interface for the event data of a \"Microsoft.Media.LiveEventEncoderDisconnected\" event. */\n \"Microsoft.Media.LiveEventEncoderDisconnected\": MediaLiveEventEncoderDisconnectedEventData;\n /** An interface for the event data of a \"Microsoft.Media.LiveEventIncomingStreamReceived\" event. */\n \"Microsoft.Media.LiveEventIncomingStreamReceived\": MediaLiveEventIncomingStreamReceivedEventData;\n /** An interface for the event data of a \"Microsoft.Media.LiveEventIncomingStreamsOutOfSync\" event. */\n \"Microsoft.Media.LiveEventIncomingStreamsOutOfSync\": MediaLiveEventIncomingStreamsOutOfSyncEventData;\n /** An interface for the event data of a \"Microsoft.Media.LiveEventIncomingVideoStreamsOutOfSync\" event. */\n \"Microsoft.Media.LiveEventIncomingVideoStreamsOutOfSync\": MediaLiveEventIncomingVideoStreamsOutOfSyncEventData;\n /** An interface for the event data of a \"Microsoft.Media.LiveEventIncomingDataChunkDropped\" event. */\n \"Microsoft.Media.LiveEventIncomingDataChunkDropped\": MediaLiveEventIncomingDataChunkDroppedEventData;\n /** An interface for the event data of a \"Microsoft.Media.LiveEventIngestHeartbeat\" event. */\n \"Microsoft.Media.LiveEventIngestHeartbeat\": MediaLiveEventIngestHeartbeatEventData;\n /** An interface for the event data of a \"Microsoft.Media.LiveEventTrackDiscontinuityDetected\" event. */\n \"Microsoft.Media.LiveEventTrackDiscontinuityDetected\": MediaLiveEventTrackDiscontinuityDetectedEventData;\n /** An interface for the event data of a \"Microsoft.PolicyInsights.PolicyStateChanged\" event. */\n \"Microsoft.PolicyInsights.PolicyStateChanged \": PolicyInsightsPolicyStateChangedEventData;\n /** An interface for the event data of a \" Microsoft.PolicyInsights.PolicyStateCreated\" event. */\n \"Microsoft.PolicyInsights.PolicyStateCreated\": PolicyInsightsPolicyStateCreatedEventData;\n /** An interface for the event data of a \"Microsoft.PolicyInsights.PolicyStateDeleted\" event. */\n \"Microsoft.PolicyInsights.PolicyStateDeleted\": PolicyInsightsPolicyStateDeletedEventData;\n /** An interface for the event data of a \"Microsoft.Resources.ResourceDeleteSuccess\" event. */\n \"Microsoft.Resources.ResourceWriteSuccess\": ResourceWriteSuccessEventData;\n /** An interface for the event data of a \"Microsoft.Resources.ResourceWriteFailure\" event. */\n \"Microsoft.Resources.ResourceWriteFailure\": ResourceWriteFailureEventData;\n /** An interface for the event data of a \"Microsoft.Resources.ResourceWriteCancel\" event. */\n \"Microsoft.Resources.ResourceWriteCancel\": ResourceWriteCancelEventData;\n /** An interface for the event data of a \"Microsoft.Resources.ResourceDeleteSuccess\" event. */\n \"Microsoft.Resources.ResourceDeleteSuccess\": ResourceDeleteSuccessEventData;\n /** An interface for the event data of a \"Microsoft.Resources.ResourceDeleteFailure\" event. */\n \"Microsoft.Resources.ResourceDeleteFailure\": ResourceDeleteFailureEventData;\n /** An interface for the event data of a \"Microsoft.Resources.ResourceDeleteCancel\" event. */\n \"Microsoft.Resources.ResourceDeleteCancel\": ResourceDeleteCancelEventData;\n /** An interface for the event data of a \"Microsoft.Resources.ResourceActionSuccess\" event. */\n \"Microsoft.Resources.ResourceActionSuccess\": ResourceActionSuccessEventData;\n /** An interface for the event data of a \"Microsoft.Resources.ResourceActionFailure\" event. */\n \"Microsoft.Resources.ResourceActionFailure\": ResourceActionFailureEventData;\n /** An interface for the event data of a \"Microsoft.Resources.ResourceActionCancel\" event. */\n \"Microsoft.Resources.ResourceActionCancel\": ResourceActionCancelEventData;\n /** An interface for the event data of a \"Microsoft.ServiceBus.ActiveMessagesAvailableWithNoListeners\" event. */\n \"Microsoft.ServiceBus.ActiveMessagesAvailableWithNoListeners\": ServiceBusActiveMessagesAvailableWithNoListenersEventData;\n /** An interface for the event data of a \"Microsoft.ServiceBus.DeadletterMessagesAvailableWithNoListeners\" event. */\n \"Microsoft.ServiceBus.DeadletterMessagesAvailableWithNoListeners\": ServiceBusDeadletterMessagesAvailableWithNoListenersEventData;\n /** An interface for the event data of a \"Microsoft.Storage.AsyncOperationInitiated\" event. */\n \"Microsoft.Storage.AsyncOperationInitiated\": StorageAsyncOperationInitiatedEventData;\n /** An interface for the event data of a \"Microsoft.Storage.BlobCreated\" event. */\n \"Microsoft.Storage.BlobCreated\": StorageBlobCreatedEventData;\n /** An interface for the event data of a \"Microsoft.Storage.BlobDeleted\" event. */\n \"Microsoft.Storage.BlobDeleted\": StorageBlobDeletedEventData;\n /** An interface for the event data of a \"Microsoft.Storage.BlobInventoryPolicyCompleted\" event. */\n \"Microsoft.Storage.BlobInventoryPolicyCompleted\": StorageBlobInventoryPolicyCompletedEventData;\n /** An interface for the event data of a \"Microsoft.Storage.BlobTierChanged\" event. */\n \"Microsoft.Storage.BlobTierChanged\": StorageBlobTierChangedEventData;\n /** An interface for the event data of a \"Microsoft.Storage.BlobRenamed\" event. */\n \"Microsoft.Storage.BlobRenamed\": StorageBlobRenamedEventData;\n /** An interface for the event data of a \"Microsoft.Storage.DirectoryCreated\" event. */\n \"Microsoft.Storage.DirectoryCreated\": StorageDirectoryCreatedEventData;\n /** An interface for the event data of a \"Microsoft.Storage.DirectoryDeleted\" event. */\n \"Microsoft.Storage.DirectoryDeleted\": StorageDirectoryDeletedEventData;\n /** An interface for the event data of a \"Microsoft.Storage.DirectoryRenamed\" event. */\n \"Microsoft.Storage.DirectoryRenamed\": StorageDirectoryRenamedEventData;\n /** An interface for the event data of a \"Microsoft.Storage.LifecyclePolicyCompleted\" event. */\n \"Microsoft.Storage.LifecyclePolicyCompleted\": StorageLifecyclePolicyCompletedEventData;\n /** An interface for the event data of a \"Microsoft.Web.AppUpdated\" event. */\n \"Microsoft.Web.AppUpdated\": WebAppUpdatedEventData;\n /** An interface for the event data of a \"Microsoft.Web.BackupOperationStarted\" event. */\n \"Microsoft.Web.BackupOperationStarted\": WebBackupOperationStartedEventData;\n /** An interface for the event data of a \"Microsoft.Web.BackupOperationCompleted\" event. */\n \"Microsoft.Web.BackupOperationCompleted\": WebBackupOperationCompletedEventData;\n /** An interface for the event data of a \"Microsoft.Web.BackupOperationFailed\" event. */\n \"Microsoft.Web.BackupOperationFailed\": WebBackupOperationFailedEventData;\n /** An interface for the event data of a \"Microsoft.Web.RestoreOperationStarted\" event. */\n \"Microsoft.Web.RestoreOperationStarted\": WebRestoreOperationStartedEventData;\n /** An interface for the event data of a \"Microsoft.Web.RestoreOperationCompleted\" event. */\n \"Microsoft.Web.RestoreOperationCompleted\": WebRestoreOperationCompletedEventData;\n /** An interface for the event data of a \"Microsoft.Web.RestoreOperationFailed\" event. */\n \"Microsoft.Web.RestoreOperationFailed\": WebRestoreOperationFailedEventData;\n /** An interface for the event data of a \"Microsoft.Web.SlotSwapStarted\" event. */\n \"Microsoft.Web.SlotSwapStarted\": WebSlotSwapStartedEventData;\n /** An interface for the event data of a \"Microsoft.Web.SlotSwapCompleted\" event. */\n \"Microsoft.Web.SlotSwapCompleted\": WebSlotSwapCompletedEventData;\n /** An interface for the event data of a \"Microsoft.Web.SlotSwapFailed\" event. */\n \"Microsoft.Web.SlotSwapFailed\": WebSlotSwapFailedEventData;\n /** An interface for the event data of a \"Microsoft.Web.SlotSwapWithPreviewStarted\" event. */\n \"Microsoft.Web.SlotSwapWithPreviewStarted\": WebSlotSwapWithPreviewStartedEventData;\n /** An interface for the event data of a \"Microsoft.Web.SlotSwapWithPreviewCancelled\" event. */\n \"Microsoft.Web.SlotSwapWithPreviewCancelled\": WebSlotSwapWithPreviewCancelledEventData;\n /** An interface for the event data of a \"Microsoft.Web.AppServicePlanUpdated\" event. */\n \"Microsoft.Web.AppServicePlanUpdated\": WebAppServicePlanUpdatedEventData;\n /** An interface for the event data of a \"Microsoft.Storage.StorageTaskQueued\" event. */\n \"Microsoft.Storage.StorageTaskQueued\": StorageTaskQueuedEventData;\n /** An interface for the event data of a \"Microsoft.Storage.StorageTaskCompleted\" event. */\n \"Microsoft.Storage.StorageTaskCompleted\": StorageTaskCompletedEventData;\n /** An interface for the event data of a \"Microsoft.DataBox.CopyStarted\" event. */\n \"Microsoft.DataBox.CopyStarted\": DataBoxCopyStartedEventData;\n /** An interface for the event data of a \"Microsoft.DataBox.CopyCompleted\" event. */\n \"Microsoft.DataBox.CopyCompleted\": DataBoxCopyCompletedEventData;\n /** An interface for the event data of a \"Microsoft.DataBox.OrderCompleted\" event. */\n \"Microsoft.DataBox.OrderCompleted\": DataBoxOrderCompletedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.IncomingCall\" event. */\n \"Microsoft.Communication.IncomingCall\": AcsIncomingCallEventData;\n /** An interface for the event data of a \"Microsoft.Communication.EmailDeliveryReportReceived\" event. */\n \"Microsoft.Communication.EmailDeliveryReportReceived\": AcsEmailDeliveryReportReceivedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.EmailEngagementTrackingReportReceived\" event. */\n \"Microsoft.Communication.EmailEngagementTrackingReportReceived\": AcsEmailEngagementTrackingReportReceivedEventData;\n /** An interface for the event data of a \"Microsoft.ApiManagement.GatewayCreated\" event. */\n \"Microsoft.ApiManagement.GatewayCreated\": ApiManagementGatewayCreatedEventData;\n /** An interface for the event data of a \"Microsoft.ApiManagement.GatewayUpdated\" event. */\n \"Microsoft.ApiManagement.GatewayUpdated\": ApiManagementGatewayUpdatedEventData;\n /** An interface for the event data of a \"Microsoft.ApiManagement.GatewayDeleted\" event. */\n \"Microsoft.ApiManagement.GatewayDeleted\": ApiManagementGatewayDeletedEventData;\n /** An interface for the event data of a \"Microsoft.ApiManagement.GatewayHostnameConfigurationCreated\" event. */\n \"Microsoft.ApiManagement.GatewayHostnameConfigurationCreated\": ApiManagementGatewayHostnameConfigurationCreatedEventData;\n /** An interface for the event data of a \"Microsoft.ApiManagement.GatewayHostnameConfigurationUpdated\" event. */\n \"Microsoft.ApiManagement.GatewayHostnameConfigurationUpdated\": ApiManagementGatewayHostnameConfigurationUpdatedEventData;\n /** An interface for the event data of a \"Microsoft.ApiManagement.GatewayHostnameConfigurationDeleted\" event. */\n \"Microsoft.ApiManagement.GatewayHostnameConfigurationDeleted\": ApiManagementGatewayHostnameConfigurationDeletedEventData;\n /** An interface for the event data of a \"Microsoft.ApiManagement.GatewayCertificateAuthorityCreated\" event. */\n \"Microsoft.ApiManagement.GatewayCertificateAuthorityCreated\": ApiManagementGatewayCertificateAuthorityCreatedEventData;\n /** An interface for the event data of a \"Microsoft.ApiManagement.GatewayCertificateAuthorityUpdated\" event. */\n \"Microsoft.ApiManagement.GatewayCertificateAuthorityUpdated\": ApiManagementGatewayCertificateAuthorityUpdatedEventData;\n /** An interface for the event data of a \"Microsoft.ApiManagement.GatewayCertificateAuthorityDeleted\" event. */\n \"Microsoft.ApiManagement.GatewayCertificateAuthorityDeleted\": ApiManagementGatewayCertificateAuthorityDeletedEventData;\n /** An interface for the event data of a \"Microsoft.ApiManagement.GatewayAPIAdded\" event. */\n \"Microsoft.ApiManagement.GatewayAPIAdded\": ApiManagementGatewayApiAddedEventData;\n /** An interface for the event data of a \"Microsoft.ApiManagement.GatewayAPIRemoved\" event. */\n \"Microsoft.ApiManagement.GatewayAPIRemoved\": ApiManagementGatewayApiRemovedEventData;\n /** An interface for the event data of a \"Microsoft.HealthcareApis.DicomImageUpdated\" event. */\n \"Microsoft.HealthcareApis.DicomImageUpdated\": HealthcareDicomImageUpdatedEventData;\n /** An interface for the event data of a \"Microsoft.ContainerService.ClusterSupportEnded\" event. */\n \"Microsoft.ContainerService.ClusterSupportEnded\": ContainerServiceClusterSupportEndedEventData;\n /** An interface for the event data of a \"Microsoft.ContainerService.ClusterSupportEnding\" event. */\n \"Microsoft.ContainerService.ClusterSupportEnding\": ContainerServiceClusterSupportEndingEventData;\n /** An interface for the event data of a \"Microsoft.ContainerService.NodePoolRollingStarted\" event. */\n \"Microsoft.ContainerService.NodePoolRollingStarted\": ContainerServiceNodePoolRollingStartedEventData;\n /** An interface for the event data of a \"Microsoft.ContainerService.NodePoolRollingSucceeded\" event. */\n \"Microsoft.ContainerService.NodePoolRollingSucceeded\": ContainerServiceNodePoolRollingSucceededEventData;\n /** An interface for the event data of a \"Microsoft.ContainerService.NodePoolRollingFailed\" event. */\n \"Microsoft.ContainerService.NodePoolRollingFailed\": ContainerServiceNodePoolRollingFailedEventData;\n /** An interface for the event data of a \"Microsoft.Edge.SolutionVersionPublished\" event. */\n \"Microsoft.Edge.SolutionVersionPublished\": EdgeSolutionVersionPublishedEventData;\n /** An interface for the event data of a \"Microsoft.EventGrid.MQTTClientCreatedOrUpdated\" event. */\n \"Microsoft.EventGrid.MQTTClientCreatedOrUpdated\": EventGridMqttClientCreatedOrUpdatedEventData;\n /** An interface for the event data of a \"Microsoft.EventGrid.MQTTClientDeleted\" event. */\n \"Microsoft.EventGrid.MQTTClientDeleted\": EventGridMqttClientDeletedEventData;\n /** An interface for the event data of a \"Microsoft.EventGrid.MQTTClientSessionConnected\" event. */\n \"Microsoft.EventGrid.MQTTClientSessionConnected\": EventGridMqttClientSessionConnectedEventData;\n /** An interface for the event data of a \"Microsoft.EventGrid.MQTTClientSessionDisconnected\" event. */\n \"Microsoft.EventGrid.MQTTClientSessionDisconnected\": EventGridMqttClientSessionDisconnectedEventData;\n /** An interface for the event data of a \"Microsoft.AppConfiguration.SnapshotCreated\" event. */\n \"Microsoft.AppConfiguration.SnapshotCreated\": AppConfigurationSnapshotCreatedEventData;\n /** An interface for the event data of a \"Microsoft.AppConfiguration.SnapshotModified\" event. */\n \"Microsoft.AppConfiguration.SnapshotModified\": AppConfigurationSnapshotModifiedEventData;\n /** An interface for the event data of a \"Microsoft.ResourceNotifications.HealthResources.AvailabilityStatusChanged\" event. */\n \"Microsoft.ResourceNotifications.HealthResources.AvailabilityStatusChanged\": ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventData;\n /** An interface for the event data of a \"Microsoft.ResourceNotifications.HealthResources.ResourceAnnotated\" event. */\n \"Microsoft.ResourceNotifications.HealthResources.ResourceAnnotated\": ResourceNotificationsHealthResourcesAnnotatedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.RouterWorkerDeregistered\" event. */\n \"Microsoft.Communication.RouterWorkerDeregistered\": AcsRouterWorkerDeregisteredEventData;\n /** An interface for the event data of a \"Microsoft.Communication.RouterWorkerRegistered\" event. */\n \"Microsoft.Communication.RouterWorkerRegistered\": AcsRouterWorkerRegisteredEventData;\n /** An interface for the event data of a \"Microsoft.Communication.RouterJobCancelled\" event. */\n \"Microsoft.Communication.RouterJobCancelled\": AcsRouterJobCancelledEventData;\n /** An interface for the event data of a \"Microsoft.Communication.RouterJobClassificationFailed\" event. */\n \"Microsoft.Communication.RouterJobClassificationFailed\": AcsRouterJobClassificationFailedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.RouterJobClassified\" event. */\n \"Microsoft.Communication.RouterJobClassified\": AcsRouterJobClassifiedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.RouterJobClosed\" event. */\n \"Microsoft.Communication.RouterJobClosed\": AcsRouterJobClosedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.RouterJobCompleted\" event. */\n \"Microsoft.Communication.RouterJobCompleted\": AcsRouterJobCompletedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.RouterJobDeleted\" event. */\n \"Microsoft.Communication.RouterJobDeleted\": AcsRouterJobDeletedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.RouterJobExceptionTriggered\" event. */\n \"Microsoft.Communication.RouterJobExceptionTriggered\": AcsRouterJobExceptionTriggeredEventData;\n /** An interface for the event data of a \"Microsoft.Communication.RouterJobQueued\" event. */\n \"Microsoft.Communication.RouterJobQueued\": AcsRouterJobQueuedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.RouterJobReceived\" event. */\n \"Microsoft.Communication.RouterJobReceived\": AcsRouterJobReceivedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.RouterJobSchedulingFailed\" event. */\n \"Microsoft.Communication.RouterJobSchedulingFailed\": AcsRouterJobSchedulingFailedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.RouterJobUnassigned\" event. */\n \"Microsoft.Communication.RouterJobUnassigned\": AcsRouterJobUnassignedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.RouterJobWaitingForActivation\" event. */\n \"Microsoft.Communication.RouterJobWaitingForActivation\": AcsRouterJobWaitingForActivationEventData;\n /** An interface for the event data of a \"Microsoft.Communication.RouterJobWorkerSelectorsExpire\" event. */\n \"Microsoft.Communication.RouterJobWorkerSelectorsExpire\": AcsRouterJobWorkerSelectorsExpiredEventData;\n /** An interface for the event data of a \"Microsoft.Communication.RouterWorkerDeleted\" event. */\n \"Microsoft.Communication.RouterWorkerDeleted\": AcsRouterWorkerDeletedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.RouterWorkerOfferAccepted\" event. */\n \"Microsoft.Communication.RouterWorkerOfferAccepted\": AcsRouterWorkerOfferAcceptedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.RouterWorkerOfferDeclined\" event. */\n \"Microsoft.Communication.RouterWorkerOfferDeclined\": AcsRouterWorkerOfferDeclinedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.RouterWorkerOfferExpired\" event. */\n \"Microsoft.Communication.RouterWorkerOfferExpired\": AcsRouterWorkerOfferExpiredEventData;\n /** An interface for the event data of a \"Microsoft.Communication.RouterWorkerOfferIssued\" event. */\n \"Microsoft.Communication.RouterWorkerOfferIssued\": AcsRouterWorkerOfferIssuedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.RouterWorkerOfferRevoked\" event. */\n \"Microsoft.Communication.RouterWorkerOfferRevoked\": AcsRouterWorkerOfferRevokedEventData;\n /** An interface for the event data of a \"Microsoft.ResourceNotifications.Resources.CreatedOrUpdated\" event. */\n \"Microsoft.ResourceNotifications.Resources.CreatedOrUpdated\": ResourceNotificationsResourceManagementCreatedOrUpdatedEventData;\n /** An interface for the event data of a \"Microsoft.ResourceNotifications.Resources.Deleted\" event. */\n \"Microsoft.ResourceNotifications.Resources.Deleted\": ResourceNotificationsResourceManagementDeletedEventData;\n /** An interface for the event data of a \"Microsoft.Storage.StorageTaskAssignmentQueued\" event. */\n \"Microsoft.Storage.StorageTaskAssignmentQueued\": StorageTaskAssignmentQueuedEventData;\n /** An interface for the event data of a \"Microsoft.Storage.StorageTaskAssignmentCompleted\" event. */\n \"Microsoft.Storage.StorageTaskAssignmentCompleted\": StorageTaskAssignmentCompletedEventData;\n /** An interface for the event data of a \"Microsoft.AVS.ScriptExecutionStarted\" event. */\n \"Microsoft.AVS.ScriptExecutionStarted\": AvsScriptExecutionStartedEventData;\n /** An interface for the event data of a \"Microsoft.AVS.ScriptExecutionFinished\" event. */\n \"Microsoft.AVS.ScriptExecutionFinished\": AvsScriptExecutionFinishedEventData;\n /** An interface for the event data of a \"Microsoft.AVS.ScriptExecutionCancelled\" event. */\n \"Microsoft.AVS.ScriptExecutionCancelled\": AvsScriptExecutionCancelledEventData;\n /** An interface for the event data of a \"Microsoft.AVS.ScriptExecutionFailed\" event. */\n \"Microsoft.AVS.ScriptExecutionFailed\": AvsScriptExecutionFailedEventData;\n /** An interface for the event data of a \"Microsoft.AVS.PrivateCloudUpdating\" event. */\n \"Microsoft.AVS.PrivateCloudUpdating\": AvsPrivateCloudUpdatingEventData;\n /** An interface for the event data of a \"Microsoft.AVS.PrivateCloudUpdated\" event. */\n \"Microsoft.AVS.PrivateCloudUpdated\": AvsPrivateCloudUpdatedEventData;\n /** An interface for the event data of a \"Microsoft.AVS.PrivateCloudFailed\" event. */\n \"Microsoft.AVS.PrivateCloudFailed\": AvsPrivateCloudFailedEventData;\n /** An interface for the event data of a \"Microsoft.AVS.ClusterCreated\" event. */\n \"Microsoft.AVS.ClusterCreated\": AvsClusterCreatedEventData;\n /** An interface for the event data of a \"Microsoft.AVS.ClusterDeleted\" event. */\n \"Microsoft.AVS.ClusterDeleted\": AvsClusterDeletedEventData;\n /** An interface for the event data of a \"Microsoft.AVS.ClusterUpdating\" event. */\n \"Microsoft.AVS.ClusterUpdating\": AvsClusterUpdatingEventData;\n /** An interface for the event data of a \"Microsoft.AVS.ClusterUpdated\" event. */\n \"Microsoft.AVS.ClusterUpdated\": AvsClusterUpdatedEventData;\n /** An interface for the event data of a \"Microsoft.AVS.ClusterFailed\" event. */\n \"Microsoft.AVS.ClusterFailed\": AvsClusterFailedEventData;\n /** An interface for the event data of a \"Microsoft.ApiCenter.ApiDefinitionAdded\" event. */\n \"Microsoft.ApiCenter.ApiDefinitionAdded\": ApiCenterApiDefinitionAddedEventData;\n /** An interface for the event data of a \"Microsoft.ApiCenter.ApiDefinitionUpdated\" event. */\n \"Microsoft.ApiCenter.ApiDefinitionUpdated\": ApiCenterApiDefinitionUpdatedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.AdvancedMessageDeliveryStatusUpdated\" event. */\n \"Microsoft.Communication.AdvancedMessageDeliveryStatusUpdated\": AcsMessageDeliveryStatusUpdatedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.AdvancedMessageReceived\" event. */\n \"Microsoft.Communication.AdvancedMessageReceived\": AcsMessageReceivedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.RouterWorkerUpdated\" event. */\n \"Microsoft.Communication.RouterWorkerUpdated\": AcsRouterWorkerUpdatedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.ChatThreadCreated\" event. */\n \"Microsoft.Communication.ChatThreadCreated\": AcsChatThreadCreatedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.ChatThreadDeleted\" event. */\n \"Microsoft.Communication.ChatThreadDeleted\": AcsChatThreadDeletedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.ChatThreadPropertiesUpdated\" event. */\n \"Microsoft.Communication.ChatThreadPropertiesUpdated\": AcsChatThreadPropertiesUpdatedEventData;\n /** An interface for the event data of a \"Microsoft.ResourceNotifications.ContainerServiceEventResources.ScheduledEventEmitted\" event. */\n \"Microsoft.ResourceNotifications.ContainerServiceEventResources.ScheduledEventEmitted\": ResourceNotificationsContainerServiceEventResourcesScheduledEventData;\n}\n\n/**\n * isCloudEventLike returns \"true\" when the event is a CloudEvent\n *\n * @param o - Either an EventGrid our CloudEvent event.\n */\nfunction isCloudEventLike(\n o: EventGridEvent<unknown> | CloudEvent<unknown>,\n): o is CloudEvent<unknown> {\n return (o as any).source !== undefined;\n}\n\n/**\n * iSystemEvent returns \"true\" when a given event is a system event of a given type. When using\n * TypeScript, this function acts as a custom type guard and allows the TypeScript compiler to\n * identify the underlying data\n *\n * @param eventType - The type of system event to check for, e.g., \"Microsoft.AppConfiguration.KeyValueDeleted\"\n * @param event - The event to test.\n */\nexport function isSystemEvent<T extends KnownSystemEventTypes>(\n eventType: T,\n event: EventGridEvent<unknown>,\n): event is EventGridEvent<SystemEventNameToEventData[T]>;\n\n/**\n * iSystemEvent returns \"true\" when a given event is a system event of a given type. When using\n * TypeScript, this function acts as a custom type guard and allows the TypeScript compiler to\n * identify the underlying data\n *\n * @param eventType - The type of system event to check for, e.g., \"Microsoft.AppConfiguration.KeyValueDeleted\"\n * @param event - The event to test.\n */\nexport function isSystemEvent<T extends KnownSystemEventTypes>(\n eventType: T,\n event: CloudEvent<unknown>,\n): event is CloudEvent<SystemEventNameToEventData[T]>;\n\nexport function isSystemEvent<T extends KnownSystemEventTypes>(\n eventType: T,\n event: EventGridEvent<unknown> | CloudEvent<unknown>,\n): event is\n | EventGridEvent<SystemEventNameToEventData[T]>\n | CloudEvent<SystemEventNameToEventData[T]> {\n if (isCloudEventLike(event)) {\n return event.type === eventType;\n } else {\n return event.eventType === eventType;\n }\n}\n"]}
1
+ {"version":3,"file":"predicates.js","sourceRoot":"","sources":["../../src/predicates.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AA6qBlC;;;;GAIG;AACH,SAAS,gBAAgB,CACvB,CAAgD;IAEhD,OAAQ,CAAS,CAAC,MAAM,KAAK,SAAS,CAAC;AACzC,CAAC;AA4BD,MAAM,UAAU,aAAa,CAC3B,SAAY,EACZ,KAAoD;IAIpD,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE,CAAC;QAC5B,OAAO,KAAK,CAAC,IAAI,KAAK,SAAS,CAAC;IAClC,CAAC;SAAM,CAAC;QACN,OAAO,KAAK,CAAC,SAAS,KAAK,SAAS,CAAC;IACvC,CAAC;AACH,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n AcsCallEndedEventData,\n AcsCallParticipantAddedEventData,\n AcsCallParticipantRemovedEventData,\n AcsCallStartedEventData,\n AcsChatAzureBotCommandReceivedInThreadEventData,\n AcsChatMessageDeletedEventData,\n AcsChatMessageDeletedInThreadEventData,\n AcsChatMessageEditedEventData,\n AcsChatMessageEditedInThreadEventData,\n AcsChatMessageReceivedEventData,\n AcsChatMessageReceivedInThreadEventData,\n AcsChatParticipantAddedToThreadEventData,\n AcsChatParticipantAddedToThreadWithUserEventData,\n AcsChatParticipantRemovedFromThreadEventData,\n AcsChatParticipantRemovedFromThreadWithUserEventData,\n AcsChatThreadCreatedWithUserEventData,\n AcsChatThreadPropertiesUpdatedPerUserEventData,\n AcsChatThreadWithUserDeletedEventData,\n AcsChatTypingIndicatorReceivedInThreadEventData,\n AcsRecordingFileStatusUpdatedEventData,\n AcsSmsDeliveryReportReceivedEventData,\n AcsSmsReceivedEventData,\n AcsUserDisconnectedEventData,\n ApiManagementApiCreatedEventData,\n ApiManagementApiDeletedEventData,\n ApiManagementApiReleaseCreatedEventData,\n ApiManagementApiReleaseDeletedEventData,\n ApiManagementApiReleaseUpdatedEventData,\n ApiManagementApiUpdatedEventData,\n ApiManagementCircuitBreakerClosedEventData,\n ApiManagementCircuitBreakerOpenedEventData,\n ApiManagementGatewayTokenExpiredEventData,\n ApiManagementGatewayTokenNearExpiryEventData,\n ApiManagementProductCreatedEventData,\n ApiManagementProductDeletedEventData,\n ApiManagementProductUpdatedEventData,\n ApiManagementSubscriptionCreatedEventData,\n ApiManagementSubscriptionDeletedEventData,\n ApiManagementSubscriptionUpdatedEventData,\n ApiManagementUserCreatedEventData,\n ApiManagementUserDeletedEventData,\n ApiManagementUserUpdatedEventData,\n AppConfigurationKeyValueDeletedEventData,\n AppConfigurationKeyValueModifiedEventData,\n ContainerRegistryChartDeletedEventData,\n ContainerRegistryChartPushedEventData,\n ContainerRegistryImageDeletedEventData,\n ContainerRegistryImagePushedEventData,\n ContainerServiceNewKubernetesVersionAvailableEventData,\n EdgeSolutionVersionPublishedEventData,\n EventHubCaptureFileCreatedEventData,\n HealthcareDicomImageCreatedEventData,\n HealthcareDicomImageDeletedEventData,\n HealthcareFhirResourceCreatedEventData,\n HealthcareFhirResourceDeletedEventData,\n HealthcareFhirResourceUpdatedEventData,\n IotHubDeviceConnectedEventData,\n IotHubDeviceCreatedEventData,\n IotHubDeviceDeletedEventData,\n IotHubDeviceDisconnectedEventData,\n IotHubDeviceTelemetryEventData,\n KeyVaultAccessPolicyChangedEventData,\n KeyVaultCertificateExpiredEventData,\n KeyVaultCertificateNearExpiryEventData,\n KeyVaultCertificateNewVersionCreatedEventData,\n KeyVaultKeyExpiredEventData,\n KeyVaultKeyNearExpiryEventData,\n KeyVaultKeyNewVersionCreatedEventData,\n KeyVaultSecretExpiredEventData,\n KeyVaultSecretNearExpiryEventData,\n KeyVaultSecretNewVersionCreatedEventData,\n MachineLearningServicesDatasetDriftDetectedEventData,\n MachineLearningServicesModelDeployedEventData,\n MachineLearningServicesModelRegisteredEventData,\n MachineLearningServicesRunCompletedEventData,\n MachineLearningServicesRunStatusChangedEventData,\n MapsGeofenceEnteredEventData,\n MapsGeofenceExitedEventData,\n MapsGeofenceResultEventData,\n MediaJobCanceledEventData,\n MediaJobCancelingEventData,\n MediaJobErroredEventData,\n MediaJobFinishedEventData,\n MediaJobOutputCanceledEventData,\n MediaJobOutputCancelingEventData,\n MediaJobOutputErroredEventData,\n MediaJobOutputFinishedEventData,\n MediaJobOutputProcessingEventData,\n MediaJobOutputProgressEventData,\n MediaJobOutputScheduledEventData,\n MediaJobOutputStateChangeEventData,\n MediaJobProcessingEventData,\n MediaJobScheduledEventData,\n MediaJobStateChangeEventData,\n MediaLiveEventChannelArchiveHeartbeatEventData,\n MediaLiveEventConnectionRejectedEventData,\n MediaLiveEventEncoderConnectedEventData,\n MediaLiveEventEncoderDisconnectedEventData,\n MediaLiveEventIncomingDataChunkDroppedEventData,\n MediaLiveEventIncomingStreamReceivedEventData,\n MediaLiveEventIncomingStreamsOutOfSyncEventData,\n MediaLiveEventIncomingVideoStreamsOutOfSyncEventData,\n MediaLiveEventIngestHeartbeatEventData,\n MediaLiveEventTrackDiscontinuityDetectedEventData,\n PolicyInsightsPolicyStateChangedEventData,\n PolicyInsightsPolicyStateCreatedEventData,\n PolicyInsightsPolicyStateDeletedEventData,\n ResourceActionCancelEventData,\n ResourceActionFailureEventData,\n ResourceActionSuccessEventData,\n ResourceDeleteCancelEventData,\n ResourceDeleteFailureEventData,\n ResourceDeleteSuccessEventData,\n ResourceWriteCancelEventData,\n ResourceWriteFailureEventData,\n ResourceWriteSuccessEventData,\n ServiceBusActiveMessagesAvailableWithNoListenersEventData,\n ServiceBusDeadletterMessagesAvailableWithNoListenersEventData,\n StorageAsyncOperationInitiatedEventData,\n StorageBlobCreatedEventData,\n StorageBlobDeletedEventData,\n StorageBlobInventoryPolicyCompletedEventData,\n StorageBlobRenamedEventData,\n StorageBlobTierChangedEventData,\n StorageDirectoryCreatedEventData,\n StorageDirectoryDeletedEventData,\n StorageDirectoryRenamedEventData,\n StorageLifecyclePolicyCompletedEventData,\n SubscriptionDeletedEventData,\n SubscriptionValidationEventData,\n WebAppServicePlanUpdatedEventData,\n WebAppUpdatedEventData,\n WebBackupOperationCompletedEventData,\n WebBackupOperationFailedEventData,\n WebBackupOperationStartedEventData,\n WebRestoreOperationCompletedEventData,\n WebRestoreOperationFailedEventData,\n WebRestoreOperationStartedEventData,\n WebSlotSwapCompletedEventData,\n WebSlotSwapFailedEventData,\n WebSlotSwapStartedEventData,\n WebSlotSwapWithPreviewCancelledEventData,\n WebSlotSwapWithPreviewStartedEventData,\n StorageTaskQueuedEventData,\n StorageTaskCompletedEventData,\n DataBoxCopyStartedEventData,\n DataBoxCopyCompletedEventData,\n DataBoxOrderCompletedEventData,\n AcsIncomingCallEventData,\n AcsEmailDeliveryReportReceivedEventData,\n AcsEmailEngagementTrackingReportReceivedEventData,\n ApiManagementGatewayCreatedEventData,\n ApiManagementGatewayUpdatedEventData,\n ApiManagementGatewayDeletedEventData,\n ApiManagementGatewayHostnameConfigurationCreatedEventData,\n ApiManagementGatewayHostnameConfigurationUpdatedEventData,\n ApiManagementGatewayHostnameConfigurationDeletedEventData,\n ApiManagementGatewayCertificateAuthorityCreatedEventData,\n ApiManagementGatewayCertificateAuthorityUpdatedEventData,\n ApiManagementGatewayCertificateAuthorityDeletedEventData,\n ApiManagementGatewayApiAddedEventData,\n ApiManagementGatewayApiRemovedEventData,\n HealthcareDicomImageUpdatedEventData,\n ContainerServiceClusterSupportEndedEventData,\n ContainerServiceClusterSupportEndingEventData,\n ContainerServiceNodePoolRollingStartedEventData,\n ContainerServiceNodePoolRollingSucceededEventData,\n ContainerServiceNodePoolRollingFailedEventData,\n EventGridMqttClientCreatedOrUpdatedEventData,\n EventGridMqttClientDeletedEventData,\n EventGridMqttClientSessionConnectedEventData,\n EventGridMqttClientSessionDisconnectedEventData,\n AppConfigurationSnapshotCreatedEventData,\n AppConfigurationSnapshotModifiedEventData,\n ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventData,\n ResourceNotificationsHealthResourcesAnnotatedEventData,\n AcsRouterWorkerDeregisteredEventData,\n AcsRouterWorkerRegisteredEventData,\n AcsRouterJobCancelledEventData,\n AcsRouterJobClassificationFailedEventData,\n AcsRouterJobClassifiedEventData,\n AcsRouterJobClosedEventData,\n AcsRouterJobCompletedEventData,\n AcsRouterJobDeletedEventData,\n AcsRouterJobExceptionTriggeredEventData,\n AcsRouterJobQueuedEventData,\n AcsRouterJobReceivedEventData,\n AcsRouterJobSchedulingFailedEventData,\n AcsRouterJobUnassignedEventData,\n AcsRouterJobWaitingForActivationEventData,\n AcsRouterJobWorkerSelectorsExpiredEventData,\n AcsRouterWorkerDeletedEventData,\n AcsRouterWorkerOfferAcceptedEventData,\n AcsRouterWorkerOfferDeclinedEventData,\n AcsRouterWorkerOfferExpiredEventData,\n AcsRouterWorkerOfferIssuedEventData,\n AcsRouterWorkerOfferRevokedEventData,\n ResourceNotificationsResourceManagementCreatedOrUpdatedEventData,\n ResourceNotificationsResourceManagementDeletedEventData,\n StorageTaskAssignmentQueuedEventData,\n AvsScriptExecutionStartedEventData,\n AvsScriptExecutionCancelledEventData,\n AvsClusterCreatedEventData,\n AvsPrivateCloudFailedEventData,\n AvsPrivateCloudUpdatingEventData,\n AvsPrivateCloudUpdatedEventData,\n AvsClusterUpdatingEventData,\n AvsClusterDeletedEventData,\n AvsScriptExecutionFailedEventData,\n AvsScriptExecutionFinishedEventData,\n StorageTaskAssignmentCompletedEventData,\n AvsClusterUpdatedEventData,\n AvsClusterFailedEventData,\n ApiCenterApiDefinitionAddedEventData,\n ApiCenterApiDefinitionUpdatedEventData,\n AcsMessageDeliveryStatusUpdatedEventData,\n AcsMessageReceivedEventData,\n AcsRouterWorkerUpdatedEventData,\n AcsChatThreadDeletedEventData,\n AcsChatThreadCreatedEventData,\n AcsChatThreadPropertiesUpdatedEventData,\n ResourceNotificationsContainerServiceEventResourcesScheduledEventData,\n} from \"./generated/models/index.js\";\n\nimport type { CloudEvent, EventGridEvent } from \"./models.js\";\n\n/**\n * The Event Types for all System Events. These may be used with `isSystemEvent` to determine if an\n * event is a system event of a given type.\n */\nexport type KnownSystemEventTypes = keyof SystemEventNameToEventData;\n\n/**\n * A mapping of event type names to event data type interfaces.\n */\nexport interface SystemEventNameToEventData {\n /** An interface for the event data of a \"Microsoft.ApiManagement.UserCreated\" event. */\n \"Microsoft.ApiManagement.UserCreated\": ApiManagementUserCreatedEventData;\n /** An interface for the event data of a \"Microsoft.ApiManagement.UserUpdated\" event. */\n \"Microsoft.ApiManagement.UserUpdated\": ApiManagementUserUpdatedEventData;\n /** An interface for the event data of a \"Microsoft.ApiManagement.UserDeleted\" event. */\n \"Microsoft.ApiManagement.UserDeleted\": ApiManagementUserDeletedEventData;\n /** An interface for the event data of a \"Microsoft.ApiManagement.SubscriptionCreated\" event. */\n \"Microsoft.ApiManagement.SubscriptionCreated\": ApiManagementSubscriptionCreatedEventData;\n /** An interface for the event data of a \"Microsoft.ApiManagement.SubscriptionUpdated\" event. */\n \"Microsoft.ApiManagement.SubscriptionUpdated\": ApiManagementSubscriptionUpdatedEventData;\n /** An interface for the event data of a \"Microsoft.ApiManagement.SubscriptionDeleted\" event. */\n \"Microsoft.ApiManagement.SubscriptionDeleted\": ApiManagementSubscriptionDeletedEventData;\n /** An interface for the event data of a \"Microsoft.ApiManagement.ProductCreated\" event. */\n \"Microsoft.ApiManagement.ProductCreated\": ApiManagementProductCreatedEventData;\n /** An interface for the event data of a \"Microsoft.ApiManagement.ProductUpdated\" event. */\n \"Microsoft.ApiManagement.ProductUpdated\": ApiManagementProductUpdatedEventData;\n /** An interface for the event data of a \"Microsoft.ApiManagement.ProductDeleted\" event. */\n \"Microsoft.ApiManagement.ProductDeleted\": ApiManagementProductDeletedEventData;\n /** An interface for the event data of a \"Microsoft.ApiManagement.APICreated\" event. */\n \"Microsoft.ApiManagement.APICreated\": ApiManagementApiCreatedEventData;\n /** An interface for the event data of a \"Microsoft.ApiManagement.APIUpdated\" event. */\n \"Microsoft.ApiManagement.APIUpdated\": ApiManagementApiUpdatedEventData;\n /** An interface for the event data of a \"Microsoft.ApiManagement.CircuitBreaker.Closed\" event. */\n \"Microsoft.ApiManagement.CircuitBreaker.Closed\": ApiManagementCircuitBreakerClosedEventData;\n /** An interface for the event data of a \"Microsoft.ApiManagement.CircuitBreaker.Opened\" event. */\n \"Microsoft.ApiManagement.CircuitBreaker.Opened\": ApiManagementCircuitBreakerOpenedEventData;\n /** An interface for the event data of a \"Microsoft.ApiManagement.APIDeleted\" event. */\n \"Microsoft.ApiManagement.APIDeleted\": ApiManagementApiDeletedEventData;\n /** An interface for the event data of a \"Microsoft.ApiManagement.APIReleaseCreated\" event. */\n \"Microsoft.ApiManagement.APIReleaseCreated\": ApiManagementApiReleaseCreatedEventData;\n /** An interface for the event data of a \"Microsoft.ApiManagement.APIReleaseUpdated\" event. */\n \"Microsoft.ApiManagement.APIReleaseUpdated\": ApiManagementApiReleaseUpdatedEventData;\n /** An interface for the event data of a \"Microsoft.ApiManagement.APIReleaseDeleted\" event. */\n \"Microsoft.ApiManagement.APIReleaseDeleted\": ApiManagementApiReleaseDeletedEventData;\n /** An interface for the event data of a \"Microsoft.ApiManagement.GatewayTokenExpired\" event. */\n \"Microsoft.ApiManagement.GatewayTokenExpired\": ApiManagementGatewayTokenExpiredEventData;\n /** An interface for the event data of a \"Microsoft.ApiManagement.GatewayTokenNearExpiry\" event. */\n \"Microsoft.ApiManagement.GatewayTokenNearExpiry\": ApiManagementGatewayTokenNearExpiryEventData;\n /** An interface for the event data of a \"Microsoft.Communication.CallEnded\" event. */\n \"Microsoft.Communication.CallEnded\": AcsCallEndedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.CallParticipantAdded\" event. */\n \"Microsoft.Communication.CallParticipantAdded\": AcsCallParticipantAddedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.CallParticipantRemoved\" event. */\n \"Microsoft.Communication.CallParticipantRemoved\": AcsCallParticipantRemovedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.CallStarted\" event. */\n \"Microsoft.Communication.CallStarted\": AcsCallStartedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.ChatAzureBotCommandReceivedInThread\" event. */\n \"Microsoft.Communication.ChatAzureBotCommandReceivedInThread\": AcsChatAzureBotCommandReceivedInThreadEventData;\n /** An interface for the event data of a \"Microsoft.Communication.ChatMessageReceived\" event. */\n \"Microsoft.Communication.ChatMessageReceived\": AcsChatMessageReceivedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.ChatMessageReceivedInThread\" event. */\n \"Microsoft.Communication.ChatMessageReceivedInThread\": AcsChatMessageReceivedInThreadEventData;\n /** An interface for the event data of a \"Microsoft.Communication.ChatMessageEdited\" event. */\n \"Microsoft.Communication.ChatMessageEdited\": AcsChatMessageEditedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.ChatMessageEditedInThread\" event. */\n \"Microsoft.Communication.ChatMessageEditedInThread\": AcsChatMessageEditedInThreadEventData;\n /** An interface for the event data of a \"Microsoft.Communication.ChatMessageDeleted\" event. */\n \"Microsoft.Communication.ChatMessageDeleted\": AcsChatMessageDeletedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.ChatMessageDeletedInThread\" event. */\n \"Microsoft.Communication.ChatMessageDeletedInThread\": AcsChatMessageDeletedInThreadEventData;\n /** An interface for the event data of a \"Microsoft.Communication.ChatThreadCreatedWithUser\" event. */\n \"Microsoft.Communication.ChatThreadCreatedWithUser\": AcsChatThreadCreatedWithUserEventData;\n /** An interface for the event data of a \"Microsoft.Communication.ChatThreadWithUserDeleted\" event. */\n \"Microsoft.Communication.ChatThreadWithUserDeleted\": AcsChatThreadWithUserDeletedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.ChatTypingIndicatorReceivedInThread\" event. */\n \"Microsoft.Communication.ChatTypingIndicatorReceivedInThread\": AcsChatTypingIndicatorReceivedInThreadEventData;\n /** An interface for the event data of a \"Microsoft.Communication.ChatThreadPropertiesUpdatedPerUser\" event. */\n \"Microsoft.Communication.ChatThreadPropertiesUpdatedPerUser\": AcsChatThreadPropertiesUpdatedPerUserEventData;\n /** An interface for the event data of a \"Microsoft.Communication.ChatThreadParticipantAdded\" event. */\n \"Microsoft.Communication.ChatThreadParticipantAdded\": AcsChatParticipantAddedToThreadEventData;\n /** An interface for the event data of a \"Microsoft.Communication.ChatParticipantAddedToThreadWithUser\" event. */\n \"Microsoft.Communication.ChatParticipantAddedToThreadWithUser\": AcsChatParticipantAddedToThreadWithUserEventData;\n /** An interface for the event data of a \"Microsoft.Communication.ChatThreadParticipantRemoved\" event. */\n \"Microsoft.Communication.ChatThreadParticipantRemoved\": AcsChatParticipantRemovedFromThreadEventData;\n /** An interface for the event data of a \"Microsoft.Communication.ChatParticipantRemovedFromThreadWithUser\" event. */\n \"Microsoft.Communication.ChatParticipantRemovedFromThreadWithUser\": AcsChatParticipantRemovedFromThreadWithUserEventData;\n /** An interface for the event data of a \"Microsoft.Communication.RecordingFileStatusUpdated\" event. */\n \"Microsoft.Communication.RecordingFileStatusUpdated\": AcsRecordingFileStatusUpdatedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.SMSDeliveryReportReceived\" event. */\n \"Microsoft.Communication.SMSDeliveryReportReceived\": AcsSmsDeliveryReportReceivedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.SMSReceived\" event. */\n \"Microsoft.Communication.SMSReceived\": AcsSmsReceivedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.UserDisconnected\" event. */\n \"Microsoft.Communication.UserDisconnected\": AcsUserDisconnectedEventData;\n /** An interface for the event data of a \"Microsoft.ContainerService.NewKubernetesVersionAvailable\" event. */\n \"Microsoft.ContainerService.NewKubernetesVersionAvailable\": ContainerServiceNewKubernetesVersionAvailableEventData;\n /** An interface for the event data of a \"Microsoft.AppConfiguration.KeyValueDeleted\" event. */\n \"Microsoft.AppConfiguration.KeyValueDeleted\": AppConfigurationKeyValueDeletedEventData;\n /** An interface for the event data of a \"Microsoft.AppConfiguration.KeyValueModified\" event. */\n \"Microsoft.AppConfiguration.KeyValueModified\": AppConfigurationKeyValueModifiedEventData;\n /** An interface for the event data of a \"Microsoft.ContainerRegistry.ImagePushed\" event. */\n \"Microsoft.ContainerRegistry.ImagePushed\": ContainerRegistryImagePushedEventData;\n /** An interface for the event data of a \"Microsoft.ContainerRegistry.ImageDeleted\" event. */\n \"Microsoft.ContainerRegistry.ImageDeleted\": ContainerRegistryImageDeletedEventData;\n /** An interface for the event data of a \"Microsoft.ContainerRegistry.ChartDeleted\" event. */\n \"Microsoft.ContainerRegistry.ChartDeleted\": ContainerRegistryChartDeletedEventData;\n /** An interface for the event data of a \"Microsoft.ContainerRegistry.ChartPushed\" event. */\n \"Microsoft.ContainerRegistry.ChartPushed\": ContainerRegistryChartPushedEventData;\n /** An interface for the event data of a \"Microsoft.Devices.DeviceCreated\" event. */\n \"Microsoft.Devices.DeviceCreated\": IotHubDeviceCreatedEventData;\n /** An interface for the event data of a \"Microsoft.Devices.DeviceDeleted\" event. */\n \"Microsoft.Devices.DeviceDeleted\": IotHubDeviceDeletedEventData;\n /** An interface for the event data of a \"Microsoft.Devices.DeviceConnected\" event. */\n \"Microsoft.Devices.DeviceConnected\": IotHubDeviceConnectedEventData;\n /** An interface for the event data of a \"Microsoft.Devices.DeviceDisconnected\" event. */\n \"Microsoft.Devices.DeviceDisconnected\": IotHubDeviceDisconnectedEventData;\n /** An interface for the event data of a \"Microsoft.Devices.DeviceTelemetry\" event. */\n \"Microsoft.Devices.DeviceTelemetry\": IotHubDeviceTelemetryEventData;\n /** An interface for the event data of a \"Microsoft.EventGrid.SubscriptionValidationEvent\" event. */\n \"Microsoft.EventGrid.SubscriptionValidationEvent\": SubscriptionValidationEventData;\n /** An interface for the event data of a \"Microsoft.EventGrid.SubscriptionDeletedEvent\" event. */\n \"Microsoft.EventGrid.SubscriptionDeletedEvent\": SubscriptionDeletedEventData;\n /** An interface for the event data of a \"Microsoft.EventHub.CaptureFileCreated\" event. */\n \"Microsoft.EventHub.CaptureFileCreated\": EventHubCaptureFileCreatedEventData;\n /** An interface for the event data of a \"Microsoft.HealthcareApis.DicomImageCreated\" event. */\n \"Microsoft.HealthcareApis.DicomImageCreated\": HealthcareDicomImageCreatedEventData;\n /** An interface for the event data of a \"Microsoft.HealthcareApis.DicomImageDeleted\" event. */\n \"Microsoft.HealthcareApis.DicomImageDeleted\": HealthcareDicomImageDeletedEventData;\n /** An interface for the event data of a \"Microsoft.HealthcareApis.FhirResourceCreated\" event. */\n \"Microsoft.HealthcareApis.FhirResourceCreated\": HealthcareFhirResourceCreatedEventData;\n /** An interface for the event data of a \"Microsoft.HealthcareApis.FhirUpdatedCreated\" event. */\n \"Microsoft.HealthcareApis.FhirUpdatedCreated\": HealthcareFhirResourceUpdatedEventData;\n /** An interface for the event data of a \"Microsoft.HealthcareApis.FhirDeletedCreated\" event. */\n \"Microsoft.HealthcareApis.FhirDeletedCreated\": HealthcareFhirResourceDeletedEventData;\n /** An interface for the event data of a \"Microsoft.KeyVault.CertificateNewVersionCreated\" event. */\n \"Microsoft.KeyVault.CertificateNewVersionCreated\": KeyVaultCertificateNewVersionCreatedEventData;\n /** An interface for the event data of a \"Microsoft.KeyVault.CertificateNearExpiry\" event. */\n \"Microsoft.KeyVault.CertificateNearExpiry\": KeyVaultCertificateNearExpiryEventData;\n /** An interface for the event data of a \"Microsoft.KeyVault.CertificateExpired\" event. */\n \"Microsoft.KeyVault.CertificateExpired\": KeyVaultCertificateExpiredEventData;\n /** An interface for the event data of a \"Microsoft.KeyVault.KeyNewVersionCreated\" event. */\n \"Microsoft.KeyVault.KeyNewVersionCreated\": KeyVaultKeyNewVersionCreatedEventData;\n /** An interface for the event data of a \"Microsoft.KeyVault.KeyNearExpiry\" event. */\n \"Microsoft.KeyVault.KeyNearExpiry\": KeyVaultKeyNearExpiryEventData;\n /** An interface for the event data of a \"Microsoft.KeyVault.KeyExpired\" event. */\n \"Microsoft.KeyVault.KeyExpired\": KeyVaultKeyExpiredEventData;\n /** An interface for the event data of a \"Microsoft.KeyVault.SecretNewVersionCreated\" event. */\n \"Microsoft.KeyVault.SecretNewVersionCreated\": KeyVaultSecretNewVersionCreatedEventData;\n /** An interface for the event data of a \"Microsoft.KeyVault.SecretNearExpiry\" event. */\n \"Microsoft.KeyVault.SecretNearExpiry\": KeyVaultSecretNearExpiryEventData;\n /** An interface for the event data of a \"Microsoft.KeyVault.SecretExpired\" event. */\n \"Microsoft.KeyVault.SecretExpired\": KeyVaultSecretExpiredEventData;\n /** An interface for the event data of a \"Microsoft.KeyVault.VaultAccessPolicyChanged\" event. */\n \"Microsoft.KeyVault.VaultAccessPolicyChanged\": KeyVaultAccessPolicyChangedEventData;\n /** An interface for the event data of a \"Microsoft.MachineLearningServices.DatasetDriftDetected\" event. */\n \"Microsoft.MachineLearningServices.DatasetDriftDetected\": MachineLearningServicesDatasetDriftDetectedEventData;\n /** An interface for the event data of a \"Microsoft.MachineLearningServices.ModelDeployed\" event. */\n \"Microsoft.MachineLearningServices.ModelDeployed\": MachineLearningServicesModelDeployedEventData;\n /** An interface for the event data of a \"Microsoft.MachineLearningServices.ModelRegistered\" event. */\n \"Microsoft.MachineLearningServices.ModelRegistered\": MachineLearningServicesModelRegisteredEventData;\n /** An interface for the event data of a \"Microsoft.MachineLearningServices.RunCompleted\" event. */\n \"Microsoft.MachineLearningServices.RunCompleted\": MachineLearningServicesRunCompletedEventData;\n /** An interface for the event data of a \"Microsoft.MachineLearningServices.RunStatusChanged\" event. */\n \"Microsoft.MachineLearningServices.RunStatusChanged\": MachineLearningServicesRunStatusChangedEventData;\n /** An interface for the event data of a \"Microsoft.Maps.GeofenceEntered\" event. */\n \"Microsoft.Maps.GeofenceEntered\": MapsGeofenceEnteredEventData;\n /** An interface for the event data of a \"Microsoft.Maps.GeofenceExited\" event. */\n \"Microsoft.Maps.GeofenceExited\": MapsGeofenceExitedEventData;\n /** An interface for the event data of a \"Microsoft.Maps.GeofenceResult\" event. */\n \"Microsoft.Maps.GeofenceResult\": MapsGeofenceResultEventData;\n /** An interface for the event data of a \"Microsoft.Media.JobStateChange\" event. */\n \"Microsoft.Media.JobStateChange\": MediaJobStateChangeEventData;\n /** An interface for the event data of a \"Microsoft.Media.JobOutputStateChange\" event. */\n \"Microsoft.Media.JobOutputStateChange\": MediaJobOutputStateChangeEventData;\n /** An interface for the event data of a \"Microsoft.Media.JobScheduled\" event. */\n \"Microsoft.Media.JobScheduled\": MediaJobScheduledEventData;\n /** An interface for the event data of a \"Microsoft.Media.JobProcessing\" event. */\n \"Microsoft.Media.JobProcessing\": MediaJobProcessingEventData;\n /** An interface for the event data of a \"Microsoft.Media.JobCanceling\" event. */\n \"Microsoft.Media.JobCanceling\": MediaJobCancelingEventData;\n /** An interface for the event data of a \"Microsoft.Media.JobFinished\" event. */\n \"Microsoft.Media.JobFinished\": MediaJobFinishedEventData;\n /** An interface for the event data of a \"Microsoft.Media.JobCanceled\" event. */\n \"Microsoft.Media.JobCanceled\": MediaJobCanceledEventData;\n /** An interface for the event data of a \"Microsoft.Media.JobErrored\" event. */\n \"Microsoft.Media.JobErrored\": MediaJobErroredEventData;\n /** An interface for the event data of a \"Microsoft.Media.JobOutputCanceled\" event. */\n \"Microsoft.Media.JobOutputCanceled\": MediaJobOutputCanceledEventData;\n /** An interface for the event data of a \"Microsoft.Media.JobOutputCanceling\" event. */\n \"Microsoft.Media.JobOutputCanceling\": MediaJobOutputCancelingEventData;\n /** An interface for the event data of a \"Microsoft.Media.JobOutputErrored\" event. */\n \"Microsoft.Media.JobOutputErrored\": MediaJobOutputErroredEventData;\n /** An interface for the event data of a \"Microsoft.Media.JobOutputFinished\" event. */\n \"Microsoft.Media.JobOutputFinished\": MediaJobOutputFinishedEventData;\n /** An interface for the event data of a \"Microsoft.Media.JobOutputProcessing\" event. */\n \"Microsoft.Media.JobOutputProcessing\": MediaJobOutputProcessingEventData;\n /** An interface for the event data of a \"Microsoft.Media.JobOutputScheduled\" event. */\n \"Microsoft.Media.JobOutputScheduled\": MediaJobOutputScheduledEventData;\n /** An interface for the event data of a \"Microsoft.Media.JobOutputProgress\" event. */\n \"Microsoft.Media.JobOutputProgress\": MediaJobOutputProgressEventData;\n /** An interface for the event data of a \"Microsoft.Media.LiveEventEncoderConnected\" event. */\n \"Microsoft.Media.LiveEventEncoderConnected\": MediaLiveEventEncoderConnectedEventData;\n /** An interface for the event data of a \"Microsoft.Media.LiveEventChannelArchiveHeartbeat\" event. */\n \"Microsoft.Media.LiveEventChannelArchiveHeartbeat\": MediaLiveEventChannelArchiveHeartbeatEventData;\n /** An interface for the event data of a \"Microsoft.Media.LiveEventConnectionRejected\" event. */\n \"Microsoft.Media.LiveEventConnectionRejected\": MediaLiveEventConnectionRejectedEventData;\n /** An interface for the event data of a \"Microsoft.Media.LiveEventEncoderDisconnected\" event. */\n \"Microsoft.Media.LiveEventEncoderDisconnected\": MediaLiveEventEncoderDisconnectedEventData;\n /** An interface for the event data of a \"Microsoft.Media.LiveEventIncomingStreamReceived\" event. */\n \"Microsoft.Media.LiveEventIncomingStreamReceived\": MediaLiveEventIncomingStreamReceivedEventData;\n /** An interface for the event data of a \"Microsoft.Media.LiveEventIncomingStreamsOutOfSync\" event. */\n \"Microsoft.Media.LiveEventIncomingStreamsOutOfSync\": MediaLiveEventIncomingStreamsOutOfSyncEventData;\n /** An interface for the event data of a \"Microsoft.Media.LiveEventIncomingVideoStreamsOutOfSync\" event. */\n \"Microsoft.Media.LiveEventIncomingVideoStreamsOutOfSync\": MediaLiveEventIncomingVideoStreamsOutOfSyncEventData;\n /** An interface for the event data of a \"Microsoft.Media.LiveEventIncomingDataChunkDropped\" event. */\n \"Microsoft.Media.LiveEventIncomingDataChunkDropped\": MediaLiveEventIncomingDataChunkDroppedEventData;\n /** An interface for the event data of a \"Microsoft.Media.LiveEventIngestHeartbeat\" event. */\n \"Microsoft.Media.LiveEventIngestHeartbeat\": MediaLiveEventIngestHeartbeatEventData;\n /** An interface for the event data of a \"Microsoft.Media.LiveEventTrackDiscontinuityDetected\" event. */\n \"Microsoft.Media.LiveEventTrackDiscontinuityDetected\": MediaLiveEventTrackDiscontinuityDetectedEventData;\n /** An interface for the event data of a \"Microsoft.PolicyInsights.PolicyStateChanged\" event. */\n \"Microsoft.PolicyInsights.PolicyStateChanged\": PolicyInsightsPolicyStateChangedEventData;\n /** An interface for the event data of a \" Microsoft.PolicyInsights.PolicyStateCreated\" event. */\n \"Microsoft.PolicyInsights.PolicyStateCreated\": PolicyInsightsPolicyStateCreatedEventData;\n /** An interface for the event data of a \"Microsoft.PolicyInsights.PolicyStateDeleted\" event. */\n \"Microsoft.PolicyInsights.PolicyStateDeleted\": PolicyInsightsPolicyStateDeletedEventData;\n /** An interface for the event data of a \"Microsoft.Resources.ResourceDeleteSuccess\" event. */\n \"Microsoft.Resources.ResourceWriteSuccess\": ResourceWriteSuccessEventData;\n /** An interface for the event data of a \"Microsoft.Resources.ResourceWriteFailure\" event. */\n \"Microsoft.Resources.ResourceWriteFailure\": ResourceWriteFailureEventData;\n /** An interface for the event data of a \"Microsoft.Resources.ResourceWriteCancel\" event. */\n \"Microsoft.Resources.ResourceWriteCancel\": ResourceWriteCancelEventData;\n /** An interface for the event data of a \"Microsoft.Resources.ResourceDeleteSuccess\" event. */\n \"Microsoft.Resources.ResourceDeleteSuccess\": ResourceDeleteSuccessEventData;\n /** An interface for the event data of a \"Microsoft.Resources.ResourceDeleteFailure\" event. */\n \"Microsoft.Resources.ResourceDeleteFailure\": ResourceDeleteFailureEventData;\n /** An interface for the event data of a \"Microsoft.Resources.ResourceDeleteCancel\" event. */\n \"Microsoft.Resources.ResourceDeleteCancel\": ResourceDeleteCancelEventData;\n /** An interface for the event data of a \"Microsoft.Resources.ResourceActionSuccess\" event. */\n \"Microsoft.Resources.ResourceActionSuccess\": ResourceActionSuccessEventData;\n /** An interface for the event data of a \"Microsoft.Resources.ResourceActionFailure\" event. */\n \"Microsoft.Resources.ResourceActionFailure\": ResourceActionFailureEventData;\n /** An interface for the event data of a \"Microsoft.Resources.ResourceActionCancel\" event. */\n \"Microsoft.Resources.ResourceActionCancel\": ResourceActionCancelEventData;\n /** An interface for the event data of a \"Microsoft.ServiceBus.ActiveMessagesAvailableWithNoListeners\" event. */\n \"Microsoft.ServiceBus.ActiveMessagesAvailableWithNoListeners\": ServiceBusActiveMessagesAvailableWithNoListenersEventData;\n /** An interface for the event data of a \"Microsoft.ServiceBus.DeadletterMessagesAvailableWithNoListeners\" event. */\n \"Microsoft.ServiceBus.DeadletterMessagesAvailableWithNoListeners\": ServiceBusDeadletterMessagesAvailableWithNoListenersEventData;\n /** An interface for the event data of a \"Microsoft.Storage.AsyncOperationInitiated\" event. */\n \"Microsoft.Storage.AsyncOperationInitiated\": StorageAsyncOperationInitiatedEventData;\n /** An interface for the event data of a \"Microsoft.Storage.BlobCreated\" event. */\n \"Microsoft.Storage.BlobCreated\": StorageBlobCreatedEventData;\n /** An interface for the event data of a \"Microsoft.Storage.BlobDeleted\" event. */\n \"Microsoft.Storage.BlobDeleted\": StorageBlobDeletedEventData;\n /** An interface for the event data of a \"Microsoft.Storage.BlobInventoryPolicyCompleted\" event. */\n \"Microsoft.Storage.BlobInventoryPolicyCompleted\": StorageBlobInventoryPolicyCompletedEventData;\n /** An interface for the event data of a \"Microsoft.Storage.BlobTierChanged\" event. */\n \"Microsoft.Storage.BlobTierChanged\": StorageBlobTierChangedEventData;\n /** An interface for the event data of a \"Microsoft.Storage.BlobRenamed\" event. */\n \"Microsoft.Storage.BlobRenamed\": StorageBlobRenamedEventData;\n /** An interface for the event data of a \"Microsoft.Storage.DirectoryCreated\" event. */\n \"Microsoft.Storage.DirectoryCreated\": StorageDirectoryCreatedEventData;\n /** An interface for the event data of a \"Microsoft.Storage.DirectoryDeleted\" event. */\n \"Microsoft.Storage.DirectoryDeleted\": StorageDirectoryDeletedEventData;\n /** An interface for the event data of a \"Microsoft.Storage.DirectoryRenamed\" event. */\n \"Microsoft.Storage.DirectoryRenamed\": StorageDirectoryRenamedEventData;\n /** An interface for the event data of a \"Microsoft.Storage.LifecyclePolicyCompleted\" event. */\n \"Microsoft.Storage.LifecyclePolicyCompleted\": StorageLifecyclePolicyCompletedEventData;\n /** An interface for the event data of a \"Microsoft.Web.AppUpdated\" event. */\n \"Microsoft.Web.AppUpdated\": WebAppUpdatedEventData;\n /** An interface for the event data of a \"Microsoft.Web.BackupOperationStarted\" event. */\n \"Microsoft.Web.BackupOperationStarted\": WebBackupOperationStartedEventData;\n /** An interface for the event data of a \"Microsoft.Web.BackupOperationCompleted\" event. */\n \"Microsoft.Web.BackupOperationCompleted\": WebBackupOperationCompletedEventData;\n /** An interface for the event data of a \"Microsoft.Web.BackupOperationFailed\" event. */\n \"Microsoft.Web.BackupOperationFailed\": WebBackupOperationFailedEventData;\n /** An interface for the event data of a \"Microsoft.Web.RestoreOperationStarted\" event. */\n \"Microsoft.Web.RestoreOperationStarted\": WebRestoreOperationStartedEventData;\n /** An interface for the event data of a \"Microsoft.Web.RestoreOperationCompleted\" event. */\n \"Microsoft.Web.RestoreOperationCompleted\": WebRestoreOperationCompletedEventData;\n /** An interface for the event data of a \"Microsoft.Web.RestoreOperationFailed\" event. */\n \"Microsoft.Web.RestoreOperationFailed\": WebRestoreOperationFailedEventData;\n /** An interface for the event data of a \"Microsoft.Web.SlotSwapStarted\" event. */\n \"Microsoft.Web.SlotSwapStarted\": WebSlotSwapStartedEventData;\n /** An interface for the event data of a \"Microsoft.Web.SlotSwapCompleted\" event. */\n \"Microsoft.Web.SlotSwapCompleted\": WebSlotSwapCompletedEventData;\n /** An interface for the event data of a \"Microsoft.Web.SlotSwapFailed\" event. */\n \"Microsoft.Web.SlotSwapFailed\": WebSlotSwapFailedEventData;\n /** An interface for the event data of a \"Microsoft.Web.SlotSwapWithPreviewStarted\" event. */\n \"Microsoft.Web.SlotSwapWithPreviewStarted\": WebSlotSwapWithPreviewStartedEventData;\n /** An interface for the event data of a \"Microsoft.Web.SlotSwapWithPreviewCancelled\" event. */\n \"Microsoft.Web.SlotSwapWithPreviewCancelled\": WebSlotSwapWithPreviewCancelledEventData;\n /** An interface for the event data of a \"Microsoft.Web.AppServicePlanUpdated\" event. */\n \"Microsoft.Web.AppServicePlanUpdated\": WebAppServicePlanUpdatedEventData;\n /** An interface for the event data of a \"Microsoft.Storage.StorageTaskQueued\" event. */\n \"Microsoft.Storage.StorageTaskQueued\": StorageTaskQueuedEventData;\n /** An interface for the event data of a \"Microsoft.Storage.StorageTaskCompleted\" event. */\n \"Microsoft.Storage.StorageTaskCompleted\": StorageTaskCompletedEventData;\n /** An interface for the event data of a \"Microsoft.DataBox.CopyStarted\" event. */\n \"Microsoft.DataBox.CopyStarted\": DataBoxCopyStartedEventData;\n /** An interface for the event data of a \"Microsoft.DataBox.CopyCompleted\" event. */\n \"Microsoft.DataBox.CopyCompleted\": DataBoxCopyCompletedEventData;\n /** An interface for the event data of a \"Microsoft.DataBox.OrderCompleted\" event. */\n \"Microsoft.DataBox.OrderCompleted\": DataBoxOrderCompletedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.IncomingCall\" event. */\n \"Microsoft.Communication.IncomingCall\": AcsIncomingCallEventData;\n /** An interface for the event data of a \"Microsoft.Communication.EmailDeliveryReportReceived\" event. */\n \"Microsoft.Communication.EmailDeliveryReportReceived\": AcsEmailDeliveryReportReceivedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.EmailEngagementTrackingReportReceived\" event. */\n \"Microsoft.Communication.EmailEngagementTrackingReportReceived\": AcsEmailEngagementTrackingReportReceivedEventData;\n /** An interface for the event data of a \"Microsoft.ApiManagement.GatewayCreated\" event. */\n \"Microsoft.ApiManagement.GatewayCreated\": ApiManagementGatewayCreatedEventData;\n /** An interface for the event data of a \"Microsoft.ApiManagement.GatewayUpdated\" event. */\n \"Microsoft.ApiManagement.GatewayUpdated\": ApiManagementGatewayUpdatedEventData;\n /** An interface for the event data of a \"Microsoft.ApiManagement.GatewayDeleted\" event. */\n \"Microsoft.ApiManagement.GatewayDeleted\": ApiManagementGatewayDeletedEventData;\n /** An interface for the event data of a \"Microsoft.ApiManagement.GatewayHostnameConfigurationCreated\" event. */\n \"Microsoft.ApiManagement.GatewayHostnameConfigurationCreated\": ApiManagementGatewayHostnameConfigurationCreatedEventData;\n /** An interface for the event data of a \"Microsoft.ApiManagement.GatewayHostnameConfigurationUpdated\" event. */\n \"Microsoft.ApiManagement.GatewayHostnameConfigurationUpdated\": ApiManagementGatewayHostnameConfigurationUpdatedEventData;\n /** An interface for the event data of a \"Microsoft.ApiManagement.GatewayHostnameConfigurationDeleted\" event. */\n \"Microsoft.ApiManagement.GatewayHostnameConfigurationDeleted\": ApiManagementGatewayHostnameConfigurationDeletedEventData;\n /** An interface for the event data of a \"Microsoft.ApiManagement.GatewayCertificateAuthorityCreated\" event. */\n \"Microsoft.ApiManagement.GatewayCertificateAuthorityCreated\": ApiManagementGatewayCertificateAuthorityCreatedEventData;\n /** An interface for the event data of a \"Microsoft.ApiManagement.GatewayCertificateAuthorityUpdated\" event. */\n \"Microsoft.ApiManagement.GatewayCertificateAuthorityUpdated\": ApiManagementGatewayCertificateAuthorityUpdatedEventData;\n /** An interface for the event data of a \"Microsoft.ApiManagement.GatewayCertificateAuthorityDeleted\" event. */\n \"Microsoft.ApiManagement.GatewayCertificateAuthorityDeleted\": ApiManagementGatewayCertificateAuthorityDeletedEventData;\n /** An interface for the event data of a \"Microsoft.ApiManagement.GatewayAPIAdded\" event. */\n \"Microsoft.ApiManagement.GatewayAPIAdded\": ApiManagementGatewayApiAddedEventData;\n /** An interface for the event data of a \"Microsoft.ApiManagement.GatewayAPIRemoved\" event. */\n \"Microsoft.ApiManagement.GatewayAPIRemoved\": ApiManagementGatewayApiRemovedEventData;\n /** An interface for the event data of a \"Microsoft.HealthcareApis.DicomImageUpdated\" event. */\n \"Microsoft.HealthcareApis.DicomImageUpdated\": HealthcareDicomImageUpdatedEventData;\n /** An interface for the event data of a \"Microsoft.ContainerService.ClusterSupportEnded\" event. */\n \"Microsoft.ContainerService.ClusterSupportEnded\": ContainerServiceClusterSupportEndedEventData;\n /** An interface for the event data of a \"Microsoft.ContainerService.ClusterSupportEnding\" event. */\n \"Microsoft.ContainerService.ClusterSupportEnding\": ContainerServiceClusterSupportEndingEventData;\n /** An interface for the event data of a \"Microsoft.ContainerService.NodePoolRollingStarted\" event. */\n \"Microsoft.ContainerService.NodePoolRollingStarted\": ContainerServiceNodePoolRollingStartedEventData;\n /** An interface for the event data of a \"Microsoft.ContainerService.NodePoolRollingSucceeded\" event. */\n \"Microsoft.ContainerService.NodePoolRollingSucceeded\": ContainerServiceNodePoolRollingSucceededEventData;\n /** An interface for the event data of a \"Microsoft.ContainerService.NodePoolRollingFailed\" event. */\n \"Microsoft.ContainerService.NodePoolRollingFailed\": ContainerServiceNodePoolRollingFailedEventData;\n /** An interface for the event data of a \"Microsoft.Edge.SolutionVersionPublished\" event. */\n \"Microsoft.Edge.SolutionVersionPublished\": EdgeSolutionVersionPublishedEventData;\n /** An interface for the event data of a \"Microsoft.EventGrid.MQTTClientCreatedOrUpdated\" event. */\n \"Microsoft.EventGrid.MQTTClientCreatedOrUpdated\": EventGridMqttClientCreatedOrUpdatedEventData;\n /** An interface for the event data of a \"Microsoft.EventGrid.MQTTClientDeleted\" event. */\n \"Microsoft.EventGrid.MQTTClientDeleted\": EventGridMqttClientDeletedEventData;\n /** An interface for the event data of a \"Microsoft.EventGrid.MQTTClientSessionConnected\" event. */\n \"Microsoft.EventGrid.MQTTClientSessionConnected\": EventGridMqttClientSessionConnectedEventData;\n /** An interface for the event data of a \"Microsoft.EventGrid.MQTTClientSessionDisconnected\" event. */\n \"Microsoft.EventGrid.MQTTClientSessionDisconnected\": EventGridMqttClientSessionDisconnectedEventData;\n /** An interface for the event data of a \"Microsoft.AppConfiguration.SnapshotCreated\" event. */\n \"Microsoft.AppConfiguration.SnapshotCreated\": AppConfigurationSnapshotCreatedEventData;\n /** An interface for the event data of a \"Microsoft.AppConfiguration.SnapshotModified\" event. */\n \"Microsoft.AppConfiguration.SnapshotModified\": AppConfigurationSnapshotModifiedEventData;\n /** An interface for the event data of a \"Microsoft.ResourceNotifications.HealthResources.AvailabilityStatusChanged\" event. */\n \"Microsoft.ResourceNotifications.HealthResources.AvailabilityStatusChanged\": ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventData;\n /** An interface for the event data of a \"Microsoft.ResourceNotifications.HealthResources.ResourceAnnotated\" event. */\n \"Microsoft.ResourceNotifications.HealthResources.ResourceAnnotated\": ResourceNotificationsHealthResourcesAnnotatedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.RouterWorkerDeregistered\" event. */\n \"Microsoft.Communication.RouterWorkerDeregistered\": AcsRouterWorkerDeregisteredEventData;\n /** An interface for the event data of a \"Microsoft.Communication.RouterWorkerRegistered\" event. */\n \"Microsoft.Communication.RouterWorkerRegistered\": AcsRouterWorkerRegisteredEventData;\n /** An interface for the event data of a \"Microsoft.Communication.RouterJobCancelled\" event. */\n \"Microsoft.Communication.RouterJobCancelled\": AcsRouterJobCancelledEventData;\n /** An interface for the event data of a \"Microsoft.Communication.RouterJobClassificationFailed\" event. */\n \"Microsoft.Communication.RouterJobClassificationFailed\": AcsRouterJobClassificationFailedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.RouterJobClassified\" event. */\n \"Microsoft.Communication.RouterJobClassified\": AcsRouterJobClassifiedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.RouterJobClosed\" event. */\n \"Microsoft.Communication.RouterJobClosed\": AcsRouterJobClosedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.RouterJobCompleted\" event. */\n \"Microsoft.Communication.RouterJobCompleted\": AcsRouterJobCompletedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.RouterJobDeleted\" event. */\n \"Microsoft.Communication.RouterJobDeleted\": AcsRouterJobDeletedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.RouterJobExceptionTriggered\" event. */\n \"Microsoft.Communication.RouterJobExceptionTriggered\": AcsRouterJobExceptionTriggeredEventData;\n /** An interface for the event data of a \"Microsoft.Communication.RouterJobQueued\" event. */\n \"Microsoft.Communication.RouterJobQueued\": AcsRouterJobQueuedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.RouterJobReceived\" event. */\n \"Microsoft.Communication.RouterJobReceived\": AcsRouterJobReceivedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.RouterJobSchedulingFailed\" event. */\n \"Microsoft.Communication.RouterJobSchedulingFailed\": AcsRouterJobSchedulingFailedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.RouterJobUnassigned\" event. */\n \"Microsoft.Communication.RouterJobUnassigned\": AcsRouterJobUnassignedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.RouterJobWaitingForActivation\" event. */\n \"Microsoft.Communication.RouterJobWaitingForActivation\": AcsRouterJobWaitingForActivationEventData;\n /** An interface for the event data of a \"Microsoft.Communication.RouterJobWorkerSelectorsExpire\" event. */\n \"Microsoft.Communication.RouterJobWorkerSelectorsExpire\": AcsRouterJobWorkerSelectorsExpiredEventData;\n /** An interface for the event data of a \"Microsoft.Communication.RouterWorkerDeleted\" event. */\n \"Microsoft.Communication.RouterWorkerDeleted\": AcsRouterWorkerDeletedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.RouterWorkerOfferAccepted\" event. */\n \"Microsoft.Communication.RouterWorkerOfferAccepted\": AcsRouterWorkerOfferAcceptedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.RouterWorkerOfferDeclined\" event. */\n \"Microsoft.Communication.RouterWorkerOfferDeclined\": AcsRouterWorkerOfferDeclinedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.RouterWorkerOfferExpired\" event. */\n \"Microsoft.Communication.RouterWorkerOfferExpired\": AcsRouterWorkerOfferExpiredEventData;\n /** An interface for the event data of a \"Microsoft.Communication.RouterWorkerOfferIssued\" event. */\n \"Microsoft.Communication.RouterWorkerOfferIssued\": AcsRouterWorkerOfferIssuedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.RouterWorkerOfferRevoked\" event. */\n \"Microsoft.Communication.RouterWorkerOfferRevoked\": AcsRouterWorkerOfferRevokedEventData;\n /** An interface for the event data of a \"Microsoft.ResourceNotifications.Resources.CreatedOrUpdated\" event. */\n \"Microsoft.ResourceNotifications.Resources.CreatedOrUpdated\": ResourceNotificationsResourceManagementCreatedOrUpdatedEventData;\n /** An interface for the event data of a \"Microsoft.ResourceNotifications.Resources.Deleted\" event. */\n \"Microsoft.ResourceNotifications.Resources.Deleted\": ResourceNotificationsResourceManagementDeletedEventData;\n /** An interface for the event data of a \"Microsoft.Storage.StorageTaskAssignmentQueued\" event. */\n \"Microsoft.Storage.StorageTaskAssignmentQueued\": StorageTaskAssignmentQueuedEventData;\n /** An interface for the event data of a \"Microsoft.Storage.StorageTaskAssignmentCompleted\" event. */\n \"Microsoft.Storage.StorageTaskAssignmentCompleted\": StorageTaskAssignmentCompletedEventData;\n /** An interface for the event data of a \"Microsoft.AVS.ScriptExecutionStarted\" event. */\n \"Microsoft.AVS.ScriptExecutionStarted\": AvsScriptExecutionStartedEventData;\n /** An interface for the event data of a \"Microsoft.AVS.ScriptExecutionFinished\" event. */\n \"Microsoft.AVS.ScriptExecutionFinished\": AvsScriptExecutionFinishedEventData;\n /** An interface for the event data of a \"Microsoft.AVS.ScriptExecutionCancelled\" event. */\n \"Microsoft.AVS.ScriptExecutionCancelled\": AvsScriptExecutionCancelledEventData;\n /** An interface for the event data of a \"Microsoft.AVS.ScriptExecutionFailed\" event. */\n \"Microsoft.AVS.ScriptExecutionFailed\": AvsScriptExecutionFailedEventData;\n /** An interface for the event data of a \"Microsoft.AVS.PrivateCloudUpdating\" event. */\n \"Microsoft.AVS.PrivateCloudUpdating\": AvsPrivateCloudUpdatingEventData;\n /** An interface for the event data of a \"Microsoft.AVS.PrivateCloudUpdated\" event. */\n \"Microsoft.AVS.PrivateCloudUpdated\": AvsPrivateCloudUpdatedEventData;\n /** An interface for the event data of a \"Microsoft.AVS.PrivateCloudFailed\" event. */\n \"Microsoft.AVS.PrivateCloudFailed\": AvsPrivateCloudFailedEventData;\n /** An interface for the event data of a \"Microsoft.AVS.ClusterCreated\" event. */\n \"Microsoft.AVS.ClusterCreated\": AvsClusterCreatedEventData;\n /** An interface for the event data of a \"Microsoft.AVS.ClusterDeleted\" event. */\n \"Microsoft.AVS.ClusterDeleted\": AvsClusterDeletedEventData;\n /** An interface for the event data of a \"Microsoft.AVS.ClusterUpdating\" event. */\n \"Microsoft.AVS.ClusterUpdating\": AvsClusterUpdatingEventData;\n /** An interface for the event data of a \"Microsoft.AVS.ClusterUpdated\" event. */\n \"Microsoft.AVS.ClusterUpdated\": AvsClusterUpdatedEventData;\n /** An interface for the event data of a \"Microsoft.AVS.ClusterFailed\" event. */\n \"Microsoft.AVS.ClusterFailed\": AvsClusterFailedEventData;\n /** An interface for the event data of a \"Microsoft.ApiCenter.ApiDefinitionAdded\" event. */\n \"Microsoft.ApiCenter.ApiDefinitionAdded\": ApiCenterApiDefinitionAddedEventData;\n /** An interface for the event data of a \"Microsoft.ApiCenter.ApiDefinitionUpdated\" event. */\n \"Microsoft.ApiCenter.ApiDefinitionUpdated\": ApiCenterApiDefinitionUpdatedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.AdvancedMessageDeliveryStatusUpdated\" event. */\n \"Microsoft.Communication.AdvancedMessageDeliveryStatusUpdated\": AcsMessageDeliveryStatusUpdatedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.AdvancedMessageReceived\" event. */\n \"Microsoft.Communication.AdvancedMessageReceived\": AcsMessageReceivedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.RouterWorkerUpdated\" event. */\n \"Microsoft.Communication.RouterWorkerUpdated\": AcsRouterWorkerUpdatedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.ChatThreadCreated\" event. */\n \"Microsoft.Communication.ChatThreadCreated\": AcsChatThreadCreatedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.ChatThreadDeleted\" event. */\n \"Microsoft.Communication.ChatThreadDeleted\": AcsChatThreadDeletedEventData;\n /** An interface for the event data of a \"Microsoft.Communication.ChatThreadPropertiesUpdated\" event. */\n \"Microsoft.Communication.ChatThreadPropertiesUpdated\": AcsChatThreadPropertiesUpdatedEventData;\n /** An interface for the event data of a \"Microsoft.ResourceNotifications.ContainerServiceEventResources.ScheduledEventEmitted\" event. */\n \"Microsoft.ResourceNotifications.ContainerServiceEventResources.ScheduledEventEmitted\": ResourceNotificationsContainerServiceEventResourcesScheduledEventData;\n}\n\n/**\n * isCloudEventLike returns \"true\" when the event is a CloudEvent\n *\n * @param o - Either an EventGrid our CloudEvent event.\n */\nfunction isCloudEventLike(\n o: EventGridEvent<unknown> | CloudEvent<unknown>,\n): o is CloudEvent<unknown> {\n return (o as any).source !== undefined;\n}\n\n/**\n * iSystemEvent returns \"true\" when a given event is a system event of a given type. When using\n * TypeScript, this function acts as a custom type guard and allows the TypeScript compiler to\n * identify the underlying data\n *\n * @param eventType - The type of system event to check for, e.g., \"Microsoft.AppConfiguration.KeyValueDeleted\"\n * @param event - The event to test.\n */\nexport function isSystemEvent<T extends KnownSystemEventTypes>(\n eventType: T,\n event: EventGridEvent<unknown>,\n): event is EventGridEvent<SystemEventNameToEventData[T]>;\n\n/**\n * iSystemEvent returns \"true\" when a given event is a system event of a given type. When using\n * TypeScript, this function acts as a custom type guard and allows the TypeScript compiler to\n * identify the underlying data\n *\n * @param eventType - The type of system event to check for, e.g., \"Microsoft.AppConfiguration.KeyValueDeleted\"\n * @param event - The event to test.\n */\nexport function isSystemEvent<T extends KnownSystemEventTypes>(\n eventType: T,\n event: CloudEvent<unknown>,\n): event is CloudEvent<SystemEventNameToEventData[T]>;\n\nexport function isSystemEvent<T extends KnownSystemEventTypes>(\n eventType: T,\n event: EventGridEvent<unknown> | CloudEvent<unknown>,\n): event is\n | EventGridEvent<SystemEventNameToEventData[T]>\n | CloudEvent<SystemEventNameToEventData[T]> {\n if (isCloudEventLike(event)) {\n return event.type === eventType;\n } else {\n return event.eventType === eventType;\n }\n}\n"]}
@@ -70,7 +70,7 @@ class EventGridDeserializer {
70
70
  modelEvent.data = deserialized.dataBase64;
71
71
  }
72
72
  // Build the "extensionsAttributes" property bag by removing all known top level properties.
73
- const extensionAttributes = Object.assign({}, deserialized);
73
+ const extensionAttributes = { ...deserialized };
74
74
  for (const propName of models_js_1.cloudEventReservedPropertyNames) {
75
75
  delete extensionAttributes[propName];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CAAC;YAEtC,oDAAoD;YACpD,IAAI,MAAM,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBAChD,UAAU,CAAC,mBAAmB,GAAG,mBAAmB,CAAC;YACvD,CAAC;YAED,MAAM,CAAC,IAAI,CAAC,UAAiC,CAAC,CAAC;QACjD,CAAC;QAED,OAAO,MAAM,CAAC;IAChB,CAAC;CACF;AA5HD,sDA4HC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { createSerializer } from \"@azure/core-client\";\nimport type { CloudEvent as WireCloudEvent } from \"./generated/models/index.js\";\nimport type { CloudEvent, EventGridEvent } from \"./models.js\";\nimport { cloudEventReservedPropertyNames } from \"./models.js\";\nimport {\n EventGridEvent as EventGridEventMapper,\n CloudEvent as CloudEventMapper,\n} from \"./generated/models/mappers.js\";\nimport { parseAndWrap, validateEventGridEvent, validateCloudEventEvent } from \"./util.js\";\n\nconst serializer = createSerializer();\n\n/**\n * EventGridDeserializer is used to aid in processing events delivered by EventGrid. It can deserialize a JSON encoded payload\n * of either a single event or batch of events as well as be used to convert the result of `JSON.parse` into an\n * `EventGridEvent` or `CloudEvent` like object.\n *\n * Unlike normal JSON deseralization, EventGridDeserializer does some additional conversions:\n *\n * - The consumer parses the event time property into a `Date` object, for ease of use.\n * - When deserializing an event in the CloudEvent schema, if the event contains binary data, it is base64 decoded\n * and returned as an instance of the `Uint8Array` type.\n */\nexport class EventGridDeserializer {\n /**\n * Deserializes events encoded in the Event Grid schema.\n *\n * @param encodedEvents - the JSON encoded representation of either a single event or an array of\n * events, encoded in the Event Grid Schema.\n */\n public async deserializeEventGridEvents(\n encodedEvents: string,\n ): Promise<EventGridEvent<unknown>[]>;\n\n /**\n * Deserializes events encoded in the Event Grid schema.\n *\n * @param encodedEvents - an object representing a single event, encoded in the Event Grid schema.\n */\n public async deserializeEventGridEvents(\n encodedEvents: Record<string, unknown>,\n ): Promise<EventGridEvent<unknown>[]>;\n public async deserializeEventGridEvents(\n encodedEvents: string | Record<string, unknown>,\n ): Promise<EventGridEvent<unknown>[]> {\n const decodedArray = parseAndWrap(encodedEvents);\n\n const events: EventGridEvent<unknown>[] = [];\n\n for (const o of decodedArray) {\n validateEventGridEvent(o);\n\n const deserialized: EventGridEvent<any> = serializer.deserialize(EventGridEventMapper, o, \"\");\n\n events.push(deserialized as EventGridEvent<unknown>);\n }\n\n return events;\n }\n\n /**\n * Deserializes events encoded in the Cloud Events 1.0 schema.\n *\n * @param encodedEvents - the JSON encoded representation of either a single event or an array of\n * events, encoded in the Cloud Events 1.0 Schema.\n */\n public async deserializeCloudEvents(encodedEvents: string): Promise<CloudEvent<unknown>[]>;\n\n /**\n * Deserializes events encoded in the Cloud Events 1.0 schema.\n *\n * @param encodedEvents - an object representing a single event, encoded in the Cloud Events 1.0 schema.\n */\n public async deserializeCloudEvents(\n encodedEvents: Record<string, unknown>,\n ): Promise<CloudEvent<unknown>[]>;\n public async deserializeCloudEvents(\n encodedEvents: string | Record<string, unknown>,\n ): Promise<CloudEvent<unknown>[]> {\n const decodedArray = parseAndWrap(encodedEvents);\n\n const events: CloudEvent<unknown>[] = [];\n\n for (const o of decodedArray) {\n validateCloudEventEvent(o);\n\n // Check that the required fields are present and of the correct type and the optional fields are missing\n // or of the correct type.\n\n const deserialized: WireCloudEvent = serializer.deserialize(CloudEventMapper, o, \"\");\n const modelEvent: Record<string, any> = {\n specversion: deserialized.specversion,\n id: deserialized.id,\n source: deserialized.source,\n type: deserialized.type,\n };\n\n if (deserialized.datacontenttype !== undefined) {\n modelEvent.datacontenttype = deserialized.datacontenttype;\n }\n\n if (deserialized.dataschema !== undefined) {\n modelEvent.dataschema = deserialized.dataschema;\n }\n\n if (deserialized.subject !== undefined) {\n modelEvent.subject = deserialized.subject;\n }\n\n if (deserialized.time !== undefined) {\n modelEvent.time = deserialized.time;\n }\n\n if (deserialized.data !== undefined) {\n modelEvent.data = deserialized.data;\n }\n\n // If the data the event represents binary, it is encoded as base64 text in a different property on the event and we need to transform it.\n if (deserialized.dataBase64 !== undefined) {\n if (deserialized.data !== undefined) {\n throw new TypeError(\"event contains both a data and data_base64 field\");\n }\n\n if (!(deserialized.dataBase64 instanceof Uint8Array)) {\n throw new TypeError(\"event data_base64 property is not an instance of Uint8Array\");\n }\n\n modelEvent.data = deserialized.dataBase64;\n }\n\n // Build the \"extensionsAttributes\" property bag by removing all known top level properties.\n const extensionAttributes = { ...deserialized };\n for (const propName of cloudEventReservedPropertyNames) {\n delete extensionAttributes[propName];\n }\n delete extensionAttributes.dataBase64;\n\n // If any properties remain, copy them to the model.\n if (Object.keys(extensionAttributes).length > 0) {\n modelEvent.extensionAttributes = extensionAttributes;\n }\n\n events.push(modelEvent as CloudEvent<unknown>);\n }\n\n return events;\n }\n}\n"]}
1
+ {"version":3,"file":"consumer.js","sourceRoot":"","sources":["../../src/consumer.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,oDAAsD;AAGtD,2CAA8D;AAC9D,8DAGuC;AACvC,uCAA0F;AAE1F,MAAM,UAAU,GAAG,IAAA,8BAAgB,GAAE,CAAC;AAEtC;;;;;;;;;;GAUG;AACH,MAAa,qBAAqB;IAmBzB,KAAK,CAAC,0BAA0B,CACrC,aAA+C;QAE/C,MAAM,YAAY,GAAG,IAAA,sBAAY,EAAC,aAAa,CAAC,CAAC;QAEjD,MAAM,MAAM,GAA8B,EAAE,CAAC;QAE7C,KAAK,MAAM,CAAC,IAAI,YAAY,EAAE,CAAC;YAC7B,IAAA,gCAAsB,EAAC,CAAC,CAAC,CAAC;YAE1B,MAAM,YAAY,GAAwB,UAAU,CAAC,WAAW,CAAC,2BAAoB,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;YAE9F,MAAM,CAAC,IAAI,CAAC,YAAuC,CAAC,CAAC;QACvD,CAAC;QAED,OAAO,MAAM,CAAC;IAChB,CAAC;IAkBM,KAAK,CAAC,sBAAsB,CACjC,aA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S,EAAE,CAAC;oBACpC,MAAM,IAAI,SAAS,CAAC,kDAAkD,CAAC,CAAC;gBAC1E,CAAC;gBAED,IAAI,CAAC,CAAC,YAAY,CAAC,UAAU,YAAY,UAAU,CAAC,EAAE,CAAC;oBACrD,MAAM,IAAI,SAAS,CAAC,6DAA6D,CAAC,CAAC;gBACrF,CAAC;gBAED,UAAU,CAAC,IAAI,GAAG,YAAY,CAAC,UAAU,CAAC;YAC5C,CAAC;YAED,4FAA4F;YAC5F,MAAM,mBAAmB,GAAG,EAAE,GAAG,YAAY,EAAE,CAAC;YAChD,KAAK,MAAM,QAAQ,IAAI,2CAA+B,EAAE,CAAC;gBACvD,OAAO,mBAAmB,CAAC,QAAQ,CAAC,CAAC;YACvC,CAAC;YACD,OAAO,mBAAmB,CAAC,UAAU,CAAC;YAEtC,oDAAoD;YACpD,IAAI,MAAM,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBAChD,UAAU,CAAC,mBAAmB,GAAG,mBAAmB,CAAC;YACvD,CAAC;YAED,MAAM,CAAC,IAAI,CAAC,UAAiC,CAAC,CAAC;QACjD,CAAC;QAED,OAAO,MAAM,CAAC;IAChB,CAAC;CACF;AA5HD,sDA4HC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { createSerializer } from \"@azure/core-client\";\nimport type { CloudEvent as WireCloudEvent } from \"./generated/models/index.js\";\nimport type { CloudEvent, EventGridEvent } from \"./models.js\";\nimport { cloudEventReservedPropertyNames } from \"./models.js\";\nimport {\n EventGridEvent as EventGridEventMapper,\n CloudEvent as CloudEventMapper,\n} from \"./generated/models/mappers.js\";\nimport { parseAndWrap, validateEventGridEvent, validateCloudEventEvent } from \"./util.js\";\n\nconst serializer = createSerializer();\n\n/**\n * EventGridDeserializer is used to aid in processing events delivered by EventGrid. It can deserialize a JSON encoded payload\n * of either a single event or batch of events as well as be used to convert the result of `JSON.parse` into an\n * `EventGridEvent` or `CloudEvent` like object.\n *\n * Unlike normal JSON deseralization, EventGridDeserializer does some additional conversions:\n *\n * - The consumer parses the event time property into a `Date` object, for ease of use.\n * - When deserializing an event in the CloudEvent schema, if the event contains binary data, it is base64 decoded\n * and returned as an instance of the `Uint8Array` type.\n */\nexport class EventGridDeserializer {\n /**\n * Deserializes events encoded in the Event Grid schema.\n *\n * @param encodedEvents - the JSON encoded representation of either a single event or an array of\n * events, encoded in the Event Grid Schema.\n */\n public async deserializeEventGridEvents(\n encodedEvents: string,\n ): Promise<EventGridEvent<unknown>[]>;\n\n /**\n * Deserializes events encoded in the Event Grid schema.\n *\n * @param encodedEvents - an object representing a single event, encoded in the Event Grid schema.\n */\n public async deserializeEventGridEvents(\n encodedEvents: Record<string, unknown>,\n ): Promise<EventGridEvent<unknown>[]>;\n public async deserializeEventGridEvents(\n encodedEvents: string | Record<string, unknown>,\n ): Promise<EventGridEvent<unknown>[]> {\n const decodedArray = parseAndWrap(encodedEvents);\n\n const events: EventGridEvent<unknown>[] = [];\n\n for (const o of decodedArray) {\n validateEventGridEvent(o);\n\n const deserialized: EventGridEvent<any> = serializer.deserialize(EventGridEventMapper, o, \"\");\n\n events.push(deserialized as EventGridEvent<unknown>);\n }\n\n return events;\n }\n\n /**\n * Deserializes events encoded in the Cloud Events 1.0 schema.\n *\n * @param encodedEvents - the JSON encoded representation of either a single event or an array of\n * events, encoded in the Cloud Events 1.0 Schema.\n */\n public async deserializeCloudEvents(encodedEvents: string): Promise<CloudEvent<unknown>[]>;\n\n /**\n * Deserializes events encoded in the Cloud Events 1.0 schema.\n *\n * @param encodedEvents - an object representing a single event, encoded in the Cloud Events 1.0 schema.\n */\n public async deserializeCloudEvents(\n encodedEvents: Record<string, unknown>,\n ): Promise<CloudEvent<unknown>[]>;\n public async deserializeCloudEvents(\n encodedEvents: string | Record<string, unknown>,\n ): Promise<CloudEvent<unknown>[]> {\n const decodedArray = parseAndWrap(encodedEvents);\n\n const events: CloudEvent<unknown>[] = [];\n\n for (const o of decodedArray) {\n validateCloudEventEvent(o);\n\n // Check that the required fields are present and of the correct type and the optional fields are missing\n // or of the correct type.\n\n const deserialized: WireCloudEvent = serializer.deserialize(CloudEventMapper, o, \"\");\n const modelEvent: Record<string, any> = {\n specversion: deserialized.specversion,\n id: deserialized.id,\n source: deserialized.source,\n type: deserialized.type,\n };\n\n if (deserialized.datacontenttype !== undefined) {\n modelEvent.datacontenttype = deserialized.datacontenttype;\n }\n\n if (deserialized.dataschema !== undefined) {\n modelEvent.dataschema = deserialized.dataschema;\n }\n\n if (deserialized.subject !== undefined) {\n modelEvent.subject = deserialized.subject;\n }\n\n if (deserialized.time !== undefined) {\n modelEvent.time = deserialized.time;\n }\n\n if (deserialized.data !== undefined) {\n modelEvent.data = deserialized.data;\n }\n\n // If the data the event represents binary, it is encoded as base64 text in a different property on the event and we need to transform it.\n if (deserialized.dataBase64 !== undefined) {\n if (deserialized.data !== undefined) {\n throw new TypeError(\"event contains both a data and data_base64 field\");\n }\n\n if (!(deserialized.dataBase64 instanceof Uint8Array)) {\n throw new TypeError(\"event data_base64 property is not an instance of Uint8Array\");\n }\n\n modelEvent.data = deserialized.dataBase64;\n }\n\n // Build the \"extensionsAttributes\" property bag by removing all known top level properties.\n const extensionAttributes = { ...deserialized };\n for (const propName of cloudEventReservedPropertyNames) {\n delete extensionAttributes[propName];\n }\n delete extensionAttributes.dataBase64;\n\n // If any properties remain, copy them to the model.\n if (Object.keys(extensionAttributes).length > 0) {\n modelEvent.extensionAttributes = extensionAttributes;\n }\n\n events.push(modelEvent as CloudEvent<unknown>);\n }\n\n return events;\n }\n}\n"]}
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.EventGridPublisherClient = void 0;
6
6
  exports.convertEventGridEventToModelType = convertEventGridEventToModelType;
7
7
  exports.convertCloudEventToModelType = convertCloudEventToModelType;
8
- const tslib_1 = require("tslib");
9
8
  const core_auth_1 = require("@azure/core-auth");
10
9
  const eventGridAuthenticationPolicy_js_1 = require("./eventGridAuthenticationPolicy.js");
11
10
  const constants_js_1 = require("./constants.js");
@@ -19,6 +18,22 @@ const core_rest_pipeline_1 = require("@azure/core-rest-pipeline");
19
18
  * Client class for publishing events to the Event Grid Service.
20
19
  */
21
20
  class EventGridPublisherClient {
21
+ /**
22
+ * The URL to the Event Grid endpoint.
23
+ */
24
+ endpointUrl;
25
+ /**
26
+ * The version of the Even Grid service.
27
+ */
28
+ apiVersion;
29
+ /**
30
+ * The AutoRest generated client for the EventGrid dataplane.
31
+ */
32
+ client;
33
+ /**
34
+ * The schema that will be used when sending events.
35
+ */
36
+ inputSchema;
22
37
  /**
23
38
  * Creates an instance of EventGridPublisherClient which sends events using the Event Grid Schema.
24
39
  *
@@ -67,7 +82,7 @@ class EventGridPublisherClient {
67
82
  // The underlying REST API expects a header named `aeg-channel-name`, and so the generated client
68
83
  // expects that options bag has a property called `aegChannelName`, where as we expose it with the
69
84
  // friendlier name "channelName". Fix up the impedence mismatch here
70
- const _a = updatedOptions, { channelName } = _a, sendOptions = tslib_1.__rest(_a, ["channelName"]);
85
+ const { channelName, ...sendOptions } = updatedOptions;
71
86
  if (channelName) {
72
87
  sendOptions.aegChannelName = channelName;
73
88
  }
@@ -88,11 +103,10 @@ exports.EventGridPublisherClient = EventGridPublisherClient;
88
103
  * @internal
89
104
  */
90
105
  function convertEventGridEventToModelType(event) {
91
- var _a, _b;
92
106
  return {
93
107
  eventType: event.eventType,
94
- eventTime: (_a = event.eventTime) !== null && _a !== void 0 ? _a : new Date(),
95
- id: (_b = event.id) !== null && _b !== void 0 ? _b : (0, core_util_1.randomUUID)(),
108
+ eventTime: event.eventTime ?? new Date(),
109
+ id: event.id ?? (0, core_util_1.randomUUID)(),
96
110
  subject: event.subject,
97
111
  topic: event.topic,
98
112
  data: event.data,
@@ -103,7 +117,6 @@ function convertEventGridEventToModelType(event) {
103
117
  * @internal
104
118
  */
105
119
  function convertCloudEventToModelType(event) {
106
- var _a, _b, _c, _d;
107
120
  if (event.extensionAttributes) {
108
121
  for (const propName in event.extensionAttributes) {
109
122
  // Per the cloud events spec: "CloudEvents attribute names MUST consist of lower-case letters ('a' to 'z') or digits ('0' to '9') from the ASCII character set"
@@ -114,7 +127,16 @@ function convertCloudEventToModelType(event) {
114
127
  }
115
128
  }
116
129
  }
117
- const converted = Object.assign({ specversion: "1.0", type: event.type, source: event.source, id: (_a = event.id) !== null && _a !== void 0 ? _a : (0, core_util_1.randomUUID)(), time: (_b = event.time) !== null && _b !== void 0 ? _b : new Date(), subject: event.subject, dataschema: event.dataschema }, ((_c = event.extensionAttributes) !== null && _c !== void 0 ? _c : []));
130
+ const converted = {
131
+ specversion: "1.0",
132
+ type: event.type,
133
+ source: event.source,
134
+ id: event.id ?? (0, core_util_1.randomUUID)(),
135
+ time: event.time ?? new Date(),
136
+ subject: event.subject,
137
+ dataschema: event.dataschema,
138
+ ...(event.extensionAttributes ?? []),
139
+ };
118
140
  if (event.data instanceof Uint8Array) {
119
141
  if (!event.datacontenttype) {
120
142
  throw new Error("a data content type must be provided when sending an event with binary data");
@@ -123,7 +145,7 @@ function convertCloudEventToModelType(event) {
123
145
  converted.dataBase64 = event.data;
124
146
  }
125
147
  else {
126
- converted.datacontenttype = (_d = event.datacontenttype) !== null && _d !== void 0 ? _d : "application/json";
148
+ converted.datacontenttype = event.datacontenttype ?? "application/json";
127
149
  converted.data = event.data;
128
150
  }
129
151
  return converted;
@@ -1 +1 @@
1
- {"version":3,"file":"eventGridClient.js","sourceRoot":"","sources":["../../src/eventGridClient.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AA8MlC,4EAYC;AAKD,oEAyCC;;AArQD,gDAAqD;AAErD,yFAA+E;AAC/E,iDAAyD;AAEzD,2CAA8D;AAC9D,uEAAiE;AAMjE,iHAA4G;AAC5G,6CAA6C;AAC7C,gDAA8C;AAE9C,kEAA+F;AA+D/F;;GAEG;AACH,MAAa,wBAAwB;IAqBnC;;;;;;;;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,IACE,CAAC,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC;gBAC7B,2CAA+B,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,EACxD,CAAC;gBACD,MAAM,IAAI,KAAK,CAAC,qCAAqC,QAAQ,EAAE,CAAC,CAAC;YACnE,CAAC;QACH,CAAC;IACH,CAAC;IAED,MAAM,SAAS,mBACb,WAAW,EAAE,KAAK,EAClB,IAAI,EAAE,KAAK,CAAC,IAAI,EAChB,MAAM,EAAE,KAAK,CAAC,MAAM,EACpB,EAAE,EAAE,MAAA,KAAK,CAAC,EAAE,mCAAI,IAAA,sBAAU,GAAE,EAC5B,IAAI,EAAE,MAAA,KAAK,CAAC,IAAI,mCAAI,IAAI,IAAI,EAAE,EAC9B,OAAO,EAAE,KAAK,CAAC,OAAO,EACtB,UAAU,EAAE,KAAK,CAAC,UAAU,IACzB,CAAC,MAAA,KAAK,CAAC,mBAAmB,mCAAI,EAAE,CAAC,CACrC,CAAC;IAEF,IAAI,KAAK,CAAC,IAAI,YAAY,UAAU,EAAE,CAAC;QACrC,IAAI,CAAC,KAAK,CAAC,eAAe,EAAE,CAAC;YAC3B,MAAM,IAAI,KAAK,CACb,6EAA6E,CAC9E,CAAC;QACJ,CAAC;QAED,SAAS,CAAC,eAAe,GAAG,KAAK,CAAC,eAAe,CAAC;QAClD,SAAS,CAAC,UAAU,GAAG,KAAK,CAAC,IAAI,CAAC;IACpC,CAAC;SAAM,CAAC;QACN,SAAS,CAAC,eAAe,GAAG,MAAA,KAAK,CAAC,eAAe,mCAAI,kBAAkB,CAAC;QACxE,SAAS,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC;IAC9B,CAAC;IAED,OAAO,SAAS,CAAC;AACnB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { KeyCredential, SASCredential } from \"@azure/core-auth\";\nimport { isTokenCredential } from \"@azure/core-auth\";\nimport type { OperationOptions, CommonClientOptions } from \"@azure/core-client\";\nimport { eventGridCredentialPolicy } from \"./eventGridAuthenticationPolicy.js\";\nimport { DEFAULT_EVENTGRID_SCOPE } from \"./constants.js\";\nimport type { SendCloudEventInput, SendEventGridEventInput } from \"./models.js\";\nimport { cloudEventReservedPropertyNames } from \"./models.js\";\nimport { GeneratedClient } from \"./generated/generatedClient.js\";\nimport type {\n CloudEvent as CloudEventWireModel,\n EventGridEvent as EventGridEventWireModel,\n PublishCloudEventEventsOptionalParams,\n} from \"./generated/models/index.js\";\nimport { cloudEventDistributedTracingEnricherPolicy } from \"./cloudEventDistrubtedTracingEnricherPolicy.js\";\nimport { tracingClient } from \"./tracing.js\";\nimport { randomUUID } from \"@azure/core-util\";\nimport type { TokenCredential } from \"@azure/core-auth\";\nimport { bearerTokenAuthenticationPolicy, tracingPolicyName } from \"@azure/core-rest-pipeline\";\n\n/**\n * Options for the Event Grid Client.\n */\nexport type EventGridPublisherClientOptions = CommonClientOptions;\n\n/**\n * Options for the send events operation.\n */\nexport type SendOptions = OperationOptions;\n\n/**\n * Options for the send events operation, when the input schema is cloud event.\n */\nexport interface CloudEventSendOptions extends SendOptions {\n /**\n * The name of the channel to send the event to (only valid for Partner Namespaces and Topics).\n */\n channelName?: string;\n}\n\n/**\n * A map of input schema names to shapes of the input for the send method on EventGridPublisherClient.\n */\nexport interface InputSchemaToInputTypeMap {\n /**\n * The shape of the input to `send` when the client is configured to send events using the Event Grid schema.\n */\n EventGrid: SendEventGridEventInput<unknown>;\n /**\n * The shape of the input to `send` when the client is configured to send events using the Cloud Event schema.\n */\n CloudEvent: SendCloudEventInput<unknown>;\n /**\n * The shape of the input to `send` when the client is configured to send events using a custom schema.\n */\n Custom: Record<string, unknown>;\n}\n\n/**\n * A map of input schema names to shapes of the options bag for the send method on EventGridPublisherClient.\n */\nexport interface InputSchemaToOptionsTypeMap {\n /**\n * The shape of the options parameter for `send` when the client is configured to send events using the Event Grid schema.\n */\n EventGrid: SendOptions;\n /**\n * The shape of the options parameter for `send` when the client is configured to send events using the Cloud Event schema.\n */\n CloudEvent: CloudEventSendOptions;\n /**\n * The shape of the options parameter for `send` when the client is configured to send events using a custom schema.\n */\n Custom: SendOptions;\n}\n\n/**\n * Allowed schema types, to be used when constructing the EventGridPublisherClient.\n */\nexport type InputSchema = keyof InputSchemaToInputTypeMap;\n\n/**\n * Client class for publishing events to the Event Grid Service.\n */\nexport class EventGridPublisherClient<T extends InputSchema> {\n /**\n * The URL to the Event Grid endpoint.\n */\n public readonly endpointUrl: string;\n\n /**\n * The version of the Even Grid service.\n */\n public readonly apiVersion: string;\n\n /**\n * The AutoRest generated client for the EventGrid dataplane.\n */\n private readonly client: GeneratedClient;\n\n /**\n * The schema that will be used when sending events.\n */\n private readonly inputSchema: InputSchema;\n\n /**\n * Creates an instance of EventGridPublisherClient which sends events using the Event Grid Schema.\n *\n * Example usage:\n * ```ts snippet:ReadmeSampleCreateClient_KeyCredential\n * import { EventGridPublisherClient, AzureKeyCredential } from \"@azure/eventgrid\";\n *\n * const client = new EventGridPublisherClient(\n * \"<endpoint>\",\n * \"EventGrid\",\n * new AzureKeyCredential(\"<Access Key>\"),\n * );\n * ```\n *\n * @param endpointUrl - The URL to the Event Grid endpoint, e.g. https://eg-topic.westus2-1.eventgrid.azure.net/api/events.\n * @param inputSchema - The schema that the Event Grid endpoint is configured to accept. One of \"EventGrid\", \"CloudEvent\", or \"Custom\".\n * @param credential - Used to authenticate requests to the service.\n * @param options - Used to configure the Event Grid Client.\n */\n constructor(\n endpointUrl: string,\n inputSchema: T,\n credential: KeyCredential | SASCredential | TokenCredential,\n options: EventGridPublisherClientOptions = {},\n ) {\n this.endpointUrl = endpointUrl;\n this.inputSchema = inputSchema;\n\n this.client = new GeneratedClient(options);\n\n const authPolicy = isTokenCredential(credential)\n ? bearerTokenAuthenticationPolicy({ credential, scopes: DEFAULT_EVENTGRID_SCOPE })\n : eventGridCredentialPolicy(credential);\n\n this.client.pipeline.addPolicy(authPolicy);\n this.client.pipeline.addPolicy(cloudEventDistributedTracingEnricherPolicy(), {\n afterPolicies: [tracingPolicyName],\n });\n this.apiVersion = this.client.apiVersion;\n }\n\n /**\n * Sends events to a topic.\n *\n * @param events - The events to send. The events should be in the schema used when constructing the client.\n * @param options - Options to control the underlying operation.\n */\n send(\n events: InputSchemaToInputTypeMap[T][],\n options: InputSchemaToOptionsTypeMap[T] = {},\n ): Promise<void> {\n return tracingClient.withSpan(\"EventGridPublisherClient.send\", options, (updatedOptions) => {\n switch (this.inputSchema) {\n case \"EventGrid\": {\n return this.client.publishEventGridEvents(\n this.endpointUrl,\n (events as InputSchemaToInputTypeMap[\"EventGrid\"][]).map(\n convertEventGridEventToModelType,\n ),\n updatedOptions,\n );\n }\n case \"CloudEvent\": {\n // The underlying REST API expects a header named `aeg-channel-name`, and so the generated client\n // expects that options bag has a property called `aegChannelName`, where as we expose it with the\n // friendlier name \"channelName\". Fix up the impedence mismatch here\n const {\n channelName,\n ...sendOptions\n }: { channelName?: string } & PublishCloudEventEventsOptionalParams =\n updatedOptions as CloudEventSendOptions;\n\n if (channelName) {\n sendOptions.aegChannelName = channelName;\n }\n\n return this.client.publishCloudEventEvents(\n this.endpointUrl,\n (events as InputSchemaToInputTypeMap[\"CloudEvent\"][]).map(convertCloudEventToModelType),\n sendOptions,\n );\n }\n case \"Custom\": {\n return this.client.publishCustomEventEvents(\n this.endpointUrl,\n events as InputSchemaToInputTypeMap[\"Custom\"][],\n updatedOptions,\n );\n }\n default: {\n throw new Error(`Unknown input schema type '${this.inputSchema}'`);\n }\n }\n });\n }\n}\n\n/**\n * @internal\n */\nexport function convertEventGridEventToModelType(\n event: SendEventGridEventInput<any>,\n): EventGridEventWireModel {\n return {\n eventType: event.eventType,\n eventTime: event.eventTime ?? new Date(),\n id: event.id ?? randomUUID(),\n subject: event.subject,\n topic: event.topic,\n data: event.data,\n dataVersion: event.dataVersion,\n };\n}\n\n/**\n * @internal\n */\nexport function convertCloudEventToModelType(event: SendCloudEventInput<any>): CloudEventWireModel {\n if (event.extensionAttributes) {\n for (const propName in event.extensionAttributes) {\n // Per the cloud events spec: \"CloudEvents attribute names MUST consist of lower-case letters ('a' to 'z') or digits ('0' to '9') from the ASCII character set\"\n // they also can not match an existing defined property name.\n\n if (\n !/^[a-z0-9]*$/.test(propName) ||\n cloudEventReservedPropertyNames.indexOf(propName) !== -1\n ) {\n throw new Error(`invalid extension attribute name: ${propName}`);\n }\n }\n }\n\n const converted: CloudEventWireModel = {\n specversion: \"1.0\",\n type: event.type,\n source: event.source,\n id: event.id ?? randomUUID(),\n time: event.time ?? new Date(),\n subject: event.subject,\n dataschema: event.dataschema,\n ...(event.extensionAttributes ?? []),\n };\n\n if (event.data instanceof Uint8Array) {\n if (!event.datacontenttype) {\n throw new Error(\n \"a data content type must be provided when sending an event with binary data\",\n );\n }\n\n converted.datacontenttype = event.datacontenttype;\n converted.dataBase64 = event.data;\n } else {\n converted.datacontenttype = event.datacontenttype ?? \"application/json\";\n converted.data = event.data;\n }\n\n return converted;\n}\n"]}
1
+ {"version":3,"file":"eventGridClient.js","sourceRoot":"","sources":["../../src/eventGridClient.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AA8MlC,4EAYC;AAKD,oEAyCC;AArQD,gDAAqD;AAErD,yFAA+E;AAC/E,iDAAyD;AAEzD,2CAA8D;AAC9D,uEAAiE;AAMjE,iHAA4G;AAC5G,6CAA6C;AAC7C,gDAA8C;AAE9C,kEAA+F;AA+D/F;;GAEG;AACH,MAAa,wBAAwB;IACnC;;OAEG;IACa,WAAW,CAAS;IAEpC;;OAEG;IACa,UAAU,CAAS;IAEnC;;OAEG;IACc,MAAM,CAAkB;IAEzC;;OAEG;IACc,WAAW,CAAc;IAE1C;;;;;;;;;;;;;;;;;;OAkBG;IACH,YACE,WAAmB,EACnB,WAAc,EACd,UAA2D,EAC3D,UAA2C,EAAE;QAE7C,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,WA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;YACnE,CAAC;QACH,CAAC;IACH,CAAC;IAED,MAAM,SAAS,GAAwB;QACrC,WAAW,EAAE,KAAK;QAClB,IAAI,EAAE,KAAK,CAAC,IAAI;QAChB,MAAM,EAAE,KAAK,CAAC,MAAM;QACpB,EAAE,EAAE,KAAK,CAAC,EAAE,IAAI,IAAA,sBAAU,GAAE;QAC5B,IAAI,EAAE,KAAK,CAAC,IAAI,IAAI,IAAI,IAAI,EAAE;QAC9B,OAAO,EAAE,KAAK,CAAC,OAAO;QACtB,UAAU,EAAE,KAAK,CAAC,UAAU;QAC5B,GAAG,CAAC,KAAK,CAAC,mBAAmB,IAAI,EAAE,CAAC;KACrC,CAAC;IAEF,IAAI,KAAK,CAAC,IAAI,YAAY,UAAU,EAAE,CAAC;QACrC,IAAI,CAAC,KAAK,CAAC,eAAe,EAAE,CAAC;YAC3B,MAAM,IAAI,KAAK,CACb,6EAA6E,CAC9E,CAAC;QACJ,CAAC;QAED,SAAS,CAAC,eAAe,GAAG,KAAK,CAAC,eAAe,CAAC;QAClD,SAAS,CAAC,UAAU,GAAG,KAAK,CAAC,IAAI,CAAC;IACpC,CAAC;SAAM,CAAC;QACN,SAAS,CAAC,eAAe,GAAG,KAAK,CAAC,eAAe,IAAI,kBAAkB,CAAC;QACxE,SAAS,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC;IAC9B,CAAC;IAED,OAAO,SAAS,CAAC;AACnB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { KeyCredential, SASCredential } from \"@azure/core-auth\";\nimport { isTokenCredential } from \"@azure/core-auth\";\nimport type { OperationOptions, CommonClientOptions } from \"@azure/core-client\";\nimport { eventGridCredentialPolicy } from \"./eventGridAuthenticationPolicy.js\";\nimport { DEFAULT_EVENTGRID_SCOPE } from \"./constants.js\";\nimport type { SendCloudEventInput, SendEventGridEventInput } from \"./models.js\";\nimport { cloudEventReservedPropertyNames } from \"./models.js\";\nimport { GeneratedClient } from \"./generated/generatedClient.js\";\nimport type {\n CloudEvent as CloudEventWireModel,\n EventGridEvent as EventGridEventWireModel,\n PublishCloudEventEventsOptionalParams,\n} from \"./generated/models/index.js\";\nimport { cloudEventDistributedTracingEnricherPolicy } from \"./cloudEventDistrubtedTracingEnricherPolicy.js\";\nimport { tracingClient } from \"./tracing.js\";\nimport { randomUUID } from \"@azure/core-util\";\nimport type { TokenCredential } from \"@azure/core-auth\";\nimport { bearerTokenAuthenticationPolicy, tracingPolicyName } from \"@azure/core-rest-pipeline\";\n\n/**\n * Options for the Event Grid Client.\n */\nexport type EventGridPublisherClientOptions = CommonClientOptions;\n\n/**\n * Options for the send events operation.\n */\nexport type SendOptions = OperationOptions;\n\n/**\n * Options for the send events operation, when the input schema is cloud event.\n */\nexport interface CloudEventSendOptions extends SendOptions {\n /**\n * The name of the channel to send the event to (only valid for Partner Namespaces and Topics).\n */\n channelName?: string;\n}\n\n/**\n * A map of input schema names to shapes of the input for the send method on EventGridPublisherClient.\n */\nexport interface InputSchemaToInputTypeMap {\n /**\n * The shape of the input to `send` when the client is configured to send events using the Event Grid schema.\n */\n EventGrid: SendEventGridEventInput<unknown>;\n /**\n * The shape of the input to `send` when the client is configured to send events using the Cloud Event schema.\n */\n CloudEvent: SendCloudEventInput<unknown>;\n /**\n * The shape of the input to `send` when the client is configured to send events using a custom schema.\n */\n Custom: Record<string, unknown>;\n}\n\n/**\n * A map of input schema names to shapes of the options bag for the send method on EventGridPublisherClient.\n */\nexport interface InputSchemaToOptionsTypeMap {\n /**\n * The shape of the options parameter for `send` when the client is configured to send events using the Event Grid schema.\n */\n EventGrid: SendOptions;\n /**\n * The shape of the options parameter for `send` when the client is configured to send events using the Cloud Event schema.\n */\n CloudEvent: CloudEventSendOptions;\n /**\n * The shape of the options parameter for `send` when the client is configured to send events using a custom schema.\n */\n Custom: SendOptions;\n}\n\n/**\n * Allowed schema types, to be used when constructing the EventGridPublisherClient.\n */\nexport type InputSchema = keyof InputSchemaToInputTypeMap;\n\n/**\n * Client class for publishing events to the Event Grid Service.\n */\nexport class EventGridPublisherClient<T extends InputSchema> {\n /**\n * The URL to the Event Grid endpoint.\n */\n public readonly endpointUrl: string;\n\n /**\n * The version of the Even Grid service.\n */\n public readonly apiVersion: string;\n\n /**\n * The AutoRest generated client for the EventGrid dataplane.\n */\n private readonly client: GeneratedClient;\n\n /**\n * The schema that will be used when sending events.\n */\n private readonly inputSchema: InputSchema;\n\n /**\n * Creates an instance of EventGridPublisherClient which sends events using the Event Grid Schema.\n *\n * Example usage:\n * ```ts snippet:ReadmeSampleCreateClient_KeyCredential\n * import { EventGridPublisherClient, AzureKeyCredential } from \"@azure/eventgrid\";\n *\n * const client = new EventGridPublisherClient(\n * \"<endpoint>\",\n * \"EventGrid\",\n * new AzureKeyCredential(\"<Access Key>\"),\n * );\n * ```\n *\n * @param endpointUrl - The URL to the Event Grid endpoint, e.g. https://eg-topic.westus2-1.eventgrid.azure.net/api/events.\n * @param inputSchema - The schema that the Event Grid endpoint is configured to accept. One of \"EventGrid\", \"CloudEvent\", or \"Custom\".\n * @param credential - Used to authenticate requests to the service.\n * @param options - Used to configure the Event Grid Client.\n */\n constructor(\n endpointUrl: string,\n inputSchema: T,\n credential: KeyCredential | SASCredential | TokenCredential,\n options: EventGridPublisherClientOptions = {},\n ) {\n this.endpointUrl = endpointUrl;\n this.inputSchema = inputSchema;\n\n this.client = new GeneratedClient(options);\n\n const authPolicy = isTokenCredential(credential)\n ? bearerTokenAuthenticationPolicy({ credential, scopes: DEFAULT_EVENTGRID_SCOPE })\n : eventGridCredentialPolicy(credential);\n\n this.client.pipeline.addPolicy(authPolicy);\n this.client.pipeline.addPolicy(cloudEventDistributedTracingEnricherPolicy(), {\n afterPolicies: [tracingPolicyName],\n });\n this.apiVersion = this.client.apiVersion;\n }\n\n /**\n * Sends events to a topic.\n *\n * @param events - The events to send. The events should be in the schema used when constructing the client.\n * @param options - Options to control the underlying operation.\n */\n send(\n events: InputSchemaToInputTypeMap[T][],\n options: InputSchemaToOptionsTypeMap[T] = {},\n ): Promise<void> {\n return tracingClient.withSpan(\"EventGridPublisherClient.send\", options, (updatedOptions) => {\n switch (this.inputSchema) {\n case \"EventGrid\": {\n return this.client.publishEventGridEvents(\n this.endpointUrl,\n (events as InputSchemaToInputTypeMap[\"EventGrid\"][]).map(\n convertEventGridEventToModelType,\n ),\n updatedOptions,\n );\n }\n case \"CloudEvent\": {\n // The underlying REST API expects a header named `aeg-channel-name`, and so the generated client\n // expects that options bag has a property called `aegChannelName`, where as we expose it with the\n // friendlier name \"channelName\". Fix up the impedence mismatch here\n const {\n channelName,\n ...sendOptions\n }: { channelName?: string } & PublishCloudEventEventsOptionalParams =\n updatedOptions as CloudEventSendOptions;\n\n if (channelName) {\n sendOptions.aegChannelName = channelName;\n }\n\n return this.client.publishCloudEventEvents(\n this.endpointUrl,\n (events as InputSchemaToInputTypeMap[\"CloudEvent\"][]).map(convertCloudEventToModelType),\n sendOptions,\n );\n }\n case \"Custom\": {\n return this.client.publishCustomEventEvents(\n this.endpointUrl,\n events as InputSchemaToInputTypeMap[\"Custom\"][],\n updatedOptions,\n );\n }\n default: {\n throw new Error(`Unknown input schema type '${this.inputSchema}'`);\n }\n }\n });\n }\n}\n\n/**\n * @internal\n */\nexport function convertEventGridEventToModelType(\n event: SendEventGridEventInput<any>,\n): EventGridEventWireModel {\n return {\n eventType: event.eventType,\n eventTime: event.eventTime ?? new Date(),\n id: event.id ?? randomUUID(),\n subject: event.subject,\n topic: event.topic,\n data: event.data,\n dataVersion: event.dataVersion,\n };\n}\n\n/**\n * @internal\n */\nexport function convertCloudEventToModelType(event: SendCloudEventInput<any>): CloudEventWireModel {\n if (event.extensionAttributes) {\n for (const propName in event.extensionAttributes) {\n // Per the cloud events spec: \"CloudEvents attribute names MUST consist of lower-case letters ('a' to 'z') or digits ('0' to '9') from the ASCII character set\"\n // they also can not match an existing defined property name.\n\n if (\n !/^[a-z0-9]*$/.test(propName) ||\n cloudEventReservedPropertyNames.indexOf(propName) !== -1\n ) {\n throw new Error(`invalid extension attribute name: ${propName}`);\n }\n }\n }\n\n const converted: CloudEventWireModel = {\n specversion: \"1.0\",\n type: event.type,\n source: event.source,\n id: event.id ?? randomUUID(),\n time: event.time ?? new Date(),\n subject: event.subject,\n dataschema: event.dataschema,\n ...(event.extensionAttributes ?? []),\n };\n\n if (event.data instanceof Uint8Array) {\n if (!event.datacontenttype) {\n throw new Error(\n \"a data content type must be provided when sending an event with binary data\",\n );\n }\n\n converted.datacontenttype = event.datacontenttype;\n converted.dataBase64 = event.data;\n } else {\n converted.datacontenttype = event.datacontenttype ?? \"application/json\";\n converted.data = event.data;\n }\n\n return converted;\n}\n"]}
@@ -17,7 +17,7 @@ const util_js_1 = require("./util.js");
17
17
  */
18
18
  async function generateSharedAccessSignature(endpointUrl, credential, expiresOnUtc, options) {
19
19
  const expiresOnString = (0, util_js_1.dateToServiceTimeString)(expiresOnUtc);
20
- const unsignedSas = `r=${encodeURIComponent(`${endpointUrl}?apiVersion=${(options === null || options === void 0 ? void 0 : options.apiVersion) || constants_js_1.DEFAULT_API_VERSION}`)}&e=${encodeURIComponent(expiresOnString)}`;
20
+ const unsignedSas = `r=${encodeURIComponent(`${endpointUrl}?apiVersion=${options?.apiVersion || constants_js_1.DEFAULT_API_VERSION}`)}&e=${encodeURIComponent(expiresOnString)}`;
21
21
  return (0, cryptoHelpers_js_1.sha256Hmac)(credential.key, unsignedSas).then((digest) => `${unsignedSas}&s=${encodeURIComponent(digest)}`);
22
22
  }
23
23
  //# sourceMappingURL=generateSharedAccessSignature.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"generateSharedAccessSignature.js","sourceRoot":"","sources":["../../src/generateSharedAccessSignature.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAwBlC,sEAaC;AAlCD,iDAAqD;AACrD,yDAAgD;AAChD,uCAAoD;AAUpD;;;;;;;;GAQG;AACI,KAAK,UAAU,6BAA6B,CACjD,WAAmB,EACnB,UAAyB,EACzB,YAAkB,EAClB,OAA8C;IAE9C,MAAM,eAAe,GAAG,IAAA,iCAAuB,EAAC,YAAY,CAAC,CAAC;IAC9D,MAAM,WAAW,GAAG,KAAK,kBAAkB,CACzC,GAAG,WAAW,eAAe,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,UAAU,KAAI,kCAAmB,EAAE,CAC1E,MAAM,kBAAkB,CAAC,eAAe,CAAC,EAAE,CAAC;IAC7C,OAAO,IAAA,6BAAU,EAAC,UAAU,CAAC,GAAG,EAAE,WAAW,CAAC,CAAC,IAAI,CACjD,CAAC,MAAM,EAAE,EAAE,CAAC,GAAG,WAAW,MAAM,kBAAkB,CAAC,MAAM,CAAC,EAAE,CAC7D,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { KeyCredential } from \"@azure/core-auth\";\nimport { DEFAULT_API_VERSION } from \"./constants.js\";\nimport { sha256Hmac } from \"./cryptoHelpers.js\";\nimport { dateToServiceTimeString } from \"./util.js\";\n\nexport interface GenerateSharedAccessSignatureOptions {\n /**\n * The API Version to include in the signature. If not provided, the default\n * API version will be used.\n */\n apiVersion?: string;\n}\n\n/**\n * Generate a shared access signature, which allows a client to send events to an Event Grid Topic or Domain for a limited period of time. This\n * function may only be called when the EventGridPublisherClient was constructed with a KeyCredential instance.\n *\n * @param endpointUrl - The endpoint for the topic or domain you wish to generate a shared access signature for.\n * @param credential - The credential to use when generating the shared access signatrue.\n * @param expiresOn - The time at which the shared access signature is no longer valid.\n * @param options - Options to control how the signature is generated.\n */\nexport async function generateSharedAccessSignature(\n endpointUrl: string,\n credential: KeyCredential,\n expiresOnUtc: Date,\n options?: GenerateSharedAccessSignatureOptions,\n): Promise<string> {\n const expiresOnString = dateToServiceTimeString(expiresOnUtc);\n const unsignedSas = `r=${encodeURIComponent(\n `${endpointUrl}?apiVersion=${options?.apiVersion || DEFAULT_API_VERSION}`,\n )}&e=${encodeURIComponent(expiresOnString)}`;\n return sha256Hmac(credential.key, unsignedSas).then(\n (digest) => `${unsignedSas}&s=${encodeURIComponent(digest)}`,\n );\n}\n"]}
1
+ {"version":3,"file":"generateSharedAccessSignature.js","sourceRoot":"","sources":["../../src/generateSharedAccessSignature.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAwBlC,sEAaC;AAlCD,iDAAqD;AACrD,yDAAgD;AAChD,uCAAoD;AAUpD;;;;;;;;GAQG;AACI,KAAK,UAAU,6BAA6B,CACjD,WAAmB,EACnB,UAAyB,EACzB,YAAkB,EAClB,OAA8C;IAE9C,MAAM,eAAe,GAAG,IAAA,iCAAuB,EAAC,YAAY,CAAC,CAAC;IAC9D,MAAM,WAAW,GAAG,KAAK,kBAAkB,CACzC,GAAG,WAAW,eAAe,OAAO,EAAE,UAAU,IAAI,kCAAmB,EAAE,CAC1E,MAAM,kBAAkB,CAAC,eAAe,CAAC,EAAE,CAAC;IAC7C,OAAO,IAAA,6BAAU,EAAC,UAAU,CAAC,GAAG,EAAE,WAAW,CAAC,CAAC,IAAI,CACjD,CAAC,MAAM,EAAE,EAAE,CAAC,GAAG,WAAW,MAAM,kBAAkB,CAAC,MAAM,CAAC,EAAE,CAC7D,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { KeyCredential } from \"@azure/core-auth\";\nimport { DEFAULT_API_VERSION } from \"./constants.js\";\nimport { sha256Hmac } from \"./cryptoHelpers.js\";\nimport { dateToServiceTimeString } from \"./util.js\";\n\nexport interface GenerateSharedAccessSignatureOptions {\n /**\n * The API Version to include in the signature. If not provided, the default\n * API version will be used.\n */\n apiVersion?: string;\n}\n\n/**\n * Generate a shared access signature, which allows a client to send events to an Event Grid Topic or Domain for a limited period of time. This\n * function may only be called when the EventGridPublisherClient was constructed with a KeyCredential instance.\n *\n * @param endpointUrl - The endpoint for the topic or domain you wish to generate a shared access signature for.\n * @param credential - The credential to use when generating the shared access signatrue.\n * @param expiresOn - The time at which the shared access signature is no longer valid.\n * @param options - Options to control how the signature is generated.\n */\nexport async function generateSharedAccessSignature(\n endpointUrl: string,\n credential: KeyCredential,\n expiresOnUtc: Date,\n options?: GenerateSharedAccessSignatureOptions,\n): Promise<string> {\n const expiresOnString = dateToServiceTimeString(expiresOnUtc);\n const unsignedSas = `r=${encodeURIComponent(\n `${endpointUrl}?apiVersion=${options?.apiVersion || DEFAULT_API_VERSION}`,\n )}&e=${encodeURIComponent(expiresOnString)}`;\n return sha256Hmac(credential.key, unsignedSas).then(\n (digest) => `${unsignedSas}&s=${encodeURIComponent(digest)}`,\n );\n}\n"]}