@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.d.ts CHANGED
@@ -117,20 +117,20 @@ declare class CloudantV1 extends CloudantBaseService {
117
117
  * and might repeat changes. Polling modes for this method work like polling modes for the changes feed.
118
118
  *
119
119
  * @param {Object} [params] - The parameters to send to the service.
120
- * @param {boolean} [params.descending] - Query parameter to specify whether to return the documents in descending by
121
- * key order.
120
+ * @param {boolean} [params.descending] - Query parameter to specify whether to return rows in descending by key
121
+ * order.
122
122
  * @param {string} [params.feed] - Query parameter to specify the changes feed type.
123
123
  * @param {number} [params.heartbeat] - Query parameter to specify the period in milliseconds after which an empty
124
- * line is sent in the results. Off by default and only applicable for
125
- * `continuous` and `eventsource` feeds. Overrides any timeout to keep the feed alive indefinitely. May also be `true`
126
- * to use a value of `60000`.
124
+ * line is sent in the results. Off by default and only applicable for `continuous` and `eventsource` feeds. Overrides
125
+ * any timeout to keep the feed alive indefinitely. May also be `true` to use a value of `60000`.
127
126
  *
128
127
  * **Note:** Delivery of heartbeats cannot be relied on at specific intervals. If your application runs in an
129
128
  * environment where idle network connections may break, `heartbeat` is not suitable as a keepalive mechanism.
130
129
  * Instead, consider one of the following options:
131
- * * Use the `timeout` parameter with a value that is compatible with your network environment.
132
- * * Switch to scheduled usage of one of the non-continuous changes feed types
133
- * (`normal` or `longpoll`).
130
+ * * Use the `timeout` parameter with a value that is compatible with
131
+ * your network environment.
132
+ * * Switch to scheduled usage of one of the non-continuous changes feed
133
+ * types (`normal` or `longpoll`).
134
134
  * * Use TCP keepalive.
135
135
  * @param {number} [params.limit] - Query parameter to specify the number of returned documents to limit the result
136
136
  * to.
@@ -139,7 +139,11 @@ declare class CloudantV1 extends CloudantBaseService {
139
139
  * feeds. Default value is specified by `httpd/changes_timeout` configuration option. Note that `60000` value is also
140
140
  * the default maximum timeout to prevent undetected dead connections.
141
141
  * @param {string} [params.since] - Query parameter to specify to start the results from the change immediately after
142
- * the given update sequence. Can be a valid update sequence or `now` value. Default is `0` i.e. all changes.
142
+ * the given update sequence. Possible values are:
143
+ * * `0` for all available changes (default).
144
+ * * `now` for future changes.
145
+ * * A valid update sequence, for example, from the `seq` value of a
146
+ * change received before.
143
147
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
144
148
  * @returns {Promise<CloudantV1.Response<CloudantV1.DbUpdates>>}
145
149
  * @deprecated this method is deprecated and may be removed in a future release
@@ -189,8 +193,8 @@ declare class CloudantV1 extends CloudantBaseService {
189
193
  * argument.
190
194
  *
191
195
  * It is important for query performance to use appropriate selectors:
192
- * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the basis
193
- * of a query. You should include at least one of these in a selector.
196
+ * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
197
+ * `$lte` (but not `$ne`) can be used as the basis of a query. You should include at least one of these in a selector.
194
198
  * * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query selectors
195
199
  * use these operators in conjunction with equality operators or create and use a partial index to reduce the number
196
200
  * of documents that will need to be scanned.
@@ -202,24 +206,27 @@ declare class CloudantV1 extends CloudantBaseService {
202
206
  * @param {string} [params.lastEventId] - Header parameter to specify the ID of the last events received by the server
203
207
  * on a previous connection. Overrides `since` query parameter.
204
208
  * @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
205
- * in attachment stubs if the particular attachment is compressed.
206
- * @param {boolean} [params.attachments] - Query parameter to specify whether to include attachments bodies in a
207
- * response.
209
+ * for compressed attachments. Note that when used with a view-style query or changes feed this only applies when
210
+ * requesting documents in the response.
211
+ * @param {boolean} [params.attachments] - Query parameter to specify whether to include attachment content in the
212
+ * response. Note that when used with a view-style query or changes feed this only applies when requesting documents
213
+ * in the response.
208
214
  * @param {boolean} [params.conflicts] - Query parameter to specify whether to include a list of conflicted revisions
209
- * in each returned document. Active only when `include_docs` is `true`.
210
- * @param {boolean} [params.descending] - Query parameter to specify whether to return the documents in descending by
211
- * key order.
215
+ * in each returned document. Note that when used with a view-style query or changes feed this only applies when
216
+ * requesting documents in the response.
217
+ * @param {boolean} [params.descending] - Query parameter to specify whether to return changes in the descending order
218
+ * with most recent change first. The `since` parameter has no effect when using descending order.
212
219
  * @param {string} [params.feed] - Query parameter to specify the changes feed type.
213
220
  * @param {string} [params.filter] - Query parameter to specify a filter to emit only specific events from the changes
214
221
  * stream.
215
222
  *
216
223
  * The built-in filter types are:
217
224
  * * `_design` - Returns only changes to design documents.
218
- * * `_doc_ids` - Returns changes for documents with an ID matching one specified in
219
- * `doc_ids` request body parameter. (`POST` only)
220
- * * `_selector` - Returns changes for documents that match the `selector`
221
- * request body parameter. The selector syntax is the same as used for
222
- * `_find`. (`POST` only)
225
+ * * `_doc_ids` - Returns changes for documents with an ID matching one
226
+ * specified in `doc_ids` request body parameter. (`POST` only)
227
+ * * `_selector` - Returns changes for documents that match the
228
+ * `selector` request body parameter. The selector syntax is the same
229
+ * as used for `_find`. (`POST` only)
223
230
  * * `_view` - Returns changes for documents that match an existing map
224
231
  * function in the view specified by the query parameter `view`.
225
232
  *
@@ -227,19 +234,19 @@ declare class CloudantV1 extends CloudantBaseService {
227
234
  * `design_doc/filtername`.
228
235
  *
229
236
  * **Note:** For better performance use the built-in `_selector`, `_design` or `_doc_ids` filters rather than JS based
230
- * `_view` or design document filters. If you need to pass values to change the filtered content use the `_selector`
231
- * filter type.
237
+ * `_view` or design document filters. If you need to pass values to change the filtered content use the
238
+ * `_selector` filter type.
232
239
  * @param {number} [params.heartbeat] - Query parameter to specify the period in milliseconds after which an empty
233
- * line is sent in the results. Off by default and only applicable for
234
- * `continuous` and `eventsource` feeds. Overrides any timeout to keep the feed alive indefinitely. May also be `true`
235
- * to use a value of `60000`.
240
+ * line is sent in the results. Off by default and only applicable for `continuous` and `eventsource` feeds. Overrides
241
+ * any timeout to keep the feed alive indefinitely. May also be `true` to use a value of `60000`.
236
242
  *
237
243
  * **Note:** Delivery of heartbeats cannot be relied on at specific intervals. If your application runs in an
238
244
  * environment where idle network connections may break, `heartbeat` is not suitable as a keepalive mechanism.
239
245
  * Instead, consider one of the following options:
240
- * * Use the `timeout` parameter with a value that is compatible with your network environment.
241
- * * Switch to scheduled usage of one of the non-continuous changes feed types
242
- * (`normal` or `longpoll`).
246
+ * * Use the `timeout` parameter with a value that is compatible with
247
+ * your network environment.
248
+ * * Switch to scheduled usage of one of the non-continuous changes feed
249
+ * types (`normal` or `longpoll`).
243
250
  * * Use TCP keepalive.
244
251
  * @param {boolean} [params.includeDocs] - Query parameter to specify whether to include the full content of the
245
252
  * documents in the response.
@@ -251,7 +258,11 @@ declare class CloudantV1 extends CloudantBaseService {
251
258
  * source database as computing the seq value across many shards (especially in highly-sharded databases) is
252
259
  * expensive.
253
260
  * @param {string} [params.since] - Query parameter to specify to start the results from the change immediately after
254
- * the given update sequence. Can be a valid update sequence or `now` value. Default is `0` i.e. all changes.
261
+ * the given update sequence. Possible values are:
262
+ * * `0` for all available changes (default).
263
+ * * `now` for future changes.
264
+ * * A valid update sequence, for example, from the `seq` value of a
265
+ * change received before.
255
266
  * @param {string} [params.style] - Query parameter to specify how many revisions are returned in the changes array.
256
267
  * The default, `main_only`, will only return the current "winning" revision; all_docs will return all leaf revisions
257
268
  * (including conflicts and deleted former conflicts).
@@ -309,8 +320,8 @@ declare class CloudantV1 extends CloudantBaseService {
309
320
  * argument.
310
321
  *
311
322
  * It is important for query performance to use appropriate selectors:
312
- * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the basis
313
- * of a query. You should include at least one of these in a selector.
323
+ * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
324
+ * `$lte` (but not `$ne`) can be used as the basis of a query. You should include at least one of these in a selector.
314
325
  * * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query selectors
315
326
  * use these operators in conjunction with equality operators or create and use a partial index to reduce the number
316
327
  * of documents that will need to be scanned.
@@ -322,24 +333,27 @@ declare class CloudantV1 extends CloudantBaseService {
322
333
  * @param {string} [params.lastEventId] - Header parameter to specify the ID of the last events received by the server
323
334
  * on a previous connection. Overrides `since` query parameter.
324
335
  * @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
325
- * in attachment stubs if the particular attachment is compressed.
326
- * @param {boolean} [params.attachments] - Query parameter to specify whether to include attachments bodies in a
327
- * response.
336
+ * for compressed attachments. Note that when used with a view-style query or changes feed this only applies when
337
+ * requesting documents in the response.
338
+ * @param {boolean} [params.attachments] - Query parameter to specify whether to include attachment content in the
339
+ * response. Note that when used with a view-style query or changes feed this only applies when requesting documents
340
+ * in the response.
328
341
  * @param {boolean} [params.conflicts] - Query parameter to specify whether to include a list of conflicted revisions
329
- * in each returned document. Active only when `include_docs` is `true`.
330
- * @param {boolean} [params.descending] - Query parameter to specify whether to return the documents in descending by
331
- * key order.
342
+ * in each returned document. Note that when used with a view-style query or changes feed this only applies when
343
+ * requesting documents in the response.
344
+ * @param {boolean} [params.descending] - Query parameter to specify whether to return changes in the descending order
345
+ * with most recent change first. The `since` parameter has no effect when using descending order.
332
346
  * @param {string} [params.feed] - Query parameter to specify the changes feed type.
333
347
  * @param {string} [params.filter] - Query parameter to specify a filter to emit only specific events from the changes
334
348
  * stream.
335
349
  *
336
350
  * The built-in filter types are:
337
351
  * * `_design` - Returns only changes to design documents.
338
- * * `_doc_ids` - Returns changes for documents with an ID matching one specified in
339
- * `doc_ids` request body parameter. (`POST` only)
340
- * * `_selector` - Returns changes for documents that match the `selector`
341
- * request body parameter. The selector syntax is the same as used for
342
- * `_find`. (`POST` only)
352
+ * * `_doc_ids` - Returns changes for documents with an ID matching one
353
+ * specified in `doc_ids` request body parameter. (`POST` only)
354
+ * * `_selector` - Returns changes for documents that match the
355
+ * `selector` request body parameter. The selector syntax is the same
356
+ * as used for `_find`. (`POST` only)
343
357
  * * `_view` - Returns changes for documents that match an existing map
344
358
  * function in the view specified by the query parameter `view`.
345
359
  *
@@ -347,19 +361,19 @@ declare class CloudantV1 extends CloudantBaseService {
347
361
  * `design_doc/filtername`.
348
362
  *
349
363
  * **Note:** For better performance use the built-in `_selector`, `_design` or `_doc_ids` filters rather than JS based
350
- * `_view` or design document filters. If you need to pass values to change the filtered content use the `_selector`
351
- * filter type.
364
+ * `_view` or design document filters. If you need to pass values to change the filtered content use the
365
+ * `_selector` filter type.
352
366
  * @param {number} [params.heartbeat] - Query parameter to specify the period in milliseconds after which an empty
353
- * line is sent in the results. Off by default and only applicable for
354
- * `continuous` and `eventsource` feeds. Overrides any timeout to keep the feed alive indefinitely. May also be `true`
355
- * to use a value of `60000`.
367
+ * line is sent in the results. Off by default and only applicable for `continuous` and `eventsource` feeds. Overrides
368
+ * any timeout to keep the feed alive indefinitely. May also be `true` to use a value of `60000`.
356
369
  *
357
370
  * **Note:** Delivery of heartbeats cannot be relied on at specific intervals. If your application runs in an
358
371
  * environment where idle network connections may break, `heartbeat` is not suitable as a keepalive mechanism.
359
372
  * Instead, consider one of the following options:
360
- * * Use the `timeout` parameter with a value that is compatible with your network environment.
361
- * * Switch to scheduled usage of one of the non-continuous changes feed types
362
- * (`normal` or `longpoll`).
373
+ * * Use the `timeout` parameter with a value that is compatible with
374
+ * your network environment.
375
+ * * Switch to scheduled usage of one of the non-continuous changes feed
376
+ * types (`normal` or `longpoll`).
363
377
  * * Use TCP keepalive.
364
378
  * @param {boolean} [params.includeDocs] - Query parameter to specify whether to include the full content of the
365
379
  * documents in the response.
@@ -371,7 +385,11 @@ declare class CloudantV1 extends CloudantBaseService {
371
385
  * source database as computing the seq value across many shards (especially in highly-sharded databases) is
372
386
  * expensive.
373
387
  * @param {string} [params.since] - Query parameter to specify to start the results from the change immediately after
374
- * the given update sequence. Can be a valid update sequence or `now` value. Default is `0` i.e. all changes.
388
+ * the given update sequence. Possible values are:
389
+ * * `0` for all available changes (default).
390
+ * * `now` for future changes.
391
+ * * A valid update sequence, for example, from the `seq` value of a
392
+ * change received before.
375
393
  * @param {string} [params.style] - Query parameter to specify how many revisions are returned in the changes array.
376
394
  * The default, `main_only`, will only return the current "winning" revision; all_docs will return all leaf revisions
377
395
  * (including conflicts and deleted former conflicts).
@@ -406,8 +424,8 @@ declare class CloudantV1 extends CloudantBaseService {
406
424
  * Query to retrieve a list of database names from the instance.
407
425
  *
408
426
  * @param {Object} [params] - The parameters to send to the service.
409
- * @param {boolean} [params.descending] - Query parameter to specify whether to return the documents in descending by
410
- * key order.
427
+ * @param {boolean} [params.descending] - Query parameter to specify whether to return rows in descending by key
428
+ * order.
411
429
  * @param {string} [params.endKey] - Query parameter to specify to stop returning records when the specified key is
412
430
  * reached. String representation of any JSON type that matches the key type emitted by the view function.
413
431
  * @param {number} [params.limit] - Query parameter to specify the number of returned documents to limit the result
@@ -533,17 +551,18 @@ declare class CloudantV1 extends CloudantBaseService {
533
551
  *
534
552
  * @param {Object} params - The parameters to send to the service.
535
553
  * @param {string} params.db - Path parameter to specify the database name.
536
- * @param {boolean} [params.attEncodingInfo] - Parameter to specify whether to include the encoding information in
537
- * attachment stubs if the particular attachment is compressed.
538
- * @param {boolean} [params.attachments] - Parameter to specify whether to include attachments bodies in a response.
554
+ * @param {boolean} [params.attEncodingInfo] - Parameter to specify whether to include the encoding information for
555
+ * compressed attachments. This only applies when requesting documents in the response.
556
+ * @param {boolean} [params.attachments] - Parameter to specify whether to include attachment content in included
557
+ * document content or only the attachment metadata. This only applies when requesting documents in the response.
539
558
  * @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in
540
- * each returned document. Active only when `include_docs` is `true`.
559
+ * each returned document. This only applies when requesting documents in the response.
541
560
  * @param {boolean} [params.descending] - Parameter to specify whether to return the documents in descending by key
542
561
  * order.
543
562
  * @param {boolean} [params.includeDocs] - Parameter to specify whether to include the full content of the documents
544
563
  * in the response.
545
- * @param {boolean} [params.inclusiveEnd] - Parameter to specify whether the specified end key should be included in
546
- * the result.
564
+ * @param {boolean} [params.inclusiveEnd] - Parameter to specify whether to include the specified end key in the
565
+ * result.
547
566
  * @param {number} [params.limit] - Parameter to specify the number of returned documents to limit the result to.
548
567
  * @param {number} [params.skip] - Parameter to specify the number of records before starting to return the results.
549
568
  * @param {boolean} [params.updateSeq] - Parameter to specify whether to include in the response an update_seq value
@@ -566,17 +585,18 @@ declare class CloudantV1 extends CloudantBaseService {
566
585
  *
567
586
  * @param {Object} params - The parameters to send to the service.
568
587
  * @param {string} params.db - Path parameter to specify the database name.
569
- * @param {boolean} [params.attEncodingInfo] - Parameter to specify whether to include the encoding information in
570
- * attachment stubs if the particular attachment is compressed.
571
- * @param {boolean} [params.attachments] - Parameter to specify whether to include attachments bodies in a response.
588
+ * @param {boolean} [params.attEncodingInfo] - Parameter to specify whether to include the encoding information for
589
+ * compressed attachments. This only applies when requesting documents in the response.
590
+ * @param {boolean} [params.attachments] - Parameter to specify whether to include attachment content in included
591
+ * document content or only the attachment metadata. This only applies when requesting documents in the response.
572
592
  * @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in
573
- * each returned document. Active only when `include_docs` is `true`.
593
+ * each returned document. This only applies when requesting documents in the response.
574
594
  * @param {boolean} [params.descending] - Parameter to specify whether to return the documents in descending by key
575
595
  * order.
576
596
  * @param {boolean} [params.includeDocs] - Parameter to specify whether to include the full content of the documents
577
597
  * in the response.
578
- * @param {boolean} [params.inclusiveEnd] - Parameter to specify whether the specified end key should be included in
579
- * the result.
598
+ * @param {boolean} [params.inclusiveEnd] - Parameter to specify whether to include the specified end key in the
599
+ * result.
580
600
  * @param {number} [params.limit] - Parameter to specify the number of returned documents to limit the result to.
581
601
  * @param {number} [params.skip] - Parameter to specify the number of records before starting to return the results.
582
602
  * @param {boolean} [params.updateSeq] - Parameter to specify whether to include in the response an update_seq value
@@ -643,10 +663,12 @@ declare class CloudantV1 extends CloudantBaseService {
643
663
  * @param {Object} params - The parameters to send to the service.
644
664
  * @param {string} params.db - Path parameter to specify the database name.
645
665
  * @param {BulkGetQueryDocument[]} params.docs - List of document items to get in bulk.
646
- * @param {boolean} [params.attachments] - Query parameter to specify whether to include attachments bodies in a
647
- * response.
666
+ * @param {boolean} [params.attachments] - Query parameter to specify whether to include attachment content in the
667
+ * response. Note that when used with a view-style query or changes feed this only applies when requesting documents
668
+ * in the response.
648
669
  * @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
649
- * in attachment stubs if the particular attachment is compressed.
670
+ * for compressed attachments. Note that when used with a view-style query or changes feed this only applies when
671
+ * requesting documents in the response.
650
672
  * @param {boolean} [params.latest] - Query parameter to specify whether to force retrieving latest leaf revision, no
651
673
  * matter what rev was requested.
652
674
  * @param {boolean} [params.revs] - Query parameter to specify whether to include a list of all known document
@@ -663,10 +685,12 @@ declare class CloudantV1 extends CloudantBaseService {
663
685
  * @param {Object} params - The parameters to send to the service.
664
686
  * @param {string} params.db - Path parameter to specify the database name.
665
687
  * @param {BulkGetQueryDocument[]} params.docs - List of document items to get in bulk.
666
- * @param {boolean} [params.attachments] - Query parameter to specify whether to include attachments bodies in a
667
- * response.
688
+ * @param {boolean} [params.attachments] - Query parameter to specify whether to include attachment content in the
689
+ * response. Note that when used with a view-style query or changes feed this only applies when requesting documents
690
+ * in the response.
668
691
  * @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
669
- * in attachment stubs if the particular attachment is compressed.
692
+ * for compressed attachments. Note that when used with a view-style query or changes feed this only applies when
693
+ * requesting documents in the response.
670
694
  * @param {boolean} [params.latest] - Query parameter to specify whether to force retrieving latest leaf revision, no
671
695
  * matter what rev was requested.
672
696
  * @param {boolean} [params.revs] - Query parameter to specify whether to include a list of all known document
@@ -683,10 +707,12 @@ declare class CloudantV1 extends CloudantBaseService {
683
707
  * @param {Object} params - The parameters to send to the service.
684
708
  * @param {string} params.db - Path parameter to specify the database name.
685
709
  * @param {BulkGetQueryDocument[]} params.docs - List of document items to get in bulk.
686
- * @param {boolean} [params.attachments] - Query parameter to specify whether to include attachments bodies in a
687
- * response.
710
+ * @param {boolean} [params.attachments] - Query parameter to specify whether to include attachment content in the
711
+ * response. Note that when used with a view-style query or changes feed this only applies when requesting documents
712
+ * in the response.
688
713
  * @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
689
- * in attachment stubs if the particular attachment is compressed.
714
+ * for compressed attachments. Note that when used with a view-style query or changes feed this only applies when
715
+ * requesting documents in the response.
690
716
  * @param {boolean} [params.latest] - Query parameter to specify whether to force retrieving latest leaf revision, no
691
717
  * matter what rev was requested.
692
718
  * @param {boolean} [params.revs] - Query parameter to specify whether to include a list of all known document
@@ -703,10 +729,12 @@ declare class CloudantV1 extends CloudantBaseService {
703
729
  * @param {Object} params - The parameters to send to the service.
704
730
  * @param {string} params.db - Path parameter to specify the database name.
705
731
  * @param {BulkGetQueryDocument[]} params.docs - List of document items to get in bulk.
706
- * @param {boolean} [params.attachments] - Query parameter to specify whether to include attachments bodies in a
707
- * response.
732
+ * @param {boolean} [params.attachments] - Query parameter to specify whether to include attachment content in the
733
+ * response. Note that when used with a view-style query or changes feed this only applies when requesting documents
734
+ * in the response.
708
735
  * @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
709
- * in attachment stubs if the particular attachment is compressed.
736
+ * for compressed attachments. Note that when used with a view-style query or changes feed this only applies when
737
+ * requesting documents in the response.
710
738
  * @param {boolean} [params.latest] - Query parameter to specify whether to force retrieving latest leaf revision, no
711
739
  * matter what rev was requested.
712
740
  * @param {boolean} [params.revs] - Query parameter to specify whether to include a list of all known document
@@ -743,12 +771,15 @@ declare class CloudantV1 extends CloudantBaseService {
743
771
  * @param {string} params.db - Path parameter to specify the database name.
744
772
  * @param {string} params.docId - Path parameter to specify the document ID.
745
773
  * @param {string} [params.ifNoneMatch] - Header parameter for a conditional HTTP request not matching an ETag.
746
- * @param {boolean} [params.attachments] - Query parameter to specify whether to include attachments bodies in a
747
- * response.
774
+ * @param {boolean} [params.attachments] - Query parameter to specify whether to include attachment content in the
775
+ * response. Note that when used with a view-style query or changes feed this only applies when requesting documents
776
+ * in the response.
748
777
  * @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
749
- * in attachment stubs if the particular attachment is compressed.
778
+ * for compressed attachments. Note that when used with a view-style query or changes feed this only applies when
779
+ * requesting documents in the response.
750
780
  * @param {boolean} [params.conflicts] - Query parameter to specify whether to include a list of conflicted revisions
751
- * in each returned document. Active only when `include_docs` is `true`.
781
+ * in each returned document. Note that when used with a view-style query or changes feed this only applies when
782
+ * requesting documents in the response.
752
783
  * @param {boolean} [params.deletedConflicts] - Query parameter to specify whether to include a list of deleted
753
784
  * conflicted revisions in the `_deleted_conflicts` property of the returned document.
754
785
  * @param {boolean} [params.latest] - Query parameter to specify whether to force retrieving latest leaf revision, no
@@ -776,12 +807,15 @@ declare class CloudantV1 extends CloudantBaseService {
776
807
  * @param {string} params.db - Path parameter to specify the database name.
777
808
  * @param {string} params.docId - Path parameter to specify the document ID.
778
809
  * @param {string} [params.ifNoneMatch] - Header parameter for a conditional HTTP request not matching an ETag.
779
- * @param {boolean} [params.attachments] - Query parameter to specify whether to include attachments bodies in a
780
- * response.
810
+ * @param {boolean} [params.attachments] - Query parameter to specify whether to include attachment content in the
811
+ * response. Note that when used with a view-style query or changes feed this only applies when requesting documents
812
+ * in the response.
781
813
  * @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
782
- * in attachment stubs if the particular attachment is compressed.
814
+ * for compressed attachments. Note that when used with a view-style query or changes feed this only applies when
815
+ * requesting documents in the response.
783
816
  * @param {boolean} [params.conflicts] - Query parameter to specify whether to include a list of conflicted revisions
784
- * in each returned document. Active only when `include_docs` is `true`.
817
+ * in each returned document. Note that when used with a view-style query or changes feed this only applies when
818
+ * requesting documents in the response.
785
819
  * @param {boolean} [params.deletedConflicts] - Query parameter to specify whether to include a list of deleted
786
820
  * conflicted revisions in the `_deleted_conflicts` property of the returned document.
787
821
  * @param {boolean} [params.latest] - Query parameter to specify whether to force retrieving latest leaf revision, no
@@ -809,12 +843,15 @@ declare class CloudantV1 extends CloudantBaseService {
809
843
  * @param {string} params.db - Path parameter to specify the database name.
810
844
  * @param {string} params.docId - Path parameter to specify the document ID.
811
845
  * @param {string} [params.ifNoneMatch] - Header parameter for a conditional HTTP request not matching an ETag.
812
- * @param {boolean} [params.attachments] - Query parameter to specify whether to include attachments bodies in a
813
- * response.
846
+ * @param {boolean} [params.attachments] - Query parameter to specify whether to include attachment content in the
847
+ * response. Note that when used with a view-style query or changes feed this only applies when requesting documents
848
+ * in the response.
814
849
  * @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
815
- * in attachment stubs if the particular attachment is compressed.
850
+ * for compressed attachments. Note that when used with a view-style query or changes feed this only applies when
851
+ * requesting documents in the response.
816
852
  * @param {boolean} [params.conflicts] - Query parameter to specify whether to include a list of conflicted revisions
817
- * in each returned document. Active only when `include_docs` is `true`.
853
+ * in each returned document. Note that when used with a view-style query or changes feed this only applies when
854
+ * requesting documents in the response.
818
855
  * @param {boolean} [params.deletedConflicts] - Query parameter to specify whether to include a list of deleted
819
856
  * conflicted revisions in the `_deleted_conflicts` property of the returned document.
820
857
  * @param {boolean} [params.latest] - Query parameter to specify whether to force retrieving latest leaf revision, no
@@ -842,12 +879,15 @@ declare class CloudantV1 extends CloudantBaseService {
842
879
  * @param {string} params.db - Path parameter to specify the database name.
843
880
  * @param {string} params.docId - Path parameter to specify the document ID.
844
881
  * @param {string} [params.ifNoneMatch] - Header parameter for a conditional HTTP request not matching an ETag.
845
- * @param {boolean} [params.attachments] - Query parameter to specify whether to include attachments bodies in a
846
- * response.
882
+ * @param {boolean} [params.attachments] - Query parameter to specify whether to include attachment content in the
883
+ * response. Note that when used with a view-style query or changes feed this only applies when requesting documents
884
+ * in the response.
847
885
  * @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
848
- * in attachment stubs if the particular attachment is compressed.
886
+ * for compressed attachments. Note that when used with a view-style query or changes feed this only applies when
887
+ * requesting documents in the response.
849
888
  * @param {boolean} [params.conflicts] - Query parameter to specify whether to include a list of conflicted revisions
850
- * in each returned document. Active only when `include_docs` is `true`.
889
+ * in each returned document. Note that when used with a view-style query or changes feed this only applies when
890
+ * requesting documents in the response.
851
891
  * @param {boolean} [params.deletedConflicts] - Query parameter to specify whether to include a list of deleted
852
892
  * conflicted revisions in the `_deleted_conflicts` property of the returned document.
853
893
  * @param {boolean} [params.latest] - Query parameter to specify whether to force retrieving latest leaf revision, no
@@ -872,7 +912,7 @@ declare class CloudantV1 extends CloudantBaseService {
872
912
  *
873
913
  * For creation, you must specify the document ID but you should not specify the revision.
874
914
  *
875
- * For modification, you must specify the document ID and a revision identifier.
915
+ * For modification, you must specify the document ID and a revision identifier.
876
916
  *
877
917
  * @param {Object} params - The parameters to send to the service.
878
918
  * @param {string} params.db - Path parameter to specify the database name.
@@ -944,12 +984,15 @@ declare class CloudantV1 extends CloudantBaseService {
944
984
  * @param {string} params.ddoc - Path parameter to specify the design document name. The design document name is the
945
985
  * design document ID excluding the `_design/` prefix.
946
986
  * @param {string} [params.ifNoneMatch] - Header parameter for a conditional HTTP request not matching an ETag.
947
- * @param {boolean} [params.attachments] - Query parameter to specify whether to include attachments bodies in a
948
- * response.
987
+ * @param {boolean} [params.attachments] - Query parameter to specify whether to include attachment content in the
988
+ * response. Note that when used with a view-style query or changes feed this only applies when requesting documents
989
+ * in the response.
949
990
  * @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
950
- * in attachment stubs if the particular attachment is compressed.
991
+ * for compressed attachments. Note that when used with a view-style query or changes feed this only applies when
992
+ * requesting documents in the response.
951
993
  * @param {boolean} [params.conflicts] - Query parameter to specify whether to include a list of conflicted revisions
952
- * in each returned document. Active only when `include_docs` is `true`.
994
+ * in each returned document. Note that when used with a view-style query or changes feed this only applies when
995
+ * requesting documents in the response.
953
996
  * @param {boolean} [params.deletedConflicts] - Query parameter to specify whether to include a list of deleted
954
997
  * conflicted revisions in the `_deleted_conflicts` property of the returned document.
955
998
  * @param {boolean} [params.latest] - Query parameter to specify whether to force retrieving latest leaf revision, no
@@ -1015,17 +1058,18 @@ declare class CloudantV1 extends CloudantBaseService {
1015
1058
  *
1016
1059
  * @param {Object} params - The parameters to send to the service.
1017
1060
  * @param {string} params.db - Path parameter to specify the database name.
1018
- * @param {boolean} [params.attEncodingInfo] - Parameter to specify whether to include the encoding information in
1019
- * attachment stubs if the particular attachment is compressed.
1020
- * @param {boolean} [params.attachments] - Parameter to specify whether to include attachments bodies in a response.
1061
+ * @param {boolean} [params.attEncodingInfo] - Parameter to specify whether to include the encoding information for
1062
+ * compressed attachments. This only applies when requesting documents in the response.
1063
+ * @param {boolean} [params.attachments] - Parameter to specify whether to include attachment content in included
1064
+ * document content or only the attachment metadata. This only applies when requesting documents in the response.
1021
1065
  * @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in
1022
- * each returned document. Active only when `include_docs` is `true`.
1066
+ * each returned document. This only applies when requesting documents in the response.
1023
1067
  * @param {boolean} [params.descending] - Parameter to specify whether to return the documents in descending by key
1024
1068
  * order.
1025
1069
  * @param {boolean} [params.includeDocs] - Parameter to specify whether to include the full content of the documents
1026
1070
  * in the response.
1027
- * @param {boolean} [params.inclusiveEnd] - Parameter to specify whether the specified end key should be included in
1028
- * the result.
1071
+ * @param {boolean} [params.inclusiveEnd] - Parameter to specify whether to include the specified end key in the
1072
+ * result.
1029
1073
  * @param {number} [params.limit] - Parameter to specify the number of returned documents to limit the result to.
1030
1074
  * @param {number} [params.skip] - Parameter to specify the number of records before starting to return the results.
1031
1075
  * @param {boolean} [params.updateSeq] - Parameter to specify whether to include in the response an update_seq value
@@ -1070,23 +1114,25 @@ declare class CloudantV1 extends CloudantBaseService {
1070
1114
  * @param {string} params.ddoc - Path parameter to specify the design document name. The design document name is the
1071
1115
  * design document ID excluding the `_design/` prefix.
1072
1116
  * @param {string} params.view - Path parameter to specify the map reduce view function name.
1073
- * @param {boolean} [params.attEncodingInfo] - Parameter to specify whether to include the encoding information in
1074
- * attachment stubs if the particular attachment is compressed.
1075
- * @param {boolean} [params.attachments] - Parameter to specify whether to include attachments bodies in a response.
1117
+ * @param {boolean} [params.attEncodingInfo] - Parameter to specify whether to include the encoding information for
1118
+ * compressed attachments. This only applies when requesting documents in the response.
1119
+ * @param {boolean} [params.attachments] - Parameter to specify whether to include attachment content in included
1120
+ * document content or only the attachment metadata. This only applies when requesting documents in the response.
1076
1121
  * @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in
1077
- * each returned document. Active only when `include_docs` is `true`.
1122
+ * each returned document. This only applies when requesting documents in the response.
1078
1123
  * @param {boolean} [params.descending] - Parameter to specify whether to return the documents in descending by key
1079
1124
  * order.
1080
1125
  * @param {boolean} [params.includeDocs] - Parameter to specify whether to include the full content of the documents
1081
1126
  * in the response.
1082
- * @param {boolean} [params.inclusiveEnd] - Parameter to specify whether the specified end key should be included in
1083
- * the result.
1127
+ * @param {boolean} [params.inclusiveEnd] - Parameter to specify whether to include the specified end key in the
1128
+ * result.
1084
1129
  * @param {number} [params.limit] - Parameter to specify the number of returned documents to limit the result to.
1085
1130
  * @param {number} [params.skip] - Parameter to specify the number of records before starting to return the results.
1086
1131
  * @param {boolean} [params.updateSeq] - Parameter to specify whether to include in the response an update_seq value
1087
1132
  * indicating the sequence id of the database the view reflects.
1088
1133
  * @param {any} [params.endKey] - Schema for any JSON type.
1089
- * @param {string} [params.endKeyDocId] - Schema for a document ID.
1134
+ * @param {string} [params.endKeyDocId] - Stop returning rows at the specified document ID. No effect if using `group`
1135
+ * or not providing end key.
1090
1136
  * @param {boolean} [params.group] - Parameter to specify whether to group reduced results by key. Valid only if a
1091
1137
  * reduce function defined in the view. If the view emits key in JSON array format, then it is possible to reduce
1092
1138
  * groups further based on the number of array elements with the `group_level` parameter.
@@ -1094,24 +1140,27 @@ declare class CloudantV1 extends CloudantBaseService {
1094
1140
  * uses keys that are JSON arrays. Implies group is `true`. Group level groups the reduced results by the specified
1095
1141
  * number of array elements. If unset, results are grouped by the entire array key, returning a reduced value for each
1096
1142
  * complete key.
1097
- * @param {any} [params.key] - Schema for any JSON type.
1098
- * @param {any[]} [params.keys] - Parameter to specify returning only documents that match any of the specified keys.
1099
- * A JSON array of keys that match the key type emitted by the view function.
1143
+ * @param {any} [params.key] - Parameter to specify to return only rows that match the specified key. String
1144
+ * representation of any JSON type that matches the key type emitted by the view function.
1145
+ * @param {any[]} [params.keys] - Parameter to specify returning only rows that match any of the specified keys. A
1146
+ * JSON array of keys that match the key type emitted by the view function.
1100
1147
  * @param {boolean} [params.reduce] - Parameter to specify whether to use the reduce function in a map-reduce view.
1101
1148
  * Default is true when a reduce function is defined.
1102
1149
  *
1103
- * A default `reduce` view type can be disabled to behave like a `map` by setting `reduce=false` explicitly.
1150
+ * A default `reduce` view type can be disabled to behave like a
1151
+ * `map` by setting `reduce=false` explicitly.
1104
1152
  *
1105
- * Be aware that `include_docs=true` can only be used with `map` views.
1106
- * @param {boolean} [params.stable] - Query parameter to specify whether use the same replica of the index on each
1107
- * request. The default value `false` contacts all replicas and returns the result from the first, fastest,
1108
- * responder. Setting it to `true` when used in conjunction with `update=false` may improve consistency at the
1109
- * expense of increased latency and decreased throughput if the selected replica is not the fastest of the available
1110
- * replicas.
1153
+ * Be aware that `include_docs=true` is only for `map` views. Reduced views do not include document IDs in view rows.
1154
+ * @param {boolean} [params.stable] - Query parameter to specify whether use the same replica of the index on each
1155
+ * request. The default value `false` contacts all replicas and returns the result from the first, fastest, responder.
1156
+ * Setting it to `true` when used in conjunction with
1157
+ * `update=false` may improve consistency at the expense of increased latency and decreased throughput if the selected
1158
+ * replica is not the fastest of the available replicas.
1111
1159
  *
1112
1160
  * **Note:** In general setting `true` is discouraged and is strictly not recommended when using `update=true`.
1113
1161
  * @param {any} [params.startKey] - Schema for any JSON type.
1114
- * @param {string} [params.startKeyDocId] - Schema for a document ID.
1162
+ * @param {string} [params.startKeyDocId] - Start returning rows at the specified document ID. No effect if using
1163
+ * `group` or not providing start key.
1115
1164
  * @param {string} [params.update] - Parameter to specify whether or not the view in question should be updated prior
1116
1165
  * to responding to the user.
1117
1166
  *
@@ -1135,23 +1184,25 @@ declare class CloudantV1 extends CloudantBaseService {
1135
1184
  * @param {string} params.ddoc - Path parameter to specify the design document name. The design document name is the
1136
1185
  * design document ID excluding the `_design/` prefix.
1137
1186
  * @param {string} params.view - Path parameter to specify the map reduce view function 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.
1187
+ * @param {boolean} [params.attEncodingInfo] - Parameter to specify whether to include the encoding information for
1188
+ * compressed attachments. This only applies when requesting documents in the response.
1189
+ * @param {boolean} [params.attachments] - Parameter to specify whether to include attachment content in included
1190
+ * document content or only the attachment metadata. This only applies when requesting documents in the response.
1141
1191
  * @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`.
1192
+ * each returned document. This only applies when requesting documents in the response.
1143
1193
  * @param {boolean} [params.descending] - Parameter to specify whether to return the documents in descending by key
1144
1194
  * order.
1145
1195
  * @param {boolean} [params.includeDocs] - Parameter to specify whether to include the full content of the documents
1146
1196
  * in the response.
1147
- * @param {boolean} [params.inclusiveEnd] - Parameter to specify whether the specified end key should be included in
1148
- * the result.
1197
+ * @param {boolean} [params.inclusiveEnd] - Parameter to specify whether to include the specified end key in the
1198
+ * result.
1149
1199
  * @param {number} [params.limit] - Parameter to specify the number of returned documents to limit the result to.
1150
1200
  * @param {number} [params.skip] - Parameter to specify the number of records before starting to return the results.
1151
1201
  * @param {boolean} [params.updateSeq] - Parameter to specify whether to include in the response an update_seq value
1152
1202
  * indicating the sequence id of the database the view reflects.
1153
1203
  * @param {any} [params.endKey] - Schema for any JSON type.
1154
- * @param {string} [params.endKeyDocId] - Schema for a document ID.
1204
+ * @param {string} [params.endKeyDocId] - Stop returning rows at the specified document ID. No effect if using `group`
1205
+ * or not providing end key.
1155
1206
  * @param {boolean} [params.group] - Parameter to specify whether to group reduced results by key. Valid only if a
1156
1207
  * reduce function defined in the view. If the view emits key in JSON array format, then it is possible to reduce
1157
1208
  * groups further based on the number of array elements with the `group_level` parameter.
@@ -1159,24 +1210,27 @@ declare class CloudantV1 extends CloudantBaseService {
1159
1210
  * uses keys that are JSON arrays. Implies group is `true`. Group level groups the reduced results by the specified
1160
1211
  * number of array elements. If unset, results are grouped by the entire array key, returning a reduced value for each
1161
1212
  * complete key.
1162
- * @param {any} [params.key] - Schema for any JSON type.
1163
- * @param {any[]} [params.keys] - Parameter to specify returning only documents that match any of the specified keys.
1164
- * A JSON array of keys that match the key type emitted by the view function.
1213
+ * @param {any} [params.key] - Parameter to specify to return only rows that match the specified key. String
1214
+ * representation of any JSON type that matches the key type emitted by the view function.
1215
+ * @param {any[]} [params.keys] - Parameter to specify returning only rows that match any of the specified keys. A
1216
+ * JSON array of keys that match the key type emitted by the view function.
1165
1217
  * @param {boolean} [params.reduce] - Parameter to specify whether to use the reduce function in a map-reduce view.
1166
1218
  * Default is true when a reduce function is defined.
1167
1219
  *
1168
- * A default `reduce` view type can be disabled to behave like a `map` by setting `reduce=false` explicitly.
1220
+ * A default `reduce` view type can be disabled to behave like a
1221
+ * `map` by setting `reduce=false` explicitly.
1169
1222
  *
1170
- * Be aware that `include_docs=true` can only be used with `map` views.
1171
- * @param {boolean} [params.stable] - Query parameter to specify whether use the same replica of the index on each
1172
- * request. The default value `false` contacts all replicas and returns the result from the first, fastest,
1173
- * responder. Setting it to `true` when used in conjunction with `update=false` may improve consistency at the
1174
- * expense of increased latency and decreased throughput if the selected replica is not the fastest of the available
1175
- * replicas.
1223
+ * Be aware that `include_docs=true` is only for `map` views. Reduced views do not include document IDs in view rows.
1224
+ * @param {boolean} [params.stable] - Query parameter to specify whether use the same replica of the index on each
1225
+ * request. The default value `false` contacts all replicas and returns the result from the first, fastest, responder.
1226
+ * Setting it to `true` when used in conjunction with
1227
+ * `update=false` may improve consistency at the expense of increased latency and decreased throughput if the selected
1228
+ * replica is not the fastest of the available replicas.
1176
1229
  *
1177
1230
  * **Note:** In general setting `true` is discouraged and is strictly not recommended when using `update=true`.
1178
1231
  * @param {any} [params.startKey] - Schema for any JSON type.
1179
- * @param {string} [params.startKeyDocId] - Schema for a document ID.
1232
+ * @param {string} [params.startKeyDocId] - Start returning rows at the specified document ID. No effect if using
1233
+ * `group` or not providing start key.
1180
1234
  * @param {string} [params.update] - Parameter to specify whether or not the view in question should be updated prior
1181
1235
  * to responding to the user.
1182
1236
  *
@@ -1247,17 +1301,18 @@ declare class CloudantV1 extends CloudantBaseService {
1247
1301
  * @param {Object} params - The parameters to send to the service.
1248
1302
  * @param {string} params.db - Path parameter to specify the database name.
1249
1303
  * @param {string} params.partitionKey - Path parameter to specify the database partition key.
1250
- * @param {boolean} [params.attEncodingInfo] - Parameter to specify whether to include the encoding information in
1251
- * attachment stubs if the particular attachment is compressed.
1252
- * @param {boolean} [params.attachments] - Parameter to specify whether to include attachments bodies in a response.
1304
+ * @param {boolean} [params.attEncodingInfo] - Parameter to specify whether to include the encoding information for
1305
+ * compressed attachments. This only applies when requesting documents in the response.
1306
+ * @param {boolean} [params.attachments] - Parameter to specify whether to include attachment content in included
1307
+ * document content or only the attachment metadata. This only applies when requesting documents in the response.
1253
1308
  * @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in
1254
- * each returned document. Active only when `include_docs` is `true`.
1309
+ * each returned document. This only applies when requesting documents in the response.
1255
1310
  * @param {boolean} [params.descending] - Parameter to specify whether to return the documents in descending by key
1256
1311
  * order.
1257
1312
  * @param {boolean} [params.includeDocs] - Parameter to specify whether to include the full content of the documents
1258
1313
  * in the response.
1259
- * @param {boolean} [params.inclusiveEnd] - Parameter to specify whether the specified end key should be included in
1260
- * the result.
1314
+ * @param {boolean} [params.inclusiveEnd] - Parameter to specify whether to include the specified end key in the
1315
+ * result.
1261
1316
  * @param {number} [params.limit] - Parameter to specify the number of returned documents to limit the result to.
1262
1317
  * @param {number} [params.skip] - Parameter to specify the number of records before starting to return the results.
1263
1318
  * @param {boolean} [params.updateSeq] - Parameter to specify whether to include in the response an update_seq value
@@ -1281,17 +1336,18 @@ declare class CloudantV1 extends CloudantBaseService {
1281
1336
  * @param {Object} params - The parameters to send to the service.
1282
1337
  * @param {string} params.db - Path parameter to specify the database name.
1283
1338
  * @param {string} params.partitionKey - Path parameter to specify the database partition key.
1284
- * @param {boolean} [params.attEncodingInfo] - Parameter to specify whether to include the encoding information in
1285
- * attachment stubs if the particular attachment is compressed.
1286
- * @param {boolean} [params.attachments] - Parameter to specify whether to include attachments bodies in a response.
1339
+ * @param {boolean} [params.attEncodingInfo] - Parameter to specify whether to include the encoding information for
1340
+ * compressed attachments. This only applies when requesting documents in the response.
1341
+ * @param {boolean} [params.attachments] - Parameter to specify whether to include attachment content in included
1342
+ * document content or only the attachment metadata. This only applies when requesting documents in the response.
1287
1343
  * @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in
1288
- * each returned document. Active only when `include_docs` is `true`.
1344
+ * each returned document. This only applies when requesting documents in the response.
1289
1345
  * @param {boolean} [params.descending] - Parameter to specify whether to return the documents in descending by key
1290
1346
  * order.
1291
1347
  * @param {boolean} [params.includeDocs] - Parameter to specify whether to include the full content of the documents
1292
1348
  * in the response.
1293
- * @param {boolean} [params.inclusiveEnd] - Parameter to specify whether the specified end key should be included in
1294
- * the result.
1349
+ * @param {boolean} [params.inclusiveEnd] - Parameter to specify whether to include the specified end key in the
1350
+ * result.
1295
1351
  * @param {number} [params.limit] - Parameter to specify the number of returned documents to limit the result to.
1296
1352
  * @param {number} [params.skip] - Parameter to specify the number of records before starting to return the results.
1297
1353
  * @param {boolean} [params.updateSeq] - Parameter to specify whether to include in the response an update_seq value
@@ -1337,7 +1393,7 @@ declare class CloudantV1 extends CloudantBaseService {
1337
1393
  * that are included must be indexed with the store:true option. The default is all fields.
1338
1394
  * @param {number} [params.limit] - Limit the number of the returned documents to the specified number.
1339
1395
  * @param {string[]} [params.sort] - Specifies the sort order of the results. In a grouped search (when group_field is
1340
- * used), this parameter specifies the sort order within a group. The default sort order is relevance. A JSON string
1396
+ * used), this parameter specifies the sort order within a group. The default sort order is relevance. A JSON string
1341
1397
  * of the form "fieldname&lt;type&gt;" or "-fieldname&lt;type&gt;" for descending order, where fieldname is the name
1342
1398
  * of a string or number field, and type is either a number, a string, or a JSON array of strings. The type part is
1343
1399
  * optional, and defaults to number. Some examples are "foo", "-foo", "bar&lt;string&gt;", "-foo&lt;number&gt;" and
@@ -1381,7 +1437,7 @@ declare class CloudantV1 extends CloudantBaseService {
1381
1437
  * that are included must be indexed with the store:true option. The default is all fields.
1382
1438
  * @param {number} [params.limit] - Limit the number of the returned documents to the specified number.
1383
1439
  * @param {string[]} [params.sort] - Specifies the sort order of the results. In a grouped search (when group_field is
1384
- * used), this parameter specifies the sort order within a group. The default sort order is relevance. A JSON string
1440
+ * used), this parameter specifies the sort order within a group. The default sort order is relevance. A JSON string
1385
1441
  * of the form "fieldname&lt;type&gt;" or "-fieldname&lt;type&gt;" for descending order, where fieldname is the name
1386
1442
  * of a string or number field, and type is either a number, a string, or a JSON array of strings. The type part is
1387
1443
  * optional, and defaults to number. Some examples are "foo", "-foo", "bar&lt;string&gt;", "-foo&lt;number&gt;" and
@@ -1410,23 +1466,25 @@ declare class CloudantV1 extends CloudantBaseService {
1410
1466
  * @param {string} params.ddoc - Path parameter to specify the design document name. The design document name is the
1411
1467
  * design document ID excluding the `_design/` prefix.
1412
1468
  * @param {string} params.view - Path parameter to specify the map reduce view function name.
1413
- * @param {boolean} [params.attEncodingInfo] - Parameter to specify whether to include the encoding information in
1414
- * attachment stubs if the particular attachment is compressed.
1415
- * @param {boolean} [params.attachments] - Parameter to specify whether to include attachments bodies in a response.
1469
+ * @param {boolean} [params.attEncodingInfo] - Parameter to specify whether to include the encoding information for
1470
+ * compressed attachments. This only applies when requesting documents in the response.
1471
+ * @param {boolean} [params.attachments] - Parameter to specify whether to include attachment content in included
1472
+ * document content or only the attachment metadata. This only applies when requesting documents in the response.
1416
1473
  * @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in
1417
- * each returned document. Active only when `include_docs` is `true`.
1474
+ * each returned document. This only applies when requesting documents in the response.
1418
1475
  * @param {boolean} [params.descending] - Parameter to specify whether to return the documents in descending by key
1419
1476
  * order.
1420
1477
  * @param {boolean} [params.includeDocs] - Parameter to specify whether to include the full content of the documents
1421
1478
  * in the response.
1422
- * @param {boolean} [params.inclusiveEnd] - Parameter to specify whether the specified end key should be included in
1423
- * the result.
1479
+ * @param {boolean} [params.inclusiveEnd] - Parameter to specify whether to include the specified end key in the
1480
+ * result.
1424
1481
  * @param {number} [params.limit] - Parameter to specify the number of returned documents to limit the result to.
1425
1482
  * @param {number} [params.skip] - Parameter to specify the number of records before starting to return the results.
1426
1483
  * @param {boolean} [params.updateSeq] - Parameter to specify whether to include in the response an update_seq value
1427
1484
  * indicating the sequence id of the database the view reflects.
1428
1485
  * @param {any} [params.endKey] - Schema for any JSON type.
1429
- * @param {string} [params.endKeyDocId] - Schema for a document ID.
1486
+ * @param {string} [params.endKeyDocId] - Stop returning rows at the specified document ID. No effect if using `group`
1487
+ * or not providing end key.
1430
1488
  * @param {boolean} [params.group] - Parameter to specify whether to group reduced results by key. Valid only if a
1431
1489
  * reduce function defined in the view. If the view emits key in JSON array format, then it is possible to reduce
1432
1490
  * groups further based on the number of array elements with the `group_level` parameter.
@@ -1434,17 +1492,20 @@ declare class CloudantV1 extends CloudantBaseService {
1434
1492
  * uses keys that are JSON arrays. Implies group is `true`. Group level groups the reduced results by the specified
1435
1493
  * number of array elements. If unset, results are grouped by the entire array key, returning a reduced value for each
1436
1494
  * complete key.
1437
- * @param {any} [params.key] - Schema for any JSON type.
1438
- * @param {any[]} [params.keys] - Parameter to specify returning only documents that match any of the specified keys.
1439
- * A JSON array of keys that match the key type emitted by the view function.
1495
+ * @param {any} [params.key] - Parameter to specify to return only rows that match the specified key. String
1496
+ * representation of any JSON type that matches the key type emitted by the view function.
1497
+ * @param {any[]} [params.keys] - Parameter to specify returning only rows that match any of the specified keys. A
1498
+ * JSON array of keys that match the key type emitted by the view function.
1440
1499
  * @param {boolean} [params.reduce] - Parameter to specify whether to use the reduce function in a map-reduce view.
1441
1500
  * Default is true when a reduce function is defined.
1442
1501
  *
1443
- * A default `reduce` view type can be disabled to behave like a `map` by setting `reduce=false` explicitly.
1502
+ * A default `reduce` view type can be disabled to behave like a
1503
+ * `map` by setting `reduce=false` explicitly.
1444
1504
  *
1445
- * Be aware that `include_docs=true` can only be used with `map` views.
1505
+ * Be aware that `include_docs=true` is only for `map` views. Reduced views do not include document IDs in view rows.
1446
1506
  * @param {any} [params.startKey] - Schema for any JSON type.
1447
- * @param {string} [params.startKeyDocId] - Schema for a document ID.
1507
+ * @param {string} [params.startKeyDocId] - Start returning rows at the specified document ID. No effect if using
1508
+ * `group` or not providing start key.
1448
1509
  * @param {string} [params.update] - Parameter to specify whether or not the view in question should be updated prior
1449
1510
  * to responding to the user.
1450
1511
  *
@@ -1473,23 +1534,25 @@ declare class CloudantV1 extends CloudantBaseService {
1473
1534
  * @param {string} params.ddoc - Path parameter to specify the design document name. The design document name is the
1474
1535
  * design document ID excluding the `_design/` prefix.
1475
1536
  * @param {string} params.view - Path parameter to specify the map reduce view function name.
1476
- * @param {boolean} [params.attEncodingInfo] - Parameter to specify whether to include the encoding information in
1477
- * attachment stubs if the particular attachment is compressed.
1478
- * @param {boolean} [params.attachments] - Parameter to specify whether to include attachments bodies in a response.
1537
+ * @param {boolean} [params.attEncodingInfo] - Parameter to specify whether to include the encoding information for
1538
+ * compressed attachments. This only applies when requesting documents in the response.
1539
+ * @param {boolean} [params.attachments] - Parameter to specify whether to include attachment content in included
1540
+ * document content or only the attachment metadata. This only applies when requesting documents in the response.
1479
1541
  * @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in
1480
- * each returned document. Active only when `include_docs` is `true`.
1542
+ * each returned document. This only applies when requesting documents in the response.
1481
1543
  * @param {boolean} [params.descending] - Parameter to specify whether to return the documents in descending by key
1482
1544
  * order.
1483
1545
  * @param {boolean} [params.includeDocs] - Parameter to specify whether to include the full content of the documents
1484
1546
  * in the response.
1485
- * @param {boolean} [params.inclusiveEnd] - Parameter to specify whether the specified end key should be included in
1486
- * the result.
1547
+ * @param {boolean} [params.inclusiveEnd] - Parameter to specify whether to include the specified end key in the
1548
+ * result.
1487
1549
  * @param {number} [params.limit] - Parameter to specify the number of returned documents to limit the result to.
1488
1550
  * @param {number} [params.skip] - Parameter to specify the number of records before starting to return the results.
1489
1551
  * @param {boolean} [params.updateSeq] - Parameter to specify whether to include in the response an update_seq value
1490
1552
  * indicating the sequence id of the database the view reflects.
1491
1553
  * @param {any} [params.endKey] - Schema for any JSON type.
1492
- * @param {string} [params.endKeyDocId] - Schema for a document ID.
1554
+ * @param {string} [params.endKeyDocId] - Stop returning rows at the specified document ID. No effect if using `group`
1555
+ * or not providing end key.
1493
1556
  * @param {boolean} [params.group] - Parameter to specify whether to group reduced results by key. Valid only if a
1494
1557
  * reduce function defined in the view. If the view emits key in JSON array format, then it is possible to reduce
1495
1558
  * groups further based on the number of array elements with the `group_level` parameter.
@@ -1497,17 +1560,20 @@ declare class CloudantV1 extends CloudantBaseService {
1497
1560
  * uses keys that are JSON arrays. Implies group is `true`. Group level groups the reduced results by the specified
1498
1561
  * number of array elements. If unset, results are grouped by the entire array key, returning a reduced value for each
1499
1562
  * complete key.
1500
- * @param {any} [params.key] - Schema for any JSON type.
1501
- * @param {any[]} [params.keys] - Parameter to specify returning only documents that match any of the specified keys.
1502
- * A JSON array of keys that match the key type emitted by the view function.
1563
+ * @param {any} [params.key] - Parameter to specify to return only rows that match the specified key. String
1564
+ * representation of any JSON type that matches the key type emitted by the view function.
1565
+ * @param {any[]} [params.keys] - Parameter to specify returning only rows that match any of the specified keys. A
1566
+ * JSON array of keys that match the key type emitted by the view function.
1503
1567
  * @param {boolean} [params.reduce] - Parameter to specify whether to use the reduce function in a map-reduce view.
1504
1568
  * Default is true when a reduce function is defined.
1505
1569
  *
1506
- * A default `reduce` view type can be disabled to behave like a `map` by setting `reduce=false` explicitly.
1570
+ * A default `reduce` view type can be disabled to behave like a
1571
+ * `map` by setting `reduce=false` explicitly.
1507
1572
  *
1508
- * Be aware that `include_docs=true` can only be used with `map` views.
1573
+ * Be aware that `include_docs=true` is only for `map` views. Reduced views do not include document IDs in view rows.
1509
1574
  * @param {any} [params.startKey] - Schema for any JSON type.
1510
- * @param {string} [params.startKeyDocId] - Schema for a document ID.
1575
+ * @param {string} [params.startKeyDocId] - Start returning rows at the specified document ID. No effect if using
1576
+ * `group` or not providing start key.
1511
1577
  * @param {string} [params.update] - Parameter to specify whether or not the view in question should be updated prior
1512
1578
  * to responding to the user.
1513
1579
  *
@@ -1550,8 +1616,8 @@ declare class CloudantV1 extends CloudantBaseService {
1550
1616
  * argument.
1551
1617
  *
1552
1618
  * It is important for query performance to use appropriate selectors:
1553
- * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the basis
1554
- * of a query. You should include at least one of these in a selector.
1619
+ * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
1620
+ * `$lte` (but not `$ne`) can be used as the basis of a query. You should include at least one of these in a selector.
1555
1621
  * * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query selectors
1556
1622
  * use these operators in conjunction with equality operators or create and use a partial index to reduce the number
1557
1623
  * of documents that will need to be scanned.
@@ -1560,7 +1626,7 @@ declare class CloudantV1 extends CloudantBaseService {
1560
1626
  * combination and conditional operators.
1561
1627
  *
1562
1628
  * For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
1563
- * @param {boolean} [params.allowFallback] - Whether to allow fallback to other indexes. Default is true.
1629
+ * @param {boolean} [params.allowFallback] - Whether to allow fallback to other indexes. Default is true.
1564
1630
  * @param {string} [params.bookmark] - Opaque bookmark token used when paginating results.
1565
1631
  * @param {boolean} [params.conflicts] - A boolean value that indicates whether or not to include information about
1566
1632
  * existing conflicts in the document.
@@ -1577,7 +1643,8 @@ declare class CloudantV1 extends CloudantBaseService {
1577
1643
  * provided, is the next level of sort. The field can be any field, using dotted notation if desired for sub-document
1578
1644
  * fields.
1579
1645
  *
1580
- * For example in JSON: `[{"fieldName1": "desc"}, {"fieldName2.subFieldName1": "desc"}]`
1646
+ * For example in JSON:
1647
+ * `[{"fieldName1": "desc"}, {"fieldName2.subFieldName1": "desc"}]`
1581
1648
  *
1582
1649
  * When sorting with multiple fields, ensure that there is an index already defined with all the sort fields in the
1583
1650
  * 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
@@ -1643,8 +1710,8 @@ declare class CloudantV1 extends CloudantBaseService {
1643
1710
  * argument.
1644
1711
  *
1645
1712
  * It is important for query performance to use appropriate selectors:
1646
- * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the basis
1647
- * of a query. You should include at least one of these in a selector.
1713
+ * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
1714
+ * `$lte` (but not `$ne`) can be used as the basis of a query. You should include at least one of these in a selector.
1648
1715
  * * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query selectors
1649
1716
  * use these operators in conjunction with equality operators or create and use a partial index to reduce the number
1650
1717
  * of documents that will need to be scanned.
@@ -1653,7 +1720,7 @@ declare class CloudantV1 extends CloudantBaseService {
1653
1720
  * combination and conditional operators.
1654
1721
  *
1655
1722
  * For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
1656
- * @param {boolean} [params.allowFallback] - Whether to allow fallback to other indexes. Default is true.
1723
+ * @param {boolean} [params.allowFallback] - Whether to allow fallback to other indexes. Default is true.
1657
1724
  * @param {string} [params.bookmark] - Opaque bookmark token used when paginating results.
1658
1725
  * @param {boolean} [params.conflicts] - A boolean value that indicates whether or not to include information about
1659
1726
  * existing conflicts in the document.
@@ -1670,7 +1737,8 @@ declare class CloudantV1 extends CloudantBaseService {
1670
1737
  * provided, is the next level of sort. The field can be any field, using dotted notation if desired for sub-document
1671
1738
  * fields.
1672
1739
  *
1673
- * For example in JSON: `[{"fieldName1": "desc"}, {"fieldName2.subFieldName1": "desc"}]`
1740
+ * For example in JSON:
1741
+ * `[{"fieldName1": "desc"}, {"fieldName2.subFieldName1": "desc"}]`
1674
1742
  *
1675
1743
  * When sorting with multiple fields, ensure that there is an index already defined with all the sort fields in the
1676
1744
  * 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
@@ -1736,8 +1804,8 @@ declare class CloudantV1 extends CloudantBaseService {
1736
1804
  * argument.
1737
1805
  *
1738
1806
  * It is important for query performance to use appropriate selectors:
1739
- * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the basis
1740
- * of a query. You should include at least one of these in a selector.
1807
+ * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
1808
+ * `$lte` (but not `$ne`) can be used as the basis of a query. You should include at least one of these in a selector.
1741
1809
  * * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query selectors
1742
1810
  * use these operators in conjunction with equality operators or create and use a partial index to reduce the number
1743
1811
  * of documents that will need to be scanned.
@@ -1746,7 +1814,7 @@ declare class CloudantV1 extends CloudantBaseService {
1746
1814
  * combination and conditional operators.
1747
1815
  *
1748
1816
  * For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
1749
- * @param {boolean} [params.allowFallback] - Whether to allow fallback to other indexes. Default is true.
1817
+ * @param {boolean} [params.allowFallback] - Whether to allow fallback to other indexes. Default is true.
1750
1818
  * @param {string} [params.bookmark] - Opaque bookmark token used when paginating results.
1751
1819
  * @param {boolean} [params.conflicts] - A boolean value that indicates whether or not to include information about
1752
1820
  * existing conflicts in the document.
@@ -1763,7 +1831,8 @@ declare class CloudantV1 extends CloudantBaseService {
1763
1831
  * provided, is the next level of sort. The field can be any field, using dotted notation if desired for sub-document
1764
1832
  * fields.
1765
1833
  *
1766
- * For example in JSON: `[{"fieldName1": "desc"}, {"fieldName2.subFieldName1": "desc"}]`
1834
+ * For example in JSON:
1835
+ * `[{"fieldName1": "desc"}, {"fieldName2.subFieldName1": "desc"}]`
1767
1836
  *
1768
1837
  * When sorting with multiple fields, ensure that there is an index already defined with all the sort fields in the
1769
1838
  * 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
@@ -1818,8 +1887,8 @@ declare class CloudantV1 extends CloudantBaseService {
1818
1887
  * argument.
1819
1888
  *
1820
1889
  * It is important for query performance to use appropriate selectors:
1821
- * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the basis
1822
- * of a query. You should include at least one of these in a selector.
1890
+ * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
1891
+ * `$lte` (but not `$ne`) can be used as the basis of a query. You should include at least one of these in a selector.
1823
1892
  * * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query selectors
1824
1893
  * use these operators in conjunction with equality operators or create and use a partial index to reduce the number
1825
1894
  * of documents that will need to be scanned.
@@ -1828,7 +1897,7 @@ declare class CloudantV1 extends CloudantBaseService {
1828
1897
  * combination and conditional operators.
1829
1898
  *
1830
1899
  * For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
1831
- * @param {boolean} [params.allowFallback] - Whether to allow fallback to other indexes. Default is true.
1900
+ * @param {boolean} [params.allowFallback] - Whether to allow fallback to other indexes. Default is true.
1832
1901
  * @param {string} [params.bookmark] - Opaque bookmark token used when paginating results.
1833
1902
  * @param {boolean} [params.conflicts] - A boolean value that indicates whether or not to include information about
1834
1903
  * existing conflicts in the document.
@@ -1845,7 +1914,8 @@ declare class CloudantV1 extends CloudantBaseService {
1845
1914
  * provided, is the next level of sort. The field can be any field, using dotted notation if desired for sub-document
1846
1915
  * fields.
1847
1916
  *
1848
- * For example in JSON: `[{"fieldName1": "desc"}, {"fieldName2.subFieldName1": "desc"}]`
1917
+ * For example in JSON:
1918
+ * `[{"fieldName1": "desc"}, {"fieldName2.subFieldName1": "desc"}]`
1849
1919
  *
1850
1920
  * When sorting with multiple fields, ensure that there is an index already defined with all the sort fields in the
1851
1921
  * 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
@@ -1910,8 +1980,8 @@ declare class CloudantV1 extends CloudantBaseService {
1910
1980
  * argument.
1911
1981
  *
1912
1982
  * It is important for query performance to use appropriate selectors:
1913
- * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the basis
1914
- * of a query. You should include at least one of these in a selector.
1983
+ * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
1984
+ * `$lte` (but not `$ne`) can be used as the basis of a query. You should include at least one of these in a selector.
1915
1985
  * * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query selectors
1916
1986
  * use these operators in conjunction with equality operators or create and use a partial index to reduce the number
1917
1987
  * of documents that will need to be scanned.
@@ -1920,7 +1990,7 @@ declare class CloudantV1 extends CloudantBaseService {
1920
1990
  * combination and conditional operators.
1921
1991
  *
1922
1992
  * For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
1923
- * @param {boolean} [params.allowFallback] - Whether to allow fallback to other indexes. Default is true.
1993
+ * @param {boolean} [params.allowFallback] - Whether to allow fallback to other indexes. Default is true.
1924
1994
  * @param {string} [params.bookmark] - Opaque bookmark token used when paginating results.
1925
1995
  * @param {boolean} [params.conflicts] - A boolean value that indicates whether or not to include information about
1926
1996
  * existing conflicts in the document.
@@ -1937,7 +2007,8 @@ declare class CloudantV1 extends CloudantBaseService {
1937
2007
  * provided, is the next level of sort. The field can be any field, using dotted notation if desired for sub-document
1938
2008
  * fields.
1939
2009
  *
1940
- * For example in JSON: `[{"fieldName1": "desc"}, {"fieldName2.subFieldName1": "desc"}]`
2010
+ * For example in JSON:
2011
+ * `[{"fieldName1": "desc"}, {"fieldName2.subFieldName1": "desc"}]`
1941
2012
  *
1942
2013
  * When sorting with multiple fields, ensure that there is an index already defined with all the sort fields in the
1943
2014
  * 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
@@ -2002,8 +2073,8 @@ declare class CloudantV1 extends CloudantBaseService {
2002
2073
  * argument.
2003
2074
  *
2004
2075
  * It is important for query performance to use appropriate selectors:
2005
- * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the basis
2006
- * of a query. You should include at least one of these in a selector.
2076
+ * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
2077
+ * `$lte` (but not `$ne`) can be used as the basis of a query. You should include at least one of these in a selector.
2007
2078
  * * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query selectors
2008
2079
  * use these operators in conjunction with equality operators or create and use a partial index to reduce the number
2009
2080
  * of documents that will need to be scanned.
@@ -2012,7 +2083,7 @@ declare class CloudantV1 extends CloudantBaseService {
2012
2083
  * combination and conditional operators.
2013
2084
  *
2014
2085
  * For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
2015
- * @param {boolean} [params.allowFallback] - Whether to allow fallback to other indexes. Default is true.
2086
+ * @param {boolean} [params.allowFallback] - Whether to allow fallback to other indexes. Default is true.
2016
2087
  * @param {string} [params.bookmark] - Opaque bookmark token used when paginating results.
2017
2088
  * @param {boolean} [params.conflicts] - A boolean value that indicates whether or not to include information about
2018
2089
  * existing conflicts in the document.
@@ -2029,7 +2100,8 @@ declare class CloudantV1 extends CloudantBaseService {
2029
2100
  * provided, is the next level of sort. The field can be any field, using dotted notation if desired for sub-document
2030
2101
  * fields.
2031
2102
  *
2032
- * For example in JSON: `[{"fieldName1": "desc"}, {"fieldName2.subFieldName1": "desc"}]`
2103
+ * For example in JSON:
2104
+ * `[{"fieldName1": "desc"}, {"fieldName2.subFieldName1": "desc"}]`
2033
2105
  *
2034
2106
  * When sorting with multiple fields, ensure that there is an index already defined with all the sort fields in the
2035
2107
  * 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
@@ -2150,7 +2222,7 @@ declare class CloudantV1 extends CloudantBaseService {
2150
2222
  * that are included must be indexed with the store:true option. The default is all fields.
2151
2223
  * @param {number} [params.limit] - Limit the number of the returned documents to the specified number.
2152
2224
  * @param {string[]} [params.sort] - Specifies the sort order of the results. In a grouped search (when group_field is
2153
- * used), this parameter specifies the sort order within a group. The default sort order is relevance. A JSON string
2225
+ * used), this parameter specifies the sort order within a group. The default sort order is relevance. A JSON string
2154
2226
  * of the form "fieldname&lt;type&gt;" or "-fieldname&lt;type&gt;" for descending order, where fieldname is the name
2155
2227
  * of a string or number field, and type is either a number, a string, or a JSON array of strings. The type part is
2156
2228
  * optional, and defaults to number. Some examples are "foo", "-foo", "bar&lt;string&gt;", "-foo&lt;number&gt;" and
@@ -2211,7 +2283,7 @@ declare class CloudantV1 extends CloudantBaseService {
2211
2283
  * that are included must be indexed with the store:true option. The default is all fields.
2212
2284
  * @param {number} [params.limit] - Limit the number of the returned documents to the specified number.
2213
2285
  * @param {string[]} [params.sort] - Specifies the sort order of the results. In a grouped search (when group_field is
2214
- * used), this parameter specifies the sort order within a group. The default sort order is relevance. A JSON string
2286
+ * used), this parameter specifies the sort order within a group. The default sort order is relevance. A JSON string
2215
2287
  * of the form "fieldname&lt;type&gt;" or "-fieldname&lt;type&gt;" for descending order, where fieldname is the name
2216
2288
  * of a string or number field, and type is either a number, a string, or a JSON array of strings. The type part is
2217
2289
  * optional, and defaults to number. Some examples are "foo", "-foo", "bar&lt;string&gt;", "-foo&lt;number&gt;" and
@@ -2353,12 +2425,15 @@ declare class CloudantV1 extends CloudantBaseService {
2353
2425
  * @param {string} params.docId - Path parameter to specify the ID of the stored replication configuration in the
2354
2426
  * `_replicator` database.
2355
2427
  * @param {string} [params.ifNoneMatch] - Header parameter for a conditional HTTP request not matching an ETag.
2356
- * @param {boolean} [params.attachments] - Query parameter to specify whether to include attachments bodies in a
2357
- * response.
2428
+ * @param {boolean} [params.attachments] - Query parameter to specify whether to include attachment content in the
2429
+ * response. Note that when used with a view-style query or changes feed this only applies when requesting documents
2430
+ * in the response.
2358
2431
  * @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
2359
- * in attachment stubs if the particular attachment is compressed.
2432
+ * for compressed attachments. Note that when used with a view-style query or changes feed this only applies when
2433
+ * requesting documents in the response.
2360
2434
  * @param {boolean} [params.conflicts] - Query parameter to specify whether to include a list of conflicted revisions
2361
- * in each returned document. Active only when `include_docs` is `true`.
2435
+ * in each returned document. Note that when used with a view-style query or changes feed this only applies when
2436
+ * requesting documents in the response.
2362
2437
  * @param {boolean} [params.deletedConflicts] - Query parameter to specify whether to include a list of deleted
2363
2438
  * conflicted revisions in the `_deleted_conflicts` property of the returned document.
2364
2439
  * @param {boolean} [params.latest] - Query parameter to specify whether to force retrieving latest leaf revision, no
@@ -2701,10 +2776,12 @@ declare class CloudantV1 extends CloudantBaseService {
2701
2776
  * @param {string} [params.accept] - The type of the response: application/json, multipart/mixed, multipart/related,
2702
2777
  * or application/octet-stream.
2703
2778
  * @param {string} [params.ifNoneMatch] - Header parameter for a conditional HTTP request not matching an ETag.
2704
- * @param {boolean} [params.attachments] - Query parameter to specify whether to include attachments bodies in a
2705
- * response.
2779
+ * @param {boolean} [params.attachments] - Query parameter to specify whether to include attachment content in the
2780
+ * response. Note that when used with a view-style query or changes feed this only applies when requesting documents
2781
+ * in the response.
2706
2782
  * @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
2707
- * in attachment stubs if the particular attachment is compressed.
2783
+ * for compressed attachments. Note that when used with a view-style query or changes feed this only applies when
2784
+ * requesting documents in the response.
2708
2785
  * @param {boolean} [params.localSeq] - Query parameter to specify whether to include the last update sequence for the
2709
2786
  * document.
2710
2787
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
@@ -2863,8 +2940,8 @@ declare class CloudantV1 extends CloudantBaseService {
2863
2940
  /**
2864
2941
  * Retrieve information about whether the server is up.
2865
2942
  *
2866
- * Confirms that the server is up, running, and ready to respond to requests. If `maintenance_mode` is `true` or
2867
- * `nolb`, the endpoint returns a 404 response.
2943
+ * Confirms that the server is up, running, and ready to respond to requests. If the cluster is unavailable the
2944
+ * endpoint returns a `503` response code.
2868
2945
  *
2869
2946
  * **Tip:** The authentication for this endpoint is only enforced when using IAM.
2870
2947
  *
@@ -2923,21 +3000,21 @@ declare namespace CloudantV1 {
2923
3000
  }
2924
3001
  /** Parameters for the `getDbUpdates` operation. */
2925
3002
  export interface GetDbUpdatesParams extends DefaultParams {
2926
- /** Query parameter to specify whether to return the documents in descending by key order. */
3003
+ /** Query parameter to specify whether to return rows in descending by key order. */
2927
3004
  descending?: boolean;
2928
3005
  /** Query parameter to specify the changes feed type. */
2929
3006
  feed?: GetDbUpdatesConstants.Feed | string;
2930
3007
  /** Query parameter to specify the period in milliseconds after which an empty line is sent in the results. Off
2931
- * by default and only applicable for
2932
- * `continuous` and `eventsource` feeds. Overrides any timeout to keep the feed alive indefinitely. May also be
2933
- * `true` to use a value of `60000`.
3008
+ * by default and only applicable for `continuous` and `eventsource` feeds. Overrides any timeout to keep the feed
3009
+ * alive indefinitely. May also be `true` to use a value of `60000`.
2934
3010
  *
2935
3011
  * **Note:** Delivery of heartbeats cannot be relied on at specific intervals. If your application runs in an
2936
3012
  * environment where idle network connections may break, `heartbeat` is not suitable as a keepalive mechanism.
2937
3013
  * Instead, consider one of the following options:
2938
- * * Use the `timeout` parameter with a value that is compatible with your network environment.
2939
- * * Switch to scheduled usage of one of the non-continuous changes feed types
2940
- * (`normal` or `longpoll`).
3014
+ * * Use the `timeout` parameter with a value that is compatible with
3015
+ * your network environment.
3016
+ * * Switch to scheduled usage of one of the non-continuous changes feed
3017
+ * types (`normal` or `longpoll`).
2941
3018
  * * Use TCP keepalive.
2942
3019
  */
2943
3020
  heartbeat?: number;
@@ -2950,7 +3027,11 @@ declare namespace CloudantV1 {
2950
3027
  */
2951
3028
  timeout?: number;
2952
3029
  /** Query parameter to specify to start the results from the change immediately after the given update sequence.
2953
- * Can be a valid update sequence or `now` value. Default is `0` i.e. all changes.
3030
+ * Possible values are:
3031
+ * * `0` for all available changes (default).
3032
+ * * `now` for future changes.
3033
+ * * A valid update sequence, for example, from the `seq` value of a
3034
+ * change received before.
2954
3035
  */
2955
3036
  since?: string;
2956
3037
  }
@@ -2997,8 +3078,9 @@ declare namespace CloudantV1 {
2997
3078
  * supplied argument.
2998
3079
  *
2999
3080
  * It is important for query performance to use appropriate selectors:
3000
- * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the
3001
- * basis of a query. You should include at least one of these in a selector.
3081
+ * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
3082
+ * `$lte` (but not `$ne`) can be used as the basis of a query. You should include at least one of these in a
3083
+ * selector.
3002
3084
  * * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query
3003
3085
  * selectors use these operators in conjunction with equality operators or create and use a partial index to reduce
3004
3086
  * the number of documents that will need to be scanned.
@@ -3013,17 +3095,22 @@ declare namespace CloudantV1 {
3013
3095
  * Overrides `since` query parameter.
3014
3096
  */
3015
3097
  lastEventId?: string;
3016
- /** Query parameter to specify whether to include the encoding information in attachment stubs if the particular
3017
- * attachment is compressed.
3098
+ /** Query parameter to specify whether to include the encoding information for compressed attachments. Note that
3099
+ * when used with a view-style query or changes feed this only applies when requesting documents in the response.
3018
3100
  */
3019
3101
  attEncodingInfo?: boolean;
3020
- /** Query parameter to specify whether to include attachments bodies in a response. */
3102
+ /** Query parameter to specify whether to include attachment content in the response. Note that when used with a
3103
+ * view-style query or changes feed this only applies when requesting documents in the response.
3104
+ */
3021
3105
  attachments?: boolean;
3022
- /** Query parameter to specify whether to include a list of conflicted revisions in each returned document.
3023
- * Active only when `include_docs` is `true`.
3106
+ /** Query parameter to specify whether to include a list of conflicted revisions in each returned document. Note
3107
+ * that when used with a view-style query or changes feed this only applies when requesting documents in the
3108
+ * response.
3024
3109
  */
3025
3110
  conflicts?: boolean;
3026
- /** Query parameter to specify whether to return the documents in descending by key order. */
3111
+ /** Query parameter to specify whether to return changes in the descending order with most recent change first.
3112
+ * The `since` parameter has no effect when using descending order.
3113
+ */
3027
3114
  descending?: boolean;
3028
3115
  /** Query parameter to specify the changes feed type. */
3029
3116
  feed?: PostChangesConstants.Feed | string;
@@ -3031,11 +3118,11 @@ declare namespace CloudantV1 {
3031
3118
  *
3032
3119
  * The built-in filter types are:
3033
3120
  * * `_design` - Returns only changes to design documents.
3034
- * * `_doc_ids` - Returns changes for documents with an ID matching one specified in
3035
- * `doc_ids` request body parameter. (`POST` only)
3036
- * * `_selector` - Returns changes for documents that match the `selector`
3037
- * request body parameter. The selector syntax is the same as used for
3038
- * `_find`. (`POST` only)
3121
+ * * `_doc_ids` - Returns changes for documents with an ID matching one
3122
+ * specified in `doc_ids` request body parameter. (`POST` only)
3123
+ * * `_selector` - Returns changes for documents that match the
3124
+ * `selector` request body parameter. The selector syntax is the same
3125
+ * as used for `_find`. (`POST` only)
3039
3126
  * * `_view` - Returns changes for documents that match an existing map
3040
3127
  * function in the view specified by the query parameter `view`.
3041
3128
  *
@@ -3048,16 +3135,16 @@ declare namespace CloudantV1 {
3048
3135
  */
3049
3136
  filter?: string;
3050
3137
  /** Query parameter to specify the period in milliseconds after which an empty line is sent in the results. Off
3051
- * by default and only applicable for
3052
- * `continuous` and `eventsource` feeds. Overrides any timeout to keep the feed alive indefinitely. May also be
3053
- * `true` to use a value of `60000`.
3138
+ * by default and only applicable for `continuous` and `eventsource` feeds. Overrides any timeout to keep the feed
3139
+ * alive indefinitely. May also be `true` to use a value of `60000`.
3054
3140
  *
3055
3141
  * **Note:** Delivery of heartbeats cannot be relied on at specific intervals. If your application runs in an
3056
3142
  * environment where idle network connections may break, `heartbeat` is not suitable as a keepalive mechanism.
3057
3143
  * Instead, consider one of the following options:
3058
- * * Use the `timeout` parameter with a value that is compatible with your network environment.
3059
- * * Switch to scheduled usage of one of the non-continuous changes feed types
3060
- * (`normal` or `longpoll`).
3144
+ * * Use the `timeout` parameter with a value that is compatible with
3145
+ * your network environment.
3146
+ * * Switch to scheduled usage of one of the non-continuous changes feed
3147
+ * types (`normal` or `longpoll`).
3061
3148
  * * Use TCP keepalive.
3062
3149
  */
3063
3150
  heartbeat?: number;
@@ -3072,7 +3159,11 @@ declare namespace CloudantV1 {
3072
3159
  */
3073
3160
  seqInterval?: number;
3074
3161
  /** Query parameter to specify to start the results from the change immediately after the given update sequence.
3075
- * Can be a valid update sequence or `now` value. Default is `0` i.e. all changes.
3162
+ * Possible values are:
3163
+ * * `0` for all available changes (default).
3164
+ * * `now` for future changes.
3165
+ * * A valid update sequence, for example, from the `seq` value of a
3166
+ * change received before.
3076
3167
  */
3077
3168
  since?: string;
3078
3169
  /** Query parameter to specify how many revisions are returned in the changes array. The default, `main_only`,
@@ -3139,8 +3230,9 @@ declare namespace CloudantV1 {
3139
3230
  * supplied argument.
3140
3231
  *
3141
3232
  * It is important for query performance to use appropriate selectors:
3142
- * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the
3143
- * basis of a query. You should include at least one of these in a selector.
3233
+ * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
3234
+ * `$lte` (but not `$ne`) can be used as the basis of a query. You should include at least one of these in a
3235
+ * selector.
3144
3236
  * * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query
3145
3237
  * selectors use these operators in conjunction with equality operators or create and use a partial index to reduce
3146
3238
  * the number of documents that will need to be scanned.
@@ -3155,17 +3247,22 @@ declare namespace CloudantV1 {
3155
3247
  * Overrides `since` query parameter.
3156
3248
  */
3157
3249
  lastEventId?: string;
3158
- /** Query parameter to specify whether to include the encoding information in attachment stubs if the particular
3159
- * attachment is compressed.
3250
+ /** Query parameter to specify whether to include the encoding information for compressed attachments. Note that
3251
+ * when used with a view-style query or changes feed this only applies when requesting documents in the response.
3160
3252
  */
3161
3253
  attEncodingInfo?: boolean;
3162
- /** Query parameter to specify whether to include attachments bodies in a response. */
3254
+ /** Query parameter to specify whether to include attachment content in the response. Note that when used with a
3255
+ * view-style query or changes feed this only applies when requesting documents in the response.
3256
+ */
3163
3257
  attachments?: boolean;
3164
- /** Query parameter to specify whether to include a list of conflicted revisions in each returned document.
3165
- * Active only when `include_docs` is `true`.
3258
+ /** Query parameter to specify whether to include a list of conflicted revisions in each returned document. Note
3259
+ * that when used with a view-style query or changes feed this only applies when requesting documents in the
3260
+ * response.
3166
3261
  */
3167
3262
  conflicts?: boolean;
3168
- /** Query parameter to specify whether to return the documents in descending by key order. */
3263
+ /** Query parameter to specify whether to return changes in the descending order with most recent change first.
3264
+ * The `since` parameter has no effect when using descending order.
3265
+ */
3169
3266
  descending?: boolean;
3170
3267
  /** Query parameter to specify the changes feed type. */
3171
3268
  feed?: PostChangesAsStreamConstants.Feed | string;
@@ -3173,11 +3270,11 @@ declare namespace CloudantV1 {
3173
3270
  *
3174
3271
  * The built-in filter types are:
3175
3272
  * * `_design` - Returns only changes to design documents.
3176
- * * `_doc_ids` - Returns changes for documents with an ID matching one specified in
3177
- * `doc_ids` request body parameter. (`POST` only)
3178
- * * `_selector` - Returns changes for documents that match the `selector`
3179
- * request body parameter. The selector syntax is the same as used for
3180
- * `_find`. (`POST` only)
3273
+ * * `_doc_ids` - Returns changes for documents with an ID matching one
3274
+ * specified in `doc_ids` request body parameter. (`POST` only)
3275
+ * * `_selector` - Returns changes for documents that match the
3276
+ * `selector` request body parameter. The selector syntax is the same
3277
+ * as used for `_find`. (`POST` only)
3181
3278
  * * `_view` - Returns changes for documents that match an existing map
3182
3279
  * function in the view specified by the query parameter `view`.
3183
3280
  *
@@ -3190,16 +3287,16 @@ declare namespace CloudantV1 {
3190
3287
  */
3191
3288
  filter?: string;
3192
3289
  /** Query parameter to specify the period in milliseconds after which an empty line is sent in the results. Off
3193
- * by default and only applicable for
3194
- * `continuous` and `eventsource` feeds. Overrides any timeout to keep the feed alive indefinitely. May also be
3195
- * `true` to use a value of `60000`.
3290
+ * by default and only applicable for `continuous` and `eventsource` feeds. Overrides any timeout to keep the feed
3291
+ * alive indefinitely. May also be `true` to use a value of `60000`.
3196
3292
  *
3197
3293
  * **Note:** Delivery of heartbeats cannot be relied on at specific intervals. If your application runs in an
3198
3294
  * environment where idle network connections may break, `heartbeat` is not suitable as a keepalive mechanism.
3199
3295
  * Instead, consider one of the following options:
3200
- * * Use the `timeout` parameter with a value that is compatible with your network environment.
3201
- * * Switch to scheduled usage of one of the non-continuous changes feed types
3202
- * (`normal` or `longpoll`).
3296
+ * * Use the `timeout` parameter with a value that is compatible with
3297
+ * your network environment.
3298
+ * * Switch to scheduled usage of one of the non-continuous changes feed
3299
+ * types (`normal` or `longpoll`).
3203
3300
  * * Use TCP keepalive.
3204
3301
  */
3205
3302
  heartbeat?: number;
@@ -3214,7 +3311,11 @@ declare namespace CloudantV1 {
3214
3311
  */
3215
3312
  seqInterval?: number;
3216
3313
  /** Query parameter to specify to start the results from the change immediately after the given update sequence.
3217
- * Can be a valid update sequence or `now` value. Default is `0` i.e. all changes.
3314
+ * Possible values are:
3315
+ * * `0` for all available changes (default).
3316
+ * * `now` for future changes.
3317
+ * * A valid update sequence, for example, from the `seq` value of a
3318
+ * change received before.
3218
3319
  */
3219
3320
  since?: string;
3220
3321
  /** Query parameter to specify how many revisions are returned in the changes array. The default, `main_only`,
@@ -3255,7 +3356,7 @@ declare namespace CloudantV1 {
3255
3356
  }
3256
3357
  /** Parameters for the `getAllDbs` operation. */
3257
3358
  export interface GetAllDbsParams extends DefaultParams {
3258
- /** Query parameter to specify whether to return the documents in descending by key order. */
3359
+ /** Query parameter to specify whether to return rows in descending by key order. */
3259
3360
  descending?: boolean;
3260
3361
  /** Query parameter to specify to stop returning records when the specified key is reached. String
3261
3362
  * representation of any JSON type that matches the key type emitted by the view function.
@@ -3349,21 +3450,23 @@ declare namespace CloudantV1 {
3349
3450
  export interface PostAllDocsParams extends DefaultParams {
3350
3451
  /** Path parameter to specify the database name. */
3351
3452
  db: string;
3352
- /** Parameter to specify whether to include the encoding information in attachment stubs if the particular
3353
- * attachment is compressed.
3453
+ /** Parameter to specify whether to include the encoding information for compressed attachments. This only
3454
+ * applies when requesting documents in the response.
3354
3455
  */
3355
3456
  attEncodingInfo?: boolean;
3356
- /** Parameter to specify whether to include attachments bodies in a response. */
3457
+ /** Parameter to specify whether to include attachment content in included document content or only the
3458
+ * attachment metadata. This only applies when requesting documents in the response.
3459
+ */
3357
3460
  attachments?: boolean;
3358
- /** Parameter to specify whether to include a list of conflicted revisions in each returned document. Active
3359
- * only when `include_docs` is `true`.
3461
+ /** Parameter to specify whether to include a list of conflicted revisions in each returned document. This only
3462
+ * applies when requesting documents in the response.
3360
3463
  */
3361
3464
  conflicts?: boolean;
3362
3465
  /** Parameter to specify whether to return the documents in descending by key order. */
3363
3466
  descending?: boolean;
3364
3467
  /** Parameter to specify whether to include the full content of the documents in the response. */
3365
3468
  includeDocs?: boolean;
3366
- /** Parameter to specify whether the specified end key should be included in the result. */
3469
+ /** Parameter to specify whether to include the specified end key in the result. */
3367
3470
  inclusiveEnd?: boolean;
3368
3471
  /** Parameter to specify the number of returned documents to limit the result to. */
3369
3472
  limit?: number;
@@ -3386,21 +3489,23 @@ declare namespace CloudantV1 {
3386
3489
  export interface PostAllDocsAsStreamParams extends DefaultParams {
3387
3490
  /** Path parameter to specify the database name. */
3388
3491
  db: string;
3389
- /** Parameter to specify whether to include the encoding information in attachment stubs if the particular
3390
- * attachment is compressed.
3492
+ /** Parameter to specify whether to include the encoding information for compressed attachments. This only
3493
+ * applies when requesting documents in the response.
3391
3494
  */
3392
3495
  attEncodingInfo?: boolean;
3393
- /** Parameter to specify whether to include attachments bodies in a response. */
3496
+ /** Parameter to specify whether to include attachment content in included document content or only the
3497
+ * attachment metadata. This only applies when requesting documents in the response.
3498
+ */
3394
3499
  attachments?: boolean;
3395
- /** Parameter to specify whether to include a list of conflicted revisions in each returned document. Active
3396
- * only when `include_docs` is `true`.
3500
+ /** Parameter to specify whether to include a list of conflicted revisions in each returned document. This only
3501
+ * applies when requesting documents in the response.
3397
3502
  */
3398
3503
  conflicts?: boolean;
3399
3504
  /** Parameter to specify whether to return the documents in descending by key order. */
3400
3505
  descending?: boolean;
3401
3506
  /** Parameter to specify whether to include the full content of the documents in the response. */
3402
3507
  includeDocs?: boolean;
3403
- /** Parameter to specify whether the specified end key should be included in the result. */
3508
+ /** Parameter to specify whether to include the specified end key in the result. */
3404
3509
  inclusiveEnd?: boolean;
3405
3510
  /** Parameter to specify the number of returned documents to limit the result to. */
3406
3511
  limit?: number;
@@ -3450,10 +3555,12 @@ declare namespace CloudantV1 {
3450
3555
  db: string;
3451
3556
  /** List of document items to get in bulk. */
3452
3557
  docs: BulkGetQueryDocument[];
3453
- /** Query parameter to specify whether to include attachments bodies in a response. */
3558
+ /** Query parameter to specify whether to include attachment content in the response. Note that when used with a
3559
+ * view-style query or changes feed this only applies when requesting documents in the response.
3560
+ */
3454
3561
  attachments?: boolean;
3455
- /** Query parameter to specify whether to include the encoding information in attachment stubs if the particular
3456
- * attachment is compressed.
3562
+ /** Query parameter to specify whether to include the encoding information for compressed attachments. Note that
3563
+ * when used with a view-style query or changes feed this only applies when requesting documents in the response.
3457
3564
  */
3458
3565
  attEncodingInfo?: boolean;
3459
3566
  /** Query parameter to specify whether to force retrieving latest leaf revision, no matter what rev was
@@ -3469,10 +3576,12 @@ declare namespace CloudantV1 {
3469
3576
  db: string;
3470
3577
  /** List of document items to get in bulk. */
3471
3578
  docs: BulkGetQueryDocument[];
3472
- /** Query parameter to specify whether to include attachments bodies in a response. */
3579
+ /** Query parameter to specify whether to include attachment content in the response. Note that when used with a
3580
+ * view-style query or changes feed this only applies when requesting documents in the response.
3581
+ */
3473
3582
  attachments?: boolean;
3474
- /** Query parameter to specify whether to include the encoding information in attachment stubs if the particular
3475
- * attachment is compressed.
3583
+ /** Query parameter to specify whether to include the encoding information for compressed attachments. Note that
3584
+ * when used with a view-style query or changes feed this only applies when requesting documents in the response.
3476
3585
  */
3477
3586
  attEncodingInfo?: boolean;
3478
3587
  /** Query parameter to specify whether to force retrieving latest leaf revision, no matter what rev was
@@ -3488,10 +3597,12 @@ declare namespace CloudantV1 {
3488
3597
  db: string;
3489
3598
  /** List of document items to get in bulk. */
3490
3599
  docs: BulkGetQueryDocument[];
3491
- /** Query parameter to specify whether to include attachments bodies in a response. */
3600
+ /** Query parameter to specify whether to include attachment content in the response. Note that when used with a
3601
+ * view-style query or changes feed this only applies when requesting documents in the response.
3602
+ */
3492
3603
  attachments?: boolean;
3493
- /** Query parameter to specify whether to include the encoding information in attachment stubs if the particular
3494
- * attachment is compressed.
3604
+ /** Query parameter to specify whether to include the encoding information for compressed attachments. Note that
3605
+ * when used with a view-style query or changes feed this only applies when requesting documents in the response.
3495
3606
  */
3496
3607
  attEncodingInfo?: boolean;
3497
3608
  /** Query parameter to specify whether to force retrieving latest leaf revision, no matter what rev was
@@ -3507,10 +3618,12 @@ declare namespace CloudantV1 {
3507
3618
  db: string;
3508
3619
  /** List of document items to get in bulk. */
3509
3620
  docs: BulkGetQueryDocument[];
3510
- /** Query parameter to specify whether to include attachments bodies in a response. */
3621
+ /** Query parameter to specify whether to include attachment content in the response. Note that when used with a
3622
+ * view-style query or changes feed this only applies when requesting documents in the response.
3623
+ */
3511
3624
  attachments?: boolean;
3512
- /** Query parameter to specify whether to include the encoding information in attachment stubs if the particular
3513
- * attachment is compressed.
3625
+ /** Query parameter to specify whether to include the encoding information for compressed attachments. Note that
3626
+ * when used with a view-style query or changes feed this only applies when requesting documents in the response.
3514
3627
  */
3515
3628
  attEncodingInfo?: boolean;
3516
3629
  /** Query parameter to specify whether to force retrieving latest leaf revision, no matter what rev was
@@ -3550,14 +3663,17 @@ declare namespace CloudantV1 {
3550
3663
  docId: string;
3551
3664
  /** Header parameter for a conditional HTTP request not matching an ETag. */
3552
3665
  ifNoneMatch?: string;
3553
- /** Query parameter to specify whether to include attachments bodies in a response. */
3666
+ /** Query parameter to specify whether to include attachment content in the response. Note that when used with a
3667
+ * view-style query or changes feed this only applies when requesting documents in the response.
3668
+ */
3554
3669
  attachments?: boolean;
3555
- /** Query parameter to specify whether to include the encoding information in attachment stubs if the particular
3556
- * attachment is compressed.
3670
+ /** Query parameter to specify whether to include the encoding information for compressed attachments. Note that
3671
+ * when used with a view-style query or changes feed this only applies when requesting documents in the response.
3557
3672
  */
3558
3673
  attEncodingInfo?: boolean;
3559
- /** Query parameter to specify whether to include a list of conflicted revisions in each returned document.
3560
- * Active only when `include_docs` is `true`.
3674
+ /** Query parameter to specify whether to include a list of conflicted revisions in each returned document. Note
3675
+ * that when used with a view-style query or changes feed this only applies when requesting documents in the
3676
+ * response.
3561
3677
  */
3562
3678
  conflicts?: boolean;
3563
3679
  /** Query parameter to specify whether to include a list of deleted conflicted revisions in the
@@ -3589,14 +3705,17 @@ declare namespace CloudantV1 {
3589
3705
  docId: string;
3590
3706
  /** Header parameter for a conditional HTTP request not matching an ETag. */
3591
3707
  ifNoneMatch?: string;
3592
- /** Query parameter to specify whether to include attachments bodies in a response. */
3708
+ /** Query parameter to specify whether to include attachment content in the response. Note that when used with a
3709
+ * view-style query or changes feed this only applies when requesting documents in the response.
3710
+ */
3593
3711
  attachments?: boolean;
3594
- /** Query parameter to specify whether to include the encoding information in attachment stubs if the particular
3595
- * attachment is compressed.
3712
+ /** Query parameter to specify whether to include the encoding information for compressed attachments. Note that
3713
+ * when used with a view-style query or changes feed this only applies when requesting documents in the response.
3596
3714
  */
3597
3715
  attEncodingInfo?: boolean;
3598
- /** Query parameter to specify whether to include a list of conflicted revisions in each returned document.
3599
- * Active only when `include_docs` is `true`.
3716
+ /** Query parameter to specify whether to include a list of conflicted revisions in each returned document. Note
3717
+ * that when used with a view-style query or changes feed this only applies when requesting documents in the
3718
+ * response.
3600
3719
  */
3601
3720
  conflicts?: boolean;
3602
3721
  /** Query parameter to specify whether to include a list of deleted conflicted revisions in the
@@ -3628,14 +3747,17 @@ declare namespace CloudantV1 {
3628
3747
  docId: string;
3629
3748
  /** Header parameter for a conditional HTTP request not matching an ETag. */
3630
3749
  ifNoneMatch?: string;
3631
- /** Query parameter to specify whether to include attachments bodies in a response. */
3750
+ /** Query parameter to specify whether to include attachment content in the response. Note that when used with a
3751
+ * view-style query or changes feed this only applies when requesting documents in the response.
3752
+ */
3632
3753
  attachments?: boolean;
3633
- /** Query parameter to specify whether to include the encoding information in attachment stubs if the particular
3634
- * attachment is compressed.
3754
+ /** Query parameter to specify whether to include the encoding information for compressed attachments. Note that
3755
+ * when used with a view-style query or changes feed this only applies when requesting documents in the response.
3635
3756
  */
3636
3757
  attEncodingInfo?: boolean;
3637
- /** Query parameter to specify whether to include a list of conflicted revisions in each returned document.
3638
- * Active only when `include_docs` is `true`.
3758
+ /** Query parameter to specify whether to include a list of conflicted revisions in each returned document. Note
3759
+ * that when used with a view-style query or changes feed this only applies when requesting documents in the
3760
+ * response.
3639
3761
  */
3640
3762
  conflicts?: boolean;
3641
3763
  /** Query parameter to specify whether to include a list of deleted conflicted revisions in the
@@ -3667,14 +3789,17 @@ declare namespace CloudantV1 {
3667
3789
  docId: string;
3668
3790
  /** Header parameter for a conditional HTTP request not matching an ETag. */
3669
3791
  ifNoneMatch?: string;
3670
- /** Query parameter to specify whether to include attachments bodies in a response. */
3792
+ /** Query parameter to specify whether to include attachment content in the response. Note that when used with a
3793
+ * view-style query or changes feed this only applies when requesting documents in the response.
3794
+ */
3671
3795
  attachments?: boolean;
3672
- /** Query parameter to specify whether to include the encoding information in attachment stubs if the particular
3673
- * attachment is compressed.
3796
+ /** Query parameter to specify whether to include the encoding information for compressed attachments. Note that
3797
+ * when used with a view-style query or changes feed this only applies when requesting documents in the response.
3674
3798
  */
3675
3799
  attEncodingInfo?: boolean;
3676
- /** Query parameter to specify whether to include a list of conflicted revisions in each returned document.
3677
- * Active only when `include_docs` is `true`.
3800
+ /** Query parameter to specify whether to include a list of conflicted revisions in each returned document. Note
3801
+ * that when used with a view-style query or changes feed this only applies when requesting documents in the
3802
+ * response.
3678
3803
  */
3679
3804
  conflicts?: boolean;
3680
3805
  /** Query parameter to specify whether to include a list of deleted conflicted revisions in the
@@ -3784,14 +3909,17 @@ declare namespace CloudantV1 {
3784
3909
  ddoc: string;
3785
3910
  /** Header parameter for a conditional HTTP request not matching an ETag. */
3786
3911
  ifNoneMatch?: string;
3787
- /** Query parameter to specify whether to include attachments bodies in a response. */
3912
+ /** Query parameter to specify whether to include attachment content in the response. Note that when used with a
3913
+ * view-style query or changes feed this only applies when requesting documents in the response.
3914
+ */
3788
3915
  attachments?: boolean;
3789
- /** Query parameter to specify whether to include the encoding information in attachment stubs if the particular
3790
- * attachment is compressed.
3916
+ /** Query parameter to specify whether to include the encoding information for compressed attachments. Note that
3917
+ * when used with a view-style query or changes feed this only applies when requesting documents in the response.
3791
3918
  */
3792
3919
  attEncodingInfo?: boolean;
3793
- /** Query parameter to specify whether to include a list of conflicted revisions in each returned document.
3794
- * Active only when `include_docs` is `true`.
3920
+ /** Query parameter to specify whether to include a list of conflicted revisions in each returned document. Note
3921
+ * that when used with a view-style query or changes feed this only applies when requesting documents in the
3922
+ * response.
3795
3923
  */
3796
3924
  conflicts?: boolean;
3797
3925
  /** Query parameter to specify whether to include a list of deleted conflicted revisions in the
@@ -3862,21 +3990,23 @@ declare namespace CloudantV1 {
3862
3990
  export interface PostDesignDocsParams extends DefaultParams {
3863
3991
  /** Path parameter to specify the database name. */
3864
3992
  db: string;
3865
- /** Parameter to specify whether to include the encoding information in attachment stubs if the particular
3866
- * attachment is compressed.
3993
+ /** Parameter to specify whether to include the encoding information for compressed attachments. This only
3994
+ * applies when requesting documents in the response.
3867
3995
  */
3868
3996
  attEncodingInfo?: boolean;
3869
- /** Parameter to specify whether to include attachments bodies in a response. */
3997
+ /** Parameter to specify whether to include attachment content in included document content or only the
3998
+ * attachment metadata. This only applies when requesting documents in the response.
3999
+ */
3870
4000
  attachments?: boolean;
3871
- /** Parameter to specify whether to include a list of conflicted revisions in each returned document. Active
3872
- * only when `include_docs` is `true`.
4001
+ /** Parameter to specify whether to include a list of conflicted revisions in each returned document. This only
4002
+ * applies when requesting documents in the response.
3873
4003
  */
3874
4004
  conflicts?: boolean;
3875
4005
  /** Parameter to specify whether to return the documents in descending by key order. */
3876
4006
  descending?: boolean;
3877
4007
  /** Parameter to specify whether to include the full content of the documents in the response. */
3878
4008
  includeDocs?: boolean;
3879
- /** Parameter to specify whether the specified end key should be included in the result. */
4009
+ /** Parameter to specify whether to include the specified end key in the result. */
3880
4010
  inclusiveEnd?: boolean;
3881
4011
  /** Parameter to specify the number of returned documents to limit the result to. */
3882
4012
  limit?: number;
@@ -3924,21 +4054,23 @@ declare namespace CloudantV1 {
3924
4054
  ddoc: string;
3925
4055
  /** Path parameter to specify the map reduce view function name. */
3926
4056
  view: string;
3927
- /** Parameter to specify whether to include the encoding information in attachment stubs if the particular
3928
- * attachment is compressed.
4057
+ /** Parameter to specify whether to include the encoding information for compressed attachments. This only
4058
+ * applies when requesting documents in the response.
3929
4059
  */
3930
4060
  attEncodingInfo?: boolean;
3931
- /** Parameter to specify whether to include attachments bodies in a response. */
4061
+ /** Parameter to specify whether to include attachment content in included document content or only the
4062
+ * attachment metadata. This only applies when requesting documents in the response.
4063
+ */
3932
4064
  attachments?: boolean;
3933
- /** Parameter to specify whether to include a list of conflicted revisions in each returned document. Active
3934
- * only when `include_docs` is `true`.
4065
+ /** Parameter to specify whether to include a list of conflicted revisions in each returned document. This only
4066
+ * applies when requesting documents in the response.
3935
4067
  */
3936
4068
  conflicts?: boolean;
3937
4069
  /** Parameter to specify whether to return the documents in descending by key order. */
3938
4070
  descending?: boolean;
3939
4071
  /** Parameter to specify whether to include the full content of the documents in the response. */
3940
4072
  includeDocs?: boolean;
3941
- /** Parameter to specify whether the specified end key should be included in the result. */
4073
+ /** Parameter to specify whether to include the specified end key in the result. */
3942
4074
  inclusiveEnd?: boolean;
3943
4075
  /** Parameter to specify the number of returned documents to limit the result to. */
3944
4076
  limit?: number;
@@ -3950,7 +4082,7 @@ declare namespace CloudantV1 {
3950
4082
  updateSeq?: boolean;
3951
4083
  /** Schema for any JSON type. */
3952
4084
  endKey?: any;
3953
- /** Schema for a document ID. */
4085
+ /** Stop returning rows at the specified document ID. No effect if using `group` or not providing end key. */
3954
4086
  endKeyDocId?: string;
3955
4087
  /** Parameter to specify whether to group reduced results by key. Valid only if a reduce function defined in the
3956
4088
  * view. If the view emits key in JSON array format, then it is possible to reduce groups further based on the
@@ -3962,31 +4094,36 @@ declare namespace CloudantV1 {
3962
4094
  * unset, results are grouped by the entire array key, returning a reduced value for each complete key.
3963
4095
  */
3964
4096
  groupLevel?: number;
3965
- /** Schema for any JSON type. */
4097
+ /** Parameter to specify to return only rows that match the specified key. String representation of any JSON
4098
+ * type that matches the key type emitted by the view function.
4099
+ */
3966
4100
  key?: any;
3967
- /** Parameter to specify returning only documents that match any of the specified keys. A JSON array of keys
3968
- * that match the key type emitted by the view function.
4101
+ /** Parameter to specify returning only rows that match any of the specified keys. A JSON array of keys that
4102
+ * match the key type emitted by the view function.
3969
4103
  */
3970
4104
  keys?: any[];
3971
4105
  /** Parameter to specify whether to use the reduce function in a map-reduce view. Default is true when a reduce
3972
4106
  * function is defined.
3973
4107
  *
3974
- * A default `reduce` view type can be disabled to behave like a `map` by setting `reduce=false` explicitly.
4108
+ * A default `reduce` view type can be disabled to behave like a
4109
+ * `map` by setting `reduce=false` explicitly.
3975
4110
  *
3976
- * Be aware that `include_docs=true` can only be used with `map` views.
4111
+ * Be aware that `include_docs=true` is only for `map` views. Reduced views do not include document IDs in view
4112
+ * rows.
3977
4113
  */
3978
4114
  reduce?: boolean;
3979
- /** Query parameter to specify whether use the same replica of the index on each request. The default value
3980
- * `false` contacts all replicas and returns the result from the first, fastest, responder. Setting it to `true`
3981
- * when used in conjunction with `update=false` may improve consistency at the expense of increased latency and
3982
- * decreased throughput if the selected replica is not the fastest of the available replicas.
4115
+ /** Query parameter to specify whether use the same replica of the index on each request. The default value
4116
+ * `false` contacts all replicas and returns the result from the first, fastest, responder. Setting it to `true`
4117
+ * when used in conjunction with
4118
+ * `update=false` may improve consistency at the expense of increased latency and decreased throughput if the
4119
+ * selected replica is not the fastest of the available replicas.
3983
4120
  *
3984
4121
  * **Note:** In general setting `true` is discouraged and is strictly not recommended when using `update=true`.
3985
4122
  */
3986
4123
  stable?: boolean;
3987
4124
  /** Schema for any JSON type. */
3988
4125
  startKey?: any;
3989
- /** Schema for a document ID. */
4126
+ /** Start returning rows at the specified document ID. No effect if using `group` or not providing start key. */
3990
4127
  startKeyDocId?: string;
3991
4128
  /** Parameter to specify whether or not the view in question should be updated prior to responding to the user.
3992
4129
  *
@@ -4015,21 +4152,23 @@ declare namespace CloudantV1 {
4015
4152
  ddoc: string;
4016
4153
  /** Path parameter to specify the map reduce view function name. */
4017
4154
  view: string;
4018
- /** Parameter to specify whether to include the encoding information in attachment stubs if the particular
4019
- * attachment is compressed.
4155
+ /** Parameter to specify whether to include the encoding information for compressed attachments. This only
4156
+ * applies when requesting documents in the response.
4020
4157
  */
4021
4158
  attEncodingInfo?: boolean;
4022
- /** Parameter to specify whether to include attachments bodies in a response. */
4159
+ /** Parameter to specify whether to include attachment content in included document content or only the
4160
+ * attachment metadata. This only applies when requesting documents in the response.
4161
+ */
4023
4162
  attachments?: boolean;
4024
- /** Parameter to specify whether to include a list of conflicted revisions in each returned document. Active
4025
- * only when `include_docs` is `true`.
4163
+ /** Parameter to specify whether to include a list of conflicted revisions in each returned document. This only
4164
+ * applies when requesting documents in the response.
4026
4165
  */
4027
4166
  conflicts?: boolean;
4028
4167
  /** Parameter to specify whether to return the documents in descending by key order. */
4029
4168
  descending?: boolean;
4030
4169
  /** Parameter to specify whether to include the full content of the documents in the response. */
4031
4170
  includeDocs?: boolean;
4032
- /** Parameter to specify whether the specified end key should be included in the result. */
4171
+ /** Parameter to specify whether to include the specified end key in the result. */
4033
4172
  inclusiveEnd?: boolean;
4034
4173
  /** Parameter to specify the number of returned documents to limit the result to. */
4035
4174
  limit?: number;
@@ -4041,7 +4180,7 @@ declare namespace CloudantV1 {
4041
4180
  updateSeq?: boolean;
4042
4181
  /** Schema for any JSON type. */
4043
4182
  endKey?: any;
4044
- /** Schema for a document ID. */
4183
+ /** Stop returning rows at the specified document ID. No effect if using `group` or not providing end key. */
4045
4184
  endKeyDocId?: string;
4046
4185
  /** Parameter to specify whether to group reduced results by key. Valid only if a reduce function defined in the
4047
4186
  * view. If the view emits key in JSON array format, then it is possible to reduce groups further based on the
@@ -4053,31 +4192,36 @@ declare namespace CloudantV1 {
4053
4192
  * unset, results are grouped by the entire array key, returning a reduced value for each complete key.
4054
4193
  */
4055
4194
  groupLevel?: number;
4056
- /** Schema for any JSON type. */
4195
+ /** Parameter to specify to return only rows that match the specified key. String representation of any JSON
4196
+ * type that matches the key type emitted by the view function.
4197
+ */
4057
4198
  key?: any;
4058
- /** Parameter to specify returning only documents that match any of the specified keys. A JSON array of keys
4059
- * that match the key type emitted by the view function.
4199
+ /** Parameter to specify returning only rows that match any of the specified keys. A JSON array of keys that
4200
+ * match the key type emitted by the view function.
4060
4201
  */
4061
4202
  keys?: any[];
4062
4203
  /** Parameter to specify whether to use the reduce function in a map-reduce view. Default is true when a reduce
4063
4204
  * function is defined.
4064
4205
  *
4065
- * A default `reduce` view type can be disabled to behave like a `map` by setting `reduce=false` explicitly.
4206
+ * A default `reduce` view type can be disabled to behave like a
4207
+ * `map` by setting `reduce=false` explicitly.
4066
4208
  *
4067
- * Be aware that `include_docs=true` can only be used with `map` views.
4209
+ * Be aware that `include_docs=true` is only for `map` views. Reduced views do not include document IDs in view
4210
+ * rows.
4068
4211
  */
4069
4212
  reduce?: boolean;
4070
- /** Query parameter to specify whether use the same replica of the index on each request. The default value
4071
- * `false` contacts all replicas and returns the result from the first, fastest, responder. Setting it to `true`
4072
- * when used in conjunction with `update=false` may improve consistency at the expense of increased latency and
4073
- * decreased throughput if the selected replica is not the fastest of the available replicas.
4213
+ /** Query parameter to specify whether use the same replica of the index on each request. The default value
4214
+ * `false` contacts all replicas and returns the result from the first, fastest, responder. Setting it to `true`
4215
+ * when used in conjunction with
4216
+ * `update=false` may improve consistency at the expense of increased latency and decreased throughput if the
4217
+ * selected replica is not the fastest of the available replicas.
4074
4218
  *
4075
4219
  * **Note:** In general setting `true` is discouraged and is strictly not recommended when using `update=true`.
4076
4220
  */
4077
4221
  stable?: boolean;
4078
4222
  /** Schema for any JSON type. */
4079
4223
  startKey?: any;
4080
- /** Schema for a document ID. */
4224
+ /** Start returning rows at the specified document ID. No effect if using `group` or not providing start key. */
4081
4225
  startKeyDocId?: string;
4082
4226
  /** Parameter to specify whether or not the view in question should be updated prior to responding to the user.
4083
4227
  *
@@ -4139,21 +4283,23 @@ declare namespace CloudantV1 {
4139
4283
  db: string;
4140
4284
  /** Path parameter to specify the database partition key. */
4141
4285
  partitionKey: string;
4142
- /** Parameter to specify whether to include the encoding information in attachment stubs if the particular
4143
- * attachment is compressed.
4286
+ /** Parameter to specify whether to include the encoding information for compressed attachments. This only
4287
+ * applies when requesting documents in the response.
4144
4288
  */
4145
4289
  attEncodingInfo?: boolean;
4146
- /** Parameter to specify whether to include attachments bodies in a response. */
4290
+ /** Parameter to specify whether to include attachment content in included document content or only the
4291
+ * attachment metadata. This only applies when requesting documents in the response.
4292
+ */
4147
4293
  attachments?: boolean;
4148
- /** Parameter to specify whether to include a list of conflicted revisions in each returned document. Active
4149
- * only when `include_docs` is `true`.
4294
+ /** Parameter to specify whether to include a list of conflicted revisions in each returned document. This only
4295
+ * applies when requesting documents in the response.
4150
4296
  */
4151
4297
  conflicts?: boolean;
4152
4298
  /** Parameter to specify whether to return the documents in descending by key order. */
4153
4299
  descending?: boolean;
4154
4300
  /** Parameter to specify whether to include the full content of the documents in the response. */
4155
4301
  includeDocs?: boolean;
4156
- /** Parameter to specify whether the specified end key should be included in the result. */
4302
+ /** Parameter to specify whether to include the specified end key in the result. */
4157
4303
  inclusiveEnd?: boolean;
4158
4304
  /** Parameter to specify the number of returned documents to limit the result to. */
4159
4305
  limit?: number;
@@ -4178,21 +4324,23 @@ declare namespace CloudantV1 {
4178
4324
  db: string;
4179
4325
  /** Path parameter to specify the database partition key. */
4180
4326
  partitionKey: string;
4181
- /** Parameter to specify whether to include the encoding information in attachment stubs if the particular
4182
- * attachment is compressed.
4327
+ /** Parameter to specify whether to include the encoding information for compressed attachments. This only
4328
+ * applies when requesting documents in the response.
4183
4329
  */
4184
4330
  attEncodingInfo?: boolean;
4185
- /** Parameter to specify whether to include attachments bodies in a response. */
4331
+ /** Parameter to specify whether to include attachment content in included document content or only the
4332
+ * attachment metadata. This only applies when requesting documents in the response.
4333
+ */
4186
4334
  attachments?: boolean;
4187
- /** Parameter to specify whether to include a list of conflicted revisions in each returned document. Active
4188
- * only when `include_docs` is `true`.
4335
+ /** Parameter to specify whether to include a list of conflicted revisions in each returned document. This only
4336
+ * applies when requesting documents in the response.
4189
4337
  */
4190
4338
  conflicts?: boolean;
4191
4339
  /** Parameter to specify whether to return the documents in descending by key order. */
4192
4340
  descending?: boolean;
4193
4341
  /** Parameter to specify whether to include the full content of the documents in the response. */
4194
4342
  includeDocs?: boolean;
4195
- /** Parameter to specify whether the specified end key should be included in the result. */
4343
+ /** Parameter to specify whether to include the specified end key in the result. */
4196
4344
  inclusiveEnd?: boolean;
4197
4345
  /** Parameter to specify the number of returned documents to limit the result to. */
4198
4346
  limit?: number;
@@ -4250,7 +4398,7 @@ declare namespace CloudantV1 {
4250
4398
  /** Limit the number of the returned documents to the specified number. */
4251
4399
  limit?: number;
4252
4400
  /** Specifies the sort order of the results. In a grouped search (when group_field is used), this parameter
4253
- * specifies the sort order within a group. The default sort order is relevance. A JSON string of the form
4401
+ * specifies the sort order within a group. The default sort order is relevance. A JSON string of the form
4254
4402
  * "fieldname&lt;type&gt;" or "-fieldname&lt;type&gt;" for descending order, where fieldname is the name of a
4255
4403
  * string or number field, and type is either a number, a string, or a JSON array of strings. The type part is
4256
4404
  * optional, and defaults to number. Some examples are "foo", "-foo", "bar&lt;string&gt;", "-foo&lt;number&gt;" and
@@ -4307,7 +4455,7 @@ declare namespace CloudantV1 {
4307
4455
  /** Limit the number of the returned documents to the specified number. */
4308
4456
  limit?: number;
4309
4457
  /** Specifies the sort order of the results. In a grouped search (when group_field is used), this parameter
4310
- * specifies the sort order within a group. The default sort order is relevance. A JSON string of the form
4458
+ * specifies the sort order within a group. The default sort order is relevance. A JSON string of the form
4311
4459
  * "fieldname&lt;type&gt;" or "-fieldname&lt;type&gt;" for descending order, where fieldname is the name of a
4312
4460
  * string or number field, and type is either a number, a string, or a JSON array of strings. The type part is
4313
4461
  * optional, and defaults to number. Some examples are "foo", "-foo", "bar&lt;string&gt;", "-foo&lt;number&gt;" and
@@ -4337,21 +4485,23 @@ declare namespace CloudantV1 {
4337
4485
  ddoc: string;
4338
4486
  /** Path parameter to specify the map reduce view function name. */
4339
4487
  view: string;
4340
- /** Parameter to specify whether to include the encoding information in attachment stubs if the particular
4341
- * attachment is compressed.
4488
+ /** Parameter to specify whether to include the encoding information for compressed attachments. This only
4489
+ * applies when requesting documents in the response.
4342
4490
  */
4343
4491
  attEncodingInfo?: boolean;
4344
- /** Parameter to specify whether to include attachments bodies in a response. */
4492
+ /** Parameter to specify whether to include attachment content in included document content or only the
4493
+ * attachment metadata. This only applies when requesting documents in the response.
4494
+ */
4345
4495
  attachments?: boolean;
4346
- /** Parameter to specify whether to include a list of conflicted revisions in each returned document. Active
4347
- * only when `include_docs` is `true`.
4496
+ /** Parameter to specify whether to include a list of conflicted revisions in each returned document. This only
4497
+ * applies when requesting documents in the response.
4348
4498
  */
4349
4499
  conflicts?: boolean;
4350
4500
  /** Parameter to specify whether to return the documents in descending by key order. */
4351
4501
  descending?: boolean;
4352
4502
  /** Parameter to specify whether to include the full content of the documents in the response. */
4353
4503
  includeDocs?: boolean;
4354
- /** Parameter to specify whether the specified end key should be included in the result. */
4504
+ /** Parameter to specify whether to include the specified end key in the result. */
4355
4505
  inclusiveEnd?: boolean;
4356
4506
  /** Parameter to specify the number of returned documents to limit the result to. */
4357
4507
  limit?: number;
@@ -4363,7 +4513,7 @@ declare namespace CloudantV1 {
4363
4513
  updateSeq?: boolean;
4364
4514
  /** Schema for any JSON type. */
4365
4515
  endKey?: any;
4366
- /** Schema for a document ID. */
4516
+ /** Stop returning rows at the specified document ID. No effect if using `group` or not providing end key. */
4367
4517
  endKeyDocId?: string;
4368
4518
  /** Parameter to specify whether to group reduced results by key. Valid only if a reduce function defined in the
4369
4519
  * view. If the view emits key in JSON array format, then it is possible to reduce groups further based on the
@@ -4375,23 +4525,27 @@ declare namespace CloudantV1 {
4375
4525
  * unset, results are grouped by the entire array key, returning a reduced value for each complete key.
4376
4526
  */
4377
4527
  groupLevel?: number;
4378
- /** Schema for any JSON type. */
4528
+ /** Parameter to specify to return only rows that match the specified key. String representation of any JSON
4529
+ * type that matches the key type emitted by the view function.
4530
+ */
4379
4531
  key?: any;
4380
- /** Parameter to specify returning only documents that match any of the specified keys. A JSON array of keys
4381
- * that match the key type emitted by the view function.
4532
+ /** Parameter to specify returning only rows that match any of the specified keys. A JSON array of keys that
4533
+ * match the key type emitted by the view function.
4382
4534
  */
4383
4535
  keys?: any[];
4384
4536
  /** Parameter to specify whether to use the reduce function in a map-reduce view. Default is true when a reduce
4385
4537
  * function is defined.
4386
4538
  *
4387
- * A default `reduce` view type can be disabled to behave like a `map` by setting `reduce=false` explicitly.
4539
+ * A default `reduce` view type can be disabled to behave like a
4540
+ * `map` by setting `reduce=false` explicitly.
4388
4541
  *
4389
- * Be aware that `include_docs=true` can only be used with `map` views.
4542
+ * Be aware that `include_docs=true` is only for `map` views. Reduced views do not include document IDs in view
4543
+ * rows.
4390
4544
  */
4391
4545
  reduce?: boolean;
4392
4546
  /** Schema for any JSON type. */
4393
4547
  startKey?: any;
4394
- /** Schema for a document ID. */
4548
+ /** Start returning rows at the specified document ID. No effect if using `group` or not providing start key. */
4395
4549
  startKeyDocId?: string;
4396
4550
  /** Parameter to specify whether or not the view in question should be updated prior to responding to the user.
4397
4551
  *
@@ -4422,21 +4576,23 @@ declare namespace CloudantV1 {
4422
4576
  ddoc: string;
4423
4577
  /** Path parameter to specify the map reduce view function name. */
4424
4578
  view: string;
4425
- /** Parameter to specify whether to include the encoding information in attachment stubs if the particular
4426
- * attachment is compressed.
4579
+ /** Parameter to specify whether to include the encoding information for compressed attachments. This only
4580
+ * applies when requesting documents in the response.
4427
4581
  */
4428
4582
  attEncodingInfo?: boolean;
4429
- /** Parameter to specify whether to include attachments bodies in a response. */
4583
+ /** Parameter to specify whether to include attachment content in included document content or only the
4584
+ * attachment metadata. This only applies when requesting documents in the response.
4585
+ */
4430
4586
  attachments?: boolean;
4431
- /** Parameter to specify whether to include a list of conflicted revisions in each returned document. Active
4432
- * only when `include_docs` is `true`.
4587
+ /** Parameter to specify whether to include a list of conflicted revisions in each returned document. This only
4588
+ * applies when requesting documents in the response.
4433
4589
  */
4434
4590
  conflicts?: boolean;
4435
4591
  /** Parameter to specify whether to return the documents in descending by key order. */
4436
4592
  descending?: boolean;
4437
4593
  /** Parameter to specify whether to include the full content of the documents in the response. */
4438
4594
  includeDocs?: boolean;
4439
- /** Parameter to specify whether the specified end key should be included in the result. */
4595
+ /** Parameter to specify whether to include the specified end key in the result. */
4440
4596
  inclusiveEnd?: boolean;
4441
4597
  /** Parameter to specify the number of returned documents to limit the result to. */
4442
4598
  limit?: number;
@@ -4448,7 +4604,7 @@ declare namespace CloudantV1 {
4448
4604
  updateSeq?: boolean;
4449
4605
  /** Schema for any JSON type. */
4450
4606
  endKey?: any;
4451
- /** Schema for a document ID. */
4607
+ /** Stop returning rows at the specified document ID. No effect if using `group` or not providing end key. */
4452
4608
  endKeyDocId?: string;
4453
4609
  /** Parameter to specify whether to group reduced results by key. Valid only if a reduce function defined in the
4454
4610
  * view. If the view emits key in JSON array format, then it is possible to reduce groups further based on the
@@ -4460,23 +4616,27 @@ declare namespace CloudantV1 {
4460
4616
  * unset, results are grouped by the entire array key, returning a reduced value for each complete key.
4461
4617
  */
4462
4618
  groupLevel?: number;
4463
- /** Schema for any JSON type. */
4619
+ /** Parameter to specify to return only rows that match the specified key. String representation of any JSON
4620
+ * type that matches the key type emitted by the view function.
4621
+ */
4464
4622
  key?: any;
4465
- /** Parameter to specify returning only documents that match any of the specified keys. A JSON array of keys
4466
- * that match the key type emitted by the view function.
4623
+ /** Parameter to specify returning only rows that match any of the specified keys. A JSON array of keys that
4624
+ * match the key type emitted by the view function.
4467
4625
  */
4468
4626
  keys?: any[];
4469
4627
  /** Parameter to specify whether to use the reduce function in a map-reduce view. Default is true when a reduce
4470
4628
  * function is defined.
4471
4629
  *
4472
- * A default `reduce` view type can be disabled to behave like a `map` by setting `reduce=false` explicitly.
4630
+ * A default `reduce` view type can be disabled to behave like a
4631
+ * `map` by setting `reduce=false` explicitly.
4473
4632
  *
4474
- * Be aware that `include_docs=true` can only be used with `map` views.
4633
+ * Be aware that `include_docs=true` is only for `map` views. Reduced views do not include document IDs in view
4634
+ * rows.
4475
4635
  */
4476
4636
  reduce?: boolean;
4477
4637
  /** Schema for any JSON type. */
4478
4638
  startKey?: any;
4479
- /** Schema for a document ID. */
4639
+ /** Start returning rows at the specified document ID. No effect if using `group` or not providing start key. */
4480
4640
  startKeyDocId?: string;
4481
4641
  /** Parameter to specify whether or not the view in question should be updated prior to responding to the user.
4482
4642
  *
@@ -4524,8 +4684,9 @@ declare namespace CloudantV1 {
4524
4684
  * supplied argument.
4525
4685
  *
4526
4686
  * It is important for query performance to use appropriate selectors:
4527
- * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the
4528
- * basis of a query. You should include at least one of these in a selector.
4687
+ * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
4688
+ * `$lte` (but not `$ne`) can be used as the basis of a query. You should include at least one of these in a
4689
+ * selector.
4529
4690
  * * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query
4530
4691
  * selectors use these operators in conjunction with equality operators or create and use a partial index to reduce
4531
4692
  * the number of documents that will need to be scanned.
@@ -4536,7 +4697,7 @@ declare namespace CloudantV1 {
4536
4697
  * For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
4537
4698
  */
4538
4699
  selector: JsonObject;
4539
- /** Whether to allow fallback to other indexes. Default is true. */
4700
+ /** Whether to allow fallback to other indexes. Default is true. */
4540
4701
  allowFallback?: boolean;
4541
4702
  /** Opaque bookmark token used when paginating results. */
4542
4703
  bookmark?: string;
@@ -4561,7 +4722,8 @@ declare namespace CloudantV1 {
4561
4722
  * first field name and direction pair is the topmost level of sort. The second pair, if provided, is the next
4562
4723
  * level of sort. The field can be any field, using dotted notation if desired for sub-document fields.
4563
4724
  *
4564
- * For example in JSON: `[{"fieldName1": "desc"}, {"fieldName2.subFieldName1": "desc"}]`
4725
+ * For example in JSON:
4726
+ * `[{"fieldName1": "desc"}, {"fieldName2.subFieldName1": "desc"}]`
4565
4727
  *
4566
4728
  * When sorting with multiple fields, ensure that there is an index already defined with all the sort fields in the
4567
4729
  * same order and each object in the sort array has a single key or at least one of the sort fields is included in
@@ -4628,8 +4790,9 @@ declare namespace CloudantV1 {
4628
4790
  * supplied argument.
4629
4791
  *
4630
4792
  * It is important for query performance to use appropriate selectors:
4631
- * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the
4632
- * basis of a query. You should include at least one of these in a selector.
4793
+ * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
4794
+ * `$lte` (but not `$ne`) can be used as the basis of a query. You should include at least one of these in a
4795
+ * selector.
4633
4796
  * * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query
4634
4797
  * selectors use these operators in conjunction with equality operators or create and use a partial index to reduce
4635
4798
  * the number of documents that will need to be scanned.
@@ -4640,7 +4803,7 @@ declare namespace CloudantV1 {
4640
4803
  * For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
4641
4804
  */
4642
4805
  selector: JsonObject;
4643
- /** Whether to allow fallback to other indexes. Default is true. */
4806
+ /** Whether to allow fallback to other indexes. Default is true. */
4644
4807
  allowFallback?: boolean;
4645
4808
  /** Opaque bookmark token used when paginating results. */
4646
4809
  bookmark?: string;
@@ -4665,7 +4828,8 @@ declare namespace CloudantV1 {
4665
4828
  * first field name and direction pair is the topmost level of sort. The second pair, if provided, is the next
4666
4829
  * level of sort. The field can be any field, using dotted notation if desired for sub-document fields.
4667
4830
  *
4668
- * For example in JSON: `[{"fieldName1": "desc"}, {"fieldName2.subFieldName1": "desc"}]`
4831
+ * For example in JSON:
4832
+ * `[{"fieldName1": "desc"}, {"fieldName2.subFieldName1": "desc"}]`
4669
4833
  *
4670
4834
  * When sorting with multiple fields, ensure that there is an index already defined with all the sort fields in the
4671
4835
  * same order and each object in the sort array has a single key or at least one of the sort fields is included in
@@ -4732,8 +4896,9 @@ declare namespace CloudantV1 {
4732
4896
  * supplied argument.
4733
4897
  *
4734
4898
  * It is important for query performance to use appropriate selectors:
4735
- * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the
4736
- * basis of a query. You should include at least one of these in a selector.
4899
+ * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
4900
+ * `$lte` (but not `$ne`) can be used as the basis of a query. You should include at least one of these in a
4901
+ * selector.
4737
4902
  * * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query
4738
4903
  * selectors use these operators in conjunction with equality operators or create and use a partial index to reduce
4739
4904
  * the number of documents that will need to be scanned.
@@ -4744,7 +4909,7 @@ declare namespace CloudantV1 {
4744
4909
  * For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
4745
4910
  */
4746
4911
  selector: JsonObject;
4747
- /** Whether to allow fallback to other indexes. Default is true. */
4912
+ /** Whether to allow fallback to other indexes. Default is true. */
4748
4913
  allowFallback?: boolean;
4749
4914
  /** Opaque bookmark token used when paginating results. */
4750
4915
  bookmark?: string;
@@ -4769,7 +4934,8 @@ declare namespace CloudantV1 {
4769
4934
  * first field name and direction pair is the topmost level of sort. The second pair, if provided, is the next
4770
4935
  * level of sort. The field can be any field, using dotted notation if desired for sub-document fields.
4771
4936
  *
4772
- * For example in JSON: `[{"fieldName1": "desc"}, {"fieldName2.subFieldName1": "desc"}]`
4937
+ * For example in JSON:
4938
+ * `[{"fieldName1": "desc"}, {"fieldName2.subFieldName1": "desc"}]`
4773
4939
  *
4774
4940
  * When sorting with multiple fields, ensure that there is an index already defined with all the sort fields in the
4775
4941
  * same order and each object in the sort array has a single key or at least one of the sort fields is included in
@@ -4834,8 +5000,9 @@ declare namespace CloudantV1 {
4834
5000
  * supplied argument.
4835
5001
  *
4836
5002
  * It is important for query performance to use appropriate selectors:
4837
- * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the
4838
- * basis of a query. You should include at least one of these in a selector.
5003
+ * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
5004
+ * `$lte` (but not `$ne`) can be used as the basis of a query. You should include at least one of these in a
5005
+ * selector.
4839
5006
  * * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query
4840
5007
  * selectors use these operators in conjunction with equality operators or create and use a partial index to reduce
4841
5008
  * the number of documents that will need to be scanned.
@@ -4846,7 +5013,7 @@ declare namespace CloudantV1 {
4846
5013
  * For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
4847
5014
  */
4848
5015
  selector: JsonObject;
4849
- /** Whether to allow fallback to other indexes. Default is true. */
5016
+ /** Whether to allow fallback to other indexes. Default is true. */
4850
5017
  allowFallback?: boolean;
4851
5018
  /** Opaque bookmark token used when paginating results. */
4852
5019
  bookmark?: string;
@@ -4871,7 +5038,8 @@ declare namespace CloudantV1 {
4871
5038
  * first field name and direction pair is the topmost level of sort. The second pair, if provided, is the next
4872
5039
  * level of sort. The field can be any field, using dotted notation if desired for sub-document fields.
4873
5040
  *
4874
- * For example in JSON: `[{"fieldName1": "desc"}, {"fieldName2.subFieldName1": "desc"}]`
5041
+ * For example in JSON:
5042
+ * `[{"fieldName1": "desc"}, {"fieldName2.subFieldName1": "desc"}]`
4875
5043
  *
4876
5044
  * When sorting with multiple fields, ensure that there is an index already defined with all the sort fields in the
4877
5045
  * same order and each object in the sort array has a single key or at least one of the sort fields is included in
@@ -4942,8 +5110,9 @@ declare namespace CloudantV1 {
4942
5110
  * supplied argument.
4943
5111
  *
4944
5112
  * It is important for query performance to use appropriate selectors:
4945
- * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the
4946
- * basis of a query. You should include at least one of these in a selector.
5113
+ * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
5114
+ * `$lte` (but not `$ne`) can be used as the basis of a query. You should include at least one of these in a
5115
+ * selector.
4947
5116
  * * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query
4948
5117
  * selectors use these operators in conjunction with equality operators or create and use a partial index to reduce
4949
5118
  * the number of documents that will need to be scanned.
@@ -4954,7 +5123,7 @@ declare namespace CloudantV1 {
4954
5123
  * For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
4955
5124
  */
4956
5125
  selector: JsonObject;
4957
- /** Whether to allow fallback to other indexes. Default is true. */
5126
+ /** Whether to allow fallback to other indexes. Default is true. */
4958
5127
  allowFallback?: boolean;
4959
5128
  /** Opaque bookmark token used when paginating results. */
4960
5129
  bookmark?: string;
@@ -4979,7 +5148,8 @@ declare namespace CloudantV1 {
4979
5148
  * first field name and direction pair is the topmost level of sort. The second pair, if provided, is the next
4980
5149
  * level of sort. The field can be any field, using dotted notation if desired for sub-document fields.
4981
5150
  *
4982
- * For example in JSON: `[{"fieldName1": "desc"}, {"fieldName2.subFieldName1": "desc"}]`
5151
+ * For example in JSON:
5152
+ * `[{"fieldName1": "desc"}, {"fieldName2.subFieldName1": "desc"}]`
4983
5153
  *
4984
5154
  * When sorting with multiple fields, ensure that there is an index already defined with all the sort fields in the
4985
5155
  * same order and each object in the sort array has a single key or at least one of the sort fields is included in
@@ -5050,8 +5220,9 @@ declare namespace CloudantV1 {
5050
5220
  * supplied argument.
5051
5221
  *
5052
5222
  * It is important for query performance to use appropriate selectors:
5053
- * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the
5054
- * basis of a query. You should include at least one of these in a selector.
5223
+ * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
5224
+ * `$lte` (but not `$ne`) can be used as the basis of a query. You should include at least one of these in a
5225
+ * selector.
5055
5226
  * * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query
5056
5227
  * selectors use these operators in conjunction with equality operators or create and use a partial index to reduce
5057
5228
  * the number of documents that will need to be scanned.
@@ -5062,7 +5233,7 @@ declare namespace CloudantV1 {
5062
5233
  * For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
5063
5234
  */
5064
5235
  selector: JsonObject;
5065
- /** Whether to allow fallback to other indexes. Default is true. */
5236
+ /** Whether to allow fallback to other indexes. Default is true. */
5066
5237
  allowFallback?: boolean;
5067
5238
  /** Opaque bookmark token used when paginating results. */
5068
5239
  bookmark?: string;
@@ -5087,7 +5258,8 @@ declare namespace CloudantV1 {
5087
5258
  * first field name and direction pair is the topmost level of sort. The second pair, if provided, is the next
5088
5259
  * level of sort. The field can be any field, using dotted notation if desired for sub-document fields.
5089
5260
  *
5090
- * For example in JSON: `[{"fieldName1": "desc"}, {"fieldName2.subFieldName1": "desc"}]`
5261
+ * For example in JSON:
5262
+ * `[{"fieldName1": "desc"}, {"fieldName2.subFieldName1": "desc"}]`
5091
5263
  *
5092
5264
  * When sorting with multiple fields, ensure that there is an index already defined with all the sort fields in the
5093
5265
  * same order and each object in the sort array has a single key or at least one of the sort fields is included in
@@ -5280,7 +5452,7 @@ declare namespace CloudantV1 {
5280
5452
  /** Limit the number of the returned documents to the specified number. */
5281
5453
  limit?: number;
5282
5454
  /** Specifies the sort order of the results. In a grouped search (when group_field is used), this parameter
5283
- * specifies the sort order within a group. The default sort order is relevance. A JSON string of the form
5455
+ * specifies the sort order within a group. The default sort order is relevance. A JSON string of the form
5284
5456
  * "fieldname&lt;type&gt;" or "-fieldname&lt;type&gt;" for descending order, where fieldname is the name of a
5285
5457
  * string or number field, and type is either a number, a string, or a JSON array of strings. The type part is
5286
5458
  * optional, and defaults to number. Some examples are "foo", "-foo", "bar&lt;string&gt;", "-foo&lt;number&gt;" and
@@ -5365,7 +5537,7 @@ declare namespace CloudantV1 {
5365
5537
  /** Limit the number of the returned documents to the specified number. */
5366
5538
  limit?: number;
5367
5539
  /** Specifies the sort order of the results. In a grouped search (when group_field is used), this parameter
5368
- * specifies the sort order within a group. The default sort order is relevance. A JSON string of the form
5540
+ * specifies the sort order within a group. The default sort order is relevance. A JSON string of the form
5369
5541
  * "fieldname&lt;type&gt;" or "-fieldname&lt;type&gt;" for descending order, where fieldname is the name of a
5370
5542
  * string or number field, and type is either a number, a string, or a JSON array of strings. The type part is
5371
5543
  * optional, and defaults to number. Some examples are "foo", "-foo", "bar&lt;string&gt;", "-foo&lt;number&gt;" and
@@ -5494,14 +5666,17 @@ declare namespace CloudantV1 {
5494
5666
  docId: string;
5495
5667
  /** Header parameter for a conditional HTTP request not matching an ETag. */
5496
5668
  ifNoneMatch?: string;
5497
- /** Query parameter to specify whether to include attachments bodies in a response. */
5669
+ /** Query parameter to specify whether to include attachment content in the response. Note that when used with a
5670
+ * view-style query or changes feed this only applies when requesting documents in the response.
5671
+ */
5498
5672
  attachments?: boolean;
5499
- /** Query parameter to specify whether to include the encoding information in attachment stubs if the particular
5500
- * attachment is compressed.
5673
+ /** Query parameter to specify whether to include the encoding information for compressed attachments. Note that
5674
+ * when used with a view-style query or changes feed this only applies when requesting documents in the response.
5501
5675
  */
5502
5676
  attEncodingInfo?: boolean;
5503
- /** Query parameter to specify whether to include a list of conflicted revisions in each returned document.
5504
- * Active only when `include_docs` is `true`.
5677
+ /** Query parameter to specify whether to include a list of conflicted revisions in each returned document. Note
5678
+ * that when used with a view-style query or changes feed this only applies when requesting documents in the
5679
+ * response.
5505
5680
  */
5506
5681
  conflicts?: boolean;
5507
5682
  /** Query parameter to specify whether to include a list of deleted conflicted revisions in the
@@ -5792,10 +5967,12 @@ declare namespace CloudantV1 {
5792
5967
  accept?: GetLocalDocumentConstants.Accept | string;
5793
5968
  /** Header parameter for a conditional HTTP request not matching an ETag. */
5794
5969
  ifNoneMatch?: string;
5795
- /** Query parameter to specify whether to include attachments bodies in a response. */
5970
+ /** Query parameter to specify whether to include attachment content in the response. Note that when used with a
5971
+ * view-style query or changes feed this only applies when requesting documents in the response.
5972
+ */
5796
5973
  attachments?: boolean;
5797
- /** Query parameter to specify whether to include the encoding information in attachment stubs if the particular
5798
- * attachment is compressed.
5974
+ /** Query parameter to specify whether to include the encoding information for compressed attachments. Note that
5975
+ * when used with a view-style query or changes feed this only applies when requesting documents in the response.
5799
5976
  */
5800
5977
  attEncodingInfo?: boolean;
5801
5978
  /** Query parameter to specify whether to include the last update sequence for the document. */
@@ -6100,21 +6277,23 @@ declare namespace CloudantV1 {
6100
6277
  * Schema for an all documents query operation.
6101
6278
  */
6102
6279
  export class AllDocsQuery {
6103
- /** Parameter to specify whether to include the encoding information in attachment stubs if the particular
6104
- * attachment is compressed.
6280
+ /** Parameter to specify whether to include the encoding information for compressed attachments. This only
6281
+ * applies when requesting documents in the response.
6105
6282
  */
6106
6283
  attEncodingInfo?: boolean;
6107
- /** Parameter to specify whether to include attachments bodies in a response. */
6284
+ /** Parameter to specify whether to include attachment content in included document content or only the
6285
+ * attachment metadata. This only applies when requesting documents in the response.
6286
+ */
6108
6287
  attachments?: boolean;
6109
- /** Parameter to specify whether to include a list of conflicted revisions in each returned document. Active
6110
- * only when `include_docs` is `true`.
6288
+ /** Parameter to specify whether to include a list of conflicted revisions in each returned document. This only
6289
+ * applies when requesting documents in the response.
6111
6290
  */
6112
6291
  conflicts?: boolean;
6113
6292
  /** Parameter to specify whether to return the documents in descending by key order. */
6114
6293
  descending?: boolean;
6115
6294
  /** Parameter to specify whether to include the full content of the documents in the response. */
6116
6295
  includeDocs?: boolean;
6117
- /** Parameter to specify whether the specified end key should be included in the result. */
6296
+ /** Parameter to specify whether to include the specified end key in the result. */
6118
6297
  inclusiveEnd?: boolean;
6119
6298
  /** Parameter to specify the number of returned documents to limit the result to. */
6120
6299
  limit?: number;
@@ -6341,32 +6520,36 @@ declare namespace CloudantV1 {
6341
6520
  export class Attachment {
6342
6521
  /** Attachment MIME type. */
6343
6522
  contentType?: string;
6344
- /** Base64-encoded content. Available if attachment content is requested by using the query parameters
6345
- * `attachments=true` or `atts_since`. Note that when used with a view or changes feed `include_docs` must also be
6346
- * `true`.
6523
+ /** Base64-encoded content. Available when requested with `attachments=true` or `atts_since`. When retrieving
6524
+ * attachments for a single document this field is only avialable when accepting an application/json response. For
6525
+ * multipart responses each attachment is instead included in a separate part of the response (see `follows`).
6526
+ *
6527
+ * Note that SDK deserialization of documents with included attachments automatically decodes the Base64 encoded
6528
+ * attachment content string to bytes.
6347
6529
  */
6348
6530
  data?: Buffer;
6349
- /** Content hash digest. It starts with prefix which announce hash type (e.g. `md5-`) and continues with
6350
- * Base64-encoded hash digest.
6531
+ /** Content hash digest. It starts with prefix declaring the hash type, `md5-` for example, and continues with
6532
+ * the Base64-encoded hash digest.
6351
6533
  */
6352
6534
  digest?: string;
6353
- /** Compressed attachment size in bytes. Available if content_type was in list of compressible types when the
6354
- * attachment was added and the query parameter `att_encoding_info` is `true`. Note that when used with a view or
6355
- * changes feed `include_docs` must also be `true`.
6535
+ /** Compressed attachment size in bytes. Available for compressed attachments when requested with
6536
+ * `att_encoding_info`. The database compresses attachments if the content_type is in the list of compressible
6537
+ * types when added.
6356
6538
  */
6357
6539
  encodedLength?: number;
6358
- /** Compression codec. Available if content_type was in list of compressible types when the attachment was added
6359
- * and the and the query parameter `att_encoding_info` is `true`. Note that when used with a view or changes feed
6360
- * `include_docs` must also be `true`.
6540
+ /** Compression codec. Available for compressed attachments when requested with `att_encoding_info`. The
6541
+ * database compresses attachments if the content_type is in the list of compressible types when added.
6361
6542
  */
6362
6543
  encoding?: string;
6363
6544
  /** True if the attachment follows in a multipart request or response. */
6364
6545
  follows?: boolean;
6365
6546
  /** Real attachment size in bytes. Not available if inline attachment content requested. */
6366
6547
  length?: number;
6367
- /** Revision number when attachment was added. */
6548
+ /** Revision number at attachment addition. */
6368
6549
  revpos?: number;
6369
- /** Has `true` value if object contains stub info and no content. Otherwise omitted in response. */
6550
+ /** Has `true` value if object has stub attachment metadata, but not attachment content. Otherwise omitted in
6551
+ * response.
6552
+ */
6370
6553
  stub?: boolean;
6371
6554
  static serialize(obj: any): Attachment.Transport;
6372
6555
  static deserialize(obj: any): Attachment;
@@ -6616,7 +6799,10 @@ declare namespace CloudantV1 {
6616
6799
  export class ContentInformationSizes {
6617
6800
  /** The active size of the content, in bytes. */
6618
6801
  active: number;
6619
- /** The total uncompressed size of the content, in bytes. */
6802
+ /** The total uncompressed size of the content, in bytes.
6803
+ *
6804
+ * This is the value used for IBM Cloudant storage billing.
6805
+ */
6620
6806
  external: number;
6621
6807
  /** The total size of the content as stored on disk, in bytes. */
6622
6808
  file: number;
@@ -6726,7 +6912,7 @@ declare namespace CloudantV1 {
6726
6912
  /** The engine used for the database. */
6727
6913
  engine?: string;
6728
6914
  /** An opaque string to detect whether a database has been recreated. The field name is for compatibility with
6729
- * old replicator versions. Do not use the value to infer timing infromation. Typically only used by replicators.
6915
+ * old replicator versions. Do not use the value to infer timing information. Typically only used by replicators.
6730
6916
  */
6731
6917
  instanceStartTime: string;
6732
6918
  /** Information about database's partitioned indexes. */
@@ -6980,11 +7166,13 @@ declare namespace CloudantV1 {
6980
7166
  *
6981
7167
  * * `newDoc` - New version of document that will be stored
6982
7168
  * from the update request.
6983
- * * `oldDoc` - Previous version of document that is already stored.
6984
- * * `userCtx` - User Context Object, containing information about the
6985
- * user writing the document (if present), see the `UserContext`.
6986
- * * `secObj` - Security Object, with lists of database security roles,
6987
- * see the `SecurityObject`.
7169
+ * * `oldDoc` - Previous version of document that is already
7170
+ * stored.
7171
+ * * `userCtx` - User Context Object, containing information
7172
+ * about the user writing the document (if present), see the
7173
+ * `UserContext`.
7174
+ * * `secObj` - Security Object, with lists of database security
7175
+ * roles, see the `SecurityObject`.
6988
7176
  */
6989
7177
  validateDocUpdate?: string;
6990
7178
  /** Schema for design document views. */
@@ -7047,7 +7235,14 @@ declare namespace CloudantV1 {
7047
7235
  * Schema for design document options.
7048
7236
  */
7049
7237
  export class DesignDocumentOptions {
7050
- /** Whether this design document describes partitioned or global indexes. */
7238
+ /** Whether this design document describes partitioned or global indexes. Set this option to `false` for a
7239
+ * design document that describes global indexes in a partitioned database. A design document describes either
7240
+ * global or partitioned indexes, but not both. By default, for a partitioned database this option is `true` and
7241
+ * the design document describes partitioned indexes for queries on a single partition at a time. When set to
7242
+ * `false` this option allows creating global indexes in this design document for queries spanning many partitions.
7243
+ * For non-partitioned databases, the default is `false` and design documents default to global. Only partitioned
7244
+ * databases can have partitioned indexes.
7245
+ */
7051
7246
  partitioned?: boolean;
7052
7247
  static serialize(obj: any): DesignDocumentOptions.Transport;
7053
7248
  static deserialize(obj: any): DesignDocumentOptions;
@@ -7365,8 +7560,9 @@ declare namespace CloudantV1 {
7365
7560
  * supplied argument.
7366
7561
  *
7367
7562
  * It is important for query performance to use appropriate selectors:
7368
- * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the
7369
- * basis of a query. You should include at least one of these in a selector.
7563
+ * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
7564
+ * `$lte` (but not `$ne`) can be used as the basis of a query. You should include at least one of these in a
7565
+ * selector.
7370
7566
  * * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query
7371
7567
  * selectors use these operators in conjunction with equality operators or create and use a partial index to reduce
7372
7568
  * the number of documents that will need to be scanned.
@@ -7568,7 +7764,8 @@ declare namespace CloudantV1 {
7568
7764
  * The full list of possible reason codes is following:
7569
7765
  *
7570
7766
  * * alphabetically_comes_after: json
7571
- * There is another suitable index whose name comes before that of this index.
7767
+ * There is another suitable index whose name comes before that of
7768
+ * this index.
7572
7769
  * * empty_selector: text
7573
7770
  * "text" indexes do not support queries with empty selectors.
7574
7771
  * * excluded_by_user: any use_index was used to manually specify the index.
@@ -7675,8 +7872,9 @@ declare namespace CloudantV1 {
7675
7872
  * supplied argument.
7676
7873
  *
7677
7874
  * It is important for query performance to use appropriate selectors:
7678
- * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the
7679
- * basis of a query. You should include at least one of these in a selector.
7875
+ * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
7876
+ * `$lte` (but not `$ne`) can be used as the basis of a query. You should include at least one of these in a
7877
+ * selector.
7680
7878
  * * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query
7681
7879
  * selectors use these operators in conjunction with equality operators or create and use a partial index to reduce
7682
7880
  * the number of documents that will need to be scanned.
@@ -8155,8 +8353,9 @@ declare namespace CloudantV1 {
8155
8353
  * supplied argument.
8156
8354
  *
8157
8355
  * It is important for query performance to use appropriate selectors:
8158
- * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the
8159
- * basis of a query. You should include at least one of these in a selector.
8356
+ * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
8357
+ * `$lte` (but not `$ne`) can be used as the basis of a query. You should include at least one of these in a
8358
+ * selector.
8160
8359
  * * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query
8161
8360
  * selectors use these operators in conjunction with equality operators or create and use a partial index to reduce
8162
8361
  * the number of documents that will need to be scanned.
@@ -8551,21 +8750,23 @@ declare namespace CloudantV1 {
8551
8750
  * the document as a parameter, extracts some data from it, and then calls the `index` function to index that data.
8552
8751
  * The index function takes 2, or optionally 3, parameters.
8553
8752
  *
8554
- * * The first parameter is the name of the field you intend to use when
8555
- * querying the index. If the special value `"default"` is used when you
8556
- * define the name, you do not have to specify a field name at query time.
8557
- * * The second parameter is the data to be indexed. This data must be only a
8558
- * string, number, or boolean. Other types will cause an error to be thrown
8559
- * by the index function call.
8753
+ * * The first parameter is the name of the field you intend to use
8754
+ * when querying the index. If the special value `"default"` is used
8755
+ * when you define the name, you do not have to specify a field name
8756
+ * at query time.
8757
+ * * The second parameter is the data to be indexed. This data must be
8758
+ * only a string, number, or boolean. Other types will cause an error
8759
+ * to be thrown by the index function call.
8560
8760
  * * The optional third parameter is a JavaScript object with these
8561
8761
  * properties:
8562
8762
  *
8563
8763
  * * `facet` - boolean, default `false` - Creates a faceted index.
8564
- * * `index` - boolean, default `true` - If set to `false`, the data
8565
- * cannot be used for searches, but can still be retrieved from the
8566
- * index if `store` is set to `true`.
8567
- * * `store` - boolean, default `true` - If true, the value is returned
8568
- * in the search result; otherwise, the value is not returned.
8764
+ * * `index` - boolean, default `true` - If set to `false`, the
8765
+ * data cannot be used for searches, but can still be retrieved
8766
+ * from the index if `store` is set to `true`.
8767
+ * * `store` - boolean, default `true` - If true, the value is
8768
+ * returned in the search result; otherwise, the value is not
8769
+ * returned.
8569
8770
  */
8570
8771
  index: string;
8571
8772
  static serialize(obj: any): SearchIndexDefinition.Transport;
@@ -8748,7 +8949,7 @@ declare namespace CloudantV1 {
8748
8949
  }
8749
8950
  }
8750
8951
  /**
8751
- * Schema for a security document.
8952
+ * Schema for a Cloudant security document.
8752
8953
  */
8753
8954
  export class Security {
8754
8955
  /** Schema for names and roles to map to a database permission. */
@@ -8958,6 +9159,8 @@ declare namespace CloudantV1 {
8958
9159
  * Schema for information about the up state of the server.
8959
9160
  */
8960
9161
  export class UpInformation {
9162
+ /** cluster. */
9163
+ cluster?: string;
8961
9164
  /** seeds. */
8962
9165
  seeds?: JsonObject;
8963
9166
  /** status. */
@@ -8975,6 +9178,7 @@ declare namespace CloudantV1 {
8975
9178
  }
8976
9179
  }
8977
9180
  interface Transport {
9181
+ cluster?: string;
8978
9182
  seeds?: JsonObject;
8979
9183
  status: string;
8980
9184
  }
@@ -9068,21 +9272,23 @@ declare namespace CloudantV1 {
9068
9272
  * Schema for a query view operation.
9069
9273
  */
9070
9274
  export class ViewQuery {
9071
- /** Parameter to specify whether to include the encoding information in attachment stubs if the particular
9072
- * attachment is compressed.
9275
+ /** Parameter to specify whether to include the encoding information for compressed attachments. This only
9276
+ * applies when requesting documents in the response.
9073
9277
  */
9074
9278
  attEncodingInfo?: boolean;
9075
- /** Parameter to specify whether to include attachments bodies in a response. */
9279
+ /** Parameter to specify whether to include attachment content in included document content or only the
9280
+ * attachment metadata. This only applies when requesting documents in the response.
9281
+ */
9076
9282
  attachments?: boolean;
9077
- /** Parameter to specify whether to include a list of conflicted revisions in each returned document. Active
9078
- * only when `include_docs` is `true`.
9283
+ /** Parameter to specify whether to include a list of conflicted revisions in each returned document. This only
9284
+ * applies when requesting documents in the response.
9079
9285
  */
9080
9286
  conflicts?: boolean;
9081
9287
  /** Parameter to specify whether to return the documents in descending by key order. */
9082
9288
  descending?: boolean;
9083
9289
  /** Parameter to specify whether to include the full content of the documents in the response. */
9084
9290
  includeDocs?: boolean;
9085
- /** Parameter to specify whether the specified end key should be included in the result. */
9291
+ /** Parameter to specify whether to include the specified end key in the result. */
9086
9292
  inclusiveEnd?: boolean;
9087
9293
  /** Parameter to specify the number of returned documents to limit the result to. */
9088
9294
  limit?: number;
@@ -9094,7 +9300,7 @@ declare namespace CloudantV1 {
9094
9300
  updateSeq?: boolean;
9095
9301
  /** Schema for any JSON type. */
9096
9302
  endKey?: any | null;
9097
- /** Schema for a document ID. */
9303
+ /** Stop returning rows at the specified document ID. No effect if using `group` or not providing end key. */
9098
9304
  endKeyDocId?: string;
9099
9305
  /** Parameter to specify whether to group reduced results by key. Valid only if a reduce function defined in the
9100
9306
  * view. If the view emits key in JSON array format, then it is possible to reduce groups further based on the
@@ -9106,31 +9312,36 @@ declare namespace CloudantV1 {
9106
9312
  * unset, results are grouped by the entire array key, returning a reduced value for each complete key.
9107
9313
  */
9108
9314
  groupLevel?: number;
9109
- /** Schema for any JSON type. */
9315
+ /** Parameter to specify to return only rows that match the specified key. String representation of any JSON
9316
+ * type that matches the key type emitted by the view function.
9317
+ */
9110
9318
  key?: any | null;
9111
- /** Parameter to specify returning only documents that match any of the specified keys. A JSON array of keys
9112
- * that match the key type emitted by the view function.
9319
+ /** Parameter to specify returning only rows that match any of the specified keys. A JSON array of keys that
9320
+ * match the key type emitted by the view function.
9113
9321
  */
9114
9322
  keys?: any[];
9115
9323
  /** Parameter to specify whether to use the reduce function in a map-reduce view. Default is true when a reduce
9116
9324
  * function is defined.
9117
9325
  *
9118
- * A default `reduce` view type can be disabled to behave like a `map` by setting `reduce=false` explicitly.
9326
+ * A default `reduce` view type can be disabled to behave like a
9327
+ * `map` by setting `reduce=false` explicitly.
9119
9328
  *
9120
- * Be aware that `include_docs=true` can only be used with `map` views.
9329
+ * Be aware that `include_docs=true` is only for `map` views. Reduced views do not include document IDs in view
9330
+ * rows.
9121
9331
  */
9122
9332
  reduce?: boolean;
9123
- /** Query parameter to specify whether use the same replica of the index on each request. The default value
9124
- * `false` contacts all replicas and returns the result from the first, fastest, responder. Setting it to `true`
9125
- * when used in conjunction with `update=false` may improve consistency at the expense of increased latency and
9126
- * decreased throughput if the selected replica is not the fastest of the available replicas.
9333
+ /** Query parameter to specify whether use the same replica of the index on each request. The default value
9334
+ * `false` contacts all replicas and returns the result from the first, fastest, responder. Setting it to `true`
9335
+ * when used in conjunction with
9336
+ * `update=false` may improve consistency at the expense of increased latency and decreased throughput if the
9337
+ * selected replica is not the fastest of the available replicas.
9127
9338
  *
9128
9339
  * **Note:** In general setting `true` is discouraged and is strictly not recommended when using `update=true`.
9129
9340
  */
9130
9341
  stable?: boolean;
9131
9342
  /** Schema for any JSON type. */
9132
9343
  startKey?: any | null;
9133
- /** Schema for a document ID. */
9344
+ /** Start returning rows at the specified document ID. No effect if using `group` or not providing start key. */
9134
9345
  startKeyDocId?: string;
9135
9346
  /** Parameter to specify whether or not the view in question should be updated prior to responding to the user.
9136
9347
  *