@azure/arm-botservice 4.0.0-beta.1 → 4.0.0-beta.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.
Files changed (70) hide show
  1. package/CHANGELOG.md +7 -10
  2. package/dist/index.js +275 -220
  3. package/dist/index.js.map +1 -1
  4. package/dist/index.min.js +1 -1
  5. package/dist/index.min.js.map +1 -1
  6. package/dist-esm/src/azureBotService.d.ts +5 -2
  7. package/dist-esm/src/azureBotService.d.ts.map +1 -1
  8. package/dist-esm/src/azureBotService.js +32 -3
  9. package/dist-esm/src/azureBotService.js.map +1 -1
  10. package/dist-esm/src/index.d.ts +0 -1
  11. package/dist-esm/src/index.d.ts.map +1 -1
  12. package/dist-esm/src/index.js +0 -1
  13. package/dist-esm/src/index.js.map +1 -1
  14. package/dist-esm/src/models/index.d.ts +105 -86
  15. package/dist-esm/src/models/index.d.ts.map +1 -1
  16. package/dist-esm/src/models/index.js.map +1 -1
  17. package/dist-esm/src/models/mappers.d.ts +5 -2
  18. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  19. package/dist-esm/src/models/mappers.js +265 -193
  20. package/dist-esm/src/models/mappers.js.map +1 -1
  21. package/dist-esm/src/operations/botConnection.d.ts +2 -2
  22. package/dist-esm/src/operations/botConnection.d.ts.map +1 -1
  23. package/dist-esm/src/operations/botConnection.js.map +1 -1
  24. package/dist-esm/src/operations/bots.d.ts +2 -2
  25. package/dist-esm/src/operations/bots.d.ts.map +1 -1
  26. package/dist-esm/src/operations/bots.js.map +1 -1
  27. package/dist-esm/src/operations/channels.d.ts +2 -2
  28. package/dist-esm/src/operations/channels.d.ts.map +1 -1
  29. package/dist-esm/src/operations/channels.js +1 -1
  30. package/dist-esm/src/operations/channels.js.map +1 -1
  31. package/dist-esm/src/operations/directLine.d.ts +2 -2
  32. package/dist-esm/src/operations/directLine.d.ts.map +1 -1
  33. package/dist-esm/src/operations/directLine.js.map +1 -1
  34. package/dist-esm/src/operations/hostSettings.d.ts +2 -2
  35. package/dist-esm/src/operations/hostSettings.d.ts.map +1 -1
  36. package/dist-esm/src/operations/hostSettings.js.map +1 -1
  37. package/dist-esm/src/operations/operationResults.d.ts +2 -2
  38. package/dist-esm/src/operations/operationResults.d.ts.map +1 -1
  39. package/dist-esm/src/operations/operationResults.js.map +1 -1
  40. package/dist-esm/src/operations/operations.d.ts +2 -2
  41. package/dist-esm/src/operations/operations.d.ts.map +1 -1
  42. package/dist-esm/src/operations/operations.js.map +1 -1
  43. package/dist-esm/src/operations/privateEndpointConnections.d.ts +2 -2
  44. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
  45. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
  46. package/dist-esm/src/operations/privateLinkResources.d.ts +2 -2
  47. package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -1
  48. package/dist-esm/src/operations/privateLinkResources.js.map +1 -1
  49. package/package.json +1 -1
  50. package/review/arm-botservice.api.md +36 -24
  51. package/src/azureBotService.ts +46 -3
  52. package/src/index.ts +0 -1
  53. package/src/models/index.ts +111 -88
  54. package/src/models/mappers.ts +278 -207
  55. package/src/operations/botConnection.ts +3 -3
  56. package/src/operations/bots.ts +3 -3
  57. package/src/operations/channels.ts +4 -4
  58. package/src/operations/directLine.ts +3 -3
  59. package/src/operations/hostSettings.ts +3 -3
  60. package/src/operations/operationResults.ts +3 -3
  61. package/src/operations/operations.ts +3 -3
  62. package/src/operations/privateEndpointConnections.ts +3 -3
  63. package/src/operations/privateLinkResources.ts +3 -3
  64. package/types/arm-botservice.d.ts +56 -44
  65. package/types/tsdoc-metadata.json +1 -1
  66. package/dist-esm/src/azureBotServiceContext.d.ts +0 -16
  67. package/dist-esm/src/azureBotServiceContext.d.ts.map +0 -1
  68. package/dist-esm/src/azureBotServiceContext.js +0 -49
  69. package/dist-esm/src/azureBotServiceContext.js.map +0 -1
  70. package/src/azureBotServiceContext.ts +0 -70
package/CHANGELOG.md CHANGED
@@ -1,14 +1,11 @@
1
- ## 4.0.0-beta.1 (2021-11-23)
1
+ # Release History
2
+
3
+ ## 4.0.0-beta.2 (2021-12-27)
2
4
 
3
- This is the first preview for the new version of the `@azure/arm-botservice` package that follows the new [guidelines for TypeScript SDKs](https://azure.github.io/azure-sdk/typescript_introduction.html) for Azure services.
5
+ The package of @azure/arm-botservice is using our next generation design principles since version 4.0.0-beta.2, which contains breaking changes.
4
6
 
5
- While this package remains auto generated, the SDK generator itself has undergone changes to comply with the above guidelines in order to generate packages that are idiomatic to the JavaScript/TypeScript ecosystem and consistent with other packages for Azure services. For more on this, please see [State of the Azure SDK 2021](https://devblogs.microsoft.com/azure-sdk/state-of-the-azure-sdk-2021/).
7
+ To understand the detail of the change, please refer to [Changelog](https://aka.ms/js-track2-changelog).
6
8
 
7
- Please note that this version has breaking changes, all of which were made after careful consideration during the authoring of the guidelines and user studies.
9
+ To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide).
8
10
 
9
- **Noteworthy changes and features**
10
- - Authentication: The packages `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` are no longer supported. Use package [@azure/identity](https://www.npmjs.com/package/@azure/identity) instead. Select a credential from Azure Identity examples based on the authentication method of your choice.
11
- - Callbacks: Method overloads that used callbacks have been removed and the use of promises is encouraged instead.
12
- - List operations now return an iterable result that follows the `PagedAsyncIterableIterator` interface as opposed to the previous model where you had to make a new request using the link to the next page.
13
- - Long running operations i.e. the Lro related object returned by methods whose names started with `begin`, now uses `pollUntilDone` to check whether the request is finished, instead of `pollUntilFinished`. To get the final result, use the corresponding method that will have the suffix `AndWait`.
14
- - The SDK only supports ECMAScript 2015 (ES6) and beyond, all projects that referenced this SDK should be upgraded to use ES6.
11
+ To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart).
package/dist/index.js CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var tslib = require('tslib');
6
5
  var coreClient = require('@azure/core-client');
6
+ var tslib = require('tslib');
7
7
  var coreLro = require('@azure/core-lro');
8
8
 
9
9
  /*
@@ -261,6 +261,12 @@ const BotProperties = {
261
261
  name: "String"
262
262
  }
263
263
  },
264
+ storageResourceId: {
265
+ serializedName: "storageResourceId",
266
+ type: {
267
+ name: "String"
268
+ }
269
+ },
264
270
  privateEndpointConnections: {
265
271
  serializedName: "privateEndpointConnections",
266
272
  readOnly: true,
@@ -420,6 +426,7 @@ const Resource = {
420
426
  },
421
427
  kind: {
422
428
  serializedName: "kind",
429
+ nullable: true,
423
430
  type: {
424
431
  name: "String"
425
432
  }
@@ -553,6 +560,218 @@ const Channel = {
553
560
  type: {
554
561
  name: "String"
555
562
  }
563
+ },
564
+ provisioningState: {
565
+ serializedName: "provisioningState",
566
+ readOnly: true,
567
+ type: {
568
+ name: "String"
569
+ }
570
+ },
571
+ location: {
572
+ serializedName: "location",
573
+ type: {
574
+ name: "String"
575
+ }
576
+ }
577
+ }
578
+ }
579
+ };
580
+ const ChannelSettings = {
581
+ type: {
582
+ name: "Composite",
583
+ className: "ChannelSettings",
584
+ modelProperties: {
585
+ extensionKey1: {
586
+ serializedName: "extensionKey1",
587
+ type: {
588
+ name: "String"
589
+ }
590
+ },
591
+ extensionKey2: {
592
+ serializedName: "extensionKey2",
593
+ type: {
594
+ name: "String"
595
+ }
596
+ },
597
+ sites: {
598
+ serializedName: "sites",
599
+ type: {
600
+ name: "Sequence",
601
+ element: {
602
+ type: {
603
+ name: "Composite",
604
+ className: "Site"
605
+ }
606
+ }
607
+ }
608
+ },
609
+ channelId: {
610
+ serializedName: "channelId",
611
+ type: {
612
+ name: "String"
613
+ }
614
+ },
615
+ channelDisplayName: {
616
+ serializedName: "channelDisplayName",
617
+ type: {
618
+ name: "String"
619
+ }
620
+ },
621
+ botId: {
622
+ serializedName: "botId",
623
+ type: {
624
+ name: "String"
625
+ }
626
+ },
627
+ botIconUrl: {
628
+ serializedName: "botIconUrl",
629
+ type: {
630
+ name: "String"
631
+ }
632
+ },
633
+ isEnabled: {
634
+ serializedName: "isEnabled",
635
+ type: {
636
+ name: "Boolean"
637
+ }
638
+ },
639
+ disableLocalAuth: {
640
+ serializedName: "disableLocalAuth",
641
+ type: {
642
+ name: "Boolean"
643
+ }
644
+ }
645
+ }
646
+ }
647
+ };
648
+ const WebChatSite = {
649
+ type: {
650
+ name: "Composite",
651
+ className: "WebChatSite",
652
+ modelProperties: {
653
+ siteId: {
654
+ serializedName: "siteId",
655
+ readOnly: true,
656
+ type: {
657
+ name: "String"
658
+ }
659
+ },
660
+ siteName: {
661
+ serializedName: "siteName",
662
+ required: true,
663
+ type: {
664
+ name: "String"
665
+ }
666
+ },
667
+ key: {
668
+ serializedName: "key",
669
+ readOnly: true,
670
+ type: {
671
+ name: "String"
672
+ }
673
+ },
674
+ key2: {
675
+ serializedName: "key2",
676
+ readOnly: true,
677
+ type: {
678
+ name: "String"
679
+ }
680
+ },
681
+ isEnabled: {
682
+ serializedName: "isEnabled",
683
+ required: true,
684
+ type: {
685
+ name: "Boolean"
686
+ }
687
+ },
688
+ isWebchatPreviewEnabled: {
689
+ defaultValue: false,
690
+ serializedName: "isWebchatPreviewEnabled",
691
+ required: true,
692
+ type: {
693
+ name: "Boolean"
694
+ }
695
+ }
696
+ }
697
+ }
698
+ };
699
+ const DirectLineSite = {
700
+ type: {
701
+ name: "Composite",
702
+ className: "DirectLineSite",
703
+ modelProperties: {
704
+ siteId: {
705
+ serializedName: "siteId",
706
+ readOnly: true,
707
+ type: {
708
+ name: "String"
709
+ }
710
+ },
711
+ siteName: {
712
+ serializedName: "siteName",
713
+ required: true,
714
+ type: {
715
+ name: "String"
716
+ }
717
+ },
718
+ key: {
719
+ serializedName: "key",
720
+ readOnly: true,
721
+ type: {
722
+ name: "String"
723
+ }
724
+ },
725
+ key2: {
726
+ serializedName: "key2",
727
+ readOnly: true,
728
+ type: {
729
+ name: "String"
730
+ }
731
+ },
732
+ isEnabled: {
733
+ serializedName: "isEnabled",
734
+ required: true,
735
+ type: {
736
+ name: "Boolean"
737
+ }
738
+ },
739
+ isV1Enabled: {
740
+ serializedName: "isV1Enabled",
741
+ required: true,
742
+ type: {
743
+ name: "Boolean"
744
+ }
745
+ },
746
+ isV3Enabled: {
747
+ serializedName: "isV3Enabled",
748
+ required: true,
749
+ type: {
750
+ name: "Boolean"
751
+ }
752
+ },
753
+ isSecureSiteEnabled: {
754
+ serializedName: "isSecureSiteEnabled",
755
+ type: {
756
+ name: "Boolean"
757
+ }
758
+ },
759
+ isBlockUserUploadEnabled: {
760
+ serializedName: "isBlockUserUploadEnabled",
761
+ type: {
762
+ name: "Boolean"
763
+ }
764
+ },
765
+ trustedOrigins: {
766
+ serializedName: "trustedOrigins",
767
+ type: {
768
+ name: "Sequence",
769
+ element: {
770
+ type: {
771
+ name: "String"
772
+ }
773
+ }
774
+ }
556
775
  }
557
776
  }
558
777
  }
@@ -927,6 +1146,18 @@ const ConnectionSettingProperties = {
927
1146
  name: "Composite",
928
1147
  className: "ConnectionSettingProperties",
929
1148
  modelProperties: {
1149
+ id: {
1150
+ serializedName: "id",
1151
+ type: {
1152
+ name: "String"
1153
+ }
1154
+ },
1155
+ name: {
1156
+ serializedName: "name",
1157
+ type: {
1158
+ name: "String"
1159
+ }
1160
+ },
930
1161
  clientId: {
931
1162
  serializedName: "clientId",
932
1163
  type: {
@@ -998,6 +1229,7 @@ const ConnectionSettingParameter = {
998
1229
  },
999
1230
  value: {
1000
1231
  serializedName: "value",
1232
+ nullable: true,
1001
1233
  type: {
1002
1234
  name: "String"
1003
1235
  }
@@ -1478,56 +1710,6 @@ const WebChatChannelProperties = {
1478
1710
  }
1479
1711
  }
1480
1712
  };
1481
- const WebChatSite = {
1482
- type: {
1483
- name: "Composite",
1484
- className: "WebChatSite",
1485
- modelProperties: {
1486
- siteId: {
1487
- serializedName: "siteId",
1488
- readOnly: true,
1489
- type: {
1490
- name: "String"
1491
- }
1492
- },
1493
- siteName: {
1494
- serializedName: "siteName",
1495
- required: true,
1496
- type: {
1497
- name: "String"
1498
- }
1499
- },
1500
- key: {
1501
- serializedName: "key",
1502
- readOnly: true,
1503
- type: {
1504
- name: "String"
1505
- }
1506
- },
1507
- key2: {
1508
- serializedName: "key2",
1509
- readOnly: true,
1510
- type: {
1511
- name: "String"
1512
- }
1513
- },
1514
- isEnabled: {
1515
- serializedName: "isEnabled",
1516
- required: true,
1517
- type: {
1518
- name: "Boolean"
1519
- }
1520
- },
1521
- isWebchatPreviewEnabled: {
1522
- serializedName: "isWebchatPreviewEnabled",
1523
- required: true,
1524
- type: {
1525
- name: "Boolean"
1526
- }
1527
- }
1528
- }
1529
- }
1530
- };
1531
1713
  const DirectLineChannelProperties = {
1532
1714
  type: {
1533
1715
  name: "Composite",
@@ -1554,86 +1736,6 @@ const DirectLineChannelProperties = {
1554
1736
  }
1555
1737
  }
1556
1738
  };
1557
- const DirectLineSite = {
1558
- type: {
1559
- name: "Composite",
1560
- className: "DirectLineSite",
1561
- modelProperties: {
1562
- siteId: {
1563
- serializedName: "siteId",
1564
- readOnly: true,
1565
- type: {
1566
- name: "String"
1567
- }
1568
- },
1569
- siteName: {
1570
- serializedName: "siteName",
1571
- required: true,
1572
- type: {
1573
- name: "String"
1574
- }
1575
- },
1576
- key: {
1577
- serializedName: "key",
1578
- readOnly: true,
1579
- type: {
1580
- name: "String"
1581
- }
1582
- },
1583
- key2: {
1584
- serializedName: "key2",
1585
- readOnly: true,
1586
- type: {
1587
- name: "String"
1588
- }
1589
- },
1590
- isEnabled: {
1591
- serializedName: "isEnabled",
1592
- required: true,
1593
- type: {
1594
- name: "Boolean"
1595
- }
1596
- },
1597
- isV1Enabled: {
1598
- serializedName: "isV1Enabled",
1599
- required: true,
1600
- type: {
1601
- name: "Boolean"
1602
- }
1603
- },
1604
- isV3Enabled: {
1605
- serializedName: "isV3Enabled",
1606
- required: true,
1607
- type: {
1608
- name: "Boolean"
1609
- }
1610
- },
1611
- isSecureSiteEnabled: {
1612
- serializedName: "isSecureSiteEnabled",
1613
- type: {
1614
- name: "Boolean"
1615
- }
1616
- },
1617
- isBlockUserUploadEnabled: {
1618
- serializedName: "isBlockUserUploadEnabled",
1619
- type: {
1620
- name: "Boolean"
1621
- }
1622
- },
1623
- trustedOrigins: {
1624
- serializedName: "trustedOrigins",
1625
- type: {
1626
- name: "Sequence",
1627
- element: {
1628
- type: {
1629
- name: "String"
1630
- }
1631
- }
1632
- }
1633
- }
1634
- }
1635
- }
1636
- };
1637
1739
  const TelegramChannelProperties = {
1638
1740
  type: {
1639
1741
  name: "Composite",
@@ -2015,12 +2117,6 @@ const AlexaChannel = {
2015
2117
  name: "Composite",
2016
2118
  className: "AlexaChannelProperties"
2017
2119
  }
2018
- }, provisioningState: {
2019
- serializedName: "provisioningState",
2020
- readOnly: true,
2021
- type: {
2022
- name: "String"
2023
- }
2024
2120
  } })
2025
2121
  }
2026
2122
  };
@@ -2037,16 +2133,6 @@ const FacebookChannel = {
2037
2133
  name: "Composite",
2038
2134
  className: "FacebookChannelProperties"
2039
2135
  }
2040
- }, provisioningState: {
2041
- serializedName: "provisioningState",
2042
- type: {
2043
- name: "String"
2044
- }
2045
- }, location: {
2046
- serializedName: "location",
2047
- type: {
2048
- name: "String"
2049
- }
2050
2136
  } })
2051
2137
  }
2052
2138
  };
@@ -2063,11 +2149,6 @@ const EmailChannel = {
2063
2149
  name: "Composite",
2064
2150
  className: "EmailChannelProperties"
2065
2151
  }
2066
- }, provisioningState: {
2067
- serializedName: "provisioningState",
2068
- type: {
2069
- name: "String"
2070
- }
2071
2152
  } })
2072
2153
  }
2073
2154
  };
@@ -2084,16 +2165,6 @@ const MsTeamsChannel = {
2084
2165
  name: "Composite",
2085
2166
  className: "MsTeamsChannelProperties"
2086
2167
  }
2087
- }, provisioningState: {
2088
- serializedName: "provisioningState",
2089
- type: {
2090
- name: "String"
2091
- }
2092
- }, location: {
2093
- serializedName: "location",
2094
- type: {
2095
- name: "String"
2096
- }
2097
2168
  } })
2098
2169
  }
2099
2170
  };
@@ -2142,16 +2213,6 @@ const WebChatChannel = {
2142
2213
  name: "Composite",
2143
2214
  className: "WebChatChannelProperties"
2144
2215
  }
2145
- }, location: {
2146
- serializedName: "location",
2147
- type: {
2148
- name: "String"
2149
- }
2150
- }, provisioningState: {
2151
- serializedName: "provisioningState",
2152
- type: {
2153
- name: "String"
2154
- }
2155
2216
  } })
2156
2217
  }
2157
2218
  };
@@ -2168,16 +2229,6 @@ const DirectLineChannel = {
2168
2229
  name: "Composite",
2169
2230
  className: "DirectLineChannelProperties"
2170
2231
  }
2171
- }, provisioningState: {
2172
- serializedName: "provisioningState",
2173
- type: {
2174
- name: "String"
2175
- }
2176
- }, location: {
2177
- serializedName: "location",
2178
- type: {
2179
- name: "String"
2180
- }
2181
2232
  } })
2182
2233
  }
2183
2234
  };
@@ -2194,11 +2245,6 @@ const TelegramChannel = {
2194
2245
  name: "Composite",
2195
2246
  className: "TelegramChannelProperties"
2196
2247
  }
2197
- }, provisioningState: {
2198
- serializedName: "provisioningState",
2199
- type: {
2200
- name: "String"
2201
- }
2202
2248
  } })
2203
2249
  }
2204
2250
  };
@@ -2231,11 +2277,6 @@ const SlackChannel = {
2231
2277
  name: "Composite",
2232
2278
  className: "SlackChannelProperties"
2233
2279
  }
2234
- }, location: {
2235
- serializedName: "location",
2236
- type: {
2237
- name: "String"
2238
- }
2239
2280
  } })
2240
2281
  }
2241
2282
  };
@@ -2268,14 +2309,45 @@ const DirectLineSpeechChannel = {
2268
2309
  name: "Composite",
2269
2310
  className: "DirectLineSpeechChannelProperties"
2270
2311
  }
2271
- }, provisioningState: {
2272
- serializedName: "provisioningState",
2312
+ } })
2313
+ }
2314
+ };
2315
+ const Site = {
2316
+ type: {
2317
+ name: "Composite",
2318
+ className: "Site",
2319
+ modelProperties: Object.assign(Object.assign(Object.assign({}, WebChatSite.type.modelProperties), DirectLineSite.type.modelProperties), { isTokenEnabled: {
2320
+ serializedName: "isTokenEnabled",
2321
+ type: {
2322
+ name: "Boolean"
2323
+ }
2324
+ }, eTag: {
2325
+ serializedName: "eTag",
2273
2326
  type: {
2274
2327
  name: "String"
2275
2328
  }
2276
2329
  } })
2277
2330
  }
2278
2331
  };
2332
+ const ListChannelWithKeysResponse = {
2333
+ type: {
2334
+ name: "Composite",
2335
+ className: "ListChannelWithKeysResponse",
2336
+ modelProperties: Object.assign(Object.assign({}, BotChannel.type.modelProperties), { resource: {
2337
+ serializedName: "resource",
2338
+ type: {
2339
+ name: "Composite",
2340
+ className: "Channel"
2341
+ }
2342
+ }, setting: {
2343
+ serializedName: "setting",
2344
+ type: {
2345
+ name: "Composite",
2346
+ className: "ChannelSettings"
2347
+ }
2348
+ } })
2349
+ }
2350
+ };
2279
2351
  let discriminators = {
2280
2352
  Channel: Channel,
2281
2353
  "Channel.AlexaChannel": AlexaChannel,
@@ -2305,6 +2377,9 @@ var Mappers = /*#__PURE__*/Object.freeze({
2305
2377
  ErrorBody: ErrorBody,
2306
2378
  BotResponseList: BotResponseList,
2307
2379
  Channel: Channel,
2380
+ ChannelSettings: ChannelSettings,
2381
+ WebChatSite: WebChatSite,
2382
+ DirectLineSite: DirectLineSite,
2308
2383
  ChannelResponseList: ChannelResponseList,
2309
2384
  SiteInfo: SiteInfo,
2310
2385
  CheckNameAvailabilityRequestBody: CheckNameAvailabilityRequestBody,
@@ -2333,9 +2408,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
2333
2408
  SkypeChannelProperties: SkypeChannelProperties,
2334
2409
  KikChannelProperties: KikChannelProperties,
2335
2410
  WebChatChannelProperties: WebChatChannelProperties,
2336
- WebChatSite: WebChatSite,
2337
2411
  DirectLineChannelProperties: DirectLineChannelProperties,
2338
- DirectLineSite: DirectLineSite,
2339
2412
  TelegramChannelProperties: TelegramChannelProperties,
2340
2413
  SmsChannelProperties: SmsChannelProperties,
2341
2414
  SlackChannelProperties: SlackChannelProperties,
@@ -2361,6 +2434,8 @@ var Mappers = /*#__PURE__*/Object.freeze({
2361
2434
  SlackChannel: SlackChannel,
2362
2435
  LineChannel: LineChannel,
2363
2436
  DirectLineSpeechChannel: DirectLineSpeechChannel,
2437
+ Site: Site,
2438
+ ListChannelWithKeysResponse: ListChannelWithKeysResponse,
2364
2439
  discriminators: discriminators
2365
2440
  });
2366
2441
 
@@ -3222,7 +3297,7 @@ const listWithKeysOperationSpec = {
3222
3297
  httpMethod: "POST",
3223
3298
  responses: {
3224
3299
  200: {
3225
- bodyMapper: BotChannel
3300
+ bodyMapper: ListChannelWithKeysResponse
3226
3301
  },
3227
3302
  default: {
3228
3303
  bodyMapper: ErrorModel
@@ -4218,9 +4293,9 @@ const listByBotResourceOperationSpec = {
4218
4293
  * Code generated by Microsoft (R) AutoRest Code Generator.
4219
4294
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
4220
4295
  */
4221
- class AzureBotServiceContext extends coreClient.ServiceClient {
4296
+ class AzureBotService extends coreClient.ServiceClient {
4222
4297
  /**
4223
- * Initializes a new instance of the AzureBotServiceContext class.
4298
+ * Initializes a new instance of the AzureBotService class.
4224
4299
  * @param credentials Subscription credentials which uniquely identify client subscription.
4225
4300
  * @param subscriptionId Azure Subscription ID.
4226
4301
  * @param options The parameter options
@@ -4240,7 +4315,7 @@ class AzureBotServiceContext extends coreClient.ServiceClient {
4240
4315
  requestContentType: "application/json; charset=utf-8",
4241
4316
  credential: credentials
4242
4317
  };
4243
- const packageDetails = `azsdk-js-arm-botservice/4.0.0-beta.1`;
4318
+ const packageDetails = `azsdk-js-arm-botservice/4.0.0-beta.2`;
4244
4319
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
4245
4320
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
4246
4321
  : `${packageDetails}`;
@@ -4256,25 +4331,6 @@ class AzureBotServiceContext extends coreClient.ServiceClient {
4256
4331
  // Assigning values to Constant parameters
4257
4332
  this.$host = options.$host || "https://management.azure.com";
4258
4333
  this.apiVersion = options.apiVersion || "2021-05-01-preview";
4259
- }
4260
- }
4261
-
4262
- /*
4263
- * Copyright (c) Microsoft Corporation.
4264
- * Licensed under the MIT License.
4265
- *
4266
- * Code generated by Microsoft (R) AutoRest Code Generator.
4267
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
4268
- */
4269
- class AzureBotService extends AzureBotServiceContext {
4270
- /**
4271
- * Initializes a new instance of the AzureBotService class.
4272
- * @param credentials Subscription credentials which uniquely identify client subscription.
4273
- * @param subscriptionId Azure Subscription ID.
4274
- * @param options The parameter options
4275
- */
4276
- constructor(credentials, subscriptionId, options) {
4277
- super(credentials, subscriptionId, options);
4278
4334
  this.bots = new BotsImpl(this);
4279
4335
  this.channels = new ChannelsImpl(this);
4280
4336
  this.directLine = new DirectLineImpl(this);
@@ -4288,5 +4344,4 @@ class AzureBotService extends AzureBotServiceContext {
4288
4344
  }
4289
4345
 
4290
4346
  exports.AzureBotService = AzureBotService;
4291
- exports.AzureBotServiceContext = AzureBotServiceContext;
4292
4347
  //# sourceMappingURL=index.js.map