@ibm-cloud/cloudant 0.1.3 → 0.2.0

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/cloudant/v1.d.ts CHANGED
@@ -14,6 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  /// <reference types="node" />
17
+ /// <reference types="node" />
17
18
  import { IncomingHttpHeaders, OutgoingHttpHeaders } from 'http';
18
19
  import { UserOptions } from 'ibm-cloud-sdk-core';
19
20
  import CloudantBaseService from '../lib/cloudantBaseService';
@@ -190,7 +191,7 @@ declare class CloudantV1 extends CloudantBaseService {
190
191
  * @param {boolean} [params.attachments] - Query parameter to specify whether to include attachments bodies in a
191
192
  * response.
192
193
  * @param {boolean} [params.conflicts] - Query parameter to specify whether to include a list of conflicted revisions
193
- * in the `_conflicts` property of the returned document. Ignored if `include_docs` isn't `true`.
194
+ * in each returned document. Active only when `include_docs` is `true`.
194
195
  * @param {boolean} [params.descending] - Query parameter to specify whether to return the documents in descending by
195
196
  * key order.
196
197
  * @param {string} [params.feed] - Query parameter to specify the changes feed type.
@@ -286,7 +287,7 @@ declare class CloudantV1 extends CloudantBaseService {
286
287
  * @param {boolean} [params.attachments] - Query parameter to specify whether to include attachments bodies in a
287
288
  * response.
288
289
  * @param {boolean} [params.conflicts] - Query parameter to specify whether to include a list of conflicted revisions
289
- * in the `_conflicts` property of the returned document. Ignored if `include_docs` isn't `true`.
290
+ * in each returned document. Active only when `include_docs` is `true`.
290
291
  * @param {boolean} [params.descending] - Query parameter to specify whether to return the documents in descending by
291
292
  * key order.
292
293
  * @param {string} [params.feed] - Query parameter to specify the changes feed type.
@@ -471,8 +472,8 @@ declare class CloudantV1 extends CloudantBaseService {
471
472
  * @param {boolean} [params.attEncodingInfo] - Parameter to specify whether to include the encoding information in
472
473
  * attachment stubs if the particular attachment is compressed.
473
474
  * @param {boolean} [params.attachments] - Parameter to specify whether to include attachments bodies in a response.
474
- * @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in the
475
- * `_conflicts` property of the returned document. Ignored if `include_docs` isn't `true`.
475
+ * @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in
476
+ * each returned document. Active only when `include_docs` is `true`.
476
477
  * @param {boolean} [params.descending] - Parameter to specify whether to return the documents in descending by key
477
478
  * order.
478
479
  * @param {boolean} [params.includeDocs] - Parameter to specify whether to include the full content of the documents
@@ -504,8 +505,8 @@ declare class CloudantV1 extends CloudantBaseService {
504
505
  * @param {boolean} [params.attEncodingInfo] - Parameter to specify whether to include the encoding information in
505
506
  * attachment stubs if the particular attachment is compressed.
506
507
  * @param {boolean} [params.attachments] - Parameter to specify whether to include attachments bodies in a response.
507
- * @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in the
508
- * `_conflicts` property of the returned document. Ignored if `include_docs` isn't `true`.
508
+ * @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in
509
+ * each returned document. Active only when `include_docs` is `true`.
509
510
  * @param {boolean} [params.descending] - Parameter to specify whether to return the documents in descending by key
510
511
  * order.
511
512
  * @param {boolean} [params.includeDocs] - Parameter to specify whether to include the full content of the documents
@@ -685,7 +686,7 @@ declare class CloudantV1 extends CloudantBaseService {
685
686
  * @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
686
687
  * in attachment stubs if the particular attachment is compressed.
687
688
  * @param {boolean} [params.conflicts] - Query parameter to specify whether to include a list of conflicted revisions
688
- * in the `_conflicts` property of the returned document. Ignored if `include_docs` isn't `true`.
689
+ * in each returned document. Active only when `include_docs` is `true`.
689
690
  * @param {boolean} [params.deletedConflicts] - Query parameter to specify whether to include a list of deleted
690
691
  * conflicted revisions in the `_deleted_conflicts` property of the returned document.
691
692
  * @param {boolean} [params.latest] - Query parameter to specify whether to force retrieving latest leaf revision, no
@@ -719,7 +720,7 @@ declare class CloudantV1 extends CloudantBaseService {
719
720
  * @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
720
721
  * in attachment stubs if the particular attachment is compressed.
721
722
  * @param {boolean} [params.conflicts] - Query parameter to specify whether to include a list of conflicted revisions
722
- * in the `_conflicts` property of the returned document. Ignored if `include_docs` isn't `true`.
723
+ * in each returned document. Active only when `include_docs` is `true`.
723
724
  * @param {boolean} [params.deletedConflicts] - Query parameter to specify whether to include a list of deleted
724
725
  * conflicted revisions in the `_deleted_conflicts` property of the returned document.
725
726
  * @param {boolean} [params.latest] - Query parameter to specify whether to force retrieving latest leaf revision, no
@@ -753,7 +754,7 @@ declare class CloudantV1 extends CloudantBaseService {
753
754
  * @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
754
755
  * in attachment stubs if the particular attachment is compressed.
755
756
  * @param {boolean} [params.conflicts] - Query parameter to specify whether to include a list of conflicted revisions
756
- * in the `_conflicts` property of the returned document. Ignored if `include_docs` isn't `true`.
757
+ * in each returned document. Active only when `include_docs` is `true`.
757
758
  * @param {boolean} [params.deletedConflicts] - Query parameter to specify whether to include a list of deleted
758
759
  * conflicted revisions in the `_deleted_conflicts` property of the returned document.
759
760
  * @param {boolean} [params.latest] - Query parameter to specify whether to force retrieving latest leaf revision, no
@@ -787,7 +788,7 @@ declare class CloudantV1 extends CloudantBaseService {
787
788
  * @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
788
789
  * in attachment stubs if the particular attachment is compressed.
789
790
  * @param {boolean} [params.conflicts] - Query parameter to specify whether to include a list of conflicted revisions
790
- * in the `_conflicts` property of the returned document. Ignored if `include_docs` isn't `true`.
791
+ * in each returned document. Active only when `include_docs` is `true`.
791
792
  * @param {boolean} [params.deletedConflicts] - Query parameter to specify whether to include a list of deleted
792
793
  * conflicted revisions in the `_deleted_conflicts` property of the returned document.
793
794
  * @param {boolean} [params.latest] - Query parameter to specify whether to force retrieving latest leaf revision, no
@@ -890,7 +891,7 @@ declare class CloudantV1 extends CloudantBaseService {
890
891
  * @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
891
892
  * in attachment stubs if the particular attachment is compressed.
892
893
  * @param {boolean} [params.conflicts] - Query parameter to specify whether to include a list of conflicted revisions
893
- * in the `_conflicts` property of the returned document. Ignored if `include_docs` isn't `true`.
894
+ * in each returned document. Active only when `include_docs` is `true`.
894
895
  * @param {boolean} [params.deletedConflicts] - Query parameter to specify whether to include a list of deleted
895
896
  * conflicted revisions in the `_deleted_conflicts` property of the returned document.
896
897
  * @param {boolean} [params.latest] - Query parameter to specify whether to force retrieving latest leaf revision, no
@@ -957,8 +958,8 @@ declare class CloudantV1 extends CloudantBaseService {
957
958
  * @param {boolean} [params.attEncodingInfo] - Parameter to specify whether to include the encoding information in
958
959
  * attachment stubs if the particular attachment is compressed.
959
960
  * @param {boolean} [params.attachments] - Parameter to specify whether to include attachments bodies in a response.
960
- * @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in the
961
- * `_conflicts` property of the returned document. Ignored if `include_docs` isn't `true`.
961
+ * @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in
962
+ * each returned document. Active only when `include_docs` is `true`.
962
963
  * @param {boolean} [params.descending] - Parameter to specify whether to return the documents in descending by key
963
964
  * order.
964
965
  * @param {boolean} [params.includeDocs] - Parameter to specify whether to include the full content of the documents
@@ -1013,8 +1014,8 @@ declare class CloudantV1 extends CloudantBaseService {
1013
1014
  * @param {boolean} [params.attEncodingInfo] - Parameter to specify whether to include the encoding information in
1014
1015
  * attachment stubs if the particular attachment is compressed.
1015
1016
  * @param {boolean} [params.attachments] - Parameter to specify whether to include attachments bodies in a response.
1016
- * @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in the
1017
- * `_conflicts` property of the returned document. Ignored if `include_docs` isn't `true`.
1017
+ * @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in
1018
+ * each returned document. Active only when `include_docs` is `true`.
1018
1019
  * @param {boolean} [params.descending] - Parameter to specify whether to return the documents in descending by key
1019
1020
  * order.
1020
1021
  * @param {boolean} [params.includeDocs] - Parameter to specify whether to include the full content of the documents
@@ -1027,20 +1028,33 @@ declare class CloudantV1 extends CloudantBaseService {
1027
1028
  * indicating the sequence id of the database the view reflects.
1028
1029
  * @param {any} [params.endKey] - Schema for any JSON type.
1029
1030
  * @param {string} [params.endKeyDocId] - Schema for a document ID.
1030
- * @param {boolean} [params.group] - Parameter to specify whether to group the results using the reduce function to a
1031
- * group rather than a single row. Implies reduce is true and the maximum group_level.
1032
- * @param {number} [params.groupLevel] - Parameter to specify the group level to be used. Implies group is true.
1031
+ * @param {boolean} [params.group] - Parameter to specify whether to group reduced results by key. Valid only if a
1032
+ * reduce function defined in the view. If the view emits key in JSON array format, then it is possible to reduce
1033
+ * groups further based on the number of array elements with the `group_level` parameter.
1034
+ * @param {number} [params.groupLevel] - Parameter to specify a group level to be used. Only applicable if the view
1035
+ * uses keys that are JSON arrays. Implies group is `true`. Group level groups the reduced results by the specified
1036
+ * number of array elements. If unset, results are grouped by the entire array key, returning a reduced value for each
1037
+ * complete key.
1033
1038
  * @param {any} [params.key] - Schema for any JSON type.
1034
- * @param {any[]} [params.keys] - Parameter to specify to return only documents that match the specified keys. String
1035
- * representation of a JSON array containing elements that match the key type emitted by the view function.
1039
+ * @param {any[]} [params.keys] - Parameter to specify returning only documents that match any of the specified keys.
1040
+ * A JSON array of keys that match the key type emitted by the view function.
1036
1041
  * @param {boolean} [params.reduce] - Parameter to specify whether to use the reduce function in a map-reduce view.
1037
1042
  * Default is true when a reduce function is defined.
1038
- * @param {boolean} [params.stable] - Parameter to specify whether view results should be returned from a stable set
1039
- * of shards.
1043
+ * @param {boolean} [params.stable] - Query parameter to specify whether use the same replica of the index on each
1044
+ * request. The default value `false` contacts all replicas and returns the result from the first, fastest,
1045
+ * responder. Setting it to `true` when used in conjunction with `update=false` may improve consistency at the
1046
+ * expense of increased latency and decreased throughput if the selected replica is not the fastest of the available
1047
+ * replicas.
1048
+ *
1049
+ * **Note:** In general setting `true` is discouraged and is strictly not recommended when using `update=true`.
1040
1050
  * @param {any} [params.startKey] - Schema for any JSON type.
1041
1051
  * @param {string} [params.startKeyDocId] - Schema for a document ID.
1042
1052
  * @param {string} [params.update] - Parameter to specify whether or not the view in question should be updated prior
1043
1053
  * to responding to the user.
1054
+ *
1055
+ * * `true` - Return results after the view is updated.
1056
+ * * `false` - Return results without updating the view.
1057
+ * * `lazy` - Return the view results without waiting for an update, but update them immediately after the request.
1044
1058
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
1045
1059
  * @returns {Promise<CloudantV1.Response<CloudantV1.ViewResult>>}
1046
1060
  */
@@ -1061,8 +1075,8 @@ declare class CloudantV1 extends CloudantBaseService {
1061
1075
  * @param {boolean} [params.attEncodingInfo] - Parameter to specify whether to include the encoding information in
1062
1076
  * attachment stubs if the particular attachment is compressed.
1063
1077
  * @param {boolean} [params.attachments] - Parameter to specify whether to include attachments bodies in a response.
1064
- * @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in the
1065
- * `_conflicts` property of the returned document. Ignored if `include_docs` isn't `true`.
1078
+ * @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in
1079
+ * each returned document. Active only when `include_docs` is `true`.
1066
1080
  * @param {boolean} [params.descending] - Parameter to specify whether to return the documents in descending by key
1067
1081
  * order.
1068
1082
  * @param {boolean} [params.includeDocs] - Parameter to specify whether to include the full content of the documents
@@ -1075,20 +1089,33 @@ declare class CloudantV1 extends CloudantBaseService {
1075
1089
  * indicating the sequence id of the database the view reflects.
1076
1090
  * @param {any} [params.endKey] - Schema for any JSON type.
1077
1091
  * @param {string} [params.endKeyDocId] - Schema for a document ID.
1078
- * @param {boolean} [params.group] - Parameter to specify whether to group the results using the reduce function to a
1079
- * group rather than a single row. Implies reduce is true and the maximum group_level.
1080
- * @param {number} [params.groupLevel] - Parameter to specify the group level to be used. Implies group is true.
1092
+ * @param {boolean} [params.group] - Parameter to specify whether to group reduced results by key. Valid only if a
1093
+ * reduce function defined in the view. If the view emits key in JSON array format, then it is possible to reduce
1094
+ * groups further based on the number of array elements with the `group_level` parameter.
1095
+ * @param {number} [params.groupLevel] - Parameter to specify a group level to be used. Only applicable if the view
1096
+ * uses keys that are JSON arrays. Implies group is `true`. Group level groups the reduced results by the specified
1097
+ * number of array elements. If unset, results are grouped by the entire array key, returning a reduced value for each
1098
+ * complete key.
1081
1099
  * @param {any} [params.key] - Schema for any JSON type.
1082
- * @param {any[]} [params.keys] - Parameter to specify to return only documents that match the specified keys. String
1083
- * representation of a JSON array containing elements that match the key type emitted by the view function.
1100
+ * @param {any[]} [params.keys] - Parameter to specify returning only documents that match any of the specified keys.
1101
+ * A JSON array of keys that match the key type emitted by the view function.
1084
1102
  * @param {boolean} [params.reduce] - Parameter to specify whether to use the reduce function in a map-reduce view.
1085
1103
  * Default is true when a reduce function is defined.
1086
- * @param {boolean} [params.stable] - Parameter to specify whether view results should be returned from a stable set
1087
- * of shards.
1104
+ * @param {boolean} [params.stable] - Query parameter to specify whether use the same replica of the index on each
1105
+ * request. The default value `false` contacts all replicas and returns the result from the first, fastest,
1106
+ * responder. Setting it to `true` when used in conjunction with `update=false` may improve consistency at the
1107
+ * expense of increased latency and decreased throughput if the selected replica is not the fastest of the available
1108
+ * replicas.
1109
+ *
1110
+ * **Note:** In general setting `true` is discouraged and is strictly not recommended when using `update=true`.
1088
1111
  * @param {any} [params.startKey] - Schema for any JSON type.
1089
1112
  * @param {string} [params.startKeyDocId] - Schema for a document ID.
1090
1113
  * @param {string} [params.update] - Parameter to specify whether or not the view in question should be updated prior
1091
1114
  * to responding to the user.
1115
+ *
1116
+ * * `true` - Return results after the view is updated.
1117
+ * * `false` - Return results without updating the view.
1118
+ * * `lazy` - Return the view results without waiting for an update, but update them immediately after the request.
1092
1119
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
1093
1120
  * @returns {Promise<CloudantV1.Response<NodeJS.ReadableStream>>}
1094
1121
  */
@@ -1156,8 +1183,8 @@ declare class CloudantV1 extends CloudantBaseService {
1156
1183
  * @param {boolean} [params.attEncodingInfo] - Parameter to specify whether to include the encoding information in
1157
1184
  * attachment stubs if the particular attachment is compressed.
1158
1185
  * @param {boolean} [params.attachments] - Parameter to specify whether to include attachments bodies in a response.
1159
- * @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in the
1160
- * `_conflicts` property of the returned document. Ignored if `include_docs` isn't `true`.
1186
+ * @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in
1187
+ * each returned document. Active only when `include_docs` is `true`.
1161
1188
  * @param {boolean} [params.descending] - Parameter to specify whether to return the documents in descending by key
1162
1189
  * order.
1163
1190
  * @param {boolean} [params.includeDocs] - Parameter to specify whether to include the full content of the documents
@@ -1190,8 +1217,8 @@ declare class CloudantV1 extends CloudantBaseService {
1190
1217
  * @param {boolean} [params.attEncodingInfo] - Parameter to specify whether to include the encoding information in
1191
1218
  * attachment stubs if the particular attachment is compressed.
1192
1219
  * @param {boolean} [params.attachments] - Parameter to specify whether to include attachments bodies in a response.
1193
- * @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in the
1194
- * `_conflicts` property of the returned document. Ignored if `include_docs` isn't `true`.
1220
+ * @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in
1221
+ * each returned document. Active only when `include_docs` is `true`.
1195
1222
  * @param {boolean} [params.descending] - Parameter to specify whether to return the documents in descending by key
1196
1223
  * order.
1197
1224
  * @param {boolean} [params.includeDocs] - Parameter to specify whether to include the full content of the documents
@@ -1307,8 +1334,8 @@ declare class CloudantV1 extends CloudantBaseService {
1307
1334
  * @param {boolean} [params.attEncodingInfo] - Parameter to specify whether to include the encoding information in
1308
1335
  * attachment stubs if the particular attachment is compressed.
1309
1336
  * @param {boolean} [params.attachments] - Parameter to specify whether to include attachments bodies in a response.
1310
- * @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in the
1311
- * `_conflicts` property of the returned document. Ignored if `include_docs` isn't `true`.
1337
+ * @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in
1338
+ * each returned document. Active only when `include_docs` is `true`.
1312
1339
  * @param {boolean} [params.descending] - Parameter to specify whether to return the documents in descending by key
1313
1340
  * order.
1314
1341
  * @param {boolean} [params.includeDocs] - Parameter to specify whether to include the full content of the documents
@@ -1321,20 +1348,33 @@ declare class CloudantV1 extends CloudantBaseService {
1321
1348
  * indicating the sequence id of the database the view reflects.
1322
1349
  * @param {any} [params.endKey] - Schema for any JSON type.
1323
1350
  * @param {string} [params.endKeyDocId] - Schema for a document ID.
1324
- * @param {boolean} [params.group] - Parameter to specify whether to group the results using the reduce function to a
1325
- * group rather than a single row. Implies reduce is true and the maximum group_level.
1326
- * @param {number} [params.groupLevel] - Parameter to specify the group level to be used. Implies group is true.
1351
+ * @param {boolean} [params.group] - Parameter to specify whether to group reduced results by key. Valid only if a
1352
+ * reduce function defined in the view. If the view emits key in JSON array format, then it is possible to reduce
1353
+ * groups further based on the number of array elements with the `group_level` parameter.
1354
+ * @param {number} [params.groupLevel] - Parameter to specify a group level to be used. Only applicable if the view
1355
+ * uses keys that are JSON arrays. Implies group is `true`. Group level groups the reduced results by the specified
1356
+ * number of array elements. If unset, results are grouped by the entire array key, returning a reduced value for each
1357
+ * complete key.
1327
1358
  * @param {any} [params.key] - Schema for any JSON type.
1328
- * @param {any[]} [params.keys] - Parameter to specify to return only documents that match the specified keys. String
1329
- * representation of a JSON array containing elements that match the key type emitted by the view function.
1359
+ * @param {any[]} [params.keys] - Parameter to specify returning only documents that match any of the specified keys.
1360
+ * A JSON array of keys that match the key type emitted by the view function.
1330
1361
  * @param {boolean} [params.reduce] - Parameter to specify whether to use the reduce function in a map-reduce view.
1331
1362
  * Default is true when a reduce function is defined.
1332
- * @param {boolean} [params.stable] - Parameter to specify whether view results should be returned from a stable set
1333
- * of shards.
1363
+ * @param {boolean} [params.stable] - Query parameter to specify whether use the same replica of the index on each
1364
+ * request. The default value `false` contacts all replicas and returns the result from the first, fastest,
1365
+ * responder. Setting it to `true` when used in conjunction with `update=false` may improve consistency at the
1366
+ * expense of increased latency and decreased throughput if the selected replica is not the fastest of the available
1367
+ * replicas.
1368
+ *
1369
+ * **Note:** In general setting `true` is discouraged and is strictly not recommended when using `update=true`.
1334
1370
  * @param {any} [params.startKey] - Schema for any JSON type.
1335
1371
  * @param {string} [params.startKeyDocId] - Schema for a document ID.
1336
1372
  * @param {string} [params.update] - Parameter to specify whether or not the view in question should be updated prior
1337
1373
  * to responding to the user.
1374
+ *
1375
+ * * `true` - Return results after the view is updated.
1376
+ * * `false` - Return results without updating the view.
1377
+ * * `lazy` - Return the view results without waiting for an update, but update them immediately after the request.
1338
1378
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
1339
1379
  * @returns {Promise<CloudantV1.Response<CloudantV1.ViewResult>>}
1340
1380
  */
@@ -1356,8 +1396,8 @@ declare class CloudantV1 extends CloudantBaseService {
1356
1396
  * @param {boolean} [params.attEncodingInfo] - Parameter to specify whether to include the encoding information in
1357
1397
  * attachment stubs if the particular attachment is compressed.
1358
1398
  * @param {boolean} [params.attachments] - Parameter to specify whether to include attachments bodies in a response.
1359
- * @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in the
1360
- * `_conflicts` property of the returned document. Ignored if `include_docs` isn't `true`.
1399
+ * @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in
1400
+ * each returned document. Active only when `include_docs` is `true`.
1361
1401
  * @param {boolean} [params.descending] - Parameter to specify whether to return the documents in descending by key
1362
1402
  * order.
1363
1403
  * @param {boolean} [params.includeDocs] - Parameter to specify whether to include the full content of the documents
@@ -1370,20 +1410,33 @@ declare class CloudantV1 extends CloudantBaseService {
1370
1410
  * indicating the sequence id of the database the view reflects.
1371
1411
  * @param {any} [params.endKey] - Schema for any JSON type.
1372
1412
  * @param {string} [params.endKeyDocId] - Schema for a document ID.
1373
- * @param {boolean} [params.group] - Parameter to specify whether to group the results using the reduce function to a
1374
- * group rather than a single row. Implies reduce is true and the maximum group_level.
1375
- * @param {number} [params.groupLevel] - Parameter to specify the group level to be used. Implies group is true.
1413
+ * @param {boolean} [params.group] - Parameter to specify whether to group reduced results by key. Valid only if a
1414
+ * reduce function defined in the view. If the view emits key in JSON array format, then it is possible to reduce
1415
+ * groups further based on the number of array elements with the `group_level` parameter.
1416
+ * @param {number} [params.groupLevel] - Parameter to specify a group level to be used. Only applicable if the view
1417
+ * uses keys that are JSON arrays. Implies group is `true`. Group level groups the reduced results by the specified
1418
+ * number of array elements. If unset, results are grouped by the entire array key, returning a reduced value for each
1419
+ * complete key.
1376
1420
  * @param {any} [params.key] - Schema for any JSON type.
1377
- * @param {any[]} [params.keys] - Parameter to specify to return only documents that match the specified keys. String
1378
- * representation of a JSON array containing elements that match the key type emitted by the view function.
1421
+ * @param {any[]} [params.keys] - Parameter to specify returning only documents that match any of the specified keys.
1422
+ * A JSON array of keys that match the key type emitted by the view function.
1379
1423
  * @param {boolean} [params.reduce] - Parameter to specify whether to use the reduce function in a map-reduce view.
1380
1424
  * Default is true when a reduce function is defined.
1381
- * @param {boolean} [params.stable] - Parameter to specify whether view results should be returned from a stable set
1382
- * of shards.
1425
+ * @param {boolean} [params.stable] - Query parameter to specify whether use the same replica of the index on each
1426
+ * request. The default value `false` contacts all replicas and returns the result from the first, fastest,
1427
+ * responder. Setting it to `true` when used in conjunction with `update=false` may improve consistency at the
1428
+ * expense of increased latency and decreased throughput if the selected replica is not the fastest of the available
1429
+ * replicas.
1430
+ *
1431
+ * **Note:** In general setting `true` is discouraged and is strictly not recommended when using `update=true`.
1383
1432
  * @param {any} [params.startKey] - Schema for any JSON type.
1384
1433
  * @param {string} [params.startKeyDocId] - Schema for a document ID.
1385
1434
  * @param {string} [params.update] - Parameter to specify whether or not the view in question should be updated prior
1386
1435
  * to responding to the user.
1436
+ *
1437
+ * * `true` - Return results after the view is updated.
1438
+ * * `false` - Return results without updating the view.
1439
+ * * `lazy` - Return the view results without waiting for an update, but update them immediately after the request.
1387
1440
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
1388
1441
  * @returns {Promise<CloudantV1.Response<NodeJS.ReadableStream>>}
1389
1442
  */
@@ -1953,130 +2006,6 @@ declare class CloudantV1 extends CloudantBaseService {
1953
2006
  * @returns {Promise<CloudantV1.Response<CloudantV1.SearchInfoResult>>}
1954
2007
  */
1955
2008
  getSearchInfo(params: CloudantV1.GetSearchInfoParams): Promise<CloudantV1.Response<CloudantV1.SearchInfoResult>>;
1956
- /*************************
1957
- * geospatial
1958
- ************************/
1959
- /**
1960
- * Query a geospatial index.
1961
- *
1962
- * Executes a query against the requested geospatial index from the specified design document.
1963
- *
1964
- * @param {Object} params - The parameters to send to the service.
1965
- * @param {string} params.db - Path parameter to specify the database name.
1966
- * @param {string} params.ddoc - Path parameter to specify the design document name. The design document name is the
1967
- * design document ID excluding the `_design/` prefix.
1968
- * @param {string} params.index - Path parameter to specify the index name.
1969
- * @param {string} [params.bbox] - Query parameter to specify a geospatial query bounding box with two
1970
- * latitude,longitude coordinates for the lower-left and upper-right corners. An example is
1971
- * `-11.05987446,12.28339928,-101.05987446,62.28339928`.
1972
- * @param {string} [params.bookmark] - Query parameter to specify a bookmark that was received from a previous
1973
- * request. This parameter enables paging through the results. If there are no more results after the bookmark, you
1974
- * get a response containing no further results and the same bookmark, confirming the end of the result list.
1975
- * @param {string} [params.format] - Query parameter that causes the geospatial query output to be returned in the
1976
- * specified format.
1977
- * @param {string} [params.g] - Query parameter to specify a Well Known Text (WKT) representation of a geospatial
1978
- * query geometry. The valid values for the WKT parameter include `Point`, `LineString`, `Polygon`, `MultiPoint`,
1979
- * `MultiLineString`, `MultiPolygon`, and `GeometryCollection`.
1980
- * @param {boolean} [params.includeDocs] - Query parameter to specify whether to include the full content of the
1981
- * documents in the response.
1982
- * @param {number} [params.lat] - Query parameter to specify a latitude coordinate for use with radius or ellipse
1983
- * geospatial queries.
1984
- * @param {number} [params.limit] - Query parameter to specify the number of returned documents to limit the result
1985
- * to.
1986
- * @param {number} [params.lon] - Query parameter to specify a longitude coordinate for use with radius or ellipse
1987
- * geospatial queries.
1988
- * @param {boolean} [params.nearest] - Query parameter to specify whether to perform a nearest neighbour (NN) search.
1989
- * If provided, the `nearest=true` search returns all results by sorting their distances to the center of the query
1990
- * geometry. NN search can be used alone or with any of the supported DE-9IM (Dimensionally Extended nine-Intersection
1991
- * Model) specification geometric relations documented.
1992
- * @param {number} [params.radius] - Query parameter to specify the radius, in meters, to search from a lat,lon
1993
- * coordinate point in a circular geospatial query.
1994
- * @param {number} [params.rangex] - Query parameter to specify the first radius, in meters, to search from a lat,lon
1995
- * coordinate point in an ellipse geospatial query.
1996
- * @param {number} [params.rangey] - Query parameter to specify the second radius, in meters, to search from a lat,lon
1997
- * coordinate point in an ellipse geospatial query.
1998
- * @param {string} [params.relation] - Query parameter to specify the DE-9IM (Dimensionally Extended nine-Intersection
1999
- * Model)geospatial relationship between the query geometry and the result documents.
2000
- * @param {number} [params.skip] - Query parameter to specify the number of records before starting to return the
2001
- * results.
2002
- * @param {string} [params.stale] - Query parameter to specify to not wait for the index to finish building before
2003
- * returning results.
2004
- * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
2005
- * @returns {Promise<CloudantV1.Response<CloudantV1.GeoResult>>}
2006
- */
2007
- getGeo(params: CloudantV1.GetGeoParams): Promise<CloudantV1.Response<CloudantV1.GeoResult>>;
2008
- /**
2009
- * Query a geospatial index as stream.
2010
- *
2011
- * Executes a query against the requested geospatial index from the specified design document.
2012
- *
2013
- * @param {Object} params - The parameters to send to the service.
2014
- * @param {string} params.db - Path parameter to specify the database name.
2015
- * @param {string} params.ddoc - Path parameter to specify the design document name. The design document name is the
2016
- * design document ID excluding the `_design/` prefix.
2017
- * @param {string} params.index - Path parameter to specify the index name.
2018
- * @param {string} [params.bbox] - Query parameter to specify a geospatial query bounding box with two
2019
- * latitude,longitude coordinates for the lower-left and upper-right corners. An example is
2020
- * `-11.05987446,12.28339928,-101.05987446,62.28339928`.
2021
- * @param {string} [params.bookmark] - Query parameter to specify a bookmark that was received from a previous
2022
- * request. This parameter enables paging through the results. If there are no more results after the bookmark, you
2023
- * get a response containing no further results and the same bookmark, confirming the end of the result list.
2024
- * @param {string} [params.format] - Query parameter that causes the geospatial query output to be returned in the
2025
- * specified format.
2026
- * @param {string} [params.g] - Query parameter to specify a Well Known Text (WKT) representation of a geospatial
2027
- * query geometry. The valid values for the WKT parameter include `Point`, `LineString`, `Polygon`, `MultiPoint`,
2028
- * `MultiLineString`, `MultiPolygon`, and `GeometryCollection`.
2029
- * @param {boolean} [params.includeDocs] - Query parameter to specify whether to include the full content of the
2030
- * documents in the response.
2031
- * @param {number} [params.lat] - Query parameter to specify a latitude coordinate for use with radius or ellipse
2032
- * geospatial queries.
2033
- * @param {number} [params.limit] - Query parameter to specify the number of returned documents to limit the result
2034
- * to.
2035
- * @param {number} [params.lon] - Query parameter to specify a longitude coordinate for use with radius or ellipse
2036
- * geospatial queries.
2037
- * @param {boolean} [params.nearest] - Query parameter to specify whether to perform a nearest neighbour (NN) search.
2038
- * If provided, the `nearest=true` search returns all results by sorting their distances to the center of the query
2039
- * geometry. NN search can be used alone or with any of the supported DE-9IM (Dimensionally Extended nine-Intersection
2040
- * Model) specification geometric relations documented.
2041
- * @param {number} [params.radius] - Query parameter to specify the radius, in meters, to search from a lat,lon
2042
- * coordinate point in a circular geospatial query.
2043
- * @param {number} [params.rangex] - Query parameter to specify the first radius, in meters, to search from a lat,lon
2044
- * coordinate point in an ellipse geospatial query.
2045
- * @param {number} [params.rangey] - Query parameter to specify the second radius, in meters, to search from a lat,lon
2046
- * coordinate point in an ellipse geospatial query.
2047
- * @param {string} [params.relation] - Query parameter to specify the DE-9IM (Dimensionally Extended nine-Intersection
2048
- * Model)geospatial relationship between the query geometry and the result documents.
2049
- * @param {number} [params.skip] - Query parameter to specify the number of records before starting to return the
2050
- * results.
2051
- * @param {string} [params.stale] - Query parameter to specify to not wait for the index to finish building before
2052
- * returning results.
2053
- * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
2054
- * @returns {Promise<CloudantV1.Response<NodeJS.ReadableStream>>}
2055
- */
2056
- getGeoAsStream(params: CloudantV1.GetGeoAsStreamParams): Promise<CloudantV1.Response<NodeJS.ReadableStream>>;
2057
- /**
2058
- * Cleanup old geospatial indexes.
2059
- *
2060
- * Cleanup old geospatial indexes from disk that have been superseded by newer index builds.
2061
- *
2062
- * @param {Object} params - The parameters to send to the service.
2063
- * @param {string} params.db - Path parameter to specify the database name.
2064
- * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
2065
- * @returns {Promise<CloudantV1.Response<CloudantV1.Ok>>}
2066
- */
2067
- postGeoCleanup(params: CloudantV1.PostGeoCleanupParams): Promise<CloudantV1.Response<CloudantV1.Ok>>;
2068
- /**
2069
- * Retrieve information about a geospatial index.
2070
- *
2071
- * @param {Object} params - The parameters to send to the service.
2072
- * @param {string} params.db - Path parameter to specify the database name.
2073
- * @param {string} params.ddoc - Path parameter to specify the design document name. The design document name is the
2074
- * design document ID excluding the `_design/` prefix.
2075
- * @param {string} params.index - Path parameter to specify the index name.
2076
- * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
2077
- * @returns {Promise<CloudantV1.Response<CloudantV1.GeoIndexInformation>>}
2078
- */
2079
- getGeoIndexInformation(params: CloudantV1.GetGeoIndexInformationParams): Promise<CloudantV1.Response<CloudantV1.GeoIndexInformation>>;
2080
2009
  /*************************
2081
2010
  * replication
2082
2011
  ************************/
@@ -2151,7 +2080,7 @@ declare class CloudantV1 extends CloudantBaseService {
2151
2080
  * @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
2152
2081
  * in attachment stubs if the particular attachment is compressed.
2153
2082
  * @param {boolean} [params.conflicts] - Query parameter to specify whether to include a list of conflicted revisions
2154
- * in the `_conflicts` property of the returned document. Ignored if `include_docs` isn't `true`.
2083
+ * in each returned document. Active only when `include_docs` is `true`.
2155
2084
  * @param {boolean} [params.deletedConflicts] - Query parameter to specify whether to include a list of deleted
2156
2085
  * conflicted revisions in the `_deleted_conflicts` property of the returned document.
2157
2086
  * @param {boolean} [params.latest] - Query parameter to specify whether to force retrieving latest leaf revision, no
@@ -2769,8 +2698,8 @@ declare namespace CloudantV1 {
2769
2698
  attEncodingInfo?: boolean;
2770
2699
  /** Query parameter to specify whether to include attachments bodies in a response. */
2771
2700
  attachments?: boolean;
2772
- /** Query parameter to specify whether to include a list of conflicted revisions in the `_conflicts` property of
2773
- * the returned document. Ignored if `include_docs` isn't `true`.
2701
+ /** Query parameter to specify whether to include a list of conflicted revisions in each returned document.
2702
+ * Active only when `include_docs` is `true`.
2774
2703
  */
2775
2704
  conflicts?: boolean;
2776
2705
  /** Query parameter to specify whether to return the documents in descending by key order. */
@@ -2888,8 +2817,8 @@ declare namespace CloudantV1 {
2888
2817
  attEncodingInfo?: boolean;
2889
2818
  /** Query parameter to specify whether to include attachments bodies in a response. */
2890
2819
  attachments?: boolean;
2891
- /** Query parameter to specify whether to include a list of conflicted revisions in the `_conflicts` property of
2892
- * the returned document. Ignored if `include_docs` isn't `true`.
2820
+ /** Query parameter to specify whether to include a list of conflicted revisions in each returned document.
2821
+ * Active only when `include_docs` is `true`.
2893
2822
  */
2894
2823
  conflicts?: boolean;
2895
2824
  /** Query parameter to specify whether to return the documents in descending by key order. */
@@ -3065,8 +2994,8 @@ declare namespace CloudantV1 {
3065
2994
  attEncodingInfo?: boolean;
3066
2995
  /** Parameter to specify whether to include attachments bodies in a response. */
3067
2996
  attachments?: boolean;
3068
- /** Parameter to specify whether to include a list of conflicted revisions in the `_conflicts` property of the
3069
- * returned document. Ignored if `include_docs` isn't `true`.
2997
+ /** Parameter to specify whether to include a list of conflicted revisions in each returned document. Active
2998
+ * only when `include_docs` is `true`.
3070
2999
  */
3071
3000
  conflicts?: boolean;
3072
3001
  /** Parameter to specify whether to return the documents in descending by key order. */
@@ -3103,8 +3032,8 @@ declare namespace CloudantV1 {
3103
3032
  attEncodingInfo?: boolean;
3104
3033
  /** Parameter to specify whether to include attachments bodies in a response. */
3105
3034
  attachments?: boolean;
3106
- /** Parameter to specify whether to include a list of conflicted revisions in the `_conflicts` property of the
3107
- * returned document. Ignored if `include_docs` isn't `true`.
3035
+ /** Parameter to specify whether to include a list of conflicted revisions in each returned document. Active
3036
+ * only when `include_docs` is `true`.
3108
3037
  */
3109
3038
  conflicts?: boolean;
3110
3039
  /** Parameter to specify whether to return the documents in descending by key order. */
@@ -3276,8 +3205,8 @@ declare namespace CloudantV1 {
3276
3205
  * attachment is compressed.
3277
3206
  */
3278
3207
  attEncodingInfo?: boolean;
3279
- /** Query parameter to specify whether to include a list of conflicted revisions in the `_conflicts` property of
3280
- * the returned document. Ignored if `include_docs` isn't `true`.
3208
+ /** Query parameter to specify whether to include a list of conflicted revisions in each returned document.
3209
+ * Active only when `include_docs` is `true`.
3281
3210
  */
3282
3211
  conflicts?: boolean;
3283
3212
  /** Query parameter to specify whether to include a list of deleted conflicted revisions in the
@@ -3316,8 +3245,8 @@ declare namespace CloudantV1 {
3316
3245
  * attachment is compressed.
3317
3246
  */
3318
3247
  attEncodingInfo?: boolean;
3319
- /** Query parameter to specify whether to include a list of conflicted revisions in the `_conflicts` property of
3320
- * the returned document. Ignored if `include_docs` isn't `true`.
3248
+ /** Query parameter to specify whether to include a list of conflicted revisions in each returned document.
3249
+ * Active only when `include_docs` is `true`.
3321
3250
  */
3322
3251
  conflicts?: boolean;
3323
3252
  /** Query parameter to specify whether to include a list of deleted conflicted revisions in the
@@ -3356,8 +3285,8 @@ declare namespace CloudantV1 {
3356
3285
  * attachment is compressed.
3357
3286
  */
3358
3287
  attEncodingInfo?: boolean;
3359
- /** Query parameter to specify whether to include a list of conflicted revisions in the `_conflicts` property of
3360
- * the returned document. Ignored if `include_docs` isn't `true`.
3288
+ /** Query parameter to specify whether to include a list of conflicted revisions in each returned document.
3289
+ * Active only when `include_docs` is `true`.
3361
3290
  */
3362
3291
  conflicts?: boolean;
3363
3292
  /** Query parameter to specify whether to include a list of deleted conflicted revisions in the
@@ -3396,8 +3325,8 @@ declare namespace CloudantV1 {
3396
3325
  * attachment is compressed.
3397
3326
  */
3398
3327
  attEncodingInfo?: boolean;
3399
- /** Query parameter to specify whether to include a list of conflicted revisions in the `_conflicts` property of
3400
- * the returned document. Ignored if `include_docs` isn't `true`.
3328
+ /** Query parameter to specify whether to include a list of conflicted revisions in each returned document.
3329
+ * Active only when `include_docs` is `true`.
3401
3330
  */
3402
3331
  conflicts?: boolean;
3403
3332
  /** Query parameter to specify whether to include a list of deleted conflicted revisions in the
@@ -3514,8 +3443,8 @@ declare namespace CloudantV1 {
3514
3443
  * attachment is compressed.
3515
3444
  */
3516
3445
  attEncodingInfo?: boolean;
3517
- /** Query parameter to specify whether to include a list of conflicted revisions in the `_conflicts` property of
3518
- * the returned document. Ignored if `include_docs` isn't `true`.
3446
+ /** Query parameter to specify whether to include a list of conflicted revisions in each returned document.
3447
+ * Active only when `include_docs` is `true`.
3519
3448
  */
3520
3449
  conflicts?: boolean;
3521
3450
  /** Query parameter to specify whether to include a list of deleted conflicted revisions in the
@@ -3592,8 +3521,8 @@ declare namespace CloudantV1 {
3592
3521
  attEncodingInfo?: boolean;
3593
3522
  /** Parameter to specify whether to include attachments bodies in a response. */
3594
3523
  attachments?: boolean;
3595
- /** Parameter to specify whether to include a list of conflicted revisions in the `_conflicts` property of the
3596
- * returned document. Ignored if `include_docs` isn't `true`.
3524
+ /** Parameter to specify whether to include a list of conflicted revisions in each returned document. Active
3525
+ * only when `include_docs` is `true`.
3597
3526
  */
3598
3527
  conflicts?: boolean;
3599
3528
  /** Parameter to specify whether to return the documents in descending by key order. */
@@ -3666,8 +3595,8 @@ declare namespace CloudantV1 {
3666
3595
  attEncodingInfo?: boolean;
3667
3596
  /** Parameter to specify whether to include attachments bodies in a response. */
3668
3597
  attachments?: boolean;
3669
- /** Parameter to specify whether to include a list of conflicted revisions in the `_conflicts` property of the
3670
- * returned document. Ignored if `include_docs` isn't `true`.
3598
+ /** Parameter to specify whether to include a list of conflicted revisions in each returned document. Active
3599
+ * only when `include_docs` is `true`.
3671
3600
  */
3672
3601
  conflicts?: boolean;
3673
3602
  /** Parameter to specify whether to return the documents in descending by key order. */
@@ -3688,35 +3617,50 @@ declare namespace CloudantV1 {
3688
3617
  endKey?: any;
3689
3618
  /** Schema for a document ID. */
3690
3619
  endKeyDocId?: string;
3691
- /** Parameter to specify whether to group the results using the reduce function to a group rather than a single
3692
- * row. Implies reduce is true and the maximum group_level.
3620
+ /** Parameter to specify whether to group reduced results by key. Valid only if a reduce function defined in the
3621
+ * view. If the view emits key in JSON array format, then it is possible to reduce groups further based on the
3622
+ * number of array elements with the `group_level` parameter.
3693
3623
  */
3694
3624
  group?: boolean;
3695
- /** Parameter to specify the group level to be used. Implies group is true. */
3625
+ /** Parameter to specify a group level to be used. Only applicable if the view uses keys that are JSON arrays.
3626
+ * Implies group is `true`. Group level groups the reduced results by the specified number of array elements. If
3627
+ * unset, results are grouped by the entire array key, returning a reduced value for each complete key.
3628
+ */
3696
3629
  groupLevel?: number;
3697
3630
  /** Schema for any JSON type. */
3698
3631
  key?: any;
3699
- /** Parameter to specify to return only documents that match the specified keys. String representation of a JSON
3700
- * array containing elements that match the key type emitted by the view function.
3632
+ /** Parameter to specify returning only documents that match any of the specified keys. A JSON array of keys
3633
+ * that match the key type emitted by the view function.
3701
3634
  */
3702
3635
  keys?: any[];
3703
3636
  /** Parameter to specify whether to use the reduce function in a map-reduce view. Default is true when a reduce
3704
3637
  * function is defined.
3705
3638
  */
3706
3639
  reduce?: boolean;
3707
- /** Parameter to specify whether view results should be returned from a stable set of shards. */
3640
+ /** Query parameter to specify whether use the same replica of the index on each request. The default value
3641
+ * `false` contacts all replicas and returns the result from the first, fastest, responder. Setting it to `true`
3642
+ * when used in conjunction with `update=false` may improve consistency at the expense of increased latency and
3643
+ * decreased throughput if the selected replica is not the fastest of the available replicas.
3644
+ *
3645
+ * **Note:** In general setting `true` is discouraged and is strictly not recommended when using `update=true`.
3646
+ */
3708
3647
  stable?: boolean;
3709
3648
  /** Schema for any JSON type. */
3710
3649
  startKey?: any;
3711
3650
  /** Schema for a document ID. */
3712
3651
  startKeyDocId?: string;
3713
- /** Parameter to specify whether or not the view in question should be updated prior to responding to the user. */
3652
+ /** Parameter to specify whether or not the view in question should be updated prior to responding to the user.
3653
+ *
3654
+ * * `true` - Return results after the view is updated.
3655
+ * * `false` - Return results without updating the view.
3656
+ * * `lazy` - Return the view results without waiting for an update, but update them immediately after the request.
3657
+ */
3714
3658
  update?: PostViewConstants.Update | string;
3715
3659
  headers?: OutgoingHttpHeaders;
3716
3660
  }
3717
3661
  /** Constants for the `postView` operation. */
3718
3662
  namespace PostViewConstants {
3719
- /** Parameter to specify whether or not the view in question should be updated prior to responding to the user. */
3663
+ /** Parameter to specify whether or not the view in question should be updated prior to responding to the user. * `true` - Return results after the view is updated. * `false` - Return results without updating the view. * `lazy` - Return the view results without waiting for an update, but update them immediately after the request. */
3720
3664
  enum Update {
3721
3665
  TRUE = "true",
3722
3666
  FALSE = "false",
@@ -3739,8 +3683,8 @@ declare namespace CloudantV1 {
3739
3683
  attEncodingInfo?: boolean;
3740
3684
  /** Parameter to specify whether to include attachments bodies in a response. */
3741
3685
  attachments?: boolean;
3742
- /** Parameter to specify whether to include a list of conflicted revisions in the `_conflicts` property of the
3743
- * returned document. Ignored if `include_docs` isn't `true`.
3686
+ /** Parameter to specify whether to include a list of conflicted revisions in each returned document. Active
3687
+ * only when `include_docs` is `true`.
3744
3688
  */
3745
3689
  conflicts?: boolean;
3746
3690
  /** Parameter to specify whether to return the documents in descending by key order. */
@@ -3761,35 +3705,50 @@ declare namespace CloudantV1 {
3761
3705
  endKey?: any;
3762
3706
  /** Schema for a document ID. */
3763
3707
  endKeyDocId?: string;
3764
- /** Parameter to specify whether to group the results using the reduce function to a group rather than a single
3765
- * row. Implies reduce is true and the maximum group_level.
3708
+ /** Parameter to specify whether to group reduced results by key. Valid only if a reduce function defined in the
3709
+ * view. If the view emits key in JSON array format, then it is possible to reduce groups further based on the
3710
+ * number of array elements with the `group_level` parameter.
3766
3711
  */
3767
3712
  group?: boolean;
3768
- /** Parameter to specify the group level to be used. Implies group is true. */
3713
+ /** Parameter to specify a group level to be used. Only applicable if the view uses keys that are JSON arrays.
3714
+ * Implies group is `true`. Group level groups the reduced results by the specified number of array elements. If
3715
+ * unset, results are grouped by the entire array key, returning a reduced value for each complete key.
3716
+ */
3769
3717
  groupLevel?: number;
3770
3718
  /** Schema for any JSON type. */
3771
3719
  key?: any;
3772
- /** Parameter to specify to return only documents that match the specified keys. String representation of a JSON
3773
- * array containing elements that match the key type emitted by the view function.
3720
+ /** Parameter to specify returning only documents that match any of the specified keys. A JSON array of keys
3721
+ * that match the key type emitted by the view function.
3774
3722
  */
3775
3723
  keys?: any[];
3776
3724
  /** Parameter to specify whether to use the reduce function in a map-reduce view. Default is true when a reduce
3777
3725
  * function is defined.
3778
3726
  */
3779
3727
  reduce?: boolean;
3780
- /** Parameter to specify whether view results should be returned from a stable set of shards. */
3728
+ /** Query parameter to specify whether use the same replica of the index on each request. The default value
3729
+ * `false` contacts all replicas and returns the result from the first, fastest, responder. Setting it to `true`
3730
+ * when used in conjunction with `update=false` may improve consistency at the expense of increased latency and
3731
+ * decreased throughput if the selected replica is not the fastest of the available replicas.
3732
+ *
3733
+ * **Note:** In general setting `true` is discouraged and is strictly not recommended when using `update=true`.
3734
+ */
3781
3735
  stable?: boolean;
3782
3736
  /** Schema for any JSON type. */
3783
3737
  startKey?: any;
3784
3738
  /** Schema for a document ID. */
3785
3739
  startKeyDocId?: string;
3786
- /** Parameter to specify whether or not the view in question should be updated prior to responding to the user. */
3740
+ /** Parameter to specify whether or not the view in question should be updated prior to responding to the user.
3741
+ *
3742
+ * * `true` - Return results after the view is updated.
3743
+ * * `false` - Return results without updating the view.
3744
+ * * `lazy` - Return the view results without waiting for an update, but update them immediately after the request.
3745
+ */
3787
3746
  update?: PostViewAsStreamConstants.Update | string;
3788
3747
  headers?: OutgoingHttpHeaders;
3789
3748
  }
3790
3749
  /** Constants for the `postViewAsStream` operation. */
3791
3750
  namespace PostViewAsStreamConstants {
3792
- /** Parameter to specify whether or not the view in question should be updated prior to responding to the user. */
3751
+ /** Parameter to specify whether or not the view in question should be updated prior to responding to the user. * `true` - Return results after the view is updated. * `false` - Return results without updating the view. * `lazy` - Return the view results without waiting for an update, but update them immediately after the request. */
3793
3752
  enum Update {
3794
3753
  TRUE = "true",
3795
3754
  FALSE = "false",
@@ -3848,8 +3807,8 @@ declare namespace CloudantV1 {
3848
3807
  attEncodingInfo?: boolean;
3849
3808
  /** Parameter to specify whether to include attachments bodies in a response. */
3850
3809
  attachments?: boolean;
3851
- /** Parameter to specify whether to include a list of conflicted revisions in the `_conflicts` property of the
3852
- * returned document. Ignored if `include_docs` isn't `true`.
3810
+ /** Parameter to specify whether to include a list of conflicted revisions in each returned document. Active
3811
+ * only when `include_docs` is `true`.
3853
3812
  */
3854
3813
  conflicts?: boolean;
3855
3814
  /** Parameter to specify whether to return the documents in descending by key order. */
@@ -3888,8 +3847,8 @@ declare namespace CloudantV1 {
3888
3847
  attEncodingInfo?: boolean;
3889
3848
  /** Parameter to specify whether to include attachments bodies in a response. */
3890
3849
  attachments?: boolean;
3891
- /** Parameter to specify whether to include a list of conflicted revisions in the `_conflicts` property of the
3892
- * returned document. Ignored if `include_docs` isn't `true`.
3850
+ /** Parameter to specify whether to include a list of conflicted revisions in each returned document. Active
3851
+ * only when `include_docs` is `true`.
3893
3852
  */
3894
3853
  conflicts?: boolean;
3895
3854
  /** Parameter to specify whether to return the documents in descending by key order. */
@@ -4050,8 +4009,8 @@ declare namespace CloudantV1 {
4050
4009
  attEncodingInfo?: boolean;
4051
4010
  /** Parameter to specify whether to include attachments bodies in a response. */
4052
4011
  attachments?: boolean;
4053
- /** Parameter to specify whether to include a list of conflicted revisions in the `_conflicts` property of the
4054
- * returned document. Ignored if `include_docs` isn't `true`.
4012
+ /** Parameter to specify whether to include a list of conflicted revisions in each returned document. Active
4013
+ * only when `include_docs` is `true`.
4055
4014
  */
4056
4015
  conflicts?: boolean;
4057
4016
  /** Parameter to specify whether to return the documents in descending by key order. */
@@ -4072,35 +4031,50 @@ declare namespace CloudantV1 {
4072
4031
  endKey?: any;
4073
4032
  /** Schema for a document ID. */
4074
4033
  endKeyDocId?: string;
4075
- /** Parameter to specify whether to group the results using the reduce function to a group rather than a single
4076
- * row. Implies reduce is true and the maximum group_level.
4034
+ /** Parameter to specify whether to group reduced results by key. Valid only if a reduce function defined in the
4035
+ * view. If the view emits key in JSON array format, then it is possible to reduce groups further based on the
4036
+ * number of array elements with the `group_level` parameter.
4077
4037
  */
4078
4038
  group?: boolean;
4079
- /** Parameter to specify the group level to be used. Implies group is true. */
4039
+ /** Parameter to specify a group level to be used. Only applicable if the view uses keys that are JSON arrays.
4040
+ * Implies group is `true`. Group level groups the reduced results by the specified number of array elements. If
4041
+ * unset, results are grouped by the entire array key, returning a reduced value for each complete key.
4042
+ */
4080
4043
  groupLevel?: number;
4081
4044
  /** Schema for any JSON type. */
4082
4045
  key?: any;
4083
- /** Parameter to specify to return only documents that match the specified keys. String representation of a JSON
4084
- * array containing elements that match the key type emitted by the view function.
4046
+ /** Parameter to specify returning only documents that match any of the specified keys. A JSON array of keys
4047
+ * that match the key type emitted by the view function.
4085
4048
  */
4086
4049
  keys?: any[];
4087
4050
  /** Parameter to specify whether to use the reduce function in a map-reduce view. Default is true when a reduce
4088
4051
  * function is defined.
4089
4052
  */
4090
4053
  reduce?: boolean;
4091
- /** Parameter to specify whether view results should be returned from a stable set of shards. */
4054
+ /** Query parameter to specify whether use the same replica of the index on each request. The default value
4055
+ * `false` contacts all replicas and returns the result from the first, fastest, responder. Setting it to `true`
4056
+ * when used in conjunction with `update=false` may improve consistency at the expense of increased latency and
4057
+ * decreased throughput if the selected replica is not the fastest of the available replicas.
4058
+ *
4059
+ * **Note:** In general setting `true` is discouraged and is strictly not recommended when using `update=true`.
4060
+ */
4092
4061
  stable?: boolean;
4093
4062
  /** Schema for any JSON type. */
4094
4063
  startKey?: any;
4095
4064
  /** Schema for a document ID. */
4096
4065
  startKeyDocId?: string;
4097
- /** Parameter to specify whether or not the view in question should be updated prior to responding to the user. */
4066
+ /** Parameter to specify whether or not the view in question should be updated prior to responding to the user.
4067
+ *
4068
+ * * `true` - Return results after the view is updated.
4069
+ * * `false` - Return results without updating the view.
4070
+ * * `lazy` - Return the view results without waiting for an update, but update them immediately after the request.
4071
+ */
4098
4072
  update?: PostPartitionViewConstants.Update | string;
4099
4073
  headers?: OutgoingHttpHeaders;
4100
4074
  }
4101
4075
  /** Constants for the `postPartitionView` operation. */
4102
4076
  namespace PostPartitionViewConstants {
4103
- /** Parameter to specify whether or not the view in question should be updated prior to responding to the user. */
4077
+ /** Parameter to specify whether or not the view in question should be updated prior to responding to the user. * `true` - Return results after the view is updated. * `false` - Return results without updating the view. * `lazy` - Return the view results without waiting for an update, but update them immediately after the request. */
4104
4078
  enum Update {
4105
4079
  TRUE = "true",
4106
4080
  FALSE = "false",
@@ -4125,8 +4099,8 @@ declare namespace CloudantV1 {
4125
4099
  attEncodingInfo?: boolean;
4126
4100
  /** Parameter to specify whether to include attachments bodies in a response. */
4127
4101
  attachments?: boolean;
4128
- /** Parameter to specify whether to include a list of conflicted revisions in the `_conflicts` property of the
4129
- * returned document. Ignored if `include_docs` isn't `true`.
4102
+ /** Parameter to specify whether to include a list of conflicted revisions in each returned document. Active
4103
+ * only when `include_docs` is `true`.
4130
4104
  */
4131
4105
  conflicts?: boolean;
4132
4106
  /** Parameter to specify whether to return the documents in descending by key order. */
@@ -4147,35 +4121,50 @@ declare namespace CloudantV1 {
4147
4121
  endKey?: any;
4148
4122
  /** Schema for a document ID. */
4149
4123
  endKeyDocId?: string;
4150
- /** Parameter to specify whether to group the results using the reduce function to a group rather than a single
4151
- * row. Implies reduce is true and the maximum group_level.
4124
+ /** Parameter to specify whether to group reduced results by key. Valid only if a reduce function defined in the
4125
+ * view. If the view emits key in JSON array format, then it is possible to reduce groups further based on the
4126
+ * number of array elements with the `group_level` parameter.
4152
4127
  */
4153
4128
  group?: boolean;
4154
- /** Parameter to specify the group level to be used. Implies group is true. */
4129
+ /** Parameter to specify a group level to be used. Only applicable if the view uses keys that are JSON arrays.
4130
+ * Implies group is `true`. Group level groups the reduced results by the specified number of array elements. If
4131
+ * unset, results are grouped by the entire array key, returning a reduced value for each complete key.
4132
+ */
4155
4133
  groupLevel?: number;
4156
4134
  /** Schema for any JSON type. */
4157
4135
  key?: any;
4158
- /** Parameter to specify to return only documents that match the specified keys. String representation of a JSON
4159
- * array containing elements that match the key type emitted by the view function.
4136
+ /** Parameter to specify returning only documents that match any of the specified keys. A JSON array of keys
4137
+ * that match the key type emitted by the view function.
4160
4138
  */
4161
4139
  keys?: any[];
4162
4140
  /** Parameter to specify whether to use the reduce function in a map-reduce view. Default is true when a reduce
4163
4141
  * function is defined.
4164
4142
  */
4165
4143
  reduce?: boolean;
4166
- /** Parameter to specify whether view results should be returned from a stable set of shards. */
4144
+ /** Query parameter to specify whether use the same replica of the index on each request. The default value
4145
+ * `false` contacts all replicas and returns the result from the first, fastest, responder. Setting it to `true`
4146
+ * when used in conjunction with `update=false` may improve consistency at the expense of increased latency and
4147
+ * decreased throughput if the selected replica is not the fastest of the available replicas.
4148
+ *
4149
+ * **Note:** In general setting `true` is discouraged and is strictly not recommended when using `update=true`.
4150
+ */
4167
4151
  stable?: boolean;
4168
4152
  /** Schema for any JSON type. */
4169
4153
  startKey?: any;
4170
4154
  /** Schema for a document ID. */
4171
4155
  startKeyDocId?: string;
4172
- /** Parameter to specify whether or not the view in question should be updated prior to responding to the user. */
4156
+ /** Parameter to specify whether or not the view in question should be updated prior to responding to the user.
4157
+ *
4158
+ * * `true` - Return results after the view is updated.
4159
+ * * `false` - Return results without updating the view.
4160
+ * * `lazy` - Return the view results without waiting for an update, but update them immediately after the request.
4161
+ */
4173
4162
  update?: PostPartitionViewAsStreamConstants.Update | string;
4174
4163
  headers?: OutgoingHttpHeaders;
4175
4164
  }
4176
4165
  /** Constants for the `postPartitionViewAsStream` operation. */
4177
4166
  namespace PostPartitionViewAsStreamConstants {
4178
- /** Parameter to specify whether or not the view in question should be updated prior to responding to the user. */
4167
+ /** Parameter to specify whether or not the view in question should be updated prior to responding to the user. * `true` - Return results after the view is updated. * `false` - Return results without updating the view. * `lazy` - Return the view results without waiting for an update, but update them immediately after the request. */
4179
4168
  enum Update {
4180
4169
  TRUE = "true",
4181
4170
  FALSE = "false",
@@ -4950,202 +4939,6 @@ declare namespace CloudantV1 {
4950
4939
  index: string;
4951
4940
  headers?: OutgoingHttpHeaders;
4952
4941
  }
4953
- /** Parameters for the `getGeo` operation. */
4954
- interface GetGeoParams {
4955
- /** Path parameter to specify the database name. */
4956
- db: string;
4957
- /** Path parameter to specify the design document name. The design document name is the design document ID
4958
- * excluding the `_design/` prefix.
4959
- */
4960
- ddoc: string;
4961
- /** Path parameter to specify the index name. */
4962
- index: string;
4963
- /** Query parameter to specify a geospatial query bounding box with two latitude,longitude coordinates for the
4964
- * lower-left and upper-right corners. An example is `-11.05987446,12.28339928,-101.05987446,62.28339928`.
4965
- */
4966
- bbox?: string;
4967
- /** Query parameter to specify a bookmark that was received from a previous request. This parameter enables
4968
- * paging through the results. If there are no more results after the bookmark, you get a response containing no
4969
- * further results and the same bookmark, confirming the end of the result list.
4970
- */
4971
- bookmark?: string;
4972
- /** Query parameter that causes the geospatial query output to be returned in the specified format. */
4973
- format?: GetGeoConstants.Format | string;
4974
- /** Query parameter to specify a Well Known Text (WKT) representation of a geospatial query geometry. The valid
4975
- * values for the WKT parameter include `Point`, `LineString`, `Polygon`, `MultiPoint`, `MultiLineString`,
4976
- * `MultiPolygon`, and `GeometryCollection`.
4977
- */
4978
- g?: string;
4979
- /** Query parameter to specify whether to include the full content of the documents in the response. */
4980
- includeDocs?: boolean;
4981
- /** Query parameter to specify a latitude coordinate for use with radius or ellipse geospatial queries. */
4982
- lat?: number;
4983
- /** Query parameter to specify the number of returned documents to limit the result to. */
4984
- limit?: number;
4985
- /** Query parameter to specify a longitude coordinate for use with radius or ellipse geospatial queries. */
4986
- lon?: number;
4987
- /** Query parameter to specify whether to perform a nearest neighbour (NN) search. If provided, the
4988
- * `nearest=true` search returns all results by sorting their distances to the center of the query geometry. NN
4989
- * search can be used alone or with any of the supported DE-9IM (Dimensionally Extended nine-Intersection Model)
4990
- * specification geometric relations documented.
4991
- */
4992
- nearest?: boolean;
4993
- /** Query parameter to specify the radius, in meters, to search from a lat,lon coordinate point in a circular
4994
- * geospatial query.
4995
- */
4996
- radius?: number;
4997
- /** Query parameter to specify the first radius, in meters, to search from a lat,lon coordinate point in an
4998
- * ellipse geospatial query.
4999
- */
5000
- rangex?: number;
5001
- /** Query parameter to specify the second radius, in meters, to search from a lat,lon coordinate point in an
5002
- * ellipse geospatial query.
5003
- */
5004
- rangey?: number;
5005
- /** Query parameter to specify the DE-9IM (Dimensionally Extended nine-Intersection Model)geospatial
5006
- * relationship between the query geometry and the result documents.
5007
- */
5008
- relation?: GetGeoConstants.Relation | string;
5009
- /** Query parameter to specify the number of records before starting to return the results. */
5010
- skip?: number;
5011
- /** Query parameter to specify to not wait for the index to finish building before returning results. */
5012
- stale?: GetGeoConstants.Stale | string;
5013
- headers?: OutgoingHttpHeaders;
5014
- }
5015
- /** Constants for the `getGeo` operation. */
5016
- namespace GetGeoConstants {
5017
- /** Query parameter that causes the geospatial query output to be returned in the specified format. */
5018
- enum Format {
5019
- LEGACY = "legacy",
5020
- GEOJSON = "geojson",
5021
- VIEW = "view",
5022
- APPLICATION_VND_GEO_JSON = "application/vnd.geo+json"
5023
- }
5024
- /** Query parameter to specify the DE-9IM (Dimensionally Extended nine-Intersection Model)geospatial relationship between the query geometry and the result documents. */
5025
- enum Relation {
5026
- CONTAINS = "contains",
5027
- CONTAINS_PROPERLY = "contains_properly",
5028
- COVERED_BY = "covered_by",
5029
- COVERS = "covers",
5030
- CROSSES = "crosses",
5031
- DISJOINT = "disjoint",
5032
- INTERSECTS = "intersects",
5033
- OVERLAPS = "overlaps",
5034
- TOUCHES = "touches",
5035
- WITHIN = "within"
5036
- }
5037
- /** Query parameter to specify to not wait for the index to finish building before returning results. */
5038
- enum Stale {
5039
- OK = "ok"
5040
- }
5041
- }
5042
- /** Parameters for the `getGeoAsStream` operation. */
5043
- interface GetGeoAsStreamParams {
5044
- /** Path parameter to specify the database name. */
5045
- db: string;
5046
- /** Path parameter to specify the design document name. The design document name is the design document ID
5047
- * excluding the `_design/` prefix.
5048
- */
5049
- ddoc: string;
5050
- /** Path parameter to specify the index name. */
5051
- index: string;
5052
- /** Query parameter to specify a geospatial query bounding box with two latitude,longitude coordinates for the
5053
- * lower-left and upper-right corners. An example is `-11.05987446,12.28339928,-101.05987446,62.28339928`.
5054
- */
5055
- bbox?: string;
5056
- /** Query parameter to specify a bookmark that was received from a previous request. This parameter enables
5057
- * paging through the results. If there are no more results after the bookmark, you get a response containing no
5058
- * further results and the same bookmark, confirming the end of the result list.
5059
- */
5060
- bookmark?: string;
5061
- /** Query parameter that causes the geospatial query output to be returned in the specified format. */
5062
- format?: GetGeoAsStreamConstants.Format | string;
5063
- /** Query parameter to specify a Well Known Text (WKT) representation of a geospatial query geometry. The valid
5064
- * values for the WKT parameter include `Point`, `LineString`, `Polygon`, `MultiPoint`, `MultiLineString`,
5065
- * `MultiPolygon`, and `GeometryCollection`.
5066
- */
5067
- g?: string;
5068
- /** Query parameter to specify whether to include the full content of the documents in the response. */
5069
- includeDocs?: boolean;
5070
- /** Query parameter to specify a latitude coordinate for use with radius or ellipse geospatial queries. */
5071
- lat?: number;
5072
- /** Query parameter to specify the number of returned documents to limit the result to. */
5073
- limit?: number;
5074
- /** Query parameter to specify a longitude coordinate for use with radius or ellipse geospatial queries. */
5075
- lon?: number;
5076
- /** Query parameter to specify whether to perform a nearest neighbour (NN) search. If provided, the
5077
- * `nearest=true` search returns all results by sorting their distances to the center of the query geometry. NN
5078
- * search can be used alone or with any of the supported DE-9IM (Dimensionally Extended nine-Intersection Model)
5079
- * specification geometric relations documented.
5080
- */
5081
- nearest?: boolean;
5082
- /** Query parameter to specify the radius, in meters, to search from a lat,lon coordinate point in a circular
5083
- * geospatial query.
5084
- */
5085
- radius?: number;
5086
- /** Query parameter to specify the first radius, in meters, to search from a lat,lon coordinate point in an
5087
- * ellipse geospatial query.
5088
- */
5089
- rangex?: number;
5090
- /** Query parameter to specify the second radius, in meters, to search from a lat,lon coordinate point in an
5091
- * ellipse geospatial query.
5092
- */
5093
- rangey?: number;
5094
- /** Query parameter to specify the DE-9IM (Dimensionally Extended nine-Intersection Model)geospatial
5095
- * relationship between the query geometry and the result documents.
5096
- */
5097
- relation?: GetGeoAsStreamConstants.Relation | string;
5098
- /** Query parameter to specify the number of records before starting to return the results. */
5099
- skip?: number;
5100
- /** Query parameter to specify to not wait for the index to finish building before returning results. */
5101
- stale?: GetGeoAsStreamConstants.Stale | string;
5102
- headers?: OutgoingHttpHeaders;
5103
- }
5104
- /** Constants for the `getGeoAsStream` operation. */
5105
- namespace GetGeoAsStreamConstants {
5106
- /** Query parameter that causes the geospatial query output to be returned in the specified format. */
5107
- enum Format {
5108
- LEGACY = "legacy",
5109
- GEOJSON = "geojson",
5110
- VIEW = "view",
5111
- APPLICATION_VND_GEO_JSON = "application/vnd.geo+json"
5112
- }
5113
- /** Query parameter to specify the DE-9IM (Dimensionally Extended nine-Intersection Model)geospatial relationship between the query geometry and the result documents. */
5114
- enum Relation {
5115
- CONTAINS = "contains",
5116
- CONTAINS_PROPERLY = "contains_properly",
5117
- COVERED_BY = "covered_by",
5118
- COVERS = "covers",
5119
- CROSSES = "crosses",
5120
- DISJOINT = "disjoint",
5121
- INTERSECTS = "intersects",
5122
- OVERLAPS = "overlaps",
5123
- TOUCHES = "touches",
5124
- WITHIN = "within"
5125
- }
5126
- /** Query parameter to specify to not wait for the index to finish building before returning results. */
5127
- enum Stale {
5128
- OK = "ok"
5129
- }
5130
- }
5131
- /** Parameters for the `postGeoCleanup` operation. */
5132
- interface PostGeoCleanupParams {
5133
- /** Path parameter to specify the database name. */
5134
- db: string;
5135
- headers?: OutgoingHttpHeaders;
5136
- }
5137
- /** Parameters for the `getGeoIndexInformation` operation. */
5138
- interface GetGeoIndexInformationParams {
5139
- /** Path parameter to specify the database name. */
5140
- db: string;
5141
- /** Path parameter to specify the design document name. The design document name is the design document ID
5142
- * excluding the `_design/` prefix.
5143
- */
5144
- ddoc: string;
5145
- /** Path parameter to specify the index name. */
5146
- index: string;
5147
- headers?: OutgoingHttpHeaders;
5148
- }
5149
4942
  /** Parameters for the `headReplicationDocument` operation. */
5150
4943
  interface HeadReplicationDocumentParams {
5151
4944
  /** Path parameter to specify the document ID. */
@@ -5199,8 +4992,8 @@ declare namespace CloudantV1 {
5199
4992
  * attachment is compressed.
5200
4993
  */
5201
4994
  attEncodingInfo?: boolean;
5202
- /** Query parameter to specify whether to include a list of conflicted revisions in the `_conflicts` property of
5203
- * the returned document. Ignored if `include_docs` isn't `true`.
4995
+ /** Query parameter to specify whether to include a list of conflicted revisions in each returned document.
4996
+ * Active only when `include_docs` is `true`.
5204
4997
  */
5205
4998
  conflicts?: boolean;
5206
4999
  /** Query parameter to specify whether to include a list of deleted conflicted revisions in the
@@ -5665,8 +5458,8 @@ declare namespace CloudantV1 {
5665
5458
  att_encoding_info?: boolean;
5666
5459
  /** Parameter to specify whether to include attachments bodies in a response. */
5667
5460
  attachments?: boolean;
5668
- /** Parameter to specify whether to include a list of conflicted revisions in the `_conflicts` property of the
5669
- * returned document. Ignored if `include_docs` isn't `true`.
5461
+ /** Parameter to specify whether to include a list of conflicted revisions in each returned document. Active
5462
+ * only when `include_docs` is `true`.
5670
5463
  */
5671
5464
  conflicts?: boolean;
5672
5465
  /** Parameter to specify whether to return the documents in descending by key order. */
@@ -6058,8 +5851,6 @@ declare namespace CloudantV1 {
6058
5851
  validate_doc_update?: string;
6059
5852
  /** Schema for design document views. */
6060
5853
  views?: JsonObject;
6061
- /** Schema for geospatial index function definitions. */
6062
- st_indexes?: JsonObject;
6063
5854
  /** DesignDocument accepts additional properties. */
6064
5855
  [propName: string]: any;
6065
5856
  }
@@ -6257,72 +6048,6 @@ declare namespace CloudantV1 {
6257
6048
  /** warning. */
6258
6049
  warning?: string;
6259
6050
  }
6260
- /** Schema for a geospatial index definition. */
6261
- interface GeoIndexDefinition {
6262
- /** String form of a JavaScript function that is called for each document in the database. The function takes
6263
- * the document as a parameter, extracts some geospatial data from it, and then calls the `st_index` function to
6264
- * index that data. The `st_index` takes a GeoJSON geometry as a parameter.
6265
- */
6266
- index: string;
6267
- }
6268
- /** Schema for information about a geospatial index. */
6269
- interface GeoIndexInformation {
6270
- /** Schema for geospatial index statistics. */
6271
- geo_index: GeoIndexStats;
6272
- /** The name of the geospatial index design document. */
6273
- name: string;
6274
- }
6275
- /** Schema for geospatial index statistics. */
6276
- interface GeoIndexStats {
6277
- /** The size of the geospatial index, in bytes. */
6278
- data_size: number;
6279
- /** The size of the geospatial index, as stored on disk, in bytes. */
6280
- disk_size: number;
6281
- /** Number of documents in the geospatial index. */
6282
- doc_count: number;
6283
- }
6284
- /** Schema for a GeoJSON feature object. Note that the content of the feature objects varies depending on the response format chosen and whether the `include_docs` parameter is `true`. */
6285
- interface GeoJsonFeature {
6286
- /** Schema for a document ID. */
6287
- _id?: string;
6288
- /** Schema for a document revision identifier. */
6289
- _rev?: string;
6290
- /** Schema for a GeoJSON bounding box. */
6291
- bbox?: number[];
6292
- /** Schema for a GeoJSON geometry object. */
6293
- geometry: GeoJsonGeometryObject;
6294
- /** Schema for the properties of a GeoJSON feature object. */
6295
- properties?: JsonObject;
6296
- /** Declaration of the GeoJSON type: Feature Object. */
6297
- type: string;
6298
- /** GeoJsonFeature accepts additional properties. */
6299
- [propName: string]: any;
6300
- }
6301
- /** Schema for a GeoJSON geometry object. */
6302
- interface GeoJsonGeometryObject {
6303
- }
6304
- /** Schema for the result of a geospatial query operation. For the `legacy`, `geojson`, or `application/vnd.geo+json` format this is a GeoJson FeatureCollection with additional metadata in foreign members. */
6305
- interface GeoResult {
6306
- /** Opaque bookmark token used when paginating results. */
6307
- bookmark: string;
6308
- /** The array of GeoJSON Feature Objects matching the geospatial query. */
6309
- features?: GeoJsonFeature[];
6310
- /** The array of rows matching the geospatial query. Present only when using `view` format. */
6311
- rows: GeoResultRow[];
6312
- /** Declaration of the GeoJSON type: FeatureCollection Object. */
6313
- type?: string;
6314
- }
6315
- /** Schema for a row of a geospatial result using view format. */
6316
- interface GeoResultRow {
6317
- /** Schema for a document. */
6318
- doc?: Document;
6319
- /** Schema for a GeoJSON geometry. */
6320
- geometry?: GeoJsonGeometry;
6321
- /** Schema for a document ID. */
6322
- id?: string;
6323
- /** Schema for a document revision identifier. */
6324
- rev?: string;
6325
- }
6326
6051
  /** Schema for a `json` or `text` query index definition. Indexes of type `text` have additional configuration properties that do not apply to `json` indexes, these are: * `default_analyzer` - the default text analyzer to use * `default_field` - whether to index the text in all document fields and what analyzer to use for that purpose. */
6327
6052
  interface IndexDefinition {
6328
6053
  /** Schema for a full text search analyzer. */
@@ -6612,6 +6337,11 @@ declare namespace CloudantV1 {
6612
6337
  use_checkpoints?: boolean;
6613
6338
  /** Schema for the user context of a session. */
6614
6339
  user_ctx?: UserContext;
6340
+ /** Replicate only the winning revisions. Replication with this mode discards conflicting revisions. Replication
6341
+ * IDs and checkpoints generated by this mode are different to those generated by default, so it is possible to
6342
+ * first replicate the winning revisions then later backfill remaining revisions with a regular replication job.
6343
+ */
6344
+ winning_revs_only?: boolean;
6615
6345
  /** Controls how many documents are processed. After each batch a checkpoint is written so this controls how
6616
6346
  * frequently checkpointing occurs.
6617
6347
  */
@@ -6962,8 +6692,8 @@ declare namespace CloudantV1 {
6962
6692
  att_encoding_info?: boolean;
6963
6693
  /** Parameter to specify whether to include attachments bodies in a response. */
6964
6694
  attachments?: boolean;
6965
- /** Parameter to specify whether to include a list of conflicted revisions in the `_conflicts` property of the
6966
- * returned document. Ignored if `include_docs` isn't `true`.
6695
+ /** Parameter to specify whether to include a list of conflicted revisions in each returned document. Active
6696
+ * only when `include_docs` is `true`.
6967
6697
  */
6968
6698
  conflicts?: boolean;
6969
6699
  /** Parameter to specify whether to return the documents in descending by key order. */
@@ -6984,29 +6714,44 @@ declare namespace CloudantV1 {
6984
6714
  end_key?: any;
6985
6715
  /** Schema for a document ID. */
6986
6716
  end_key_doc_id?: string;
6987
- /** Parameter to specify whether to group the results using the reduce function to a group rather than a single
6988
- * row. Implies reduce is true and the maximum group_level.
6717
+ /** Parameter to specify whether to group reduced results by key. Valid only if a reduce function defined in the
6718
+ * view. If the view emits key in JSON array format, then it is possible to reduce groups further based on the
6719
+ * number of array elements with the `group_level` parameter.
6989
6720
  */
6990
6721
  group?: boolean;
6991
- /** Parameter to specify the group level to be used. Implies group is true. */
6722
+ /** Parameter to specify a group level to be used. Only applicable if the view uses keys that are JSON arrays.
6723
+ * Implies group is `true`. Group level groups the reduced results by the specified number of array elements. If
6724
+ * unset, results are grouped by the entire array key, returning a reduced value for each complete key.
6725
+ */
6992
6726
  group_level?: number;
6993
6727
  /** Schema for any JSON type. */
6994
6728
  key?: any;
6995
- /** Parameter to specify to return only documents that match the specified keys. String representation of a JSON
6996
- * array containing elements that match the key type emitted by the view function.
6729
+ /** Parameter to specify returning only documents that match any of the specified keys. A JSON array of keys
6730
+ * that match the key type emitted by the view function.
6997
6731
  */
6998
6732
  keys?: any[];
6999
6733
  /** Parameter to specify whether to use the reduce function in a map-reduce view. Default is true when a reduce
7000
6734
  * function is defined.
7001
6735
  */
7002
6736
  reduce?: boolean;
7003
- /** Parameter to specify whether view results should be returned from a stable set of shards. */
6737
+ /** Query parameter to specify whether use the same replica of the index on each request. The default value
6738
+ * `false` contacts all replicas and returns the result from the first, fastest, responder. Setting it to `true`
6739
+ * when used in conjunction with `update=false` may improve consistency at the expense of increased latency and
6740
+ * decreased throughput if the selected replica is not the fastest of the available replicas.
6741
+ *
6742
+ * **Note:** In general setting `true` is discouraged and is strictly not recommended when using `update=true`.
6743
+ */
7004
6744
  stable?: boolean;
7005
6745
  /** Schema for any JSON type. */
7006
6746
  start_key?: any;
7007
6747
  /** Schema for a document ID. */
7008
6748
  start_key_doc_id?: string;
7009
- /** Parameter to specify whether or not the view in question should be updated prior to responding to the user. */
6749
+ /** Parameter to specify whether or not the view in question should be updated prior to responding to the user.
6750
+ *
6751
+ * * `true` - Return results after the view is updated.
6752
+ * * `false` - Return results without updating the view.
6753
+ * * `lazy` - Return the view results without waiting for an update, but update them immediately after the request.
6754
+ */
7010
6755
  update?: string;
7011
6756
  }
7012
6757
  /** Schema for the result of a query view operation. */
@@ -7035,21 +6780,5 @@ declare namespace CloudantV1 {
7035
6780
  /** Schema for any JSON type. */
7036
6781
  value: any;
7037
6782
  }
7038
- /** Schema for a GeoJSON geometry. */
7039
- interface GeoJsonGeometry extends GeoJsonGeometryObject {
7040
- /** The type of GeoJSON Geometry. */
7041
- type: string;
7042
- /** Used for all geometry types except `GeometryCollection`. The structure of the elements in the array varies
7043
- * by geometry type.
7044
- */
7045
- coordinates: any[];
7046
- }
7047
- /** Schema for a GeoJSON GeometryCollection type geometry. */
7048
- interface GeoJsonGeometryCollection extends GeoJsonGeometryObject {
7049
- /** The type of GeoJSON Geometry. */
7050
- type: string;
7051
- /** Used for the `GeometryCollection` type. */
7052
- geometries: GeoJsonGeometry[];
7053
- }
7054
6783
  }
7055
6784
  export = CloudantV1;