@ibm-cloud/cloudant 0.0.12 → 0.0.16

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
@@ -89,8 +89,8 @@ declare class CloudantV1 extends CloudantBaseService {
89
89
  /**
90
90
  * Retrieve provisioned throughput capacity information.
91
91
  *
92
- * View the amount of provisioned throughput capacity allocated to an IBM Cloudant instance and what is the target
93
- * provisioned throughput capacity.
92
+ * View the amount of provisioned throughput capacity that is allocated to an IBM Cloudant instance and what is the
93
+ * target provisioned throughput capacity.
94
94
  *
95
95
  * @param {Object} [params] - The parameters to send to the service.
96
96
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
@@ -109,88 +109,33 @@ declare class CloudantV1 extends CloudantBaseService {
109
109
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
110
110
  * @returns {Promise<CloudantV1.Response<CloudantV1.CapacityThroughputInformation>>}
111
111
  */
112
- putCapacityThroughputInformation(params: CloudantV1.PutCapacityThroughputInformationParams): Promise<CloudantV1.Response<CloudantV1.CapacityThroughputInformation>>;
112
+ putCapacityThroughputConfiguration(params: CloudantV1.PutCapacityThroughputConfigurationParams): Promise<CloudantV1.Response<CloudantV1.CapacityThroughputInformation>>;
113
113
  /*************************
114
- * databases
114
+ * changes
115
115
  ************************/
116
116
  /**
117
- * Retrieve the HTTP headers for a database.
118
- *
119
- * Returns the HTTP headers that contain a minimal amount of information about the specified database. Since the
120
- * response body is empty, using the HEAD method is a lightweight way to check if the database exists or not.
117
+ * Retrieve change events for all databases.
121
118
  *
122
- * @param {Object} params - The parameters to send to the service.
123
- * @param {string} params.db - Path parameter to specify the database name.
124
- * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
125
- * @returns {Promise<CloudantV1.Response<CloudantV1.Empty>>}
126
- */
127
- headDatabase(params: CloudantV1.HeadDatabaseParams): Promise<CloudantV1.Response<CloudantV1.Empty>>;
128
- /**
129
- * Query a list of all database names in the instance.
119
+ * Lists changes to databases, like a global changes feed. Types of changes include updating the database and creating
120
+ * or deleting a database. Like the changes feed, the feed is not guaranteed to return changes in the correct order
121
+ * and might repeat changes. Polling modes for this method work like polling modes for the changes feed.
122
+ * **Note: This endpoint requires _admin or _db_updates role and is only available on dedicated clusters.**.
130
123
  *
131
124
  * @param {Object} [params] - The parameters to send to the service.
132
- * @param {boolean} [params.descending] - Query parameter to specify whether to return the documents in descending by
133
- * key order.
134
- * @param {string} [params.endkey] - Query parameter to specify to stop returning records when the specified key is
135
- * reached. String representation of any JSON type that matches the key type emitted by the view function.
136
- * @param {number} [params.limit] - Query parameter to specify the number of returned documents to limit the result
137
- * to.
138
- * @param {number} [params.skip] - Query parameter to specify the number of records before starting to return the
139
- * results.
140
- * @param {string} [params.startkey] - Query parameter to specify to start returning records from the specified key.
141
- * String representation of any JSON type that matches the key type emitted by the view function.
142
- * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
143
- * @returns {Promise<CloudantV1.Response<string[]>>}
144
- */
145
- getAllDbs(params?: CloudantV1.GetAllDbsParams): Promise<CloudantV1.Response<string[]>>;
146
- /**
147
- * Query information about multiple databases.
148
- *
149
- * This operation enables you to request information about multiple databases in a single request, instead of issuing
150
- * multiple `GET /{db}` requests. It returns a list that contains an information object for each database specified in
151
- * the request.
152
- *
153
- * @param {Object} params - The parameters to send to the service.
154
- * @param {string[]} params.keys - A list of database names.
155
- * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
156
- * @returns {Promise<CloudantV1.Response<CloudantV1.DbsInfoResult[]>>}
157
- */
158
- postDbsInfo(params: CloudantV1.PostDbsInfoParams): Promise<CloudantV1.Response<CloudantV1.DbsInfoResult[]>>;
159
- /**
160
- * Delete a database.
161
- *
162
- * Deletes the specified database and all documents and attachments contained within it. To avoid deleting a database,
163
- * the server responds with a 400 HTTP status code when the request URL includes a `?rev=` parameter. This response
164
- * suggests that a user wanted to delete a document but forgot to add the document ID to the URL.
165
- *
166
- * @param {Object} params - The parameters to send to the service.
167
- * @param {string} params.db - Path parameter to specify the database name.
168
- * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
169
- * @returns {Promise<CloudantV1.Response<CloudantV1.Ok>>}
170
- */
171
- deleteDatabase(params: CloudantV1.DeleteDatabaseParams): Promise<CloudantV1.Response<CloudantV1.Ok>>;
172
- /**
173
- * Retrieve information about a database.
174
- *
175
- * @param {Object} params - The parameters to send to the service.
176
- * @param {string} params.db - Path parameter to specify the database name.
177
- * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
178
- * @returns {Promise<CloudantV1.Response<CloudantV1.DatabaseInformation>>}
179
- */
180
- getDatabaseInformation(params: CloudantV1.GetDatabaseInformationParams): Promise<CloudantV1.Response<CloudantV1.DatabaseInformation>>;
181
- /**
182
- * Create a database.
183
- *
184
- * @param {Object} params - The parameters to send to the service.
185
- * @param {string} params.db - Path parameter to specify the database name.
186
- * @param {boolean} [params.partitioned] - Query parameter to specify whether to enable database partitions when
187
- * creating a database.
188
- * @param {number} [params.q] - The number of shards in the database. Each shard is a partition of the hash value
189
- * range. Default is 8, unless overridden in the `cluster config`.
125
+ * @param {string} [params.feed] - Query parameter to specify the changes feed type.
126
+ * @param {number} [params.heartbeat] - Query parameter to specify the period in milliseconds after which an empty
127
+ * line is sent in the results. Only applicable for longpoll, continuous, and eventsource feeds. Overrides any timeout
128
+ * to keep the feed alive indefinitely. May also be `true` to use default value of 60000.
129
+ * @param {number} [params.timeout] - Query parameter to specify the maximum period in milliseconds to wait for a
130
+ * change before the response is sent, even if there are no results. Only applicable for `longpoll` or `continuous`
131
+ * feeds. Default value is specified by `httpd/changes_timeout` configuration option. Note that `60000` value is also
132
+ * the default maximum timeout to prevent undetected dead connections.
133
+ * @param {string} [params.since] - Query parameter to specify to start the results from the change immediately after
134
+ * the given update sequence. Can be a valid update sequence or `now` value. Default is `0` i.e. all changes.
190
135
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
191
- * @returns {Promise<CloudantV1.Response<CloudantV1.Ok>>}
136
+ * @returns {Promise<CloudantV1.Response<CloudantV1.DbUpdates>>}
192
137
  */
193
- putDatabase(params: CloudantV1.PutDatabaseParams): Promise<CloudantV1.Response<CloudantV1.Ok>>;
138
+ getDbUpdates(params?: CloudantV1.GetDbUpdatesParams): Promise<CloudantV1.Response<CloudantV1.DbUpdates>>;
194
139
  /**
195
140
  * Query the database document changes feed.
196
141
  *
@@ -359,6 +304,87 @@ declare class CloudantV1 extends CloudantBaseService {
359
304
  * @returns {Promise<CloudantV1.Response<NodeJS.ReadableStream|Buffer>>}
360
305
  */
361
306
  postChangesAsStream(params: CloudantV1.PostChangesAsStreamParams): Promise<CloudantV1.Response<NodeJS.ReadableStream | Buffer>>;
307
+ /*************************
308
+ * databases
309
+ ************************/
310
+ /**
311
+ * Retrieve the HTTP headers for a database.
312
+ *
313
+ * Returns the HTTP headers that contain a minimal amount of information about the specified database. Since the
314
+ * response body is empty, using the HEAD method is a lightweight way to check if the database exists or not.
315
+ *
316
+ * @param {Object} params - The parameters to send to the service.
317
+ * @param {string} params.db - Path parameter to specify the database name.
318
+ * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
319
+ * @returns {Promise<CloudantV1.Response<CloudantV1.Empty>>}
320
+ */
321
+ headDatabase(params: CloudantV1.HeadDatabaseParams): Promise<CloudantV1.Response<CloudantV1.Empty>>;
322
+ /**
323
+ * Query a list of all database names in the instance.
324
+ *
325
+ * @param {Object} [params] - The parameters to send to the service.
326
+ * @param {boolean} [params.descending] - Query parameter to specify whether to return the documents in descending by
327
+ * key order.
328
+ * @param {string} [params.endkey] - Query parameter to specify to stop returning records when the specified key is
329
+ * reached. String representation of any JSON type that matches the key type emitted by the view function.
330
+ * @param {number} [params.limit] - Query parameter to specify the number of returned documents to limit the result
331
+ * to.
332
+ * @param {number} [params.skip] - Query parameter to specify the number of records before starting to return the
333
+ * results.
334
+ * @param {string} [params.startkey] - Query parameter to specify to start returning records from the specified key.
335
+ * String representation of any JSON type that matches the key type emitted by the view function.
336
+ * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
337
+ * @returns {Promise<CloudantV1.Response<string[]>>}
338
+ */
339
+ getAllDbs(params?: CloudantV1.GetAllDbsParams): Promise<CloudantV1.Response<string[]>>;
340
+ /**
341
+ * Query information about multiple databases.
342
+ *
343
+ * This operation enables you to request information about multiple databases in a single request, instead of issuing
344
+ * multiple `GET /{db}` requests. It returns a list that contains an information object for each database specified in
345
+ * the request.
346
+ *
347
+ * @param {Object} params - The parameters to send to the service.
348
+ * @param {string[]} params.keys - A list of database names.
349
+ * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
350
+ * @returns {Promise<CloudantV1.Response<CloudantV1.DbsInfoResult[]>>}
351
+ */
352
+ postDbsInfo(params: CloudantV1.PostDbsInfoParams): Promise<CloudantV1.Response<CloudantV1.DbsInfoResult[]>>;
353
+ /**
354
+ * Delete a database.
355
+ *
356
+ * Deletes the specified database and all documents and attachments contained within it. To avoid deleting a database,
357
+ * the server responds with a 400 HTTP status code when the request URL includes a `?rev=` parameter. This response
358
+ * suggests that a user wanted to delete a document but forgot to add the document ID to the URL.
359
+ *
360
+ * @param {Object} params - The parameters to send to the service.
361
+ * @param {string} params.db - Path parameter to specify the database name.
362
+ * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
363
+ * @returns {Promise<CloudantV1.Response<CloudantV1.Ok>>}
364
+ */
365
+ deleteDatabase(params: CloudantV1.DeleteDatabaseParams): Promise<CloudantV1.Response<CloudantV1.Ok>>;
366
+ /**
367
+ * Retrieve information about a database.
368
+ *
369
+ * @param {Object} params - The parameters to send to the service.
370
+ * @param {string} params.db - Path parameter to specify the database name.
371
+ * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
372
+ * @returns {Promise<CloudantV1.Response<CloudantV1.DatabaseInformation>>}
373
+ */
374
+ getDatabaseInformation(params: CloudantV1.GetDatabaseInformationParams): Promise<CloudantV1.Response<CloudantV1.DatabaseInformation>>;
375
+ /**
376
+ * Create a database.
377
+ *
378
+ * @param {Object} params - The parameters to send to the service.
379
+ * @param {string} params.db - Path parameter to specify the database name.
380
+ * @param {boolean} [params.partitioned] - Query parameter to specify whether to enable database partitions when
381
+ * creating a database.
382
+ * @param {number} [params.q] - The number of shards in the database. Each shard is a partition of the hash value
383
+ * range. Default is 8, unless overridden in the `cluster config`.
384
+ * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
385
+ * @returns {Promise<CloudantV1.Response<CloudantV1.Ok>>}
386
+ */
387
+ putDatabase(params: CloudantV1.PutDatabaseParams): Promise<CloudantV1.Response<CloudantV1.Ok>>;
362
388
  /*************************
363
389
  * documents
364
390
  ************************/
@@ -628,8 +654,6 @@ declare class CloudantV1 extends CloudantBaseService {
628
654
  * response.
629
655
  * @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
630
656
  * in attachment stubs if the particular attachment is compressed.
631
- * @param {string[]} [params.attsSince] - Query parameter to specify whether to include attachments only since
632
- * specified revisions. Note this does not include the attachments for the specified revisions.
633
657
  * @param {boolean} [params.conflicts] - Query parameter to specify whether to include a list of conflicted revisions
634
658
  * in the `_conflicts` property of the returned document. Ignored if `include_docs` isn't `true`.
635
659
  * @param {boolean} [params.deletedConflicts] - Query parameter to specify whether to include a list of deleted
@@ -640,8 +664,6 @@ declare class CloudantV1 extends CloudantBaseService {
640
664
  * document.
641
665
  * @param {boolean} [params.meta] - Query parameter to specify whether to include document meta information. Acts the
642
666
  * same as specifying all of the conflicts, deleted_conflicts and open_revs query parameters.
643
- * @param {string[]} [params.openRevs] - Query parameter to specify leaf revisions to retrieve. Additionally, it
644
- * accepts a value of `all` to return all leaf revisions.
645
667
  * @param {string} [params.rev] - Query parameter to specify a document revision.
646
668
  * @param {boolean} [params.revs] - Query parameter to specify whether to include a list of all known document
647
669
  * revisions.
@@ -666,8 +688,6 @@ declare class CloudantV1 extends CloudantBaseService {
666
688
  * response.
667
689
  * @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
668
690
  * in attachment stubs if the particular attachment is compressed.
669
- * @param {string[]} [params.attsSince] - Query parameter to specify whether to include attachments only since
670
- * specified revisions. Note this does not include the attachments for the specified revisions.
671
691
  * @param {boolean} [params.conflicts] - Query parameter to specify whether to include a list of conflicted revisions
672
692
  * in the `_conflicts` property of the returned document. Ignored if `include_docs` isn't `true`.
673
693
  * @param {boolean} [params.deletedConflicts] - Query parameter to specify whether to include a list of deleted
@@ -678,8 +698,6 @@ declare class CloudantV1 extends CloudantBaseService {
678
698
  * document.
679
699
  * @param {boolean} [params.meta] - Query parameter to specify whether to include document meta information. Acts the
680
700
  * same as specifying all of the conflicts, deleted_conflicts and open_revs query parameters.
681
- * @param {string[]} [params.openRevs] - Query parameter to specify leaf revisions to retrieve. Additionally, it
682
- * accepts a value of `all` to return all leaf revisions.
683
701
  * @param {string} [params.rev] - Query parameter to specify a document revision.
684
702
  * @param {boolean} [params.revs] - Query parameter to specify whether to include a list of all known document
685
703
  * revisions.
@@ -704,8 +722,6 @@ declare class CloudantV1 extends CloudantBaseService {
704
722
  * response.
705
723
  * @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
706
724
  * in attachment stubs if the particular attachment is compressed.
707
- * @param {string[]} [params.attsSince] - Query parameter to specify whether to include attachments only since
708
- * specified revisions. Note this does not include the attachments for the specified revisions.
709
725
  * @param {boolean} [params.conflicts] - Query parameter to specify whether to include a list of conflicted revisions
710
726
  * in the `_conflicts` property of the returned document. Ignored if `include_docs` isn't `true`.
711
727
  * @param {boolean} [params.deletedConflicts] - Query parameter to specify whether to include a list of deleted
@@ -716,8 +732,6 @@ declare class CloudantV1 extends CloudantBaseService {
716
732
  * document.
717
733
  * @param {boolean} [params.meta] - Query parameter to specify whether to include document meta information. Acts the
718
734
  * same as specifying all of the conflicts, deleted_conflicts and open_revs query parameters.
719
- * @param {string[]} [params.openRevs] - Query parameter to specify leaf revisions to retrieve. Additionally, it
720
- * accepts a value of `all` to return all leaf revisions.
721
735
  * @param {string} [params.rev] - Query parameter to specify a document revision.
722
736
  * @param {boolean} [params.revs] - Query parameter to specify whether to include a list of all known document
723
737
  * revisions.
@@ -742,8 +756,6 @@ declare class CloudantV1 extends CloudantBaseService {
742
756
  * response.
743
757
  * @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
744
758
  * in attachment stubs if the particular attachment is compressed.
745
- * @param {string[]} [params.attsSince] - Query parameter to specify whether to include attachments only since
746
- * specified revisions. Note this does not include the attachments for the specified revisions.
747
759
  * @param {boolean} [params.conflicts] - Query parameter to specify whether to include a list of conflicted revisions
748
760
  * in the `_conflicts` property of the returned document. Ignored if `include_docs` isn't `true`.
749
761
  * @param {boolean} [params.deletedConflicts] - Query parameter to specify whether to include a list of deleted
@@ -754,8 +766,6 @@ declare class CloudantV1 extends CloudantBaseService {
754
766
  * document.
755
767
  * @param {boolean} [params.meta] - Query parameter to specify whether to include document meta information. Acts the
756
768
  * same as specifying all of the conflicts, deleted_conflicts and open_revs query parameters.
757
- * @param {string[]} [params.openRevs] - Query parameter to specify leaf revisions to retrieve. Additionally, it
758
- * accepts a value of `all` to return all leaf revisions.
759
769
  * @param {string} [params.rev] - Query parameter to specify a document revision.
760
770
  * @param {boolean} [params.revs] - Query parameter to specify whether to include a list of all known document
761
771
  * revisions.
@@ -846,8 +856,6 @@ declare class CloudantV1 extends CloudantBaseService {
846
856
  * response.
847
857
  * @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
848
858
  * in attachment stubs if the particular attachment is compressed.
849
- * @param {string[]} [params.attsSince] - Query parameter to specify whether to include attachments only since
850
- * specified revisions. Note this does not include the attachments for the specified revisions.
851
859
  * @param {boolean} [params.conflicts] - Query parameter to specify whether to include a list of conflicted revisions
852
860
  * in the `_conflicts` property of the returned document. Ignored if `include_docs` isn't `true`.
853
861
  * @param {boolean} [params.deletedConflicts] - Query parameter to specify whether to include a list of deleted
@@ -858,8 +866,6 @@ declare class CloudantV1 extends CloudantBaseService {
858
866
  * document.
859
867
  * @param {boolean} [params.meta] - Query parameter to specify whether to include document meta information. Acts the
860
868
  * same as specifying all of the conflicts, deleted_conflicts and open_revs query parameters.
861
- * @param {string[]} [params.openRevs] - Query parameter to specify leaf revisions to retrieve. Additionally, it
862
- * accepts a value of `all` to return all leaf revisions.
863
869
  * @param {string} [params.rev] - Query parameter to specify a document revision.
864
870
  * @param {boolean} [params.revs] - Query parameter to specify whether to include a list of all known document
865
871
  * revisions.
@@ -1661,30 +1667,6 @@ declare class CloudantV1 extends CloudantBaseService {
1661
1667
  * * `default_analyzer` - the default text analyzer to use * `default_field` - whether to index the text in all
1662
1668
  * document fields and what analyzer to use for that purpose.
1663
1669
  * @param {string} [params.name] - name.
1664
- * @param {JsonObject} [params.partialFilterSelector] - JSON object describing criteria used to select documents. The
1665
- * selector specifies fields in the document, and provides an expression to evaluate with the field content or other
1666
- * data.
1667
- *
1668
- * The selector object must:
1669
- * * Be structured as valid JSON.
1670
- * * Contain a valid query expression.
1671
- *
1672
- * Using a selector is significantly more efficient than using a JavaScript filter function, and is the recommended
1673
- * option if filtering on document attributes only.
1674
- *
1675
- * Elementary selector syntax requires you to specify one or more fields, and the corresponding values required for
1676
- * those fields. You can create more complex selector expressions by combining operators.
1677
- *
1678
- * Operators are identified by the use of a dollar sign `$` prefix in the name field.
1679
- *
1680
- * There are two core types of operators in the selector syntax:
1681
- * * Combination operators: applied at the topmost level of selection. They are used to combine selectors. In addition
1682
- * to the common boolean operators (`$and`, `$or`, `$not`, `$nor`) there are three combination operators: `$all`,
1683
- * `$elemMatch`, and `$allMatch`. A combination operator takes a single argument. The argument is either another
1684
- * selector, or an array of selectors.
1685
- * * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
1686
- * instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the supplied
1687
- * argument.
1688
1670
  * @param {boolean} [params.partitioned] - The default value is `true` for databases with `partitioned: true` and
1689
1671
  * `false` otherwise. For databases with `partitioned: false` if this option is specified the value must be `false`.
1690
1672
  * @param {string} [params.type] - Schema for the type of an index.
@@ -1715,8 +1697,8 @@ declare class CloudantV1 extends CloudantBaseService {
1715
1697
  * analyzer tokenization.
1716
1698
  *
1717
1699
  * @param {Object} params - The parameters to send to the service.
1718
- * @param {string} params.analyzer - analyzer.
1719
- * @param {string} params.text - text.
1700
+ * @param {string} params.analyzer - The analyzer type that is being used at the tokenization.
1701
+ * @param {string} params.text - The text to tokenize with the analyzer.
1720
1702
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
1721
1703
  * @returns {Promise<CloudantV1.Response<CloudantV1.SearchAnalyzeResult>>}
1722
1704
  */
@@ -1981,39 +1963,15 @@ declare class CloudantV1 extends CloudantBaseService {
1981
1963
  * @returns {Promise<CloudantV1.Response<CloudantV1.GeoIndexInformation>>}
1982
1964
  */
1983
1965
  getGeoIndexInformation(params: CloudantV1.GetGeoIndexInformationParams): Promise<CloudantV1.Response<CloudantV1.GeoIndexInformation>>;
1984
- /*************************
1985
- * changes
1986
- ************************/
1987
- /**
1988
- * Retrieve change events for all databases.
1989
- *
1990
- * Lists changes to databases, like a global changes feed. Types of changes include updating the database and creating
1991
- * or deleting a database. Like the changes feed, the feed is not guaranteed to return changes in the correct order
1992
- * and might repeat changes. Polling modes for this method work like polling modes for the changes feed.
1993
- * **Note: This endpoint requires _admin or _db_updates role and is only available on dedicated clusters.**.
1994
- *
1995
- * @param {Object} [params] - The parameters to send to the service.
1996
- * @param {string} [params.feed] - Query parameter to specify the changes feed type.
1997
- * @param {number} [params.heartbeat] - Query parameter to specify the period in milliseconds after which an empty
1998
- * line is sent in the results. Only applicable for longpoll, continuous, and eventsource feeds. Overrides any timeout
1999
- * to keep the feed alive indefinitely. May also be `true` to use default value of 60000.
2000
- * @param {number} [params.timeout] - Query parameter to specify the maximum period in milliseconds to wait for a
2001
- * change before the response is sent, even if there are no results. Only applicable for `longpoll` or `continuous`
2002
- * feeds. Default value is specified by `httpd/changes_timeout` configuration option. Note that `60000` value is also
2003
- * the default maximum timeout to prevent undetected dead connections.
2004
- * @param {string} [params.since] - Query parameter to specify to start the results from the change immediately after
2005
- * the given update sequence. Can be a valid update sequence or `now` value. Default is `0` i.e. all changes.
2006
- * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
2007
- * @returns {Promise<CloudantV1.Response<CloudantV1.DbUpdates>>}
2008
- */
2009
- getDbUpdates(params?: CloudantV1.GetDbUpdatesParams): Promise<CloudantV1.Response<CloudantV1.DbUpdates>>;
2010
1966
  /*************************
2011
1967
  * replication
2012
1968
  ************************/
2013
1969
  /**
2014
1970
  * Retrieve the HTTP headers for a replication document.
2015
1971
  *
2016
- * Retrieves the HTTP headers for a replication document from the `_replicator` database.
1972
+ * Retrieves the HTTP headers containing minimal amount of information about the specified replication document from
1973
+ * the `_replicator` database. The method supports the same query arguments as the `GET /_replicator/{doc_id}`
1974
+ * method, but only headers like content length and the revision (ETag header) are returned.
2017
1975
  *
2018
1976
  * @param {Object} params - The parameters to send to the service.
2019
1977
  * @param {string} params.docId - Path parameter to specify the document ID.
@@ -2023,6 +1981,19 @@ declare class CloudantV1 extends CloudantBaseService {
2023
1981
  * @returns {Promise<CloudantV1.Response<CloudantV1.Empty>>}
2024
1982
  */
2025
1983
  headReplicationDocument(params: CloudantV1.HeadReplicationDocumentParams): Promise<CloudantV1.Response<CloudantV1.Empty>>;
1984
+ /**
1985
+ * Retrieve HTTP headers for a replication scheduler document.
1986
+ *
1987
+ * Retrieves the HTTP headers containing minimal amount of information about the specified replication scheduler
1988
+ * document. Since the response body is empty, using the HEAD method is a lightweight way to check if the replication
1989
+ * scheduler document exists or not.
1990
+ *
1991
+ * @param {Object} params - The parameters to send to the service.
1992
+ * @param {string} params.docId - Path parameter to specify the document ID.
1993
+ * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
1994
+ * @returns {Promise<CloudantV1.Response<CloudantV1.Empty>>}
1995
+ */
1996
+ headSchedulerDocument(params: CloudantV1.HeadSchedulerDocumentParams): Promise<CloudantV1.Response<CloudantV1.Empty>>;
2026
1997
  /**
2027
1998
  * Retrieve the HTTP headers for a replication scheduler job.
2028
1999
  *
@@ -2076,8 +2047,6 @@ declare class CloudantV1 extends CloudantBaseService {
2076
2047
  * response.
2077
2048
  * @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
2078
2049
  * in attachment stubs if the particular attachment is compressed.
2079
- * @param {string[]} [params.attsSince] - Query parameter to specify whether to include attachments only since
2080
- * specified revisions. Note this does not include the attachments for the specified revisions.
2081
2050
  * @param {boolean} [params.conflicts] - Query parameter to specify whether to include a list of conflicted revisions
2082
2051
  * in the `_conflicts` property of the returned document. Ignored if `include_docs` isn't `true`.
2083
2052
  * @param {boolean} [params.deletedConflicts] - Query parameter to specify whether to include a list of deleted
@@ -2088,8 +2057,6 @@ declare class CloudantV1 extends CloudantBaseService {
2088
2057
  * document.
2089
2058
  * @param {boolean} [params.meta] - Query parameter to specify whether to include document meta information. Acts the
2090
2059
  * same as specifying all of the conflicts, deleted_conflicts and open_revs query parameters.
2091
- * @param {string[]} [params.openRevs] - Query parameter to specify leaf revisions to retrieve. Additionally, it
2092
- * accepts a value of `all` to return all leaf revisions.
2093
2060
  * @param {string} [params.rev] - Query parameter to specify a document revision.
2094
2061
  * @param {boolean} [params.revs] - Query parameter to specify whether to include a list of all known document
2095
2062
  * revisions.
@@ -2375,6 +2342,21 @@ declare class CloudantV1 extends CloudantBaseService {
2375
2342
  /*************************
2376
2343
  * localDocuments
2377
2344
  ************************/
2345
+ /**
2346
+ * Retrieve HTTP headers for a local document.
2347
+ *
2348
+ * Retrieves the HTTP headers containing minimal amount of information about the specified local document. Since the
2349
+ * response body is empty, using the HEAD method is a lightweight way to check if the local document exists or not.
2350
+ *
2351
+ * @param {Object} params - The parameters to send to the service.
2352
+ * @param {string} params.db - Path parameter to specify the database name.
2353
+ * @param {string} params.docId - Path parameter to specify the document ID.
2354
+ * @param {string} [params.ifNoneMatch] - Header parameter to specify a double quoted document revision token for
2355
+ * cache control.
2356
+ * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
2357
+ * @returns {Promise<CloudantV1.Response<CloudantV1.Empty>>}
2358
+ */
2359
+ headLocalDocument(params: CloudantV1.HeadLocalDocumentParams): Promise<CloudantV1.Response<CloudantV1.Empty>>;
2378
2360
  /**
2379
2361
  * Delete a local document.
2380
2362
  *
@@ -2407,8 +2389,6 @@ declare class CloudantV1 extends CloudantBaseService {
2407
2389
  * response.
2408
2390
  * @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
2409
2391
  * in attachment stubs if the particular attachment is compressed.
2410
- * @param {string[]} [params.attsSince] - Query parameter to specify whether to include attachments only since
2411
- * specified revisions. Note this does not include the attachments for the specified revisions.
2412
2392
  * @param {boolean} [params.localSeq] - Query parameter to specify whether to include the last update sequence for the
2413
2393
  * document.
2414
2394
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
@@ -2432,56 +2412,6 @@ declare class CloudantV1 extends CloudantBaseService {
2432
2412
  * @returns {Promise<CloudantV1.Response<CloudantV1.DocumentResult>>}
2433
2413
  */
2434
2414
  putLocalDocument(params: CloudantV1.PutLocalDocumentParams): Promise<CloudantV1.Response<CloudantV1.DocumentResult>>;
2435
- /**
2436
- * Query a list of all local documents in a database.
2437
- *
2438
- * Queries the list of all local document IDs. The results matching the request body parameters are returned in a JSON
2439
- * object, including a list of matching local documents with basic contents, such as the ID. When no request body
2440
- * parameters are specified, results for all local documents in the database are returned. Optionally, document
2441
- * content or additional metadata can be included in the response.
2442
- *
2443
- * @param {Object} params - The parameters to send to the service.
2444
- * @param {string} params.db - Path parameter to specify the database name.
2445
- * @param {boolean} [params.attEncodingInfo] - Parameter to specify whether to include the encoding information in
2446
- * attachment stubs if the particular attachment is compressed.
2447
- * @param {boolean} [params.attachments] - Parameter to specify whether to include attachments bodies in a response.
2448
- * @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in the
2449
- * `_conflicts` property of the returned document. Ignored if `include_docs` isn't `true`.
2450
- * @param {boolean} [params.descending] - Parameter to specify whether to return the documents in descending by key
2451
- * order.
2452
- * @param {boolean} [params.includeDocs] - Parameter to specify whether to include the full content of the documents
2453
- * in the response.
2454
- * @param {boolean} [params.inclusiveEnd] - Parameter to specify whether the specified end key should be included in
2455
- * the result.
2456
- * @param {number} [params.limit] - Parameter to specify the number of returned documents to limit the result to.
2457
- * @param {number} [params.skip] - Parameter to specify the number of records before starting to return the results.
2458
- * @param {boolean} [params.updateSeq] - Parameter to specify whether to include in the response an update_seq value
2459
- * indicating the sequence id of the database the view reflects.
2460
- * @param {string} [params.endkey] - Schema for a document ID.
2461
- * @param {string} [params.key] - Schema for a document ID.
2462
- * @param {string[]} [params.keys] - Schema for a list of document IDs.
2463
- * @param {string} [params.startkey] - Schema for a document ID.
2464
- * @param {string} [params.accept] - The type of the response: application/json or application/octet-stream.
2465
- * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
2466
- * @returns {Promise<CloudantV1.Response<CloudantV1.AllDocsResult>>}
2467
- */
2468
- postLocalDocs(params: CloudantV1.PostLocalDocsParams): Promise<CloudantV1.Response<CloudantV1.AllDocsResult>>;
2469
- /**
2470
- * Multi-query the list of all local documents in a database.
2471
- *
2472
- * Runs multiple view queries of all local documents in this database. This operation enables you to request multiple
2473
- * queries in a single request, in place of multiple `POST /{db}/_local_docs` requests.
2474
- *
2475
- * @param {Object} params - The parameters to send to the service.
2476
- * @param {string} params.db - Path parameter to specify the database name.
2477
- * @param {AllDocsQuery[]} params.queries - An array of query objects with fields for the parameters of each
2478
- * individual view query to be executed. The field names and their meaning are the same as the query parameters of a
2479
- * regular `/_all_docs` request.
2480
- * @param {string} [params.accept] - The type of the response: application/json or application/octet-stream.
2481
- * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
2482
- * @returns {Promise<CloudantV1.Response<CloudantV1.AllDocsQueriesResult>>}
2483
- */
2484
- postLocalDocsQueries(params: CloudantV1.PostLocalDocsQueriesParams): Promise<CloudantV1.Response<CloudantV1.AllDocsQueriesResult>>;
2485
2415
  /*************************
2486
2416
  * databaseDetails
2487
2417
  ************************/
@@ -2538,6 +2468,16 @@ declare class CloudantV1 extends CloudantBaseService {
2538
2468
  /*************************
2539
2469
  * monitoring
2540
2470
  ************************/
2471
+ /**
2472
+ * Retrieve HTTP headers about whether the server is up.
2473
+ *
2474
+ * Retrieves the HTTP headers about whether the server is up.
2475
+ *
2476
+ * @param {Object} [params] - The parameters to send to the service.
2477
+ * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
2478
+ * @returns {Promise<CloudantV1.Response<CloudantV1.Empty>>}
2479
+ */
2480
+ headUpInformation(params?: CloudantV1.HeadUpInformationParams): Promise<CloudantV1.Response<CloudantV1.Empty>>;
2541
2481
  /**
2542
2482
  * Retrieve list of running tasks.
2543
2483
  *
@@ -2564,25 +2504,25 @@ declare class CloudantV1 extends CloudantBaseService {
2564
2504
  /**
2565
2505
  * Retrieve Activity Tracker events information.
2566
2506
  *
2567
- * Check event types that are being sent to IBM Cloud Activity Tracker with LogDNA for the IBM Cloudant instance.
2507
+ * Check event types that are being sent to IBM Cloud Activity Tracker for the IBM Cloudant instance.
2568
2508
  *
2569
2509
  * @param {Object} [params] - The parameters to send to the service.
2570
2510
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
2571
- * @returns {Promise<CloudantV1.Response<CloudantV1.ActivityTrackerEventsConfiguration>>}
2511
+ * @returns {Promise<CloudantV1.Response<CloudantV1.ActivityTrackerEvents>>}
2572
2512
  */
2573
- getActivityTrackerEventsInformation(params?: CloudantV1.GetActivityTrackerEventsInformationParams): Promise<CloudantV1.Response<CloudantV1.ActivityTrackerEventsConfiguration>>;
2513
+ getActivityTrackerEvents(params?: CloudantV1.GetActivityTrackerEventsParams): Promise<CloudantV1.Response<CloudantV1.ActivityTrackerEvents>>;
2574
2514
  /**
2575
2515
  * Modify Activity Tracker events configuration.
2576
2516
  *
2577
- * Configure event types that are being sent to IBM Cloud Activity Tracker with LogDNA for the IBM Cloudant instance.
2517
+ * Configure event types that are being sent to IBM Cloud Activity Tracker for the IBM Cloudant instance.
2578
2518
  *
2579
2519
  * @param {Object} params - The parameters to send to the service.
2580
- * @param {string[]} params.types - An array of event types that are being sent to IBM Cloud Activity Tracker with
2581
- * LogDNA for the IBM Cloudant instance. "management" is a required element of this array.
2520
+ * @param {string[]} params.types - An array of event types that are being sent to IBM Cloud Activity Tracker for the
2521
+ * IBM Cloudant instance. "management" is a required element of this array.
2582
2522
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
2583
2523
  * @returns {Promise<CloudantV1.Response<CloudantV1.Ok>>}
2584
2524
  */
2585
- postActivityTrackerEventsConfiguration(params: CloudantV1.PostActivityTrackerEventsConfigurationParams): Promise<CloudantV1.Response<CloudantV1.Ok>>;
2525
+ postActivityTrackerEvents(params: CloudantV1.PostActivityTrackerEventsParams): Promise<CloudantV1.Response<CloudantV1.Ok>>;
2586
2526
  /**
2587
2527
  * Retrieve the current provisioned throughput capacity consumption.
2588
2528
  *
@@ -2637,68 +2577,45 @@ declare namespace CloudantV1 {
2637
2577
  interface GetCapacityThroughputInformationParams {
2638
2578
  headers?: OutgoingHttpHeaders;
2639
2579
  }
2640
- /** Parameters for the `putCapacityThroughputInformation` operation. */
2641
- interface PutCapacityThroughputInformationParams {
2580
+ /** Parameters for the `putCapacityThroughputConfiguration` operation. */
2581
+ interface PutCapacityThroughputConfigurationParams {
2642
2582
  /** A number of blocks of throughput units. A block consists of 100 reads/sec, 50 writes/sec, and 5 global
2643
2583
  * queries/sec of provisioned throughput capacity.
2644
2584
  */
2645
- blocks: number;
2646
- headers?: OutgoingHttpHeaders;
2647
- }
2648
- /** Parameters for the `headDatabase` operation. */
2649
- interface HeadDatabaseParams {
2650
- /** Path parameter to specify the database name. */
2651
- db: string;
2652
- headers?: OutgoingHttpHeaders;
2653
- }
2654
- /** Parameters for the `getAllDbs` operation. */
2655
- interface GetAllDbsParams {
2656
- /** Query parameter to specify whether to return the documents in descending by key order. */
2657
- descending?: boolean;
2658
- /** Query parameter to specify to stop returning records when the specified key is reached. String
2659
- * representation of any JSON type that matches the key type emitted by the view function.
2660
- */
2661
- endkey?: string;
2662
- /** Query parameter to specify the number of returned documents to limit the result to. */
2663
- limit?: number;
2664
- /** Query parameter to specify the number of records before starting to return the results. */
2665
- skip?: number;
2666
- /** Query parameter to specify to start returning records from the specified key. String representation of any
2667
- * JSON type that matches the key type emitted by the view function.
2668
- */
2669
- startkey?: string;
2670
- headers?: OutgoingHttpHeaders;
2671
- }
2672
- /** Parameters for the `postDbsInfo` operation. */
2673
- interface PostDbsInfoParams {
2674
- /** A list of database names. */
2675
- keys: string[];
2676
- headers?: OutgoingHttpHeaders;
2677
- }
2678
- /** Parameters for the `deleteDatabase` operation. */
2679
- interface DeleteDatabaseParams {
2680
- /** Path parameter to specify the database name. */
2681
- db: string;
2682
- headers?: OutgoingHttpHeaders;
2683
- }
2684
- /** Parameters for the `getDatabaseInformation` operation. */
2685
- interface GetDatabaseInformationParams {
2686
- /** Path parameter to specify the database name. */
2687
- db: string;
2585
+ blocks: number;
2688
2586
  headers?: OutgoingHttpHeaders;
2689
2587
  }
2690
- /** Parameters for the `putDatabase` operation. */
2691
- interface PutDatabaseParams {
2692
- /** Path parameter to specify the database name. */
2693
- db: string;
2694
- /** Query parameter to specify whether to enable database partitions when creating a database. */
2695
- partitioned?: boolean;
2696
- /** The number of shards in the database. Each shard is a partition of the hash value range. Default is 8,
2697
- * unless overridden in the `cluster config`.
2588
+ /** Parameters for the `getDbUpdates` operation. */
2589
+ interface GetDbUpdatesParams {
2590
+ /** Query parameter to specify the changes feed type. */
2591
+ feed?: GetDbUpdatesConstants.Feed | string;
2592
+ /** Query parameter to specify the period in milliseconds after which an empty line is sent in the results. Only
2593
+ * applicable for longpoll, continuous, and eventsource feeds. Overrides any timeout to keep the feed alive
2594
+ * indefinitely. May also be `true` to use default value of 60000.
2698
2595
  */
2699
- q?: number;
2596
+ heartbeat?: number;
2597
+ /** Query parameter to specify the maximum period in milliseconds to wait for a change before the response is
2598
+ * sent, even if there are no results. Only applicable for `longpoll` or `continuous` feeds. Default value is
2599
+ * specified by `httpd/changes_timeout` configuration option. Note that `60000` value is also the default maximum
2600
+ * timeout to prevent undetected dead connections.
2601
+ */
2602
+ timeout?: number;
2603
+ /** Query parameter to specify to start the results from the change immediately after the given update sequence.
2604
+ * Can be a valid update sequence or `now` value. Default is `0` i.e. all changes.
2605
+ */
2606
+ since?: string;
2700
2607
  headers?: OutgoingHttpHeaders;
2701
2608
  }
2609
+ /** Constants for the `getDbUpdates` operation. */
2610
+ namespace GetDbUpdatesConstants {
2611
+ /** Query parameter to specify the changes feed type. */
2612
+ enum Feed {
2613
+ CONTINUOUS = "continuous",
2614
+ EVENTSOURCE = "eventsource",
2615
+ LONGPOLL = "longpoll",
2616
+ NORMAL = "normal"
2617
+ }
2618
+ }
2702
2619
  /** Parameters for the `postChanges` operation. */
2703
2620
  interface PostChangesParams {
2704
2621
  /** Path parameter to specify the database name. */
@@ -2925,6 +2842,60 @@ declare namespace CloudantV1 {
2925
2842
  NORMAL = "normal"
2926
2843
  }
2927
2844
  }
2845
+ /** Parameters for the `headDatabase` operation. */
2846
+ interface HeadDatabaseParams {
2847
+ /** Path parameter to specify the database name. */
2848
+ db: string;
2849
+ headers?: OutgoingHttpHeaders;
2850
+ }
2851
+ /** Parameters for the `getAllDbs` operation. */
2852
+ interface GetAllDbsParams {
2853
+ /** Query parameter to specify whether to return the documents in descending by key order. */
2854
+ descending?: boolean;
2855
+ /** Query parameter to specify to stop returning records when the specified key is reached. String
2856
+ * representation of any JSON type that matches the key type emitted by the view function.
2857
+ */
2858
+ endkey?: string;
2859
+ /** Query parameter to specify the number of returned documents to limit the result to. */
2860
+ limit?: number;
2861
+ /** Query parameter to specify the number of records before starting to return the results. */
2862
+ skip?: number;
2863
+ /** Query parameter to specify to start returning records from the specified key. String representation of any
2864
+ * JSON type that matches the key type emitted by the view function.
2865
+ */
2866
+ startkey?: string;
2867
+ headers?: OutgoingHttpHeaders;
2868
+ }
2869
+ /** Parameters for the `postDbsInfo` operation. */
2870
+ interface PostDbsInfoParams {
2871
+ /** A list of database names. */
2872
+ keys: string[];
2873
+ headers?: OutgoingHttpHeaders;
2874
+ }
2875
+ /** Parameters for the `deleteDatabase` operation. */
2876
+ interface DeleteDatabaseParams {
2877
+ /** Path parameter to specify the database name. */
2878
+ db: string;
2879
+ headers?: OutgoingHttpHeaders;
2880
+ }
2881
+ /** Parameters for the `getDatabaseInformation` operation. */
2882
+ interface GetDatabaseInformationParams {
2883
+ /** Path parameter to specify the database name. */
2884
+ db: string;
2885
+ headers?: OutgoingHttpHeaders;
2886
+ }
2887
+ /** Parameters for the `putDatabase` operation. */
2888
+ interface PutDatabaseParams {
2889
+ /** Path parameter to specify the database name. */
2890
+ db: string;
2891
+ /** Query parameter to specify whether to enable database partitions when creating a database. */
2892
+ partitioned?: boolean;
2893
+ /** The number of shards in the database. Each shard is a partition of the hash value range. Default is 8,
2894
+ * unless overridden in the `cluster config`.
2895
+ */
2896
+ q?: number;
2897
+ headers?: OutgoingHttpHeaders;
2898
+ }
2928
2899
  /** Parameters for the `headDocument` operation. */
2929
2900
  interface HeadDocumentParams {
2930
2901
  /** Path parameter to specify the database name. */
@@ -3190,10 +3161,6 @@ declare namespace CloudantV1 {
3190
3161
  * attachment is compressed.
3191
3162
  */
3192
3163
  attEncodingInfo?: boolean;
3193
- /** Query parameter to specify whether to include attachments only since specified revisions. Note this does not
3194
- * include the attachments for the specified revisions.
3195
- */
3196
- attsSince?: string[];
3197
3164
  /** Query parameter to specify whether to include a list of conflicted revisions in the `_conflicts` property of
3198
3165
  * the returned document. Ignored if `include_docs` isn't `true`.
3199
3166
  */
@@ -3212,10 +3179,6 @@ declare namespace CloudantV1 {
3212
3179
  * the conflicts, deleted_conflicts and open_revs query parameters.
3213
3180
  */
3214
3181
  meta?: boolean;
3215
- /** Query parameter to specify leaf revisions to retrieve. Additionally, it accepts a value of `all` to return
3216
- * all leaf revisions.
3217
- */
3218
- openRevs?: string[];
3219
3182
  /** Query parameter to specify a document revision. */
3220
3183
  rev?: string;
3221
3184
  /** Query parameter to specify whether to include a list of all known document revisions. */
@@ -3238,10 +3201,6 @@ declare namespace CloudantV1 {
3238
3201
  * attachment is compressed.
3239
3202
  */
3240
3203
  attEncodingInfo?: boolean;
3241
- /** Query parameter to specify whether to include attachments only since specified revisions. Note this does not
3242
- * include the attachments for the specified revisions.
3243
- */
3244
- attsSince?: string[];
3245
3204
  /** Query parameter to specify whether to include a list of conflicted revisions in the `_conflicts` property of
3246
3205
  * the returned document. Ignored if `include_docs` isn't `true`.
3247
3206
  */
@@ -3260,10 +3219,6 @@ declare namespace CloudantV1 {
3260
3219
  * the conflicts, deleted_conflicts and open_revs query parameters.
3261
3220
  */
3262
3221
  meta?: boolean;
3263
- /** Query parameter to specify leaf revisions to retrieve. Additionally, it accepts a value of `all` to return
3264
- * all leaf revisions.
3265
- */
3266
- openRevs?: string[];
3267
3222
  /** Query parameter to specify a document revision. */
3268
3223
  rev?: string;
3269
3224
  /** Query parameter to specify whether to include a list of all known document revisions. */
@@ -3286,10 +3241,6 @@ declare namespace CloudantV1 {
3286
3241
  * attachment is compressed.
3287
3242
  */
3288
3243
  attEncodingInfo?: boolean;
3289
- /** Query parameter to specify whether to include attachments only since specified revisions. Note this does not
3290
- * include the attachments for the specified revisions.
3291
- */
3292
- attsSince?: string[];
3293
3244
  /** Query parameter to specify whether to include a list of conflicted revisions in the `_conflicts` property of
3294
3245
  * the returned document. Ignored if `include_docs` isn't `true`.
3295
3246
  */
@@ -3308,10 +3259,6 @@ declare namespace CloudantV1 {
3308
3259
  * the conflicts, deleted_conflicts and open_revs query parameters.
3309
3260
  */
3310
3261
  meta?: boolean;
3311
- /** Query parameter to specify leaf revisions to retrieve. Additionally, it accepts a value of `all` to return
3312
- * all leaf revisions.
3313
- */
3314
- openRevs?: string[];
3315
3262
  /** Query parameter to specify a document revision. */
3316
3263
  rev?: string;
3317
3264
  /** Query parameter to specify whether to include a list of all known document revisions. */
@@ -3334,10 +3281,6 @@ declare namespace CloudantV1 {
3334
3281
  * attachment is compressed.
3335
3282
  */
3336
3283
  attEncodingInfo?: boolean;
3337
- /** Query parameter to specify whether to include attachments only since specified revisions. Note this does not
3338
- * include the attachments for the specified revisions.
3339
- */
3340
- attsSince?: string[];
3341
3284
  /** Query parameter to specify whether to include a list of conflicted revisions in the `_conflicts` property of
3342
3285
  * the returned document. Ignored if `include_docs` isn't `true`.
3343
3286
  */
@@ -3356,10 +3299,6 @@ declare namespace CloudantV1 {
3356
3299
  * the conflicts, deleted_conflicts and open_revs query parameters.
3357
3300
  */
3358
3301
  meta?: boolean;
3359
- /** Query parameter to specify leaf revisions to retrieve. Additionally, it accepts a value of `all` to return
3360
- * all leaf revisions.
3361
- */
3362
- openRevs?: string[];
3363
3302
  /** Query parameter to specify a document revision. */
3364
3303
  rev?: string;
3365
3304
  /** Query parameter to specify whether to include a list of all known document revisions. */
@@ -3460,10 +3399,6 @@ declare namespace CloudantV1 {
3460
3399
  * attachment is compressed.
3461
3400
  */
3462
3401
  attEncodingInfo?: boolean;
3463
- /** Query parameter to specify whether to include attachments only since specified revisions. Note this does not
3464
- * include the attachments for the specified revisions.
3465
- */
3466
- attsSince?: string[];
3467
3402
  /** Query parameter to specify whether to include a list of conflicted revisions in the `_conflicts` property of
3468
3403
  * the returned document. Ignored if `include_docs` isn't `true`.
3469
3404
  */
@@ -3482,10 +3417,6 @@ declare namespace CloudantV1 {
3482
3417
  * the conflicts, deleted_conflicts and open_revs query parameters.
3483
3418
  */
3484
3419
  meta?: boolean;
3485
- /** Query parameter to specify leaf revisions to retrieve. Additionally, it accepts a value of `all` to return
3486
- * all leaf revisions.
3487
- */
3488
- openRevs?: string[];
3489
3420
  /** Query parameter to specify a document revision. */
3490
3421
  rev?: string;
3491
3422
  /** Query parameter to specify whether to include a list of all known document revisions. */
@@ -4554,31 +4485,6 @@ declare namespace CloudantV1 {
4554
4485
  def?: IndexDefinition;
4555
4486
  /** name. */
4556
4487
  name?: string;
4557
- /** JSON object describing criteria used to select documents. The selector specifies fields in the document, and
4558
- * provides an expression to evaluate with the field content or other data.
4559
- *
4560
- * The selector object must:
4561
- * * Be structured as valid JSON.
4562
- * * Contain a valid query expression.
4563
- *
4564
- * Using a selector is significantly more efficient than using a JavaScript filter function, and is the recommended
4565
- * option if filtering on document attributes only.
4566
- *
4567
- * Elementary selector syntax requires you to specify one or more fields, and the corresponding values required for
4568
- * those fields. You can create more complex selector expressions by combining operators.
4569
- *
4570
- * Operators are identified by the use of a dollar sign `$` prefix in the name field.
4571
- *
4572
- * There are two core types of operators in the selector syntax:
4573
- * * Combination operators: applied at the topmost level of selection. They are used to combine selectors. In
4574
- * addition to the common boolean operators (`$and`, `$or`, `$not`, `$nor`) there are three combination operators:
4575
- * `$all`, `$elemMatch`, and `$allMatch`. A combination operator takes a single argument. The argument is either
4576
- * another selector, or an array of selectors.
4577
- * * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
4578
- * instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the
4579
- * supplied argument.
4580
- */
4581
- partialFilterSelector?: JsonObject;
4582
4488
  /** The default value is `true` for databases with `partitioned: true` and `false` otherwise. For databases with
4583
4489
  * `partitioned: false` if this option is specified the value must be `false`.
4584
4490
  */
@@ -4621,15 +4527,15 @@ declare namespace CloudantV1 {
4621
4527
  }
4622
4528
  /** Parameters for the `postSearchAnalyze` operation. */
4623
4529
  interface PostSearchAnalyzeParams {
4624
- /** analyzer. */
4530
+ /** The analyzer type that is being used at the tokenization. */
4625
4531
  analyzer: PostSearchAnalyzeConstants.Analyzer | string;
4626
- /** text. */
4532
+ /** The text to tokenize with the analyzer. */
4627
4533
  text: string;
4628
4534
  headers?: OutgoingHttpHeaders;
4629
4535
  }
4630
4536
  /** Constants for the `postSearchAnalyze` operation. */
4631
4537
  namespace PostSearchAnalyzeConstants {
4632
- /** analyzer. */
4538
+ /** The analyzer type that is being used at the tokenization. */
4633
4539
  enum Analyzer {
4634
4540
  ARABIC = "arabic",
4635
4541
  ARMENIAN = "armenian",
@@ -5055,37 +4961,6 @@ declare namespace CloudantV1 {
5055
4961
  index: string;
5056
4962
  headers?: OutgoingHttpHeaders;
5057
4963
  }
5058
- /** Parameters for the `getDbUpdates` operation. */
5059
- interface GetDbUpdatesParams {
5060
- /** Query parameter to specify the changes feed type. */
5061
- feed?: GetDbUpdatesConstants.Feed | string;
5062
- /** Query parameter to specify the period in milliseconds after which an empty line is sent in the results. Only
5063
- * applicable for longpoll, continuous, and eventsource feeds. Overrides any timeout to keep the feed alive
5064
- * indefinitely. May also be `true` to use default value of 60000.
5065
- */
5066
- heartbeat?: number;
5067
- /** Query parameter to specify the maximum period in milliseconds to wait for a change before the response is
5068
- * sent, even if there are no results. Only applicable for `longpoll` or `continuous` feeds. Default value is
5069
- * specified by `httpd/changes_timeout` configuration option. Note that `60000` value is also the default maximum
5070
- * timeout to prevent undetected dead connections.
5071
- */
5072
- timeout?: number;
5073
- /** Query parameter to specify to start the results from the change immediately after the given update sequence.
5074
- * Can be a valid update sequence or `now` value. Default is `0` i.e. all changes.
5075
- */
5076
- since?: string;
5077
- headers?: OutgoingHttpHeaders;
5078
- }
5079
- /** Constants for the `getDbUpdates` operation. */
5080
- namespace GetDbUpdatesConstants {
5081
- /** Query parameter to specify the changes feed type. */
5082
- enum Feed {
5083
- CONTINUOUS = "continuous",
5084
- EVENTSOURCE = "eventsource",
5085
- LONGPOLL = "longpoll",
5086
- NORMAL = "normal"
5087
- }
5088
- }
5089
4964
  /** Parameters for the `headReplicationDocument` operation. */
5090
4965
  interface HeadReplicationDocumentParams {
5091
4966
  /** Path parameter to specify the document ID. */
@@ -5094,6 +4969,12 @@ declare namespace CloudantV1 {
5094
4969
  ifNoneMatch?: string;
5095
4970
  headers?: OutgoingHttpHeaders;
5096
4971
  }
4972
+ /** Parameters for the `headSchedulerDocument` operation. */
4973
+ interface HeadSchedulerDocumentParams {
4974
+ /** Path parameter to specify the document ID. */
4975
+ docId: string;
4976
+ headers?: OutgoingHttpHeaders;
4977
+ }
5097
4978
  /** Parameters for the `headSchedulerJob` operation. */
5098
4979
  interface HeadSchedulerJobParams {
5099
4980
  /** Path parameter to specify the replication job id. */
@@ -5139,10 +5020,6 @@ declare namespace CloudantV1 {
5139
5020
  * attachment is compressed.
5140
5021
  */
5141
5022
  attEncodingInfo?: boolean;
5142
- /** Query parameter to specify whether to include attachments only since specified revisions. Note this does not
5143
- * include the attachments for the specified revisions.
5144
- */
5145
- attsSince?: string[];
5146
5023
  /** Query parameter to specify whether to include a list of conflicted revisions in the `_conflicts` property of
5147
5024
  * the returned document. Ignored if `include_docs` isn't `true`.
5148
5025
  */
@@ -5161,10 +5038,6 @@ declare namespace CloudantV1 {
5161
5038
  * the conflicts, deleted_conflicts and open_revs query parameters.
5162
5039
  */
5163
5040
  meta?: boolean;
5164
- /** Query parameter to specify leaf revisions to retrieve. Additionally, it accepts a value of `all` to return
5165
- * all leaf revisions.
5166
- */
5167
- openRevs?: string[];
5168
5041
  /** Query parameter to specify a document revision. */
5169
5042
  rev?: string;
5170
5043
  /** Query parameter to specify whether to include a list of all known document revisions. */
@@ -5416,6 +5289,16 @@ declare namespace CloudantV1 {
5416
5289
  rev?: string;
5417
5290
  headers?: OutgoingHttpHeaders;
5418
5291
  }
5292
+ /** Parameters for the `headLocalDocument` operation. */
5293
+ interface HeadLocalDocumentParams {
5294
+ /** Path parameter to specify the database name. */
5295
+ db: string;
5296
+ /** Path parameter to specify the document ID. */
5297
+ docId: string;
5298
+ /** Header parameter to specify a double quoted document revision token for cache control. */
5299
+ ifNoneMatch?: string;
5300
+ headers?: OutgoingHttpHeaders;
5301
+ }
5419
5302
  /** Parameters for the `deleteLocalDocument` operation. */
5420
5303
  interface DeleteLocalDocumentParams {
5421
5304
  /** Path parameter to specify the database name. */
@@ -5451,10 +5334,6 @@ declare namespace CloudantV1 {
5451
5334
  * attachment is compressed.
5452
5335
  */
5453
5336
  attEncodingInfo?: boolean;
5454
- /** Query parameter to specify whether to include attachments only since specified revisions. Note this does not
5455
- * include the attachments for the specified revisions.
5456
- */
5457
- attsSince?: string[];
5458
5337
  /** Query parameter to specify whether to include the last update sequence for the document. */
5459
5338
  localSeq?: boolean;
5460
5339
  headers?: OutgoingHttpHeaders;
@@ -5499,74 +5378,6 @@ declare namespace CloudantV1 {
5499
5378
  OK = "ok"
5500
5379
  }
5501
5380
  }
5502
- /** Parameters for the `postLocalDocs` operation. */
5503
- interface PostLocalDocsParams {
5504
- /** Path parameter to specify the database name. */
5505
- db: string;
5506
- /** Parameter to specify whether to include the encoding information in attachment stubs if the particular
5507
- * attachment is compressed.
5508
- */
5509
- attEncodingInfo?: boolean;
5510
- /** Parameter to specify whether to include attachments bodies in a response. */
5511
- attachments?: boolean;
5512
- /** Parameter to specify whether to include a list of conflicted revisions in the `_conflicts` property of the
5513
- * returned document. Ignored if `include_docs` isn't `true`.
5514
- */
5515
- conflicts?: boolean;
5516
- /** Parameter to specify whether to return the documents in descending by key order. */
5517
- descending?: boolean;
5518
- /** Parameter to specify whether to include the full content of the documents in the response. */
5519
- includeDocs?: boolean;
5520
- /** Parameter to specify whether the specified end key should be included in the result. */
5521
- inclusiveEnd?: boolean;
5522
- /** Parameter to specify the number of returned documents to limit the result to. */
5523
- limit?: number;
5524
- /** Parameter to specify the number of records before starting to return the results. */
5525
- skip?: number;
5526
- /** Parameter to specify whether to include in the response an update_seq value indicating the sequence id of
5527
- * the database the view reflects.
5528
- */
5529
- updateSeq?: boolean;
5530
- /** Schema for a document ID. */
5531
- endkey?: string;
5532
- /** Schema for a document ID. */
5533
- key?: string;
5534
- /** Schema for a list of document IDs. */
5535
- keys?: string[];
5536
- /** Schema for a document ID. */
5537
- startkey?: string;
5538
- /** The type of the response: application/json or application/octet-stream. */
5539
- accept?: PostLocalDocsConstants.Accept | string;
5540
- headers?: OutgoingHttpHeaders;
5541
- }
5542
- /** Constants for the `postLocalDocs` operation. */
5543
- namespace PostLocalDocsConstants {
5544
- /** The type of the response: application/json or application/octet-stream. */
5545
- enum Accept {
5546
- APPLICATION_JSON = "application/json",
5547
- APPLICATION_OCTET_STREAM = "application/octet-stream"
5548
- }
5549
- }
5550
- /** Parameters for the `postLocalDocsQueries` operation. */
5551
- interface PostLocalDocsQueriesParams {
5552
- /** Path parameter to specify the database name. */
5553
- db: string;
5554
- /** An array of query objects with fields for the parameters of each individual view query to be executed. The
5555
- * field names and their meaning are the same as the query parameters of a regular `/_all_docs` request.
5556
- */
5557
- queries: AllDocsQuery[];
5558
- /** The type of the response: application/json or application/octet-stream. */
5559
- accept?: PostLocalDocsQueriesConstants.Accept | string;
5560
- headers?: OutgoingHttpHeaders;
5561
- }
5562
- /** Constants for the `postLocalDocsQueries` operation. */
5563
- namespace PostLocalDocsQueriesConstants {
5564
- /** The type of the response: application/json or application/octet-stream. */
5565
- enum Accept {
5566
- APPLICATION_JSON = "application/json",
5567
- APPLICATION_OCTET_STREAM = "application/octet-stream"
5568
- }
5569
- }
5570
5381
  /** Parameters for the `postMissingRevs` operation. */
5571
5382
  interface PostMissingRevsParams {
5572
5383
  /** Path parameter to specify the database name. */
@@ -5597,6 +5408,10 @@ declare namespace CloudantV1 {
5597
5408
  docId: string;
5598
5409
  headers?: OutgoingHttpHeaders;
5599
5410
  }
5411
+ /** Parameters for the `headUpInformation` operation. */
5412
+ interface HeadUpInformationParams {
5413
+ headers?: OutgoingHttpHeaders;
5414
+ }
5600
5415
  /** Parameters for the `getActiveTasks` operation. */
5601
5416
  interface GetActiveTasksParams {
5602
5417
  headers?: OutgoingHttpHeaders;
@@ -5605,20 +5420,20 @@ declare namespace CloudantV1 {
5605
5420
  interface GetUpInformationParams {
5606
5421
  headers?: OutgoingHttpHeaders;
5607
5422
  }
5608
- /** Parameters for the `getActivityTrackerEventsInformation` operation. */
5609
- interface GetActivityTrackerEventsInformationParams {
5423
+ /** Parameters for the `getActivityTrackerEvents` operation. */
5424
+ interface GetActivityTrackerEventsParams {
5610
5425
  headers?: OutgoingHttpHeaders;
5611
5426
  }
5612
- /** Parameters for the `postActivityTrackerEventsConfiguration` operation. */
5613
- interface PostActivityTrackerEventsConfigurationParams {
5614
- /** An array of event types that are being sent to IBM Cloud Activity Tracker with LogDNA for the IBM Cloudant
5615
- * instance. "management" is a required element of this array.
5427
+ /** Parameters for the `postActivityTrackerEvents` operation. */
5428
+ interface PostActivityTrackerEventsParams {
5429
+ /** An array of event types that are being sent to IBM Cloud Activity Tracker for the IBM Cloudant instance.
5430
+ * "management" is a required element of this array.
5616
5431
  */
5617
- types: PostActivityTrackerEventsConfigurationConstants.Types | string[];
5432
+ types: PostActivityTrackerEventsConstants.Types | string[];
5618
5433
  headers?: OutgoingHttpHeaders;
5619
5434
  }
5620
- /** Constants for the `postActivityTrackerEventsConfiguration` operation. */
5621
- namespace PostActivityTrackerEventsConfigurationConstants {
5435
+ /** Constants for the `postActivityTrackerEvents` operation. */
5436
+ namespace PostActivityTrackerEventsConstants {
5622
5437
  /** Types */
5623
5438
  enum Types {
5624
5439
  MANAGEMENT = "management",
@@ -5657,10 +5472,10 @@ declare namespace CloudantV1 {
5657
5472
  /** Schema for a Unix epoch timestamp. */
5658
5473
  updated_on: number;
5659
5474
  }
5660
- /** Schema for Activity Tracker events configuration. */
5661
- interface ActivityTrackerEventsConfiguration {
5662
- /** An array of event types that are being sent to IBM Cloud Activity Tracker with LogDNA for the IBM Cloudant
5663
- * instance. "management" is a required element of this array.
5475
+ /** Schema for Activity Tracker events. */
5476
+ interface ActivityTrackerEvents {
5477
+ /** An array of event types that are being sent to IBM Cloud Activity Tracker for the IBM Cloudant instance.
5478
+ * "management" is a required element of this array.
5664
5479
  */
5665
5480
  types: string[];
5666
5481
  }
@@ -5793,8 +5608,6 @@ declare namespace CloudantV1 {
5793
5608
  atts_since?: string[];
5794
5609
  /** Schema for a document ID. */
5795
5610
  id: string;
5796
- /** Retrieves documents of specified leaf revisions. */
5797
- open_revs?: string[];
5798
5611
  /** Schema for a document revision identifier. */
5799
5612
  rev?: string;
5800
5613
  }
@@ -6287,6 +6100,31 @@ declare namespace CloudantV1 {
6287
6100
  * of the extra processing that is needed to determine and store the arrays lengths.
6288
6101
  */
6289
6102
  index_array_lengths?: boolean;
6103
+ /** JSON object describing criteria used to select documents. The selector specifies fields in the document, and
6104
+ * provides an expression to evaluate with the field content or other data.
6105
+ *
6106
+ * The selector object must:
6107
+ * * Be structured as valid JSON.
6108
+ * * Contain a valid query expression.
6109
+ *
6110
+ * Using a selector is significantly more efficient than using a JavaScript filter function, and is the recommended
6111
+ * option if filtering on document attributes only.
6112
+ *
6113
+ * Elementary selector syntax requires you to specify one or more fields, and the corresponding values required for
6114
+ * those fields. You can create more complex selector expressions by combining operators.
6115
+ *
6116
+ * Operators are identified by the use of a dollar sign `$` prefix in the name field.
6117
+ *
6118
+ * There are two core types of operators in the selector syntax:
6119
+ * * Combination operators: applied at the topmost level of selection. They are used to combine selectors. In
6120
+ * addition to the common boolean operators (`$and`, `$or`, `$not`, `$nor`) there are three combination operators:
6121
+ * `$all`, `$elemMatch`, and `$allMatch`. A combination operator takes a single argument. The argument is either
6122
+ * another selector, or an array of selectors.
6123
+ * * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
6124
+ * instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the
6125
+ * supplied argument.
6126
+ */
6127
+ partial_filter_selector?: JsonObject;
6290
6128
  }
6291
6129
  /** Schema for indexed fields for use with declarative JSON query. */
6292
6130
  interface IndexField {