Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR cognitiveservices/data-plane/LUIS/Runtime] Update LUIS Runtime swagger to an auto generated version #3834

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -144,5 +144,3 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to
## Related projects

- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)

![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/cognitiveservices/cognitiveservices-luis-runtime/README.png)
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,15 @@
"rollup": "^0.66.2",
"rollup-plugin-node-resolve": "^3.4.0",
"rollup-plugin-sourcemaps": "^0.4.2",
"uglify-js": "^3.4.9",
"mocha": "^6.1.4",
"nock": "^10.0.0"
"uglify-js": "^3.4.9"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/cognitiveservices/cognitiveservices-luis-runtime",
"homepage": "https://github.com/azure/azure-sdk-for-js",
"repository": {
"type": "git",
"url": "https://github.com/Azure/azure-sdk-for-js.git"
"url": "https://github.com/azure/azure-sdk-for-js.git"
},
"bugs": {
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
"url": "https://github.com/azure/azure-sdk-for-js/issues"
},
"files": [
"dist/**/*.js",
Expand All @@ -52,8 +50,7 @@
"scripts": {
"build": "tsc && rollup -c rollup.config.js && npm run minify",
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/cognitiveservices-luis-runtime.js.map'\" -o ./dist/cognitiveservices-luis-runtime.min.js ./dist/cognitiveservices-luis-runtime.js",
"prepack": "npm install && npm run build && npm run test",
"test": "mocha"
"prepack": "npm install && npm run build"
},
"sideEffects": false,
"autoPublish": true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,97 +9,6 @@

import * as msRest from "@azure/ms-rest-js";

/**
* The custom options for the prediction request.
*/
export interface PredictionRequestOptions {
/**
* The reference DateTime used for predicting datetime entities.
*/
datetimeReference?: Date;
/**
* Whether to make the external entities resolution override the predictions if an overlap
* occurs.
*/
overridePredictions?: boolean;
}

/**
* Defines a user predicted entity that extends an already existing one.
*/
export interface ExternalEntity {
/**
* The name of the entity to extend.
*/
entityName: string;
/**
* The start character index of the predicted entity.
*/
startIndex: number;
/**
* The length of the predicted entity.
*/
entityLength: number;
/**
* A user supplied custom resolution to return as the entity's prediction.
*/
resolution?: any;
}

/**
* Defines a sub-list to append to an existing list entity.
*/
export interface RequestList {
/**
* The name of the sub-list.
*/
name?: string;
/**
* The canonical form of the sub-list.
*/
canonicalForm: string;
/**
* The synonyms of the canonical form.
*/
synonyms?: string[];
}

/**
* Defines an extension for a list entity.
*/
export interface DynamicList {
/**
* The name of the list entity to extend.
*/
listEntityName: string;
/**
* The lists to append on the extended list entity.
*/
requestLists: RequestList[];
}

/**
* Represents the prediction request parameters.
*/
export interface PredictionRequest {
/**
* The query to predict
*/
query: string;
/**
* The custom options defined for this request.
*/
options?: PredictionRequestOptions;
/**
* The externally predicted entities for this request
*/
externalEntities?: ExternalEntity[];
/**
* The dynamically created list entities for this request
*/
dynamicLists?: DynamicList[];
}

/**
* Represents an intent prediction.
*/
Expand All @@ -118,14 +27,14 @@ export interface Intent {
* The result of the sentiment analysis.
*/
export interface Sentiment {
/**
* The sentiment score of the query.
*/
score: number;
/**
* The label of the sentiment analysis result.
*/
label?: string;
/**
* The sentiment score of the query.
*/
score: number;
}

/**
Expand Down Expand Up @@ -194,6 +103,97 @@ export interface ErrorModel {
error: ErrorBody;
}

/**
* The custom options for the prediction request.
*/
export interface PredictionRequestOptions {
/**
* The reference DateTime used for predicting datetime entities.
*/
datetimeReference?: Date;
/**
* Whether to make the external entities resolution override the predictions if an overlap
* occurs.
*/
overridePredictions?: boolean;
}

/**
* Defines a user predicted entity that extends an already existing one.
*/
export interface ExternalEntity {
/**
* The name of the entity to extend.
*/
entityName: string;
/**
* The start character index of the predicted entity.
*/
startIndex: number;
/**
* The length of the predicted entity.
*/
entityLength: number;
/**
* A user supplied custom resolution to return as the entity's prediction.
*/
resolution?: any;
}

/**
* Defines a sub-list to append to an existing list entity.
*/
export interface RequestList {
/**
* The name of the sub-list.
*/
name?: string;
/**
* The canonical form of the sub-list.
*/
canonicalForm: string;
/**
* The synonyms of the canonical form.
*/
synonyms?: string[];
}

/**
* Defines an extension for a list entity.
*/
export interface DynamicList {
/**
* The name of the list entity to extend.
*/
listEntityName: string;
/**
* The lists to append on the extended list entity.
*/
requestLists: RequestList[];
}

/**
* Represents the prediction request parameters.
*/
export interface PredictionRequest {
/**
* The query to predict.
*/
query: string;
/**
* The custom options defined for this request.
*/
options?: PredictionRequestOptions;
/**
* The externally predicted entities for this request.
*/
externalEntities?: ExternalEntity[];
/**
* The dynamically created list entities for this request.
*/
dynamicLists?: DynamicList[];
}

/**
* Optional Parameters.
*/
Expand Down
Loading