diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index d0e7b34118ad..43937d40cc69 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -3694,7 +3694,7 @@ packages: version: 0.0.0 '@rush-temp/eventgrid-system-events@file:projects/eventgrid-system-events.tgz': - resolution: {integrity: sha512-J9WSaHbb572Gh+WpNvDx5NF+NAaY9HTSAOWuBNfzplXZG1h5e7wilvy86TqheypQqdxhsau7IhbsRHEOEeFAPA==, tarball: file:projects/eventgrid-system-events.tgz} + resolution: {integrity: sha512-7jFTJbW3CdhmxZPo9qWzx4GQIVnvzZFEJ+HxpDDq3IZ8ihEpuSSr+9tx/voOiRj1qllVJyiaJgv5zWRKFWtSkQ==, tarball: file:projects/eventgrid-system-events.tgz} version: 0.0.0 '@rush-temp/eventgrid@file:projects/eventgrid.tgz': @@ -17141,9 +17141,11 @@ snapshots: '@rush-temp/eventgrid-system-events@file:projects/eventgrid-system-events.tgz(msw@2.6.8(@types/node@22.7.9)(typescript@5.7.2))(vite@5.4.11(@types/node@22.7.9))': dependencies: + '@microsoft/api-extractor': 7.48.0(@types/node@18.19.68) '@types/node': 18.19.68 '@vitest/browser': 2.1.8(@types/node@18.19.68)(playwright@1.49.1)(typescript@5.6.3)(vite@5.4.11(@types/node@22.7.9))(vitest@2.1.8) '@vitest/coverage-istanbul': 2.1.8(vitest@2.1.8) + dotenv: 16.4.7 eslint: 9.17.0 playwright: 1.49.1 tslib: 2.8.1 diff --git a/sdk/eventgrid/eventgrid-system-events/CHANGELOG.md b/sdk/eventgrid/eventgrid-system-events/CHANGELOG.md deleted file mode 100644 index be83a6246522..000000000000 --- a/sdk/eventgrid/eventgrid-system-events/CHANGELOG.md +++ /dev/null @@ -1,26 +0,0 @@ -# Release History - -## 1.0.0-beta.4 (2024-09-23) - -### Other Changes - -- A new property `tierToColdSummary` is added to the `StorageLifecyclePolicyCompletedEventData` interface. - -## 1.0.0-beta.3 (2024-08-20) - -### Other Changes - -- A new field `accessTier` is added to the `StorageBlobCreatedEventData` object. -- Two new fields `accessTier` & `previousTier` are added to the StorageBlobTierChangedEventData object. - -## 1.0.0-beta.2 (2024-07-16) - -### Other Changes - -- Regenerated SDK with latest commit. Refer [#30399](https://github.com/Azure/azure-sdk-for-js/pull/30399) for further details. - -## 1.0.0-beta.1 (2024-06-11) - -### Features Added - -- Released System Events related to Eventgrid service. diff --git a/sdk/eventgrid/eventgrid-system-events/LICENSE b/sdk/eventgrid/eventgrid-system-events/LICENSE index ea8fb1516028..7d5934740965 100644 --- a/sdk/eventgrid/eventgrid-system-events/LICENSE +++ b/sdk/eventgrid/eventgrid-system-events/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2020 Microsoft +Copyright (c) 2024 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +SOFTWARE. \ No newline at end of file diff --git a/sdk/eventgrid/eventgrid-system-events/README.md b/sdk/eventgrid/eventgrid-system-events/README.md index 5aab1d1973a7..756af78d7817 100644 --- a/sdk/eventgrid/eventgrid-system-events/README.md +++ b/sdk/eventgrid/eventgrid-system-events/README.md @@ -1,53 +1,44 @@ -# Azure Event Grid Namespaces client library for JavaScript +# Azure SystemEvents REST client library for JavaScript -Azure Event Grid system events are published by Azure services to system topics. The models in this package map to events sent by various Azure services. +Azure Messaging EventGrid SystemEvents + +**Please rely heavily on our [REST client docs](https://github.com/Azure/azure-sdk-for-js/blob/main/documentation/rest-clients.md) to use this library** Key links: -- [Source code](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/eventgrid/eventgrid-system-events/) +- [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/eventgrid/eventgrid-system-events) - [Package (NPM)](https://www.npmjs.com/package/@azure/eventgrid-system-events) -- [API reference documentation](https://docs.microsoft.com/javascript/api/@azure/eventgrid-namespaces/) -- [Product documentation](https://docs.microsoft.com/azure/event-grid/) +- [API reference documentation](https://docs.microsoft.com/javascript/api/@azure/eventgrid-system-events?view=azure-node-preview) ## Getting started ### Currently supported environments -- [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule) -- Latest versions of Safari, Chrome, Edge, and Firefox. - -See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details. +- LTS versions of Node.js ### Prerequisites -- An [Azure subscription][azure_sub]. -- An existing [Event Grid][event_grid] Topic or Domain. If you need to create the resource, you can use the [Azure Portal][azure_portal] or [Azure CLI][azure_cli]. - -If you use the Azure CLI, replace `` and `` with your own unique names: - -#### Create an Event Grid Topic - -```bash -az eventgrid topic create --location --resource-group --name -``` - -#### Create an Event Grid Domain - -```bash -az eventgrid domain create --location --resource-group --name -``` +- You must have an [Azure subscription](https://azure.microsoft.com/free/) to use this package. ### Install the `@azure/eventgrid-system-events` package -Install the Azure Event Grid System Events client library for JavaScript with `npm`: +Install the Azure SystemEvents REST client REST client library for JavaScript with `npm`: ```bash npm install @azure/eventgrid-system-events ``` -## Key concepts +### Create and authenticate a `SystemEventsClient` + +To use an [Azure Active Directory (AAD) token credential](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token), +provide an instance of the desired credential type obtained from the +[@azure/identity](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#credentials) library. + +To authenticate with AAD, you must first `npm` install [`@azure/identity`](https://www.npmjs.com/package/@azure/identity) -This package provides a list of System Events that could be used to publish events to EventGrid. +After setup, you can choose which type of [credential](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#credentials) from `@azure/identity` to use. +As an example, [DefaultAzureCredential](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#defaultazurecredential) +can be used to authenticate the client. ## Troubleshooting @@ -61,22 +52,4 @@ const { setLogLevel } = require("@azure/logger"); setLogLevel("info"); ``` -For more detailed instructions on how to enable the logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger). - -## Contributing - -If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code. - -## Related projects - -- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Feventgrid%2Feventgrid%2FREADME.png) - -[azure_cli]: https://docs.microsoft.com/cli/azure -[azure_sub]: https://azure.microsoft.com/free/ -[event_grid]: https://docs.microsoft.com/azure/event-grid -[azure_portal]: https://portal.azure.com -[azure-core-tracing-github]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/core-tracing -[cloud-events-distributed-tracing-spec]: https://github.com/cloudevents/spec/blob/v1.0.1/extensions/distributed-tracing.md -[eventgrid-on-kubernetes-using-azure-arc]: https://docs.microsoft.com/azure/event-grid/kubernetes/ +For more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger). diff --git a/sdk/eventgrid/eventgrid-system-events/api-extractor.json b/sdk/eventgrid/eventgrid-system-events/api-extractor.json index 2a37a1b5b386..b419a2f7c8d9 100644 --- a/sdk/eventgrid/eventgrid-system-events/api-extractor.json +++ b/sdk/eventgrid/eventgrid-system-events/api-extractor.json @@ -1,6 +1,6 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "dist/esm/index.d.ts", + "mainEntryPointFilePath": "./dist/esm/index.d.ts", "docModel": { "enabled": true }, @@ -11,7 +11,7 @@ "dtsRollup": { "enabled": true, "untrimmedFilePath": "", - "publicTrimmedFilePath": "dist/eventgrid-system-events.d.ts" + "publicTrimmedFilePath": "./types/eventgrid-system-events.d.ts" }, "messages": { "tsdocMessageReporting": { @@ -28,4 +28,4 @@ } } } -} +} \ No newline at end of file diff --git a/sdk/eventgrid/eventgrid-system-events/eslint.config.mjs b/sdk/eventgrid/eventgrid-system-events/eslint.config.mjs new file mode 100644 index 000000000000..113bdc3eaf5f --- /dev/null +++ b/sdk/eventgrid/eventgrid-system-events/eslint.config.mjs @@ -0,0 +1,17 @@ +import azsdkEslint from "@azure/eslint-plugin-azure-sdk"; + +export default [ + ...azsdkEslint.configs.recommended, + { + rules: { + "@azure/azure-sdk/ts-modules-only-named": "warn", + "@azure/azure-sdk/ts-apiextractor-json-types": "warn", + "@azure/azure-sdk/ts-package-json-types": "warn", + "@azure/azure-sdk/ts-package-json-engine-is-present": "warn", + "@azure/azure-sdk/ts-package-json-module": "off", + "@azure/azure-sdk/ts-package-json-files-required": "off", + "@azure/azure-sdk/ts-package-json-main-is-cjs": "off", + "tsdoc/syntax": "warn" + } + } +]; diff --git a/sdk/eventgrid/eventgrid-system-events/package.json b/sdk/eventgrid/eventgrid-system-events/package.json index 8df115c7c453..99f90dd38c0c 100644 --- a/sdk/eventgrid/eventgrid-system-events/package.json +++ b/sdk/eventgrid/eventgrid-system-events/package.json @@ -1,81 +1,12 @@ { "name": "@azure/eventgrid-system-events", - "sdk-type": "client", - "author": "Microsoft Corporation", - "description": "An isomorphic client library for the Azure Event Grid service.", - "version": "1.0.0-beta.4", - "keywords": [ - "node", - "azure", - "typescript", - "browser", - "isomorphic", - "cloud" - ], - "license": "MIT", - "main": "./dist/commonjs/index.js", - "module": "./dist/esm/index.js", - "types": "./dist/commonjs/index.d.ts", - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/eventgrid/eventgrid-system-events/README.md", - "repository": "github:Azure/azure-sdk-for-js", - "bugs": { - "url": "https://github.com/Azure/azure-sdk-for-js/issues" - }, + "version": "1.0.0-beta.1", + "description": "A generated SDK for SystemEventsClient.", "engines": { "node": ">=18.0.0" }, - "files": [ - "dist/", - "README.md", - "LICENSE" - ], - "scripts": { - "build": "npm run clean && dev-tool run build-package && dev-tool run extract-api", - "build:browser": "dev-tool run build-package && dev-tool run bundle", - "build:node": "dev-tool run build-package && dev-tool run bundle", - "build:samples": "echo Obsolete", - "build:test": "dev-tool run build-package && dev-tool run bundle", - "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", - "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm dist-test temp types *.tgz *.log", - "execute:samples": "echo skipped", - "extract-api": "dev-tool run build-package && dev-tool run extract-api", - "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", - "integration-test": "npm run integration-test:node && npm run integration-test:browser", - "integration-test:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser --no-test-proxy", - "integration-test:node": "dev-tool run test:vitest --no-test-proxy --esm", - "lint": "eslint package.json api-extractor.json README.md src test", - "lint:fix": "eslint package.json api-extractor.json README.md src test --fix --fix-type [problem,suggestion]", - "pack": "npm pack 2>&1", - "test": "npm run clean && npm run build:test && npm run unit-test", - "test:browser": "npm run clean && npm run build:test && npm run unit-test:browser", - "test:node": "npm run clean && npm run build:test && npm run unit-test:node", - "unit-test": "npm run unit-test:node && npm run unit-test:browser", - "unit-test:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser --no-test-proxy", - "unit-test:node": "dev-tool run test:vitest --no-test-proxy", - "update-snippets": "echo skipped" - }, "sideEffects": false, "autoPublish": false, - "dependencies": { - "@azure-rest/core-client": "^2.3.1", - "@azure/core-auth": "^1.9.0", - "@azure/core-rest-pipeline": "^1.18.0", - "@azure/core-util": "^1.11.0", - "@azure/logger": "^1.1.4", - "tslib": "^2.8.1" - }, - "devDependencies": { - "@azure/dev-tool": "^1.0.0", - "@azure/eslint-plugin-azure-sdk": "^3.0.0", - "@types/node": "^18.0.0", - "@vitest/browser": "^2.1.6", - "@vitest/coverage-istanbul": "^2.1.6", - "eslint": "^9.9.0", - "playwright": "^1.49.0", - "typescript": "~5.6.2", - "vitest": "^2.1.6" - }, - "type": "module", "tshy": { "exports": { "./package.json": "./package.json", @@ -89,29 +20,87 @@ "browser", "react-native" ], - "selfLink": false, - "project": "./tsconfig.src.json" + "selfLink": false }, - "browser": "./dist/browser/index.js", - "exports": { - "./package.json": "./package.json", - ".": { - "browser": { - "types": "./dist/browser/index.d.ts", - "default": "./dist/browser/index.js" - }, - "react-native": { - "types": "./dist/react-native/index.d.ts", - "default": "./dist/react-native/index.js" - }, - "import": { - "types": "./dist/esm/index.d.ts", - "default": "./dist/esm/index.js" - }, - "require": { - "types": "./dist/commonjs/index.d.ts", - "default": "./dist/commonjs/index.js" + "type": "module", + "keywords": [ + "node", + "azure", + "cloud", + "typescript", + "browser", + "isomorphic" + ], + "author": "Microsoft Corporation", + "license": "MIT", + "files": [ + "dist", + "README.md", + "LICENSE", + "review/*", + "CHANGELOG.md" + ], + "sdk-type": "client", + "repository": "github:Azure/azure-sdk-for-js", + "bugs": { + "url": "https://github.com/Azure/azure-sdk-for-js/issues" + }, + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/eventgrid/eventgrid-system-events/README.md", + "prettier": "@azure/eslint-plugin-azure-sdk/prettier.json", + "//metadata": { + "constantPaths": [ + { + "path": "src/systemEventsClient.ts", + "prefix": "userAgentInfo" } - } + ] + }, + "dependencies": { + "@azure-rest/core-client": "^2.3.1", + "@azure/core-auth": "^1.6.0", + "@azure/core-rest-pipeline": "^1.5.0", + "@azure/logger": "^1.0.0", + "tslib": "^2.6.2" + }, + "devDependencies": { + "dotenv": "^16.0.0", + "@microsoft/api-extractor": "^7.40.3", + "@types/node": "^18.0.0", + "eslint": "^9.9.0", + "typescript": "~5.6.2", + "@azure/identity": "^4.2.1", + "@vitest/browser": "^2.0.5", + "@vitest/coverage-istanbul": "^2.0.5", + "playwright": "^1.41.2", + "vitest": "^2.0.5", + "@azure-tools/test-credential": "^2.0.0", + "@azure-tools/test-recorder": "^4.0.0", + "@azure/dev-tool": "^1.0.0", + "@azure/eslint-plugin-azure-sdk": "^3.0.0" + }, + "scripts": { + "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", + "extract-api": "dev-tool run vendored rimraf review && dev-tool run vendored mkdirp ./review && dev-tool run extract-api", + "pack": "npm pack 2>&1", + "lint": "eslint package.json api-extractor.json src test", + "lint:fix": "eslint package.json api-extractor.json src test --fix --fix-type [problem,suggestion]", + "unit-test": "npm run unit-test:node && npm run unit-test:browser", + "unit-test:browser": "npm run build:test && dev-tool run test:vitest --browser", + "unit-test:node": "dev-tool run test:vitest", + "integration-test": "npm run integration-test:node && npm run integration-test:browser", + "integration-test:browser": "echo skipped", + "integration-test:node": "echo skipped", + "build:samples": "echo skipped", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" ", + "execute:samples": "echo skipped", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" ", + "generate:client": "echo skipped", + "test:browser": "npm run clean && npm run build:test && npm run unit-test:browser && npm run integration-test:browser", + "minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", + "build:test": "npm run clean && dev-tool run build-package && dev-tool run build-test", + "build": "npm run clean && dev-tool run build-package && dev-tool run vendored mkdirp ./review && dev-tool run extract-api", + "test:node": "npm run clean && dev-tool run build-package && npm run unit-test:node && npm run integration-test:node", + "test": "npm run clean && dev-tool run build-package && npm run unit-test:node && dev-tool run bundle && npm run unit-test:browser && npm run integration-test", + "update-snippets": "echo skipped" } -} +} \ No newline at end of file diff --git a/sdk/eventgrid/eventgrid-system-events/review/eventgrid-system-events.api.md b/sdk/eventgrid/eventgrid-system-events/review/eventgrid-system-events.api.md deleted file mode 100644 index b298a6daed89..000000000000 --- a/sdk/eventgrid/eventgrid-system-events/review/eventgrid-system-events.api.md +++ /dev/null @@ -1,2973 +0,0 @@ -## API Report File for "@azure/eventgrid-system-events" - -> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). - -```ts - -// @public -export interface AcsChatEventBase { - recipientCommunicationIdentifier: CommunicationIdentifierModel; - threadId?: string; - transactionId?: string; -} - -// @public -export interface AcsChatEventInThreadBase { - threadId?: string; - transactionId?: string; -} - -// @public -export interface AcsChatMessageDeletedEventData extends AcsChatMessageEventBase { - deleteTime: Date; -} - -// @public -export interface AcsChatMessageDeletedInThreadEventData extends AcsChatMessageEventInThreadBase { - deleteTime: Date; -} - -// @public -export interface AcsChatMessageEditedEventData extends AcsChatMessageEventBase { - editTime: Date; - messageBody?: string; - metadata: Record; -} - -// @public -export interface AcsChatMessageEditedInThreadEventData extends AcsChatMessageEventInThreadBase { - editTime: Date; - messageBody?: string; - metadata: Record; -} - -// @public -export interface AcsChatMessageEventBase extends AcsChatEventBase { - composeTime: Date; - messageId?: string; - senderCommunicationIdentifier: CommunicationIdentifierModel; - senderDisplayName?: string; - type?: string; - version?: number; -} - -// @public -export interface AcsChatMessageEventInThreadBase extends AcsChatEventInThreadBase { - composeTime: Date; - messageId?: string; - senderCommunicationIdentifier: CommunicationIdentifierModel; - senderDisplayName?: string; - type?: string; - version?: number; -} - -// @public -export interface AcsChatMessageReceivedEventData extends AcsChatMessageEventBase { - messageBody?: string; - metadata: Record; -} - -// @public -export interface AcsChatMessageReceivedInThreadEventData extends AcsChatMessageEventInThreadBase { - messageBody?: string; - metadata: Record; -} - -// @public -export interface AcsChatParticipantAddedToThreadEventData extends AcsChatEventInThreadBase { - addedByCommunicationIdentifier: CommunicationIdentifierModel; - participantAdded: AcsChatThreadParticipant; - time: Date; - version?: number; -} - -// @public -export interface AcsChatParticipantAddedToThreadWithUserEventData extends AcsChatThreadEventBase { - addedByCommunicationIdentifier: CommunicationIdentifierModel; - participantAdded: AcsChatThreadParticipant; - time: Date; -} - -// @public -export interface AcsChatParticipantRemovedFromThreadEventData extends AcsChatEventInThreadBase { - participantRemoved: AcsChatThreadParticipant; - removedByCommunicationIdentifier: CommunicationIdentifierModel; - time: Date; - version?: number; -} - -// @public -export interface AcsChatParticipantRemovedFromThreadWithUserEventData extends AcsChatThreadEventBase { - participantRemoved: AcsChatThreadParticipant; - removedByCommunicationIdentifier: CommunicationIdentifierModel; - time: Date; -} - -// @public -export interface AcsChatThreadCreatedEventData extends AcsChatThreadEventInThreadBase { - createdByCommunicationIdentifier: CommunicationIdentifierModel; - metadata: Record; - participants: AcsChatThreadParticipant[]; - properties: Record; -} - -// @public -export interface AcsChatThreadCreatedWithUserEventData extends AcsChatThreadEventBase { - createdByCommunicationIdentifier: CommunicationIdentifierModel; - metadata: Record; - participants: AcsChatThreadParticipant[]; - properties: Record; -} - -// @public -export interface AcsChatThreadDeletedEventData extends AcsChatThreadEventInThreadBase { - deletedByCommunicationIdentifier: CommunicationIdentifierModel; - deleteTime: Date; -} - -// @public -export interface AcsChatThreadEventBase extends AcsChatEventBase { - createTime: Date; - version?: number; -} - -// @public -export interface AcsChatThreadEventInThreadBase extends AcsChatEventInThreadBase { - createTime: Date; - version?: number; -} - -// @public -export interface AcsChatThreadParticipant { - displayName?: string; - metadata: Record; - participantCommunicationIdentifier: CommunicationIdentifierModel; -} - -// @public -export interface AcsChatThreadPropertiesUpdatedEventData extends AcsChatThreadEventInThreadBase { - editedByCommunicationIdentifier: CommunicationIdentifierModel; - editTime: Date; - metadata: Record; - properties: Record; -} - -// @public -export interface AcsChatThreadPropertiesUpdatedPerUserEventData extends AcsChatThreadEventBase { - editedByCommunicationIdentifier: CommunicationIdentifierModel; - editTime: Date; - metadata: Record; - properties: Record; -} - -// @public -export interface AcsChatThreadWithUserDeletedEventData extends AcsChatThreadEventBase { - deletedByCommunicationIdentifier: CommunicationIdentifierModel; - deleteTime: Date; -} - -// @public -export interface AcsEmailDeliveryReportReceivedEventData { - deliveryAttemptTimestamp: Date; - deliveryStatusDetails: AcsEmailDeliveryReportStatusDetails; - messageId?: string; - recipient?: string; - sender?: string; - status: AcsEmailDeliveryReportStatus; -} - -// @public -export type AcsEmailDeliveryReportStatus = string; - -// @public -export interface AcsEmailDeliveryReportStatusDetails { - statusMessage?: string; -} - -// @public -export interface AcsEmailEngagementTrackingReportReceivedEventData { - engagement: AcsUserEngagement; - engagementContext?: string; - messageId?: string; - recipient?: string; - sender?: string; - userActionTimestamp: Date; - userAgent?: string; -} - -// @public -export interface AcsIncomingCallCustomContext { - sipHeaders: Record; - voipHeaders: Record; -} - -// @public -export interface AcsIncomingCallEventData { - callerDisplayName?: string; - correlationId?: string; - customContext: AcsIncomingCallCustomContext; - fromCommunicationIdentifier: CommunicationIdentifierModel; - incomingCallContext?: string; - serverCallId?: string; - toCommunicationIdentifier: CommunicationIdentifierModel; -} - -// @public -export type AcsInteractiveReplyKind = string; - -// @public -export interface AcsMessageButtonContent { - payload?: string; - text?: string; -} - -// @public -export interface AcsMessageChannelEventError { - channelCode?: string; - channelMessage?: string; -} - -// @public -export type AcsMessageChannelKind = string; - -// @public -export interface AcsMessageContext { - from?: string; - messageId?: string; -} - -// @public -export type AcsMessageDeliveryStatus = string; - -// @public -export interface AcsMessageDeliveryStatusUpdatedEventData extends AcsMessageEventData { - channelKind: AcsMessageChannelKind; - messageId?: string; - status: AcsMessageDeliveryStatus; -} - -// @public -export interface AcsMessageEventData { - error: AcsMessageChannelEventError; - from?: string; - receivedTimeStamp: Date; - to?: string; -} - -// @public -export interface AcsMessageInteractiveButtonReplyContent { - buttonId?: string; - title?: string; -} - -// @public -export interface AcsMessageInteractiveContent { - buttonReply: AcsMessageInteractiveButtonReplyContent; - listReply: AcsMessageInteractiveListReplyContent; - replyKind: AcsInteractiveReplyKind; -} - -// @public -export interface AcsMessageInteractiveListReplyContent { - description?: string; - listItemId?: string; - title?: string; -} - -// @public -export interface AcsMessageMediaContent { - caption?: string; - fileName?: string; - mediaId?: string; - mimeType?: string; -} - -// @public -export interface AcsMessageReceivedEventData extends AcsMessageEventData { - button: AcsMessageButtonContent; - channelKind: AcsMessageChannelKind; - content?: string; - context: AcsMessageContext; - interactiveContent: AcsMessageInteractiveContent; - mediaContent: AcsMessageMediaContent; -} - -// @public -export interface AcsRecordingChunkInfo { - contentLocation?: string; - deleteLocation?: string; - documentId?: string; - endReason?: string; - index?: number; - metadataLocation?: string; -} - -// @public -export interface AcsRecordingFileStatusUpdatedEventData { - recordingChannelType: RecordingChannelType; - recordingContentType: RecordingContentType; - recordingDurationMs?: number; - recordingFormatType: RecordingFormatType; - recordingStartTime: Date; - recordingStorageInfo: AcsRecordingStorageInfo; - sessionEndReason?: string; -} - -// @public -export interface AcsRecordingStorageInfo { - recordingChunks: AcsRecordingChunkInfo[]; -} - -// @public -export interface AcsRouterChannelConfiguration { - capacityCostPerJob?: number; - channelId?: string; - maxNumberOfJobs?: number; -} - -// @public -export interface AcsRouterCommunicationError { - code?: string; - details: AcsRouterCommunicationError[]; - innererror: AcsRouterCommunicationError; - message?: string; - target?: string; -} - -// @public -export interface AcsRouterEventData { - channelId?: string; - channelReference?: string; - jobId?: string; -} - -// @public -export interface AcsRouterJobCancelledEventData extends AcsRouterJobEventData { - dispositionCode?: string; - note?: string; -} - -// @public -export interface AcsRouterJobClassificationFailedEventData extends AcsRouterJobEventData { - classificationPolicyId?: string; - errors: AcsRouterCommunicationError[]; -} - -// @public -export interface AcsRouterJobClassifiedEventData extends AcsRouterJobEventData { - attachedWorkerSelectors: AcsRouterWorkerSelector[]; - classificationPolicyId?: string; - priority?: number; - queueDetails: AcsRouterQueueDetails; -} - -// @public -export interface AcsRouterJobClosedEventData extends AcsRouterJobEventData { - assignmentId?: string; - dispositionCode?: string; - workerId?: string; -} - -// @public -export interface AcsRouterJobCompletedEventData extends AcsRouterJobEventData { - assignmentId?: string; - workerId?: string; -} - -// @public -export interface AcsRouterJobDeletedEventData extends AcsRouterJobEventData { -} - -// @public -export interface AcsRouterJobEventData extends AcsRouterEventData { - labels: Record; - queueId?: string; - tags: Record; -} - -// @public -export interface AcsRouterJobExceptionTriggeredEventData extends AcsRouterJobEventData { - exceptionRuleId?: string; - ruleKey?: string; -} - -// @public -export interface AcsRouterJobQueuedEventData extends AcsRouterJobEventData { - attachedWorkerSelectors: AcsRouterWorkerSelector[]; - priority?: number; - requestedWorkerSelectors: AcsRouterWorkerSelector[]; -} - -// @public -export interface AcsRouterJobReceivedEventData extends AcsRouterJobEventData { - classificationPolicyId?: string; - jobStatus: AcsRouterJobStatus; - priority?: number; - requestedWorkerSelectors: AcsRouterWorkerSelector[]; - scheduledOn: Date; - unavailableForMatching: boolean; -} - -// @public -export interface AcsRouterJobSchedulingFailedEventData extends AcsRouterJobEventData { - expiredAttachedWorkerSelectors: AcsRouterWorkerSelector[]; - expiredRequestedWorkerSelectors: AcsRouterWorkerSelector[]; - failureReason?: string; - priority?: number; - scheduledOn: Date; -} - -// @public -export type AcsRouterJobStatus = string; - -// @public -export interface AcsRouterJobUnassignedEventData extends AcsRouterJobEventData { - assignmentId?: string; - workerId?: string; -} - -// @public -export interface AcsRouterJobWaitingForActivationEventData extends AcsRouterJobEventData { - expiredAttachedWorkerSelectors: AcsRouterWorkerSelector[]; - expiredRequestedWorkerSelectors: AcsRouterWorkerSelector[]; - priority?: number; - scheduledOn: Date; - unavailableForMatching: boolean; -} - -// @public -export interface AcsRouterJobWorkerSelectorsExpiredEventData extends AcsRouterJobEventData { - expiredAttachedWorkerSelectors: AcsRouterWorkerSelector[]; - expiredRequestedWorkerSelectors: AcsRouterWorkerSelector[]; -} - -// @public -export type AcsRouterLabelOperator = string; - -// @public -export interface AcsRouterQueueDetails { - id?: string; - labels: Record; - name?: string; -} - -// @public -export type AcsRouterUpdatedWorkerProperty = string; - -// @public -export interface AcsRouterWorkerDeletedEventData extends AcsRouterWorkerEventData { -} - -// @public -export interface AcsRouterWorkerDeregisteredEventData { - workerId?: string; -} - -// @public -export interface AcsRouterWorkerEventData extends AcsRouterEventData { - workerId?: string; -} - -// @public -export interface AcsRouterWorkerOfferAcceptedEventData extends AcsRouterWorkerEventData { - assignmentId?: string; - jobLabels: Record; - jobPriority?: number; - jobTags: Record; - offerId?: string; - queueId?: string; - workerLabels: Record; - workerTags: Record; -} - -// @public -export interface AcsRouterWorkerOfferDeclinedEventData extends AcsRouterWorkerEventData { - offerId?: string; - queueId?: string; -} - -// @public -export interface AcsRouterWorkerOfferExpiredEventData extends AcsRouterWorkerEventData { - offerId?: string; - queueId?: string; -} - -// @public -export interface AcsRouterWorkerOfferIssuedEventData extends AcsRouterWorkerEventData { - expiresOn: Date; - jobLabels: Record; - jobPriority?: number; - jobTags: Record; - offeredOn: Date; - offerId?: string; - queueId?: string; - workerLabels: Record; - workerTags: Record; -} - -// @public -export interface AcsRouterWorkerOfferRevokedEventData extends AcsRouterWorkerEventData { - offerId?: string; - queueId?: string; -} - -// @public -export interface AcsRouterWorkerRegisteredEventData { - channelConfigurations: AcsRouterChannelConfiguration[]; - labels: Record; - queueAssignments: AcsRouterQueueDetails[]; - tags: Record; - totalCapacity?: number; - workerId?: string; -} - -// @public -export interface AcsRouterWorkerSelector { - expirationTime: Date; - key?: string; - labelOperator: AcsRouterLabelOperator; - labelValue: any; - state: AcsRouterWorkerSelectorState; - ttlSeconds: number; -} - -// @public -export type AcsRouterWorkerSelectorState = string; - -// @public -export interface AcsRouterWorkerUpdatedEventData { - channelConfigurations: AcsRouterChannelConfiguration[]; - labels: Record; - queueAssignments: AcsRouterQueueDetails[]; - tags: Record; - totalCapacity?: number; - updatedWorkerProperties: AcsRouterUpdatedWorkerProperty[]; - workerId?: string; -} - -// @public -export interface AcsSmsDeliveryAttempt { - segmentsFailed?: number; - segmentsSucceeded?: number; - timestamp: Date; -} - -// @public -export interface AcsSmsDeliveryReportReceivedEventData extends AcsSmsEventBase { - deliveryAttempts: AcsSmsDeliveryAttempt[]; - deliveryStatus?: string; - deliveryStatusDetails?: string; - receivedTimestamp: Date; - tag?: string; -} - -// @public -export interface AcsSmsEventBase { - from?: string; - messageId?: string; - to?: string; -} - -// @public -export interface AcsSmsReceivedEventData extends AcsSmsEventBase { - message?: string; - receivedTimestamp: Date; -} - -// @public -export interface AcsUserDisconnectedEventData { - userCommunicationIdentifier: CommunicationIdentifierModel; -} - -// @public -export type AcsUserEngagement = string; - -// @public -export interface ApiCenterApiDefinitionAddedEventData { - description?: string; - specification: ApiCenterApiSpecification; - title?: string; -} - -// @public -export interface ApiCenterApiDefinitionUpdatedEventData { - description?: string; - specification: ApiCenterApiSpecification; - title?: string; -} - -// @public -export interface ApiCenterApiSpecification { - name?: string; - version?: string; -} - -// @public -export interface ApiManagementApiCreatedEventData { - resourceUri?: string; -} - -// @public -export interface ApiManagementApiDeletedEventData { - resourceUri?: string; -} - -// @public -export interface ApiManagementApiReleaseCreatedEventData { - resourceUri?: string; -} - -// @public -export interface ApiManagementApiReleaseDeletedEventData { - resourceUri?: string; -} - -// @public -export interface ApiManagementApiReleaseUpdatedEventData { - resourceUri?: string; -} - -// @public -export interface ApiManagementApiUpdatedEventData { - resourceUri?: string; -} - -// @public -export interface ApiManagementGatewayApiAddedEventData { - resourceUri?: string; -} - -// @public -export interface ApiManagementGatewayApiRemovedEventData { - resourceUri?: string; -} - -// @public -export interface ApiManagementGatewayCertificateAuthorityCreatedEventData { - resourceUri?: string; -} - -// @public -export interface ApiManagementGatewayCertificateAuthorityDeletedEventData { - resourceUri?: string; -} - -// @public -export interface ApiManagementGatewayCertificateAuthorityUpdatedEventData { - resourceUri?: string; -} - -// @public -export interface ApiManagementGatewayCreatedEventData { - resourceUri?: string; -} - -// @public -export interface ApiManagementGatewayDeletedEventData { - resourceUri?: string; -} - -// @public -export interface ApiManagementGatewayHostnameConfigurationCreatedEventData { - resourceUri?: string; -} - -// @public -export interface ApiManagementGatewayHostnameConfigurationDeletedEventData { - resourceUri?: string; -} - -// @public -export interface ApiManagementGatewayHostnameConfigurationUpdatedEventData { - resourceUri?: string; -} - -// @public -export interface ApiManagementGatewayUpdatedEventData { - resourceUri?: string; -} - -// @public -export interface ApiManagementProductCreatedEventData { - resourceUri?: string; -} - -// @public -export interface ApiManagementProductDeletedEventData { - resourceUri?: string; -} - -// @public -export interface ApiManagementProductUpdatedEventData { - resourceUri?: string; -} - -// @public -export interface ApiManagementSubscriptionCreatedEventData { - resourceUri?: string; -} - -// @public -export interface ApiManagementSubscriptionDeletedEventData { - resourceUri?: string; -} - -// @public -export interface ApiManagementSubscriptionUpdatedEventData { - resourceUri?: string; -} - -// @public -export interface ApiManagementUserCreatedEventData { - resourceUri?: string; -} - -// @public -export interface ApiManagementUserDeletedEventData { - resourceUri?: string; -} - -// @public -export interface ApiManagementUserUpdatedEventData { - resourceUri?: string; -} - -// @public -export type AppAction = string; - -// @public -export interface AppConfigurationKeyValueDeletedEventData { - etag?: string; - key?: string; - label?: string; - syncToken?: string; -} - -// @public -export interface AppConfigurationKeyValueModifiedEventData { - etag?: string; - key?: string; - label?: string; - syncToken?: string; -} - -// @public -export interface AppConfigurationSnapshotCreatedEventData extends AppConfigurationSnapshotEventData { -} - -// @public -export interface AppConfigurationSnapshotEventData { - etag?: string; - name?: string; - syncToken?: string; -} - -// @public -export interface AppConfigurationSnapshotModifiedEventData extends AppConfigurationSnapshotEventData { -} - -// @public -export interface AppEventTypeDetail { - action: AppAction; -} - -// @public -export type AppServicePlanAction = string; - -// @public -export interface AppServicePlanEventTypeDetail { - action: AppServicePlanAction; - stampKind: StampKind; - status: AsyncStatus; -} - -// @public -export type AsyncStatus = string; - -// @public -export interface AvsClusterCreatedEventData extends AvsClusterEventData { -} - -// @public -export interface AvsClusterDeletedEventData extends AvsClusterEventData { -} - -// @public -export interface AvsClusterEventData { - addedHostNames?: string[]; - inMaintenanceHostNames?: string[]; - operationId?: string; - removedHostNames?: string[]; -} - -// @public -export interface AvsClusterFailedEventData extends AvsClusterEventData { - failureMessage?: string; -} - -// @public -export interface AvsClusterUpdatedEventData extends AvsClusterEventData { -} - -// @public -export interface AvsClusterUpdatingEventData extends AvsClusterEventData { -} - -// @public -export interface AvsPrivateCloudEventData { - operationId?: string; -} - -// @public -export interface AvsPrivateCloudFailedEventData extends AvsPrivateCloudEventData { - failureMessage?: string; -} - -// @public -export interface AvsPrivateCloudUpdatedEventData extends AvsPrivateCloudEventData { -} - -// @public -export interface AvsPrivateCloudUpdatingEventData extends AvsPrivateCloudEventData { -} - -// @public -export interface AvsScriptExecutionCancelledEventData extends AvsScriptExecutionEventData { -} - -// @public -export interface AvsScriptExecutionEventData { - cmdletId?: string; - operationId?: string; - output?: string[]; -} - -// @public -export interface AvsScriptExecutionFailedEventData extends AvsScriptExecutionEventData { - failureMessage?: string; -} - -// @public -export interface AvsScriptExecutionFinishedEventData extends AvsScriptExecutionEventData { - namedOutputs: Record; -} - -// @public -export interface AvsScriptExecutionStartedEventData extends AvsScriptExecutionEventData { -} - -// @public -export interface CloudEvent { - data?: T; - dataContentType?: string; - dataSchema?: string; - extensionAttributes?: Record; - id: string; - source: string; - specVersion?: string | "1.0"; - subject?: string; - time?: Date; - type: string; -} - -// @public -export type CommunicationCloudEnvironmentModel = string; - -// @public -export interface CommunicationIdentifierModel { - communicationUser: CommunicationUserIdentifierModel; - kind: CommunicationIdentifierModelKind; - microsoftTeamsApp: MicrosoftTeamsAppIdentifierModel; - microsoftTeamsUser: MicrosoftTeamsUserIdentifierModel; - phoneNumber: PhoneNumberIdentifierModel; - rawId?: string; -} - -// @public -export type CommunicationIdentifierModelKind = string; - -// @public -export interface CommunicationUserIdentifierModel { - id: string; -} - -// @public -export interface ContainerRegistryArtifactEventData { - action?: string; - connectedRegistry: ContainerRegistryEventConnectedRegistry; - id?: string; - location?: string; - target: ContainerRegistryArtifactEventTarget; - timestamp: Date; -} - -// @public -export interface ContainerRegistryArtifactEventTarget { - digest?: string; - mediaType?: string; - name?: string; - repository?: string; - size?: number; - tag?: string; - version?: string; -} - -// @public -export interface ContainerRegistryChartDeletedEventData extends ContainerRegistryArtifactEventData { -} - -// @public -export interface ContainerRegistryChartPushedEventData extends ContainerRegistryArtifactEventData { -} - -// @public -export interface ContainerRegistryEventActor { - name?: string; -} - -// @public -export interface ContainerRegistryEventConnectedRegistry { - name?: string; -} - -// @public -export interface ContainerRegistryEventData { - action?: string; - actor: ContainerRegistryEventActor; - connectedRegistry: ContainerRegistryEventConnectedRegistry; - id?: string; - location?: string; - request: ContainerRegistryEventRequest; - source: ContainerRegistryEventSource; - target: ContainerRegistryEventTarget; - timestamp: Date; -} - -// @public -export interface ContainerRegistryEventRequest { - addr?: string; - host?: string; - id?: string; - method?: string; - useragent?: string; -} - -// @public -export interface ContainerRegistryEventSource { - addr?: string; - instanceID?: string; -} - -// @public -export interface ContainerRegistryEventTarget { - digest?: string; - length?: number; - mediaType?: string; - repository?: string; - size?: number; - tag?: string; - url?: string; -} - -// @public -export interface ContainerRegistryImageDeletedEventData extends ContainerRegistryEventData { -} - -// @public -export interface ContainerRegistryImagePushedEventData extends ContainerRegistryEventData { -} - -// @public -export interface ContainerServiceClusterSupportEndedEventData extends ContainerServiceClusterSupportEventData { -} - -// @public -export interface ContainerServiceClusterSupportEndingEventData extends ContainerServiceClusterSupportEventData { -} - -// @public -export interface ContainerServiceClusterSupportEventData { - kubernetesVersion?: string; -} - -// @public -export interface ContainerServiceNewKubernetesVersionAvailableEventData { - latestPreviewKubernetesVersion?: string; - latestStableKubernetesVersion?: string; - latestSupportedKubernetesVersion?: string; - lowestMinorKubernetesVersion?: string; -} - -// @public -export interface ContainerServiceNodePoolRollingEventData { - nodePoolName?: string; -} - -// @public -export interface ContainerServiceNodePoolRollingFailedEventData extends ContainerServiceNodePoolRollingEventData { -} - -// @public -export interface ContainerServiceNodePoolRollingStartedEventData extends ContainerServiceNodePoolRollingEventData { -} - -// @public -export interface ContainerServiceNodePoolRollingSucceededEventData extends ContainerServiceNodePoolRollingEventData { -} - -// @public -export interface DataBoxCopyCompletedEventData { - serialNumber?: string; - stageName: DataBoxStageName; - stageTime: Date; -} - -// @public -export interface DataBoxCopyStartedEventData { - serialNumber?: string; - stageName: DataBoxStageName; - stageTime: Date; -} - -// @public -export interface DataBoxOrderCompletedEventData { - serialNumber?: string; - stageName: DataBoxStageName; - stageTime: Date; -} - -// @public -export type DataBoxStageName = string; - -// @public -export interface DeviceConnectionStateEvent { - deviceConnectionStateEventInfo: DeviceConnectionStateEventInfo; - deviceId?: string; - hubName?: string; - moduleId?: string; -} - -// @public -export interface DeviceConnectionStateEventInfo { - sequenceNumber?: string; -} - -// @public -export interface DeviceLifeCycleEvent { - deviceId?: string; - hubName?: string; - twin: DeviceTwinInfo; -} - -// @public -export interface DeviceTelemetryEvent { - body: Record; - properties: Record; - systemProperties: Record; -} - -// @public -export interface DeviceTwin { - metadata: DeviceTwinMetadata; - version?: number; -} - -// @public -export interface DeviceTwinInfo { - authenticationType?: string; - cloudToDeviceMessageCount?: number; - connectionState?: string; - deviceId?: string; - etag?: string; - lastActivityTime?: string; - properties: DeviceTwinInfoProperties; - status?: string; - statusUpdateTime?: string; - version?: number; - x509Thumbprint: DeviceTwinInfoX509Thumbprint; -} - -// @public -export interface DeviceTwinInfoProperties { - desired: DeviceTwin; - reported: DeviceTwin; -} - -// @public -export interface DeviceTwinInfoX509Thumbprint { - primaryThumbprint?: string; - secondaryThumbprint?: string; -} - -// @public -export interface DeviceTwinMetadata { - lastUpdated?: string; -} - -// @public -export interface EventGridEvent { - data: T; - dataVersion: string; - eventTime: Date; - eventType: string; - id: string; - subject: string; - topic?: string; -} - -// @public -export interface EventGridMqttClientCreatedOrUpdatedEventData extends EventGridMqttClientEventData { - attributes: Record; - createdOn: Date; - state: EventGridMqttClientState; - updatedOn: Date; -} - -// @public -export interface EventGridMqttClientDeletedEventData extends EventGridMqttClientEventData { -} - -// @public -export type EventGridMqttClientDisconnectionReason = string; - -// @public -export interface EventGridMqttClientEventData { - clientAuthenticationName?: string; - clientName?: string; - namespaceName?: string; -} - -// @public -export interface EventGridMqttClientSessionConnectedEventData extends EventGridMqttClientEventData { - clientSessionName?: string; - sequenceNumber?: number; -} - -// @public -export interface EventGridMqttClientSessionDisconnectedEventData extends EventGridMqttClientEventData { - clientSessionName?: string; - disconnectionReason: EventGridMqttClientDisconnectionReason; - sequenceNumber?: number; -} - -// @public -export type EventGridMqttClientState = string; - -// @public -export interface EventHubCaptureFileCreatedEventData { - eventCount?: number; - fileType?: string; - fileUrl?: string; - firstEnqueueTime: Date; - firstSequenceNumber?: number; - lastEnqueueTime: Date; - lastSequenceNumber?: number; - partitionId?: string; - sizeInBytes?: number; -} - -// @public -export interface HealthcareDicomImageCreatedEventData { - imageSeriesInstanceUid?: string; - imageSopInstanceUid?: string; - imageStudyInstanceUid?: string; - partitionName?: string; - sequenceNumber?: number; - serviceHostName?: string; -} - -// @public -export interface HealthcareDicomImageDeletedEventData { - imageSeriesInstanceUid?: string; - imageSopInstanceUid?: string; - imageStudyInstanceUid?: string; - partitionName?: string; - sequenceNumber?: number; - serviceHostName?: string; -} - -// @public -export interface HealthcareDicomImageUpdatedEventData { - imageSeriesInstanceUid?: string; - imageSopInstanceUid?: string; - imageStudyInstanceUid?: string; - partitionName?: string; - sequenceNumber?: number; - serviceHostName?: string; -} - -// @public -export interface HealthcareFhirResourceCreatedEventData { - resourceFhirAccount?: string; - resourceFhirId?: string; - resourceType: HealthcareFhirResourceType; - resourceVersionId?: number; -} - -// @public -export interface HealthcareFhirResourceDeletedEventData { - resourceFhirAccount?: string; - resourceFhirId?: string; - resourceType: HealthcareFhirResourceType; - resourceVersionId?: number; -} - -// @public -export type HealthcareFhirResourceType = string; - -// @public -export interface HealthcareFhirResourceUpdatedEventData { - resourceFhirAccount?: string; - resourceFhirId?: string; - resourceType: HealthcareFhirResourceType; - resourceVersionId?: number; -} - -// @public -export interface IotHubDeviceConnectedEventData extends DeviceConnectionStateEvent { -} - -// @public -export interface IotHubDeviceCreatedEventData extends DeviceLifeCycleEvent { -} - -// @public -export interface IotHubDeviceDeletedEventData extends DeviceLifeCycleEvent { -} - -// @public -export interface IotHubDeviceDisconnectedEventData extends DeviceConnectionStateEvent { -} - -// @public -export interface IotHubDeviceTelemetryEventData extends DeviceTelemetryEvent { -} - -// @public -export function isSystemEvent(eventType: T, event: EventGridEvent): event is EventGridEvent; - -// @public -export function isSystemEvent(eventType: T, event: CloudEvent): event is CloudEvent; - -// @public -export interface KeyVaultAccessPolicyChangedEventData { - exp?: number; - id?: string; - nbf?: number; - objectName?: string; - objectType?: string; - vaultName?: string; - version?: string; -} - -// @public -export interface KeyVaultCertificateExpiredEventData { - exp?: number; - id?: string; - nbf?: number; - objectName?: string; - objectType?: string; - vaultName?: string; - version?: string; -} - -// @public -export interface KeyVaultCertificateNearExpiryEventData { - exp?: number; - id?: string; - nbf?: number; - objectName?: string; - objectType?: string; - vaultName?: string; - version?: string; -} - -// @public -export interface KeyVaultCertificateNewVersionCreatedEventData { - exp?: number; - id?: string; - nbf?: number; - objectName?: string; - objectType?: string; - vaultName?: string; - version?: string; -} - -// @public -export interface KeyVaultKeyExpiredEventData { - exp?: number; - id?: string; - nbf?: number; - objectName?: string; - objectType?: string; - vaultName?: string; - version?: string; -} - -// @public -export interface KeyVaultKeyNearExpiryEventData { - exp?: number; - id?: string; - nbf?: number; - objectName?: string; - objectType?: string; - vaultName?: string; - version?: string; -} - -// @public -export interface KeyVaultKeyNewVersionCreatedEventData { - exp?: number; - id?: string; - nbf?: number; - objectName?: string; - objectType?: string; - vaultName?: string; - version?: string; -} - -// @public -export interface KeyVaultSecretExpiredEventData { - exp?: number; - id?: string; - nbf?: number; - objectName?: string; - objectType?: string; - vaultName?: string; - version?: string; -} - -// @public -export interface KeyVaultSecretNearExpiryEventData { - exp?: number; - id?: string; - nbf?: number; - objectName?: string; - objectType?: string; - vaultName?: string; - version?: string; -} - -// @public -export interface KeyVaultSecretNewVersionCreatedEventData { - exp?: number; - id?: string; - nbf?: number; - objectName?: string; - objectType?: string; - vaultName?: string; - version?: string; -} - -// @public -export enum KnownAcsEmailDeliveryReportStatus { - Bounced = "Bounced", - Delivered = "Delivered", - Failed = "Failed", - FilteredSpam = "FilteredSpam", - Quarantined = "Quarantined", - Suppressed = "Suppressed" -} - -// @public -export enum KnownAcsInteractiveReplyKind { - buttonReply = "buttonReply", - listReply = "listReply", - unknown = "unknown" -} - -// @public -export enum KnownAcsMessageChannelKind { - whatsapp = "whatsapp" -} - -// @public -export enum KnownAcsMessageDeliveryStatus { - delivered = "delivered", - failed = "failed", - read = "read", - sent = "sent", - unknown = "unknown", - warning = "warning" -} - -// @public -export enum KnownAcsRouterJobStatus { - Assigned = "Assigned", - Cancelled = "Cancelled", - ClassificationFailed = "ClassificationFailed", - Closed = "Closed", - Completed = "Completed", - Created = "Created", - PendingClassification = "PendingClassification", - PendingSchedule = "PendingSchedule", - Queued = "Queued", - Scheduled = "Scheduled", - ScheduleFailed = "ScheduleFailed", - WaitingForActivation = "WaitingForActivation" -} - -// @public -export enum KnownAcsRouterLabelOperator { - Equal = "Equal", - Greater = "Greater", - GreaterThanOrEqual = "GreaterThanOrEqual", - Less = "Less", - LessThanOrEqual = "LessThanOrEqual", - NotEqual = "NotEqual" -} - -// @public -export enum KnownAcsRouterUpdatedWorkerProperty { - AvailableForOffers = "AvailableForOffers", - ChannelConfigurations = "ChannelConfigurations", - Labels = "Labels", - QueueAssignments = "QueueAssignments", - Tags = "Tags", - TotalCapacity = "TotalCapacity" -} - -// @public -export enum KnownAcsRouterWorkerSelectorState { - active = "active", - expired = "expired" -} - -// @public -export enum KnownAcsUserEngagement { - click = "click", - view = "view" -} - -// @public -export enum KnownAppAction { - ChangedAppSettings = "ChangedAppSettings", - Completed = "Completed", - Failed = "Failed", - Restarted = "Restarted", - Started = "Started", - Stopped = "Stopped" -} - -// @public -export enum KnownAppServicePlanAction { - Updated = "Updated" -} - -// @public -export enum KnownAsyncStatus { - Completed = "Completed", - Failed = "Failed", - Started = "Started" -} - -// @public -export enum KnownCommunicationCloudEnvironmentModel { - dod = "dod", - gcch = "gcch", - "public" = "public" -} - -// @public -export enum KnownCommunicationIdentifierModelKind { - communicationUser = "communicationUser", - microsoftTeamsUser = "microsoftTeamsUser", - phoneNumber = "phoneNumber", - unknown = "unknown" -} - -// @public -export enum KnownDataBoxStageName { - CopyCompleted = "CopyCompleted", - CopyStarted = "CopyStarted", - OrderCompleted = "OrderCompleted" -} - -// @public -export enum KnownEventGridMqttClientDisconnectionReason { - ClientAuthenticationError = "ClientAuthenticationError", - ClientAuthorizationError = "ClientAuthorizationError", - ClientError = "ClientError", - ClientInitiatedDisconnect = "ClientInitiatedDisconnect", - ConnectionLost = "ConnectionLost", - IpForbidden = "IpForbidden", - QuotaExceeded = "QuotaExceeded", - ServerError = "ServerError", - ServerInitiatedDisconnect = "ServerInitiatedDisconnect", - SessionOverflow = "SessionOverflow", - SessionTakenOver = "SessionTakenOver" -} - -// @public -export enum KnownEventGridMqttClientState { - Disabled = "Disabled", - Enabled = "Enabled" -} - -// @public -export enum KnownHealthcareFhirResourceType { - Account = "Account", - ActivityDefinition = "ActivityDefinition", - AdverseEvent = "AdverseEvent", - AllergyIntolerance = "AllergyIntolerance", - Appointment = "Appointment", - AppointmentResponse = "AppointmentResponse", - AuditEvent = "AuditEvent", - Basic = "Basic", - Binary = "Binary", - BiologicallyDerivedProduct = "BiologicallyDerivedProduct", - BodySite = "BodySite", - BodyStructure = "BodyStructure", - Bundle = "Bundle", - CapabilityStatement = "CapabilityStatement", - CarePlan = "CarePlan", - CareTeam = "CareTeam", - CatalogEntry = "CatalogEntry", - ChargeItem = "ChargeItem", - ChargeItemDefinition = "ChargeItemDefinition", - Claim = "Claim", - ClaimResponse = "ClaimResponse", - ClinicalImpression = "ClinicalImpression", - CodeSystem = "CodeSystem", - Communication = "Communication", - CommunicationRequest = "CommunicationRequest", - CompartmentDefinition = "CompartmentDefinition", - Composition = "Composition", - ConceptMap = "ConceptMap", - Condition = "Condition", - Consent = "Consent", - Contract = "Contract", - Coverage = "Coverage", - CoverageEligibilityRequest = "CoverageEligibilityRequest", - CoverageEligibilityResponse = "CoverageEligibilityResponse", - DataElement = "DataElement", - DetectedIssue = "DetectedIssue", - Device = "Device", - DeviceComponent = "DeviceComponent", - DeviceDefinition = "DeviceDefinition", - DeviceMetric = "DeviceMetric", - DeviceRequest = "DeviceRequest", - DeviceUseStatement = "DeviceUseStatement", - DiagnosticReport = "DiagnosticReport", - DocumentManifest = "DocumentManifest", - DocumentReference = "DocumentReference", - DomainResource = "DomainResource", - EffectEvidenceSynthesis = "EffectEvidenceSynthesis", - EligibilityRequest = "EligibilityRequest", - EligibilityResponse = "EligibilityResponse", - Encounter = "Encounter", - Endpoint = "Endpoint", - EnrollmentRequest = "EnrollmentRequest", - EnrollmentResponse = "EnrollmentResponse", - EpisodeOfCare = "EpisodeOfCare", - EventDefinition = "EventDefinition", - Evidence = "Evidence", - EvidenceVariable = "EvidenceVariable", - ExampleScenario = "ExampleScenario", - ExpansionProfile = "ExpansionProfile", - ExplanationOfBenefit = "ExplanationOfBenefit", - FamilyMemberHistory = "FamilyMemberHistory", - Flag = "Flag", - Goal = "Goal", - GraphDefinition = "GraphDefinition", - Group = "Group", - GuidanceResponse = "GuidanceResponse", - HealthcareService = "HealthcareService", - ImagingManifest = "ImagingManifest", - ImagingStudy = "ImagingStudy", - Immunization = "Immunization", - ImmunizationEvaluation = "ImmunizationEvaluation", - ImmunizationRecommendation = "ImmunizationRecommendation", - ImplementationGuide = "ImplementationGuide", - InsurancePlan = "InsurancePlan", - Invoice = "Invoice", - Library = "Library", - Linkage = "Linkage", - List = "List", - Location = "Location", - Measure = "Measure", - MeasureReport = "MeasureReport", - Media = "Media", - Medication = "Medication", - MedicationAdministration = "MedicationAdministration", - MedicationDispense = "MedicationDispense", - MedicationKnowledge = "MedicationKnowledge", - MedicationRequest = "MedicationRequest", - MedicationStatement = "MedicationStatement", - MedicinalProduct = "MedicinalProduct", - MedicinalProductAuthorization = "MedicinalProductAuthorization", - MedicinalProductContraindication = "MedicinalProductContraindication", - MedicinalProductIndication = "MedicinalProductIndication", - MedicinalProductIngredient = "MedicinalProductIngredient", - MedicinalProductInteraction = "MedicinalProductInteraction", - MedicinalProductManufactured = "MedicinalProductManufactured", - MedicinalProductPackaged = "MedicinalProductPackaged", - MedicinalProductPharmaceutical = "MedicinalProductPharmaceutical", - MedicinalProductUndesirableEffect = "MedicinalProductUndesirableEffect", - MessageDefinition = "MessageDefinition", - MessageHeader = "MessageHeader", - MolecularSequence = "MolecularSequence", - NamingSystem = "NamingSystem", - NutritionOrder = "NutritionOrder", - Observation = "Observation", - ObservationDefinition = "ObservationDefinition", - OperationDefinition = "OperationDefinition", - OperationOutcome = "OperationOutcome", - Organization = "Organization", - OrganizationAffiliation = "OrganizationAffiliation", - Parameters = "Parameters", - Patient = "Patient", - PaymentNotice = "PaymentNotice", - PaymentReconciliation = "PaymentReconciliation", - Person = "Person", - PlanDefinition = "PlanDefinition", - Practitioner = "Practitioner", - PractitionerRole = "PractitionerRole", - Procedure = "Procedure", - ProcedureRequest = "ProcedureRequest", - ProcessRequest = "ProcessRequest", - ProcessResponse = "ProcessResponse", - Provenance = "Provenance", - Questionnaire = "Questionnaire", - QuestionnaireResponse = "QuestionnaireResponse", - ReferralRequest = "ReferralRequest", - RelatedPerson = "RelatedPerson", - RequestGroup = "RequestGroup", - ResearchDefinition = "ResearchDefinition", - ResearchElementDefinition = "ResearchElementDefinition", - ResearchStudy = "ResearchStudy", - ResearchSubject = "ResearchSubject", - Resource = "Resource", - RiskAssessment = "RiskAssessment", - RiskEvidenceSynthesis = "RiskEvidenceSynthesis", - Schedule = "Schedule", - SearchParameter = "SearchParameter", - Sequence = "Sequence", - ServiceDefinition = "ServiceDefinition", - ServiceRequest = "ServiceRequest", - Slot = "Slot", - Specimen = "Specimen", - SpecimenDefinition = "SpecimenDefinition", - StructureDefinition = "StructureDefinition", - StructureMap = "StructureMap", - Subscription = "Subscription", - Substance = "Substance", - SubstanceNucleicAcid = "SubstanceNucleicAcid", - SubstancePolymer = "SubstancePolymer", - SubstanceProtein = "SubstanceProtein", - SubstanceReferenceInformation = "SubstanceReferenceInformation", - SubstanceSourceMaterial = "SubstanceSourceMaterial", - SubstanceSpecification = "SubstanceSpecification", - SupplyDelivery = "SupplyDelivery", - SupplyRequest = "SupplyRequest", - Task = "Task", - TerminologyCapabilities = "TerminologyCapabilities", - TestReport = "TestReport", - TestScript = "TestScript", - ValueSet = "ValueSet", - VerificationResult = "VerificationResult", - VisionPrescription = "VisionPrescription" -} - -// @public -export enum KnownMediaJobErrorCategory { - Account = "Account", - Configuration = "Configuration", - Content = "Content", - Download = "Download", - Service = "Service", - Upload = "Upload" -} - -// @public -export enum KnownMediaJobErrorCode { - ConfigurationUnsupported = "ConfigurationUnsupported", - ContentMalformed = "ContentMalformed", - ContentUnsupported = "ContentUnsupported", - DownloadNotAccessible = "DownloadNotAccessible", - DownloadTransientError = "DownloadTransientError", - IdentityUnsupported = "IdentityUnsupported", - ServiceError = "ServiceError", - ServiceTransientError = "ServiceTransientError", - UploadNotAccessible = "UploadNotAccessible", - UploadTransientError = "UploadTransientError" -} - -// @public -export enum KnownMediaJobRetry { - DoNotRetry = "DoNotRetry", - MayRetry = "MayRetry" -} - -// @public -export enum KnownMediaJobState { - Canceled = "Canceled", - Canceling = "Canceling", - Error = "Error", - Finished = "Finished", - Processing = "Processing", - Queued = "Queued", - Scheduled = "Scheduled" -} - -// @public -export enum KnownRecordingChannelType { - Mixed = "Mixed", - Unmixed = "Unmixed" -} - -// @public -export enum KnownRecordingContentType { - Audio = "Audio", - AudioVideo = "AudioVideo" -} - -// @public -export enum KnownRecordingFormatType { - Mp3 = "Mp3", - Mp4 = "Mp4", - Wav = "Wav" -} - -// @public -export enum KnownStampKind { - AseV1 = "AseV1", - AseV2 = "AseV2", - Public = "Public" -} - -// @public -export enum KnownStorageBlobAccessTier { - Archive = "Archive", - Cold = "Cold", - Cool = "Cool", - Default = "Default", - Hot = "Hot" -} - -// @public -export enum KnownStorageTaskAssignmentCompletedStatus { - Failed = "Failed", - Succeeded = "Succeeded" -} - -// @public -export enum KnownStorageTaskCompletedStatus { - Failed = "Failed", - Succeeded = "Succeeded" -} - -// @public -export type KnownSystemEventTypes = keyof SystemEventNameToEventData; - -// @public -export interface MachineLearningServicesDatasetDriftDetectedEventData { - baseDatasetId?: string; - dataDriftId?: string; - dataDriftName?: string; - driftCoefficient?: number; - endTime: Date; - runId?: string; - startTime: Date; - targetDatasetId?: string; -} - -// @public -export interface MachineLearningServicesModelDeployedEventData { - modelIds?: string; - serviceComputeType?: string; - serviceName?: string; - serviceProperties: Record; - serviceTags: Record; -} - -// @public -export interface MachineLearningServicesModelRegisteredEventData { - modelName?: string; - modelProperties: Record; - modelTags: Record; - modelVersion?: string; -} - -// @public -export interface MachineLearningServicesRunCompletedEventData { - experimentId?: string; - experimentName?: string; - runId?: string; - runProperties: Record; - runTags: Record; - runType?: string; -} - -// @public -export interface MachineLearningServicesRunStatusChangedEventData { - experimentId?: string; - experimentName?: string; - runId?: string; - runProperties: Record; - runStatus?: string; - runTags: Record; - runType?: string; -} - -// @public -export interface MapsGeofenceEnteredEventData extends MapsGeofenceEvent { -} - -// @public -export interface MapsGeofenceEvent { - expiredGeofenceGeometryId?: string[]; - geometries: MapsGeofenceGeometry[]; - invalidPeriodGeofenceGeometryId?: string[]; - isEventPublished?: boolean; -} - -// @public -export interface MapsGeofenceExitedEventData extends MapsGeofenceEvent { -} - -// @public -export interface MapsGeofenceGeometry { - deviceId?: string; - distance?: number; - geometryId?: string; - nearestLat?: number; - nearestLon?: number; - udId?: string; -} - -// @public -export interface MapsGeofenceResultEventData extends MapsGeofenceEvent { -} - -// @public -export interface MediaJobCanceledEventData extends MediaJobStateChangeEventData { - outputs: MediaJobOutputUnion[]; -} - -// @public -export interface MediaJobCancelingEventData extends MediaJobStateChangeEventData { -} - -// @public -export interface MediaJobError { - category: MediaJobErrorCategory; - code: MediaJobErrorCode; - details: MediaJobErrorDetail[]; - message?: string; - retry: MediaJobRetry; -} - -// @public -export type MediaJobErrorCategory = string; - -// @public -export type MediaJobErrorCode = string; - -// @public -export interface MediaJobErrorDetail { - code?: string; - message?: string; -} - -// @public -export interface MediaJobErroredEventData extends MediaJobStateChangeEventData { - outputs: MediaJobOutputUnion[]; -} - -// @public -export interface MediaJobFinishedEventData extends MediaJobStateChangeEventData { - outputs: MediaJobOutputUnion[]; -} - -// @public -export interface MediaJobOutput { - "@odata.type": string; - error: MediaJobError; - label?: string; - progress: number; - state: MediaJobState; -} - -// @public -export interface MediaJobOutputAsset extends MediaJobOutput { - "@odata.type": "#Microsoft.Media.JobOutputAsset"; - assetName?: string; -} - -// @public -export interface MediaJobOutputCanceledEventData extends MediaJobOutputStateChangeEventData { -} - -// @public -export interface MediaJobOutputCancelingEventData extends MediaJobOutputStateChangeEventData { -} - -// @public -export interface MediaJobOutputErroredEventData extends MediaJobOutputStateChangeEventData { -} - -// @public -export interface MediaJobOutputFinishedEventData extends MediaJobOutputStateChangeEventData { -} - -// @public -export interface MediaJobOutputProcessingEventData extends MediaJobOutputStateChangeEventData { -} - -// @public -export interface MediaJobOutputProgressEventData { - jobCorrelationData: Record; - label?: string; - progress?: number; -} - -// @public -export interface MediaJobOutputScheduledEventData extends MediaJobOutputStateChangeEventData { -} - -// @public -export interface MediaJobOutputStateChangeEventData { - jobCorrelationData: Record; - output: MediaJobOutputUnion; - previousState: MediaJobState; -} - -// @public -export type MediaJobOutputUnion = MediaJobOutputAsset | MediaJobOutput; - -// @public -export interface MediaJobProcessingEventData extends MediaJobStateChangeEventData { -} - -// @public -export type MediaJobRetry = string; - -// @public -export interface MediaJobScheduledEventData extends MediaJobStateChangeEventData { -} - -// @public -export type MediaJobState = string; - -// @public -export interface MediaJobStateChangeEventData { - correlationData: Record; - previousState: MediaJobState; - state: MediaJobState; -} - -// @public -export interface MediaLiveEventChannelArchiveHeartbeatEventData { - channelLatencyMs: string; - latencyResultCode: string; -} - -// @public -export interface MediaLiveEventConnectionRejectedEventData { - encoderIp?: string; - encoderPort?: string; - ingestUrl?: string; - resultCode?: string; - streamId?: string; -} - -// @public -export interface MediaLiveEventEncoderConnectedEventData { - encoderIp?: string; - encoderPort?: string; - ingestUrl?: string; - streamId?: string; -} - -// @public -export interface MediaLiveEventEncoderDisconnectedEventData { - encoderIp?: string; - encoderPort?: string; - ingestUrl?: string; - resultCode?: string; - streamId?: string; -} - -// @public -export interface MediaLiveEventIncomingDataChunkDroppedEventData { - bitrate?: number; - resultCode?: string; - timescale?: string; - timestamp?: string; - trackName?: string; - trackType?: string; -} - -// @public -export interface MediaLiveEventIncomingStreamReceivedEventData { - bitrate?: number; - duration?: string; - encoderIp?: string; - encoderPort?: string; - ingestUrl?: string; - timescale?: string; - timestamp?: string; - trackName?: string; - trackType?: string; -} - -// @public -export interface MediaLiveEventIncomingStreamsOutOfSyncEventData { - maxLastTimestamp?: string; - minLastTimestamp?: string; - timescaleOfMaxLastTimestamp?: string; - timescaleOfMinLastTimestamp?: string; - typeOfStreamWithMaxLastTimestamp?: string; - typeOfStreamWithMinLastTimestamp?: string; -} - -// @public -export interface MediaLiveEventIncomingVideoStreamsOutOfSyncEventData { - firstDuration?: string; - firstTimestamp?: string; - secondDuration?: string; - secondTimestamp?: string; - timescale?: string; -} - -// @public -export interface MediaLiveEventIngestHeartbeatEventData { - bitrate?: number; - discontinuityCount?: number; - healthy?: boolean; - incomingBitrate?: number; - ingestDriftValue?: string; - lastFragmentArrivalTime?: string; - lastTimestamp?: string; - nonincreasingCount?: number; - overlapCount?: number; - state?: string; - timescale?: string; - trackName?: string; - trackType?: string; - transcriptionLanguage?: string; - transcriptionState?: string; - unexpectedBitrate?: boolean; -} - -// @public -export interface MediaLiveEventTrackDiscontinuityDetectedEventData { - bitrate?: number; - discontinuityGap?: string; - newTimestamp?: string; - previousTimestamp?: string; - timescale?: string; - trackName?: string; - trackType?: string; -} - -// @public -export interface MicrosoftTeamsAppIdentifierModel { - appId: string; - cloud: CommunicationCloudEnvironmentModel; -} - -// @public -export interface MicrosoftTeamsUserIdentifierModel { - cloud: CommunicationCloudEnvironmentModel; - isAnonymous?: boolean; - userId: string; -} - -// @public -export interface PhoneNumberIdentifierModel { - value: string; -} - -// @public -export interface PolicyInsightsPolicyStateChangedEventData { - complianceReasonCode?: string; - complianceState?: string; - policyAssignmentId?: string; - policyDefinitionId?: string; - policyDefinitionReferenceId?: string; - subscriptionId?: string; - timestamp: Date; -} - -// @public -export interface PolicyInsightsPolicyStateCreatedEventData { - complianceReasonCode?: string; - complianceState?: string; - policyAssignmentId?: string; - policyDefinitionId?: string; - policyDefinitionReferenceId?: string; - subscriptionId?: string; - timestamp: Date; -} - -// @public -export interface PolicyInsightsPolicyStateDeletedEventData { - complianceReasonCode?: string; - complianceState?: string; - policyAssignmentId?: string; - policyDefinitionId?: string; - policyDefinitionReferenceId?: string; - subscriptionId?: string; - timestamp: Date; -} - -// @public -export type RecordingChannelType = string; - -// @public -export type RecordingContentType = string; - -// @public -export type RecordingFormatType = string; - -// @public -export interface RedisExportRDBCompletedEventData { - name?: string; - status?: string; - timestamp: Date; -} - -// @public -export interface RedisImportRDBCompletedEventData { - name?: string; - status?: string; - timestamp: Date; -} - -// @public -export interface RedisPatchingCompletedEventData { - name?: string; - status?: string; - timestamp: Date; -} - -// @public -export interface RedisScalingCompletedEventData { - name?: string; - status?: string; - timestamp: Date; -} - -// @public -export interface ResourceActionCancelEventData { - authorization: ResourceAuthorization; - claims: Record; - correlationId?: string; - httpRequest: ResourceHttpRequest; - operationName?: string; - resourceGroup?: string; - resourceProvider?: string; - resourceUri?: string; - status?: string; - subscriptionId?: string; - tenantId?: string; -} - -// @public -export interface ResourceActionFailureEventData { - authorization: ResourceAuthorization; - claims: Record; - correlationId?: string; - httpRequest: ResourceHttpRequest; - operationName?: string; - resourceGroup?: string; - resourceProvider?: string; - resourceUri?: string; - status?: string; - subscriptionId?: string; - tenantId?: string; -} - -// @public -export interface ResourceActionSuccessEventData { - authorization: ResourceAuthorization; - claims: Record; - correlationId?: string; - httpRequest: ResourceHttpRequest; - operationName?: string; - resourceGroup?: string; - resourceProvider?: string; - resourceUri?: string; - status?: string; - subscriptionId?: string; - tenantId?: string; -} - -// @public -export interface ResourceAuthorization { - action?: string; - evidence: Record; - scope?: string; -} - -// @public -export interface ResourceDeleteCancelEventData { - authorization: ResourceAuthorization; - claims: Record; - correlationId?: string; - httpRequest: ResourceHttpRequest; - operationName?: string; - resourceGroup?: string; - resourceProvider?: string; - resourceUri?: string; - status?: string; - subscriptionId?: string; - tenantId?: string; -} - -// @public -export interface ResourceDeleteFailureEventData { - authorization: ResourceAuthorization; - claims: Record; - correlationId?: string; - httpRequest: ResourceHttpRequest; - operationName?: string; - resourceGroup?: string; - resourceProvider?: string; - resourceUri?: string; - status?: string; - subscriptionId?: string; - tenantId?: string; -} - -// @public -export interface ResourceDeleteSuccessEventData { - authorization: ResourceAuthorization; - claims: Record; - correlationId?: string; - httpRequest: ResourceHttpRequest; - operationName?: string; - resourceGroup?: string; - resourceProvider?: string; - resourceUri?: string; - status?: string; - subscriptionId?: string; - tenantId?: string; -} - -// @public -export interface ResourceHttpRequest { - clientIpAddress?: string; - clientRequestId?: string; - method?: string; - url?: string; -} - -// @public -export interface ResourceNotificationsHealthResourcesAnnotatedEventData extends ResourceNotificationsResourceUpdatedEventData { -} - -// @public -export interface ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventData extends ResourceNotificationsResourceUpdatedEventData { -} - -// @public -export interface ResourceNotificationsOperationalDetails { - resourceEventTime: Date; -} - -// @public -export interface ResourceNotificationsResourceDeletedDetails { - id?: string; - name?: string; - type?: string; -} - -// @public -export interface ResourceNotificationsResourceDeletedEventData { - operationalDetails: ResourceNotificationsOperationalDetails; - resourceDetails: ResourceNotificationsResourceDeletedDetails; -} - -// @public -export interface ResourceNotificationsResourceManagementCreatedOrUpdatedEventData extends ResourceNotificationsResourceUpdatedEventData { -} - -// @public -export interface ResourceNotificationsResourceManagementDeletedEventData extends ResourceNotificationsResourceDeletedEventData { -} - -// @public -export interface ResourceNotificationsResourceUpdatedDetails { - id?: string; - location?: string; - name?: string; - properties: Record; - tags: Record; - type?: string; -} - -// @public -export interface ResourceNotificationsResourceUpdatedEventData { - apiVersion?: string; - operationalDetails: ResourceNotificationsOperationalDetails; - resourceDetails: ResourceNotificationsResourceUpdatedDetails; -} - -// @public -export interface ResourceWriteCancelEventData { - authorization: ResourceAuthorization; - claims: Record; - correlationId?: string; - httpRequest: ResourceHttpRequest; - operationName?: string; - resourceGroup?: string; - resourceProvider?: string; - resourceUri?: string; - status?: string; - subscriptionId?: string; - tenantId?: string; -} - -// @public -export interface ResourceWriteFailureEventData { - authorization: ResourceAuthorization; - claims: Record; - correlationId?: string; - httpRequest: ResourceHttpRequest; - operationName?: string; - resourceGroup?: string; - resourceProvider?: string; - resourceUri?: string; - status?: string; - subscriptionId?: string; - tenantId?: string; -} - -// @public -export interface ResourceWriteSuccessEventData { - authorization: ResourceAuthorization; - claims: Record; - correlationId?: string; - httpRequest: ResourceHttpRequest; - operationName?: string; - resourceGroup?: string; - resourceProvider?: string; - resourceUri?: string; - status?: string; - subscriptionId?: string; - tenantId?: string; -} - -// @public -export type ServiceApiVersions = "2018-01-01" | "2024-01-01"; - -// @public -export interface ServiceBusActiveMessagesAvailablePeriodicNotificationsEventData { - entityType?: string; - namespaceName?: string; - queueName?: string; - requestUri?: string; - subscriptionName?: string; - topicName?: string; -} - -// @public -export interface ServiceBusActiveMessagesAvailableWithNoListenersEventData { - entityType?: string; - namespaceName?: string; - queueName?: string; - requestUri?: string; - subscriptionName?: string; - topicName?: string; -} - -// @public -export interface ServiceBusDeadletterMessagesAvailablePeriodicNotificationsEventData { - entityType?: string; - namespaceName?: string; - queueName?: string; - requestUri?: string; - subscriptionName?: string; - topicName?: string; -} - -// @public -export interface ServiceBusDeadletterMessagesAvailableWithNoListenersEventData { - entityType?: string; - namespaceName?: string; - queueName?: string; - requestUri?: string; - subscriptionName?: string; - topicName?: string; -} - -// @public -export interface SignalRServiceClientConnectionConnectedEventData { - connectionId?: string; - hubName?: string; - timestamp: Date; - userId?: string; -} - -// @public -export interface SignalRServiceClientConnectionDisconnectedEventData { - connectionId?: string; - errorMessage?: string; - hubName?: string; - timestamp: Date; - userId?: string; -} - -// @public -export type StampKind = string; - -// @public -export interface StorageAsyncOperationInitiatedEventData { - api?: string; - blobType?: string; - clientRequestId?: string; - contentLength?: number; - contentType?: string; - identity?: string; - requestId?: string; - sequencer?: string; - storageDiagnostics: Record; - url?: string; -} - -// @public -export type StorageBlobAccessTier = string; - -// @public -export interface StorageBlobCreatedEventData { - accessTier: StorageBlobAccessTier; - api?: string; - blobType?: string; - clientRequestId?: string; - contentLength?: number; - contentOffset?: number; - contentType?: string; - eTag?: string; - identity?: string; - requestId?: string; - sequencer?: string; - storageDiagnostics: Record; - url?: string; -} - -// @public -export interface StorageBlobDeletedEventData { - api?: string; - blobType?: string; - clientRequestId?: string; - contentType?: string; - identity?: string; - requestId?: string; - sequencer?: string; - storageDiagnostics: Record; - url?: string; -} - -// @public -export interface StorageBlobInventoryPolicyCompletedEventData { - accountName?: string; - manifestBlobUrl?: string; - policyRunId?: string; - policyRunStatus?: string; - policyRunStatusMessage?: string; - ruleName?: string; - scheduleDateTime: Date; -} - -// @public -export interface StorageBlobRenamedEventData { - api?: string; - clientRequestId?: string; - destinationUrl?: string; - identity?: string; - requestId?: string; - sequencer?: string; - sourceUrl?: string; - storageDiagnostics: Record; -} - -// @public -export interface StorageBlobTierChangedEventData { - accessTier: StorageBlobAccessTier; - api?: string; - blobType?: string; - clientRequestId?: string; - contentLength?: number; - contentType?: string; - identity?: string; - previousTier: StorageBlobAccessTier; - requestId?: string; - sequencer?: string; - storageDiagnostics: Record; - url?: string; -} - -// @public -export interface StorageDirectoryCreatedEventData { - api?: string; - clientRequestId?: string; - eTag?: string; - identity?: string; - requestId?: string; - sequencer?: string; - storageDiagnostics: Record; - url?: string; -} - -// @public -export interface StorageDirectoryDeletedEventData { - api?: string; - clientRequestId?: string; - identity?: string; - recursive?: string; - requestId?: string; - sequencer?: string; - storageDiagnostics: Record; - url?: string; -} - -// @public -export interface StorageDirectoryRenamedEventData { - api?: string; - clientRequestId?: string; - destinationUrl?: string; - identity?: string; - requestId?: string; - sequencer?: string; - sourceUrl?: string; - storageDiagnostics: Record; -} - -// @public -export interface StorageLifecyclePolicyActionSummaryDetail { - errorList?: string; - successCount?: number; - totalObjectsCount?: number; -} - -// @public -export interface StorageLifecyclePolicyCompletedEventData { - deleteSummary: StorageLifecyclePolicyActionSummaryDetail; - scheduleTime?: string; - tierToArchiveSummary: StorageLifecyclePolicyActionSummaryDetail; - tierToColdSummary: StorageLifecyclePolicyActionSummaryDetail; - tierToCoolSummary: StorageLifecyclePolicyActionSummaryDetail; -} - -// @public -export interface StorageTaskAssignmentCompletedEventData { - completedOn: Date; - status: StorageTaskAssignmentCompletedStatus; - summaryReportBlobUri: string; - taskExecutionId?: string; - taskName?: string; -} - -// @public -export type StorageTaskAssignmentCompletedStatus = string; - -// @public -export interface StorageTaskAssignmentQueuedEventData { - queuedOn: Date; - taskExecutionId?: string; -} - -// @public -export interface StorageTaskCompletedEventData { - completedDateTime: Date; - status: StorageTaskCompletedStatus; - summaryReportBlobUrl: string; - taskExecutionId?: string; - taskName?: string; -} - -// @public -export type StorageTaskCompletedStatus = string; - -// @public -export interface StorageTaskQueuedEventData { - queuedDateTime: Date; - taskExecutionId?: string; -} - -// @public -export interface SubscriptionDeletedEventData { - eventSubscriptionId?: string; -} - -// @public -export interface SubscriptionValidationEventData { - validationCode?: string; - validationUrl?: string; -} - -// @public -export interface SubscriptionValidationResponse { - validationResponse?: string; -} - -// @public -export interface SystemEventNameToEventData { - "Microsoft.ApiCenter.ApiDefinitionAdded": ApiCenterApiDefinitionAddedEventData; - "Microsoft.ApiCenter.ApiDefinitionUpdated": ApiCenterApiDefinitionUpdatedEventData; - "Microsoft.ApiManagement.APICreated": ApiManagementApiCreatedEventData; - "Microsoft.ApiManagement.APIDeleted": ApiManagementApiDeletedEventData; - "Microsoft.ApiManagement.APIReleaseCreated": ApiManagementApiReleaseCreatedEventData; - "Microsoft.ApiManagement.APIReleaseDeleted": ApiManagementApiReleaseDeletedEventData; - "Microsoft.ApiManagement.APIReleaseUpdated": ApiManagementApiReleaseUpdatedEventData; - "Microsoft.ApiManagement.APIUpdated": ApiManagementApiUpdatedEventData; - "Microsoft.ApiManagement.GatewayAPIAdded": ApiManagementGatewayApiAddedEventData; - "Microsoft.ApiManagement.GatewayAPIRemoved": ApiManagementGatewayApiRemovedEventData; - "Microsoft.ApiManagement.GatewayCertificateAuthorityCreated": ApiManagementGatewayCertificateAuthorityCreatedEventData; - "Microsoft.ApiManagement.GatewayCertificateAuthorityDeleted": ApiManagementGatewayCertificateAuthorityDeletedEventData; - "Microsoft.ApiManagement.GatewayCertificateAuthorityUpdated": ApiManagementGatewayCertificateAuthorityUpdatedEventData; - "Microsoft.ApiManagement.GatewayCreated": ApiManagementGatewayCreatedEventData; - "Microsoft.ApiManagement.GatewayDeleted": ApiManagementGatewayDeletedEventData; - "Microsoft.ApiManagement.GatewayHostnameConfigurationCreated": ApiManagementGatewayHostnameConfigurationCreatedEventData; - "Microsoft.ApiManagement.GatewayHostnameConfigurationDeleted": ApiManagementGatewayHostnameConfigurationDeletedEventData; - "Microsoft.ApiManagement.GatewayHostnameConfigurationUpdated": ApiManagementGatewayHostnameConfigurationUpdatedEventData; - "Microsoft.ApiManagement.GatewayUpdated": ApiManagementGatewayUpdatedEventData; - "Microsoft.ApiManagement.ProductCreated": ApiManagementProductCreatedEventData; - "Microsoft.ApiManagement.ProductDeleted": ApiManagementProductDeletedEventData; - "Microsoft.ApiManagement.ProductUpdated": ApiManagementProductUpdatedEventData; - "Microsoft.ApiManagement.SubscriptionCreated": ApiManagementSubscriptionCreatedEventData; - "Microsoft.ApiManagement.SubscriptionDeleted": ApiManagementSubscriptionDeletedEventData; - "Microsoft.ApiManagement.SubscriptionUpdated": ApiManagementSubscriptionUpdatedEventData; - "Microsoft.ApiManagement.UserCreated": ApiManagementUserCreatedEventData; - "Microsoft.ApiManagement.UserDeleted": ApiManagementUserDeletedEventData; - "Microsoft.ApiManagement.UserUpdated": ApiManagementUserUpdatedEventData; - "Microsoft.AppConfiguration.KeyValueDeleted": AppConfigurationKeyValueDeletedEventData; - "Microsoft.AppConfiguration.KeyValueModified": AppConfigurationKeyValueModifiedEventData; - "Microsoft.AppConfiguration.SnapshotCreated": AppConfigurationSnapshotCreatedEventData; - "Microsoft.AppConfiguration.SnapshotModified": AppConfigurationSnapshotModifiedEventData; - "Microsoft.AVS.ClusterCreated": AvsClusterCreatedEventData; - "Microsoft.AVS.ClusterDeleted": AvsClusterDeletedEventData; - "Microsoft.AVS.ClusterFailed": AvsClusterFailedEventData; - "Microsoft.AVS.ClusterUpdated": AvsClusterUpdatedEventData; - "Microsoft.AVS.ClusterUpdating": AvsClusterUpdatingEventData; - "Microsoft.AVS.PrivateCloudFailed": AvsPrivateCloudFailedEventData; - "Microsoft.AVS.PrivateCloudUpdated": AvsPrivateCloudUpdatedEventData; - "Microsoft.AVS.PrivateCloudUpdating": AvsPrivateCloudUpdatingEventData; - "Microsoft.AVS.ScriptExecutionCancelled": AvsScriptExecutionCancelledEventData; - "Microsoft.AVS.ScriptExecutionFailed": AvsScriptExecutionFailedEventData; - "Microsoft.AVS.ScriptExecutionFinished": AvsScriptExecutionFinishedEventData; - "Microsoft.AVS.ScriptExecutionStarted": AvsScriptExecutionStartedEventData; - "Microsoft.Communication.AdvancedMessageDeliveryStatusUpdated": AcsMessageDeliveryStatusUpdatedEventData; - "Microsoft.Communication.AdvancedMessageReceived": AcsMessageReceivedEventData; - "Microsoft.Communication.ChatMessageDeleted": AcsChatMessageDeletedEventData; - "Microsoft.Communication.ChatMessageDeletedInThread": AcsChatMessageDeletedInThreadEventData; - "Microsoft.Communication.ChatMessageEdited": AcsChatMessageEditedEventData; - "Microsoft.Communication.ChatMessageEditedInThread": AcsChatMessageEditedInThreadEventData; - "Microsoft.Communication.ChatMessageReceived": AcsChatMessageReceivedEventData; - "Microsoft.Communication.ChatMessageReceivedInThread": AcsChatMessageReceivedInThreadEventData; - "Microsoft.Communication.ChatParticipantAddedToThreadWithUser": AcsChatParticipantAddedToThreadWithUserEventData; - "Microsoft.Communication.ChatParticipantRemovedFromThreadWithUser": AcsChatParticipantRemovedFromThreadWithUserEventData; - "Microsoft.Communication.ChatThreadCreatedWithUser": AcsChatThreadCreatedWithUserEventData; - "Microsoft.Communication.ChatThreadParticipantAdded": AcsChatParticipantAddedToThreadEventData; - "Microsoft.Communication.ChatThreadParticipantRemoved": AcsChatParticipantRemovedFromThreadEventData; - "Microsoft.Communication.ChatThreadPropertiesUpdatedPerUser": AcsChatThreadPropertiesUpdatedPerUserEventData; - "Microsoft.Communication.ChatThreadWithUserDeleted": AcsChatThreadWithUserDeletedEventData; - "Microsoft.Communication.EmailDeliveryReportReceived": AcsEmailDeliveryReportReceivedEventData; - "Microsoft.Communication.EmailEngagementTrackingReportReceived": AcsEmailEngagementTrackingReportReceivedEventData; - "Microsoft.Communication.IncomingCall": AcsIncomingCallEventData; - "Microsoft.Communication.RecordingFileStatusUpdated": AcsRecordingFileStatusUpdatedEventData; - "Microsoft.Communication.RouterJobCancelled": AcsRouterJobCancelledEventData; - "Microsoft.Communication.RouterJobClassificationFailed": AcsRouterJobClassificationFailedEventData; - "Microsoft.Communication.RouterJobClassified": AcsRouterJobClassifiedEventData; - "Microsoft.Communication.RouterJobClosed": AcsRouterJobClosedEventData; - "Microsoft.Communication.RouterJobCompleted": AcsRouterJobCompletedEventData; - "Microsoft.Communication.RouterJobDeleted": AcsRouterJobDeletedEventData; - "Microsoft.Communication.RouterJobExceptionTriggered": AcsRouterJobExceptionTriggeredEventData; - "Microsoft.Communication.RouterJobQueued": AcsRouterJobQueuedEventData; - "Microsoft.Communication.RouterJobReceived": AcsRouterJobReceivedEventData; - "Microsoft.Communication.RouterJobSchedulingFailed": AcsRouterJobSchedulingFailedEventData; - "Microsoft.Communication.RouterJobUnassigned": AcsRouterJobUnassignedEventData; - "Microsoft.Communication.RouterJobWaitingForActivation": AcsRouterJobWaitingForActivationEventData; - "Microsoft.Communication.RouterJobWorkerSelectorsExpire": AcsRouterJobWorkerSelectorsExpiredEventData; - "Microsoft.Communication.RouterWorkerDeleted": AcsRouterWorkerDeletedEventData; - "Microsoft.Communication.RouterWorkerDeregistered": AcsRouterWorkerDeregisteredEventData; - "Microsoft.Communication.RouterWorkerOfferAccepted": AcsRouterWorkerOfferAcceptedEventData; - "Microsoft.Communication.RouterWorkerOfferDeclined": AcsRouterWorkerOfferDeclinedEventData; - "Microsoft.Communication.RouterWorkerOfferExpired": AcsRouterWorkerOfferExpiredEventData; - "Microsoft.Communication.RouterWorkerOfferIssued": AcsRouterWorkerOfferIssuedEventData; - "Microsoft.Communication.RouterWorkerOfferRevoked": AcsRouterWorkerOfferRevokedEventData; - "Microsoft.Communication.RouterWorkerRegistered": AcsRouterWorkerRegisteredEventData; - "Microsoft.Communication.RouterWorkerUpdated": AcsRouterWorkerUpdatedEventData; - "Microsoft.Communication.SMSDeliveryReportReceived": AcsSmsDeliveryReportReceivedEventData; - "Microsoft.Communication.SMSReceived": AcsSmsReceivedEventData; - "Microsoft.Communication.UserDisconnected": AcsUserDisconnectedEventData; - "Microsoft.ContainerRegistry.ChartDeleted": ContainerRegistryChartDeletedEventData; - "Microsoft.ContainerRegistry.ChartPushed": ContainerRegistryChartPushedEventData; - "Microsoft.ContainerRegistry.ImageDeleted": ContainerRegistryImageDeletedEventData; - "Microsoft.ContainerRegistry.ImagePushed": ContainerRegistryImagePushedEventData; - "Microsoft.ContainerService.ClusterSupportEnded": ContainerServiceClusterSupportEndedEventData; - "Microsoft.ContainerService.ClusterSupportEnding": ContainerServiceClusterSupportEndingEventData; - "Microsoft.ContainerService.NewKubernetesVersionAvailable": ContainerServiceNewKubernetesVersionAvailableEventData; - "Microsoft.ContainerService.NodePoolRollingFailed": ContainerServiceNodePoolRollingFailedEventData; - "Microsoft.ContainerService.NodePoolRollingStarted": ContainerServiceNodePoolRollingStartedEventData; - "Microsoft.ContainerService.NodePoolRollingSucceeded": ContainerServiceNodePoolRollingSucceededEventData; - "Microsoft.DataBox.CopyCompleted": DataBoxCopyCompletedEventData; - "Microsoft.DataBox.CopyStarted": DataBoxCopyStartedEventData; - "Microsoft.DataBox.OrderCompleted": DataBoxOrderCompletedEventData; - "Microsoft.Devices.DeviceConnected": IotHubDeviceConnectedEventData; - "Microsoft.Devices.DeviceCreated": IotHubDeviceCreatedEventData; - "Microsoft.Devices.DeviceDeleted": IotHubDeviceDeletedEventData; - "Microsoft.Devices.DeviceDisconnected": IotHubDeviceDisconnectedEventData; - "Microsoft.Devices.DeviceTelemetry": IotHubDeviceTelemetryEventData; - "Microsoft.EventGrid.MQTTClientCreatedOrUpdated": EventGridMqttClientCreatedOrUpdatedEventData; - "Microsoft.EventGrid.MQTTClientDeleted": EventGridMqttClientDeletedEventData; - "Microsoft.EventGrid.MQTTClientSessionConnected": EventGridMqttClientSessionConnectedEventData; - "Microsoft.EventGrid.MQTTClientSessionDisconnected": EventGridMqttClientSessionDisconnectedEventData; - "Microsoft.EventGrid.SubscriptionDeletedEvent": SubscriptionDeletedEventData; - "Microsoft.EventGrid.SubscriptionValidationEvent": SubscriptionValidationEventData; - "Microsoft.EventHub.CaptureFileCreated": EventHubCaptureFileCreatedEventData; - "Microsoft.HealthcareApis.DicomImageCreated": HealthcareDicomImageCreatedEventData; - "Microsoft.HealthcareApis.DicomImageDeleted": HealthcareDicomImageDeletedEventData; - "Microsoft.HealthcareApis.DicomImageUpdated": HealthcareDicomImageUpdatedEventData; - "Microsoft.HealthcareApis.FhirDeletedCreated": HealthcareFhirResourceDeletedEventData; - "Microsoft.HealthcareApis.FhirResourceCreated": HealthcareFhirResourceCreatedEventData; - "Microsoft.HealthcareApis.FhirUpdatedCreated": HealthcareFhirResourceUpdatedEventData; - "Microsoft.KeyVault.CertificateExpired": KeyVaultCertificateExpiredEventData; - "Microsoft.KeyVault.CertificateNearExpiry": KeyVaultCertificateNearExpiryEventData; - "Microsoft.KeyVault.CertificateNewVersionCreated": KeyVaultCertificateNewVersionCreatedEventData; - "Microsoft.KeyVault.KeyExpired": KeyVaultKeyExpiredEventData; - "Microsoft.KeyVault.KeyNearExpiry": KeyVaultKeyNearExpiryEventData; - "Microsoft.KeyVault.KeyNewVersionCreated": KeyVaultKeyNewVersionCreatedEventData; - "Microsoft.KeyVault.SecretExpired": KeyVaultSecretExpiredEventData; - "Microsoft.KeyVault.SecretNearExpiry": KeyVaultSecretNearExpiryEventData; - "Microsoft.KeyVault.SecretNewVersionCreated": KeyVaultSecretNewVersionCreatedEventData; - "Microsoft.KeyVault.VaultAccessPolicyChanged": KeyVaultAccessPolicyChangedEventData; - "Microsoft.MachineLearningServices.DatasetDriftDetected": MachineLearningServicesDatasetDriftDetectedEventData; - "Microsoft.MachineLearningServices.ModelDeployed": MachineLearningServicesModelDeployedEventData; - "Microsoft.MachineLearningServices.ModelRegistered": MachineLearningServicesModelRegisteredEventData; - "Microsoft.MachineLearningServices.RunCompleted": MachineLearningServicesRunCompletedEventData; - "Microsoft.MachineLearningServices.RunStatusChanged": MachineLearningServicesRunStatusChangedEventData; - "Microsoft.Maps.GeofenceEntered": MapsGeofenceEnteredEventData; - "Microsoft.Maps.GeofenceExited": MapsGeofenceExitedEventData; - "Microsoft.Maps.GeofenceResult": MapsGeofenceResultEventData; - "Microsoft.Media.JobCanceled": MediaJobCanceledEventData; - "Microsoft.Media.JobCanceling": MediaJobCancelingEventData; - "Microsoft.Media.JobErrored": MediaJobErroredEventData; - "Microsoft.Media.JobFinished": MediaJobFinishedEventData; - "Microsoft.Media.JobOutputCanceled": MediaJobOutputCanceledEventData; - "Microsoft.Media.JobOutputCanceling": MediaJobOutputCancelingEventData; - "Microsoft.Media.JobOutputErrored": MediaJobOutputErroredEventData; - "Microsoft.Media.JobOutputFinished": MediaJobOutputFinishedEventData; - "Microsoft.Media.JobOutputProcessing": MediaJobOutputProcessingEventData; - "Microsoft.Media.JobOutputProgress": MediaJobOutputProgressEventData; - "Microsoft.Media.JobOutputScheduled": MediaJobOutputScheduledEventData; - "Microsoft.Media.JobOutputStateChange": MediaJobOutputStateChangeEventData; - "Microsoft.Media.JobProcessing": MediaJobProcessingEventData; - "Microsoft.Media.JobScheduled": MediaJobScheduledEventData; - "Microsoft.Media.JobStateChange": MediaJobStateChangeEventData; - "Microsoft.Media.LiveEventChannelArchiveHeartbeat": MediaLiveEventChannelArchiveHeartbeatEventData; - "Microsoft.Media.LiveEventConnectionRejected": MediaLiveEventConnectionRejectedEventData; - "Microsoft.Media.LiveEventEncoderConnected": MediaLiveEventEncoderConnectedEventData; - "Microsoft.Media.LiveEventEncoderDisconnected": MediaLiveEventEncoderDisconnectedEventData; - "Microsoft.Media.LiveEventIncomingDataChunkDropped": MediaLiveEventIncomingDataChunkDroppedEventData; - "Microsoft.Media.LiveEventIncomingStreamReceived": MediaLiveEventIncomingStreamReceivedEventData; - "Microsoft.Media.LiveEventIncomingStreamsOutOfSync": MediaLiveEventIncomingStreamsOutOfSyncEventData; - "Microsoft.Media.LiveEventIncomingVideoStreamsOutOfSync": MediaLiveEventIncomingVideoStreamsOutOfSyncEventData; - "Microsoft.Media.LiveEventIngestHeartbeat": MediaLiveEventIngestHeartbeatEventData; - "Microsoft.Media.LiveEventTrackDiscontinuityDetected": MediaLiveEventTrackDiscontinuityDetectedEventData; - "Microsoft.PolicyInsights.PolicyStateChanged ": PolicyInsightsPolicyStateChangedEventData; - "Microsoft.PolicyInsights.PolicyStateCreated": PolicyInsightsPolicyStateCreatedEventData; - "Microsoft.PolicyInsights.PolicyStateDeleted": PolicyInsightsPolicyStateDeletedEventData; - "Microsoft.ResourceNotifications.HealthResources.AvailabilityStatusChanged": ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventData; - "Microsoft.ResourceNotifications.HealthResources.ResourceAnnotated": ResourceNotificationsHealthResourcesAnnotatedEventData; - "Microsoft.ResourceNotifications.Resources.CreatedOrUpdated": ResourceNotificationsResourceManagementCreatedOrUpdatedEventData; - "Microsoft.ResourceNotifications.Resources.Deleted": ResourceNotificationsResourceManagementDeletedEventData; - "Microsoft.Resources.ResourceActionCancel": ResourceActionCancelEventData; - "Microsoft.Resources.ResourceActionFailure": ResourceActionFailureEventData; - "Microsoft.Resources.ResourceActionSuccess": ResourceActionSuccessEventData; - "Microsoft.Resources.ResourceDeleteCancel": ResourceDeleteCancelEventData; - "Microsoft.Resources.ResourceDeleteFailure": ResourceDeleteFailureEventData; - "Microsoft.Resources.ResourceDeleteSuccess": ResourceDeleteSuccessEventData; - "Microsoft.Resources.ResourceWriteCancel": ResourceWriteCancelEventData; - "Microsoft.Resources.ResourceWriteFailure": ResourceWriteFailureEventData; - "Microsoft.Resources.ResourceWriteSuccess": ResourceWriteSuccessEventData; - "Microsoft.ServiceBus.ActiveMessagesAvailableWithNoListeners": ServiceBusActiveMessagesAvailableWithNoListenersEventData; - "Microsoft.ServiceBus.DeadletterMessagesAvailableWithNoListeners": ServiceBusDeadletterMessagesAvailableWithNoListenersEventData; - "Microsoft.Storage.AsyncOperationInitiated": StorageAsyncOperationInitiatedEventData; - "Microsoft.Storage.BlobCreated": StorageBlobCreatedEventData; - "Microsoft.Storage.BlobDeleted": StorageBlobDeletedEventData; - "Microsoft.Storage.BlobInventoryPolicyCompleted": StorageBlobInventoryPolicyCompletedEventData; - "Microsoft.Storage.BlobRenamed": StorageBlobRenamedEventData; - "Microsoft.Storage.BlobTierChanged": StorageBlobTierChangedEventData; - "Microsoft.Storage.DirectoryCreated": StorageDirectoryCreatedEventData; - "Microsoft.Storage.DirectoryDeleted": StorageDirectoryDeletedEventData; - "Microsoft.Storage.DirectoryRenamed": StorageDirectoryRenamedEventData; - "Microsoft.Storage.LifecyclePolicyCompleted": StorageLifecyclePolicyCompletedEventData; - "Microsoft.Storage.StorageTaskAssignmentCompleted": StorageTaskAssignmentCompletedEventData; - "Microsoft.Storage.StorageTaskAssignmentQueued": StorageTaskAssignmentQueuedEventData; - "Microsoft.Storage.StorageTaskCompleted": StorageTaskCompletedEventData; - "Microsoft.Storage.StorageTaskQueued": StorageTaskQueuedEventData; - "Microsoft.Web.AppServicePlanUpdated": WebAppServicePlanUpdatedEventData; - "Microsoft.Web.AppUpdated": WebAppUpdatedEventData; - "Microsoft.Web.BackupOperationCompleted": WebBackupOperationCompletedEventData; - "Microsoft.Web.BackupOperationFailed": WebBackupOperationFailedEventData; - "Microsoft.Web.BackupOperationStarted": WebBackupOperationStartedEventData; - "Microsoft.Web.RestoreOperationCompleted": WebRestoreOperationCompletedEventData; - "Microsoft.Web.RestoreOperationFailed": WebRestoreOperationFailedEventData; - "Microsoft.Web.RestoreOperationStarted": WebRestoreOperationStartedEventData; - "Microsoft.Web.SlotSwapCompleted": WebSlotSwapCompletedEventData; - "Microsoft.Web.SlotSwapFailed": WebSlotSwapFailedEventData; - "Microsoft.Web.SlotSwapStarted": WebSlotSwapStartedEventData; - "Microsoft.Web.SlotSwapWithPreviewCancelled": WebSlotSwapWithPreviewCancelledEventData; - "Microsoft.Web.SlotSwapWithPreviewStarted": WebSlotSwapWithPreviewStartedEventData; -} - -// @public -export interface WebAppServicePlanUpdatedEventData { - address?: string; - appServicePlanEventTypeDetail: AppServicePlanEventTypeDetail; - clientRequestId?: string; - correlationRequestId?: string; - name?: string; - requestId?: string; - sku: WebAppServicePlanUpdatedEventDataSku; - verb?: string; -} - -// @public -export interface WebAppServicePlanUpdatedEventDataSku { - capacity?: string; - family?: string; - name?: string; - size?: string; - tier?: string; -} - -// @public -export interface WebAppUpdatedEventData { - address?: string; - appEventTypeDetail: AppEventTypeDetail; - clientRequestId?: string; - correlationRequestId?: string; - name?: string; - requestId?: string; - verb?: string; -} - -// @public -export interface WebBackupOperationCompletedEventData { - address?: string; - appEventTypeDetail: AppEventTypeDetail; - clientRequestId?: string; - correlationRequestId?: string; - name?: string; - requestId?: string; - verb?: string; -} - -// @public -export interface WebBackupOperationFailedEventData { - address?: string; - appEventTypeDetail: AppEventTypeDetail; - clientRequestId?: string; - correlationRequestId?: string; - name?: string; - requestId?: string; - verb?: string; -} - -// @public -export interface WebBackupOperationStartedEventData { - address?: string; - appEventTypeDetail: AppEventTypeDetail; - clientRequestId?: string; - correlationRequestId?: string; - name?: string; - requestId?: string; - verb?: string; -} - -// @public -export interface WebRestoreOperationCompletedEventData { - address?: string; - appEventTypeDetail: AppEventTypeDetail; - clientRequestId?: string; - correlationRequestId?: string; - name?: string; - requestId?: string; - verb?: string; -} - -// @public -export interface WebRestoreOperationFailedEventData { - address?: string; - appEventTypeDetail: AppEventTypeDetail; - clientRequestId?: string; - correlationRequestId?: string; - name?: string; - requestId?: string; - verb?: string; -} - -// @public -export interface WebRestoreOperationStartedEventData { - address?: string; - appEventTypeDetail: AppEventTypeDetail; - clientRequestId?: string; - correlationRequestId?: string; - name?: string; - requestId?: string; - verb?: string; -} - -// @public -export interface WebSlotSwapCompletedEventData { - address?: string; - appEventTypeDetail: AppEventTypeDetail; - clientRequestId?: string; - correlationRequestId?: string; - name?: string; - requestId?: string; - verb?: string; -} - -// @public -export interface WebSlotSwapFailedEventData { - address?: string; - appEventTypeDetail: AppEventTypeDetail; - clientRequestId?: string; - correlationRequestId?: string; - name?: string; - requestId?: string; - verb?: string; -} - -// @public -export interface WebSlotSwapStartedEventData { - address?: string; - appEventTypeDetail: AppEventTypeDetail; - clientRequestId?: string; - correlationRequestId?: string; - name?: string; - requestId?: string; - verb?: string; -} - -// @public -export interface WebSlotSwapWithPreviewCancelledEventData { - address?: string; - appEventTypeDetail: AppEventTypeDetail; - clientRequestId?: string; - correlationRequestId?: string; - name?: string; - requestId?: string; - verb?: string; -} - -// @public -export interface WebSlotSwapWithPreviewStartedEventData { - address?: string; - appEventTypeDetail: AppEventTypeDetail; - clientRequestId?: string; - correlationRequestId?: string; - name?: string; - requestId?: string; - verb?: string; -} - -// (No @packageDocumentation comment for this package) - -``` diff --git a/sdk/eventgrid/eventgrid-system-events/sample.env b/sdk/eventgrid/eventgrid-system-events/sample.env new file mode 100644 index 000000000000..508439fc7d62 --- /dev/null +++ b/sdk/eventgrid/eventgrid-system-events/sample.env @@ -0,0 +1 @@ +# Feel free to add your own environment variables. \ No newline at end of file diff --git a/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/SystemEventsClient.ts b/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/SystemEventsClient.ts deleted file mode 100644 index 9be54bc76c7a..000000000000 --- a/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/SystemEventsClient.ts +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import type { Pipeline } from "@azure/core-rest-pipeline"; -import "./models/options.js"; -import type { SystemEventsClientOptionalParams, SystemEventsContext } from "./api/index.js"; -import { createSystemEvents } from "./api/index.js"; - -export { SystemEventsClientOptionalParams } from "./api/systemEventsContext.js"; - -export class SystemEventsClient { - private _client: SystemEventsContext; - /** The pipeline used by this client to make requests */ - public readonly pipeline: Pipeline; - - /** Azure Messaging EventGrid SystemEvents */ - constructor(endpoint: string, options: SystemEventsClientOptionalParams = {}) { - const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix; - const userAgentPrefix = prefixFromOptions - ? `${prefixFromOptions} azsdk-js-client` - : "azsdk-js-client"; - - this._client = createSystemEvents(endpoint, { - ...options, - userAgentOptions: { userAgentPrefix }, - }); - this.pipeline = this._client.pipeline; - } -} diff --git a/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/api/index.ts b/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/api/index.ts deleted file mode 100644 index 2eedcc56a4c4..000000000000 --- a/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/api/index.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -export { - createSystemEvents, - SystemEventsClientOptionalParams, - SystemEventsContext, -} from "./systemEventsContext.js"; diff --git a/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/api/systemEventsContext.ts b/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/api/systemEventsContext.ts deleted file mode 100644 index 3040a2cae70c..000000000000 --- a/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/api/systemEventsContext.ts +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import type { ClientOptions } from "@azure-rest/core-client"; -import type { SystemEventsContext } from "../rest/index.js"; -import getClient from "../rest/index.js"; - -/** Optional parameters for the client. */ -export interface SystemEventsClientOptionalParams extends ClientOptions {} - -export { SystemEventsContext } from "../rest/index.js"; - -/** Azure Messaging EventGrid SystemEvents */ -export function createSystemEvents( - endpoint: string, - options: SystemEventsClientOptionalParams = {}, -): SystemEventsContext { - const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix; - const userAgentPrefix = prefixFromOptions ? `${prefixFromOptions} azsdk-js-api` : "azsdk-js-api"; - - const clientContext = getClient(endpoint, { - ...options, - userAgentOptions: { userAgentPrefix }, - }); - return clientContext; -} diff --git a/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/helpers/serializerHelpers.ts b/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/helpers/serializerHelpers.ts deleted file mode 100644 index 556654efb543..000000000000 --- a/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/helpers/serializerHelpers.ts +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -export function serializeRecord( - item: Record, -): Record; -export function serializeRecord( - item: Record, - serializer: (item: T) => R, -): Record; -export function serializeRecord( - item: Record, - serializer?: (item: T) => R, -): Record { - return Object.keys(item).reduce( - (acc, key) => { - if (isSupportedRecordType(item[key])) { - acc[key] = item[key] as any; - } else if (serializer) { - const value = item[key]; - if (value !== undefined) { - acc[key] = serializer(value); - } - } else { - console.warn(`Don't know how to serialize ${item[key]}`); - acc[key] = item[key] as any; - } - return acc; - }, - {} as Record, - ); -} - -function isSupportedRecordType(t: any): boolean { - return ["number", "string", "boolean", "null"].includes(typeof t) || t instanceof Date; -} diff --git a/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/index.ts b/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/index.ts deleted file mode 100644 index 976a0fa70517..000000000000 --- a/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/index.ts +++ /dev/null @@ -1,359 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -export { - ApiCenterApiDefinitionAddedEventData, - ApiCenterApiSpecification, - ApiCenterApiDefinitionUpdatedEventData, - ApiManagementUserCreatedEventData, - ApiManagementUserUpdatedEventData, - ApiManagementUserDeletedEventData, - ApiManagementSubscriptionCreatedEventData, - ApiManagementSubscriptionUpdatedEventData, - ApiManagementSubscriptionDeletedEventData, - ApiManagementProductCreatedEventData, - ApiManagementProductUpdatedEventData, - ApiManagementProductDeletedEventData, - ApiManagementApiCreatedEventData, - ApiManagementApiUpdatedEventData, - ApiManagementApiDeletedEventData, - ApiManagementApiReleaseCreatedEventData, - ApiManagementApiReleaseUpdatedEventData, - ApiManagementApiReleaseDeletedEventData, - ApiManagementGatewayCreatedEventData, - ApiManagementGatewayUpdatedEventData, - ApiManagementGatewayDeletedEventData, - ApiManagementGatewayHostnameConfigurationCreatedEventData, - ApiManagementGatewayHostnameConfigurationUpdatedEventData, - ApiManagementGatewayHostnameConfigurationDeletedEventData, - ApiManagementGatewayCertificateAuthorityCreatedEventData, - ApiManagementGatewayCertificateAuthorityUpdatedEventData, - ApiManagementGatewayCertificateAuthorityDeletedEventData, - ApiManagementGatewayApiAddedEventData, - ApiManagementGatewayApiRemovedEventData, - AppConfigurationKeyValueModifiedEventData, - AppConfigurationKeyValueDeletedEventData, - AppConfigurationSnapshotEventData, - AppConfigurationSnapshotCreatedEventData, - AppConfigurationSnapshotModifiedEventData, - AvsPrivateCloudEventData, - AvsPrivateCloudUpdatingEventData, - AvsPrivateCloudUpdatedEventData, - AvsPrivateCloudFailedEventData, - AvsClusterEventData, - AvsClusterCreatedEventData, - AvsClusterDeletedEventData, - AvsClusterUpdatingEventData, - AvsClusterUpdatedEventData, - AvsClusterFailedEventData, - AvsScriptExecutionEventData, - AvsScriptExecutionStartedEventData, - AvsScriptExecutionFinishedEventData, - AvsScriptExecutionCancelledEventData, - AvsScriptExecutionFailedEventData, - AcsIncomingCallEventData, - CommunicationIdentifierModel, - KnownCommunicationIdentifierModelKind, - CommunicationIdentifierModelKind, - CommunicationUserIdentifierModel, - PhoneNumberIdentifierModel, - MicrosoftTeamsUserIdentifierModel, - KnownCommunicationCloudEnvironmentModel, - CommunicationCloudEnvironmentModel, - MicrosoftTeamsAppIdentifierModel, - AcsIncomingCallCustomContext, - AcsUserDisconnectedEventData, - AcsChatEventBase, - AcsChatEventInThreadBase, - AcsChatMessageEventBase, - AcsChatMessageReceivedEventData, - AcsChatMessageEventInThreadBase, - AcsChatMessageReceivedInThreadEventData, - AcsChatMessageEditedEventData, - AcsChatMessageEditedInThreadEventData, - AcsChatMessageDeletedEventData, - AcsChatMessageDeletedInThreadEventData, - AcsChatThreadEventBase, - AcsChatThreadCreatedWithUserEventData, - AcsChatThreadParticipant, - AcsChatThreadEventInThreadBase, - AcsChatThreadCreatedEventData, - AcsChatThreadWithUserDeletedEventData, - AcsChatThreadDeletedEventData, - AcsChatThreadPropertiesUpdatedPerUserEventData, - AcsChatThreadPropertiesUpdatedEventData, - AcsChatParticipantAddedToThreadWithUserEventData, - AcsChatParticipantRemovedFromThreadWithUserEventData, - AcsChatParticipantAddedToThreadEventData, - AcsChatParticipantRemovedFromThreadEventData, - AcsSmsEventBase, - AcsSmsDeliveryReportReceivedEventData, - AcsSmsDeliveryAttempt, - AcsSmsReceivedEventData, - AcsRecordingFileStatusUpdatedEventData, - AcsRecordingStorageInfo, - AcsRecordingChunkInfo, - KnownRecordingContentType, - RecordingContentType, - KnownRecordingChannelType, - RecordingChannelType, - KnownRecordingFormatType, - RecordingFormatType, - AcsEmailDeliveryReportReceivedEventData, - KnownAcsEmailDeliveryReportStatus, - AcsEmailDeliveryReportStatus, - AcsEmailDeliveryReportStatusDetails, - AcsEmailEngagementTrackingReportReceivedEventData, - KnownAcsUserEngagement, - AcsUserEngagement, - AcsRouterEventData, - AcsRouterJobEventData, - AcsRouterJobCancelledEventData, - AcsRouterJobClassificationFailedEventData, - AcsRouterCommunicationError, - AcsRouterJobClassifiedEventData, - AcsRouterQueueDetails, - AcsRouterWorkerSelector, - KnownAcsRouterLabelOperator, - AcsRouterLabelOperator, - KnownAcsRouterWorkerSelectorState, - AcsRouterWorkerSelectorState, - AcsRouterJobClosedEventData, - AcsRouterJobCompletedEventData, - AcsRouterJobDeletedEventData, - AcsRouterJobExceptionTriggeredEventData, - AcsRouterJobQueuedEventData, - AcsRouterJobReceivedEventData, - KnownAcsRouterJobStatus, - AcsRouterJobStatus, - AcsRouterJobSchedulingFailedEventData, - AcsRouterJobUnassignedEventData, - AcsRouterJobWaitingForActivationEventData, - AcsRouterJobWorkerSelectorsExpiredEventData, - AcsRouterWorkerEventData, - AcsRouterWorkerDeletedEventData, - AcsRouterWorkerDeregisteredEventData, - AcsRouterWorkerOfferAcceptedEventData, - AcsRouterWorkerOfferDeclinedEventData, - AcsRouterWorkerOfferExpiredEventData, - AcsRouterWorkerOfferIssuedEventData, - AcsRouterWorkerOfferRevokedEventData, - AcsRouterWorkerRegisteredEventData, - AcsRouterChannelConfiguration, - AcsRouterWorkerUpdatedEventData, - KnownAcsRouterUpdatedWorkerProperty, - AcsRouterUpdatedWorkerProperty, - AcsMessageEventData, - AcsMessageChannelEventError, - AcsMessageDeliveryStatusUpdatedEventData, - KnownAcsMessageDeliveryStatus, - AcsMessageDeliveryStatus, - KnownAcsMessageChannelKind, - AcsMessageChannelKind, - AcsMessageReceivedEventData, - AcsMessageMediaContent, - AcsMessageContext, - AcsMessageButtonContent, - AcsMessageInteractiveContent, - KnownAcsInteractiveReplyKind, - AcsInteractiveReplyKind, - AcsMessageInteractiveButtonReplyContent, - AcsMessageInteractiveListReplyContent, - ContainerRegistryEventData, - ContainerRegistryEventTarget, - ContainerRegistryEventRequest, - ContainerRegistryEventActor, - ContainerRegistryEventSource, - ContainerRegistryEventConnectedRegistry, - ContainerRegistryImagePushedEventData, - ContainerRegistryImageDeletedEventData, - ContainerRegistryArtifactEventData, - ContainerRegistryArtifactEventTarget, - ContainerRegistryChartPushedEventData, - ContainerRegistryChartDeletedEventData, - ContainerServiceNewKubernetesVersionAvailableEventData, - ContainerServiceClusterSupportEventData, - ContainerServiceClusterSupportEndedEventData, - ContainerServiceClusterSupportEndingEventData, - ContainerServiceNodePoolRollingEventData, - ContainerServiceNodePoolRollingStartedEventData, - ContainerServiceNodePoolRollingSucceededEventData, - ContainerServiceNodePoolRollingFailedEventData, - DataBoxCopyStartedEventData, - KnownDataBoxStageName, - DataBoxStageName, - DataBoxCopyCompletedEventData, - DataBoxOrderCompletedEventData, - EventHubCaptureFileCreatedEventData, - MapsGeofenceEvent, - MapsGeofenceGeometry, - MapsGeofenceEnteredEventData, - MapsGeofenceExitedEventData, - MapsGeofenceResultEventData, - DeviceLifeCycleEvent, - DeviceTwinInfo, - DeviceTwinInfoProperties, - DeviceTwin, - DeviceTwinMetadata, - DeviceTwinInfoX509Thumbprint, - DeviceConnectionStateEvent, - DeviceConnectionStateEventInfo, - DeviceTelemetryEvent, - IotHubDeviceCreatedEventData, - IotHubDeviceDeletedEventData, - IotHubDeviceConnectedEventData, - IotHubDeviceDisconnectedEventData, - IotHubDeviceTelemetryEventData, - HealthcareFhirResourceCreatedEventData, - KnownHealthcareFhirResourceType, - HealthcareFhirResourceType, - HealthcareFhirResourceUpdatedEventData, - HealthcareFhirResourceDeletedEventData, - HealthcareDicomImageCreatedEventData, - HealthcareDicomImageDeletedEventData, - HealthcareDicomImageUpdatedEventData, - KeyVaultCertificateNewVersionCreatedEventData, - KeyVaultCertificateNearExpiryEventData, - KeyVaultCertificateExpiredEventData, - KeyVaultKeyNewVersionCreatedEventData, - KeyVaultKeyNearExpiryEventData, - KeyVaultKeyExpiredEventData, - KeyVaultSecretNewVersionCreatedEventData, - KeyVaultSecretNearExpiryEventData, - KeyVaultSecretExpiredEventData, - KeyVaultAccessPolicyChangedEventData, - MachineLearningServicesModelRegisteredEventData, - MachineLearningServicesModelDeployedEventData, - MachineLearningServicesRunCompletedEventData, - MachineLearningServicesDatasetDriftDetectedEventData, - MachineLearningServicesRunStatusChangedEventData, - MediaJobStateChangeEventData, - KnownMediaJobState, - MediaJobState, - MediaJobError, - KnownMediaJobErrorCode, - MediaJobErrorCode, - KnownMediaJobErrorCategory, - MediaJobErrorCategory, - KnownMediaJobRetry, - MediaJobRetry, - MediaJobErrorDetail, - MediaJobOutput, - MediaJobOutputAsset, - MediaJobOutputProgressEventData, - MediaJobOutputStateChangeEventData, - MediaJobScheduledEventData, - MediaJobProcessingEventData, - MediaJobCancelingEventData, - MediaJobFinishedEventData, - MediaJobCanceledEventData, - MediaJobErroredEventData, - MediaJobOutputCanceledEventData, - MediaJobOutputCancelingEventData, - MediaJobOutputErroredEventData, - MediaJobOutputFinishedEventData, - MediaJobOutputProcessingEventData, - MediaJobOutputScheduledEventData, - MediaLiveEventEncoderConnectedEventData, - MediaLiveEventConnectionRejectedEventData, - MediaLiveEventEncoderDisconnectedEventData, - MediaLiveEventIncomingStreamReceivedEventData, - MediaLiveEventIncomingStreamsOutOfSyncEventData, - MediaLiveEventIncomingVideoStreamsOutOfSyncEventData, - MediaLiveEventIncomingDataChunkDroppedEventData, - MediaLiveEventIngestHeartbeatEventData, - MediaLiveEventTrackDiscontinuityDetectedEventData, - MediaLiveEventChannelArchiveHeartbeatEventData, - PolicyInsightsPolicyStateCreatedEventData, - PolicyInsightsPolicyStateChangedEventData, - PolicyInsightsPolicyStateDeletedEventData, - RedisPatchingCompletedEventData, - RedisScalingCompletedEventData, - RedisExportRDBCompletedEventData, - RedisImportRDBCompletedEventData, - ResourceWriteSuccessEventData, - ResourceAuthorization, - ResourceHttpRequest, - ResourceWriteFailureEventData, - ResourceWriteCancelEventData, - ResourceDeleteSuccessEventData, - ResourceDeleteFailureEventData, - ResourceDeleteCancelEventData, - ResourceActionSuccessEventData, - ResourceActionFailureEventData, - ResourceActionCancelEventData, - ServiceBusActiveMessagesAvailableWithNoListenersEventData, - ServiceBusDeadletterMessagesAvailableWithNoListenersEventData, - ServiceBusActiveMessagesAvailablePeriodicNotificationsEventData, - ServiceBusDeadletterMessagesAvailablePeriodicNotificationsEventData, - SignalRServiceClientConnectionConnectedEventData, - SignalRServiceClientConnectionDisconnectedEventData, - StorageBlobCreatedEventData, - KnownStorageBlobAccessTier, - StorageBlobAccessTier, - StorageBlobDeletedEventData, - StorageDirectoryCreatedEventData, - StorageDirectoryDeletedEventData, - StorageBlobRenamedEventData, - StorageDirectoryRenamedEventData, - StorageLifecyclePolicyCompletedEventData, - StorageLifecyclePolicyActionSummaryDetail, - StorageBlobTierChangedEventData, - StorageAsyncOperationInitiatedEventData, - StorageBlobInventoryPolicyCompletedEventData, - StorageTaskCompletedEventData, - KnownStorageTaskCompletedStatus, - StorageTaskCompletedStatus, - StorageTaskQueuedEventData, - StorageTaskAssignmentQueuedEventData, - StorageTaskAssignmentCompletedEventData, - KnownStorageTaskAssignmentCompletedStatus, - StorageTaskAssignmentCompletedStatus, - AppEventTypeDetail, - KnownAppAction, - AppAction, - WebAppUpdatedEventData, - WebBackupOperationStartedEventData, - WebBackupOperationCompletedEventData, - WebBackupOperationFailedEventData, - WebRestoreOperationStartedEventData, - WebRestoreOperationCompletedEventData, - WebRestoreOperationFailedEventData, - WebSlotSwapStartedEventData, - WebSlotSwapCompletedEventData, - WebSlotSwapFailedEventData, - WebSlotSwapWithPreviewStartedEventData, - WebSlotSwapWithPreviewCancelledEventData, - WebAppServicePlanUpdatedEventData, - AppServicePlanEventTypeDetail, - KnownStampKind, - StampKind, - KnownAppServicePlanAction, - AppServicePlanAction, - KnownAsyncStatus, - AsyncStatus, - WebAppServicePlanUpdatedEventDataSku, - SubscriptionValidationEventData, - SubscriptionValidationResponse, - SubscriptionDeletedEventData, - EventGridMqttClientEventData, - EventGridMqttClientCreatedOrUpdatedEventData, - KnownEventGridMqttClientState, - EventGridMqttClientState, - EventGridMqttClientDeletedEventData, - EventGridMqttClientSessionConnectedEventData, - EventGridMqttClientSessionDisconnectedEventData, - KnownEventGridMqttClientDisconnectionReason, - EventGridMqttClientDisconnectionReason, - ResourceNotificationsResourceUpdatedEventData, - ResourceNotificationsResourceUpdatedDetails, - ResourceNotificationsOperationalDetails, - ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventData, - ResourceNotificationsHealthResourcesAnnotatedEventData, - ResourceNotificationsResourceManagementCreatedOrUpdatedEventData, - ResourceNotificationsResourceDeletedEventData, - ResourceNotificationsResourceDeletedDetails, - ResourceNotificationsResourceManagementDeletedEventData, - ServiceApiVersions, - MediaJobOutputUnion, -} from "./models/index.js"; diff --git a/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/models/index.ts b/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/models/index.ts deleted file mode 100644 index 78293adc511b..000000000000 --- a/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/models/index.ts +++ /dev/null @@ -1,360 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -export { - ApiCenterApiDefinitionAddedEventData, - ApiCenterApiSpecification, - ApiCenterApiDefinitionUpdatedEventData, - ApiManagementUserCreatedEventData, - ApiManagementUserUpdatedEventData, - ApiManagementUserDeletedEventData, - ApiManagementSubscriptionCreatedEventData, - ApiManagementSubscriptionUpdatedEventData, - ApiManagementSubscriptionDeletedEventData, - ApiManagementProductCreatedEventData, - ApiManagementProductUpdatedEventData, - ApiManagementProductDeletedEventData, - ApiManagementApiCreatedEventData, - ApiManagementApiUpdatedEventData, - ApiManagementApiDeletedEventData, - ApiManagementApiReleaseCreatedEventData, - ApiManagementApiReleaseUpdatedEventData, - ApiManagementApiReleaseDeletedEventData, - ApiManagementGatewayCreatedEventData, - ApiManagementGatewayUpdatedEventData, - ApiManagementGatewayDeletedEventData, - ApiManagementGatewayHostnameConfigurationCreatedEventData, - ApiManagementGatewayHostnameConfigurationUpdatedEventData, - ApiManagementGatewayHostnameConfigurationDeletedEventData, - ApiManagementGatewayCertificateAuthorityCreatedEventData, - ApiManagementGatewayCertificateAuthorityUpdatedEventData, - ApiManagementGatewayCertificateAuthorityDeletedEventData, - ApiManagementGatewayApiAddedEventData, - ApiManagementGatewayApiRemovedEventData, - AppConfigurationKeyValueModifiedEventData, - AppConfigurationKeyValueDeletedEventData, - AppConfigurationSnapshotEventData, - AppConfigurationSnapshotCreatedEventData, - AppConfigurationSnapshotModifiedEventData, - AvsPrivateCloudEventData, - AvsPrivateCloudUpdatingEventData, - AvsPrivateCloudUpdatedEventData, - AvsPrivateCloudFailedEventData, - AvsClusterEventData, - AvsClusterCreatedEventData, - AvsClusterDeletedEventData, - AvsClusterUpdatingEventData, - AvsClusterUpdatedEventData, - AvsClusterFailedEventData, - AvsScriptExecutionEventData, - AvsScriptExecutionStartedEventData, - AvsScriptExecutionFinishedEventData, - AvsScriptExecutionCancelledEventData, - AvsScriptExecutionFailedEventData, - AcsIncomingCallEventData, - CommunicationIdentifierModel, - KnownCommunicationIdentifierModelKind, - CommunicationIdentifierModelKind, - CommunicationUserIdentifierModel, - PhoneNumberIdentifierModel, - MicrosoftTeamsUserIdentifierModel, - KnownCommunicationCloudEnvironmentModel, - CommunicationCloudEnvironmentModel, - MicrosoftTeamsAppIdentifierModel, - AcsIncomingCallCustomContext, - AcsUserDisconnectedEventData, - AcsChatEventBase, - AcsChatEventInThreadBase, - AcsChatMessageEventBase, - AcsChatMessageReceivedEventData, - AcsChatMessageEventInThreadBase, - AcsChatMessageReceivedInThreadEventData, - AcsChatMessageEditedEventData, - AcsChatMessageEditedInThreadEventData, - AcsChatMessageDeletedEventData, - AcsChatMessageDeletedInThreadEventData, - AcsChatThreadEventBase, - AcsChatThreadCreatedWithUserEventData, - AcsChatThreadParticipant, - AcsChatThreadEventInThreadBase, - AcsChatThreadCreatedEventData, - AcsChatThreadWithUserDeletedEventData, - AcsChatThreadDeletedEventData, - AcsChatThreadPropertiesUpdatedPerUserEventData, - AcsChatThreadPropertiesUpdatedEventData, - AcsChatParticipantAddedToThreadWithUserEventData, - AcsChatParticipantRemovedFromThreadWithUserEventData, - AcsChatParticipantAddedToThreadEventData, - AcsChatParticipantRemovedFromThreadEventData, - AcsSmsEventBase, - AcsSmsDeliveryReportReceivedEventData, - AcsSmsDeliveryAttempt, - AcsSmsReceivedEventData, - AcsRecordingFileStatusUpdatedEventData, - AcsRecordingStorageInfo, - AcsRecordingChunkInfo, - KnownRecordingContentType, - RecordingContentType, - KnownRecordingChannelType, - RecordingChannelType, - KnownRecordingFormatType, - RecordingFormatType, - AcsEmailDeliveryReportReceivedEventData, - KnownAcsEmailDeliveryReportStatus, - AcsEmailDeliveryReportStatus, - AcsEmailDeliveryReportStatusDetails, - AcsEmailEngagementTrackingReportReceivedEventData, - KnownAcsUserEngagement, - AcsUserEngagement, - AcsRouterEventData, - AcsRouterJobEventData, - AcsRouterJobCancelledEventData, - AcsRouterJobClassificationFailedEventData, - AcsRouterCommunicationError, - AcsRouterJobClassifiedEventData, - AcsRouterQueueDetails, - AcsRouterWorkerSelector, - KnownAcsRouterLabelOperator, - AcsRouterLabelOperator, - KnownAcsRouterWorkerSelectorState, - AcsRouterWorkerSelectorState, - AcsRouterJobClosedEventData, - AcsRouterJobCompletedEventData, - AcsRouterJobDeletedEventData, - AcsRouterJobExceptionTriggeredEventData, - AcsRouterJobQueuedEventData, - AcsRouterJobReceivedEventData, - KnownAcsRouterJobStatus, - AcsRouterJobStatus, - AcsRouterJobSchedulingFailedEventData, - AcsRouterJobUnassignedEventData, - AcsRouterJobWaitingForActivationEventData, - AcsRouterJobWorkerSelectorsExpiredEventData, - AcsRouterWorkerEventData, - AcsRouterWorkerDeletedEventData, - AcsRouterWorkerDeregisteredEventData, - AcsRouterWorkerOfferAcceptedEventData, - AcsRouterWorkerOfferDeclinedEventData, - AcsRouterWorkerOfferExpiredEventData, - AcsRouterWorkerOfferIssuedEventData, - AcsRouterWorkerOfferRevokedEventData, - AcsRouterWorkerRegisteredEventData, - AcsRouterChannelConfiguration, - AcsRouterWorkerUpdatedEventData, - KnownAcsRouterUpdatedWorkerProperty, - AcsRouterUpdatedWorkerProperty, - AcsMessageEventData, - AcsMessageChannelEventError, - AcsMessageDeliveryStatusUpdatedEventData, - KnownAcsMessageDeliveryStatus, - AcsMessageDeliveryStatus, - KnownAcsMessageChannelKind, - AcsMessageChannelKind, - AcsMessageReceivedEventData, - AcsMessageMediaContent, - AcsMessageContext, - AcsMessageButtonContent, - AcsMessageInteractiveContent, - KnownAcsInteractiveReplyKind, - AcsInteractiveReplyKind, - AcsMessageInteractiveButtonReplyContent, - AcsMessageInteractiveListReplyContent, - ContainerRegistryEventData, - ContainerRegistryEventTarget, - ContainerRegistryEventRequest, - ContainerRegistryEventActor, - ContainerRegistryEventSource, - ContainerRegistryEventConnectedRegistry, - ContainerRegistryImagePushedEventData, - ContainerRegistryImageDeletedEventData, - ContainerRegistryArtifactEventData, - ContainerRegistryArtifactEventTarget, - ContainerRegistryChartPushedEventData, - ContainerRegistryChartDeletedEventData, - ContainerServiceNewKubernetesVersionAvailableEventData, - ContainerServiceClusterSupportEventData, - ContainerServiceClusterSupportEndedEventData, - ContainerServiceClusterSupportEndingEventData, - ContainerServiceNodePoolRollingEventData, - ContainerServiceNodePoolRollingStartedEventData, - ContainerServiceNodePoolRollingSucceededEventData, - ContainerServiceNodePoolRollingFailedEventData, - DataBoxCopyStartedEventData, - KnownDataBoxStageName, - DataBoxStageName, - DataBoxCopyCompletedEventData, - DataBoxOrderCompletedEventData, - EventHubCaptureFileCreatedEventData, - MapsGeofenceEvent, - MapsGeofenceGeometry, - MapsGeofenceEnteredEventData, - MapsGeofenceExitedEventData, - MapsGeofenceResultEventData, - DeviceLifeCycleEvent, - DeviceTwinInfo, - DeviceTwinInfoProperties, - DeviceTwin, - DeviceTwinMetadata, - DeviceTwinInfoX509Thumbprint, - DeviceConnectionStateEvent, - DeviceConnectionStateEventInfo, - DeviceTelemetryEvent, - IotHubDeviceCreatedEventData, - IotHubDeviceDeletedEventData, - IotHubDeviceConnectedEventData, - IotHubDeviceDisconnectedEventData, - IotHubDeviceTelemetryEventData, - HealthcareFhirResourceCreatedEventData, - KnownHealthcareFhirResourceType, - HealthcareFhirResourceType, - HealthcareFhirResourceUpdatedEventData, - HealthcareFhirResourceDeletedEventData, - HealthcareDicomImageCreatedEventData, - HealthcareDicomImageDeletedEventData, - HealthcareDicomImageUpdatedEventData, - KeyVaultCertificateNewVersionCreatedEventData, - KeyVaultCertificateNearExpiryEventData, - KeyVaultCertificateExpiredEventData, - KeyVaultKeyNewVersionCreatedEventData, - KeyVaultKeyNearExpiryEventData, - KeyVaultKeyExpiredEventData, - KeyVaultSecretNewVersionCreatedEventData, - KeyVaultSecretNearExpiryEventData, - KeyVaultSecretExpiredEventData, - KeyVaultAccessPolicyChangedEventData, - MachineLearningServicesModelRegisteredEventData, - MachineLearningServicesModelDeployedEventData, - MachineLearningServicesRunCompletedEventData, - MachineLearningServicesDatasetDriftDetectedEventData, - MachineLearningServicesRunStatusChangedEventData, - MediaJobStateChangeEventData, - KnownMediaJobState, - MediaJobState, - MediaJobError, - KnownMediaJobErrorCode, - MediaJobErrorCode, - KnownMediaJobErrorCategory, - MediaJobErrorCategory, - KnownMediaJobRetry, - MediaJobRetry, - MediaJobErrorDetail, - MediaJobOutput, - MediaJobOutputAsset, - MediaJobOutputProgressEventData, - MediaJobOutputStateChangeEventData, - MediaJobScheduledEventData, - MediaJobProcessingEventData, - MediaJobCancelingEventData, - MediaJobFinishedEventData, - MediaJobCanceledEventData, - MediaJobErroredEventData, - MediaJobOutputCanceledEventData, - MediaJobOutputCancelingEventData, - MediaJobOutputErroredEventData, - MediaJobOutputFinishedEventData, - MediaJobOutputProcessingEventData, - MediaJobOutputScheduledEventData, - MediaLiveEventEncoderConnectedEventData, - MediaLiveEventConnectionRejectedEventData, - MediaLiveEventEncoderDisconnectedEventData, - MediaLiveEventIncomingStreamReceivedEventData, - MediaLiveEventIncomingStreamsOutOfSyncEventData, - MediaLiveEventIncomingVideoStreamsOutOfSyncEventData, - MediaLiveEventIncomingDataChunkDroppedEventData, - MediaLiveEventIngestHeartbeatEventData, - MediaLiveEventTrackDiscontinuityDetectedEventData, - MediaLiveEventChannelArchiveHeartbeatEventData, - PolicyInsightsPolicyStateCreatedEventData, - PolicyInsightsPolicyStateChangedEventData, - PolicyInsightsPolicyStateDeletedEventData, - RedisPatchingCompletedEventData, - RedisScalingCompletedEventData, - RedisExportRDBCompletedEventData, - RedisImportRDBCompletedEventData, - ResourceWriteSuccessEventData, - ResourceAuthorization, - ResourceHttpRequest, - ResourceWriteFailureEventData, - ResourceWriteCancelEventData, - ResourceDeleteSuccessEventData, - ResourceDeleteFailureEventData, - ResourceDeleteCancelEventData, - ResourceActionSuccessEventData, - ResourceActionFailureEventData, - ResourceActionCancelEventData, - ServiceBusActiveMessagesAvailableWithNoListenersEventData, - ServiceBusDeadletterMessagesAvailableWithNoListenersEventData, - ServiceBusActiveMessagesAvailablePeriodicNotificationsEventData, - ServiceBusDeadletterMessagesAvailablePeriodicNotificationsEventData, - SignalRServiceClientConnectionConnectedEventData, - SignalRServiceClientConnectionDisconnectedEventData, - StorageBlobCreatedEventData, - KnownStorageBlobAccessTier, - StorageBlobAccessTier, - StorageBlobDeletedEventData, - StorageDirectoryCreatedEventData, - StorageDirectoryDeletedEventData, - StorageBlobRenamedEventData, - StorageDirectoryRenamedEventData, - StorageLifecyclePolicyCompletedEventData, - StorageLifecyclePolicyActionSummaryDetail, - StorageBlobTierChangedEventData, - StorageAsyncOperationInitiatedEventData, - StorageBlobInventoryPolicyCompletedEventData, - StorageTaskCompletedEventData, - KnownStorageTaskCompletedStatus, - StorageTaskCompletedStatus, - StorageTaskQueuedEventData, - StorageTaskAssignmentQueuedEventData, - StorageTaskAssignmentCompletedEventData, - KnownStorageTaskAssignmentCompletedStatus, - StorageTaskAssignmentCompletedStatus, - AppEventTypeDetail, - KnownAppAction, - AppAction, - WebAppUpdatedEventData, - WebBackupOperationStartedEventData, - WebBackupOperationCompletedEventData, - WebBackupOperationFailedEventData, - WebRestoreOperationStartedEventData, - WebRestoreOperationCompletedEventData, - WebRestoreOperationFailedEventData, - WebSlotSwapStartedEventData, - WebSlotSwapCompletedEventData, - WebSlotSwapFailedEventData, - WebSlotSwapWithPreviewStartedEventData, - WebSlotSwapWithPreviewCancelledEventData, - WebAppServicePlanUpdatedEventData, - AppServicePlanEventTypeDetail, - KnownStampKind, - StampKind, - KnownAppServicePlanAction, - AppServicePlanAction, - KnownAsyncStatus, - AsyncStatus, - WebAppServicePlanUpdatedEventDataSku, - SubscriptionValidationEventData, - SubscriptionValidationResponse, - SubscriptionDeletedEventData, - EventGridMqttClientEventData, - EventGridMqttClientCreatedOrUpdatedEventData, - KnownEventGridMqttClientState, - EventGridMqttClientState, - EventGridMqttClientDeletedEventData, - EventGridMqttClientSessionConnectedEventData, - EventGridMqttClientSessionDisconnectedEventData, - KnownEventGridMqttClientDisconnectionReason, - EventGridMqttClientDisconnectionReason, - ResourceNotificationsResourceUpdatedEventData, - ResourceNotificationsResourceUpdatedDetails, - ResourceNotificationsOperationalDetails, - ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventData, - ResourceNotificationsHealthResourcesAnnotatedEventData, - ResourceNotificationsResourceManagementCreatedOrUpdatedEventData, - ResourceNotificationsResourceDeletedEventData, - ResourceNotificationsResourceDeletedDetails, - ResourceNotificationsResourceManagementDeletedEventData, - ServiceApiVersions, - MediaJobOutputUnion, -} from "./models.js"; -// export * from "./options"; diff --git a/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/models/models.ts b/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/models/models.ts deleted file mode 100644 index 2132b73c4f94..000000000000 --- a/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/models/models.ts +++ /dev/null @@ -1,4560 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** Schema of the data property of an EventGridEvent for a Microsoft.ApiCenter.ApiDefinitionAdded event. */ -export interface ApiCenterApiDefinitionAddedEventData { - /** API definition title. */ - title?: string; - /** API definition description. */ - description?: string; - /** API definition specification. */ - specification: ApiCenterApiSpecification; -} - -/** API specification details. */ -export interface ApiCenterApiSpecification { - /** Specification name. */ - name?: string; - /** Specification version. */ - version?: string; -} - -/** Schema of the data property of an EventGridEvent for a Microsoft.ApiCenter.ApiDefinitionUpdated event. */ -export interface ApiCenterApiDefinitionUpdatedEventData { - /** API definition title. */ - title?: string; - /** API definition description. */ - description?: string; - /** API definition specification. */ - specification: ApiCenterApiSpecification; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.UserCreated event. */ -export interface ApiManagementUserCreatedEventData { - /** The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type. Uses the format, `/subscriptions//resourceGroups//Microsoft.ApiManagement/service///` */ - resourceUri?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.UserUpdated event. */ -export interface ApiManagementUserUpdatedEventData { - /** The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type. Uses the format, `/subscriptions//resourceGroups//Microsoft.ApiManagement/service///` */ - resourceUri?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.UserDeleted event. */ -export interface ApiManagementUserDeletedEventData { - /** The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type. Uses the format, `/subscriptions//resourceGroups//Microsoft.ApiManagement/service///` */ - resourceUri?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.SubscriptionCreated event. */ -export interface ApiManagementSubscriptionCreatedEventData { - /** The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type. Uses the format, `/subscriptions//resourceGroups//Microsoft.ApiManagement/service///` */ - resourceUri?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.SubscriptionUpdated event. */ -export interface ApiManagementSubscriptionUpdatedEventData { - /** The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type. Uses the format, `/subscriptions//resourceGroups//Microsoft.ApiManagement/service///` */ - resourceUri?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.SubscriptionDeleted event. */ -export interface ApiManagementSubscriptionDeletedEventData { - /** The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type. Uses the format, `/subscriptions//resourceGroups//Microsoft.ApiManagement/service///` */ - resourceUri?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.ProductCreated event. */ -export interface ApiManagementProductCreatedEventData { - /** The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type. Uses the format, `/subscriptions//resourceGroups//Microsoft.ApiManagement/service///` */ - resourceUri?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.ProductUpdated event. */ -export interface ApiManagementProductUpdatedEventData { - /** The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type. Uses the format, `/subscriptions//resourceGroups//Microsoft.ApiManagement/service///` */ - resourceUri?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.ProductDeleted event. */ -export interface ApiManagementProductDeletedEventData { - /** The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type. Uses the format, `/subscriptions//resourceGroups//Microsoft.ApiManagement/service///` */ - resourceUri?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.APICreated event. */ -export interface ApiManagementApiCreatedEventData { - /** The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type. Uses the format, `/subscriptions//resourceGroups//Microsoft.ApiManagement/service///` */ - resourceUri?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.APIUpdated event. */ -export interface ApiManagementApiUpdatedEventData { - /** The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type. Uses the format, `/subscriptions//resourceGroups//Microsoft.ApiManagement/service///` */ - resourceUri?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.APIDeleted event. */ -export interface ApiManagementApiDeletedEventData { - /** The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type. Uses the format, `/subscriptions//resourceGroups//Microsoft.ApiManagement/service///` */ - resourceUri?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.APIReleaseCreated event. */ -export interface ApiManagementApiReleaseCreatedEventData { - /** The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type. Uses the format, `/subscriptions//resourceGroups//Microsoft.ApiManagement/service///` */ - resourceUri?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.APIReleaseUpdated event. */ -export interface ApiManagementApiReleaseUpdatedEventData { - /** The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type. Uses the format, `/subscriptions//resourceGroups//Microsoft.ApiManagement/service///` */ - resourceUri?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.APIReleaseDeleted event. */ -export interface ApiManagementApiReleaseDeletedEventData { - /** The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type. Uses the format, `/subscriptions//resourceGroups//Microsoft.ApiManagement/service///` */ - resourceUri?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.GatewayCreated event. */ -export interface ApiManagementGatewayCreatedEventData { - /** The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type. Uses the format, `/subscriptions//resourceGroups//Microsoft.ApiManagement/service//gateways/` */ - resourceUri?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.GatewayUpdated event. */ -export interface ApiManagementGatewayUpdatedEventData { - /** The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type. Uses the format, `/subscriptions//resourceGroups//Microsoft.ApiManagement/service//gateways/` */ - resourceUri?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.GatewayDeleted event. */ -export interface ApiManagementGatewayDeletedEventData { - /** The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type. Uses the format, `/subscriptions//resourceGroups//Microsoft.ApiManagement/service//gateways/` */ - resourceUri?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.GatewayHostnameConfigurationCreated event. */ -export interface ApiManagementGatewayHostnameConfigurationCreatedEventData { - /** The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type. Uses the format, `/subscriptions//resourceGroups//Microsoft.ApiManagement/service//gateways//hostnameConfigurations/` */ - resourceUri?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.GatewayHostnameConfigurationUpdated event. */ -export interface ApiManagementGatewayHostnameConfigurationUpdatedEventData { - /** The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type. Uses the format, `/subscriptions//resourceGroups//Microsoft.ApiManagement/service//gateways//hostnameConfigurations/` */ - resourceUri?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.GatewayHostnameConfigurationDeleted event. */ -export interface ApiManagementGatewayHostnameConfigurationDeletedEventData { - /** The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type. Uses the format, `/subscriptions//resourceGroups//Microsoft.ApiManagement/service//gateways//hostnameConfigurations/` */ - resourceUri?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.GatewayCertificateAuthorityCreated event. */ -export interface ApiManagementGatewayCertificateAuthorityCreatedEventData { - /** The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type. Uses the format, `/subscriptions//resourceGroups//Microsoft.ApiManagement/service//gateways//certificateAuthorities/` */ - resourceUri?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.GatewayCertificateAuthorityUpdated event. */ -export interface ApiManagementGatewayCertificateAuthorityUpdatedEventData { - /** The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type. Uses the format, `/subscriptions//resourceGroups//Microsoft.ApiManagement/service//gateways//certificateAuthorities/` */ - resourceUri?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.GatewayCertificateAuthorityDeleted event. */ -export interface ApiManagementGatewayCertificateAuthorityDeletedEventData { - /** The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type. Uses the format, `/subscriptions//resourceGroups//Microsoft.ApiManagement/service//gateways//certificateAuthorities/` */ - resourceUri?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.GatewayAPIAdded event. */ -export interface ApiManagementGatewayApiAddedEventData { - /** The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type. Uses the format, `/subscriptions//resourceGroups//Microsoft.ApiManagement/service//gateways//apis/` */ - resourceUri?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.GatewayAPIRemoved event. */ -export interface ApiManagementGatewayApiRemovedEventData { - /** The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type. Uses the format, `/subscriptions//resourceGroups//Microsoft.ApiManagement/service//gateways//apis/` */ - resourceUri?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.AppConfiguration.KeyValueModified event. */ -export interface AppConfigurationKeyValueModifiedEventData { - /** The key used to identify the key-value that was modified. */ - key?: string; - /** The label, if any, used to identify the key-value that was modified. */ - label?: string; - /** The etag representing the new state of the key-value. */ - etag?: string; - /** The sync token representing the server state after the event. */ - syncToken?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.AppConfiguration.KeyValueDeleted event. */ -export interface AppConfigurationKeyValueDeletedEventData { - /** The key used to identify the key-value that was deleted. */ - key?: string; - /** The label, if any, used to identify the key-value that was deleted. */ - label?: string; - /** The etag representing the key-value that was deleted. */ - etag?: string; - /** The sync token representing the server state after the event. */ - syncToken?: string; -} - -/** Schema of common properties of snapshot events */ -export interface AppConfigurationSnapshotEventData { - /** The name of the snapshot. */ - name?: string; - /** The etag representing the new state of the snapshot. */ - etag?: string; - /** The sync token representing the server state after the event. */ - syncToken?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.AppConfiguration.SnapshotCreated event. */ -export interface AppConfigurationSnapshotCreatedEventData - extends AppConfigurationSnapshotEventData {} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.AppConfiguration.SnapshotModified event. */ -export interface AppConfigurationSnapshotModifiedEventData - extends AppConfigurationSnapshotEventData {} - -/** Schema of the Data property of an EventGridEvent for Microsoft.AVS/privateClouds events. */ -export interface AvsPrivateCloudEventData { - /** Id of the operation that caused this event. */ - operationId?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.AVS.PrivateCloudUpdating event. */ -export interface AvsPrivateCloudUpdatingEventData extends AvsPrivateCloudEventData {} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.AVS.PrivateCloudUpdated event. */ -export interface AvsPrivateCloudUpdatedEventData extends AvsPrivateCloudEventData {} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.AVS.PrivateCloudFailed event. */ -export interface AvsPrivateCloudFailedEventData extends AvsPrivateCloudEventData { - /** Failure reason of an event. */ - failureMessage?: string; -} - -/** Schema of the Data property of an EventGridEvent for Microsoft.AVS/clusters events. */ -export interface AvsClusterEventData { - /** Id of the operation that caused this event. */ - operationId?: string; - /** Hosts added to the cluster in this event, if any. */ - addedHostNames?: string[]; - /** Hosts removed from the cluster in this event, if any. */ - removedHostNames?: string[]; - /** Hosts in Maintenance mode in the cluster, if any. */ - inMaintenanceHostNames?: string[]; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.AVS.ClusterCreated event. */ -export interface AvsClusterCreatedEventData extends AvsClusterEventData {} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.AVS.ClusterDeleted event. */ -export interface AvsClusterDeletedEventData extends AvsClusterEventData {} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.AVS.ClusterUpdating event. */ -export interface AvsClusterUpdatingEventData extends AvsClusterEventData {} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.AVS.ClusterUpdated event. */ -export interface AvsClusterUpdatedEventData extends AvsClusterEventData {} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.AVS.ClusterFailed event. */ -export interface AvsClusterFailedEventData extends AvsClusterEventData { - /** Failure reason of an event. */ - failureMessage?: string; -} - -/** Schema of the Data property of an EventGridEvent for Microsoft.AVS/scriptExecutions events. */ -export interface AvsScriptExecutionEventData { - /** Id of the operation that caused this event. */ - operationId?: string; - /** Cmdlet referenced in the execution that caused this event. */ - cmdletId?: string; - /** Stdout outputs from the execution, if any. */ - output?: string[]; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.AVS.ScriptExecutionStarted event. */ -export interface AvsScriptExecutionStartedEventData extends AvsScriptExecutionEventData {} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.AVS.ScriptExecutionFinished event. */ -export interface AvsScriptExecutionFinishedEventData extends AvsScriptExecutionEventData { - /** Named outputs of completed execution, if any. */ - namedOutputs: Record; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.AVS.ScriptExecutionCancelled event. */ -export interface AvsScriptExecutionCancelledEventData extends AvsScriptExecutionEventData {} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.AVS.ScriptExecutionFailed event. */ -export interface AvsScriptExecutionFailedEventData extends AvsScriptExecutionEventData { - /** Failure reason of an event. */ - failureMessage?: string; -} - -/** Schema of the Data property of an EventGridEvent for an Microsoft.Communication.IncomingCall event */ -export interface AcsIncomingCallEventData { - /** The communication identifier of the target user. */ - toCommunicationIdentifier: CommunicationIdentifierModel; - /** The communication identifier of the user who initiated the call. */ - fromCommunicationIdentifier: CommunicationIdentifierModel; - /** The Id of the server call */ - serverCallId?: string; - /** Display name of caller. */ - callerDisplayName?: string; - /** Custom Context of Incoming Call */ - customContext: AcsIncomingCallCustomContext; - /** Signed incoming call context. */ - incomingCallContext?: string; - /** CorrelationId (CallId). */ - correlationId?: string; -} - -/** Identifies a participant in Azure Communication services. A participant is, for example, a phone number or an Azure communication user. This model must be interpreted as a union: Apart from rawId, at most one further property may be set. */ -export interface CommunicationIdentifierModel { - /** The identifier kind. Only required in responses. */ - kind: CommunicationIdentifierModelKind; - /** Raw Id of the identifier. Optional in requests, required in responses. */ - rawId?: string; - /** The communication user. */ - communicationUser: CommunicationUserIdentifierModel; - /** The phone number. */ - phoneNumber: PhoneNumberIdentifierModel; - /** The Microsoft Teams user. */ - microsoftTeamsUser: MicrosoftTeamsUserIdentifierModel; - /** The Microsoft Teams application. */ - microsoftTeamsApp: MicrosoftTeamsAppIdentifierModel; -} - -/** Known values of {@link CommunicationIdentifierModelKind} that the service accepts. */ -export enum KnownCommunicationIdentifierModelKind { - /** unknown */ - unknown = "unknown", - /** communicationUser */ - communicationUser = "communicationUser", - /** phoneNumber */ - phoneNumber = "phoneNumber", - /** microsoftTeamsUser */ - microsoftTeamsUser = "microsoftTeamsUser", -} - -/** - * Communication model identifier kind - * {@link KnownCommunicationIdentifierModelKind} can be used interchangeably with CommunicationIdentifierModelKind, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **unknown** - * **communicationUser** - * **phoneNumber** - * **microsoftTeamsUser** - */ -export type CommunicationIdentifierModelKind = string; - -/** A user that got created with an Azure Communication Services resource. */ -export interface CommunicationUserIdentifierModel { - /** The Id of the communication user. */ - id: string; -} - -/** A phone number. */ -export interface PhoneNumberIdentifierModel { - /** The phone number in E.164 format. */ - value: string; -} - -/** A Microsoft Teams user. */ -export interface MicrosoftTeamsUserIdentifierModel { - /** The Id of the Microsoft Teams user. If not anonymous, this is the AAD object Id of the user. */ - userId: string; - /** True if the Microsoft Teams user is anonymous. By default false if missing. */ - isAnonymous?: boolean; - /** The cloud that the Microsoft Teams user belongs to. By default 'public' if missing. */ - cloud: CommunicationCloudEnvironmentModel; -} - -/** Known values of {@link CommunicationCloudEnvironmentModel} that the service accepts. */ -export enum KnownCommunicationCloudEnvironmentModel { - /** public */ - "public" = "public", - /** dod */ - dod = "dod", - /** gcch */ - gcch = "gcch", -} - -/** - * Communication cloud environment model. - * {@link KnownCommunicationCloudEnvironmentModel} can be used interchangeably with CommunicationCloudEnvironmentModel, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **public** - * **dod** - * **gcch** - */ -export type CommunicationCloudEnvironmentModel = string; - -/** A Microsoft Teams application. */ -export interface MicrosoftTeamsAppIdentifierModel { - /** The Id of the Microsoft Teams application */ - appId: string; - /** The cloud that the Microsoft Teams application belongs to. By default 'public' if missing. */ - cloud: CommunicationCloudEnvironmentModel; -} - -/** Custom Context of Incoming Call */ -export interface AcsIncomingCallCustomContext { - /** Sip Headers for incoming call */ - sipHeaders: Record; - /** Voip Headers for incoming call */ - voipHeaders: Record; -} - -/** Schema of the Data property of an EventGridEvent for an Microsoft.Communication.UserDisconnected event. */ -export interface AcsUserDisconnectedEventData { - /** The communication identifier of the user who was disconnected */ - userCommunicationIdentifier: CommunicationIdentifierModel; -} - -/** Schema of common properties of all chat events */ -export interface AcsChatEventBase { - /** The communication identifier of the target user */ - recipientCommunicationIdentifier: CommunicationIdentifierModel; - /** The transaction id will be used as co-relation vector */ - transactionId?: string; - /** The chat thread id */ - threadId?: string; -} - -/** Schema of common properties of all thread-level chat events */ -export interface AcsChatEventInThreadBase { - /** The transaction id will be used as co-relation vector */ - transactionId?: string; - /** The chat thread id */ - threadId?: string; -} - -/** Schema of common properties of all chat message events */ -export interface AcsChatMessageEventBase extends AcsChatEventBase { - /** The chat message id */ - messageId?: string; - /** The communication identifier of the sender */ - senderCommunicationIdentifier: CommunicationIdentifierModel; - /** The display name of the sender */ - senderDisplayName?: string; - /** The original compose time of the message */ - composeTime: Date; - /** The type of the message */ - type?: string; - /** The version of the message */ - version?: number; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatMessageReceived event. */ -export interface AcsChatMessageReceivedEventData extends AcsChatMessageEventBase { - /** The body of the chat message */ - messageBody?: string; - /** The chat message metadata */ - metadata: Record; -} - -/** Schema of common properties of all thread-level chat message events */ -export interface AcsChatMessageEventInThreadBase extends AcsChatEventInThreadBase { - /** The chat message id */ - messageId?: string; - /** The communication identifier of the sender */ - senderCommunicationIdentifier: CommunicationIdentifierModel; - /** The display name of the sender */ - senderDisplayName?: string; - /** The original compose time of the message */ - composeTime: Date; - /** The type of the message */ - type?: string; - /** The version of the message */ - version?: number; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatMessageReceivedInThread event. */ -export interface AcsChatMessageReceivedInThreadEventData extends AcsChatMessageEventInThreadBase { - /** The body of the chat message */ - messageBody?: string; - /** The chat message metadata */ - metadata: Record; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatMessageEdited event. */ -export interface AcsChatMessageEditedEventData extends AcsChatMessageEventBase { - /** The body of the chat message */ - messageBody?: string; - /** The chat message metadata */ - metadata: Record; - /** The time at which the message was edited */ - editTime: Date; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatMessageEditedInThread event. */ -export interface AcsChatMessageEditedInThreadEventData extends AcsChatMessageEventInThreadBase { - /** The body of the chat message */ - messageBody?: string; - /** The chat message metadata */ - metadata: Record; - /** The time at which the message was edited */ - editTime: Date; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatMessageDeleted event. */ -export interface AcsChatMessageDeletedEventData extends AcsChatMessageEventBase { - /** The time at which the message was deleted */ - deleteTime: Date; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatMessageDeletedInThread event. */ -export interface AcsChatMessageDeletedInThreadEventData extends AcsChatMessageEventInThreadBase { - /** The time at which the message was deleted */ - deleteTime: Date; -} - -/** Schema of common properties of all chat thread events */ -export interface AcsChatThreadEventBase extends AcsChatEventBase { - /** The original creation time of the thread */ - createTime: Date; - /** The version of the thread */ - version?: number; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatThreadCreatedWithUser event. */ -export interface AcsChatThreadCreatedWithUserEventData extends AcsChatThreadEventBase { - /** The communication identifier of the user who created the thread */ - createdByCommunicationIdentifier: CommunicationIdentifierModel; - /** The thread properties */ - properties: Record; - /** The thread metadata */ - metadata: Record; - /** The list of properties of participants who are part of the thread */ - participants: AcsChatThreadParticipant[]; -} - -/** Schema of the chat thread participant */ -export interface AcsChatThreadParticipant { - /** The name of the user */ - displayName?: string; - /** The communication identifier of the user */ - participantCommunicationIdentifier: CommunicationIdentifierModel; - /** The metadata of the user */ - metadata: Record; -} - -/** Schema of common properties of all chat thread events */ -export interface AcsChatThreadEventInThreadBase extends AcsChatEventInThreadBase { - /** The original creation time of the thread */ - createTime: Date; - /** The version of the thread */ - version?: number; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatThreadCreated event. */ -export interface AcsChatThreadCreatedEventData extends AcsChatThreadEventInThreadBase { - /** The communication identifier of the user who created the thread */ - createdByCommunicationIdentifier: CommunicationIdentifierModel; - /** The thread properties */ - properties: Record; - /** The thread metadata */ - metadata: Record; - /** The list of properties of participants who are part of the thread */ - participants: AcsChatThreadParticipant[]; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatThreadWithUserDeleted event. */ -export interface AcsChatThreadWithUserDeletedEventData extends AcsChatThreadEventBase { - /** The communication identifier of the user who deleted the thread */ - deletedByCommunicationIdentifier: CommunicationIdentifierModel; - /** The deletion time of the thread */ - deleteTime: Date; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatThreadDeleted event. */ -export interface AcsChatThreadDeletedEventData extends AcsChatThreadEventInThreadBase { - /** The communication identifier of the user who deleted the thread */ - deletedByCommunicationIdentifier: CommunicationIdentifierModel; - /** The deletion time of the thread */ - deleteTime: Date; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatThreadPropertiesUpdatedPerUser event. */ -export interface AcsChatThreadPropertiesUpdatedPerUserEventData extends AcsChatThreadEventBase { - /** The communication identifier of the user who updated the thread properties */ - editedByCommunicationIdentifier: CommunicationIdentifierModel; - /** The time at which the properties of the thread were updated */ - editTime: Date; - /** The thread metadata */ - metadata: Record; - /** The updated thread properties */ - properties: Record; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatThreadPropertiesUpdated event. */ -export interface AcsChatThreadPropertiesUpdatedEventData extends AcsChatThreadEventInThreadBase { - /** The communication identifier of the user who updated the thread properties */ - editedByCommunicationIdentifier: CommunicationIdentifierModel; - /** The time at which the properties of the thread were updated */ - editTime: Date; - /** The updated thread properties */ - properties: Record; - /** The thread metadata */ - metadata: Record; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatParticipantAddedToThreadWithUser event. */ -export interface AcsChatParticipantAddedToThreadWithUserEventData extends AcsChatThreadEventBase { - /** The time at which the user was added to the thread */ - time: Date; - /** The communication identifier of the user who added the user */ - addedByCommunicationIdentifier: CommunicationIdentifierModel; - /** The details of the user who was added */ - participantAdded: AcsChatThreadParticipant; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatParticipantRemovedFromThreadWithUser event. */ -export interface AcsChatParticipantRemovedFromThreadWithUserEventData - extends AcsChatThreadEventBase { - /** The time at which the user was removed to the thread */ - time: Date; - /** The communication identifier of the user who removed the user */ - removedByCommunicationIdentifier: CommunicationIdentifierModel; - /** The details of the user who was removed */ - participantRemoved: AcsChatThreadParticipant; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatThreadParticipantAdded event. */ -export interface AcsChatParticipantAddedToThreadEventData extends AcsChatEventInThreadBase { - /** The time at which the user was added to the thread */ - time: Date; - /** The communication identifier of the user who added the user */ - addedByCommunicationIdentifier: CommunicationIdentifierModel; - /** The details of the user who was added */ - participantAdded: AcsChatThreadParticipant; - /** The version of the thread */ - version?: number; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatThreadParticipantRemoved event. */ -export interface AcsChatParticipantRemovedFromThreadEventData extends AcsChatEventInThreadBase { - /** The time at which the user was removed to the thread */ - time: Date; - /** The communication identifier of the user who removed the user */ - removedByCommunicationIdentifier: CommunicationIdentifierModel; - /** The details of the user who was removed */ - participantRemoved: AcsChatThreadParticipant; - /** The version of the thread */ - version?: number; -} - -/** Schema of common properties of all SMS events */ -export interface AcsSmsEventBase { - /** The identity of the SMS message */ - messageId?: string; - /** The identity of SMS message sender */ - from?: string; - /** The identity of SMS message receiver */ - to?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.SMSDeliveryReportReceived event. */ -export interface AcsSmsDeliveryReportReceivedEventData extends AcsSmsEventBase { - /** Status of Delivery */ - deliveryStatus?: string; - /** Details about Delivery Status */ - deliveryStatusDetails?: string; - /** List of details of delivery attempts made */ - deliveryAttempts: AcsSmsDeliveryAttempt[]; - /** The time at which the SMS delivery report was received */ - receivedTimestamp: Date; - /** Customer Content */ - tag?: string; -} - -/** Schema for details of a delivery attempt */ -export interface AcsSmsDeliveryAttempt { - /** TimeStamp when delivery was attempted */ - timestamp: Date; - /** Number of segments that were successfully delivered */ - segmentsSucceeded?: number; - /** Number of segments whose delivery failed */ - segmentsFailed?: number; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.SMSReceived event. */ -export interface AcsSmsReceivedEventData extends AcsSmsEventBase { - /** The SMS content */ - message?: string; - /** The time at which the SMS was received */ - receivedTimestamp: Date; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RecordingFileStatusUpdated event. */ -export interface AcsRecordingFileStatusUpdatedEventData { - /** The details of recording storage information */ - recordingStorageInfo: AcsRecordingStorageInfo; - /** The time at which the recording started */ - recordingStartTime: Date; - /** The recording duration in milliseconds */ - recordingDurationMs?: number; - /** The recording content type- AudioVideo, or Audio */ - recordingContentType: RecordingContentType; - /** The recording channel type - Mixed, Unmixed */ - recordingChannelType: RecordingChannelType; - /** The recording format type - Mp4, Mp3, Wav */ - recordingFormatType: RecordingFormatType; - /** The reason for ending recording session */ - sessionEndReason?: string; -} - -/** Schema for all properties of Recording Storage Information. */ -export interface AcsRecordingStorageInfo { - /** List of details of recording chunks information */ - recordingChunks: AcsRecordingChunkInfo[]; -} - -/** Schema for all properties of Recording Chunk Information. */ -export interface AcsRecordingChunkInfo { - /** The documentId of the recording chunk */ - documentId?: string; - /** The index of the recording chunk */ - index?: number; - /** The reason for ending the recording chunk */ - endReason?: string; - /** The location of the metadata for this chunk */ - metadataLocation?: string; - /** The location of the content for this chunk */ - contentLocation?: string; - /** The location to delete all chunk storage */ - deleteLocation?: string; -} - -/** Known values of {@link RecordingContentType} that the service accepts. */ -export enum KnownRecordingContentType { - /** AudioVideo */ - AudioVideo = "AudioVideo", - /** Audio */ - Audio = "Audio", -} - -/** - * Recording content type - * {@link KnownRecordingContentType} can be used interchangeably with RecordingContentType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **AudioVideo** - * **Audio** - */ -export type RecordingContentType = string; - -/** Known values of {@link RecordingChannelType} that the service accepts. */ -export enum KnownRecordingChannelType { - /** Mixed */ - Mixed = "Mixed", - /** Unmixed */ - Unmixed = "Unmixed", -} - -/** - * Recording channel type - * {@link KnownRecordingChannelType} can be used interchangeably with RecordingChannelType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Mixed** - * **Unmixed** - */ -export type RecordingChannelType = string; - -/** Known values of {@link RecordingFormatType} that the service accepts. */ -export enum KnownRecordingFormatType { - /** Wav */ - Wav = "Wav", - /** Mp3 */ - Mp3 = "Mp3", - /** Mp4 */ - Mp4 = "Mp4", -} - -/** - * Recording format type - * {@link KnownRecordingFormatType} can be used interchangeably with RecordingFormatType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Wav** - * **Mp3** - * **Mp4** - */ -export type RecordingFormatType = string; - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.EmailDeliveryReportReceived event. */ -export interface AcsEmailDeliveryReportReceivedEventData { - /** The Sender Email Address */ - sender?: string; - /** The recipient Email Address */ - recipient?: string; - /** The Id of the email been sent */ - messageId?: string; - /** The status of the email. Any value other than Delivered is considered failed. */ - status: AcsEmailDeliveryReportStatus; - /** Detailed information about the status if any */ - deliveryStatusDetails: AcsEmailDeliveryReportStatusDetails; - /** The time at which the email delivery report received timestamp */ - deliveryAttemptTimestamp: Date; -} - -/** Known values of {@link AcsEmailDeliveryReportStatus} that the service accepts. */ -export enum KnownAcsEmailDeliveryReportStatus { - /** Bounced */ - Bounced = "Bounced", - /** Delivered */ - Delivered = "Delivered", - /** Failed */ - Failed = "Failed", - /** FilteredSpam */ - FilteredSpam = "FilteredSpam", - /** Quarantined */ - Quarantined = "Quarantined", - /** Suppressed */ - Suppressed = "Suppressed", -} - -/** - * The status of the email. Any value other than Delivered is considered failed. - * {@link KnownAcsEmailDeliveryReportStatus} can be used interchangeably with AcsEmailDeliveryReportStatus, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Bounced** - * **Delivered** - * **Failed** - * **FilteredSpam** - * **Quarantined** - * **Suppressed** - */ -export type AcsEmailDeliveryReportStatus = string; - -/** Detailed information about the status if any */ -export interface AcsEmailDeliveryReportStatusDetails { - /** Detailed status message */ - statusMessage?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.EmailEngagementTrackingReportReceived event. */ -export interface AcsEmailEngagementTrackingReportReceivedEventData { - /** The Sender Email Address */ - sender?: string; - /** The Recipient Email Address */ - recipient?: string; - /** The Id of the email that has been sent */ - messageId?: string; - /** The time at which the user interacted with the email */ - userActionTimestamp: Date; - /** The context of the type of engagement user had with email */ - engagementContext?: string; - /** The user agent interacting with the email */ - userAgent?: string; - /** The type of engagement user have with email */ - engagement: AcsUserEngagement; -} - -/** Known values of {@link AcsUserEngagement} that the service accepts. */ -export enum KnownAcsUserEngagement { - /** view */ - view = "view", - /** click */ - click = "click", -} - -/** - * The type of engagement user have with email. - * {@link KnownAcsUserEngagement} can be used interchangeably with AcsUserEngagement, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **view** - * **click** - */ -export type AcsUserEngagement = string; - -/** Schema of common properties of all Router events */ -export interface AcsRouterEventData { - /** Router Event Job ID */ - jobId?: string; - /** Router Event Channel Reference */ - channelReference?: string; - /** Router Event Channel ID */ - channelId?: string; -} - -/** Schema of common properties of all Router Job events */ -export interface AcsRouterJobEventData extends AcsRouterEventData { - /** Router Job events Queue Id */ - queueId?: string; - /** Router Job events Labels */ - labels: Record; - /** Router Jobs events Tags */ - tags: Record; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterJobCancelled event */ -export interface AcsRouterJobCancelledEventData extends AcsRouterJobEventData { - /** Router Job Note */ - note?: string; - /** Router Job Disposition Code */ - dispositionCode?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterJobClassificationFailed event */ -export interface AcsRouterJobClassificationFailedEventData extends AcsRouterJobEventData { - /** Router Job Classification Policy Id */ - classificationPolicyId?: string; - /** Router Job Classification Failed Errors */ - errors: AcsRouterCommunicationError[]; -} - -/** Router Communication Error */ -export interface AcsRouterCommunicationError { - /** Router Communication Error Code */ - code?: string; - /** Router Communication Error Message */ - message?: string; - /** Router Communication Error Target */ - target?: string; - /** Router Communication Inner Error */ - innererror: AcsRouterCommunicationError; - /** List of Router Communication Errors */ - details: AcsRouterCommunicationError[]; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterJobClassified event */ -export interface AcsRouterJobClassifiedEventData extends AcsRouterJobEventData { - /** Router Job Queue Info */ - queueDetails: AcsRouterQueueDetails; - /** Router Job Classification Policy Id */ - classificationPolicyId?: string; - /** Router Job Priority */ - priority?: number; - /** Router Job Attached Worker Selector */ - attachedWorkerSelectors: AcsRouterWorkerSelector[]; -} - -/** Router Queue Details */ -export interface AcsRouterQueueDetails { - /** Router Queue Id */ - id?: string; - /** Router Queue Name */ - name?: string; - /** Router Queue Labels */ - labels: Record; -} - -/** Router Job Worker Selector */ -export interface AcsRouterWorkerSelector { - /** Router Job Worker Selector Key */ - key?: string; - /** Router Job Worker Selector Label Operator */ - labelOperator: AcsRouterLabelOperator; - /** Router Job Worker Selector Value */ - labelValue: any; - /** Router Job Worker Selector Time to Live in Seconds */ - ttlSeconds: number; - /** Router Job Worker Selector State */ - state: AcsRouterWorkerSelectorState; - /** Router Job Worker Selector Expiration Time */ - expirationTime: Date; -} - -/** Known values of {@link AcsRouterLabelOperator} that the service accepts. */ -export enum KnownAcsRouterLabelOperator { - /** Equal */ - Equal = "Equal", - /** NotEqual */ - NotEqual = "NotEqual", - /** Greater */ - Greater = "Greater", - /** Less */ - Less = "Less", - /** GreaterThanOrEqual */ - GreaterThanOrEqual = "GreaterThanOrEqual", - /** LessThanOrEqual */ - LessThanOrEqual = "LessThanOrEqual", -} - -/** - * Router Job Worker Selector Label Operator - * {@link KnownAcsRouterLabelOperator} can be used interchangeably with AcsRouterLabelOperator, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Equal** - * **NotEqual** - * **Greater** - * **Less** - * **GreaterThanOrEqual** - * **LessThanOrEqual** - */ -export type AcsRouterLabelOperator = string; - -/** Known values of {@link AcsRouterWorkerSelectorState} that the service accepts. */ -export enum KnownAcsRouterWorkerSelectorState { - /** active */ - active = "active", - /** expired */ - expired = "expired", -} - -/** - * Router Worker Selector State - * {@link KnownAcsRouterWorkerSelectorState} can be used interchangeably with AcsRouterWorkerSelectorState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **active** - * **expired** - */ -export type AcsRouterWorkerSelectorState = string; - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterJobClosed event */ -export interface AcsRouterJobClosedEventData extends AcsRouterJobEventData { - /** Router Job Closed Assignment Id */ - assignmentId?: string; - /** Router Job Closed Worker Id */ - workerId?: string; - /** Router Job Closed Disposition Code */ - dispositionCode?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterJobCompleted event */ -export interface AcsRouterJobCompletedEventData extends AcsRouterJobEventData { - /** Router Job Completed Assignment Id */ - assignmentId?: string; - /** Router Job Completed Worker Id */ - workerId?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterJobDeleted event */ -export interface AcsRouterJobDeletedEventData extends AcsRouterJobEventData {} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterJobExceptionTriggered event */ -export interface AcsRouterJobExceptionTriggeredEventData extends AcsRouterJobEventData { - /** Router Job Exception Triggered Rule Key */ - ruleKey?: string; - /** Router Job Exception Triggered Rule Id */ - exceptionRuleId?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterJobQueued event */ -export interface AcsRouterJobQueuedEventData extends AcsRouterJobEventData { - /** Router Job Priority */ - priority?: number; - /** Router Job Queued Attached Worker Selector */ - attachedWorkerSelectors: AcsRouterWorkerSelector[]; - /** Router Job Queued Requested Worker Selector */ - requestedWorkerSelectors: AcsRouterWorkerSelector[]; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterJobReceived event */ -export interface AcsRouterJobReceivedEventData extends AcsRouterJobEventData { - /** Router Job Received Job Status */ - jobStatus: AcsRouterJobStatus; - /** Router Job Classification Policy Id */ - classificationPolicyId?: string; - /** Router Job Priority */ - priority?: number; - /** Router Job Received Requested Worker Selectors */ - requestedWorkerSelectors: AcsRouterWorkerSelector[]; - /** Router Job Received Scheduled Time in UTC */ - scheduledOn: Date; - /** Unavailable For Matching for Router Job Received */ - unavailableForMatching: boolean; -} - -/** Known values of {@link AcsRouterJobStatus} that the service accepts. */ -export enum KnownAcsRouterJobStatus { - /** PendingClassification */ - PendingClassification = "PendingClassification", - /** Queued */ - Queued = "Queued", - /** Assigned */ - Assigned = "Assigned", - /** Completed */ - Completed = "Completed", - /** Closed */ - Closed = "Closed", - /** Cancelled */ - Cancelled = "Cancelled", - /** ClassificationFailed */ - ClassificationFailed = "ClassificationFailed", - /** Created */ - Created = "Created", - /** PendingSchedule */ - PendingSchedule = "PendingSchedule", - /** Scheduled */ - Scheduled = "Scheduled", - /** ScheduleFailed */ - ScheduleFailed = "ScheduleFailed", - /** WaitingForActivation */ - WaitingForActivation = "WaitingForActivation", -} - -/** - * Acs Router Job Status - * {@link KnownAcsRouterJobStatus} can be used interchangeably with AcsRouterJobStatus, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **PendingClassification** - * **Queued** - * **Assigned** - * **Completed** - * **Closed** - * **Cancelled** - * **ClassificationFailed** - * **Created** - * **PendingSchedule** - * **Scheduled** - * **ScheduleFailed** - * **WaitingForActivation** - */ -export type AcsRouterJobStatus = string; - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterJobSchedulingFailed event */ -export interface AcsRouterJobSchedulingFailedEventData extends AcsRouterJobEventData { - /** Router Job Priority */ - priority?: number; - /** Router Job Scheduling Failed Attached Worker Selector Expired */ - expiredAttachedWorkerSelectors: AcsRouterWorkerSelector[]; - /** Router Job Scheduling Failed Requested Worker Selector Expired */ - expiredRequestedWorkerSelectors: AcsRouterWorkerSelector[]; - /** Router Job Scheduling Failed Scheduled Time in UTC */ - scheduledOn: Date; - /** Router Job Scheduling Failed Reason */ - failureReason?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterJobUnassigned event */ -export interface AcsRouterJobUnassignedEventData extends AcsRouterJobEventData { - /** Router Job Unassigned Assignment Id */ - assignmentId?: string; - /** Router Job Unassigned Worker Id */ - workerId?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterJobWaitingForActivation event */ -export interface AcsRouterJobWaitingForActivationEventData extends AcsRouterJobEventData { - /** Router Job Waiting For Activation Priority */ - priority?: number; - /** Router Job Waiting For Activation Worker Selector Expired */ - expiredAttachedWorkerSelectors: AcsRouterWorkerSelector[]; - /** Router Job Waiting For Activation Requested Worker Selector Expired */ - expiredRequestedWorkerSelectors: AcsRouterWorkerSelector[]; - /** Router Job Waiting For Activation Scheduled Time in UTC */ - scheduledOn: Date; - /** Router Job Waiting For Activation Unavailable For Matching */ - unavailableForMatching: boolean; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterJobWorkerSelectorsExpired event */ -export interface AcsRouterJobWorkerSelectorsExpiredEventData extends AcsRouterJobEventData { - /** Router Job Worker Selectors Expired Requested Worker Selectors */ - expiredRequestedWorkerSelectors: AcsRouterWorkerSelector[]; - /** Router Job Worker Selectors Expired Attached Worker Selectors */ - expiredAttachedWorkerSelectors: AcsRouterWorkerSelector[]; -} - -/** Schema of common properties of all Router Worker events */ -export interface AcsRouterWorkerEventData extends AcsRouterEventData { - /** Router Worker events Worker Id */ - workerId?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterWorkerDeleted event */ -export interface AcsRouterWorkerDeletedEventData extends AcsRouterWorkerEventData {} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterWorkerDeregistered event */ -export interface AcsRouterWorkerDeregisteredEventData { - /** Router Worker Deregistered Worker Id */ - workerId?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterWorkerOfferAccepted event */ -export interface AcsRouterWorkerOfferAcceptedEventData extends AcsRouterWorkerEventData { - /** Router Worker Offer Accepted Queue Id */ - queueId?: string; - /** Router Worker Offer Accepted Offer Id */ - offerId?: string; - /** Router Worker Offer Accepted Assignment Id */ - assignmentId?: string; - /** Router Worker Offer Accepted Job Priority */ - jobPriority?: number; - /** Router Worker Offer Accepted Worker Labels */ - workerLabels: Record; - /** Router Worker Offer Accepted Worker Tags */ - workerTags: Record; - /** Router Worker Offer Accepted Job Labels */ - jobLabels: Record; - /** Router Worker Offer Accepted Job Tags */ - jobTags: Record; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterWorkerOfferDeclined event */ -export interface AcsRouterWorkerOfferDeclinedEventData extends AcsRouterWorkerEventData { - /** Router Worker Offer Declined Queue Id */ - queueId?: string; - /** Router Worker Offer Declined Offer Id */ - offerId?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterWorkerOfferExpired event */ -export interface AcsRouterWorkerOfferExpiredEventData extends AcsRouterWorkerEventData { - /** Router Worker Offer Expired Queue Id */ - queueId?: string; - /** Router Worker Offer Expired Offer Id */ - offerId?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterWorkerOfferIssued event */ -export interface AcsRouterWorkerOfferIssuedEventData extends AcsRouterWorkerEventData { - /** Router Worker Offer Issued Queue Id */ - queueId?: string; - /** Router Worker Offer Issued Offer Id */ - offerId?: string; - /** Router Worker Offer Issued Job Priority */ - jobPriority?: number; - /** Router Worker Offer Issued Worker Labels */ - workerLabels: Record; - /** Router Worker Offer Issued Time in UTC */ - offeredOn: Date; - /** Router Worker Offer Issued Expiration Time in UTC */ - expiresOn: Date; - /** Router Worker Offer Issued Worker Tags */ - workerTags: Record; - /** Router Worker Offer Issued Job Labels */ - jobLabels: Record; - /** Router Worker Offer Issued Job Tags */ - jobTags: Record; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterWorkerOfferRevoked event */ -export interface AcsRouterWorkerOfferRevokedEventData extends AcsRouterWorkerEventData { - /** Router Worker Offer Revoked Queue Id */ - queueId?: string; - /** Router Worker Offer Revoked Offer Id */ - offerId?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterWorkerRegistered event */ -export interface AcsRouterWorkerRegisteredEventData { - /** Router Worker Registered Worker Id */ - workerId?: string; - /** Router Worker Registered Queue Info */ - queueAssignments: AcsRouterQueueDetails[]; - /** Router Worker Registered Channel Configuration */ - channelConfigurations: AcsRouterChannelConfiguration[]; - /** Router Worker Register Total Capacity */ - totalCapacity?: number; - /** Router Worker Registered Labels */ - labels: Record; - /** Router Worker Registered Tags */ - tags: Record; -} - -/** Router Channel Configuration */ -export interface AcsRouterChannelConfiguration { - /** Channel ID for Router Job */ - channelId?: string; - /** Capacity Cost Per Job for Router Job */ - capacityCostPerJob?: number; - /** Max Number of Jobs for Router Job */ - maxNumberOfJobs?: number; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterWorkerUpdated event. */ -export interface AcsRouterWorkerUpdatedEventData { - /** Router Worker Updated Worker Id */ - workerId?: string; - /** Router Worker Updated Queue Info */ - queueAssignments: AcsRouterQueueDetails[]; - /** Router Worker Updated Channel Configuration */ - channelConfigurations: AcsRouterChannelConfiguration[]; - /** Router Worker Updated Total Capacity */ - totalCapacity?: number; - /** Router Worker Updated Labels */ - labels: Record; - /** Router Worker Updated Tags */ - tags: Record; - /** Router Worker Properties Updated */ - updatedWorkerProperties: AcsRouterUpdatedWorkerProperty[]; -} - -/** Known values of {@link AcsRouterUpdatedWorkerProperty} that the service accepts. */ -export enum KnownAcsRouterUpdatedWorkerProperty { - /** AvailableForOffers */ - AvailableForOffers = "AvailableForOffers", - /** TotalCapacity */ - TotalCapacity = "TotalCapacity", - /** QueueAssignments */ - QueueAssignments = "QueueAssignments", - /** Labels */ - Labels = "Labels", - /** Tags */ - Tags = "Tags", - /** ChannelConfigurations */ - ChannelConfigurations = "ChannelConfigurations", -} - -/** - * Worker properties that can be updated - * {@link KnownAcsRouterUpdatedWorkerProperty} can be used interchangeably with AcsRouterUpdatedWorkerProperty, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **AvailableForOffers** - * **TotalCapacity** - * **QueueAssignments** - * **Labels** - * **Tags** - * **ChannelConfigurations** - */ -export type AcsRouterUpdatedWorkerProperty = string; - -/** Schema of common properties of all chat thread events */ -export interface AcsMessageEventData { - /** The message sender */ - from?: string; - /** The message recipient */ - to?: string; - /** The time message was received */ - receivedTimeStamp: Date; - /** The channel event error */ - error: AcsMessageChannelEventError; -} - -/** Message Channel Event Error */ -export interface AcsMessageChannelEventError { - /** The channel error code */ - channelCode?: string; - /** The channel error message */ - channelMessage?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.AdvancedMessageDeliveryStatusUpdated event. */ -export interface AcsMessageDeliveryStatusUpdatedEventData extends AcsMessageEventData { - /** The message id */ - messageId?: string; - /** The updated message status */ - status: AcsMessageDeliveryStatus; - /** The updated message channel type */ - channelKind: AcsMessageChannelKind; -} - -/** Known values of {@link AcsMessageDeliveryStatus} that the service accepts. */ -export enum KnownAcsMessageDeliveryStatus { - /** read */ - read = "read", - /** delivered */ - delivered = "delivered", - /** failed */ - failed = "failed", - /** sent */ - sent = "sent", - /** warning */ - warning = "warning", - /** unknown */ - unknown = "unknown", -} - -/** - * Message delivery status - * {@link KnownAcsMessageDeliveryStatus} can be used interchangeably with AcsMessageDeliveryStatus, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **read** - * **delivered** - * **failed** - * **sent** - * **warning** - * **unknown** - */ -export type AcsMessageDeliveryStatus = string; - -/** Known values of {@link AcsMessageChannelKind} that the service accepts. */ -export enum KnownAcsMessageChannelKind { - /** whatsapp */ - whatsapp = "whatsapp", -} - -/** - * Message channel kind - * {@link KnownAcsMessageChannelKind} can be used interchangeably with AcsMessageChannelKind, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **whatsapp** - */ -export type AcsMessageChannelKind = string; - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.AdvancedMessageReceived event. */ -export interface AcsMessageReceivedEventData extends AcsMessageEventData { - /** The message content */ - content?: string; - /** The message channel type */ - channelKind: AcsMessageChannelKind; - /** The received message media content */ - mediaContent: AcsMessageMediaContent; - /** The received message context */ - context: AcsMessageContext; - /** The received message button content */ - button: AcsMessageButtonContent; - /** The received message interactive content */ - interactiveContent: AcsMessageInteractiveContent; -} - -/** Message Media Content */ -export interface AcsMessageMediaContent { - /** The MIME type of the file this media represents */ - mimeType?: string; - /** The media identifier */ - mediaId?: string; - /** The filename of the underlying media file as specified when uploaded */ - fileName?: string; - /** The caption for the media object, if supported and provided */ - caption?: string; -} - -/** Message Context */ -export interface AcsMessageContext { - /** The WhatsApp ID for the customer who replied to an inbound message. */ - from?: string; - /** The message ID for the sent message for an inbound reply */ - messageId?: string; -} - -/** Message Button Content */ -export interface AcsMessageButtonContent { - /** The Text of the button */ - text?: string; - /** The Payload of the button which was clicked by the user, setup by the business */ - payload?: string; -} - -/** Message Interactive Content */ -export interface AcsMessageInteractiveContent { - /** The Message interactive reply type */ - replyKind: AcsInteractiveReplyKind; - /** The Message Sent when a customer clicks a button */ - buttonReply: AcsMessageInteractiveButtonReplyContent; - /** The Message Sent when a customer selects an item from a list */ - listReply: AcsMessageInteractiveListReplyContent; -} - -/** Known values of {@link AcsInteractiveReplyKind} that the service accepts. */ -export enum KnownAcsInteractiveReplyKind { - /** buttonReply */ - buttonReply = "buttonReply", - /** listReply */ - listReply = "listReply", - /** unknown */ - unknown = "unknown", -} - -/** - * Interactive reply kind - * {@link KnownAcsInteractiveReplyKind} can be used interchangeably with AcsInteractiveReplyKind, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **buttonReply** - * **listReply** - * **unknown** - */ -export type AcsInteractiveReplyKind = string; - -/** Message Interactive button reply content for a user to business message */ -export interface AcsMessageInteractiveButtonReplyContent { - /** The ID of the button */ - buttonId?: string; - /** The title of the button */ - title?: string; -} - -/** Message Interactive list reply content for a user to business message */ -export interface AcsMessageInteractiveListReplyContent { - /** The ID of the selected list item */ - listItemId?: string; - /** The title of the selected list item */ - title?: string; - /** The description of the selected row */ - description?: string; -} - -/** The content of the event request message. */ -export interface ContainerRegistryEventData { - /** The event ID. */ - id?: string; - /** The time at which the event occurred. */ - timestamp: Date; - /** The action that encompasses the provided event. */ - action?: string; - /** The location of the event. */ - location?: string; - /** The target of the event. */ - target: ContainerRegistryEventTarget; - /** The request that generated the event. */ - request: ContainerRegistryEventRequest; - /** The agent that initiated the event. For most situations, this could be from the authorization context of the request. */ - actor: ContainerRegistryEventActor; - /** The registry node that generated the event. Put differently, while the actor initiates the event, the source generates it. */ - source: ContainerRegistryEventSource; - /** The connected registry information if the event is generated by a connected registry. */ - connectedRegistry: ContainerRegistryEventConnectedRegistry; -} - -/** The target of the event. */ -export interface ContainerRegistryEventTarget { - /** The MIME type of the referenced object. */ - mediaType?: string; - /** The number of bytes of the content. Same as Length field. */ - size?: number; - /** The digest of the content, as defined by the Registry V2 HTTP API Specification. */ - digest?: string; - /** The number of bytes of the content. Same as Size field. */ - length?: number; - /** The repository name. */ - repository?: string; - /** The direct URL to the content. */ - url?: string; - /** The tag name. */ - tag?: string; -} - -/** The request that generated the event. */ -export interface ContainerRegistryEventRequest { - /** The ID of the request that initiated the event. */ - id?: string; - /** The IP or hostname and possibly port of the client connection that initiated the event. This is the RemoteAddr from the standard http request. */ - addr?: string; - /** The externally accessible hostname of the registry instance, as specified by the http host header on incoming requests. */ - host?: string; - /** The request method that generated the event. */ - method?: string; - /** The user agent header of the request. */ - useragent?: string; -} - -/** The agent that initiated the event. For most situations, this could be from the authorization context of the request. */ -export interface ContainerRegistryEventActor { - /** The subject or username associated with the request context that generated the event. */ - name?: string; -} - -/** The registry node that generated the event. Put differently, while the actor initiates the event, the source generates it. */ -export interface ContainerRegistryEventSource { - /** The IP or hostname and the port of the registry node that generated the event. Generally, this will be resolved by os.Hostname() along with the running port. */ - addr?: string; - /** The running instance of an application. Changes after each restart. */ - instanceID?: string; -} - -/** The connected registry information if the event is generated by a connected registry. */ -export interface ContainerRegistryEventConnectedRegistry { - /** The name of the connected registry that generated this event. */ - name?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.ContainerRegistry.ImagePushed event. */ -export interface ContainerRegistryImagePushedEventData extends ContainerRegistryEventData {} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.ContainerRegistry.ImageDeleted event. */ -export interface ContainerRegistryImageDeletedEventData extends ContainerRegistryEventData {} - -/** The content of the event request message. */ -export interface ContainerRegistryArtifactEventData { - /** The event ID. */ - id?: string; - /** The time at which the event occurred. */ - timestamp: Date; - /** The action that encompasses the provided event. */ - action?: string; - /** The location of the event. */ - location?: string; - /** The target of the event. */ - target: ContainerRegistryArtifactEventTarget; - /** The connected registry information if the event is generated by a connected registry. */ - connectedRegistry: ContainerRegistryEventConnectedRegistry; -} - -/** The target of the event. */ -export interface ContainerRegistryArtifactEventTarget { - /** The MIME type of the artifact. */ - mediaType?: string; - /** The size in bytes of the artifact. */ - size?: number; - /** The digest of the artifact. */ - digest?: string; - /** The repository name of the artifact. */ - repository?: string; - /** The tag of the artifact. */ - tag?: string; - /** The name of the artifact. */ - name?: string; - /** The version of the artifact. */ - version?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.ContainerRegistry.ChartPushed event. */ -export interface ContainerRegistryChartPushedEventData extends ContainerRegistryArtifactEventData {} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.ContainerRegistry.ChartDeleted event. */ -export interface ContainerRegistryChartDeletedEventData - extends ContainerRegistryArtifactEventData {} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.ContainerService.NewKubernetesVersionAvailable event */ -export interface ContainerServiceNewKubernetesVersionAvailableEventData { - /** The highest PATCH Kubernetes version for the highest MINOR version supported by ManagedCluster resource */ - latestSupportedKubernetesVersion?: string; - /** The highest PATCH Kubernetes version for the MINOR version considered stable for the ManagedCluster resource */ - latestStableKubernetesVersion?: string; - /** The highest PATCH Kubernetes version for the lowest applicable MINOR version available for the ManagedCluster resource */ - lowestMinorKubernetesVersion?: string; - /** The highest PATCH Kubernetes version considered preview for the ManagedCluster resource. There might not be any version in preview at the time of publishing the event */ - latestPreviewKubernetesVersion?: string; -} - -/** Schema of common properties of cluster support events */ -export interface ContainerServiceClusterSupportEventData { - /** The Kubernetes version of the ManagedCluster resource */ - kubernetesVersion?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.ContainerService.ClusterSupportEnded event */ -export interface ContainerServiceClusterSupportEndedEventData - extends ContainerServiceClusterSupportEventData {} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.ContainerService.ClusterSupportEnding event */ -export interface ContainerServiceClusterSupportEndingEventData - extends ContainerServiceClusterSupportEventData {} - -/** Schema of common properties of node pool rolling events */ -export interface ContainerServiceNodePoolRollingEventData { - /** The name of the node pool in the ManagedCluster resource */ - nodePoolName?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.ContainerService.NodePoolRollingStarted event */ -export interface ContainerServiceNodePoolRollingStartedEventData - extends ContainerServiceNodePoolRollingEventData {} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.ContainerService.NodePoolRollingSucceeded event */ -export interface ContainerServiceNodePoolRollingSucceededEventData - extends ContainerServiceNodePoolRollingEventData {} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.ContainerService.NodePoolRollingFailed event */ -export interface ContainerServiceNodePoolRollingFailedEventData - extends ContainerServiceNodePoolRollingEventData {} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.DataBox.CopyStarted event. */ -export interface DataBoxCopyStartedEventData { - /** Serial Number of the device associated with the event. The list is comma separated if more than one serial number is associated. */ - serialNumber?: string; - /** Name of the current Stage */ - stageName: DataBoxStageName; - /** The time at which the stage happened. */ - stageTime: Date; -} - -/** Known values of {@link DataBoxStageName} that the service accepts. */ -export enum KnownDataBoxStageName { - /** CopyStarted */ - CopyStarted = "CopyStarted", - /** CopyCompleted */ - CopyCompleted = "CopyCompleted", - /** OrderCompleted */ - OrderCompleted = "OrderCompleted", -} - -/** - * Schema of DataBox Stage Name enumeration. - * {@link KnownDataBoxStageName} can be used interchangeably with DataBoxStageName, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **CopyStarted** - * **CopyCompleted** - * **OrderCompleted** - */ -export type DataBoxStageName = string; - -/** Schema of the Data property of an EventGridEvent for a Microsoft.DataBox.CopyCompleted event. */ -export interface DataBoxCopyCompletedEventData { - /** Serial Number of the device associated with the event. The list is comma separated if more than one serial number is associated. */ - serialNumber?: string; - /** Name of the current Stage */ - stageName: DataBoxStageName; - /** The time at which the stage happened. */ - stageTime: Date; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.DataBox.OrderCompleted event. */ -export interface DataBoxOrderCompletedEventData { - /** Serial Number of the device associated with the event. The list is comma separated if more than one serial number is associated. */ - serialNumber?: string; - /** Name of the current Stage */ - stageName: DataBoxStageName; - /** The time at which the stage happened. */ - stageTime: Date; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.EventHub.CaptureFileCreated event. */ -export interface EventHubCaptureFileCreatedEventData { - /** The path to the capture file. */ - fileUrl?: string; - /** The file type of the capture file. */ - fileType?: string; - /** The shard ID. */ - partitionId?: string; - /** The file size. */ - sizeInBytes?: number; - /** The number of events in the file. */ - eventCount?: number; - /** The smallest sequence number from the queue. */ - firstSequenceNumber?: number; - /** The last sequence number from the queue. */ - lastSequenceNumber?: number; - /** The first time from the queue. */ - firstEnqueueTime: Date; - /** The last time from the queue. */ - lastEnqueueTime: Date; -} - -/** Schema of the Data property of an EventGridEvent for a Geofence event (GeofenceEntered, GeofenceExited, GeofenceResult). */ -export interface MapsGeofenceEvent { - /** Lists of the geometry ID of the geofence which is expired relative to the user time in the request. */ - expiredGeofenceGeometryId?: string[]; - /** Lists the fence geometries that either fully contain the coordinate position or have an overlap with the searchBuffer around the fence. */ - geometries: MapsGeofenceGeometry[]; - /** Lists of the geometry ID of the geofence which is in invalid period relative to the user time in the request. */ - invalidPeriodGeofenceGeometryId?: string[]; - /** True if at least one event is published to the Azure Maps event subscriber, false if no event is published to the Azure Maps event subscriber. */ - isEventPublished?: boolean; -} - -/** The geofence geometry. */ -export interface MapsGeofenceGeometry { - /** ID of the device. */ - deviceId?: string; - /** Distance from the coordinate to the closest border of the geofence. Positive means the coordinate is outside of the geofence. If the coordinate is outside of the geofence, but more than the value of searchBuffer away from the closest geofence border, then the value is 999. Negative means the coordinate is inside of the geofence. If the coordinate is inside the polygon, but more than the value of searchBuffer away from the closest geofencing border,then the value is -999. A value of 999 means that there is great confidence the coordinate is well outside the geofence. A value of -999 means that there is great confidence the coordinate is well within the geofence. */ - distance?: number; - /** The unique ID for the geofence geometry. */ - geometryId?: string; - /** Latitude of the nearest point of the geometry. */ - nearestLat?: number; - /** Longitude of the nearest point of the geometry. */ - nearestLon?: number; - /** The unique id returned from user upload service when uploading a geofence. Will not be included in geofencing post API. */ - udId?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Maps.GeofenceEntered event. */ -export interface MapsGeofenceEnteredEventData extends MapsGeofenceEvent {} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Maps.GeofenceExited event. */ -export interface MapsGeofenceExitedEventData extends MapsGeofenceEvent {} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Maps.GeofenceResult event. */ -export interface MapsGeofenceResultEventData extends MapsGeofenceEvent {} - -/** Schema of the Data property of an EventGridEvent for a device life cycle event (DeviceCreated, DeviceDeleted). */ -export interface DeviceLifeCycleEvent { - /** The unique identifier of the device. This case-sensitive string can be up to 128 characters long, and supports ASCII 7-bit alphanumeric characters plus the following special characters: - : . + % _ # * ? ! ( ) , = `@` ; $ '. */ - deviceId?: string; - /** Name of the IoT Hub where the device was created or deleted. */ - hubName?: string; - /** Information about the device twin, which is the cloud representation of application device metadata. */ - twin: DeviceTwinInfo; -} - -/** Information about the device twin, which is the cloud representation of application device metadata. */ -export interface DeviceTwinInfo { - /** Authentication type used for this device: either SAS, SelfSigned, or CertificateAuthority. */ - authenticationType?: string; - /** Count of cloud to device messages sent to this device. */ - cloudToDeviceMessageCount?: number; - /** Whether the device is connected or disconnected. */ - connectionState?: string; - /** The unique identifier of the device twin. */ - deviceId?: string; - /** A piece of information that describes the content of the device twin. Each etag is guaranteed to be unique per device twin. */ - etag?: string; - /** The ISO8601 timestamp of the last activity. */ - lastActivityTime?: string; - /** Properties JSON element. */ - properties: DeviceTwinInfoProperties; - /** Whether the device twin is enabled or disabled. */ - status?: string; - /** The ISO8601 timestamp of the last device twin status update. */ - statusUpdateTime?: string; - /** An integer that is incremented by one each time the device twin is updated. */ - version?: number; - /** The thumbprint is a unique value for the x509 certificate, commonly used to find a particular certificate in a certificate store. The thumbprint is dynamically generated using the SHA1 algorithm, and does not physically exist in the certificate. */ - x509Thumbprint: DeviceTwinInfoX509Thumbprint; -} - -/** Properties JSON element. */ -export interface DeviceTwinInfoProperties { - /** A portion of the properties that can be written only by the application back-end, and read by the device. */ - desired: DeviceTwin; - /** A portion of the properties that can be written only by the device, and read by the application back-end. */ - reported: DeviceTwin; -} - -/** A portion of the properties that can be written only by the application back-end, and read by the device. */ -export interface DeviceTwin { - /** Metadata information for the properties JSON document. */ - metadata: DeviceTwinMetadata; - /** Version of device twin properties. */ - version?: number; -} - -/** Metadata information for the properties JSON document. */ -export interface DeviceTwinMetadata { - /** The ISO8601 timestamp of the last time the properties were updated. */ - lastUpdated?: string; -} - -/** The thumbprint is a unique value for the x509 certificate, commonly used to find a particular certificate in a certificate store. The thumbprint is dynamically generated using the SHA1 algorithm, and does not physically exist in the certificate. */ -export interface DeviceTwinInfoX509Thumbprint { - /** Primary thumbprint for the x509 certificate. */ - primaryThumbprint?: string; - /** Secondary thumbprint for the x509 certificate. */ - secondaryThumbprint?: string; -} - -/** Schema of the Data property of an EventGridEvent for a device connection state event (DeviceConnected, DeviceDisconnected). */ -export interface DeviceConnectionStateEvent { - /** The unique identifier of the device. This case-sensitive string can be up to 128 characters long, and supports ASCII 7-bit alphanumeric characters plus the following special characters: - : . + % _ # * ? ! ( ) , = `@` ; $ '. */ - deviceId?: string; - /** The unique identifier of the module. This case-sensitive string can be up to 128 characters long, and supports ASCII 7-bit alphanumeric characters plus the following special characters: - : . + % _ # * ? ! ( ) , = `@` ; $ '. */ - moduleId?: string; - /** Name of the IoT Hub where the device was created or deleted. */ - hubName?: string; - /** Information about the device connection state event. */ - deviceConnectionStateEventInfo: DeviceConnectionStateEventInfo; -} - -/** Information about the device connection state event. */ -export interface DeviceConnectionStateEventInfo { - /** Sequence number is string representation of a hexadecimal number. string compare can be used to identify the larger number because both in ASCII and HEX numbers come after alphabets. If you are converting the string to hex, then the number is a 256 bit number. */ - sequenceNumber?: string; -} - -/** Schema of the Data property of an EventGridEvent for a device telemetry event (DeviceTelemetry). */ -export interface DeviceTelemetryEvent { - /** The content of the message from the device. */ - body: Record; - /** Application properties are user-defined strings that can be added to the message. These fields are optional. */ - properties: Record; - /** System properties help identify contents and source of the messages. */ - systemProperties: Record; -} - -/** Event data for Microsoft.Devices.DeviceCreated event. */ -export interface IotHubDeviceCreatedEventData extends DeviceLifeCycleEvent {} - -/** Event data for Microsoft.Devices.DeviceDeleted event. */ -export interface IotHubDeviceDeletedEventData extends DeviceLifeCycleEvent {} - -/** Event data for Microsoft.Devices.DeviceConnected event. */ -export interface IotHubDeviceConnectedEventData extends DeviceConnectionStateEvent {} - -/** Event data for Microsoft.Devices.DeviceDisconnected event. */ -export interface IotHubDeviceDisconnectedEventData extends DeviceConnectionStateEvent {} - -/** Event data for Microsoft.Devices.DeviceTelemetry event. */ -export interface IotHubDeviceTelemetryEventData extends DeviceTelemetryEvent {} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.HealthcareApis.FhirResourceCreated event. */ -export interface HealthcareFhirResourceCreatedEventData { - /** Type of HL7 FHIR resource. */ - resourceType: HealthcareFhirResourceType; - /** Domain name of FHIR account for this resource. */ - resourceFhirAccount?: string; - /** Id of HL7 FHIR resource. */ - resourceFhirId?: string; - /** VersionId of HL7 FHIR resource. It changes when the resource is created, updated, or deleted(soft-deletion). */ - resourceVersionId?: number; -} - -/** Known values of {@link HealthcareFhirResourceType} that the service accepts. */ -export enum KnownHealthcareFhirResourceType { - /** Account */ - Account = "Account", - /** ActivityDefinition */ - ActivityDefinition = "ActivityDefinition", - /** AdverseEvent */ - AdverseEvent = "AdverseEvent", - /** AllergyIntolerance */ - AllergyIntolerance = "AllergyIntolerance", - /** Appointment */ - Appointment = "Appointment", - /** AppointmentResponse */ - AppointmentResponse = "AppointmentResponse", - /** AuditEvent */ - AuditEvent = "AuditEvent", - /** Basic */ - Basic = "Basic", - /** Binary */ - Binary = "Binary", - /** BiologicallyDerivedProduct */ - BiologicallyDerivedProduct = "BiologicallyDerivedProduct", - /** BodySite */ - BodySite = "BodySite", - /** BodyStructure */ - BodyStructure = "BodyStructure", - /** Bundle */ - Bundle = "Bundle", - /** CapabilityStatement */ - CapabilityStatement = "CapabilityStatement", - /** CarePlan */ - CarePlan = "CarePlan", - /** CareTeam */ - CareTeam = "CareTeam", - /** CatalogEntry */ - CatalogEntry = "CatalogEntry", - /** ChargeItem */ - ChargeItem = "ChargeItem", - /** ChargeItemDefinition */ - ChargeItemDefinition = "ChargeItemDefinition", - /** Claim */ - Claim = "Claim", - /** ClaimResponse */ - ClaimResponse = "ClaimResponse", - /** ClinicalImpression */ - ClinicalImpression = "ClinicalImpression", - /** CodeSystem */ - CodeSystem = "CodeSystem", - /** Communication */ - Communication = "Communication", - /** CommunicationRequest */ - CommunicationRequest = "CommunicationRequest", - /** CompartmentDefinition */ - CompartmentDefinition = "CompartmentDefinition", - /** Composition */ - Composition = "Composition", - /** ConceptMap */ - ConceptMap = "ConceptMap", - /** Condition */ - Condition = "Condition", - /** Consent */ - Consent = "Consent", - /** Contract */ - Contract = "Contract", - /** Coverage */ - Coverage = "Coverage", - /** CoverageEligibilityRequest */ - CoverageEligibilityRequest = "CoverageEligibilityRequest", - /** CoverageEligibilityResponse */ - CoverageEligibilityResponse = "CoverageEligibilityResponse", - /** DataElement */ - DataElement = "DataElement", - /** DetectedIssue */ - DetectedIssue = "DetectedIssue", - /** Device */ - Device = "Device", - /** DeviceComponent */ - DeviceComponent = "DeviceComponent", - /** DeviceDefinition */ - DeviceDefinition = "DeviceDefinition", - /** DeviceMetric */ - DeviceMetric = "DeviceMetric", - /** DeviceRequest */ - DeviceRequest = "DeviceRequest", - /** DeviceUseStatement */ - DeviceUseStatement = "DeviceUseStatement", - /** DiagnosticReport */ - DiagnosticReport = "DiagnosticReport", - /** DocumentManifest */ - DocumentManifest = "DocumentManifest", - /** DocumentReference */ - DocumentReference = "DocumentReference", - /** DomainResource */ - DomainResource = "DomainResource", - /** EffectEvidenceSynthesis */ - EffectEvidenceSynthesis = "EffectEvidenceSynthesis", - /** EligibilityRequest */ - EligibilityRequest = "EligibilityRequest", - /** EligibilityResponse */ - EligibilityResponse = "EligibilityResponse", - /** Encounter */ - Encounter = "Encounter", - /** Endpoint */ - Endpoint = "Endpoint", - /** EnrollmentRequest */ - EnrollmentRequest = "EnrollmentRequest", - /** EnrollmentResponse */ - EnrollmentResponse = "EnrollmentResponse", - /** EpisodeOfCare */ - EpisodeOfCare = "EpisodeOfCare", - /** EventDefinition */ - EventDefinition = "EventDefinition", - /** Evidence */ - Evidence = "Evidence", - /** EvidenceVariable */ - EvidenceVariable = "EvidenceVariable", - /** ExampleScenario */ - ExampleScenario = "ExampleScenario", - /** ExpansionProfile */ - ExpansionProfile = "ExpansionProfile", - /** ExplanationOfBenefit */ - ExplanationOfBenefit = "ExplanationOfBenefit", - /** FamilyMemberHistory */ - FamilyMemberHistory = "FamilyMemberHistory", - /** Flag */ - Flag = "Flag", - /** Goal */ - Goal = "Goal", - /** GraphDefinition */ - GraphDefinition = "GraphDefinition", - /** Group */ - Group = "Group", - /** GuidanceResponse */ - GuidanceResponse = "GuidanceResponse", - /** HealthcareService */ - HealthcareService = "HealthcareService", - /** ImagingManifest */ - ImagingManifest = "ImagingManifest", - /** ImagingStudy */ - ImagingStudy = "ImagingStudy", - /** Immunization */ - Immunization = "Immunization", - /** ImmunizationEvaluation */ - ImmunizationEvaluation = "ImmunizationEvaluation", - /** ImmunizationRecommendation */ - ImmunizationRecommendation = "ImmunizationRecommendation", - /** ImplementationGuide */ - ImplementationGuide = "ImplementationGuide", - /** InsurancePlan */ - InsurancePlan = "InsurancePlan", - /** Invoice */ - Invoice = "Invoice", - /** Library */ - Library = "Library", - /** Linkage */ - Linkage = "Linkage", - /** List */ - List = "List", - /** Location */ - Location = "Location", - /** Measure */ - Measure = "Measure", - /** MeasureReport */ - MeasureReport = "MeasureReport", - /** Media */ - Media = "Media", - /** Medication */ - Medication = "Medication", - /** MedicationAdministration */ - MedicationAdministration = "MedicationAdministration", - /** MedicationDispense */ - MedicationDispense = "MedicationDispense", - /** MedicationKnowledge */ - MedicationKnowledge = "MedicationKnowledge", - /** MedicationRequest */ - MedicationRequest = "MedicationRequest", - /** MedicationStatement */ - MedicationStatement = "MedicationStatement", - /** MedicinalProduct */ - MedicinalProduct = "MedicinalProduct", - /** MedicinalProductAuthorization */ - MedicinalProductAuthorization = "MedicinalProductAuthorization", - /** MedicinalProductContraindication */ - MedicinalProductContraindication = "MedicinalProductContraindication", - /** MedicinalProductIndication */ - MedicinalProductIndication = "MedicinalProductIndication", - /** MedicinalProductIngredient */ - MedicinalProductIngredient = "MedicinalProductIngredient", - /** MedicinalProductInteraction */ - MedicinalProductInteraction = "MedicinalProductInteraction", - /** MedicinalProductManufactured */ - MedicinalProductManufactured = "MedicinalProductManufactured", - /** MedicinalProductPackaged */ - MedicinalProductPackaged = "MedicinalProductPackaged", - /** MedicinalProductPharmaceutical */ - MedicinalProductPharmaceutical = "MedicinalProductPharmaceutical", - /** MedicinalProductUndesirableEffect */ - MedicinalProductUndesirableEffect = "MedicinalProductUndesirableEffect", - /** MessageDefinition */ - MessageDefinition = "MessageDefinition", - /** MessageHeader */ - MessageHeader = "MessageHeader", - /** MolecularSequence */ - MolecularSequence = "MolecularSequence", - /** NamingSystem */ - NamingSystem = "NamingSystem", - /** NutritionOrder */ - NutritionOrder = "NutritionOrder", - /** Observation */ - Observation = "Observation", - /** ObservationDefinition */ - ObservationDefinition = "ObservationDefinition", - /** OperationDefinition */ - OperationDefinition = "OperationDefinition", - /** OperationOutcome */ - OperationOutcome = "OperationOutcome", - /** Organization */ - Organization = "Organization", - /** OrganizationAffiliation */ - OrganizationAffiliation = "OrganizationAffiliation", - /** Parameters */ - Parameters = "Parameters", - /** Patient */ - Patient = "Patient", - /** PaymentNotice */ - PaymentNotice = "PaymentNotice", - /** PaymentReconciliation */ - PaymentReconciliation = "PaymentReconciliation", - /** Person */ - Person = "Person", - /** PlanDefinition */ - PlanDefinition = "PlanDefinition", - /** Practitioner */ - Practitioner = "Practitioner", - /** PractitionerRole */ - PractitionerRole = "PractitionerRole", - /** Procedure */ - Procedure = "Procedure", - /** ProcedureRequest */ - ProcedureRequest = "ProcedureRequest", - /** ProcessRequest */ - ProcessRequest = "ProcessRequest", - /** ProcessResponse */ - ProcessResponse = "ProcessResponse", - /** Provenance */ - Provenance = "Provenance", - /** Questionnaire */ - Questionnaire = "Questionnaire", - /** QuestionnaireResponse */ - QuestionnaireResponse = "QuestionnaireResponse", - /** ReferralRequest */ - ReferralRequest = "ReferralRequest", - /** RelatedPerson */ - RelatedPerson = "RelatedPerson", - /** RequestGroup */ - RequestGroup = "RequestGroup", - /** ResearchDefinition */ - ResearchDefinition = "ResearchDefinition", - /** ResearchElementDefinition */ - ResearchElementDefinition = "ResearchElementDefinition", - /** ResearchStudy */ - ResearchStudy = "ResearchStudy", - /** ResearchSubject */ - ResearchSubject = "ResearchSubject", - /** Resource */ - Resource = "Resource", - /** RiskAssessment */ - RiskAssessment = "RiskAssessment", - /** RiskEvidenceSynthesis */ - RiskEvidenceSynthesis = "RiskEvidenceSynthesis", - /** Schedule */ - Schedule = "Schedule", - /** SearchParameter */ - SearchParameter = "SearchParameter", - /** Sequence */ - Sequence = "Sequence", - /** ServiceDefinition */ - ServiceDefinition = "ServiceDefinition", - /** ServiceRequest */ - ServiceRequest = "ServiceRequest", - /** Slot */ - Slot = "Slot", - /** Specimen */ - Specimen = "Specimen", - /** SpecimenDefinition */ - SpecimenDefinition = "SpecimenDefinition", - /** StructureDefinition */ - StructureDefinition = "StructureDefinition", - /** StructureMap */ - StructureMap = "StructureMap", - /** Subscription */ - Subscription = "Subscription", - /** Substance */ - Substance = "Substance", - /** SubstanceNucleicAcid */ - SubstanceNucleicAcid = "SubstanceNucleicAcid", - /** SubstancePolymer */ - SubstancePolymer = "SubstancePolymer", - /** SubstanceProtein */ - SubstanceProtein = "SubstanceProtein", - /** SubstanceReferenceInformation */ - SubstanceReferenceInformation = "SubstanceReferenceInformation", - /** SubstanceSourceMaterial */ - SubstanceSourceMaterial = "SubstanceSourceMaterial", - /** SubstanceSpecification */ - SubstanceSpecification = "SubstanceSpecification", - /** SupplyDelivery */ - SupplyDelivery = "SupplyDelivery", - /** SupplyRequest */ - SupplyRequest = "SupplyRequest", - /** Task */ - Task = "Task", - /** TerminologyCapabilities */ - TerminologyCapabilities = "TerminologyCapabilities", - /** TestReport */ - TestReport = "TestReport", - /** TestScript */ - TestScript = "TestScript", - /** ValueSet */ - ValueSet = "ValueSet", - /** VerificationResult */ - VerificationResult = "VerificationResult", - /** VisionPrescription */ - VisionPrescription = "VisionPrescription", -} - -/** - * Schema of FHIR resource type enumeration. - * {@link KnownHealthcareFhirResourceType} can be used interchangeably with HealthcareFhirResourceType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Account** - * **ActivityDefinition** - * **AdverseEvent** - * **AllergyIntolerance** - * **Appointment** - * **AppointmentResponse** - * **AuditEvent** - * **Basic** - * **Binary** - * **BiologicallyDerivedProduct** - * **BodySite** - * **BodyStructure** - * **Bundle** - * **CapabilityStatement** - * **CarePlan** - * **CareTeam** - * **CatalogEntry** - * **ChargeItem** - * **ChargeItemDefinition** - * **Claim** - * **ClaimResponse** - * **ClinicalImpression** - * **CodeSystem** - * **Communication** - * **CommunicationRequest** - * **CompartmentDefinition** - * **Composition** - * **ConceptMap** - * **Condition** - * **Consent** - * **Contract** - * **Coverage** - * **CoverageEligibilityRequest** - * **CoverageEligibilityResponse** - * **DataElement** - * **DetectedIssue** - * **Device** - * **DeviceComponent** - * **DeviceDefinition** - * **DeviceMetric** - * **DeviceRequest** - * **DeviceUseStatement** - * **DiagnosticReport** - * **DocumentManifest** - * **DocumentReference** - * **DomainResource** - * **EffectEvidenceSynthesis** - * **EligibilityRequest** - * **EligibilityResponse** - * **Encounter** - * **Endpoint** - * **EnrollmentRequest** - * **EnrollmentResponse** - * **EpisodeOfCare** - * **EventDefinition** - * **Evidence** - * **EvidenceVariable** - * **ExampleScenario** - * **ExpansionProfile** - * **ExplanationOfBenefit** - * **FamilyMemberHistory** - * **Flag** - * **Goal** - * **GraphDefinition** - * **Group** - * **GuidanceResponse** - * **HealthcareService** - * **ImagingManifest** - * **ImagingStudy** - * **Immunization** - * **ImmunizationEvaluation** - * **ImmunizationRecommendation** - * **ImplementationGuide** - * **InsurancePlan** - * **Invoice** - * **Library** - * **Linkage** - * **List** - * **Location** - * **Measure** - * **MeasureReport** - * **Media** - * **Medication** - * **MedicationAdministration** - * **MedicationDispense** - * **MedicationKnowledge** - * **MedicationRequest** - * **MedicationStatement** - * **MedicinalProduct** - * **MedicinalProductAuthorization** - * **MedicinalProductContraindication** - * **MedicinalProductIndication** - * **MedicinalProductIngredient** - * **MedicinalProductInteraction** - * **MedicinalProductManufactured** - * **MedicinalProductPackaged** - * **MedicinalProductPharmaceutical** - * **MedicinalProductUndesirableEffect** - * **MessageDefinition** - * **MessageHeader** - * **MolecularSequence** - * **NamingSystem** - * **NutritionOrder** - * **Observation** - * **ObservationDefinition** - * **OperationDefinition** - * **OperationOutcome** - * **Organization** - * **OrganizationAffiliation** - * **Parameters** - * **Patient** - * **PaymentNotice** - * **PaymentReconciliation** - * **Person** - * **PlanDefinition** - * **Practitioner** - * **PractitionerRole** - * **Procedure** - * **ProcedureRequest** - * **ProcessRequest** - * **ProcessResponse** - * **Provenance** - * **Questionnaire** - * **QuestionnaireResponse** - * **ReferralRequest** - * **RelatedPerson** - * **RequestGroup** - * **ResearchDefinition** - * **ResearchElementDefinition** - * **ResearchStudy** - * **ResearchSubject** - * **Resource** - * **RiskAssessment** - * **RiskEvidenceSynthesis** - * **Schedule** - * **SearchParameter** - * **Sequence** - * **ServiceDefinition** - * **ServiceRequest** - * **Slot** - * **Specimen** - * **SpecimenDefinition** - * **StructureDefinition** - * **StructureMap** - * **Subscription** - * **Substance** - * **SubstanceNucleicAcid** - * **SubstancePolymer** - * **SubstanceProtein** - * **SubstanceReferenceInformation** - * **SubstanceSourceMaterial** - * **SubstanceSpecification** - * **SupplyDelivery** - * **SupplyRequest** - * **Task** - * **TerminologyCapabilities** - * **TestReport** - * **TestScript** - * **ValueSet** - * **VerificationResult** - * **VisionPrescription** - */ -export type HealthcareFhirResourceType = string; - -/** Schema of the Data property of an EventGridEvent for a Microsoft.HealthcareApis.FhirResourceUpdated event. */ -export interface HealthcareFhirResourceUpdatedEventData { - /** Type of HL7 FHIR resource. */ - resourceType: HealthcareFhirResourceType; - /** Domain name of FHIR account for this resource. */ - resourceFhirAccount?: string; - /** Id of HL7 FHIR resource. */ - resourceFhirId?: string; - /** VersionId of HL7 FHIR resource. It changes when the resource is created, updated, or deleted(soft-deletion). */ - resourceVersionId?: number; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.HealthcareApis.FhirResourceDeleted event. */ -export interface HealthcareFhirResourceDeletedEventData { - /** Type of HL7 FHIR resource. */ - resourceType: HealthcareFhirResourceType; - /** Domain name of FHIR account for this resource. */ - resourceFhirAccount?: string; - /** Id of HL7 FHIR resource. */ - resourceFhirId?: string; - /** VersionId of HL7 FHIR resource. It changes when the resource is created, updated, or deleted(soft-deletion). */ - resourceVersionId?: number; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.HealthcareApis.DicomImageCreated event. */ -export interface HealthcareDicomImageCreatedEventData { - /** Data partition name */ - partitionName?: string; - /** Unique identifier for the Study */ - imageStudyInstanceUid?: string; - /** Unique identifier for the Series */ - imageSeriesInstanceUid?: string; - /** Unique identifier for the DICOM Image */ - imageSopInstanceUid?: string; - /** Domain name of the DICOM account for this image. */ - serviceHostName?: string; - /** Sequence number of the DICOM Service within Azure Health Data Services. It is unique for every image creation and deletion within the service. */ - sequenceNumber?: number; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.HealthcareApis.DicomImageDeleted event. */ -export interface HealthcareDicomImageDeletedEventData { - /** Data partition name */ - partitionName?: string; - /** Unique identifier for the Study */ - imageStudyInstanceUid?: string; - /** Unique identifier for the Series */ - imageSeriesInstanceUid?: string; - /** Unique identifier for the DICOM Image */ - imageSopInstanceUid?: string; - /** Host name of the DICOM account for this image. */ - serviceHostName?: string; - /** Sequence number of the DICOM Service within Azure Health Data Services. It is unique for every image creation and deletion within the service. */ - sequenceNumber?: number; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.HealthcareApis.DicomImageUpdated event. */ -export interface HealthcareDicomImageUpdatedEventData { - /** Data partition name */ - partitionName?: string; - /** Unique identifier for the Study */ - imageStudyInstanceUid?: string; - /** Unique identifier for the Series */ - imageSeriesInstanceUid?: string; - /** Unique identifier for the DICOM Image */ - imageSopInstanceUid?: string; - /** Domain name of the DICOM account for this image. */ - serviceHostName?: string; - /** Sequence number of the DICOM Service within Azure Health Data Services. It is unique for every image creation, updation and deletion within the service. */ - sequenceNumber?: number; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.KeyVault.CertificateNewVersionCreated event. */ -export interface KeyVaultCertificateNewVersionCreatedEventData { - /** The id of the object that triggered this event. */ - id?: string; - /** Key vault name of the object that triggered this event. */ - vaultName?: string; - /** The type of the object that triggered this event */ - objectType?: string; - /** The name of the object that triggered this event */ - objectName?: string; - /** The version of the object that triggered this event */ - version?: string; - /** Not before date of the object that triggered this event */ - nBF?: number; - /** The expiration date of the object that triggered this event */ - eXP?: number; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.KeyVault.CertificateNearExpiry event. */ -export interface KeyVaultCertificateNearExpiryEventData { - /** The id of the object that triggered this event. */ - id?: string; - /** Key vault name of the object that triggered this event. */ - vaultName?: string; - /** The type of the object that triggered this event */ - objectType?: string; - /** The name of the object that triggered this event */ - objectName?: string; - /** The version of the object that triggered this event */ - version?: string; - /** Not before date of the object that triggered this event */ - nBF?: number; - /** The expiration date of the object that triggered this event */ - eXP?: number; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.KeyVault.CertificateExpired event. */ -export interface KeyVaultCertificateExpiredEventData { - /** The id of the object that triggered this event. */ - id?: string; - /** Key vault name of the object that triggered this event. */ - vaultName?: string; - /** The type of the object that triggered this event */ - objectType?: string; - /** The name of the object that triggered this event */ - objectName?: string; - /** The version of the object that triggered this event */ - version?: string; - /** Not before date of the object that triggered this event */ - nBF?: number; - /** The expiration date of the object that triggered this event */ - eXP?: number; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.KeyVault.KeyNewVersionCreated event. */ -export interface KeyVaultKeyNewVersionCreatedEventData { - /** The id of the object that triggered this event. */ - id?: string; - /** Key vault name of the object that triggered this event. */ - vaultName?: string; - /** The type of the object that triggered this event */ - objectType?: string; - /** The name of the object that triggered this event */ - objectName?: string; - /** The version of the object that triggered this event */ - version?: string; - /** Not before date of the object that triggered this event */ - nBF?: number; - /** The expiration date of the object that triggered this event */ - eXP?: number; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.KeyVault.KeyNearExpiry event. */ -export interface KeyVaultKeyNearExpiryEventData { - /** The id of the object that triggered this event. */ - id?: string; - /** Key vault name of the object that triggered this event. */ - vaultName?: string; - /** The type of the object that triggered this event */ - objectType?: string; - /** The name of the object that triggered this event */ - objectName?: string; - /** The version of the object that triggered this event */ - version?: string; - /** Not before date of the object that triggered this event */ - nBF?: number; - /** The expiration date of the object that triggered this event */ - eXP?: number; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.KeyVault.KeyExpired event. */ -export interface KeyVaultKeyExpiredEventData { - /** The id of the object that triggered this event. */ - id?: string; - /** Key vault name of the object that triggered this event. */ - vaultName?: string; - /** The type of the object that triggered this event */ - objectType?: string; - /** The name of the object that triggered this event */ - objectName?: string; - /** The version of the object that triggered this event */ - version?: string; - /** Not before date of the object that triggered this event */ - nBF?: number; - /** The expiration date of the object that triggered this event */ - eXP?: number; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.KeyVault.SecretNewVersionCreated event. */ -export interface KeyVaultSecretNewVersionCreatedEventData { - /** The id of the object that triggered this event. */ - id?: string; - /** Key vault name of the object that triggered this event. */ - vaultName?: string; - /** The type of the object that triggered this event */ - objectType?: string; - /** The name of the object that triggered this event */ - objectName?: string; - /** The version of the object that triggered this event */ - version?: string; - /** Not before date of the object that triggered this event */ - nBF?: number; - /** The expiration date of the object that triggered this event */ - eXP?: number; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.KeyVault.SecretNearExpiry event. */ -export interface KeyVaultSecretNearExpiryEventData { - /** The id of the object that triggered this event. */ - id?: string; - /** Key vault name of the object that triggered this event. */ - vaultName?: string; - /** The type of the object that triggered this event */ - objectType?: string; - /** The name of the object that triggered this event */ - objectName?: string; - /** The version of the object that triggered this event */ - version?: string; - /** Not before date of the object that triggered this event */ - nBF?: number; - /** The expiration date of the object that triggered this event */ - eXP?: number; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.KeyVault.SecretExpired event. */ -export interface KeyVaultSecretExpiredEventData { - /** The id of the object that triggered this event. */ - id?: string; - /** Key vault name of the object that triggered this event. */ - vaultName?: string; - /** The type of the object that triggered this event */ - objectType?: string; - /** The name of the object that triggered this event */ - objectName?: string; - /** The version of the object that triggered this event */ - version?: string; - /** Not before date of the object that triggered this event */ - nBF?: number; - /** The expiration date of the object that triggered this event */ - eXP?: number; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.KeyVault.VaultAccessPolicyChanged event. */ -export interface KeyVaultAccessPolicyChangedEventData { - /** The id of the object that triggered this event. */ - id?: string; - /** Key vault name of the object that triggered this event. */ - vaultName?: string; - /** The type of the object that triggered this event */ - objectType?: string; - /** The name of the object that triggered this event */ - objectName?: string; - /** The version of the object that triggered this event */ - version?: string; - /** Not before date of the object that triggered this event */ - nBF?: number; - /** The expiration date of the object that triggered this event */ - eXP?: number; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.MachineLearningServices.ModelRegistered event. */ -export interface MachineLearningServicesModelRegisteredEventData { - /** The name of the model that was registered. */ - modelName?: string; - /** The version of the model that was registered. */ - modelVersion?: string; - /** The tags of the model that was registered. */ - modelTags: Record; - /** The properties of the model that was registered. */ - modelProperties: Record; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.MachineLearningServices.ModelDeployed event. */ -export interface MachineLearningServicesModelDeployedEventData { - /** The name of the deployed service. */ - serviceName?: string; - /** The compute type (e.g. ACI, AKS) of the deployed service. */ - serviceComputeType?: string; - /** A common separated list of model IDs. The IDs of the models deployed in the service. */ - modelIds?: string; - /** The tags of the deployed service. */ - serviceTags: Record; - /** The properties of the deployed service. */ - serviceProperties: Record; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.MachineLearningServices.RunCompleted event. */ -export interface MachineLearningServicesRunCompletedEventData { - /** The ID of the experiment that the run belongs to. */ - experimentId?: string; - /** The name of the experiment that the run belongs to. */ - experimentName?: string; - /** The ID of the Run that was completed. */ - runId?: string; - /** The Run Type of the completed Run. */ - runType?: string; - /** The tags of the completed Run. */ - runTags: Record; - /** The properties of the completed Run. */ - runProperties: Record; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.MachineLearningServices.DatasetDriftDetected event. */ -export interface MachineLearningServicesDatasetDriftDetectedEventData { - /** The ID of the data drift monitor that triggered the event. */ - dataDriftId?: string; - /** The name of the data drift monitor that triggered the event. */ - dataDriftName?: string; - /** The ID of the Run that detected data drift. */ - runId?: string; - /** The ID of the base Dataset used to detect drift. */ - baseDatasetId?: string; - /** The ID of the target Dataset used to detect drift. */ - targetDatasetId?: string; - /** The coefficient result that triggered the event. */ - driftCoefficient?: number; - /** The start time of the target dataset time series that resulted in drift detection. */ - startTime: Date; - /** The end time of the target dataset time series that resulted in drift detection. */ - endTime: Date; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.MachineLearningServices.RunStatusChanged event. */ -export interface MachineLearningServicesRunStatusChangedEventData { - /** The ID of the experiment that the Machine Learning Run belongs to. */ - experimentId?: string; - /** The name of the experiment that the Machine Learning Run belongs to. */ - experimentName?: string; - /** The ID of the Machine Learning Run. */ - runId?: string; - /** The Run Type of the Machine Learning Run. */ - runType?: string; - /** The tags of the Machine Learning Run. */ - runTags: Record; - /** The properties of the Machine Learning Run. */ - runProperties: Record; - /** The status of the Machine Learning Run. */ - runStatus?: string; -} - -/** - * Schema of the Data property of an EventGridEvent for a - * Microsoft.Media.JobStateChange event. - */ -export interface MediaJobStateChangeEventData { - /** The previous state of the Job. */ - previousState: MediaJobState; - /** The new state of the Job. */ - state: MediaJobState; - /** Gets the Job correlation data. */ - correlationData: Record; -} - -/** Known values of {@link MediaJobState} that the service accepts. */ -export enum KnownMediaJobState { - /** Canceled */ - Canceled = "Canceled", - /** Canceling */ - Canceling = "Canceling", - /** Error */ - Error = "Error", - /** Finished */ - Finished = "Finished", - /** Processing */ - Processing = "Processing", - /** Queued */ - Queued = "Queued", - /** Scheduled */ - Scheduled = "Scheduled", -} - -/** - * State of a Media Job. - * {@link KnownMediaJobState} can be used interchangeably with MediaJobState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Canceled** - * **Canceling** - * **Error** - * **Finished** - * **Processing** - * **Queued** - * **Scheduled** - */ -export type MediaJobState = string; - -/** Details of JobOutput errors. */ -export interface MediaJobError { - /** Error code describing the error. */ - code: MediaJobErrorCode; - /** A human-readable language-dependent representation of the error. */ - message?: string; - /** Helps with categorization of errors. */ - category: MediaJobErrorCategory; - /** Indicates that it may be possible to retry the Job. If retry is unsuccessful, please contact Azure support via Azure Portal. */ - retry: MediaJobRetry; - /** An array of details about specific errors that led to this reported error. */ - details: MediaJobErrorDetail[]; -} - -/** Known values of {@link MediaJobErrorCode} that the service accepts. */ -export enum KnownMediaJobErrorCode { - /** ServiceError */ - ServiceError = "ServiceError", - /** ServiceTransientError */ - ServiceTransientError = "ServiceTransientError", - /** DownloadNotAccessible */ - DownloadNotAccessible = "DownloadNotAccessible", - /** DownloadTransientError */ - DownloadTransientError = "DownloadTransientError", - /** UploadNotAccessible */ - UploadNotAccessible = "UploadNotAccessible", - /** UploadTransientError */ - UploadTransientError = "UploadTransientError", - /** ConfigurationUnsupported */ - ConfigurationUnsupported = "ConfigurationUnsupported", - /** ContentMalformed */ - ContentMalformed = "ContentMalformed", - /** ContentUnsupported */ - ContentUnsupported = "ContentUnsupported", - /** IdentityUnsupported */ - IdentityUnsupported = "IdentityUnsupported", -} - -/** - * Media Job Error Codes. - * {@link KnownMediaJobErrorCode} can be used interchangeably with MediaJobErrorCode, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **ServiceError** - * **ServiceTransientError** - * **DownloadNotAccessible** - * **DownloadTransientError** - * **UploadNotAccessible** - * **UploadTransientError** - * **ConfigurationUnsupported** - * **ContentMalformed** - * **ContentUnsupported** - * **IdentityUnsupported** - */ -export type MediaJobErrorCode = string; - -/** Known values of {@link MediaJobErrorCategory} that the service accepts. */ -export enum KnownMediaJobErrorCategory { - /** Service */ - Service = "Service", - /** Download */ - Download = "Download", - /** Upload */ - Upload = "Upload", - /** Configuration */ - Configuration = "Configuration", - /** Content */ - Content = "Content", - /** Account */ - Account = "Account", -} - -/** - * Error categories for Media Job Errors. - * {@link KnownMediaJobErrorCategory} can be used interchangeably with MediaJobErrorCategory, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Service** - * **Download** - * **Upload** - * **Configuration** - * **Content** - * **Account** - */ -export type MediaJobErrorCategory = string; - -/** Known values of {@link MediaJobRetry} that the service accepts. */ -export enum KnownMediaJobRetry { - /** DoNotRetry */ - DoNotRetry = "DoNotRetry", - /** MayRetry */ - MayRetry = "MayRetry", -} - -/** - * Media Job Retry Options. - * {@link KnownMediaJobRetry} can be used interchangeably with MediaJobRetry, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **DoNotRetry** - * **MayRetry** - */ -export type MediaJobRetry = string; - -/** Details of JobOutput errors. */ -export interface MediaJobErrorDetail { - /** Code describing the error detail. */ - code?: string; - /** A human-readable representation of the error. */ - message?: string; -} - -/** The event data for a Job output. */ -export interface MediaJobOutput { - /** the discriminator possible values: #Microsoft.Media.JobOutputAsset */ - "@odata.type": string; - /** Gets the Job output error. */ - error: MediaJobError; - /** Gets the Job output label. */ - label?: string; - /** Gets the Job output progress. */ - progress: number; - /** Gets the Job output state. */ - state: MediaJobState; -} - -/** The event data for a Job output asset. */ -export interface MediaJobOutputAsset extends MediaJobOutput { - /** Gets the Job output asset name. */ - assetName?: string; - /** The discriminator for derived types. */ - "@odata.type": "#Microsoft.Media.JobOutputAsset"; -} - -/** - * Job Output Progress Event Data. Schema of the Data property of an - * EventGridEvent for a Microsoft.Media.JobOutputProgress event. - */ -export interface MediaJobOutputProgressEventData { - /** Gets the Job output label. */ - label?: string; - /** Gets the Job output progress. */ - progress?: number; - /** Gets the Job correlation data. */ - jobCorrelationData: Record; -} - -/** - * Schema of the Data property of an EventGridEvent for a - * Microsoft.Media.JobOutputStateChange event. - */ -export interface MediaJobOutputStateChangeEventData { - /** The previous state of the Job. */ - previousState: MediaJobState; - /** Gets the output. */ - output: MediaJobOutputUnion; - /** Gets the Job correlation data. */ - jobCorrelationData: Record; -} - -/** - * Job scheduled event data. Schema of the data property of an EventGridEvent for - * a Microsoft.Media.JobScheduled event. - */ -export interface MediaJobScheduledEventData extends MediaJobStateChangeEventData {} - -/** - * Job processing event data. Schema of the data property of an EventGridEvent for - * a Microsoft.Media.JobProcessing event. - */ -export interface MediaJobProcessingEventData extends MediaJobStateChangeEventData {} - -/** - * Job canceling event data. Schema of the data property of an EventGridEvent for - * a Microsoft.Media.JobCanceling event. - */ -export interface MediaJobCancelingEventData extends MediaJobStateChangeEventData {} - -/** - * Job finished event data. Schema of the data property of an EventGridEvent for a - * Microsoft.Media.JobFinished event. - */ -export interface MediaJobFinishedEventData extends MediaJobStateChangeEventData { - /** Gets the Job outputs. */ - outputs: MediaJobOutputUnion[]; -} - -/** - * Job canceled event data. Schema of the data property of an EventGridEvent for a - * Microsoft.Media.JobCanceled event. - */ -export interface MediaJobCanceledEventData extends MediaJobStateChangeEventData { - /** Gets the Job outputs. */ - outputs: MediaJobOutputUnion[]; -} - -/** - * Job error state event data. Schema of the data property of an EventGridEvent - * for a Microsoft.Media.JobErrored event. - */ -export interface MediaJobErroredEventData extends MediaJobStateChangeEventData { - /** Gets the Job outputs. */ - outputs: MediaJobOutputUnion[]; -} - -/** - * Job output canceled event data. Schema of the data property of an - * EventGridEvent for a Microsoft.Media.JobOutputCanceled event. - */ -export interface MediaJobOutputCanceledEventData extends MediaJobOutputStateChangeEventData {} - -/** - * Job output canceling event data. Schema of the data property of an - * EventGridEvent for a Microsoft.Media.JobOutputCanceling event. - */ -export interface MediaJobOutputCancelingEventData extends MediaJobOutputStateChangeEventData {} - -/** - * Job output error event data. Schema of the data property of an EventGridEvent - * for a Microsoft.Media.JobOutputErrored event. - */ -export interface MediaJobOutputErroredEventData extends MediaJobOutputStateChangeEventData {} - -/** - * Job output finished event data. Schema of the data property of an - * EventGridEvent for a Microsoft.Media.JobOutputFinished event. - */ -export interface MediaJobOutputFinishedEventData extends MediaJobOutputStateChangeEventData {} - -/** - * Job output processing event data. Schema of the data property of an - * EventGridEvent for a Microsoft.Media.JobOutputProcessing event. - */ -export interface MediaJobOutputProcessingEventData extends MediaJobOutputStateChangeEventData {} - -/** - * Job output scheduled event data. Schema of the data property of an - * EventGridEvent for a Microsoft.Media.JobOutputScheduled event. - */ -export interface MediaJobOutputScheduledEventData extends MediaJobOutputStateChangeEventData {} - -/** Encoder connect event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.LiveEventEncoderConnected event. */ -export interface MediaLiveEventEncoderConnectedEventData { - /** Gets the ingest URL provided by the live event. */ - ingestUrl?: string; - /** Gets the stream Id. */ - streamId?: string; - /** Gets the remote IP. */ - encoderIp?: string; - /** Gets the remote port. */ - encoderPort?: string; -} - -/** Encoder connection rejected event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.LiveEventConnectionRejected event. */ -export interface MediaLiveEventConnectionRejectedEventData { - /** Gets the ingest URL provided by the live event. */ - ingestUrl?: string; - /** Gets the stream Id. */ - streamId?: string; - /** Gets the remote IP. */ - encoderIp?: string; - /** Gets the remote port. */ - encoderPort?: string; - /** Gets the result code. */ - resultCode?: string; -} - -/** Encoder disconnected event data. Schema of the Data property of an EventGridEvent for a Microsoft.Media.LiveEventEncoderDisconnected event. */ -export interface MediaLiveEventEncoderDisconnectedEventData { - /** Gets the ingest URL provided by the live event. */ - ingestUrl?: string; - /** Gets the stream Id. */ - streamId?: string; - /** Gets the remote IP. */ - encoderIp?: string; - /** Gets the remote port. */ - encoderPort?: string; - /** Gets the result code. */ - resultCode?: string; -} - -/** Encoder connect event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.LiveEventIncomingStreamReceived event. */ -export interface MediaLiveEventIncomingStreamReceivedEventData { - /** Gets the ingest URL provided by the live event. */ - ingestUrl?: string; - /** Gets the type of the track (Audio / Video). */ - trackType?: string; - /** Gets the track name. */ - trackName?: string; - /** Gets the bitrate of the track. */ - bitrate?: number; - /** Gets the remote IP. */ - encoderIp?: string; - /** Gets the remote port. */ - encoderPort?: string; - /** Gets the first timestamp of the data chunk received. */ - timestamp?: string; - /** Gets the duration of the first data chunk. */ - duration?: string; - /** Gets the timescale in which timestamp is represented. */ - timescale?: string; -} - -/** Incoming streams out of sync event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.LiveEventIncomingStreamsOutOfSync event. */ -export interface MediaLiveEventIncomingStreamsOutOfSyncEventData { - /** Gets the minimum last timestamp received. */ - minLastTimestamp?: string; - /** Gets the type of stream with minimum last timestamp. */ - typeOfStreamWithMinLastTimestamp?: string; - /** Gets the maximum timestamp among all the tracks (audio or video). */ - maxLastTimestamp?: string; - /** Gets the type of stream with maximum last timestamp. */ - typeOfStreamWithMaxLastTimestamp?: string; - /** Gets the timescale in which"MinLastTimestamp\" is represented. */ - timescaleOfMinLastTimestamp?: string; - /** Gets the timescale in which"MaxLastTimestamp\" is represented. */ - timescaleOfMaxLastTimestamp?: string; -} - -/** Incoming video stream out of sync event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.LiveEventIncomingVideoStreamsOutOfSync event. */ -export interface MediaLiveEventIncomingVideoStreamsOutOfSyncEventData { - /** Gets the first timestamp received for one of the quality levels. */ - firstTimestamp?: string; - /** Gets the duration of the data chunk with first timestamp. */ - firstDuration?: string; - /** Gets the timestamp received for some other quality levels. */ - secondTimestamp?: string; - /** Gets the duration of the data chunk with second timestamp. */ - secondDuration?: string; - /** Gets the timescale in which both the timestamps and durations are represented. */ - timescale?: string; -} - -/** Ingest fragment dropped event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.LiveEventIncomingDataChunkDropped event. */ -export interface MediaLiveEventIncomingDataChunkDroppedEventData { - /** Gets the timestamp of the data chunk dropped. */ - timestamp?: string; - /** Gets the type of the track (Audio / Video). */ - trackType?: string; - /** Gets the bitrate of the track. */ - bitrate?: number; - /** Gets the timescale of the Timestamp. */ - timescale?: string; - /** Gets the result code for fragment drop operation. */ - resultCode?: string; - /** Gets the name of the track for which fragment is dropped. */ - trackName?: string; -} - -/** Ingest heartbeat event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.LiveEventIngestHeartbeat event. */ -export interface MediaLiveEventIngestHeartbeatEventData { - /** Gets the type of the track (Audio / Video). */ - trackType?: string; - /** Gets the track name. */ - trackName?: string; - /** Gets the Live Transcription language. */ - transcriptionLanguage?: string; - /** Gets the Live Transcription state. */ - transcriptionState?: string; - /** Gets the bitrate of the track. */ - bitrate?: number; - /** Gets the incoming bitrate. */ - incomingBitrate?: number; - /** Gets the track ingest drift value. */ - ingestDriftValue?: string; - /** Gets the arrival UTC time of the last fragment. */ - lastFragmentArrivalTime?: string; - /** Gets the last timestamp. */ - lastTimestamp?: string; - /** Gets the timescale of the last timestamp. */ - timescale?: string; - /** Gets the fragment Overlap count. */ - overlapCount?: number; - /** Gets the fragment Discontinuity count. */ - discontinuityCount?: number; - /** Gets Non increasing count. */ - nonincreasingCount?: number; - /** Gets a value indicating whether unexpected bitrate is present or not. */ - unexpectedBitrate?: boolean; - /** Gets the state of the live event. */ - state?: string; - /** Gets a value indicating whether preview is healthy or not. */ - healthy?: boolean; -} - -/** Ingest track discontinuity detected event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.LiveEventTrackDiscontinuityDetected event. */ -export interface MediaLiveEventTrackDiscontinuityDetectedEventData { - /** Gets the type of the track (Audio / Video). */ - trackType?: string; - /** Gets the track name. */ - trackName?: string; - /** Gets the bitrate. */ - bitrate?: number; - /** Gets the timestamp of the previous fragment. */ - previousTimestamp?: string; - /** Gets the timestamp of the current fragment. */ - newTimestamp?: string; - /** Gets the timescale in which both timestamps and discontinuity gap are represented. */ - timescale?: string; - /** Gets the discontinuity gap between PreviousTimestamp and NewTimestamp. */ - discontinuityGap?: string; -} - -/** Channel Archive heartbeat event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.LiveEventChannelArchiveHeartbeat event. */ -export interface MediaLiveEventChannelArchiveHeartbeatEventData { - /** Gets the channel latency in ms. */ - channelLatencyMs: string; - /** Gets the latency result code. */ - latencyResultCode: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.PolicyInsights.PolicyStateCreated event. */ -export interface PolicyInsightsPolicyStateCreatedEventData { - /** The time that the resource was scanned by Azure Policy in the Universal ISO 8601 DateTime format yyyy-MM-ddTHH:mm:ss.fffffffZ. */ - timestamp: Date; - /** The resource ID of the policy assignment. */ - policyAssignmentId?: string; - /** The resource ID of the policy definition. */ - policyDefinitionId?: string; - /** The reference ID for the policy definition inside the initiative definition, if the policy assignment is for an initiative. May be empty. */ - policyDefinitionReferenceId?: string; - /** The compliance state of the resource with respect to the policy assignment. */ - complianceState?: string; - /** The subscription ID of the resource. */ - subscriptionId?: string; - /** The compliance reason code. May be empty. */ - complianceReasonCode?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.PolicyInsights.PolicyStateChanged event. */ -export interface PolicyInsightsPolicyStateChangedEventData { - /** The time that the resource was scanned by Azure Policy in the Universal ISO 8601 DateTime format yyyy-MM-ddTHH:mm:ss.fffffffZ. */ - timestamp: Date; - /** The resource ID of the policy assignment. */ - policyAssignmentId?: string; - /** The resource ID of the policy definition. */ - policyDefinitionId?: string; - /** The reference ID for the policy definition inside the initiative definition, if the policy assignment is for an initiative. May be empty. */ - policyDefinitionReferenceId?: string; - /** The compliance state of the resource with respect to the policy assignment. */ - complianceState?: string; - /** The subscription ID of the resource. */ - subscriptionId?: string; - /** The compliance reason code. May be empty. */ - complianceReasonCode?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.PolicyInsights.PolicyStateDeleted event. */ -export interface PolicyInsightsPolicyStateDeletedEventData { - /** The time that the resource was scanned by Azure Policy in the Universal ISO 8601 DateTime format yyyy-MM-ddTHH:mm:ss.fffffffZ. */ - timestamp: Date; - /** The resource ID of the policy assignment. */ - policyAssignmentId?: string; - /** The resource ID of the policy definition. */ - policyDefinitionId?: string; - /** The reference ID for the policy definition inside the initiative definition, if the policy assignment is for an initiative. May be empty. */ - policyDefinitionReferenceId?: string; - /** The compliance state of the resource with respect to the policy assignment. */ - complianceState?: string; - /** The subscription ID of the resource. */ - subscriptionId?: string; - /** The compliance reason code. May be empty. */ - complianceReasonCode?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Cache.PatchingCompleted event. */ -export interface RedisPatchingCompletedEventData { - /** The time at which the event occurred. */ - timestamp: Date; - /** The name of this event. */ - name?: string; - /** The status of this event. Failed or succeeded */ - status?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Cache.ScalingCompleted event. */ -export interface RedisScalingCompletedEventData { - /** The time at which the event occurred. */ - timestamp: Date; - /** The name of this event. */ - name?: string; - /** The status of this event. Failed or succeeded */ - status?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Cache.ExportRDBCompleted event. */ -export interface RedisExportRDBCompletedEventData { - /** The time at which the event occurred. */ - timestamp: Date; - /** The name of this event. */ - name?: string; - /** The status of this event. Failed or succeeded */ - status?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Cache.ImportRDBCompleted event. */ -export interface RedisImportRDBCompletedEventData { - /** The time at which the event occurred. */ - timestamp: Date; - /** The name of this event. */ - name?: string; - /** The status of this event. Failed or succeeded */ - status?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Resources.ResourceWriteSuccess event. This is raised when a resource create or update operation succeeds. */ -export interface ResourceWriteSuccessEventData { - /** The tenant ID of the resource. */ - tenantId?: string; - /** The subscription ID of the resource. */ - subscriptionId?: string; - /** The resource group of the resource. */ - resourceGroup?: string; - /** The resource provider performing the operation. */ - resourceProvider?: string; - /** The URI of the resource in the operation. */ - resourceUri?: string; - /** The operation that was performed. */ - operationName?: string; - /** The status of the operation. */ - status?: string; - /** The requested authorization for the operation. */ - authorization: ResourceAuthorization; - /** The properties of the claims. */ - claims: Record; - /** An operation ID used for troubleshooting. */ - correlationId?: string; - /** The details of the operation. */ - httpRequest: ResourceHttpRequest; -} - -/** The details of the authorization for the resource. */ -export interface ResourceAuthorization { - /** The scope of the authorization. */ - scope?: string; - /** The action being requested. */ - action?: string; - /** The evidence for the authorization. */ - evidence: Record; -} - -/** The details of the HTTP request. */ -export interface ResourceHttpRequest { - /** The client request ID. */ - clientRequestId?: string; - /** The client IP address. */ - clientIpAddress?: string; - /** The request method. */ - method?: string; - /** The url used in the request. */ - url?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Resources.ResourceWriteFailure event. This is raised when a resource create or update operation fails. */ -export interface ResourceWriteFailureEventData { - /** The tenant ID of the resource. */ - tenantId?: string; - /** The subscription ID of the resource. */ - subscriptionId?: string; - /** The resource group of the resource. */ - resourceGroup?: string; - /** The resource provider performing the operation. */ - resourceProvider?: string; - /** The URI of the resource in the operation. */ - resourceUri?: string; - /** The operation that was performed. */ - operationName?: string; - /** The status of the operation. */ - status?: string; - /** The requested authorization for the operation. */ - authorization: ResourceAuthorization; - /** The properties of the claims. */ - claims: Record; - /** An operation ID used for troubleshooting. */ - correlationId?: string; - /** The details of the operation. */ - httpRequest: ResourceHttpRequest; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Resources.ResourceWriteCancel event. This is raised when a resource create or update operation is canceled. */ -export interface ResourceWriteCancelEventData { - /** The tenant ID of the resource. */ - tenantId?: string; - /** The subscription ID of the resource. */ - subscriptionId?: string; - /** The resource group of the resource. */ - resourceGroup?: string; - /** The resource provider performing the operation. */ - resourceProvider?: string; - /** The URI of the resource in the operation. */ - resourceUri?: string; - /** The operation that was performed. */ - operationName?: string; - /** The status of the operation. */ - status?: string; - /** The requested authorization for the operation. */ - authorization: ResourceAuthorization; - /** The properties of the claims. */ - claims: Record; - /** An operation ID used for troubleshooting. */ - correlationId?: string; - /** The details of the operation. */ - httpRequest: ResourceHttpRequest; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Resources.ResourceDeleteSuccess event. This is raised when a resource delete operation succeeds. */ -export interface ResourceDeleteSuccessEventData { - /** The tenant ID of the resource. */ - tenantId?: string; - /** The subscription ID of the resource. */ - subscriptionId?: string; - /** The resource group of the resource. */ - resourceGroup?: string; - /** The resource provider performing the operation. */ - resourceProvider?: string; - /** The URI of the resource in the operation. */ - resourceUri?: string; - /** The operation that was performed. */ - operationName?: string; - /** The status of the operation. */ - status?: string; - /** The requested authorization for the operation. */ - authorization: ResourceAuthorization; - /** The properties of the claims. */ - claims: Record; - /** An operation ID used for troubleshooting. */ - correlationId?: string; - /** The details of the operation. */ - httpRequest: ResourceHttpRequest; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Resources.ResourceDeleteFailure event. This is raised when a resource delete operation fails. */ -export interface ResourceDeleteFailureEventData { - /** The tenant ID of the resource. */ - tenantId?: string; - /** The subscription ID of the resource. */ - subscriptionId?: string; - /** The resource group of the resource. */ - resourceGroup?: string; - /** The resource provider performing the operation. */ - resourceProvider?: string; - /** The URI of the resource in the operation. */ - resourceUri?: string; - /** The operation that was performed. */ - operationName?: string; - /** The status of the operation. */ - status?: string; - /** The requested authorization for the operation. */ - authorization: ResourceAuthorization; - /** The properties of the claims. */ - claims: Record; - /** An operation ID used for troubleshooting. */ - correlationId?: string; - /** The details of the operation. */ - httpRequest: ResourceHttpRequest; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Resources.ResourceDeleteCancel event. This is raised when a resource delete operation is canceled. */ -export interface ResourceDeleteCancelEventData { - /** The tenant ID of the resource. */ - tenantId?: string; - /** The subscription ID of the resource. */ - subscriptionId?: string; - /** The resource group of the resource. */ - resourceGroup?: string; - /** The resource provider performing the operation. */ - resourceProvider?: string; - /** The URI of the resource in the operation. */ - resourceUri?: string; - /** The operation that was performed. */ - operationName?: string; - /** The status of the operation. */ - status?: string; - /** The requested authorization for the operation. */ - authorization: ResourceAuthorization; - /** The properties of the claims. */ - claims: Record; - /** An operation ID used for troubleshooting. */ - correlationId?: string; - /** The details of the operation. */ - httpRequest: ResourceHttpRequest; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Resources.ResourceActionSuccess event. This is raised when a resource action operation succeeds. */ -export interface ResourceActionSuccessEventData { - /** The tenant ID of the resource. */ - tenantId?: string; - /** The subscription ID of the resource. */ - subscriptionId?: string; - /** The resource group of the resource. */ - resourceGroup?: string; - /** The resource provider performing the operation. */ - resourceProvider?: string; - /** The URI of the resource in the operation. */ - resourceUri?: string; - /** The operation that was performed. */ - operationName?: string; - /** The status of the operation. */ - status?: string; - /** The requested authorization for the operation. */ - authorization: ResourceAuthorization; - /** The properties of the claims. */ - claims: Record; - /** An operation ID used for troubleshooting. */ - correlationId?: string; - /** The details of the operation. */ - httpRequest: ResourceHttpRequest; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Resources.ResourceActionFailure event. This is raised when a resource action operation fails. */ -export interface ResourceActionFailureEventData { - /** The tenant ID of the resource. */ - tenantId?: string; - /** The subscription ID of the resource. */ - subscriptionId?: string; - /** The resource group of the resource. */ - resourceGroup?: string; - /** The resource provider performing the operation. */ - resourceProvider?: string; - /** The URI of the resource in the operation. */ - resourceUri?: string; - /** The operation that was performed. */ - operationName?: string; - /** The status of the operation. */ - status?: string; - /** The requested authorization for the operation. */ - authorization: ResourceAuthorization; - /** The properties of the claims. */ - claims: Record; - /** An operation ID used for troubleshooting. */ - correlationId?: string; - /** The details of the operation. */ - httpRequest: ResourceHttpRequest; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Resources.ResourceActionCancel event. This is raised when a resource action operation is canceled. */ -export interface ResourceActionCancelEventData { - /** The tenant ID of the resource. */ - tenantId?: string; - /** The subscription ID of the resource. */ - subscriptionId?: string; - /** The resource group of the resource. */ - resourceGroup?: string; - /** The resource provider performing the operation. */ - resourceProvider?: string; - /** The URI of the resource in the operation. */ - resourceUri?: string; - /** The operation that was performed. */ - operationName?: string; - /** The status of the operation. */ - status?: string; - /** The requested authorization for the operation. */ - authorization: ResourceAuthorization; - /** The properties of the claims. */ - claims: Record; - /** An operation ID used for troubleshooting. */ - correlationId?: string; - /** The details of the operation. */ - httpRequest: ResourceHttpRequest; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.ServiceBus.ActiveMessagesAvailableWithNoListeners event. */ -export interface ServiceBusActiveMessagesAvailableWithNoListenersEventData { - /** The namespace name of the Microsoft.ServiceBus resource. */ - namespaceName?: string; - /** The endpoint of the Microsoft.ServiceBus resource. */ - requestUri?: string; - /** The entity type of the Microsoft.ServiceBus resource. Could be one of 'queue' or 'subscriber'. */ - entityType?: string; - /** The name of the Microsoft.ServiceBus queue. If the entity type is of type 'subscriber', then this value will be null. */ - queueName?: string; - /** The name of the Microsoft.ServiceBus topic. If the entity type is of type 'queue', then this value will be null. */ - topicName?: string; - /** The name of the Microsoft.ServiceBus topic's subscription. If the entity type is of type 'queue', then this value will be null. */ - subscriptionName?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.ServiceBus.DeadletterMessagesAvailableWithNoListeners event. */ -export interface ServiceBusDeadletterMessagesAvailableWithNoListenersEventData { - /** The namespace name of the Microsoft.ServiceBus resource. */ - namespaceName?: string; - /** The endpoint of the Microsoft.ServiceBus resource. */ - requestUri?: string; - /** The entity type of the Microsoft.ServiceBus resource. Could be one of 'queue' or 'subscriber'. */ - entityType?: string; - /** The name of the Microsoft.ServiceBus queue. If the entity type is of type 'subscriber', then this value will be null. */ - queueName?: string; - /** The name of the Microsoft.ServiceBus topic. If the entity type is of type 'queue', then this value will be null. */ - topicName?: string; - /** The name of the Microsoft.ServiceBus topic's subscription. If the entity type is of type 'queue', then this value will be null. */ - subscriptionName?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.ServiceBus.ActiveMessagesAvailablePeriodicNotifications event. */ -export interface ServiceBusActiveMessagesAvailablePeriodicNotificationsEventData { - /** The namespace name of the Microsoft.ServiceBus resource. */ - namespaceName?: string; - /** The endpoint of the Microsoft.ServiceBus resource. */ - requestUri?: string; - /** The entity type of the Microsoft.ServiceBus resource. Could be one of 'queue' or 'subscriber'. */ - entityType?: string; - /** The name of the Microsoft.ServiceBus queue. If the entity type is of type 'subscriber', then this value will be null. */ - queueName?: string; - /** The name of the Microsoft.ServiceBus topic. If the entity type is of type 'queue', then this value will be null. */ - topicName?: string; - /** The name of the Microsoft.ServiceBus topic's subscription. If the entity type is of type 'queue', then this value will be null. */ - subscriptionName?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.ServiceBus.DeadletterMessagesAvailablePeriodicNotifications event. */ -export interface ServiceBusDeadletterMessagesAvailablePeriodicNotificationsEventData { - /** The namespace name of the Microsoft.ServiceBus resource. */ - namespaceName?: string; - /** The endpoint of the Microsoft.ServiceBus resource. */ - requestUri?: string; - /** The entity type of the Microsoft.ServiceBus resource. Could be one of 'queue' or 'subscriber'. */ - entityType?: string; - /** The name of the Microsoft.ServiceBus queue. If the entity type is of type 'subscriber', then this value will be null. */ - queueName?: string; - /** The name of the Microsoft.ServiceBus topic. If the entity type is of type 'queue', then this value will be null. */ - topicName?: string; - /** The name of the Microsoft.ServiceBus topic's subscription. If the entity type is of type 'queue', then this value will be null. */ - subscriptionName?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.SignalRService.ClientConnectionConnected event. */ -export interface SignalRServiceClientConnectionConnectedEventData { - /** The time at which the event occurred. */ - timestamp: Date; - /** The hub of connected client connection. */ - hubName?: string; - /** The connection Id of connected client connection. */ - connectionId?: string; - /** The user Id of connected client connection. */ - userId?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.SignalRService.ClientConnectionDisconnected event. */ -export interface SignalRServiceClientConnectionDisconnectedEventData { - /** The time at which the event occurred. */ - timestamp: Date; - /** The hub of connected client connection. */ - hubName?: string; - /** The connection Id of connected client connection. */ - connectionId?: string; - /** The user Id of connected client connection. */ - userId?: string; - /** The message of error that cause the client connection disconnected. */ - errorMessage?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Storage.BlobCreated event. */ -export interface StorageBlobCreatedEventData { - /** The name of the API/operation that triggered this event. */ - api?: string; - /** A request id provided by the client of the storage API operation that triggered this event. */ - clientRequestId?: string; - /** The request id generated by the storage service for the storage API operation that triggered this event. */ - requestId?: string; - /** The etag of the blob at the time this event was triggered. */ - eTag?: string; - /** The content type of the blob. This is the same as what would be returned in the Content-Type header from the blob. */ - contentType?: string; - /** The size of the blob in bytes. This is the same as what would be returned in the Content-Length header from the blob. */ - contentLength?: number; - /** The offset of the blob in bytes. */ - contentOffset?: number; - /** The type of blob. */ - blobType?: string; - /** The current tier of the blob. */ - accessTier: StorageBlobAccessTier; - /** The path to the blob. */ - url?: string; - /** An opaque string value representing the logical sequence of events for any particular blob name. Users can use standard string comparison to understand the relative sequence of two events on the same blob name. */ - sequencer?: string; - /** The identity of the requester that triggered this event. */ - identity?: string; - /** For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers. */ - storageDiagnostics: Record; -} - -/** Known values of {@link StorageBlobAccessTier} that the service accepts. */ -export enum KnownStorageBlobAccessTier { - /** Hot */ - Hot = "Hot", - /** Cool */ - Cool = "Cool", - /** Cold */ - Cold = "Cold", - /** Archive */ - Archive = "Archive", - /** Default */ - Default = "Default", -} - -/** - * The access tier of the blob. - * {@link KnownStorageBlobAccessTier} can be used interchangeably with StorageBlobAccessTier, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Hot** - * **Cool** - * **Cold** - * **Archive** - * **Default** - */ -export type StorageBlobAccessTier = string; - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Storage.BlobDeleted event. */ -export interface StorageBlobDeletedEventData { - /** The name of the API/operation that triggered this event. */ - api?: string; - /** A request id provided by the client of the storage API operation that triggered this event. */ - clientRequestId?: string; - /** The request id generated by the storage service for the storage API operation that triggered this event. */ - requestId?: string; - /** The content type of the blob. This is the same as what would be returned in the Content-Type header from the blob. */ - contentType?: string; - /** The type of blob. */ - blobType?: string; - /** The path to the blob. */ - url?: string; - /** An opaque string value representing the logical sequence of events for any particular blob name. Users can use standard string comparison to understand the relative sequence of two events on the same blob name. */ - sequencer?: string; - /** The identity of the requester that triggered this event. */ - identity?: string; - /** For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers. */ - storageDiagnostics: Record; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Storage.DirectoryCreated event. */ -export interface StorageDirectoryCreatedEventData { - /** The name of the API/operation that triggered this event. */ - api?: string; - /** A request id provided by the client of the storage API operation that triggered this event. */ - clientRequestId?: string; - /** The request id generated by the storage service for the storage API operation that triggered this event. */ - requestId?: string; - /** The etag of the directory at the time this event was triggered. */ - eTag?: string; - /** The path to the directory. */ - url?: string; - /** An opaque string value representing the logical sequence of events for any particular directory name. Users can use standard string comparison to understand the relative sequence of two events on the same directory name. */ - sequencer?: string; - /** The identity of the requester that triggered this event. */ - identity?: string; - /** For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers. */ - storageDiagnostics: Record; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Storage.DirectoryDeleted event. */ -export interface StorageDirectoryDeletedEventData { - /** The name of the API/operation that triggered this event. */ - api?: string; - /** A request id provided by the client of the storage API operation that triggered this event. */ - clientRequestId?: string; - /** The request id generated by the storage service for the storage API operation that triggered this event. */ - requestId?: string; - /** The path to the deleted directory. */ - url?: string; - /** Is this event for a recursive delete operation. */ - recursive?: string; - /** An opaque string value representing the logical sequence of events for any particular directory name. Users can use standard string comparison to understand the relative sequence of two events on the same directory name. */ - sequencer?: string; - /** The identity of the requester that triggered this event. */ - identity?: string; - /** For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers. */ - storageDiagnostics: Record; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Storage.BlobRenamed event. */ -export interface StorageBlobRenamedEventData { - /** The name of the API/operation that triggered this event. */ - api?: string; - /** A request id provided by the client of the storage API operation that triggered this event. */ - clientRequestId?: string; - /** The request id generated by the storage service for the storage API operation that triggered this event. */ - requestId?: string; - /** The path to the blob that was renamed. */ - sourceUrl?: string; - /** The new path to the blob after the rename operation. */ - destinationUrl?: string; - /** An opaque string value representing the logical sequence of events for any particular blob name. Users can use standard string comparison to understand the relative sequence of two events on the same blob name. */ - sequencer?: string; - /** The identity of the requester that triggered this event. */ - identity?: string; - /** For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers. */ - storageDiagnostics: Record; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Storage.DirectoryRenamed event. */ -export interface StorageDirectoryRenamedEventData { - /** The name of the API/operation that triggered this event. */ - api?: string; - /** A request id provided by the client of the storage API operation that triggered this event. */ - clientRequestId?: string; - /** The request id generated by the storage service for the storage API operation that triggered this event. */ - requestId?: string; - /** The path to the directory that was renamed. */ - sourceUrl?: string; - /** The new path to the directory after the rename operation. */ - destinationUrl?: string; - /** An opaque string value representing the logical sequence of events for any particular directory name. Users can use standard string comparison to understand the relative sequence of two events on the same directory name. */ - sequencer?: string; - /** The identity of the requester that triggered this event. */ - identity?: string; - /** For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers. */ - storageDiagnostics: Record; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Storage.LifecyclePolicyCompleted event. */ -export interface StorageLifecyclePolicyCompletedEventData { - /** The time the policy task was scheduled. */ - scheduleTime?: string; - /** Execution statistics of a specific policy action in a Blob Management cycle. */ - deleteSummary: StorageLifecyclePolicyActionSummaryDetail; - /** Execution statistics of a specific policy action in a Blob Management cycle. */ - tierToCoolSummary: StorageLifecyclePolicyActionSummaryDetail; - /** Execution statistics of a specific policy action in a Blob Management cycle. */ - tierToArchiveSummary: StorageLifecyclePolicyActionSummaryDetail; - /** Execution statistics of a specific policy action in a Blob Management cycle. */ - tierToColdSummary: StorageLifecyclePolicyActionSummaryDetail; -} - -/** Execution statistics of a specific policy action in a Blob Management cycle. */ -export interface StorageLifecyclePolicyActionSummaryDetail { - /** Total number of objects to be acted on by this action. */ - totalObjectsCount?: number; - /** Number of success operations of this action. */ - successCount?: number; - /** Error messages of this action if any. */ - errorList?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Storage.BlobTierChanged event. */ -export interface StorageBlobTierChangedEventData { - /** The name of the API/operation that triggered this event. */ - api?: string; - /** A request id provided by the client of the storage API operation that triggered this event. */ - clientRequestId?: string; - /** The request id generated by the storage service for the storage API operation that triggered this event. */ - requestId?: string; - /** The content type of the blob. This is the same as what would be returned in the Content-Type header from the blob. */ - contentType?: string; - /** The size of the blob in bytes. This is the same as what would be returned in the Content-Length header from the blob. */ - contentLength?: number; - /** The type of blob. */ - blobType?: string; - /** The current tier of the blob. */ - accessTier: StorageBlobAccessTier; - /** The previous tier of the blob. */ - previousTier: StorageBlobAccessTier; - /** The path to the blob. */ - url?: string; - /** An opaque string value representing the logical sequence of events for any particular blob name. Users can use standard string comparison to understand the relative sequence of two events on the same blob name. */ - sequencer?: string; - /** The identity of the requester that triggered this event. */ - identity?: string; - /** For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers. */ - storageDiagnostics: Record; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Storage.AsyncOperationInitiated event. */ -export interface StorageAsyncOperationInitiatedEventData { - /** The name of the API/operation that triggered this event. */ - api?: string; - /** A request id provided by the client of the storage API operation that triggered this event. */ - clientRequestId?: string; - /** The request id generated by the storage service for the storage API operation that triggered this event. */ - requestId?: string; - /** The content type of the blob. This is the same as what would be returned in the Content-Type header from the blob. */ - contentType?: string; - /** The size of the blob in bytes. This is the same as what would be returned in the Content-Length header from the blob. */ - contentLength?: number; - /** The type of blob. */ - blobType?: string; - /** The path to the blob. */ - url?: string; - /** An opaque string value representing the logical sequence of events for any particular blob name. Users can use standard string comparison to understand the relative sequence of two events on the same blob name. */ - sequencer?: string; - /** The identity of the requester that triggered this event. */ - identity?: string; - /** For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers. */ - storageDiagnostics: Record; -} - -/** Schema of the Data property of an EventGridEvent for an Microsoft.Storage.BlobInventoryPolicyCompleted event. */ -export interface StorageBlobInventoryPolicyCompletedEventData { - /** The time at which inventory policy was scheduled. */ - scheduleDateTime: Date; - /** The account name for which inventory policy is registered. */ - accountName?: string; - /** The rule name for inventory policy. */ - ruleName?: string; - /** The status of inventory run, it can be Succeeded/PartiallySucceeded/Failed. */ - policyRunStatus?: string; - /** The status message for inventory run. */ - policyRunStatusMessage?: string; - /** The policy run id for inventory run. */ - policyRunId?: string; - /** The blob URL for manifest file for inventory run. */ - manifestBlobUrl?: string; -} - -/** Schema of the Data property of an EventGridEvent for an Microsoft.Storage.StorageTaskCompleted event. */ -export interface StorageTaskCompletedEventData { - /** The status for a storage task. */ - status: StorageTaskCompletedStatus; - /** The time at which a storage task was completed. */ - completedDateTime: Date; - /** The execution id for a storage task. */ - taskExecutionId?: string; - /** The task name for a storage task. */ - taskName?: string; - /** The summary report blob url for a storage task */ - summaryReportBlobUrl: string; -} - -/** Known values of {@link StorageTaskCompletedStatus} that the service accepts. */ -export enum KnownStorageTaskCompletedStatus { - /** Succeeded */ - Succeeded = "Succeeded", - /** Failed */ - Failed = "Failed", -} - -/** - * The status for a storage task. - * {@link KnownStorageTaskCompletedStatus} can be used interchangeably with StorageTaskCompletedStatus, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Succeeded** - * **Failed** - */ -export type StorageTaskCompletedStatus = string; - -/** Schema of the Data property of an EventGridEvent for an Microsoft.Storage.StorageTaskQueued event. */ -export interface StorageTaskQueuedEventData { - /** The time at which a storage task was queued. */ - queuedDateTime: Date; - /** The execution id for a storage task. */ - taskExecutionId?: string; -} - -/** Schema of the Data property of an EventGridEvent for an Microsoft.Storage.StorageTaskAssignmentQueued event. */ -export interface StorageTaskAssignmentQueuedEventData { - /** The time at which a storage task was queued. */ - queuedOn: Date; - /** The execution id for a storage task. */ - taskExecutionId?: string; -} - -/** Schema of the Data property of an EventGridEvent for an Microsoft.Storage.StorageTaskAssignmentCompleted event. */ -export interface StorageTaskAssignmentCompletedEventData { - /** The status for a storage task. */ - status: StorageTaskAssignmentCompletedStatus; - /** The time at which a storage task was completed. */ - completedOn: Date; - /** The execution id for a storage task. */ - taskExecutionId?: string; - /** The task name for a storage task. */ - taskName?: string; - /** The summary report blob url for a storage task */ - summaryReportBlobUri: string; -} - -/** Known values of {@link StorageTaskAssignmentCompletedStatus} that the service accepts. */ -export enum KnownStorageTaskAssignmentCompletedStatus { - /** Succeeded */ - Succeeded = "Succeeded", - /** Failed */ - Failed = "Failed", -} - -/** - * The status for a storage task. - * {@link KnownStorageTaskAssignmentCompletedStatus} can be used interchangeably with StorageTaskAssignmentCompletedStatus, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Succeeded** - * **Failed** - */ -export type StorageTaskAssignmentCompletedStatus = string; - -/** Detail of action on the app. */ -export interface AppEventTypeDetail { - /** Type of action of the operation. */ - action: AppAction; -} - -/** Known values of {@link AppAction} that the service accepts. */ -export enum KnownAppAction { - /** Restarted */ - Restarted = "Restarted", - /** Stopped */ - Stopped = "Stopped", - /** ChangedAppSettings */ - ChangedAppSettings = "ChangedAppSettings", - /** Started */ - Started = "Started", - /** Completed */ - Completed = "Completed", - /** Failed */ - Failed = "Failed", -} - -/** - * Type of action of the operation - * {@link KnownAppAction} can be used interchangeably with AppAction, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Restarted** - * **Stopped** - * **ChangedAppSettings** - * **Started** - * **Completed** - * **Failed** - */ -export type AppAction = string; - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Web.AppUpdated event. */ -export interface WebAppUpdatedEventData { - /** Detail of action on the app. */ - appEventTypeDetail: AppEventTypeDetail; - /** name of the web site that had this event. */ - name?: string; - /** The client request id generated by the app service for the site API operation that triggered this event. */ - clientRequestId?: string; - /** The correlation request id generated by the app service for the site API operation that triggered this event. */ - correlationRequestId?: string; - /** The request id generated by the app service for the site API operation that triggered this event. */ - requestId?: string; - /** HTTP request URL of this operation. */ - address?: string; - /** HTTP verb of this operation. */ - verb?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Web.BackupOperationStarted event. */ -export interface WebBackupOperationStartedEventData { - /** Detail of action on the app. */ - appEventTypeDetail: AppEventTypeDetail; - /** name of the web site that had this event. */ - name?: string; - /** The client request id generated by the app service for the site API operation that triggered this event. */ - clientRequestId?: string; - /** The correlation request id generated by the app service for the site API operation that triggered this event. */ - correlationRequestId?: string; - /** The request id generated by the app service for the site API operation that triggered this event. */ - requestId?: string; - /** HTTP request URL of this operation. */ - address?: string; - /** HTTP verb of this operation. */ - verb?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Web.BackupOperationCompleted event. */ -export interface WebBackupOperationCompletedEventData { - /** Detail of action on the app. */ - appEventTypeDetail: AppEventTypeDetail; - /** name of the web site that had this event. */ - name?: string; - /** The client request id generated by the app service for the site API operation that triggered this event. */ - clientRequestId?: string; - /** The correlation request id generated by the app service for the site API operation that triggered this event. */ - correlationRequestId?: string; - /** The request id generated by the app service for the site API operation that triggered this event. */ - requestId?: string; - /** HTTP request URL of this operation. */ - address?: string; - /** HTTP verb of this operation. */ - verb?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Web.BackupOperationFailed event. */ -export interface WebBackupOperationFailedEventData { - /** Detail of action on the app. */ - appEventTypeDetail: AppEventTypeDetail; - /** name of the web site that had this event. */ - name?: string; - /** The client request id generated by the app service for the site API operation that triggered this event. */ - clientRequestId?: string; - /** The correlation request id generated by the app service for the site API operation that triggered this event. */ - correlationRequestId?: string; - /** The request id generated by the app service for the site API operation that triggered this event. */ - requestId?: string; - /** HTTP request URL of this operation. */ - address?: string; - /** HTTP verb of this operation. */ - verb?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Web.RestoreOperationStarted event. */ -export interface WebRestoreOperationStartedEventData { - /** Detail of action on the app. */ - appEventTypeDetail: AppEventTypeDetail; - /** name of the web site that had this event. */ - name?: string; - /** The client request id generated by the app service for the site API operation that triggered this event. */ - clientRequestId?: string; - /** The correlation request id generated by the app service for the site API operation that triggered this event. */ - correlationRequestId?: string; - /** The request id generated by the app service for the site API operation that triggered this event. */ - requestId?: string; - /** HTTP request URL of this operation. */ - address?: string; - /** HTTP verb of this operation. */ - verb?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Web.RestoreOperationCompleted event. */ -export interface WebRestoreOperationCompletedEventData { - /** Detail of action on the app. */ - appEventTypeDetail: AppEventTypeDetail; - /** name of the web site that had this event. */ - name?: string; - /** The client request id generated by the app service for the site API operation that triggered this event. */ - clientRequestId?: string; - /** The correlation request id generated by the app service for the site API operation that triggered this event. */ - correlationRequestId?: string; - /** The request id generated by the app service for the site API operation that triggered this event. */ - requestId?: string; - /** HTTP request URL of this operation. */ - address?: string; - /** HTTP verb of this operation. */ - verb?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Web.RestoreOperationFailed event. */ -export interface WebRestoreOperationFailedEventData { - /** Detail of action on the app. */ - appEventTypeDetail: AppEventTypeDetail; - /** name of the web site that had this event. */ - name?: string; - /** The client request id generated by the app service for the site API operation that triggered this event. */ - clientRequestId?: string; - /** The correlation request id generated by the app service for the site API operation that triggered this event. */ - correlationRequestId?: string; - /** The request id generated by the app service for the site API operation that triggered this event. */ - requestId?: string; - /** HTTP request URL of this operation. */ - address?: string; - /** HTTP verb of this operation. */ - verb?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Web.SlotSwapStarted event. */ -export interface WebSlotSwapStartedEventData { - /** Detail of action on the app. */ - appEventTypeDetail: AppEventTypeDetail; - /** name of the web site that had this event. */ - name?: string; - /** The client request id generated by the app service for the site API operation that triggered this event. */ - clientRequestId?: string; - /** The correlation request id generated by the app service for the site API operation that triggered this event. */ - correlationRequestId?: string; - /** The request id generated by the app service for the site API operation that triggered this event. */ - requestId?: string; - /** HTTP request URL of this operation. */ - address?: string; - /** HTTP verb of this operation. */ - verb?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Web.SlotSwapCompleted event. */ -export interface WebSlotSwapCompletedEventData { - /** Detail of action on the app. */ - appEventTypeDetail: AppEventTypeDetail; - /** name of the web site that had this event. */ - name?: string; - /** The client request id generated by the app service for the site API operation that triggered this event. */ - clientRequestId?: string; - /** The correlation request id generated by the app service for the site API operation that triggered this event. */ - correlationRequestId?: string; - /** The request id generated by the app service for the site API operation that triggered this event. */ - requestId?: string; - /** HTTP request URL of this operation. */ - address?: string; - /** HTTP verb of this operation. */ - verb?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Web.SlotSwapFailed event. */ -export interface WebSlotSwapFailedEventData { - /** Detail of action on the app. */ - appEventTypeDetail: AppEventTypeDetail; - /** name of the web site that had this event. */ - name?: string; - /** The client request id generated by the app service for the site API operation that triggered this event. */ - clientRequestId?: string; - /** The correlation request id generated by the app service for the site API operation that triggered this event. */ - correlationRequestId?: string; - /** The request id generated by the app service for the site API operation that triggered this event. */ - requestId?: string; - /** HTTP request URL of this operation. */ - address?: string; - /** HTTP verb of this operation. */ - verb?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Web.SlotSwapWithPreviewStarted event. */ -export interface WebSlotSwapWithPreviewStartedEventData { - /** Detail of action on the app. */ - appEventTypeDetail: AppEventTypeDetail; - /** name of the web site that had this event. */ - name?: string; - /** The client request id generated by the app service for the site API operation that triggered this event. */ - clientRequestId?: string; - /** The correlation request id generated by the app service for the site API operation that triggered this event. */ - correlationRequestId?: string; - /** The request id generated by the app service for the site API operation that triggered this event. */ - requestId?: string; - /** HTTP request URL of this operation. */ - address?: string; - /** HTTP verb of this operation. */ - verb?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Web.SlotSwapWithPreviewCancelled event. */ -export interface WebSlotSwapWithPreviewCancelledEventData { - /** Detail of action on the app. */ - appEventTypeDetail: AppEventTypeDetail; - /** name of the web site that had this event. */ - name?: string; - /** The client request id generated by the app service for the site API operation that triggered this event. */ - clientRequestId?: string; - /** The correlation request id generated by the app service for the site API operation that triggered this event. */ - correlationRequestId?: string; - /** The request id generated by the app service for the site API operation that triggered this event. */ - requestId?: string; - /** HTTP request URL of this operation. */ - address?: string; - /** HTTP verb of this operation. */ - verb?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.Web.AppServicePlanUpdated event. */ -export interface WebAppServicePlanUpdatedEventData { - /** Detail of action on the app service plan. */ - appServicePlanEventTypeDetail: AppServicePlanEventTypeDetail; - /** sku of app service plan. */ - sku: WebAppServicePlanUpdatedEventDataSku; - /** name of the app service plan that had this event. */ - name?: string; - /** The client request id generated by the app service for the app service plan API operation that triggered this event. */ - clientRequestId?: string; - /** The correlation request id generated by the app service for the app service plan API operation that triggered this event. */ - correlationRequestId?: string; - /** The request id generated by the app service for the app service plan API operation that triggered this event. */ - requestId?: string; - /** HTTP request URL of this operation. */ - address?: string; - /** HTTP verb of this operation. */ - verb?: string; -} - -/** Detail of action on the app service plan. */ -export interface AppServicePlanEventTypeDetail { - /** Kind of environment where app service plan is. */ - stampKind: StampKind; - /** Type of action on the app service plan. */ - action: AppServicePlanAction; - /** Asynchronous operation status of the operation on the app service plan. */ - status: AsyncStatus; -} - -/** Known values of {@link StampKind} that the service accepts. */ -export enum KnownStampKind { - /** Public */ - Public = "Public", - /** AseV1 */ - AseV1 = "AseV1", - /** AseV2 */ - AseV2 = "AseV2", -} - -/** - * Kind of environment where app service plan is. - * {@link KnownStampKind} can be used interchangeably with StampKind, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Public** - * **AseV1** - * **AseV2** - */ -export type StampKind = string; - -/** Known values of {@link AppServicePlanAction} that the service accepts. */ -export enum KnownAppServicePlanAction { - /** Updated */ - Updated = "Updated", -} - -/** - * Type of action on the app service plan. - * {@link KnownAppServicePlanAction} can be used interchangeably with AppServicePlanAction, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Updated** - */ -export type AppServicePlanAction = string; - -/** Known values of {@link AsyncStatus} that the service accepts. */ -export enum KnownAsyncStatus { - /** Started */ - Started = "Started", - /** Completed */ - Completed = "Completed", - /** Failed */ - Failed = "Failed", -} - -/** - * Asynchronous operation status of the operation on the app service plan. - * {@link KnownAsyncStatus} can be used interchangeably with AsyncStatus, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Started** - * **Completed** - * **Failed** - */ -export type AsyncStatus = string; - -/** sku of app service plan. */ -export interface WebAppServicePlanUpdatedEventDataSku { - /** name of app service plan sku. */ - name?: string; - /** tier of app service plan sku. */ - tier?: string; - /** size of app service plan sku. */ - size?: string; - /** family of app service plan sku. */ - family?: string; - /** capacity of app service plan sku. */ - capacity?: string; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.EventGrid.SubscriptionValidationEvent event. */ -export interface SubscriptionValidationEventData { - /** - * The validation code sent by Azure Event Grid to validate an event subscription. - * To complete the validation handshake, the subscriber must either respond with this validation code as part of the validation response, - * or perform a GET request on the validationUrl (available starting version 2018-05-01-preview). - */ - validationCode?: string; - /** - * The validation URL sent by Azure Event Grid (available starting version 2018-05-01-preview). - * To complete the validation handshake, the subscriber must either respond with the validationCode as part of the validation response, - * or perform a GET request on the validationUrl (available starting version 2018-05-01-preview). - */ - validationUrl?: string; -} - -/** - * To complete an event subscription validation handshake, a subscriber can use - * either the validationCode or the validationUrl received in a - * SubscriptionValidationEvent. When the validationCode is used, the - * SubscriptionValidationResponse can be used to build the response. - */ -export interface SubscriptionValidationResponse { - /** The validation response sent by the subscriber to Azure Event Grid to complete the validation of an event subscription. */ - validationResponse?: string; -} - -/** - * Schema of the Data property of an EventGridEvent for a - * Microsoft.EventGrid.SubscriptionDeletedEvent event. - */ -export interface SubscriptionDeletedEventData { - /** The Azure resource ID of the deleted event subscription. */ - eventSubscriptionId?: string; -} - -/** Schema of the Data property of an EventGridEvent for MQTT Client state changes. */ -export interface EventGridMqttClientEventData { - /** - * Unique identifier for the MQTT client that the client presents to the service - * for authentication. This case-sensitive string can be up to 128 characters - * long, and supports UTF-8 characters. - */ - clientAuthenticationName?: string; - /** Name of the client resource in the Event Grid namespace. */ - clientName?: string; - /** Name of the Event Grid namespace where the MQTT client was created or updated. */ - namespaceName?: string; -} - -/** Event data for Microsoft.EventGrid.MQTTClientCreatedOrUpdated event. */ -export interface EventGridMqttClientCreatedOrUpdatedEventData extends EventGridMqttClientEventData { - /** Configured state of the client. The value could be Enabled or Disabled */ - state: EventGridMqttClientState; - /** Time the client resource is created based on the provider's UTC time. */ - createdOn: Date; - /** - * Time the client resource is last updated based on the provider's UTC time. If - * the client resource was never updated, this value is identical to the value of - * the 'createdOn' property. - */ - updatedOn: Date; - /** The key-value attributes that are assigned to the client resource. */ - attributes: Record; -} - -/** Known values of {@link EventGridMqttClientState} that the service accepts. */ -export enum KnownEventGridMqttClientState { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled", -} - -/** - * EventGrid MQTT Client State - * {@link KnownEventGridMqttClientState} can be used interchangeably with EventGridMqttClientState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Enabled** - * **Disabled** - */ -export type EventGridMqttClientState = string; - -/** Event data for Microsoft.EventGrid.MQTTClientDeleted event. */ -export interface EventGridMqttClientDeletedEventData extends EventGridMqttClientEventData {} - -/** Event data for Microsoft.EventGrid.MQTTClientSessionConnected event. */ -export interface EventGridMqttClientSessionConnectedEventData extends EventGridMqttClientEventData { - /** - * Unique identifier for the MQTT client's session. This case-sensitive string can - * be up to 128 characters long, and supports UTF-8 characters. - */ - clientSessionName?: string; - /** - * A number that helps indicate order of MQTT client session connected or - * disconnected events. Latest event will have a sequence number that is higher - * than the previous event. - */ - sequenceNumber?: number; -} - -/** Event data for Microsoft.EventGrid.MQTTClientSessionDisconnected event. */ -export interface EventGridMqttClientSessionDisconnectedEventData - extends EventGridMqttClientEventData { - /** - * Unique identifier for the MQTT client's session. This case-sensitive string can - * be up to 128 characters long, and supports UTF-8 characters. - */ - clientSessionName?: string; - /** - * A number that helps indicate order of MQTT client session connected or - * disconnected events. Latest event will have a sequence number that is higher - * than the previous event. - */ - sequenceNumber?: number; - /** - * Reason for the disconnection of the MQTT client's session. The value could be - * one of the values in the disconnection reasons table. - */ - disconnectionReason: EventGridMqttClientDisconnectionReason; -} - -/** Known values of {@link EventGridMqttClientDisconnectionReason} that the service accepts. */ -export enum KnownEventGridMqttClientDisconnectionReason { - /** ClientAuthenticationError */ - ClientAuthenticationError = "ClientAuthenticationError", - /** ClientAuthorizationError */ - ClientAuthorizationError = "ClientAuthorizationError", - /** ClientError */ - ClientError = "ClientError", - /** ClientInitiatedDisconnect */ - ClientInitiatedDisconnect = "ClientInitiatedDisconnect", - /** ConnectionLost */ - ConnectionLost = "ConnectionLost", - /** IpForbidden */ - IpForbidden = "IpForbidden", - /** QuotaExceeded */ - QuotaExceeded = "QuotaExceeded", - /** ServerError */ - ServerError = "ServerError", - /** ServerInitiatedDisconnect */ - ServerInitiatedDisconnect = "ServerInitiatedDisconnect", - /** SessionOverflow */ - SessionOverflow = "SessionOverflow", - /** SessionTakenOver */ - SessionTakenOver = "SessionTakenOver", -} - -/** - * EventGrid MQTT Client Disconnection Reason - * {@link KnownEventGridMqttClientDisconnectionReason} can be used interchangeably with EventGridMqttClientDisconnectionReason, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **ClientAuthenticationError** - * **ClientAuthorizationError** - * **ClientError** - * **ClientInitiatedDisconnect** - * **ConnectionLost** - * **IpForbidden** - * **QuotaExceeded** - * **ServerError** - * **ServerInitiatedDisconnect** - * **SessionOverflow** - * **SessionTakenOver** - */ -export type EventGridMqttClientDisconnectionReason = string; - -/** Describes the schema of the common properties across all ARN system topic events */ -export interface ResourceNotificationsResourceUpdatedEventData { - /** resourceInfo details for update event */ - resourceDetails: ResourceNotificationsResourceUpdatedDetails; - /** details about operational info */ - operationalDetails: ResourceNotificationsOperationalDetails; - /** api version of the resource properties bag */ - apiVersion?: string; -} - -/** - * Describes the schema of the properties under resource info which are common - * across all ARN system topic events - */ -export interface ResourceNotificationsResourceUpdatedDetails { - /** id of the resource for which the event is being emitted */ - id?: string; - /** name of the resource for which the event is being emitted */ - name?: string; - /** the type of the resource for which the event is being emitted */ - type?: string; - /** the location of the resource for which the event is being emitted */ - location?: string; - /** the tags on the resource for which the event is being emitted */ - tags: Record; - /** properties in the payload of the resource for which the event is being emitted */ - properties: Record; -} - -/** details of operational info */ -export interface ResourceNotificationsOperationalDetails { - /** Date and Time when resource was updated */ - resourceEventTime: Date; -} - -/** - * Schema of the Data property of an EventGridEvent for a - * Microsoft.ResourceNotifications.HealthResources.AvailabilityStatusChanged - * event. - */ -export interface ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventData - extends ResourceNotificationsResourceUpdatedEventData {} - -/** - * Schema of the Data property of an EventGridEvent for a - * Microsoft.ResourceNotifications.HealthResources.ResourceAnnotated event. - */ -export interface ResourceNotificationsHealthResourcesAnnotatedEventData - extends ResourceNotificationsResourceUpdatedEventData {} - -/** - * Schema of the Data property of an EventGridEvent for a - * Microsoft.ResourceNotifications.Resources.CreatedOrUpdated event. - */ -export interface ResourceNotificationsResourceManagementCreatedOrUpdatedEventData - extends ResourceNotificationsResourceUpdatedEventData {} - -/** - * Describes the schema of the common properties across all ARN system topic - * delete events - */ -export interface ResourceNotificationsResourceDeletedEventData { - /** resourceInfo details for delete event */ - resourceDetails: ResourceNotificationsResourceDeletedDetails; - /** details about operational info */ - operationalDetails: ResourceNotificationsOperationalDetails; -} - -/** - * Describes the schema of the properties under resource info which are common - * across all ARN system topic delete events - */ -export interface ResourceNotificationsResourceDeletedDetails { - /** id of the resource for which the event is being emitted */ - id?: string; - /** name of the resource for which the event is being emitted */ - name?: string; - /** the type of the resource for which the event is being emitted */ - type?: string; -} - -/** - * Schema of the Data property of an EventGridEvent for a - * Microsoft.ResourceNotifications.Resources.Deleted event. - */ -export interface ResourceNotificationsResourceManagementDeletedEventData - extends ResourceNotificationsResourceDeletedEventData {} - -/** Type of ServiceApiVersions */ -export type ServiceApiVersions = "2018-01-01" | "2024-01-01"; -/** Alias for MediaJobOutputUnion */ -export type MediaJobOutputUnion = MediaJobOutputAsset | MediaJobOutput; diff --git a/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/rest/index.ts b/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/rest/index.ts deleted file mode 100644 index fa5bd7d969d8..000000000000 --- a/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/rest/index.ts +++ /dev/null @@ -1,11 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import SystemEventsClient from "./systemEventsClient.js"; - -export * from "./systemEventsClient.js"; -// export * from "./parameters"; -// export * from "./responses"; -export * from "./clientDefinitions.js"; - -export default SystemEventsClient; diff --git a/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/rest/parameters.ts b/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/rest/parameters.ts deleted file mode 100644 index ab466bf33596..000000000000 --- a/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/rest/parameters.ts +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -// import { RequestParameters } from "@azure-rest/core-client"; diff --git a/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/rest/clientDefinitions.ts b/sdk/eventgrid/eventgrid-system-events/src/clientDefinitions.ts similarity index 52% rename from sdk/eventgrid/eventgrid-system-events/src/cadl-generated/rest/clientDefinitions.ts rename to sdk/eventgrid/eventgrid-system-events/src/clientDefinitions.ts index 4ebaa97883c7..db89bc88aae8 100644 --- a/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/rest/clientDefinitions.ts +++ b/sdk/eventgrid/eventgrid-system-events/src/clientDefinitions.ts @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import type { Client } from "@azure-rest/core-client"; +import { Client, StreamableMethod } from "@azure-rest/core-client"; export interface Routes {} -export type SystemEventsContext = Client & { +export type SystemEventsClient = Client & { path: Routes; }; diff --git a/sdk/eventgrid/eventgrid-system-events/src/index.ts b/sdk/eventgrid/eventgrid-system-events/src/index.ts index 869a903270a1..27c0bf3ceec3 100644 --- a/sdk/eventgrid/eventgrid-system-events/src/index.ts +++ b/sdk/eventgrid/eventgrid-system-events/src/index.ts @@ -1,366 +1,11 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -export { - ApiCenterApiDefinitionAddedEventData, - ApiCenterApiSpecification, - ApiCenterApiDefinitionUpdatedEventData, - ApiManagementUserCreatedEventData, - ApiManagementUserUpdatedEventData, - ApiManagementUserDeletedEventData, - ApiManagementSubscriptionCreatedEventData, - ApiManagementSubscriptionUpdatedEventData, - ApiManagementSubscriptionDeletedEventData, - ApiManagementProductCreatedEventData, - ApiManagementProductUpdatedEventData, - ApiManagementProductDeletedEventData, - ApiManagementApiCreatedEventData, - ApiManagementApiUpdatedEventData, - ApiManagementApiDeletedEventData, - ApiManagementApiReleaseCreatedEventData, - ApiManagementApiReleaseUpdatedEventData, - ApiManagementApiReleaseDeletedEventData, - ApiManagementGatewayCreatedEventData, - ApiManagementGatewayUpdatedEventData, - ApiManagementGatewayDeletedEventData, - ApiManagementGatewayHostnameConfigurationCreatedEventData, - ApiManagementGatewayHostnameConfigurationUpdatedEventData, - ApiManagementGatewayHostnameConfigurationDeletedEventData, - ApiManagementGatewayCertificateAuthorityCreatedEventData, - ApiManagementGatewayCertificateAuthorityUpdatedEventData, - ApiManagementGatewayCertificateAuthorityDeletedEventData, - ApiManagementGatewayApiAddedEventData, - ApiManagementGatewayApiRemovedEventData, - AppConfigurationKeyValueModifiedEventData, - AppConfigurationKeyValueDeletedEventData, - AppConfigurationSnapshotEventData, - AppConfigurationSnapshotCreatedEventData, - AppConfigurationSnapshotModifiedEventData, - AvsPrivateCloudEventData, - AvsPrivateCloudUpdatingEventData, - AvsPrivateCloudUpdatedEventData, - AvsPrivateCloudFailedEventData, - AvsClusterEventData, - AvsClusterCreatedEventData, - AvsClusterDeletedEventData, - AvsClusterUpdatingEventData, - AvsClusterUpdatedEventData, - AvsClusterFailedEventData, - AvsScriptExecutionEventData, - AvsScriptExecutionStartedEventData, - AvsScriptExecutionFinishedEventData, - AvsScriptExecutionCancelledEventData, - AvsScriptExecutionFailedEventData, - AcsIncomingCallEventData, - CommunicationIdentifierModel, - KnownCommunicationIdentifierModelKind, - CommunicationIdentifierModelKind, - CommunicationUserIdentifierModel, - PhoneNumberIdentifierModel, - MicrosoftTeamsUserIdentifierModel, - KnownCommunicationCloudEnvironmentModel, - CommunicationCloudEnvironmentModel, - MicrosoftTeamsAppIdentifierModel, - AcsIncomingCallCustomContext, - AcsUserDisconnectedEventData, - AcsChatEventBase, - AcsChatEventInThreadBase, - AcsChatMessageEventBase, - AcsChatMessageReceivedEventData, - AcsChatMessageEventInThreadBase, - AcsChatMessageReceivedInThreadEventData, - AcsChatMessageEditedEventData, - AcsChatMessageEditedInThreadEventData, - AcsChatMessageDeletedEventData, - AcsChatMessageDeletedInThreadEventData, - AcsChatThreadEventBase, - AcsChatThreadCreatedWithUserEventData, - AcsChatThreadParticipant, - AcsChatThreadEventInThreadBase, - AcsChatThreadCreatedEventData, - AcsChatThreadWithUserDeletedEventData, - AcsChatThreadDeletedEventData, - AcsChatThreadPropertiesUpdatedPerUserEventData, - AcsChatThreadPropertiesUpdatedEventData, - AcsChatParticipantAddedToThreadWithUserEventData, - AcsChatParticipantRemovedFromThreadWithUserEventData, - AcsChatParticipantAddedToThreadEventData, - AcsChatParticipantRemovedFromThreadEventData, - AcsSmsEventBase, - AcsSmsDeliveryReportReceivedEventData, - AcsSmsDeliveryAttempt, - AcsSmsReceivedEventData, - AcsRecordingFileStatusUpdatedEventData, - AcsRecordingStorageInfo, - AcsRecordingChunkInfo, - KnownRecordingContentType, - RecordingContentType, - KnownRecordingChannelType, - RecordingChannelType, - KnownRecordingFormatType, - RecordingFormatType, - AcsEmailDeliveryReportReceivedEventData, - KnownAcsEmailDeliveryReportStatus, - AcsEmailDeliveryReportStatus, - AcsEmailDeliveryReportStatusDetails, - AcsEmailEngagementTrackingReportReceivedEventData, - KnownAcsUserEngagement, - AcsUserEngagement, - AcsRouterEventData, - AcsRouterJobEventData, - AcsRouterJobCancelledEventData, - AcsRouterJobClassificationFailedEventData, - AcsRouterCommunicationError, - AcsRouterJobClassifiedEventData, - AcsRouterQueueDetails, - AcsRouterWorkerSelector, - KnownAcsRouterLabelOperator, - AcsRouterLabelOperator, - KnownAcsRouterWorkerSelectorState, - AcsRouterWorkerSelectorState, - AcsRouterJobClosedEventData, - AcsRouterJobCompletedEventData, - AcsRouterJobDeletedEventData, - AcsRouterJobExceptionTriggeredEventData, - AcsRouterJobQueuedEventData, - AcsRouterJobReceivedEventData, - KnownAcsRouterJobStatus, - AcsRouterJobStatus, - AcsRouterJobSchedulingFailedEventData, - AcsRouterJobUnassignedEventData, - AcsRouterJobWaitingForActivationEventData, - AcsRouterJobWorkerSelectorsExpiredEventData, - AcsRouterWorkerEventData, - AcsRouterWorkerDeletedEventData, - AcsRouterWorkerDeregisteredEventData, - AcsRouterWorkerOfferAcceptedEventData, - AcsRouterWorkerOfferDeclinedEventData, - AcsRouterWorkerOfferExpiredEventData, - AcsRouterWorkerOfferIssuedEventData, - AcsRouterWorkerOfferRevokedEventData, - AcsRouterWorkerRegisteredEventData, - AcsRouterChannelConfiguration, - AcsRouterWorkerUpdatedEventData, - KnownAcsRouterUpdatedWorkerProperty, - AcsRouterUpdatedWorkerProperty, - AcsMessageEventData, - AcsMessageChannelEventError, - AcsMessageDeliveryStatusUpdatedEventData, - KnownAcsMessageDeliveryStatus, - AcsMessageDeliveryStatus, - KnownAcsMessageChannelKind, - AcsMessageChannelKind, - AcsMessageReceivedEventData, - AcsMessageMediaContent, - AcsMessageContext, - AcsMessageButtonContent, - AcsMessageInteractiveContent, - KnownAcsInteractiveReplyKind, - AcsInteractiveReplyKind, - AcsMessageInteractiveButtonReplyContent, - AcsMessageInteractiveListReplyContent, - ContainerRegistryEventData, - ContainerRegistryEventTarget, - ContainerRegistryEventRequest, - ContainerRegistryEventActor, - ContainerRegistryEventSource, - ContainerRegistryEventConnectedRegistry, - ContainerRegistryImagePushedEventData, - ContainerRegistryImageDeletedEventData, - ContainerRegistryArtifactEventData, - ContainerRegistryArtifactEventTarget, - ContainerRegistryChartPushedEventData, - ContainerRegistryChartDeletedEventData, - ContainerServiceNewKubernetesVersionAvailableEventData, - ContainerServiceClusterSupportEventData, - ContainerServiceClusterSupportEndedEventData, - ContainerServiceClusterSupportEndingEventData, - ContainerServiceNodePoolRollingEventData, - ContainerServiceNodePoolRollingStartedEventData, - ContainerServiceNodePoolRollingSucceededEventData, - ContainerServiceNodePoolRollingFailedEventData, - DataBoxCopyStartedEventData, - KnownDataBoxStageName, - DataBoxStageName, - DataBoxCopyCompletedEventData, - DataBoxOrderCompletedEventData, - EventHubCaptureFileCreatedEventData, - MapsGeofenceEvent, - MapsGeofenceGeometry, - MapsGeofenceEnteredEventData, - MapsGeofenceExitedEventData, - MapsGeofenceResultEventData, - DeviceLifeCycleEvent, - DeviceTwinInfo, - DeviceTwinInfoProperties, - DeviceTwin, - DeviceTwinMetadata, - DeviceTwinInfoX509Thumbprint, - DeviceConnectionStateEvent, - DeviceConnectionStateEventInfo, - DeviceTelemetryEvent, - IotHubDeviceCreatedEventData, - IotHubDeviceDeletedEventData, - IotHubDeviceConnectedEventData, - IotHubDeviceDisconnectedEventData, - IotHubDeviceTelemetryEventData, - HealthcareFhirResourceCreatedEventData, - KnownHealthcareFhirResourceType, - HealthcareFhirResourceType, - HealthcareFhirResourceUpdatedEventData, - HealthcareFhirResourceDeletedEventData, - HealthcareDicomImageCreatedEventData, - HealthcareDicomImageDeletedEventData, - HealthcareDicomImageUpdatedEventData, - MachineLearningServicesModelRegisteredEventData, - MachineLearningServicesModelDeployedEventData, - MachineLearningServicesRunCompletedEventData, - MachineLearningServicesDatasetDriftDetectedEventData, - MachineLearningServicesRunStatusChangedEventData, - MediaJobStateChangeEventData, - KnownMediaJobState, - MediaJobState, - MediaJobError, - KnownMediaJobErrorCode, - MediaJobErrorCode, - KnownMediaJobErrorCategory, - MediaJobErrorCategory, - KnownMediaJobRetry, - MediaJobRetry, - MediaJobErrorDetail, - MediaJobOutput, - MediaJobOutputAsset, - MediaJobOutputProgressEventData, - MediaJobOutputStateChangeEventData, - MediaJobScheduledEventData, - MediaJobProcessingEventData, - MediaJobCancelingEventData, - MediaJobFinishedEventData, - MediaJobCanceledEventData, - MediaJobErroredEventData, - MediaJobOutputCanceledEventData, - MediaJobOutputCancelingEventData, - MediaJobOutputErroredEventData, - MediaJobOutputFinishedEventData, - MediaJobOutputProcessingEventData, - MediaJobOutputScheduledEventData, - MediaLiveEventEncoderConnectedEventData, - MediaLiveEventConnectionRejectedEventData, - MediaLiveEventEncoderDisconnectedEventData, - MediaLiveEventIncomingStreamReceivedEventData, - MediaLiveEventIncomingStreamsOutOfSyncEventData, - MediaLiveEventIncomingVideoStreamsOutOfSyncEventData, - MediaLiveEventIncomingDataChunkDroppedEventData, - MediaLiveEventIngestHeartbeatEventData, - MediaLiveEventTrackDiscontinuityDetectedEventData, - MediaLiveEventChannelArchiveHeartbeatEventData, - PolicyInsightsPolicyStateCreatedEventData, - PolicyInsightsPolicyStateChangedEventData, - PolicyInsightsPolicyStateDeletedEventData, - RedisPatchingCompletedEventData, - RedisScalingCompletedEventData, - RedisExportRDBCompletedEventData, - RedisImportRDBCompletedEventData, - ResourceWriteSuccessEventData, - ResourceAuthorization, - ResourceHttpRequest, - ResourceWriteFailureEventData, - ResourceWriteCancelEventData, - ResourceDeleteSuccessEventData, - ResourceDeleteFailureEventData, - ResourceDeleteCancelEventData, - ResourceActionSuccessEventData, - ResourceActionFailureEventData, - ResourceActionCancelEventData, - ServiceBusActiveMessagesAvailableWithNoListenersEventData, - ServiceBusDeadletterMessagesAvailableWithNoListenersEventData, - ServiceBusActiveMessagesAvailablePeriodicNotificationsEventData, - ServiceBusDeadletterMessagesAvailablePeriodicNotificationsEventData, - SignalRServiceClientConnectionConnectedEventData, - SignalRServiceClientConnectionDisconnectedEventData, - StorageBlobCreatedEventData, - KnownStorageBlobAccessTier, - StorageBlobAccessTier, - StorageBlobDeletedEventData, - StorageDirectoryCreatedEventData, - StorageDirectoryDeletedEventData, - StorageBlobRenamedEventData, - StorageDirectoryRenamedEventData, - StorageLifecyclePolicyCompletedEventData, - StorageLifecyclePolicyActionSummaryDetail, - StorageBlobTierChangedEventData, - StorageAsyncOperationInitiatedEventData, - StorageBlobInventoryPolicyCompletedEventData, - StorageTaskCompletedEventData, - KnownStorageTaskCompletedStatus, - StorageTaskCompletedStatus, - StorageTaskQueuedEventData, - StorageTaskAssignmentQueuedEventData, - StorageTaskAssignmentCompletedEventData, - KnownStorageTaskAssignmentCompletedStatus, - StorageTaskAssignmentCompletedStatus, - AppEventTypeDetail, - KnownAppAction, - AppAction, - WebAppUpdatedEventData, - WebBackupOperationStartedEventData, - WebBackupOperationCompletedEventData, - WebBackupOperationFailedEventData, - WebRestoreOperationStartedEventData, - WebRestoreOperationCompletedEventData, - WebRestoreOperationFailedEventData, - WebSlotSwapStartedEventData, - WebSlotSwapCompletedEventData, - WebSlotSwapFailedEventData, - WebSlotSwapWithPreviewStartedEventData, - WebSlotSwapWithPreviewCancelledEventData, - WebAppServicePlanUpdatedEventData, - AppServicePlanEventTypeDetail, - KnownStampKind, - StampKind, - KnownAppServicePlanAction, - AppServicePlanAction, - KnownAsyncStatus, - AsyncStatus, - WebAppServicePlanUpdatedEventDataSku, - SubscriptionValidationEventData, - SubscriptionValidationResponse, - SubscriptionDeletedEventData, - EventGridMqttClientEventData, - EventGridMqttClientCreatedOrUpdatedEventData, - KnownEventGridMqttClientState, - EventGridMqttClientState, - EventGridMqttClientDeletedEventData, - EventGridMqttClientSessionConnectedEventData, - EventGridMqttClientSessionDisconnectedEventData, - KnownEventGridMqttClientDisconnectionReason, - EventGridMqttClientDisconnectionReason, - ResourceNotificationsResourceUpdatedEventData, - ResourceNotificationsResourceUpdatedDetails, - ResourceNotificationsOperationalDetails, - ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventData, - ResourceNotificationsHealthResourcesAnnotatedEventData, - ResourceNotificationsResourceManagementCreatedOrUpdatedEventData, - ResourceNotificationsResourceDeletedEventData, - ResourceNotificationsResourceDeletedDetails, - ResourceNotificationsResourceManagementDeletedEventData, - ServiceApiVersions, - MediaJobOutputUnion, -} from "./cadl-generated/index.js"; +import SystemEventsClient from "./systemEventsClient.js"; -export { - CloudEvent, - EventGridEvent, - KeyVaultCertificateNewVersionCreatedEventData, - KeyVaultCertificateNearExpiryEventData, - KeyVaultCertificateExpiredEventData, - KeyVaultKeyNewVersionCreatedEventData, - KeyVaultKeyNearExpiryEventData, - KeyVaultKeyExpiredEventData, - KeyVaultSecretNewVersionCreatedEventData, - KeyVaultSecretNearExpiryEventData, - KeyVaultAccessPolicyChangedEventData, - KeyVaultSecretExpiredEventData, -} from "./models.js"; +export * from "./systemEventsClient.js"; +export * from "./parameters.js"; +export * from "./responses.js"; +export * from "./clientDefinitions.js"; -export { isSystemEvent, KnownSystemEventTypes, SystemEventNameToEventData } from "./predicates.js"; +export default SystemEventsClient; diff --git a/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/logger.ts b/sdk/eventgrid/eventgrid-system-events/src/logger.ts similarity index 100% rename from sdk/eventgrid/eventgrid-system-events/src/cadl-generated/logger.ts rename to sdk/eventgrid/eventgrid-system-events/src/logger.ts diff --git a/sdk/eventgrid/eventgrid-system-events/src/models.ts b/sdk/eventgrid/eventgrid-system-events/src/models.ts deleted file mode 100644 index eb34859d737f..000000000000 --- a/sdk/eventgrid/eventgrid-system-events/src/models.ts +++ /dev/null @@ -1,262 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * Cloud Event Schema. - */ -export interface CloudEvent { - /** - * Type of event related to the originating occurrence. - */ - type: string; - /** - * Identifies the context in which an event happened. The combination of id and source must be unique for each distinct event. - */ - source: string; - /** - * An identifier for the event. The combination of id and source must be unique for each distinct event. - */ - id: string; - /** - * The time the event was generated. - */ - time?: Date; - /** - * Identifies the schema that data adheres to. - */ - dataSchema?: string; - /** - * Content type of data value. - */ - dataContentType?: string; - /** - * Event data specific to the event type. - */ - data?: T; - /** - * This describes the subject of the event in the context of the event producer (identified by source). - */ - subject?: string; - /** - * Additional context attributes for the event. The Cloud Event specification refers to these as "extension attributes". - */ - extensionAttributes?: Record; - /** - * The version of the CloudEvents specification which the event uses. - */ - specVersion?: string | "1.0"; -} - -/** - * An event in the in the Event Grid Schema. - */ -export interface EventGridEvent { - /** - * The type of the event. - */ - eventType: string; - /** - * The time the event was generated. - */ - eventTime: Date; - /** - * An unique identifier for the event. - */ - id: string; - /** - * The resource path of the event source. - */ - topic?: string; - /** - * A resource path relative to the topic path. - */ - subject: string; - /** - * The schema version of the data object. - */ - dataVersion: string; - /** - * Event data specific to the event type. - */ - data: T; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.KeyVault.CertificateNewVersionCreated event. */ -export interface KeyVaultCertificateNewVersionCreatedEventData { - /** The id of the object that triggered this event. */ - id?: string; - /** Key vault name of the object that triggered this event. */ - vaultName?: string; - /** The type of the object that triggered this event */ - objectType?: string; - /** The name of the object that triggered this event */ - objectName?: string; - /** The version of the object that triggered this event */ - version?: string; - /** Not before date of the object that triggered this event */ - nbf?: number; - /** The expiration date of the object that triggered this event */ - exp?: number; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.KeyVault.CertificateNearExpiry event. */ -export interface KeyVaultCertificateNearExpiryEventData { - /** The id of the object that triggered this event. */ - id?: string; - /** Key vault name of the object that triggered this event. */ - vaultName?: string; - /** The type of the object that triggered this event */ - objectType?: string; - /** The name of the object that triggered this event */ - objectName?: string; - /** The version of the object that triggered this event */ - version?: string; - /** Not before date of the object that triggered this event */ - nbf?: number; - /** The expiration date of the object that triggered this event */ - exp?: number; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.KeyVault.CertificateExpired event. */ -export interface KeyVaultCertificateExpiredEventData { - /** The id of the object that triggered this event. */ - id?: string; - /** Key vault name of the object that triggered this event. */ - vaultName?: string; - /** The type of the object that triggered this event */ - objectType?: string; - /** The name of the object that triggered this event */ - objectName?: string; - /** The version of the object that triggered this event */ - version?: string; - /** Not before date of the object that triggered this event */ - nbf?: number; - /** The expiration date of the object that triggered this event */ - exp?: number; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.KeyVault.KeyNewVersionCreated event. */ -export interface KeyVaultKeyNewVersionCreatedEventData { - /** The id of the object that triggered this event. */ - id?: string; - /** Key vault name of the object that triggered this event. */ - vaultName?: string; - /** The type of the object that triggered this event */ - objectType?: string; - /** The name of the object that triggered this event */ - objectName?: string; - /** The version of the object that triggered this event */ - version?: string; - /** Not before date of the object that triggered this event */ - nbf?: number; - /** The expiration date of the object that triggered this event */ - exp?: number; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.KeyVault.KeyNearExpiry event. */ -export interface KeyVaultKeyNearExpiryEventData { - /** The id of the object that triggered this event. */ - id?: string; - /** Key vault name of the object that triggered this event. */ - vaultName?: string; - /** The type of the object that triggered this event */ - objectType?: string; - /** The name of the object that triggered this event */ - objectName?: string; - /** The version of the object that triggered this event */ - version?: string; - /** Not before date of the object that triggered this event */ - nbf?: number; - /** The expiration date of the object that triggered this event */ - exp?: number; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.KeyVault.KeyExpired event. */ -export interface KeyVaultKeyExpiredEventData { - /** The id of the object that triggered this event. */ - id?: string; - /** Key vault name of the object that triggered this event. */ - vaultName?: string; - /** The type of the object that triggered this event */ - objectType?: string; - /** The name of the object that triggered this event */ - objectName?: string; - /** The version of the object that triggered this event */ - version?: string; - /** Not before date of the object that triggered this event */ - nbf?: number; - /** The expiration date of the object that triggered this event */ - exp?: number; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.KeyVault.SecretNewVersionCreated event. */ -export interface KeyVaultSecretNewVersionCreatedEventData { - /** The id of the object that triggered this event. */ - id?: string; - /** Key vault name of the object that triggered this event. */ - vaultName?: string; - /** The type of the object that triggered this event */ - objectType?: string; - /** The name of the object that triggered this event */ - objectName?: string; - /** The version of the object that triggered this event */ - version?: string; - /** Not before date of the object that triggered this event */ - nbf?: number; - /** The expiration date of the object that triggered this event */ - exp?: number; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.KeyVault.SecretNearExpiry event. */ -export interface KeyVaultSecretNearExpiryEventData { - /** The id of the object that triggered this event. */ - id?: string; - /** Key vault name of the object that triggered this event. */ - vaultName?: string; - /** The type of the object that triggered this event */ - objectType?: string; - /** The name of the object that triggered this event */ - objectName?: string; - /** The version of the object that triggered this event */ - version?: string; - /** Not before date of the object that triggered this event */ - nbf?: number; - /** The expiration date of the object that triggered this event */ - exp?: number; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.KeyVault.VaultAccessPolicyChanged event. */ -export interface KeyVaultAccessPolicyChangedEventData { - /** The id of the object that triggered this event. */ - id?: string; - /** Key vault name of the object that triggered this event. */ - vaultName?: string; - /** The type of the object that triggered this event */ - objectType?: string; - /** The name of the object that triggered this event */ - objectName?: string; - /** The version of the object that triggered this event */ - version?: string; - /** Not before date of the object that triggered this event */ - nbf?: number; - /** The expiration date of the object that triggered this event */ - exp?: number; -} - -/** Schema of the Data property of an EventGridEvent for a Microsoft.KeyVault.SecretExpired event. */ -export interface KeyVaultSecretExpiredEventData { - /** The id of the object that triggered this event. */ - id?: string; - /** Key vault name of the object that triggered this event. */ - vaultName?: string; - /** The type of the object that triggered this event */ - objectType?: string; - /** The name of the object that triggered this event */ - objectName?: string; - /** The version of the object that triggered this event */ - version?: string; - /** Not before date of the object that triggered this event */ - nbf?: number; - /** The expiration date of the object that triggered this event */ - exp?: number; -} diff --git a/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/models/options.ts b/sdk/eventgrid/eventgrid-system-events/src/parameters.ts similarity index 54% rename from sdk/eventgrid/eventgrid-system-events/src/cadl-generated/models/options.ts rename to sdk/eventgrid/eventgrid-system-events/src/parameters.ts index 7b9f1c3ce750..06104cebf96b 100644 --- a/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/models/options.ts +++ b/sdk/eventgrid/eventgrid-system-events/src/parameters.ts @@ -1,4 +1,4 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -// import { OperationOptions } from "@azure-rest/core-client"; +import { RequestParameters } from "@azure-rest/core-client"; diff --git a/sdk/eventgrid/eventgrid-system-events/src/predicates.ts b/sdk/eventgrid/eventgrid-system-events/src/predicates.ts deleted file mode 100644 index 269d533ef46b..000000000000 --- a/sdk/eventgrid/eventgrid-system-events/src/predicates.ts +++ /dev/null @@ -1,693 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import type { - KeyVaultCertificateNewVersionCreatedEventData, - KeyVaultCertificateNearExpiryEventData, - KeyVaultCertificateExpiredEventData, - KeyVaultKeyNewVersionCreatedEventData, - KeyVaultKeyNearExpiryEventData, - KeyVaultKeyExpiredEventData, - KeyVaultSecretNewVersionCreatedEventData, - KeyVaultSecretNearExpiryEventData, - KeyVaultAccessPolicyChangedEventData, - KeyVaultSecretExpiredEventData, -} from "./models.js"; - -import type { - AcsChatMessageDeletedEventData, - AcsChatMessageDeletedInThreadEventData, - AcsChatMessageEditedEventData, - AcsChatMessageEditedInThreadEventData, - AcsChatMessageReceivedEventData, - AcsChatMessageReceivedInThreadEventData, - AcsChatParticipantAddedToThreadEventData, - AcsChatParticipantAddedToThreadWithUserEventData, - AcsChatParticipantRemovedFromThreadEventData, - AcsChatParticipantRemovedFromThreadWithUserEventData, - AcsChatThreadCreatedWithUserEventData, - AcsChatThreadPropertiesUpdatedPerUserEventData, - AcsChatThreadWithUserDeletedEventData, - AcsRecordingFileStatusUpdatedEventData, - AcsSmsDeliveryReportReceivedEventData, - AcsSmsReceivedEventData, - AcsUserDisconnectedEventData, - ApiManagementApiCreatedEventData, - ApiManagementApiDeletedEventData, - ApiManagementApiReleaseCreatedEventData, - ApiManagementApiReleaseDeletedEventData, - ApiManagementApiReleaseUpdatedEventData, - ApiManagementApiUpdatedEventData, - ApiManagementProductCreatedEventData, - ApiManagementProductDeletedEventData, - ApiManagementProductUpdatedEventData, - ApiManagementSubscriptionCreatedEventData, - ApiManagementSubscriptionDeletedEventData, - ApiManagementSubscriptionUpdatedEventData, - ApiManagementUserCreatedEventData, - ApiManagementUserDeletedEventData, - ApiManagementUserUpdatedEventData, - AppConfigurationKeyValueDeletedEventData, - AppConfigurationKeyValueModifiedEventData, - ContainerRegistryChartDeletedEventData, - ContainerRegistryChartPushedEventData, - ContainerRegistryImageDeletedEventData, - ContainerRegistryImagePushedEventData, - ContainerServiceNewKubernetesVersionAvailableEventData, - EventHubCaptureFileCreatedEventData, - HealthcareDicomImageCreatedEventData, - HealthcareDicomImageDeletedEventData, - HealthcareFhirResourceCreatedEventData, - HealthcareFhirResourceDeletedEventData, - HealthcareFhirResourceUpdatedEventData, - IotHubDeviceConnectedEventData, - IotHubDeviceCreatedEventData, - IotHubDeviceDeletedEventData, - IotHubDeviceDisconnectedEventData, - IotHubDeviceTelemetryEventData, - MachineLearningServicesDatasetDriftDetectedEventData, - MachineLearningServicesModelDeployedEventData, - MachineLearningServicesModelRegisteredEventData, - MachineLearningServicesRunCompletedEventData, - MachineLearningServicesRunStatusChangedEventData, - MapsGeofenceEnteredEventData, - MapsGeofenceExitedEventData, - MapsGeofenceResultEventData, - MediaJobCanceledEventData, - MediaJobCancelingEventData, - MediaJobErroredEventData, - MediaJobFinishedEventData, - MediaJobOutputCanceledEventData, - MediaJobOutputCancelingEventData, - MediaJobOutputErroredEventData, - MediaJobOutputFinishedEventData, - MediaJobOutputProcessingEventData, - MediaJobOutputProgressEventData, - MediaJobOutputScheduledEventData, - MediaJobOutputStateChangeEventData, - MediaJobProcessingEventData, - MediaJobScheduledEventData, - MediaJobStateChangeEventData, - MediaLiveEventChannelArchiveHeartbeatEventData, - MediaLiveEventConnectionRejectedEventData, - MediaLiveEventEncoderConnectedEventData, - MediaLiveEventEncoderDisconnectedEventData, - MediaLiveEventIncomingDataChunkDroppedEventData, - MediaLiveEventIncomingStreamReceivedEventData, - MediaLiveEventIncomingStreamsOutOfSyncEventData, - MediaLiveEventIncomingVideoStreamsOutOfSyncEventData, - MediaLiveEventIngestHeartbeatEventData, - MediaLiveEventTrackDiscontinuityDetectedEventData, - PolicyInsightsPolicyStateChangedEventData, - PolicyInsightsPolicyStateCreatedEventData, - PolicyInsightsPolicyStateDeletedEventData, - ResourceActionCancelEventData, - ResourceActionFailureEventData, - ResourceActionSuccessEventData, - ResourceDeleteCancelEventData, - ResourceDeleteFailureEventData, - ResourceDeleteSuccessEventData, - ResourceWriteCancelEventData, - ResourceWriteFailureEventData, - ResourceWriteSuccessEventData, - ServiceBusActiveMessagesAvailableWithNoListenersEventData, - ServiceBusDeadletterMessagesAvailableWithNoListenersEventData, - StorageAsyncOperationInitiatedEventData, - StorageBlobCreatedEventData, - StorageBlobDeletedEventData, - StorageBlobInventoryPolicyCompletedEventData, - StorageBlobRenamedEventData, - StorageBlobTierChangedEventData, - StorageDirectoryCreatedEventData, - StorageDirectoryDeletedEventData, - StorageDirectoryRenamedEventData, - StorageLifecyclePolicyCompletedEventData, - SubscriptionDeletedEventData, - SubscriptionValidationEventData, - WebAppServicePlanUpdatedEventData, - WebAppUpdatedEventData, - WebBackupOperationCompletedEventData, - WebBackupOperationFailedEventData, - WebBackupOperationStartedEventData, - WebRestoreOperationCompletedEventData, - WebRestoreOperationFailedEventData, - WebRestoreOperationStartedEventData, - WebSlotSwapCompletedEventData, - WebSlotSwapFailedEventData, - WebSlotSwapStartedEventData, - WebSlotSwapWithPreviewCancelledEventData, - WebSlotSwapWithPreviewStartedEventData, - StorageTaskQueuedEventData, - StorageTaskCompletedEventData, - DataBoxCopyStartedEventData, - DataBoxCopyCompletedEventData, - DataBoxOrderCompletedEventData, - AcsIncomingCallEventData, - AcsEmailDeliveryReportReceivedEventData, - AcsEmailEngagementTrackingReportReceivedEventData, - ApiManagementGatewayCreatedEventData, - ApiManagementGatewayUpdatedEventData, - ApiManagementGatewayDeletedEventData, - ApiManagementGatewayHostnameConfigurationCreatedEventData, - ApiManagementGatewayHostnameConfigurationUpdatedEventData, - ApiManagementGatewayHostnameConfigurationDeletedEventData, - ApiManagementGatewayCertificateAuthorityCreatedEventData, - ApiManagementGatewayCertificateAuthorityUpdatedEventData, - ApiManagementGatewayCertificateAuthorityDeletedEventData, - ApiManagementGatewayApiAddedEventData, - ApiManagementGatewayApiRemovedEventData, - HealthcareDicomImageUpdatedEventData, - ContainerServiceClusterSupportEndedEventData, - ContainerServiceClusterSupportEndingEventData, - ContainerServiceNodePoolRollingStartedEventData, - ContainerServiceNodePoolRollingSucceededEventData, - ContainerServiceNodePoolRollingFailedEventData, - EventGridMqttClientCreatedOrUpdatedEventData, - EventGridMqttClientDeletedEventData, - EventGridMqttClientSessionConnectedEventData, - EventGridMqttClientSessionDisconnectedEventData, - AppConfigurationSnapshotCreatedEventData, - AppConfigurationSnapshotModifiedEventData, - ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventData, - ResourceNotificationsHealthResourcesAnnotatedEventData, - AcsRouterWorkerDeregisteredEventData, - AcsRouterWorkerRegisteredEventData, - AcsRouterJobCancelledEventData, - AcsRouterJobClassificationFailedEventData, - AcsRouterJobClassifiedEventData, - AcsRouterJobClosedEventData, - AcsRouterJobCompletedEventData, - AcsRouterJobDeletedEventData, - AcsRouterJobExceptionTriggeredEventData, - AcsRouterJobQueuedEventData, - AcsRouterJobReceivedEventData, - AcsRouterJobSchedulingFailedEventData, - AcsRouterJobUnassignedEventData, - AcsRouterJobWaitingForActivationEventData, - AcsRouterJobWorkerSelectorsExpiredEventData, - AcsRouterWorkerDeletedEventData, - AcsRouterWorkerOfferAcceptedEventData, - AcsRouterWorkerOfferDeclinedEventData, - AcsRouterWorkerOfferExpiredEventData, - AcsRouterWorkerOfferIssuedEventData, - AcsRouterWorkerOfferRevokedEventData, - ResourceNotificationsResourceManagementCreatedOrUpdatedEventData, - ResourceNotificationsResourceManagementDeletedEventData, - StorageTaskAssignmentQueuedEventData, - AvsScriptExecutionStartedEventData, - AvsScriptExecutionCancelledEventData, - AvsClusterCreatedEventData, - AvsPrivateCloudFailedEventData, - AvsPrivateCloudUpdatingEventData, - AvsPrivateCloudUpdatedEventData, - AvsClusterUpdatingEventData, - AvsClusterDeletedEventData, - AvsScriptExecutionFailedEventData, - AvsScriptExecutionFinishedEventData, - StorageTaskAssignmentCompletedEventData, - AvsClusterUpdatedEventData, - AvsClusterFailedEventData, - ApiCenterApiDefinitionAddedEventData, - ApiCenterApiDefinitionUpdatedEventData, - AcsMessageDeliveryStatusUpdatedEventData, - AcsMessageReceivedEventData, - AcsRouterWorkerUpdatedEventData, -} from "./cadl-generated/models/index.js"; - -import type { CloudEvent, EventGridEvent } from "./models.js"; - -/** - * The Event Types for all System Events. These may be used with `isSystemEvent` to determine if an - * event is a system event of a given type. - */ -export type KnownSystemEventTypes = keyof SystemEventNameToEventData; - -/** - * A mapping of event type names to event data type interfaces. - */ -export interface SystemEventNameToEventData { - /** An interface for the event data of a "Microsoft.ApiManagement.UserCreated" event. */ - "Microsoft.ApiManagement.UserCreated": ApiManagementUserCreatedEventData; - /** An interface for the event data of a "Microsoft.ApiManagement.UserUpdated" event. */ - "Microsoft.ApiManagement.UserUpdated": ApiManagementUserUpdatedEventData; - /** An interface for the event data of a "Microsoft.ApiManagement.UserDeleted" event. */ - "Microsoft.ApiManagement.UserDeleted": ApiManagementUserDeletedEventData; - /** An interface for the event data of a "Microsoft.ApiManagement.SubscriptionCreated" event. */ - "Microsoft.ApiManagement.SubscriptionCreated": ApiManagementSubscriptionCreatedEventData; - /** An interface for the event data of a "Microsoft.ApiManagement.SubscriptionUpdated" event. */ - "Microsoft.ApiManagement.SubscriptionUpdated": ApiManagementSubscriptionUpdatedEventData; - /** An interface for the event data of a "Microsoft.ApiManagement.SubscriptionDeleted" event. */ - "Microsoft.ApiManagement.SubscriptionDeleted": ApiManagementSubscriptionDeletedEventData; - /** An interface for the event data of a "Microsoft.ApiManagement.ProductCreated" event. */ - "Microsoft.ApiManagement.ProductCreated": ApiManagementProductCreatedEventData; - /** An interface for the event data of a "Microsoft.ApiManagement.ProductUpdated" event. */ - "Microsoft.ApiManagement.ProductUpdated": ApiManagementProductUpdatedEventData; - /** An interface for the event data of a "Microsoft.ApiManagement.ProductDeleted" event. */ - "Microsoft.ApiManagement.ProductDeleted": ApiManagementProductDeletedEventData; - /** An interface for the event data of a "Microsoft.ApiManagement.APICreated" event. */ - "Microsoft.ApiManagement.APICreated": ApiManagementApiCreatedEventData; - /** An interface for the event data of a "Microsoft.ApiManagement.APIUpdated" event. */ - "Microsoft.ApiManagement.APIUpdated": ApiManagementApiUpdatedEventData; - /** An interface for the event data of a "Microsoft.ApiManagement.APIDeleted" event. */ - "Microsoft.ApiManagement.APIDeleted": ApiManagementApiDeletedEventData; - /** An interface for the event data of a "Microsoft.ApiManagement.APIReleaseCreated" event. */ - "Microsoft.ApiManagement.APIReleaseCreated": ApiManagementApiReleaseCreatedEventData; - /** An interface for the event data of a "Microsoft.ApiManagement.APIReleaseUpdated" event. */ - "Microsoft.ApiManagement.APIReleaseUpdated": ApiManagementApiReleaseUpdatedEventData; - /** An interface for the event data of a "Microsoft.ApiManagement.APIReleaseDeleted" event. */ - "Microsoft.ApiManagement.APIReleaseDeleted": ApiManagementApiReleaseDeletedEventData; - /** An interface for the event data of a "Microsoft.Communication.ChatMessageReceived" event. */ - "Microsoft.Communication.ChatMessageReceived": AcsChatMessageReceivedEventData; - /** An interface for the event data of a "Microsoft.Communication.ChatMessageReceivedInThread" event. */ - "Microsoft.Communication.ChatMessageReceivedInThread": AcsChatMessageReceivedInThreadEventData; - /** An interface for the event data of a "Microsoft.Communication.ChatMessageEdited" event. */ - "Microsoft.Communication.ChatMessageEdited": AcsChatMessageEditedEventData; - /** An interface for the event data of a "Microsoft.Communication.ChatMessageEditedInThread" event. */ - "Microsoft.Communication.ChatMessageEditedInThread": AcsChatMessageEditedInThreadEventData; - /** An interface for the event data of a "Microsoft.Communication.ChatMessageDeleted" event. */ - "Microsoft.Communication.ChatMessageDeleted": AcsChatMessageDeletedEventData; - /** An interface for the event data of a "Microsoft.Communication.ChatMessageDeletedInThread" event. */ - "Microsoft.Communication.ChatMessageDeletedInThread": AcsChatMessageDeletedInThreadEventData; - /** An interface for the event data of a "Microsoft.Communication.ChatThreadCreatedWithUser" event. */ - "Microsoft.Communication.ChatThreadCreatedWithUser": AcsChatThreadCreatedWithUserEventData; - /** An interface for the event data of a "Microsoft.Communication.ChatThreadWithUserDeleted" event. */ - "Microsoft.Communication.ChatThreadWithUserDeleted": AcsChatThreadWithUserDeletedEventData; - /** An interface for the event data of a "Microsoft.Communication.ChatThreadPropertiesUpdatedPerUser" event. */ - "Microsoft.Communication.ChatThreadPropertiesUpdatedPerUser": AcsChatThreadPropertiesUpdatedPerUserEventData; - /** An interface for the event data of a "Microsoft.Communication.ChatThreadParticipantAdded" event. */ - "Microsoft.Communication.ChatThreadParticipantAdded": AcsChatParticipantAddedToThreadEventData; - /** An interface for the event data of a "Microsoft.Communication.ChatParticipantAddedToThreadWithUser" event. */ - "Microsoft.Communication.ChatParticipantAddedToThreadWithUser": AcsChatParticipantAddedToThreadWithUserEventData; - /** An interface for the event data of a "Microsoft.Communication.ChatThreadParticipantRemoved" event. */ - "Microsoft.Communication.ChatThreadParticipantRemoved": AcsChatParticipantRemovedFromThreadEventData; - /** An interface for the event data of a "Microsoft.Communication.ChatParticipantRemovedFromThreadWithUser" event. */ - "Microsoft.Communication.ChatParticipantRemovedFromThreadWithUser": AcsChatParticipantRemovedFromThreadWithUserEventData; - /** An interface for the event data of a "Microsoft.Communication.RecordingFileStatusUpdated" event. */ - "Microsoft.Communication.RecordingFileStatusUpdated": AcsRecordingFileStatusUpdatedEventData; - /** An interface for the event data of a "Microsoft.Communication.SMSDeliveryReportReceived" event. */ - "Microsoft.Communication.SMSDeliveryReportReceived": AcsSmsDeliveryReportReceivedEventData; - /** An interface for the event data of a "Microsoft.Communication.SMSReceived" event. */ - "Microsoft.Communication.SMSReceived": AcsSmsReceivedEventData; - /** An interface for the event data of a "Microsoft.Communication.UserDisconnected" event. */ - "Microsoft.Communication.UserDisconnected": AcsUserDisconnectedEventData; - /** An interface for the event data of a "Microsoft.ContainerService.NewKubernetesVersionAvailable" event. */ - "Microsoft.ContainerService.NewKubernetesVersionAvailable": ContainerServiceNewKubernetesVersionAvailableEventData; - /** An interface for the event data of a "Microsoft.AppConfiguration.KeyValueDeleted" event. */ - "Microsoft.AppConfiguration.KeyValueDeleted": AppConfigurationKeyValueDeletedEventData; - /** An interface for the event data of a "Microsoft.AppConfiguration.KeyValueModified" event. */ - "Microsoft.AppConfiguration.KeyValueModified": AppConfigurationKeyValueModifiedEventData; - /** An interface for the event data of a "Microsoft.ContainerRegistry.ImagePushed" event. */ - "Microsoft.ContainerRegistry.ImagePushed": ContainerRegistryImagePushedEventData; - /** An interface for the event data of a "Microsoft.ContainerRegistry.ImageDeleted" event. */ - "Microsoft.ContainerRegistry.ImageDeleted": ContainerRegistryImageDeletedEventData; - /** An interface for the event data of a "Microsoft.ContainerRegistry.ChartDeleted" event. */ - "Microsoft.ContainerRegistry.ChartDeleted": ContainerRegistryChartDeletedEventData; - /** An interface for the event data of a "Microsoft.ContainerRegistry.ChartPushed" event. */ - "Microsoft.ContainerRegistry.ChartPushed": ContainerRegistryChartPushedEventData; - /** An interface for the event data of a "Microsoft.Devices.DeviceCreated" event. */ - "Microsoft.Devices.DeviceCreated": IotHubDeviceCreatedEventData; - /** An interface for the event data of a "Microsoft.Devices.DeviceDeleted" event. */ - "Microsoft.Devices.DeviceDeleted": IotHubDeviceDeletedEventData; - /** An interface for the event data of a "Microsoft.Devices.DeviceConnected" event. */ - "Microsoft.Devices.DeviceConnected": IotHubDeviceConnectedEventData; - /** An interface for the event data of a "Microsoft.Devices.DeviceDisconnected" event. */ - "Microsoft.Devices.DeviceDisconnected": IotHubDeviceDisconnectedEventData; - /** An interface for the event data of a "Microsoft.Devices.DeviceTelemetry" event. */ - "Microsoft.Devices.DeviceTelemetry": IotHubDeviceTelemetryEventData; - /** An interface for the event data of a "Microsoft.EventGrid.SubscriptionValidationEvent" event. */ - "Microsoft.EventGrid.SubscriptionValidationEvent": SubscriptionValidationEventData; - /** An interface for the event data of a "Microsoft.EventGrid.SubscriptionDeletedEvent" event. */ - "Microsoft.EventGrid.SubscriptionDeletedEvent": SubscriptionDeletedEventData; - /** An interface for the event data of a "Microsoft.EventHub.CaptureFileCreated" event. */ - "Microsoft.EventHub.CaptureFileCreated": EventHubCaptureFileCreatedEventData; - /** An interface for the event data of a "Microsoft.HealthcareApis.DicomImageCreated" event. */ - "Microsoft.HealthcareApis.DicomImageCreated": HealthcareDicomImageCreatedEventData; - /** An interface for the event data of a "Microsoft.HealthcareApis.DicomImageDeleted" event. */ - "Microsoft.HealthcareApis.DicomImageDeleted": HealthcareDicomImageDeletedEventData; - /** An interface for the event data of a "Microsoft.HealthcareApis.FhirResourceCreated" event. */ - "Microsoft.HealthcareApis.FhirResourceCreated": HealthcareFhirResourceCreatedEventData; - /** An interface for the event data of a "Microsoft.HealthcareApis.FhirUpdatedCreated" event. */ - "Microsoft.HealthcareApis.FhirUpdatedCreated": HealthcareFhirResourceUpdatedEventData; - /** An interface for the event data of a "Microsoft.HealthcareApis.FhirDeletedCreated" event. */ - "Microsoft.HealthcareApis.FhirDeletedCreated": HealthcareFhirResourceDeletedEventData; - /** An interface for the event data of a "Microsoft.KeyVault.CertificateNewVersionCreated" event. */ - "Microsoft.KeyVault.CertificateNewVersionCreated": KeyVaultCertificateNewVersionCreatedEventData; - /** An interface for the event data of a "Microsoft.KeyVault.CertificateNearExpiry" event. */ - "Microsoft.KeyVault.CertificateNearExpiry": KeyVaultCertificateNearExpiryEventData; - /** An interface for the event data of a "Microsoft.KeyVault.CertificateExpired" event. */ - "Microsoft.KeyVault.CertificateExpired": KeyVaultCertificateExpiredEventData; - /** An interface for the event data of a "Microsoft.KeyVault.KeyNewVersionCreated" event. */ - "Microsoft.KeyVault.KeyNewVersionCreated": KeyVaultKeyNewVersionCreatedEventData; - /** An interface for the event data of a "Microsoft.KeyVault.KeyNearExpiry" event. */ - "Microsoft.KeyVault.KeyNearExpiry": KeyVaultKeyNearExpiryEventData; - /** An interface for the event data of a "Microsoft.KeyVault.KeyExpired" event. */ - "Microsoft.KeyVault.KeyExpired": KeyVaultKeyExpiredEventData; - /** An interface for the event data of a "Microsoft.KeyVault.SecretNewVersionCreated" event. */ - "Microsoft.KeyVault.SecretNewVersionCreated": KeyVaultSecretNewVersionCreatedEventData; - /** An interface for the event data of a "Microsoft.KeyVault.SecretNearExpiry" event. */ - "Microsoft.KeyVault.SecretNearExpiry": KeyVaultSecretNearExpiryEventData; - /** An interface for the event data of a "Microsoft.KeyVault.SecretExpired" event. */ - "Microsoft.KeyVault.SecretExpired": KeyVaultSecretExpiredEventData; - /** An interface for the event data of a "Microsoft.KeyVault.VaultAccessPolicyChanged" event. */ - "Microsoft.KeyVault.VaultAccessPolicyChanged": KeyVaultAccessPolicyChangedEventData; - /** An interface for the event data of a "Microsoft.MachineLearningServices.DatasetDriftDetected" event. */ - "Microsoft.MachineLearningServices.DatasetDriftDetected": MachineLearningServicesDatasetDriftDetectedEventData; - /** An interface for the event data of a "Microsoft.MachineLearningServices.ModelDeployed" event. */ - "Microsoft.MachineLearningServices.ModelDeployed": MachineLearningServicesModelDeployedEventData; - /** An interface for the event data of a "Microsoft.MachineLearningServices.ModelRegistered" event. */ - "Microsoft.MachineLearningServices.ModelRegistered": MachineLearningServicesModelRegisteredEventData; - /** An interface for the event data of a "Microsoft.MachineLearningServices.RunCompleted" event. */ - "Microsoft.MachineLearningServices.RunCompleted": MachineLearningServicesRunCompletedEventData; - /** An interface for the event data of a "Microsoft.MachineLearningServices.RunStatusChanged" event. */ - "Microsoft.MachineLearningServices.RunStatusChanged": MachineLearningServicesRunStatusChangedEventData; - /** An interface for the event data of a "Microsoft.Maps.GeofenceEntered" event. */ - "Microsoft.Maps.GeofenceEntered": MapsGeofenceEnteredEventData; - /** An interface for the event data of a "Microsoft.Maps.GeofenceExited" event. */ - "Microsoft.Maps.GeofenceExited": MapsGeofenceExitedEventData; - /** An interface for the event data of a "Microsoft.Maps.GeofenceResult" event. */ - "Microsoft.Maps.GeofenceResult": MapsGeofenceResultEventData; - /** An interface for the event data of a "Microsoft.Media.JobStateChange" event. */ - "Microsoft.Media.JobStateChange": MediaJobStateChangeEventData; - /** An interface for the event data of a "Microsoft.Media.JobOutputStateChange" event. */ - "Microsoft.Media.JobOutputStateChange": MediaJobOutputStateChangeEventData; - /** An interface for the event data of a "Microsoft.Media.JobScheduled" event. */ - "Microsoft.Media.JobScheduled": MediaJobScheduledEventData; - /** An interface for the event data of a "Microsoft.Media.JobProcessing" event. */ - "Microsoft.Media.JobProcessing": MediaJobProcessingEventData; - /** An interface for the event data of a "Microsoft.Media.JobCanceling" event. */ - "Microsoft.Media.JobCanceling": MediaJobCancelingEventData; - /** An interface for the event data of a "Microsoft.Media.JobFinished" event. */ - "Microsoft.Media.JobFinished": MediaJobFinishedEventData; - /** An interface for the event data of a "Microsoft.Media.JobCanceled" event. */ - "Microsoft.Media.JobCanceled": MediaJobCanceledEventData; - /** An interface for the event data of a "Microsoft.Media.JobErrored" event. */ - "Microsoft.Media.JobErrored": MediaJobErroredEventData; - /** An interface for the event data of a "Microsoft.Media.JobOutputCanceled" event. */ - "Microsoft.Media.JobOutputCanceled": MediaJobOutputCanceledEventData; - /** An interface for the event data of a "Microsoft.Media.JobOutputCanceling" event. */ - "Microsoft.Media.JobOutputCanceling": MediaJobOutputCancelingEventData; - /** An interface for the event data of a "Microsoft.Media.JobOutputErrored" event. */ - "Microsoft.Media.JobOutputErrored": MediaJobOutputErroredEventData; - /** An interface for the event data of a "Microsoft.Media.JobOutputFinished" event. */ - "Microsoft.Media.JobOutputFinished": MediaJobOutputFinishedEventData; - /** An interface for the event data of a "Microsoft.Media.JobOutputProcessing" event. */ - "Microsoft.Media.JobOutputProcessing": MediaJobOutputProcessingEventData; - /** An interface for the event data of a "Microsoft.Media.JobOutputScheduled" event. */ - "Microsoft.Media.JobOutputScheduled": MediaJobOutputScheduledEventData; - /** An interface for the event data of a "Microsoft.Media.JobOutputProgress" event. */ - "Microsoft.Media.JobOutputProgress": MediaJobOutputProgressEventData; - /** An interface for the event data of a "Microsoft.Media.LiveEventEncoderConnected" event. */ - "Microsoft.Media.LiveEventEncoderConnected": MediaLiveEventEncoderConnectedEventData; - /** An interface for the event data of a "Microsoft.Media.LiveEventChannelArchiveHeartbeat" event. */ - "Microsoft.Media.LiveEventChannelArchiveHeartbeat": MediaLiveEventChannelArchiveHeartbeatEventData; - /** An interface for the event data of a "Microsoft.Media.LiveEventConnectionRejected" event. */ - "Microsoft.Media.LiveEventConnectionRejected": MediaLiveEventConnectionRejectedEventData; - /** An interface for the event data of a "Microsoft.Media.LiveEventEncoderDisconnected" event. */ - "Microsoft.Media.LiveEventEncoderDisconnected": MediaLiveEventEncoderDisconnectedEventData; - /** An interface for the event data of a "Microsoft.Media.LiveEventIncomingStreamReceived" event. */ - "Microsoft.Media.LiveEventIncomingStreamReceived": MediaLiveEventIncomingStreamReceivedEventData; - /** An interface for the event data of a "Microsoft.Media.LiveEventIncomingStreamsOutOfSync" event. */ - "Microsoft.Media.LiveEventIncomingStreamsOutOfSync": MediaLiveEventIncomingStreamsOutOfSyncEventData; - /** An interface for the event data of a "Microsoft.Media.LiveEventIncomingVideoStreamsOutOfSync" event. */ - "Microsoft.Media.LiveEventIncomingVideoStreamsOutOfSync": MediaLiveEventIncomingVideoStreamsOutOfSyncEventData; - /** An interface for the event data of a "Microsoft.Media.LiveEventIncomingDataChunkDropped" event. */ - "Microsoft.Media.LiveEventIncomingDataChunkDropped": MediaLiveEventIncomingDataChunkDroppedEventData; - /** An interface for the event data of a "Microsoft.Media.LiveEventIngestHeartbeat" event. */ - "Microsoft.Media.LiveEventIngestHeartbeat": MediaLiveEventIngestHeartbeatEventData; - /** An interface for the event data of a "Microsoft.Media.LiveEventTrackDiscontinuityDetected" event. */ - "Microsoft.Media.LiveEventTrackDiscontinuityDetected": MediaLiveEventTrackDiscontinuityDetectedEventData; - /** An interface for the event data of a "Microsoft.PolicyInsights.PolicyStateChanged" event. */ - "Microsoft.PolicyInsights.PolicyStateChanged ": PolicyInsightsPolicyStateChangedEventData; - /** An interface for the event data of a " Microsoft.PolicyInsights.PolicyStateCreated" event. */ - "Microsoft.PolicyInsights.PolicyStateCreated": PolicyInsightsPolicyStateCreatedEventData; - /** An interface for the event data of a "Microsoft.PolicyInsights.PolicyStateDeleted" event. */ - "Microsoft.PolicyInsights.PolicyStateDeleted": PolicyInsightsPolicyStateDeletedEventData; - /** An interface for the event data of a "Microsoft.Resources.ResourceDeleteSuccess" event. */ - "Microsoft.Resources.ResourceWriteSuccess": ResourceWriteSuccessEventData; - /** An interface for the event data of a "Microsoft.Resources.ResourceWriteFailure" event. */ - "Microsoft.Resources.ResourceWriteFailure": ResourceWriteFailureEventData; - /** An interface for the event data of a "Microsoft.Resources.ResourceWriteCancel" event. */ - "Microsoft.Resources.ResourceWriteCancel": ResourceWriteCancelEventData; - /** An interface for the event data of a "Microsoft.Resources.ResourceDeleteSuccess" event. */ - "Microsoft.Resources.ResourceDeleteSuccess": ResourceDeleteSuccessEventData; - /** An interface for the event data of a "Microsoft.Resources.ResourceDeleteFailure" event. */ - "Microsoft.Resources.ResourceDeleteFailure": ResourceDeleteFailureEventData; - /** An interface for the event data of a "Microsoft.Resources.ResourceDeleteCancel" event. */ - "Microsoft.Resources.ResourceDeleteCancel": ResourceDeleteCancelEventData; - /** An interface for the event data of a "Microsoft.Resources.ResourceActionSuccess" event. */ - "Microsoft.Resources.ResourceActionSuccess": ResourceActionSuccessEventData; - /** An interface for the event data of a "Microsoft.Resources.ResourceActionFailure" event. */ - "Microsoft.Resources.ResourceActionFailure": ResourceActionFailureEventData; - /** An interface for the event data of a "Microsoft.Resources.ResourceActionCancel" event. */ - "Microsoft.Resources.ResourceActionCancel": ResourceActionCancelEventData; - /** An interface for the event data of a "Microsoft.ServiceBus.ActiveMessagesAvailableWithNoListeners" event. */ - "Microsoft.ServiceBus.ActiveMessagesAvailableWithNoListeners": ServiceBusActiveMessagesAvailableWithNoListenersEventData; - /** An interface for the event data of a "Microsoft.ServiceBus.DeadletterMessagesAvailableWithNoListeners" event. */ - "Microsoft.ServiceBus.DeadletterMessagesAvailableWithNoListeners": ServiceBusDeadletterMessagesAvailableWithNoListenersEventData; - /** An interface for the event data of a "Microsoft.Storage.AsyncOperationInitiated" event. */ - "Microsoft.Storage.AsyncOperationInitiated": StorageAsyncOperationInitiatedEventData; - /** An interface for the event data of a "Microsoft.Storage.BlobCreated" event. */ - "Microsoft.Storage.BlobCreated": StorageBlobCreatedEventData; - /** An interface for the event data of a "Microsoft.Storage.BlobDeleted" event. */ - "Microsoft.Storage.BlobDeleted": StorageBlobDeletedEventData; - /** An interface for the event data of a "Microsoft.Storage.BlobInventoryPolicyCompleted" event. */ - "Microsoft.Storage.BlobInventoryPolicyCompleted": StorageBlobInventoryPolicyCompletedEventData; - /** An interface for the event data of a "Microsoft.Storage.BlobTierChanged" event. */ - "Microsoft.Storage.BlobTierChanged": StorageBlobTierChangedEventData; - /** An interface for the event data of a "Microsoft.Storage.BlobRenamed" event. */ - "Microsoft.Storage.BlobRenamed": StorageBlobRenamedEventData; - /** An interface for the event data of a "Microsoft.Storage.DirectoryCreated" event. */ - "Microsoft.Storage.DirectoryCreated": StorageDirectoryCreatedEventData; - /** An interface for the event data of a "Microsoft.Storage.DirectoryDeleted" event. */ - "Microsoft.Storage.DirectoryDeleted": StorageDirectoryDeletedEventData; - /** An interface for the event data of a "Microsoft.Storage.DirectoryRenamed" event. */ - "Microsoft.Storage.DirectoryRenamed": StorageDirectoryRenamedEventData; - /** An interface for the event data of a "Microsoft.Storage.LifecyclePolicyCompleted" event. */ - "Microsoft.Storage.LifecyclePolicyCompleted": StorageLifecyclePolicyCompletedEventData; - /** An interface for the event data of a "Microsoft.Web.AppUpdated" event. */ - "Microsoft.Web.AppUpdated": WebAppUpdatedEventData; - /** An interface for the event data of a "Microsoft.Web.BackupOperationStarted" event. */ - "Microsoft.Web.BackupOperationStarted": WebBackupOperationStartedEventData; - /** An interface for the event data of a "Microsoft.Web.BackupOperationCompleted" event. */ - "Microsoft.Web.BackupOperationCompleted": WebBackupOperationCompletedEventData; - /** An interface for the event data of a "Microsoft.Web.BackupOperationFailed" event. */ - "Microsoft.Web.BackupOperationFailed": WebBackupOperationFailedEventData; - /** An interface for the event data of a "Microsoft.Web.RestoreOperationStarted" event. */ - "Microsoft.Web.RestoreOperationStarted": WebRestoreOperationStartedEventData; - /** An interface for the event data of a "Microsoft.Web.RestoreOperationCompleted" event. */ - "Microsoft.Web.RestoreOperationCompleted": WebRestoreOperationCompletedEventData; - /** An interface for the event data of a "Microsoft.Web.RestoreOperationFailed" event. */ - "Microsoft.Web.RestoreOperationFailed": WebRestoreOperationFailedEventData; - /** An interface for the event data of a "Microsoft.Web.SlotSwapStarted" event. */ - "Microsoft.Web.SlotSwapStarted": WebSlotSwapStartedEventData; - /** An interface for the event data of a "Microsoft.Web.SlotSwapCompleted" event. */ - "Microsoft.Web.SlotSwapCompleted": WebSlotSwapCompletedEventData; - /** An interface for the event data of a "Microsoft.Web.SlotSwapFailed" event. */ - "Microsoft.Web.SlotSwapFailed": WebSlotSwapFailedEventData; - /** An interface for the event data of a "Microsoft.Web.SlotSwapWithPreviewStarted" event. */ - "Microsoft.Web.SlotSwapWithPreviewStarted": WebSlotSwapWithPreviewStartedEventData; - /** An interface for the event data of a "Microsoft.Web.SlotSwapWithPreviewCancelled" event. */ - "Microsoft.Web.SlotSwapWithPreviewCancelled": WebSlotSwapWithPreviewCancelledEventData; - /** An interface for the event data of a "Microsoft.Web.AppServicePlanUpdated" event. */ - "Microsoft.Web.AppServicePlanUpdated": WebAppServicePlanUpdatedEventData; - /** An interface for the event data of a "Microsoft.Storage.StorageTaskQueued" event. */ - "Microsoft.Storage.StorageTaskQueued": StorageTaskQueuedEventData; - /** An interface for the event data of a "Microsoft.Storage.StorageTaskCompleted" event. */ - "Microsoft.Storage.StorageTaskCompleted": StorageTaskCompletedEventData; - /** An interface for the event data of a "Microsoft.DataBox.CopyStarted" event. */ - "Microsoft.DataBox.CopyStarted": DataBoxCopyStartedEventData; - /** An interface for the event data of a "Microsoft.DataBox.CopyCompleted" event. */ - "Microsoft.DataBox.CopyCompleted": DataBoxCopyCompletedEventData; - /** An interface for the event data of a "Microsoft.DataBox.OrderCompleted" event. */ - "Microsoft.DataBox.OrderCompleted": DataBoxOrderCompletedEventData; - /** An interface for the event data of a "Microsoft.Communication.IncomingCall" event. */ - "Microsoft.Communication.IncomingCall": AcsIncomingCallEventData; - /** An interface for the event data of a "Microsoft.Communication.EmailDeliveryReportReceived" event. */ - "Microsoft.Communication.EmailDeliveryReportReceived": AcsEmailDeliveryReportReceivedEventData; - /** An interface for the event data of a "Microsoft.Communication.EmailEngagementTrackingReportReceived" event. */ - "Microsoft.Communication.EmailEngagementTrackingReportReceived": AcsEmailEngagementTrackingReportReceivedEventData; - /** An interface for the event data of a "Microsoft.ApiManagement.GatewayCreated" event. */ - "Microsoft.ApiManagement.GatewayCreated": ApiManagementGatewayCreatedEventData; - /** An interface for the event data of a "Microsoft.ApiManagement.GatewayUpdated" event. */ - "Microsoft.ApiManagement.GatewayUpdated": ApiManagementGatewayUpdatedEventData; - /** An interface for the event data of a "Microsoft.ApiManagement.GatewayDeleted" event. */ - "Microsoft.ApiManagement.GatewayDeleted": ApiManagementGatewayDeletedEventData; - /** An interface for the event data of a "Microsoft.ApiManagement.GatewayHostnameConfigurationCreated" event. */ - "Microsoft.ApiManagement.GatewayHostnameConfigurationCreated": ApiManagementGatewayHostnameConfigurationCreatedEventData; - /** An interface for the event data of a "Microsoft.ApiManagement.GatewayHostnameConfigurationUpdated" event. */ - "Microsoft.ApiManagement.GatewayHostnameConfigurationUpdated": ApiManagementGatewayHostnameConfigurationUpdatedEventData; - /** An interface for the event data of a "Microsoft.ApiManagement.GatewayHostnameConfigurationDeleted" event. */ - "Microsoft.ApiManagement.GatewayHostnameConfigurationDeleted": ApiManagementGatewayHostnameConfigurationDeletedEventData; - /** An interface for the event data of a "Microsoft.ApiManagement.GatewayCertificateAuthorityCreated" event. */ - "Microsoft.ApiManagement.GatewayCertificateAuthorityCreated": ApiManagementGatewayCertificateAuthorityCreatedEventData; - /** An interface for the event data of a "Microsoft.ApiManagement.GatewayCertificateAuthorityUpdated" event. */ - "Microsoft.ApiManagement.GatewayCertificateAuthorityUpdated": ApiManagementGatewayCertificateAuthorityUpdatedEventData; - /** An interface for the event data of a "Microsoft.ApiManagement.GatewayCertificateAuthorityDeleted" event. */ - "Microsoft.ApiManagement.GatewayCertificateAuthorityDeleted": ApiManagementGatewayCertificateAuthorityDeletedEventData; - /** An interface for the event data of a "Microsoft.ApiManagement.GatewayAPIAdded" event. */ - "Microsoft.ApiManagement.GatewayAPIAdded": ApiManagementGatewayApiAddedEventData; - /** An interface for the event data of a "Microsoft.ApiManagement.GatewayAPIRemoved" event. */ - "Microsoft.ApiManagement.GatewayAPIRemoved": ApiManagementGatewayApiRemovedEventData; - /** An interface for the event data of a "Microsoft.HealthcareApis.DicomImageUpdated" event. */ - "Microsoft.HealthcareApis.DicomImageUpdated": HealthcareDicomImageUpdatedEventData; - /** An interface for the event data of a "Microsoft.ContainerService.ClusterSupportEnded" event. */ - "Microsoft.ContainerService.ClusterSupportEnded": ContainerServiceClusterSupportEndedEventData; - /** An interface for the event data of a "Microsoft.ContainerService.ClusterSupportEnding" event. */ - "Microsoft.ContainerService.ClusterSupportEnding": ContainerServiceClusterSupportEndingEventData; - /** An interface for the event data of a "Microsoft.ContainerService.NodePoolRollingStarted" event. */ - "Microsoft.ContainerService.NodePoolRollingStarted": ContainerServiceNodePoolRollingStartedEventData; - /** An interface for the event data of a "Microsoft.ContainerService.NodePoolRollingSucceeded" event. */ - "Microsoft.ContainerService.NodePoolRollingSucceeded": ContainerServiceNodePoolRollingSucceededEventData; - /** An interface for the event data of a "Microsoft.ContainerService.NodePoolRollingFailed" event. */ - "Microsoft.ContainerService.NodePoolRollingFailed": ContainerServiceNodePoolRollingFailedEventData; - /** An interface for the event data of a "Microsoft.EventGrid.MQTTClientCreatedOrUpdated" event. */ - "Microsoft.EventGrid.MQTTClientCreatedOrUpdated": EventGridMqttClientCreatedOrUpdatedEventData; - /** An interface for the event data of a "Microsoft.EventGrid.MQTTClientDeleted" event. */ - "Microsoft.EventGrid.MQTTClientDeleted": EventGridMqttClientDeletedEventData; - /** An interface for the event data of a "Microsoft.EventGrid.MQTTClientSessionConnected" event. */ - "Microsoft.EventGrid.MQTTClientSessionConnected": EventGridMqttClientSessionConnectedEventData; - /** An interface for the event data of a "Microsoft.EventGrid.MQTTClientSessionDisconnected" event. */ - "Microsoft.EventGrid.MQTTClientSessionDisconnected": EventGridMqttClientSessionDisconnectedEventData; - /** An interface for the event data of a "Microsoft.AppConfiguration.SnapshotCreated" event. */ - "Microsoft.AppConfiguration.SnapshotCreated": AppConfigurationSnapshotCreatedEventData; - /** An interface for the event data of a "Microsoft.AppConfiguration.SnapshotModified" event. */ - "Microsoft.AppConfiguration.SnapshotModified": AppConfigurationSnapshotModifiedEventData; - /** An interface for the event data of a "Microsoft.ResourceNotifications.HealthResources.AvailabilityStatusChanged" event. */ - "Microsoft.ResourceNotifications.HealthResources.AvailabilityStatusChanged": ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventData; - /** An interface for the event data of a "Microsoft.ResourceNotifications.HealthResources.ResourceAnnotated" event. */ - "Microsoft.ResourceNotifications.HealthResources.ResourceAnnotated": ResourceNotificationsHealthResourcesAnnotatedEventData; - /** An interface for the event data of a "Microsoft.Communication.RouterWorkerDeregistered" event. */ - "Microsoft.Communication.RouterWorkerDeregistered": AcsRouterWorkerDeregisteredEventData; - /** An interface for the event data of a "Microsoft.Communication.RouterWorkerRegistered" event. */ - "Microsoft.Communication.RouterWorkerRegistered": AcsRouterWorkerRegisteredEventData; - /** An interface for the event data of a "Microsoft.Communication.RouterJobCancelled" event. */ - "Microsoft.Communication.RouterJobCancelled": AcsRouterJobCancelledEventData; - /** An interface for the event data of a "Microsoft.Communication.RouterJobClassificationFailed" event. */ - "Microsoft.Communication.RouterJobClassificationFailed": AcsRouterJobClassificationFailedEventData; - /** An interface for the event data of a "Microsoft.Communication.RouterJobClassified" event. */ - "Microsoft.Communication.RouterJobClassified": AcsRouterJobClassifiedEventData; - /** An interface for the event data of a "Microsoft.Communication.RouterJobClosed" event. */ - "Microsoft.Communication.RouterJobClosed": AcsRouterJobClosedEventData; - /** An interface for the event data of a "Microsoft.Communication.RouterJobCompleted" event. */ - "Microsoft.Communication.RouterJobCompleted": AcsRouterJobCompletedEventData; - /** An interface for the event data of a "Microsoft.Communication.RouterJobDeleted" event. */ - "Microsoft.Communication.RouterJobDeleted": AcsRouterJobDeletedEventData; - /** An interface for the event data of a "Microsoft.Communication.RouterJobExceptionTriggered" event. */ - "Microsoft.Communication.RouterJobExceptionTriggered": AcsRouterJobExceptionTriggeredEventData; - /** An interface for the event data of a "Microsoft.Communication.RouterJobQueued" event. */ - "Microsoft.Communication.RouterJobQueued": AcsRouterJobQueuedEventData; - /** An interface for the event data of a "Microsoft.Communication.RouterJobReceived" event. */ - "Microsoft.Communication.RouterJobReceived": AcsRouterJobReceivedEventData; - /** An interface for the event data of a "Microsoft.Communication.RouterJobSchedulingFailed" event. */ - "Microsoft.Communication.RouterJobSchedulingFailed": AcsRouterJobSchedulingFailedEventData; - /** An interface for the event data of a "Microsoft.Communication.RouterJobUnassigned" event. */ - "Microsoft.Communication.RouterJobUnassigned": AcsRouterJobUnassignedEventData; - /** An interface for the event data of a "Microsoft.Communication.RouterJobWaitingForActivation" event. */ - "Microsoft.Communication.RouterJobWaitingForActivation": AcsRouterJobWaitingForActivationEventData; - /** An interface for the event data of a "Microsoft.Communication.RouterJobWorkerSelectorsExpire" event. */ - "Microsoft.Communication.RouterJobWorkerSelectorsExpire": AcsRouterJobWorkerSelectorsExpiredEventData; - /** An interface for the event data of a "Microsoft.Communication.RouterWorkerDeleted" event. */ - "Microsoft.Communication.RouterWorkerDeleted": AcsRouterWorkerDeletedEventData; - /** An interface for the event data of a "Microsoft.Communication.RouterWorkerOfferAccepted" event. */ - "Microsoft.Communication.RouterWorkerOfferAccepted": AcsRouterWorkerOfferAcceptedEventData; - /** An interface for the event data of a "Microsoft.Communication.RouterWorkerOfferDeclined" event. */ - "Microsoft.Communication.RouterWorkerOfferDeclined": AcsRouterWorkerOfferDeclinedEventData; - /** An interface for the event data of a "Microsoft.Communication.RouterWorkerOfferExpired" event. */ - "Microsoft.Communication.RouterWorkerOfferExpired": AcsRouterWorkerOfferExpiredEventData; - /** An interface for the event data of a "Microsoft.Communication.RouterWorkerOfferIssued" event. */ - "Microsoft.Communication.RouterWorkerOfferIssued": AcsRouterWorkerOfferIssuedEventData; - /** An interface for the event data of a "Microsoft.Communication.RouterWorkerOfferRevoked" event. */ - "Microsoft.Communication.RouterWorkerOfferRevoked": AcsRouterWorkerOfferRevokedEventData; - /** An interface for the event data of a "Microsoft.ResourceNotifications.Resources.CreatedOrUpdated" event. */ - "Microsoft.ResourceNotifications.Resources.CreatedOrUpdated": ResourceNotificationsResourceManagementCreatedOrUpdatedEventData; - /** An interface for the event data of a "Microsoft.ResourceNotifications.Resources.Deleted" event. */ - "Microsoft.ResourceNotifications.Resources.Deleted": ResourceNotificationsResourceManagementDeletedEventData; - /** An interface for the event data of a "Microsoft.Storage.StorageTaskAssignmentQueued" event. */ - "Microsoft.Storage.StorageTaskAssignmentQueued": StorageTaskAssignmentQueuedEventData; - /** An interface for the event data of a "Microsoft.Storage.StorageTaskAssignmentCompleted" event. */ - "Microsoft.Storage.StorageTaskAssignmentCompleted": StorageTaskAssignmentCompletedEventData; - /** An interface for the event data of a "Microsoft.AVS.ScriptExecutionStarted" event. */ - "Microsoft.AVS.ScriptExecutionStarted": AvsScriptExecutionStartedEventData; - /** An interface for the event data of a "Microsoft.AVS.ScriptExecutionFinished" event. */ - "Microsoft.AVS.ScriptExecutionFinished": AvsScriptExecutionFinishedEventData; - /** An interface for the event data of a "Microsoft.AVS.ScriptExecutionCancelled" event. */ - "Microsoft.AVS.ScriptExecutionCancelled": AvsScriptExecutionCancelledEventData; - /** An interface for the event data of a "Microsoft.AVS.ScriptExecutionFailed" event. */ - "Microsoft.AVS.ScriptExecutionFailed": AvsScriptExecutionFailedEventData; - /** An interface for the event data of a "Microsoft.AVS.PrivateCloudUpdating" event. */ - "Microsoft.AVS.PrivateCloudUpdating": AvsPrivateCloudUpdatingEventData; - /** An interface for the event data of a "Microsoft.AVS.PrivateCloudUpdated" event. */ - "Microsoft.AVS.PrivateCloudUpdated": AvsPrivateCloudUpdatedEventData; - /** An interface for the event data of a "Microsoft.AVS.PrivateCloudFailed" event. */ - "Microsoft.AVS.PrivateCloudFailed": AvsPrivateCloudFailedEventData; - /** An interface for the event data of a "Microsoft.AVS.ClusterCreated" event. */ - "Microsoft.AVS.ClusterCreated": AvsClusterCreatedEventData; - /** An interface for the event data of a "Microsoft.AVS.ClusterDeleted" event. */ - "Microsoft.AVS.ClusterDeleted": AvsClusterDeletedEventData; - /** An interface for the event data of a "Microsoft.AVS.ClusterUpdating" event. */ - "Microsoft.AVS.ClusterUpdating": AvsClusterUpdatingEventData; - /** An interface for the event data of a "Microsoft.AVS.ClusterUpdated" event. */ - "Microsoft.AVS.ClusterUpdated": AvsClusterUpdatedEventData; - /** An interface for the event data of a "Microsoft.AVS.ClusterFailed" event. */ - "Microsoft.AVS.ClusterFailed": AvsClusterFailedEventData; - /** An interface for the event data of a "Microsoft.ApiCenter.ApiDefinitionAdded" event. */ - "Microsoft.ApiCenter.ApiDefinitionAdded": ApiCenterApiDefinitionAddedEventData; - /** An interface for the event data of a "Microsoft.ApiCenter.ApiDefinitionUpdated" event. */ - "Microsoft.ApiCenter.ApiDefinitionUpdated": ApiCenterApiDefinitionUpdatedEventData; - /** An interface for the event data of a "Microsoft.Communication.AdvancedMessageDeliveryStatusUpdated" event. */ - "Microsoft.Communication.AdvancedMessageDeliveryStatusUpdated": AcsMessageDeliveryStatusUpdatedEventData; - /** An interface for the event data of a "Microsoft.Communication.AdvancedMessageReceived" event. */ - "Microsoft.Communication.AdvancedMessageReceived": AcsMessageReceivedEventData; - /** An interface for the event data of a "Microsoft.Communication.RouterWorkerUpdated" event. */ - "Microsoft.Communication.RouterWorkerUpdated": AcsRouterWorkerUpdatedEventData; -} - -/** - * isCloudEventLike returns "true" when the event is a CloudEvent - * - * @param o - Either an EventGrid our CloudEvent event. - */ -function isCloudEventLike( - o: EventGridEvent | CloudEvent, -): o is CloudEvent { - return (o as any).source !== undefined; -} - -/** - * iSystemEvent returns "true" when a given event is a system event of a given type. When using - * TypeScript, this function acts as a custom type guard and allows the TypeScript compiler to - * identify the underlying data - * - * @param eventType - The type of system event to check for, e.g., "Microsoft.AppConfiguration.KeyValueDeleted" - * @param event - The event to test. - */ -export function isSystemEvent( - eventType: T, - event: EventGridEvent, -): event is EventGridEvent; - -/** - * iSystemEvent returns "true" when a given event is a system event of a given type. When using - * TypeScript, this function acts as a custom type guard and allows the TypeScript compiler to - * identify the underlying data - * - * @param eventType - The type of system event to check for, e.g., "Microsoft.AppConfiguration.KeyValueDeleted" - * @param event - The event to test. - */ -export function isSystemEvent( - eventType: T, - event: CloudEvent, -): event is CloudEvent; - -export function isSystemEvent( - eventType: T, - event: EventGridEvent | CloudEvent, -): event is - | EventGridEvent - | CloudEvent { - if (isCloudEventLike(event)) { - return event.type === eventType; - } else { - return event.eventType === eventType; - } -} diff --git a/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/rest/responses.ts b/sdk/eventgrid/eventgrid-system-events/src/responses.ts similarity index 56% rename from sdk/eventgrid/eventgrid-system-events/src/cadl-generated/rest/responses.ts rename to sdk/eventgrid/eventgrid-system-events/src/responses.ts index 9bed5dcf4da7..eada57fa3974 100644 --- a/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/rest/responses.ts +++ b/sdk/eventgrid/eventgrid-system-events/src/responses.ts @@ -1,4 +1,4 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -// import { HttpResponse } from "@azure-rest/core-client"; +import { HttpResponse } from "@azure-rest/core-client"; diff --git a/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/rest/systemEventsClient.ts b/sdk/eventgrid/eventgrid-system-events/src/systemEventsClient.ts similarity index 68% rename from sdk/eventgrid/eventgrid-system-events/src/cadl-generated/rest/systemEventsClient.ts rename to sdk/eventgrid/eventgrid-system-events/src/systemEventsClient.ts index bbe531e0843c..d6f44e9ab959 100644 --- a/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/rest/systemEventsClient.ts +++ b/sdk/eventgrid/eventgrid-system-events/src/systemEventsClient.ts @@ -1,25 +1,24 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import type { ClientOptions } from "@azure-rest/core-client"; -import { getClient } from "@azure-rest/core-client"; -import { logger } from "../logger.js"; -import type { SystemEventsContext } from "./clientDefinitions.js"; +import { getClient, ClientOptions } from "@azure-rest/core-client"; +import { logger } from "./logger.js"; +import { SystemEventsClient } from "./clientDefinitions.js"; /** The optional parameters for the client */ -export interface SystemEventsContextOptions extends ClientOptions {} +export interface SystemEventsClientOptions extends ClientOptions {} /** - * Initialize a new instance of `SystemEventsContext` + * Initialize a new instance of `SystemEventsClient` * @param endpointParam - The parameter endpointParam * @param options - the parameter for all optional parameters */ export default function createClient( endpointParam: string, - options: SystemEventsContextOptions = {}, -): SystemEventsContext { + options: SystemEventsClientOptions = {}, +): SystemEventsClient { const endpointUrl = options.endpoint ?? options.baseUrl ?? `${endpointParam}`; - const userAgentInfo = `azsdk-js-eventgrid-system-events/1.0.0-beta.3`; + const userAgentInfo = `azsdk-js-eventgrid-system-events-rest/1.0.0-beta.1`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}` @@ -33,7 +32,7 @@ export default function createClient( logger: options.loggingOptions?.logger ?? logger.info, }, }; - const client = getClient(endpointUrl, options) as SystemEventsContext; + const client = getClient(endpointUrl, options) as SystemEventsClient; client.pipeline.removePolicy({ name: "ApiVersionPolicy" }); if (options.apiVersion) { diff --git a/sdk/eventgrid/eventgrid-system-events/test/public/events.spec.ts b/sdk/eventgrid/eventgrid-system-events/test/public/events.spec.ts deleted file mode 100644 index 6ff0d97d0774..000000000000 --- a/sdk/eventgrid/eventgrid-system-events/test/public/events.spec.ts +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { isSystemEvent } from "../../src/index.js"; -import { describe, it, assert } from "vitest"; - -describe("Events tests", () => { - it("isSystemEvent test", async () => { - const result = isSystemEvent("Microsoft.KeyVault.SecretNearExpiry", { - eventType: "Microsoft.KeyVault.SecretNearExpiry", - eventTime: new Date(), - id: "id", - subject: "subject", - dataVersion: "1.0", - data: { - id: "id", - vaultName: "vaultName", - }, - }); - assert.isTrue(result); - }); -}); diff --git a/sdk/eventgrid/eventgrid-system-events/test/public/sampleTest.spec.ts b/sdk/eventgrid/eventgrid-system-events/test/public/sampleTest.spec.ts new file mode 100644 index 000000000000..d4919ac91ac5 --- /dev/null +++ b/sdk/eventgrid/eventgrid-system-events/test/public/sampleTest.spec.ts @@ -0,0 +1,21 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { createRecorder } from "./utils/recordedClient.js"; +import { assert, beforeEach, afterEach, it, describe } from "vitest"; + +describe("My test", () => { + // let recorder: Recorder; + + beforeEach(async function () { + // recorder = await createRecorder(this); + }); + + afterEach(async function () { + // await recorder.stop(); + }); + + it("sample test", async function () { + assert.equal(1, 1); + }); +}); diff --git a/sdk/eventgrid/eventgrid-system-events/test/public/utils/recordedClient.ts b/sdk/eventgrid/eventgrid-system-events/test/public/utils/recordedClient.ts new file mode 100644 index 000000000000..6e425fdcfdf9 --- /dev/null +++ b/sdk/eventgrid/eventgrid-system-events/test/public/utils/recordedClient.ts @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { + Recorder, + RecorderStartOptions, + VitestTestContext, +} from "@azure-tools/test-recorder"; + +const replaceableVariables: Record = { + SUBSCRIPTION_ID: "azure_subscription_id", +}; + +const recorderEnvSetup: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables, +}; + +/** + * creates the recorder and reads the environment variables from the `.env` file. + * Should be called first in the test suite to make sure environment variables are + * read before they are being used. + */ +export async function createRecorder( + context: VitestTestContext, +): Promise { + const recorder = new Recorder(context); + await recorder.start(recorderEnvSetup); + return recorder; +} diff --git a/sdk/eventgrid/eventgrid-system-events/tests.yml b/sdk/eventgrid/eventgrid-system-events/tests.yml deleted file mode 100644 index ea5c35f4479d..000000000000 --- a/sdk/eventgrid/eventgrid-system-events/tests.yml +++ /dev/null @@ -1,7 +0,0 @@ -trigger: none - -extends: - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml - parameters: - PackageName: "@azure/eventgrid-system-events" - ServiceDirectory: eventgrid diff --git a/sdk/eventgrid/eventgrid-system-events/tsconfig.browser.config.json b/sdk/eventgrid/eventgrid-system-events/tsconfig.browser.config.json index 75871518e3a0..091177fcb991 100644 --- a/sdk/eventgrid/eventgrid-system-events/tsconfig.browser.config.json +++ b/sdk/eventgrid/eventgrid-system-events/tsconfig.browser.config.json @@ -1,3 +1,10 @@ { - "extends": ["./tsconfig.test.json", "../../../tsconfig.browser.base.json"] + "extends": "./.tshy/build.json", + "include": ["src/**/*.ts", "src/**/*.mts", "test/**/*.spec.ts"], + "exclude": ["test/**/node/**/*.ts"], + "compilerOptions": { + "outDir": "./dist-test/browser", + "rootDir": ".", + "skipLibCheck": true + } } diff --git a/sdk/eventgrid/eventgrid-system-events/tsconfig.json b/sdk/eventgrid/eventgrid-system-events/tsconfig.json index 273d9078a24a..71858ab903e4 100644 --- a/sdk/eventgrid/eventgrid-system-events/tsconfig.json +++ b/sdk/eventgrid/eventgrid-system-events/tsconfig.json @@ -1,7 +1,16 @@ { - "references": [ - { "path": "./tsconfig.src.json" }, - { "path": "./tsconfig.samples.json" }, - { "path": "./tsconfig.test.json" } + "extends": "../../../tsconfig", + "compilerOptions": { + "module": "NodeNext", + "moduleResolution": "NodeNext", + "rootDir": ".", + "skipLibCheck": true + }, + "include": [ + "src/**/*.ts", + "src/**/*.mts", + "src/**/*.cts", + "test/**/*.ts", + "test/**/*.ts" ] -} +} \ No newline at end of file diff --git a/sdk/eventgrid/eventgrid-system-events/tsconfig.samples.json b/sdk/eventgrid/eventgrid-system-events/tsconfig.samples.json deleted file mode 100644 index 52be7c127c85..000000000000 --- a/sdk/eventgrid/eventgrid-system-events/tsconfig.samples.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "../../../tsconfig.samples.base.json", - "compilerOptions": { - "paths": { - "@azure/eventgrid-system-events": ["./dist/esm"] - } - } -} diff --git a/sdk/eventgrid/eventgrid-system-events/tsconfig.src.json b/sdk/eventgrid/eventgrid-system-events/tsconfig.src.json deleted file mode 100644 index bae70752dd38..000000000000 --- a/sdk/eventgrid/eventgrid-system-events/tsconfig.src.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "../../../tsconfig.lib.json" -} diff --git a/sdk/eventgrid/eventgrid-system-events/tsconfig.test.json b/sdk/eventgrid/eventgrid-system-events/tsconfig.test.json deleted file mode 100644 index 290ca214aebc..000000000000 --- a/sdk/eventgrid/eventgrid-system-events/tsconfig.test.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": ["./tsconfig.src.json", "../../../tsconfig.test.base.json"] -} diff --git a/sdk/eventgrid/eventgrid-system-events/tsdoc.json b/sdk/eventgrid/eventgrid-system-events/tsdoc.json deleted file mode 100644 index 81c5a8a2aa2f..000000000000 --- a/sdk/eventgrid/eventgrid-system-events/tsdoc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json", - "extends": ["../../../tsdoc.json"] -} diff --git a/sdk/eventgrid/eventgrid-system-events/tsp-location.yaml b/sdk/eventgrid/eventgrid-system-events/tsp-location.yaml new file mode 100644 index 000000000000..f574b68fa2d8 --- /dev/null +++ b/sdk/eventgrid/eventgrid-system-events/tsp-location.yaml @@ -0,0 +1,4 @@ +directory: specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents +commit: 74597b0684d576a9ed8200706778d4209084dc50 +repo: /mnt/vss/_work/1/s/azure-rest-api-specs +additionalDirectories: diff --git a/sdk/eventgrid/eventgrid-system-events/vitest.browser.config.ts b/sdk/eventgrid/eventgrid-system-events/vitest.browser.config.ts index d4ae4f01c222..da68c1d231aa 100644 --- a/sdk/eventgrid/eventgrid-system-events/vitest.browser.config.ts +++ b/sdk/eventgrid/eventgrid-system-events/vitest.browser.config.ts @@ -1,16 +1,38 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { defineConfig, mergeConfig } from "vitest/config"; -import viteConfig from "../../../vitest.browser.base.config.ts"; +import { defineConfig } from "vitest/config"; +import { relativeRecordingsPath } from "@azure-tools/test-recorder"; -export default mergeConfig( - viteConfig, - defineConfig({ - test: { - include: ["dist-test/browser/test/**/*.spec.js"], - hookTimeout: 5000000, - testTimeout: 5000000, +process.env.RECORDINGS_RELATIVE_PATH = relativeRecordingsPath(); + +export default defineConfig({ + define: { + "process.env": process.env, + }, + test: { + reporters: ["basic", "junit"], + outputFile: { + junit: "test-results.browser.xml", + }, + browser: { + enabled: true, + headless: true, + name: "chromium", + provider: "playwright", + }, + fakeTimers: { + toFake: ["setTimeout", "Date"], + }, + watch: false, + include: ["dist-test/browser/**/*.spec.js"], + coverage: { + include: ["dist-test/browser/**/*.spec.js"], + provider: "istanbul", + reporter: ["text", "json", "html"], + reportsDirectory: "coverage-browser", }, - }), -); + testTimeout: 1200000, + hookTimeout: 1200000, + }, +}); diff --git a/sdk/eventgrid/eventgrid-system-events/vitest.config.ts b/sdk/eventgrid/eventgrid-system-events/vitest.config.ts index 8849d7428190..2cf5d0e02c2e 100644 --- a/sdk/eventgrid/eventgrid-system-events/vitest.config.ts +++ b/sdk/eventgrid/eventgrid-system-events/vitest.config.ts @@ -1,15 +1,34 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { defineConfig, mergeConfig } from "vitest/config"; -import viteConfig from "../../../vitest.shared.config.ts"; +import { defineConfig } from "vitest/config"; +import { relativeRecordingsPath } from "@azure-tools/test-recorder"; -export default mergeConfig( - viteConfig, - defineConfig({ - test: { - hookTimeout: 5000000, - testTimeout: 5000000, +export default defineConfig({ + test: { + reporters: ["basic", "junit"], + outputFile: { + junit: "test-results.browser.xml", }, - }), -); + fakeTimers: { + toFake: ["setTimeout", "Date"], + }, + watch: false, + include: ["test/**/*.spec.ts"], + exclude: ["test/**/browser/*.spec.ts"], + coverage: { + include: ["src/**/*.ts"], + exclude: [ + "src/**/*-browser.mts", + "src/**/*-react-native.mts", + "vitest*.config.ts", + "samples-dev/**/*.ts", + ], + provider: "istanbul", + reporter: ["text", "json", "html"], + reportsDirectory: "coverage", + }, + testTimeout: 1200000, + hookTimeout: 1200000, + }, +}); diff --git a/sdk/eventgrid/eventgrid-system-events/vitest.esm.config.ts b/sdk/eventgrid/eventgrid-system-events/vitest.esm.config.ts deleted file mode 100644 index 2f6e757a54f7..000000000000 --- a/sdk/eventgrid/eventgrid-system-events/vitest.esm.config.ts +++ /dev/null @@ -1,11 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { mergeConfig } from "vitest/config"; -import vitestConfig from "./vitest.config.ts"; -import vitestEsmConfig from "../../../vitest.esm.shared.config.ts"; - -export default mergeConfig( - vitestConfig, - vitestEsmConfig -);