@azure/arm-botservice 4.0.1-alpha.20250717.1 → 4.0.1-alpha.20250729.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/browser/azureBotService.js +24 -5
- package/dist/browser/azureBotService.js.map +1 -1
- package/dist/browser/lroImpl.js +11 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +139 -56
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/botConnection.js +23 -40
- package/dist/browser/operations/botConnection.js.map +1 -1
- package/dist/browser/operations/bots.js +46 -80
- package/dist/browser/operations/bots.js.map +1 -1
- package/dist/browser/operations/channels.js +24 -41
- package/dist/browser/operations/channels.js.map +1 -1
- package/dist/browser/operations/directLine.js +1 -0
- package/dist/browser/operations/directLine.js.map +1 -1
- package/dist/browser/operations/email.js +1 -0
- package/dist/browser/operations/email.js.map +1 -1
- package/dist/browser/operations/hostSettings.js +1 -0
- package/dist/browser/operations/hostSettings.js.map +1 -1
- package/dist/browser/operations/operationResults.js +12 -6
- package/dist/browser/operations/operationResults.js.map +1 -1
- package/dist/browser/operations/operations.js +23 -40
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/privateEndpointConnections.js +10 -27
- package/dist/browser/operations/privateEndpointConnections.js.map +1 -1
- package/dist/browser/operations/privateLinkResources.js +1 -0
- package/dist/browser/operations/privateLinkResources.js.map +1 -1
- package/dist/browser/operations/qnAMakerEndpointKeys.js +1 -0
- package/dist/browser/operations/qnAMakerEndpointKeys.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/azureBotService.js +24 -5
- package/dist/commonjs/azureBotService.js.map +1 -1
- package/dist/commonjs/lroImpl.js +11 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +139 -56
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/botConnection.js +23 -39
- package/dist/commonjs/operations/botConnection.js.map +1 -1
- package/dist/commonjs/operations/bots.js +46 -79
- package/dist/commonjs/operations/bots.js.map +1 -1
- package/dist/commonjs/operations/channels.js +24 -40
- package/dist/commonjs/operations/channels.js.map +1 -1
- package/dist/commonjs/operations/directLine.js +1 -0
- package/dist/commonjs/operations/directLine.js.map +1 -1
- package/dist/commonjs/operations/email.js +1 -0
- package/dist/commonjs/operations/email.js.map +1 -1
- package/dist/commonjs/operations/hostSettings.js +1 -0
- package/dist/commonjs/operations/hostSettings.js.map +1 -1
- package/dist/commonjs/operations/operationResults.js +12 -6
- package/dist/commonjs/operations/operationResults.js.map +1 -1
- package/dist/commonjs/operations/operations.js +23 -39
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/privateEndpointConnections.js +10 -26
- package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -1
- package/dist/commonjs/operations/privateLinkResources.js +1 -0
- package/dist/commonjs/operations/privateLinkResources.js.map +1 -1
- package/dist/commonjs/operations/qnAMakerEndpointKeys.js +1 -0
- package/dist/commonjs/operations/qnAMakerEndpointKeys.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/azureBotService.js +24 -5
- package/dist/esm/azureBotService.js.map +1 -1
- package/dist/esm/lroImpl.js +11 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +139 -56
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/botConnection.js +23 -40
- package/dist/esm/operations/botConnection.js.map +1 -1
- package/dist/esm/operations/bots.js +46 -80
- package/dist/esm/operations/bots.js.map +1 -1
- package/dist/esm/operations/channels.js +24 -41
- package/dist/esm/operations/channels.js.map +1 -1
- package/dist/esm/operations/directLine.js +1 -0
- package/dist/esm/operations/directLine.js.map +1 -1
- package/dist/esm/operations/email.js +1 -0
- package/dist/esm/operations/email.js.map +1 -1
- package/dist/esm/operations/hostSettings.js +1 -0
- package/dist/esm/operations/hostSettings.js.map +1 -1
- package/dist/esm/operations/operationResults.js +12 -6
- package/dist/esm/operations/operationResults.js.map +1 -1
- package/dist/esm/operations/operations.js +23 -40
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/privateEndpointConnections.js +10 -27
- package/dist/esm/operations/privateEndpointConnections.js.map +1 -1
- package/dist/esm/operations/privateLinkResources.js +1 -0
- package/dist/esm/operations/privateLinkResources.js.map +1 -1
- package/dist/esm/operations/qnAMakerEndpointKeys.js +1 -0
- package/dist/esm/operations/qnAMakerEndpointKeys.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/azureBotService.js +24 -5
- package/dist/react-native/azureBotService.js.map +1 -1
- package/dist/react-native/lroImpl.js +11 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/mappers.js +139 -56
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/botConnection.js +23 -40
- package/dist/react-native/operations/botConnection.js.map +1 -1
- package/dist/react-native/operations/bots.js +46 -80
- package/dist/react-native/operations/bots.js.map +1 -1
- package/dist/react-native/operations/channels.js +24 -41
- package/dist/react-native/operations/channels.js.map +1 -1
- package/dist/react-native/operations/directLine.js +1 -0
- package/dist/react-native/operations/directLine.js.map +1 -1
- package/dist/react-native/operations/email.js +1 -0
- package/dist/react-native/operations/email.js.map +1 -1
- package/dist/react-native/operations/hostSettings.js +1 -0
- package/dist/react-native/operations/hostSettings.js.map +1 -1
- package/dist/react-native/operations/operationResults.js +12 -6
- package/dist/react-native/operations/operationResults.js.map +1 -1
- package/dist/react-native/operations/operations.js +23 -40
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/privateEndpointConnections.js +10 -27
- package/dist/react-native/operations/privateEndpointConnections.js.map +1 -1
- package/dist/react-native/operations/privateLinkResources.js +1 -0
- package/dist/react-native/operations/privateLinkResources.js.map +1 -1
- package/dist/react-native/operations/qnAMakerEndpointKeys.js +1 -0
- package/dist/react-native/operations/qnAMakerEndpointKeys.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/package.json +2 -2
- package/review/arm-botservice-node.api.md +1134 -1134
|
@@ -9,6 +9,9 @@ import * as coreClient from "@azure/core-client";
|
|
|
9
9
|
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
10
10
|
import { BotsImpl, ChannelsImpl, DirectLineImpl, EmailImpl, OperationsImpl, BotConnectionImpl, QnAMakerEndpointKeysImpl, HostSettingsImpl, OperationResultsImpl, PrivateEndpointConnectionsImpl, PrivateLinkResourcesImpl } from "./operations/index.js";
|
|
11
11
|
export class AzureBotService extends coreClient.ServiceClient {
|
|
12
|
+
$host;
|
|
13
|
+
apiVersion;
|
|
14
|
+
subscriptionId;
|
|
12
15
|
/**
|
|
13
16
|
* Initializes a new instance of the AzureBotService class.
|
|
14
17
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
@@ -16,7 +19,6 @@ export class AzureBotService extends coreClient.ServiceClient {
|
|
|
16
19
|
* @param options The parameter options
|
|
17
20
|
*/
|
|
18
21
|
constructor(credentials, subscriptionId, options) {
|
|
19
|
-
var _a, _b, _c;
|
|
20
22
|
if (credentials === undefined) {
|
|
21
23
|
throw new Error("'credentials' cannot be null");
|
|
22
24
|
}
|
|
@@ -35,12 +37,17 @@ export class AzureBotService extends coreClient.ServiceClient {
|
|
|
35
37
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
36
38
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
37
39
|
: `${packageDetails}`;
|
|
38
|
-
const optionsWithDefaults =
|
|
40
|
+
const optionsWithDefaults = {
|
|
41
|
+
...defaults,
|
|
42
|
+
...options,
|
|
43
|
+
userAgentOptions: {
|
|
39
44
|
userAgentPrefix
|
|
40
|
-
},
|
|
45
|
+
},
|
|
46
|
+
endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com"
|
|
47
|
+
};
|
|
41
48
|
super(optionsWithDefaults);
|
|
42
49
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
43
|
-
if (
|
|
50
|
+
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
44
51
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
45
52
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
46
53
|
coreRestPipeline.bearerTokenAuthenticationPolicyName);
|
|
@@ -54,7 +61,8 @@ export class AzureBotService extends coreClient.ServiceClient {
|
|
|
54
61
|
});
|
|
55
62
|
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
56
63
|
credential: credentials,
|
|
57
|
-
scopes:
|
|
64
|
+
scopes: optionsWithDefaults.credentialScopes ??
|
|
65
|
+
`${optionsWithDefaults.endpoint}/.default`,
|
|
58
66
|
challengeCallbacks: {
|
|
59
67
|
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
|
|
60
68
|
}
|
|
@@ -103,5 +111,16 @@ export class AzureBotService extends coreClient.ServiceClient {
|
|
|
103
111
|
};
|
|
104
112
|
this.pipeline.addPolicy(apiVersionPolicy);
|
|
105
113
|
}
|
|
114
|
+
bots;
|
|
115
|
+
channels;
|
|
116
|
+
directLine;
|
|
117
|
+
email;
|
|
118
|
+
operations;
|
|
119
|
+
botConnection;
|
|
120
|
+
qnAMakerEndpointKeys;
|
|
121
|
+
hostSettings;
|
|
122
|
+
operationResults;
|
|
123
|
+
privateEndpointConnections;
|
|
124
|
+
privateLinkResources;
|
|
106
125
|
}
|
|
107
126
|
//# sourceMappingURL=azureBotService.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"azureBotService.js","sourceRoot":"","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KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;wBACjD,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;4BACrC,OAAO,cAAc,GAAG,UAAU,CAAC;wBACrC,CAAC;6BAAM,CAAC;4BACN,OAAO,IAAI,CAAC;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;CAaF","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n BotsImpl,\n ChannelsImpl,\n DirectLineImpl,\n EmailImpl,\n OperationsImpl,\n BotConnectionImpl,\n QnAMakerEndpointKeysImpl,\n HostSettingsImpl,\n OperationResultsImpl,\n PrivateEndpointConnectionsImpl,\n PrivateLinkResourcesImpl\n} from \"./operations/index.js\";\nimport {\n Bots,\n Channels,\n DirectLine,\n Email,\n Operations,\n BotConnection,\n QnAMakerEndpointKeys,\n HostSettings,\n OperationResults,\n PrivateEndpointConnections,\n PrivateLinkResources\n} from \"./operationsInterfaces/index.js\";\nimport { AzureBotServiceOptionalParams } from \"./models/index.js\";\n\nexport class AzureBotService extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the AzureBotService class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId Azure Subscription ID.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: AzureBotServiceOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: AzureBotServiceOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-botservice/4.0.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2022-09-15\";\n this.bots = new BotsImpl(this);\n this.channels = new ChannelsImpl(this);\n this.directLine = new DirectLineImpl(this);\n this.email = new EmailImpl(this);\n this.operations = new OperationsImpl(this);\n this.botConnection = new BotConnectionImpl(this);\n this.qnAMakerEndpointKeys = new QnAMakerEndpointKeysImpl(this);\n this.hostSettings = new HostSettingsImpl(this);\n this.operationResults = new OperationResultsImpl(this);\n this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);\n this.privateLinkResources = new PrivateLinkResourcesImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n }\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n bots: Bots;\n channels: Channels;\n directLine: DirectLine;\n email: Email;\n operations: Operations;\n botConnection: BotConnection;\n qnAMakerEndpointKeys: QnAMakerEndpointKeys;\n hostSettings: HostSettings;\n operationResults: OperationResults;\n privateEndpointConnections: PrivateEndpointConnections;\n privateLinkResources: PrivateLinkResources;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"azureBotService.js","sourceRoot":"","sources":["../../src/azureBotService.ts"],"names":[],"mappings":"A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,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;wBACjD,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;4BACrC,OAAO,cAAc,GAAG,UAAU,CAAC;wBACrC,CAAC;6BAAM,CAAC;4BACN,OAAO,IAAI,CAAC;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;IAED,IAAI,CAAO;IACX,QAAQ,CAAW;IACnB,UAAU,CAAa;IACvB,KAAK,CAAQ;IACb,UAAU,CAAa;IACvB,aAAa,CAAgB;IAC7B,oBAAoB,CAAuB;IAC3C,YAAY,CAAe;IAC3B,gBAAgB,CAAmB;IACnC,0BAA0B,CAA6B;IACvD,oBAAoB,CAAuB;CAC5C","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n BotsImpl,\n ChannelsImpl,\n DirectLineImpl,\n EmailImpl,\n OperationsImpl,\n BotConnectionImpl,\n QnAMakerEndpointKeysImpl,\n HostSettingsImpl,\n OperationResultsImpl,\n PrivateEndpointConnectionsImpl,\n PrivateLinkResourcesImpl\n} from \"./operations/index.js\";\nimport {\n Bots,\n Channels,\n DirectLine,\n Email,\n Operations,\n BotConnection,\n QnAMakerEndpointKeys,\n HostSettings,\n OperationResults,\n PrivateEndpointConnections,\n PrivateLinkResources\n} from \"./operationsInterfaces/index.js\";\nimport { AzureBotServiceOptionalParams } from \"./models/index.js\";\n\nexport class AzureBotService extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the AzureBotService class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId Azure Subscription ID.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: AzureBotServiceOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: AzureBotServiceOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-botservice/4.0.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2022-09-15\";\n this.bots = new BotsImpl(this);\n this.channels = new ChannelsImpl(this);\n this.directLine = new DirectLineImpl(this);\n this.email = new EmailImpl(this);\n this.operations = new OperationsImpl(this);\n this.botConnection = new BotConnectionImpl(this);\n this.qnAMakerEndpointKeys = new QnAMakerEndpointKeysImpl(this);\n this.hostSettings = new HostSettingsImpl(this);\n this.operationResults = new OperationResultsImpl(this);\n this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);\n this.privateLinkResources = new PrivateLinkResourcesImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n }\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n bots: Bots;\n channels: Channels;\n directLine: DirectLine;\n email: Email;\n operations: Operations;\n botConnection: BotConnection;\n qnAMakerEndpointKeys: QnAMakerEndpointKeys;\n hostSettings: HostSettings;\n operationResults: OperationResults;\n privateEndpointConnections: PrivateEndpointConnections;\n privateLinkResources: PrivateLinkResources;\n}\n"]}
|
package/dist/browser/lroImpl.js
CHANGED
|
@@ -5,8 +5,12 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __rest } from "tslib";
|
|
9
8
|
export class LroImpl {
|
|
9
|
+
sendOperationFn;
|
|
10
|
+
args;
|
|
11
|
+
spec;
|
|
12
|
+
requestPath;
|
|
13
|
+
requestMethod;
|
|
10
14
|
constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
|
|
11
15
|
this.sendOperationFn = sendOperationFn;
|
|
12
16
|
this.args = args;
|
|
@@ -18,8 +22,12 @@ export class LroImpl {
|
|
|
18
22
|
return this.sendOperationFn(this.args, this.spec);
|
|
19
23
|
}
|
|
20
24
|
async sendPollRequest(path) {
|
|
21
|
-
const
|
|
22
|
-
return this.sendOperationFn(this.args,
|
|
25
|
+
const { requestBody, ...restSpec } = this.spec;
|
|
26
|
+
return this.sendOperationFn(this.args, {
|
|
27
|
+
...restSpec,
|
|
28
|
+
path,
|
|
29
|
+
httpMethod: "GET"
|
|
30
|
+
});
|
|
23
31
|
}
|
|
24
32
|
}
|
|
25
33
|
//# sourceMappingURL=lroImpl.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG
|
|
1
|
+
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,MAAM,OAAO,OAAO;IAER;IACA;IACA;IAKD;IACA;IATT,YACU,eAAkE,EAClE,IAA6B,EAC7B,IAIe,EAChB,cAAsB,IAAI,CAAC,IAAK,EAChC,gBAAwB,IAAI,CAAC,UAAU;QARtC,oBAAe,GAAf,eAAe,CAAmD;QAClE,SAAI,GAAJ,IAAI,CAAyB;QAC7B,SAAI,GAAJ,IAAI,CAIW;QAChB,gBAAW,GAAX,WAAW,CAAqB;QAChC,kBAAa,GAAb,aAAa,CAA0B;IAC7C,CAAC;IACG,KAAK,CAAC,kBAAkB;QAC7B,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;IACpD,CAAC;IACM,KAAK,CAAC,eAAe,CAAC,IAAY;QACvC,MAAM,EAAE,WAAW,EAAE,GAAG,QAAQ,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC;QAC/C,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE;YACrC,GAAG,QAAQ;YACX,IAAI;YACJ,UAAU,EAAE,KAAK;SAClB,CAAC,CAAC;IACL,CAAC;CACF","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport class LroImpl<T> implements LongRunningOperation<T> {\n constructor(\n private sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>,\n private args: Record<string, unknown>,\n private spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>,\n public requestPath: string = spec.path!,\n public requestMethod: string = spec.httpMethod\n ) {}\n public async sendInitialRequest(): Promise<LroResponse<T>> {\n return this.sendOperationFn(this.args, this.spec);\n }\n public async sendPollRequest(path: string): Promise<LroResponse<T>> {\n const { requestBody, ...restSpec } = this.spec;\n return this.sendOperationFn(this.args, {\n ...restSpec,\n path,\n httpMethod: \"GET\"\n });\n }\n}\n"]}
|
|
@@ -2296,25 +2296,30 @@ export const PrivateEndpointConnection = {
|
|
|
2296
2296
|
type: {
|
|
2297
2297
|
name: "Composite",
|
|
2298
2298
|
className: "PrivateEndpointConnection",
|
|
2299
|
-
modelProperties:
|
|
2299
|
+
modelProperties: {
|
|
2300
|
+
...PrivateLinkResourceBase.type.modelProperties,
|
|
2301
|
+
privateEndpoint: {
|
|
2300
2302
|
serializedName: "properties.privateEndpoint",
|
|
2301
2303
|
type: {
|
|
2302
2304
|
name: "Composite",
|
|
2303
2305
|
className: "PrivateEndpoint"
|
|
2304
2306
|
}
|
|
2305
|
-
},
|
|
2307
|
+
},
|
|
2308
|
+
privateLinkServiceConnectionState: {
|
|
2306
2309
|
serializedName: "properties.privateLinkServiceConnectionState",
|
|
2307
2310
|
type: {
|
|
2308
2311
|
name: "Composite",
|
|
2309
2312
|
className: "PrivateLinkServiceConnectionState"
|
|
2310
2313
|
}
|
|
2311
|
-
},
|
|
2314
|
+
},
|
|
2315
|
+
provisioningState: {
|
|
2312
2316
|
serializedName: "properties.provisioningState",
|
|
2313
2317
|
readOnly: true,
|
|
2314
2318
|
type: {
|
|
2315
2319
|
name: "String"
|
|
2316
2320
|
}
|
|
2317
|
-
},
|
|
2321
|
+
},
|
|
2322
|
+
groupIds: {
|
|
2318
2323
|
serializedName: "properties.groupIds",
|
|
2319
2324
|
type: {
|
|
2320
2325
|
name: "Sequence",
|
|
@@ -2324,20 +2329,24 @@ export const PrivateEndpointConnection = {
|
|
|
2324
2329
|
}
|
|
2325
2330
|
}
|
|
2326
2331
|
}
|
|
2327
|
-
}
|
|
2332
|
+
}
|
|
2333
|
+
}
|
|
2328
2334
|
}
|
|
2329
2335
|
};
|
|
2330
2336
|
export const PrivateLinkResource = {
|
|
2331
2337
|
type: {
|
|
2332
2338
|
name: "Composite",
|
|
2333
2339
|
className: "PrivateLinkResource",
|
|
2334
|
-
modelProperties:
|
|
2340
|
+
modelProperties: {
|
|
2341
|
+
...PrivateLinkResourceBase.type.modelProperties,
|
|
2342
|
+
groupId: {
|
|
2335
2343
|
serializedName: "properties.groupId",
|
|
2336
2344
|
readOnly: true,
|
|
2337
2345
|
type: {
|
|
2338
2346
|
name: "String"
|
|
2339
2347
|
}
|
|
2340
|
-
},
|
|
2348
|
+
},
|
|
2349
|
+
requiredMembers: {
|
|
2341
2350
|
serializedName: "properties.requiredMembers",
|
|
2342
2351
|
readOnly: true,
|
|
2343
2352
|
type: {
|
|
@@ -2348,7 +2357,8 @@ export const PrivateLinkResource = {
|
|
|
2348
2357
|
}
|
|
2349
2358
|
}
|
|
2350
2359
|
}
|
|
2351
|
-
},
|
|
2360
|
+
},
|
|
2361
|
+
requiredZoneNames: {
|
|
2352
2362
|
serializedName: "properties.requiredZoneNames",
|
|
2353
2363
|
type: {
|
|
2354
2364
|
name: "Sequence",
|
|
@@ -2358,46 +2368,56 @@ export const PrivateLinkResource = {
|
|
|
2358
2368
|
}
|
|
2359
2369
|
}
|
|
2360
2370
|
}
|
|
2361
|
-
}
|
|
2371
|
+
}
|
|
2372
|
+
}
|
|
2362
2373
|
}
|
|
2363
2374
|
};
|
|
2364
2375
|
export const Bot = {
|
|
2365
2376
|
type: {
|
|
2366
2377
|
name: "Composite",
|
|
2367
2378
|
className: "Bot",
|
|
2368
|
-
modelProperties:
|
|
2379
|
+
modelProperties: {
|
|
2380
|
+
...Resource.type.modelProperties,
|
|
2381
|
+
properties: {
|
|
2369
2382
|
serializedName: "properties",
|
|
2370
2383
|
type: {
|
|
2371
2384
|
name: "Composite",
|
|
2372
2385
|
className: "BotProperties"
|
|
2373
2386
|
}
|
|
2374
|
-
}
|
|
2387
|
+
}
|
|
2388
|
+
}
|
|
2375
2389
|
}
|
|
2376
2390
|
};
|
|
2377
2391
|
export const BotChannel = {
|
|
2378
2392
|
type: {
|
|
2379
2393
|
name: "Composite",
|
|
2380
2394
|
className: "BotChannel",
|
|
2381
|
-
modelProperties:
|
|
2395
|
+
modelProperties: {
|
|
2396
|
+
...Resource.type.modelProperties,
|
|
2397
|
+
properties: {
|
|
2382
2398
|
serializedName: "properties",
|
|
2383
2399
|
type: {
|
|
2384
2400
|
name: "Composite",
|
|
2385
2401
|
className: "Channel"
|
|
2386
2402
|
}
|
|
2387
|
-
}
|
|
2403
|
+
}
|
|
2404
|
+
}
|
|
2388
2405
|
}
|
|
2389
2406
|
};
|
|
2390
2407
|
export const ConnectionSetting = {
|
|
2391
2408
|
type: {
|
|
2392
2409
|
name: "Composite",
|
|
2393
2410
|
className: "ConnectionSetting",
|
|
2394
|
-
modelProperties:
|
|
2411
|
+
modelProperties: {
|
|
2412
|
+
...Resource.type.modelProperties,
|
|
2413
|
+
properties: {
|
|
2395
2414
|
serializedName: "properties",
|
|
2396
2415
|
type: {
|
|
2397
2416
|
name: "Composite",
|
|
2398
2417
|
className: "ConnectionSettingProperties"
|
|
2399
2418
|
}
|
|
2400
|
-
}
|
|
2419
|
+
}
|
|
2420
|
+
}
|
|
2401
2421
|
}
|
|
2402
2422
|
};
|
|
2403
2423
|
export const AlexaChannel = {
|
|
@@ -2407,13 +2427,16 @@ export const AlexaChannel = {
|
|
|
2407
2427
|
className: "AlexaChannel",
|
|
2408
2428
|
uberParent: "Channel",
|
|
2409
2429
|
polymorphicDiscriminator: Channel.type.polymorphicDiscriminator,
|
|
2410
|
-
modelProperties:
|
|
2430
|
+
modelProperties: {
|
|
2431
|
+
...Channel.type.modelProperties,
|
|
2432
|
+
properties: {
|
|
2411
2433
|
serializedName: "properties",
|
|
2412
2434
|
type: {
|
|
2413
2435
|
name: "Composite",
|
|
2414
2436
|
className: "AlexaChannelProperties"
|
|
2415
2437
|
}
|
|
2416
|
-
}
|
|
2438
|
+
}
|
|
2439
|
+
}
|
|
2417
2440
|
}
|
|
2418
2441
|
};
|
|
2419
2442
|
export const FacebookChannel = {
|
|
@@ -2423,13 +2446,16 @@ export const FacebookChannel = {
|
|
|
2423
2446
|
className: "FacebookChannel",
|
|
2424
2447
|
uberParent: "Channel",
|
|
2425
2448
|
polymorphicDiscriminator: Channel.type.polymorphicDiscriminator,
|
|
2426
|
-
modelProperties:
|
|
2449
|
+
modelProperties: {
|
|
2450
|
+
...Channel.type.modelProperties,
|
|
2451
|
+
properties: {
|
|
2427
2452
|
serializedName: "properties",
|
|
2428
2453
|
type: {
|
|
2429
2454
|
name: "Composite",
|
|
2430
2455
|
className: "FacebookChannelProperties"
|
|
2431
2456
|
}
|
|
2432
|
-
}
|
|
2457
|
+
}
|
|
2458
|
+
}
|
|
2433
2459
|
}
|
|
2434
2460
|
};
|
|
2435
2461
|
export const EmailChannel = {
|
|
@@ -2439,13 +2465,16 @@ export const EmailChannel = {
|
|
|
2439
2465
|
className: "EmailChannel",
|
|
2440
2466
|
uberParent: "Channel",
|
|
2441
2467
|
polymorphicDiscriminator: Channel.type.polymorphicDiscriminator,
|
|
2442
|
-
modelProperties:
|
|
2468
|
+
modelProperties: {
|
|
2469
|
+
...Channel.type.modelProperties,
|
|
2470
|
+
properties: {
|
|
2443
2471
|
serializedName: "properties",
|
|
2444
2472
|
type: {
|
|
2445
2473
|
name: "Composite",
|
|
2446
2474
|
className: "EmailChannelProperties"
|
|
2447
2475
|
}
|
|
2448
|
-
}
|
|
2476
|
+
}
|
|
2477
|
+
}
|
|
2449
2478
|
}
|
|
2450
2479
|
};
|
|
2451
2480
|
export const OutlookChannel = {
|
|
@@ -2455,7 +2484,9 @@ export const OutlookChannel = {
|
|
|
2455
2484
|
className: "OutlookChannel",
|
|
2456
2485
|
uberParent: "Channel",
|
|
2457
2486
|
polymorphicDiscriminator: Channel.type.polymorphicDiscriminator,
|
|
2458
|
-
modelProperties:
|
|
2487
|
+
modelProperties: {
|
|
2488
|
+
...Channel.type.modelProperties
|
|
2489
|
+
}
|
|
2459
2490
|
}
|
|
2460
2491
|
};
|
|
2461
2492
|
export const MsTeamsChannel = {
|
|
@@ -2465,13 +2496,16 @@ export const MsTeamsChannel = {
|
|
|
2465
2496
|
className: "MsTeamsChannel",
|
|
2466
2497
|
uberParent: "Channel",
|
|
2467
2498
|
polymorphicDiscriminator: Channel.type.polymorphicDiscriminator,
|
|
2468
|
-
modelProperties:
|
|
2499
|
+
modelProperties: {
|
|
2500
|
+
...Channel.type.modelProperties,
|
|
2501
|
+
properties: {
|
|
2469
2502
|
serializedName: "properties",
|
|
2470
2503
|
type: {
|
|
2471
2504
|
name: "Composite",
|
|
2472
2505
|
className: "MsTeamsChannelProperties"
|
|
2473
2506
|
}
|
|
2474
|
-
}
|
|
2507
|
+
}
|
|
2508
|
+
}
|
|
2475
2509
|
}
|
|
2476
2510
|
};
|
|
2477
2511
|
export const SkypeChannel = {
|
|
@@ -2481,13 +2515,16 @@ export const SkypeChannel = {
|
|
|
2481
2515
|
className: "SkypeChannel",
|
|
2482
2516
|
uberParent: "Channel",
|
|
2483
2517
|
polymorphicDiscriminator: Channel.type.polymorphicDiscriminator,
|
|
2484
|
-
modelProperties:
|
|
2518
|
+
modelProperties: {
|
|
2519
|
+
...Channel.type.modelProperties,
|
|
2520
|
+
properties: {
|
|
2485
2521
|
serializedName: "properties",
|
|
2486
2522
|
type: {
|
|
2487
2523
|
name: "Composite",
|
|
2488
2524
|
className: "SkypeChannelProperties"
|
|
2489
2525
|
}
|
|
2490
|
-
}
|
|
2526
|
+
}
|
|
2527
|
+
}
|
|
2491
2528
|
}
|
|
2492
2529
|
};
|
|
2493
2530
|
export const KikChannel = {
|
|
@@ -2497,13 +2534,16 @@ export const KikChannel = {
|
|
|
2497
2534
|
className: "KikChannel",
|
|
2498
2535
|
uberParent: "Channel",
|
|
2499
2536
|
polymorphicDiscriminator: Channel.type.polymorphicDiscriminator,
|
|
2500
|
-
modelProperties:
|
|
2537
|
+
modelProperties: {
|
|
2538
|
+
...Channel.type.modelProperties,
|
|
2539
|
+
properties: {
|
|
2501
2540
|
serializedName: "properties",
|
|
2502
2541
|
type: {
|
|
2503
2542
|
name: "Composite",
|
|
2504
2543
|
className: "KikChannelProperties"
|
|
2505
2544
|
}
|
|
2506
|
-
}
|
|
2545
|
+
}
|
|
2546
|
+
}
|
|
2507
2547
|
}
|
|
2508
2548
|
};
|
|
2509
2549
|
export const WebChatChannel = {
|
|
@@ -2513,13 +2553,16 @@ export const WebChatChannel = {
|
|
|
2513
2553
|
className: "WebChatChannel",
|
|
2514
2554
|
uberParent: "Channel",
|
|
2515
2555
|
polymorphicDiscriminator: Channel.type.polymorphicDiscriminator,
|
|
2516
|
-
modelProperties:
|
|
2556
|
+
modelProperties: {
|
|
2557
|
+
...Channel.type.modelProperties,
|
|
2558
|
+
properties: {
|
|
2517
2559
|
serializedName: "properties",
|
|
2518
2560
|
type: {
|
|
2519
2561
|
name: "Composite",
|
|
2520
2562
|
className: "WebChatChannelProperties"
|
|
2521
2563
|
}
|
|
2522
|
-
}
|
|
2564
|
+
}
|
|
2565
|
+
}
|
|
2523
2566
|
}
|
|
2524
2567
|
};
|
|
2525
2568
|
export const DirectLineChannel = {
|
|
@@ -2529,13 +2572,16 @@ export const DirectLineChannel = {
|
|
|
2529
2572
|
className: "DirectLineChannel",
|
|
2530
2573
|
uberParent: "Channel",
|
|
2531
2574
|
polymorphicDiscriminator: Channel.type.polymorphicDiscriminator,
|
|
2532
|
-
modelProperties:
|
|
2575
|
+
modelProperties: {
|
|
2576
|
+
...Channel.type.modelProperties,
|
|
2577
|
+
properties: {
|
|
2533
2578
|
serializedName: "properties",
|
|
2534
2579
|
type: {
|
|
2535
2580
|
name: "Composite",
|
|
2536
2581
|
className: "DirectLineChannelProperties"
|
|
2537
2582
|
}
|
|
2538
|
-
}
|
|
2583
|
+
}
|
|
2584
|
+
}
|
|
2539
2585
|
}
|
|
2540
2586
|
};
|
|
2541
2587
|
export const TelegramChannel = {
|
|
@@ -2545,13 +2591,16 @@ export const TelegramChannel = {
|
|
|
2545
2591
|
className: "TelegramChannel",
|
|
2546
2592
|
uberParent: "Channel",
|
|
2547
2593
|
polymorphicDiscriminator: Channel.type.polymorphicDiscriminator,
|
|
2548
|
-
modelProperties:
|
|
2594
|
+
modelProperties: {
|
|
2595
|
+
...Channel.type.modelProperties,
|
|
2596
|
+
properties: {
|
|
2549
2597
|
serializedName: "properties",
|
|
2550
2598
|
type: {
|
|
2551
2599
|
name: "Composite",
|
|
2552
2600
|
className: "TelegramChannelProperties"
|
|
2553
2601
|
}
|
|
2554
|
-
}
|
|
2602
|
+
}
|
|
2603
|
+
}
|
|
2555
2604
|
}
|
|
2556
2605
|
};
|
|
2557
2606
|
export const SmsChannel = {
|
|
@@ -2561,13 +2610,16 @@ export const SmsChannel = {
|
|
|
2561
2610
|
className: "SmsChannel",
|
|
2562
2611
|
uberParent: "Channel",
|
|
2563
2612
|
polymorphicDiscriminator: Channel.type.polymorphicDiscriminator,
|
|
2564
|
-
modelProperties:
|
|
2613
|
+
modelProperties: {
|
|
2614
|
+
...Channel.type.modelProperties,
|
|
2615
|
+
properties: {
|
|
2565
2616
|
serializedName: "properties",
|
|
2566
2617
|
type: {
|
|
2567
2618
|
name: "Composite",
|
|
2568
2619
|
className: "SmsChannelProperties"
|
|
2569
2620
|
}
|
|
2570
|
-
}
|
|
2621
|
+
}
|
|
2622
|
+
}
|
|
2571
2623
|
}
|
|
2572
2624
|
};
|
|
2573
2625
|
export const SlackChannel = {
|
|
@@ -2577,13 +2629,16 @@ export const SlackChannel = {
|
|
|
2577
2629
|
className: "SlackChannel",
|
|
2578
2630
|
uberParent: "Channel",
|
|
2579
2631
|
polymorphicDiscriminator: Channel.type.polymorphicDiscriminator,
|
|
2580
|
-
modelProperties:
|
|
2632
|
+
modelProperties: {
|
|
2633
|
+
...Channel.type.modelProperties,
|
|
2634
|
+
properties: {
|
|
2581
2635
|
serializedName: "properties",
|
|
2582
2636
|
type: {
|
|
2583
2637
|
name: "Composite",
|
|
2584
2638
|
className: "SlackChannelProperties"
|
|
2585
2639
|
}
|
|
2586
|
-
}
|
|
2640
|
+
}
|
|
2641
|
+
}
|
|
2587
2642
|
}
|
|
2588
2643
|
};
|
|
2589
2644
|
export const LineChannel = {
|
|
@@ -2593,13 +2648,16 @@ export const LineChannel = {
|
|
|
2593
2648
|
className: "LineChannel",
|
|
2594
2649
|
uberParent: "Channel",
|
|
2595
2650
|
polymorphicDiscriminator: Channel.type.polymorphicDiscriminator,
|
|
2596
|
-
modelProperties:
|
|
2651
|
+
modelProperties: {
|
|
2652
|
+
...Channel.type.modelProperties,
|
|
2653
|
+
properties: {
|
|
2597
2654
|
serializedName: "properties",
|
|
2598
2655
|
type: {
|
|
2599
2656
|
name: "Composite",
|
|
2600
2657
|
className: "LineChannelProperties"
|
|
2601
2658
|
}
|
|
2602
|
-
}
|
|
2659
|
+
}
|
|
2660
|
+
}
|
|
2603
2661
|
}
|
|
2604
2662
|
};
|
|
2605
2663
|
export const DirectLineSpeechChannel = {
|
|
@@ -2609,13 +2667,16 @@ export const DirectLineSpeechChannel = {
|
|
|
2609
2667
|
className: "DirectLineSpeechChannel",
|
|
2610
2668
|
uberParent: "Channel",
|
|
2611
2669
|
polymorphicDiscriminator: Channel.type.polymorphicDiscriminator,
|
|
2612
|
-
modelProperties:
|
|
2670
|
+
modelProperties: {
|
|
2671
|
+
...Channel.type.modelProperties,
|
|
2672
|
+
properties: {
|
|
2613
2673
|
serializedName: "properties",
|
|
2614
2674
|
type: {
|
|
2615
2675
|
name: "Composite",
|
|
2616
2676
|
className: "DirectLineSpeechChannelProperties"
|
|
2617
2677
|
}
|
|
2618
|
-
}
|
|
2678
|
+
}
|
|
2679
|
+
}
|
|
2619
2680
|
}
|
|
2620
2681
|
};
|
|
2621
2682
|
export const Omnichannel = {
|
|
@@ -2625,7 +2686,9 @@ export const Omnichannel = {
|
|
|
2625
2686
|
className: "Omnichannel",
|
|
2626
2687
|
uberParent: "Channel",
|
|
2627
2688
|
polymorphicDiscriminator: Channel.type.polymorphicDiscriminator,
|
|
2628
|
-
modelProperties:
|
|
2689
|
+
modelProperties: {
|
|
2690
|
+
...Channel.type.modelProperties
|
|
2691
|
+
}
|
|
2629
2692
|
}
|
|
2630
2693
|
};
|
|
2631
2694
|
export const TelephonyChannel = {
|
|
@@ -2635,13 +2698,16 @@ export const TelephonyChannel = {
|
|
|
2635
2698
|
className: "TelephonyChannel",
|
|
2636
2699
|
uberParent: "Channel",
|
|
2637
2700
|
polymorphicDiscriminator: Channel.type.polymorphicDiscriminator,
|
|
2638
|
-
modelProperties:
|
|
2701
|
+
modelProperties: {
|
|
2702
|
+
...Channel.type.modelProperties,
|
|
2703
|
+
properties: {
|
|
2639
2704
|
serializedName: "properties",
|
|
2640
2705
|
type: {
|
|
2641
2706
|
name: "Composite",
|
|
2642
2707
|
className: "TelephonyChannelProperties"
|
|
2643
2708
|
}
|
|
2644
|
-
}
|
|
2709
|
+
}
|
|
2710
|
+
}
|
|
2645
2711
|
}
|
|
2646
2712
|
};
|
|
2647
2713
|
export const AcsChatChannel = {
|
|
@@ -2651,7 +2717,9 @@ export const AcsChatChannel = {
|
|
|
2651
2717
|
className: "AcsChatChannel",
|
|
2652
2718
|
uberParent: "Channel",
|
|
2653
2719
|
polymorphicDiscriminator: Channel.type.polymorphicDiscriminator,
|
|
2654
|
-
modelProperties:
|
|
2720
|
+
modelProperties: {
|
|
2721
|
+
...Channel.type.modelProperties
|
|
2722
|
+
}
|
|
2655
2723
|
}
|
|
2656
2724
|
};
|
|
2657
2725
|
export const SearchAssistant = {
|
|
@@ -2661,7 +2729,9 @@ export const SearchAssistant = {
|
|
|
2661
2729
|
className: "SearchAssistant",
|
|
2662
2730
|
uberParent: "Channel",
|
|
2663
2731
|
polymorphicDiscriminator: Channel.type.polymorphicDiscriminator,
|
|
2664
|
-
modelProperties:
|
|
2732
|
+
modelProperties: {
|
|
2733
|
+
...Channel.type.modelProperties
|
|
2734
|
+
}
|
|
2665
2735
|
}
|
|
2666
2736
|
};
|
|
2667
2737
|
export const M365Extensions = {
|
|
@@ -2671,55 +2741,68 @@ export const M365Extensions = {
|
|
|
2671
2741
|
className: "M365Extensions",
|
|
2672
2742
|
uberParent: "Channel",
|
|
2673
2743
|
polymorphicDiscriminator: Channel.type.polymorphicDiscriminator,
|
|
2674
|
-
modelProperties:
|
|
2744
|
+
modelProperties: {
|
|
2745
|
+
...Channel.type.modelProperties
|
|
2746
|
+
}
|
|
2675
2747
|
}
|
|
2676
2748
|
};
|
|
2677
2749
|
export const WebChatSite = {
|
|
2678
2750
|
type: {
|
|
2679
2751
|
name: "Composite",
|
|
2680
2752
|
className: "WebChatSite",
|
|
2681
|
-
modelProperties:
|
|
2753
|
+
modelProperties: {
|
|
2754
|
+
...Site.type.modelProperties
|
|
2755
|
+
}
|
|
2682
2756
|
}
|
|
2683
2757
|
};
|
|
2684
2758
|
export const DirectLineSite = {
|
|
2685
2759
|
type: {
|
|
2686
2760
|
name: "Composite",
|
|
2687
2761
|
className: "DirectLineSite",
|
|
2688
|
-
modelProperties:
|
|
2762
|
+
modelProperties: {
|
|
2763
|
+
...Site.type.modelProperties
|
|
2764
|
+
}
|
|
2689
2765
|
}
|
|
2690
2766
|
};
|
|
2691
2767
|
export const ListChannelWithKeysResponse = {
|
|
2692
2768
|
type: {
|
|
2693
2769
|
name: "Composite",
|
|
2694
2770
|
className: "ListChannelWithKeysResponse",
|
|
2695
|
-
modelProperties:
|
|
2771
|
+
modelProperties: {
|
|
2772
|
+
...BotChannel.type.modelProperties,
|
|
2773
|
+
resource: {
|
|
2696
2774
|
serializedName: "resource",
|
|
2697
2775
|
type: {
|
|
2698
2776
|
name: "Composite",
|
|
2699
2777
|
className: "Channel"
|
|
2700
2778
|
}
|
|
2701
|
-
},
|
|
2779
|
+
},
|
|
2780
|
+
setting: {
|
|
2702
2781
|
serializedName: "setting",
|
|
2703
2782
|
type: {
|
|
2704
2783
|
name: "Composite",
|
|
2705
2784
|
className: "ChannelSettings"
|
|
2706
2785
|
}
|
|
2707
|
-
},
|
|
2786
|
+
},
|
|
2787
|
+
provisioningState: {
|
|
2708
2788
|
serializedName: "provisioningState",
|
|
2709
2789
|
type: {
|
|
2710
2790
|
name: "String"
|
|
2711
2791
|
}
|
|
2712
|
-
},
|
|
2792
|
+
},
|
|
2793
|
+
entityTag: {
|
|
2713
2794
|
serializedName: "entityTag",
|
|
2714
2795
|
type: {
|
|
2715
2796
|
name: "String"
|
|
2716
2797
|
}
|
|
2717
|
-
},
|
|
2798
|
+
},
|
|
2799
|
+
changedTime: {
|
|
2718
2800
|
serializedName: "changedTime",
|
|
2719
2801
|
type: {
|
|
2720
2802
|
name: "String"
|
|
2721
2803
|
}
|
|
2722
|
-
}
|
|
2804
|
+
}
|
|
2805
|
+
}
|
|
2723
2806
|
}
|
|
2724
2807
|
};
|
|
2725
2808
|
export let discriminators = {
|