@azure/eventgrid 4.5.1-alpha.20211209.2 → 4.6.0-alpha.20220110.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -4
- package/dist/index.js +206 -63
- package/dist/index.js.map +1 -1
- package/dist-esm/src/cloudEventDistrubtedTracingEnricherPolicy.js +1 -1
- package/dist-esm/src/cloudEventDistrubtedTracingEnricherPolicy.js.map +1 -1
- package/dist-esm/src/consumer.js +2 -2
- package/dist-esm/src/consumer.js.map +1 -1
- package/dist-esm/src/cryptoHelpers.browser.js +1 -1
- package/dist-esm/src/cryptoHelpers.browser.js.map +1 -1
- package/dist-esm/src/cryptoHelpers.js +1 -3
- package/dist-esm/src/cryptoHelpers.js.map +1 -1
- package/dist-esm/src/eventGridAuthenticationPolicy.js +1 -1
- package/dist-esm/src/eventGridAuthenticationPolicy.js.map +1 -1
- package/dist-esm/src/eventGridClient.js +6 -4
- package/dist-esm/src/eventGridClient.js.map +1 -1
- package/dist-esm/src/generated/generatedClientContext.js +1 -1
- package/dist-esm/src/generated/generatedClientContext.js.map +1 -1
- package/dist-esm/src/generated/models/index.js.map +1 -1
- package/dist-esm/src/generated/models/mappers.js +189 -43
- package/dist-esm/src/generated/models/mappers.js.map +1 -1
- package/dist-esm/src/index.js +2 -2
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/models.js +1 -1
- package/dist-esm/src/models.js.map +1 -1
- package/dist-esm/src/predicates.js.map +1 -1
- package/dist-esm/src/tracing.js +1 -1
- package/dist-esm/src/tracing.js.map +1 -1
- package/dist-esm/src/util.js +3 -9
- package/dist-esm/src/util.js.map +1 -1
- package/package.json +6 -8
- package/types/eventgrid.d.ts +123 -28
package/types/eventgrid.d.ts
CHANGED
@@ -216,6 +216,8 @@ export declare interface AcsRecordingChunkInfo {
|
|
216
216
|
metadataLocation: string;
|
217
217
|
/** The location of the content for this chunk */
|
218
218
|
contentLocation: string;
|
219
|
+
/** The location to delete all chunk storage */
|
220
|
+
deleteLocation: string;
|
219
221
|
}
|
220
222
|
|
221
223
|
/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RecordingFileStatusUpdated event. */
|
@@ -226,6 +228,12 @@ export declare interface AcsRecordingFileStatusUpdatedEventData {
|
|
226
228
|
recordingStartTime: string;
|
227
229
|
/** The recording duration in milliseconds */
|
228
230
|
recordingDurationMs: number;
|
231
|
+
/** The recording content type- AudioVideo, or Audio */
|
232
|
+
recordingContentType: RecordingContentType;
|
233
|
+
/** The recording channel type - Mixed, Unmixed */
|
234
|
+
recordingChannelType: RecordingChannelType;
|
235
|
+
/** The recording format type - Mp4, Mp3, Wav */
|
236
|
+
recordingFormatType: RecordingFormatType;
|
229
237
|
/** The reason for ending recording session */
|
230
238
|
sessionEndReason: string;
|
231
239
|
}
|
@@ -531,8 +539,12 @@ export declare interface ContainerRegistryArtifactEventData {
|
|
531
539
|
timestamp: string;
|
532
540
|
/** The action that encompasses the provided event. */
|
533
541
|
action: string;
|
542
|
+
/** The location of the event. */
|
543
|
+
location: string;
|
534
544
|
/** The target of the event. */
|
535
545
|
target: ContainerRegistryArtifactEventTarget;
|
546
|
+
/** The connected registry information if the event is generated by a connected registry. */
|
547
|
+
connectedRegistry: ContainerRegistryEventConnectedRegistry;
|
536
548
|
}
|
537
549
|
|
538
550
|
/** The target of the event. */
|
@@ -565,6 +577,12 @@ export declare interface ContainerRegistryEventActor {
|
|
565
577
|
name: string;
|
566
578
|
}
|
567
579
|
|
580
|
+
/** The connected registry information if the event is generated by a connected registry. */
|
581
|
+
export declare interface ContainerRegistryEventConnectedRegistry {
|
582
|
+
/** The name of the connected registry that generated this event. */
|
583
|
+
name: string;
|
584
|
+
}
|
585
|
+
|
568
586
|
/** The content of the event request message. */
|
569
587
|
export declare interface ContainerRegistryEventData {
|
570
588
|
/** The event ID. */
|
@@ -573,6 +591,8 @@ export declare interface ContainerRegistryEventData {
|
|
573
591
|
timestamp: string;
|
574
592
|
/** The action that encompasses the provided event. */
|
575
593
|
action: string;
|
594
|
+
/** The location of the event. */
|
595
|
+
location: string;
|
576
596
|
/** The target of the event. */
|
577
597
|
target: ContainerRegistryEventTarget;
|
578
598
|
/** The request that generated the event. */
|
@@ -581,6 +601,8 @@ export declare interface ContainerRegistryEventData {
|
|
581
601
|
actor: ContainerRegistryEventActor;
|
582
602
|
/** The registry node that generated the event. Put differently, while the actor initiates the event, the source generates it. */
|
583
603
|
source: ContainerRegistryEventSource;
|
604
|
+
/** The connected registry information if the event is generated by a connected registry. */
|
605
|
+
connectedRegistry: ContainerRegistryEventConnectedRegistry;
|
584
606
|
}
|
585
607
|
|
586
608
|
/** The request that generated the event. */
|
@@ -1480,7 +1502,7 @@ export declare interface MediaJobStateChangeEventData {
|
|
1480
1502
|
};
|
1481
1503
|
}
|
1482
1504
|
|
1483
|
-
/** Channel Archive heartbeat event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.
|
1505
|
+
/** Channel Archive heartbeat event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.LiveEventChannelArchiveHeartbeat event. */
|
1484
1506
|
export declare interface MediaLiveEventChannelArchiveHeartbeatEventData {
|
1485
1507
|
/**
|
1486
1508
|
* Gets the channel latency in ms.
|
@@ -1915,6 +1937,37 @@ export declare interface PolicyInsightsPolicyStateDeletedEventData {
|
|
1915
1937
|
complianceReasonCode: string;
|
1916
1938
|
}
|
1917
1939
|
|
1940
|
+
/**
|
1941
|
+
* Defines values for RecordingChannelType. \
|
1942
|
+
* {@link KnownRecordingChannelType} can be used interchangeably with RecordingChannelType,
|
1943
|
+
* this enum contains the known values that the service supports.
|
1944
|
+
* ### Known values supported by the service
|
1945
|
+
* **Mixed** \
|
1946
|
+
* **Unmixed**
|
1947
|
+
*/
|
1948
|
+
export declare type RecordingChannelType = string;
|
1949
|
+
|
1950
|
+
/**
|
1951
|
+
* Defines values for RecordingContentType. \
|
1952
|
+
* {@link KnownRecordingContentType} can be used interchangeably with RecordingContentType,
|
1953
|
+
* this enum contains the known values that the service supports.
|
1954
|
+
* ### Known values supported by the service
|
1955
|
+
* **AudioVideo** \
|
1956
|
+
* **Audio**
|
1957
|
+
*/
|
1958
|
+
export declare type RecordingContentType = string;
|
1959
|
+
|
1960
|
+
/**
|
1961
|
+
* Defines values for RecordingFormatType. \
|
1962
|
+
* {@link KnownRecordingFormatType} can be used interchangeably with RecordingFormatType,
|
1963
|
+
* this enum contains the known values that the service supports.
|
1964
|
+
* ### Known values supported by the service
|
1965
|
+
* **Wav** \
|
1966
|
+
* **Mp3** \
|
1967
|
+
* **Mp4**
|
1968
|
+
*/
|
1969
|
+
export declare type RecordingFormatType = string;
|
1970
|
+
|
1918
1971
|
/** Schema of the Data property of an EventGridEvent for a Microsoft.Resources.ResourceActionCancel event. This is raised when a resource action operation is canceled. */
|
1919
1972
|
export declare interface ResourceActionCancelEventData {
|
1920
1973
|
/** The tenant ID of the resource. */
|
@@ -1932,13 +1985,15 @@ export declare interface ResourceActionCancelEventData {
|
|
1932
1985
|
/** The status of the operation. */
|
1933
1986
|
status: string;
|
1934
1987
|
/** The requested authorization for the operation. */
|
1935
|
-
authorization:
|
1988
|
+
authorization: ResourceAuthorization;
|
1936
1989
|
/** The properties of the claims. */
|
1937
|
-
claims:
|
1990
|
+
claims: {
|
1991
|
+
[propertyName: string]: string;
|
1992
|
+
};
|
1938
1993
|
/** An operation ID used for troubleshooting. */
|
1939
1994
|
correlationId: string;
|
1940
1995
|
/** The details of the operation. */
|
1941
|
-
httpRequest:
|
1996
|
+
httpRequest: ResourceHttpRequest;
|
1942
1997
|
}
|
1943
1998
|
|
1944
1999
|
/** Schema of the Data property of an EventGridEvent for a Microsoft.Resources.ResourceActionFailure event. This is raised when a resource action operation fails. */
|
@@ -1958,13 +2013,15 @@ export declare interface ResourceActionFailureEventData {
|
|
1958
2013
|
/** The status of the operation. */
|
1959
2014
|
status: string;
|
1960
2015
|
/** The requested authorization for the operation. */
|
1961
|
-
authorization:
|
2016
|
+
authorization: ResourceAuthorization;
|
1962
2017
|
/** The properties of the claims. */
|
1963
|
-
claims:
|
2018
|
+
claims: {
|
2019
|
+
[propertyName: string]: string;
|
2020
|
+
};
|
1964
2021
|
/** An operation ID used for troubleshooting. */
|
1965
2022
|
correlationId: string;
|
1966
2023
|
/** The details of the operation. */
|
1967
|
-
httpRequest:
|
2024
|
+
httpRequest: ResourceHttpRequest;
|
1968
2025
|
}
|
1969
2026
|
|
1970
2027
|
/** Schema of the Data property of an EventGridEvent for a Microsoft.Resources.ResourceActionSuccess event. This is raised when a resource action operation succeeds. */
|
@@ -1984,13 +2041,27 @@ export declare interface ResourceActionSuccessEventData {
|
|
1984
2041
|
/** The status of the operation. */
|
1985
2042
|
status: string;
|
1986
2043
|
/** The requested authorization for the operation. */
|
1987
|
-
authorization:
|
2044
|
+
authorization: ResourceAuthorization;
|
1988
2045
|
/** The properties of the claims. */
|
1989
|
-
claims:
|
2046
|
+
claims: {
|
2047
|
+
[propertyName: string]: string;
|
2048
|
+
};
|
1990
2049
|
/** An operation ID used for troubleshooting. */
|
1991
2050
|
correlationId: string;
|
1992
2051
|
/** The details of the operation. */
|
1993
|
-
httpRequest:
|
2052
|
+
httpRequest: ResourceHttpRequest;
|
2053
|
+
}
|
2054
|
+
|
2055
|
+
/** The details of the authorization for the resource. */
|
2056
|
+
export declare interface ResourceAuthorization {
|
2057
|
+
/** The scope of the authorization. */
|
2058
|
+
scope: string;
|
2059
|
+
/** The action being requested. */
|
2060
|
+
action: string;
|
2061
|
+
/** The evidence for the authorization. */
|
2062
|
+
evidence: {
|
2063
|
+
[propertyName: string]: string;
|
2064
|
+
};
|
1994
2065
|
}
|
1995
2066
|
|
1996
2067
|
/** Schema of the Data property of an EventGridEvent for a Microsoft.Resources.ResourceDeleteCancel event. This is raised when a resource delete operation is canceled. */
|
@@ -2010,13 +2081,15 @@ export declare interface ResourceDeleteCancelEventData {
|
|
2010
2081
|
/** The status of the operation. */
|
2011
2082
|
status: string;
|
2012
2083
|
/** The requested authorization for the operation. */
|
2013
|
-
authorization:
|
2084
|
+
authorization: ResourceAuthorization;
|
2014
2085
|
/** The properties of the claims. */
|
2015
|
-
claims:
|
2086
|
+
claims: {
|
2087
|
+
[propertyName: string]: string;
|
2088
|
+
};
|
2016
2089
|
/** An operation ID used for troubleshooting. */
|
2017
2090
|
correlationId: string;
|
2018
2091
|
/** The details of the operation. */
|
2019
|
-
httpRequest:
|
2092
|
+
httpRequest: ResourceHttpRequest;
|
2020
2093
|
}
|
2021
2094
|
|
2022
2095
|
/** Schema of the Data property of an EventGridEvent for a Microsoft.Resources.ResourceDeleteFailure event. This is raised when a resource delete operation fails. */
|
@@ -2036,13 +2109,15 @@ export declare interface ResourceDeleteFailureEventData {
|
|
2036
2109
|
/** The status of the operation. */
|
2037
2110
|
status: string;
|
2038
2111
|
/** The requested authorization for the operation. */
|
2039
|
-
authorization:
|
2112
|
+
authorization: ResourceAuthorization;
|
2040
2113
|
/** The properties of the claims. */
|
2041
|
-
claims:
|
2114
|
+
claims: {
|
2115
|
+
[propertyName: string]: string;
|
2116
|
+
};
|
2042
2117
|
/** An operation ID used for troubleshooting. */
|
2043
2118
|
correlationId: string;
|
2044
2119
|
/** The details of the operation. */
|
2045
|
-
httpRequest:
|
2120
|
+
httpRequest: ResourceHttpRequest;
|
2046
2121
|
}
|
2047
2122
|
|
2048
2123
|
/** Schema of the Data property of an EventGridEvent for a Microsoft.Resources.ResourceDeleteSuccess event. This is raised when a resource delete operation succeeds. */
|
@@ -2062,13 +2137,27 @@ export declare interface ResourceDeleteSuccessEventData {
|
|
2062
2137
|
/** The status of the operation. */
|
2063
2138
|
status: string;
|
2064
2139
|
/** The requested authorization for the operation. */
|
2065
|
-
authorization:
|
2140
|
+
authorization: ResourceAuthorization;
|
2066
2141
|
/** The properties of the claims. */
|
2067
|
-
claims:
|
2142
|
+
claims: {
|
2143
|
+
[propertyName: string]: string;
|
2144
|
+
};
|
2068
2145
|
/** An operation ID used for troubleshooting. */
|
2069
2146
|
correlationId: string;
|
2070
2147
|
/** The details of the operation. */
|
2071
|
-
httpRequest:
|
2148
|
+
httpRequest: ResourceHttpRequest;
|
2149
|
+
}
|
2150
|
+
|
2151
|
+
/** The details of the HTTP request. */
|
2152
|
+
export declare interface ResourceHttpRequest {
|
2153
|
+
/** The client request ID. */
|
2154
|
+
clientRequestId: string;
|
2155
|
+
/** The client IP address. */
|
2156
|
+
clientIpAddress: string;
|
2157
|
+
/** The request method. */
|
2158
|
+
method: string;
|
2159
|
+
/** The url used in the request. */
|
2160
|
+
url: string;
|
2072
2161
|
}
|
2073
2162
|
|
2074
2163
|
/** Schema of the Data property of an EventGridEvent for a Microsoft.Resources.ResourceWriteCancel event. This is raised when a resource create or update operation is canceled. */
|
@@ -2088,13 +2177,15 @@ export declare interface ResourceWriteCancelEventData {
|
|
2088
2177
|
/** The status of the operation. */
|
2089
2178
|
status: string;
|
2090
2179
|
/** The requested authorization for the operation. */
|
2091
|
-
authorization:
|
2180
|
+
authorization: ResourceAuthorization;
|
2092
2181
|
/** The properties of the claims. */
|
2093
|
-
claims:
|
2182
|
+
claims: {
|
2183
|
+
[propertyName: string]: string;
|
2184
|
+
};
|
2094
2185
|
/** An operation ID used for troubleshooting. */
|
2095
2186
|
correlationId: string;
|
2096
2187
|
/** The details of the operation. */
|
2097
|
-
httpRequest:
|
2188
|
+
httpRequest: ResourceHttpRequest;
|
2098
2189
|
}
|
2099
2190
|
|
2100
2191
|
/** Schema of the Data property of an EventGridEvent for a Microsoft.Resources.ResourceWriteFailure event. This is raised when a resource create or update operation fails. */
|
@@ -2114,13 +2205,15 @@ export declare interface ResourceWriteFailureEventData {
|
|
2114
2205
|
/** The status of the operation. */
|
2115
2206
|
status: string;
|
2116
2207
|
/** The requested authorization for the operation. */
|
2117
|
-
authorization:
|
2208
|
+
authorization: ResourceAuthorization;
|
2118
2209
|
/** The properties of the claims. */
|
2119
|
-
claims:
|
2210
|
+
claims: {
|
2211
|
+
[propertyName: string]: string;
|
2212
|
+
};
|
2120
2213
|
/** An operation ID used for troubleshooting. */
|
2121
2214
|
correlationId: string;
|
2122
2215
|
/** The details of the operation. */
|
2123
|
-
httpRequest:
|
2216
|
+
httpRequest: ResourceHttpRequest;
|
2124
2217
|
}
|
2125
2218
|
|
2126
2219
|
/** Schema of the Data property of an EventGridEvent for a Microsoft.Resources.ResourceWriteSuccess event. This is raised when a resource create or update operation succeeds. */
|
@@ -2140,13 +2233,15 @@ export declare interface ResourceWriteSuccessEventData {
|
|
2140
2233
|
/** The status of the operation. */
|
2141
2234
|
status: string;
|
2142
2235
|
/** The requested authorization for the operation. */
|
2143
|
-
authorization:
|
2236
|
+
authorization: ResourceAuthorization;
|
2144
2237
|
/** The properties of the claims. */
|
2145
|
-
claims:
|
2238
|
+
claims: {
|
2239
|
+
[propertyName: string]: string;
|
2240
|
+
};
|
2146
2241
|
/** An operation ID used for troubleshooting. */
|
2147
2242
|
correlationId: string;
|
2148
2243
|
/** The details of the operation. */
|
2149
|
-
httpRequest:
|
2244
|
+
httpRequest: ResourceHttpRequest;
|
2150
2245
|
}
|
2151
2246
|
|
2152
2247
|
/**
|