@azure/eventgrid 5.1.0-beta.1 → 5.1.1

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 (59) hide show
  1. package/dist/index.js +1730 -942
  2. package/dist/index.js.map +1 -1
  3. package/dist-esm/src/consumer.js.map +1 -1
  4. package/dist-esm/src/cryptoHelpers.browser.js.map +1 -1
  5. package/dist-esm/src/eventGridAuthenticationPolicy.js.map +1 -1
  6. package/dist-esm/src/eventGridClient.js.map +1 -1
  7. package/dist-esm/src/generateSharedAccessSignature.js.map +1 -1
  8. package/dist-esm/src/generated/generatedClientContext.js +1 -1
  9. package/dist-esm/src/generated/generatedClientContext.js.map +1 -1
  10. package/dist-esm/src/generated/models/index.js.map +1 -1
  11. package/dist-esm/src/generated/models/mappers.js +1742 -441
  12. package/dist-esm/src/generated/models/mappers.js.map +1 -1
  13. package/dist-esm/src/index.js +0 -1
  14. package/dist-esm/src/index.js.map +1 -1
  15. package/dist-esm/src/models.js.map +1 -1
  16. package/dist-esm/src/predicates.js.map +1 -1
  17. package/dist-esm/src/tracing.js +1 -1
  18. package/dist-esm/src/tracing.js.map +1 -1
  19. package/dist-esm/src/util.js.map +1 -1
  20. package/package.json +11 -15
  21. package/types/eventgrid.d.ts +705 -203
  22. package/dist-esm/src/cadl-generated/EventGridClient.js +0 -41
  23. package/dist-esm/src/cadl-generated/EventGridClient.js.map +0 -1
  24. package/dist-esm/src/cadl-generated/api/EventGridContext.js +0 -10
  25. package/dist-esm/src/cadl-generated/api/EventGridContext.js.map +0 -1
  26. package/dist-esm/src/cadl-generated/api/index.js +0 -5
  27. package/dist-esm/src/cadl-generated/api/index.js.map +0 -1
  28. package/dist-esm/src/cadl-generated/api/operations.js +0 -198
  29. package/dist-esm/src/cadl-generated/api/operations.js.map +0 -1
  30. package/dist-esm/src/cadl-generated/index.js +0 -4
  31. package/dist-esm/src/cadl-generated/index.js.map +0 -1
  32. package/dist-esm/src/cadl-generated/logger.js +0 -5
  33. package/dist-esm/src/cadl-generated/logger.js.map +0 -1
  34. package/dist-esm/src/cadl-generated/models/index.js +0 -4
  35. package/dist-esm/src/cadl-generated/models/index.js.map +0 -1
  36. package/dist-esm/src/cadl-generated/models/models.js +0 -4
  37. package/dist-esm/src/cadl-generated/models/models.js.map +0 -1
  38. package/dist-esm/src/cadl-generated/models/options.js +0 -4
  39. package/dist-esm/src/cadl-generated/models/options.js.map +0 -1
  40. package/dist-esm/src/cadl-generated/rest/clientDefinitions.js +0 -4
  41. package/dist-esm/src/cadl-generated/rest/clientDefinitions.js.map +0 -1
  42. package/dist-esm/src/cadl-generated/rest/eventGridClient.js +0 -38
  43. package/dist-esm/src/cadl-generated/rest/eventGridClient.js.map +0 -1
  44. package/dist-esm/src/cadl-generated/rest/index.js +0 -12
  45. package/dist-esm/src/cadl-generated/rest/index.js.map +0 -1
  46. package/dist-esm/src/cadl-generated/rest/isUnexpected.js +0 -75
  47. package/dist-esm/src/cadl-generated/rest/isUnexpected.js.map +0 -1
  48. package/dist-esm/src/cadl-generated/rest/models.js +0 -4
  49. package/dist-esm/src/cadl-generated/rest/models.js.map +0 -1
  50. package/dist-esm/src/cadl-generated/rest/outputModels.js +0 -4
  51. package/dist-esm/src/cadl-generated/rest/outputModels.js.map +0 -1
  52. package/dist-esm/src/cadl-generated/rest/parameters.js +0 -4
  53. package/dist-esm/src/cadl-generated/rest/parameters.js.map +0 -1
  54. package/dist-esm/src/cadl-generated/rest/responses.js +0 -4
  55. package/dist-esm/src/cadl-generated/rest/responses.js.map +0 -1
  56. package/dist-esm/src/eventGridClientV2.js +0 -147
  57. package/dist-esm/src/eventGridClientV2.js.map +0 -1
  58. package/dist-esm/src/eventGridV2PublishBinaryMode.js +0 -63
  59. package/dist-esm/src/eventGridV2PublishBinaryMode.js.map +0 -1
@@ -5,5 +5,4 @@ export { EventGridPublisherClient, } from "./eventGridClient";
5
5
  export { generateSharedAccessSignature, } from "./generateSharedAccessSignature";
6
6
  export { EventGridDeserializer } from "./consumer";
7
7
  export { isSystemEvent } from "./predicates";
8
- export { EventGridClient } from "./eventGridClientV2";
9
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAI1E,OAAO,EACL,wBAAwB,GAOzB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EACL,6BAA6B,GAE9B,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAEnD,OAAO,EAAE,aAAa,EAAqD,MAAM,cAAc,CAAC;AAkPhG,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nexport { AzureKeyCredential, AzureSASCredential } from \"@azure/core-auth\";\n\nexport { CloudEvent, EventGridEvent, SendCloudEventInput, SendEventGridEventInput } from \"./models\";\n\nexport {\n EventGridPublisherClient,\n EventGridPublisherClientOptions,\n SendOptions,\n CloudEventSendOptions,\n InputSchema,\n InputSchemaToInputTypeMap,\n InputSchemaToOptionsTypeMap,\n} from \"./eventGridClient\";\n\nexport {\n generateSharedAccessSignature,\n GenerateSharedAccessSignatureOptions,\n} from \"./generateSharedAccessSignature\";\n\nexport { EventGridDeserializer } from \"./consumer\";\n\nexport { isSystemEvent, KnownSystemEventTypes, SystemEventNameToEventData } from \"./predicates\";\n\nexport {\n AcsChatEventBase,\n AcsChatEventInThreadBase,\n AcsChatMessageEventInThreadBase,\n AcsChatMessageDeletedEventData,\n AcsChatMessageDeletedInThreadEventData,\n AcsChatMessageEditedEventData,\n AcsChatMessageEditedInThreadEventData,\n AcsChatMessageReceivedEventData,\n AcsChatMessageReceivedInThreadEventData,\n AcsChatMessageEventBase,\n AcsChatThreadCreatedWithUserEventData,\n AcsChatThreadPropertiesUpdatedPerUserEventData,\n AcsChatThreadWithUserDeletedEventData,\n AcsChatThreadEventBase,\n AcsChatParticipantAddedToThreadEventData,\n AcsChatParticipantAddedToThreadWithUserEventData,\n AcsChatParticipantRemovedFromThreadEventData,\n AcsChatParticipantRemovedFromThreadWithUserEventData,\n AcsRecordingFileStatusUpdatedEventData,\n AcsRecordingStorageInfo,\n AcsRecordingChunkInfo,\n ApiManagementApiCreatedEventData,\n ApiManagementApiDeletedEventData,\n ApiManagementApiReleaseCreatedEventData,\n ApiManagementApiReleaseDeletedEventData,\n ApiManagementApiReleaseUpdatedEventData,\n ApiManagementApiUpdatedEventData,\n ApiManagementProductCreatedEventData,\n ApiManagementProductDeletedEventData,\n ApiManagementProductUpdatedEventData,\n ApiManagementSubscriptionCreatedEventData,\n ApiManagementSubscriptionDeletedEventData,\n ApiManagementSubscriptionUpdatedEventData,\n ApiManagementUserCreatedEventData,\n ApiManagementUserDeletedEventData,\n ApiManagementUserUpdatedEventData,\n CommunicationIdentifierModel,\n CommunicationUserIdentifierModel,\n CommunicationCloudEnvironmentModel,\n MicrosoftTeamsUserIdentifierModel,\n PhoneNumberIdentifierModel,\n AcsChatThreadParticipant,\n AcsUserDisconnectedEventData,\n AcsSmsDeliveryAttempt,\n AcsSmsDeliveryReportReceivedEventData,\n AcsSmsEventBase,\n AcsSmsReceivedEventData,\n AppConfigurationKeyValueDeletedEventData,\n AppConfigurationKeyValueModifiedEventData,\n AppEventTypeDetail,\n AppServicePlanEventTypeDetail,\n ContainerRegistryArtifactEventTarget,\n ContainerRegistryEventData,\n ContainerRegistryImagePushedEventData,\n ContainerRegistryImageDeletedEventData,\n ContainerRegistryChartDeletedEventData,\n ContainerRegistryChartPushedEventData,\n ContainerServiceNewKubernetesVersionAvailableEventData,\n DeviceConnectionStateEventInfo,\n DeviceTwinInfo,\n DeviceTwinInfoProperties,\n DeviceTwinInfoX509Thumbprint,\n HealthcareDicomImageCreatedEventData,\n HealthcareDicomImageDeletedEventData,\n HealthcareFhirResourceCreatedEventData,\n HealthcareFhirResourceUpdatedEventData,\n HealthcareFhirResourceDeletedEventData,\n HealthcareFhirResourceType,\n IotHubDeviceCreatedEventData,\n IotHubDeviceDeletedEventData,\n IotHubDeviceConnectedEventData,\n IotHubDeviceDisconnectedEventData,\n IotHubDeviceTelemetryEventData,\n KeyVaultCertificateNewVersionCreatedEventData,\n KeyVaultCertificateNearExpiryEventData,\n KeyVaultCertificateExpiredEventData,\n KeyVaultKeyNewVersionCreatedEventData,\n KeyVaultKeyNearExpiryEventData,\n KeyVaultKeyExpiredEventData,\n KeyVaultSecretNewVersionCreatedEventData,\n KeyVaultSecretNearExpiryEventData,\n KeyVaultSecretExpiredEventData,\n KeyVaultAccessPolicyChangedEventData,\n SubscriptionValidationEventData,\n SubscriptionDeletedEventData,\n EventHubCaptureFileCreatedEventData,\n MachineLearningServicesDatasetDriftDetectedEventData,\n MachineLearningServicesModelDeployedEventData,\n MachineLearningServicesModelRegisteredEventData,\n MachineLearningServicesRunCompletedEventData,\n MachineLearningServicesRunStatusChangedEventData,\n MapsGeofenceEvent,\n MapsGeofenceEnteredEventData,\n MapsGeofenceExitedEventData,\n MapsGeofenceResultEventData,\n MediaJobStateChangeEventData,\n MediaJobOutputStateChangeEventData,\n MediaJobScheduledEventData,\n MediaJobProcessingEventData,\n MediaJobCancelingEventData,\n MediaJobFinishedEventData,\n MediaJobCanceledEventData,\n MediaJobError,\n MediaJobErrorCategory,\n MediaJobErrorDetail,\n MediaJobErrorCode,\n MediaJobRetry,\n MediaJobErroredEventData,\n MediaJobOutputCanceledEventData,\n MediaJobOutputCancelingEventData,\n MediaJobOutputErroredEventData,\n MediaJobOutputFinishedEventData,\n MediaJobOutputProcessingEventData,\n MediaJobOutputScheduledEventData,\n MediaJobOutputProgressEventData,\n MediaJobOutputUnion,\n MediaJobState,\n MediaLiveEventChannelArchiveHeartbeatEventData,\n MediaLiveEventEncoderConnectedEventData,\n MediaLiveEventConnectionRejectedEventData,\n MediaLiveEventEncoderDisconnectedEventData,\n MediaLiveEventIncomingStreamReceivedEventData,\n MediaLiveEventIncomingStreamsOutOfSyncEventData,\n MediaLiveEventIncomingVideoStreamsOutOfSyncEventData,\n MediaLiveEventIncomingDataChunkDroppedEventData,\n MediaLiveEventIngestHeartbeatEventData,\n MediaLiveEventTrackDiscontinuityDetectedEventData,\n ResourceWriteSuccessEventData,\n ResourceWriteFailureEventData,\n ResourceWriteCancelEventData,\n ResourceDeleteSuccessEventData,\n ResourceDeleteFailureEventData,\n ResourceDeleteCancelEventData,\n ResourceActionSuccessEventData,\n ResourceActionFailureEventData,\n ResourceActionCancelEventData,\n ServiceBusActiveMessagesAvailableWithNoListenersEventData,\n ServiceBusDeadletterMessagesAvailableWithNoListenersEventData,\n StorageBlobCreatedEventData,\n StorageBlobDeletedEventData,\n StorageBlobRenamedEventData,\n StorageDirectoryCreatedEventData,\n StorageDirectoryDeletedEventData,\n StorageDirectoryRenamedEventData,\n StorageLifecyclePolicyActionSummaryDetail,\n StorageLifecyclePolicyCompletedEventData,\n WebAppUpdatedEventData,\n WebBackupOperationStartedEventData,\n WebBackupOperationCompletedEventData,\n WebBackupOperationFailedEventData,\n WebRestoreOperationStartedEventData,\n WebRestoreOperationCompletedEventData,\n WebRestoreOperationFailedEventData,\n WebSlotSwapStartedEventData,\n WebSlotSwapCompletedEventData,\n WebSlotSwapFailedEventData,\n WebSlotSwapWithPreviewStartedEventData,\n WebSlotSwapWithPreviewCancelledEventData,\n WebAppServicePlanUpdatedEventData,\n WebAppServicePlanUpdatedEventDataSku,\n AppAction,\n KnownAppAction,\n StampKind,\n KnownStampKind,\n AsyncStatus,\n KnownAsyncStatus,\n ContainerRegistryArtifactEventData,\n ContainerRegistryEventActor,\n ContainerRegistryEventRequest,\n ContainerRegistryEventSource,\n ContainerRegistryEventTarget,\n DeviceConnectionStateEvent,\n DeviceLifeCycleEvent,\n DeviceTelemetryEvent,\n MapsGeofenceGeometry,\n MediaJobOutput,\n MediaJobOutputAsset,\n DeviceTwin,\n DeviceTwinMetadata,\n AppServicePlanAction,\n KnownAppServicePlanAction,\n PolicyInsightsPolicyStateChangedEventData,\n PolicyInsightsPolicyStateCreatedEventData,\n PolicyInsightsPolicyStateDeletedEventData,\n StorageAsyncOperationInitiatedEventData,\n StorageBlobTierChangedEventData,\n StorageBlobInventoryPolicyCompletedEventData,\n RecordingChannelType,\n RecordingContentType,\n RecordingFormatType,\n ResourceAuthorization,\n ResourceHttpRequest,\n ContainerRegistryEventConnectedRegistry,\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 AcsEmailDeliveryReportStatusDetails,\n AcsEmailDeliveryReportStatus,\n AcsUserEngagement,\n AcsIncomingCallCustomContext,\n DataBoxStageName,\n StorageTaskCompletedStatus,\n} from \"./generated/models\";\n\nexport {\n ReceiveResult,\n ReceiveDetails,\n BrokerProperties,\n AcknowledgeResult,\n FailedLockToken,\n ReleaseResult,\n RejectResult,\n PublishCloudEventsOptions,\n ReceiveCloudEventsOptions,\n AcknowledgeCloudEventsOptions,\n ReleaseCloudEventsOptions,\n RejectCloudEventsOptions,\n ReleaseDelay,\n RenewCloudEventLocksOptions,\n RenewCloudEventLocksResult,\n} from \"./cadl-generated/models\";\n\nexport { EventGridClient } from \"./eventGridClientV2\";\n\nexport { EventGridClientOptions } from \"./cadl-generated\";\n\nexport { PublishResultOutput } from \"./cadl-generated/rest\";\n\nexport { OperationOptions as OperationRestOptions } from \"@azure-rest/core-client\";\n\nexport { PublishCloudEventOptions } from \"./models\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAI1E,OAAO,EACL,wBAAwB,GAOzB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EACL,6BAA6B,GAE9B,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAEnD,OAAO,EAAE,aAAa,EAAqD,MAAM,cAAc,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nexport { AzureKeyCredential, AzureSASCredential } from \"@azure/core-auth\";\n\nexport { CloudEvent, EventGridEvent, SendCloudEventInput, SendEventGridEventInput } from \"./models\";\n\nexport {\n EventGridPublisherClient,\n EventGridPublisherClientOptions,\n SendOptions,\n CloudEventSendOptions,\n InputSchema,\n InputSchemaToInputTypeMap,\n InputSchemaToOptionsTypeMap,\n} from \"./eventGridClient\";\n\nexport {\n generateSharedAccessSignature,\n GenerateSharedAccessSignatureOptions,\n} from \"./generateSharedAccessSignature\";\n\nexport { EventGridDeserializer } from \"./consumer\";\n\nexport { isSystemEvent, KnownSystemEventTypes, SystemEventNameToEventData } from \"./predicates\";\n\nexport {\n AcsChatEventBase,\n AcsChatEventInThreadBase,\n AcsChatMessageEventInThreadBase,\n AcsChatMessageDeletedEventData,\n AcsChatMessageDeletedInThreadEventData,\n AcsChatMessageEditedEventData,\n AcsChatMessageEditedInThreadEventData,\n AcsChatMessageReceivedEventData,\n AcsChatMessageReceivedInThreadEventData,\n AcsChatMessageEventBase,\n AcsChatThreadCreatedWithUserEventData,\n AcsChatThreadPropertiesUpdatedPerUserEventData,\n AcsChatThreadWithUserDeletedEventData,\n AcsChatThreadEventBase,\n AcsChatParticipantAddedToThreadEventData,\n AcsChatParticipantAddedToThreadWithUserEventData,\n AcsChatParticipantRemovedFromThreadEventData,\n AcsChatParticipantRemovedFromThreadWithUserEventData,\n AcsRecordingFileStatusUpdatedEventData,\n AcsRecordingStorageInfo,\n AcsRecordingChunkInfo,\n ApiManagementApiCreatedEventData,\n ApiManagementApiDeletedEventData,\n ApiManagementApiReleaseCreatedEventData,\n ApiManagementApiReleaseDeletedEventData,\n ApiManagementApiReleaseUpdatedEventData,\n ApiManagementApiUpdatedEventData,\n ApiManagementProductCreatedEventData,\n ApiManagementProductDeletedEventData,\n ApiManagementProductUpdatedEventData,\n ApiManagementSubscriptionCreatedEventData,\n ApiManagementSubscriptionDeletedEventData,\n ApiManagementSubscriptionUpdatedEventData,\n ApiManagementUserCreatedEventData,\n ApiManagementUserDeletedEventData,\n ApiManagementUserUpdatedEventData,\n CommunicationIdentifierModel,\n CommunicationUserIdentifierModel,\n CommunicationCloudEnvironmentModel,\n MicrosoftTeamsUserIdentifierModel,\n PhoneNumberIdentifierModel,\n AcsChatThreadParticipant,\n AcsUserDisconnectedEventData,\n AcsSmsDeliveryAttempt,\n AcsSmsDeliveryReportReceivedEventData,\n AcsSmsEventBase,\n AcsSmsReceivedEventData,\n AppConfigurationKeyValueDeletedEventData,\n AppConfigurationKeyValueModifiedEventData,\n AppEventTypeDetail,\n AppServicePlanEventTypeDetail,\n ContainerRegistryArtifactEventTarget,\n ContainerRegistryEventData,\n ContainerRegistryImagePushedEventData,\n ContainerRegistryImageDeletedEventData,\n ContainerRegistryChartDeletedEventData,\n ContainerRegistryChartPushedEventData,\n ContainerServiceNewKubernetesVersionAvailableEventData,\n DeviceConnectionStateEventInfo,\n DeviceTwinInfo,\n DeviceTwinInfoProperties,\n DeviceTwinInfoX509Thumbprint,\n HealthcareDicomImageCreatedEventData,\n HealthcareDicomImageDeletedEventData,\n HealthcareFhirResourceCreatedEventData,\n HealthcareFhirResourceUpdatedEventData,\n HealthcareFhirResourceDeletedEventData,\n HealthcareFhirResourceType,\n IotHubDeviceCreatedEventData,\n IotHubDeviceDeletedEventData,\n IotHubDeviceConnectedEventData,\n IotHubDeviceDisconnectedEventData,\n IotHubDeviceTelemetryEventData,\n KeyVaultCertificateNewVersionCreatedEventData,\n KeyVaultCertificateNearExpiryEventData,\n KeyVaultCertificateExpiredEventData,\n KeyVaultKeyNewVersionCreatedEventData,\n KeyVaultKeyNearExpiryEventData,\n KeyVaultKeyExpiredEventData,\n KeyVaultSecretNewVersionCreatedEventData,\n KeyVaultSecretNearExpiryEventData,\n KeyVaultSecretExpiredEventData,\n KeyVaultAccessPolicyChangedEventData,\n SubscriptionValidationEventData,\n SubscriptionDeletedEventData,\n EventHubCaptureFileCreatedEventData,\n MachineLearningServicesDatasetDriftDetectedEventData,\n MachineLearningServicesModelDeployedEventData,\n MachineLearningServicesModelRegisteredEventData,\n MachineLearningServicesRunCompletedEventData,\n MachineLearningServicesRunStatusChangedEventData,\n MapsGeofenceEvent,\n MapsGeofenceEnteredEventData,\n MapsGeofenceExitedEventData,\n MapsGeofenceResultEventData,\n MediaJobStateChangeEventData,\n MediaJobOutputStateChangeEventData,\n MediaJobScheduledEventData,\n MediaJobProcessingEventData,\n MediaJobCancelingEventData,\n MediaJobFinishedEventData,\n MediaJobCanceledEventData,\n MediaJobError,\n MediaJobErrorCategory,\n MediaJobErrorDetail,\n MediaJobErrorCode,\n MediaJobRetry,\n MediaJobErroredEventData,\n MediaJobOutputCanceledEventData,\n MediaJobOutputCancelingEventData,\n MediaJobOutputErroredEventData,\n MediaJobOutputFinishedEventData,\n MediaJobOutputProcessingEventData,\n MediaJobOutputScheduledEventData,\n MediaJobOutputProgressEventData,\n MediaJobOutputUnion,\n MediaJobState,\n MediaLiveEventChannelArchiveHeartbeatEventData,\n MediaLiveEventEncoderConnectedEventData,\n MediaLiveEventConnectionRejectedEventData,\n MediaLiveEventEncoderDisconnectedEventData,\n MediaLiveEventIncomingStreamReceivedEventData,\n MediaLiveEventIncomingStreamsOutOfSyncEventData,\n MediaLiveEventIncomingVideoStreamsOutOfSyncEventData,\n MediaLiveEventIncomingDataChunkDroppedEventData,\n MediaLiveEventIngestHeartbeatEventData,\n MediaLiveEventTrackDiscontinuityDetectedEventData,\n ResourceWriteSuccessEventData,\n ResourceWriteFailureEventData,\n ResourceWriteCancelEventData,\n ResourceDeleteSuccessEventData,\n ResourceDeleteFailureEventData,\n ResourceDeleteCancelEventData,\n ResourceActionSuccessEventData,\n ResourceActionFailureEventData,\n ResourceActionCancelEventData,\n ServiceBusActiveMessagesAvailableWithNoListenersEventData,\n ServiceBusDeadletterMessagesAvailableWithNoListenersEventData,\n StorageBlobCreatedEventData,\n StorageBlobDeletedEventData,\n StorageBlobRenamedEventData,\n StorageDirectoryCreatedEventData,\n StorageDirectoryDeletedEventData,\n StorageDirectoryRenamedEventData,\n StorageLifecyclePolicyActionSummaryDetail,\n StorageLifecyclePolicyCompletedEventData,\n WebAppUpdatedEventData,\n WebBackupOperationStartedEventData,\n WebBackupOperationCompletedEventData,\n WebBackupOperationFailedEventData,\n WebRestoreOperationStartedEventData,\n WebRestoreOperationCompletedEventData,\n WebRestoreOperationFailedEventData,\n WebSlotSwapStartedEventData,\n WebSlotSwapCompletedEventData,\n WebSlotSwapFailedEventData,\n WebSlotSwapWithPreviewStartedEventData,\n WebSlotSwapWithPreviewCancelledEventData,\n WebAppServicePlanUpdatedEventData,\n WebAppServicePlanUpdatedEventDataSku,\n AppAction,\n KnownAppAction,\n StampKind,\n KnownStampKind,\n AsyncStatus,\n KnownAsyncStatus,\n ContainerRegistryArtifactEventData,\n ContainerRegistryEventActor,\n ContainerRegistryEventRequest,\n ContainerRegistryEventSource,\n ContainerRegistryEventTarget,\n DeviceConnectionStateEvent,\n DeviceLifeCycleEvent,\n DeviceTelemetryEvent,\n MapsGeofenceGeometry,\n MediaJobOutput,\n MediaJobOutputAsset,\n DeviceTwin,\n DeviceTwinMetadata,\n AppServicePlanAction,\n KnownAppServicePlanAction,\n PolicyInsightsPolicyStateChangedEventData,\n PolicyInsightsPolicyStateCreatedEventData,\n PolicyInsightsPolicyStateDeletedEventData,\n StorageAsyncOperationInitiatedEventData,\n StorageBlobTierChangedEventData,\n StorageBlobInventoryPolicyCompletedEventData,\n RecordingChannelType,\n RecordingContentType,\n RecordingFormatType,\n ResourceAuthorization,\n ResourceHttpRequest,\n ContainerRegistryEventConnectedRegistry,\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 AcsEmailDeliveryReportStatusDetails,\n AcsEmailDeliveryReportStatus,\n AcsUserEngagement,\n AcsIncomingCallCustomContext,\n DataBoxStageName,\n StorageTaskCompletedStatus,\n ContainerServiceClusterSupportEndedEventData,\n ContainerServiceClusterSupportEndingEventData,\n ContainerServiceNodePoolRollingStartedEventData,\n ContainerServiceNodePoolRollingSucceededEventData,\n ContainerServiceNodePoolRollingFailedEventData,\n ContainerServiceClusterSupportEventData,\n ContainerServiceNodePoolRollingEventData,\n EventGridMqttClientCreatedOrUpdatedEventData,\n EventGridMqttClientDeletedEventData,\n EventGridMqttClientSessionConnectedEventData,\n EventGridMqttClientSessionDisconnectedEventData,\n EventGridMqttClientEventData,\n EventGridMqttClientState,\n KnownEventGridMqttClientState,\n EventGridMqttClientDisconnectionReason,\n KnownEventGridMqttClientDisconnectionReason,\n AppConfigurationSnapshotCreatedEventData,\n AppConfigurationSnapshotModifiedEventData,\n AppConfigurationSnapshotEventData,\n AcsRouterJobEventData,\n AcsRouterWorkerEventData,\n AcsRouterWorkerDeregisteredEventData,\n AcsRouterWorkerRegisteredEventData,\n ResourceNotificationsResourceUpdatedEventData,\n ResourceNotificationsOperationalDetails,\n ResourceNotificationsResourceUpdatedDetails,\n ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventData,\n ResourceNotificationsHealthResourcesAnnotatedEventData,\n AcsRouterCommunicationError,\n AcsRouterQueueDetails,\n AcsRouterWorkerSelector,\n AcsRouterJobStatus,\n KnownAcsRouterJobStatus,\n AcsRouterEventData,\n AcsRouterLabelOperator,\n KnownAcsRouterLabelOperator,\n AcsRouterWorkerSelectorState,\n KnownAcsRouterWorkerSelectorState,\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 AcsRouterChannelConfiguration,\n ResourceNotificationsResourceManagementCreatedOrUpdatedEventData,\n ResourceNotificationsResourceManagementDeletedEventData,\n ResourceNotificationsResourceDeletedEventData,\n ResourceNotificationsResourceDeletedDetails,\n} from \"./generated/models\";\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"models.js","sourceRoot":"","sources":["../../src/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAkKlC;;GAEG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG;IAC7C,aAAa;IACb,IAAI;IACJ,QAAQ;IACR,MAAM;IACN,iBAAiB;IACjB,YAAY;IACZ,SAAS;IACT,MAAM;IACN,MAAM;CACP,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { OperationOptions } from \"@azure-rest/core-client\";\n\n/**\n * The shape of the input for EventGridProducerClient#sendEventGridEvents\n */\nexport interface SendEventGridEventInput<T> {\n /**\n * The type of the event.\n */\n eventType: string;\n /**\n * The time the event was generated. If not provided, the current time will be used.\n */\n eventTime?: Date;\n /**\n * An unique identifier for the event. If an ID is not provided, a random UUID will be generated\n * and used.\n */\n id?: string;\n /**\n * The resource path of the event source.\n */\n topic?: string;\n /**\n * A resource path relative to the topic path.\n */\n subject: string;\n /**\n * The schema version of the data object.\n */\n dataVersion: string;\n /**\n * Event data specific to the event type.\n */\n data: T;\n}\n\n/**\n * An event in the in the Event Grid Schema.\n */\nexport interface EventGridEvent<T> {\n /**\n * The type of the event.\n */\n eventType: string;\n /**\n * The time the event was generated.\n */\n eventTime: Date;\n /**\n * An unique identifier for the event.\n */\n id: string;\n /**\n * The resource path of the event source.\n */\n topic?: string;\n /**\n * A resource path relative to the topic path.\n */\n subject: string;\n /**\n * The schema version of the data object.\n */\n dataVersion: string;\n /**\n * Event data specific to the event type.\n */\n data: T;\n}\n\n/**\n * * The shape of the input for EventGridProducerClient#sendCloudEvents\n */\nexport interface SendCloudEventInput<T> {\n /**\n * Type of event related to the originating occurrence.\n */\n type: string;\n /**\n * Identifies the context in which an event happened. The combination of id and source must be unique for each distinct event.\n */\n source: string;\n /**\n * An identifier for the event. The combination of id and source must be unique for each distinct event. If an ID is not provided,\n * a random UUID will be generated and used.\n */\n id?: string;\n /**\n * The time the event was generated. If not provided, the current time will be used.\n */\n time?: Date;\n /**\n * Identifies the schema that data adheres to.\n */\n dataschema?: string;\n /**\n * Content type of data value.\n */\n datacontenttype?: string;\n /**\n * Event data specific to the event type.\n */\n data?: T;\n /**\n * This describes the subject of the event in the context of the event producer (identified by source).\n */\n subject?: string;\n /**\n * Additional context attributes for the event. The Cloud Event specification refers to these as \"extension attributes\".\n */\n extensionAttributes?: Record<string, unknown>;\n}\n\n/**\n * An event in the Cloud Event 1.0 schema.\n */\nexport interface CloudEvent<T> {\n /**\n * Type of event related to the originating occurrence.\n */\n type: string;\n /**\n * Identifies the context in which an event happened. The combination of id and source must be unique for each distinct event.\n */\n source: string;\n /**\n * An identifier for the event. The combination of id and source must be unique for each distinct event.\n */\n id: string;\n /**\n * The time the event was generated.\n */\n time?: Date;\n /**\n * Identifies the schema that data adheres to.\n */\n dataschema?: string;\n /**\n * Content type of data value.\n */\n datacontenttype?: string;\n /**\n * Event data specific to the event type.\n */\n data?: T;\n /**\n * This describes the subject of the event in the context of the event producer (identified by source).\n */\n subject?: string;\n /**\n * Additional context attributes for the event. The Cloud Event specification refers to these as \"extension attributes\".\n */\n extensionAttributes?: Record<string, unknown>;\n /**\n * The version of the CloudEvents specification which the event uses.\n */\n specversion?: string | \"1.0\";\n}\n\n/**\n * Property names defined by the CloudEvents 1.0 specification, these may not be reused as the names of extension properties.\n */\nexport const cloudEventReservedPropertyNames = [\n \"specversion\",\n \"id\",\n \"source\",\n \"type\",\n \"datacontenttype\",\n \"dataschema\",\n \"subject\",\n \"time\",\n \"data\",\n];\n\n/**\n * A function which provides custom logic to be used when decoding events.\n */\nexport type CustomEventDataDeserializer = (o: any) => Promise<any>;\n\nexport interface PublishCloudEventOptions extends OperationOptions {\n /** binary mode */\n binaryMode?: boolean;\n\n /** content type */\n contentType?: string;\n}\n"]}
1
+ {"version":3,"file":"models.js","sourceRoot":"","sources":["../../src/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AA4JlC;;GAEG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG;IAC7C,aAAa;IACb,IAAI;IACJ,QAAQ;IACR,MAAM;IACN,iBAAiB;IACjB,YAAY;IACZ,SAAS;IACT,MAAM;IACN,MAAM;CACP,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n/**\n * The shape of the input for EventGridProducerClient#sendEventGridEvents\n */\nexport interface SendEventGridEventInput<T> {\n /**\n * The type of the event.\n */\n eventType: string;\n /**\n * The time the event was generated. If not provided, the current time will be used.\n */\n eventTime?: Date;\n /**\n * An unique identifier for the event. If an ID is not provided, a random UUID will be generated\n * and used.\n */\n id?: string;\n /**\n * The resource path of the event source.\n */\n topic?: string;\n /**\n * A resource path relative to the topic path.\n */\n subject: string;\n /**\n * The schema version of the data object.\n */\n dataVersion: string;\n /**\n * Event data specific to the event type.\n */\n data: T;\n}\n\n/**\n * An event in the in the Event Grid Schema.\n */\nexport interface EventGridEvent<T> {\n /**\n * The type of the event.\n */\n eventType: string;\n /**\n * The time the event was generated.\n */\n eventTime: Date;\n /**\n * An unique identifier for the event.\n */\n id: string;\n /**\n * The resource path of the event source.\n */\n topic?: string;\n /**\n * A resource path relative to the topic path.\n */\n subject: string;\n /**\n * The schema version of the data object.\n */\n dataVersion: string;\n /**\n * Event data specific to the event type.\n */\n data: T;\n}\n\n/**\n * * The shape of the input for EventGridProducerClient#sendCloudEvents\n */\nexport interface SendCloudEventInput<T> {\n /**\n * Type of event related to the originating occurrence.\n */\n type: string;\n /**\n * Identifies the context in which an event happened. The combination of id and source must be unique for each distinct event.\n */\n source: string;\n /**\n * An identifier for the event. The combination of id and source must be unique for each distinct event. If an ID is not provided,\n * a random UUID will be generated and used.\n */\n id?: string;\n /**\n * The time the event was generated. If not provided, the current time will be used.\n */\n time?: Date;\n /**\n * Identifies the schema that data adheres to.\n */\n dataschema?: string;\n /**\n * Content type of data value.\n */\n datacontenttype?: string;\n /**\n * Event data specific to the event type.\n */\n data?: T;\n /**\n * This describes the subject of the event in the context of the event producer (identified by source).\n */\n subject?: string;\n /**\n * Additional context attributes for the event. The Cloud Event specification refers to these as \"extension attributes\".\n */\n extensionAttributes?: Record<string, unknown>;\n}\n\n/**\n * An event in the Cloud Event 1.0 schema.\n */\nexport interface CloudEvent<T> {\n /**\n * Type of event related to the originating occurrence.\n */\n type: string;\n /**\n * Identifies the context in which an event happened. The combination of id and source must be unique for each distinct event.\n */\n source: string;\n /**\n * An identifier for the event. The combination of id and source must be unique for each distinct event.\n */\n id: string;\n /**\n * The time the event was generated.\n */\n time?: Date;\n /**\n * Identifies the schema that data adheres to.\n */\n dataschema?: string;\n /**\n * Content type of data value.\n */\n datacontenttype?: string;\n /**\n * Event data specific to the event type.\n */\n data?: T;\n /**\n * This describes the subject of the event in the context of the event producer (identified by source).\n */\n subject?: string;\n /**\n * Additional context attributes for the event. The Cloud Event specification refers to these as \"extension attributes\".\n */\n extensionAttributes?: Record<string, unknown>;\n}\n\n/**\n * Property names defined by the CloudEvents 1.0 specification, these may not be reused as the names of extension properties.\n */\nexport const cloudEventReservedPropertyNames = [\n \"specversion\",\n \"id\",\n \"source\",\n \"type\",\n \"datacontenttype\",\n \"dataschema\",\n \"subject\",\n \"time\",\n \"data\",\n];\n\n/**\n * A function which provides custom logic to be used when decoding events.\n */\nexport type CustomEventDataDeserializer = (o: any) => Promise<any>;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"predicates.js","sourceRoot":"","sources":["../../src/predicates.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AA2dlC;;;;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;QAC3B,OAAO,KAAK,CAAC,IAAI,KAAK,SAAS,CAAC;KACjC;SAAM;QACL,OAAO,KAAK,CAAC,SAAS,KAAK,SAAS,CAAC;KACtC;AACH,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport {\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 AcsRecordingFileStatusUpdatedEventData,\n AcsSmsDeliveryReportReceivedEventData,\n AcsSmsReceivedEventData,\n AcsUserDisconnectedEventData,\n ApiManagementApiCreatedEventData,\n ApiManagementApiDeletedEventData,\n ApiManagementApiReleaseCreatedEventData,\n ApiManagementApiReleaseDeletedEventData,\n ApiManagementApiReleaseUpdatedEventData,\n ApiManagementApiUpdatedEventData,\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 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} from \"./generated/models\";\n\nimport { CloudEvent, EventGridEvent } from \"./models\";\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.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.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.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}\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;AAukBlC;;;;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;QAC3B,OAAO,KAAK,CAAC,IAAI,KAAK,SAAS,CAAC;KACjC;SAAM;QACL,OAAO,KAAK,CAAC,SAAS,KAAK,SAAS,CAAC;KACtC;AACH,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport {\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 AcsRecordingFileStatusUpdatedEventData,\n AcsSmsDeliveryReportReceivedEventData,\n AcsSmsReceivedEventData,\n AcsUserDisconnectedEventData,\n ApiManagementApiCreatedEventData,\n ApiManagementApiDeletedEventData,\n ApiManagementApiReleaseCreatedEventData,\n ApiManagementApiReleaseDeletedEventData,\n ApiManagementApiReleaseUpdatedEventData,\n ApiManagementApiUpdatedEventData,\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 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} from \"./generated/models\";\n\nimport { CloudEvent, EventGridEvent } from \"./models\";\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.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.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.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.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}\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"]}
@@ -8,6 +8,6 @@ import { createTracingClient } from "@azure/core-tracing";
8
8
  export const tracingClient = createTracingClient({
9
9
  namespace: "Microsoft.Messaging.EventGrid",
10
10
  packageName: "@azure/event-grid",
11
- packageVersion: "5.1.0-beta.1",
11
+ packageVersion: "5.1.1",
12
12
  });
13
13
  //# sourceMappingURL=tracing.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tracing.js","sourceRoot":"","sources":["../../src/tracing.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE1D;;;GAGG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,mBAAmB,CAAC;IAC/C,SAAS,EAAE,+BAA+B;IAC1C,WAAW,EAAE,mBAAmB;IAChC,cAAc,EAAE,cAAc;CAC/B,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { createTracingClient } from \"@azure/core-tracing\";\n\n/**\n * A tracing client to handle spans.\n * @internal\n */\nexport const tracingClient = createTracingClient({\n namespace: \"Microsoft.Messaging.EventGrid\",\n packageName: \"@azure/event-grid\",\n packageVersion: \"5.1.0-beta.1\",\n});\n"]}
1
+ {"version":3,"file":"tracing.js","sourceRoot":"","sources":["../../src/tracing.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE1D;;;GAGG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,mBAAmB,CAAC;IAC/C,SAAS,EAAE,+BAA+B;IAC1C,WAAW,EAAE,mBAAmB;IAChC,cAAc,EAAE,OAAO;CACxB,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { createTracingClient } from \"@azure/core-tracing\";\n\n/**\n * A tracing client to handle spans.\n * @internal\n */\nexport const tracingClient = createTracingClient({\n namespace: \"Microsoft.Messaging.EventGrid\",\n packageName: \"@azure/event-grid\",\n packageVersion: \"5.1.1\",\n});\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"util.js","sourceRoot":"","sources":["../../src/util.ts"],"names":[],"mappings":"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","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { KeyCredential } from \"@azure/core-auth\";\n\n/**\n * Stringifies a Date object in the format expected by the Event Grid service, for use in a Shared Access Signiture.\n *\n * The service expects this time string to be in the same format as what is returned by the .NET DateTime.ToString\n * method, using the \"en-US\" culture.\n *\n * This corresponds to the .NET format string: \"M/d/yyyy h:mm:ss tt\". For example, the date \"June 5th, 2020, 12:09:03 PM\"\n * is represented as the string \"6/5/2020 12:09:03 PM\"\n *\n * The service expects a UTC time, so this method returns a string based on the UTC time of the provided Date.\n *\n * @param d - The Date object to convert to a string.\n */\nexport function dateToServiceTimeString(d: Date): string {\n const month = d.getUTCMonth() + 1; // getUTCMonth returns 0-11 not 1-12.\n const day = d.getUTCDate();\n const year = d.getUTCFullYear();\n\n const hour = d.getUTCHours() === 0 || d.getUTCHours() === 12 ? 12 : d.getUTCHours() % 12; // getUTCHours returns 0-23, and we want this in 12 hour format.\n const minute = d.getUTCMinutes().toString().padStart(2, \"0\");\n const second = d.getUTCSeconds().toString().padStart(2, \"0\");\n const am = d.getUTCHours() >= 12 ? \"PM\" : \"AM\";\n\n return `${month}/${day}/${year} ${hour}:${minute}:${second} ${am}`;\n}\n\n/**\n * Returns `true` if the credential object is like the KeyCredential interface (i.e. it has a\n * key property).\n *\n * @param credential - The object to test\n */\nexport function isKeyCredentialLike(o: unknown): o is KeyCredential {\n const castO = o as {\n key: unknown;\n };\n return castO.key !== undefined;\n}\n\nexport function parseAndWrap(jsonStringOrObject: string | Record<string, unknown>): any[] {\n if (typeof jsonStringOrObject === \"string\") {\n const o = JSON.parse(jsonStringOrObject);\n if (Array.isArray(o)) {\n return o;\n } else {\n return [o];\n }\n }\n\n if (Array.isArray(jsonStringOrObject)) {\n return jsonStringOrObject;\n } else {\n return [jsonStringOrObject];\n }\n}\n\nconst EVENT_GRID_SCHEMA_METADATA_VERSION = \"1\";\n\nexport function validateEventGridEvent(o: unknown): void {\n if (typeof o !== \"object\") {\n throw new TypeError(\"event is not an object\");\n }\n\n const castO = o as {\n metadataVersion: unknown;\n };\n validateRequiredStringProperties(o, [\n \"eventType\",\n \"eventTime\",\n \"id\",\n \"subject\",\n \"topic\",\n \"dataVersion\",\n \"metadataVersion\",\n ]);\n\n validateRequiredAnyProperties(o, [\"data\"]);\n\n if (castO.metadataVersion !== EVENT_GRID_SCHEMA_METADATA_VERSION) {\n throw new TypeError(\"event is not in the Event Grid schema\");\n }\n}\n\nconst CLOUD_EVENT_1_0_SPEC_VERSION = \"1.0\";\n\nexport function validateCloudEventEvent(o: unknown): void {\n validateRequiredStringProperties(o, [\"type\", \"source\", \"id\", \"specversion\"]);\n validateOptionalStringProperties(o, [\"time\", \"dataschema\", \"datacontenttype\", \"subject\"]);\n\n if (typeof o !== \"object\") {\n throw new TypeError(\"event is not an object\");\n }\n\n const castO = o as {\n specversion: unknown;\n };\n\n if (castO.specversion !== CLOUD_EVENT_1_0_SPEC_VERSION) {\n throw new Error(\"event is not in the Cloud Event 1.0 schema\");\n }\n}\n\nfunction validateRequiredStringProperties(o: any, propertyNames: string[]): void {\n for (const propertyName of propertyNames) {\n if (typeof o[propertyName] === \"undefined\") {\n throw new Error(`event is missing required property '${propertyName}'`);\n }\n\n if (typeof o[propertyName] !== \"string\") {\n throw new TypeError(\n `event property '${propertyName} should be a 'string', but is '${typeof o[propertyName]}'`\n );\n }\n }\n}\n\nfunction validateRequiredAnyProperties(o: any, propertyNames: string[]): void {\n for (const propertyName of propertyNames) {\n if (typeof o[propertyName] === \"undefined\") {\n throw new Error(`event is missing required property '${propertyName}'`);\n }\n }\n}\n\nfunction validateOptionalStringProperties(o: any, propertyNames: string[]): void {\n for (const propertyName of propertyNames) {\n if (typeof o[propertyName] !== \"undefined\" && typeof o[propertyName] !== \"string\") {\n throw new TypeError(\n `event property '${propertyName}' should be a 'string' but it is a '${typeof o[\n propertyName\n ]}'`\n );\n }\n }\n}\n"]}
1
+ {"version":3,"file":"util.js","sourceRoot":"","sources":["../../src/util.ts"],"names":[],"mappings":"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","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { KeyCredential } from \"@azure/core-auth\";\n\n/**\n * Stringifies a Date object in the format expected by the Event Grid service, for use in a Shared Access Signiture.\n *\n * The service expects this time string to be in the same format as what is returned by the .NET DateTime.ToString\n * method, using the \"en-US\" culture.\n *\n * This corresponds to the .NET format string: \"M/d/yyyy h:mm:ss tt\". For example, the date \"June 5th, 2020, 12:09:03 PM\"\n * is represented as the string \"6/5/2020 12:09:03 PM\"\n *\n * The service expects a UTC time, so this method returns a string based on the UTC time of the provided Date.\n *\n * @param d - The Date object to convert to a string.\n */\nexport function dateToServiceTimeString(d: Date): string {\n const month = d.getUTCMonth() + 1; // getUTCMonth returns 0-11 not 1-12.\n const day = d.getUTCDate();\n const year = d.getUTCFullYear();\n\n const hour = d.getUTCHours() === 0 || d.getUTCHours() === 12 ? 12 : d.getUTCHours() % 12; // getUTCHours returns 0-23, and we want this in 12 hour format.\n const minute = d.getUTCMinutes().toString().padStart(2, \"0\");\n const second = d.getUTCSeconds().toString().padStart(2, \"0\");\n const am = d.getUTCHours() >= 12 ? \"PM\" : \"AM\";\n\n return `${month}/${day}/${year} ${hour}:${minute}:${second} ${am}`;\n}\n\n/**\n * Returns `true` if the credential object is like the KeyCredential interface (i.e. it has a\n * key property).\n *\n * @param credential - The object to test\n */\nexport function isKeyCredentialLike(o: unknown): o is KeyCredential {\n const castO = o as {\n key: unknown;\n };\n return castO.key !== undefined;\n}\n\nexport function parseAndWrap(jsonStringOrObject: string | Record<string, unknown>): any[] {\n if (typeof jsonStringOrObject === \"string\") {\n const o = JSON.parse(jsonStringOrObject);\n if (Array.isArray(o)) {\n return o;\n } else {\n return [o];\n }\n }\n\n if (Array.isArray(jsonStringOrObject)) {\n return jsonStringOrObject;\n } else {\n return [jsonStringOrObject];\n }\n}\n\nconst EVENT_GRID_SCHEMA_METADATA_VERSION = \"1\";\n\nexport function validateEventGridEvent(o: unknown): void {\n if (typeof o !== \"object\") {\n throw new TypeError(\"event is not an object\");\n }\n\n const castO = o as {\n metadataVersion: unknown;\n };\n validateRequiredStringProperties(o, [\n \"eventType\",\n \"eventTime\",\n \"id\",\n \"subject\",\n \"topic\",\n \"dataVersion\",\n \"metadataVersion\",\n ]);\n\n validateRequiredAnyProperties(o, [\"data\"]);\n\n if (castO.metadataVersion !== EVENT_GRID_SCHEMA_METADATA_VERSION) {\n throw new TypeError(\"event is not in the Event Grid schema\");\n }\n}\n\nconst CLOUD_EVENT_1_0_SPEC_VERSION = \"1.0\";\n\nexport function validateCloudEventEvent(o: unknown): void {\n validateRequiredStringProperties(o, [\"type\", \"source\", \"id\", \"specversion\"]);\n validateOptionalStringProperties(o, [\"time\", \"dataschema\", \"datacontenttype\", \"subject\"]);\n\n if (typeof o !== \"object\") {\n throw new TypeError(\"event is not an object\");\n }\n\n const castO = o as {\n specversion: unknown;\n };\n\n if (castO.specversion !== CLOUD_EVENT_1_0_SPEC_VERSION) {\n throw new Error(\"event is not in the Cloud Event 1.0 schema\");\n }\n}\n\nfunction validateRequiredStringProperties(o: any, propertyNames: string[]): void {\n for (const propertyName of propertyNames) {\n if (typeof o[propertyName] === \"undefined\") {\n throw new Error(`event is missing required property '${propertyName}'`);\n }\n\n if (typeof o[propertyName] !== \"string\") {\n throw new TypeError(\n `event property '${propertyName} should be a 'string', but is '${typeof o[propertyName]}'`,\n );\n }\n }\n}\n\nfunction validateRequiredAnyProperties(o: any, propertyNames: string[]): void {\n for (const propertyName of propertyNames) {\n if (typeof o[propertyName] === \"undefined\") {\n throw new Error(`event is missing required property '${propertyName}'`);\n }\n }\n}\n\nfunction validateOptionalStringProperties(o: any, propertyNames: string[]): void {\n for (const propertyName of propertyNames) {\n if (typeof o[propertyName] !== \"undefined\" && typeof o[propertyName] !== \"string\") {\n throw new TypeError(\n `event property '${propertyName}' should be a 'string' but it is a '${typeof o[\n propertyName\n ]}'`,\n );\n }\n }\n}\n"]}
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "sdk-type": "client",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "An isomorphic client library for the Azure Event Grid service.",
6
- "version": "5.1.0-beta.1",
6
+ "version": "5.1.1",
7
7
  "keywords": [
8
8
  "node",
9
9
  "azure",
@@ -22,7 +22,7 @@
22
22
  "url": "https://github.com/Azure/azure-sdk-for-js/issues"
23
23
  },
24
24
  "engines": {
25
- "node": ">=16.0.0"
25
+ "node": ">=18.0.0"
26
26
  },
27
27
  "files": [
28
28
  "dist/",
@@ -69,11 +69,11 @@
69
69
  "build:samples": "echo Obsolete",
70
70
  "build:test": "tsc -p . && dev-tool run bundle",
71
71
  "build": "npm run clean && tsc -p . && dev-tool run bundle && api-extractor run --local",
72
- "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"",
72
+ "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"",
73
73
  "clean": "rimraf dist dist-browser dist-esm dist-test temp types *.tgz *.log",
74
74
  "execute:samples": "dev-tool samples run samples-dev",
75
75
  "extract-api": "tsc -p . && api-extractor run --local",
76
- "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"",
76
+ "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"",
77
77
  "generate:client": "autorest --typescript ./swagger/README.md && node ./scripts/setPathToEmpty.js",
78
78
  "integration-test:browser": "dev-tool run test:browser",
79
79
  "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 \"dist-esm/test/**/*.spec.js\"",
@@ -93,12 +93,9 @@
93
93
  "dependencies": {
94
94
  "@azure/core-auth": "^1.3.0",
95
95
  "@azure/core-client": "^1.5.0",
96
- "@azure/core-rest-pipeline": "^1.1.3",
97
- "@azure-rest/core-client": "^1.1.3",
96
+ "@azure/core-rest-pipeline": "^1.1.0",
98
97
  "@azure/core-tracing": "^1.0.0",
99
98
  "@azure/logger": "^1.0.0",
100
- "@azure/core-util": "^1.6.1",
101
- "buffer": "^6.0.0",
102
99
  "tslib": "^2.2.0",
103
100
  "uuid": "^8.3.0"
104
101
  },
@@ -112,8 +109,8 @@
112
109
  "@types/chai": "^4.1.6",
113
110
  "@types/chai-as-promised": "^7.1.0",
114
111
  "@types/mocha": "^10.0.0",
115
- "@types/node": "^16.0.0",
116
- "@types/sinon": "^10.0.0",
112
+ "@types/node": "^18.0.0",
113
+ "@types/sinon": "^17.0.0",
117
114
  "@types/uuid": "^8.0.0",
118
115
  "chai": "^4.2.0",
119
116
  "chai-as-promised": "^7.1.1",
@@ -130,13 +127,12 @@
130
127
  "karma-mocha-reporter": "^2.2.5",
131
128
  "karma-sourcemap-loader": "^0.3.8",
132
129
  "mocha": "^10.0.0",
133
- "mocha-junit-reporter": "^2.0.0",
134
- "nyc": "^15.0.0",
135
- "prettier": "^2.5.1",
130
+ "c8": "^8.0.0",
136
131
  "rimraf": "^3.0.0",
137
- "sinon": "^15.0.0",
132
+ "sinon": "^17.0.0",
138
133
  "source-map-support": "^0.5.9",
139
134
  "ts-node": "^10.0.0",
140
- "typescript": "~5.2.0"
135
+ "typescript": "~5.2.0",
136
+ "esm": "^3.2.18"
141
137
  }
142
138
  }