Skip to content

Commit fb721be

Browse files
Anwesha NaskarAnwesha Naskar
Anwesha Naskar
authored and
Anwesha Naskar
committed
Regenerates uses 08b2c65 api definitions 03d3a37 generator
1 parent 0ab65ab commit fb721be

File tree

10 files changed

+710
-436
lines changed

10 files changed

+710
-436
lines changed

assistant/v1.ts

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2196,6 +2196,47 @@ class AssistantV1 extends BaseService {
21962196
return this.createRequest(parameters, _callback);
21972197
};
21982198

2199+
/*************************
2200+
* userData
2201+
************************/
2202+
2203+
/**
2204+
* Delete labeled data.
2205+
*
2206+
* Deletes all data associated with a specified customer ID. The method has no effect if no data is associated with the customer ID. You associate a customer ID with data by passing the `X-Watson-Metadata` header with a request that passes data. For more information about personal data and customer IDs, see [Information security](https://console.bluemix.net/docs/services/conversation/information-security.html).
2207+
*
2208+
* @param {Object} params - The parameters to send to the service.
2209+
* @param {string} params.customer_id - The customer ID for which all data is to be deleted.
2210+
* @param {Object} [params.headers] - Custom request headers
2211+
* @param {Function} [callback] - The callback that handles the response.
2212+
* @returns {NodeJS.ReadableStream|void}
2213+
*/
2214+
public deleteUserData(params: AssistantV1.DeleteUserDataParams, callback?: AssistantV1.Callback<AssistantV1.Empty>): NodeJS.ReadableStream | void {
2215+
const _params = extend({}, params);
2216+
const _callback = (callback) ? callback : () => { /* noop */ };
2217+
const requiredParams = ['customer_id'];
2218+
const missingParams = getMissingParams(_params, requiredParams);
2219+
if (missingParams) {
2220+
return _callback(missingParams);
2221+
}
2222+
const query = {
2223+
'customer_id': _params.customer_id
2224+
};
2225+
const parameters = {
2226+
options: {
2227+
url: '/v1/user_data',
2228+
method: 'DELETE',
2229+
qs: query,
2230+
},
2231+
defaultOptions: extend(true, {}, this._options, {
2232+
headers: extend(true, {
2233+
'Accept': 'application/json',
2234+
}, _params.headers),
2235+
}),
2236+
};
2237+
return this.createRequest(parameters, _callback);
2238+
};
2239+
21992240
}
22002241

22012242
AssistantV1.prototype.name = 'conversation';
@@ -2845,6 +2886,7 @@ namespace AssistantV1 {
28452886
GENERIC = 'generic',
28462887
NOMATCH = 'nomatch',
28472888
NOMATCH_RESPONSES_DEPLETED = 'nomatch_responses_depleted',
2889+
DIGRESSION_RETURN_PROMPT = 'digression_return_prompt',
28482890
}
28492891
/** Whether this top-level dialog node can be digressed into. */
28502892
export enum DigressIn {
@@ -2967,6 +3009,7 @@ namespace AssistantV1 {
29673009
GENERIC = 'generic',
29683010
NOMATCH = 'nomatch',
29693011
NOMATCH_RESPONSES_DEPLETED = 'nomatch_responses_depleted',
3012+
DIGRESSION_RETURN_PROMPT = 'digression_return_prompt',
29703013
}
29713014
/** Whether this top-level dialog node can be digressed into. */
29723015
export enum DigressIn {
@@ -3016,6 +3059,13 @@ namespace AssistantV1 {
30163059
headers?: Object;
30173060
}
30183061

3062+
/** Parameters for the `deleteUserData` operation. */
3063+
export interface DeleteUserDataParams {
3064+
/** The customer ID for which all data is to be deleted. */
3065+
customer_id: string;
3066+
headers?: Object;
3067+
}
3068+
30193069
/*************************
30203070
* model interfaces
30213071
************************/

conversation/v1-generated.ts

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2196,6 +2196,47 @@ class ConversationV1 extends BaseService {
21962196
return this.createRequest(parameters, _callback);
21972197
};
21982198

2199+
/*************************
2200+
* userData
2201+
************************/
2202+
2203+
/**
2204+
* Delete labeled data.
2205+
*
2206+
* Deletes all data associated with a specified customer ID. The method has no effect if no data is associated with the customer ID. You associate a customer ID with data by passing the `X-Watson-Metadata` header with a request that passes data. For more information about personal data and customer IDs, see [Information security](https://console.bluemix.net/docs/services/conversation/information-security.html).
2207+
*
2208+
* @param {Object} params - The parameters to send to the service.
2209+
* @param {string} params.customer_id - The customer ID for which all data is to be deleted.
2210+
* @param {Object} [params.headers] - Custom request headers
2211+
* @param {Function} [callback] - The callback that handles the response.
2212+
* @returns {NodeJS.ReadableStream|void}
2213+
*/
2214+
public deleteUserData(params: ConversationV1.DeleteUserDataParams, callback?: ConversationV1.Callback<ConversationV1.Empty>): NodeJS.ReadableStream | void {
2215+
const _params = extend({}, params);
2216+
const _callback = (callback) ? callback : () => { /* noop */ };
2217+
const requiredParams = ['customer_id'];
2218+
const missingParams = getMissingParams(_params, requiredParams);
2219+
if (missingParams) {
2220+
return _callback(missingParams);
2221+
}
2222+
const query = {
2223+
'customer_id': _params.customer_id
2224+
};
2225+
const parameters = {
2226+
options: {
2227+
url: '/v1/user_data',
2228+
method: 'DELETE',
2229+
qs: query,
2230+
},
2231+
defaultOptions: extend(true, {}, this._options, {
2232+
headers: extend(true, {
2233+
'Accept': 'application/json',
2234+
}, _params.headers),
2235+
}),
2236+
};
2237+
return this.createRequest(parameters, _callback);
2238+
};
2239+
21992240
}
22002241

22012242
ConversationV1.prototype.name = 'conversation';
@@ -2845,6 +2886,7 @@ namespace ConversationV1 {
28452886
GENERIC = 'generic',
28462887
NOMATCH = 'nomatch',
28472888
NOMATCH_RESPONSES_DEPLETED = 'nomatch_responses_depleted',
2889+
DIGRESSION_RETURN_PROMPT = 'digression_return_prompt',
28482890
}
28492891
/** Whether this top-level dialog node can be digressed into. */
28502892
export enum DigressIn {
@@ -2967,6 +3009,7 @@ namespace ConversationV1 {
29673009
GENERIC = 'generic',
29683010
NOMATCH = 'nomatch',
29693011
NOMATCH_RESPONSES_DEPLETED = 'nomatch_responses_depleted',
3012+
DIGRESSION_RETURN_PROMPT = 'digression_return_prompt',
29703013
}
29713014
/** Whether this top-level dialog node can be digressed into. */
29723015
export enum DigressIn {
@@ -3016,6 +3059,13 @@ namespace ConversationV1 {
30163059
headers?: Object;
30173060
}
30183061

3062+
/** Parameters for the `deleteUserData` operation. */
3063+
export interface DeleteUserDataParams {
3064+
/** The customer ID for which all data is to be deleted. */
3065+
customer_id: string;
3066+
headers?: Object;
3067+
}
3068+
30193069
/*************************
30203070
* model interfaces
30213071
************************/

0 commit comments

Comments
 (0)