Skip to content

Commit ecb5dee

Browse files
authored
Merge pull request #844 from watson-developer-cloud/escape-export-variable
Escape export variable
2 parents 9d56d5b + 8d9e3d2 commit ecb5dee

File tree

5 files changed

+2521
-6600
lines changed

5 files changed

+2521
-6600
lines changed

UPGRADE-4.0.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
- [Error Handling Compatibility]
55
- [Removed Services]
66
- [Constructor Compatibility]
7+
- [Assistant Compatibility]
78
- [Discovery Compatibility]
89
- [Natural Language Classifier Compatibility]
910
- [Personality Insights v3 Compatibility]
@@ -52,6 +53,8 @@ The following services have been deprecated for an extended period of time and w
5253
- Parameter name changed: `version_date` -> `version`
5354
- The parameter `apikey` is no longer supported
5455

56+
### Assistant Compatibility
57+
- Parameter name changed: `export` -> `_export` (_All instances_)
5558

5659
### Discovery Compatibility
5760
#### getEnvironments

assistant/v1.ts

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class AssistantV1 extends BaseService {
7070
*
7171
* @param {Object} params - The parameters to send to the service.
7272
* @param {string} params.workspace_id - Unique identifier of the workspace.
73-
* @param {InputData} [params.input] - The user input.
73+
* @param {InputData} [params.input] - An input object that includes the input text.
7474
* @param {boolean} [params.alternate_intents] - Whether to return more than one intent. Set to `true` to return all
7575
* matching intents.
7676
* @param {Context} [params.context] - State information for the conversation. To maintain state, include the context
@@ -283,7 +283,7 @@ class AssistantV1 extends BaseService {
283283
*
284284
* @param {Object} params - The parameters to send to the service.
285285
* @param {string} params.workspace_id - Unique identifier of the workspace.
286-
* @param {boolean} [params.export] - Whether to include all element content in the returned data. If
286+
* @param {boolean} [params._export] - Whether to include all element content in the returned data. If
287287
* **export**=`false`, the returned data includes only information about the element itself. If **export**=`true`, all
288288
* content, including subelements, is included.
289289
* @param {boolean} [params.include_audit] - Whether to include the audit properties (`created` and `updated`
@@ -314,7 +314,7 @@ class AssistantV1 extends BaseService {
314314
}
315315

316316
const query = {
317-
'export': _params.export,
317+
'export': _params._export,
318318
'include_audit': _params.include_audit,
319319
'sort': _params.sort
320320
};
@@ -634,7 +634,7 @@ class AssistantV1 extends BaseService {
634634
* @param {Object} params - The parameters to send to the service.
635635
* @param {string} params.workspace_id - Unique identifier of the workspace.
636636
* @param {string} params.intent - The intent name.
637-
* @param {boolean} [params.export] - Whether to include all element content in the returned data. If
637+
* @param {boolean} [params._export] - Whether to include all element content in the returned data. If
638638
* **export**=`false`, the returned data includes only information about the element itself. If **export**=`true`, all
639639
* content, including subelements, is included.
640640
* @param {boolean} [params.include_audit] - Whether to include the audit properties (`created` and `updated`
@@ -662,7 +662,7 @@ class AssistantV1 extends BaseService {
662662
}
663663

664664
const query = {
665-
'export': _params.export,
665+
'export': _params._export,
666666
'include_audit': _params.include_audit
667667
};
668668

@@ -700,7 +700,7 @@ class AssistantV1 extends BaseService {
700700
*
701701
* @param {Object} params - The parameters to send to the service.
702702
* @param {string} params.workspace_id - Unique identifier of the workspace.
703-
* @param {boolean} [params.export] - Whether to include all element content in the returned data. If
703+
* @param {boolean} [params._export] - Whether to include all element content in the returned data. If
704704
* **export**=`false`, the returned data includes only information about the element itself. If **export**=`true`, all
705705
* content, including subelements, is included.
706706
* @param {number} [params.page_limit] - The number of records to return in each page of results.
@@ -733,7 +733,7 @@ class AssistantV1 extends BaseService {
733733
}
734734

735735
const query = {
736-
'export': _params.export,
736+
'export': _params._export,
737737
'page_limit': _params.page_limit,
738738
'include_count': _params.include_count,
739739
'sort': _params.sort,
@@ -1635,7 +1635,7 @@ class AssistantV1 extends BaseService {
16351635
* @param {Object} params - The parameters to send to the service.
16361636
* @param {string} params.workspace_id - Unique identifier of the workspace.
16371637
* @param {string} params.entity - The name of the entity.
1638-
* @param {boolean} [params.export] - Whether to include all element content in the returned data. If
1638+
* @param {boolean} [params._export] - Whether to include all element content in the returned data. If
16391639
* **export**=`false`, the returned data includes only information about the element itself. If **export**=`true`, all
16401640
* content, including subelements, is included.
16411641
* @param {boolean} [params.include_audit] - Whether to include the audit properties (`created` and `updated`
@@ -1663,7 +1663,7 @@ class AssistantV1 extends BaseService {
16631663
}
16641664

16651665
const query = {
1666-
'export': _params.export,
1666+
'export': _params._export,
16671667
'include_audit': _params.include_audit
16681668
};
16691669

@@ -1701,7 +1701,7 @@ class AssistantV1 extends BaseService {
17011701
*
17021702
* @param {Object} params - The parameters to send to the service.
17031703
* @param {string} params.workspace_id - Unique identifier of the workspace.
1704-
* @param {boolean} [params.export] - Whether to include all element content in the returned data. If
1704+
* @param {boolean} [params._export] - Whether to include all element content in the returned data. If
17051705
* **export**=`false`, the returned data includes only information about the element itself. If **export**=`true`, all
17061706
* content, including subelements, is included.
17071707
* @param {number} [params.page_limit] - The number of records to return in each page of results.
@@ -1734,7 +1734,7 @@ class AssistantV1 extends BaseService {
17341734
}
17351735

17361736
const query = {
1737-
'export': _params.export,
1737+
'export': _params._export,
17381738
'page_limit': _params.page_limit,
17391739
'include_count': _params.include_count,
17401740
'sort': _params.sort,
@@ -1857,7 +1857,7 @@ class AssistantV1 extends BaseService {
18571857
* @param {Object} params - The parameters to send to the service.
18581858
* @param {string} params.workspace_id - Unique identifier of the workspace.
18591859
* @param {string} params.entity - The name of the entity.
1860-
* @param {boolean} [params.export] - Whether to include all element content in the returned data. If
1860+
* @param {boolean} [params._export] - Whether to include all element content in the returned data. If
18611861
* **export**=`false`, the returned data includes only information about the element itself. If **export**=`true`, all
18621862
* content, including subelements, is included.
18631863
* @param {boolean} [params.include_audit] - Whether to include the audit properties (`created` and `updated`
@@ -1885,7 +1885,7 @@ class AssistantV1 extends BaseService {
18851885
}
18861886

18871887
const query = {
1888-
'export': _params.export,
1888+
'export': _params._export,
18891889
'include_audit': _params.include_audit
18901890
};
18911891

@@ -2068,7 +2068,7 @@ class AssistantV1 extends BaseService {
20682068
* @param {string} params.workspace_id - Unique identifier of the workspace.
20692069
* @param {string} params.entity - The name of the entity.
20702070
* @param {string} params.value - The text of the entity value.
2071-
* @param {boolean} [params.export] - Whether to include all element content in the returned data. If
2071+
* @param {boolean} [params._export] - Whether to include all element content in the returned data. If
20722072
* **export**=`false`, the returned data includes only information about the element itself. If **export**=`true`, all
20732073
* content, including subelements, is included.
20742074
* @param {boolean} [params.include_audit] - Whether to include the audit properties (`created` and `updated`
@@ -2096,7 +2096,7 @@ class AssistantV1 extends BaseService {
20962096
}
20972097

20982098
const query = {
2099-
'export': _params.export,
2099+
'export': _params._export,
21002100
'include_audit': _params.include_audit
21012101
};
21022102

@@ -2135,7 +2135,7 @@ class AssistantV1 extends BaseService {
21352135
* @param {Object} params - The parameters to send to the service.
21362136
* @param {string} params.workspace_id - Unique identifier of the workspace.
21372137
* @param {string} params.entity - The name of the entity.
2138-
* @param {boolean} [params.export] - Whether to include all element content in the returned data. If
2138+
* @param {boolean} [params._export] - Whether to include all element content in the returned data. If
21392139
* **export**=`false`, the returned data includes only information about the element itself. If **export**=`true`, all
21402140
* content, including subelements, is included.
21412141
* @param {number} [params.page_limit] - The number of records to return in each page of results.
@@ -2168,7 +2168,7 @@ class AssistantV1 extends BaseService {
21682168
}
21692169

21702170
const query = {
2171-
'export': _params.export,
2171+
'export': _params._export,
21722172
'page_limit': _params.page_limit,
21732173
'include_count': _params.include_count,
21742174
'sort': _params.sort,
@@ -3269,7 +3269,7 @@ namespace AssistantV1 {
32693269
export interface MessageParams {
32703270
/** Unique identifier of the workspace. */
32713271
workspace_id: string;
3272-
/** The user input. */
3272+
/** An input object that includes the input text. */
32733273
input?: InputData;
32743274
/** Whether to return more than one intent. Set to `true` to return all matching intents. */
32753275
alternate_intents?: boolean;
@@ -3326,7 +3326,7 @@ namespace AssistantV1 {
33263326
/** Unique identifier of the workspace. */
33273327
workspace_id: string;
33283328
/** Whether to include all element content in the returned data. If **export**=`false`, the returned data includes only information about the element itself. If **export**=`true`, all content, including subelements, is included. */
3329-
export?: boolean;
3329+
_export?: boolean;
33303330
/** Whether to include the audit properties (`created` and `updated` timestamps) in the response. */
33313331
include_audit?: boolean;
33323332
/** Indicates how the returned workspace data will be sorted. This parameter is valid only if **export**=`true`. Specify `sort=stable` to sort all workspace objects by unique identifier, in ascending alphabetical order. */
@@ -3429,7 +3429,7 @@ namespace AssistantV1 {
34293429
/** The intent name. */
34303430
intent: string;
34313431
/** Whether to include all element content in the returned data. If **export**=`false`, the returned data includes only information about the element itself. If **export**=`true`, all content, including subelements, is included. */
3432-
export?: boolean;
3432+
_export?: boolean;
34333433
/** Whether to include the audit properties (`created` and `updated` timestamps) in the response. */
34343434
include_audit?: boolean;
34353435
headers?: Object;
@@ -3441,7 +3441,7 @@ namespace AssistantV1 {
34413441
/** Unique identifier of the workspace. */
34423442
workspace_id: string;
34433443
/** Whether to include all element content in the returned data. If **export**=`false`, the returned data includes only information about the element itself. If **export**=`true`, all content, including subelements, is included. */
3444-
export?: boolean;
3444+
_export?: boolean;
34453445
/** The number of records to return in each page of results. */
34463446
page_limit?: number;
34473447
/** Whether to include information about the number of records returned. */
@@ -3672,7 +3672,7 @@ namespace AssistantV1 {
36723672
/** The name of the entity. */
36733673
entity: string;
36743674
/** Whether to include all element content in the returned data. If **export**=`false`, the returned data includes only information about the element itself. If **export**=`true`, all content, including subelements, is included. */
3675-
export?: boolean;
3675+
_export?: boolean;
36763676
/** Whether to include the audit properties (`created` and `updated` timestamps) in the response. */
36773677
include_audit?: boolean;
36783678
headers?: Object;
@@ -3684,7 +3684,7 @@ namespace AssistantV1 {
36843684
/** Unique identifier of the workspace. */
36853685
workspace_id: string;
36863686
/** Whether to include all element content in the returned data. If **export**=`false`, the returned data includes only information about the element itself. If **export**=`true`, all content, including subelements, is included. */
3687-
export?: boolean;
3687+
_export?: boolean;
36883688
/** The number of records to return in each page of results. */
36893689
page_limit?: number;
36903690
/** Whether to include information about the number of records returned. */
@@ -3735,7 +3735,7 @@ namespace AssistantV1 {
37353735
/** The name of the entity. */
37363736
entity: string;
37373737
/** Whether to include all element content in the returned data. If **export**=`false`, the returned data includes only information about the element itself. If **export**=`true`, all content, including subelements, is included. */
3738-
export?: boolean;
3738+
_export?: boolean;
37393739
/** Whether to include the audit properties (`created` and `updated` timestamps) in the response. */
37403740
include_audit?: boolean;
37413741
headers?: Object;
@@ -3792,7 +3792,7 @@ namespace AssistantV1 {
37923792
/** The text of the entity value. */
37933793
value: string;
37943794
/** Whether to include all element content in the returned data. If **export**=`false`, the returned data includes only information about the element itself. If **export**=`true`, all content, including subelements, is included. */
3795-
export?: boolean;
3795+
_export?: boolean;
37963796
/** Whether to include the audit properties (`created` and `updated` timestamps) in the response. */
37973797
include_audit?: boolean;
37983798
headers?: Object;
@@ -3806,7 +3806,7 @@ namespace AssistantV1 {
38063806
/** The name of the entity. */
38073807
entity: string;
38083808
/** Whether to include all element content in the returned data. If **export**=`false`, the returned data includes only information about the element itself. If **export**=`true`, all content, including subelements, is included. */
3809-
export?: boolean;
3809+
_export?: boolean;
38103810
/** The number of records to return in each page of results. */
38113811
page_limit?: number;
38123812
/** Whether to include information about the number of records returned. */
@@ -4683,7 +4683,7 @@ namespace AssistantV1 {
46834683
export interface LogExport {
46844684
/** A request sent to the workspace, including the user input and context. */
46854685
request: MessageRequest;
4686-
/** A response from the Watson Assistant service. */
4686+
/** The response sent by the workspace, including the output text, detected intents and entities, and context. */
46874687
response: MessageResponse;
46884688
/** A unique identifier for the logged event. */
46894689
log_id: string;
@@ -4741,7 +4741,7 @@ namespace AssistantV1 {
47414741

47424742
/** A request sent to the workspace, including the user input and context. */
47434743
export interface MessageRequest {
4744-
/** The user input. */
4744+
/** An input object that includes the input text. */
47454745
input?: InputData;
47464746
/** Whether to return more than one intent. Set to `true` to return all matching intents. */
47474747
alternate_intents?: boolean;

0 commit comments

Comments
 (0)