@ibm-cloud/cloudant 0.12.10 → 0.12.12

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.js CHANGED
@@ -255,20 +255,20 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
255
255
  * and might repeat changes. Polling modes for this method work like polling modes for the changes feed.
256
256
  *
257
257
  * @param {Object} [params] - The parameters to send to the service.
258
- * @param {boolean} [params.descending] - Query parameter to specify whether to return the documents in descending by
259
- * key order.
258
+ * @param {boolean} [params.descending] - Query parameter to specify whether to return rows in descending by key
259
+ * order.
260
260
  * @param {string} [params.feed] - Query parameter to specify the changes feed type.
261
261
  * @param {number} [params.heartbeat] - Query parameter to specify the period in milliseconds after which an empty
262
- * line is sent in the results. Off by default and only applicable for
263
- * `continuous` and `eventsource` feeds. Overrides any timeout to keep the feed alive indefinitely. May also be `true`
264
- * to use a value of `60000`.
262
+ * line is sent in the results. Off by default and only applicable for `continuous` and `eventsource` feeds. Overrides
263
+ * any timeout to keep the feed alive indefinitely. May also be `true` to use a value of `60000`.
265
264
  *
266
265
  * **Note:** Delivery of heartbeats cannot be relied on at specific intervals. If your application runs in an
267
266
  * environment where idle network connections may break, `heartbeat` is not suitable as a keepalive mechanism.
268
267
  * Instead, consider one of the following options:
269
- * * Use the `timeout` parameter with a value that is compatible with your network environment.
270
- * * Switch to scheduled usage of one of the non-continuous changes feed types
271
- * (`normal` or `longpoll`).
268
+ * * Use the `timeout` parameter with a value that is compatible with
269
+ * your network environment.
270
+ * * Switch to scheduled usage of one of the non-continuous changes feed
271
+ * types (`normal` or `longpoll`).
272
272
  * * Use TCP keepalive.
273
273
  * @param {number} [params.limit] - Query parameter to specify the number of returned documents to limit the result
274
274
  * to.
@@ -277,7 +277,11 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
277
277
  * feeds. Default value is specified by `httpd/changes_timeout` configuration option. Note that `60000` value is also
278
278
  * the default maximum timeout to prevent undetected dead connections.
279
279
  * @param {string} [params.since] - Query parameter to specify to start the results from the change immediately after
280
- * the given update sequence. Can be a valid update sequence or `now` value. Default is `0` i.e. all changes.
280
+ * the given update sequence. Possible values are:
281
+ * * `0` for all available changes (default).
282
+ * * `now` for future changes.
283
+ * * A valid update sequence, for example, from the `seq` value of a
284
+ * change received before.
281
285
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
282
286
  * @returns {Promise<CloudantV1.Response<CloudantV1.DbUpdates>>}
283
287
  * @deprecated this method is deprecated and may be removed in a future release
@@ -361,8 +365,8 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
361
365
  * argument.
362
366
  *
363
367
  * It is important for query performance to use appropriate selectors:
364
- * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the basis
365
- * of a query. You should include at least one of these in a selector.
368
+ * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
369
+ * `$lte` (but not `$ne`) can be used as the basis of a query. You should include at least one of these in a selector.
366
370
  * * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query selectors
367
371
  * use these operators in conjunction with equality operators or create and use a partial index to reduce the number
368
372
  * of documents that will need to be scanned.
@@ -374,24 +378,27 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
374
378
  * @param {string} [params.lastEventId] - Header parameter to specify the ID of the last events received by the server
375
379
  * on a previous connection. Overrides `since` query parameter.
376
380
  * @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
377
- * in attachment stubs if the particular attachment is compressed.
378
- * @param {boolean} [params.attachments] - Query parameter to specify whether to include attachments bodies in a
379
- * response.
381
+ * for compressed attachments. Note that when used with a view-style query or changes feed this only applies when
382
+ * requesting documents in the response.
383
+ * @param {boolean} [params.attachments] - Query parameter to specify whether to include attachment content in the
384
+ * response. Note that when used with a view-style query or changes feed this only applies when requesting documents
385
+ * in the response.
380
386
  * @param {boolean} [params.conflicts] - Query parameter to specify whether to include a list of conflicted revisions
381
- * in each returned document. Active only when `include_docs` is `true`.
382
- * @param {boolean} [params.descending] - Query parameter to specify whether to return the documents in descending by
383
- * key order.
387
+ * in each returned document. Note that when used with a view-style query or changes feed this only applies when
388
+ * requesting documents in the response.
389
+ * @param {boolean} [params.descending] - Query parameter to specify whether to return changes in the descending order
390
+ * with most recent change first. The `since` parameter has no effect when using descending order.
384
391
  * @param {string} [params.feed] - Query parameter to specify the changes feed type.
385
392
  * @param {string} [params.filter] - Query parameter to specify a filter to emit only specific events from the changes
386
393
  * stream.
387
394
  *
388
395
  * The built-in filter types are:
389
396
  * * `_design` - Returns only changes to design documents.
390
- * * `_doc_ids` - Returns changes for documents with an ID matching one specified in
391
- * `doc_ids` request body parameter. (`POST` only)
392
- * * `_selector` - Returns changes for documents that match the `selector`
393
- * request body parameter. The selector syntax is the same as used for
394
- * `_find`. (`POST` only)
397
+ * * `_doc_ids` - Returns changes for documents with an ID matching one
398
+ * specified in `doc_ids` request body parameter. (`POST` only)
399
+ * * `_selector` - Returns changes for documents that match the
400
+ * `selector` request body parameter. The selector syntax is the same
401
+ * as used for `_find`. (`POST` only)
395
402
  * * `_view` - Returns changes for documents that match an existing map
396
403
  * function in the view specified by the query parameter `view`.
397
404
  *
@@ -399,19 +406,19 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
399
406
  * `design_doc/filtername`.
400
407
  *
401
408
  * **Note:** For better performance use the built-in `_selector`, `_design` or `_doc_ids` filters rather than JS based
402
- * `_view` or design document filters. If you need to pass values to change the filtered content use the `_selector`
403
- * filter type.
409
+ * `_view` or design document filters. If you need to pass values to change the filtered content use the
410
+ * `_selector` filter type.
404
411
  * @param {number} [params.heartbeat] - Query parameter to specify the period in milliseconds after which an empty
405
- * line is sent in the results. Off by default and only applicable for
406
- * `continuous` and `eventsource` feeds. Overrides any timeout to keep the feed alive indefinitely. May also be `true`
407
- * to use a value of `60000`.
412
+ * line is sent in the results. Off by default and only applicable for `continuous` and `eventsource` feeds. Overrides
413
+ * any timeout to keep the feed alive indefinitely. May also be `true` to use a value of `60000`.
408
414
  *
409
415
  * **Note:** Delivery of heartbeats cannot be relied on at specific intervals. If your application runs in an
410
416
  * environment where idle network connections may break, `heartbeat` is not suitable as a keepalive mechanism.
411
417
  * Instead, consider one of the following options:
412
- * * Use the `timeout` parameter with a value that is compatible with your network environment.
413
- * * Switch to scheduled usage of one of the non-continuous changes feed types
414
- * (`normal` or `longpoll`).
418
+ * * Use the `timeout` parameter with a value that is compatible with
419
+ * your network environment.
420
+ * * Switch to scheduled usage of one of the non-continuous changes feed
421
+ * types (`normal` or `longpoll`).
415
422
  * * Use TCP keepalive.
416
423
  * @param {boolean} [params.includeDocs] - Query parameter to specify whether to include the full content of the
417
424
  * documents in the response.
@@ -423,7 +430,11 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
423
430
  * source database as computing the seq value across many shards (especially in highly-sharded databases) is
424
431
  * expensive.
425
432
  * @param {string} [params.since] - Query parameter to specify to start the results from the change immediately after
426
- * the given update sequence. Can be a valid update sequence or `now` value. Default is `0` i.e. all changes.
433
+ * the given update sequence. Possible values are:
434
+ * * `0` for all available changes (default).
435
+ * * `now` for future changes.
436
+ * * A valid update sequence, for example, from the `seq` value of a
437
+ * change received before.
427
438
  * @param {string} [params.style] - Query parameter to specify how many revisions are returned in the changes array.
428
439
  * The default, `main_only`, will only return the current "winning" revision; all_docs will return all leaf revisions
429
440
  * (including conflicts and deleted former conflicts).
@@ -534,8 +545,8 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
534
545
  * argument.
535
546
  *
536
547
  * It is important for query performance to use appropriate selectors:
537
- * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the basis
538
- * of a query. You should include at least one of these in a selector.
548
+ * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
549
+ * `$lte` (but not `$ne`) can be used as the basis of a query. You should include at least one of these in a selector.
539
550
  * * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query selectors
540
551
  * use these operators in conjunction with equality operators or create and use a partial index to reduce the number
541
552
  * of documents that will need to be scanned.
@@ -547,24 +558,27 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
547
558
  * @param {string} [params.lastEventId] - Header parameter to specify the ID of the last events received by the server
548
559
  * on a previous connection. Overrides `since` query parameter.
549
560
  * @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
550
- * in attachment stubs if the particular attachment is compressed.
551
- * @param {boolean} [params.attachments] - Query parameter to specify whether to include attachments bodies in a
552
- * response.
561
+ * for compressed attachments. Note that when used with a view-style query or changes feed this only applies when
562
+ * requesting documents in the response.
563
+ * @param {boolean} [params.attachments] - Query parameter to specify whether to include attachment content in the
564
+ * response. Note that when used with a view-style query or changes feed this only applies when requesting documents
565
+ * in the response.
553
566
  * @param {boolean} [params.conflicts] - Query parameter to specify whether to include a list of conflicted revisions
554
- * in each returned document. Active only when `include_docs` is `true`.
555
- * @param {boolean} [params.descending] - Query parameter to specify whether to return the documents in descending by
556
- * key order.
567
+ * in each returned document. Note that when used with a view-style query or changes feed this only applies when
568
+ * requesting documents in the response.
569
+ * @param {boolean} [params.descending] - Query parameter to specify whether to return changes in the descending order
570
+ * with most recent change first. The `since` parameter has no effect when using descending order.
557
571
  * @param {string} [params.feed] - Query parameter to specify the changes feed type.
558
572
  * @param {string} [params.filter] - Query parameter to specify a filter to emit only specific events from the changes
559
573
  * stream.
560
574
  *
561
575
  * The built-in filter types are:
562
576
  * * `_design` - Returns only changes to design documents.
563
- * * `_doc_ids` - Returns changes for documents with an ID matching one specified in
564
- * `doc_ids` request body parameter. (`POST` only)
565
- * * `_selector` - Returns changes for documents that match the `selector`
566
- * request body parameter. The selector syntax is the same as used for
567
- * `_find`. (`POST` only)
577
+ * * `_doc_ids` - Returns changes for documents with an ID matching one
578
+ * specified in `doc_ids` request body parameter. (`POST` only)
579
+ * * `_selector` - Returns changes for documents that match the
580
+ * `selector` request body parameter. The selector syntax is the same
581
+ * as used for `_find`. (`POST` only)
568
582
  * * `_view` - Returns changes for documents that match an existing map
569
583
  * function in the view specified by the query parameter `view`.
570
584
  *
@@ -572,19 +586,19 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
572
586
  * `design_doc/filtername`.
573
587
  *
574
588
  * **Note:** For better performance use the built-in `_selector`, `_design` or `_doc_ids` filters rather than JS based
575
- * `_view` or design document filters. If you need to pass values to change the filtered content use the `_selector`
576
- * filter type.
589
+ * `_view` or design document filters. If you need to pass values to change the filtered content use the
590
+ * `_selector` filter type.
577
591
  * @param {number} [params.heartbeat] - Query parameter to specify the period in milliseconds after which an empty
578
- * line is sent in the results. Off by default and only applicable for
579
- * `continuous` and `eventsource` feeds. Overrides any timeout to keep the feed alive indefinitely. May also be `true`
580
- * to use a value of `60000`.
592
+ * line is sent in the results. Off by default and only applicable for `continuous` and `eventsource` feeds. Overrides
593
+ * any timeout to keep the feed alive indefinitely. May also be `true` to use a value of `60000`.
581
594
  *
582
595
  * **Note:** Delivery of heartbeats cannot be relied on at specific intervals. If your application runs in an
583
596
  * environment where idle network connections may break, `heartbeat` is not suitable as a keepalive mechanism.
584
597
  * Instead, consider one of the following options:
585
- * * Use the `timeout` parameter with a value that is compatible with your network environment.
586
- * * Switch to scheduled usage of one of the non-continuous changes feed types
587
- * (`normal` or `longpoll`).
598
+ * * Use the `timeout` parameter with a value that is compatible with
599
+ * your network environment.
600
+ * * Switch to scheduled usage of one of the non-continuous changes feed
601
+ * types (`normal` or `longpoll`).
588
602
  * * Use TCP keepalive.
589
603
  * @param {boolean} [params.includeDocs] - Query parameter to specify whether to include the full content of the
590
604
  * documents in the response.
@@ -596,7 +610,11 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
596
610
  * source database as computing the seq value across many shards (especially in highly-sharded databases) is
597
611
  * expensive.
598
612
  * @param {string} [params.since] - Query parameter to specify to start the results from the change immediately after
599
- * the given update sequence. Can be a valid update sequence or `now` value. Default is `0` i.e. all changes.
613
+ * the given update sequence. Possible values are:
614
+ * * `0` for all available changes (default).
615
+ * * `now` for future changes.
616
+ * * A valid update sequence, for example, from the `seq` value of a
617
+ * change received before.
600
618
  * @param {string} [params.style] - Query parameter to specify how many revisions are returned in the changes array.
601
619
  * The default, `main_only`, will only return the current "winning" revision; all_docs will return all leaf revisions
602
620
  * (including conflicts and deleted former conflicts).
@@ -711,8 +729,8 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
711
729
  * Query to retrieve a list of database names from the instance.
712
730
  *
713
731
  * @param {Object} [params] - The parameters to send to the service.
714
- * @param {boolean} [params.descending] - Query parameter to specify whether to return the documents in descending by
715
- * key order.
732
+ * @param {boolean} [params.descending] - Query parameter to specify whether to return rows in descending by key
733
+ * order.
716
734
  * @param {string} [params.endKey] - Query parameter to specify to stop returning records when the specified key is
717
735
  * reached. String representation of any JSON type that matches the key type emitted by the view function.
718
736
  * @param {number} [params.limit] - Query parameter to specify the number of returned documents to limit the result
@@ -1057,17 +1075,18 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
1057
1075
  *
1058
1076
  * @param {Object} params - The parameters to send to the service.
1059
1077
  * @param {string} params.db - Path parameter to specify the database name.
1060
- * @param {boolean} [params.attEncodingInfo] - Parameter to specify whether to include the encoding information in
1061
- * attachment stubs if the particular attachment is compressed.
1062
- * @param {boolean} [params.attachments] - Parameter to specify whether to include attachments bodies in a response.
1078
+ * @param {boolean} [params.attEncodingInfo] - Parameter to specify whether to include the encoding information for
1079
+ * compressed attachments. This only applies when requesting documents in the response.
1080
+ * @param {boolean} [params.attachments] - Parameter to specify whether to include attachment content in included
1081
+ * document content or only the attachment metadata. This only applies when requesting documents in the response.
1063
1082
  * @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in
1064
- * each returned document. Active only when `include_docs` is `true`.
1083
+ * each returned document. This only applies when requesting documents in the response.
1065
1084
  * @param {boolean} [params.descending] - Parameter to specify whether to return the documents in descending by key
1066
1085
  * order.
1067
1086
  * @param {boolean} [params.includeDocs] - Parameter to specify whether to include the full content of the documents
1068
1087
  * in the response.
1069
- * @param {boolean} [params.inclusiveEnd] - Parameter to specify whether the specified end key should be included in
1070
- * the result.
1088
+ * @param {boolean} [params.inclusiveEnd] - Parameter to specify whether to include the specified end key in the
1089
+ * result.
1071
1090
  * @param {number} [params.limit] - Parameter to specify the number of returned documents to limit the result to.
1072
1091
  * @param {number} [params.skip] - Parameter to specify the number of records before starting to return the results.
1073
1092
  * @param {boolean} [params.updateSeq] - Parameter to specify whether to include in the response an update_seq value
@@ -1135,17 +1154,18 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
1135
1154
  *
1136
1155
  * @param {Object} params - The parameters to send to the service.
1137
1156
  * @param {string} params.db - Path parameter to specify the database name.
1138
- * @param {boolean} [params.attEncodingInfo] - Parameter to specify whether to include the encoding information in
1139
- * attachment stubs if the particular attachment is compressed.
1140
- * @param {boolean} [params.attachments] - Parameter to specify whether to include attachments bodies in a response.
1157
+ * @param {boolean} [params.attEncodingInfo] - Parameter to specify whether to include the encoding information for
1158
+ * compressed attachments. This only applies when requesting documents in the response.
1159
+ * @param {boolean} [params.attachments] - Parameter to specify whether to include attachment content in included
1160
+ * document content or only the attachment metadata. This only applies when requesting documents in the response.
1141
1161
  * @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in
1142
- * each returned document. Active only when `include_docs` is `true`.
1162
+ * each returned document. This only applies when requesting documents in the response.
1143
1163
  * @param {boolean} [params.descending] - Parameter to specify whether to return the documents in descending by key
1144
1164
  * order.
1145
1165
  * @param {boolean} [params.includeDocs] - Parameter to specify whether to include the full content of the documents
1146
1166
  * in the response.
1147
- * @param {boolean} [params.inclusiveEnd] - Parameter to specify whether the specified end key should be included in
1148
- * the result.
1167
+ * @param {boolean} [params.inclusiveEnd] - Parameter to specify whether to include the specified end key in the
1168
+ * result.
1149
1169
  * @param {number} [params.limit] - Parameter to specify the number of returned documents to limit the result to.
1150
1170
  * @param {number} [params.skip] - Parameter to specify the number of records before starting to return the results.
1151
1171
  * @param {boolean} [params.updateSeq] - Parameter to specify whether to include in the response an update_seq value
@@ -1356,10 +1376,12 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
1356
1376
  * @param {Object} params - The parameters to send to the service.
1357
1377
  * @param {string} params.db - Path parameter to specify the database name.
1358
1378
  * @param {BulkGetQueryDocument[]} params.docs - List of document items to get in bulk.
1359
- * @param {boolean} [params.attachments] - Query parameter to specify whether to include attachments bodies in a
1360
- * response.
1379
+ * @param {boolean} [params.attachments] - Query parameter to specify whether to include attachment content in the
1380
+ * response. Note that when used with a view-style query or changes feed this only applies when requesting documents
1381
+ * in the response.
1361
1382
  * @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
1362
- * in attachment stubs if the particular attachment is compressed.
1383
+ * for compressed attachments. Note that when used with a view-style query or changes feed this only applies when
1384
+ * requesting documents in the response.
1363
1385
  * @param {boolean} [params.latest] - Query parameter to specify whether to force retrieving latest leaf revision, no
1364
1386
  * matter what rev was requested.
1365
1387
  * @param {boolean} [params.revs] - Query parameter to specify whether to include a list of all known document
@@ -1416,10 +1438,12 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
1416
1438
  * @param {Object} params - The parameters to send to the service.
1417
1439
  * @param {string} params.db - Path parameter to specify the database name.
1418
1440
  * @param {BulkGetQueryDocument[]} params.docs - List of document items to get in bulk.
1419
- * @param {boolean} [params.attachments] - Query parameter to specify whether to include attachments bodies in a
1420
- * response.
1441
+ * @param {boolean} [params.attachments] - Query parameter to specify whether to include attachment content in the
1442
+ * response. Note that when used with a view-style query or changes feed this only applies when requesting documents
1443
+ * in the response.
1421
1444
  * @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
1422
- * in attachment stubs if the particular attachment is compressed.
1445
+ * for compressed attachments. Note that when used with a view-style query or changes feed this only applies when
1446
+ * requesting documents in the response.
1423
1447
  * @param {boolean} [params.latest] - Query parameter to specify whether to force retrieving latest leaf revision, no
1424
1448
  * matter what rev was requested.
1425
1449
  * @param {boolean} [params.revs] - Query parameter to specify whether to include a list of all known document
@@ -1477,10 +1501,12 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
1477
1501
  * @param {Object} params - The parameters to send to the service.
1478
1502
  * @param {string} params.db - Path parameter to specify the database name.
1479
1503
  * @param {BulkGetQueryDocument[]} params.docs - List of document items to get in bulk.
1480
- * @param {boolean} [params.attachments] - Query parameter to specify whether to include attachments bodies in a
1481
- * response.
1504
+ * @param {boolean} [params.attachments] - Query parameter to specify whether to include attachment content in the
1505
+ * response. Note that when used with a view-style query or changes feed this only applies when requesting documents
1506
+ * in the response.
1482
1507
  * @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
1483
- * in attachment stubs if the particular attachment is compressed.
1508
+ * for compressed attachments. Note that when used with a view-style query or changes feed this only applies when
1509
+ * requesting documents in the response.
1484
1510
  * @param {boolean} [params.latest] - Query parameter to specify whether to force retrieving latest leaf revision, no
1485
1511
  * matter what rev was requested.
1486
1512
  * @param {boolean} [params.revs] - Query parameter to specify whether to include a list of all known document
@@ -1538,10 +1564,12 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
1538
1564
  * @param {Object} params - The parameters to send to the service.
1539
1565
  * @param {string} params.db - Path parameter to specify the database name.
1540
1566
  * @param {BulkGetQueryDocument[]} params.docs - List of document items to get in bulk.
1541
- * @param {boolean} [params.attachments] - Query parameter to specify whether to include attachments bodies in a
1542
- * response.
1567
+ * @param {boolean} [params.attachments] - Query parameter to specify whether to include attachment content in the
1568
+ * response. Note that when used with a view-style query or changes feed this only applies when requesting documents
1569
+ * in the response.
1543
1570
  * @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
1544
- * in attachment stubs if the particular attachment is compressed.
1571
+ * for compressed attachments. Note that when used with a view-style query or changes feed this only applies when
1572
+ * requesting documents in the response.
1545
1573
  * @param {boolean} [params.latest] - Query parameter to specify whether to force retrieving latest leaf revision, no
1546
1574
  * matter what rev was requested.
1547
1575
  * @param {boolean} [params.revs] - Query parameter to specify whether to include a list of all known document
@@ -1654,12 +1682,15 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
1654
1682
  * @param {string} params.db - Path parameter to specify the database name.
1655
1683
  * @param {string} params.docId - Path parameter to specify the document ID.
1656
1684
  * @param {string} [params.ifNoneMatch] - Header parameter for a conditional HTTP request not matching an ETag.
1657
- * @param {boolean} [params.attachments] - Query parameter to specify whether to include attachments bodies in a
1658
- * response.
1685
+ * @param {boolean} [params.attachments] - Query parameter to specify whether to include attachment content in the
1686
+ * response. Note that when used with a view-style query or changes feed this only applies when requesting documents
1687
+ * in the response.
1659
1688
  * @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
1660
- * in attachment stubs if the particular attachment is compressed.
1689
+ * for compressed attachments. Note that when used with a view-style query or changes feed this only applies when
1690
+ * requesting documents in the response.
1661
1691
  * @param {boolean} [params.conflicts] - Query parameter to specify whether to include a list of conflicted revisions
1662
- * in each returned document. Active only when `include_docs` is `true`.
1692
+ * in each returned document. Note that when used with a view-style query or changes feed this only applies when
1693
+ * requesting documents in the response.
1663
1694
  * @param {boolean} [params.deletedConflicts] - Query parameter to specify whether to include a list of deleted
1664
1695
  * conflicted revisions in the `_deleted_conflicts` property of the returned document.
1665
1696
  * @param {boolean} [params.latest] - Query parameter to specify whether to force retrieving latest leaf revision, no
@@ -1730,12 +1761,15 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
1730
1761
  * @param {string} params.db - Path parameter to specify the database name.
1731
1762
  * @param {string} params.docId - Path parameter to specify the document ID.
1732
1763
  * @param {string} [params.ifNoneMatch] - Header parameter for a conditional HTTP request not matching an ETag.
1733
- * @param {boolean} [params.attachments] - Query parameter to specify whether to include attachments bodies in a
1734
- * response.
1764
+ * @param {boolean} [params.attachments] - Query parameter to specify whether to include attachment content in the
1765
+ * response. Note that when used with a view-style query or changes feed this only applies when requesting documents
1766
+ * in the response.
1735
1767
  * @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
1736
- * in attachment stubs if the particular attachment is compressed.
1768
+ * for compressed attachments. Note that when used with a view-style query or changes feed this only applies when
1769
+ * requesting documents in the response.
1737
1770
  * @param {boolean} [params.conflicts] - Query parameter to specify whether to include a list of conflicted revisions
1738
- * in each returned document. Active only when `include_docs` is `true`.
1771
+ * in each returned document. Note that when used with a view-style query or changes feed this only applies when
1772
+ * requesting documents in the response.
1739
1773
  * @param {boolean} [params.deletedConflicts] - Query parameter to specify whether to include a list of deleted
1740
1774
  * conflicted revisions in the `_deleted_conflicts` property of the returned document.
1741
1775
  * @param {boolean} [params.latest] - Query parameter to specify whether to force retrieving latest leaf revision, no
@@ -1807,12 +1841,15 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
1807
1841
  * @param {string} params.db - Path parameter to specify the database name.
1808
1842
  * @param {string} params.docId - Path parameter to specify the document ID.
1809
1843
  * @param {string} [params.ifNoneMatch] - Header parameter for a conditional HTTP request not matching an ETag.
1810
- * @param {boolean} [params.attachments] - Query parameter to specify whether to include attachments bodies in a
1811
- * response.
1844
+ * @param {boolean} [params.attachments] - Query parameter to specify whether to include attachment content in the
1845
+ * response. Note that when used with a view-style query or changes feed this only applies when requesting documents
1846
+ * in the response.
1812
1847
  * @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
1813
- * in attachment stubs if the particular attachment is compressed.
1848
+ * for compressed attachments. Note that when used with a view-style query or changes feed this only applies when
1849
+ * requesting documents in the response.
1814
1850
  * @param {boolean} [params.conflicts] - Query parameter to specify whether to include a list of conflicted revisions
1815
- * in each returned document. Active only when `include_docs` is `true`.
1851
+ * in each returned document. Note that when used with a view-style query or changes feed this only applies when
1852
+ * requesting documents in the response.
1816
1853
  * @param {boolean} [params.deletedConflicts] - Query parameter to specify whether to include a list of deleted
1817
1854
  * conflicted revisions in the `_deleted_conflicts` property of the returned document.
1818
1855
  * @param {boolean} [params.latest] - Query parameter to specify whether to force retrieving latest leaf revision, no
@@ -1884,12 +1921,15 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
1884
1921
  * @param {string} params.db - Path parameter to specify the database name.
1885
1922
  * @param {string} params.docId - Path parameter to specify the document ID.
1886
1923
  * @param {string} [params.ifNoneMatch] - Header parameter for a conditional HTTP request not matching an ETag.
1887
- * @param {boolean} [params.attachments] - Query parameter to specify whether to include attachments bodies in a
1888
- * response.
1924
+ * @param {boolean} [params.attachments] - Query parameter to specify whether to include attachment content in the
1925
+ * response. Note that when used with a view-style query or changes feed this only applies when requesting documents
1926
+ * in the response.
1889
1927
  * @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
1890
- * in attachment stubs if the particular attachment is compressed.
1928
+ * for compressed attachments. Note that when used with a view-style query or changes feed this only applies when
1929
+ * requesting documents in the response.
1891
1930
  * @param {boolean} [params.conflicts] - Query parameter to specify whether to include a list of conflicted revisions
1892
- * in each returned document. Active only when `include_docs` is `true`.
1931
+ * in each returned document. Note that when used with a view-style query or changes feed this only applies when
1932
+ * requesting documents in the response.
1893
1933
  * @param {boolean} [params.deletedConflicts] - Query parameter to specify whether to include a list of deleted
1894
1934
  * conflicted revisions in the `_deleted_conflicts` property of the returned document.
1895
1935
  * @param {boolean} [params.latest] - Query parameter to specify whether to force retrieving latest leaf revision, no
@@ -1958,7 +1998,7 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
1958
1998
  *
1959
1999
  * For creation, you must specify the document ID but you should not specify the revision.
1960
2000
  *
1961
- * For modification, you must specify the document ID and a revision identifier.
2001
+ * For modification, you must specify the document ID and a revision identifier.
1962
2002
  *
1963
2003
  * @param {Object} params - The parameters to send to the service.
1964
2004
  * @param {string} params.db - Path parameter to specify the database name.
@@ -2133,12 +2173,15 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
2133
2173
  * @param {string} params.ddoc - Path parameter to specify the design document name. The design document name is the
2134
2174
  * design document ID excluding the `_design/` prefix.
2135
2175
  * @param {string} [params.ifNoneMatch] - Header parameter for a conditional HTTP request not matching an ETag.
2136
- * @param {boolean} [params.attachments] - Query parameter to specify whether to include attachments bodies in a
2137
- * response.
2176
+ * @param {boolean} [params.attachments] - Query parameter to specify whether to include attachment content in the
2177
+ * response. Note that when used with a view-style query or changes feed this only applies when requesting documents
2178
+ * in the response.
2138
2179
  * @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
2139
- * in attachment stubs if the particular attachment is compressed.
2180
+ * for compressed attachments. Note that when used with a view-style query or changes feed this only applies when
2181
+ * requesting documents in the response.
2140
2182
  * @param {boolean} [params.conflicts] - Query parameter to specify whether to include a list of conflicted revisions
2141
- * in each returned document. Active only when `include_docs` is `true`.
2183
+ * in each returned document. Note that when used with a view-style query or changes feed this only applies when
2184
+ * requesting documents in the response.
2142
2185
  * @param {boolean} [params.deletedConflicts] - Query parameter to specify whether to include a list of deleted
2143
2186
  * conflicted revisions in the `_deleted_conflicts` property of the returned document.
2144
2187
  * @param {boolean} [params.latest] - Query parameter to specify whether to force retrieving latest leaf revision, no
@@ -2315,17 +2358,18 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
2315
2358
  *
2316
2359
  * @param {Object} params - The parameters to send to the service.
2317
2360
  * @param {string} params.db - Path parameter to specify the database name.
2318
- * @param {boolean} [params.attEncodingInfo] - Parameter to specify whether to include the encoding information in
2319
- * attachment stubs if the particular attachment is compressed.
2320
- * @param {boolean} [params.attachments] - Parameter to specify whether to include attachments bodies in a response.
2361
+ * @param {boolean} [params.attEncodingInfo] - Parameter to specify whether to include the encoding information for
2362
+ * compressed attachments. This only applies when requesting documents in the response.
2363
+ * @param {boolean} [params.attachments] - Parameter to specify whether to include attachment content in included
2364
+ * document content or only the attachment metadata. This only applies when requesting documents in the response.
2321
2365
  * @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in
2322
- * each returned document. Active only when `include_docs` is `true`.
2366
+ * each returned document. This only applies when requesting documents in the response.
2323
2367
  * @param {boolean} [params.descending] - Parameter to specify whether to return the documents in descending by key
2324
2368
  * order.
2325
2369
  * @param {boolean} [params.includeDocs] - Parameter to specify whether to include the full content of the documents
2326
2370
  * in the response.
2327
- * @param {boolean} [params.inclusiveEnd] - Parameter to specify whether the specified end key should be included in
2328
- * the result.
2371
+ * @param {boolean} [params.inclusiveEnd] - Parameter to specify whether to include the specified end key in the
2372
+ * result.
2329
2373
  * @param {number} [params.limit] - Parameter to specify the number of returned documents to limit the result to.
2330
2374
  * @param {number} [params.skip] - Parameter to specify the number of records before starting to return the results.
2331
2375
  * @param {boolean} [params.updateSeq] - Parameter to specify whether to include in the response an update_seq value
@@ -2448,23 +2492,25 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
2448
2492
  * @param {string} params.ddoc - Path parameter to specify the design document name. The design document name is the
2449
2493
  * design document ID excluding the `_design/` prefix.
2450
2494
  * @param {string} params.view - Path parameter to specify the map reduce view function name.
2451
- * @param {boolean} [params.attEncodingInfo] - Parameter to specify whether to include the encoding information in
2452
- * attachment stubs if the particular attachment is compressed.
2453
- * @param {boolean} [params.attachments] - Parameter to specify whether to include attachments bodies in a response.
2495
+ * @param {boolean} [params.attEncodingInfo] - Parameter to specify whether to include the encoding information for
2496
+ * compressed attachments. This only applies when requesting documents in the response.
2497
+ * @param {boolean} [params.attachments] - Parameter to specify whether to include attachment content in included
2498
+ * document content or only the attachment metadata. This only applies when requesting documents in the response.
2454
2499
  * @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in
2455
- * each returned document. Active only when `include_docs` is `true`.
2500
+ * each returned document. This only applies when requesting documents in the response.
2456
2501
  * @param {boolean} [params.descending] - Parameter to specify whether to return the documents in descending by key
2457
2502
  * order.
2458
2503
  * @param {boolean} [params.includeDocs] - Parameter to specify whether to include the full content of the documents
2459
2504
  * in the response.
2460
- * @param {boolean} [params.inclusiveEnd] - Parameter to specify whether the specified end key should be included in
2461
- * the result.
2505
+ * @param {boolean} [params.inclusiveEnd] - Parameter to specify whether to include the specified end key in the
2506
+ * result.
2462
2507
  * @param {number} [params.limit] - Parameter to specify the number of returned documents to limit the result to.
2463
2508
  * @param {number} [params.skip] - Parameter to specify the number of records before starting to return the results.
2464
2509
  * @param {boolean} [params.updateSeq] - Parameter to specify whether to include in the response an update_seq value
2465
2510
  * indicating the sequence id of the database the view reflects.
2466
2511
  * @param {any} [params.endKey] - Schema for any JSON type.
2467
- * @param {string} [params.endKeyDocId] - Schema for a document ID.
2512
+ * @param {string} [params.endKeyDocId] - Stop returning rows at the specified document ID. No effect if using `group`
2513
+ * or not providing end key.
2468
2514
  * @param {boolean} [params.group] - Parameter to specify whether to group reduced results by key. Valid only if a
2469
2515
  * reduce function defined in the view. If the view emits key in JSON array format, then it is possible to reduce
2470
2516
  * groups further based on the number of array elements with the `group_level` parameter.
@@ -2472,24 +2518,27 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
2472
2518
  * uses keys that are JSON arrays. Implies group is `true`. Group level groups the reduced results by the specified
2473
2519
  * number of array elements. If unset, results are grouped by the entire array key, returning a reduced value for each
2474
2520
  * complete key.
2475
- * @param {any} [params.key] - Schema for any JSON type.
2476
- * @param {any[]} [params.keys] - Parameter to specify returning only documents that match any of the specified keys.
2477
- * A JSON array of keys that match the key type emitted by the view function.
2521
+ * @param {any} [params.key] - Parameter to specify to return only rows that match the specified key. String
2522
+ * representation of any JSON type that matches the key type emitted by the view function.
2523
+ * @param {any[]} [params.keys] - Parameter to specify returning only rows that match any of the specified keys. A
2524
+ * JSON array of keys that match the key type emitted by the view function.
2478
2525
  * @param {boolean} [params.reduce] - Parameter to specify whether to use the reduce function in a map-reduce view.
2479
2526
  * Default is true when a reduce function is defined.
2480
2527
  *
2481
- * A default `reduce` view type can be disabled to behave like a `map` by setting `reduce=false` explicitly.
2528
+ * A default `reduce` view type can be disabled to behave like a
2529
+ * `map` by setting `reduce=false` explicitly.
2482
2530
  *
2483
- * Be aware that `include_docs=true` can only be used with `map` views.
2484
- * @param {boolean} [params.stable] - Query parameter to specify whether use the same replica of the index on each
2485
- * request. The default value `false` contacts all replicas and returns the result from the first, fastest,
2486
- * responder. Setting it to `true` when used in conjunction with `update=false` may improve consistency at the
2487
- * expense of increased latency and decreased throughput if the selected replica is not the fastest of the available
2488
- * replicas.
2531
+ * Be aware that `include_docs=true` is only for `map` views. Reduced views do not include document IDs in view rows.
2532
+ * @param {boolean} [params.stable] - Query parameter to specify whether use the same replica of the index on each
2533
+ * request. The default value `false` contacts all replicas and returns the result from the first, fastest, responder.
2534
+ * Setting it to `true` when used in conjunction with
2535
+ * `update=false` may improve consistency at the expense of increased latency and decreased throughput if the selected
2536
+ * replica is not the fastest of the available replicas.
2489
2537
  *
2490
2538
  * **Note:** In general setting `true` is discouraged and is strictly not recommended when using `update=true`.
2491
2539
  * @param {any} [params.startKey] - Schema for any JSON type.
2492
- * @param {string} [params.startKeyDocId] - Schema for a document ID.
2540
+ * @param {string} [params.startKeyDocId] - Start returning rows at the specified document ID. No effect if using
2541
+ * `group` or not providing start key.
2493
2542
  * @param {string} [params.update] - Parameter to specify whether or not the view in question should be updated prior
2494
2543
  * to responding to the user.
2495
2544
  *
@@ -2567,23 +2616,25 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
2567
2616
  * @param {string} params.ddoc - Path parameter to specify the design document name. The design document name is the
2568
2617
  * design document ID excluding the `_design/` prefix.
2569
2618
  * @param {string} params.view - Path parameter to specify the map reduce view function name.
2570
- * @param {boolean} [params.attEncodingInfo] - Parameter to specify whether to include the encoding information in
2571
- * attachment stubs if the particular attachment is compressed.
2572
- * @param {boolean} [params.attachments] - Parameter to specify whether to include attachments bodies in a response.
2619
+ * @param {boolean} [params.attEncodingInfo] - Parameter to specify whether to include the encoding information for
2620
+ * compressed attachments. This only applies when requesting documents in the response.
2621
+ * @param {boolean} [params.attachments] - Parameter to specify whether to include attachment content in included
2622
+ * document content or only the attachment metadata. This only applies when requesting documents in the response.
2573
2623
  * @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in
2574
- * each returned document. Active only when `include_docs` is `true`.
2624
+ * each returned document. This only applies when requesting documents in the response.
2575
2625
  * @param {boolean} [params.descending] - Parameter to specify whether to return the documents in descending by key
2576
2626
  * order.
2577
2627
  * @param {boolean} [params.includeDocs] - Parameter to specify whether to include the full content of the documents
2578
2628
  * in the response.
2579
- * @param {boolean} [params.inclusiveEnd] - Parameter to specify whether the specified end key should be included in
2580
- * the result.
2629
+ * @param {boolean} [params.inclusiveEnd] - Parameter to specify whether to include the specified end key in the
2630
+ * result.
2581
2631
  * @param {number} [params.limit] - Parameter to specify the number of returned documents to limit the result to.
2582
2632
  * @param {number} [params.skip] - Parameter to specify the number of records before starting to return the results.
2583
2633
  * @param {boolean} [params.updateSeq] - Parameter to specify whether to include in the response an update_seq value
2584
2634
  * indicating the sequence id of the database the view reflects.
2585
2635
  * @param {any} [params.endKey] - Schema for any JSON type.
2586
- * @param {string} [params.endKeyDocId] - Schema for a document ID.
2636
+ * @param {string} [params.endKeyDocId] - Stop returning rows at the specified document ID. No effect if using `group`
2637
+ * or not providing end key.
2587
2638
  * @param {boolean} [params.group] - Parameter to specify whether to group reduced results by key. Valid only if a
2588
2639
  * reduce function defined in the view. If the view emits key in JSON array format, then it is possible to reduce
2589
2640
  * groups further based on the number of array elements with the `group_level` parameter.
@@ -2591,24 +2642,27 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
2591
2642
  * uses keys that are JSON arrays. Implies group is `true`. Group level groups the reduced results by the specified
2592
2643
  * number of array elements. If unset, results are grouped by the entire array key, returning a reduced value for each
2593
2644
  * complete key.
2594
- * @param {any} [params.key] - Schema for any JSON type.
2595
- * @param {any[]} [params.keys] - Parameter to specify returning only documents that match any of the specified keys.
2596
- * A JSON array of keys that match the key type emitted by the view function.
2645
+ * @param {any} [params.key] - Parameter to specify to return only rows that match the specified key. String
2646
+ * representation of any JSON type that matches the key type emitted by the view function.
2647
+ * @param {any[]} [params.keys] - Parameter to specify returning only rows that match any of the specified keys. A
2648
+ * JSON array of keys that match the key type emitted by the view function.
2597
2649
  * @param {boolean} [params.reduce] - Parameter to specify whether to use the reduce function in a map-reduce view.
2598
2650
  * Default is true when a reduce function is defined.
2599
2651
  *
2600
- * A default `reduce` view type can be disabled to behave like a `map` by setting `reduce=false` explicitly.
2652
+ * A default `reduce` view type can be disabled to behave like a
2653
+ * `map` by setting `reduce=false` explicitly.
2601
2654
  *
2602
- * Be aware that `include_docs=true` can only be used with `map` views.
2603
- * @param {boolean} [params.stable] - Query parameter to specify whether use the same replica of the index on each
2604
- * request. The default value `false` contacts all replicas and returns the result from the first, fastest,
2605
- * responder. Setting it to `true` when used in conjunction with `update=false` may improve consistency at the
2606
- * expense of increased latency and decreased throughput if the selected replica is not the fastest of the available
2607
- * replicas.
2655
+ * Be aware that `include_docs=true` is only for `map` views. Reduced views do not include document IDs in view rows.
2656
+ * @param {boolean} [params.stable] - Query parameter to specify whether use the same replica of the index on each
2657
+ * request. The default value `false` contacts all replicas and returns the result from the first, fastest, responder.
2658
+ * Setting it to `true` when used in conjunction with
2659
+ * `update=false` may improve consistency at the expense of increased latency and decreased throughput if the selected
2660
+ * replica is not the fastest of the available replicas.
2608
2661
  *
2609
2662
  * **Note:** In general setting `true` is discouraged and is strictly not recommended when using `update=true`.
2610
2663
  * @param {any} [params.startKey] - Schema for any JSON type.
2611
- * @param {string} [params.startKeyDocId] - Schema for a document ID.
2664
+ * @param {string} [params.startKeyDocId] - Start returning rows at the specified document ID. No effect if using
2665
+ * `group` or not providing start key.
2612
2666
  * @param {string} [params.update] - Parameter to specify whether or not the view in question should be updated prior
2613
2667
  * to responding to the user.
2614
2668
  *
@@ -2834,17 +2888,18 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
2834
2888
  * @param {Object} params - The parameters to send to the service.
2835
2889
  * @param {string} params.db - Path parameter to specify the database name.
2836
2890
  * @param {string} params.partitionKey - Path parameter to specify the database partition key.
2837
- * @param {boolean} [params.attEncodingInfo] - Parameter to specify whether to include the encoding information in
2838
- * attachment stubs if the particular attachment is compressed.
2839
- * @param {boolean} [params.attachments] - Parameter to specify whether to include attachments bodies in a response.
2891
+ * @param {boolean} [params.attEncodingInfo] - Parameter to specify whether to include the encoding information for
2892
+ * compressed attachments. This only applies when requesting documents in the response.
2893
+ * @param {boolean} [params.attachments] - Parameter to specify whether to include attachment content in included
2894
+ * document content or only the attachment metadata. This only applies when requesting documents in the response.
2840
2895
  * @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in
2841
- * each returned document. Active only when `include_docs` is `true`.
2896
+ * each returned document. This only applies when requesting documents in the response.
2842
2897
  * @param {boolean} [params.descending] - Parameter to specify whether to return the documents in descending by key
2843
2898
  * order.
2844
2899
  * @param {boolean} [params.includeDocs] - Parameter to specify whether to include the full content of the documents
2845
2900
  * in the response.
2846
- * @param {boolean} [params.inclusiveEnd] - Parameter to specify whether the specified end key should be included in
2847
- * the result.
2901
+ * @param {boolean} [params.inclusiveEnd] - Parameter to specify whether to include the specified end key in the
2902
+ * result.
2848
2903
  * @param {number} [params.limit] - Parameter to specify the number of returned documents to limit the result to.
2849
2904
  * @param {number} [params.skip] - Parameter to specify the number of records before starting to return the results.
2850
2905
  * @param {boolean} [params.updateSeq] - Parameter to specify whether to include in the response an update_seq value
@@ -2914,17 +2969,18 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
2914
2969
  * @param {Object} params - The parameters to send to the service.
2915
2970
  * @param {string} params.db - Path parameter to specify the database name.
2916
2971
  * @param {string} params.partitionKey - Path parameter to specify the database partition key.
2917
- * @param {boolean} [params.attEncodingInfo] - Parameter to specify whether to include the encoding information in
2918
- * attachment stubs if the particular attachment is compressed.
2919
- * @param {boolean} [params.attachments] - Parameter to specify whether to include attachments bodies in a response.
2972
+ * @param {boolean} [params.attEncodingInfo] - Parameter to specify whether to include the encoding information for
2973
+ * compressed attachments. This only applies when requesting documents in the response.
2974
+ * @param {boolean} [params.attachments] - Parameter to specify whether to include attachment content in included
2975
+ * document content or only the attachment metadata. This only applies when requesting documents in the response.
2920
2976
  * @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in
2921
- * each returned document. Active only when `include_docs` is `true`.
2977
+ * each returned document. This only applies when requesting documents in the response.
2922
2978
  * @param {boolean} [params.descending] - Parameter to specify whether to return the documents in descending by key
2923
2979
  * order.
2924
2980
  * @param {boolean} [params.includeDocs] - Parameter to specify whether to include the full content of the documents
2925
2981
  * in the response.
2926
- * @param {boolean} [params.inclusiveEnd] - Parameter to specify whether the specified end key should be included in
2927
- * the result.
2982
+ * @param {boolean} [params.inclusiveEnd] - Parameter to specify whether to include the specified end key in the
2983
+ * result.
2928
2984
  * @param {number} [params.limit] - Parameter to specify the number of returned documents to limit the result to.
2929
2985
  * @param {number} [params.skip] - Parameter to specify the number of records before starting to return the results.
2930
2986
  * @param {boolean} [params.updateSeq] - Parameter to specify whether to include in the response an update_seq value
@@ -3017,7 +3073,7 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
3017
3073
  * that are included must be indexed with the store:true option. The default is all fields.
3018
3074
  * @param {number} [params.limit] - Limit the number of the returned documents to the specified number.
3019
3075
  * @param {string[]} [params.sort] - Specifies the sort order of the results. In a grouped search (when group_field is
3020
- * used), this parameter specifies the sort order within a group. The default sort order is relevance. A JSON string
3076
+ * used), this parameter specifies the sort order within a group. The default sort order is relevance. A JSON string
3021
3077
  * of the form "fieldname&lt;type&gt;" or "-fieldname&lt;type&gt;" for descending order, where fieldname is the name
3022
3078
  * of a string or number field, and type is either a number, a string, or a JSON array of strings. The type part is
3023
3079
  * optional, and defaults to number. Some examples are "foo", "-foo", "bar&lt;string&gt;", "-foo&lt;number&gt;" and
@@ -3108,7 +3164,7 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
3108
3164
  * that are included must be indexed with the store:true option. The default is all fields.
3109
3165
  * @param {number} [params.limit] - Limit the number of the returned documents to the specified number.
3110
3166
  * @param {string[]} [params.sort] - Specifies the sort order of the results. In a grouped search (when group_field is
3111
- * used), this parameter specifies the sort order within a group. The default sort order is relevance. A JSON string
3167
+ * used), this parameter specifies the sort order within a group. The default sort order is relevance. A JSON string
3112
3168
  * of the form "fieldname&lt;type&gt;" or "-fieldname&lt;type&gt;" for descending order, where fieldname is the name
3113
3169
  * of a string or number field, and type is either a number, a string, or a JSON array of strings. The type part is
3114
3170
  * optional, and defaults to number. Some examples are "foo", "-foo", "bar&lt;string&gt;", "-foo&lt;number&gt;" and
@@ -3185,23 +3241,25 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
3185
3241
  * @param {string} params.ddoc - Path parameter to specify the design document name. The design document name is the
3186
3242
  * design document ID excluding the `_design/` prefix.
3187
3243
  * @param {string} params.view - Path parameter to specify the map reduce view function name.
3188
- * @param {boolean} [params.attEncodingInfo] - Parameter to specify whether to include the encoding information in
3189
- * attachment stubs if the particular attachment is compressed.
3190
- * @param {boolean} [params.attachments] - Parameter to specify whether to include attachments bodies in a response.
3244
+ * @param {boolean} [params.attEncodingInfo] - Parameter to specify whether to include the encoding information for
3245
+ * compressed attachments. This only applies when requesting documents in the response.
3246
+ * @param {boolean} [params.attachments] - Parameter to specify whether to include attachment content in included
3247
+ * document content or only the attachment metadata. This only applies when requesting documents in the response.
3191
3248
  * @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in
3192
- * each returned document. Active only when `include_docs` is `true`.
3249
+ * each returned document. This only applies when requesting documents in the response.
3193
3250
  * @param {boolean} [params.descending] - Parameter to specify whether to return the documents in descending by key
3194
3251
  * order.
3195
3252
  * @param {boolean} [params.includeDocs] - Parameter to specify whether to include the full content of the documents
3196
3253
  * in the response.
3197
- * @param {boolean} [params.inclusiveEnd] - Parameter to specify whether the specified end key should be included in
3198
- * the result.
3254
+ * @param {boolean} [params.inclusiveEnd] - Parameter to specify whether to include the specified end key in the
3255
+ * result.
3199
3256
  * @param {number} [params.limit] - Parameter to specify the number of returned documents to limit the result to.
3200
3257
  * @param {number} [params.skip] - Parameter to specify the number of records before starting to return the results.
3201
3258
  * @param {boolean} [params.updateSeq] - Parameter to specify whether to include in the response an update_seq value
3202
3259
  * indicating the sequence id of the database the view reflects.
3203
3260
  * @param {any} [params.endKey] - Schema for any JSON type.
3204
- * @param {string} [params.endKeyDocId] - Schema for a document ID.
3261
+ * @param {string} [params.endKeyDocId] - Stop returning rows at the specified document ID. No effect if using `group`
3262
+ * or not providing end key.
3205
3263
  * @param {boolean} [params.group] - Parameter to specify whether to group reduced results by key. Valid only if a
3206
3264
  * reduce function defined in the view. If the view emits key in JSON array format, then it is possible to reduce
3207
3265
  * groups further based on the number of array elements with the `group_level` parameter.
@@ -3209,17 +3267,20 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
3209
3267
  * uses keys that are JSON arrays. Implies group is `true`. Group level groups the reduced results by the specified
3210
3268
  * number of array elements. If unset, results are grouped by the entire array key, returning a reduced value for each
3211
3269
  * complete key.
3212
- * @param {any} [params.key] - Schema for any JSON type.
3213
- * @param {any[]} [params.keys] - Parameter to specify returning only documents that match any of the specified keys.
3214
- * A JSON array of keys that match the key type emitted by the view function.
3270
+ * @param {any} [params.key] - Parameter to specify to return only rows that match the specified key. String
3271
+ * representation of any JSON type that matches the key type emitted by the view function.
3272
+ * @param {any[]} [params.keys] - Parameter to specify returning only rows that match any of the specified keys. A
3273
+ * JSON array of keys that match the key type emitted by the view function.
3215
3274
  * @param {boolean} [params.reduce] - Parameter to specify whether to use the reduce function in a map-reduce view.
3216
3275
  * Default is true when a reduce function is defined.
3217
3276
  *
3218
- * A default `reduce` view type can be disabled to behave like a `map` by setting `reduce=false` explicitly.
3277
+ * A default `reduce` view type can be disabled to behave like a
3278
+ * `map` by setting `reduce=false` explicitly.
3219
3279
  *
3220
- * Be aware that `include_docs=true` can only be used with `map` views.
3280
+ * Be aware that `include_docs=true` is only for `map` views. Reduced views do not include document IDs in view rows.
3221
3281
  * @param {any} [params.startKey] - Schema for any JSON type.
3222
- * @param {string} [params.startKeyDocId] - Schema for a document ID.
3282
+ * @param {string} [params.startKeyDocId] - Start returning rows at the specified document ID. No effect if using
3283
+ * `group` or not providing start key.
3223
3284
  * @param {string} [params.update] - Parameter to specify whether or not the view in question should be updated prior
3224
3285
  * to responding to the user.
3225
3286
  *
@@ -3302,23 +3363,25 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
3302
3363
  * @param {string} params.ddoc - Path parameter to specify the design document name. The design document name is the
3303
3364
  * design document ID excluding the `_design/` prefix.
3304
3365
  * @param {string} params.view - Path parameter to specify the map reduce view function name.
3305
- * @param {boolean} [params.attEncodingInfo] - Parameter to specify whether to include the encoding information in
3306
- * attachment stubs if the particular attachment is compressed.
3307
- * @param {boolean} [params.attachments] - Parameter to specify whether to include attachments bodies in a response.
3366
+ * @param {boolean} [params.attEncodingInfo] - Parameter to specify whether to include the encoding information for
3367
+ * compressed attachments. This only applies when requesting documents in the response.
3368
+ * @param {boolean} [params.attachments] - Parameter to specify whether to include attachment content in included
3369
+ * document content or only the attachment metadata. This only applies when requesting documents in the response.
3308
3370
  * @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in
3309
- * each returned document. Active only when `include_docs` is `true`.
3371
+ * each returned document. This only applies when requesting documents in the response.
3310
3372
  * @param {boolean} [params.descending] - Parameter to specify whether to return the documents in descending by key
3311
3373
  * order.
3312
3374
  * @param {boolean} [params.includeDocs] - Parameter to specify whether to include the full content of the documents
3313
3375
  * in the response.
3314
- * @param {boolean} [params.inclusiveEnd] - Parameter to specify whether the specified end key should be included in
3315
- * the result.
3376
+ * @param {boolean} [params.inclusiveEnd] - Parameter to specify whether to include the specified end key in the
3377
+ * result.
3316
3378
  * @param {number} [params.limit] - Parameter to specify the number of returned documents to limit the result to.
3317
3379
  * @param {number} [params.skip] - Parameter to specify the number of records before starting to return the results.
3318
3380
  * @param {boolean} [params.updateSeq] - Parameter to specify whether to include in the response an update_seq value
3319
3381
  * indicating the sequence id of the database the view reflects.
3320
3382
  * @param {any} [params.endKey] - Schema for any JSON type.
3321
- * @param {string} [params.endKeyDocId] - Schema for a document ID.
3383
+ * @param {string} [params.endKeyDocId] - Stop returning rows at the specified document ID. No effect if using `group`
3384
+ * or not providing end key.
3322
3385
  * @param {boolean} [params.group] - Parameter to specify whether to group reduced results by key. Valid only if a
3323
3386
  * reduce function defined in the view. If the view emits key in JSON array format, then it is possible to reduce
3324
3387
  * groups further based on the number of array elements with the `group_level` parameter.
@@ -3326,17 +3389,20 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
3326
3389
  * uses keys that are JSON arrays. Implies group is `true`. Group level groups the reduced results by the specified
3327
3390
  * number of array elements. If unset, results are grouped by the entire array key, returning a reduced value for each
3328
3391
  * complete key.
3329
- * @param {any} [params.key] - Schema for any JSON type.
3330
- * @param {any[]} [params.keys] - Parameter to specify returning only documents that match any of the specified keys.
3331
- * A JSON array of keys that match the key type emitted by the view function.
3392
+ * @param {any} [params.key] - Parameter to specify to return only rows that match the specified key. String
3393
+ * representation of any JSON type that matches the key type emitted by the view function.
3394
+ * @param {any[]} [params.keys] - Parameter to specify returning only rows that match any of the specified keys. A
3395
+ * JSON array of keys that match the key type emitted by the view function.
3332
3396
  * @param {boolean} [params.reduce] - Parameter to specify whether to use the reduce function in a map-reduce view.
3333
3397
  * Default is true when a reduce function is defined.
3334
3398
  *
3335
- * A default `reduce` view type can be disabled to behave like a `map` by setting `reduce=false` explicitly.
3399
+ * A default `reduce` view type can be disabled to behave like a
3400
+ * `map` by setting `reduce=false` explicitly.
3336
3401
  *
3337
- * Be aware that `include_docs=true` can only be used with `map` views.
3402
+ * Be aware that `include_docs=true` is only for `map` views. Reduced views do not include document IDs in view rows.
3338
3403
  * @param {any} [params.startKey] - Schema for any JSON type.
3339
- * @param {string} [params.startKeyDocId] - Schema for a document ID.
3404
+ * @param {string} [params.startKeyDocId] - Start returning rows at the specified document ID. No effect if using
3405
+ * `group` or not providing start key.
3340
3406
  * @param {string} [params.update] - Parameter to specify whether or not the view in question should be updated prior
3341
3407
  * to responding to the user.
3342
3408
  *
@@ -3434,8 +3500,8 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
3434
3500
  * argument.
3435
3501
  *
3436
3502
  * It is important for query performance to use appropriate selectors:
3437
- * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the basis
3438
- * of a query. You should include at least one of these in a selector.
3503
+ * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
3504
+ * `$lte` (but not `$ne`) can be used as the basis of a query. You should include at least one of these in a selector.
3439
3505
  * * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query selectors
3440
3506
  * use these operators in conjunction with equality operators or create and use a partial index to reduce the number
3441
3507
  * of documents that will need to be scanned.
@@ -3444,7 +3510,7 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
3444
3510
  * combination and conditional operators.
3445
3511
  *
3446
3512
  * For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
3447
- * @param {boolean} [params.allowFallback] - Whether to allow fallback to other indexes. Default is true.
3513
+ * @param {boolean} [params.allowFallback] - Whether to allow fallback to other indexes. Default is true.
3448
3514
  * @param {string} [params.bookmark] - Opaque bookmark token used when paginating results.
3449
3515
  * @param {boolean} [params.conflicts] - A boolean value that indicates whether or not to include information about
3450
3516
  * existing conflicts in the document.
@@ -3461,7 +3527,8 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
3461
3527
  * provided, is the next level of sort. The field can be any field, using dotted notation if desired for sub-document
3462
3528
  * fields.
3463
3529
  *
3464
- * For example in JSON: `[{"fieldName1": "desc"}, {"fieldName2.subFieldName1": "desc"}]`
3530
+ * For example in JSON:
3531
+ * `[{"fieldName1": "desc"}, {"fieldName2.subFieldName1": "desc"}]`
3465
3532
  *
3466
3533
  * When sorting with multiple fields, ensure that there is an index already defined with all the sort fields in the
3467
3534
  * same order and each object in the sort array has a single key or at least one of the sort fields is included in the
@@ -3572,8 +3639,8 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
3572
3639
  * argument.
3573
3640
  *
3574
3641
  * It is important for query performance to use appropriate selectors:
3575
- * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the basis
3576
- * of a query. You should include at least one of these in a selector.
3642
+ * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
3643
+ * `$lte` (but not `$ne`) can be used as the basis of a query. You should include at least one of these in a selector.
3577
3644
  * * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query selectors
3578
3645
  * use these operators in conjunction with equality operators or create and use a partial index to reduce the number
3579
3646
  * of documents that will need to be scanned.
@@ -3582,7 +3649,7 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
3582
3649
  * combination and conditional operators.
3583
3650
  *
3584
3651
  * For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
3585
- * @param {boolean} [params.allowFallback] - Whether to allow fallback to other indexes. Default is true.
3652
+ * @param {boolean} [params.allowFallback] - Whether to allow fallback to other indexes. Default is true.
3586
3653
  * @param {string} [params.bookmark] - Opaque bookmark token used when paginating results.
3587
3654
  * @param {boolean} [params.conflicts] - A boolean value that indicates whether or not to include information about
3588
3655
  * existing conflicts in the document.
@@ -3599,7 +3666,8 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
3599
3666
  * provided, is the next level of sort. The field can be any field, using dotted notation if desired for sub-document
3600
3667
  * fields.
3601
3668
  *
3602
- * For example in JSON: `[{"fieldName1": "desc"}, {"fieldName2.subFieldName1": "desc"}]`
3669
+ * For example in JSON:
3670
+ * `[{"fieldName1": "desc"}, {"fieldName2.subFieldName1": "desc"}]`
3603
3671
  *
3604
3672
  * When sorting with multiple fields, ensure that there is an index already defined with all the sort fields in the
3605
3673
  * same order and each object in the sort array has a single key or at least one of the sort fields is included in the
@@ -3710,8 +3778,8 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
3710
3778
  * argument.
3711
3779
  *
3712
3780
  * It is important for query performance to use appropriate selectors:
3713
- * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the basis
3714
- * of a query. You should include at least one of these in a selector.
3781
+ * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
3782
+ * `$lte` (but not `$ne`) can be used as the basis of a query. You should include at least one of these in a selector.
3715
3783
  * * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query selectors
3716
3784
  * use these operators in conjunction with equality operators or create and use a partial index to reduce the number
3717
3785
  * of documents that will need to be scanned.
@@ -3720,7 +3788,7 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
3720
3788
  * combination and conditional operators.
3721
3789
  *
3722
3790
  * For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
3723
- * @param {boolean} [params.allowFallback] - Whether to allow fallback to other indexes. Default is true.
3791
+ * @param {boolean} [params.allowFallback] - Whether to allow fallback to other indexes. Default is true.
3724
3792
  * @param {string} [params.bookmark] - Opaque bookmark token used when paginating results.
3725
3793
  * @param {boolean} [params.conflicts] - A boolean value that indicates whether or not to include information about
3726
3794
  * existing conflicts in the document.
@@ -3737,7 +3805,8 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
3737
3805
  * provided, is the next level of sort. The field can be any field, using dotted notation if desired for sub-document
3738
3806
  * fields.
3739
3807
  *
3740
- * For example in JSON: `[{"fieldName1": "desc"}, {"fieldName2.subFieldName1": "desc"}]`
3808
+ * For example in JSON:
3809
+ * `[{"fieldName1": "desc"}, {"fieldName2.subFieldName1": "desc"}]`
3741
3810
  *
3742
3811
  * When sorting with multiple fields, ensure that there is an index already defined with all the sort fields in the
3743
3812
  * same order and each object in the sort array has a single key or at least one of the sort fields is included in the
@@ -3838,8 +3907,8 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
3838
3907
  * argument.
3839
3908
  *
3840
3909
  * It is important for query performance to use appropriate selectors:
3841
- * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the basis
3842
- * of a query. You should include at least one of these in a selector.
3910
+ * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
3911
+ * `$lte` (but not `$ne`) can be used as the basis of a query. You should include at least one of these in a selector.
3843
3912
  * * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query selectors
3844
3913
  * use these operators in conjunction with equality operators or create and use a partial index to reduce the number
3845
3914
  * of documents that will need to be scanned.
@@ -3848,7 +3917,7 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
3848
3917
  * combination and conditional operators.
3849
3918
  *
3850
3919
  * For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
3851
- * @param {boolean} [params.allowFallback] - Whether to allow fallback to other indexes. Default is true.
3920
+ * @param {boolean} [params.allowFallback] - Whether to allow fallback to other indexes. Default is true.
3852
3921
  * @param {string} [params.bookmark] - Opaque bookmark token used when paginating results.
3853
3922
  * @param {boolean} [params.conflicts] - A boolean value that indicates whether or not to include information about
3854
3923
  * existing conflicts in the document.
@@ -3865,7 +3934,8 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
3865
3934
  * provided, is the next level of sort. The field can be any field, using dotted notation if desired for sub-document
3866
3935
  * fields.
3867
3936
  *
3868
- * For example in JSON: `[{"fieldName1": "desc"}, {"fieldName2.subFieldName1": "desc"}]`
3937
+ * For example in JSON:
3938
+ * `[{"fieldName1": "desc"}, {"fieldName2.subFieldName1": "desc"}]`
3869
3939
  *
3870
3940
  * When sorting with multiple fields, ensure that there is an index already defined with all the sort fields in the
3871
3941
  * same order and each object in the sort array has a single key or at least one of the sort fields is included in the
@@ -3975,8 +4045,8 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
3975
4045
  * argument.
3976
4046
  *
3977
4047
  * It is important for query performance to use appropriate selectors:
3978
- * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the basis
3979
- * of a query. You should include at least one of these in a selector.
4048
+ * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
4049
+ * `$lte` (but not `$ne`) can be used as the basis of a query. You should include at least one of these in a selector.
3980
4050
  * * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query selectors
3981
4051
  * use these operators in conjunction with equality operators or create and use a partial index to reduce the number
3982
4052
  * of documents that will need to be scanned.
@@ -3985,7 +4055,7 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
3985
4055
  * combination and conditional operators.
3986
4056
  *
3987
4057
  * For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
3988
- * @param {boolean} [params.allowFallback] - Whether to allow fallback to other indexes. Default is true.
4058
+ * @param {boolean} [params.allowFallback] - Whether to allow fallback to other indexes. Default is true.
3989
4059
  * @param {string} [params.bookmark] - Opaque bookmark token used when paginating results.
3990
4060
  * @param {boolean} [params.conflicts] - A boolean value that indicates whether or not to include information about
3991
4061
  * existing conflicts in the document.
@@ -4002,7 +4072,8 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
4002
4072
  * provided, is the next level of sort. The field can be any field, using dotted notation if desired for sub-document
4003
4073
  * fields.
4004
4074
  *
4005
- * For example in JSON: `[{"fieldName1": "desc"}, {"fieldName2.subFieldName1": "desc"}]`
4075
+ * For example in JSON:
4076
+ * `[{"fieldName1": "desc"}, {"fieldName2.subFieldName1": "desc"}]`
4006
4077
  *
4007
4078
  * When sorting with multiple fields, ensure that there is an index already defined with all the sort fields in the
4008
4079
  * same order and each object in the sort array has a single key or at least one of the sort fields is included in the
@@ -4112,8 +4183,8 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
4112
4183
  * argument.
4113
4184
  *
4114
4185
  * It is important for query performance to use appropriate selectors:
4115
- * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the basis
4116
- * of a query. You should include at least one of these in a selector.
4186
+ * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
4187
+ * `$lte` (but not `$ne`) can be used as the basis of a query. You should include at least one of these in a selector.
4117
4188
  * * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query selectors
4118
4189
  * use these operators in conjunction with equality operators or create and use a partial index to reduce the number
4119
4190
  * of documents that will need to be scanned.
@@ -4122,7 +4193,7 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
4122
4193
  * combination and conditional operators.
4123
4194
  *
4124
4195
  * For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
4125
- * @param {boolean} [params.allowFallback] - Whether to allow fallback to other indexes. Default is true.
4196
+ * @param {boolean} [params.allowFallback] - Whether to allow fallback to other indexes. Default is true.
4126
4197
  * @param {string} [params.bookmark] - Opaque bookmark token used when paginating results.
4127
4198
  * @param {boolean} [params.conflicts] - A boolean value that indicates whether or not to include information about
4128
4199
  * existing conflicts in the document.
@@ -4139,7 +4210,8 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
4139
4210
  * provided, is the next level of sort. The field can be any field, using dotted notation if desired for sub-document
4140
4211
  * fields.
4141
4212
  *
4142
- * For example in JSON: `[{"fieldName1": "desc"}, {"fieldName2.subFieldName1": "desc"}]`
4213
+ * For example in JSON:
4214
+ * `[{"fieldName1": "desc"}, {"fieldName2.subFieldName1": "desc"}]`
4143
4215
  *
4144
4216
  * When sorting with multiple fields, ensure that there is an index already defined with all the sort fields in the
4145
4217
  * same order and each object in the sort array has a single key or at least one of the sort fields is included in the
@@ -4432,7 +4504,7 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
4432
4504
  * that are included must be indexed with the store:true option. The default is all fields.
4433
4505
  * @param {number} [params.limit] - Limit the number of the returned documents to the specified number.
4434
4506
  * @param {string[]} [params.sort] - Specifies the sort order of the results. In a grouped search (when group_field is
4435
- * used), this parameter specifies the sort order within a group. The default sort order is relevance. A JSON string
4507
+ * used), this parameter specifies the sort order within a group. The default sort order is relevance. A JSON string
4436
4508
  * of the form "fieldname&lt;type&gt;" or "-fieldname&lt;type&gt;" for descending order, where fieldname is the name
4437
4509
  * of a string or number field, and type is either a number, a string, or a JSON array of strings. The type part is
4438
4510
  * optional, and defaults to number. Some examples are "foo", "-foo", "bar&lt;string&gt;", "-foo&lt;number&gt;" and
@@ -4545,7 +4617,7 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
4545
4617
  * that are included must be indexed with the store:true option. The default is all fields.
4546
4618
  * @param {number} [params.limit] - Limit the number of the returned documents to the specified number.
4547
4619
  * @param {string[]} [params.sort] - Specifies the sort order of the results. In a grouped search (when group_field is
4548
- * used), this parameter specifies the sort order within a group. The default sort order is relevance. A JSON string
4620
+ * used), this parameter specifies the sort order within a group. The default sort order is relevance. A JSON string
4549
4621
  * of the form "fieldname&lt;type&gt;" or "-fieldname&lt;type&gt;" for descending order, where fieldname is the name
4550
4622
  * of a string or number field, and type is either a number, a string, or a JSON array of strings. The type part is
4551
4623
  * optional, and defaults to number. Some examples are "foo", "-foo", "bar&lt;string&gt;", "-foo&lt;number&gt;" and
@@ -4945,12 +5017,15 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
4945
5017
  * @param {string} params.docId - Path parameter to specify the ID of the stored replication configuration in the
4946
5018
  * `_replicator` database.
4947
5019
  * @param {string} [params.ifNoneMatch] - Header parameter for a conditional HTTP request not matching an ETag.
4948
- * @param {boolean} [params.attachments] - Query parameter to specify whether to include attachments bodies in a
4949
- * response.
5020
+ * @param {boolean} [params.attachments] - Query parameter to specify whether to include attachment content in the
5021
+ * response. Note that when used with a view-style query or changes feed this only applies when requesting documents
5022
+ * in the response.
4950
5023
  * @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
4951
- * in attachment stubs if the particular attachment is compressed.
5024
+ * for compressed attachments. Note that when used with a view-style query or changes feed this only applies when
5025
+ * requesting documents in the response.
4952
5026
  * @param {boolean} [params.conflicts] - Query parameter to specify whether to include a list of conflicted revisions
4953
- * in each returned document. Active only when `include_docs` is `true`.
5027
+ * in each returned document. Note that when used with a view-style query or changes feed this only applies when
5028
+ * requesting documents in the response.
4954
5029
  * @param {boolean} [params.deletedConflicts] - Query parameter to specify whether to include a list of deleted
4955
5030
  * conflicted revisions in the `_deleted_conflicts` property of the returned document.
4956
5031
  * @param {boolean} [params.latest] - Query parameter to specify whether to force retrieving latest leaf revision, no
@@ -5900,10 +5975,12 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
5900
5975
  * @param {string} [params.accept] - The type of the response: application/json, multipart/mixed, multipart/related,
5901
5976
  * or application/octet-stream.
5902
5977
  * @param {string} [params.ifNoneMatch] - Header parameter for a conditional HTTP request not matching an ETag.
5903
- * @param {boolean} [params.attachments] - Query parameter to specify whether to include attachments bodies in a
5904
- * response.
5978
+ * @param {boolean} [params.attachments] - Query parameter to specify whether to include attachment content in the
5979
+ * response. Note that when used with a view-style query or changes feed this only applies when requesting documents
5980
+ * in the response.
5905
5981
  * @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
5906
- * in attachment stubs if the particular attachment is compressed.
5982
+ * for compressed attachments. Note that when used with a view-style query or changes feed this only applies when
5983
+ * requesting documents in the response.
5907
5984
  * @param {boolean} [params.localSeq] - Query parameter to specify whether to include the last update sequence for the
5908
5985
  * document.
5909
5986
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
@@ -6417,8 +6494,8 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
6417
6494
  /**
6418
6495
  * Retrieve information about whether the server is up.
6419
6496
  *
6420
- * Confirms that the server is up, running, and ready to respond to requests. If `maintenance_mode` is `true` or
6421
- * `nolb`, the endpoint returns a 404 response.
6497
+ * Confirms that the server is up, running, and ready to respond to requests. If the cluster is unavailable the
6498
+ * endpoint returns a `503` response code.
6422
6499
  *
6423
6500
  * **Tip:** The authentication for this endpoint is only enforced when using IAM.
6424
6501
  *
@@ -7383,21 +7460,23 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
7383
7460
  * Schema for an all documents query operation.
7384
7461
  */
7385
7462
  class AllDocsQuery {
7386
- /** Parameter to specify whether to include the encoding information in attachment stubs if the particular
7387
- * attachment is compressed.
7463
+ /** Parameter to specify whether to include the encoding information for compressed attachments. This only
7464
+ * applies when requesting documents in the response.
7388
7465
  */
7389
7466
  attEncodingInfo;
7390
- /** Parameter to specify whether to include attachments bodies in a response. */
7467
+ /** Parameter to specify whether to include attachment content in included document content or only the
7468
+ * attachment metadata. This only applies when requesting documents in the response.
7469
+ */
7391
7470
  attachments;
7392
- /** Parameter to specify whether to include a list of conflicted revisions in each returned document. Active
7393
- * only when `include_docs` is `true`.
7471
+ /** Parameter to specify whether to include a list of conflicted revisions in each returned document. This only
7472
+ * applies when requesting documents in the response.
7394
7473
  */
7395
7474
  conflicts;
7396
7475
  /** Parameter to specify whether to return the documents in descending by key order. */
7397
7476
  descending;
7398
7477
  /** Parameter to specify whether to include the full content of the documents in the response. */
7399
7478
  includeDocs;
7400
- /** Parameter to specify whether the specified end key should be included in the result. */
7479
+ /** Parameter to specify whether to include the specified end key in the result. */
7401
7480
  inclusiveEnd;
7402
7481
  /** Parameter to specify the number of returned documents to limit the result to. */
7403
7482
  limit;
@@ -7793,32 +7872,36 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
7793
7872
  class Attachment {
7794
7873
  /** Attachment MIME type. */
7795
7874
  contentType;
7796
- /** Base64-encoded content. Available if attachment content is requested by using the query parameters
7797
- * `attachments=true` or `atts_since`. Note that when used with a view or changes feed `include_docs` must also be
7798
- * `true`.
7875
+ /** Base64-encoded content. Available when requested with `attachments=true` or `atts_since`. When retrieving
7876
+ * attachments for a single document this field is only avialable when accepting an application/json response. For
7877
+ * multipart responses each attachment is instead included in a separate part of the response (see `follows`).
7878
+ *
7879
+ * Note that SDK deserialization of documents with included attachments automatically decodes the Base64 encoded
7880
+ * attachment content string to bytes.
7799
7881
  */
7800
7882
  data;
7801
- /** Content hash digest. It starts with prefix which announce hash type (e.g. `md5-`) and continues with
7802
- * Base64-encoded hash digest.
7883
+ /** Content hash digest. It starts with prefix declaring the hash type, `md5-` for example, and continues with
7884
+ * the Base64-encoded hash digest.
7803
7885
  */
7804
7886
  digest;
7805
- /** Compressed attachment size in bytes. Available if content_type was in list of compressible types when the
7806
- * attachment was added and the query parameter `att_encoding_info` is `true`. Note that when used with a view or
7807
- * changes feed `include_docs` must also be `true`.
7887
+ /** Compressed attachment size in bytes. Available for compressed attachments when requested with
7888
+ * `att_encoding_info`. The database compresses attachments if the content_type is in the list of compressible
7889
+ * types when added.
7808
7890
  */
7809
7891
  encodedLength;
7810
- /** Compression codec. Available if content_type was in list of compressible types when the attachment was added
7811
- * and the and the query parameter `att_encoding_info` is `true`. Note that when used with a view or changes feed
7812
- * `include_docs` must also be `true`.
7892
+ /** Compression codec. Available for compressed attachments when requested with `att_encoding_info`. The
7893
+ * database compresses attachments if the content_type is in the list of compressible types when added.
7813
7894
  */
7814
7895
  encoding;
7815
7896
  /** True if the attachment follows in a multipart request or response. */
7816
7897
  follows;
7817
7898
  /** Real attachment size in bytes. Not available if inline attachment content requested. */
7818
7899
  length;
7819
- /** Revision number when attachment was added. */
7900
+ /** Revision number at attachment addition. */
7820
7901
  revpos;
7821
- /** Has `true` value if object contains stub info and no content. Otherwise omitted in response. */
7902
+ /** Has `true` value if object has stub attachment metadata, but not attachment content. Otherwise omitted in
7903
+ * response.
7904
+ */
7822
7905
  stub;
7823
7906
  static serialize(obj) {
7824
7907
  if (obj === undefined || obj === null || typeof obj === 'string') {
@@ -8364,7 +8447,10 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
8364
8447
  class ContentInformationSizes {
8365
8448
  /** The active size of the content, in bytes. */
8366
8449
  active;
8367
- /** The total uncompressed size of the content, in bytes. */
8450
+ /** The total uncompressed size of the content, in bytes.
8451
+ *
8452
+ * This is the value used for IBM Cloudant storage billing.
8453
+ */
8368
8454
  external;
8369
8455
  /** The total size of the content as stored on disk, in bytes. */
8370
8456
  file;
@@ -8574,7 +8660,7 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
8574
8660
  /** The engine used for the database. */
8575
8661
  engine;
8576
8662
  /** An opaque string to detect whether a database has been recreated. The field name is for compatibility with
8577
- * old replicator versions. Do not use the value to infer timing infromation. Typically only used by replicators.
8663
+ * old replicator versions. Do not use the value to infer timing information. Typically only used by replicators.
8578
8664
  */
8579
8665
  instanceStartTime;
8580
8666
  /** Information about database's partitioned indexes. */
@@ -9036,11 +9122,13 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
9036
9122
  *
9037
9123
  * * `newDoc` - New version of document that will be stored
9038
9124
  * from the update request.
9039
- * * `oldDoc` - Previous version of document that is already stored.
9040
- * * `userCtx` - User Context Object, containing information about the
9041
- * user writing the document (if present), see the `UserContext`.
9042
- * * `secObj` - Security Object, with lists of database security roles,
9043
- * see the `SecurityObject`.
9125
+ * * `oldDoc` - Previous version of document that is already
9126
+ * stored.
9127
+ * * `userCtx` - User Context Object, containing information
9128
+ * about the user writing the document (if present), see the
9129
+ * `UserContext`.
9130
+ * * `secObj` - Security Object, with lists of database security
9131
+ * roles, see the `SecurityObject`.
9044
9132
  */
9045
9133
  validateDocUpdate;
9046
9134
  /** Schema for design document views. */
@@ -9243,7 +9331,14 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
9243
9331
  * Schema for design document options.
9244
9332
  */
9245
9333
  class DesignDocumentOptions {
9246
- /** Whether this design document describes partitioned or global indexes. */
9334
+ /** Whether this design document describes partitioned or global indexes. Set this option to `false` for a
9335
+ * design document that describes global indexes in a partitioned database. A design document describes either
9336
+ * global or partitioned indexes, but not both. By default, for a partitioned database this option is `true` and
9337
+ * the design document describes partitioned indexes for queries on a single partition at a time. When set to
9338
+ * `false` this option allows creating global indexes in this design document for queries spanning many partitions.
9339
+ * For non-partitioned databases, the default is `false` and design documents default to global. Only partitioned
9340
+ * databases can have partitioned indexes.
9341
+ */
9247
9342
  partitioned;
9248
9343
  static serialize(obj) {
9249
9344
  if (obj === undefined || obj === null || typeof obj === 'string') {
@@ -9912,8 +10007,9 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
9912
10007
  * supplied argument.
9913
10008
  *
9914
10009
  * It is important for query performance to use appropriate selectors:
9915
- * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the
9916
- * basis of a query. You should include at least one of these in a selector.
10010
+ * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
10011
+ * `$lte` (but not `$ne`) can be used as the basis of a query. You should include at least one of these in a
10012
+ * selector.
9917
10013
  * * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query
9918
10014
  * selectors use these operators in conjunction with equality operators or create and use a partial index to reduce
9919
10015
  * the number of documents that will need to be scanned.
@@ -10380,7 +10476,8 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
10380
10476
  * The full list of possible reason codes is following:
10381
10477
  *
10382
10478
  * * alphabetically_comes_after: json
10383
- * There is another suitable index whose name comes before that of this index.
10479
+ * There is another suitable index whose name comes before that of
10480
+ * this index.
10384
10481
  * * empty_selector: text
10385
10482
  * "text" indexes do not support queries with empty selectors.
10386
10483
  * * excluded_by_user: any use_index was used to manually specify the index.
@@ -10524,8 +10621,9 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
10524
10621
  * supplied argument.
10525
10622
  *
10526
10623
  * It is important for query performance to use appropriate selectors:
10527
- * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the
10528
- * basis of a query. You should include at least one of these in a selector.
10624
+ * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
10625
+ * `$lte` (but not `$ne`) can be used as the basis of a query. You should include at least one of these in a
10626
+ * selector.
10529
10627
  * * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query
10530
10628
  * selectors use these operators in conjunction with equality operators or create and use a partial index to reduce
10531
10629
  * the number of documents that will need to be scanned.
@@ -11452,8 +11550,9 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
11452
11550
  * supplied argument.
11453
11551
  *
11454
11552
  * It is important for query performance to use appropriate selectors:
11455
- * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the
11456
- * basis of a query. You should include at least one of these in a selector.
11553
+ * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
11554
+ * `$lte` (but not `$ne`) can be used as the basis of a query. You should include at least one of these in a
11555
+ * selector.
11457
11556
  * * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query
11458
11557
  * selectors use these operators in conjunction with equality operators or create and use a partial index to reduce
11459
11558
  * the number of documents that will need to be scanned.
@@ -12435,21 +12534,23 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
12435
12534
  * the document as a parameter, extracts some data from it, and then calls the `index` function to index that data.
12436
12535
  * The index function takes 2, or optionally 3, parameters.
12437
12536
  *
12438
- * * The first parameter is the name of the field you intend to use when
12439
- * querying the index. If the special value `"default"` is used when you
12440
- * define the name, you do not have to specify a field name at query time.
12441
- * * The second parameter is the data to be indexed. This data must be only a
12442
- * string, number, or boolean. Other types will cause an error to be thrown
12443
- * by the index function call.
12537
+ * * The first parameter is the name of the field you intend to use
12538
+ * when querying the index. If the special value `"default"` is used
12539
+ * when you define the name, you do not have to specify a field name
12540
+ * at query time.
12541
+ * * The second parameter is the data to be indexed. This data must be
12542
+ * only a string, number, or boolean. Other types will cause an error
12543
+ * to be thrown by the index function call.
12444
12544
  * * The optional third parameter is a JavaScript object with these
12445
12545
  * properties:
12446
12546
  *
12447
12547
  * * `facet` - boolean, default `false` - Creates a faceted index.
12448
- * * `index` - boolean, default `true` - If set to `false`, the data
12449
- * cannot be used for searches, but can still be retrieved from the
12450
- * index if `store` is set to `true`.
12451
- * * `store` - boolean, default `true` - If true, the value is returned
12452
- * in the search result; otherwise, the value is not returned.
12548
+ * * `index` - boolean, default `true` - If set to `false`, the
12549
+ * data cannot be used for searches, but can still be retrieved
12550
+ * from the index if `store` is set to `true`.
12551
+ * * `store` - boolean, default `true` - If true, the value is
12552
+ * returned in the search result; otherwise, the value is not
12553
+ * returned.
12453
12554
  */
12454
12555
  index;
12455
12556
  static serialize(obj) {
@@ -12819,7 +12920,7 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
12819
12920
  }
12820
12921
  CloudantV1.SearchResultRow = SearchResultRow;
12821
12922
  /**
12822
- * Schema for a security document.
12923
+ * Schema for a Cloudant security document.
12823
12924
  */
12824
12925
  class Security {
12825
12926
  /** Schema for names and roles to map to a database permission. */
@@ -13272,6 +13373,8 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
13272
13373
  * Schema for information about the up state of the server.
13273
13374
  */
13274
13375
  class UpInformation {
13376
+ /** cluster. */
13377
+ cluster;
13275
13378
  /** seeds. */
13276
13379
  seeds;
13277
13380
  /** status. */
@@ -13281,6 +13384,9 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
13281
13384
  return obj;
13282
13385
  }
13283
13386
  let copy = {};
13387
+ if (obj.cluster !== undefined) {
13388
+ copy.cluster = obj.cluster;
13389
+ }
13284
13390
  if (obj.seeds !== undefined) {
13285
13391
  copy.seeds = obj.seeds;
13286
13392
  }
@@ -13294,6 +13400,9 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
13294
13400
  return obj;
13295
13401
  }
13296
13402
  let copy = {};
13403
+ if (obj.cluster !== undefined) {
13404
+ copy.cluster = obj.cluster;
13405
+ }
13297
13406
  if (obj.seeds !== undefined) {
13298
13407
  copy.seeds = obj.seeds;
13299
13408
  }
@@ -13485,21 +13594,23 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
13485
13594
  * Schema for a query view operation.
13486
13595
  */
13487
13596
  class ViewQuery {
13488
- /** Parameter to specify whether to include the encoding information in attachment stubs if the particular
13489
- * attachment is compressed.
13597
+ /** Parameter to specify whether to include the encoding information for compressed attachments. This only
13598
+ * applies when requesting documents in the response.
13490
13599
  */
13491
13600
  attEncodingInfo;
13492
- /** Parameter to specify whether to include attachments bodies in a response. */
13601
+ /** Parameter to specify whether to include attachment content in included document content or only the
13602
+ * attachment metadata. This only applies when requesting documents in the response.
13603
+ */
13493
13604
  attachments;
13494
- /** Parameter to specify whether to include a list of conflicted revisions in each returned document. Active
13495
- * only when `include_docs` is `true`.
13605
+ /** Parameter to specify whether to include a list of conflicted revisions in each returned document. This only
13606
+ * applies when requesting documents in the response.
13496
13607
  */
13497
13608
  conflicts;
13498
13609
  /** Parameter to specify whether to return the documents in descending by key order. */
13499
13610
  descending;
13500
13611
  /** Parameter to specify whether to include the full content of the documents in the response. */
13501
13612
  includeDocs;
13502
- /** Parameter to specify whether the specified end key should be included in the result. */
13613
+ /** Parameter to specify whether to include the specified end key in the result. */
13503
13614
  inclusiveEnd;
13504
13615
  /** Parameter to specify the number of returned documents to limit the result to. */
13505
13616
  limit;
@@ -13511,7 +13622,7 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
13511
13622
  updateSeq;
13512
13623
  /** Schema for any JSON type. */
13513
13624
  endKey;
13514
- /** Schema for a document ID. */
13625
+ /** Stop returning rows at the specified document ID. No effect if using `group` or not providing end key. */
13515
13626
  endKeyDocId;
13516
13627
  /** Parameter to specify whether to group reduced results by key. Valid only if a reduce function defined in the
13517
13628
  * view. If the view emits key in JSON array format, then it is possible to reduce groups further based on the
@@ -13523,31 +13634,36 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
13523
13634
  * unset, results are grouped by the entire array key, returning a reduced value for each complete key.
13524
13635
  */
13525
13636
  groupLevel;
13526
- /** Schema for any JSON type. */
13637
+ /** Parameter to specify to return only rows that match the specified key. String representation of any JSON
13638
+ * type that matches the key type emitted by the view function.
13639
+ */
13527
13640
  key;
13528
- /** Parameter to specify returning only documents that match any of the specified keys. A JSON array of keys
13529
- * that match the key type emitted by the view function.
13641
+ /** Parameter to specify returning only rows that match any of the specified keys. A JSON array of keys that
13642
+ * match the key type emitted by the view function.
13530
13643
  */
13531
13644
  keys;
13532
13645
  /** Parameter to specify whether to use the reduce function in a map-reduce view. Default is true when a reduce
13533
13646
  * function is defined.
13534
13647
  *
13535
- * A default `reduce` view type can be disabled to behave like a `map` by setting `reduce=false` explicitly.
13648
+ * A default `reduce` view type can be disabled to behave like a
13649
+ * `map` by setting `reduce=false` explicitly.
13536
13650
  *
13537
- * Be aware that `include_docs=true` can only be used with `map` views.
13651
+ * Be aware that `include_docs=true` is only for `map` views. Reduced views do not include document IDs in view
13652
+ * rows.
13538
13653
  */
13539
13654
  reduce;
13540
- /** Query parameter to specify whether use the same replica of the index on each request. The default value
13541
- * `false` contacts all replicas and returns the result from the first, fastest, responder. Setting it to `true`
13542
- * when used in conjunction with `update=false` may improve consistency at the expense of increased latency and
13543
- * decreased throughput if the selected replica is not the fastest of the available replicas.
13655
+ /** Query parameter to specify whether use the same replica of the index on each request. The default value
13656
+ * `false` contacts all replicas and returns the result from the first, fastest, responder. Setting it to `true`
13657
+ * when used in conjunction with
13658
+ * `update=false` may improve consistency at the expense of increased latency and decreased throughput if the
13659
+ * selected replica is not the fastest of the available replicas.
13544
13660
  *
13545
13661
  * **Note:** In general setting `true` is discouraged and is strictly not recommended when using `update=true`.
13546
13662
  */
13547
13663
  stable;
13548
13664
  /** Schema for any JSON type. */
13549
13665
  startKey;
13550
- /** Schema for a document ID. */
13666
+ /** Start returning rows at the specified document ID. No effect if using `group` or not providing start key. */
13551
13667
  startKeyDocId;
13552
13668
  /** Parameter to specify whether or not the view in question should be updated prior to responding to the user.
13553
13669
  *