@ibm-cloud/cloudant 0.10.3 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cloudant/v1.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * (C) Copyright IBM Corp. 2024.
2
+ * (C) Copyright IBM Corp. 2025.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -66,20 +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 one or more UUIDs.
71
- *
72
- * Requests one or more Universally Unique Identifiers (UUIDs) from the instance. The response is a JSON object that
73
- * provides a list of UUIDs.
74
- *
75
- * **Tip:** The authentication for this endpoint is only enforced when using IAM.
76
- *
77
- * @param {Object} [params] - The parameters to send to the service.
78
- * @param {number} [params.count] - Query parameter to specify the number of UUIDs to return.
79
- * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
80
- * @returns {Promise<CloudantV1.Response<CloudantV1.UuidsResult>>}
81
- */
82
- getUuids(params?: CloudantV1.GetUuidsParams): Promise<CloudantV1.Response<CloudantV1.UuidsResult>>;
83
69
  /**
84
70
  * Retrieve provisioned throughput capacity information.
85
71
  *
@@ -104,6 +90,20 @@ declare class CloudantV1 extends CloudantBaseService {
104
90
  * @returns {Promise<CloudantV1.Response<CloudantV1.CapacityThroughputInformation>>}
105
91
  */
106
92
  putCapacityThroughputConfiguration(params: CloudantV1.PutCapacityThroughputConfigurationParams): Promise<CloudantV1.Response<CloudantV1.CapacityThroughputInformation>>;
93
+ /**
94
+ * Retrieve one or more UUIDs.
95
+ *
96
+ * Requests one or more Universally Unique Identifiers (UUIDs) from the instance. The response is a JSON object that
97
+ * provides a list of UUIDs.
98
+ *
99
+ * **Tip:** The authentication for this endpoint is only enforced when using IAM.
100
+ *
101
+ * @param {Object} [params] - The parameters to send to the service.
102
+ * @param {number} [params.count] - Query parameter to specify the number of UUIDs to return.
103
+ * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
104
+ * @returns {Promise<CloudantV1.Response<CloudantV1.UuidsResult>>}
105
+ */
106
+ getUuids(params?: CloudantV1.GetUuidsParams): Promise<CloudantV1.Response<CloudantV1.UuidsResult>>;
107
107
  /*************************
108
108
  * changes
109
109
  ************************/
@@ -1560,6 +1560,7 @@ declare class CloudantV1 extends CloudantBaseService {
1560
1560
  * combination and conditional operators.
1561
1561
  *
1562
1562
  * For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
1563
+ * @param {boolean} [params.allowFallback] - Whether to allow fallback to other indexes. Default is true.
1563
1564
  * @param {string} [params.bookmark] - Opaque bookmark token used when paginating results.
1564
1565
  * @param {boolean} [params.conflicts] - A boolean value that indicates whether or not to include information about
1565
1566
  * existing conflicts in the document.
@@ -1591,8 +1592,9 @@ declare class CloudantV1 extends CloudantBaseService {
1591
1592
  * It’s recommended to specify indexes explicitly in your queries to prevent existing queries being affected by new
1592
1593
  * indexes that might get added later.
1593
1594
  *
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.
1595
+ * If the specified index doesn't exist or can't answer the query then the server ignores the value and answers using
1596
+ * another index or a full scan of all documents. To change this behavior set `allow_fallback` to `false` and the
1597
+ * server responds instead with a `400` status code if the requested index is unsuitable to answer the query.
1596
1598
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
1597
1599
  * @returns {Promise<CloudantV1.Response<CloudantV1.ExplainResult>>}
1598
1600
  */
@@ -1603,9 +1605,13 @@ declare class CloudantV1 extends CloudantBaseService {
1603
1605
  * Query documents by using a declarative JSON querying syntax. It's best practice to create an appropriate index for
1604
1606
  * all fields in selector by using the `_index` endpoint.
1605
1607
  *
1606
- * Queries without an appropriate backing index will fallback to using the built-in `_all_docs` index. This is not
1607
- * recommended because it has a noticeable performance impact causing a full scan of the partition with each request.
1608
- * In this case the response body will include a warning field recommending that an index is created.
1608
+ * Queries without an appropriate backing index by default fallback to using the built-in `_all_docs` index. This
1609
+ * isn't recommended because it has a significant performance impact causing a full scan of the partition with each
1610
+ * request. In this case the response body includes a warning field recommending the creation of an index.
1611
+ *
1612
+ * To avoid the fallback behavior set the `allow_fallback` option to `false` and the server responds with a `400`
1613
+ * status code if no suitable index exists. If you want to use only a specific index for your query set
1614
+ * `allow_fallback` to `false` and set the `use_index` option.
1609
1615
  *
1610
1616
  * Before using read the
1611
1617
  * [FAQs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-database-partitioning#partition-querying) to understand
@@ -1647,6 +1653,7 @@ declare class CloudantV1 extends CloudantBaseService {
1647
1653
  * combination and conditional operators.
1648
1654
  *
1649
1655
  * For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
1656
+ * @param {boolean} [params.allowFallback] - Whether to allow fallback to other indexes. Default is true.
1650
1657
  * @param {string} [params.bookmark] - Opaque bookmark token used when paginating results.
1651
1658
  * @param {boolean} [params.conflicts] - A boolean value that indicates whether or not to include information about
1652
1659
  * existing conflicts in the document.
@@ -1678,8 +1685,9 @@ declare class CloudantV1 extends CloudantBaseService {
1678
1685
  * It’s recommended to specify indexes explicitly in your queries to prevent existing queries being affected by new
1679
1686
  * indexes that might get added later.
1680
1687
  *
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.
1688
+ * If the specified index doesn't exist or can't answer the query then the server ignores the value and answers using
1689
+ * another index or a full scan of all documents. To change this behavior set `allow_fallback` to `false` and the
1690
+ * server responds instead with a `400` status code if the requested index is unsuitable to answer the query.
1683
1691
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
1684
1692
  * @returns {Promise<CloudantV1.Response<CloudantV1.FindResult>>}
1685
1693
  */
@@ -1690,9 +1698,13 @@ declare class CloudantV1 extends CloudantBaseService {
1690
1698
  * Query documents by using a declarative JSON querying syntax. It's best practice to create an appropriate index for
1691
1699
  * all fields in selector by using the `_index` endpoint.
1692
1700
  *
1693
- * Queries without an appropriate backing index will fallback to using the built-in `_all_docs` index. This is not
1694
- * recommended because it has a noticeable performance impact causing a full scan of the partition with each request.
1695
- * In this case the response body will include a warning field recommending that an index is created.
1701
+ * Queries without an appropriate backing index by default fallback to using the built-in `_all_docs` index. This
1702
+ * isn't recommended because it has a significant performance impact causing a full scan of the partition with each
1703
+ * request. In this case the response body includes a warning field recommending the creation of an index.
1704
+ *
1705
+ * To avoid the fallback behavior set the `allow_fallback` option to `false` and the server responds with a `400`
1706
+ * status code if no suitable index exists. If you want to use only a specific index for your query set
1707
+ * `allow_fallback` to `false` and set the `use_index` option.
1696
1708
  *
1697
1709
  * Before using read the
1698
1710
  * [FAQs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-database-partitioning#partition-querying) to understand
@@ -1734,6 +1746,7 @@ declare class CloudantV1 extends CloudantBaseService {
1734
1746
  * combination and conditional operators.
1735
1747
  *
1736
1748
  * For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
1749
+ * @param {boolean} [params.allowFallback] - Whether to allow fallback to other indexes. Default is true.
1737
1750
  * @param {string} [params.bookmark] - Opaque bookmark token used when paginating results.
1738
1751
  * @param {boolean} [params.conflicts] - A boolean value that indicates whether or not to include information about
1739
1752
  * existing conflicts in the document.
@@ -1765,8 +1778,9 @@ declare class CloudantV1 extends CloudantBaseService {
1765
1778
  * It’s recommended to specify indexes explicitly in your queries to prevent existing queries being affected by new
1766
1779
  * indexes that might get added later.
1767
1780
  *
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.
1781
+ * If the specified index doesn't exist or can't answer the query then the server ignores the value and answers using
1782
+ * another index or a full scan of all documents. To change this behavior set `allow_fallback` to `false` and the
1783
+ * server responds instead with a `400` status code if the requested index is unsuitable to answer the query.
1770
1784
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
1771
1785
  * @returns {Promise<CloudantV1.Response<NodeJS.ReadableStream>>}
1772
1786
  */
@@ -1814,6 +1828,7 @@ declare class CloudantV1 extends CloudantBaseService {
1814
1828
  * combination and conditional operators.
1815
1829
  *
1816
1830
  * For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
1831
+ * @param {boolean} [params.allowFallback] - Whether to allow fallback to other indexes. Default is true.
1817
1832
  * @param {string} [params.bookmark] - Opaque bookmark token used when paginating results.
1818
1833
  * @param {boolean} [params.conflicts] - A boolean value that indicates whether or not to include information about
1819
1834
  * existing conflicts in the document.
@@ -1845,8 +1860,9 @@ declare class CloudantV1 extends CloudantBaseService {
1845
1860
  * It’s recommended to specify indexes explicitly in your queries to prevent existing queries being affected by new
1846
1861
  * indexes that might get added later.
1847
1862
  *
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.
1863
+ * If the specified index doesn't exist or can't answer the query then the server ignores the value and answers using
1864
+ * another index or a full scan of all documents. To change this behavior set `allow_fallback` to `false` and the
1865
+ * server responds instead with a `400` status code if the requested index is unsuitable to answer the query.
1850
1866
  * @param {number} [params.r] - The read quorum that is needed for the result. The value defaults to 1, in which case
1851
1867
  * the document that was found in the index is returned. If set to a higher value, each document is read from at least
1852
1868
  * that many replicas before it is returned in the results. The request will take more time than using only the
@@ -1861,9 +1877,13 @@ declare class CloudantV1 extends CloudantBaseService {
1861
1877
  * Query documents by using a declarative JSON querying syntax. It's best practice to create an appropriate index for
1862
1878
  * all fields in selector by using the `_index` endpoint.
1863
1879
  *
1864
- * Queries without an appropriate backing index will fallback to using the built-in `_all_docs` index. This is not
1865
- * recommended because it has a significant performance impact causing a full scan of the database with each request.
1866
- * In this case the response body will include a warning field recommending that an index is created.
1880
+ * Queries without an appropriate backing index by default fallback to using the built-in `_all_docs` index. This
1881
+ * isn't recommended because it has a significant performance impact causing a full scan of the database with each
1882
+ * request. In this case the response body includes a warning field recommending the creation of an index.
1883
+ *
1884
+ * To avoid the fallback behavior set the `allow_fallback` option to `false` and the server responds with a `400`
1885
+ * status code if no suitable index exists. If you want to use only a specific index for your query set
1886
+ * `allow_fallback` to `false` and set the `use_index` option.
1867
1887
  *
1868
1888
  * @param {Object} params - The parameters to send to the service.
1869
1889
  * @param {string} params.db - Path parameter to specify the database name.
@@ -1900,6 +1920,7 @@ declare class CloudantV1 extends CloudantBaseService {
1900
1920
  * combination and conditional operators.
1901
1921
  *
1902
1922
  * For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
1923
+ * @param {boolean} [params.allowFallback] - Whether to allow fallback to other indexes. Default is true.
1903
1924
  * @param {string} [params.bookmark] - Opaque bookmark token used when paginating results.
1904
1925
  * @param {boolean} [params.conflicts] - A boolean value that indicates whether or not to include information about
1905
1926
  * existing conflicts in the document.
@@ -1931,8 +1952,9 @@ declare class CloudantV1 extends CloudantBaseService {
1931
1952
  * It’s recommended to specify indexes explicitly in your queries to prevent existing queries being affected by new
1932
1953
  * indexes that might get added later.
1933
1954
  *
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.
1955
+ * If the specified index doesn't exist or can't answer the query then the server ignores the value and answers using
1956
+ * another index or a full scan of all documents. To change this behavior set `allow_fallback` to `false` and the
1957
+ * server responds instead with a `400` status code if the requested index is unsuitable to answer the query.
1936
1958
  * @param {number} [params.r] - The read quorum that is needed for the result. The value defaults to 1, in which case
1937
1959
  * the document that was found in the index is returned. If set to a higher value, each document is read from at least
1938
1960
  * that many replicas before it is returned in the results. The request will take more time than using only the
@@ -1947,9 +1969,13 @@ declare class CloudantV1 extends CloudantBaseService {
1947
1969
  * Query documents by using a declarative JSON querying syntax. It's best practice to create an appropriate index for
1948
1970
  * all fields in selector by using the `_index` endpoint.
1949
1971
  *
1950
- * Queries without an appropriate backing index will fallback to using the built-in `_all_docs` index. This is not
1951
- * recommended because it has a significant performance impact causing a full scan of the database with each request.
1952
- * In this case the response body will include a warning field recommending that an index is created.
1972
+ * Queries without an appropriate backing index by default fallback to using the built-in `_all_docs` index. This
1973
+ * isn't recommended because it has a significant performance impact causing a full scan of the database with each
1974
+ * request. In this case the response body includes a warning field recommending the creation of an index.
1975
+ *
1976
+ * To avoid the fallback behavior set the `allow_fallback` option to `false` and the server responds with a `400`
1977
+ * status code if no suitable index exists. If you want to use only a specific index for your query set
1978
+ * `allow_fallback` to `false` and set the `use_index` option.
1953
1979
  *
1954
1980
  * @param {Object} params - The parameters to send to the service.
1955
1981
  * @param {string} params.db - Path parameter to specify the database name.
@@ -1986,6 +2012,7 @@ declare class CloudantV1 extends CloudantBaseService {
1986
2012
  * combination and conditional operators.
1987
2013
  *
1988
2014
  * For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
2015
+ * @param {boolean} [params.allowFallback] - Whether to allow fallback to other indexes. Default is true.
1989
2016
  * @param {string} [params.bookmark] - Opaque bookmark token used when paginating results.
1990
2017
  * @param {boolean} [params.conflicts] - A boolean value that indicates whether or not to include information about
1991
2018
  * existing conflicts in the document.
@@ -2017,8 +2044,9 @@ declare class CloudantV1 extends CloudantBaseService {
2017
2044
  * It’s recommended to specify indexes explicitly in your queries to prevent existing queries being affected by new
2018
2045
  * indexes that might get added later.
2019
2046
  *
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.
2047
+ * If the specified index doesn't exist or can't answer the query then the server ignores the value and answers using
2048
+ * another index or a full scan of all documents. To change this behavior set `allow_fallback` to `false` and the
2049
+ * server responds instead with a `400` status code if the requested index is unsuitable to answer the query.
2022
2050
  * @param {number} [params.r] - The read quorum that is needed for the result. The value defaults to 1, in which case
2023
2051
  * the document that was found in the index is returned. If set to a higher value, each document is read from at least
2024
2052
  * that many replicas before it is returned in the results. The request will take more time than using only the
@@ -2145,10 +2173,10 @@ declare class CloudantV1 extends CloudantBaseService {
2145
2173
  * @param {string[]} [params.groupSort] - This field defines the order of the groups in a search that uses
2146
2174
  * group_field. The default sort order is relevance. This field can have the same values as the sort field, so single
2147
2175
  * fields and arrays of fields are supported. This option is only available when making global queries.
2148
- * @param {JsonObject} [params.ranges] - This field defines ranges for faceted, numeric search fields. The value is a
2149
- * JSON object where the fields names are faceted numeric search fields, and the values of the fields are JSON
2150
- * objects. The field names of the JSON objects are names for ranges. The values are strings that describe the range,
2151
- * for example "[0 TO 10]". This option is only available when making global queries.
2176
+ * @param {JsonObject} [params.ranges] - Object mapping faceted, numeric search field names to the required ranges.
2177
+ * Each key is a field name and each value is another object defining the ranges by mapping range name keys to string
2178
+ * values describing the numeric ranges, for example "[0 TO 10]". This option is only available when making global
2179
+ * queries.
2152
2180
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
2153
2181
  * @returns {Promise<CloudantV1.Response<CloudantV1.SearchResult>>}
2154
2182
  */
@@ -2206,14 +2234,28 @@ declare class CloudantV1 extends CloudantBaseService {
2206
2234
  * @param {string[]} [params.groupSort] - This field defines the order of the groups in a search that uses
2207
2235
  * group_field. The default sort order is relevance. This field can have the same values as the sort field, so single
2208
2236
  * fields and arrays of fields are supported. This option is only available when making global queries.
2209
- * @param {JsonObject} [params.ranges] - This field defines ranges for faceted, numeric search fields. The value is a
2210
- * JSON object where the fields names are faceted numeric search fields, and the values of the fields are JSON
2211
- * objects. The field names of the JSON objects are names for ranges. The values are strings that describe the range,
2212
- * for example "[0 TO 10]". This option is only available when making global queries.
2237
+ * @param {JsonObject} [params.ranges] - Object mapping faceted, numeric search field names to the required ranges.
2238
+ * Each key is a field name and each value is another object defining the ranges by mapping range name keys to string
2239
+ * values describing the numeric ranges, for example "[0 TO 10]". This option is only available when making global
2240
+ * queries.
2213
2241
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
2214
2242
  * @returns {Promise<CloudantV1.Response<NodeJS.ReadableStream>>}
2215
2243
  */
2216
2244
  postSearchAsStream(params: CloudantV1.PostSearchAsStreamParams): Promise<CloudantV1.Response<NodeJS.ReadableStream>>;
2245
+ /**
2246
+ * Retrieve information about the search index disk size.
2247
+ *
2248
+ * Retrieve size of the search index on disk.
2249
+ *
2250
+ * @param {Object} params - The parameters to send to the service.
2251
+ * @param {string} params.db - Path parameter to specify the database name.
2252
+ * @param {string} params.ddoc - Path parameter to specify the design document name. The design document name is the
2253
+ * design document ID excluding the `_design/` prefix.
2254
+ * @param {string} params.index - Path parameter to specify the index name.
2255
+ * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
2256
+ * @returns {Promise<CloudantV1.Response<CloudantV1.SearchDiskSizeInformation>>}
2257
+ */
2258
+ getSearchDiskSize(params: CloudantV1.GetSearchDiskSizeParams): Promise<CloudantV1.Response<CloudantV1.SearchDiskSizeInformation>>;
2217
2259
  /**
2218
2260
  * Retrieve information about a search index.
2219
2261
  *
@@ -2232,14 +2274,15 @@ declare class CloudantV1 extends CloudantBaseService {
2232
2274
  * replication
2233
2275
  ************************/
2234
2276
  /**
2235
- * Retrieve the HTTP headers for a replication document.
2277
+ * Retrieve the HTTP headers for a persistent replication.
2236
2278
  *
2237
2279
  * Retrieves the HTTP headers containing minimal amount of information about the specified replication document from
2238
2280
  * the `_replicator` database. The method supports the same query arguments as the `GET /_replicator/{doc_id}`
2239
2281
  * method, but only headers like content length and the revision (ETag header) are returned.
2240
2282
  *
2241
2283
  * @param {Object} params - The parameters to send to the service.
2242
- * @param {string} params.docId - Path parameter to specify the document ID.
2284
+ * @param {string} params.docId - Path parameter to specify the ID of the stored replication configuration in the
2285
+ * `_replicator` database.
2243
2286
  * @param {string} [params.ifNoneMatch] - Header parameter for a conditional HTTP request not matching an ETag.
2244
2287
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
2245
2288
  * @returns {Promise<CloudantV1.Response<CloudantV1.EmptyObject>>}
@@ -2271,12 +2314,27 @@ declare class CloudantV1 extends CloudantBaseService {
2271
2314
  */
2272
2315
  headSchedulerJob(params: CloudantV1.HeadSchedulerJobParams): Promise<CloudantV1.Response<CloudantV1.EmptyObject>>;
2273
2316
  /**
2274
- * Cancel a replication.
2317
+ * Create a persistent replication with a generated ID.
2318
+ *
2319
+ * Creates or modifies a document in the `_replicator` database to start a new replication or to edit an existing
2320
+ * replication.
2321
+ *
2322
+ * @param {Object} params - The parameters to send to the service.
2323
+ * @param {ReplicationDocument} params.replicationDocument - HTTP request body for replication operations.
2324
+ * @param {string} [params.batch] - Query parameter to specify whether to store in batch mode. The server will respond
2325
+ * with a HTTP 202 Accepted response code immediately.
2326
+ * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
2327
+ * @returns {Promise<CloudantV1.Response<CloudantV1.DocumentResult>>}
2328
+ */
2329
+ postReplicator(params: CloudantV1.PostReplicatorParams): Promise<CloudantV1.Response<CloudantV1.DocumentResult>>;
2330
+ /**
2331
+ * Cancel a persistent replication.
2275
2332
  *
2276
2333
  * Cancels a replication by deleting the document that describes it from the `_replicator` database.
2277
2334
  *
2278
2335
  * @param {Object} params - The parameters to send to the service.
2279
- * @param {string} params.docId - Path parameter to specify the document ID.
2336
+ * @param {string} params.docId - Path parameter to specify the ID of the stored replication configuration in the
2337
+ * `_replicator` database.
2280
2338
  * @param {string} [params.ifMatch] - Header parameter for a conditional HTTP request matching an ETag.
2281
2339
  * @param {string} [params.batch] - Query parameter to specify whether to store in batch mode. The server will respond
2282
2340
  * with a HTTP 202 Accepted response code immediately.
@@ -2286,13 +2344,14 @@ declare class CloudantV1 extends CloudantBaseService {
2286
2344
  */
2287
2345
  deleteReplicationDocument(params: CloudantV1.DeleteReplicationDocumentParams): Promise<CloudantV1.Response<CloudantV1.DocumentResult>>;
2288
2346
  /**
2289
- * Retrieve a replication document.
2347
+ * Retrieve the configuration for a persistent replication.
2290
2348
  *
2291
2349
  * Retrieves a replication document from the `_replicator` database to view the configuration of the replication. The
2292
2350
  * status of the replication is no longer recorded in the document but can be checked via the replication scheduler.
2293
2351
  *
2294
2352
  * @param {Object} params - The parameters to send to the service.
2295
- * @param {string} params.docId - Path parameter to specify the document ID.
2353
+ * @param {string} params.docId - Path parameter to specify the ID of the stored replication configuration in the
2354
+ * `_replicator` database.
2296
2355
  * @param {string} [params.ifNoneMatch] - Header parameter for a conditional HTTP request not matching an ETag.
2297
2356
  * @param {boolean} [params.attachments] - Query parameter to specify whether to include attachments bodies in a
2298
2357
  * response.
@@ -2318,13 +2377,14 @@ declare class CloudantV1 extends CloudantBaseService {
2318
2377
  */
2319
2378
  getReplicationDocument(params: CloudantV1.GetReplicationDocumentParams): Promise<CloudantV1.Response<CloudantV1.ReplicationDocument>>;
2320
2379
  /**
2321
- * Create or modify a replication using a replication document.
2380
+ * Create or modify a persistent replication.
2322
2381
  *
2323
2382
  * Creates or modifies a document in the `_replicator` database to start a new replication or to edit an existing
2324
2383
  * replication.
2325
2384
  *
2326
2385
  * @param {Object} params - The parameters to send to the service.
2327
- * @param {string} params.docId - Path parameter to specify the document ID.
2386
+ * @param {string} params.docId - Path parameter to specify the ID of the stored replication configuration in the
2387
+ * `_replicator` database.
2328
2388
  * @param {ReplicationDocument} params.replicationDocument - HTTP request body for replication operations.
2329
2389
  * @param {string} [params.ifMatch] - Header parameter for a conditional HTTP request matching an ETag.
2330
2390
  * @param {string} [params.batch] - Query parameter to specify whether to store in batch mode. The server will respond
@@ -2414,24 +2474,22 @@ declare class CloudantV1 extends CloudantBaseService {
2414
2474
  * authorization
2415
2475
  ************************/
2416
2476
  /**
2417
- * Retrieve database permissions information.
2477
+ * Generates API keys for apps or persons to enable database access.
2418
2478
  *
2419
- * See who has permission to read, write, and manage the database. The credentials you use to log in to the dashboard
2420
- * automatically include `_admin` permissions to all databases you create. Everyone and everything else, including
2421
- * users you share databases with and API keys you create, must be given a permission level explicitly.
2479
+ * Generates API keys to enable database access for a person or application, but without creating a new IBM Cloudant
2480
+ * account for that person or application. An API key is a randomly generated username and password. The key is given
2481
+ * the wanted access permissions for a database.
2422
2482
  *
2423
- * @param {Object} params - The parameters to send to the service.
2424
- * @param {string} params.db - Path parameter to specify the database name.
2483
+ * @param {Object} [params] - The parameters to send to the service.
2425
2484
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
2426
- * @returns {Promise<CloudantV1.Response<CloudantV1.Security>>}
2485
+ * @returns {Promise<CloudantV1.Response<CloudantV1.ApiKeysResult>>}
2427
2486
  */
2428
- getSecurity(params: CloudantV1.GetSecurityParams): Promise<CloudantV1.Response<CloudantV1.Security>>;
2487
+ postApiKeys(params?: CloudantV1.PostApiKeysParams): Promise<CloudantV1.Response<CloudantV1.ApiKeysResult>>;
2429
2488
  /**
2430
- * Modify database permissions.
2489
+ * Modify only Cloudant related database permissions.
2431
2490
  *
2432
- * Modify who has permission to read, write, or manage a database. This endpoint can be used to modify both Cloudant
2433
- * and CouchDB related permissions. Be careful: by removing a Cloudant API key, a member or an admin from the list of
2434
- * users that have access permissions, you remove it from the list of users that have access to the database.
2491
+ * Modify only Cloudant related permissions to database. Be careful: by removing an API key from the list, you remove
2492
+ * the API key from the list of users that have access to the database.
2435
2493
  *
2436
2494
  * ### Note about nobody role
2437
2495
  *
@@ -2441,31 +2499,33 @@ declare class CloudantV1 extends CloudantBaseService {
2441
2499
  *
2442
2500
  * @param {Object} params - The parameters to send to the service.
2443
2501
  * @param {string} params.db - Path parameter to specify the database name.
2502
+ * @param {JsonObject} params.cloudant - Database permissions for Cloudant users and/or API keys.
2444
2503
  * @param {SecurityObject} [params.admins] - Schema for names and roles to map to a database permission.
2445
- * @param {SecurityObject} [params.members] - Schema for names and roles to map to a database permission.
2446
- * @param {JsonObject} [params.cloudant] - Database permissions for Cloudant users and/or API keys.
2447
2504
  * @param {boolean} [params.couchdbAuthOnly] - Manage permissions using the `_users` database only.
2505
+ * @param {SecurityObject} [params.members] - Schema for names and roles to map to a database permission.
2448
2506
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
2449
2507
  * @returns {Promise<CloudantV1.Response<CloudantV1.Ok>>}
2450
2508
  */
2451
- putSecurity(params: CloudantV1.PutSecurityParams): Promise<CloudantV1.Response<CloudantV1.Ok>>;
2509
+ putCloudantSecurityConfiguration(params: CloudantV1.PutCloudantSecurityConfigurationParams): Promise<CloudantV1.Response<CloudantV1.Ok>>;
2452
2510
  /**
2453
- * Generates API keys for apps or persons to enable database access.
2511
+ * Retrieve database permissions information.
2454
2512
  *
2455
- * Generates API keys to enable database access for a person or application, but without creating a new IBM Cloudant
2456
- * account for that person or application. An API key is a randomly generated username and password. The key is given
2457
- * the wanted access permissions for a database.
2513
+ * See who has permission to read, write, and manage the database. The credentials you use to log in to the dashboard
2514
+ * automatically include `_admin` permissions to all databases you create. Everyone and everything else, including
2515
+ * users you share databases with and API keys you create, must be given a permission level explicitly.
2458
2516
  *
2459
- * @param {Object} [params] - The parameters to send to the service.
2517
+ * @param {Object} params - The parameters to send to the service.
2518
+ * @param {string} params.db - Path parameter to specify the database name.
2460
2519
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
2461
- * @returns {Promise<CloudantV1.Response<CloudantV1.ApiKeysResult>>}
2520
+ * @returns {Promise<CloudantV1.Response<CloudantV1.Security>>}
2462
2521
  */
2463
- postApiKeys(params?: CloudantV1.PostApiKeysParams): Promise<CloudantV1.Response<CloudantV1.ApiKeysResult>>;
2522
+ getSecurity(params: CloudantV1.GetSecurityParams): Promise<CloudantV1.Response<CloudantV1.Security>>;
2464
2523
  /**
2465
- * Modify only Cloudant related database permissions.
2524
+ * Modify database permissions.
2466
2525
  *
2467
- * Modify only Cloudant related permissions to database. Be careful: by removing an API key from the list, you remove
2468
- * the API key from the list of users that have access to the database.
2526
+ * Modify who has permission to read, write, or manage a database. This endpoint can be used to modify both Cloudant
2527
+ * and CouchDB related permissions. Be careful: by removing a Cloudant API key, a member or an admin from the list of
2528
+ * users that have access permissions, you remove it from the list of users that have access to the database.
2469
2529
  *
2470
2530
  * ### Note about nobody role
2471
2531
  *
@@ -2475,14 +2535,14 @@ declare class CloudantV1 extends CloudantBaseService {
2475
2535
  *
2476
2536
  * @param {Object} params - The parameters to send to the service.
2477
2537
  * @param {string} params.db - Path parameter to specify the database name.
2478
- * @param {JsonObject} params.cloudant - Database permissions for Cloudant users and/or API keys.
2479
2538
  * @param {SecurityObject} [params.admins] - Schema for names and roles to map to a database permission.
2480
- * @param {SecurityObject} [params.members] - Schema for names and roles to map to a database permission.
2539
+ * @param {JsonObject} [params.cloudant] - Database permissions for Cloudant users and/or API keys.
2481
2540
  * @param {boolean} [params.couchdbAuthOnly] - Manage permissions using the `_users` database only.
2541
+ * @param {SecurityObject} [params.members] - Schema for names and roles to map to a database permission.
2482
2542
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
2483
2543
  * @returns {Promise<CloudantV1.Response<CloudantV1.Ok>>}
2484
2544
  */
2485
- putCloudantSecurityConfiguration(params: CloudantV1.PutCloudantSecurityConfigurationParams): Promise<CloudantV1.Response<CloudantV1.Ok>>;
2545
+ putSecurity(params: CloudantV1.PutSecurityParams): Promise<CloudantV1.Response<CloudantV1.Ok>>;
2486
2546
  /*************************
2487
2547
  * cORS
2488
2548
  ************************/
@@ -2564,7 +2624,7 @@ declare class CloudantV1 extends CloudantBaseService {
2564
2624
  * @param {string} params.db - Path parameter to specify the database name.
2565
2625
  * @param {string} params.docId - Path parameter to specify the document ID.
2566
2626
  * @param {string} params.attachmentName - Path parameter to specify the attachment name.
2567
- * @param {string} [params.accept] - The type of the response: or *_/_*.
2627
+ * @param {string} [params.accept] - The type of the response: *_/_*.
2568
2628
  * @param {string} [params.ifMatch] - Header parameter for a conditional HTTP request matching an ETag.
2569
2629
  * @param {string} [params.ifNoneMatch] - Header parameter for a conditional HTTP request not matching an ETag.
2570
2630
  * @param {string} [params.range] - Header parameter to specify the byte range for a request. This allows the
@@ -2734,31 +2794,6 @@ declare class CloudantV1 extends CloudantBaseService {
2734
2794
  * @returns {Promise<CloudantV1.Response<CloudantV1.ActiveTask[]>>}
2735
2795
  */
2736
2796
  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>>;
2749
- /**
2750
- * Retrieve information about whether the server is up.
2751
- *
2752
- * Confirms that the server is up, running, and ready to respond to requests. If `maintenance_mode` is `true` or
2753
- * `nolb`, the endpoint returns a 404 response.
2754
- *
2755
- * **Tip:** The authentication for this endpoint is only enforced when using IAM.
2756
- *
2757
- * @param {Object} [params] - The parameters to send to the service.
2758
- * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
2759
- * @returns {Promise<CloudantV1.Response<CloudantV1.UpInformation>>}
2760
- */
2761
- getUpInformation(params?: CloudantV1.GetUpInformationParams): Promise<CloudantV1.Response<CloudantV1.UpInformation>>;
2762
2797
  /**
2763
2798
  * Retrieve Activity Tracker events information.
2764
2799
  *
@@ -2793,6 +2828,31 @@ declare class CloudantV1 extends CloudantBaseService {
2793
2828
  * @returns {Promise<CloudantV1.Response<CloudantV1.CurrentThroughputInformation>>}
2794
2829
  */
2795
2830
  getCurrentThroughputInformation(params?: CloudantV1.GetCurrentThroughputInformationParams): Promise<CloudantV1.Response<CloudantV1.CurrentThroughputInformation>>;
2831
+ /**
2832
+ * Retrieve cluster membership information.
2833
+ *
2834
+ * Displays the nodes that are part of the cluster as `cluster_nodes`. The field, `all_nodes`, displays all nodes this
2835
+ * node knows about, including the ones that are part of the cluster. This endpoint is useful when you set up a
2836
+ * cluster.
2837
+ *
2838
+ * @param {Object} [params] - The parameters to send to the service.
2839
+ * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
2840
+ * @returns {Promise<CloudantV1.Response<CloudantV1.MembershipInformation>>}
2841
+ */
2842
+ getMembershipInformation(params?: CloudantV1.GetMembershipInformationParams): Promise<CloudantV1.Response<CloudantV1.MembershipInformation>>;
2843
+ /**
2844
+ * Retrieve information about whether the server is up.
2845
+ *
2846
+ * Confirms that the server is up, running, and ready to respond to requests. If `maintenance_mode` is `true` or
2847
+ * `nolb`, the endpoint returns a 404 response.
2848
+ *
2849
+ * **Tip:** The authentication for this endpoint is only enforced when using IAM.
2850
+ *
2851
+ * @param {Object} [params] - The parameters to send to the service.
2852
+ * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
2853
+ * @returns {Promise<CloudantV1.Response<CloudantV1.UpInformation>>}
2854
+ */
2855
+ getUpInformation(params?: CloudantV1.GetUpInformationParams): Promise<CloudantV1.Response<CloudantV1.UpInformation>>;
2796
2856
  }
2797
2857
  /*************************
2798
2858
  * interfaces
@@ -2823,12 +2883,6 @@ declare namespace CloudantV1 {
2823
2883
  interface GetServerInformationParams {
2824
2884
  headers?: OutgoingHttpHeaders;
2825
2885
  }
2826
- /** Parameters for the `getUuids` operation. */
2827
- interface GetUuidsParams {
2828
- /** Query parameter to specify the number of UUIDs to return. */
2829
- count?: number;
2830
- headers?: OutgoingHttpHeaders;
2831
- }
2832
2886
  /** Parameters for the `getCapacityThroughputInformation` operation. */
2833
2887
  interface GetCapacityThroughputInformationParams {
2834
2888
  headers?: OutgoingHttpHeaders;
@@ -2841,6 +2895,12 @@ declare namespace CloudantV1 {
2841
2895
  blocks: number;
2842
2896
  headers?: OutgoingHttpHeaders;
2843
2897
  }
2898
+ /** Parameters for the `getUuids` operation. */
2899
+ interface GetUuidsParams {
2900
+ /** Query parameter to specify the number of UUIDs to return. */
2901
+ count?: number;
2902
+ headers?: OutgoingHttpHeaders;
2903
+ }
2844
2904
  /** Parameters for the `getDbUpdates` operation. */
2845
2905
  interface GetDbUpdatesParams {
2846
2906
  /** Query parameter to specify whether to return the documents in descending by key order. */
@@ -3000,7 +3060,7 @@ declare namespace CloudantV1 {
3000
3060
  * will only return the current "winning" revision; all_docs will return all leaf revisions (including conflicts
3001
3061
  * and deleted former conflicts).
3002
3062
  */
3003
- style?: string;
3063
+ style?: PostChangesConstants.Style | string;
3004
3064
  /** Query parameter to specify the maximum period in milliseconds to wait for a change before the response is
3005
3065
  * sent, even if there are no results. Only applicable for `longpoll` or `continuous` feeds. Default value is
3006
3066
  * specified by `httpd/changes_timeout` configuration option. Note that `60000` value is also the default maximum
@@ -3022,6 +3082,11 @@ declare namespace CloudantV1 {
3022
3082
  LONGPOLL = "longpoll",
3023
3083
  NORMAL = "normal"
3024
3084
  }
3085
+ /** Query parameter to specify how many revisions are returned in the changes array. The default, `main_only`, will only return the current "winning" revision; all_docs will return all leaf revisions (including conflicts and deleted former conflicts). */
3086
+ enum Style {
3087
+ MAIN_ONLY = "main_only",
3088
+ ALL_DOCS = "all_docs"
3089
+ }
3025
3090
  }
3026
3091
  /** Parameters for the `postChangesAsStream` operation. */
3027
3092
  interface PostChangesAsStreamParams {
@@ -3138,7 +3203,7 @@ declare namespace CloudantV1 {
3138
3203
  * will only return the current "winning" revision; all_docs will return all leaf revisions (including conflicts
3139
3204
  * and deleted former conflicts).
3140
3205
  */
3141
- style?: string;
3206
+ style?: PostChangesAsStreamConstants.Style | string;
3142
3207
  /** Query parameter to specify the maximum period in milliseconds to wait for a change before the response is
3143
3208
  * sent, even if there are no results. Only applicable for `longpoll` or `continuous` feeds. Default value is
3144
3209
  * specified by `httpd/changes_timeout` configuration option. Note that `60000` value is also the default maximum
@@ -3160,6 +3225,11 @@ declare namespace CloudantV1 {
3160
3225
  LONGPOLL = "longpoll",
3161
3226
  NORMAL = "normal"
3162
3227
  }
3228
+ /** Query parameter to specify how many revisions are returned in the changes array. The default, `main_only`, will only return the current "winning" revision; all_docs will return all leaf revisions (including conflicts and deleted former conflicts). */
3229
+ enum Style {
3230
+ MAIN_ONLY = "main_only",
3231
+ ALL_DOCS = "all_docs"
3232
+ }
3163
3233
  }
3164
3234
  /** Parameters for the `headDatabase` operation. */
3165
3235
  interface HeadDatabaseParams {
@@ -4490,6 +4560,8 @@ declare namespace CloudantV1 {
4490
4560
  * For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
4491
4561
  */
4492
4562
  selector: JsonObject;
4563
+ /** Whether to allow fallback to other indexes. Default is true. */
4564
+ allowFallback?: boolean;
4493
4565
  /** Opaque bookmark token used when paginating results. */
4494
4566
  bookmark?: string;
4495
4567
  /** A boolean value that indicates whether or not to include information about existing conflicts in the
@@ -4531,8 +4603,9 @@ declare namespace CloudantV1 {
4531
4603
  * It’s recommended to specify indexes explicitly in your queries to prevent existing queries being affected by new
4532
4604
  * indexes that might get added later.
4533
4605
  *
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.
4606
+ * If the specified index doesn't exist or can't answer the query then the server ignores the value and answers
4607
+ * using another index or a full scan of all documents. To change this behavior set `allow_fallback` to `false` and
4608
+ * the server responds instead with a `400` status code if the requested index is unsuitable to answer the query.
4536
4609
  */
4537
4610
  useIndex?: string[];
4538
4611
  headers?: OutgoingHttpHeaders;
@@ -4592,6 +4665,8 @@ declare namespace CloudantV1 {
4592
4665
  * For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
4593
4666
  */
4594
4667
  selector: JsonObject;
4668
+ /** Whether to allow fallback to other indexes. Default is true. */
4669
+ allowFallback?: boolean;
4595
4670
  /** Opaque bookmark token used when paginating results. */
4596
4671
  bookmark?: string;
4597
4672
  /** A boolean value that indicates whether or not to include information about existing conflicts in the
@@ -4633,8 +4708,9 @@ declare namespace CloudantV1 {
4633
4708
  * It’s recommended to specify indexes explicitly in your queries to prevent existing queries being affected by new
4634
4709
  * indexes that might get added later.
4635
4710
  *
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.
4711
+ * If the specified index doesn't exist or can't answer the query then the server ignores the value and answers
4712
+ * using another index or a full scan of all documents. To change this behavior set `allow_fallback` to `false` and
4713
+ * the server responds instead with a `400` status code if the requested index is unsuitable to answer the query.
4638
4714
  */
4639
4715
  useIndex?: string[];
4640
4716
  headers?: OutgoingHttpHeaders;
@@ -4694,6 +4770,8 @@ declare namespace CloudantV1 {
4694
4770
  * For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
4695
4771
  */
4696
4772
  selector: JsonObject;
4773
+ /** Whether to allow fallback to other indexes. Default is true. */
4774
+ allowFallback?: boolean;
4697
4775
  /** Opaque bookmark token used when paginating results. */
4698
4776
  bookmark?: string;
4699
4777
  /** A boolean value that indicates whether or not to include information about existing conflicts in the
@@ -4735,8 +4813,9 @@ declare namespace CloudantV1 {
4735
4813
  * It’s recommended to specify indexes explicitly in your queries to prevent existing queries being affected by new
4736
4814
  * indexes that might get added later.
4737
4815
  *
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.
4816
+ * If the specified index doesn't exist or can't answer the query then the server ignores the value and answers
4817
+ * using another index or a full scan of all documents. To change this behavior set `allow_fallback` to `false` and
4818
+ * the server responds instead with a `400` status code if the requested index is unsuitable to answer the query.
4740
4819
  */
4741
4820
  useIndex?: string[];
4742
4821
  headers?: OutgoingHttpHeaders;
@@ -4794,6 +4873,8 @@ declare namespace CloudantV1 {
4794
4873
  * For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
4795
4874
  */
4796
4875
  selector: JsonObject;
4876
+ /** Whether to allow fallback to other indexes. Default is true. */
4877
+ allowFallback?: boolean;
4797
4878
  /** Opaque bookmark token used when paginating results. */
4798
4879
  bookmark?: string;
4799
4880
  /** A boolean value that indicates whether or not to include information about existing conflicts in the
@@ -4835,8 +4916,9 @@ declare namespace CloudantV1 {
4835
4916
  * It’s recommended to specify indexes explicitly in your queries to prevent existing queries being affected by new
4836
4917
  * indexes that might get added later.
4837
4918
  *
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.
4919
+ * If the specified index doesn't exist or can't answer the query then the server ignores the value and answers
4920
+ * using another index or a full scan of all documents. To change this behavior set `allow_fallback` to `false` and
4921
+ * the server responds instead with a `400` status code if the requested index is unsuitable to answer the query.
4840
4922
  */
4841
4923
  useIndex?: string[];
4842
4924
  /** The read quorum that is needed for the result. The value defaults to 1, in which case the document that was
@@ -4900,6 +4982,8 @@ declare namespace CloudantV1 {
4900
4982
  * For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
4901
4983
  */
4902
4984
  selector: JsonObject;
4985
+ /** Whether to allow fallback to other indexes. Default is true. */
4986
+ allowFallback?: boolean;
4903
4987
  /** Opaque bookmark token used when paginating results. */
4904
4988
  bookmark?: string;
4905
4989
  /** A boolean value that indicates whether or not to include information about existing conflicts in the
@@ -4941,8 +5025,9 @@ declare namespace CloudantV1 {
4941
5025
  * It’s recommended to specify indexes explicitly in your queries to prevent existing queries being affected by new
4942
5026
  * indexes that might get added later.
4943
5027
  *
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.
5028
+ * If the specified index doesn't exist or can't answer the query then the server ignores the value and answers
5029
+ * using another index or a full scan of all documents. To change this behavior set `allow_fallback` to `false` and
5030
+ * the server responds instead with a `400` status code if the requested index is unsuitable to answer the query.
4946
5031
  */
4947
5032
  useIndex?: string[];
4948
5033
  /** The read quorum that is needed for the result. The value defaults to 1, in which case the document that was
@@ -5006,6 +5091,8 @@ declare namespace CloudantV1 {
5006
5091
  * For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
5007
5092
  */
5008
5093
  selector: JsonObject;
5094
+ /** Whether to allow fallback to other indexes. Default is true. */
5095
+ allowFallback?: boolean;
5009
5096
  /** Opaque bookmark token used when paginating results. */
5010
5097
  bookmark?: string;
5011
5098
  /** A boolean value that indicates whether or not to include information about existing conflicts in the
@@ -5047,8 +5134,9 @@ declare namespace CloudantV1 {
5047
5134
  * It’s recommended to specify indexes explicitly in your queries to prevent existing queries being affected by new
5048
5135
  * indexes that might get added later.
5049
5136
  *
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.
5137
+ * If the specified index doesn't exist or can't answer the query then the server ignores the value and answers
5138
+ * using another index or a full scan of all documents. To change this behavior set `allow_fallback` to `false` and
5139
+ * the server responds instead with a `400` status code if the requested index is unsuitable to answer the query.
5052
5140
  */
5053
5141
  useIndex?: string[];
5054
5142
  /** The read quorum that is needed for the result. The value defaults to 1, in which case the document that was
@@ -5261,10 +5349,9 @@ declare namespace CloudantV1 {
5261
5349
  * supported. This option is only available when making global queries.
5262
5350
  */
5263
5351
  groupSort?: string[];
5264
- /** This field defines ranges for faceted, numeric search fields. The value is a JSON object where the fields
5265
- * names are faceted numeric search fields, and the values of the fields are JSON objects. The field names of the
5266
- * JSON objects are names for ranges. The values are strings that describe the range, for example "[0 TO 10]". This
5267
- * option is only available when making global queries.
5352
+ /** Object mapping faceted, numeric search field names to the required ranges. Each key is a field name and each
5353
+ * value is another object defining the ranges by mapping range name keys to string values describing the numeric
5354
+ * ranges, for example "[0 TO 10]". This option is only available when making global queries.
5268
5355
  */
5269
5356
  ranges?: JsonObject;
5270
5357
  headers?: OutgoingHttpHeaders;
@@ -5348,10 +5435,9 @@ declare namespace CloudantV1 {
5348
5435
  * supported. This option is only available when making global queries.
5349
5436
  */
5350
5437
  groupSort?: string[];
5351
- /** This field defines ranges for faceted, numeric search fields. The value is a JSON object where the fields
5352
- * names are faceted numeric search fields, and the values of the fields are JSON objects. The field names of the
5353
- * JSON objects are names for ranges. The values are strings that describe the range, for example "[0 TO 10]". This
5354
- * option is only available when making global queries.
5438
+ /** Object mapping faceted, numeric search field names to the required ranges. Each key is a field name and each
5439
+ * value is another object defining the ranges by mapping range name keys to string values describing the numeric
5440
+ * ranges, for example "[0 TO 10]". This option is only available when making global queries.
5355
5441
  */
5356
5442
  ranges?: JsonObject;
5357
5443
  headers?: OutgoingHttpHeaders;
@@ -5363,6 +5449,18 @@ declare namespace CloudantV1 {
5363
5449
  OK = "ok"
5364
5450
  }
5365
5451
  }
5452
+ /** Parameters for the `getSearchDiskSize` operation. */
5453
+ interface GetSearchDiskSizeParams {
5454
+ /** Path parameter to specify the database name. */
5455
+ db: string;
5456
+ /** Path parameter to specify the design document name. The design document name is the design document ID
5457
+ * excluding the `_design/` prefix.
5458
+ */
5459
+ ddoc: string;
5460
+ /** Path parameter to specify the index name. */
5461
+ index: string;
5462
+ headers?: OutgoingHttpHeaders;
5463
+ }
5366
5464
  /** Parameters for the `getSearchInfo` operation. */
5367
5465
  interface GetSearchInfoParams {
5368
5466
  /** Path parameter to specify the database name. */
@@ -5377,7 +5475,7 @@ declare namespace CloudantV1 {
5377
5475
  }
5378
5476
  /** Parameters for the `headReplicationDocument` operation. */
5379
5477
  interface HeadReplicationDocumentParams {
5380
- /** Path parameter to specify the document ID. */
5478
+ /** Path parameter to specify the ID of the stored replication configuration in the `_replicator` database. */
5381
5479
  docId: string;
5382
5480
  /** Header parameter for a conditional HTTP request not matching an ETag. */
5383
5481
  ifNoneMatch?: string;
@@ -5395,9 +5493,26 @@ declare namespace CloudantV1 {
5395
5493
  jobId: string;
5396
5494
  headers?: OutgoingHttpHeaders;
5397
5495
  }
5496
+ /** Parameters for the `postReplicator` operation. */
5497
+ interface PostReplicatorParams {
5498
+ /** HTTP request body for replication operations. */
5499
+ replicationDocument: ReplicationDocument;
5500
+ /** Query parameter to specify whether to store in batch mode. The server will respond with a HTTP 202 Accepted
5501
+ * response code immediately.
5502
+ */
5503
+ batch?: PostReplicatorConstants.Batch | string;
5504
+ headers?: OutgoingHttpHeaders;
5505
+ }
5506
+ /** Constants for the `postReplicator` operation. */
5507
+ namespace PostReplicatorConstants {
5508
+ /** Query parameter to specify whether to store in batch mode. The server will respond with a HTTP 202 Accepted response code immediately. */
5509
+ enum Batch {
5510
+ OK = "ok"
5511
+ }
5512
+ }
5398
5513
  /** Parameters for the `deleteReplicationDocument` operation. */
5399
5514
  interface DeleteReplicationDocumentParams {
5400
- /** Path parameter to specify the document ID. */
5515
+ /** Path parameter to specify the ID of the stored replication configuration in the `_replicator` database. */
5401
5516
  docId: string;
5402
5517
  /** Header parameter for a conditional HTTP request matching an ETag. */
5403
5518
  ifMatch?: string;
@@ -5418,7 +5533,7 @@ declare namespace CloudantV1 {
5418
5533
  }
5419
5534
  /** Parameters for the `getReplicationDocument` operation. */
5420
5535
  interface GetReplicationDocumentParams {
5421
- /** Path parameter to specify the document ID. */
5536
+ /** Path parameter to specify the ID of the stored replication configuration in the `_replicator` database. */
5422
5537
  docId: string;
5423
5538
  /** Header parameter for a conditional HTTP request not matching an ETag. */
5424
5539
  ifNoneMatch?: string;
@@ -5456,7 +5571,7 @@ declare namespace CloudantV1 {
5456
5571
  }
5457
5572
  /** Parameters for the `putReplicationDocument` operation. */
5458
5573
  interface PutReplicationDocumentParams {
5459
- /** Path parameter to specify the document ID. */
5574
+ /** Path parameter to specify the ID of the stored replication configuration in the `_replicator` database. */
5460
5575
  docId: string;
5461
5576
  /** HTTP request body for replication operations. */
5462
5577
  replicationDocument: ReplicationDocument;
@@ -5534,28 +5649,26 @@ declare namespace CloudantV1 {
5534
5649
  interface GetSessionInformationParams {
5535
5650
  headers?: OutgoingHttpHeaders;
5536
5651
  }
5537
- /** Parameters for the `getSecurity` operation. */
5538
- interface GetSecurityParams {
5539
- /** Path parameter to specify the database name. */
5540
- db: string;
5652
+ /** Parameters for the `postApiKeys` operation. */
5653
+ interface PostApiKeysParams {
5541
5654
  headers?: OutgoingHttpHeaders;
5542
5655
  }
5543
- /** Parameters for the `putSecurity` operation. */
5544
- interface PutSecurityParams {
5656
+ /** Parameters for the `putCloudantSecurityConfiguration` operation. */
5657
+ interface PutCloudantSecurityConfigurationParams {
5545
5658
  /** Path parameter to specify the database name. */
5546
5659
  db: string;
5660
+ /** Database permissions for Cloudant users and/or API keys. */
5661
+ cloudant: JsonObject;
5547
5662
  /** Schema for names and roles to map to a database permission. */
5548
5663
  admins?: SecurityObject;
5549
- /** Schema for names and roles to map to a database permission. */
5550
- members?: SecurityObject;
5551
- /** Database permissions for Cloudant users and/or API keys. */
5552
- cloudant?: JsonObject;
5553
5664
  /** Manage permissions using the `_users` database only. */
5554
5665
  couchdbAuthOnly?: boolean;
5666
+ /** Schema for names and roles to map to a database permission. */
5667
+ members?: SecurityObject;
5555
5668
  headers?: OutgoingHttpHeaders;
5556
5669
  }
5557
- /** Constants for the `putSecurity` operation. */
5558
- namespace PutSecurityConstants {
5670
+ /** Constants for the `putCloudantSecurityConfiguration` operation. */
5671
+ namespace PutCloudantSecurityConfigurationConstants {
5559
5672
  /** Database permissions for Cloudant users and/or API keys. */
5560
5673
  enum Cloudant {
5561
5674
  READER = "_reader",
@@ -5568,26 +5681,28 @@ declare namespace CloudantV1 {
5568
5681
  SECURITY = "_security"
5569
5682
  }
5570
5683
  }
5571
- /** Parameters for the `postApiKeys` operation. */
5572
- interface PostApiKeysParams {
5684
+ /** Parameters for the `getSecurity` operation. */
5685
+ interface GetSecurityParams {
5686
+ /** Path parameter to specify the database name. */
5687
+ db: string;
5573
5688
  headers?: OutgoingHttpHeaders;
5574
5689
  }
5575
- /** Parameters for the `putCloudantSecurityConfiguration` operation. */
5576
- interface PutCloudantSecurityConfigurationParams {
5690
+ /** Parameters for the `putSecurity` operation. */
5691
+ interface PutSecurityParams {
5577
5692
  /** Path parameter to specify the database name. */
5578
5693
  db: string;
5579
- /** Database permissions for Cloudant users and/or API keys. */
5580
- cloudant: JsonObject;
5581
5694
  /** Schema for names and roles to map to a database permission. */
5582
5695
  admins?: SecurityObject;
5583
- /** Schema for names and roles to map to a database permission. */
5584
- members?: SecurityObject;
5696
+ /** Database permissions for Cloudant users and/or API keys. */
5697
+ cloudant?: JsonObject;
5585
5698
  /** Manage permissions using the `_users` database only. */
5586
5699
  couchdbAuthOnly?: boolean;
5700
+ /** Schema for names and roles to map to a database permission. */
5701
+ members?: SecurityObject;
5587
5702
  headers?: OutgoingHttpHeaders;
5588
5703
  }
5589
- /** Constants for the `putCloudantSecurityConfiguration` operation. */
5590
- namespace PutCloudantSecurityConfigurationConstants {
5704
+ /** Constants for the `putSecurity` operation. */
5705
+ namespace PutSecurityConstants {
5591
5706
  /** Database permissions for Cloudant users and/or API keys. */
5592
5707
  enum Cloudant {
5593
5708
  READER = "_reader",
@@ -5668,7 +5783,7 @@ declare namespace CloudantV1 {
5668
5783
  docId: string;
5669
5784
  /** Path parameter to specify the attachment name. */
5670
5785
  attachmentName: string;
5671
- /** The type of the response: or *_/_*. */
5786
+ /** The type of the response: *_/_*. */
5672
5787
  accept?: string;
5673
5788
  /** Header parameter for a conditional HTTP request matching an ETag. */
5674
5789
  ifMatch?: string;
@@ -5819,14 +5934,6 @@ declare namespace CloudantV1 {
5819
5934
  interface GetActiveTasksParams {
5820
5935
  headers?: OutgoingHttpHeaders;
5821
5936
  }
5822
- /** Parameters for the `getMembershipInformation` operation. */
5823
- interface GetMembershipInformationParams {
5824
- headers?: OutgoingHttpHeaders;
5825
- }
5826
- /** Parameters for the `getUpInformation` operation. */
5827
- interface GetUpInformationParams {
5828
- headers?: OutgoingHttpHeaders;
5829
- }
5830
5937
  /** Parameters for the `getActivityTrackerEvents` operation. */
5831
5938
  interface GetActivityTrackerEventsParams {
5832
5939
  headers?: OutgoingHttpHeaders;
@@ -5851,6 +5958,14 @@ declare namespace CloudantV1 {
5851
5958
  interface GetCurrentThroughputInformationParams {
5852
5959
  headers?: OutgoingHttpHeaders;
5853
5960
  }
5961
+ /** Parameters for the `getMembershipInformation` operation. */
5962
+ interface GetMembershipInformationParams {
5963
+ headers?: OutgoingHttpHeaders;
5964
+ }
5965
+ /** Parameters for the `getUpInformation` operation. */
5966
+ interface GetUpInformationParams {
5967
+ headers?: OutgoingHttpHeaders;
5968
+ }
5854
5969
  /*************************
5855
5970
  * model interfaces
5856
5971
  ************************/
@@ -5938,7 +6053,7 @@ declare namespace CloudantV1 {
5938
6053
  type: ActiveTask.Constants.Type | string;
5939
6054
  /** Schema for a Unix epoch timestamp. */
5940
6055
  updatedOn: number;
5941
- /** Name of user running replication or owning the indexer. Available for `indexer`, `replication` type tasks. */
6056
+ /** Name of user running the process. */
5942
6057
  user?: string | null;
5943
6058
  /** Number of view indexes. Available for `view_compaction` type tasks. */
5944
6059
  view?: number;
@@ -6109,7 +6224,7 @@ declare namespace CloudantV1 {
6109
6224
  * Schema for the result of an all documents operation.
6110
6225
  */
6111
6226
  class AllDocsResult {
6112
- /** Number of total rows. */
6227
+ /** Total number of document results. */
6113
6228
  totalRows: number;
6114
6229
  /** List of doc results. */
6115
6230
  rows: DocsResultRow[];
@@ -6134,7 +6249,7 @@ declare namespace CloudantV1 {
6134
6249
  * * For search indexes the default is `standard` * For query text indexes the default is `keyword` * For a query
6135
6250
  * text index default_field the default is `standard`.
6136
6251
  */
6137
- name?: Analyzer.Constants.Name | string;
6252
+ name: Analyzer.Constants.Name | string;
6138
6253
  /** Custom stopwords to use with the named analyzer. */
6139
6254
  stopwords?: string[];
6140
6255
  static serialize(obj: any): Analyzer.Transport;
@@ -6188,7 +6303,7 @@ declare namespace CloudantV1 {
6188
6303
  }
6189
6304
  }
6190
6305
  interface Transport {
6191
- name?: string;
6306
+ name: string;
6192
6307
  stopwords?: string[];
6193
6308
  }
6194
6309
  }
@@ -6201,7 +6316,7 @@ declare namespace CloudantV1 {
6201
6316
  * * For search indexes the default is `standard` * For query text indexes the default is `keyword` * For a query
6202
6317
  * text index default_field the default is `standard`.
6203
6318
  */
6204
- name?: AnalyzerConfiguration.Constants.Name | string;
6319
+ name: AnalyzerConfiguration.Constants.Name | string;
6205
6320
  /** Custom stopwords to use with the named analyzer. */
6206
6321
  stopwords?: string[];
6207
6322
  /** Schema for mapping a field name to a per field analyzer. */
@@ -6259,7 +6374,7 @@ declare namespace CloudantV1 {
6259
6374
  }
6260
6375
  }
6261
6376
  interface Transport {
6262
- name?: string;
6377
+ name: string;
6263
6378
  stopwords?: string[];
6264
6379
  fields?: {
6265
6380
  [key: string]: Analyzer.Transport;
@@ -6624,7 +6739,7 @@ declare namespace CloudantV1 {
6624
6739
  compactRunning: boolean;
6625
6740
  /** An opaque string that describes the compaction state of the database. */
6626
6741
  compactedSeq?: string;
6627
- /** The name of the database. */
6742
+ /** Schema for a database name. */
6628
6743
  dbName: string;
6629
6744
  /** The version of the physical format used for the data when it is stored on disk. */
6630
6745
  diskFormatVersion: number;
@@ -6638,6 +6753,8 @@ declare namespace CloudantV1 {
6638
6753
  * old replicator versions. Do not use the value to infer timing infromation. Typically only used by replicators.
6639
6754
  */
6640
6755
  instanceStartTime: string;
6756
+ /** Information about database's partitioned indexes. */
6757
+ partitionedIndexes?: PartitionedIndexesInformation;
6641
6758
  /** Schema for database properties. */
6642
6759
  props: DatabaseInformationProps;
6643
6760
  /** Schema for size information of content. */
@@ -6648,8 +6765,6 @@ declare namespace CloudantV1 {
6648
6765
  updateSeq: string;
6649
6766
  /** The UUID of the database. */
6650
6767
  uuid?: string;
6651
- /** Information about database's partitioned indexes. */
6652
- partitionedIndexes?: PartitionedIndexesInformation;
6653
6768
  static serialize(obj: any): DatabaseInformation.Transport;
6654
6769
  static deserialize(obj: any): DatabaseInformation;
6655
6770
  }
@@ -6665,11 +6780,11 @@ declare namespace CloudantV1 {
6665
6780
  doc_del_count: number;
6666
6781
  engine?: string;
6667
6782
  instance_start_time: string;
6783
+ partitioned_indexes?: PartitionedIndexesInformation.Transport;
6668
6784
  props: DatabaseInformationProps.Transport;
6669
6785
  sizes: ContentInformationSizes.Transport;
6670
6786
  update_seq: string;
6671
6787
  uuid?: string;
6672
- partitioned_indexes?: PartitionedIndexesInformation.Transport;
6673
6788
  }
6674
6789
  }
6675
6790
  /**
@@ -6715,7 +6830,7 @@ declare namespace CloudantV1 {
6715
6830
  * Schema for a database change event.
6716
6831
  */
6717
6832
  class DbEvent {
6718
- /** Database name. */
6833
+ /** Schema for a database name. */
6719
6834
  dbName: string;
6720
6835
  /** Sequence number. */
6721
6836
  seq: string;
@@ -6764,7 +6879,7 @@ declare namespace CloudantV1 {
6764
6879
  error?: string;
6765
6880
  /** Schema for information about a database. */
6766
6881
  info?: DatabaseInformation;
6767
- /** Database name. */
6882
+ /** Schema for a database name. */
6768
6883
  key: string;
6769
6884
  static serialize(obj: any): DbsInfoResult.Transport;
6770
6885
  static deserialize(obj: any): DbsInfoResult;
@@ -6792,7 +6907,7 @@ declare namespace CloudantV1 {
6792
6907
  _deleted?: boolean;
6793
6908
  /** Schema for a list of document revision identifiers. */
6794
6909
  _deleted_conflicts?: string[];
6795
- /** Schema for a design document ID. */
6910
+ /** Schema for a design document ID including a `_design/` prefix. */
6796
6911
  _id?: string;
6797
6912
  /** Document's update sequence in current database. Available if requested with local_seq=true query parameter. */
6798
6913
  _local_seq?: string;
@@ -7023,9 +7138,9 @@ declare namespace CloudantV1 {
7023
7138
  ref?: number;
7024
7139
  /** Schema for a document. */
7025
7140
  doc?: Document;
7026
- /** id. */
7141
+ /** Schema for a document ID. */
7027
7142
  id?: string;
7028
- /** Document ID. */
7143
+ /** Schema for a document ID. */
7029
7144
  key: string;
7030
7145
  /** Value of built-in `/_all_docs` style view. */
7031
7146
  value?: DocsResultRowValue;
@@ -7219,7 +7334,7 @@ declare namespace CloudantV1 {
7219
7334
  class ExplainResult {
7220
7335
  /** When `true`, the query is answered using the index only and no documents are fetched. */
7221
7336
  covering: boolean;
7222
- /** Name of database. */
7337
+ /** Schema for a database name. */
7223
7338
  dbname: string;
7224
7339
  /** Fields that were requested to be projected from the document. If no fields were requested to be projected
7225
7340
  * this will be empty and all fields will be returned.
@@ -7228,7 +7343,7 @@ declare namespace CloudantV1 {
7228
7343
  /** Schema for information about an index. */
7229
7344
  index: IndexInformation;
7230
7345
  /** Schema for the list of all the other indexes that were not chosen for serving the query. */
7231
- indexCandidates?: IndexCandidate[];
7346
+ indexCandidates: IndexCandidate[];
7232
7347
  /** The used maximum number of results returned. */
7233
7348
  limit: number;
7234
7349
  /** Arguments passed to the underlying view. */
@@ -7273,7 +7388,7 @@ declare namespace CloudantV1 {
7273
7388
  */
7274
7389
  selector: JsonObject;
7275
7390
  /** Schema for a list of objects with extra information on the selector to provide insights about its usability. */
7276
- selectorHints?: SelectorHint[];
7391
+ selectorHints: SelectorHint[];
7277
7392
  /** Skip parameter used. */
7278
7393
  skip: number;
7279
7394
  static serialize(obj: any): ExplainResult.Transport;
@@ -7285,13 +7400,13 @@ declare namespace CloudantV1 {
7285
7400
  dbname: string;
7286
7401
  fields: string[];
7287
7402
  index: IndexInformation.Transport;
7288
- index_candidates?: IndexCandidate[];
7403
+ index_candidates: IndexCandidate[];
7289
7404
  limit: number;
7290
7405
  mrargs?: ExplainResultMrArgs.Transport;
7291
7406
  opts: ExplainResultOpts.Transport;
7292
7407
  partitioned?: any;
7293
7408
  selector: JsonObject;
7294
- selector_hints?: SelectorHint[];
7409
+ selector_hints: SelectorHint[];
7295
7410
  skip: number;
7296
7411
  }
7297
7412
  }
@@ -7300,36 +7415,41 @@ declare namespace CloudantV1 {
7300
7415
  */
7301
7416
  class ExplainResultMrArgs {
7302
7417
  /** Schema for any JSON type. */
7303
- conflicts?: any;
7418
+ conflicts: any;
7304
7419
  /** Direction parameter passed to the underlying view. */
7305
- direction?: string;
7420
+ direction: ExplainResultMrArgs.Constants.Direction | string;
7306
7421
  /** Schema for any JSON type. */
7307
- endKey?: any;
7422
+ endKey: any;
7308
7423
  /** A parameter that specifies whether to include the full content of the documents in the response in the
7309
7424
  * underlying view.
7310
7425
  */
7311
- includeDocs?: boolean;
7426
+ includeDocs: boolean;
7312
7427
  /** Partition parameter passed to the underlying view. */
7313
- partition?: string | null;
7428
+ partition: string | null;
7314
7429
  /** A parameter that specifies returning only documents that match any of the specified keys in the underlying
7315
7430
  * view.
7316
7431
  */
7317
- reduce?: boolean;
7432
+ reduce: boolean;
7318
7433
  /** A parameter that specifies whether the view results should be returned form a "stable" set of shards passed
7319
7434
  * to the underlying view.
7320
7435
  */
7321
- stable?: boolean;
7436
+ stable: boolean;
7322
7437
  /** Schema for any JSON type. */
7323
7438
  startKey?: any;
7324
7439
  /** Schema for any JSON type. */
7325
- update?: any;
7440
+ update: any;
7326
7441
  /** The type of the underlying view. */
7327
- viewType?: ExplainResultMrArgs.Constants.ViewType | string;
7442
+ viewType: ExplainResultMrArgs.Constants.ViewType | string;
7328
7443
  static serialize(obj: any): ExplainResultMrArgs.Transport;
7329
7444
  static deserialize(obj: any): ExplainResultMrArgs;
7330
7445
  }
7331
7446
  namespace ExplainResultMrArgs {
7332
7447
  namespace Constants {
7448
+ /** Direction parameter passed to the underlying view. */
7449
+ enum Direction {
7450
+ FWD = "fwd",
7451
+ REV = "rev"
7452
+ }
7333
7453
  /** The type of the underlying view. */
7334
7454
  enum ViewType {
7335
7455
  MAP = "map",
@@ -7337,16 +7457,16 @@ declare namespace CloudantV1 {
7337
7457
  }
7338
7458
  }
7339
7459
  interface Transport {
7340
- conflicts?: any;
7341
- direction?: string;
7342
- end_key?: any;
7343
- include_docs?: boolean;
7344
- partition?: string;
7345
- reduce?: boolean;
7346
- stable?: boolean;
7460
+ conflicts: any;
7461
+ direction: string;
7462
+ end_key: any;
7463
+ include_docs: boolean;
7464
+ partition: string;
7465
+ reduce: boolean;
7466
+ stable: boolean;
7347
7467
  start_key?: any;
7348
- update?: any;
7349
- view_type?: string;
7468
+ update: any;
7469
+ view_type: string;
7350
7470
  }
7351
7471
  }
7352
7472
  /**
@@ -7472,7 +7592,7 @@ declare namespace CloudantV1 {
7472
7592
  * * too_many_fields: json The index has more fields than the chosen one.
7473
7593
  * * unfavored_type: any The type of the index is not preferred.
7474
7594
  */
7475
- name?: IndexAnalysisExclusionReason.Constants.Name | string;
7595
+ name: IndexAnalysisExclusionReason.Constants.Name | string;
7476
7596
  static serialize(obj: any): IndexAnalysisExclusionReason.Transport;
7477
7597
  static deserialize(obj: any): IndexAnalysisExclusionReason;
7478
7598
  }
@@ -7494,7 +7614,7 @@ declare namespace CloudantV1 {
7494
7614
  }
7495
7615
  }
7496
7616
  interface Transport {
7497
- name?: string;
7617
+ name: string;
7498
7618
  }
7499
7619
  }
7500
7620
  /**
@@ -7534,7 +7654,7 @@ declare namespace CloudantV1 {
7534
7654
  * For "text" type indexes each object has a `name` property of the field name and a `type` property of the field
7535
7655
  * type (string, number, or boolean).
7536
7656
  */
7537
- fields?: IndexField[];
7657
+ fields: IndexField[];
7538
7658
  /** Whether to scan every document for arrays and store the length for each array found. Set the
7539
7659
  * index_array_lengths field to false if:
7540
7660
  * * You do not need to know the length of an array. * You do not use the `$size` operator. * The documents in your
@@ -7584,7 +7704,7 @@ declare namespace CloudantV1 {
7584
7704
  interface Transport {
7585
7705
  default_analyzer?: Analyzer.Transport;
7586
7706
  default_field?: IndexTextOperatorDefaultField.Transport;
7587
- fields?: IndexField[];
7707
+ fields: IndexField[];
7588
7708
  index_array_lengths?: boolean;
7589
7709
  partial_filter_selector?: JsonObject;
7590
7710
  }
@@ -7626,7 +7746,7 @@ declare namespace CloudantV1 {
7626
7746
  * Schema for information about an index.
7627
7747
  */
7628
7748
  class IndexInformation {
7629
- /** Design document ID including a `_design/` prefix. */
7749
+ /** Schema for a nullable design document ID including a `_design/` prefix. */
7630
7750
  ddoc: string | null;
7631
7751
  /** Schema for a `json` or `text` query index definition. Indexes of type `text` have additional configuration
7632
7752
  * properties that do not apply to `json` indexes, these are:
@@ -7709,7 +7829,7 @@ declare namespace CloudantV1 {
7709
7829
  * Schema for information about the indexes in a database.
7710
7830
  */
7711
7831
  class IndexesInformation {
7712
- /** Number of total rows. */
7832
+ /** Total number of query indexes in the database. */
7713
7833
  totalRows: number;
7714
7834
  /** Indexes. */
7715
7835
  indexes: IndexInformation[];
@@ -7757,13 +7877,13 @@ declare namespace CloudantV1 {
7757
7877
  * Schema for information about a database partition.
7758
7878
  */
7759
7879
  class PartitionInformation {
7760
- /** The name of the database. */
7880
+ /** Schema for a database name. */
7761
7881
  dbName: string;
7762
7882
  /** A count of the documents in the specified database partition. */
7763
7883
  docCount: number;
7764
7884
  /** Number of deleted documents. */
7765
7885
  docDelCount: number;
7766
- /** The name of the partition in the database. */
7886
+ /** Schema for a partition key. */
7767
7887
  partition: string;
7768
7888
  /** Schema for information about the partition index count and limit in a database. */
7769
7889
  partitionedIndexes?: PartitionInformationIndexes;
@@ -7938,7 +8058,7 @@ declare namespace CloudantV1 {
7938
8058
  class ReplicationDatabaseAuthBasic {
7939
8059
  /** The password associated with the username. */
7940
8060
  password: string;
7941
- /** The username. */
8061
+ /** Schema for a username. */
7942
8062
  username: string;
7943
8063
  static serialize(obj: any): ReplicationDatabaseAuthBasic.Transport;
7944
8064
  static deserialize(obj: any): ReplicationDatabaseAuthBasic;
@@ -8189,7 +8309,7 @@ declare namespace CloudantV1 {
8189
8309
  * Schema for a listing of replication scheduler documents.
8190
8310
  */
8191
8311
  class SchedulerDocsResult {
8192
- /** Number of total rows. */
8312
+ /** Total number of replication scheduler documents. */
8193
8313
  totalRows: number;
8194
8314
  /** Array of replication scheduler doc objects. */
8195
8315
  docs: SchedulerDocument[];
@@ -8343,7 +8463,7 @@ declare namespace CloudantV1 {
8343
8463
  startTime: string;
8344
8464
  /** Replication target. */
8345
8465
  target: string;
8346
- /** Name of user running replication. */
8466
+ /** Name of user running the process. */
8347
8467
  user: string | null;
8348
8468
  static serialize(obj: any): SchedulerJob.Transport;
8349
8469
  static deserialize(obj: any): SchedulerJob;
@@ -8387,7 +8507,7 @@ declare namespace CloudantV1 {
8387
8507
  * Schema for a listing of replication scheduler jobs.
8388
8508
  */
8389
8509
  class SchedulerJobsResult {
8390
- /** Number of total rows. */
8510
+ /** Total number of replication jobs. */
8391
8511
  totalRows: number;
8392
8512
  /** Array of replication job objects. */
8393
8513
  jobs: SchedulerJob[];
@@ -8414,6 +8534,23 @@ declare namespace CloudantV1 {
8414
8534
  tokens: string[];
8415
8535
  }
8416
8536
  }
8537
+ /**
8538
+ * Schema for search index disk size.
8539
+ */
8540
+ class SearchDiskSizeInformation {
8541
+ /** The name of the search index prefixed by the design document ID where the index is stored. */
8542
+ name: string;
8543
+ /** Schema for search index disk size. */
8544
+ searchIndex: SearchIndexDiskSize;
8545
+ static serialize(obj: any): SearchDiskSizeInformation.Transport;
8546
+ static deserialize(obj: any): SearchDiskSizeInformation;
8547
+ }
8548
+ namespace SearchDiskSizeInformation {
8549
+ interface Transport {
8550
+ name: string;
8551
+ search_index: SearchIndexDiskSize.Transport;
8552
+ }
8553
+ }
8417
8554
  /**
8418
8555
  * Schema for a search index definition.
8419
8556
  */
@@ -8450,6 +8587,20 @@ declare namespace CloudantV1 {
8450
8587
  index: string;
8451
8588
  }
8452
8589
  }
8590
+ /**
8591
+ * Schema for search index disk size.
8592
+ */
8593
+ class SearchIndexDiskSize {
8594
+ /** The size of the search index on disk. */
8595
+ diskSize?: number;
8596
+ static serialize(obj: any): SearchIndexDiskSize.Transport;
8597
+ static deserialize(obj: any): SearchIndexDiskSize;
8598
+ }
8599
+ namespace SearchIndexDiskSize {
8600
+ interface Transport {
8601
+ disk_size?: number;
8602
+ }
8603
+ }
8453
8604
  /**
8454
8605
  * Schema for metadata information about a search index.
8455
8606
  */
@@ -8500,7 +8651,9 @@ declare namespace CloudantV1 {
8500
8651
  * Schema for the result of a query search operation.
8501
8652
  */
8502
8653
  class SearchResult {
8503
- /** Number of total rows. */
8654
+ /** Total number of rows in the index matching the search query. The limit may truncate the number of matches
8655
+ * returned.
8656
+ */
8504
8657
  totalRows: number;
8505
8658
  /** Opaque bookmark token used when paginating results. */
8506
8659
  bookmark?: string;
@@ -8517,7 +8670,7 @@ declare namespace CloudantV1 {
8517
8670
  [key: string]: JsonObject;
8518
8671
  };
8519
8672
  /** Array of row objects. */
8520
- rows?: SearchResultRow[];
8673
+ rows: SearchResultRow[];
8521
8674
  /** Array of grouped search matches. */
8522
8675
  groups?: SearchResultProperties[];
8523
8676
  static serialize(obj: any): SearchResult.Transport;
@@ -8534,7 +8687,7 @@ declare namespace CloudantV1 {
8534
8687
  ranges?: {
8535
8688
  [key: string]: JsonObject;
8536
8689
  };
8537
- rows?: SearchResultRow[];
8690
+ rows: SearchResultRow[];
8538
8691
  groups?: SearchResultProperties[];
8539
8692
  }
8540
8693
  }
@@ -8542,7 +8695,9 @@ declare namespace CloudantV1 {
8542
8695
  * Schema for the result of a query search operation.
8543
8696
  */
8544
8697
  class SearchResultProperties {
8545
- /** Number of total rows. */
8698
+ /** Total number of rows in the index matching the search query. The limit may truncate the number of matches
8699
+ * returned.
8700
+ */
8546
8701
  totalRows: number;
8547
8702
  /** Opaque bookmark token used when paginating results. */
8548
8703
  bookmark?: string;
@@ -8559,7 +8714,7 @@ declare namespace CloudantV1 {
8559
8714
  [key: string]: JsonObject;
8560
8715
  };
8561
8716
  /** Array of row objects. */
8562
- rows?: SearchResultRow[];
8717
+ rows: SearchResultRow[];
8563
8718
  static serialize(obj: any): SearchResultProperties.Transport;
8564
8719
  static deserialize(obj: any): SearchResultProperties;
8565
8720
  }
@@ -8574,7 +8729,7 @@ declare namespace CloudantV1 {
8574
8729
  ranges?: {
8575
8730
  [key: string]: JsonObject;
8576
8731
  };
8577
- rows?: SearchResultRow[];
8732
+ rows: SearchResultRow[];
8578
8733
  }
8579
8734
  }
8580
8735
  /**
@@ -8608,21 +8763,21 @@ declare namespace CloudantV1 {
8608
8763
  class Security {
8609
8764
  /** Schema for names and roles to map to a database permission. */
8610
8765
  admins?: SecurityObject;
8611
- /** Schema for names and roles to map to a database permission. */
8612
- members?: SecurityObject;
8613
8766
  /** Database permissions for Cloudant users and/or API keys. */
8614
8767
  cloudant?: JsonObject;
8615
8768
  /** Manage permissions using the `_users` database only. */
8616
8769
  couchdbAuthOnly?: boolean;
8770
+ /** Schema for names and roles to map to a database permission. */
8771
+ members?: SecurityObject;
8617
8772
  static serialize(obj: any): Security.Transport;
8618
8773
  static deserialize(obj: any): Security;
8619
8774
  }
8620
8775
  namespace Security {
8621
8776
  interface Transport {
8622
8777
  admins?: SecurityObject.Transport;
8623
- members?: SecurityObject.Transport;
8624
8778
  cloudant?: JsonObject;
8625
8779
  couchdb_auth_only?: boolean;
8780
+ members?: SecurityObject.Transport;
8626
8781
  }
8627
8782
  }
8628
8783
  /**
@@ -8677,12 +8832,12 @@ declare namespace CloudantV1 {
8677
8832
  couchdb: string;
8678
8833
  /** List of enabled optional features. */
8679
8834
  features: string[];
8835
+ /** List of feature flags. */
8836
+ featuresFlags: string[];
8680
8837
  /** Schema for server vendor information. */
8681
8838
  vendor: ServerVendor;
8682
8839
  /** Apache CouchDB version. */
8683
8840
  version: string;
8684
- /** List of feature flags. */
8685
- featuresFlags: string[];
8686
8841
  static serialize(obj: any): ServerInformation.Transport;
8687
8842
  static deserialize(obj: any): ServerInformation;
8688
8843
  }
@@ -8690,9 +8845,9 @@ declare namespace CloudantV1 {
8690
8845
  interface Transport {
8691
8846
  couchdb: string;
8692
8847
  features: string[];
8848
+ features_flags: string[];
8693
8849
  vendor: ServerVendor.Transport;
8694
8850
  version: string;
8695
- features_flags: string[];
8696
8851
  }
8697
8852
  }
8698
8853
  /**
@@ -8704,7 +8859,7 @@ declare namespace CloudantV1 {
8704
8859
  /** Vendor name. */
8705
8860
  name: string;
8706
8861
  /** Vendor variant. */
8707
- variant: string;
8862
+ variant: ServerVendor.Constants.Variant | string;
8708
8863
  /** Vendor version. */
8709
8864
  version: string;
8710
8865
  /**
@@ -8715,6 +8870,12 @@ declare namespace CloudantV1 {
8715
8870
  static deserialize(obj: any): ServerVendor;
8716
8871
  }
8717
8872
  namespace ServerVendor {
8873
+ namespace Constants {
8874
+ /** Vendor variant. */
8875
+ enum Variant {
8876
+ PAAS = "paas"
8877
+ }
8878
+ }
8718
8879
  interface Transport {
8719
8880
  name: string;
8720
8881
  variant: string;
@@ -8856,7 +9017,7 @@ declare namespace CloudantV1 {
8856
9017
  class UserContext {
8857
9018
  /** Database name in the context of the provided operation. */
8858
9019
  db?: string;
8859
- /** User name. */
9020
+ /** Name of user running the process. */
8860
9021
  name: string | null;
8861
9022
  /** List of user roles. */
8862
9023
  roles: UserContext.Constants.Roles[] | string[];
@@ -9027,7 +9188,10 @@ declare namespace CloudantV1 {
9027
9188
  * Schema for the result of a query view operation.
9028
9189
  */
9029
9190
  class ViewResult {
9030
- /** Number of total rows. */
9191
+ /** Total number of rows in the view index. Note that if the request query narrows the view this is not the
9192
+ * number of matching rows. The number of matching rows, up to the specified `limit`, is the size of the `rows`
9193
+ * array.
9194
+ */
9031
9195
  totalRows?: number;
9032
9196
  /** Current update sequence for the database. */
9033
9197
  updateSeq?: string;