From bf42a1f1ae68283840e51eab1e734032ca29b65c Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 23 Apr 2025 23:02:42 +0000 Subject: [PATCH] CodeGen from PR 34182 in Azure/azure-rest-api-specs Merge fb3a55606bc5ba914b42abc54cd186048aac403b into d1023e29f6a57d5a48a79b9ae91d9672d1859aa2 --- common/config/rush/pnpm-lock.yaml | 13 +- sdk/eventgrid/ci.mgmt.yml | 8 +- .../eventgrid-systemevents/CHANGELOG.md | 60 +- sdk/eventgrid/eventgrid-systemevents/LICENSE | 2 +- .../eventgrid-systemevents/README.md | 53 +- .../eventgrid-systemevents/eslint.config.mjs | 14 + .../eventgrid-systemevents/package.json | 168 +- .../review/eventgrid-systemevents-api.api.md | 23 + .../eventgrid-systemevents-models.api.md | 2560 +++++++++++++++++ .../review/eventgrid-systemevents.api.md | 641 ++--- .../src/{generated => }/api/index.ts | 0 .../api/systemEventsContext.ts | 5 +- .../src/generated/api/options.ts | 2 - .../src/generated/index.ts | 328 --- .../eventgrid-systemevents/src/index.ts | 50 +- .../src/{generated => }/logger.ts | 0 .../eventgrid-systemevents/src/models.ts | 262 -- .../src/{generated => }/models/index.ts | 9 + .../src/{generated => }/models/models.ts | 1074 +++---- .../eventgrid-systemevents/src/predicates.ts | 618 ---- .../src/{generated => }/systemEventsClient.ts | 5 +- .../test/public/events.spec.ts | 21 - .../test/snippets.spec.ts | 11 - .../eventgrid-systemevents/tests.yml | 7 - .../eventgrid-systemevents/tsdoc.json | 4 - .../eventgrid-systemevents/tsp-location.yaml | 6 +- .../vitest.browser.config.ts | 5 +- .../eventgrid-systemevents/vitest.config.ts | 1 + .../vitest.esm.config.ts | 6 +- 29 files changed, 3522 insertions(+), 2434 deletions(-) create mode 100644 sdk/eventgrid/eventgrid-systemevents/eslint.config.mjs create mode 100644 sdk/eventgrid/eventgrid-systemevents/review/eventgrid-systemevents-api.api.md create mode 100644 sdk/eventgrid/eventgrid-systemevents/review/eventgrid-systemevents-models.api.md rename sdk/eventgrid/eventgrid-systemevents/src/{generated => }/api/index.ts (100%) rename sdk/eventgrid/eventgrid-systemevents/src/{generated => }/api/systemEventsContext.ts (89%) delete mode 100644 sdk/eventgrid/eventgrid-systemevents/src/generated/api/options.ts delete mode 100644 sdk/eventgrid/eventgrid-systemevents/src/generated/index.ts rename sdk/eventgrid/eventgrid-systemevents/src/{generated => }/logger.ts (100%) delete mode 100644 sdk/eventgrid/eventgrid-systemevents/src/models.ts rename sdk/eventgrid/eventgrid-systemevents/src/{generated => }/models/index.ts (96%) rename sdk/eventgrid/eventgrid-systemevents/src/{generated => }/models/models.ts (91%) delete mode 100644 sdk/eventgrid/eventgrid-systemevents/src/predicates.ts rename sdk/eventgrid/eventgrid-systemevents/src/{generated => }/systemEventsClient.ts (90%) delete mode 100644 sdk/eventgrid/eventgrid-systemevents/test/public/events.spec.ts delete mode 100644 sdk/eventgrid/eventgrid-systemevents/test/snippets.spec.ts delete mode 100644 sdk/eventgrid/eventgrid-systemevents/tests.yml delete mode 100644 sdk/eventgrid/eventgrid-systemevents/tsdoc.json diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 13a07f1315c8..6788dcebca5d 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -2649,7 +2649,7 @@ packages: version: 0.0.0 '@rush-temp/arm-datafactory@file:projects/arm-datafactory.tgz': - resolution: {integrity: sha512-HgJz2N5jNNuxb/8qZqKooHInHrwELAro6z3Q/Fp/nxbwMlV/Q/xfBqPcrSOtvfMwHjfFWen+zcWNdXQV/Q+XHA==, tarball: file:projects/arm-datafactory.tgz} + resolution: {integrity: sha512-+FbZqAqRiHtUnpbraqYZ1l8yva7qiMku9/ACtkVXVWmEbjB95Lo6PydfEWISN8Qlat1NW8AuEGq0mLvYWJXWsw==, tarball: file:projects/arm-datafactory.tgz} version: 0.0.0 '@rush-temp/arm-datalake-analytics@file:projects/arm-datalake-analytics.tgz': @@ -2749,7 +2749,7 @@ packages: version: 0.0.0 '@rush-temp/arm-elasticsan@file:projects/arm-elasticsan.tgz': - resolution: {integrity: sha512-AoYPz/q8zeMsOIvSc/WmeOqPeYRkd/XBT1CPrxDl68Up/EZzi1BOA/9QAcYsy9C6De6Nj2PUmPJ3w72bZ/fWOA==, tarball: file:projects/arm-elasticsan.tgz} + resolution: {integrity: sha512-n77j2ag9WwfN1dAmlNCAmOU9K/XoKdKnL9M1tzPumMp/StB2atph07AlWJ+NKnm5NQ7YLjeNnNoZOpSna8MNbg==, tarball: file:projects/arm-elasticsan.tgz} version: 0.0.0 '@rush-temp/arm-eventgrid@file:projects/arm-eventgrid.tgz': @@ -3297,7 +3297,7 @@ packages: version: 0.0.0 '@rush-temp/arm-storageactions@file:projects/arm-storageactions.tgz': - resolution: {integrity: sha512-pdQVLjMy8YvTf5IbFMnfQQLSpErK7uSYlQxojzF5D/WoBgG+QWvopDlvrEGXA1OvzxfyCPUWRVo4+s1XiTWTWA==, tarball: file:projects/arm-storageactions.tgz} + resolution: {integrity: sha512-j4ar8TKBDSjGd8Je6XzNCCf8NdFthVMM0uJ54tkeFaWgGr0cz1yOZmjQyr5YMnOgT0Gp9Ig2VwvLyG5bl05CbQ==, tarball: file:projects/arm-storageactions.tgz} version: 0.0.0 '@rush-temp/arm-storagecache@file:projects/arm-storagecache.tgz': @@ -3505,7 +3505,7 @@ packages: version: 0.0.0 '@rush-temp/core-rest-pipeline@file:projects/core-rest-pipeline.tgz': - resolution: {integrity: sha512-242BXDtIZnwH2MaP1G1xDcmb3DvPK7aPd+Yv67AWt/voOSjV+w9RHE2S7ptwTLGnT032CgQE/iH0ea6eVcF6gA==, tarball: file:projects/core-rest-pipeline.tgz} + resolution: {integrity: sha512-AuCkJRE2Jx9zn6Jh4FLfHPaYFept58JlTR4PWW/Y91xbmnwpC/PXhPEQHAYNvgRcVdPYzm8lQdUf/EYdPvx0fA==, tarball: file:projects/core-rest-pipeline.tgz} version: 0.0.0 '@rush-temp/core-sse@file:projects/core-sse.tgz': @@ -3565,7 +3565,7 @@ packages: version: 0.0.0 '@rush-temp/eventgrid-systemevents@file:projects/eventgrid-systemevents.tgz': - resolution: {integrity: sha512-sJCymGa6VWPdsiqpVXIwb0lWVvBXIr54H+f5FeDWogkYclW31Yem9h7u+1hz/lDChqgh3sQ6/cn8PWUamE1ozA==, tarball: file:projects/eventgrid-systemevents.tgz} + resolution: {integrity: sha512-e+0P9e5BPILyB8uitfXOUVOfe6zl7n6GQ/dH+/l4OT1fV8US8x5FlgYPQbEbo5qhuqrK8swcNlC5LdJfi/EGbg==, tarball: file:projects/eventgrid-systemevents.tgz} version: 0.0.0 '@rush-temp/eventgrid@file:projects/eventgrid.tgz': @@ -19075,8 +19075,6 @@ snapshots: '@vitest/browser': 3.1.2(playwright@1.52.0)(vite@6.3.2(@types/node@22.7.9)(tsx@4.19.3)(yaml@2.7.1))(vitest@3.1.2) '@vitest/coverage-istanbul': 3.1.2(vitest@3.1.2) eslint: 9.25.0 - http-proxy-agent: 7.0.2 - https-proxy-agent: 7.0.6 playwright: 1.52.0 tslib: 2.8.1 typescript: 5.8.3 @@ -19674,6 +19672,7 @@ snapshots: '@types/node': 18.19.86 '@vitest/browser': 3.1.2(playwright@1.52.0)(vite@6.3.2(@types/node@22.7.9)(tsx@4.19.3)(yaml@2.7.1))(vitest@3.1.2) '@vitest/coverage-istanbul': 3.1.2(vitest@3.1.2) + dotenv: 16.5.0 eslint: 9.25.0 playwright: 1.52.0 tslib: 2.8.1 diff --git a/sdk/eventgrid/ci.mgmt.yml b/sdk/eventgrid/ci.mgmt.yml index 36020810a58a..640e79d7311e 100644 --- a/sdk/eventgrid/ci.mgmt.yml +++ b/sdk/eventgrid/ci.mgmt.yml @@ -6,10 +6,13 @@ trigger: - main - release/* - hotfix/* + exclude: + - feature/v4 paths: include: - sdk/eventgrid/ci.mgmt.yml - sdk/eventgrid/arm-eventgrid + - sdk/eventgrid/eventgrid-systemevents pr: branches: include: @@ -23,6 +26,7 @@ pr: include: - sdk/eventgrid/ci.mgmt.yml - sdk/eventgrid/arm-eventgrid + - sdk/eventgrid/eventgrid-systemevents extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: @@ -31,4 +35,6 @@ extends: - name: azure-arm-eventgrid safeName: azurearmeventgrid triggeringPaths: - - /sdk/test-utils/ + - /sdk/test-utils/ + - name: azure-eventgrid-systemevents + safeName: azureeventgridsystemevents diff --git a/sdk/eventgrid/eventgrid-systemevents/CHANGELOG.md b/sdk/eventgrid/eventgrid-systemevents/CHANGELOG.md index 4e712c859522..e385996953f9 100644 --- a/sdk/eventgrid/eventgrid-systemevents/CHANGELOG.md +++ b/sdk/eventgrid/eventgrid-systemevents/CHANGELOG.md @@ -1,61 +1,7 @@ # Release History - -## 1.0.0-beta.7 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - -## 1.0.0-beta.6 (2025-02-20) - -### Features Added - -- Added `animated` property to `AcsMessageMediaContent` - -- Added the following properties to `AcsMessageReceivedEventData` - - `messageId` - - `messageType` - - `reaction` - -### Other Changes - -- Rename this package to `@azure/eventgrid-systemevents` - -## 1.0.0-beta.5 (2025-01-21) - -### Other Changes - -- Added `internetMessageId` property to `AcsEmailDeliveryReportReceivedEventData`. -- Added `recipientMailServerHostName` property to `AcsEmailDeliveryReportStatusDetails`. -- For `AcsSmsReceivedEventData`: - - Added `segmentCount` property -- Regenerated SDK with latest commit. - -## 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) + +## 1.0.0 (2025-04-23) ### Features Added -- Released System Events related to Eventgrid service. +The package of @azure/eventgrid-systemevents is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart). diff --git a/sdk/eventgrid/eventgrid-systemevents/LICENSE b/sdk/eventgrid/eventgrid-systemevents/LICENSE index b2f52a2bad4e..63447fd8bbbf 100644 --- a/sdk/eventgrid/eventgrid-systemevents/LICENSE +++ b/sdk/eventgrid/eventgrid-systemevents/LICENSE @@ -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-systemevents/README.md b/sdk/eventgrid/eventgrid-systemevents/README.md index af02ea68fe68..8c8aadd8360b 100644 --- a/sdk/eventgrid/eventgrid-systemevents/README.md +++ b/sdk/eventgrid/eventgrid-systemevents/README.md @@ -1,53 +1,46 @@ -# Azure Event Grid System Events client library for JavaScript +# Azure SystemEvents 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. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure SystemEvents client. + +Azure Messaging EventGrid SystemEvents Key links: -- [Source code](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/eventgrid/eventgrid-systemevents/) +- [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/eventgrid/eventgrid-systemevents) - [Package (NPM)](https://www.npmjs.com/package/@azure/eventgrid-systemevents) - -- [Product documentation](https://learn.microsoft.com/azure/event-grid/) +- [API reference documentation](https://learn.microsoft.com/javascript/api/@azure/eventgrid-systemevents?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. +- 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. ### 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: +### Install the `@azure/eventgrid-systemevents` package -#### Create an Event Grid Topic +Install the Azure SystemEvents client library for JavaScript with `npm`: ```bash -az eventgrid topic create --location --resource-group --name +npm install @azure/eventgrid-systemevents ``` -#### Create an Event Grid Domain - -```bash -az eventgrid domain create --location --resource-group --name -``` -### Install the `@azure/eventgrid-systemevents` package -Install the Azure Event Grid System Events client library for JavaScript with `npm`: - -```bash -npm install @azure/eventgrid-systemevents -``` +### JavaScript Bundle +To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling). ## Key concepts -This package provides a list of System Events that could be used to publish events to EventGrid. +### SystemEventsClient + +`SystemEventsClient` is the primary interface for developers using the Azure SystemEvents client library. Explore the methods on this client object to understand the different features of the Azure SystemEvents service that you can access. ## Troubleshooting @@ -55,13 +48,14 @@ This package provides a list of System Events that could be used to publish even Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`: -```ts snippet:SetLogLevel +```ts import { setLogLevel } from "@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). +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). + ## Contributing @@ -69,14 +63,9 @@ If you'd like to contribute to this library, please read the [contributing guide ## Related projects -- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - - +- [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js) -[azure_cli]: https://learn.microsoft.com/cli/azure [azure_sub]: https://azure.microsoft.com/free/ -[event_grid]: https://learn.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://learn.microsoft.com/azure/event-grid/kubernetes/ +[azure_identity]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity +[defaultazurecredential]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#defaultazurecredential diff --git a/sdk/eventgrid/eventgrid-systemevents/eslint.config.mjs b/sdk/eventgrid/eventgrid-systemevents/eslint.config.mjs new file mode 100644 index 000000000000..6d2f8a5914c3 --- /dev/null +++ b/sdk/eventgrid/eventgrid-systemevents/eslint.config.mjs @@ -0,0 +1,14 @@ +import azsdkEslint from "@azure/eslint-plugin-azure-sdk"; + +export default azsdkEslint.config([ + { + rules: { + "@azure/azure-sdk/ts-modules-only-named": "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-files-required": "off", + "@azure/azure-sdk/ts-package-json-main-is-cjs": "off", + "tsdoc/syntax": "warn", + }, + }, +]); diff --git a/sdk/eventgrid/eventgrid-systemevents/package.json b/sdk/eventgrid/eventgrid-systemevents/package.json index 725dda382c83..27a02975f150 100644 --- a/sdk/eventgrid/eventgrid-systemevents/package.json +++ b/sdk/eventgrid/eventgrid-systemevents/package.json @@ -1,63 +1,65 @@ { "name": "@azure/eventgrid-systemevents", - "sdk-type": "client", - "author": "Microsoft Corporation", - "description": "An isomorphic client library for the Azure Event Grid service.", - "version": "1.0.0-beta.7", + "version": "1.0.0", + "description": "A generated SDK for SystemEventsClient.", + "engines": { + "node": ">=18.0.0" + }, + "sideEffects": false, + "autoPublish": false, + "tshy": { + "exports": { + "./package.json": "./package.json", + ".": "./src/index.ts", + "./api": "./src/api/index.ts", + "./models": "./src/models/index.ts" + }, + "dialects": [ + "esm", + "commonjs" + ], + "esmDialects": [ + "browser", + "react-native" + ], + "selfLink": false, + "project": "./tsconfig.src.json" + }, + "type": "module", "keywords": [ "node", "azure", + "cloud", "typescript", "browser", - "isomorphic", - "cloud" + "isomorphic" ], + "author": "Microsoft Corporation", "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-systemevents/README.md", - "repository": "github:Azure/azure-sdk-for-js", - "bugs": { - "url": "https://github.com/Azure/azure-sdk-for-js/issues" - }, - "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:samples": "echo skipped.", - "build:test": "echo skipped.", - "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": "dev-tool run update-snippets" + "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-systemevents/README.md", + "prettier": "@azure/eslint-plugin-azure-sdk/prettier.json", + "//metadata": { + "constantPaths": [ + { + "path": "src/api/systemEventsContext.ts", + "prefix": "userAgentInfo" + } + ] }, - "sideEffects": false, - "autoPublish": false, "dependencies": { "@azure-rest/core-client": "^2.3.1", "@azure/core-auth": "^1.9.0", - "@azure/core-rest-pipeline": "^1.18.2", + "@azure/core-rest-pipeline": "^1.19.1", "@azure/core-util": "^1.11.0", "@azure/logger": "^1.1.4", "tslib": "^2.8.1" @@ -69,29 +71,37 @@ "@types/node": "^18.0.0", "@vitest/browser": "^3.0.9", "@vitest/coverage-istanbul": "^3.0.9", + "dotenv": "^16.0.0", "eslint": "^9.9.0", - "playwright": "^1.50.1", + "playwright": "^1.52.0", "typescript": "~5.8.2", "vitest": "^3.0.9" }, - "type": "module", - "tshy": { - "project": "./tsconfig.src.json", - "exports": { - "./package.json": "./package.json", - ".": "./src/index.ts" - }, - "dialects": [ - "esm", - "commonjs" - ], - "esmDialects": [ - "browser", - "react-native" - ], - "selfLink": false + "scripts": { + "build": "npm run clean && dev-tool run build-package && dev-tool run extract-api", + "build:samples": "echo skipped", + "build:test": "npm run clean && dev-tool run build-package && dev-tool run build-test", + "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}\" ", + "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", + "execute:samples": "echo skipped", + "extract-api": "dev-tool run vendored rimraf review && dev-tool run extract-api", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" ", + "generate:client": "echo skipped", + "integration-test:browser": "echo skipped", + "integration-test:node": "echo skipped", + "lint": "eslint package.json api-extractor.json src test", + "lint:fix": "eslint package.json api-extractor.json src test --fix --fix-type [problem,suggestion]", + "minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", + "pack": "npm pack 2>&1", + "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", + "test:browser": "npm run clean && npm run build:test && npm run unit-test:browser && npm run integration-test:browser", + "test:node": "npm run clean && dev-tool run build-package && npm run unit-test:node && npm run integration-test:node", + "unit-test:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser", + "unit-test:node": "dev-tool run test:vitest", + "update-snippets": "dev-tool run update-snippets" }, "browser": "./dist/browser/index.js", + "react-native": "./dist/react-native/index.js", "exports": { "./package.json": "./package.json", ".": { @@ -111,7 +121,45 @@ "types": "./dist/commonjs/index.d.ts", "default": "./dist/commonjs/index.js" } + }, + "./api": { + "browser": { + "types": "./dist/browser/api/index.d.ts", + "default": "./dist/browser/api/index.js" + }, + "react-native": { + "types": "./dist/react-native/api/index.d.ts", + "default": "./dist/react-native/api/index.js" + }, + "import": { + "types": "./dist/esm/api/index.d.ts", + "default": "./dist/esm/api/index.js" + }, + "require": { + "types": "./dist/commonjs/api/index.d.ts", + "default": "./dist/commonjs/api/index.js" + } + }, + "./models": { + "browser": { + "types": "./dist/browser/models/index.d.ts", + "default": "./dist/browser/models/index.js" + }, + "react-native": { + "types": "./dist/react-native/models/index.d.ts", + "default": "./dist/react-native/models/index.js" + }, + "import": { + "types": "./dist/esm/models/index.d.ts", + "default": "./dist/esm/models/index.js" + }, + "require": { + "types": "./dist/commonjs/models/index.d.ts", + "default": "./dist/commonjs/models/index.js" + } } }, - "react-native": "./dist/react-native/index.js" + "main": "./dist/commonjs/index.js", + "types": "./dist/commonjs/index.d.ts", + "module": "./dist/esm/index.js" } diff --git a/sdk/eventgrid/eventgrid-systemevents/review/eventgrid-systemevents-api.api.md b/sdk/eventgrid/eventgrid-systemevents/review/eventgrid-systemevents-api.api.md new file mode 100644 index 000000000000..ec3aa23c7f65 --- /dev/null +++ b/sdk/eventgrid/eventgrid-systemevents/review/eventgrid-systemevents-api.api.md @@ -0,0 +1,23 @@ +## API Report File for "@azure/eventgrid-systemevents" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +```ts + +import { Client } from '@azure-rest/core-client'; +import { ClientOptions } from '@azure-rest/core-client'; + +// @public +export function createSystemEvents(endpointParam: string, options?: SystemEventsClientOptionalParams): SystemEventsContext; + +// @public +export interface SystemEventsClientOptionalParams extends ClientOptions { +} + +// @public +export interface SystemEventsContext extends Client { +} + +// (No @packageDocumentation comment for this package) + +``` diff --git a/sdk/eventgrid/eventgrid-systemevents/review/eventgrid-systemevents-models.api.md b/sdk/eventgrid/eventgrid-systemevents/review/eventgrid-systemevents-models.api.md new file mode 100644 index 000000000000..fce9d23514e2 --- /dev/null +++ b/sdk/eventgrid/eventgrid-systemevents/review/eventgrid-systemevents-models.api.md @@ -0,0 +1,2560 @@ +## API Report File for "@azure/eventgrid-systemevents" + +> 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; + readonly participants: AcsChatThreadParticipant[]; + properties: Record; +} + +// @public +export interface AcsChatThreadCreatedWithUserEventData extends AcsChatThreadEventBase { + createdByCommunicationIdentifier: CommunicationIdentifierModel; + metadata: Record; + readonly 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; + internetMessageId: string; + messageId?: string; + recipient: string; + sender: string; + status: AcsEmailDeliveryReportStatus; +} + +// @public +export type AcsEmailDeliveryReportStatus = string; + +// @public +export interface AcsEmailDeliveryReportStatusDetails { + recipientMailServerHostName?: string; + 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; + onBehalfOfCallee?: CommunicationIdentifierModel; + 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 { + animated?: boolean; + caption?: string; + fileName?: string; + mediaId: string; + mimeType: string; +} + +// @public +export interface AcsMessageReactionContent { + emoji?: string; + messageId: string; +} + +// @public +export interface AcsMessageReceivedEventData extends AcsMessageEventData { + button?: AcsMessageButtonContent; + channelKind: AcsMessageChannelKind; + content?: string; + context?: AcsMessageContext; + interactiveContent?: AcsMessageInteractiveContent; + mediaContent?: AcsMessageMediaContent; + messageId?: string; + messageType: string; + reaction?: AcsMessageReactionContent; +} + +// @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 { + readonly recordingChunks: AcsRecordingChunkInfo[]; +} + +// @public +export interface AcsRouterChannelConfiguration { + capacityCostPerJob?: number; + channelId?: string; + maxNumberOfJobs?: number; +} + +// @public +export interface AcsRouterCommunicationError { + code?: string; + readonly errors: 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; + readonly errors: AcsRouterCommunicationError[]; +} + +// @public +export interface AcsRouterJobClassifiedEventData extends AcsRouterJobEventData { + readonly 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 { + readonly attachedWorkerSelectors: AcsRouterWorkerSelector[]; + priority?: number; + readonly requestedWorkerSelectors: AcsRouterWorkerSelector[]; +} + +// @public +export interface AcsRouterJobReceivedEventData extends AcsRouterJobEventData { + classificationPolicyId?: string; + jobStatus: AcsRouterJobStatus; + priority?: number; + readonly requestedWorkerSelectors: AcsRouterWorkerSelector[]; + scheduledOn: Date; + unavailableForMatching: boolean; +} + +// @public +export interface AcsRouterJobSchedulingFailedEventData extends AcsRouterJobEventData { + readonly expiredAttachedWorkerSelectors: AcsRouterWorkerSelector[]; + readonly 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 { + readonly expiredAttachedWorkerSelectors: AcsRouterWorkerSelector[]; + readonly expiredRequestedWorkerSelectors: AcsRouterWorkerSelector[]; + priority?: number; + scheduledOn: Date; + unavailableForMatching: boolean; +} + +// @public +export interface AcsRouterJobWorkerSelectorsExpiredEventData extends AcsRouterJobEventData { + readonly expiredAttachedWorkerSelectors: AcsRouterWorkerSelector[]; + readonly 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 { + readonly channelConfigurations: AcsRouterChannelConfiguration[]; + labels: Record; + readonly 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 { + readonly channelConfigurations: AcsRouterChannelConfiguration[]; + labels: Record; + readonly queueAssignments: AcsRouterQueueDetails[]; + tags: Record; + totalCapacity?: number; + readonly updatedWorkerProperties: AcsRouterUpdatedWorkerProperty[]; + workerId?: string; +} + +// @public +export interface AcsSmsDeliveryAttempt { + segmentsFailed?: number; + segmentsSucceeded?: number; + timestamp: Date; +} + +// @public +export interface AcsSmsDeliveryReportReceivedEventData extends AcsSmsEventBase { + readonly 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; + segmentCount: number; +} + +// @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 ApiManagementCircuitBreakerClosedEventData { + backendName: string; + circuitBreaker: ApiManagementCircuitBreakerProperties; +} + +// @public +export interface ApiManagementCircuitBreakerOpenedEventData { + backendName: string; + circuitBreaker: ApiManagementCircuitBreakerProperties; +} + +// @public +export interface ApiManagementCircuitBreakerProperties { + rules: Record>; +} + +// @public +export interface ApiManagementExpiredGatewayTokenProperties { + expiredAtUtc: Date; +} + +// @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 ApiManagementGatewayProperties { + gatewayId: string; + instanceId: string; +} + +// @public +export interface ApiManagementGatewayTokenExpiredEventData { + gatewayInfo: ApiManagementGatewayProperties; + tokenInfo: ApiManagementExpiredGatewayTokenProperties; +} + +// @public +export interface ApiManagementGatewayTokenNearExpiryEventData { + gatewayInfo: ApiManagementGatewayProperties; + tokenInfo: ApiManagementNearExpiryGatewayTokenProperties; +} + +// @public +export interface ApiManagementGatewayUpdatedEventData { + resourceUri?: string; +} + +// @public +export interface ApiManagementNearExpiryGatewayTokenProperties { + expiredAtUtc: Date; +} + +// @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 | null; + 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 { + readonly addedHostNames?: string[]; + readonly inMaintenanceHostNames?: string[]; + operationId: string; + readonly 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; + readonly 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 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 EdgeSolutionVersionPublishedEventData { + apiVersion: string; + callbackUrl: string; + externalValidationId: string; + solutionTemplateId: string; + solutionTemplateVersionId: string; + solutionVersionId: string; + targetId: 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 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 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 KnownServiceApiVersions { + // (undocumented) + V20180101 = "2018-01-01", + // (undocumented) + V20240101 = "2024-01-01" +} + +// @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 KnownStorageLifecycleCompletionStatus { + Completed = "Completed", + CompletedWithError = "CompletedWithError", + Incomplete = "Incomplete" +} + +// @public +export enum KnownStorageTaskAssignmentCompletedStatus { + Failed = "Failed", + Succeeded = "Succeeded" +} + +// @public +export enum KnownStorageTaskCompletedStatus { + Failed = "Failed", + Succeeded = "Succeeded" +} + +// @public +export interface MachineLearningServicesDatasetDriftDetectedEventData { + baseDatasetId: string; + dataDriftId: string; + dataDriftName: string; + driftCoefficient: number; + endTime: Date | null; + runId: string; + startTime: Date | null; + 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 { + readonly expiredGeofenceGeometryId: string[]; + readonly geometries: MapsGeofenceGeometry[]; + readonly 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 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 ResourceNotificationsContainerServiceEventResourcesScheduledEventData extends ResourceNotificationsResourceUpdatedEventData { +} + +// @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 interface ServiceBusActiveMessagesAvailablePeriodicNotificationsEventData { + entityType: string; + namespaceName: string; + queueName: string | null; + requestUri: string; + subscriptionName: string | null; + topicName: string | null; +} + +// @public +export interface ServiceBusActiveMessagesAvailableWithNoListenersEventData { + entityType: string; + namespaceName: string; + queueName: string | null; + requestUri: string; + subscriptionName: string | null; + topicName: string | null; +} + +// @public +export interface ServiceBusDeadletterMessagesAvailablePeriodicNotificationsEventData { + entityType: string; + namespaceName: string; + queueName: string | null; + requestUri: string; + subscriptionName: string | null; + topicName: string | null; +} + +// @public +export interface ServiceBusDeadletterMessagesAvailableWithNoListenersEventData { + entityType: string; + namespaceName: string; + queueName: string | null; + requestUri: string; + subscriptionName: string | null; + topicName: string | null; +} + +// @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 type StorageLifecycleCompletionStatus = string; + +// @public +export interface StorageLifecyclePolicyActionSummaryDetail { + errorList?: string; + successCount?: number; + totalObjectsCount?: number; +} + +// @public +export interface StorageLifecyclePolicyCompletedEventData { + deleteSummary: StorageLifecyclePolicyActionSummaryDetail; + policyRunSummary: StorageLifecyclePolicyRunSummary; + scheduleTime?: string; + tierToArchiveSummary: StorageLifecyclePolicyActionSummaryDetail; + tierToColdSummary: StorageLifecyclePolicyActionSummaryDetail; + tierToCoolSummary: StorageLifecyclePolicyActionSummaryDetail; +} + +// @public +export interface StorageLifecyclePolicyRunSummary { + completionStatus: StorageLifecycleCompletionStatus; +} + +// @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 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-systemevents/review/eventgrid-systemevents.api.md b/sdk/eventgrid/eventgrid-systemevents/review/eventgrid-systemevents.api.md index aad9e10b6c40..24063b6853eb 100644 --- a/sdk/eventgrid/eventgrid-systemevents/review/eventgrid-systemevents.api.md +++ b/sdk/eventgrid/eventgrid-systemevents/review/eventgrid-systemevents.api.md @@ -4,6 +4,9 @@ ```ts +import { ClientOptions } from '@azure-rest/core-client'; +import { Pipeline } from '@azure/core-rest-pipeline'; + // @public export interface AcsChatEventBase { recipientCommunicationIdentifier: CommunicationIdentifierModel; @@ -107,7 +110,7 @@ export interface AcsChatParticipantRemovedFromThreadWithUserEventData extends Ac export interface AcsChatThreadCreatedEventData extends AcsChatThreadEventInThreadBase { createdByCommunicationIdentifier: CommunicationIdentifierModel; metadata: Record; - participants: AcsChatThreadParticipant[]; + readonly participants: AcsChatThreadParticipant[]; properties: Record; } @@ -115,7 +118,7 @@ export interface AcsChatThreadCreatedEventData extends AcsChatThreadEventInThrea export interface AcsChatThreadCreatedWithUserEventData extends AcsChatThreadEventBase { createdByCommunicationIdentifier: CommunicationIdentifierModel; metadata: Record; - participants: AcsChatThreadParticipant[]; + readonly participants: AcsChatThreadParticipant[]; properties: Record; } @@ -328,7 +331,7 @@ export interface AcsRecordingFileStatusUpdatedEventData { // @public export interface AcsRecordingStorageInfo { - recordingChunks: AcsRecordingChunkInfo[]; + readonly recordingChunks: AcsRecordingChunkInfo[]; } // @public @@ -341,7 +344,7 @@ export interface AcsRouterChannelConfiguration { // @public export interface AcsRouterCommunicationError { code?: string; - details: AcsRouterCommunicationError[]; + readonly errors: AcsRouterCommunicationError[]; innererror: AcsRouterCommunicationError; message?: string; target?: string; @@ -363,12 +366,12 @@ export interface AcsRouterJobCancelledEventData extends AcsRouterJobEventData { // @public export interface AcsRouterJobClassificationFailedEventData extends AcsRouterJobEventData { classificationPolicyId?: string; - errors: AcsRouterCommunicationError[]; + readonly errors: AcsRouterCommunicationError[]; } // @public export interface AcsRouterJobClassifiedEventData extends AcsRouterJobEventData { - attachedWorkerSelectors: AcsRouterWorkerSelector[]; + readonly attachedWorkerSelectors: AcsRouterWorkerSelector[]; classificationPolicyId?: string; priority?: number; queueDetails: AcsRouterQueueDetails; @@ -406,9 +409,9 @@ export interface AcsRouterJobExceptionTriggeredEventData extends AcsRouterJobEve // @public export interface AcsRouterJobQueuedEventData extends AcsRouterJobEventData { - attachedWorkerSelectors: AcsRouterWorkerSelector[]; + readonly attachedWorkerSelectors: AcsRouterWorkerSelector[]; priority?: number; - requestedWorkerSelectors: AcsRouterWorkerSelector[]; + readonly requestedWorkerSelectors: AcsRouterWorkerSelector[]; } // @public @@ -416,15 +419,15 @@ export interface AcsRouterJobReceivedEventData extends AcsRouterJobEventData { classificationPolicyId?: string; jobStatus: AcsRouterJobStatus; priority?: number; - requestedWorkerSelectors: AcsRouterWorkerSelector[]; + readonly requestedWorkerSelectors: AcsRouterWorkerSelector[]; scheduledOn: Date; unavailableForMatching: boolean; } // @public export interface AcsRouterJobSchedulingFailedEventData extends AcsRouterJobEventData { - expiredAttachedWorkerSelectors: AcsRouterWorkerSelector[]; - expiredRequestedWorkerSelectors: AcsRouterWorkerSelector[]; + readonly expiredAttachedWorkerSelectors: AcsRouterWorkerSelector[]; + readonly expiredRequestedWorkerSelectors: AcsRouterWorkerSelector[]; failureReason?: string; priority?: number; scheduledOn: Date; @@ -441,8 +444,8 @@ export interface AcsRouterJobUnassignedEventData extends AcsRouterJobEventData { // @public export interface AcsRouterJobWaitingForActivationEventData extends AcsRouterJobEventData { - expiredAttachedWorkerSelectors: AcsRouterWorkerSelector[]; - expiredRequestedWorkerSelectors: AcsRouterWorkerSelector[]; + readonly expiredAttachedWorkerSelectors: AcsRouterWorkerSelector[]; + readonly expiredRequestedWorkerSelectors: AcsRouterWorkerSelector[]; priority?: number; scheduledOn: Date; unavailableForMatching: boolean; @@ -450,8 +453,8 @@ export interface AcsRouterJobWaitingForActivationEventData extends AcsRouterJobE // @public export interface AcsRouterJobWorkerSelectorsExpiredEventData extends AcsRouterJobEventData { - expiredAttachedWorkerSelectors: AcsRouterWorkerSelector[]; - expiredRequestedWorkerSelectors: AcsRouterWorkerSelector[]; + readonly expiredAttachedWorkerSelectors: AcsRouterWorkerSelector[]; + readonly expiredRequestedWorkerSelectors: AcsRouterWorkerSelector[]; } // @public @@ -526,9 +529,9 @@ export interface AcsRouterWorkerOfferRevokedEventData extends AcsRouterWorkerEve // @public export interface AcsRouterWorkerRegisteredEventData { - channelConfigurations: AcsRouterChannelConfiguration[]; + readonly channelConfigurations: AcsRouterChannelConfiguration[]; labels: Record; - queueAssignments: AcsRouterQueueDetails[]; + readonly queueAssignments: AcsRouterQueueDetails[]; tags: Record; totalCapacity?: number; workerId?: string; @@ -549,12 +552,12 @@ export type AcsRouterWorkerSelectorState = string; // @public export interface AcsRouterWorkerUpdatedEventData { - channelConfigurations: AcsRouterChannelConfiguration[]; + readonly channelConfigurations: AcsRouterChannelConfiguration[]; labels: Record; - queueAssignments: AcsRouterQueueDetails[]; + readonly queueAssignments: AcsRouterQueueDetails[]; tags: Record; totalCapacity?: number; - updatedWorkerProperties: AcsRouterUpdatedWorkerProperty[]; + readonly updatedWorkerProperties: AcsRouterUpdatedWorkerProperty[]; workerId?: string; } @@ -567,7 +570,7 @@ export interface AcsSmsDeliveryAttempt { // @public export interface AcsSmsDeliveryReportReceivedEventData extends AcsSmsEventBase { - deliveryAttempts: AcsSmsDeliveryAttempt[]; + readonly deliveryAttempts: AcsSmsDeliveryAttempt[]; deliveryStatus?: string; deliveryStatusDetails?: string; receivedTimestamp: Date; @@ -646,6 +649,28 @@ export interface ApiManagementApiUpdatedEventData { resourceUri?: string; } +// @public +export interface ApiManagementCircuitBreakerClosedEventData { + backendName: string; + circuitBreaker: ApiManagementCircuitBreakerProperties; +} + +// @public +export interface ApiManagementCircuitBreakerOpenedEventData { + backendName: string; + circuitBreaker: ApiManagementCircuitBreakerProperties; +} + +// @public +export interface ApiManagementCircuitBreakerProperties { + rules: Record>; +} + +// @public +export interface ApiManagementExpiredGatewayTokenProperties { + expiredAtUtc: Date; +} + // @public export interface ApiManagementGatewayApiAddedEventData { resourceUri?: string; @@ -696,11 +721,34 @@ export interface ApiManagementGatewayHostnameConfigurationUpdatedEventData { resourceUri?: string; } +// @public +export interface ApiManagementGatewayProperties { + gatewayId: string; + instanceId: string; +} + +// @public +export interface ApiManagementGatewayTokenExpiredEventData { + gatewayInfo: ApiManagementGatewayProperties; + tokenInfo: ApiManagementExpiredGatewayTokenProperties; +} + +// @public +export interface ApiManagementGatewayTokenNearExpiryEventData { + gatewayInfo: ApiManagementGatewayProperties; + tokenInfo: ApiManagementNearExpiryGatewayTokenProperties; +} + // @public export interface ApiManagementGatewayUpdatedEventData { resourceUri?: string; } +// @public +export interface ApiManagementNearExpiryGatewayTokenProperties { + expiredAtUtc: Date; +} + // @public export interface ApiManagementProductCreatedEventData { resourceUri?: string; @@ -751,18 +799,18 @@ export type AppAction = string; // @public export interface AppConfigurationKeyValueDeletedEventData { - etag?: string; - key?: string; - label?: string; - syncToken?: string; + etag: string; + key: string; + label: string; + syncToken: string; } // @public export interface AppConfigurationKeyValueModifiedEventData { - etag?: string; - key?: string; - label?: string; - syncToken?: string; + etag: string; + key: string; + label: string | null; + syncToken: string; } // @public @@ -771,9 +819,9 @@ export interface AppConfigurationSnapshotCreatedEventData extends AppConfigurati // @public export interface AppConfigurationSnapshotEventData { - etag?: string; - name?: string; - syncToken?: string; + etag: string; + name: string; + syncToken: string; } // @public @@ -808,10 +856,10 @@ export interface AvsClusterDeletedEventData extends AvsClusterEventData { // @public export interface AvsClusterEventData { - addedHostNames?: string[]; - inMaintenanceHostNames?: string[]; + readonly addedHostNames?: string[]; + readonly inMaintenanceHostNames?: string[]; operationId: string; - removedHostNames?: string[]; + readonly removedHostNames?: string[]; } // @public @@ -853,7 +901,7 @@ export interface AvsScriptExecutionCancelledEventData extends AvsScriptExecution export interface AvsScriptExecutionEventData { cmdletId: string; operationId: string; - output?: string[]; + readonly output?: string[]; } // @public @@ -870,20 +918,6 @@ export interface AvsScriptExecutionFinishedEventData extends AvsScriptExecutionE 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; @@ -1001,20 +1035,20 @@ export interface ContainerServiceClusterSupportEndingEventData extends Container // @public export interface ContainerServiceClusterSupportEventData { - kubernetesVersion?: string; + kubernetesVersion: string; } // @public export interface ContainerServiceNewKubernetesVersionAvailableEventData { latestPreviewKubernetesVersion?: string; - latestStableKubernetesVersion?: string; - latestSupportedKubernetesVersion?: string; - lowestMinorKubernetesVersion?: string; + latestStableKubernetesVersion: string; + latestSupportedKubernetesVersion: string; + lowestMinorKubernetesVersion: string; } // @public export interface ContainerServiceNodePoolRollingEventData { - nodePoolName?: string; + nodePoolName: string; } // @public @@ -1119,14 +1153,14 @@ export interface DeviceTwinMetadata { } // @public -export interface EventGridEvent { - data: T; - dataVersion: string; - eventTime: Date; - eventType: string; - id: string; - subject: string; - topic?: string; +export interface EdgeSolutionVersionPublishedEventData { + apiVersion: string; + callbackUrl: string; + externalValidationId: string; + solutionTemplateId: string; + solutionTemplateVersionId: string; + solutionVersionId: string; + targetId: string; } // @public @@ -1169,15 +1203,15 @@ export type EventGridMqttClientState = string; // @public export interface EventHubCaptureFileCreatedEventData { - eventCount?: number; - fileType?: string; - fileUrl?: string; + eventCount: number; + fileType: string; + fileUrl: string; firstEnqueueTime: Date; - firstSequenceNumber?: number; + firstSequenceNumber: number; lastEnqueueTime: Date; - lastSequenceNumber?: number; - partitionId?: string; - sizeInBytes?: number; + lastSequenceNumber: number; + partitionId: string; + sizeInBytes: number; } // @public @@ -1257,120 +1291,114 @@ export interface IotHubDeviceDisconnectedEventData extends DeviceConnectionState 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + exp: number; + id: string; + nbf: number; + objectName: string; + objectType: string; + vaultName: string; + version: string; } // @public @@ -1385,24 +1413,24 @@ export enum KnownAcsEmailDeliveryReportStatus { // @public export enum KnownAcsInteractiveReplyKind { - buttonReply = "buttonReply", - listReply = "listReply", - unknown = "unknown" + ButtonReply = "buttonReply", + ListReply = "listReply", + Unknown = "unknown" } // @public export enum KnownAcsMessageChannelKind { - whatsapp = "whatsapp" + Whatsapp = "whatsapp" } // @public export enum KnownAcsMessageDeliveryStatus { - delivered = "delivered", - failed = "failed", - read = "read", - sent = "sent", - unknown = "unknown", - warning = "warning" + Delivered = "delivered", + Failed = "failed", + Read = "read", + Sent = "sent", + Unknown = "unknown", + Warning = "warning" } // @public @@ -1449,8 +1477,8 @@ export enum KnownAcsRouterWorkerSelectorState { // @public export enum KnownAcsUserEngagement { - click = "click", - view = "view" + Click = "click", + View = "view" } // @public @@ -1477,17 +1505,17 @@ export enum KnownAsyncStatus { // @public export enum KnownCommunicationCloudEnvironmentModel { - dod = "dod", - gcch = "gcch", - "public" = "public" + Dod = "dod", + Gcch = "gcch", + Public = "public" } // @public export enum KnownCommunicationIdentifierModelKind { - communicationUser = "communicationUser", - microsoftTeamsUser = "microsoftTeamsUser", - phoneNumber = "phoneNumber", - unknown = "unknown" + CommunicationUser = "communicationUser", + MicrosoftTeamsUser = "microsoftTeamsUser", + PhoneNumber = "phoneNumber", + Unknown = "unknown" } // @public @@ -1705,9 +1733,9 @@ export enum KnownRecordingFormatType { // @public export enum KnownServiceApiVersions { // (undocumented) - v2018_01_01 = "2018-01-01", + V20180101 = "2018-01-01", // (undocumented) - v2024_01_01 = "2024-01-01" + V20240101 = "2024-01-01" } // @public @@ -1726,6 +1754,13 @@ export enum KnownStorageBlobAccessTier { Hot = "Hot" } +// @public +export enum KnownStorageLifecycleCompletionStatus { + Completed = "Completed", + CompletedWithError = "CompletedWithError", + Incomplete = "Incomplete" +} + // @public export enum KnownStorageTaskAssignmentCompletedStatus { Failed = "Failed", @@ -1738,57 +1773,54 @@ export enum KnownStorageTaskCompletedStatus { 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; + baseDatasetId: string; + dataDriftId: string; + dataDriftName: string; + driftCoefficient: number; + endTime: Date | null; + runId: string; + startTime: Date | null; + targetDatasetId: string; } // @public export interface MachineLearningServicesModelDeployedEventData { - modelIds?: string; - serviceComputeType?: string; - serviceName?: string; - serviceProperties: Record; - serviceTags: Record; + modelIds: string; + serviceComputeType: string; + serviceName: string; + serviceProperties?: Record; + serviceTags?: Record; } // @public export interface MachineLearningServicesModelRegisteredEventData { - modelName?: string; - modelProperties: Record; - modelTags: Record; - modelVersion?: string; + modelName: string; + modelProperties?: Record; + modelTags?: Record; + modelVersion: string; } // @public export interface MachineLearningServicesRunCompletedEventData { - experimentId?: string; - experimentName?: string; - runId?: string; - runProperties: Record; - runTags: Record; - runType?: string; + 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; + experimentId: string; + experimentName: string; + runId: string; + runProperties?: Record; + runStatus: string; + runTags?: Record; + runType: string; } // @public @@ -1797,9 +1829,9 @@ export interface MapsGeofenceEnteredEventData extends MapsGeofenceEvent { // @public export interface MapsGeofenceEvent { - expiredGeofenceGeometryId: string[]; - geometries: MapsGeofenceGeometry[]; - invalidPeriodGeofenceGeometryId: string[]; + readonly expiredGeofenceGeometryId: string[]; + readonly geometries: MapsGeofenceGeometry[]; + readonly invalidPeriodGeofenceGeometryId: string[]; isEventPublished: boolean; } @@ -2014,6 +2046,10 @@ export interface ResourceHttpRequest { url?: string; } +// @public +export interface ResourceNotificationsContainerServiceEventResourcesScheduledEventData extends ResourceNotificationsResourceUpdatedEventData { +} + // @public export interface ResourceNotificationsHealthResourcesAnnotatedEventData extends ResourceNotificationsResourceUpdatedEventData { } @@ -2292,6 +2328,9 @@ export interface StorageDirectoryRenamedEventData { storageDiagnostics: Record; } +// @public +export type StorageLifecycleCompletionStatus = string; + // @public export interface StorageLifecyclePolicyActionSummaryDetail { errorList?: string; @@ -2302,7 +2341,6 @@ export interface StorageLifecyclePolicyActionSummaryDetail { // @public export interface StorageLifecyclePolicyCompletedEventData { deleteSummary: StorageLifecyclePolicyActionSummaryDetail; - // Warning: (ae-forgotten-export) The symbol "StorageLifecyclePolicyRunSummary" needs to be exported by the entry point index.d.ts policyRunSummary: StorageLifecyclePolicyRunSummary; scheduleTime?: string; tierToArchiveSummary: StorageLifecyclePolicyActionSummaryDetail; @@ -2310,6 +2348,11 @@ export interface StorageLifecyclePolicyCompletedEventData { tierToCoolSummary: StorageLifecyclePolicyActionSummaryDetail; } +// @public +export interface StorageLifecyclePolicyRunSummary { + completionStatus: StorageLifecycleCompletionStatus; +} + // @public export interface StorageTaskAssignmentCompletedEventData { completedOn: Date; @@ -2362,190 +2405,14 @@ export interface SubscriptionValidationResponse { validationResponse: string; } +// @public (undocumented) +export class SystemEventsClient { + constructor(endpointParam: string, options?: SystemEventsClientOptionalParams); + readonly pipeline: Pipeline; +} + // @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.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; +export interface SystemEventsClientOptionalParams extends ClientOptions { } // @public diff --git a/sdk/eventgrid/eventgrid-systemevents/src/generated/api/index.ts b/sdk/eventgrid/eventgrid-systemevents/src/api/index.ts similarity index 100% rename from sdk/eventgrid/eventgrid-systemevents/src/generated/api/index.ts rename to sdk/eventgrid/eventgrid-systemevents/src/api/index.ts diff --git a/sdk/eventgrid/eventgrid-systemevents/src/generated/api/systemEventsContext.ts b/sdk/eventgrid/eventgrid-systemevents/src/api/systemEventsContext.ts similarity index 89% rename from sdk/eventgrid/eventgrid-systemevents/src/generated/api/systemEventsContext.ts rename to sdk/eventgrid/eventgrid-systemevents/src/api/systemEventsContext.ts index df8d188b5efa..a15b79ef7d60 100644 --- a/sdk/eventgrid/eventgrid-systemevents/src/generated/api/systemEventsContext.ts +++ b/sdk/eventgrid/eventgrid-systemevents/src/api/systemEventsContext.ts @@ -15,10 +15,9 @@ export function createSystemEvents( endpointParam: string, options: SystemEventsClientOptionalParams = {}, ): SystemEventsContext { - const endpointUrl = - options.endpoint ?? options.baseUrl ?? String(endpointParam); + const endpointUrl = options.endpoint ?? options.baseUrl ?? String(endpointParam); const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix; - const userAgentInfo = `azsdk-js-eventgrid-systemevents/1.0.0-beta.1`; + const userAgentInfo = `azsdk-js-eventgrid-systemevents/1.0.0`; const userAgentPrefix = prefixFromOptions ? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}` : `azsdk-js-api ${userAgentInfo}`; diff --git a/sdk/eventgrid/eventgrid-systemevents/src/generated/api/options.ts b/sdk/eventgrid/eventgrid-systemevents/src/generated/api/options.ts deleted file mode 100644 index fc36ab244fad..000000000000 --- a/sdk/eventgrid/eventgrid-systemevents/src/generated/api/options.ts +++ /dev/null @@ -1,2 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. diff --git a/sdk/eventgrid/eventgrid-systemevents/src/generated/index.ts b/sdk/eventgrid/eventgrid-systemevents/src/generated/index.ts deleted file mode 100644 index 67770ba1b7d5..000000000000 --- a/sdk/eventgrid/eventgrid-systemevents/src/generated/index.ts +++ /dev/null @@ -1,328 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -export { SystemEventsClient } from "./systemEventsClient.js"; -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, - AcsMessageReactionContent, - 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, - 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, - StorageLifecyclePolicyRunSummary, - KnownStorageLifecycleCompletionStatus, - StorageLifecycleCompletionStatus, - 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, - ResourceNotificationsResourceDeletedDetails, - ResourceNotificationsResourceDeletedEventData, - ResourceNotificationsResourceManagementCreatedOrUpdatedEventData, - ResourceNotificationsResourceManagementDeletedEventData, - ResourceNotificationsContainerServiceEventResourcesScheduledEventData, - KnownServiceApiVersions, -} from "./models/index.js"; -export { SystemEventsClientOptionalParams } from "./api/index.js"; diff --git a/sdk/eventgrid/eventgrid-systemevents/src/index.ts b/sdk/eventgrid/eventgrid-systemevents/src/index.ts index 8681827dde45..5c59c0db59cc 100644 --- a/sdk/eventgrid/eventgrid-systemevents/src/index.ts +++ b/sdk/eventgrid/eventgrid-systemevents/src/index.ts @@ -1,6 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. +export { SystemEventsClient } from "./systemEventsClient.js"; export { ApiCenterApiDefinitionAddedEventData, ApiCenterApiSpecification, @@ -31,6 +32,14 @@ export { ApiManagementGatewayCertificateAuthorityDeletedEventData, ApiManagementGatewayApiAddedEventData, ApiManagementGatewayApiRemovedEventData, + ApiManagementCircuitBreakerOpenedEventData, + ApiManagementCircuitBreakerProperties, + ApiManagementCircuitBreakerClosedEventData, + ApiManagementGatewayTokenNearExpiryEventData, + ApiManagementGatewayProperties, + ApiManagementNearExpiryGatewayTokenProperties, + ApiManagementGatewayTokenExpiredEventData, + ApiManagementExpiredGatewayTokenProperties, AppConfigurationKeyValueModifiedEventData, AppConfigurationKeyValueDeletedEventData, AppConfigurationSnapshotEventData, @@ -152,10 +161,10 @@ export { AcsMessageChannelKind, AcsMessageReceivedEventData, AcsMessageMediaContent, + AcsMessageReactionContent, AcsMessageContext, AcsMessageButtonContent, AcsMessageInteractiveContent, - AcsMessageReactionContent, KnownAcsInteractiveReplyKind, AcsInteractiveReplyKind, AcsMessageInteractiveButtonReplyContent, @@ -185,6 +194,7 @@ export { DataBoxStageName, DataBoxCopyCompletedEventData, DataBoxOrderCompletedEventData, + EdgeSolutionVersionPublishedEventData, EventHubCaptureFileCreatedEventData, MapsGeofenceEvent, MapsGeofenceGeometry, @@ -213,6 +223,16 @@ export { HealthcareDicomImageCreatedEventData, HealthcareDicomImageDeletedEventData, HealthcareDicomImageUpdatedEventData, + KeyVaultCertificateNewVersionCreatedEventData, + KeyVaultCertificateNearExpiryEventData, + KeyVaultCertificateExpiredEventData, + KeyVaultKeyNewVersionCreatedEventData, + KeyVaultKeyNearExpiryEventData, + KeyVaultKeyExpiredEventData, + KeyVaultSecretNewVersionCreatedEventData, + KeyVaultSecretNearExpiryEventData, + KeyVaultSecretExpiredEventData, + KeyVaultAccessPolicyChangedEventData, MachineLearningServicesModelRegisteredEventData, MachineLearningServicesModelDeployedEventData, MachineLearningServicesRunCompletedEventData, @@ -251,6 +271,9 @@ export { StorageBlobRenamedEventData, StorageDirectoryRenamedEventData, StorageLifecyclePolicyCompletedEventData, + StorageLifecyclePolicyRunSummary, + KnownStorageLifecycleCompletionStatus, + StorageLifecycleCompletionStatus, StorageLifecyclePolicyActionSummaryDetail, StorageBlobTierChangedEventData, StorageAsyncOperationInitiatedEventData, @@ -304,26 +327,11 @@ export { ResourceNotificationsOperationalDetails, ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventData, ResourceNotificationsHealthResourcesAnnotatedEventData, - ResourceNotificationsResourceManagementCreatedOrUpdatedEventData, - ResourceNotificationsResourceDeletedEventData, ResourceNotificationsResourceDeletedDetails, + ResourceNotificationsResourceDeletedEventData, + ResourceNotificationsResourceManagementCreatedOrUpdatedEventData, ResourceNotificationsResourceManagementDeletedEventData, + ResourceNotificationsContainerServiceEventResourcesScheduledEventData, KnownServiceApiVersions, -} from "./generated/index.js"; - -export { - CloudEvent, - EventGridEvent, - KeyVaultCertificateNewVersionCreatedEventData, - KeyVaultCertificateNearExpiryEventData, - KeyVaultCertificateExpiredEventData, - KeyVaultKeyNewVersionCreatedEventData, - KeyVaultKeyNearExpiryEventData, - KeyVaultKeyExpiredEventData, - KeyVaultSecretNewVersionCreatedEventData, - KeyVaultSecretNearExpiryEventData, - KeyVaultAccessPolicyChangedEventData, - KeyVaultSecretExpiredEventData, -} from "./models.js"; - -export { isSystemEvent, KnownSystemEventTypes, SystemEventNameToEventData } from "./predicates.js"; +} from "./models/index.js"; +export { SystemEventsClientOptionalParams } from "./api/index.js"; diff --git a/sdk/eventgrid/eventgrid-systemevents/src/generated/logger.ts b/sdk/eventgrid/eventgrid-systemevents/src/logger.ts similarity index 100% rename from sdk/eventgrid/eventgrid-systemevents/src/generated/logger.ts rename to sdk/eventgrid/eventgrid-systemevents/src/logger.ts diff --git a/sdk/eventgrid/eventgrid-systemevents/src/models.ts b/sdk/eventgrid/eventgrid-systemevents/src/models.ts deleted file mode 100644 index eb34859d737f..000000000000 --- a/sdk/eventgrid/eventgrid-systemevents/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-systemevents/src/generated/models/index.ts b/sdk/eventgrid/eventgrid-systemevents/src/models/index.ts similarity index 96% rename from sdk/eventgrid/eventgrid-systemevents/src/generated/models/index.ts rename to sdk/eventgrid/eventgrid-systemevents/src/models/index.ts index fedcf722357a..b98fd74e992e 100644 --- a/sdk/eventgrid/eventgrid-systemevents/src/generated/models/index.ts +++ b/sdk/eventgrid/eventgrid-systemevents/src/models/index.ts @@ -31,6 +31,14 @@ export { ApiManagementGatewayCertificateAuthorityDeletedEventData, ApiManagementGatewayApiAddedEventData, ApiManagementGatewayApiRemovedEventData, + ApiManagementCircuitBreakerOpenedEventData, + ApiManagementCircuitBreakerProperties, + ApiManagementCircuitBreakerClosedEventData, + ApiManagementGatewayTokenNearExpiryEventData, + ApiManagementGatewayProperties, + ApiManagementNearExpiryGatewayTokenProperties, + ApiManagementGatewayTokenExpiredEventData, + ApiManagementExpiredGatewayTokenProperties, AppConfigurationKeyValueModifiedEventData, AppConfigurationKeyValueDeletedEventData, AppConfigurationSnapshotEventData, @@ -185,6 +193,7 @@ export { DataBoxStageName, DataBoxCopyCompletedEventData, DataBoxOrderCompletedEventData, + EdgeSolutionVersionPublishedEventData, EventHubCaptureFileCreatedEventData, MapsGeofenceEvent, MapsGeofenceGeometry, diff --git a/sdk/eventgrid/eventgrid-systemevents/src/generated/models/models.ts b/sdk/eventgrid/eventgrid-systemevents/src/models/models.ts similarity index 91% rename from sdk/eventgrid/eventgrid-systemevents/src/generated/models/models.ts rename to sdk/eventgrid/eventgrid-systemevents/src/models/models.ts index ef0fb682ab6d..0c842dff5c2e 100644 --- a/sdk/eventgrid/eventgrid-systemevents/src/generated/models/models.ts +++ b/sdk/eventgrid/eventgrid-systemevents/src/models/models.ts @@ -31,9 +31,7 @@ export interface ApiCenterApiSpecification { version?: string; } -export function apiCenterApiSpecificationDeserializer( - item: any, -): ApiCenterApiSpecification { +export function apiCenterApiSpecificationDeserializer(item: any): ApiCenterApiSpecification { return { name: item["name"], version: item["version"], @@ -426,16 +424,164 @@ export function apiManagementGatewayApiRemovedEventDataDeserializer( }; } +/** Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.CircuitBreaker.Opened event. */ +export interface ApiManagementCircuitBreakerOpenedEventData { + /** Name of the backend for which the circuit has opened. */ + backendName: string; + /** Information related to the circuit breaker configured on the backend. */ + circuitBreaker: ApiManagementCircuitBreakerProperties; +} + +export function apiManagementCircuitBreakerOpenedEventDataDeserializer( + item: any, +): ApiManagementCircuitBreakerOpenedEventData { + return { + backendName: item["backendName"], + circuitBreaker: apiManagementCircuitBreakerPropertiesDeserializer(item["circuitBreaker"]), + }; +} + +/** Information related to the circuit breaker configured on the backend. */ +export interface ApiManagementCircuitBreakerProperties { + /** Overview of all configured rules and respective details. */ + rules: Record>; +} + +export function apiManagementCircuitBreakerPropertiesDeserializer( + item: any, +): ApiManagementCircuitBreakerProperties { + return { + rules: _apiManagementCircuitBreakerPropertiesRuleRecordDeserializer(item["rules"]), + }; +} + +export function _apiManagementCircuitBreakerPropertiesRuleRecordDeserializer( + item: Record, +): Record { + const result: Record = {}; + Object.keys(item).map((key) => { + result[key] = !item[key] + ? item[key] + : _apiManagementCircuitBreakerPropertiesRuleDeserializer(item[key]); + }); + return result; +} + +/** model interface _ApiManagementCircuitBreakerPropertiesRule */ +export interface _ApiManagementCircuitBreakerPropertiesRule {} + +export function _apiManagementCircuitBreakerPropertiesRuleDeserializer( + item: any, +): _ApiManagementCircuitBreakerPropertiesRule { + return item; +} + +/** Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.CircuitBreaker.Closed event. */ +export interface ApiManagementCircuitBreakerClosedEventData { + /** Name of the backend for which the circuit has closed. */ + backendName: string; + /** Information related to the circuit breaker configured on the backend. */ + circuitBreaker: ApiManagementCircuitBreakerProperties; +} + +export function apiManagementCircuitBreakerClosedEventDataDeserializer( + item: any, +): ApiManagementCircuitBreakerClosedEventData { + return { + backendName: item["backendName"], + circuitBreaker: apiManagementCircuitBreakerPropertiesDeserializer(item["circuitBreaker"]), + }; +} + +/** Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.GatewayTokenNearExpiry event. */ +export interface ApiManagementGatewayTokenNearExpiryEventData { + /** Information related to a given self-hosted gateway deployment. */ + gatewayInfo: ApiManagementGatewayProperties; + /** Information related to a an expired gateway token for a self-hosted gateway deployment. */ + tokenInfo: ApiManagementNearExpiryGatewayTokenProperties; +} + +export function apiManagementGatewayTokenNearExpiryEventDataDeserializer( + item: any, +): ApiManagementGatewayTokenNearExpiryEventData { + return { + gatewayInfo: apiManagementGatewayPropertiesDeserializer(item["gatewayInfo"]), + tokenInfo: apiManagementNearExpiryGatewayTokenPropertiesDeserializer(item["tokenInfo"]), + }; +} + +/** Information related to a given self-hosted gateway deployment. */ +export interface ApiManagementGatewayProperties { + /** Id of Gateway that is used to deploy the gateway to get the configuration for. This is the ARM resource ID referenced in the Azure API Management instance. Uses the format, `/subscriptions//resourceGroups//Microsoft.ApiManagement/service//gateway/` */ + gatewayId: string; + /** Unique instance ID of the deployed gateway */ + instanceId: string; +} + +export function apiManagementGatewayPropertiesDeserializer( + item: any, +): ApiManagementGatewayProperties { + return { + gatewayId: item["gatewayId"], + instanceId: item["instanceId"], + }; +} + +/** Information related to a gateway token that is near expiry for a self-hosted gateway deployment. */ +export interface ApiManagementNearExpiryGatewayTokenProperties { + /** Timestamp when the gateway token will expire. */ + expiredAtUtc: Date; +} + +export function apiManagementNearExpiryGatewayTokenPropertiesDeserializer( + item: any, +): ApiManagementNearExpiryGatewayTokenProperties { + return { + expiredAtUtc: new Date(item["expiredAtUtc"]), + }; +} + +/** Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.GatewayTokenExpired event. */ +export interface ApiManagementGatewayTokenExpiredEventData { + /** Information related to a given self-hosted gateway deployment. */ + gatewayInfo: ApiManagementGatewayProperties; + /** Information related to a an expired gateway token for a self-hosted gateway deployment. */ + tokenInfo: ApiManagementExpiredGatewayTokenProperties; +} + +export function apiManagementGatewayTokenExpiredEventDataDeserializer( + item: any, +): ApiManagementGatewayTokenExpiredEventData { + return { + gatewayInfo: apiManagementGatewayPropertiesDeserializer(item["gatewayInfo"]), + tokenInfo: apiManagementExpiredGatewayTokenPropertiesDeserializer(item["tokenInfo"]), + }; +} + +/** Information related to a gateway token that has expired for a self-hosted gateway deployment. */ +export interface ApiManagementExpiredGatewayTokenProperties { + /** Timestamp when the gateway token has expired. */ + expiredAtUtc: Date; +} + +export function apiManagementExpiredGatewayTokenPropertiesDeserializer( + item: any, +): ApiManagementExpiredGatewayTokenProperties { + return { + expiredAtUtc: new Date(item["expiredAtUtc"]), + }; +} + /** 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; + key: string; /** The label, if any, used to identify the key-value that was modified. */ - label?: string; + label: string | null; /** The etag representing the new state of the key-value. */ - etag?: string; + etag: string; /** The sync token representing the server state after the event. */ - syncToken?: string; + syncToken: string; } export function appConfigurationKeyValueModifiedEventDataDeserializer( @@ -452,13 +598,13 @@ export function appConfigurationKeyValueModifiedEventDataDeserializer( /** 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; + key: string; /** The label, if any, used to identify the key-value that was deleted. */ - label?: string; + label: string; /** The etag representing the key-value that was deleted. */ - etag?: string; + etag: string; /** The sync token representing the server state after the event. */ - syncToken?: string; + syncToken: string; } export function appConfigurationKeyValueDeletedEventDataDeserializer( @@ -475,11 +621,11 @@ export function appConfigurationKeyValueDeletedEventDataDeserializer( /** Schema of common properties of snapshot events */ export interface AppConfigurationSnapshotEventData { /** The name of the snapshot. */ - name?: string; + name: string; /** The etag representing the new state of the snapshot. */ - etag?: string; + etag: string; /** The sync token representing the server state after the event. */ - syncToken?: string; + syncToken: string; } export function appConfigurationSnapshotEventDataDeserializer( @@ -526,17 +672,14 @@ export interface AvsPrivateCloudEventData { operationId: string; } -export function avsPrivateCloudEventDataDeserializer( - item: any, -): AvsPrivateCloudEventData { +export function avsPrivateCloudEventDataDeserializer(item: any): AvsPrivateCloudEventData { return { operationId: item["operationId"], }; } /** Schema of the Data property of an EventGridEvent for a Microsoft.AVS.PrivateCloudUpdating event. */ -export interface AvsPrivateCloudUpdatingEventData - extends AvsPrivateCloudEventData {} +export interface AvsPrivateCloudUpdatingEventData extends AvsPrivateCloudEventData {} export function avsPrivateCloudUpdatingEventDataDeserializer( item: any, @@ -547,8 +690,7 @@ export function avsPrivateCloudUpdatingEventDataDeserializer( } /** Schema of the Data property of an EventGridEvent for a Microsoft.AVS.PrivateCloudUpdated event. */ -export interface AvsPrivateCloudUpdatedEventData - extends AvsPrivateCloudEventData {} +export interface AvsPrivateCloudUpdatedEventData extends AvsPrivateCloudEventData {} export function avsPrivateCloudUpdatedEventDataDeserializer( item: any, @@ -559,8 +701,7 @@ export function avsPrivateCloudUpdatedEventDataDeserializer( } /** Schema of the Data property of an EventGridEvent for a Microsoft.AVS.PrivateCloudFailed event. */ -export interface AvsPrivateCloudFailedEventData - extends AvsPrivateCloudEventData { +export interface AvsPrivateCloudFailedEventData extends AvsPrivateCloudEventData { /** Failure reason of an event. */ failureMessage?: string; } @@ -579,16 +720,14 @@ 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[]; + readonly addedHostNames?: string[]; /** Hosts removed from the cluster in this event, if any. */ - removedHostNames?: string[]; + readonly removedHostNames?: string[]; /** Hosts in Maintenance mode in the cluster, if any. */ - inMaintenanceHostNames?: string[]; + readonly inMaintenanceHostNames?: string[]; } -export function avsClusterEventDataDeserializer( - item: any, -): AvsClusterEventData { +export function avsClusterEventDataDeserializer(item: any): AvsClusterEventData { return { operationId: item["operationId"], addedHostNames: !item["addedHostNames"] @@ -612,9 +751,7 @@ export function avsClusterEventDataDeserializer( /** Schema of the Data property of an EventGridEvent for a Microsoft.AVS.ClusterCreated event. */ export interface AvsClusterCreatedEventData extends AvsClusterEventData {} -export function avsClusterCreatedEventDataDeserializer( - item: any, -): AvsClusterCreatedEventData { +export function avsClusterCreatedEventDataDeserializer(item: any): AvsClusterCreatedEventData { return { operationId: item["operationId"], addedHostNames: !item["addedHostNames"] @@ -638,9 +775,7 @@ export function avsClusterCreatedEventDataDeserializer( /** Schema of the Data property of an EventGridEvent for a Microsoft.AVS.ClusterDeleted event. */ export interface AvsClusterDeletedEventData extends AvsClusterEventData {} -export function avsClusterDeletedEventDataDeserializer( - item: any, -): AvsClusterDeletedEventData { +export function avsClusterDeletedEventDataDeserializer(item: any): AvsClusterDeletedEventData { return { operationId: item["operationId"], addedHostNames: !item["addedHostNames"] @@ -664,9 +799,7 @@ export function avsClusterDeletedEventDataDeserializer( /** Schema of the Data property of an EventGridEvent for a Microsoft.AVS.ClusterUpdating event. */ export interface AvsClusterUpdatingEventData extends AvsClusterEventData {} -export function avsClusterUpdatingEventDataDeserializer( - item: any, -): AvsClusterUpdatingEventData { +export function avsClusterUpdatingEventDataDeserializer(item: any): AvsClusterUpdatingEventData { return { operationId: item["operationId"], addedHostNames: !item["addedHostNames"] @@ -690,9 +823,7 @@ export function avsClusterUpdatingEventDataDeserializer( /** Schema of the Data property of an EventGridEvent for a Microsoft.AVS.ClusterUpdated event. */ export interface AvsClusterUpdatedEventData extends AvsClusterEventData {} -export function avsClusterUpdatedEventDataDeserializer( - item: any, -): AvsClusterUpdatedEventData { +export function avsClusterUpdatedEventDataDeserializer(item: any): AvsClusterUpdatedEventData { return { operationId: item["operationId"], addedHostNames: !item["addedHostNames"] @@ -719,9 +850,7 @@ export interface AvsClusterFailedEventData extends AvsClusterEventData { failureMessage?: string; } -export function avsClusterFailedEventDataDeserializer( - item: any, -): AvsClusterFailedEventData { +export function avsClusterFailedEventDataDeserializer(item: any): AvsClusterFailedEventData { return { operationId: item["operationId"], addedHostNames: !item["addedHostNames"] @@ -750,12 +879,10 @@ export interface AvsScriptExecutionEventData { /** Cmdlet referenced in the execution that caused this event. */ cmdletId: string; /** Stdout outputs from the execution, if any. */ - output?: string[]; + readonly output?: string[]; } -export function avsScriptExecutionEventDataDeserializer( - item: any, -): AvsScriptExecutionEventData { +export function avsScriptExecutionEventDataDeserializer(item: any): AvsScriptExecutionEventData { return { operationId: item["operationId"], cmdletId: item["cmdletId"], @@ -768,8 +895,7 @@ export function avsScriptExecutionEventDataDeserializer( } /** Schema of the Data property of an EventGridEvent for a Microsoft.AVS.ScriptExecutionStarted event. */ -export interface AvsScriptExecutionStartedEventData - extends AvsScriptExecutionEventData {} +export interface AvsScriptExecutionStartedEventData extends AvsScriptExecutionEventData {} export function avsScriptExecutionStartedEventDataDeserializer( item: any, @@ -786,8 +912,7 @@ export function avsScriptExecutionStartedEventDataDeserializer( } /** Schema of the Data property of an EventGridEvent for a Microsoft.AVS.ScriptExecutionFinished event. */ -export interface AvsScriptExecutionFinishedEventData - extends AvsScriptExecutionEventData { +export interface AvsScriptExecutionFinishedEventData extends AvsScriptExecutionEventData { /** Named outputs of completed execution, if any. */ namedOutputs: Record; } @@ -808,8 +933,7 @@ export function avsScriptExecutionFinishedEventDataDeserializer( } /** Schema of the Data property of an EventGridEvent for a Microsoft.AVS.ScriptExecutionCancelled event. */ -export interface AvsScriptExecutionCancelledEventData - extends AvsScriptExecutionEventData {} +export interface AvsScriptExecutionCancelledEventData extends AvsScriptExecutionEventData {} export function avsScriptExecutionCancelledEventDataDeserializer( item: any, @@ -826,8 +950,7 @@ export function avsScriptExecutionCancelledEventDataDeserializer( } /** Schema of the Data property of an EventGridEvent for a Microsoft.AVS.ScriptExecutionFailed event. */ -export interface AvsScriptExecutionFailedEventData - extends AvsScriptExecutionEventData { +export interface AvsScriptExecutionFailedEventData extends AvsScriptExecutionEventData { /** Failure reason of an event. */ failureMessage?: string; } @@ -867,21 +990,13 @@ export interface AcsIncomingCallEventData { correlationId?: string; } -export function acsIncomingCallEventDataDeserializer( - item: any, -): AcsIncomingCallEventData { +export function acsIncomingCallEventDataDeserializer(item: any): AcsIncomingCallEventData { return { - toCommunicationIdentifier: communicationIdentifierModelDeserializer( - item["to"], - ), - fromCommunicationIdentifier: communicationIdentifierModelDeserializer( - item["from"], - ), + toCommunicationIdentifier: communicationIdentifierModelDeserializer(item["to"]), + fromCommunicationIdentifier: communicationIdentifierModelDeserializer(item["from"]), serverCallId: item["serverCallId"], callerDisplayName: item["callerDisplayName"], - customContext: acsIncomingCallCustomContextDeserializer( - item["customContext"], - ), + customContext: acsIncomingCallCustomContextDeserializer(item["customContext"]), incomingCallContext: item["incomingCallContext"], onBehalfOfCallee: !item["onBehalfOfCallee"] ? item["onBehalfOfCallee"] @@ -906,35 +1021,27 @@ export interface CommunicationIdentifierModel { microsoftTeamsApp: MicrosoftTeamsAppIdentifierModel; } -export function communicationIdentifierModelDeserializer( - item: any, -): CommunicationIdentifierModel { +export function communicationIdentifierModelDeserializer(item: any): CommunicationIdentifierModel { return { kind: item["kind"], rawId: item["rawId"], - communicationUser: communicationUserIdentifierModelDeserializer( - item["communicationUser"], - ), + communicationUser: communicationUserIdentifierModelDeserializer(item["communicationUser"]), phoneNumber: phoneNumberIdentifierModelDeserializer(item["phoneNumber"]), - microsoftTeamsUser: microsoftTeamsUserIdentifierModelDeserializer( - item["microsoftTeamsUser"], - ), - microsoftTeamsApp: microsoftTeamsAppIdentifierModelDeserializer( - item["microsoftTeamsApp"], - ), + microsoftTeamsUser: microsoftTeamsUserIdentifierModelDeserializer(item["microsoftTeamsUser"]), + microsoftTeamsApp: microsoftTeamsAppIdentifierModelDeserializer(item["microsoftTeamsApp"]), }; } /** Communication model identifier kind */ export enum KnownCommunicationIdentifierModelKind { /** Unknown */ - unknown = "unknown", + Unknown = "unknown", /** Communication User */ - communicationUser = "communicationUser", + CommunicationUser = "communicationUser", /** Phone Number */ - phoneNumber = "phoneNumber", + PhoneNumber = "phoneNumber", /** Microsoft Teams User */ - microsoftTeamsUser = "microsoftTeamsUser", + MicrosoftTeamsUser = "microsoftTeamsUser", } /** @@ -969,9 +1076,7 @@ export interface PhoneNumberIdentifierModel { value: string; } -export function phoneNumberIdentifierModelDeserializer( - item: any, -): PhoneNumberIdentifierModel { +export function phoneNumberIdentifierModelDeserializer(item: any): PhoneNumberIdentifierModel { return { value: item["value"], }; @@ -1000,11 +1105,11 @@ export function microsoftTeamsUserIdentifierModelDeserializer( /** Communication cloud environment model. */ export enum KnownCommunicationCloudEnvironmentModel { /** Public */ - "public" = "public", + Public = "public", /** Dod */ - dod = "dod", + Dod = "dod", /** Gcch */ - gcch = "gcch", + Gcch = "gcch", } /** @@ -1043,9 +1148,7 @@ export interface AcsIncomingCallCustomContext { voipHeaders: Record; } -export function acsIncomingCallCustomContextDeserializer( - item: any, -): AcsIncomingCallCustomContext { +export function acsIncomingCallCustomContextDeserializer(item: any): AcsIncomingCallCustomContext { return { sipHeaders: item["sipHeaders"], voipHeaders: item["voipHeaders"], @@ -1058,9 +1161,7 @@ export interface AcsUserDisconnectedEventData { userCommunicationIdentifier: CommunicationIdentifierModel; } -export function acsUserDisconnectedEventDataDeserializer( - item: any, -): AcsUserDisconnectedEventData { +export function acsUserDisconnectedEventDataDeserializer(item: any): AcsUserDisconnectedEventData { return { userCommunicationIdentifier: communicationIdentifierModelDeserializer( item["userCommunicationIdentifier"], @@ -1096,9 +1197,7 @@ export interface AcsChatEventInThreadBase { threadId?: string; } -export function acsChatEventInThreadBaseDeserializer( - item: any, -): AcsChatEventInThreadBase { +export function acsChatEventInThreadBaseDeserializer(item: any): AcsChatEventInThreadBase { return { transactionId: item["transactionId"], threadId: item["threadId"], @@ -1121,9 +1220,7 @@ export interface AcsChatMessageEventBase extends AcsChatEventBase { version?: number; } -export function acsChatMessageEventBaseDeserializer( - item: any, -): AcsChatMessageEventBase { +export function acsChatMessageEventBaseDeserializer(item: any): AcsChatMessageEventBase { return { recipientCommunicationIdentifier: communicationIdentifierModelDeserializer( item["recipientCommunicationIdentifier"], @@ -1142,8 +1239,7 @@ export function acsChatMessageEventBaseDeserializer( } /** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatMessageReceived event. */ -export interface AcsChatMessageReceivedEventData - extends AcsChatMessageEventBase { +export interface AcsChatMessageReceivedEventData extends AcsChatMessageEventBase { /** The body of the chat message */ messageBody?: string; /** The chat message metadata */ @@ -1173,8 +1269,7 @@ export function acsChatMessageReceivedEventDataDeserializer( } /** Schema of common properties of all thread-level chat message events */ -export interface AcsChatMessageEventInThreadBase - extends AcsChatEventInThreadBase { +export interface AcsChatMessageEventInThreadBase extends AcsChatEventInThreadBase { /** The chat message id */ messageId?: string; /** The communication identifier of the sender */ @@ -1207,8 +1302,7 @@ export function acsChatMessageEventInThreadBaseDeserializer( } /** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatMessageReceivedInThread event. */ -export interface AcsChatMessageReceivedInThreadEventData - extends AcsChatMessageEventInThreadBase { +export interface AcsChatMessageReceivedInThreadEventData extends AcsChatMessageEventInThreadBase { /** The body of the chat message */ messageBody?: string; /** The chat message metadata */ @@ -1268,8 +1362,7 @@ export function acsChatMessageEditedEventDataDeserializer( } /** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatMessageEditedInThread event. */ -export interface AcsChatMessageEditedInThreadEventData - extends AcsChatMessageEventInThreadBase { +export interface AcsChatMessageEditedInThreadEventData extends AcsChatMessageEventInThreadBase { /** The body of the chat message */ messageBody?: string; /** The chat message metadata */ @@ -1299,8 +1392,7 @@ export function acsChatMessageEditedInThreadEventDataDeserializer( } /** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatMessageDeleted event. */ -export interface AcsChatMessageDeletedEventData - extends AcsChatMessageEventBase { +export interface AcsChatMessageDeletedEventData extends AcsChatMessageEventBase { /** The time at which the message was deleted */ deleteTime: Date; } @@ -1327,8 +1419,7 @@ export function acsChatMessageDeletedEventDataDeserializer( } /** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatMessageDeletedInThread event. */ -export interface AcsChatMessageDeletedInThreadEventData - extends AcsChatMessageEventInThreadBase { +export interface AcsChatMessageDeletedInThreadEventData extends AcsChatMessageEventInThreadBase { /** The time at which the message was deleted */ deleteTime: Date; } @@ -1359,9 +1450,7 @@ export interface AcsChatThreadEventBase extends AcsChatEventBase { version?: number; } -export function acsChatThreadEventBaseDeserializer( - item: any, -): AcsChatThreadEventBase { +export function acsChatThreadEventBaseDeserializer(item: any): AcsChatThreadEventBase { return { recipientCommunicationIdentifier: communicationIdentifierModelDeserializer( item["recipientCommunicationIdentifier"], @@ -1374,8 +1463,7 @@ export function acsChatThreadEventBaseDeserializer( } /** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatThreadCreatedWithUser event. */ -export interface AcsChatThreadCreatedWithUserEventData - extends AcsChatThreadEventBase { +export interface AcsChatThreadCreatedWithUserEventData extends AcsChatThreadEventBase { /** The communication identifier of the user who created the thread */ createdByCommunicationIdentifier: CommunicationIdentifierModel; /** The thread properties */ @@ -1383,7 +1471,7 @@ export interface AcsChatThreadCreatedWithUserEventData /** The thread metadata */ metadata: Record; /** The list of properties of participants who are part of the thread */ - participants: AcsChatThreadParticipant[]; + readonly participants: AcsChatThreadParticipant[]; } export function acsChatThreadCreatedWithUserEventDataDeserializer( @@ -1402,9 +1490,7 @@ export function acsChatThreadCreatedWithUserEventDataDeserializer( ), properties: item["properties"], metadata: item["metadata"], - participants: acsChatThreadParticipantArrayDeserializer( - item["participants"], - ), + participants: acsChatThreadParticipantArrayDeserializer(item["participants"]), }; } @@ -1426,22 +1512,18 @@ export interface AcsChatThreadParticipant { metadata: Record; } -export function acsChatThreadParticipantDeserializer( - item: any, -): AcsChatThreadParticipant { +export function acsChatThreadParticipantDeserializer(item: any): AcsChatThreadParticipant { return { displayName: item["displayName"], - participantCommunicationIdentifier: - communicationIdentifierModelDeserializer( - item["participantCommunicationIdentifier"], - ), + participantCommunicationIdentifier: communicationIdentifierModelDeserializer( + item["participantCommunicationIdentifier"], + ), metadata: item["metadata"], }; } /** Schema of common properties of all chat thread events */ -export interface AcsChatThreadEventInThreadBase - extends AcsChatEventInThreadBase { +export interface AcsChatThreadEventInThreadBase extends AcsChatEventInThreadBase { /** The original creation time of the thread */ createTime: Date; /** The version of the thread */ @@ -1460,8 +1542,7 @@ export function acsChatThreadEventInThreadBaseDeserializer( } /** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatThreadCreated event. */ -export interface AcsChatThreadCreatedEventData - extends AcsChatThreadEventInThreadBase { +export interface AcsChatThreadCreatedEventData extends AcsChatThreadEventInThreadBase { /** The communication identifier of the user who created the thread */ createdByCommunicationIdentifier: CommunicationIdentifierModel; /** The thread properties */ @@ -1469,7 +1550,7 @@ export interface AcsChatThreadCreatedEventData /** The thread metadata */ metadata: Record; /** The list of properties of participants who are part of the thread */ - participants: AcsChatThreadParticipant[]; + readonly participants: AcsChatThreadParticipant[]; } export function acsChatThreadCreatedEventDataDeserializer( @@ -1485,15 +1566,12 @@ export function acsChatThreadCreatedEventDataDeserializer( ), properties: item["properties"], metadata: item["metadata"], - participants: acsChatThreadParticipantArrayDeserializer( - item["participants"], - ), + participants: acsChatThreadParticipantArrayDeserializer(item["participants"]), }; } /** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatThreadWithUserDeleted event. */ -export interface AcsChatThreadWithUserDeletedEventData - extends AcsChatThreadEventBase { +export interface AcsChatThreadWithUserDeletedEventData extends AcsChatThreadEventBase { /** The communication identifier of the user who deleted the thread */ deletedByCommunicationIdentifier: CommunicationIdentifierModel; /** The deletion time of the thread */ @@ -1519,8 +1597,7 @@ export function acsChatThreadWithUserDeletedEventDataDeserializer( } /** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatThreadDeleted event. */ -export interface AcsChatThreadDeletedEventData - extends AcsChatThreadEventInThreadBase { +export interface AcsChatThreadDeletedEventData extends AcsChatThreadEventInThreadBase { /** The communication identifier of the user who deleted the thread */ deletedByCommunicationIdentifier: CommunicationIdentifierModel; /** The deletion time of the thread */ @@ -1543,8 +1620,7 @@ export function acsChatThreadDeletedEventDataDeserializer( } /** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatThreadPropertiesUpdatedPerUser event. */ -export interface AcsChatThreadPropertiesUpdatedPerUserEventData - extends AcsChatThreadEventBase { +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 */ @@ -1576,8 +1652,7 @@ export function acsChatThreadPropertiesUpdatedPerUserEventDataDeserializer( } /** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatThreadPropertiesUpdated event. */ -export interface AcsChatThreadPropertiesUpdatedEventData - extends AcsChatThreadEventInThreadBase { +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 */ @@ -1606,8 +1681,7 @@ export function acsChatThreadPropertiesUpdatedEventDataDeserializer( } /** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatParticipantAddedToThreadWithUser event. */ -export interface AcsChatParticipantAddedToThreadWithUserEventData - extends AcsChatThreadEventBase { +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 */ @@ -1631,9 +1705,7 @@ export function acsChatParticipantAddedToThreadWithUserEventDataDeserializer( addedByCommunicationIdentifier: communicationIdentifierModelDeserializer( item["addedByCommunicationIdentifier"], ), - participantAdded: acsChatThreadParticipantDeserializer( - item["participantAdded"], - ), + participantAdded: acsChatThreadParticipantDeserializer(item["participantAdded"]), }; } @@ -1663,15 +1735,12 @@ export function acsChatParticipantRemovedFromThreadWithUserEventDataDeserializer removedByCommunicationIdentifier: communicationIdentifierModelDeserializer( item["removedByCommunicationIdentifier"], ), - participantRemoved: acsChatThreadParticipantDeserializer( - item["participantRemoved"], - ), + participantRemoved: acsChatThreadParticipantDeserializer(item["participantRemoved"]), }; } /** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatThreadParticipantAdded event. */ -export interface AcsChatParticipantAddedToThreadEventData - extends AcsChatEventInThreadBase { +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 */ @@ -1692,16 +1761,13 @@ export function acsChatParticipantAddedToThreadEventDataDeserializer( addedByCommunicationIdentifier: communicationIdentifierModelDeserializer( item["addedByCommunicationIdentifier"], ), - participantAdded: acsChatThreadParticipantDeserializer( - item["participantAdded"], - ), + participantAdded: acsChatThreadParticipantDeserializer(item["participantAdded"]), version: item["version"], }; } /** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatThreadParticipantRemoved event. */ -export interface AcsChatParticipantRemovedFromThreadEventData - extends AcsChatEventInThreadBase { +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 */ @@ -1722,9 +1788,7 @@ export function acsChatParticipantRemovedFromThreadEventDataDeserializer( removedByCommunicationIdentifier: communicationIdentifierModelDeserializer( item["removedByCommunicationIdentifier"], ), - participantRemoved: acsChatThreadParticipantDeserializer( - item["participantRemoved"], - ), + participantRemoved: acsChatThreadParticipantDeserializer(item["participantRemoved"]), version: item["version"], }; } @@ -1754,7 +1818,7 @@ export interface AcsSmsDeliveryReportReceivedEventData extends AcsSmsEventBase { /** Details about Delivery Status */ deliveryStatusDetails?: string; /** List of details of delivery attempts made */ - deliveryAttempts: AcsSmsDeliveryAttempt[]; + readonly deliveryAttempts: AcsSmsDeliveryAttempt[]; /** The time at which the SMS delivery report was received */ receivedTimestamp: Date; /** Customer Content */ @@ -1770,9 +1834,7 @@ export function acsSmsDeliveryReportReceivedEventDataDeserializer( to: item["to"], deliveryStatus: item["deliveryStatus"], deliveryStatusDetails: item["deliveryStatusDetails"], - deliveryAttempts: acsSmsDeliveryAttemptArrayDeserializer( - item["deliveryAttempts"], - ), + deliveryAttempts: acsSmsDeliveryAttemptArrayDeserializer(item["deliveryAttempts"]), receivedTimestamp: new Date(item["receivedTimestamp"]), tag: item["tag"], }; @@ -1796,9 +1858,7 @@ export interface AcsSmsDeliveryAttempt { segmentsFailed?: number; } -export function acsSmsDeliveryAttemptDeserializer( - item: any, -): AcsSmsDeliveryAttempt { +export function acsSmsDeliveryAttemptDeserializer(item: any): AcsSmsDeliveryAttempt { return { timestamp: new Date(item["timestamp"]), segmentsSucceeded: item["segmentsSucceeded"], @@ -1816,9 +1876,7 @@ export interface AcsSmsReceivedEventData extends AcsSmsEventBase { segmentCount: number; } -export function acsSmsReceivedEventDataDeserializer( - item: any, -): AcsSmsReceivedEventData { +export function acsSmsReceivedEventDataDeserializer(item: any): AcsSmsReceivedEventData { return { messageId: item["messageId"], from: item["from"], @@ -1851,9 +1909,7 @@ export function acsRecordingFileStatusUpdatedEventDataDeserializer( item: any, ): AcsRecordingFileStatusUpdatedEventData { return { - recordingStorageInfo: acsRecordingStorageInfoDeserializer( - item["recordingStorageInfo"], - ), + recordingStorageInfo: acsRecordingStorageInfoDeserializer(item["recordingStorageInfo"]), recordingStartTime: new Date(item["recordingStartTime"]), recordingDurationMs: item["recordingDurationMs"], recordingContentType: item["recordingContentType"], @@ -1866,16 +1922,12 @@ export function acsRecordingFileStatusUpdatedEventDataDeserializer( /** Schema for all properties of Recording Storage Information. */ export interface AcsRecordingStorageInfo { /** List of details of recording chunks information */ - recordingChunks: AcsRecordingChunkInfo[]; + readonly recordingChunks: AcsRecordingChunkInfo[]; } -export function acsRecordingStorageInfoDeserializer( - item: any, -): AcsRecordingStorageInfo { +export function acsRecordingStorageInfoDeserializer(item: any): AcsRecordingStorageInfo { return { - recordingChunks: acsRecordingChunkInfoArrayDeserializer( - item["recordingChunks"], - ), + recordingChunks: acsRecordingChunkInfoArrayDeserializer(item["recordingChunks"]), }; } @@ -1903,9 +1955,7 @@ export interface AcsRecordingChunkInfo { deleteLocation?: string; } -export function acsRecordingChunkInfoDeserializer( - item: any, -): AcsRecordingChunkInfo { +export function acsRecordingChunkInfoDeserializer(item: any): AcsRecordingChunkInfo { return { documentId: item["documentId"], index: item["index"], @@ -2089,9 +2139,9 @@ export function acsEmailEngagementTrackingReportReceivedEventDataDeserializer( /** The type of engagement user have with email. */ export enum KnownAcsUserEngagement { /** View */ - view = "view", + View = "view", /** Click */ - click = "click", + Click = "click", } /** @@ -2132,9 +2182,7 @@ export interface AcsRouterJobEventData extends AcsRouterEventData { tags: Record; } -export function acsRouterJobEventDataDeserializer( - item: any, -): AcsRouterJobEventData { +export function acsRouterJobEventDataDeserializer(item: any): AcsRouterJobEventData { return { jobId: item["jobId"], channelReference: item["channelReference"], @@ -2169,12 +2217,11 @@ export function acsRouterJobCancelledEventDataDeserializer( } /** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterJobClassificationFailed event */ -export interface AcsRouterJobClassificationFailedEventData - extends AcsRouterJobEventData { +export interface AcsRouterJobClassificationFailedEventData extends AcsRouterJobEventData { /** Router Job Classification Policy Id */ classificationPolicyId?: string; /** Router Job Classification Failed Errors */ - errors: AcsRouterCommunicationError[]; + readonly errors: AcsRouterCommunicationError[]; } export function acsRouterJobClassificationFailedEventDataDeserializer( @@ -2211,18 +2258,16 @@ export interface AcsRouterCommunicationError { /** Router Communication Inner Error */ innererror: AcsRouterCommunicationError; /** List of Router Communication Errors */ - details: AcsRouterCommunicationError[]; + readonly errors: AcsRouterCommunicationError[]; } -export function acsRouterCommunicationErrorDeserializer( - item: any, -): AcsRouterCommunicationError { +export function acsRouterCommunicationErrorDeserializer(item: any): AcsRouterCommunicationError { return { code: item["code"], message: item["message"], target: item["target"], innererror: acsRouterCommunicationErrorDeserializer(item["innererror"]), - details: acsRouterCommunicationErrorArrayDeserializer(item["details"]), + errors: acsRouterCommunicationErrorArrayDeserializer(item["errors"]), }; } @@ -2235,7 +2280,7 @@ export interface AcsRouterJobClassifiedEventData extends AcsRouterJobEventData { /** Router Job Priority */ priority?: number; /** Router Job Attached Worker Selector */ - attachedWorkerSelectors: AcsRouterWorkerSelector[]; + readonly attachedWorkerSelectors: AcsRouterWorkerSelector[]; } export function acsRouterJobClassifiedEventDataDeserializer( @@ -2267,9 +2312,7 @@ export interface AcsRouterQueueDetails { labels: Record; } -export function acsRouterQueueDetailsDeserializer( - item: any, -): AcsRouterQueueDetails { +export function acsRouterQueueDetailsDeserializer(item: any): AcsRouterQueueDetails { return { id: item["id"], name: item["name"], @@ -2301,9 +2344,7 @@ export interface AcsRouterWorkerSelector { expirationTime: Date; } -export function acsRouterWorkerSelectorDeserializer( - item: any, -): AcsRouterWorkerSelector { +export function acsRouterWorkerSelectorDeserializer(item: any): AcsRouterWorkerSelector { return { key: item["key"], labelOperator: item["labelOperator"], @@ -2372,9 +2413,7 @@ export interface AcsRouterJobClosedEventData extends AcsRouterJobEventData { dispositionCode?: string; } -export function acsRouterJobClosedEventDataDeserializer( - item: any, -): AcsRouterJobClosedEventData { +export function acsRouterJobClosedEventDataDeserializer(item: any): AcsRouterJobClosedEventData { return { queueId: item["queueId"], labels: item["labels"], @@ -2414,9 +2453,7 @@ export function acsRouterJobCompletedEventDataDeserializer( /** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterJobDeleted event */ export interface AcsRouterJobDeletedEventData extends AcsRouterJobEventData {} -export function acsRouterJobDeletedEventDataDeserializer( - item: any, -): AcsRouterJobDeletedEventData { +export function acsRouterJobDeletedEventDataDeserializer(item: any): AcsRouterJobDeletedEventData { return { queueId: item["queueId"], labels: item["labels"], @@ -2428,8 +2465,7 @@ export function acsRouterJobDeletedEventDataDeserializer( } /** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterJobExceptionTriggered event */ -export interface AcsRouterJobExceptionTriggeredEventData - extends AcsRouterJobEventData { +export interface AcsRouterJobExceptionTriggeredEventData extends AcsRouterJobEventData { /** Router Job Exception Triggered Rule Key */ ruleKey?: string; /** Router Job Exception Triggered Rule Id */ @@ -2456,14 +2492,12 @@ export interface AcsRouterJobQueuedEventData extends AcsRouterJobEventData { /** Router Job Priority */ priority?: number; /** Router Job Queued Attached Worker Selector */ - attachedWorkerSelectors: AcsRouterWorkerSelector[]; + readonly attachedWorkerSelectors: AcsRouterWorkerSelector[]; /** Router Job Queued Requested Worker Selector */ - requestedWorkerSelectors: AcsRouterWorkerSelector[]; + readonly requestedWorkerSelectors: AcsRouterWorkerSelector[]; } -export function acsRouterJobQueuedEventDataDeserializer( - item: any, -): AcsRouterJobQueuedEventData { +export function acsRouterJobQueuedEventDataDeserializer(item: any): AcsRouterJobQueuedEventData { return { queueId: item["queueId"], labels: item["labels"], @@ -2490,7 +2524,7 @@ export interface AcsRouterJobReceivedEventData extends AcsRouterJobEventData { /** Router Job Priority */ priority?: number; /** Router Job Received Requested Worker Selectors */ - requestedWorkerSelectors: AcsRouterWorkerSelector[]; + readonly requestedWorkerSelectors: AcsRouterWorkerSelector[]; /** Router Job Received Scheduled Time in UTC */ scheduledOn: Date; /** Unavailable For Matching for Router Job Received */ @@ -2567,14 +2601,13 @@ export enum KnownAcsRouterJobStatus { export type AcsRouterJobStatus = string; /** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterJobSchedulingFailed event */ -export interface AcsRouterJobSchedulingFailedEventData - extends AcsRouterJobEventData { +export interface AcsRouterJobSchedulingFailedEventData extends AcsRouterJobEventData { /** Router Job Priority */ priority?: number; /** Router Job Scheduling Failed Attached Worker Selector Expired */ - expiredAttachedWorkerSelectors: AcsRouterWorkerSelector[]; + readonly expiredAttachedWorkerSelectors: AcsRouterWorkerSelector[]; /** Router Job Scheduling Failed Requested Worker Selector Expired */ - expiredRequestedWorkerSelectors: AcsRouterWorkerSelector[]; + readonly expiredRequestedWorkerSelectors: AcsRouterWorkerSelector[]; /** Router Job Scheduling Failed Scheduled Time in UTC */ scheduledOn: Date; /** Router Job Scheduling Failed Reason */ @@ -2627,14 +2660,13 @@ export function acsRouterJobUnassignedEventDataDeserializer( } /** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterJobWaitingForActivation event */ -export interface AcsRouterJobWaitingForActivationEventData - extends AcsRouterJobEventData { +export interface AcsRouterJobWaitingForActivationEventData extends AcsRouterJobEventData { /** Router Job Waiting For Activation Priority */ priority?: number; /** Router Job Waiting For Activation Worker Selector Expired */ - expiredAttachedWorkerSelectors: AcsRouterWorkerSelector[]; + readonly expiredAttachedWorkerSelectors: AcsRouterWorkerSelector[]; /** Router Job Waiting For Activation Requested Worker Selector Expired */ - expiredRequestedWorkerSelectors: AcsRouterWorkerSelector[]; + readonly expiredRequestedWorkerSelectors: AcsRouterWorkerSelector[]; /** Router Job Waiting For Activation Scheduled Time in UTC */ scheduledOn: Date; /** Router Job Waiting For Activation Unavailable For Matching */ @@ -2664,12 +2696,11 @@ export function acsRouterJobWaitingForActivationEventDataDeserializer( } /** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterJobWorkerSelectorsExpired event */ -export interface AcsRouterJobWorkerSelectorsExpiredEventData - extends AcsRouterJobEventData { +export interface AcsRouterJobWorkerSelectorsExpiredEventData extends AcsRouterJobEventData { /** Router Job Worker Selectors Expired Requested Worker Selectors */ - expiredRequestedWorkerSelectors: AcsRouterWorkerSelector[]; + readonly expiredRequestedWorkerSelectors: AcsRouterWorkerSelector[]; /** Router Job Worker Selectors Expired Attached Worker Selectors */ - expiredAttachedWorkerSelectors: AcsRouterWorkerSelector[]; + readonly expiredAttachedWorkerSelectors: AcsRouterWorkerSelector[]; } export function acsRouterJobWorkerSelectorsExpiredEventDataDeserializer( @@ -2697,9 +2728,7 @@ export interface AcsRouterWorkerEventData extends AcsRouterEventData { workerId?: string; } -export function acsRouterWorkerEventDataDeserializer( - item: any, -): AcsRouterWorkerEventData { +export function acsRouterWorkerEventDataDeserializer(item: any): AcsRouterWorkerEventData { return { jobId: item["jobId"], channelReference: item["channelReference"], @@ -2709,8 +2738,7 @@ export function acsRouterWorkerEventDataDeserializer( } /** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterWorkerDeleted event */ -export interface AcsRouterWorkerDeletedEventData - extends AcsRouterWorkerEventData {} +export interface AcsRouterWorkerDeletedEventData extends AcsRouterWorkerEventData {} export function acsRouterWorkerDeletedEventDataDeserializer( item: any, @@ -2738,8 +2766,7 @@ export function acsRouterWorkerDeregisteredEventDataDeserializer( } /** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterWorkerOfferAccepted event */ -export interface AcsRouterWorkerOfferAcceptedEventData - extends AcsRouterWorkerEventData { +export interface AcsRouterWorkerOfferAcceptedEventData extends AcsRouterWorkerEventData { /** Router Worker Offer Accepted Queue Id */ queueId?: string; /** Router Worker Offer Accepted Offer Id */ @@ -2778,8 +2805,7 @@ export function acsRouterWorkerOfferAcceptedEventDataDeserializer( } /** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterWorkerOfferDeclined event */ -export interface AcsRouterWorkerOfferDeclinedEventData - extends AcsRouterWorkerEventData { +export interface AcsRouterWorkerOfferDeclinedEventData extends AcsRouterWorkerEventData { /** Router Worker Offer Declined Queue Id */ queueId?: string; /** Router Worker Offer Declined Offer Id */ @@ -2800,8 +2826,7 @@ export function acsRouterWorkerOfferDeclinedEventDataDeserializer( } /** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterWorkerOfferExpired event */ -export interface AcsRouterWorkerOfferExpiredEventData - extends AcsRouterWorkerEventData { +export interface AcsRouterWorkerOfferExpiredEventData extends AcsRouterWorkerEventData { /** Router Worker Offer Expired Queue Id */ queueId?: string; /** Router Worker Offer Expired Offer Id */ @@ -2822,8 +2847,7 @@ export function acsRouterWorkerOfferExpiredEventDataDeserializer( } /** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterWorkerOfferIssued event */ -export interface AcsRouterWorkerOfferIssuedEventData - extends AcsRouterWorkerEventData { +export interface AcsRouterWorkerOfferIssuedEventData extends AcsRouterWorkerEventData { /** Router Worker Offer Issued Queue Id */ queueId?: string; /** Router Worker Offer Issued Offer Id */ @@ -2865,8 +2889,7 @@ export function acsRouterWorkerOfferIssuedEventDataDeserializer( } /** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterWorkerOfferRevoked event */ -export interface AcsRouterWorkerOfferRevokedEventData - extends AcsRouterWorkerEventData { +export interface AcsRouterWorkerOfferRevokedEventData extends AcsRouterWorkerEventData { /** Router Worker Offer Revoked Queue Id */ queueId?: string; /** Router Worker Offer Revoked Offer Id */ @@ -2891,9 +2914,9 @@ export interface AcsRouterWorkerRegisteredEventData { /** Router Worker Registered Worker Id */ workerId?: string; /** Router Worker Registered Queue Info */ - queueAssignments: AcsRouterQueueDetails[]; + readonly queueAssignments: AcsRouterQueueDetails[]; /** Router Worker Registered Channel Configuration */ - channelConfigurations: AcsRouterChannelConfiguration[]; + readonly channelConfigurations: AcsRouterChannelConfiguration[]; /** Router Worker Register Total Capacity */ totalCapacity?: number; /** Router Worker Registered Labels */ @@ -2907,9 +2930,7 @@ export function acsRouterWorkerRegisteredEventDataDeserializer( ): AcsRouterWorkerRegisteredEventData { return { workerId: item["workerId"], - queueAssignments: acsRouterQueueDetailsArrayDeserializer( - item["queueAssignments"], - ), + queueAssignments: acsRouterQueueDetailsArrayDeserializer(item["queueAssignments"]), channelConfigurations: acsRouterChannelConfigurationArrayDeserializer( item["channelConfigurations"], ), @@ -2960,9 +2981,9 @@ export interface AcsRouterWorkerUpdatedEventData { /** Router Worker Updated Worker Id */ workerId?: string; /** Router Worker Updated Queue Info */ - queueAssignments: AcsRouterQueueDetails[]; + readonly queueAssignments: AcsRouterQueueDetails[]; /** Router Worker Updated Channel Configuration */ - channelConfigurations: AcsRouterChannelConfiguration[]; + readonly channelConfigurations: AcsRouterChannelConfiguration[]; /** Router Worker Updated Total Capacity */ totalCapacity?: number; /** Router Worker Updated Labels */ @@ -2970,7 +2991,7 @@ export interface AcsRouterWorkerUpdatedEventData { /** Router Worker Updated Tags */ tags: Record; /** Router Worker Properties Updated */ - updatedWorkerProperties: AcsRouterUpdatedWorkerProperty[]; + readonly updatedWorkerProperties: AcsRouterUpdatedWorkerProperty[]; } export function acsRouterWorkerUpdatedEventDataDeserializer( @@ -2978,9 +2999,7 @@ export function acsRouterWorkerUpdatedEventDataDeserializer( ): AcsRouterWorkerUpdatedEventData { return { workerId: item["workerId"], - queueAssignments: acsRouterQueueDetailsArrayDeserializer( - item["queueAssignments"], - ), + queueAssignments: acsRouterQueueDetailsArrayDeserializer(item["queueAssignments"]), channelConfigurations: acsRouterChannelConfigurationArrayDeserializer( item["channelConfigurations"], ), @@ -3035,16 +3054,12 @@ export interface AcsMessageEventData { error?: AcsMessageChannelEventError; } -export function acsMessageEventDataDeserializer( - item: any, -): AcsMessageEventData { +export function acsMessageEventDataDeserializer(item: any): AcsMessageEventData { return { from: item["from"], to: item["to"], receivedTimeStamp: new Date(item["receivedTimeStamp"]), - error: !item["error"] - ? item["error"] - : acsMessageChannelEventErrorDeserializer(item["error"]), + error: !item["error"] ? item["error"] : acsMessageChannelEventErrorDeserializer(item["error"]), }; } @@ -3056,9 +3071,7 @@ export interface AcsMessageChannelEventError { channelMessage?: string; } -export function acsMessageChannelEventErrorDeserializer( - item: any, -): AcsMessageChannelEventError { +export function acsMessageChannelEventErrorDeserializer(item: any): AcsMessageChannelEventError { return { channelCode: item["channelCode"], channelMessage: item["channelMessage"], @@ -3066,8 +3079,7 @@ export function acsMessageChannelEventErrorDeserializer( } /** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.AdvancedMessageDeliveryStatusUpdated event. */ -export interface AcsMessageDeliveryStatusUpdatedEventData - extends AcsMessageEventData { +export interface AcsMessageDeliveryStatusUpdatedEventData extends AcsMessageEventData { /** The message id */ messageId?: string; /** The updated message status */ @@ -3083,9 +3095,7 @@ export function acsMessageDeliveryStatusUpdatedEventDataDeserializer( from: item["from"], to: item["to"], receivedTimeStamp: new Date(item["receivedTimeStamp"]), - error: !item["error"] - ? item["error"] - : acsMessageChannelEventErrorDeserializer(item["error"]), + error: !item["error"] ? item["error"] : acsMessageChannelEventErrorDeserializer(item["error"]), messageId: item["messageId"], status: item["status"], channelKind: item["channelType"], @@ -3095,17 +3105,17 @@ export function acsMessageDeliveryStatusUpdatedEventDataDeserializer( /** Message delivery status */ export enum KnownAcsMessageDeliveryStatus { /** Read */ - read = "read", + Read = "read", /** Delivered */ - delivered = "delivered", + Delivered = "delivered", /** Failed */ - failed = "failed", + Failed = "failed", /** Sent */ - sent = "sent", + Sent = "sent", /** Warning */ - warning = "warning", + Warning = "warning", /** Unknown */ - unknown = "unknown", + Unknown = "unknown", } /** @@ -3125,7 +3135,7 @@ export type AcsMessageDeliveryStatus = string; /** Message channel kind */ export enum KnownAcsMessageChannelKind { /** Updated message channel type is WhatsApp */ - whatsapp = "whatsapp", + Whatsapp = "whatsapp", } /** @@ -3159,16 +3169,12 @@ export interface AcsMessageReceivedEventData extends AcsMessageEventData { interactiveContent?: AcsMessageInteractiveContent; } -export function acsMessageReceivedEventDataDeserializer( - item: any, -): AcsMessageReceivedEventData { +export function acsMessageReceivedEventDataDeserializer(item: any): AcsMessageReceivedEventData { return { from: item["from"], to: item["to"], receivedTimeStamp: new Date(item["receivedTimeStamp"]), - error: !item["error"] - ? item["error"] - : acsMessageChannelEventErrorDeserializer(item["error"]), + error: !item["error"] ? item["error"] : acsMessageChannelEventErrorDeserializer(item["error"]), content: item["content"], messageId: item["messageId"], channelKind: item["channelType"], @@ -3179,12 +3185,8 @@ export function acsMessageReceivedEventDataDeserializer( reaction: !item["reaction"] ? item["reaction"] : acsMessageReactionContentDeserializer(item["reaction"]), - context: !item["context"] - ? item["context"] - : acsMessageContextDeserializer(item["context"]), - button: !item["button"] - ? item["button"] - : acsMessageButtonContentDeserializer(item["button"]), + context: !item["context"] ? item["context"] : acsMessageContextDeserializer(item["context"]), + button: !item["button"] ? item["button"] : acsMessageButtonContentDeserializer(item["button"]), interactiveContent: !item["interactive"] ? item["interactive"] : acsMessageInteractiveContentDeserializer(item["interactive"]), @@ -3205,9 +3207,7 @@ export interface AcsMessageMediaContent { animated?: boolean; } -export function acsMessageMediaContentDeserializer( - item: any, -): AcsMessageMediaContent { +export function acsMessageMediaContentDeserializer(item: any): AcsMessageMediaContent { return { mimeType: item["mimeType"], mediaId: item["id"], @@ -3225,9 +3225,7 @@ export interface AcsMessageReactionContent { emoji?: string; } -export function acsMessageReactionContentDeserializer( - item: any, -): AcsMessageReactionContent { +export function acsMessageReactionContentDeserializer(item: any): AcsMessageReactionContent { return { messageId: item["messageId"], emoji: item["emoji"], @@ -3257,9 +3255,7 @@ export interface AcsMessageButtonContent { payload?: string; } -export function acsMessageButtonContentDeserializer( - item: any, -): AcsMessageButtonContent { +export function acsMessageButtonContentDeserializer(item: any): AcsMessageButtonContent { return { text: item["text"], payload: item["payload"], @@ -3276,16 +3272,12 @@ export interface AcsMessageInteractiveContent { listReply?: AcsMessageInteractiveListReplyContent; } -export function acsMessageInteractiveContentDeserializer( - item: any, -): AcsMessageInteractiveContent { +export function acsMessageInteractiveContentDeserializer(item: any): AcsMessageInteractiveContent { return { replyKind: item["type"], buttonReply: !item["buttonReply"] ? item["buttonReply"] - : acsMessageInteractiveButtonReplyContentDeserializer( - item["buttonReply"], - ), + : acsMessageInteractiveButtonReplyContentDeserializer(item["buttonReply"]), listReply: !item["listReply"] ? item["listReply"] : acsMessageInteractiveListReplyContentDeserializer(item["listReply"]), @@ -3295,11 +3287,11 @@ export function acsMessageInteractiveContentDeserializer( /** Interactive reply kind */ export enum KnownAcsInteractiveReplyKind { /** Messaged interactive reply type is ButtonReply */ - buttonReply = "buttonReply", + ButtonReply = "buttonReply", /** Messaged interactive reply type is ListReply */ - listReply = "listReply", + ListReply = "listReply", /** Messaged interactive reply type is Unknown */ - unknown = "unknown", + Unknown = "unknown", } /** @@ -3372,9 +3364,7 @@ export interface ContainerRegistryEventData { connectedRegistry?: ContainerRegistryEventConnectedRegistry; } -export function containerRegistryEventDataDeserializer( - item: any, -): ContainerRegistryEventData { +export function containerRegistryEventDataDeserializer(item: any): ContainerRegistryEventData { return { id: item["id"], timestamp: new Date(item["timestamp"]), @@ -3384,17 +3374,13 @@ export function containerRegistryEventDataDeserializer( request: !item["request"] ? item["request"] : containerRegistryEventRequestDeserializer(item["request"]), - actor: !item["actor"] - ? item["actor"] - : containerRegistryEventActorDeserializer(item["actor"]), + actor: !item["actor"] ? item["actor"] : containerRegistryEventActorDeserializer(item["actor"]), source: !item["source"] ? item["source"] : containerRegistryEventSourceDeserializer(item["source"]), connectedRegistry: !item["connectedRegistry"] ? item["connectedRegistry"] - : containerRegistryEventConnectedRegistryDeserializer( - item["connectedRegistry"], - ), + : containerRegistryEventConnectedRegistryDeserializer(item["connectedRegistry"]), }; } @@ -3416,9 +3402,7 @@ export interface ContainerRegistryEventTarget { tag?: string; } -export function containerRegistryEventTargetDeserializer( - item: any, -): ContainerRegistryEventTarget { +export function containerRegistryEventTargetDeserializer(item: any): ContainerRegistryEventTarget { return { mediaType: item["mediaType"], size: item["size"], @@ -3462,9 +3446,7 @@ export interface ContainerRegistryEventActor { name?: string; } -export function containerRegistryEventActorDeserializer( - item: any, -): ContainerRegistryEventActor { +export function containerRegistryEventActorDeserializer(item: any): ContainerRegistryEventActor { return { name: item["name"], }; @@ -3478,9 +3460,7 @@ export interface ContainerRegistryEventSource { instanceID?: string; } -export function containerRegistryEventSourceDeserializer( - item: any, -): ContainerRegistryEventSource { +export function containerRegistryEventSourceDeserializer(item: any): ContainerRegistryEventSource { return { addr: item["addr"], instanceID: item["instanceID"], @@ -3502,8 +3482,7 @@ export function containerRegistryEventConnectedRegistryDeserializer( } /** Schema of the Data property of an EventGridEvent for a Microsoft.ContainerRegistry.ImagePushed event. */ -export interface ContainerRegistryImagePushedEventData - extends ContainerRegistryEventData {} +export interface ContainerRegistryImagePushedEventData extends ContainerRegistryEventData {} export function containerRegistryImagePushedEventDataDeserializer( item: any, @@ -3517,23 +3496,18 @@ export function containerRegistryImagePushedEventDataDeserializer( request: !item["request"] ? item["request"] : containerRegistryEventRequestDeserializer(item["request"]), - actor: !item["actor"] - ? item["actor"] - : containerRegistryEventActorDeserializer(item["actor"]), + actor: !item["actor"] ? item["actor"] : containerRegistryEventActorDeserializer(item["actor"]), source: !item["source"] ? item["source"] : containerRegistryEventSourceDeserializer(item["source"]), connectedRegistry: !item["connectedRegistry"] ? item["connectedRegistry"] - : containerRegistryEventConnectedRegistryDeserializer( - item["connectedRegistry"], - ), + : containerRegistryEventConnectedRegistryDeserializer(item["connectedRegistry"]), }; } /** Schema of the Data property of an EventGridEvent for a Microsoft.ContainerRegistry.ImageDeleted event. */ -export interface ContainerRegistryImageDeletedEventData - extends ContainerRegistryEventData {} +export interface ContainerRegistryImageDeletedEventData extends ContainerRegistryEventData {} export function containerRegistryImageDeletedEventDataDeserializer( item: any, @@ -3547,17 +3521,13 @@ export function containerRegistryImageDeletedEventDataDeserializer( request: !item["request"] ? item["request"] : containerRegistryEventRequestDeserializer(item["request"]), - actor: !item["actor"] - ? item["actor"] - : containerRegistryEventActorDeserializer(item["actor"]), + actor: !item["actor"] ? item["actor"] : containerRegistryEventActorDeserializer(item["actor"]), source: !item["source"] ? item["source"] : containerRegistryEventSourceDeserializer(item["source"]), connectedRegistry: !item["connectedRegistry"] ? item["connectedRegistry"] - : containerRegistryEventConnectedRegistryDeserializer( - item["connectedRegistry"], - ), + : containerRegistryEventConnectedRegistryDeserializer(item["connectedRegistry"]), }; } @@ -3588,9 +3558,7 @@ export function containerRegistryArtifactEventDataDeserializer( target: containerRegistryArtifactEventTargetDeserializer(item["target"]), connectedRegistry: !item["connectedRegistry"] ? item["connectedRegistry"] - : containerRegistryEventConnectedRegistryDeserializer( - item["connectedRegistry"], - ), + : containerRegistryEventConnectedRegistryDeserializer(item["connectedRegistry"]), }; } @@ -3627,8 +3595,7 @@ export function containerRegistryArtifactEventTargetDeserializer( } /** Schema of the Data property of an EventGridEvent for a Microsoft.ContainerRegistry.ChartPushed event. */ -export interface ContainerRegistryChartPushedEventData - extends ContainerRegistryArtifactEventData {} +export interface ContainerRegistryChartPushedEventData extends ContainerRegistryArtifactEventData {} export function containerRegistryChartPushedEventDataDeserializer( item: any, @@ -3641,9 +3608,7 @@ export function containerRegistryChartPushedEventDataDeserializer( target: containerRegistryArtifactEventTargetDeserializer(item["target"]), connectedRegistry: !item["connectedRegistry"] ? item["connectedRegistry"] - : containerRegistryEventConnectedRegistryDeserializer( - item["connectedRegistry"], - ), + : containerRegistryEventConnectedRegistryDeserializer(item["connectedRegistry"]), }; } @@ -3662,20 +3627,18 @@ export function containerRegistryChartDeletedEventDataDeserializer( target: containerRegistryArtifactEventTargetDeserializer(item["target"]), connectedRegistry: !item["connectedRegistry"] ? item["connectedRegistry"] - : containerRegistryEventConnectedRegistryDeserializer( - item["connectedRegistry"], - ), + : containerRegistryEventConnectedRegistryDeserializer(item["connectedRegistry"]), }; } /** 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; + latestSupportedKubernetesVersion: string; /** The highest PATCH Kubernetes version for the MINOR version considered stable for the ManagedCluster resource */ - latestStableKubernetesVersion?: string; + latestStableKubernetesVersion: string; /** The highest PATCH Kubernetes version for the lowest applicable MINOR version available for the ManagedCluster resource */ - lowestMinorKubernetesVersion?: string; + 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; } @@ -3694,7 +3657,7 @@ export function containerServiceNewKubernetesVersionAvailableEventDataDeserializ /** Schema of common properties of cluster support events */ export interface ContainerServiceClusterSupportEventData { /** The Kubernetes version of the ManagedCluster resource */ - kubernetesVersion?: string; + kubernetesVersion: string; } export function containerServiceClusterSupportEventDataDeserializer( @@ -3732,7 +3695,7 @@ export function containerServiceClusterSupportEndingEventDataDeserializer( /** Schema of common properties of node pool rolling events */ export interface ContainerServiceNodePoolRollingEventData { /** The name of the node pool in the ManagedCluster resource */ - nodePoolName?: string; + nodePoolName: string; } export function containerServiceNodePoolRollingEventDataDeserializer( @@ -3789,9 +3752,7 @@ export interface DataBoxCopyStartedEventData { stageTime: Date; } -export function dataBoxCopyStartedEventDataDeserializer( - item: any, -): DataBoxCopyStartedEventData { +export function dataBoxCopyStartedEventDataDeserializer(item: any): DataBoxCopyStartedEventData { return { serialNumber: item["serialNumber"], stageName: item["stageName"], @@ -3860,22 +3821,54 @@ export function dataBoxOrderCompletedEventDataDeserializer( }; } +/** Schema of the Data property of an EventGridEvent for a Microsoft.Edge.SolutionVersionPublished event. */ +export interface EdgeSolutionVersionPublishedEventData { + /** A GUID to uniquely track External Solution Validation */ + externalValidationId: string; + /** ARM ID of the Target resource */ + targetId: string; + /** ARM ID of the Solution Template resource */ + solutionTemplateId: string; + /** ARM ID of the Solution Template Version resource */ + solutionTemplateVersionId: string; + /** ARM ID of the Solution Version resource */ + solutionVersionId: string; + /** API Version supported for the resources */ + apiVersion: string; + /** Direct URL to callback for updating validation status */ + callbackUrl: string; +} + +export function edgeSolutionVersionPublishedEventDataDeserializer( + item: any, +): EdgeSolutionVersionPublishedEventData { + return { + externalValidationId: item["externalValidationId"], + targetId: item["targetId"], + solutionTemplateId: item["solutionTemplateId"], + solutionTemplateVersionId: item["solutionTemplateVersionId"], + solutionVersionId: item["solutionVersionId"], + apiVersion: item["apiVersion"], + callbackUrl: item["callbackUrl"], + }; +} + /** 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; + fileUrl: string; /** The file type of the capture file. */ - fileType?: string; + fileType: string; /** The shard ID. */ - partitionId?: string; + partitionId: string; /** The file size. */ - sizeInBytes?: number; + sizeInBytes: number; /** The number of events in the file. */ - eventCount?: number; + eventCount: number; /** The smallest sequence number from the queue. */ - firstSequenceNumber?: number; + firstSequenceNumber: number; /** The last sequence number from the queue. */ - lastSequenceNumber?: number; + lastSequenceNumber: number; /** The first time from the queue. */ firstEnqueueTime: Date; /** The last time from the queue. */ @@ -3901,35 +3894,29 @@ export function eventHubCaptureFileCreatedEventDataDeserializer( /** 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[]; + readonly 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[]; + readonly 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[]; + readonly 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; } export function mapsGeofenceEventDeserializer(item: any): MapsGeofenceEvent { return { - expiredGeofenceGeometryId: item["expiredGeofenceGeometryId"].map( - (p: any) => { - return p; - }, - ), + expiredGeofenceGeometryId: item["expiredGeofenceGeometryId"].map((p: any) => { + return p; + }), geometries: mapsGeofenceGeometryArrayDeserializer(item["geometries"]), - invalidPeriodGeofenceGeometryId: item[ - "invalidPeriodGeofenceGeometryId" - ].map((p: any) => { + invalidPeriodGeofenceGeometryId: item["invalidPeriodGeofenceGeometryId"].map((p: any) => { return p; }), isEventPublished: item["isEventPublished"], }; } -export function mapsGeofenceGeometryArrayDeserializer( - result: Array, -): any[] { +export function mapsGeofenceGeometryArrayDeserializer(result: Array): any[] { return result.map((item) => { return mapsGeofenceGeometryDeserializer(item); }); @@ -3951,9 +3938,7 @@ export interface MapsGeofenceGeometry { udId?: string; } -export function mapsGeofenceGeometryDeserializer( - item: any, -): MapsGeofenceGeometry { +export function mapsGeofenceGeometryDeserializer(item: any): MapsGeofenceGeometry { return { deviceId: item["deviceId"], distance: item["distance"], @@ -3967,19 +3952,13 @@ export function mapsGeofenceGeometryDeserializer( /** Schema of the Data property of an EventGridEvent for a Microsoft.Maps.GeofenceEntered event. */ export interface MapsGeofenceEnteredEventData extends MapsGeofenceEvent {} -export function mapsGeofenceEnteredEventDataDeserializer( - item: any, -): MapsGeofenceEnteredEventData { +export function mapsGeofenceEnteredEventDataDeserializer(item: any): MapsGeofenceEnteredEventData { return { - expiredGeofenceGeometryId: item["expiredGeofenceGeometryId"].map( - (p: any) => { - return p; - }, - ), + expiredGeofenceGeometryId: item["expiredGeofenceGeometryId"].map((p: any) => { + return p; + }), geometries: mapsGeofenceGeometryArrayDeserializer(item["geometries"]), - invalidPeriodGeofenceGeometryId: item[ - "invalidPeriodGeofenceGeometryId" - ].map((p: any) => { + invalidPeriodGeofenceGeometryId: item["invalidPeriodGeofenceGeometryId"].map((p: any) => { return p; }), isEventPublished: item["isEventPublished"], @@ -3989,19 +3968,13 @@ export function mapsGeofenceEnteredEventDataDeserializer( /** Schema of the Data property of an EventGridEvent for a Microsoft.Maps.GeofenceExited event. */ export interface MapsGeofenceExitedEventData extends MapsGeofenceEvent {} -export function mapsGeofenceExitedEventDataDeserializer( - item: any, -): MapsGeofenceExitedEventData { +export function mapsGeofenceExitedEventDataDeserializer(item: any): MapsGeofenceExitedEventData { return { - expiredGeofenceGeometryId: item["expiredGeofenceGeometryId"].map( - (p: any) => { - return p; - }, - ), + expiredGeofenceGeometryId: item["expiredGeofenceGeometryId"].map((p: any) => { + return p; + }), geometries: mapsGeofenceGeometryArrayDeserializer(item["geometries"]), - invalidPeriodGeofenceGeometryId: item[ - "invalidPeriodGeofenceGeometryId" - ].map((p: any) => { + invalidPeriodGeofenceGeometryId: item["invalidPeriodGeofenceGeometryId"].map((p: any) => { return p; }), isEventPublished: item["isEventPublished"], @@ -4011,19 +3984,13 @@ export function mapsGeofenceExitedEventDataDeserializer( /** Schema of the Data property of an EventGridEvent for a Microsoft.Maps.GeofenceResult event. */ export interface MapsGeofenceResultEventData extends MapsGeofenceEvent {} -export function mapsGeofenceResultEventDataDeserializer( - item: any, -): MapsGeofenceResultEventData { +export function mapsGeofenceResultEventDataDeserializer(item: any): MapsGeofenceResultEventData { return { - expiredGeofenceGeometryId: item["expiredGeofenceGeometryId"].map( - (p: any) => { - return p; - }, - ), + expiredGeofenceGeometryId: item["expiredGeofenceGeometryId"].map((p: any) => { + return p; + }), geometries: mapsGeofenceGeometryArrayDeserializer(item["geometries"]), - invalidPeriodGeofenceGeometryId: item[ - "invalidPeriodGeofenceGeometryId" - ].map((p: any) => { + invalidPeriodGeofenceGeometryId: item["invalidPeriodGeofenceGeometryId"].map((p: any) => { return p; }), isEventPublished: item["isEventPublished"], @@ -4040,9 +4007,7 @@ export interface DeviceLifeCycleEvent { twin: DeviceTwinInfo; } -export function deviceLifeCycleEventDeserializer( - item: any, -): DeviceLifeCycleEvent { +export function deviceLifeCycleEventDeserializer(item: any): DeviceLifeCycleEvent { return { deviceId: item["deviceId"], hubName: item["hubName"], @@ -4088,9 +4053,7 @@ export function deviceTwinInfoDeserializer(item: any): DeviceTwinInfo { status: item["status"], statusUpdateTime: item["statusUpdateTime"], version: item["version"], - x509Thumbprint: deviceTwinInfoX509ThumbprintDeserializer( - item["x509Thumbprint"], - ), + x509Thumbprint: deviceTwinInfoX509ThumbprintDeserializer(item["x509Thumbprint"]), }; } @@ -4102,9 +4065,7 @@ export interface DeviceTwinInfoProperties { reported: DeviceTwin; } -export function deviceTwinInfoPropertiesDeserializer( - item: any, -): DeviceTwinInfoProperties { +export function deviceTwinInfoPropertiesDeserializer(item: any): DeviceTwinInfoProperties { return { desired: deviceTwinDeserializer(item["desired"]), reported: deviceTwinDeserializer(item["reported"]), @@ -4146,9 +4107,7 @@ export interface DeviceTwinInfoX509Thumbprint { secondaryThumbprint: string; } -export function deviceTwinInfoX509ThumbprintDeserializer( - item: any, -): DeviceTwinInfoX509Thumbprint { +export function deviceTwinInfoX509ThumbprintDeserializer(item: any): DeviceTwinInfoX509Thumbprint { return { primaryThumbprint: item["primaryThumbprint"], secondaryThumbprint: item["secondaryThumbprint"], @@ -4167,9 +4126,7 @@ export interface DeviceConnectionStateEvent { deviceConnectionStateEventInfo: DeviceConnectionStateEventInfo; } -export function deviceConnectionStateEventDeserializer( - item: any, -): DeviceConnectionStateEvent { +export function deviceConnectionStateEventDeserializer(item: any): DeviceConnectionStateEvent { return { deviceId: item["deviceId"], moduleId: item["moduleId"], @@ -4204,9 +4161,7 @@ export interface DeviceTelemetryEvent { systemProperties: Record; } -export function deviceTelemetryEventDeserializer( - item: any, -): DeviceTelemetryEvent { +export function deviceTelemetryEventDeserializer(item: any): DeviceTelemetryEvent { return { body: item["body"], properties: item["properties"], @@ -4217,9 +4172,7 @@ export function deviceTelemetryEventDeserializer( /** Event data for Microsoft.Devices.DeviceCreated event. */ export interface IotHubDeviceCreatedEventData extends DeviceLifeCycleEvent {} -export function iotHubDeviceCreatedEventDataDeserializer( - item: any, -): IotHubDeviceCreatedEventData { +export function iotHubDeviceCreatedEventDataDeserializer(item: any): IotHubDeviceCreatedEventData { return { deviceId: item["deviceId"], hubName: item["hubName"], @@ -4230,9 +4183,7 @@ export function iotHubDeviceCreatedEventDataDeserializer( /** Event data for Microsoft.Devices.DeviceDeleted event. */ export interface IotHubDeviceDeletedEventData extends DeviceLifeCycleEvent {} -export function iotHubDeviceDeletedEventDataDeserializer( - item: any, -): IotHubDeviceDeletedEventData { +export function iotHubDeviceDeletedEventDataDeserializer(item: any): IotHubDeviceDeletedEventData { return { deviceId: item["deviceId"], hubName: item["hubName"], @@ -4241,8 +4192,7 @@ export function iotHubDeviceDeletedEventDataDeserializer( } /** Event data for Microsoft.Devices.DeviceConnected event. */ -export interface IotHubDeviceConnectedEventData - extends DeviceConnectionStateEvent {} +export interface IotHubDeviceConnectedEventData extends DeviceConnectionStateEvent {} export function iotHubDeviceConnectedEventDataDeserializer( item: any, @@ -4258,8 +4208,7 @@ export function iotHubDeviceConnectedEventDataDeserializer( } /** Event data for Microsoft.Devices.DeviceDisconnected event. */ -export interface IotHubDeviceDisconnectedEventData - extends DeviceConnectionStateEvent {} +export interface IotHubDeviceDisconnectedEventData extends DeviceConnectionStateEvent {} export function iotHubDeviceDisconnectedEventDataDeserializer( item: any, @@ -5116,9 +5065,7 @@ export interface KeyVaultKeyExpiredEventData { exp: number; } -export function keyVaultKeyExpiredEventDataDeserializer( - item: any, -): KeyVaultKeyExpiredEventData { +export function keyVaultKeyExpiredEventDataDeserializer(item: any): KeyVaultKeyExpiredEventData { return { id: item["Id"], vaultName: item["VaultName"], @@ -5261,13 +5208,13 @@ export function keyVaultAccessPolicyChangedEventDataDeserializer( /** 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; + modelName: string; /** The version of the model that was registered. */ - modelVersion?: string; + modelVersion: string; /** The tags of the model that was registered. */ - modelTags: Record; + modelTags?: Record; /** The properties of the model that was registered. */ - modelProperties: Record; + modelProperties?: Record; } export function machineLearningServicesModelRegisteredEventDataDeserializer( @@ -5284,15 +5231,15 @@ export function machineLearningServicesModelRegisteredEventDataDeserializer( /** 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; + serviceName: string; /** The compute type (e.g. ACI, AKS) of the deployed service. */ - serviceComputeType?: string; + serviceComputeType: string; /** A common separated list of model IDs. The IDs of the models deployed in the service. */ - modelIds?: string; + modelIds: string; /** The tags of the deployed service. */ - serviceTags: Record; + serviceTags?: Record; /** The properties of the deployed service. */ - serviceProperties: Record; + serviceProperties?: Record; } export function machineLearningServicesModelDeployedEventDataDeserializer( @@ -5310,17 +5257,17 @@ export function machineLearningServicesModelDeployedEventDataDeserializer( /** 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; + experimentId: string; /** The name of the experiment that the run belongs to. */ - experimentName?: string; + experimentName: string; /** The ID of the Run that was completed. */ - runId?: string; + runId: string; /** The Run Type of the completed Run. */ - runType?: string; + runType: string; /** The tags of the completed Run. */ - runTags: Record; + runTags?: Record; /** The properties of the completed Run. */ - runProperties: Record; + runProperties?: Record; } export function machineLearningServicesRunCompletedEventDataDeserializer( @@ -5339,21 +5286,21 @@ export function machineLearningServicesRunCompletedEventDataDeserializer( /** 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; + dataDriftId: string; /** The name of the data drift monitor that triggered the event. */ - dataDriftName?: string; + dataDriftName: string; /** The ID of the Run that detected data drift. */ - runId?: string; + runId: string; /** The ID of the base Dataset used to detect drift. */ - baseDatasetId?: string; + baseDatasetId: string; /** The ID of the target Dataset used to detect drift. */ - targetDatasetId?: string; + targetDatasetId: string; /** The coefficient result that triggered the event. */ - driftCoefficient?: number; + driftCoefficient: number; /** The start time of the target dataset time series that resulted in drift detection. */ - startTime: Date; + startTime: Date | null; /** The end time of the target dataset time series that resulted in drift detection. */ - endTime: Date; + endTime: Date | null; } export function machineLearningServicesDatasetDriftDetectedEventDataDeserializer( @@ -5366,27 +5313,27 @@ export function machineLearningServicesDatasetDriftDetectedEventDataDeserializer baseDatasetId: item["baseDatasetId"], targetDatasetId: item["targetDatasetId"], driftCoefficient: item["driftCoefficient"], - startTime: new Date(item["startTime"]), - endTime: new Date(item["endTime"]), + startTime: !item["startTime"] ? item["startTime"] : new Date(item["startTime"]), + endTime: !item["endTime"] ? item["endTime"] : new Date(item["endTime"]), }; } /** 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; + experimentId: string; /** The name of the experiment that the Machine Learning Run belongs to. */ - experimentName?: string; + experimentName: string; /** The ID of the Machine Learning Run. */ - runId?: string; + runId: string; /** The Run Type of the Machine Learning Run. */ - runType?: string; + runType: string; /** The tags of the Machine Learning Run. */ - runTags: Record; + runTags?: Record; /** The properties of the Machine Learning Run. */ - runProperties: Record; + runProperties?: Record; /** The status of the Machine Learning Run. */ - runStatus?: string; + runStatus: string; } export function machineLearningServicesRunStatusChangedEventDataDeserializer( @@ -5513,9 +5460,7 @@ export function redisPatchingCompletedEventDataDeserializer( item: any, ): RedisPatchingCompletedEventData { return { - timestamp: !item["timestamp"] - ? item["timestamp"] - : new Date(item["timestamp"]), + timestamp: !item["timestamp"] ? item["timestamp"] : new Date(item["timestamp"]), name: item["name"], status: item["status"], }; @@ -5535,9 +5480,7 @@ export function redisScalingCompletedEventDataDeserializer( item: any, ): RedisScalingCompletedEventData { return { - timestamp: !item["timestamp"] - ? item["timestamp"] - : new Date(item["timestamp"]), + timestamp: !item["timestamp"] ? item["timestamp"] : new Date(item["timestamp"]), name: item["name"], status: item["status"], }; @@ -5557,9 +5500,7 @@ export function redisExportRDBCompletedEventDataDeserializer( item: any, ): RedisExportRDBCompletedEventData { return { - timestamp: !item["timestamp"] - ? item["timestamp"] - : new Date(item["timestamp"]), + timestamp: !item["timestamp"] ? item["timestamp"] : new Date(item["timestamp"]), name: item["name"], status: item["status"], }; @@ -5579,9 +5520,7 @@ export function redisImportRDBCompletedEventDataDeserializer( item: any, ): RedisImportRDBCompletedEventData { return { - timestamp: !item["timestamp"] - ? item["timestamp"] - : new Date(item["timestamp"]), + timestamp: !item["timestamp"] ? item["timestamp"] : new Date(item["timestamp"]), name: item["name"], status: item["status"], }; @@ -5641,9 +5580,7 @@ export interface ResourceAuthorization { evidence: Record; } -export function resourceAuthorizationDeserializer( - item: any, -): ResourceAuthorization { +export function resourceAuthorizationDeserializer(item: any): ResourceAuthorization { return { scope: item["scope"], action: item["action"], @@ -5663,9 +5600,7 @@ export interface ResourceHttpRequest { url?: string; } -export function resourceHttpRequestDeserializer( - item: any, -): ResourceHttpRequest { +export function resourceHttpRequestDeserializer(item: any): ResourceHttpRequest { return { clientRequestId: item["clientRequestId"], clientIpAddress: item["clientIpAddress"], @@ -5744,9 +5679,7 @@ export interface ResourceWriteCancelEventData { httpRequest: ResourceHttpRequest; } -export function resourceWriteCancelEventDataDeserializer( - item: any, -): ResourceWriteCancelEventData { +export function resourceWriteCancelEventDataDeserializer(item: any): ResourceWriteCancelEventData { return { tenantId: item["tenantId"], subscriptionId: item["subscriptionId"], @@ -6221,9 +6154,7 @@ export interface StorageBlobCreatedEventData { storageDiagnostics: Record; } -export function storageBlobCreatedEventDataDeserializer( - item: any, -): StorageBlobCreatedEventData { +export function storageBlobCreatedEventDataDeserializer(item: any): StorageBlobCreatedEventData { return { api: item["api"], clientRequestId: item["clientRequestId"], @@ -6290,9 +6221,7 @@ export interface StorageBlobDeletedEventData { storageDiagnostics: Record; } -export function storageBlobDeletedEventDataDeserializer( - item: any, -): StorageBlobDeletedEventData { +export function storageBlobDeletedEventDataDeserializer(item: any): StorageBlobDeletedEventData { return { api: item["api"], clientRequestId: item["clientRequestId"], @@ -6396,9 +6325,7 @@ export interface StorageBlobRenamedEventData { storageDiagnostics: Record; } -export function storageBlobRenamedEventDataDeserializer( - item: any, -): StorageBlobRenamedEventData { +export function storageBlobRenamedEventDataDeserializer(item: any): StorageBlobRenamedEventData { return { api: item["api"], clientRequestId: item["clientRequestId"], @@ -6467,12 +6394,8 @@ export function storageLifecyclePolicyCompletedEventDataDeserializer( ): StorageLifecyclePolicyCompletedEventData { return { scheduleTime: item["scheduleTime"], - policyRunSummary: storageLifecyclePolicyRunSummaryDeserializer( - item["policyRunSummary"], - ), - deleteSummary: storageLifecyclePolicyActionSummaryDetailDeserializer( - item["deleteSummary"], - ), + policyRunSummary: storageLifecyclePolicyRunSummaryDeserializer(item["policyRunSummary"]), + deleteSummary: storageLifecyclePolicyActionSummaryDetailDeserializer(item["deleteSummary"]), tierToCoolSummary: storageLifecyclePolicyActionSummaryDetailDeserializer( item["tierToCoolSummary"], ), @@ -6712,9 +6635,7 @@ export interface StorageTaskQueuedEventData { taskExecutionId?: string; } -export function storageTaskQueuedEventDataDeserializer( - item: any, -): StorageTaskQueuedEventData { +export function storageTaskQueuedEventDataDeserializer(item: any): StorageTaskQueuedEventData { return { queuedDateTime: new Date(item["queuedDateTime"]), taskExecutionId: item["taskExecutionId"], @@ -6842,13 +6763,9 @@ export interface WebAppUpdatedEventData { verb?: string; } -export function webAppUpdatedEventDataDeserializer( - item: any, -): WebAppUpdatedEventData { +export function webAppUpdatedEventDataDeserializer(item: any): WebAppUpdatedEventData { return { - appEventTypeDetail: appEventTypeDetailDeserializer( - item["appEventTypeDetail"], - ), + appEventTypeDetail: appEventTypeDetailDeserializer(item["appEventTypeDetail"]), name: item["name"], clientRequestId: item["clientRequestId"], correlationRequestId: item["correlationRequestId"], @@ -6880,9 +6797,7 @@ export function webBackupOperationStartedEventDataDeserializer( item: any, ): WebBackupOperationStartedEventData { return { - appEventTypeDetail: appEventTypeDetailDeserializer( - item["appEventTypeDetail"], - ), + appEventTypeDetail: appEventTypeDetailDeserializer(item["appEventTypeDetail"]), name: item["name"], clientRequestId: item["clientRequestId"], correlationRequestId: item["correlationRequestId"], @@ -6914,9 +6829,7 @@ export function webBackupOperationCompletedEventDataDeserializer( item: any, ): WebBackupOperationCompletedEventData { return { - appEventTypeDetail: appEventTypeDetailDeserializer( - item["appEventTypeDetail"], - ), + appEventTypeDetail: appEventTypeDetailDeserializer(item["appEventTypeDetail"]), name: item["name"], clientRequestId: item["clientRequestId"], correlationRequestId: item["correlationRequestId"], @@ -6948,9 +6861,7 @@ export function webBackupOperationFailedEventDataDeserializer( item: any, ): WebBackupOperationFailedEventData { return { - appEventTypeDetail: appEventTypeDetailDeserializer( - item["appEventTypeDetail"], - ), + appEventTypeDetail: appEventTypeDetailDeserializer(item["appEventTypeDetail"]), name: item["name"], clientRequestId: item["clientRequestId"], correlationRequestId: item["correlationRequestId"], @@ -6982,9 +6893,7 @@ export function webRestoreOperationStartedEventDataDeserializer( item: any, ): WebRestoreOperationStartedEventData { return { - appEventTypeDetail: appEventTypeDetailDeserializer( - item["appEventTypeDetail"], - ), + appEventTypeDetail: appEventTypeDetailDeserializer(item["appEventTypeDetail"]), name: item["name"], clientRequestId: item["clientRequestId"], correlationRequestId: item["correlationRequestId"], @@ -7016,9 +6925,7 @@ export function webRestoreOperationCompletedEventDataDeserializer( item: any, ): WebRestoreOperationCompletedEventData { return { - appEventTypeDetail: appEventTypeDetailDeserializer( - item["appEventTypeDetail"], - ), + appEventTypeDetail: appEventTypeDetailDeserializer(item["appEventTypeDetail"]), name: item["name"], clientRequestId: item["clientRequestId"], correlationRequestId: item["correlationRequestId"], @@ -7050,9 +6957,7 @@ export function webRestoreOperationFailedEventDataDeserializer( item: any, ): WebRestoreOperationFailedEventData { return { - appEventTypeDetail: appEventTypeDetailDeserializer( - item["appEventTypeDetail"], - ), + appEventTypeDetail: appEventTypeDetailDeserializer(item["appEventTypeDetail"]), name: item["name"], clientRequestId: item["clientRequestId"], correlationRequestId: item["correlationRequestId"], @@ -7080,13 +6985,9 @@ export interface WebSlotSwapStartedEventData { verb?: string; } -export function webSlotSwapStartedEventDataDeserializer( - item: any, -): WebSlotSwapStartedEventData { +export function webSlotSwapStartedEventDataDeserializer(item: any): WebSlotSwapStartedEventData { return { - appEventTypeDetail: appEventTypeDetailDeserializer( - item["appEventTypeDetail"], - ), + appEventTypeDetail: appEventTypeDetailDeserializer(item["appEventTypeDetail"]), name: item["name"], clientRequestId: item["clientRequestId"], correlationRequestId: item["correlationRequestId"], @@ -7118,9 +7019,7 @@ export function webSlotSwapCompletedEventDataDeserializer( item: any, ): WebSlotSwapCompletedEventData { return { - appEventTypeDetail: appEventTypeDetailDeserializer( - item["appEventTypeDetail"], - ), + appEventTypeDetail: appEventTypeDetailDeserializer(item["appEventTypeDetail"]), name: item["name"], clientRequestId: item["clientRequestId"], correlationRequestId: item["correlationRequestId"], @@ -7148,13 +7047,9 @@ export interface WebSlotSwapFailedEventData { verb?: string; } -export function webSlotSwapFailedEventDataDeserializer( - item: any, -): WebSlotSwapFailedEventData { +export function webSlotSwapFailedEventDataDeserializer(item: any): WebSlotSwapFailedEventData { return { - appEventTypeDetail: appEventTypeDetailDeserializer( - item["appEventTypeDetail"], - ), + appEventTypeDetail: appEventTypeDetailDeserializer(item["appEventTypeDetail"]), name: item["name"], clientRequestId: item["clientRequestId"], correlationRequestId: item["correlationRequestId"], @@ -7186,9 +7081,7 @@ export function webSlotSwapWithPreviewStartedEventDataDeserializer( item: any, ): WebSlotSwapWithPreviewStartedEventData { return { - appEventTypeDetail: appEventTypeDetailDeserializer( - item["appEventTypeDetail"], - ), + appEventTypeDetail: appEventTypeDetailDeserializer(item["appEventTypeDetail"]), name: item["name"], clientRequestId: item["clientRequestId"], correlationRequestId: item["correlationRequestId"], @@ -7220,9 +7113,7 @@ export function webSlotSwapWithPreviewCancelledEventDataDeserializer( item: any, ): WebSlotSwapWithPreviewCancelledEventData { return { - appEventTypeDetail: appEventTypeDetailDeserializer( - item["appEventTypeDetail"], - ), + appEventTypeDetail: appEventTypeDetailDeserializer(item["appEventTypeDetail"]), name: item["name"], clientRequestId: item["clientRequestId"], correlationRequestId: item["correlationRequestId"], @@ -7425,9 +7316,7 @@ export interface SubscriptionDeletedEventData { eventSubscriptionId: string; } -export function subscriptionDeletedEventDataDeserializer( - item: any, -): SubscriptionDeletedEventData { +export function subscriptionDeletedEventDataDeserializer(item: any): SubscriptionDeletedEventData { return { eventSubscriptionId: item["eventSubscriptionId"], }; @@ -7447,9 +7336,7 @@ export interface EventGridMqttClientEventData { namespaceName: string; } -export function eventGridMqttClientEventDataDeserializer( - item: any, -): EventGridMqttClientEventData { +export function eventGridMqttClientEventDataDeserializer(item: any): EventGridMqttClientEventData { return { clientAuthenticationName: item["clientAuthenticationName"], clientName: item["clientName"], @@ -7458,8 +7345,7 @@ export function eventGridMqttClientEventDataDeserializer( } /** Event data for Microsoft.EventGrid.MQTTClientCreatedOrUpdated event. */ -export interface EventGridMqttClientCreatedOrUpdatedEventData - extends EventGridMqttClientEventData { +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. */ @@ -7507,8 +7393,7 @@ export enum KnownEventGridMqttClientState { export type EventGridMqttClientState = string; /** Event data for Microsoft.EventGrid.MQTTClientDeleted event. */ -export interface EventGridMqttClientDeletedEventData - extends EventGridMqttClientEventData {} +export interface EventGridMqttClientDeletedEventData extends EventGridMqttClientEventData {} export function eventGridMqttClientDeletedEventDataDeserializer( item: any, @@ -7521,8 +7406,7 @@ export function eventGridMqttClientDeletedEventDataDeserializer( } /** Event data for Microsoft.EventGrid.MQTTClientSessionConnected event. */ -export interface EventGridMqttClientSessionConnectedEventData - extends EventGridMqttClientEventData { +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. @@ -7641,9 +7525,7 @@ export function resourceNotificationsResourceUpdatedEventDataDeserializer( item: any, ): ResourceNotificationsResourceUpdatedEventData { return { - resourceDetails: resourceNotificationsResourceUpdatedDetailsDeserializer( - item["resourceInfo"], - ), + resourceDetails: resourceNotificationsResourceUpdatedDetailsDeserializer(item["resourceInfo"]), operationalDetails: resourceNotificationsOperationalDetailsDeserializer( item["operationalInfo"], ), @@ -7709,9 +7591,7 @@ export function resourceNotificationsHealthResourcesAvailabilityStatusChangedEve item: any, ): ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventData { return { - resourceDetails: resourceNotificationsResourceUpdatedDetailsDeserializer( - item["resourceInfo"], - ), + resourceDetails: resourceNotificationsResourceUpdatedDetailsDeserializer(item["resourceInfo"]), operationalDetails: resourceNotificationsOperationalDetailsDeserializer( item["operationalInfo"], ), @@ -7730,9 +7610,7 @@ export function resourceNotificationsHealthResourcesAnnotatedEventDataDeserializ item: any, ): ResourceNotificationsHealthResourcesAnnotatedEventData { return { - resourceDetails: resourceNotificationsResourceUpdatedDetailsDeserializer( - item["resourceInfo"], - ), + resourceDetails: resourceNotificationsResourceUpdatedDetailsDeserializer(item["resourceInfo"]), operationalDetails: resourceNotificationsOperationalDetailsDeserializer( item["operationalInfo"], ), @@ -7778,9 +7656,7 @@ export function resourceNotificationsResourceDeletedEventDataDeserializer( item: any, ): ResourceNotificationsResourceDeletedEventData { return { - resourceDetails: resourceNotificationsResourceDeletedDetailsDeserializer( - item["resourceInfo"], - ), + resourceDetails: resourceNotificationsResourceDeletedDetailsDeserializer(item["resourceInfo"]), operationalDetails: resourceNotificationsOperationalDetailsDeserializer( item["operationalInfo"], ), @@ -7798,9 +7674,7 @@ export function resourceNotificationsResourceManagementCreatedOrUpdatedEventData item: any, ): ResourceNotificationsResourceManagementCreatedOrUpdatedEventData { return { - resourceDetails: resourceNotificationsResourceUpdatedDetailsDeserializer( - item["resourceInfo"], - ), + resourceDetails: resourceNotificationsResourceUpdatedDetailsDeserializer(item["resourceInfo"]), operationalDetails: resourceNotificationsOperationalDetailsDeserializer( item["operationalInfo"], ), @@ -7819,9 +7693,7 @@ export function resourceNotificationsResourceManagementDeletedEventDataDeseriali item: any, ): ResourceNotificationsResourceManagementDeletedEventData { return { - resourceDetails: resourceNotificationsResourceDeletedDetailsDeserializer( - item["resourceInfo"], - ), + resourceDetails: resourceNotificationsResourceDeletedDetailsDeserializer(item["resourceInfo"]), operationalDetails: resourceNotificationsOperationalDetailsDeserializer( item["operationalInfo"], ), @@ -7836,9 +7708,7 @@ export function resourceNotificationsContainerServiceEventResourcesScheduledEven item: any, ): ResourceNotificationsContainerServiceEventResourcesScheduledEventData { return { - resourceDetails: resourceNotificationsResourceUpdatedDetailsDeserializer( - item["resourceInfo"], - ), + resourceDetails: resourceNotificationsResourceUpdatedDetailsDeserializer(item["resourceInfo"]), operationalDetails: resourceNotificationsOperationalDetailsDeserializer( item["operationalInfo"], ), @@ -7848,6 +7718,6 @@ export function resourceNotificationsContainerServiceEventResourcesScheduledEven /** Known values of {@link ServiceApiVersions} that the service accepts. */ export enum KnownServiceApiVersions { - v2018_01_01 = "2018-01-01", - v2024_01_01 = "2024-01-01", + V20180101 = "2018-01-01", + V20240101 = "2024-01-01", } diff --git a/sdk/eventgrid/eventgrid-systemevents/src/predicates.ts b/sdk/eventgrid/eventgrid-systemevents/src/predicates.ts deleted file mode 100644 index 42807ca30ed2..000000000000 --- a/sdk/eventgrid/eventgrid-systemevents/src/predicates.ts +++ /dev/null @@ -1,618 +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, - 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 "./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.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-systemevents/src/generated/systemEventsClient.ts b/sdk/eventgrid/eventgrid-systemevents/src/systemEventsClient.ts similarity index 90% rename from sdk/eventgrid/eventgrid-systemevents/src/generated/systemEventsClient.ts rename to sdk/eventgrid/eventgrid-systemevents/src/systemEventsClient.ts index e8602aca9869..4edf4809ab70 100644 --- a/sdk/eventgrid/eventgrid-systemevents/src/generated/systemEventsClient.ts +++ b/sdk/eventgrid/eventgrid-systemevents/src/systemEventsClient.ts @@ -16,10 +16,7 @@ export class SystemEventsClient { public readonly pipeline: Pipeline; /** Azure Messaging EventGrid SystemEvents */ - constructor( - endpointParam: string, - options: SystemEventsClientOptionalParams = {}, - ) { + constructor(endpointParam: string, options: SystemEventsClientOptionalParams = {}) { const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix; const userAgentPrefix = prefixFromOptions ? `${prefixFromOptions} azsdk-js-client` diff --git a/sdk/eventgrid/eventgrid-systemevents/test/public/events.spec.ts b/sdk/eventgrid/eventgrid-systemevents/test/public/events.spec.ts deleted file mode 100644 index 6ff0d97d0774..000000000000 --- a/sdk/eventgrid/eventgrid-systemevents/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-systemevents/test/snippets.spec.ts b/sdk/eventgrid/eventgrid-systemevents/test/snippets.spec.ts deleted file mode 100644 index 5d6136453264..000000000000 --- a/sdk/eventgrid/eventgrid-systemevents/test/snippets.spec.ts +++ /dev/null @@ -1,11 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { setLogLevel } from "@azure/logger"; -import { describe, it } from "vitest"; - -describe("snippets", () => { - it("SetLogLevel", async () => { - setLogLevel("info"); - }); -}); diff --git a/sdk/eventgrid/eventgrid-systemevents/tests.yml b/sdk/eventgrid/eventgrid-systemevents/tests.yml deleted file mode 100644 index 14ea0baa0134..000000000000 --- a/sdk/eventgrid/eventgrid-systemevents/tests.yml +++ /dev/null @@ -1,7 +0,0 @@ -trigger: none - -extends: - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml - parameters: - PackageName: "@azure/eventgrid-systemevents" - ServiceDirectory: eventgrid diff --git a/sdk/eventgrid/eventgrid-systemevents/tsdoc.json b/sdk/eventgrid/eventgrid-systemevents/tsdoc.json deleted file mode 100644 index 81c5a8a2aa2f..000000000000 --- a/sdk/eventgrid/eventgrid-systemevents/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-systemevents/tsp-location.yaml b/sdk/eventgrid/eventgrid-systemevents/tsp-location.yaml index 14b68a3edfbc..be139cad7fc1 100644 --- a/sdk/eventgrid/eventgrid-systemevents/tsp-location.yaml +++ b/sdk/eventgrid/eventgrid-systemevents/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents -commit: 8af03db33a90581edffb8a32fea562f36b7c61a8 -repo: Azure/azure-rest-api-specs -additionalDirectories: +commit: c10a58e0a426d5a172ba03fe6be4e630c8df7e3c +repo: ../azure-rest-api-specs +additionalDirectories: diff --git a/sdk/eventgrid/eventgrid-systemevents/vitest.browser.config.ts b/sdk/eventgrid/eventgrid-systemevents/vitest.browser.config.ts index 8c0e25be4ab7..182729ab5ce9 100644 --- a/sdk/eventgrid/eventgrid-systemevents/vitest.browser.config.ts +++ b/sdk/eventgrid/eventgrid-systemevents/vitest.browser.config.ts @@ -1,14 +1,15 @@ + // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import { defineConfig, mergeConfig } from "vitest/config"; -import viteConfig from "../../../vitest.browser.base.config.ts"; +import viteConfig from "../../../vitest.browser.shared.config.ts"; export default mergeConfig( viteConfig, defineConfig({ test: { - include: ["dist-test/browser/test/**/*.spec.js"], + include: ["dist-test/browser/test/**/*.spec.js",], testTimeout: 1200000, hookTimeout: 1200000, }, diff --git a/sdk/eventgrid/eventgrid-systemevents/vitest.config.ts b/sdk/eventgrid/eventgrid-systemevents/vitest.config.ts index 86a71911ccc2..40e031385dd8 100644 --- a/sdk/eventgrid/eventgrid-systemevents/vitest.config.ts +++ b/sdk/eventgrid/eventgrid-systemevents/vitest.config.ts @@ -1,3 +1,4 @@ + // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. diff --git a/sdk/eventgrid/eventgrid-systemevents/vitest.esm.config.ts b/sdk/eventgrid/eventgrid-systemevents/vitest.esm.config.ts index 5e9735e9b144..a70127279fc9 100644 --- a/sdk/eventgrid/eventgrid-systemevents/vitest.esm.config.ts +++ b/sdk/eventgrid/eventgrid-systemevents/vitest.esm.config.ts @@ -1,3 +1,4 @@ + // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. @@ -5,4 +6,7 @@ import { mergeConfig } from "vitest/config"; import vitestConfig from "./vitest.config.ts"; import vitestEsmConfig from "../../../vitest.esm.shared.config.ts"; -export default mergeConfig(vitestConfig, vitestEsmConfig); +export default mergeConfig( + vitestConfig, + vitestEsmConfig +);