@azure/eventgrid 5.3.0-alpha.20240403.1 → 5.4.0-alpha.20240410.3
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/dist/index.js +411 -3
- package/dist/index.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 +397 -1
- package/dist-esm/src/generated/models/mappers.js.map +1 -1
- package/dist-esm/src/index.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/package.json +1 -1
- package/types/eventgrid.d.ts +249 -1
package/types/eventgrid.d.ts
CHANGED
@@ -300,6 +300,142 @@ export declare interface AcsIncomingCallEventData {
|
|
300
300
|
correlationId: string;
|
301
301
|
}
|
302
302
|
|
303
|
+
/**
|
304
|
+
* Defines values for AcsInteractiveReplyKind. \
|
305
|
+
* {@link KnownAcsInteractiveReplyKind} can be used interchangeably with AcsInteractiveReplyKind,
|
306
|
+
* this enum contains the known values that the service supports.
|
307
|
+
* ### Known values supported by the service
|
308
|
+
* **buttonReply**: Messaged interactive reply type is ButtonReply \
|
309
|
+
* **listReply**: Messaged interactive reply type is ListReply \
|
310
|
+
* **unknown**: Messaged interactive reply type is Unknown
|
311
|
+
*/
|
312
|
+
export declare type AcsInteractiveReplyKind = string;
|
313
|
+
|
314
|
+
/** Message Button Content */
|
315
|
+
export declare interface AcsMessageButtonContent {
|
316
|
+
/** The Text of the button */
|
317
|
+
text: string;
|
318
|
+
/** The Payload of the button which was clicked by the user, setup by the business */
|
319
|
+
payload: string;
|
320
|
+
}
|
321
|
+
|
322
|
+
/** Message Channel Event Error */
|
323
|
+
export declare interface AcsMessageChannelEventError {
|
324
|
+
/** The channel error code */
|
325
|
+
channelCode: string;
|
326
|
+
/** The channel error message */
|
327
|
+
channelMessage: string;
|
328
|
+
}
|
329
|
+
|
330
|
+
/**
|
331
|
+
* Defines values for AcsMessageChannelKind. \
|
332
|
+
* {@link KnownAcsMessageChannelKind} can be used interchangeably with AcsMessageChannelKind,
|
333
|
+
* this enum contains the known values that the service supports.
|
334
|
+
* ### Known values supported by the service
|
335
|
+
* **whatsapp**: Updated message channel type is Whatsapp
|
336
|
+
*/
|
337
|
+
export declare type AcsMessageChannelKind = string;
|
338
|
+
|
339
|
+
/** Message Context */
|
340
|
+
export declare interface AcsMessageContext {
|
341
|
+
/** The WhatsApp ID for the customer who replied to an inbound message. */
|
342
|
+
from: string;
|
343
|
+
/** The message ID for the sent message for an inbound reply */
|
344
|
+
messageId: string;
|
345
|
+
}
|
346
|
+
|
347
|
+
/**
|
348
|
+
* Defines values for AcsMessageDeliveryStatus. \
|
349
|
+
* {@link KnownAcsMessageDeliveryStatus} can be used interchangeably with AcsMessageDeliveryStatus,
|
350
|
+
* this enum contains the known values that the service supports.
|
351
|
+
* ### Known values supported by the service
|
352
|
+
* **read** \
|
353
|
+
* **delivered** \
|
354
|
+
* **failed** \
|
355
|
+
* **sent** \
|
356
|
+
* **warning** \
|
357
|
+
* **unknown**
|
358
|
+
*/
|
359
|
+
export declare type AcsMessageDeliveryStatus = string;
|
360
|
+
|
361
|
+
/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.AdvancedMessageDeliveryStatusUpdated event. */
|
362
|
+
export declare type AcsMessageDeliveryStatusUpdatedEventData = AcsMessageEventData & {
|
363
|
+
/** The message id */
|
364
|
+
messageId: string;
|
365
|
+
/** The updated message status */
|
366
|
+
status: AcsMessageDeliveryStatus;
|
367
|
+
/** The updated message channel type */
|
368
|
+
channelKind: AcsMessageChannelKind;
|
369
|
+
};
|
370
|
+
|
371
|
+
/** Schema of common properties of all chat thread events */
|
372
|
+
export declare interface AcsMessageEventData {
|
373
|
+
/** The message sender */
|
374
|
+
from: string;
|
375
|
+
/** The message recipient */
|
376
|
+
to: string;
|
377
|
+
/** The time message was received */
|
378
|
+
receivedTimestamp: string;
|
379
|
+
/** The channel event error */
|
380
|
+
error: AcsMessageChannelEventError;
|
381
|
+
}
|
382
|
+
|
383
|
+
/** Message Interactive button reply content for a user to business message */
|
384
|
+
export declare interface AcsMessageInteractiveButtonReplyContent {
|
385
|
+
/** The ID of the button */
|
386
|
+
buttonId: string;
|
387
|
+
/** The title of the button */
|
388
|
+
title: string;
|
389
|
+
}
|
390
|
+
|
391
|
+
/** Message Interactive Content */
|
392
|
+
export declare interface AcsMessageInteractiveContent {
|
393
|
+
/** The Message interactive reply type */
|
394
|
+
replyKind: AcsInteractiveReplyKind;
|
395
|
+
/** The Message Sent when a customer clicks a button */
|
396
|
+
buttonReply: AcsMessageInteractiveButtonReplyContent;
|
397
|
+
/** The Message Sent when a customer selects an item from a list */
|
398
|
+
listReply: AcsMessageInteractiveListReplyContent;
|
399
|
+
}
|
400
|
+
|
401
|
+
/** Message Interactive list reply content for a user to business message */
|
402
|
+
export declare interface AcsMessageInteractiveListReplyContent {
|
403
|
+
/** The ID of the selected list item */
|
404
|
+
listItemId: string;
|
405
|
+
/** The title of the selected list item */
|
406
|
+
title: string;
|
407
|
+
/** The sescription of the selected row */
|
408
|
+
description: string;
|
409
|
+
}
|
410
|
+
|
411
|
+
/** Message Media Content */
|
412
|
+
export declare interface AcsMessageMediaContent {
|
413
|
+
/** The MIME type of the file this media represents */
|
414
|
+
mimeType: string;
|
415
|
+
/** The media identifier */
|
416
|
+
mediaId: string;
|
417
|
+
/** The filename of the underlying media file as specified when uploaded */
|
418
|
+
fileName: string;
|
419
|
+
/** The caption for the media object, if supported and provided */
|
420
|
+
caption: string;
|
421
|
+
}
|
422
|
+
|
423
|
+
/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.AdvancedMessageReceived event. */
|
424
|
+
export declare type AcsMessageReceivedEventData = AcsMessageEventData & {
|
425
|
+
/** The received message content */
|
426
|
+
content: string;
|
427
|
+
/** The received message channel Kind */
|
428
|
+
channelKind: AcsMessageChannelKind;
|
429
|
+
/** The received message media content */
|
430
|
+
mediaContent: AcsMessageMediaContent;
|
431
|
+
/** The received message context */
|
432
|
+
context: AcsMessageContext;
|
433
|
+
/** The received message button content */
|
434
|
+
button: AcsMessageButtonContent;
|
435
|
+
/** The received message interactive content */
|
436
|
+
interactiveContent: AcsMessageInteractiveContent;
|
437
|
+
};
|
438
|
+
|
303
439
|
/** Schema for all properties of Recording Chunk Information. */
|
304
440
|
export declare interface AcsRecordingChunkInfo {
|
305
441
|
/** The documentId of the recording chunk */
|
@@ -561,6 +697,20 @@ export declare interface AcsRouterQueueDetails {
|
|
561
697
|
};
|
562
698
|
}
|
563
699
|
|
700
|
+
/**
|
701
|
+
* Defines values for AcsRouterUpdatedWorkerProperty. \
|
702
|
+
* {@link KnownAcsRouterUpdatedWorkerProperty} can be used interchangeably with AcsRouterUpdatedWorkerProperty,
|
703
|
+
* this enum contains the known values that the service supports.
|
704
|
+
* ### Known values supported by the service
|
705
|
+
* **AvailableForOffers** \
|
706
|
+
* **TotalCapacity** \
|
707
|
+
* **QueueAssignments** \
|
708
|
+
* **Labels** \
|
709
|
+
* **Tags** \
|
710
|
+
* **ChannelConfigurations**
|
711
|
+
*/
|
712
|
+
export declare type AcsRouterUpdatedWorkerProperty = string;
|
713
|
+
|
564
714
|
/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterWorkerDeleted event */
|
565
715
|
export declare type AcsRouterWorkerDeletedEventData = AcsRouterWorkerEventData & {};
|
566
716
|
|
@@ -704,6 +854,28 @@ export declare interface AcsRouterWorkerSelector {
|
|
704
854
|
*/
|
705
855
|
export declare type AcsRouterWorkerSelectorState = string;
|
706
856
|
|
857
|
+
/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterWorkerUpdated event */
|
858
|
+
export declare interface AcsRouterWorkerUpdatedEventData {
|
859
|
+
/** Router Worker Updated Worker Id */
|
860
|
+
workerId: string;
|
861
|
+
/** Router Worker Updated Queue Info */
|
862
|
+
queueAssignments: AcsRouterQueueDetails[];
|
863
|
+
/** Router Worker Updated Channel Configuration */
|
864
|
+
channelConfigurations: AcsRouterChannelConfiguration[];
|
865
|
+
/** Router Worker Updated Total Capacity */
|
866
|
+
totalCapacity: number;
|
867
|
+
/** Router Worker Updated Labels */
|
868
|
+
labels: {
|
869
|
+
[propertyName: string]: string;
|
870
|
+
};
|
871
|
+
/** Router Worker Updated Tags */
|
872
|
+
tags: {
|
873
|
+
[propertyName: string]: string;
|
874
|
+
};
|
875
|
+
/** Router Worker Properties Updated */
|
876
|
+
updatedWorkerProperties: AcsRouterUpdatedWorkerProperty[];
|
877
|
+
}
|
878
|
+
|
707
879
|
/** Schema for details of a delivery attempt */
|
708
880
|
export declare interface AcsSmsDeliveryAttempt {
|
709
881
|
/** TimeStamp when delivery was attempted */
|
@@ -1181,8 +1353,10 @@ export declare interface CloudEventSendOptions extends SendOptions {
|
|
1181
1353
|
*/
|
1182
1354
|
export declare type CommunicationCloudEnvironmentModel = string;
|
1183
1355
|
|
1184
|
-
/** Identifies a participant in Azure Communication services. A participant is, for example, a phone number or an Azure communication user. This model
|
1356
|
+
/** Identifies a participant in Azure Communication services. A participant is, for example, a phone number or an Azure communication user. This model is polymorphic: Apart from kind and rawId, at most one further property may be set which must match the kind enum value. */
|
1185
1357
|
export declare interface CommunicationIdentifierModel {
|
1358
|
+
/** The identifier kind. Only required in responses. */
|
1359
|
+
kind?: CommunicationIdentifierModelKind;
|
1186
1360
|
/** Raw Id of the identifier. Optional in requests, required in responses. */
|
1187
1361
|
rawId: string;
|
1188
1362
|
/** The communication user. */
|
@@ -1191,8 +1365,23 @@ export declare interface CommunicationIdentifierModel {
|
|
1191
1365
|
phoneNumber?: PhoneNumberIdentifierModel;
|
1192
1366
|
/** The Microsoft Teams user. */
|
1193
1367
|
microsoftTeamsUser?: MicrosoftTeamsUserIdentifierModel;
|
1368
|
+
/** The Microsoft Teams application. */
|
1369
|
+
microsoftTeamsApp?: MicrosoftTeamsAppIdentifierModel;
|
1194
1370
|
}
|
1195
1371
|
|
1372
|
+
/**
|
1373
|
+
* Defines values for CommunicationIdentifierModelKind. \
|
1374
|
+
* {@link KnownCommunicationIdentifierModelKind} can be used interchangeably with CommunicationIdentifierModelKind,
|
1375
|
+
* this enum contains the known values that the service supports.
|
1376
|
+
* ### Known values supported by the service
|
1377
|
+
* **unknown** \
|
1378
|
+
* **communicationUser** \
|
1379
|
+
* **phoneNumber** \
|
1380
|
+
* **microsoftTeamsUser** \
|
1381
|
+
* **microsoftTeamsApp**
|
1382
|
+
*/
|
1383
|
+
export declare type CommunicationIdentifierModelKind = string;
|
1384
|
+
|
1196
1385
|
/** A user that got created with an Azure Communication Services resource. */
|
1197
1386
|
export declare interface CommunicationUserIdentifierModel {
|
1198
1387
|
/** The Id of the communication user. */
|
@@ -2265,6 +2454,32 @@ export declare const enum KnownAcsEmailDeliveryReportStatus {
|
|
2265
2454
|
Suppressed = "Suppressed"
|
2266
2455
|
}
|
2267
2456
|
|
2457
|
+
/** Known values of {@link AcsInteractiveReplyKind} that the service accepts. */
|
2458
|
+
export declare const enum KnownAcsInteractiveReplyKind {
|
2459
|
+
/** Messaged interactive reply type is ButtonReply */
|
2460
|
+
ButtonReply = "buttonReply",
|
2461
|
+
/** Messaged interactive reply type is ListReply */
|
2462
|
+
ListReply = "listReply",
|
2463
|
+
/** Messaged interactive reply type is Unknown */
|
2464
|
+
Unknown = "unknown"
|
2465
|
+
}
|
2466
|
+
|
2467
|
+
/** Known values of {@link AcsMessageChannelKind} that the service accepts. */
|
2468
|
+
export declare const enum KnownAcsMessageChannelKind {
|
2469
|
+
/** Updated message channel type is Whatsapp */
|
2470
|
+
Whatsapp = "whatsapp"
|
2471
|
+
}
|
2472
|
+
|
2473
|
+
/** Known values of {@link AcsMessageDeliveryStatus} that the service accepts. */
|
2474
|
+
export declare const enum KnownAcsMessageDeliveryStatus {
|
2475
|
+
Read = "read",
|
2476
|
+
Delivered = "delivered",
|
2477
|
+
Failed = "failed",
|
2478
|
+
Sent = "sent",
|
2479
|
+
Warning = "warning",
|
2480
|
+
Unknown = "unknown"
|
2481
|
+
}
|
2482
|
+
|
2268
2483
|
/** Known values of {@link AcsRouterJobStatus} that the service accepts. */
|
2269
2484
|
export declare const enum KnownAcsRouterJobStatus {
|
2270
2485
|
PendingClassification = "PendingClassification",
|
@@ -2297,6 +2512,16 @@ export declare const enum KnownAcsRouterLabelOperator {
|
|
2297
2512
|
LessThanOrEqual = "LessThanOrEqual"
|
2298
2513
|
}
|
2299
2514
|
|
2515
|
+
/** Known values of {@link AcsRouterUpdatedWorkerProperty} that the service accepts. */
|
2516
|
+
export declare const enum KnownAcsRouterUpdatedWorkerProperty {
|
2517
|
+
AvailableForOffers = "AvailableForOffers",
|
2518
|
+
TotalCapacity = "TotalCapacity",
|
2519
|
+
QueueAssignments = "QueueAssignments",
|
2520
|
+
Labels = "Labels",
|
2521
|
+
Tags = "Tags",
|
2522
|
+
ChannelConfigurations = "ChannelConfigurations"
|
2523
|
+
}
|
2524
|
+
|
2300
2525
|
/** Known values of {@link AcsRouterWorkerSelectorState} that the service accepts. */
|
2301
2526
|
export declare const enum KnownAcsRouterWorkerSelectorState {
|
2302
2527
|
/** Router Job Worker Selector is Active */
|
@@ -2350,6 +2575,15 @@ export declare const enum KnownCommunicationCloudEnvironmentModel {
|
|
2350
2575
|
Gcch = "gcch"
|
2351
2576
|
}
|
2352
2577
|
|
2578
|
+
/** Known values of {@link CommunicationIdentifierModelKind} that the service accepts. */
|
2579
|
+
export declare const enum KnownCommunicationIdentifierModelKind {
|
2580
|
+
Unknown = "unknown",
|
2581
|
+
CommunicationUser = "communicationUser",
|
2582
|
+
PhoneNumber = "phoneNumber",
|
2583
|
+
MicrosoftTeamsUser = "microsoftTeamsUser",
|
2584
|
+
MicrosoftTeamsApp = "microsoftTeamsApp"
|
2585
|
+
}
|
2586
|
+
|
2353
2587
|
/** Known values of {@link DataBoxStageName} that the service accepts. */
|
2354
2588
|
export declare const enum KnownDataBoxStageName {
|
2355
2589
|
/** Copy has started */
|
@@ -3416,6 +3650,14 @@ export declare interface MediaLiveEventTrackDiscontinuityDetectedEventData {
|
|
3416
3650
|
readonly discontinuityGap: string;
|
3417
3651
|
}
|
3418
3652
|
|
3653
|
+
/** A Microsoft Teams application. */
|
3654
|
+
export declare interface MicrosoftTeamsAppIdentifierModel {
|
3655
|
+
/** The Id of the Microsoft Teams application. */
|
3656
|
+
appId: string;
|
3657
|
+
/** The cloud that the Microsoft Teams application belongs to. By default 'public' if missing. */
|
3658
|
+
cloud?: CommunicationCloudEnvironmentModel;
|
3659
|
+
}
|
3660
|
+
|
3419
3661
|
/** A Microsoft Teams user. */
|
3420
3662
|
export declare interface MicrosoftTeamsUserIdentifierModel {
|
3421
3663
|
/** The Id of the Microsoft Teams user. If not anonymous, this is the AAD object Id of the user. */
|
@@ -4702,6 +4944,12 @@ export declare interface SystemEventNameToEventData {
|
|
4702
4944
|
"Microsoft.ApiCenter.ApiDefinitionAdded": ApiCenterApiDefinitionAddedEventData;
|
4703
4945
|
/** An interface for the event data of a "Microsoft.ApiCenter.ApiDefinitionUpdated" event. */
|
4704
4946
|
"Microsoft.ApiCenter.ApiDefinitionUpdated": ApiCenterApiDefinitionUpdatedEventData;
|
4947
|
+
/** An interface for the event data of a "Microsoft.Communication.AdvancedMessageDeliveryStatusUpdated" event. */
|
4948
|
+
"Microsoft.Communication.AdvancedMessageDeliveryStatusUpdated": AcsMessageDeliveryStatusUpdatedEventData;
|
4949
|
+
/** An interface for the event data of a "Microsoft.Communication.AdvancedMessageReceived" event. */
|
4950
|
+
"Microsoft.Communication.AdvancedMessageReceived": AcsMessageReceivedEventData;
|
4951
|
+
/** An interface for the event data of a "Microsoft.Communication.RouterWorkerUpdated" event. */
|
4952
|
+
"Microsoft.Communication.RouterWorkerUpdated": AcsRouterWorkerUpdatedEventData;
|
4705
4953
|
}
|
4706
4954
|
|
4707
4955
|
/** Schema of the Data property of an EventGridEvent for a Microsoft.Web.AppServicePlanUpdated event. */
|