@ibm-cloud/cloudant 0.10.0 → 0.10.2

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
@@ -66,18 +66,6 @@ declare class CloudantV1 extends CloudantBaseService {
66
66
  * @returns {Promise<CloudantV1.Response<CloudantV1.ServerInformation>>}
67
67
  */
68
68
  getServerInformation(params?: CloudantV1.GetServerInformationParams): Promise<CloudantV1.Response<CloudantV1.ServerInformation>>;
69
- /**
70
- * Retrieve cluster membership information.
71
- *
72
- * Displays the nodes that are part of the cluster as `cluster_nodes`. The field, `all_nodes`, displays all nodes this
73
- * node knows about, including the ones that are part of the cluster. This endpoint is useful when you set up a
74
- * cluster.
75
- *
76
- * @param {Object} [params] - The parameters to send to the service.
77
- * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
78
- * @returns {Promise<CloudantV1.Response<CloudantV1.MembershipInformation>>}
79
- */
80
- getMembershipInformation(params?: CloudantV1.GetMembershipInformationParams): Promise<CloudantV1.Response<CloudantV1.MembershipInformation>>;
81
69
  /**
82
70
  * Retrieve one or more UUIDs.
83
71
  *
@@ -111,7 +99,7 @@ declare class CloudantV1 extends CloudantBaseService {
111
99
  *
112
100
  * @param {Object} params - The parameters to send to the service.
113
101
  * @param {number} params.blocks - A number of blocks of throughput units. A block consists of 100 reads/sec, 50
114
- * writes/sec, and 5 global queries/sec of provisioned throughput capacity.
102
+ * writes/sec, and 5 global queries/sec of provisioned throughput capacity. Not available for some plans.
115
103
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
116
104
  * @returns {Promise<CloudantV1.Response<CloudantV1.CapacityThroughputInformation>>}
117
105
  */
@@ -198,13 +186,19 @@ declare class CloudantV1 extends CloudantBaseService {
198
186
  * combination operator takes a single argument. The argument is either another selector, or an array of selectors.
199
187
  * * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
200
188
  * instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the supplied
201
- * argument. See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators) for a list of all
202
- * available combination and conditional operators.
189
+ * argument.
190
+ *
191
+ * It is important for query performance to use appropriate selectors:
203
192
  * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the basis
204
193
  * of a query. You should include at least one of these in a selector.
194
+ * * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query selectors
195
+ * use these operators in conjunction with equality operators or create and use a partial index to reduce the number
196
+ * of documents that will need to be scanned.
197
+ *
198
+ * See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators)for a list of all available
199
+ * combination and conditional operators.
205
200
  *
206
- * For further reference see
207
- * [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
201
+ * For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
208
202
  * @param {string} [params.lastEventId] - Header parameter to specify the ID of the last events received by the server
209
203
  * on a previous connection. Overrides `since` query parameter.
210
204
  * @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
@@ -312,13 +306,19 @@ declare class CloudantV1 extends CloudantBaseService {
312
306
  * combination operator takes a single argument. The argument is either another selector, or an array of selectors.
313
307
  * * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
314
308
  * instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the supplied
315
- * argument. See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators) for a list of all
316
- * available combination and conditional operators.
309
+ * argument.
310
+ *
311
+ * It is important for query performance to use appropriate selectors:
317
312
  * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the basis
318
313
  * of a query. You should include at least one of these in a selector.
314
+ * * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query selectors
315
+ * use these operators in conjunction with equality operators or create and use a partial index to reduce the number
316
+ * of documents that will need to be scanned.
317
+ *
318
+ * See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators)for a list of all available
319
+ * combination and conditional operators.
319
320
  *
320
- * For further reference see
321
- * [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
321
+ * For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
322
322
  * @param {string} [params.lastEventId] - Header parameter to specify the ID of the last events received by the server
323
323
  * on a previous connection. Overrides `since` query parameter.
324
324
  * @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
@@ -466,6 +466,10 @@ declare class CloudantV1 extends CloudantBaseService {
466
466
  * @param {string} params.db - Path parameter to specify the database name.
467
467
  * @param {boolean} [params.partitioned] - Query parameter to specify whether to enable database partitions when
468
468
  * creating a database.
469
+ *
470
+ * Before using read the
471
+ * [FAQs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-database-partitioning#partitioned-databases-database-partitioning)
472
+ * to understand the limitations and appropriate use cases.
469
473
  * @param {number} [params.q] - The number of shards in the database. Each shard is a partition of the hash value
470
474
  * range. Cloudant recommends using the default value for most databases. However, if your database is expected to be
471
475
  * larger than 250 GB or have a lot of indexes, you may need to adjust the settings. In these cases, it's best to
@@ -881,6 +885,9 @@ declare class CloudantV1 extends CloudantBaseService {
881
885
  * @param {boolean} [params.newEdits] - Query parameter to specify whether to prevent insertion of conflicting
882
886
  * document revisions. If false, a well-formed _rev must be included in the document. False is used by the replicator
883
887
  * to insert documents into the target database even if that leads to the creation of conflicts.
888
+ *
889
+ * Avoid using this parameter, since this option applies document revisions without checking for conflicts, so it is
890
+ * very easy to accidentally end up with a large number of conflicts.
884
891
  * @param {string} [params.rev] - Query parameter to specify a document revision.
885
892
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
886
893
  * @returns {Promise<CloudantV1.Response<CloudantV1.DocumentResult>>}
@@ -976,6 +983,9 @@ declare class CloudantV1 extends CloudantBaseService {
976
983
  * @param {boolean} [params.newEdits] - Query parameter to specify whether to prevent insertion of conflicting
977
984
  * document revisions. If false, a well-formed _rev must be included in the document. False is used by the replicator
978
985
  * to insert documents into the target database even if that leads to the creation of conflicts.
986
+ *
987
+ * Avoid using this parameter, since this option applies document revisions without checking for conflicts, so it is
988
+ * very easy to accidentally end up with a large number of conflicts.
979
989
  * @param {string} [params.rev] - Query parameter to specify a document revision.
980
990
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
981
991
  * @returns {Promise<CloudantV1.Response<CloudantV1.DocumentResult>>}
@@ -1089,6 +1099,10 @@ declare class CloudantV1 extends CloudantBaseService {
1089
1099
  * A JSON array of keys that match the key type emitted by the view function.
1090
1100
  * @param {boolean} [params.reduce] - Parameter to specify whether to use the reduce function in a map-reduce view.
1091
1101
  * Default is true when a reduce function is defined.
1102
+ *
1103
+ * A default `reduce` view type can be disabled to behave like a `map` by setting `reduce=false` explicitly.
1104
+ *
1105
+ * Be aware that `include_docs=true` can only be used with `map` views.
1092
1106
  * @param {boolean} [params.stable] - Query parameter to specify whether use the same replica of the index on each
1093
1107
  * request. The default value `false` contacts all replicas and returns the result from the first, fastest,
1094
1108
  * responder. Setting it to `true` when used in conjunction with `update=false` may improve consistency at the
@@ -1150,6 +1164,10 @@ declare class CloudantV1 extends CloudantBaseService {
1150
1164
  * A JSON array of keys that match the key type emitted by the view function.
1151
1165
  * @param {boolean} [params.reduce] - Parameter to specify whether to use the reduce function in a map-reduce view.
1152
1166
  * Default is true when a reduce function is defined.
1167
+ *
1168
+ * A default `reduce` view type can be disabled to behave like a `map` by setting `reduce=false` explicitly.
1169
+ *
1170
+ * Be aware that `include_docs=true` can only be used with `map` views.
1153
1171
  * @param {boolean} [params.stable] - Query parameter to specify whether use the same replica of the index on each
1154
1172
  * request. The default value `false` contacts all replicas and returns the result from the first, fastest,
1155
1173
  * responder. Setting it to `true` when used in conjunction with `update=false` may improve consistency at the
@@ -1293,6 +1311,10 @@ declare class CloudantV1 extends CloudantBaseService {
1293
1311
  * Lucene Query Parser Syntax. Search indexes are defined by an index function, similar to a map function in MapReduce
1294
1312
  * views. The index function decides what data to index and store in the index.
1295
1313
  *
1314
+ * Before using read the
1315
+ * [FAQs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-database-partitioning#partition-querying) to understand
1316
+ * the limitations and appropriate use cases.
1317
+ *
1296
1318
  * @param {Object} params - The parameters to send to the service.
1297
1319
  * @param {string} params.db - Path parameter to specify the database name.
1298
1320
  * @param {string} params.partitionKey - Path parameter to specify the database partition key.
@@ -1333,6 +1355,10 @@ declare class CloudantV1 extends CloudantBaseService {
1333
1355
  * Lucene Query Parser Syntax. Search indexes are defined by an index function, similar to a map function in MapReduce
1334
1356
  * views. The index function decides what data to index and store in the index.
1335
1357
  *
1358
+ * Before using read the
1359
+ * [FAQs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-database-partitioning#partition-querying) to understand
1360
+ * the limitations and appropriate use cases.
1361
+ *
1336
1362
  * @param {Object} params - The parameters to send to the service.
1337
1363
  * @param {string} params.db - Path parameter to specify the database name.
1338
1364
  * @param {string} params.partitionKey - Path parameter to specify the database partition key.
@@ -1374,6 +1400,10 @@ declare class CloudantV1 extends CloudantBaseService {
1374
1400
  * results. The remainder of the POST view functionality is identical to the `GET /{db}/_design/{ddoc}/_view/{view}`
1375
1401
  * API.
1376
1402
  *
1403
+ * Before using read the
1404
+ * [FAQs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-database-partitioning#partition-querying) to understand
1405
+ * the limitations and appropriate use cases.
1406
+ *
1377
1407
  * @param {Object} params - The parameters to send to the service.
1378
1408
  * @param {string} params.db - Path parameter to specify the database name.
1379
1409
  * @param {string} params.partitionKey - Path parameter to specify the database partition key.
@@ -1409,6 +1439,10 @@ declare class CloudantV1 extends CloudantBaseService {
1409
1439
  * A JSON array of keys that match the key type emitted by the view function.
1410
1440
  * @param {boolean} [params.reduce] - Parameter to specify whether to use the reduce function in a map-reduce view.
1411
1441
  * Default is true when a reduce function is defined.
1442
+ *
1443
+ * A default `reduce` view type can be disabled to behave like a `map` by setting `reduce=false` explicitly.
1444
+ *
1445
+ * Be aware that `include_docs=true` can only be used with `map` views.
1412
1446
  * @param {any} [params.startKey] - Schema for any JSON type.
1413
1447
  * @param {string} [params.startKeyDocId] - Schema for a document ID.
1414
1448
  * @param {string} [params.update] - Parameter to specify whether or not the view in question should be updated prior
@@ -1429,6 +1463,10 @@ declare class CloudantV1 extends CloudantBaseService {
1429
1463
  * results. The remainder of the POST view functionality is identical to the `GET /{db}/_design/{ddoc}/_view/{view}`
1430
1464
  * API.
1431
1465
  *
1466
+ * Before using read the
1467
+ * [FAQs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-database-partitioning#partition-querying) to understand
1468
+ * the limitations and appropriate use cases.
1469
+ *
1432
1470
  * @param {Object} params - The parameters to send to the service.
1433
1471
  * @param {string} params.db - Path parameter to specify the database name.
1434
1472
  * @param {string} params.partitionKey - Path parameter to specify the database partition key.
@@ -1464,6 +1502,10 @@ declare class CloudantV1 extends CloudantBaseService {
1464
1502
  * A JSON array of keys that match the key type emitted by the view function.
1465
1503
  * @param {boolean} [params.reduce] - Parameter to specify whether to use the reduce function in a map-reduce view.
1466
1504
  * Default is true when a reduce function is defined.
1505
+ *
1506
+ * A default `reduce` view type can be disabled to behave like a `map` by setting `reduce=false` explicitly.
1507
+ *
1508
+ * Be aware that `include_docs=true` can only be used with `map` views.
1467
1509
  * @param {any} [params.startKey] - Schema for any JSON type.
1468
1510
  * @param {string} [params.startKeyDocId] - Schema for a document ID.
1469
1511
  * @param {string} [params.update] - Parameter to specify whether or not the view in question should be updated prior
@@ -1505,13 +1547,19 @@ declare class CloudantV1 extends CloudantBaseService {
1505
1547
  * combination operator takes a single argument. The argument is either another selector, or an array of selectors.
1506
1548
  * * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
1507
1549
  * instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the supplied
1508
- * argument. See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators) for a list of all
1509
- * available combination and conditional operators.
1550
+ * argument.
1551
+ *
1552
+ * It is important for query performance to use appropriate selectors:
1510
1553
  * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the basis
1511
1554
  * of a query. You should include at least one of these in a selector.
1555
+ * * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query selectors
1556
+ * use these operators in conjunction with equality operators or create and use a partial index to reduce the number
1557
+ * of documents that will need to be scanned.
1512
1558
  *
1513
- * For further reference see
1514
- * [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
1559
+ * See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators)for a list of all available
1560
+ * combination and conditional operators.
1561
+ *
1562
+ * For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
1515
1563
  * @param {string} [params.bookmark] - Opaque bookmark token used when paginating results.
1516
1564
  * @param {boolean} [params.conflicts] - A boolean value that indicates whether or not to include information about
1517
1565
  * existing conflicts in the document.
@@ -1542,6 +1590,9 @@ declare class CloudantV1 extends CloudantBaseService {
1542
1590
  *
1543
1591
  * It’s recommended to specify indexes explicitly in your queries to prevent existing queries being affected by new
1544
1592
  * indexes that might get added later.
1593
+ *
1594
+ * If the specified index does not exist or cannot answer the query then the value is ignored and another index or a
1595
+ * full scan of all documents will answer the query.
1545
1596
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
1546
1597
  * @returns {Promise<CloudantV1.Response<CloudantV1.ExplainResult>>}
1547
1598
  */
@@ -1556,6 +1607,10 @@ declare class CloudantV1 extends CloudantBaseService {
1556
1607
  * recommended because it has a noticeable performance impact causing a full scan of the partition with each request.
1557
1608
  * In this case the response body will include a warning field recommending that an index is created.
1558
1609
  *
1610
+ * Before using read the
1611
+ * [FAQs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-database-partitioning#partition-querying) to understand
1612
+ * the limitations and appropriate use cases.
1613
+ *
1559
1614
  * @param {Object} params - The parameters to send to the service.
1560
1615
  * @param {string} params.db - Path parameter to specify the database name.
1561
1616
  * @param {string} params.partitionKey - Path parameter to specify the database partition key.
@@ -1579,13 +1634,19 @@ declare class CloudantV1 extends CloudantBaseService {
1579
1634
  * combination operator takes a single argument. The argument is either another selector, or an array of selectors.
1580
1635
  * * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
1581
1636
  * instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the supplied
1582
- * argument. See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators) for a list of all
1583
- * available combination and conditional operators.
1637
+ * argument.
1638
+ *
1639
+ * It is important for query performance to use appropriate selectors:
1584
1640
  * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the basis
1585
1641
  * of a query. You should include at least one of these in a selector.
1642
+ * * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query selectors
1643
+ * use these operators in conjunction with equality operators or create and use a partial index to reduce the number
1644
+ * of documents that will need to be scanned.
1645
+ *
1646
+ * See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators)for a list of all available
1647
+ * combination and conditional operators.
1586
1648
  *
1587
- * For further reference see
1588
- * [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
1649
+ * For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
1589
1650
  * @param {string} [params.bookmark] - Opaque bookmark token used when paginating results.
1590
1651
  * @param {boolean} [params.conflicts] - A boolean value that indicates whether or not to include information about
1591
1652
  * existing conflicts in the document.
@@ -1616,6 +1677,9 @@ declare class CloudantV1 extends CloudantBaseService {
1616
1677
  *
1617
1678
  * It’s recommended to specify indexes explicitly in your queries to prevent existing queries being affected by new
1618
1679
  * indexes that might get added later.
1680
+ *
1681
+ * If the specified index does not exist or cannot answer the query then the value is ignored and another index or a
1682
+ * full scan of all documents will answer the query.
1619
1683
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
1620
1684
  * @returns {Promise<CloudantV1.Response<CloudantV1.FindResult>>}
1621
1685
  */
@@ -1630,6 +1694,10 @@ declare class CloudantV1 extends CloudantBaseService {
1630
1694
  * recommended because it has a noticeable performance impact causing a full scan of the partition with each request.
1631
1695
  * In this case the response body will include a warning field recommending that an index is created.
1632
1696
  *
1697
+ * Before using read the
1698
+ * [FAQs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-database-partitioning#partition-querying) to understand
1699
+ * the limitations and appropriate use cases.
1700
+ *
1633
1701
  * @param {Object} params - The parameters to send to the service.
1634
1702
  * @param {string} params.db - Path parameter to specify the database name.
1635
1703
  * @param {string} params.partitionKey - Path parameter to specify the database partition key.
@@ -1653,13 +1721,19 @@ declare class CloudantV1 extends CloudantBaseService {
1653
1721
  * combination operator takes a single argument. The argument is either another selector, or an array of selectors.
1654
1722
  * * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
1655
1723
  * instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the supplied
1656
- * argument. See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators) for a list of all
1657
- * available combination and conditional operators.
1724
+ * argument.
1725
+ *
1726
+ * It is important for query performance to use appropriate selectors:
1658
1727
  * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the basis
1659
1728
  * of a query. You should include at least one of these in a selector.
1729
+ * * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query selectors
1730
+ * use these operators in conjunction with equality operators or create and use a partial index to reduce the number
1731
+ * of documents that will need to be scanned.
1660
1732
  *
1661
- * For further reference see
1662
- * [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
1733
+ * See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators)for a list of all available
1734
+ * combination and conditional operators.
1735
+ *
1736
+ * For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
1663
1737
  * @param {string} [params.bookmark] - Opaque bookmark token used when paginating results.
1664
1738
  * @param {boolean} [params.conflicts] - A boolean value that indicates whether or not to include information about
1665
1739
  * existing conflicts in the document.
@@ -1690,6 +1764,9 @@ declare class CloudantV1 extends CloudantBaseService {
1690
1764
  *
1691
1765
  * It’s recommended to specify indexes explicitly in your queries to prevent existing queries being affected by new
1692
1766
  * indexes that might get added later.
1767
+ *
1768
+ * If the specified index does not exist or cannot answer the query then the value is ignored and another index or a
1769
+ * full scan of all documents will answer the query.
1693
1770
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
1694
1771
  * @returns {Promise<CloudantV1.Response<NodeJS.ReadableStream>>}
1695
1772
  */
@@ -1724,13 +1801,19 @@ declare class CloudantV1 extends CloudantBaseService {
1724
1801
  * combination operator takes a single argument. The argument is either another selector, or an array of selectors.
1725
1802
  * * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
1726
1803
  * instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the supplied
1727
- * argument. See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators) for a list of all
1728
- * available combination and conditional operators.
1804
+ * argument.
1805
+ *
1806
+ * It is important for query performance to use appropriate selectors:
1729
1807
  * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the basis
1730
1808
  * of a query. You should include at least one of these in a selector.
1809
+ * * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query selectors
1810
+ * use these operators in conjunction with equality operators or create and use a partial index to reduce the number
1811
+ * of documents that will need to be scanned.
1812
+ *
1813
+ * See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators)for a list of all available
1814
+ * combination and conditional operators.
1731
1815
  *
1732
- * For further reference see
1733
- * [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
1816
+ * For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
1734
1817
  * @param {string} [params.bookmark] - Opaque bookmark token used when paginating results.
1735
1818
  * @param {boolean} [params.conflicts] - A boolean value that indicates whether or not to include information about
1736
1819
  * existing conflicts in the document.
@@ -1761,6 +1844,9 @@ declare class CloudantV1 extends CloudantBaseService {
1761
1844
  *
1762
1845
  * It’s recommended to specify indexes explicitly in your queries to prevent existing queries being affected by new
1763
1846
  * indexes that might get added later.
1847
+ *
1848
+ * If the specified index does not exist or cannot answer the query then the value is ignored and another index or a
1849
+ * full scan of all documents will answer the query.
1764
1850
  * @param {number} [params.r] - The read quorum that is needed for the result. The value defaults to 1, in which case
1765
1851
  * the document that was found in the index is returned. If set to a higher value, each document is read from at least
1766
1852
  * that many replicas before it is returned in the results. The request will take more time than using only the
@@ -1801,13 +1887,19 @@ declare class CloudantV1 extends CloudantBaseService {
1801
1887
  * combination operator takes a single argument. The argument is either another selector, or an array of selectors.
1802
1888
  * * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
1803
1889
  * instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the supplied
1804
- * argument. See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators) for a list of all
1805
- * available combination and conditional operators.
1890
+ * argument.
1891
+ *
1892
+ * It is important for query performance to use appropriate selectors:
1806
1893
  * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the basis
1807
1894
  * of a query. You should include at least one of these in a selector.
1895
+ * * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query selectors
1896
+ * use these operators in conjunction with equality operators or create and use a partial index to reduce the number
1897
+ * of documents that will need to be scanned.
1898
+ *
1899
+ * See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators)for a list of all available
1900
+ * combination and conditional operators.
1808
1901
  *
1809
- * For further reference see
1810
- * [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
1902
+ * For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
1811
1903
  * @param {string} [params.bookmark] - Opaque bookmark token used when paginating results.
1812
1904
  * @param {boolean} [params.conflicts] - A boolean value that indicates whether or not to include information about
1813
1905
  * existing conflicts in the document.
@@ -1838,6 +1930,9 @@ declare class CloudantV1 extends CloudantBaseService {
1838
1930
  *
1839
1931
  * It’s recommended to specify indexes explicitly in your queries to prevent existing queries being affected by new
1840
1932
  * indexes that might get added later.
1933
+ *
1934
+ * If the specified index does not exist or cannot answer the query then the value is ignored and another index or a
1935
+ * full scan of all documents will answer the query.
1841
1936
  * @param {number} [params.r] - The read quorum that is needed for the result. The value defaults to 1, in which case
1842
1937
  * the document that was found in the index is returned. If set to a higher value, each document is read from at least
1843
1938
  * that many replicas before it is returned in the results. The request will take more time than using only the
@@ -1878,13 +1973,19 @@ declare class CloudantV1 extends CloudantBaseService {
1878
1973
  * combination operator takes a single argument. The argument is either another selector, or an array of selectors.
1879
1974
  * * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
1880
1975
  * instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the supplied
1881
- * argument. See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators) for a list of all
1882
- * available combination and conditional operators.
1976
+ * argument.
1977
+ *
1978
+ * It is important for query performance to use appropriate selectors:
1883
1979
  * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the basis
1884
1980
  * of a query. You should include at least one of these in a selector.
1981
+ * * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query selectors
1982
+ * use these operators in conjunction with equality operators or create and use a partial index to reduce the number
1983
+ * of documents that will need to be scanned.
1984
+ *
1985
+ * See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators)for a list of all available
1986
+ * combination and conditional operators.
1885
1987
  *
1886
- * For further reference see
1887
- * [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
1988
+ * For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
1888
1989
  * @param {string} [params.bookmark] - Opaque bookmark token used when paginating results.
1889
1990
  * @param {boolean} [params.conflicts] - A boolean value that indicates whether or not to include information about
1890
1991
  * existing conflicts in the document.
@@ -1915,6 +2016,9 @@ declare class CloudantV1 extends CloudantBaseService {
1915
2016
  *
1916
2017
  * It’s recommended to specify indexes explicitly in your queries to prevent existing queries being affected by new
1917
2018
  * indexes that might get added later.
2019
+ *
2020
+ * If the specified index does not exist or cannot answer the query then the value is ignored and another index or a
2021
+ * full scan of all documents will answer the query.
1918
2022
  * @param {number} [params.r] - The read quorum that is needed for the result. The value defaults to 1, in which case
1919
2023
  * the document that was found in the index is returned. If set to a higher value, each document is read from at least
1920
2024
  * that many replicas before it is returned in the results. The request will take more time than using only the
@@ -2228,6 +2332,9 @@ declare class CloudantV1 extends CloudantBaseService {
2228
2332
  * @param {boolean} [params.newEdits] - Query parameter to specify whether to prevent insertion of conflicting
2229
2333
  * document revisions. If false, a well-formed _rev must be included in the document. False is used by the replicator
2230
2334
  * to insert documents into the target database even if that leads to the creation of conflicts.
2335
+ *
2336
+ * Avoid using this parameter, since this option applies document revisions without checking for conflicts, so it is
2337
+ * very easy to accidentally end up with a large number of conflicts.
2231
2338
  * @param {string} [params.rev] - Query parameter to specify a document revision.
2232
2339
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
2233
2340
  * @returns {Promise<CloudantV1.Response<CloudantV1.DocumentResult>>}
@@ -2627,6 +2734,18 @@ declare class CloudantV1 extends CloudantBaseService {
2627
2734
  * @returns {Promise<CloudantV1.Response<CloudantV1.ActiveTask[]>>}
2628
2735
  */
2629
2736
  getActiveTasks(params?: CloudantV1.GetActiveTasksParams): Promise<CloudantV1.Response<CloudantV1.ActiveTask[]>>;
2737
+ /**
2738
+ * Retrieve cluster membership information.
2739
+ *
2740
+ * Displays the nodes that are part of the cluster as `cluster_nodes`. The field, `all_nodes`, displays all nodes this
2741
+ * node knows about, including the ones that are part of the cluster. This endpoint is useful when you set up a
2742
+ * cluster.
2743
+ *
2744
+ * @param {Object} [params] - The parameters to send to the service.
2745
+ * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
2746
+ * @returns {Promise<CloudantV1.Response<CloudantV1.MembershipInformation>>}
2747
+ */
2748
+ getMembershipInformation(params?: CloudantV1.GetMembershipInformationParams): Promise<CloudantV1.Response<CloudantV1.MembershipInformation>>;
2630
2749
  /**
2631
2750
  * Retrieve information about whether the server is up.
2632
2751
  *
@@ -2704,10 +2823,6 @@ declare namespace CloudantV1 {
2704
2823
  interface GetServerInformationParams {
2705
2824
  headers?: OutgoingHttpHeaders;
2706
2825
  }
2707
- /** Parameters for the `getMembershipInformation` operation. */
2708
- interface GetMembershipInformationParams {
2709
- headers?: OutgoingHttpHeaders;
2710
- }
2711
2826
  /** Parameters for the `getUuids` operation. */
2712
2827
  interface GetUuidsParams {
2713
2828
  /** Query parameter to specify the number of UUIDs to return. */
@@ -2721,7 +2836,7 @@ declare namespace CloudantV1 {
2721
2836
  /** Parameters for the `putCapacityThroughputConfiguration` operation. */
2722
2837
  interface PutCapacityThroughputConfigurationParams {
2723
2838
  /** A number of blocks of throughput units. A block consists of 100 reads/sec, 50 writes/sec, and 5 global
2724
- * queries/sec of provisioned throughput capacity.
2839
+ * queries/sec of provisioned throughput capacity. Not available for some plans.
2725
2840
  */
2726
2841
  blocks: number;
2727
2842
  headers?: OutgoingHttpHeaders;
@@ -2800,13 +2915,19 @@ declare namespace CloudantV1 {
2800
2915
  * combination operator takes a single argument. The argument is either another selector, or an array of selectors.
2801
2916
  * * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
2802
2917
  * instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the
2803
- * supplied argument. See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators) for a
2804
- * list of all available combination and conditional operators.
2918
+ * supplied argument.
2919
+ *
2920
+ * It is important for query performance to use appropriate selectors:
2805
2921
  * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the
2806
2922
  * basis of a query. You should include at least one of these in a selector.
2923
+ * * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query
2924
+ * selectors use these operators in conjunction with equality operators or create and use a partial index to reduce
2925
+ * the number of documents that will need to be scanned.
2926
+ *
2927
+ * See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators)for a list of all available
2928
+ * combination and conditional operators.
2807
2929
  *
2808
- * For further reference see
2809
- * [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
2930
+ * For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
2810
2931
  */
2811
2932
  selector?: JsonObject;
2812
2933
  /** Header parameter to specify the ID of the last events received by the server on a previous connection.
@@ -2932,13 +3053,19 @@ declare namespace CloudantV1 {
2932
3053
  * combination operator takes a single argument. The argument is either another selector, or an array of selectors.
2933
3054
  * * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
2934
3055
  * instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the
2935
- * supplied argument. See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators) for a
2936
- * list of all available combination and conditional operators.
3056
+ * supplied argument.
3057
+ *
3058
+ * It is important for query performance to use appropriate selectors:
2937
3059
  * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the
2938
3060
  * basis of a query. You should include at least one of these in a selector.
3061
+ * * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query
3062
+ * selectors use these operators in conjunction with equality operators or create and use a partial index to reduce
3063
+ * the number of documents that will need to be scanned.
2939
3064
  *
2940
- * For further reference see
2941
- * [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
3065
+ * See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators)for a list of all available
3066
+ * combination and conditional operators.
3067
+ *
3068
+ * For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
2942
3069
  */
2943
3070
  selector?: JsonObject;
2944
3071
  /** Header parameter to specify the ID of the last events received by the server on a previous connection.
@@ -3080,7 +3207,12 @@ declare namespace CloudantV1 {
3080
3207
  interface PutDatabaseParams {
3081
3208
  /** Path parameter to specify the database name. */
3082
3209
  db: string;
3083
- /** Query parameter to specify whether to enable database partitions when creating a database. */
3210
+ /** Query parameter to specify whether to enable database partitions when creating a database.
3211
+ *
3212
+ * Before using read the
3213
+ * [FAQs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-database-partitioning#partitioned-databases-database-partitioning)
3214
+ * to understand the limitations and appropriate use cases.
3215
+ */
3084
3216
  partitioned?: boolean;
3085
3217
  /** The number of shards in the database. Each shard is a partition of the hash value range. Cloudant recommends
3086
3218
  * using the default value for most databases. However, if your database is expected to be larger than 250 GB or
@@ -3520,6 +3652,9 @@ declare namespace CloudantV1 {
3520
3652
  /** Query parameter to specify whether to prevent insertion of conflicting document revisions. If false, a
3521
3653
  * well-formed _rev must be included in the document. False is used by the replicator to insert documents into the
3522
3654
  * target database even if that leads to the creation of conflicts.
3655
+ *
3656
+ * Avoid using this parameter, since this option applies document revisions without checking for conflicts, so it
3657
+ * is very easy to accidentally end up with a large number of conflicts.
3523
3658
  */
3524
3659
  newEdits?: boolean;
3525
3660
  /** Query parameter to specify a document revision. */
@@ -3638,6 +3773,9 @@ declare namespace CloudantV1 {
3638
3773
  /** Query parameter to specify whether to prevent insertion of conflicting document revisions. If false, a
3639
3774
  * well-formed _rev must be included in the document. False is used by the replicator to insert documents into the
3640
3775
  * target database even if that leads to the creation of conflicts.
3776
+ *
3777
+ * Avoid using this parameter, since this option applies document revisions without checking for conflicts, so it
3778
+ * is very easy to accidentally end up with a large number of conflicts.
3641
3779
  */
3642
3780
  newEdits?: boolean;
3643
3781
  /** Query parameter to specify a document revision. */
@@ -3775,6 +3913,10 @@ declare namespace CloudantV1 {
3775
3913
  keys?: any[];
3776
3914
  /** Parameter to specify whether to use the reduce function in a map-reduce view. Default is true when a reduce
3777
3915
  * function is defined.
3916
+ *
3917
+ * A default `reduce` view type can be disabled to behave like a `map` by setting `reduce=false` explicitly.
3918
+ *
3919
+ * Be aware that `include_docs=true` can only be used with `map` views.
3778
3920
  */
3779
3921
  reduce?: boolean;
3780
3922
  /** Query parameter to specify whether use the same replica of the index on each request. The default value
@@ -3863,6 +4005,10 @@ declare namespace CloudantV1 {
3863
4005
  keys?: any[];
3864
4006
  /** Parameter to specify whether to use the reduce function in a map-reduce view. Default is true when a reduce
3865
4007
  * function is defined.
4008
+ *
4009
+ * A default `reduce` view type can be disabled to behave like a `map` by setting `reduce=false` explicitly.
4010
+ *
4011
+ * Be aware that `include_docs=true` can only be used with `map` views.
3866
4012
  */
3867
4013
  reduce?: boolean;
3868
4014
  /** Query parameter to specify whether use the same replica of the index on each request. The default value
@@ -4189,6 +4335,10 @@ declare namespace CloudantV1 {
4189
4335
  keys?: any[];
4190
4336
  /** Parameter to specify whether to use the reduce function in a map-reduce view. Default is true when a reduce
4191
4337
  * function is defined.
4338
+ *
4339
+ * A default `reduce` view type can be disabled to behave like a `map` by setting `reduce=false` explicitly.
4340
+ *
4341
+ * Be aware that `include_docs=true` can only be used with `map` views.
4192
4342
  */
4193
4343
  reduce?: boolean;
4194
4344
  /** Schema for any JSON type. */
@@ -4271,6 +4421,10 @@ declare namespace CloudantV1 {
4271
4421
  keys?: any[];
4272
4422
  /** Parameter to specify whether to use the reduce function in a map-reduce view. Default is true when a reduce
4273
4423
  * function is defined.
4424
+ *
4425
+ * A default `reduce` view type can be disabled to behave like a `map` by setting `reduce=false` explicitly.
4426
+ *
4427
+ * Be aware that `include_docs=true` can only be used with `map` views.
4274
4428
  */
4275
4429
  reduce?: boolean;
4276
4430
  /** Schema for any JSON type. */
@@ -4321,13 +4475,19 @@ declare namespace CloudantV1 {
4321
4475
  * combination operator takes a single argument. The argument is either another selector, or an array of selectors.
4322
4476
  * * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
4323
4477
  * instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the
4324
- * supplied argument. See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators) for a
4325
- * list of all available combination and conditional operators.
4478
+ * supplied argument.
4479
+ *
4480
+ * It is important for query performance to use appropriate selectors:
4326
4481
  * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the
4327
4482
  * basis of a query. You should include at least one of these in a selector.
4483
+ * * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query
4484
+ * selectors use these operators in conjunction with equality operators or create and use a partial index to reduce
4485
+ * the number of documents that will need to be scanned.
4486
+ *
4487
+ * See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators)for a list of all available
4488
+ * combination and conditional operators.
4328
4489
  *
4329
- * For further reference see
4330
- * [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
4490
+ * For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
4331
4491
  */
4332
4492
  selector: JsonObject;
4333
4493
  /** Opaque bookmark token used when paginating results. */
@@ -4370,6 +4530,9 @@ declare namespace CloudantV1 {
4370
4530
  *
4371
4531
  * It’s recommended to specify indexes explicitly in your queries to prevent existing queries being affected by new
4372
4532
  * indexes that might get added later.
4533
+ *
4534
+ * If the specified index does not exist or cannot answer the query then the value is ignored and another index or
4535
+ * a full scan of all documents will answer the query.
4373
4536
  */
4374
4537
  useIndex?: string[];
4375
4538
  headers?: OutgoingHttpHeaders;
@@ -4414,13 +4577,19 @@ declare namespace CloudantV1 {
4414
4577
  * combination operator takes a single argument. The argument is either another selector, or an array of selectors.
4415
4578
  * * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
4416
4579
  * instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the
4417
- * supplied argument. See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators) for a
4418
- * list of all available combination and conditional operators.
4580
+ * supplied argument.
4581
+ *
4582
+ * It is important for query performance to use appropriate selectors:
4419
4583
  * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the
4420
4584
  * basis of a query. You should include at least one of these in a selector.
4585
+ * * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query
4586
+ * selectors use these operators in conjunction with equality operators or create and use a partial index to reduce
4587
+ * the number of documents that will need to be scanned.
4588
+ *
4589
+ * See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators)for a list of all available
4590
+ * combination and conditional operators.
4421
4591
  *
4422
- * For further reference see
4423
- * [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
4592
+ * For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
4424
4593
  */
4425
4594
  selector: JsonObject;
4426
4595
  /** Opaque bookmark token used when paginating results. */
@@ -4463,6 +4632,9 @@ declare namespace CloudantV1 {
4463
4632
  *
4464
4633
  * It’s recommended to specify indexes explicitly in your queries to prevent existing queries being affected by new
4465
4634
  * indexes that might get added later.
4635
+ *
4636
+ * If the specified index does not exist or cannot answer the query then the value is ignored and another index or
4637
+ * a full scan of all documents will answer the query.
4466
4638
  */
4467
4639
  useIndex?: string[];
4468
4640
  headers?: OutgoingHttpHeaders;
@@ -4507,13 +4679,19 @@ declare namespace CloudantV1 {
4507
4679
  * combination operator takes a single argument. The argument is either another selector, or an array of selectors.
4508
4680
  * * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
4509
4681
  * instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the
4510
- * supplied argument. See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators) for a
4511
- * list of all available combination and conditional operators.
4682
+ * supplied argument.
4683
+ *
4684
+ * It is important for query performance to use appropriate selectors:
4512
4685
  * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the
4513
4686
  * basis of a query. You should include at least one of these in a selector.
4687
+ * * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query
4688
+ * selectors use these operators in conjunction with equality operators or create and use a partial index to reduce
4689
+ * the number of documents that will need to be scanned.
4690
+ *
4691
+ * See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators)for a list of all available
4692
+ * combination and conditional operators.
4514
4693
  *
4515
- * For further reference see
4516
- * [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
4694
+ * For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
4517
4695
  */
4518
4696
  selector: JsonObject;
4519
4697
  /** Opaque bookmark token used when paginating results. */
@@ -4556,6 +4734,9 @@ declare namespace CloudantV1 {
4556
4734
  *
4557
4735
  * It’s recommended to specify indexes explicitly in your queries to prevent existing queries being affected by new
4558
4736
  * indexes that might get added later.
4737
+ *
4738
+ * If the specified index does not exist or cannot answer the query then the value is ignored and another index or
4739
+ * a full scan of all documents will answer the query.
4559
4740
  */
4560
4741
  useIndex?: string[];
4561
4742
  headers?: OutgoingHttpHeaders;
@@ -4598,13 +4779,19 @@ declare namespace CloudantV1 {
4598
4779
  * combination operator takes a single argument. The argument is either another selector, or an array of selectors.
4599
4780
  * * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
4600
4781
  * instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the
4601
- * supplied argument. See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators) for a
4602
- * list of all available combination and conditional operators.
4782
+ * supplied argument.
4783
+ *
4784
+ * It is important for query performance to use appropriate selectors:
4603
4785
  * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the
4604
4786
  * basis of a query. You should include at least one of these in a selector.
4787
+ * * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query
4788
+ * selectors use these operators in conjunction with equality operators or create and use a partial index to reduce
4789
+ * the number of documents that will need to be scanned.
4605
4790
  *
4606
- * For further reference see
4607
- * [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
4791
+ * See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators)for a list of all available
4792
+ * combination and conditional operators.
4793
+ *
4794
+ * For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
4608
4795
  */
4609
4796
  selector: JsonObject;
4610
4797
  /** Opaque bookmark token used when paginating results. */
@@ -4647,6 +4834,9 @@ declare namespace CloudantV1 {
4647
4834
  *
4648
4835
  * It’s recommended to specify indexes explicitly in your queries to prevent existing queries being affected by new
4649
4836
  * indexes that might get added later.
4837
+ *
4838
+ * If the specified index does not exist or cannot answer the query then the value is ignored and another index or
4839
+ * a full scan of all documents will answer the query.
4650
4840
  */
4651
4841
  useIndex?: string[];
4652
4842
  /** The read quorum that is needed for the result. The value defaults to 1, in which case the document that was
@@ -4695,13 +4885,19 @@ declare namespace CloudantV1 {
4695
4885
  * combination operator takes a single argument. The argument is either another selector, or an array of selectors.
4696
4886
  * * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
4697
4887
  * instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the
4698
- * supplied argument. See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators) for a
4699
- * list of all available combination and conditional operators.
4888
+ * supplied argument.
4889
+ *
4890
+ * It is important for query performance to use appropriate selectors:
4700
4891
  * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the
4701
4892
  * basis of a query. You should include at least one of these in a selector.
4893
+ * * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query
4894
+ * selectors use these operators in conjunction with equality operators or create and use a partial index to reduce
4895
+ * the number of documents that will need to be scanned.
4702
4896
  *
4703
- * For further reference see
4704
- * [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
4897
+ * See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators)for a list of all available
4898
+ * combination and conditional operators.
4899
+ *
4900
+ * For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
4705
4901
  */
4706
4902
  selector: JsonObject;
4707
4903
  /** Opaque bookmark token used when paginating results. */
@@ -4744,6 +4940,9 @@ declare namespace CloudantV1 {
4744
4940
  *
4745
4941
  * It’s recommended to specify indexes explicitly in your queries to prevent existing queries being affected by new
4746
4942
  * indexes that might get added later.
4943
+ *
4944
+ * If the specified index does not exist or cannot answer the query then the value is ignored and another index or
4945
+ * a full scan of all documents will answer the query.
4747
4946
  */
4748
4947
  useIndex?: string[];
4749
4948
  /** The read quorum that is needed for the result. The value defaults to 1, in which case the document that was
@@ -4792,13 +4991,19 @@ declare namespace CloudantV1 {
4792
4991
  * combination operator takes a single argument. The argument is either another selector, or an array of selectors.
4793
4992
  * * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
4794
4993
  * instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the
4795
- * supplied argument. See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators) for a
4796
- * list of all available combination and conditional operators.
4994
+ * supplied argument.
4995
+ *
4996
+ * It is important for query performance to use appropriate selectors:
4797
4997
  * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the
4798
4998
  * basis of a query. You should include at least one of these in a selector.
4999
+ * * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query
5000
+ * selectors use these operators in conjunction with equality operators or create and use a partial index to reduce
5001
+ * the number of documents that will need to be scanned.
5002
+ *
5003
+ * See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators)for a list of all available
5004
+ * combination and conditional operators.
4799
5005
  *
4800
- * For further reference see
4801
- * [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
5006
+ * For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
4802
5007
  */
4803
5008
  selector: JsonObject;
4804
5009
  /** Opaque bookmark token used when paginating results. */
@@ -4841,6 +5046,9 @@ declare namespace CloudantV1 {
4841
5046
  *
4842
5047
  * It’s recommended to specify indexes explicitly in your queries to prevent existing queries being affected by new
4843
5048
  * indexes that might get added later.
5049
+ *
5050
+ * If the specified index does not exist or cannot answer the query then the value is ignored and another index or
5051
+ * a full scan of all documents will answer the query.
4844
5052
  */
4845
5053
  useIndex?: string[];
4846
5054
  /** The read quorum that is needed for the result. The value defaults to 1, in which case the document that was
@@ -5261,6 +5469,9 @@ declare namespace CloudantV1 {
5261
5469
  /** Query parameter to specify whether to prevent insertion of conflicting document revisions. If false, a
5262
5470
  * well-formed _rev must be included in the document. False is used by the replicator to insert documents into the
5263
5471
  * target database even if that leads to the creation of conflicts.
5472
+ *
5473
+ * Avoid using this parameter, since this option applies document revisions without checking for conflicts, so it
5474
+ * is very easy to accidentally end up with a large number of conflicts.
5264
5475
  */
5265
5476
  newEdits?: boolean;
5266
5477
  /** Query parameter to specify a document revision. */
@@ -5608,6 +5819,10 @@ declare namespace CloudantV1 {
5608
5819
  interface GetActiveTasksParams {
5609
5820
  headers?: OutgoingHttpHeaders;
5610
5821
  }
5822
+ /** Parameters for the `getMembershipInformation` operation. */
5823
+ interface GetMembershipInformationParams {
5824
+ headers?: OutgoingHttpHeaders;
5825
+ }
5611
5826
  /** Parameters for the `getUpInformation` operation. */
5612
5827
  interface GetUpInformationParams {
5613
5828
  headers?: OutgoingHttpHeaders;
@@ -5639,7 +5854,9 @@ declare namespace CloudantV1 {
5639
5854
  /*************************
5640
5855
  * model interfaces
5641
5856
  ************************/
5642
- /** Schema for information about a running task. */
5857
+ /**
5858
+ * Schema for information about a running task.
5859
+ */
5643
5860
  class ActiveTask {
5644
5861
  /** The total count of attempted doc revisions fetched with `_bulk_get`. Available for `replication` type tasks. */
5645
5862
  bulkGetAttempts?: number;
@@ -5793,7 +6010,9 @@ declare namespace CloudantV1 {
5793
6010
  view?: number;
5794
6011
  }
5795
6012
  }
5796
- /** Schema for Activity Tracker events. */
6013
+ /**
6014
+ * Schema for Activity Tracker events.
6015
+ */
5797
6016
  class ActivityTrackerEvents {
5798
6017
  /** An array of event types that are being sent to IBM Cloud Activity Tracker for the IBM Cloudant instance.
5799
6018
  * "management" is a required element of this array.
@@ -5814,7 +6033,9 @@ declare namespace CloudantV1 {
5814
6033
  types: string[];
5815
6034
  }
5816
6035
  }
5817
- /** Schema for the result of an all documents queries operation. */
6036
+ /**
6037
+ * Schema for the result of an all documents queries operation.
6038
+ */
5818
6039
  class AllDocsQueriesResult {
5819
6040
  /** An array of result objects - one for each query. Each result object contains the same fields as the response
5820
6041
  * to a regular `/_all_docs` request.
@@ -5828,7 +6049,9 @@ declare namespace CloudantV1 {
5828
6049
  results: AllDocsResult[];
5829
6050
  }
5830
6051
  }
5831
- /** Schema for an all documents query operation. */
6052
+ /**
6053
+ * Schema for an all documents query operation.
6054
+ */
5832
6055
  class AllDocsQuery {
5833
6056
  /** Parameter to specify whether to include the encoding information in attachment stubs if the particular
5834
6057
  * attachment is compressed.
@@ -5882,7 +6105,9 @@ declare namespace CloudantV1 {
5882
6105
  start_key?: string;
5883
6106
  }
5884
6107
  }
5885
- /** Schema for the result of an all documents operation. */
6108
+ /**
6109
+ * Schema for the result of an all documents operation.
6110
+ */
5886
6111
  class AllDocsResult {
5887
6112
  /** Number of total rows. */
5888
6113
  totalRows: number;
@@ -5900,7 +6125,9 @@ declare namespace CloudantV1 {
5900
6125
  update_seq?: string;
5901
6126
  }
5902
6127
  }
5903
- /** Schema for a full text search analyzer. */
6128
+ /**
6129
+ * Schema for a full text search analyzer.
6130
+ */
5904
6131
  class Analyzer {
5905
6132
  /** Schema for the name of the Apache Lucene analyzer to use for text indexing. The default value varies
5906
6133
  * depending on the analyzer usage:
@@ -5965,7 +6192,9 @@ declare namespace CloudantV1 {
5965
6192
  stopwords?: string[];
5966
6193
  }
5967
6194
  }
5968
- /** Schema for a search analyzer configuration. */
6195
+ /**
6196
+ * Schema for a search analyzer configuration.
6197
+ */
5969
6198
  class AnalyzerConfiguration {
5970
6199
  /** Schema for the name of the Apache Lucene analyzer to use for text indexing. The default value varies
5971
6200
  * depending on the analyzer usage:
@@ -6037,7 +6266,9 @@ declare namespace CloudantV1 {
6037
6266
  };
6038
6267
  }
6039
6268
  }
6040
- /** Schema for api keys. */
6269
+ /**
6270
+ * Schema for api keys.
6271
+ */
6041
6272
  class ApiKeysResult {
6042
6273
  /** ok. */
6043
6274
  ok: boolean;
@@ -6055,7 +6286,9 @@ declare namespace CloudantV1 {
6055
6286
  password: string;
6056
6287
  }
6057
6288
  }
6058
- /** Schema for an attachment. */
6289
+ /**
6290
+ * Schema for an attachment.
6291
+ */
6059
6292
  class Attachment {
6060
6293
  /** Attachment MIME type. */
6061
6294
  contentType?: string;
@@ -6102,11 +6335,17 @@ declare namespace CloudantV1 {
6102
6335
  stub?: boolean;
6103
6336
  }
6104
6337
  }
6105
- /** Schema for submitting documents for bulk modifications. */
6338
+ /**
6339
+ * Schema for submitting documents for bulk modifications.
6340
+ */
6106
6341
  class BulkDocs {
6107
6342
  /** Array of documents. */
6108
6343
  docs: Document[];
6109
- /** If `false`, prevents the database from assigning them new revision IDs. Default is `true`. */
6344
+ /** If `false`, prevents the database from assigning them new revision IDs. Default is `true`.
6345
+ *
6346
+ * Avoid using this parameter, since this option applies document revisions without checking for conflicts, so it
6347
+ * is very easy to accidentally end up with a large number of conflicts.
6348
+ */
6110
6349
  newEdits?: boolean;
6111
6350
  static serialize(obj: any): BulkDocs.Transport;
6112
6351
  static deserialize(obj: any): BulkDocs;
@@ -6117,7 +6356,9 @@ declare namespace CloudantV1 {
6117
6356
  new_edits?: boolean;
6118
6357
  }
6119
6358
  }
6120
- /** Schema for a document item in a bulk get query. */
6359
+ /**
6360
+ * Schema for a document item in a bulk get query.
6361
+ */
6121
6362
  class BulkGetQueryDocument {
6122
6363
  /** Includes attachments only since specified revisions. */
6123
6364
  attsSince?: string[];
@@ -6135,7 +6376,9 @@ declare namespace CloudantV1 {
6135
6376
  rev?: string;
6136
6377
  }
6137
6378
  }
6138
- /** Schema for the results object of a bulk get operation. */
6379
+ /**
6380
+ * Schema for the results object of a bulk get operation.
6381
+ */
6139
6382
  class BulkGetResult {
6140
6383
  /** Results. */
6141
6384
  results: BulkGetResultItem[];
@@ -6147,7 +6390,9 @@ declare namespace CloudantV1 {
6147
6390
  results: BulkGetResultItem[];
6148
6391
  }
6149
6392
  }
6150
- /** Schema for BulkGetResult object containing a successfully retrieved document or error information. */
6393
+ /**
6394
+ * Schema for BulkGetResult object containing a successfully retrieved document or error information.
6395
+ */
6151
6396
  class BulkGetResultDocument {
6152
6397
  /** Schema for the result of a document modification. */
6153
6398
  error?: DocumentResult;
@@ -6162,7 +6407,9 @@ declare namespace CloudantV1 {
6162
6407
  ok?: Document.Transport;
6163
6408
  }
6164
6409
  }
6165
- /** Schema for the document revisions information from a bulk get operation. */
6410
+ /**
6411
+ * Schema for the document revisions information from a bulk get operation.
6412
+ */
6166
6413
  class BulkGetResultItem {
6167
6414
  /** Array of document revisions or error information. */
6168
6415
  docs: BulkGetResultDocument[];
@@ -6177,7 +6424,9 @@ declare namespace CloudantV1 {
6177
6424
  id: string;
6178
6425
  }
6179
6426
  }
6180
- /** Schema for information about the currently provisioned and target throughput capacity. */
6427
+ /**
6428
+ * Schema for information about the currently provisioned and target throughput capacity.
6429
+ */
6181
6430
  class CapacityThroughputInformation {
6182
6431
  /** Detailed information about provisioned throughput capacity. */
6183
6432
  current: CapacityThroughputInformationCurrent;
@@ -6192,7 +6441,9 @@ declare namespace CloudantV1 {
6192
6441
  target?: CapacityThroughputInformationTarget.Transport;
6193
6442
  }
6194
6443
  }
6195
- /** Detailed information about provisioned throughput capacity. */
6444
+ /**
6445
+ * Detailed information about provisioned throughput capacity.
6446
+ */
6196
6447
  class CapacityThroughputInformationCurrent {
6197
6448
  /** Schema for detailed information about throughput capacity with breakdown by specific throughput requests
6198
6449
  * classes.
@@ -6206,7 +6457,9 @@ declare namespace CloudantV1 {
6206
6457
  throughput: ThroughputInformation.Transport;
6207
6458
  }
6208
6459
  }
6209
- /** Detailed information about target throughput capacity. */
6460
+ /**
6461
+ * Detailed information about target throughput capacity.
6462
+ */
6210
6463
  class CapacityThroughputInformationTarget {
6211
6464
  /** Schema for detailed information about throughput capacity with breakdown by specific throughput requests
6212
6465
  * classes.
@@ -6220,7 +6473,9 @@ declare namespace CloudantV1 {
6220
6473
  throughput: ThroughputInformation.Transport;
6221
6474
  }
6222
6475
  }
6223
- /** Schema for a document leaf with single field rev. */
6476
+ /**
6477
+ * Schema for a document leaf with single field rev.
6478
+ */
6224
6479
  class Change {
6225
6480
  /** Schema for a document revision identifier. */
6226
6481
  rev: string;
@@ -6232,7 +6487,9 @@ declare namespace CloudantV1 {
6232
6487
  rev: string;
6233
6488
  }
6234
6489
  }
6235
- /** Schema for normal changes feed result. */
6490
+ /**
6491
+ * Schema for normal changes feed result.
6492
+ */
6236
6493
  class ChangesResult {
6237
6494
  /** last_seq. */
6238
6495
  lastSeq: string;
@@ -6250,7 +6507,9 @@ declare namespace CloudantV1 {
6250
6507
  results: ChangesResultItem[];
6251
6508
  }
6252
6509
  }
6253
- /** Schema for an item in the changes results array. */
6510
+ /**
6511
+ * Schema for an item in the changes results array.
6512
+ */
6254
6513
  class ChangesResultItem {
6255
6514
  /** List of document's leaves with single field rev. */
6256
6515
  changes: Change[];
@@ -6274,7 +6533,9 @@ declare namespace CloudantV1 {
6274
6533
  seq: string;
6275
6534
  }
6276
6535
  }
6277
- /** Schema for size information of content. */
6536
+ /**
6537
+ * Schema for size information of content.
6538
+ */
6278
6539
  class ContentInformationSizes {
6279
6540
  /** The active size of the content, in bytes. */
6280
6541
  active: number;
@@ -6292,7 +6553,9 @@ declare namespace CloudantV1 {
6292
6553
  file: number;
6293
6554
  }
6294
6555
  }
6295
- /** Schema for information about the CORS configuration. */
6556
+ /**
6557
+ * Schema for information about the CORS configuration.
6558
+ */
6296
6559
  class CorsInformation {
6297
6560
  /** Boolean value to allow authentication credentials. If set to true, browser requests must be done by using
6298
6561
  * withCredentials = true.
@@ -6315,7 +6578,9 @@ declare namespace CloudantV1 {
6315
6578
  origins: string[];
6316
6579
  }
6317
6580
  }
6318
- /** Schema for information about current consumption of a provisioned throughput capacity. */
6581
+ /**
6582
+ * Schema for information about current consumption of a provisioned throughput capacity.
6583
+ */
6319
6584
  class CurrentThroughputInformation {
6320
6585
  /** Detailed information about current consumption. */
6321
6586
  throughput: CurrentThroughputInformationThroughput;
@@ -6327,7 +6592,9 @@ declare namespace CloudantV1 {
6327
6592
  throughput: CurrentThroughputInformationThroughput.Transport;
6328
6593
  }
6329
6594
  }
6330
- /** Detailed information about current consumption. */
6595
+ /**
6596
+ * Detailed information about current consumption.
6597
+ */
6331
6598
  class CurrentThroughputInformationThroughput {
6332
6599
  /** Number of global queries conducted against the instance for a given second. */
6333
6600
  query: number;
@@ -6345,7 +6612,9 @@ declare namespace CloudantV1 {
6345
6612
  write: number;
6346
6613
  }
6347
6614
  }
6348
- /** Schema for information about a database. */
6615
+ /**
6616
+ * Schema for information about a database.
6617
+ */
6349
6618
  class DatabaseInformation {
6350
6619
  /** Schema for database cluster information. */
6351
6620
  cluster: DatabaseInformationCluster;
@@ -6403,7 +6672,9 @@ declare namespace CloudantV1 {
6403
6672
  partitioned_indexes?: PartitionedIndexesInformation.Transport;
6404
6673
  }
6405
6674
  }
6406
- /** Schema for database cluster information. */
6675
+ /**
6676
+ * Schema for database cluster information.
6677
+ */
6407
6678
  class DatabaseInformationCluster {
6408
6679
  /** Schema for the number of replicas of a database in a cluster. The cluster is using the default value and it
6409
6680
  * cannot be changed by the user.
@@ -6426,7 +6697,9 @@ declare namespace CloudantV1 {
6426
6697
  w: number;
6427
6698
  }
6428
6699
  }
6429
- /** Schema for database properties. */
6700
+ /**
6701
+ * Schema for database properties.
6702
+ */
6430
6703
  class DatabaseInformationProps {
6431
6704
  /** The value is `true` for a partitioned database. */
6432
6705
  partitioned?: boolean;
@@ -6438,7 +6711,9 @@ declare namespace CloudantV1 {
6438
6711
  partitioned?: boolean;
6439
6712
  }
6440
6713
  }
6441
- /** Schema for a database change event. */
6714
+ /**
6715
+ * Schema for a database change event.
6716
+ */
6442
6717
  class DbEvent {
6443
6718
  /** Database name. */
6444
6719
  dbName: string;
@@ -6464,7 +6739,9 @@ declare namespace CloudantV1 {
6464
6739
  type: string;
6465
6740
  }
6466
6741
  }
6467
- /** Schema for database updates. */
6742
+ /**
6743
+ * Schema for database updates.
6744
+ */
6468
6745
  class DbUpdates {
6469
6746
  /** Last sequence number. */
6470
6747
  lastSeq: string;
@@ -6479,7 +6756,9 @@ declare namespace CloudantV1 {
6479
6756
  results: DbEvent[];
6480
6757
  }
6481
6758
  }
6482
- /** Schema for database information keyed by database name. */
6759
+ /**
6760
+ * Schema for database information keyed by database name.
6761
+ */
6483
6762
  class DbsInfoResult {
6484
6763
  /** The name of the error. */
6485
6764
  error?: string;
@@ -6497,7 +6776,11 @@ declare namespace CloudantV1 {
6497
6776
  key: string;
6498
6777
  }
6499
6778
  }
6500
- /** Schema for a design document. */
6779
+ /**
6780
+ * Schema for a design document.
6781
+ *
6782
+ * This type supports additional properties of type any.
6783
+ */
6501
6784
  class DesignDocument {
6502
6785
  /** Schema for a map of attachment name to attachment metadata. */
6503
6786
  _attachments?: {
@@ -6603,7 +6886,9 @@ declare namespace CloudantV1 {
6603
6886
  views?: {
6604
6887
  [key: string]: DesignDocumentViewsMapReduce;
6605
6888
  };
6606
- /** DesignDocument accepts additional properties. */
6889
+ /**
6890
+ * DesignDocument accepts additional properties of type any.
6891
+ */
6607
6892
  [propName: string]: any;
6608
6893
  static serialize(obj: any): DesignDocument.Transport;
6609
6894
  static deserialize(obj: any): DesignDocument;
@@ -6632,11 +6917,13 @@ declare namespace CloudantV1 {
6632
6917
  views?: {
6633
6918
  [key: string]: DesignDocumentViewsMapReduce.Transport;
6634
6919
  };
6635
- /** DesignDocument.DesignDocument.Transport accepts additional properties. */
6920
+ /** DesignDocument.DesignDocument.Transport accepts additional properties of type any. */
6636
6921
  [propName: string]: any;
6637
6922
  }
6638
6923
  }
6639
- /** Schema for information about a design document. */
6924
+ /**
6925
+ * Schema for information about a design document.
6926
+ */
6640
6927
  class DesignDocumentInformation {
6641
6928
  /** name. */
6642
6929
  name: string;
@@ -6651,7 +6938,9 @@ declare namespace CloudantV1 {
6651
6938
  view_index: DesignDocumentViewIndex.Transport;
6652
6939
  }
6653
6940
  }
6654
- /** Schema for design document options. */
6941
+ /**
6942
+ * Schema for design document options.
6943
+ */
6655
6944
  class DesignDocumentOptions {
6656
6945
  /** Whether this design document describes partitioned or global indexes. */
6657
6946
  partitioned?: boolean;
@@ -6663,7 +6952,9 @@ declare namespace CloudantV1 {
6663
6952
  partitioned?: boolean;
6664
6953
  }
6665
6954
  }
6666
- /** View index information. */
6955
+ /**
6956
+ * View index information.
6957
+ */
6667
6958
  class DesignDocumentViewIndex {
6668
6959
  /** List of collator versions. If there are multiple entries this implies a libicu upgrade has occurred but
6669
6960
  * compaction has not run yet.
@@ -6701,7 +6992,9 @@ declare namespace CloudantV1 {
6701
6992
  waiting_commit: boolean;
6702
6993
  }
6703
6994
  }
6704
- /** Schema for view functions definition. */
6995
+ /**
6996
+ * Schema for view functions definition.
6997
+ */
6705
6998
  class DesignDocumentViewsMapReduce {
6706
6999
  /** JavaScript map function as a string. */
6707
7000
  map: string;
@@ -6716,7 +7009,9 @@ declare namespace CloudantV1 {
6716
7009
  reduce?: string;
6717
7010
  }
6718
7011
  }
6719
- /** Schema for a row of document information in a DocsResult. */
7012
+ /**
7013
+ * Schema for a row of document information in a DocsResult.
7014
+ */
6720
7015
  class DocsResultRow {
6721
7016
  /** The cause of the error (if available). */
6722
7017
  causedBy?: string;
@@ -6749,7 +7044,9 @@ declare namespace CloudantV1 {
6749
7044
  value?: DocsResultRowValue.Transport;
6750
7045
  }
6751
7046
  }
6752
- /** Value of built-in `/_all_docs` style view. */
7047
+ /**
7048
+ * Value of built-in `/_all_docs` style view.
7049
+ */
6753
7050
  class DocsResultRowValue {
6754
7051
  /** If `true` then the document is deleted. Not present for undeleted documents. */
6755
7052
  deleted?: boolean;
@@ -6764,7 +7061,11 @@ declare namespace CloudantV1 {
6764
7061
  rev: string;
6765
7062
  }
6766
7063
  }
6767
- /** Schema for a document. */
7064
+ /**
7065
+ * Schema for a document.
7066
+ *
7067
+ * This type supports additional properties of type any.
7068
+ */
6768
7069
  class Document {
6769
7070
  /** Schema for a map of attachment name to attachment metadata. */
6770
7071
  _attachments?: {
@@ -6786,7 +7087,9 @@ declare namespace CloudantV1 {
6786
7087
  _revisions?: Revisions;
6787
7088
  /** Schema for a list of objects with information about local revisions and their status. */
6788
7089
  _revs_info?: DocumentRevisionStatus[];
6789
- /** Document accepts additional properties. */
7090
+ /**
7091
+ * Document accepts additional properties of type any.
7092
+ */
6790
7093
  [propName: string]: any;
6791
7094
  static serialize(obj: any): Document.Transport;
6792
7095
  static deserialize(obj: any): Document;
@@ -6804,11 +7107,13 @@ declare namespace CloudantV1 {
6804
7107
  _rev?: string;
6805
7108
  _revisions?: Revisions.Transport;
6806
7109
  _revs_info?: DocumentRevisionStatus[];
6807
- /** Document.Document.Transport accepts additional properties. */
7110
+ /** Document.Document.Transport accepts additional properties of type any. */
6808
7111
  [propName: string]: any;
6809
7112
  }
6810
7113
  }
6811
- /** Schema for the result of a document modification. */
7114
+ /**
7115
+ * Schema for the result of a document modification.
7116
+ */
6812
7117
  class DocumentResult {
6813
7118
  /** Schema for a document ID. */
6814
7119
  id: string;
@@ -6838,7 +7143,9 @@ declare namespace CloudantV1 {
6838
7143
  ref?: number;
6839
7144
  }
6840
7145
  }
6841
- /** Schema for information about revisions and their status. */
7146
+ /**
7147
+ * Schema for information about revisions and their status.
7148
+ */
6842
7149
  class DocumentRevisionStatus {
6843
7150
  /** Schema for a document revision identifier. */
6844
7151
  rev: string;
@@ -6863,7 +7170,9 @@ declare namespace CloudantV1 {
6863
7170
  status: string;
6864
7171
  }
6865
7172
  }
6866
- /** Schema for document shard information. */
7173
+ /**
7174
+ * Schema for document shard information.
7175
+ */
6867
7176
  class DocumentShardInfo {
6868
7177
  /** List of nodes serving a replica of the shard. */
6869
7178
  nodes: string[];
@@ -6878,7 +7187,9 @@ declare namespace CloudantV1 {
6878
7187
  range: string;
6879
7188
  }
6880
7189
  }
6881
- /** Schema for find query execution statistics. */
7190
+ /**
7191
+ * Schema for find query execution statistics.
7192
+ */
6882
7193
  class ExecutionStats {
6883
7194
  /** Time to execute the query. */
6884
7195
  executionTimeMs: number;
@@ -6902,7 +7213,9 @@ declare namespace CloudantV1 {
6902
7213
  total_quorum_docs_examined: number;
6903
7214
  }
6904
7215
  }
6905
- /** Schema for information about the index used for a find query. */
7216
+ /**
7217
+ * Schema for information about the index used for a find query.
7218
+ */
6906
7219
  class ExplainResult {
6907
7220
  /** When `true`, the query is answered using the index only and no documents are fetched. */
6908
7221
  covering: boolean;
@@ -6944,13 +7257,19 @@ declare namespace CloudantV1 {
6944
7257
  * combination operator takes a single argument. The argument is either another selector, or an array of selectors.
6945
7258
  * * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
6946
7259
  * instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the
6947
- * supplied argument. See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators) for a
6948
- * list of all available combination and conditional operators.
7260
+ * supplied argument.
7261
+ *
7262
+ * It is important for query performance to use appropriate selectors:
6949
7263
  * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the
6950
7264
  * basis of a query. You should include at least one of these in a selector.
7265
+ * * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query
7266
+ * selectors use these operators in conjunction with equality operators or create and use a partial index to reduce
7267
+ * the number of documents that will need to be scanned.
7268
+ *
7269
+ * See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators)for a list of all available
7270
+ * combination and conditional operators.
6951
7271
  *
6952
- * For further reference see
6953
- * [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
7272
+ * For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
6954
7273
  */
6955
7274
  selector: JsonObject;
6956
7275
  /** Schema for a list of objects with extra information on the selector to provide insights about its usability. */
@@ -6976,7 +7295,9 @@ declare namespace CloudantV1 {
6976
7295
  skip: number;
6977
7296
  }
6978
7297
  }
6979
- /** Arguments passed to the underlying view. */
7298
+ /**
7299
+ * Arguments passed to the underlying view.
7300
+ */
6980
7301
  class ExplainResultMrArgs {
6981
7302
  /** Schema for any JSON type. */
6982
7303
  conflicts?: any;
@@ -7028,7 +7349,9 @@ declare namespace CloudantV1 {
7028
7349
  view_type?: string;
7029
7350
  }
7030
7351
  }
7031
- /** Options used for the request. */
7352
+ /**
7353
+ * Options used for the request.
7354
+ */
7032
7355
  class ExplainResultOpts {
7033
7356
  /** Opaque bookmark token used when paginating results. */
7034
7357
  bookmark: string;
@@ -7080,7 +7403,9 @@ declare namespace CloudantV1 {
7080
7403
  use_index: string[];
7081
7404
  }
7082
7405
  }
7083
- /** Schema for the result of a query find operation. */
7406
+ /**
7407
+ * Schema for the result of a query find operation.
7408
+ */
7084
7409
  class FindResult {
7085
7410
  /** Opaque bookmark token used when paginating results. */
7086
7411
  bookmark: string;
@@ -7101,7 +7426,9 @@ declare namespace CloudantV1 {
7101
7426
  warning?: string;
7102
7427
  }
7103
7428
  }
7104
- /** Schema for detailed explanation of why the specific index was excluded by the query planner. */
7429
+ /**
7430
+ * Schema for detailed explanation of why the specific index was excluded by the query planner.
7431
+ */
7105
7432
  class IndexAnalysis {
7106
7433
  /** When `true`, the query is answered using the index only and no documents are fetched. */
7107
7434
  covering: boolean | null;
@@ -7122,7 +7449,9 @@ declare namespace CloudantV1 {
7122
7449
  usable: boolean;
7123
7450
  }
7124
7451
  }
7125
- /** A reason for index's exclusion. */
7452
+ /**
7453
+ * A reason for index's exclusion.
7454
+ */
7126
7455
  class IndexAnalysisExclusionReason {
7127
7456
  /** A reason code for index's exclusion.
7128
7457
  *
@@ -7168,7 +7497,9 @@ declare namespace CloudantV1 {
7168
7497
  name?: string;
7169
7498
  }
7170
7499
  }
7171
- /** Schema for an index that was not chosen for serving the query with the reason for the exclusion. */
7500
+ /**
7501
+ * Schema for an index that was not chosen for serving the query with the reason for the exclusion.
7502
+ */
7172
7503
  class IndexCandidate {
7173
7504
  /** Schema for detailed explanation of why the specific index was excluded by the query planner. */
7174
7505
  analysis: IndexAnalysis;
@@ -7183,7 +7514,12 @@ declare namespace CloudantV1 {
7183
7514
  index: IndexInformation.Transport;
7184
7515
  }
7185
7516
  }
7186
- /** Schema for a `json` or `text` query index definition. Indexes of type `text` have additional configuration properties that do not apply to `json` indexes, these are: * `default_analyzer` - the default text analyzer to use * `default_field` - whether to index the text in all document fields and what analyzer to use for that purpose. */
7517
+ /**
7518
+ * Schema for a `json` or `text` query index definition. Indexes of type `text` have additional configuration
7519
+ * properties that do not apply to `json` indexes, these are:
7520
+ * * `default_analyzer` - the default text analyzer to use * `default_field` - whether to index the text in all
7521
+ * document fields and what analyzer to use for that purpose.
7522
+ */
7187
7523
  class IndexDefinition {
7188
7524
  /** Schema for a full text search analyzer. */
7189
7525
  defaultAnalyzer?: Analyzer;
@@ -7226,13 +7562,19 @@ declare namespace CloudantV1 {
7226
7562
  * combination operator takes a single argument. The argument is either another selector, or an array of selectors.
7227
7563
  * * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
7228
7564
  * instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the
7229
- * supplied argument. See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators) for a
7230
- * list of all available combination and conditional operators.
7565
+ * supplied argument.
7566
+ *
7567
+ * It is important for query performance to use appropriate selectors:
7231
7568
  * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the
7232
7569
  * basis of a query. You should include at least one of these in a selector.
7570
+ * * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query
7571
+ * selectors use these operators in conjunction with equality operators or create and use a partial index to reduce
7572
+ * the number of documents that will need to be scanned.
7573
+ *
7574
+ * See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators)for a list of all available
7575
+ * combination and conditional operators.
7233
7576
  *
7234
- * For further reference see
7235
- * [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
7577
+ * For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
7236
7578
  */
7237
7579
  partialFilterSelector?: JsonObject;
7238
7580
  static serialize(obj: any): IndexDefinition.Transport;
@@ -7247,13 +7589,19 @@ declare namespace CloudantV1 {
7247
7589
  partial_filter_selector?: JsonObject;
7248
7590
  }
7249
7591
  }
7250
- /** Schema for indexed fields for use with declarative JSON query. */
7592
+ /**
7593
+ * Schema for indexed fields for use with declarative JSON query.
7594
+ *
7595
+ * This type supports additional properties of type string. Schema for sort direction.
7596
+ */
7251
7597
  class IndexField {
7252
7598
  /** Name of the field. */
7253
7599
  name?: string;
7254
7600
  /** The type of the named field. */
7255
7601
  type?: IndexField.Constants.Type | string;
7256
- /** IndexField accepts additional properties. */
7602
+ /**
7603
+ * IndexField accepts additional properties of type string. Schema for sort direction.
7604
+ */
7257
7605
  [propName: string]: any;
7258
7606
  static serialize(obj: any): IndexField.Transport;
7259
7607
  static deserialize(obj: any): IndexField;
@@ -7270,11 +7618,13 @@ declare namespace CloudantV1 {
7270
7618
  interface Transport {
7271
7619
  name?: string;
7272
7620
  type?: string;
7273
- /** IndexField.IndexField.Transport accepts additional properties. */
7621
+ /** IndexField.IndexField.Transport accepts additional properties of type string. */
7274
7622
  [propName: string]: any;
7275
7623
  }
7276
7624
  }
7277
- /** Schema for information about an index. */
7625
+ /**
7626
+ * Schema for information about an index.
7627
+ */
7278
7628
  class IndexInformation {
7279
7629
  /** Design document ID including a `_design/` prefix. */
7280
7630
  ddoc: string | null;
@@ -7310,7 +7660,9 @@ declare namespace CloudantV1 {
7310
7660
  type: string;
7311
7661
  }
7312
7662
  }
7313
- /** Schema for the result of creating an index. */
7663
+ /**
7664
+ * Schema for the result of creating an index.
7665
+ */
7314
7666
  class IndexResult {
7315
7667
  /** Id of the design document the index was created in. */
7316
7668
  id: string;
@@ -7335,7 +7687,10 @@ declare namespace CloudantV1 {
7335
7687
  result: string;
7336
7688
  }
7337
7689
  }
7338
- /** Schema for the text index default field configuration. The default field is used to index the text of all fields within a document for use with the `$text` operator. */
7690
+ /**
7691
+ * Schema for the text index default field configuration. The default field is used to index the text of all fields
7692
+ * within a document for use with the `$text` operator.
7693
+ */
7339
7694
  class IndexTextOperatorDefaultField {
7340
7695
  /** Schema for a full text search analyzer. */
7341
7696
  analyzer?: Analyzer;
@@ -7350,7 +7705,9 @@ declare namespace CloudantV1 {
7350
7705
  enabled?: boolean;
7351
7706
  }
7352
7707
  }
7353
- /** Schema for information about the indexes in a database. */
7708
+ /**
7709
+ * Schema for information about the indexes in a database.
7710
+ */
7354
7711
  class IndexesInformation {
7355
7712
  /** Number of total rows. */
7356
7713
  totalRows: number;
@@ -7365,7 +7722,9 @@ declare namespace CloudantV1 {
7365
7722
  indexes: IndexInformation[];
7366
7723
  }
7367
7724
  }
7368
- /** Schema for information about known nodes and cluster membership. */
7725
+ /**
7726
+ * Schema for information about known nodes and cluster membership.
7727
+ */
7369
7728
  class MembershipInformation {
7370
7729
  /** List of nodes this node knows about, including the ones that are part of the cluster. */
7371
7730
  allNodes: string[];
@@ -7380,7 +7739,9 @@ declare namespace CloudantV1 {
7380
7739
  cluster_nodes: string[];
7381
7740
  }
7382
7741
  }
7383
- /** Schema for an OK result. */
7742
+ /**
7743
+ * Schema for an OK result.
7744
+ */
7384
7745
  class Ok {
7385
7746
  /** ok. */
7386
7747
  ok?: boolean;
@@ -7392,7 +7753,9 @@ declare namespace CloudantV1 {
7392
7753
  ok?: boolean;
7393
7754
  }
7394
7755
  }
7395
- /** Schema for information about a database partition. */
7756
+ /**
7757
+ * Schema for information about a database partition.
7758
+ */
7396
7759
  class PartitionInformation {
7397
7760
  /** The name of the database. */
7398
7761
  dbName: string;
@@ -7419,7 +7782,9 @@ declare namespace CloudantV1 {
7419
7782
  sizes: PartitionInformationSizes.Transport;
7420
7783
  }
7421
7784
  }
7422
- /** Schema for information about the partition index count and limit in a database. */
7785
+ /**
7786
+ * Schema for information about the partition index count and limit in a database.
7787
+ */
7423
7788
  class PartitionInformationIndexes {
7424
7789
  /** Total count of the partitioned indexes. */
7425
7790
  count?: number;
@@ -7437,7 +7802,9 @@ declare namespace CloudantV1 {
7437
7802
  limit?: number;
7438
7803
  }
7439
7804
  }
7440
- /** The count breakdown of partitioned indexes. */
7805
+ /**
7806
+ * The count breakdown of partitioned indexes.
7807
+ */
7441
7808
  class PartitionInformationIndexesIndexes {
7442
7809
  /** Number of partitioned search indexes. */
7443
7810
  search?: number;
@@ -7452,7 +7819,9 @@ declare namespace CloudantV1 {
7452
7819
  view?: number;
7453
7820
  }
7454
7821
  }
7455
- /** The size of active and external data, in bytes. */
7822
+ /**
7823
+ * The size of active and external data, in bytes.
7824
+ */
7456
7825
  class PartitionInformationSizes {
7457
7826
  /** The size of live data inside the database, in bytes. */
7458
7827
  active?: number;
@@ -7467,7 +7836,9 @@ declare namespace CloudantV1 {
7467
7836
  external?: number;
7468
7837
  }
7469
7838
  }
7470
- /** Number of partitioned indexes by type. */
7839
+ /**
7840
+ * Number of partitioned indexes by type.
7841
+ */
7471
7842
  class PartitionedIndexesDetailedInformation {
7472
7843
  /** Number of partitioned indexes of search type. */
7473
7844
  search?: number;
@@ -7482,7 +7853,9 @@ declare namespace CloudantV1 {
7482
7853
  view?: number;
7483
7854
  }
7484
7855
  }
7485
- /** Information about database's partitioned indexes. */
7856
+ /**
7857
+ * Information about database's partitioned indexes.
7858
+ */
7486
7859
  class PartitionedIndexesInformation {
7487
7860
  /** Total number of partitioned indexes in the database. */
7488
7861
  count?: number;
@@ -7500,7 +7873,9 @@ declare namespace CloudantV1 {
7500
7873
  limit?: number;
7501
7874
  }
7502
7875
  }
7503
- /** Request parameters to use during target database creation. */
7876
+ /**
7877
+ * Request parameters to use during target database creation.
7878
+ */
7504
7879
  class ReplicationCreateTargetParameters {
7505
7880
  /** Schema for the number of replicas of a database in a cluster. The cluster is using the default value and it
7506
7881
  * cannot be changed by the user.
@@ -7520,7 +7895,9 @@ declare namespace CloudantV1 {
7520
7895
  q?: number;
7521
7896
  }
7522
7897
  }
7523
- /** Schema for a replication source or target database. */
7898
+ /**
7899
+ * Schema for a replication source or target database.
7900
+ */
7524
7901
  class ReplicationDatabase {
7525
7902
  /** Schema for replication source or target database authentication. */
7526
7903
  auth?: ReplicationDatabaseAuth;
@@ -7538,7 +7915,9 @@ declare namespace CloudantV1 {
7538
7915
  url: string;
7539
7916
  }
7540
7917
  }
7541
- /** Schema for replication source or target database authentication. */
7918
+ /**
7919
+ * Schema for replication source or target database authentication.
7920
+ */
7542
7921
  class ReplicationDatabaseAuth {
7543
7922
  /** Schema for basic authentication of replication source or target database. */
7544
7923
  basic?: ReplicationDatabaseAuthBasic;
@@ -7553,7 +7932,9 @@ declare namespace CloudantV1 {
7553
7932
  iam?: ReplicationDatabaseAuthIam.Transport;
7554
7933
  }
7555
7934
  }
7556
- /** Schema for basic authentication of replication source or target database. */
7935
+ /**
7936
+ * Schema for basic authentication of replication source or target database.
7937
+ */
7557
7938
  class ReplicationDatabaseAuthBasic {
7558
7939
  /** The password associated with the username. */
7559
7940
  password: string;
@@ -7568,7 +7949,9 @@ declare namespace CloudantV1 {
7568
7949
  username: string;
7569
7950
  }
7570
7951
  }
7571
- /** Schema for an IAM API key for replication database authentication. */
7952
+ /**
7953
+ * Schema for an IAM API key for replication database authentication.
7954
+ */
7572
7955
  class ReplicationDatabaseAuthIam {
7573
7956
  /** IAM API key. */
7574
7957
  apiKey: string;
@@ -7580,7 +7963,11 @@ declare namespace CloudantV1 {
7580
7963
  api_key: string;
7581
7964
  }
7582
7965
  }
7583
- /** Schema for a replication document. Note that `selector`, `doc_ids`, and `filter` are incompatible with each other. */
7966
+ /**
7967
+ * Schema for a replication document. Note that `selector`, `doc_ids`, and `filter` are incompatible with each other.
7968
+ *
7969
+ * This type supports additional properties of type any.
7970
+ */
7584
7971
  class ReplicationDocument {
7585
7972
  /** Schema for a map of attachment name to attachment metadata. */
7586
7973
  _attachments?: {
@@ -7655,13 +8042,19 @@ declare namespace CloudantV1 {
7655
8042
  * combination operator takes a single argument. The argument is either another selector, or an array of selectors.
7656
8043
  * * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
7657
8044
  * instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the
7658
- * supplied argument. See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators) for a
7659
- * list of all available combination and conditional operators.
8045
+ * supplied argument.
8046
+ *
8047
+ * It is important for query performance to use appropriate selectors:
7660
8048
  * * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the
7661
8049
  * basis of a query. You should include at least one of these in a selector.
8050
+ * * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query
8051
+ * selectors use these operators in conjunction with equality operators or create and use a partial index to reduce
8052
+ * the number of documents that will need to be scanned.
8053
+ *
8054
+ * See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators)for a list of all available
8055
+ * combination and conditional operators.
7662
8056
  *
7663
- * For further reference see
7664
- * [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
8057
+ * For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
7665
8058
  */
7666
8059
  selector?: JsonObject;
7667
8060
  /** Start the replication at a specific sequence value. */
@@ -7709,7 +8102,9 @@ declare namespace CloudantV1 {
7709
8102
  * number can improve throughput.
7710
8103
  */
7711
8104
  workerProcesses?: number;
7712
- /** ReplicationDocument accepts additional properties. */
8105
+ /**
8106
+ * ReplicationDocument accepts additional properties of type any.
8107
+ */
7713
8108
  [propName: string]: any;
7714
8109
  static serialize(obj: any): ReplicationDocument.Transport;
7715
8110
  static deserialize(obj: any): ReplicationDocument;
@@ -7752,11 +8147,13 @@ declare namespace CloudantV1 {
7752
8147
  winning_revs_only?: boolean;
7753
8148
  worker_batch_size?: number;
7754
8149
  worker_processes?: number;
7755
- /** ReplicationDocument.ReplicationDocument.Transport accepts additional properties. */
8150
+ /** ReplicationDocument.ReplicationDocument.Transport accepts additional properties of type any. */
7756
8151
  [propName: string]: any;
7757
8152
  }
7758
8153
  }
7759
- /** Schema for list of revision information. */
8154
+ /**
8155
+ * Schema for list of revision information.
8156
+ */
7760
8157
  class Revisions {
7761
8158
  /** Array of valid revision IDs, in reverse order (latest first). */
7762
8159
  ids: string[];
@@ -7771,7 +8168,9 @@ declare namespace CloudantV1 {
7771
8168
  start: number;
7772
8169
  }
7773
8170
  }
7774
- /** Schema for information about missing revs and possible ancestors. */
8171
+ /**
8172
+ * Schema for information about missing revs and possible ancestors.
8173
+ */
7775
8174
  class RevsDiff {
7776
8175
  /** List of missing revisions. */
7777
8176
  missing?: string[];
@@ -7786,7 +8185,9 @@ declare namespace CloudantV1 {
7786
8185
  possible_ancestors?: string[];
7787
8186
  }
7788
8187
  }
7789
- /** Schema for a listing of replication scheduler documents. */
8188
+ /**
8189
+ * Schema for a listing of replication scheduler documents.
8190
+ */
7790
8191
  class SchedulerDocsResult {
7791
8192
  /** Number of total rows. */
7792
8193
  totalRows: number;
@@ -7801,7 +8202,9 @@ declare namespace CloudantV1 {
7801
8202
  docs: SchedulerDocument[];
7802
8203
  }
7803
8204
  }
7804
- /** Schema for a replication scheduler document. */
8205
+ /**
8206
+ * Schema for a replication scheduler document.
8207
+ */
7805
8208
  class SchedulerDocument {
7806
8209
  /** Database where replication document came from. */
7807
8210
  database: string;
@@ -7872,7 +8275,10 @@ declare namespace CloudantV1 {
7872
8275
  target_proxy?: string;
7873
8276
  }
7874
8277
  }
7875
- /** Schema for scheduler document information. A JSON object that may contain additional information about the state. For error states this will contain an error field and string value. */
8278
+ /**
8279
+ * Schema for scheduler document information. A JSON object that may contain additional information about the state.
8280
+ * For error states this will contain an error field and string value.
8281
+ */
7876
8282
  class SchedulerInfo {
7877
8283
  /** The count of changes not yet replicated. */
7878
8284
  changesPending?: number | null;
@@ -7911,7 +8317,9 @@ declare namespace CloudantV1 {
7911
8317
  through_seq?: string;
7912
8318
  }
7913
8319
  }
7914
- /** Schema for a replication scheduler job. */
8320
+ /**
8321
+ * Schema for a replication scheduler job.
8322
+ */
7915
8323
  class SchedulerJob {
7916
8324
  /** Replication document database. */
7917
8325
  database: string;
@@ -7955,7 +8363,9 @@ declare namespace CloudantV1 {
7955
8363
  user: string;
7956
8364
  }
7957
8365
  }
7958
- /** Schema for a replication scheduler job event. */
8366
+ /**
8367
+ * Schema for a replication scheduler job event.
8368
+ */
7959
8369
  class SchedulerJobEvent {
7960
8370
  /** Reason for current state of event. */
7961
8371
  reason?: string;
@@ -7973,7 +8383,9 @@ declare namespace CloudantV1 {
7973
8383
  type: string;
7974
8384
  }
7975
8385
  }
7976
- /** Schema for a listing of replication scheduler jobs. */
8386
+ /**
8387
+ * Schema for a listing of replication scheduler jobs.
8388
+ */
7977
8389
  class SchedulerJobsResult {
7978
8390
  /** Number of total rows. */
7979
8391
  totalRows: number;
@@ -7988,7 +8400,9 @@ declare namespace CloudantV1 {
7988
8400
  jobs: SchedulerJob[];
7989
8401
  }
7990
8402
  }
7991
- /** Schema for the output of testing search analyzer tokenization. */
8403
+ /**
8404
+ * Schema for the output of testing search analyzer tokenization.
8405
+ */
7992
8406
  class SearchAnalyzeResult {
7993
8407
  /** tokens. */
7994
8408
  tokens: string[];
@@ -8000,7 +8414,9 @@ declare namespace CloudantV1 {
8000
8414
  tokens: string[];
8001
8415
  }
8002
8416
  }
8003
- /** Schema for a search index definition. */
8417
+ /**
8418
+ * Schema for a search index definition.
8419
+ */
8004
8420
  class SearchIndexDefinition {
8005
8421
  /** Schema for a search analyzer configuration. */
8006
8422
  analyzer?: AnalyzerConfiguration;
@@ -8034,7 +8450,9 @@ declare namespace CloudantV1 {
8034
8450
  index: string;
8035
8451
  }
8036
8452
  }
8037
- /** Schema for metadata information about a search index. */
8453
+ /**
8454
+ * Schema for metadata information about a search index.
8455
+ */
8038
8456
  class SearchIndexInfo {
8039
8457
  /** The committed sequence identifier. */
8040
8458
  committedSeq: number;
@@ -8061,7 +8479,9 @@ declare namespace CloudantV1 {
8061
8479
  signature: string;
8062
8480
  }
8063
8481
  }
8064
- /** Schema for search index information. */
8482
+ /**
8483
+ * Schema for search index information.
8484
+ */
8065
8485
  class SearchInfoResult {
8066
8486
  /** The name of the search index prefixed by the design document ID where the index is stored. */
8067
8487
  name: string;
@@ -8076,7 +8496,9 @@ declare namespace CloudantV1 {
8076
8496
  search_index: SearchIndexInfo.Transport;
8077
8497
  }
8078
8498
  }
8079
- /** Schema for the result of a query search operation. */
8499
+ /**
8500
+ * Schema for the result of a query search operation.
8501
+ */
8080
8502
  class SearchResult {
8081
8503
  /** Number of total rows. */
8082
8504
  totalRows: number;
@@ -8116,7 +8538,9 @@ declare namespace CloudantV1 {
8116
8538
  groups?: SearchResultProperties[];
8117
8539
  }
8118
8540
  }
8119
- /** Schema for the result of a query search operation. */
8541
+ /**
8542
+ * Schema for the result of a query search operation.
8543
+ */
8120
8544
  class SearchResultProperties {
8121
8545
  /** Number of total rows. */
8122
8546
  totalRows: number;
@@ -8153,7 +8577,9 @@ declare namespace CloudantV1 {
8153
8577
  rows?: SearchResultRow[];
8154
8578
  }
8155
8579
  }
8156
- /** Schema for a row of the result of a query search operation. */
8580
+ /**
8581
+ * Schema for a row of the result of a query search operation.
8582
+ */
8157
8583
  class SearchResultRow {
8158
8584
  /** Schema for a document. */
8159
8585
  doc?: Document;
@@ -8176,7 +8602,9 @@ declare namespace CloudantV1 {
8176
8602
  id: string;
8177
8603
  }
8178
8604
  }
8179
- /** Schema for a security document. */
8605
+ /**
8606
+ * Schema for a security document.
8607
+ */
8180
8608
  class Security {
8181
8609
  /** Schema for names and roles to map to a database permission. */
8182
8610
  admins?: SecurityObject;
@@ -8197,7 +8625,9 @@ declare namespace CloudantV1 {
8197
8625
  couchdb_auth_only?: boolean;
8198
8626
  }
8199
8627
  }
8200
- /** Schema for names and roles to map to a database permission. */
8628
+ /**
8629
+ * Schema for names and roles to map to a database permission.
8630
+ */
8201
8631
  class SecurityObject {
8202
8632
  /** List of usernames. */
8203
8633
  names?: string[];
@@ -8212,7 +8642,9 @@ declare namespace CloudantV1 {
8212
8642
  roles?: string[];
8213
8643
  }
8214
8644
  }
8215
- /** Schema for extra information on the selector. */
8645
+ /**
8646
+ * Schema for extra information on the selector.
8647
+ */
8216
8648
  class SelectorHint {
8217
8649
  /** A list of fields in the given selector that can be used to restrict the query. */
8218
8650
  indexableFields: string[];
@@ -8237,7 +8669,9 @@ declare namespace CloudantV1 {
8237
8669
  unindexable_fields: string[];
8238
8670
  }
8239
8671
  }
8240
- /** Schema for information about the server instance. */
8672
+ /**
8673
+ * Schema for information about the server instance.
8674
+ */
8241
8675
  class ServerInformation {
8242
8676
  /** Welcome message. */
8243
8677
  couchdb: string;
@@ -8261,7 +8695,11 @@ declare namespace CloudantV1 {
8261
8695
  features_flags: string[];
8262
8696
  }
8263
8697
  }
8264
- /** Schema for server vendor information. */
8698
+ /**
8699
+ * Schema for server vendor information.
8700
+ *
8701
+ * This type supports additional properties of type string.
8702
+ */
8265
8703
  class ServerVendor {
8266
8704
  /** Vendor name. */
8267
8705
  name: string;
@@ -8269,7 +8707,9 @@ declare namespace CloudantV1 {
8269
8707
  variant: string;
8270
8708
  /** Vendor version. */
8271
8709
  version: string;
8272
- /** ServerVendor accepts additional properties. */
8710
+ /**
8711
+ * ServerVendor accepts additional properties of type string.
8712
+ */
8273
8713
  [propName: string]: any;
8274
8714
  static serialize(obj: any): ServerVendor.Transport;
8275
8715
  static deserialize(obj: any): ServerVendor;
@@ -8279,11 +8719,13 @@ declare namespace CloudantV1 {
8279
8719
  name: string;
8280
8720
  variant: string;
8281
8721
  version: string;
8282
- /** ServerVendor.ServerVendor.Transport accepts additional properties. */
8722
+ /** ServerVendor.ServerVendor.Transport accepts additional properties of type string. */
8283
8723
  [propName: string]: any;
8284
8724
  }
8285
8725
  }
8286
- /** Schema for session authentication information. */
8726
+ /**
8727
+ * Schema for session authentication information.
8728
+ */
8287
8729
  class SessionAuthentication {
8288
8730
  /** authenticated. */
8289
8731
  authenticated?: string;
@@ -8301,7 +8743,9 @@ declare namespace CloudantV1 {
8301
8743
  authentication_handlers: string[];
8302
8744
  }
8303
8745
  }
8304
- /** Schema for information about a session. */
8746
+ /**
8747
+ * Schema for information about a session.
8748
+ */
8305
8749
  class SessionInformation {
8306
8750
  /** ok. */
8307
8751
  ok: boolean;
@@ -8319,7 +8763,10 @@ declare namespace CloudantV1 {
8319
8763
  userCtx: UserContext.Transport;
8320
8764
  }
8321
8765
  }
8322
- /** Schema for a shards object that maps the hash value range for each shard to the array of nodes that contain a copy of that shard. */
8766
+ /**
8767
+ * Schema for a shards object that maps the hash value range for each shard to the array of nodes that contain a copy
8768
+ * of that shard.
8769
+ */
8323
8770
  class ShardsInformation {
8324
8771
  /** Mapping of shard hash value range to a list of nodes. */
8325
8772
  shards: JsonObject;
@@ -8331,12 +8778,14 @@ declare namespace CloudantV1 {
8331
8778
  shards: JsonObject;
8332
8779
  }
8333
8780
  }
8334
- /** Schema for detailed information about throughput capacity with breakdown by specific throughput requests classes. */
8781
+ /**
8782
+ * Schema for detailed information about throughput capacity with breakdown by specific throughput requests classes.
8783
+ */
8335
8784
  class ThroughputInformation {
8336
8785
  /** A number of blocks of throughput units. A block consists of 100 reads/sec, 50 writes/sec, and 5 global
8337
- * queries/sec of provisioned throughput capacity.
8786
+ * queries/sec of provisioned throughput capacity. Not available for some plans.
8338
8787
  */
8339
- blocks: number;
8788
+ blocks?: number;
8340
8789
  /** Provisioned global queries capacity in operations per second. */
8341
8790
  query: number;
8342
8791
  /** Provisioned reads capacity in operations per second. */
@@ -8348,13 +8797,15 @@ declare namespace CloudantV1 {
8348
8797
  }
8349
8798
  namespace ThroughputInformation {
8350
8799
  interface Transport {
8351
- blocks: number;
8800
+ blocks?: number;
8352
8801
  query: number;
8353
8802
  read: number;
8354
8803
  write: number;
8355
8804
  }
8356
8805
  }
8357
- /** Schema for information about the up state of the server. */
8806
+ /**
8807
+ * Schema for information about the up state of the server.
8808
+ */
8358
8809
  class UpInformation {
8359
8810
  /** seeds. */
8360
8811
  seeds?: JsonObject;
@@ -8377,7 +8828,9 @@ declare namespace CloudantV1 {
8377
8828
  status: string;
8378
8829
  }
8379
8830
  }
8380
- /** Schema for an ability to tell if view is up-to-date without querying it. */
8831
+ /**
8832
+ * Schema for an ability to tell if view is up-to-date without querying it.
8833
+ */
8381
8834
  class UpdatesPending {
8382
8835
  /** Sum of shard copies with the least amount of work to do. */
8383
8836
  minimum: number;
@@ -8397,7 +8850,9 @@ declare namespace CloudantV1 {
8397
8850
  total: number;
8398
8851
  }
8399
8852
  }
8400
- /** Schema for the user context of a session. */
8853
+ /**
8854
+ * Schema for the user context of a session.
8855
+ */
8401
8856
  class UserContext {
8402
8857
  /** Database name in the context of the provided operation. */
8403
8858
  db?: string;
@@ -8428,7 +8883,9 @@ declare namespace CloudantV1 {
8428
8883
  roles: string[];
8429
8884
  }
8430
8885
  }
8431
- /** Schema for a set of uuids generated by the server. */
8886
+ /**
8887
+ * Schema for a set of uuids generated by the server.
8888
+ */
8432
8889
  class UuidsResult {
8433
8890
  /** uuids. */
8434
8891
  uuids: string[];
@@ -8440,7 +8897,9 @@ declare namespace CloudantV1 {
8440
8897
  uuids: string[];
8441
8898
  }
8442
8899
  }
8443
- /** Schema for the results of a queries view operation. */
8900
+ /**
8901
+ * Schema for the results of a queries view operation.
8902
+ */
8444
8903
  class ViewQueriesResult {
8445
8904
  /** An array of result objects - one for each query. Each result object contains the same fields as the response
8446
8905
  * to a regular view request.
@@ -8454,7 +8913,9 @@ declare namespace CloudantV1 {
8454
8913
  results: ViewResult[];
8455
8914
  }
8456
8915
  }
8457
- /** Schema for a query view operation. */
8916
+ /**
8917
+ * Schema for a query view operation.
8918
+ */
8458
8919
  class ViewQuery {
8459
8920
  /** Parameter to specify whether to include the encoding information in attachment stubs if the particular
8460
8921
  * attachment is compressed.
@@ -8502,6 +8963,10 @@ declare namespace CloudantV1 {
8502
8963
  keys?: any[];
8503
8964
  /** Parameter to specify whether to use the reduce function in a map-reduce view. Default is true when a reduce
8504
8965
  * function is defined.
8966
+ *
8967
+ * A default `reduce` view type can be disabled to behave like a `map` by setting `reduce=false` explicitly.
8968
+ *
8969
+ * Be aware that `include_docs=true` can only be used with `map` views.
8505
8970
  */
8506
8971
  reduce?: boolean;
8507
8972
  /** Query parameter to specify whether use the same replica of the index on each request. The default value
@@ -8558,7 +9023,9 @@ declare namespace CloudantV1 {
8558
9023
  update?: string;
8559
9024
  }
8560
9025
  }
8561
- /** Schema for the result of a query view operation. */
9026
+ /**
9027
+ * Schema for the result of a query view operation.
9028
+ */
8562
9029
  class ViewResult {
8563
9030
  /** Number of total rows. */
8564
9031
  totalRows?: number;
@@ -8576,7 +9043,9 @@ declare namespace CloudantV1 {
8576
9043
  rows: ViewResultRow[];
8577
9044
  }
8578
9045
  }
8579
- /** Schema for a row of a view result. */
9046
+ /**
9047
+ * Schema for a row of a view result.
9048
+ */
8580
9049
  class ViewResultRow {
8581
9050
  /** The cause of the error (if available). */
8582
9051
  causedBy?: string;