@azure/ai-language-conversations 1.0.0-alpha.20230927.1 → 1.0.0-alpha.20231002.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 +94 -96
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/types/tsdoc-metadata.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
3
|
var coreAuth = require('@azure/core-auth');
|
|
6
4
|
var coreTracing = require('@azure/core-tracing');
|
|
7
5
|
var coreRestPipeline = require('@azure/core-rest-pipeline');
|
|
@@ -9,8 +7,7 @@ var coreClient = require('@azure/core-client');
|
|
|
9
7
|
var coreLro = require('@azure/core-lro');
|
|
10
8
|
var tslib = require('tslib');
|
|
11
9
|
|
|
12
|
-
function
|
|
13
|
-
if (e && e.__esModule) return e;
|
|
10
|
+
function _interopNamespaceDefault(e) {
|
|
14
11
|
var n = Object.create(null);
|
|
15
12
|
if (e) {
|
|
16
13
|
Object.keys(e).forEach(function (k) {
|
|
@@ -23,12 +20,12 @@ function _interopNamespace(e) {
|
|
|
23
20
|
}
|
|
24
21
|
});
|
|
25
22
|
}
|
|
26
|
-
n
|
|
23
|
+
n.default = e;
|
|
27
24
|
return Object.freeze(n);
|
|
28
25
|
}
|
|
29
26
|
|
|
30
|
-
var coreRestPipeline__namespace = /*#__PURE__*/
|
|
31
|
-
var coreClient__namespace = /*#__PURE__*/
|
|
27
|
+
var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespaceDefault(coreRestPipeline);
|
|
28
|
+
var coreClient__namespace = /*#__PURE__*/_interopNamespaceDefault(coreClient);
|
|
32
29
|
|
|
33
30
|
// Copyright (c) Microsoft Corporation.
|
|
34
31
|
// Licensed under the MIT license.
|
|
@@ -2723,111 +2720,111 @@ let discriminators = {
|
|
|
2723
2720
|
|
|
2724
2721
|
var Mappers = /*#__PURE__*/Object.freeze({
|
|
2725
2722
|
__proto__: null,
|
|
2726
|
-
|
|
2727
|
-
AnalyzeConversationTaskResult: AnalyzeConversationTaskResult,
|
|
2728
|
-
ErrorResponse: ErrorResponse,
|
|
2729
|
-
ErrorModel: ErrorModel,
|
|
2730
|
-
InnerErrorModel: InnerErrorModel,
|
|
2731
|
-
AnalyzeConversationJobsInput: AnalyzeConversationJobsInput,
|
|
2732
|
-
MultiLanguageConversationAnalysisInput: MultiLanguageConversationAnalysisInput,
|
|
2733
|
-
Conversation: Conversation,
|
|
2734
|
-
TaskIdentifier: TaskIdentifier,
|
|
2735
|
-
JobStateAutoGenerated: JobStateAutoGenerated,
|
|
2736
|
-
ConversationTasksState: ConversationTasksState,
|
|
2737
|
-
ConversationTasksStateTasks: ConversationTasksStateTasks,
|
|
2738
|
-
TaskStateAutoGenerated: TaskStateAutoGenerated,
|
|
2739
|
-
AnalyzeConversationJobStatistics: AnalyzeConversationJobStatistics,
|
|
2740
|
-
RequestStatistics: RequestStatistics,
|
|
2741
|
-
ConversationAnalysisOptions: ConversationAnalysisOptions,
|
|
2742
|
-
ConversationItemBase: ConversationItemBase,
|
|
2743
|
-
ConversationTaskParameters: ConversationTaskParameters,
|
|
2723
|
+
AgeResolution: AgeResolution,
|
|
2744
2724
|
AnalysisParameters: AnalysisParameters,
|
|
2725
|
+
AnalyzeConversationJobResult: AnalyzeConversationJobResult,
|
|
2726
|
+
AnalyzeConversationJobState: AnalyzeConversationJobState,
|
|
2727
|
+
AnalyzeConversationJobStatistics: AnalyzeConversationJobStatistics,
|
|
2728
|
+
AnalyzeConversationJobsInput: AnalyzeConversationJobsInput,
|
|
2729
|
+
AnalyzeConversationLROTask: AnalyzeConversationLROTask,
|
|
2730
|
+
AnalyzeConversationPIIResult: AnalyzeConversationPIIResult,
|
|
2731
|
+
AnalyzeConversationPIITask: AnalyzeConversationPIITask,
|
|
2745
2732
|
AnalyzeConversationResult: AnalyzeConversationResult,
|
|
2733
|
+
AnalyzeConversationSummarizationResult: AnalyzeConversationSummarizationResult,
|
|
2734
|
+
AnalyzeConversationSummarizationTask: AnalyzeConversationSummarizationTask,
|
|
2735
|
+
AnalyzeConversationTask: AnalyzeConversationTask,
|
|
2736
|
+
AnalyzeConversationTaskResult: AnalyzeConversationTaskResult,
|
|
2737
|
+
AnswerSpan: AnswerSpan,
|
|
2738
|
+
AnswersOptions: AnswersOptions,
|
|
2739
|
+
AnswersResult: AnswersResult,
|
|
2740
|
+
AreaResolution: AreaResolution,
|
|
2741
|
+
AudioTiming: AudioTiming,
|
|
2742
|
+
BaseExtraInformation: BaseExtraInformation,
|
|
2746
2743
|
BasePrediction: BasePrediction,
|
|
2747
|
-
ConversationResult: ConversationResult,
|
|
2748
|
-
ConversationIntent: ConversationIntent,
|
|
2749
|
-
ConversationEntity: ConversationEntity,
|
|
2750
2744
|
BaseResolution: BaseResolution,
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2745
|
+
BooleanResolution: BooleanResolution,
|
|
2746
|
+
Conversation: Conversation,
|
|
2747
|
+
ConversationAnalysisClientAnalyzeConversationExceptionHeaders: ConversationAnalysisClientAnalyzeConversationExceptionHeaders,
|
|
2748
|
+
ConversationAnalysisClientConversationAnalysisHeaders: ConversationAnalysisClientConversationAnalysisHeaders,
|
|
2749
|
+
ConversationAnalysisOptions: ConversationAnalysisOptions,
|
|
2754
2750
|
ConversationCallingOptions: ConversationCallingOptions,
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
MetadataFilter: MetadataFilter,
|
|
2759
|
-
MetadataRecord: MetadataRecord,
|
|
2760
|
-
ShortAnswerOptions: ShortAnswerOptions,
|
|
2761
|
-
QuantityResolution: QuantityResolution,
|
|
2762
|
-
AnswersResult: AnswersResult,
|
|
2763
|
-
KnowledgeBaseAnswer: KnowledgeBaseAnswer,
|
|
2764
|
-
KnowledgeBaseAnswerDialog: KnowledgeBaseAnswerDialog,
|
|
2765
|
-
KnowledgeBaseAnswerPrompt: KnowledgeBaseAnswerPrompt,
|
|
2766
|
-
AnswerSpan: AnswerSpan,
|
|
2767
|
-
TaskParameters: TaskParameters,
|
|
2751
|
+
ConversationEntity: ConversationEntity,
|
|
2752
|
+
ConversationIntent: ConversationIntent,
|
|
2753
|
+
ConversationItemBase: ConversationItemBase,
|
|
2768
2754
|
ConversationPIIItemResult: ConversationPIIItemResult,
|
|
2769
|
-
RedactedTranscriptContent: RedactedTranscriptContent,
|
|
2770
|
-
AudioTiming: AudioTiming,
|
|
2771
|
-
Entity: Entity,
|
|
2772
2755
|
ConversationPIIResult: ConversationPIIResult,
|
|
2756
|
+
ConversationPIIResults: ConversationPIIResults,
|
|
2757
|
+
ConversationPIIResultsConversationsItem: ConversationPIIResultsConversationsItem,
|
|
2758
|
+
ConversationPIITaskParameters: ConversationPIITaskParameters,
|
|
2759
|
+
ConversationParameters: ConversationParameters,
|
|
2760
|
+
ConversationPrediction: ConversationPrediction,
|
|
2761
|
+
ConversationRequestStatistics: ConversationRequestStatistics,
|
|
2762
|
+
ConversationResult: ConversationResult,
|
|
2773
2763
|
ConversationResultBase: ConversationResultBase,
|
|
2774
|
-
InputWarning: InputWarning,
|
|
2775
2764
|
ConversationStatistics: ConversationStatistics,
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2765
|
+
ConversationSummarizationTaskParameters: ConversationSummarizationTaskParameters,
|
|
2766
|
+
ConversationTargetIntentResult: ConversationTargetIntentResult,
|
|
2767
|
+
ConversationTaskParameters: ConversationTaskParameters,
|
|
2768
|
+
ConversationTasksState: ConversationTasksState,
|
|
2769
|
+
ConversationTasksStateTasks: ConversationTasksStateTasks,
|
|
2780
2770
|
ConversationalTask: ConversationalTask,
|
|
2781
2771
|
ConversationalTaskResult: ConversationalTaskResult,
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
AnalyzeConversationLROTask: AnalyzeConversationLROTask,
|
|
2785
|
-
AnalyzeConversationJobResult: AnalyzeConversationJobResult,
|
|
2786
|
-
AnalyzeConversationJobState: AnalyzeConversationJobState,
|
|
2787
|
-
ConversationRequestStatistics: ConversationRequestStatistics,
|
|
2788
|
-
TextConversationItem: TextConversationItem,
|
|
2789
|
-
TranscriptConversationItem: TranscriptConversationItem,
|
|
2790
|
-
LuisParameters: LuisParameters,
|
|
2791
|
-
ConversationParameters: ConversationParameters,
|
|
2792
|
-
QuestionAnsweringParameters: QuestionAnsweringParameters,
|
|
2793
|
-
ConversationPrediction: ConversationPrediction,
|
|
2794
|
-
OrchestrationPrediction: OrchestrationPrediction,
|
|
2795
|
-
AgeResolution: AgeResolution,
|
|
2796
|
-
VolumeResolution: VolumeResolution,
|
|
2797
|
-
SpeedResolution: SpeedResolution,
|
|
2798
|
-
AreaResolution: AreaResolution,
|
|
2799
|
-
LengthResolution: LengthResolution,
|
|
2800
|
-
InformationResolution: InformationResolution,
|
|
2801
|
-
TemperatureResolution: TemperatureResolution,
|
|
2802
|
-
WeightResolution: WeightResolution,
|
|
2772
|
+
ConversationsSummaryResult: ConversationsSummaryResult,
|
|
2773
|
+
ConversationsSummaryResultSummariesItem: ConversationsSummaryResultSummariesItem,
|
|
2803
2774
|
CurrencyResolution: CurrencyResolution,
|
|
2804
|
-
BooleanResolution: BooleanResolution,
|
|
2805
2775
|
DateTimeResolution: DateTimeResolution,
|
|
2806
|
-
|
|
2807
|
-
OrdinalResolution: OrdinalResolution,
|
|
2808
|
-
TemporalSpanResolution: TemporalSpanResolution,
|
|
2809
|
-
NumericRangeResolution: NumericRangeResolution,
|
|
2776
|
+
Entity: Entity,
|
|
2810
2777
|
EntitySubtype: EntitySubtype,
|
|
2778
|
+
ErrorModel: ErrorModel,
|
|
2779
|
+
ErrorResponse: ErrorResponse,
|
|
2780
|
+
InformationResolution: InformationResolution,
|
|
2781
|
+
InnerErrorModel: InnerErrorModel,
|
|
2782
|
+
InputError: InputError,
|
|
2783
|
+
InputWarning: InputWarning,
|
|
2784
|
+
JobStateAutoGenerated: JobStateAutoGenerated,
|
|
2785
|
+
KnowledgeBaseAnswer: KnowledgeBaseAnswer,
|
|
2786
|
+
KnowledgeBaseAnswerContext: KnowledgeBaseAnswerContext,
|
|
2787
|
+
KnowledgeBaseAnswerDialog: KnowledgeBaseAnswerDialog,
|
|
2788
|
+
KnowledgeBaseAnswerPrompt: KnowledgeBaseAnswerPrompt,
|
|
2789
|
+
LengthResolution: LengthResolution,
|
|
2811
2790
|
ListKey: ListKey,
|
|
2812
|
-
|
|
2813
|
-
|
|
2791
|
+
LuisCallingOptions: LuisCallingOptions,
|
|
2792
|
+
LuisParameters: LuisParameters,
|
|
2814
2793
|
LuisTargetIntentResult: LuisTargetIntentResult,
|
|
2815
|
-
|
|
2794
|
+
MetadataFilter: MetadataFilter,
|
|
2795
|
+
MetadataRecord: MetadataRecord,
|
|
2796
|
+
MultiLanguageConversationAnalysisInput: MultiLanguageConversationAnalysisInput,
|
|
2797
|
+
NoneLinkedTargetIntentResult: NoneLinkedTargetIntentResult,
|
|
2798
|
+
NumberResolution: NumberResolution,
|
|
2799
|
+
NumericRangeResolution: NumericRangeResolution,
|
|
2800
|
+
OrchestrationPrediction: OrchestrationPrediction,
|
|
2801
|
+
OrdinalResolution: OrdinalResolution,
|
|
2802
|
+
PreBuiltResult: PreBuiltResult,
|
|
2816
2803
|
PreBuiltTaskParameters: PreBuiltTaskParameters,
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2804
|
+
QuantityResolution: QuantityResolution,
|
|
2805
|
+
QueryFilters: QueryFilters,
|
|
2806
|
+
QuestionAnsweringParameters: QuestionAnsweringParameters,
|
|
2807
|
+
QuestionAnsweringTargetIntentResult: QuestionAnsweringTargetIntentResult,
|
|
2808
|
+
RedactedTranscriptContent: RedactedTranscriptContent,
|
|
2809
|
+
RequestStatistics: RequestStatistics,
|
|
2810
|
+
ShortAnswerOptions: ShortAnswerOptions,
|
|
2811
|
+
SpeedResolution: SpeedResolution,
|
|
2821
2812
|
SummaryResult: SummaryResult,
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2813
|
+
SummaryResultConversationsItem: SummaryResultConversationsItem,
|
|
2814
|
+
SummaryResultItem: SummaryResultItem,
|
|
2815
|
+
TargetIntentResult: TargetIntentResult,
|
|
2816
|
+
TaskIdentifier: TaskIdentifier,
|
|
2817
|
+
TaskParameters: TaskParameters,
|
|
2818
|
+
TaskStateAutoGenerated: TaskStateAutoGenerated,
|
|
2819
|
+
TemperatureResolution: TemperatureResolution,
|
|
2820
|
+
TemporalSpanResolution: TemporalSpanResolution,
|
|
2821
|
+
TextConversation: TextConversation,
|
|
2822
|
+
TextConversationItem: TextConversationItem,
|
|
2823
|
+
TranscriptConversation: TranscriptConversation,
|
|
2824
|
+
TranscriptConversationItem: TranscriptConversationItem,
|
|
2825
|
+
VolumeResolution: VolumeResolution,
|
|
2826
|
+
WeightResolution: WeightResolution,
|
|
2827
|
+
WordLevelTiming: WordLevelTiming,
|
|
2831
2828
|
discriminators: discriminators
|
|
2832
2829
|
});
|
|
2833
2830
|
|
|
@@ -2899,7 +2896,7 @@ const task1 = {
|
|
|
2899
2896
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2900
2897
|
*/
|
|
2901
2898
|
/** @internal */
|
|
2902
|
-
|
|
2899
|
+
let ConversationAnalysisClient$1 = class ConversationAnalysisClient extends coreClient__namespace.ServiceClient {
|
|
2903
2900
|
/**
|
|
2904
2901
|
* Initializes a new instance of the ConversationAnalysisClient class.
|
|
2905
2902
|
* @param endpoint Supported Cognitive Services endpoint (e.g.,
|
|
@@ -3026,7 +3023,7 @@ class ConversationAnalysisClient$1 extends coreClient__namespace.ServiceClient {
|
|
|
3026
3023
|
const poller = await this.beginConversationAnalysis(task, options);
|
|
3027
3024
|
return poller.pollUntilDone();
|
|
3028
3025
|
}
|
|
3029
|
-
}
|
|
3026
|
+
};
|
|
3030
3027
|
// Operation Specifications
|
|
3031
3028
|
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
3032
3029
|
const analyzeConversationOperationSpec = {
|
|
@@ -3099,6 +3096,7 @@ function conversationAnalysisAzureKeyCredentialPolicy(credential) {
|
|
|
3099
3096
|
}
|
|
3100
3097
|
|
|
3101
3098
|
// Copyright (c) Microsoft Corporation.
|
|
3099
|
+
// Licensed under the MIT license.
|
|
3102
3100
|
/**
|
|
3103
3101
|
* A client for interacting with the conversational language understanding
|
|
3104
3102
|
* features in Azure Cognitive Language Service.
|