@azure/eventgrid 5.0.0 → 5.1.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +852 -1640
- package/dist/index.js.map +1 -1
- package/dist-esm/src/cadl-generated/EventGridClient.js +41 -0
- package/dist-esm/src/cadl-generated/EventGridClient.js.map +1 -0
- package/dist-esm/src/cadl-generated/api/EventGridContext.js +10 -0
- package/dist-esm/src/cadl-generated/api/EventGridContext.js.map +1 -0
- package/dist-esm/src/cadl-generated/api/index.js +5 -0
- package/dist-esm/src/cadl-generated/api/index.js.map +1 -0
- package/dist-esm/src/cadl-generated/api/operations.js +198 -0
- package/dist-esm/src/cadl-generated/api/operations.js.map +1 -0
- package/dist-esm/src/cadl-generated/index.js +4 -0
- package/dist-esm/src/cadl-generated/index.js.map +1 -0
- package/dist-esm/src/cadl-generated/logger.js +5 -0
- package/dist-esm/src/cadl-generated/logger.js.map +1 -0
- package/dist-esm/src/cadl-generated/models/index.js +4 -0
- package/dist-esm/src/cadl-generated/models/index.js.map +1 -0
- package/dist-esm/src/cadl-generated/models/models.js +4 -0
- package/dist-esm/src/cadl-generated/models/models.js.map +1 -0
- package/dist-esm/src/cadl-generated/models/options.js +4 -0
- package/dist-esm/src/cadl-generated/models/options.js.map +1 -0
- package/dist-esm/src/cadl-generated/rest/clientDefinitions.js +4 -0
- package/dist-esm/src/cadl-generated/rest/clientDefinitions.js.map +1 -0
- package/dist-esm/src/cadl-generated/rest/eventGridClient.js +38 -0
- package/dist-esm/src/cadl-generated/rest/eventGridClient.js.map +1 -0
- package/dist-esm/src/cadl-generated/rest/index.js +12 -0
- package/dist-esm/src/cadl-generated/rest/index.js.map +1 -0
- package/dist-esm/src/cadl-generated/rest/isUnexpected.js +75 -0
- package/dist-esm/src/cadl-generated/rest/isUnexpected.js.map +1 -0
- package/dist-esm/src/cadl-generated/rest/models.js +4 -0
- package/dist-esm/src/cadl-generated/rest/models.js.map +1 -0
- package/dist-esm/src/cadl-generated/rest/outputModels.js +4 -0
- package/dist-esm/src/cadl-generated/rest/outputModels.js.map +1 -0
- package/dist-esm/src/cadl-generated/rest/parameters.js +4 -0
- package/dist-esm/src/cadl-generated/rest/parameters.js.map +1 -0
- package/dist-esm/src/cadl-generated/rest/responses.js +4 -0
- package/dist-esm/src/cadl-generated/rest/responses.js.map +1 -0
- package/dist-esm/src/eventGridClientV2.js +147 -0
- package/dist-esm/src/eventGridClientV2.js.map +1 -0
- package/dist-esm/src/eventGridV2PublishBinaryMode.js +63 -0
- package/dist-esm/src/eventGridV2PublishBinaryMode.js.map +1 -0
- 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 +372 -1673
- package/dist-esm/src/generated/models/mappers.js.map +1 -1
- package/dist-esm/src/index.js +1 -0
- package/dist-esm/src/index.js.map +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/package.json +10 -8
- package/types/eventgrid.d.ts +203 -705
package/types/eventgrid.d.ts
CHANGED
@@ -1,11 +1,25 @@
|
|
1
1
|
import { AzureKeyCredential } from '@azure/core-auth';
|
2
2
|
import { AzureSASCredential } from '@azure/core-auth';
|
3
|
+
import { ClientOptions } from '@azure-rest/core-client';
|
3
4
|
import { CommonClientOptions } from '@azure/core-client';
|
5
|
+
import { ErrorModel } from '@azure-rest/core-client';
|
4
6
|
import { KeyCredential } from '@azure/core-auth';
|
5
7
|
import { OperationOptions } from '@azure/core-client';
|
8
|
+
import { OperationOptions as OperationRestOptions } from '@azure-rest/core-client';
|
6
9
|
import { SASCredential } from '@azure/core-auth';
|
7
10
|
import { TokenCredential } from '@azure/core-auth';
|
8
11
|
|
12
|
+
export declare interface AcknowledgeCloudEventsOptions extends OperationRestOptions {
|
13
|
+
}
|
14
|
+
|
15
|
+
/** The result of the Acknowledge operation. */
|
16
|
+
export declare interface AcknowledgeResult {
|
17
|
+
/** Array of FailedLockToken for failed cloud events. Each FailedLockToken includes the lock token along with the related error information (namely, the error code and description). */
|
18
|
+
failedLockTokens: FailedLockToken[];
|
19
|
+
/** Array of lock tokens for the successfully acknowledged cloud events. */
|
20
|
+
succeededLockTokens: string[];
|
21
|
+
}
|
22
|
+
|
9
23
|
/** Schema of common properties of all chat events */
|
10
24
|
export declare interface AcsChatEventBase {
|
11
25
|
/** The communication identifier of the target user */
|
@@ -164,10 +178,6 @@ export declare type AcsChatThreadCreatedWithUserEventData = AcsChatThreadEventBa
|
|
164
178
|
properties: {
|
165
179
|
[propertyName: string]: any;
|
166
180
|
};
|
167
|
-
/** The thread metadata */
|
168
|
-
metadata: {
|
169
|
-
[propertyName: string]: string;
|
170
|
-
};
|
171
181
|
/** The list of properties of participants who are part of the thread */
|
172
182
|
participants: AcsChatThreadParticipant[];
|
173
183
|
};
|
@@ -186,10 +196,6 @@ export declare interface AcsChatThreadParticipant {
|
|
186
196
|
displayName: string;
|
187
197
|
/** The communication identifier of the user */
|
188
198
|
participantCommunicationIdentifier: CommunicationIdentifierModel;
|
189
|
-
/** The metadata of the user */
|
190
|
-
metadata: {
|
191
|
-
[propertyName: string]: string;
|
192
|
-
};
|
193
199
|
}
|
194
200
|
|
195
201
|
/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatThreadPropertiesUpdatedPerUser event. */
|
@@ -198,10 +204,6 @@ export declare type AcsChatThreadPropertiesUpdatedPerUserEventData = AcsChatThre
|
|
198
204
|
editedByCommunicationIdentifier: CommunicationIdentifierModel;
|
199
205
|
/** The time at which the properties of the thread were updated */
|
200
206
|
editTime: string;
|
201
|
-
/** The thread metadata */
|
202
|
-
metadata: {
|
203
|
-
[propertyName: string]: string;
|
204
|
-
};
|
205
207
|
/** The updated thread properties */
|
206
208
|
properties: {
|
207
209
|
[propertyName: string]: any;
|
@@ -256,8 +258,6 @@ export declare interface AcsEmailDeliveryReportStatusDetails {
|
|
256
258
|
export declare interface AcsEmailEngagementTrackingReportReceivedEventData {
|
257
259
|
/** The Sender Email Address */
|
258
260
|
sender: string;
|
259
|
-
/** The Recipient Email Address */
|
260
|
-
recipient: string;
|
261
261
|
/** The Id of the email that has been sent */
|
262
262
|
messageId: string;
|
263
263
|
/** The time at which the user interacted with the email */
|
@@ -340,370 +340,6 @@ export declare interface AcsRecordingStorageInfo {
|
|
340
340
|
recordingChunks: AcsRecordingChunkInfo[];
|
341
341
|
}
|
342
342
|
|
343
|
-
/** Router Channel Configuration */
|
344
|
-
export declare interface AcsRouterChannelConfiguration {
|
345
|
-
/** Channel ID for Router Job */
|
346
|
-
channelId: string;
|
347
|
-
/** Capacity Cost Per Job for Router Job */
|
348
|
-
capacityCostPerJob: number;
|
349
|
-
/** Max Number of Jobs for Router Job */
|
350
|
-
maxNumberOfJobs: number;
|
351
|
-
}
|
352
|
-
|
353
|
-
/** Router Communication Error */
|
354
|
-
export declare interface AcsRouterCommunicationError {
|
355
|
-
/** Router Communication Error Code */
|
356
|
-
code: string;
|
357
|
-
/** Router Communication Error Message */
|
358
|
-
message: string;
|
359
|
-
/** Router Communication Error Target */
|
360
|
-
target: string;
|
361
|
-
/** Router Communication Inner Error */
|
362
|
-
innererror: AcsRouterCommunicationError;
|
363
|
-
/** List of Router Communication Errors */
|
364
|
-
details: AcsRouterCommunicationError[];
|
365
|
-
}
|
366
|
-
|
367
|
-
/** Schema of common properties of all Router events */
|
368
|
-
export declare interface AcsRouterEventData {
|
369
|
-
/** Router Event Job ID */
|
370
|
-
jobId: string;
|
371
|
-
/** Router Event Channel Reference */
|
372
|
-
channelReference: string;
|
373
|
-
/** Router Event Channel ID */
|
374
|
-
channelId: string;
|
375
|
-
}
|
376
|
-
|
377
|
-
/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterJobCancelled event */
|
378
|
-
export declare type AcsRouterJobCancelledEventData = AcsRouterJobEventData & {
|
379
|
-
/** Router Job Note */
|
380
|
-
note: string;
|
381
|
-
/** Router Job Disposition Code */
|
382
|
-
dispositionCode: string;
|
383
|
-
};
|
384
|
-
|
385
|
-
/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterJobClassificationFailed event */
|
386
|
-
export declare type AcsRouterJobClassificationFailedEventData = AcsRouterJobEventData & {
|
387
|
-
/** Router Job Classification Policy Id */
|
388
|
-
classificationPolicyId: string;
|
389
|
-
/** Router Job Classification Failed Errors */
|
390
|
-
errors: AcsRouterCommunicationError[];
|
391
|
-
};
|
392
|
-
|
393
|
-
/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterJobClassified event */
|
394
|
-
export declare type AcsRouterJobClassifiedEventData = AcsRouterJobEventData & {
|
395
|
-
/** Router Job Queue Info */
|
396
|
-
queueDetails: AcsRouterQueueDetails;
|
397
|
-
/** Router Job Classification Policy Id */
|
398
|
-
classificationPolicyId: string;
|
399
|
-
/** Router Job Priority */
|
400
|
-
priority: number;
|
401
|
-
/** Router Job Attached Worker Selector */
|
402
|
-
attachedWorkerSelectors: AcsRouterWorkerSelector[];
|
403
|
-
};
|
404
|
-
|
405
|
-
/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterJobClosed event */
|
406
|
-
export declare type AcsRouterJobClosedEventData = AcsRouterJobEventData & {
|
407
|
-
/** Router Job Closed Assignment Id */
|
408
|
-
assignmentId: string;
|
409
|
-
/** Router Job Closed Worker Id */
|
410
|
-
workerId: string;
|
411
|
-
/** Router Job Closed Disposition Code */
|
412
|
-
dispositionCode: string;
|
413
|
-
};
|
414
|
-
|
415
|
-
/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterJobCompleted event */
|
416
|
-
export declare type AcsRouterJobCompletedEventData = AcsRouterJobEventData & {
|
417
|
-
/** Router Job Completed Assignment Id */
|
418
|
-
assignmentId: string;
|
419
|
-
/** Router Job Completed Worker Id */
|
420
|
-
workerId: string;
|
421
|
-
};
|
422
|
-
|
423
|
-
/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterJobDeleted event */
|
424
|
-
export declare type AcsRouterJobDeletedEventData = AcsRouterJobEventData & {};
|
425
|
-
|
426
|
-
/** Schema of common properties of all Router Job events */
|
427
|
-
export declare type AcsRouterJobEventData = AcsRouterEventData & {
|
428
|
-
/** Router Job events Queue Id */
|
429
|
-
queueId: string;
|
430
|
-
/** Router Job events Labels */
|
431
|
-
labels: {
|
432
|
-
[propertyName: string]: string;
|
433
|
-
};
|
434
|
-
/** Router Jobs events Tags */
|
435
|
-
tags: {
|
436
|
-
[propertyName: string]: string;
|
437
|
-
};
|
438
|
-
};
|
439
|
-
|
440
|
-
/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterJobExceptionTriggered event */
|
441
|
-
export declare type AcsRouterJobExceptionTriggeredEventData = AcsRouterJobEventData & {
|
442
|
-
/** Router Job Exception Triggered Rule Key */
|
443
|
-
ruleKey: string;
|
444
|
-
/** Router Job Exception Triggered Rule Id */
|
445
|
-
exceptionRuleId: string;
|
446
|
-
};
|
447
|
-
|
448
|
-
/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterJobQueued event */
|
449
|
-
export declare type AcsRouterJobQueuedEventData = AcsRouterJobEventData & {
|
450
|
-
/** Router Job Priority */
|
451
|
-
priority: number;
|
452
|
-
/** Router Job Queued Attached Worker Selector */
|
453
|
-
attachedWorkerSelectors: AcsRouterWorkerSelector[];
|
454
|
-
/** Router Job Queued Requested Worker Selector */
|
455
|
-
requestedWorkerSelectors: AcsRouterWorkerSelector[];
|
456
|
-
};
|
457
|
-
|
458
|
-
/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterJobReceived event */
|
459
|
-
export declare type AcsRouterJobReceivedEventData = AcsRouterJobEventData & {
|
460
|
-
/** Router Job Received Job Status */
|
461
|
-
jobStatus?: AcsRouterJobStatus;
|
462
|
-
/** Router Job Classification Policy Id */
|
463
|
-
classificationPolicyId?: string;
|
464
|
-
/** Router Job Priority */
|
465
|
-
priority?: number;
|
466
|
-
/** Router Job Received Requested Worker Selectors */
|
467
|
-
requestedWorkerSelectors?: AcsRouterWorkerSelector[];
|
468
|
-
/** Router Job Received Scheduled Time in UTC */
|
469
|
-
scheduledOn?: string;
|
470
|
-
/** Unavailable For Matching for Router Job Received */
|
471
|
-
unavailableForMatching: boolean;
|
472
|
-
};
|
473
|
-
|
474
|
-
/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterJobSchedulingFailed event */
|
475
|
-
export declare type AcsRouterJobSchedulingFailedEventData = AcsRouterJobEventData & {
|
476
|
-
/** Router Job Priority */
|
477
|
-
priority: number;
|
478
|
-
/** Router Job Scheduling Failed Attached Worker Selector Expired */
|
479
|
-
expiredAttachedWorkerSelectors: AcsRouterWorkerSelector[];
|
480
|
-
/** Router Job Scheduling Failed Requested Worker Selector Expired */
|
481
|
-
expiredRequestedWorkerSelectors: AcsRouterWorkerSelector[];
|
482
|
-
/** Router Job Scheduling Failed Scheduled Time in UTC */
|
483
|
-
scheduledOn: string;
|
484
|
-
/** Router Job Scheduling Failed Reason */
|
485
|
-
failureReason: string;
|
486
|
-
};
|
487
|
-
|
488
|
-
/**
|
489
|
-
* Defines values for AcsRouterJobStatus. \
|
490
|
-
* {@link KnownAcsRouterJobStatus} can be used interchangeably with AcsRouterJobStatus,
|
491
|
-
* this enum contains the known values that the service supports.
|
492
|
-
* ### Known values supported by the service
|
493
|
-
* **PendingClassification** \
|
494
|
-
* **Queued** \
|
495
|
-
* **Assigned** \
|
496
|
-
* **Completed** \
|
497
|
-
* **Closed** \
|
498
|
-
* **Cancelled** \
|
499
|
-
* **ClassificationFailed** \
|
500
|
-
* **Created** \
|
501
|
-
* **PendingSchedule** \
|
502
|
-
* **Scheduled** \
|
503
|
-
* **ScheduleFailed** \
|
504
|
-
* **WaitingForActivation**
|
505
|
-
*/
|
506
|
-
export declare type AcsRouterJobStatus = string;
|
507
|
-
|
508
|
-
/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterJobUnassigned event */
|
509
|
-
export declare type AcsRouterJobUnassignedEventData = AcsRouterJobEventData & {
|
510
|
-
/** Router Job Unassigned Assignment Id */
|
511
|
-
assignmentId: string;
|
512
|
-
/** Router Job Unassigned Worker Id */
|
513
|
-
workerId: string;
|
514
|
-
};
|
515
|
-
|
516
|
-
/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterJobWaitingForActivation event */
|
517
|
-
export declare type AcsRouterJobWaitingForActivationEventData = AcsRouterJobEventData & {
|
518
|
-
/** Router Job Waiting For Activation Priority */
|
519
|
-
priority?: number;
|
520
|
-
/** Router Job Waiting For Activation Worker Selector Expired */
|
521
|
-
expiredAttachedWorkerSelectors?: AcsRouterWorkerSelector[];
|
522
|
-
/** Router Job Waiting For Activation Requested Worker Selector Expired */
|
523
|
-
expiredRequestedWorkerSelectors?: AcsRouterWorkerSelector[];
|
524
|
-
/** Router Job Waiting For Activation Scheduled Time in UTC */
|
525
|
-
scheduledOn?: string;
|
526
|
-
/** Router Job Waiting For Activation Unavailable For Matching */
|
527
|
-
unavailableForMatching: boolean;
|
528
|
-
};
|
529
|
-
|
530
|
-
/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterJobWorkerSelectorsExpired event */
|
531
|
-
export declare type AcsRouterJobWorkerSelectorsExpiredEventData = AcsRouterJobEventData & {
|
532
|
-
/** Router Job Worker Selectors Expired Requested Worker Selectors */
|
533
|
-
expiredRequestedWorkerSelectors: AcsRouterWorkerSelector[];
|
534
|
-
/** Router Job Worker Selectors Expired Attached Worker Selectors */
|
535
|
-
expiredAttachedWorkerSelectors: AcsRouterWorkerSelector[];
|
536
|
-
};
|
537
|
-
|
538
|
-
/**
|
539
|
-
* Defines values for AcsRouterLabelOperator. \
|
540
|
-
* {@link KnownAcsRouterLabelOperator} can be used interchangeably with AcsRouterLabelOperator,
|
541
|
-
* this enum contains the known values that the service supports.
|
542
|
-
* ### Known values supported by the service
|
543
|
-
* **Equal**: = \
|
544
|
-
* **NotEqual**: != \
|
545
|
-
* **Greater**: > \
|
546
|
-
* **Less**: < \
|
547
|
-
* **GreaterThanOrEqual**: >= \
|
548
|
-
* **LessThanOrEqual**: <=
|
549
|
-
*/
|
550
|
-
export declare type AcsRouterLabelOperator = string;
|
551
|
-
|
552
|
-
/** Router Queue Details */
|
553
|
-
export declare interface AcsRouterQueueDetails {
|
554
|
-
/** Router Queue Id */
|
555
|
-
id: string;
|
556
|
-
/** Router Queue Name */
|
557
|
-
name: string;
|
558
|
-
/** Router Queue Labels */
|
559
|
-
labels: {
|
560
|
-
[propertyName: string]: string;
|
561
|
-
};
|
562
|
-
}
|
563
|
-
|
564
|
-
/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterWorkerDeleted event */
|
565
|
-
export declare type AcsRouterWorkerDeletedEventData = AcsRouterWorkerEventData & {};
|
566
|
-
|
567
|
-
/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterWorkerDeregistered event */
|
568
|
-
export declare interface AcsRouterWorkerDeregisteredEventData {
|
569
|
-
/** Router Worker Deregistered Worker Id */
|
570
|
-
workerId: string;
|
571
|
-
}
|
572
|
-
|
573
|
-
/** Schema of common properties of all Router Worker events */
|
574
|
-
export declare type AcsRouterWorkerEventData = AcsRouterEventData & {
|
575
|
-
/** Router Worker events Worker Id */
|
576
|
-
workerId: string;
|
577
|
-
};
|
578
|
-
|
579
|
-
/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterWorkerOfferAccepted event */
|
580
|
-
export declare type AcsRouterWorkerOfferAcceptedEventData = AcsRouterWorkerEventData & {
|
581
|
-
/** Router Worker Offer Accepted Queue Id */
|
582
|
-
queueId: string;
|
583
|
-
/** Router Worker Offer Accepted Offer Id */
|
584
|
-
offerId: string;
|
585
|
-
/** Router Worker Offer Accepted Assignment Id */
|
586
|
-
assignmentId: string;
|
587
|
-
/** Router Worker Offer Accepted Job Priority */
|
588
|
-
jobPriority: number;
|
589
|
-
/** Router Worker Offer Accepted Worker Labels */
|
590
|
-
workerLabels: {
|
591
|
-
[propertyName: string]: string;
|
592
|
-
};
|
593
|
-
/** Router Worker Offer Accepted Worker Tags */
|
594
|
-
workerTags: {
|
595
|
-
[propertyName: string]: string;
|
596
|
-
};
|
597
|
-
/** Router Worker Offer Accepted Job Labels */
|
598
|
-
jobLabels: {
|
599
|
-
[propertyName: string]: string;
|
600
|
-
};
|
601
|
-
/** Router Worker Offer Accepted Job Tags */
|
602
|
-
jobTags: {
|
603
|
-
[propertyName: string]: string;
|
604
|
-
};
|
605
|
-
};
|
606
|
-
|
607
|
-
/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterWorkerOfferDeclined event */
|
608
|
-
export declare type AcsRouterWorkerOfferDeclinedEventData = AcsRouterWorkerEventData & {
|
609
|
-
/** Router Worker Offer Declined Queue Id */
|
610
|
-
queueId: string;
|
611
|
-
/** Router Worker Offer Declined Offer Id */
|
612
|
-
offerId: string;
|
613
|
-
};
|
614
|
-
|
615
|
-
/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterWorkerOfferExpired event */
|
616
|
-
export declare type AcsRouterWorkerOfferExpiredEventData = AcsRouterWorkerEventData & {
|
617
|
-
/** Router Worker Offer Expired Queue Id */
|
618
|
-
queueId: string;
|
619
|
-
/** Router Worker Offer Expired Offer Id */
|
620
|
-
offerId: string;
|
621
|
-
};
|
622
|
-
|
623
|
-
/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterWorkerOfferIssued event */
|
624
|
-
export declare type AcsRouterWorkerOfferIssuedEventData = AcsRouterWorkerEventData & {
|
625
|
-
/** Router Worker Offer Issued Queue Id */
|
626
|
-
queueId: string;
|
627
|
-
/** Router Worker Offer Issued Offer Id */
|
628
|
-
offerId: string;
|
629
|
-
/** Router Worker Offer Issued Job Priority */
|
630
|
-
jobPriority: number;
|
631
|
-
/** Router Worker Offer Issued Worker Labels */
|
632
|
-
workerLabels: {
|
633
|
-
[propertyName: string]: string;
|
634
|
-
};
|
635
|
-
/** Router Worker Offer Issued Time in UTC */
|
636
|
-
offeredOn: string;
|
637
|
-
/** Router Worker Offer Issued Expiration Time in UTC */
|
638
|
-
expiresOn: string;
|
639
|
-
/** Router Worker Offer Issued Worker Tags */
|
640
|
-
workerTags: {
|
641
|
-
[propertyName: string]: string;
|
642
|
-
};
|
643
|
-
/** Router Worker Offer Issued Job Labels */
|
644
|
-
jobLabels: {
|
645
|
-
[propertyName: string]: string;
|
646
|
-
};
|
647
|
-
/** Router Worker Offer Issued Job Tags */
|
648
|
-
jobTags: {
|
649
|
-
[propertyName: string]: string;
|
650
|
-
};
|
651
|
-
};
|
652
|
-
|
653
|
-
/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterWorkerOfferRevoked event */
|
654
|
-
export declare type AcsRouterWorkerOfferRevokedEventData = AcsRouterWorkerEventData & {
|
655
|
-
/** Router Worker Offer Revoked Queue Id */
|
656
|
-
queueId: string;
|
657
|
-
/** Router Worker Offer Revoked Offer Id */
|
658
|
-
offerId: string;
|
659
|
-
};
|
660
|
-
|
661
|
-
/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterWorkerRegistered event */
|
662
|
-
export declare interface AcsRouterWorkerRegisteredEventData {
|
663
|
-
/** Router Worker Registered Worker Id */
|
664
|
-
workerId: string;
|
665
|
-
/** Router Worker Registered Queue Info */
|
666
|
-
queueAssignments: AcsRouterQueueDetails[];
|
667
|
-
/** Router Worker Registered Channel Configuration */
|
668
|
-
channelConfigurations: AcsRouterChannelConfiguration[];
|
669
|
-
/** Router Worker Register Total Capacity */
|
670
|
-
totalCapacity: number;
|
671
|
-
/** Router Worker Registered Labels */
|
672
|
-
labels: {
|
673
|
-
[propertyName: string]: string;
|
674
|
-
};
|
675
|
-
/** Router Worker Registered Tags */
|
676
|
-
tags: {
|
677
|
-
[propertyName: string]: string;
|
678
|
-
};
|
679
|
-
}
|
680
|
-
|
681
|
-
/** Router Job Worker Selector */
|
682
|
-
export declare interface AcsRouterWorkerSelector {
|
683
|
-
/** Router Job Worker Selector Key */
|
684
|
-
key: string;
|
685
|
-
/** Router Job Worker Selector Label Operator */
|
686
|
-
labelOperator: AcsRouterLabelOperator;
|
687
|
-
/** Router Job Worker Selector Value */
|
688
|
-
labelValue: any;
|
689
|
-
/** Router Job Worker Selector Time to Live in Seconds */
|
690
|
-
ttlSeconds: number;
|
691
|
-
/** Router Job Worker Selector State */
|
692
|
-
state: AcsRouterWorkerSelectorState;
|
693
|
-
/** Router Job Worker Selector Expiration Time */
|
694
|
-
expirationTime: string;
|
695
|
-
}
|
696
|
-
|
697
|
-
/**
|
698
|
-
* Defines values for AcsRouterWorkerSelectorState. \
|
699
|
-
* {@link KnownAcsRouterWorkerSelectorState} can be used interchangeably with AcsRouterWorkerSelectorState,
|
700
|
-
* this enum contains the known values that the service supports.
|
701
|
-
* ### Known values supported by the service
|
702
|
-
* **active**: Router Job Worker Selector is Active \
|
703
|
-
* **expired**: Router Job Worker Selector has Expire
|
704
|
-
*/
|
705
|
-
export declare type AcsRouterWorkerSelectorState = string;
|
706
|
-
|
707
343
|
/** Schema for details of a delivery attempt */
|
708
344
|
export declare interface AcsSmsDeliveryAttempt {
|
709
345
|
/** TimeStamp when delivery was attempted */
|
@@ -956,22 +592,6 @@ export declare interface AppConfigurationKeyValueModifiedEventData {
|
|
956
592
|
syncToken: string;
|
957
593
|
}
|
958
594
|
|
959
|
-
/** Schema of the Data property of an EventGridEvent for a Microsoft.AppConfiguration.SnapshotCreated event. */
|
960
|
-
export declare type AppConfigurationSnapshotCreatedEventData = AppConfigurationSnapshotEventData & {};
|
961
|
-
|
962
|
-
/** Schema of common properties of snapshot events */
|
963
|
-
export declare interface AppConfigurationSnapshotEventData {
|
964
|
-
/** The name of the snapshot. */
|
965
|
-
name: string;
|
966
|
-
/** The etag representing the new state of the snapshot. */
|
967
|
-
etag: string;
|
968
|
-
/** The sync token representing the server state after the event. */
|
969
|
-
syncToken: string;
|
970
|
-
}
|
971
|
-
|
972
|
-
/** Schema of the Data property of an EventGridEvent for a Microsoft.AppConfiguration.SnapshotModified event. */
|
973
|
-
export declare type AppConfigurationSnapshotModifiedEventData = AppConfigurationSnapshotEventData & {};
|
974
|
-
|
975
595
|
/** Detail of action on the app. */
|
976
596
|
export declare interface AppEventTypeDetail {
|
977
597
|
/** Type of action of the operation. */
|
@@ -1012,6 +632,14 @@ export { AzureKeyCredential }
|
|
1012
632
|
|
1013
633
|
export { AzureSASCredential }
|
1014
634
|
|
635
|
+
/** Properties of the Event Broker operation. */
|
636
|
+
export declare interface BrokerProperties {
|
637
|
+
/** The token of the lock on the event. */
|
638
|
+
lockToken: string;
|
639
|
+
/** The attempt count for delivering the event. */
|
640
|
+
deliveryCount: number;
|
641
|
+
}
|
642
|
+
|
1015
643
|
/**
|
1016
644
|
* An event in the Cloud Event 1.0 schema.
|
1017
645
|
*/
|
@@ -1052,6 +680,10 @@ export declare interface CloudEvent<T> {
|
|
1052
680
|
* Additional context attributes for the event. The Cloud Event specification refers to these as "extension attributes".
|
1053
681
|
*/
|
1054
682
|
extensionAttributes?: Record<string, unknown>;
|
683
|
+
/**
|
684
|
+
* The version of the CloudEvents specification which the event uses.
|
685
|
+
*/
|
686
|
+
specversion?: string | "1.0";
|
1055
687
|
}
|
1056
688
|
|
1057
689
|
/**
|
@@ -1213,18 +845,6 @@ export declare type ContainerRegistryImageDeletedEventData = ContainerRegistryEv
|
|
1213
845
|
/** Schema of the Data property of an EventGridEvent for a Microsoft.ContainerRegistry.ImagePushed event. */
|
1214
846
|
export declare type ContainerRegistryImagePushedEventData = ContainerRegistryEventData & {};
|
1215
847
|
|
1216
|
-
/** Schema of the Data property of an EventGridEvent for a Microsoft.ContainerService.ClusterSupportEnded event */
|
1217
|
-
export declare type ContainerServiceClusterSupportEndedEventData = ContainerServiceClusterSupportEventData & {};
|
1218
|
-
|
1219
|
-
/** Schema of the Data property of an EventGridEvent for a Microsoft.ContainerService.ClusterSupportEnding event */
|
1220
|
-
export declare type ContainerServiceClusterSupportEndingEventData = ContainerServiceClusterSupportEventData & {};
|
1221
|
-
|
1222
|
-
/** Schema of common properties of cluster support events */
|
1223
|
-
export declare interface ContainerServiceClusterSupportEventData {
|
1224
|
-
/** The Kubernetes version of the ManagedCluster resource */
|
1225
|
-
kubernetesVersion: string;
|
1226
|
-
}
|
1227
|
-
|
1228
848
|
/** Schema of the Data property of an EventGridEvent for a Microsoft.ContainerService.NewKubernetesVersionAvailable event */
|
1229
849
|
export declare interface ContainerServiceNewKubernetesVersionAvailableEventData {
|
1230
850
|
/** The highest PATCH Kubernetes version for the highest MINOR version supported by ManagedCluster resource */
|
@@ -1237,21 +857,6 @@ export declare interface ContainerServiceNewKubernetesVersionAvailableEventData
|
|
1237
857
|
latestPreviewKubernetesVersion: string;
|
1238
858
|
}
|
1239
859
|
|
1240
|
-
/** Schema of common properties of node pool rolling events */
|
1241
|
-
export declare interface ContainerServiceNodePoolRollingEventData {
|
1242
|
-
/** The name of the node pool in the ManagedCluster resource */
|
1243
|
-
nodePoolName: string;
|
1244
|
-
}
|
1245
|
-
|
1246
|
-
/** Schema of the Data property of an EventGridEvent for a Microsoft.ContainerService.NodePoolRollingFailed event */
|
1247
|
-
export declare type ContainerServiceNodePoolRollingFailedEventData = ContainerServiceNodePoolRollingEventData & {};
|
1248
|
-
|
1249
|
-
/** Schema of the Data property of an EventGridEvent for a Microsoft.ContainerService.NodePoolRollingStarted event */
|
1250
|
-
export declare type ContainerServiceNodePoolRollingStartedEventData = ContainerServiceNodePoolRollingEventData & {};
|
1251
|
-
|
1252
|
-
/** Schema of the Data property of an EventGridEvent for a Microsoft.ContainerService.NodePoolRollingSucceeded event */
|
1253
|
-
export declare type ContainerServiceNodePoolRollingSucceededEventData = ContainerServiceNodePoolRollingEventData & {};
|
1254
|
-
|
1255
860
|
/** Schema of the Data property of an EventGridEvent for a Microsoft.DataBox.CopyCompleted event. */
|
1256
861
|
export declare interface DataBoxCopyCompletedEventData {
|
1257
862
|
/** Serial Number of the device associated with the event. The list is comma separated if more than one serial number is associated. */
|
@@ -1391,6 +996,97 @@ export declare interface DeviceTwinMetadata {
|
|
1391
996
|
lastUpdated: string;
|
1392
997
|
}
|
1393
998
|
|
999
|
+
/**
|
1000
|
+
* Event Grid Client
|
1001
|
+
*/
|
1002
|
+
export declare class EventGridClient {
|
1003
|
+
private _client;
|
1004
|
+
/** Azure Messaging EventGrid Client */
|
1005
|
+
constructor(endpoint: string, credential: AzureKeyCredential, options?: EventGridClientOptions);
|
1006
|
+
/**
|
1007
|
+
* Publish Single Cloud Event to namespace topic. In case of success, the server responds with an HTTP 200
|
1008
|
+
* status code with an empty JSON object in response. Otherwise, the server can return various error codes.
|
1009
|
+
* For example, 401: which indicates authorization failure, 403: which indicates quota exceeded or message
|
1010
|
+
* is too large, 410: which indicates that specific topic is not found, 400: for bad request, and 500: for
|
1011
|
+
* internal server error.
|
1012
|
+
*
|
1013
|
+
* @param event - Event to publish
|
1014
|
+
* @param topicName - Topic to publish the event
|
1015
|
+
* @param options - Options to publish
|
1016
|
+
*
|
1017
|
+
*/
|
1018
|
+
publishCloudEvent<T>(event: CloudEvent<T>, topicName: string, options?: PublishCloudEventOptions): Promise<PublishResultOutput>;
|
1019
|
+
/**
|
1020
|
+
* Publish Batch Cloud Event to namespace topic. In case of success, the server responds with an HTTP 200
|
1021
|
+
* status code with an empty JSON object in response. Otherwise, the server can return various error codes.
|
1022
|
+
* For example, 401: which indicates authorization failure, 403: which indicates quota exceeded or message
|
1023
|
+
* is too large, 410: which indicates that specific topic is not found, 400: for bad request, and 500: for
|
1024
|
+
* internal server error.
|
1025
|
+
*
|
1026
|
+
* @param events - Events to publish
|
1027
|
+
* @param topicName - Topic to publish the event
|
1028
|
+
* @param options - Options to publish
|
1029
|
+
*
|
1030
|
+
*/
|
1031
|
+
publishCloudEvents<T>(events: CloudEvent<T>[], topicName: string, options?: PublishCloudEventsOptions): Promise<PublishResultOutput>;
|
1032
|
+
/**
|
1033
|
+
* Receive Batch of Cloud Events from the Event Subscription.
|
1034
|
+
*
|
1035
|
+
* @param topicName - Topic to receive
|
1036
|
+
* @param eventSubscriptionName - Name of the Event Subscription
|
1037
|
+
* @param options - Options to receive
|
1038
|
+
*
|
1039
|
+
*/
|
1040
|
+
receiveCloudEvents<T>(topicName: string, eventSubscriptionName: string, options?: ReceiveCloudEventsOptions): Promise<ReceiveResult<T>>;
|
1041
|
+
/**
|
1042
|
+
* Acknowledge batch of Cloud Events. The server responds with an HTTP 200 status code if at least one
|
1043
|
+
* event is successfully acknowledged. The response body will include the set of successfully acknowledged
|
1044
|
+
* lockTokens, along with other failed lockTokens with their corresponding error information. Successfully
|
1045
|
+
* acknowledged events will no longer be available to any consumer.
|
1046
|
+
*
|
1047
|
+
* @param lockTokens - Lock Tokens
|
1048
|
+
* @param topicName - Topic Name
|
1049
|
+
* @param eventSubscriptionName - Name of the Event Subscription
|
1050
|
+
* @param options - Options to Acknowledge
|
1051
|
+
*
|
1052
|
+
*/
|
1053
|
+
acknowledgeCloudEvents(lockTokens: string[], topicName: string, eventSubscriptionName: string, options?: AcknowledgeCloudEventsOptions): Promise<AcknowledgeResult>;
|
1054
|
+
/**
|
1055
|
+
* Release batch of Cloud Events. The server responds with an HTTP 200 status code if at least one event is
|
1056
|
+
* successfully released. The response body will include the set of successfully released lockTokens, along
|
1057
|
+
* with other failed lockTokens with their corresponding error information.
|
1058
|
+
*
|
1059
|
+
* @param lockTokens - Lock Tokens
|
1060
|
+
* @param topicName - Topic Name
|
1061
|
+
* @param eventSubscriptionName - Name of the Event Subscription
|
1062
|
+
* @param options - Options to release
|
1063
|
+
*
|
1064
|
+
*/
|
1065
|
+
releaseCloudEvents(lockTokens: string[], topicName: string, eventSubscriptionName: string, options?: ReleaseCloudEventsOptions): Promise<ReleaseResult>;
|
1066
|
+
/**
|
1067
|
+
* Reject batch of Cloud Events.
|
1068
|
+
*
|
1069
|
+
* @param lockTokens - Lock Tokens
|
1070
|
+
* @param topicName - Topic Name
|
1071
|
+
* @param eventSubscriptionName - Name of the Event Subscription
|
1072
|
+
* @param options - Options to reject
|
1073
|
+
*
|
1074
|
+
*/
|
1075
|
+
rejectCloudEvents(lockTokens: string[], topicName: string, eventSubscriptionName: string, options?: RejectCloudEventsOptions): Promise<RejectResult>;
|
1076
|
+
/**
|
1077
|
+
* Renew lock for batch of Cloud Events.
|
1078
|
+
*
|
1079
|
+
* @param lockTokens - Lock Tokens
|
1080
|
+
* @param topicName - Topic Name
|
1081
|
+
* @param eventSubscriptionName - Name of the Event Subscription
|
1082
|
+
* @param options - Options to renew
|
1083
|
+
*/
|
1084
|
+
renewCloudEventLocks(lockTokens: string[], topicName: string, eventSubscriptionName: string, options?: RenewCloudEventLocksOptions): Promise<RenewCloudEventLocksResult>;
|
1085
|
+
}
|
1086
|
+
|
1087
|
+
export declare interface EventGridClientOptions extends ClientOptions {
|
1088
|
+
}
|
1089
|
+
|
1394
1090
|
/**
|
1395
1091
|
* EventGridDeserializer is used to aid in processing events delivered by EventGrid. It can deserialize a JSON encoded payload
|
1396
1092
|
* of either a single event or batch of events as well as be used to convert the result of `JSON.parse` into an
|
@@ -1465,80 +1161,6 @@ export declare interface EventGridEvent<T> {
|
|
1465
1161
|
data: T;
|
1466
1162
|
}
|
1467
1163
|
|
1468
|
-
/** Event data for Microsoft.EventGrid.MQTTClientCreatedOrUpdated event. */
|
1469
|
-
export declare type EventGridMqttClientCreatedOrUpdatedEventData = EventGridMqttClientEventData & {
|
1470
|
-
/** Configured state of the client. The value could be Enabled or Disabled */
|
1471
|
-
state: EventGridMqttClientState;
|
1472
|
-
/** Time the client resource is created based on the provider's UTC time. */
|
1473
|
-
createdOn: string;
|
1474
|
-
/** Time the client resource is last updated based on the provider's UTC time. If the client resource was never updated, this value is identical to the value of the 'createdOn' property. */
|
1475
|
-
updatedOn: string;
|
1476
|
-
/** The key-value attributes that are assigned to the client resource. */
|
1477
|
-
attributes: {
|
1478
|
-
[propertyName: string]: string;
|
1479
|
-
};
|
1480
|
-
};
|
1481
|
-
|
1482
|
-
/** Event data for Microsoft.EventGrid.MQTTClientDeleted event. */
|
1483
|
-
export declare type EventGridMqttClientDeletedEventData = EventGridMqttClientEventData & {};
|
1484
|
-
|
1485
|
-
/**
|
1486
|
-
* Defines values for EventGridMqttClientDisconnectionReason. \
|
1487
|
-
* {@link KnownEventGridMqttClientDisconnectionReason} can be used interchangeably with EventGridMqttClientDisconnectionReason,
|
1488
|
-
* this enum contains the known values that the service supports.
|
1489
|
-
* ### Known values supported by the service
|
1490
|
-
* **ClientAuthenticationError**: The client got disconnected for any authentication reasons (for example, certificate expired, client got disabled, or client configuration changed). \
|
1491
|
-
* **ClientAuthorizationError**: The client got disconnected for any authorization reasons (for example, because of a change in the configuration of topic spaces, permission bindings, or client groups). \
|
1492
|
-
* **ClientError**: The client sent a bad request or used one of the unsupported features that resulted in a connection termination by the service. \
|
1493
|
-
* **ClientInitiatedDisconnect**: The client initiates a graceful disconnect through a DISCONNECT packet for MQTT or a close frame for MQTT over WebSocket. \
|
1494
|
-
* **ConnectionLost**: The client-server connection is lost. (EXCHANGE ONLINE PROTECTION). \
|
1495
|
-
* **IpForbidden**: The client's IP address is blocked by IP filter or Private links configuration. \
|
1496
|
-
* **QuotaExceeded**: The client exceeded one or more of the throttling limits that resulted in a connection termination by the service. \
|
1497
|
-
* **ServerError**: The connection got terminated due to an unexpected server error. \
|
1498
|
-
* **ServerInitiatedDisconnect**: The server initiates a graceful disconnect for any operational reason. \
|
1499
|
-
* **SessionOverflow**: The client's queue for unacknowledged QoS1 messages reached its limit, which resulted in a connection termination by the server. \
|
1500
|
-
* **SessionTakenOver**: The client reconnected with the same authentication name, which resulted in the termination of the previous connection.
|
1501
|
-
*/
|
1502
|
-
export declare type EventGridMqttClientDisconnectionReason = string;
|
1503
|
-
|
1504
|
-
/** Schema of the Data property of an EventGridEvent for MQTT Client state changes. */
|
1505
|
-
export declare interface EventGridMqttClientEventData {
|
1506
|
-
/** Unique identifier for the MQTT client that the client presents to the service for authentication. This case-sensitive string can be up to 128 characters long, and supports UTF-8 characters. */
|
1507
|
-
clientAuthenticationName: string;
|
1508
|
-
/** Name of the client resource in the Event Grid namespace. */
|
1509
|
-
clientName: string;
|
1510
|
-
/** Name of the Event Grid namespace where the MQTT client was created or updated. */
|
1511
|
-
namespaceName: string;
|
1512
|
-
}
|
1513
|
-
|
1514
|
-
/** Event data for Microsoft.EventGrid.MQTTClientSessionConnected event. */
|
1515
|
-
export declare type EventGridMqttClientSessionConnectedEventData = EventGridMqttClientEventData & {
|
1516
|
-
/** Unique identifier for the MQTT client's session. This case-sensitive string can be up to 128 characters long, and supports UTF-8 characters. */
|
1517
|
-
clientSessionName: string;
|
1518
|
-
/** A number that helps indicate order of MQTT client session connected or disconnected events. Latest event will have a sequence number that is higher than the previous event. */
|
1519
|
-
sequenceNumber: number;
|
1520
|
-
};
|
1521
|
-
|
1522
|
-
/** Event data for Microsoft.EventGrid.MQTTClientSessionDisconnected event. */
|
1523
|
-
export declare type EventGridMqttClientSessionDisconnectedEventData = EventGridMqttClientEventData & {
|
1524
|
-
/** Unique identifier for the MQTT client's session. This case-sensitive string can be up to 128 characters long, and supports UTF-8 characters. */
|
1525
|
-
clientSessionName: string;
|
1526
|
-
/** A number that helps indicate order of MQTT client session connected or disconnected events. Latest event will have a sequence number that is higher than the previous event. */
|
1527
|
-
sequenceNumber: number;
|
1528
|
-
/** Reason for the disconnection of the MQTT client's session. The value could be one of the values in the disconnection reasons table. */
|
1529
|
-
disconnectionReason: EventGridMqttClientDisconnectionReason;
|
1530
|
-
};
|
1531
|
-
|
1532
|
-
/**
|
1533
|
-
* Defines values for EventGridMqttClientState. \
|
1534
|
-
* {@link KnownEventGridMqttClientState} can be used interchangeably with EventGridMqttClientState,
|
1535
|
-
* this enum contains the known values that the service supports.
|
1536
|
-
* ### Known values supported by the service
|
1537
|
-
* **Enabled** \
|
1538
|
-
* **Disabled**
|
1539
|
-
*/
|
1540
|
-
export declare type EventGridMqttClientState = string;
|
1541
|
-
|
1542
1164
|
/**
|
1543
1165
|
* Client class for publishing events to the Event Grid Service.
|
1544
1166
|
*/
|
@@ -1615,6 +1237,14 @@ export declare interface EventHubCaptureFileCreatedEventData {
|
|
1615
1237
|
lastEnqueueTime: string;
|
1616
1238
|
}
|
1617
1239
|
|
1240
|
+
/** Failed LockToken information. */
|
1241
|
+
export declare interface FailedLockToken {
|
1242
|
+
/** The lock token of an entry in the request. */
|
1243
|
+
lockToken: string;
|
1244
|
+
/** Error information of the failed operation result for the lock token in the request. */
|
1245
|
+
error: ErrorModel;
|
1246
|
+
}
|
1247
|
+
|
1618
1248
|
/**
|
1619
1249
|
* Generate a shared access signature, which allows a client to send events to an Event Grid Topic or Domain for a limited period of time. This
|
1620
1250
|
* function may only be called when the EventGridPublisherClient was constructed with a KeyCredential instance.
|
@@ -2143,46 +1773,6 @@ export declare interface KeyVaultSecretNewVersionCreatedEventData {
|
|
2143
1773
|
exp: number;
|
2144
1774
|
}
|
2145
1775
|
|
2146
|
-
/** Known values of {@link AcsRouterJobStatus} that the service accepts. */
|
2147
|
-
export declare const enum KnownAcsRouterJobStatus {
|
2148
|
-
PendingClassification = "PendingClassification",
|
2149
|
-
Queued = "Queued",
|
2150
|
-
Assigned = "Assigned",
|
2151
|
-
Completed = "Completed",
|
2152
|
-
Closed = "Closed",
|
2153
|
-
Cancelled = "Cancelled",
|
2154
|
-
ClassificationFailed = "ClassificationFailed",
|
2155
|
-
Created = "Created",
|
2156
|
-
PendingSchedule = "PendingSchedule",
|
2157
|
-
Scheduled = "Scheduled",
|
2158
|
-
ScheduleFailed = "ScheduleFailed",
|
2159
|
-
WaitingForActivation = "WaitingForActivation"
|
2160
|
-
}
|
2161
|
-
|
2162
|
-
/** Known values of {@link AcsRouterLabelOperator} that the service accepts. */
|
2163
|
-
export declare const enum KnownAcsRouterLabelOperator {
|
2164
|
-
/** = */
|
2165
|
-
Equal = "Equal",
|
2166
|
-
/** != */
|
2167
|
-
NotEqual = "NotEqual",
|
2168
|
-
/** > */
|
2169
|
-
Greater = "Greater",
|
2170
|
-
/** < */
|
2171
|
-
Less = "Less",
|
2172
|
-
/** >= */
|
2173
|
-
GreaterThanOrEqual = "GreaterThanOrEqual",
|
2174
|
-
/** <= */
|
2175
|
-
LessThanOrEqual = "LessThanOrEqual"
|
2176
|
-
}
|
2177
|
-
|
2178
|
-
/** Known values of {@link AcsRouterWorkerSelectorState} that the service accepts. */
|
2179
|
-
export declare const enum KnownAcsRouterWorkerSelectorState {
|
2180
|
-
/** Router Job Worker Selector is Active */
|
2181
|
-
Active = "active",
|
2182
|
-
/** Router Job Worker Selector has Expire */
|
2183
|
-
Expired = "expired"
|
2184
|
-
}
|
2185
|
-
|
2186
1776
|
/** Known values of {@link AppAction} that the service accepts. */
|
2187
1777
|
export declare const enum KnownAppAction {
|
2188
1778
|
/** Web app was restarted. */
|
@@ -2215,38 +1805,6 @@ export declare const enum KnownAsyncStatus {
|
|
2215
1805
|
Failed = "Failed"
|
2216
1806
|
}
|
2217
1807
|
|
2218
|
-
/** Known values of {@link EventGridMqttClientDisconnectionReason} that the service accepts. */
|
2219
|
-
export declare const enum KnownEventGridMqttClientDisconnectionReason {
|
2220
|
-
/** The client got disconnected for any authentication reasons (for example, certificate expired, client got disabled, or client configuration changed). */
|
2221
|
-
ClientAuthenticationError = "ClientAuthenticationError",
|
2222
|
-
/** The client got disconnected for any authorization reasons (for example, because of a change in the configuration of topic spaces, permission bindings, or client groups). */
|
2223
|
-
ClientAuthorizationError = "ClientAuthorizationError",
|
2224
|
-
/** The client sent a bad request or used one of the unsupported features that resulted in a connection termination by the service. */
|
2225
|
-
ClientError = "ClientError",
|
2226
|
-
/** The client initiates a graceful disconnect through a DISCONNECT packet for MQTT or a close frame for MQTT over WebSocket. */
|
2227
|
-
ClientInitiatedDisconnect = "ClientInitiatedDisconnect",
|
2228
|
-
/** The client-server connection is lost. (EXCHANGE ONLINE PROTECTION). */
|
2229
|
-
ConnectionLost = "ConnectionLost",
|
2230
|
-
/** The client's IP address is blocked by IP filter or Private links configuration. */
|
2231
|
-
IpForbidden = "IpForbidden",
|
2232
|
-
/** The client exceeded one or more of the throttling limits that resulted in a connection termination by the service. */
|
2233
|
-
QuotaExceeded = "QuotaExceeded",
|
2234
|
-
/** The connection got terminated due to an unexpected server error. */
|
2235
|
-
ServerError = "ServerError",
|
2236
|
-
/** The server initiates a graceful disconnect for any operational reason. */
|
2237
|
-
ServerInitiatedDisconnect = "ServerInitiatedDisconnect",
|
2238
|
-
/** The client's queue for unacknowledged QoS1 messages reached its limit, which resulted in a connection termination by the server. */
|
2239
|
-
SessionOverflow = "SessionOverflow",
|
2240
|
-
/** The client reconnected with the same authentication name, which resulted in the termination of the previous connection. */
|
2241
|
-
SessionTakenOver = "SessionTakenOver"
|
2242
|
-
}
|
2243
|
-
|
2244
|
-
/** Known values of {@link EventGridMqttClientState} that the service accepts. */
|
2245
|
-
export declare const enum KnownEventGridMqttClientState {
|
2246
|
-
Enabled = "Enabled",
|
2247
|
-
Disabled = "Disabled"
|
2248
|
-
}
|
2249
|
-
|
2250
1808
|
/** Known values of {@link StampKind} that the service accepts. */
|
2251
1809
|
export declare const enum KnownStampKind {
|
2252
1810
|
/** App Service Plan is running on a public stamp. */
|
@@ -2924,6 +2482,8 @@ export declare interface MicrosoftTeamsUserIdentifierModel {
|
|
2924
2482
|
cloud?: CommunicationCloudEnvironmentModel;
|
2925
2483
|
}
|
2926
2484
|
|
2485
|
+
export { OperationRestOptions }
|
2486
|
+
|
2927
2487
|
/** A phone number. */
|
2928
2488
|
export declare interface PhoneNumberIdentifierModel {
|
2929
2489
|
/** The phone number in E.164 format. */
|
@@ -2984,6 +2544,43 @@ export declare interface PolicyInsightsPolicyStateDeletedEventData {
|
|
2984
2544
|
complianceReasonCode: string;
|
2985
2545
|
}
|
2986
2546
|
|
2547
|
+
export declare interface PublishCloudEventOptions extends OperationRestOptions {
|
2548
|
+
/** binary mode */
|
2549
|
+
binaryMode?: boolean;
|
2550
|
+
/** content type */
|
2551
|
+
contentType?: string;
|
2552
|
+
}
|
2553
|
+
|
2554
|
+
export declare interface PublishCloudEventsOptions extends OperationRestOptions {
|
2555
|
+
/** content type */
|
2556
|
+
contentType?: string;
|
2557
|
+
}
|
2558
|
+
|
2559
|
+
/** The result of the Publish operation. */
|
2560
|
+
export declare interface PublishResultOutput {
|
2561
|
+
}
|
2562
|
+
|
2563
|
+
export declare interface ReceiveCloudEventsOptions extends OperationRestOptions {
|
2564
|
+
/** Max Events count to be received. Minimum value is 1, while maximum value is 100 events. If not specified, the default value is 1. */
|
2565
|
+
maxEvents?: number;
|
2566
|
+
/** Max wait time value for receive operation in Seconds. It is the time in seconds that the server approximately waits for the availability of an event and responds to the request. If an event is available, the broker responds immediately to the client. Minimum value is 10 seconds, while maximum value is 120 seconds. If not specified, the default value is 60 seconds. */
|
2567
|
+
maxWaitTime?: number;
|
2568
|
+
}
|
2569
|
+
|
2570
|
+
/** Receive operation details per Cloud Event. */
|
2571
|
+
export declare interface ReceiveDetails<T> {
|
2572
|
+
/** The Event Broker details. */
|
2573
|
+
brokerProperties: BrokerProperties;
|
2574
|
+
/** Cloud Event details. */
|
2575
|
+
event: CloudEvent<T>;
|
2576
|
+
}
|
2577
|
+
|
2578
|
+
/** Details of the Receive operation response. */
|
2579
|
+
export declare interface ReceiveResult<T> {
|
2580
|
+
/** Array of receive responses, one per cloud event. */
|
2581
|
+
value: ReceiveDetails<T>[];
|
2582
|
+
}
|
2583
|
+
|
2987
2584
|
/**
|
2988
2585
|
* Defines values for RecordingChannelType. \
|
2989
2586
|
* {@link KnownRecordingChannelType} can be used interchangeably with RecordingChannelType,
|
@@ -3015,6 +2612,45 @@ export declare type RecordingContentType = string;
|
|
3015
2612
|
*/
|
3016
2613
|
export declare type RecordingFormatType = string;
|
3017
2614
|
|
2615
|
+
export declare interface RejectCloudEventsOptions extends OperationRestOptions {
|
2616
|
+
}
|
2617
|
+
|
2618
|
+
/** The result of the Reject operation. */
|
2619
|
+
export declare interface RejectResult {
|
2620
|
+
/** Array of FailedLockToken for failed cloud events. Each FailedLockToken includes the lock token along with the related error information (namely, the error code and description). */
|
2621
|
+
failedLockTokens: FailedLockToken[];
|
2622
|
+
/** Array of lock tokens for the successfully rejected cloud events. */
|
2623
|
+
succeededLockTokens: string[];
|
2624
|
+
}
|
2625
|
+
|
2626
|
+
export declare interface ReleaseCloudEventsOptions extends OperationRestOptions {
|
2627
|
+
/** Release cloud events with the specified delay in seconds. */
|
2628
|
+
releaseDelayInSeconds?: ReleaseDelay;
|
2629
|
+
}
|
2630
|
+
|
2631
|
+
/** Supported delays for release operation. */
|
2632
|
+
/** "0", "10", "60", "600", "3600" */
|
2633
|
+
export declare type ReleaseDelay = string;
|
2634
|
+
|
2635
|
+
/** The result of the Release operation. */
|
2636
|
+
export declare interface ReleaseResult {
|
2637
|
+
/** Array of FailedLockToken for failed cloud events. Each FailedLockToken includes the lock token along with the related error information (namely, the error code and description). */
|
2638
|
+
failedLockTokens: FailedLockToken[];
|
2639
|
+
/** Array of lock tokens for the successfully released cloud events. */
|
2640
|
+
succeededLockTokens: string[];
|
2641
|
+
}
|
2642
|
+
|
2643
|
+
export declare interface RenewCloudEventLocksOptions extends OperationRestOptions {
|
2644
|
+
}
|
2645
|
+
|
2646
|
+
/** The result of the RenewLock operation. */
|
2647
|
+
export declare interface RenewCloudEventLocksResult {
|
2648
|
+
/** Array of FailedLockToken for failed cloud events. Each FailedLockToken includes the lock token along with the related error information (namely, the error code and description). */
|
2649
|
+
failedLockTokens: FailedLockToken[];
|
2650
|
+
/** Array of lock tokens for the successfully renewed locks. */
|
2651
|
+
succeededLockTokens: string[];
|
2652
|
+
}
|
2653
|
+
|
3018
2654
|
/** Schema of the Data property of an EventGridEvent for a Microsoft.Resources.ResourceActionCancel event. This is raised when a resource action operation is canceled. */
|
3019
2655
|
export declare interface ResourceActionCancelEventData {
|
3020
2656
|
/** The tenant ID of the resource. */
|
@@ -3207,72 +2843,6 @@ export declare interface ResourceHttpRequest {
|
|
3207
2843
|
url: string;
|
3208
2844
|
}
|
3209
2845
|
|
3210
|
-
/** Schema of the Data property of an EventGridEvent for a Microsoft.ResourceNotifications.HealthResources.ResourceAnnotated event. */
|
3211
|
-
export declare type ResourceNotificationsHealthResourcesAnnotatedEventData = ResourceNotificationsResourceUpdatedEventData & {};
|
3212
|
-
|
3213
|
-
/** Schema of the Data property of an EventGridEvent for a Microsoft.ResourceNotifications.HealthResources.AvailabilityStatusChanged event. */
|
3214
|
-
export declare type ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventData = ResourceNotificationsResourceUpdatedEventData & {};
|
3215
|
-
|
3216
|
-
/** details of operational info */
|
3217
|
-
export declare interface ResourceNotificationsOperationalDetails {
|
3218
|
-
/** Date and Time when resource was updated */
|
3219
|
-
resourceEventTime: string;
|
3220
|
-
}
|
3221
|
-
|
3222
|
-
/** Describes the schema of the properties under resource info which are common across all ARN system topic delete events */
|
3223
|
-
export declare interface ResourceNotificationsResourceDeletedDetails {
|
3224
|
-
/** id of the resource for which the event is being emitted */
|
3225
|
-
id: string;
|
3226
|
-
/** name of the resource for which the event is being emitted */
|
3227
|
-
name: string;
|
3228
|
-
/** the type of the resource for which the event is being emitted */
|
3229
|
-
type: string;
|
3230
|
-
}
|
3231
|
-
|
3232
|
-
/** Describes the schema of the common properties across all ARN system topic delete events */
|
3233
|
-
export declare interface ResourceNotificationsResourceDeletedEventData {
|
3234
|
-
/** resourceInfo details for delete event */
|
3235
|
-
resourceDetails: ResourceNotificationsResourceDeletedDetails;
|
3236
|
-
/** details about operational info */
|
3237
|
-
operationalDetails: ResourceNotificationsOperationalDetails;
|
3238
|
-
}
|
3239
|
-
|
3240
|
-
/** Schema of the Data property of an EventGridEvent for a Microsoft.ResourceNotifications.Resources.CreatedOrUpdated event. */
|
3241
|
-
export declare type ResourceNotificationsResourceManagementCreatedOrUpdatedEventData = ResourceNotificationsResourceUpdatedEventData & {};
|
3242
|
-
|
3243
|
-
/** Schema of the Data property of an EventGridEvent for a Microsoft.ResourceNotifications.Resources.Deleted event. */
|
3244
|
-
export declare type ResourceNotificationsResourceManagementDeletedEventData = ResourceNotificationsResourceDeletedEventData & {};
|
3245
|
-
|
3246
|
-
/** Describes the schema of the properties under resource info which are common across all ARN system topic events */
|
3247
|
-
export declare interface ResourceNotificationsResourceUpdatedDetails {
|
3248
|
-
/** id of the resource for which the event is being emitted */
|
3249
|
-
id: string;
|
3250
|
-
/** name of the resource for which the event is being emitted */
|
3251
|
-
name: string;
|
3252
|
-
/** the type of the resource for which the event is being emitted */
|
3253
|
-
type: string;
|
3254
|
-
/** the location of the resource for which the event is being emitted */
|
3255
|
-
location: string;
|
3256
|
-
/** the tags on the resource for which the event is being emitted */
|
3257
|
-
tags: {
|
3258
|
-
[propertyName: string]: string;
|
3259
|
-
};
|
3260
|
-
/** properties in the payload of the resource for which the event is being emitted */
|
3261
|
-
properties: {
|
3262
|
-
[propertyName: string]: any;
|
3263
|
-
};
|
3264
|
-
}
|
3265
|
-
|
3266
|
-
/** Describes the schema of the common properties across all ARN system topic events */
|
3267
|
-
export declare interface ResourceNotificationsResourceUpdatedEventData {
|
3268
|
-
/** resourceInfo details for update event */
|
3269
|
-
resourceDetails: ResourceNotificationsResourceUpdatedDetails;
|
3270
|
-
/** details about operational info */
|
3271
|
-
operationalDetails: ResourceNotificationsOperationalDetails;
|
3272
|
-
/** api version of the resource properties bag */
|
3273
|
-
apiVersion: string;
|
3274
|
-
}
|
3275
|
-
|
3276
2846
|
/** 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. */
|
3277
2847
|
export declare interface ResourceWriteCancelEventData {
|
3278
2848
|
/** The tenant ID of the resource. */
|
@@ -4064,78 +3634,6 @@ export declare interface SystemEventNameToEventData {
|
|
4064
3634
|
"Microsoft.ApiManagement.GatewayAPIRemoved": ApiManagementGatewayApiRemovedEventData;
|
4065
3635
|
/** An interface for the event data of a "Microsoft.HealthcareApis.DicomImageUpdated" event. */
|
4066
3636
|
"Microsoft.HealthcareApis.DicomImageUpdated": HealthcareDicomImageUpdatedEventData;
|
4067
|
-
/** An interface for the event data of a "Microsoft.ContainerService.ClusterSupportEnded" event. */
|
4068
|
-
"Microsoft.ContainerService.ClusterSupportEnded": ContainerServiceClusterSupportEndedEventData;
|
4069
|
-
/** An interface for the event data of a "Microsoft.ContainerService.ClusterSupportEnding" event. */
|
4070
|
-
"Microsoft.ContainerService.ClusterSupportEnding": ContainerServiceClusterSupportEndingEventData;
|
4071
|
-
/** An interface for the event data of a "Microsoft.ContainerService.NodePoolRollingStarted" event. */
|
4072
|
-
"Microsoft.ContainerService.NodePoolRollingStarted": ContainerServiceNodePoolRollingStartedEventData;
|
4073
|
-
/** An interface for the event data of a "Microsoft.ContainerService.NodePoolRollingSucceeded" event. */
|
4074
|
-
"Microsoft.ContainerService.NodePoolRollingSucceeded": ContainerServiceNodePoolRollingSucceededEventData;
|
4075
|
-
/** An interface for the event data of a "Microsoft.ContainerService.NodePoolRollingFailed" event. */
|
4076
|
-
"Microsoft.ContainerService.NodePoolRollingFailed": ContainerServiceNodePoolRollingFailedEventData;
|
4077
|
-
/** An interface for the event data of a "Microsoft.EventGrid.MQTTClientCreatedOrUpdated" event. */
|
4078
|
-
"Microsoft.EventGrid.MQTTClientCreatedOrUpdated": EventGridMqttClientCreatedOrUpdatedEventData;
|
4079
|
-
/** An interface for the event data of a "Microsoft.EventGrid.MQTTClientDeleted" event. */
|
4080
|
-
"Microsoft.EventGrid.MQTTClientDeleted": EventGridMqttClientDeletedEventData;
|
4081
|
-
/** An interface for the event data of a "Microsoft.EventGrid.MQTTClientSessionConnected" event. */
|
4082
|
-
"Microsoft.EventGrid.MQTTClientSessionConnected": EventGridMqttClientSessionConnectedEventData;
|
4083
|
-
/** An interface for the event data of a "Microsoft.EventGrid.MQTTClientSessionDisconnected" event. */
|
4084
|
-
"Microsoft.EventGrid.MQTTClientSessionDisconnected": EventGridMqttClientSessionDisconnectedEventData;
|
4085
|
-
/** An interface for the event data of a "Microsoft.AppConfiguration.SnapshotCreated" event. */
|
4086
|
-
"Microsoft.AppConfiguration.SnapshotCreated": AppConfigurationSnapshotCreatedEventData;
|
4087
|
-
/** An interface for the event data of a "Microsoft.AppConfiguration.SnapshotModified" event. */
|
4088
|
-
"Microsoft.AppConfiguration.SnapshotModified": AppConfigurationSnapshotModifiedEventData;
|
4089
|
-
/** An interface for the event data of a "Microsoft.ResourceNotifications.HealthResources.AvailabilityStatusChanged" event. */
|
4090
|
-
"Microsoft.ResourceNotifications.HealthResources.AvailabilityStatusChanged": ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventData;
|
4091
|
-
/** An interface for the event data of a "Microsoft.ResourceNotifications.HealthResources.ResourceAnnotated" event. */
|
4092
|
-
"Microsoft.ResourceNotifications.HealthResources.ResourceAnnotated": ResourceNotificationsHealthResourcesAnnotatedEventData;
|
4093
|
-
/** An interface for the event data of a "Microsoft.Communication.RouterWorkerDeregistered" event. */
|
4094
|
-
"Microsoft.Communication.RouterWorkerDeregistered": AcsRouterWorkerDeregisteredEventData;
|
4095
|
-
/** An interface for the event data of a "Microsoft.Communication.RouterWorkerRegistered" event. */
|
4096
|
-
"Microsoft.Communication.RouterWorkerRegistered": AcsRouterWorkerRegisteredEventData;
|
4097
|
-
/** An interface for the event data of a "Microsoft.Communication.RouterJobCancelled" event. */
|
4098
|
-
"Microsoft.Communication.RouterJobCancelled": AcsRouterJobCancelledEventData;
|
4099
|
-
/** An interface for the event data of a "Microsoft.Communication.RouterJobClassificationFailed" event. */
|
4100
|
-
"Microsoft.Communication.RouterJobClassificationFailed": AcsRouterJobClassificationFailedEventData;
|
4101
|
-
/** An interface for the event data of a "Microsoft.Communication.RouterJobClassified" event. */
|
4102
|
-
"Microsoft.Communication.RouterJobClassified": AcsRouterJobClassifiedEventData;
|
4103
|
-
/** An interface for the event data of a "Microsoft.Communication.RouterJobClosed" event. */
|
4104
|
-
"Microsoft.Communication.RouterJobClosed": AcsRouterJobClosedEventData;
|
4105
|
-
/** An interface for the event data of a "Microsoft.Communication.RouterJobCompleted" event. */
|
4106
|
-
"Microsoft.Communication.RouterJobCompleted": AcsRouterJobCompletedEventData;
|
4107
|
-
/** An interface for the event data of a "Microsoft.Communication.RouterJobDeleted" event. */
|
4108
|
-
"Microsoft.Communication.RouterJobDeleted": AcsRouterJobDeletedEventData;
|
4109
|
-
/** An interface for the event data of a "Microsoft.Communication.RouterJobExceptionTriggered" event. */
|
4110
|
-
"Microsoft.Communication.RouterJobExceptionTriggered": AcsRouterJobExceptionTriggeredEventData;
|
4111
|
-
/** An interface for the event data of a "Microsoft.Communication.RouterJobQueued" event. */
|
4112
|
-
"Microsoft.Communication.RouterJobQueued": AcsRouterJobQueuedEventData;
|
4113
|
-
/** An interface for the event data of a "Microsoft.Communication.RouterJobReceived" event. */
|
4114
|
-
"Microsoft.Communication.RouterJobReceived": AcsRouterJobReceivedEventData;
|
4115
|
-
/** An interface for the event data of a "Microsoft.Communication.RouterJobSchedulingFailed" event. */
|
4116
|
-
"Microsoft.Communication.RouterJobSchedulingFailed": AcsRouterJobSchedulingFailedEventData;
|
4117
|
-
/** An interface for the event data of a "Microsoft.Communication.RouterJobUnassigned" event. */
|
4118
|
-
"Microsoft.Communication.RouterJobUnassigned": AcsRouterJobUnassignedEventData;
|
4119
|
-
/** An interface for the event data of a "Microsoft.Communication.RouterJobWaitingForActivation" event. */
|
4120
|
-
"Microsoft.Communication.RouterJobWaitingForActivation": AcsRouterJobWaitingForActivationEventData;
|
4121
|
-
/** An interface for the event data of a "Microsoft.Communication.RouterJobWorkerSelectorsExpire" event. */
|
4122
|
-
"Microsoft.Communication.RouterJobWorkerSelectorsExpire": AcsRouterJobWorkerSelectorsExpiredEventData;
|
4123
|
-
/** An interface for the event data of a "Microsoft.Communication.RouterWorkerDeleted" event. */
|
4124
|
-
"Microsoft.Communication.RouterWorkerDeleted": AcsRouterWorkerDeletedEventData;
|
4125
|
-
/** An interface for the event data of a "Microsoft.Communication.RouterWorkerOfferAccepted" event. */
|
4126
|
-
"Microsoft.Communication.RouterWorkerOfferAccepted": AcsRouterWorkerOfferAcceptedEventData;
|
4127
|
-
/** An interface for the event data of a "Microsoft.Communication.RouterWorkerOfferDeclined" event. */
|
4128
|
-
"Microsoft.Communication.RouterWorkerOfferDeclined": AcsRouterWorkerOfferDeclinedEventData;
|
4129
|
-
/** An interface for the event data of a "Microsoft.Communication.RouterWorkerOfferExpired" event. */
|
4130
|
-
"Microsoft.Communication.RouterWorkerOfferExpired": AcsRouterWorkerOfferExpiredEventData;
|
4131
|
-
/** An interface for the event data of a "Microsoft.Communication.RouterWorkerOfferIssued" event. */
|
4132
|
-
"Microsoft.Communication.RouterWorkerOfferIssued": AcsRouterWorkerOfferIssuedEventData;
|
4133
|
-
/** An interface for the event data of a "Microsoft.Communication.RouterWorkerOfferRevoked" event. */
|
4134
|
-
"Microsoft.Communication.RouterWorkerOfferRevoked": AcsRouterWorkerOfferRevokedEventData;
|
4135
|
-
/** An interface for the event data of a "Microsoft.ResourceNotifications.Resources.CreatedOrUpdated" event. */
|
4136
|
-
"Microsoft.ResourceNotifications.Resources.CreatedOrUpdated": ResourceNotificationsResourceManagementCreatedOrUpdatedEventData;
|
4137
|
-
/** An interface for the event data of a "Microsoft.ResourceNotifications.Resources.Deleted" event. */
|
4138
|
-
"Microsoft.ResourceNotifications.Resources.Deleted": ResourceNotificationsResourceManagementDeletedEventData;
|
4139
3637
|
}
|
4140
3638
|
|
4141
3639
|
/** Schema of the Data property of an EventGridEvent for a Microsoft.Web.AppServicePlanUpdated event. */
|