@ibm-cloud/cloudant 0.9.0 → 0.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cloudant/v1.d.ts CHANGED
@@ -168,10 +168,14 @@ declare class CloudantV1 extends CloudantBaseService {
168
168
  *
169
169
  * ### Note
170
170
  *
171
- * Before using the changes feed we recommend reading the
171
+ * Before using the changes feed read the
172
172
  * [FAQs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-faq-using-changes-feed) to understand the limitations and
173
173
  * appropriate use cases.
174
174
  *
175
+ * If you need to pass parameters to dynamically change the filtered content use the `_selector` filter type for
176
+ * better performance and compatibility. The SDKs have full support for change requests using selector filters, but
177
+ * don't support passing parameters to design document filters.
178
+ *
175
179
  * @param {Object} params - The parameters to send to the service.
176
180
  * @param {string} params.db - Path parameter to specify the database name.
177
181
  * @param {string[]} [params.docIds] - Schema for a list of document IDs.
@@ -215,19 +219,25 @@ declare class CloudantV1 extends CloudantBaseService {
215
219
  * @param {boolean} [params.descending] - Query parameter to specify whether to return the documents in descending by
216
220
  * key order.
217
221
  * @param {string} [params.feed] - Query parameter to specify the changes feed type.
218
- * @param {string} [params.filter] - Query parameter to specify a filter function from a design document that will
219
- * filter the changes stream emitting only filtered events. For example: `design_doc/filtername`.
220
- *
221
- * Additionally, some keywords are reserved for built-in filters:
222
+ * @param {string} [params.filter] - Query parameter to specify a filter to emit only specific events from the changes
223
+ * stream.
222
224
  *
225
+ * The built-in filter types are:
223
226
  * * `_design` - Returns only changes to design documents.
224
227
  * * `_doc_ids` - Returns changes for documents with an ID matching one specified in
225
- * `doc_ids` request body parameter.
228
+ * `doc_ids` request body parameter. (`POST` only)
226
229
  * * `_selector` - Returns changes for documents that match the `selector`
227
230
  * request body parameter. The selector syntax is the same as used for
228
- * `_find`.
231
+ * `_find`. (`POST` only)
229
232
  * * `_view` - Returns changes for documents that match an existing map
230
233
  * function in the view specified by the query parameter `view`.
234
+ *
235
+ * Additionally, the value can be the name of a JS filter function from a design document. For example:
236
+ * `design_doc/filtername`.
237
+ *
238
+ * **Note:** For better performance use the built-in `_selector`, `_design` or `_doc_ids` filters rather than JS based
239
+ * `_view` or design document filters. If you need to pass values to change the filtered content use the `_selector`
240
+ * filter type.
231
241
  * @param {number} [params.heartbeat] - Query parameter to specify the period in milliseconds after which an empty
232
242
  * line is sent in the results. Off by default and only applicable for
233
243
  * `continuous` and `eventsource` feeds. Overrides any timeout to keep the feed alive indefinitely. May also be `true`
@@ -272,10 +282,14 @@ declare class CloudantV1 extends CloudantBaseService {
272
282
  *
273
283
  * ### Note
274
284
  *
275
- * Before using the changes feed we recommend reading the
285
+ * Before using the changes feed read the
276
286
  * [FAQs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-faq-using-changes-feed) to understand the limitations and
277
287
  * appropriate use cases.
278
288
  *
289
+ * If you need to pass parameters to dynamically change the filtered content use the `_selector` filter type for
290
+ * better performance and compatibility. The SDKs have full support for change requests using selector filters, but
291
+ * don't support passing parameters to design document filters.
292
+ *
279
293
  * @param {Object} params - The parameters to send to the service.
280
294
  * @param {string} params.db - Path parameter to specify the database name.
281
295
  * @param {string[]} [params.docIds] - Schema for a list of document IDs.
@@ -319,19 +333,25 @@ declare class CloudantV1 extends CloudantBaseService {
319
333
  * @param {boolean} [params.descending] - Query parameter to specify whether to return the documents in descending by
320
334
  * key order.
321
335
  * @param {string} [params.feed] - Query parameter to specify the changes feed type.
322
- * @param {string} [params.filter] - Query parameter to specify a filter function from a design document that will
323
- * filter the changes stream emitting only filtered events. For example: `design_doc/filtername`.
324
- *
325
- * Additionally, some keywords are reserved for built-in filters:
336
+ * @param {string} [params.filter] - Query parameter to specify a filter to emit only specific events from the changes
337
+ * stream.
326
338
  *
339
+ * The built-in filter types are:
327
340
  * * `_design` - Returns only changes to design documents.
328
341
  * * `_doc_ids` - Returns changes for documents with an ID matching one specified in
329
- * `doc_ids` request body parameter.
342
+ * `doc_ids` request body parameter. (`POST` only)
330
343
  * * `_selector` - Returns changes for documents that match the `selector`
331
344
  * request body parameter. The selector syntax is the same as used for
332
- * `_find`.
345
+ * `_find`. (`POST` only)
333
346
  * * `_view` - Returns changes for documents that match an existing map
334
347
  * function in the view specified by the query parameter `view`.
348
+ *
349
+ * Additionally, the value can be the name of a JS filter function from a design document. For example:
350
+ * `design_doc/filtername`.
351
+ *
352
+ * **Note:** For better performance use the built-in `_selector`, `_design` or `_doc_ids` filters rather than JS based
353
+ * `_view` or design document filters. If you need to pass values to change the filtered content use the `_selector`
354
+ * filter type.
335
355
  * @param {number} [params.heartbeat] - Query parameter to specify the period in milliseconds after which an empty
336
356
  * line is sent in the results. Off by default and only applicable for
337
357
  * `continuous` and `eventsource` feeds. Overrides any timeout to keep the feed alive indefinitely. May also be `true`
@@ -386,6 +406,8 @@ declare class CloudantV1 extends CloudantBaseService {
386
406
  /**
387
407
  * Query a list of all database names in the instance.
388
408
  *
409
+ * Query to retrieve a list of database names from the instance.
410
+ *
389
411
  * @param {Object} [params] - The parameters to send to the service.
390
412
  * @param {boolean} [params.descending] - Query parameter to specify whether to return the documents in descending by
391
413
  * key order.
@@ -430,6 +452,8 @@ declare class CloudantV1 extends CloudantBaseService {
430
452
  /**
431
453
  * Retrieve information about a database.
432
454
  *
455
+ * Retrieve detailed information about the database.
456
+ *
433
457
  * @param {Object} params - The parameters to send to the service.
434
458
  * @param {string} params.db - Path parameter to specify the database name.
435
459
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
@@ -439,6 +463,8 @@ declare class CloudantV1 extends CloudantBaseService {
439
463
  /**
440
464
  * Create a database.
441
465
  *
466
+ * Create a new database with the requested properties.
467
+ *
442
468
  * @param {Object} params - The parameters to send to the service.
443
469
  * @param {string} params.db - Path parameter to specify the database name.
444
470
  * @param {boolean} [params.partitioned] - Query parameter to specify whether to enable database partitions when
@@ -465,8 +491,7 @@ declare class CloudantV1 extends CloudantBaseService {
465
491
  * @param {Object} params - The parameters to send to the service.
466
492
  * @param {string} params.db - Path parameter to specify the database name.
467
493
  * @param {string} params.docId - Path parameter to specify the document ID.
468
- * @param {string} [params.ifNoneMatch] - Header parameter to specify a double quoted document revision token for
469
- * cache control.
494
+ * @param {string} [params.ifNoneMatch] - Header parameter for a conditional HTTP request not matching an ETag.
470
495
  * @param {boolean} [params.latest] - Query parameter to specify whether to force retrieving latest leaf revision, no
471
496
  * matter what rev was requested.
472
497
  * @param {string} [params.rev] - Query parameter to specify a document revision.
@@ -699,8 +724,7 @@ declare class CloudantV1 extends CloudantBaseService {
699
724
  * @param {Object} params - The parameters to send to the service.
700
725
  * @param {string} params.db - Path parameter to specify the database name.
701
726
  * @param {string} params.docId - Path parameter to specify the document ID.
702
- * @param {string} [params.ifMatch] - Header parameter to specify the document revision. Alternative to rev query
703
- * parameter.
727
+ * @param {string} [params.ifMatch] - Header parameter for a conditional HTTP request matching an ETag.
704
728
  * @param {string} [params.batch] - Query parameter to specify whether to store in batch mode. The server will respond
705
729
  * with a HTTP 202 Accepted response code immediately.
706
730
  * @param {string} [params.rev] - Query parameter to specify a document revision.
@@ -717,8 +741,7 @@ declare class CloudantV1 extends CloudantBaseService {
717
741
  * @param {Object} params - The parameters to send to the service.
718
742
  * @param {string} params.db - Path parameter to specify the database name.
719
743
  * @param {string} params.docId - Path parameter to specify the document ID.
720
- * @param {string} [params.ifNoneMatch] - Header parameter to specify a double quoted document revision token for
721
- * cache control.
744
+ * @param {string} [params.ifNoneMatch] - Header parameter for a conditional HTTP request not matching an ETag.
722
745
  * @param {boolean} [params.attachments] - Query parameter to specify whether to include attachments bodies in a
723
746
  * response.
724
747
  * @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
@@ -751,8 +774,7 @@ declare class CloudantV1 extends CloudantBaseService {
751
774
  * @param {Object} params - The parameters to send to the service.
752
775
  * @param {string} params.db - Path parameter to specify the database name.
753
776
  * @param {string} params.docId - Path parameter to specify the document ID.
754
- * @param {string} [params.ifNoneMatch] - Header parameter to specify a double quoted document revision token for
755
- * cache control.
777
+ * @param {string} [params.ifNoneMatch] - Header parameter for a conditional HTTP request not matching an ETag.
756
778
  * @param {boolean} [params.attachments] - Query parameter to specify whether to include attachments bodies in a
757
779
  * response.
758
780
  * @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
@@ -785,8 +807,7 @@ declare class CloudantV1 extends CloudantBaseService {
785
807
  * @param {Object} params - The parameters to send to the service.
786
808
  * @param {string} params.db - Path parameter to specify the database name.
787
809
  * @param {string} params.docId - Path parameter to specify the document ID.
788
- * @param {string} [params.ifNoneMatch] - Header parameter to specify a double quoted document revision token for
789
- * cache control.
810
+ * @param {string} [params.ifNoneMatch] - Header parameter for a conditional HTTP request not matching an ETag.
790
811
  * @param {boolean} [params.attachments] - Query parameter to specify whether to include attachments bodies in a
791
812
  * response.
792
813
  * @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
@@ -819,8 +840,7 @@ declare class CloudantV1 extends CloudantBaseService {
819
840
  * @param {Object} params - The parameters to send to the service.
820
841
  * @param {string} params.db - Path parameter to specify the database name.
821
842
  * @param {string} params.docId - Path parameter to specify the document ID.
822
- * @param {string} [params.ifNoneMatch] - Header parameter to specify a double quoted document revision token for
823
- * cache control.
843
+ * @param {string} [params.ifNoneMatch] - Header parameter for a conditional HTTP request not matching an ETag.
824
844
  * @param {boolean} [params.attachments] - Query parameter to specify whether to include attachments bodies in a
825
845
  * response.
826
846
  * @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
@@ -858,8 +878,7 @@ declare class CloudantV1 extends CloudantBaseService {
858
878
  * @param {string} params.docId - Path parameter to specify the document ID.
859
879
  * @param {Document | NodeJS.ReadableStream | Buffer} params.document - HTTP request body for Document operations.
860
880
  * @param {string} [params.contentType] - The type of the input.
861
- * @param {string} [params.ifMatch] - Header parameter to specify the document revision. Alternative to rev query
862
- * parameter.
881
+ * @param {string} [params.ifMatch] - Header parameter for a conditional HTTP request matching an ETag.
863
882
  * @param {string} [params.batch] - Query parameter to specify whether to store in batch mode. The server will respond
864
883
  * with a HTTP 202 Accepted response code immediately.
865
884
  * @param {boolean} [params.newEdits] - Query parameter to specify whether to prevent insertion of conflicting
@@ -886,8 +905,7 @@ declare class CloudantV1 extends CloudantBaseService {
886
905
  * @param {string} params.db - Path parameter to specify the database name.
887
906
  * @param {string} params.ddoc - Path parameter to specify the design document name. The design document name is the
888
907
  * design document ID excluding the `_design/` prefix.
889
- * @param {string} [params.ifNoneMatch] - Header parameter to specify a double quoted document revision token for
890
- * cache control.
908
+ * @param {string} [params.ifNoneMatch] - Header parameter for a conditional HTTP request not matching an ETag.
891
909
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
892
910
  * @returns {Promise<CloudantV1.Response<CloudantV1.EmptyObject>>}
893
911
  */
@@ -903,8 +921,7 @@ declare class CloudantV1 extends CloudantBaseService {
903
921
  * @param {string} params.db - Path parameter to specify the database name.
904
922
  * @param {string} params.ddoc - Path parameter to specify the design document name. The design document name is the
905
923
  * design document ID excluding the `_design/` prefix.
906
- * @param {string} [params.ifMatch] - Header parameter to specify the document revision. Alternative to rev query
907
- * parameter.
924
+ * @param {string} [params.ifMatch] - Header parameter for a conditional HTTP request matching an ETag.
908
925
  * @param {string} [params.batch] - Query parameter to specify whether to store in batch mode. The server will respond
909
926
  * with a HTTP 202 Accepted response code immediately.
910
927
  * @param {string} [params.rev] - Query parameter to specify a document revision.
@@ -922,8 +939,7 @@ declare class CloudantV1 extends CloudantBaseService {
922
939
  * @param {string} params.db - Path parameter to specify the database name.
923
940
  * @param {string} params.ddoc - Path parameter to specify the design document name. The design document name is the
924
941
  * design document ID excluding the `_design/` prefix.
925
- * @param {string} [params.ifNoneMatch] - Header parameter to specify a double quoted document revision token for
926
- * cache control.
942
+ * @param {string} [params.ifNoneMatch] - Header parameter for a conditional HTTP request not matching an ETag.
927
943
  * @param {boolean} [params.attachments] - Query parameter to specify whether to include attachments bodies in a
928
944
  * response.
929
945
  * @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
@@ -957,8 +973,7 @@ declare class CloudantV1 extends CloudantBaseService {
957
973
  * @param {string} params.ddoc - Path parameter to specify the design document name. The design document name is the
958
974
  * design document ID excluding the `_design/` prefix.
959
975
  * @param {DesignDocument} params.designDocument - HTTP request body for DesignDocument operations.
960
- * @param {string} [params.ifMatch] - Header parameter to specify the document revision. Alternative to rev query
961
- * parameter.
976
+ * @param {string} [params.ifMatch] - Header parameter for a conditional HTTP request matching an ETag.
962
977
  * @param {string} [params.batch] - Query parameter to specify whether to store in batch mode. The server will respond
963
978
  * with a HTTP 202 Accepted response code immediately.
964
979
  * @param {boolean} [params.newEdits] - Query parameter to specify whether to prevent insertion of conflicting
@@ -1012,7 +1027,6 @@ declare class CloudantV1 extends CloudantBaseService {
1012
1027
  * @param {string} [params.key] - Schema for a document ID.
1013
1028
  * @param {string[]} [params.keys] - Schema for a list of document IDs.
1014
1029
  * @param {string} [params.startKey] - Schema for a document ID.
1015
- * @param {string} [params.accept] - The type of the response: application/json or application/octet-stream.
1016
1030
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
1017
1031
  * @returns {Promise<CloudantV1.Response<CloudantV1.AllDocsResult>>}
1018
1032
  */
@@ -1525,8 +1539,12 @@ declare class CloudantV1 extends CloudantBaseService {
1525
1539
  * @param {boolean} [params.stable] - Whether or not the view results should be returned from a "stable" set of
1526
1540
  * shards.
1527
1541
  * @param {string} [params.update] - Whether to update the index prior to returning the result.
1528
- * @param {string[]} [params.useIndex] - Use this option to identify a specific index for query to run against, rather
1529
- * than by using the IBM Cloudant Query algorithm to find the best index.
1542
+ * @param {string[]} [params.useIndex] - Use this option to identify a specific index to answer the query, rather than
1543
+ * letting the IBM Cloudant query planner choose an index. Specified as a two element array of design document id
1544
+ * followed by index name, for example `["my_design_doc", "my_index"]`.
1545
+ *
1546
+ * It’s recommended to specify indexes explicitly in your queries to prevent existing queries being affected by new
1547
+ * indexes that might get added later.
1530
1548
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
1531
1549
  * @returns {Promise<CloudantV1.Response<CloudantV1.ExplainResult>>}
1532
1550
  */
@@ -1595,8 +1613,12 @@ declare class CloudantV1 extends CloudantBaseService {
1595
1613
  * @param {boolean} [params.stable] - Whether or not the view results should be returned from a "stable" set of
1596
1614
  * shards.
1597
1615
  * @param {string} [params.update] - Whether to update the index prior to returning the result.
1598
- * @param {string[]} [params.useIndex] - Use this option to identify a specific index for query to run against, rather
1599
- * than by using the IBM Cloudant Query algorithm to find the best index.
1616
+ * @param {string[]} [params.useIndex] - Use this option to identify a specific index to answer the query, rather than
1617
+ * letting the IBM Cloudant query planner choose an index. Specified as a two element array of design document id
1618
+ * followed by index name, for example `["my_design_doc", "my_index"]`.
1619
+ *
1620
+ * It’s recommended to specify indexes explicitly in your queries to prevent existing queries being affected by new
1621
+ * indexes that might get added later.
1600
1622
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
1601
1623
  * @returns {Promise<CloudantV1.Response<CloudantV1.FindResult>>}
1602
1624
  */
@@ -1665,8 +1687,12 @@ declare class CloudantV1 extends CloudantBaseService {
1665
1687
  * @param {boolean} [params.stable] - Whether or not the view results should be returned from a "stable" set of
1666
1688
  * shards.
1667
1689
  * @param {string} [params.update] - Whether to update the index prior to returning the result.
1668
- * @param {string[]} [params.useIndex] - Use this option to identify a specific index for query to run against, rather
1669
- * than by using the IBM Cloudant Query algorithm to find the best index.
1690
+ * @param {string[]} [params.useIndex] - Use this option to identify a specific index to answer the query, rather than
1691
+ * letting the IBM Cloudant query planner choose an index. Specified as a two element array of design document id
1692
+ * followed by index name, for example `["my_design_doc", "my_index"]`.
1693
+ *
1694
+ * It’s recommended to specify indexes explicitly in your queries to prevent existing queries being affected by new
1695
+ * indexes that might get added later.
1670
1696
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
1671
1697
  * @returns {Promise<CloudantV1.Response<NodeJS.ReadableStream>>}
1672
1698
  */
@@ -1732,8 +1758,12 @@ declare class CloudantV1 extends CloudantBaseService {
1732
1758
  * @param {boolean} [params.stable] - Whether or not the view results should be returned from a "stable" set of
1733
1759
  * shards.
1734
1760
  * @param {string} [params.update] - Whether to update the index prior to returning the result.
1735
- * @param {string[]} [params.useIndex] - Use this option to identify a specific index for query to run against, rather
1736
- * than by using the IBM Cloudant Query algorithm to find the best index.
1761
+ * @param {string[]} [params.useIndex] - Use this option to identify a specific index to answer the query, rather than
1762
+ * letting the IBM Cloudant query planner choose an index. Specified as a two element array of design document id
1763
+ * followed by index name, for example `["my_design_doc", "my_index"]`.
1764
+ *
1765
+ * It’s recommended to specify indexes explicitly in your queries to prevent existing queries being affected by new
1766
+ * indexes that might get added later.
1737
1767
  * @param {number} [params.r] - The read quorum that is needed for the result. The value defaults to 1, in which case
1738
1768
  * the document that was found in the index is returned. If set to a higher value, each document is read from at least
1739
1769
  * that many replicas before it is returned in the results. The request will take more time than using only the
@@ -1805,8 +1835,12 @@ declare class CloudantV1 extends CloudantBaseService {
1805
1835
  * @param {boolean} [params.stable] - Whether or not the view results should be returned from a "stable" set of
1806
1836
  * shards.
1807
1837
  * @param {string} [params.update] - Whether to update the index prior to returning the result.
1808
- * @param {string[]} [params.useIndex] - Use this option to identify a specific index for query to run against, rather
1809
- * than by using the IBM Cloudant Query algorithm to find the best index.
1838
+ * @param {string[]} [params.useIndex] - Use this option to identify a specific index to answer the query, rather than
1839
+ * letting the IBM Cloudant query planner choose an index. Specified as a two element array of design document id
1840
+ * followed by index name, for example `["my_design_doc", "my_index"]`.
1841
+ *
1842
+ * It’s recommended to specify indexes explicitly in your queries to prevent existing queries being affected by new
1843
+ * indexes that might get added later.
1810
1844
  * @param {number} [params.r] - The read quorum that is needed for the result. The value defaults to 1, in which case
1811
1845
  * the document that was found in the index is returned. If set to a higher value, each document is read from at least
1812
1846
  * that many replicas before it is returned in the results. The request will take more time than using only the
@@ -1878,8 +1912,12 @@ declare class CloudantV1 extends CloudantBaseService {
1878
1912
  * @param {boolean} [params.stable] - Whether or not the view results should be returned from a "stable" set of
1879
1913
  * shards.
1880
1914
  * @param {string} [params.update] - Whether to update the index prior to returning the result.
1881
- * @param {string[]} [params.useIndex] - Use this option to identify a specific index for query to run against, rather
1882
- * than by using the IBM Cloudant Query algorithm to find the best index.
1915
+ * @param {string[]} [params.useIndex] - Use this option to identify a specific index to answer the query, rather than
1916
+ * letting the IBM Cloudant query planner choose an index. Specified as a two element array of design document id
1917
+ * followed by index name, for example `["my_design_doc", "my_index"]`.
1918
+ *
1919
+ * It’s recommended to specify indexes explicitly in your queries to prevent existing queries being affected by new
1920
+ * indexes that might get added later.
1883
1921
  * @param {number} [params.r] - The read quorum that is needed for the result. The value defaults to 1, in which case
1884
1922
  * the document that was found in the index is returned. If set to a higher value, each document is read from at least
1885
1923
  * that many replicas before it is returned in the results. The request will take more time than using only the
@@ -1925,6 +1963,8 @@ declare class CloudantV1 extends CloudantBaseService {
1925
1963
  /**
1926
1964
  * Delete an index.
1927
1965
  *
1966
+ * Delete the index functions from the design document and index files on the server.
1967
+ *
1928
1968
  * @param {Object} params - The parameters to send to the service.
1929
1969
  * @param {string} params.db - Path parameter to specify the database name.
1930
1970
  * @param {string} params.ddoc - Path parameter to specify the design document name. The design document name is the
@@ -2099,8 +2139,7 @@ declare class CloudantV1 extends CloudantBaseService {
2099
2139
  *
2100
2140
  * @param {Object} params - The parameters to send to the service.
2101
2141
  * @param {string} params.docId - Path parameter to specify the document ID.
2102
- * @param {string} [params.ifNoneMatch] - Header parameter to specify a double quoted document revision token for
2103
- * cache control.
2142
+ * @param {string} [params.ifNoneMatch] - Header parameter for a conditional HTTP request not matching an ETag.
2104
2143
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
2105
2144
  * @returns {Promise<CloudantV1.Response<CloudantV1.EmptyObject>>}
2106
2145
  */
@@ -2137,8 +2176,7 @@ declare class CloudantV1 extends CloudantBaseService {
2137
2176
  *
2138
2177
  * @param {Object} params - The parameters to send to the service.
2139
2178
  * @param {string} params.docId - Path parameter to specify the document ID.
2140
- * @param {string} [params.ifMatch] - Header parameter to specify the document revision. Alternative to rev query
2141
- * parameter.
2179
+ * @param {string} [params.ifMatch] - Header parameter for a conditional HTTP request matching an ETag.
2142
2180
  * @param {string} [params.batch] - Query parameter to specify whether to store in batch mode. The server will respond
2143
2181
  * with a HTTP 202 Accepted response code immediately.
2144
2182
  * @param {string} [params.rev] - Query parameter to specify a document revision.
@@ -2154,8 +2192,7 @@ declare class CloudantV1 extends CloudantBaseService {
2154
2192
  *
2155
2193
  * @param {Object} params - The parameters to send to the service.
2156
2194
  * @param {string} params.docId - Path parameter to specify the document ID.
2157
- * @param {string} [params.ifNoneMatch] - Header parameter to specify a double quoted document revision token for
2158
- * cache control.
2195
+ * @param {string} [params.ifNoneMatch] - Header parameter for a conditional HTTP request not matching an ETag.
2159
2196
  * @param {boolean} [params.attachments] - Query parameter to specify whether to include attachments bodies in a
2160
2197
  * response.
2161
2198
  * @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
@@ -2188,8 +2225,7 @@ declare class CloudantV1 extends CloudantBaseService {
2188
2225
  * @param {Object} params - The parameters to send to the service.
2189
2226
  * @param {string} params.docId - Path parameter to specify the document ID.
2190
2227
  * @param {ReplicationDocument} params.replicationDocument - HTTP request body for replication operations.
2191
- * @param {string} [params.ifMatch] - Header parameter to specify the document revision. Alternative to rev query
2192
- * parameter.
2228
+ * @param {string} [params.ifMatch] - Header parameter for a conditional HTTP request matching an ETag.
2193
2229
  * @param {string} [params.batch] - Query parameter to specify whether to store in batch mode. The server will respond
2194
2230
  * with a HTTP 202 Accepted response code immediately.
2195
2231
  * @param {boolean} [params.newEdits] - Query parameter to specify whether to prevent insertion of conflicting
@@ -2388,10 +2424,8 @@ declare class CloudantV1 extends CloudantBaseService {
2388
2424
  * @param {string} params.db - Path parameter to specify the database name.
2389
2425
  * @param {string} params.docId - Path parameter to specify the document ID.
2390
2426
  * @param {string} params.attachmentName - Path parameter to specify the attachment name.
2391
- * @param {string} [params.ifMatch] - Header parameter to specify the document revision. Alternative to rev query
2392
- * parameter.
2393
- * @param {string} [params.ifNoneMatch] - Header parameter to specify a double quoted document revision token for
2394
- * cache control.
2427
+ * @param {string} [params.ifMatch] - Header parameter for a conditional HTTP request matching an ETag.
2428
+ * @param {string} [params.ifNoneMatch] - Header parameter for a conditional HTTP request not matching an ETag.
2395
2429
  * @param {string} [params.rev] - Query parameter to specify a document revision.
2396
2430
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
2397
2431
  * @returns {Promise<CloudantV1.Response<CloudantV1.EmptyObject>>}
@@ -2407,8 +2441,7 @@ declare class CloudantV1 extends CloudantBaseService {
2407
2441
  * @param {string} params.db - Path parameter to specify the database name.
2408
2442
  * @param {string} params.docId - Path parameter to specify the document ID.
2409
2443
  * @param {string} params.attachmentName - Path parameter to specify the attachment name.
2410
- * @param {string} [params.ifMatch] - Header parameter to specify the document revision. Alternative to rev query
2411
- * parameter.
2444
+ * @param {string} [params.ifMatch] - Header parameter for a conditional HTTP request matching an ETag.
2412
2445
  * @param {string} [params.rev] - Query parameter to specify a document revision.
2413
2446
  * @param {string} [params.batch] - Query parameter to specify whether to store in batch mode. The server will respond
2414
2447
  * with a HTTP 202 Accepted response code immediately.
@@ -2428,10 +2461,8 @@ declare class CloudantV1 extends CloudantBaseService {
2428
2461
  * @param {string} params.docId - Path parameter to specify the document ID.
2429
2462
  * @param {string} params.attachmentName - Path parameter to specify the attachment name.
2430
2463
  * @param {string} [params.accept] - The type of the response: or *_/_*.
2431
- * @param {string} [params.ifMatch] - Header parameter to specify the document revision. Alternative to rev query
2432
- * parameter.
2433
- * @param {string} [params.ifNoneMatch] - Header parameter to specify a double quoted document revision token for
2434
- * cache control.
2464
+ * @param {string} [params.ifMatch] - Header parameter for a conditional HTTP request matching an ETag.
2465
+ * @param {string} [params.ifNoneMatch] - Header parameter for a conditional HTTP request not matching an ETag.
2435
2466
  * @param {string} [params.range] - Header parameter to specify the byte range for a request. This allows the
2436
2467
  * implementation of resumable downloads and skippable streams. This is available for all attachments inside CouchDB.
2437
2468
  * @param {string} [params.rev] - Query parameter to specify a document revision.
@@ -2456,8 +2487,7 @@ declare class CloudantV1 extends CloudantBaseService {
2456
2487
  * @param {string} params.attachmentName - Path parameter to specify the attachment name.
2457
2488
  * @param {NodeJS.ReadableStream | Buffer} params.attachment - HTTP request body for attachment operations.
2458
2489
  * @param {string} params.contentType - Content-Type of the attachment.
2459
- * @param {string} [params.ifMatch] - Header parameter to specify the document revision. Alternative to rev query
2460
- * parameter.
2490
+ * @param {string} [params.ifMatch] - Header parameter for a conditional HTTP request matching an ETag.
2461
2491
  * @param {string} [params.rev] - Query parameter to specify a document revision.
2462
2492
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
2463
2493
  * @returns {Promise<CloudantV1.Response<CloudantV1.DocumentResult>>}
@@ -2475,8 +2505,7 @@ declare class CloudantV1 extends CloudantBaseService {
2475
2505
  * @param {Object} params - The parameters to send to the service.
2476
2506
  * @param {string} params.db - Path parameter to specify the database name.
2477
2507
  * @param {string} params.docId - Path parameter to specify the document ID.
2478
- * @param {string} [params.ifNoneMatch] - Header parameter to specify a double quoted document revision token for
2479
- * cache control.
2508
+ * @param {string} [params.ifNoneMatch] - Header parameter for a conditional HTTP request not matching an ETag.
2480
2509
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
2481
2510
  * @returns {Promise<CloudantV1.Response<CloudantV1.EmptyObject>>}
2482
2511
  */
@@ -2507,8 +2536,7 @@ declare class CloudantV1 extends CloudantBaseService {
2507
2536
  * @param {string} params.docId - Path parameter to specify the document ID.
2508
2537
  * @param {string} [params.accept] - The type of the response: application/json, multipart/mixed, multipart/related,
2509
2538
  * or application/octet-stream.
2510
- * @param {string} [params.ifNoneMatch] - Header parameter to specify a double quoted document revision token for
2511
- * cache control.
2539
+ * @param {string} [params.ifNoneMatch] - Header parameter for a conditional HTTP request not matching an ETag.
2512
2540
  * @param {boolean} [params.attachments] - Query parameter to specify whether to include attachments bodies in a
2513
2541
  * response.
2514
2542
  * @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
@@ -2802,19 +2830,24 @@ declare namespace CloudantV1 {
2802
2830
  descending?: boolean;
2803
2831
  /** Query parameter to specify the changes feed type. */
2804
2832
  feed?: PostChangesConstants.Feed | string;
2805
- /** Query parameter to specify a filter function from a design document that will filter the changes stream
2806
- * emitting only filtered events. For example: `design_doc/filtername`.
2807
- *
2808
- * Additionally, some keywords are reserved for built-in filters:
2833
+ /** Query parameter to specify a filter to emit only specific events from the changes stream.
2809
2834
  *
2835
+ * The built-in filter types are:
2810
2836
  * * `_design` - Returns only changes to design documents.
2811
2837
  * * `_doc_ids` - Returns changes for documents with an ID matching one specified in
2812
- * `doc_ids` request body parameter.
2838
+ * `doc_ids` request body parameter. (`POST` only)
2813
2839
  * * `_selector` - Returns changes for documents that match the `selector`
2814
2840
  * request body parameter. The selector syntax is the same as used for
2815
- * `_find`.
2841
+ * `_find`. (`POST` only)
2816
2842
  * * `_view` - Returns changes for documents that match an existing map
2817
2843
  * function in the view specified by the query parameter `view`.
2844
+ *
2845
+ * Additionally, the value can be the name of a JS filter function from a design document. For example:
2846
+ * `design_doc/filtername`.
2847
+ *
2848
+ * **Note:** For better performance use the built-in `_selector`, `_design` or `_doc_ids` filters rather than JS
2849
+ * based `_view` or design document filters. If you need to pass values to change the filtered content use the
2850
+ * `_selector` filter type.
2818
2851
  */
2819
2852
  filter?: string;
2820
2853
  /** Query parameter to specify the period in milliseconds after which an empty line is sent in the results. Off
@@ -2929,19 +2962,24 @@ declare namespace CloudantV1 {
2929
2962
  descending?: boolean;
2930
2963
  /** Query parameter to specify the changes feed type. */
2931
2964
  feed?: PostChangesAsStreamConstants.Feed | string;
2932
- /** Query parameter to specify a filter function from a design document that will filter the changes stream
2933
- * emitting only filtered events. For example: `design_doc/filtername`.
2934
- *
2935
- * Additionally, some keywords are reserved for built-in filters:
2965
+ /** Query parameter to specify a filter to emit only specific events from the changes stream.
2936
2966
  *
2967
+ * The built-in filter types are:
2937
2968
  * * `_design` - Returns only changes to design documents.
2938
2969
  * * `_doc_ids` - Returns changes for documents with an ID matching one specified in
2939
- * `doc_ids` request body parameter.
2970
+ * `doc_ids` request body parameter. (`POST` only)
2940
2971
  * * `_selector` - Returns changes for documents that match the `selector`
2941
2972
  * request body parameter. The selector syntax is the same as used for
2942
- * `_find`.
2973
+ * `_find`. (`POST` only)
2943
2974
  * * `_view` - Returns changes for documents that match an existing map
2944
2975
  * function in the view specified by the query parameter `view`.
2976
+ *
2977
+ * Additionally, the value can be the name of a JS filter function from a design document. For example:
2978
+ * `design_doc/filtername`.
2979
+ *
2980
+ * **Note:** For better performance use the built-in `_selector`, `_design` or `_doc_ids` filters rather than JS
2981
+ * based `_view` or design document filters. If you need to pass values to change the filtered content use the
2982
+ * `_selector` filter type.
2945
2983
  */
2946
2984
  filter?: string;
2947
2985
  /** Query parameter to specify the period in milliseconds after which an empty line is sent in the results. Off
@@ -3061,7 +3099,7 @@ declare namespace CloudantV1 {
3061
3099
  db: string;
3062
3100
  /** Path parameter to specify the document ID. */
3063
3101
  docId: string;
3064
- /** Header parameter to specify a double quoted document revision token for cache control. */
3102
+ /** Header parameter for a conditional HTTP request not matching an ETag. */
3065
3103
  ifNoneMatch?: string;
3066
3104
  /** Query parameter to specify whether to force retrieving latest leaf revision, no matter what rev was
3067
3105
  * requested.
@@ -3289,7 +3327,7 @@ declare namespace CloudantV1 {
3289
3327
  db: string;
3290
3328
  /** Path parameter to specify the document ID. */
3291
3329
  docId: string;
3292
- /** Header parameter to specify the document revision. Alternative to rev query parameter. */
3330
+ /** Header parameter for a conditional HTTP request matching an ETag. */
3293
3331
  ifMatch?: string;
3294
3332
  /** Query parameter to specify whether to store in batch mode. The server will respond with a HTTP 202 Accepted
3295
3333
  * response code immediately.
@@ -3312,7 +3350,7 @@ declare namespace CloudantV1 {
3312
3350
  db: string;
3313
3351
  /** Path parameter to specify the document ID. */
3314
3352
  docId: string;
3315
- /** Header parameter to specify a double quoted document revision token for cache control. */
3353
+ /** Header parameter for a conditional HTTP request not matching an ETag. */
3316
3354
  ifNoneMatch?: string;
3317
3355
  /** Query parameter to specify whether to include attachments bodies in a response. */
3318
3356
  attachments?: boolean;
@@ -3352,7 +3390,7 @@ declare namespace CloudantV1 {
3352
3390
  db: string;
3353
3391
  /** Path parameter to specify the document ID. */
3354
3392
  docId: string;
3355
- /** Header parameter to specify a double quoted document revision token for cache control. */
3393
+ /** Header parameter for a conditional HTTP request not matching an ETag. */
3356
3394
  ifNoneMatch?: string;
3357
3395
  /** Query parameter to specify whether to include attachments bodies in a response. */
3358
3396
  attachments?: boolean;
@@ -3392,7 +3430,7 @@ declare namespace CloudantV1 {
3392
3430
  db: string;
3393
3431
  /** Path parameter to specify the document ID. */
3394
3432
  docId: string;
3395
- /** Header parameter to specify a double quoted document revision token for cache control. */
3433
+ /** Header parameter for a conditional HTTP request not matching an ETag. */
3396
3434
  ifNoneMatch?: string;
3397
3435
  /** Query parameter to specify whether to include attachments bodies in a response. */
3398
3436
  attachments?: boolean;
@@ -3432,7 +3470,7 @@ declare namespace CloudantV1 {
3432
3470
  db: string;
3433
3471
  /** Path parameter to specify the document ID. */
3434
3472
  docId: string;
3435
- /** Header parameter to specify a double quoted document revision token for cache control. */
3473
+ /** Header parameter for a conditional HTTP request not matching an ETag. */
3436
3474
  ifNoneMatch?: string;
3437
3475
  /** Query parameter to specify whether to include attachments bodies in a response. */
3438
3476
  attachments?: boolean;
@@ -3476,7 +3514,7 @@ declare namespace CloudantV1 {
3476
3514
  document: Document | NodeJS.ReadableStream | Buffer;
3477
3515
  /** The type of the input. */
3478
3516
  contentType?: PutDocumentConstants.ContentType | string;
3479
- /** Header parameter to specify the document revision. Alternative to rev query parameter. */
3517
+ /** Header parameter for a conditional HTTP request matching an ETag. */
3480
3518
  ifMatch?: string;
3481
3519
  /** Query parameter to specify whether to store in batch mode. The server will respond with a HTTP 202 Accepted
3482
3520
  * response code immediately.
@@ -3513,7 +3551,7 @@ declare namespace CloudantV1 {
3513
3551
  * excluding the `_design/` prefix.
3514
3552
  */
3515
3553
  ddoc: string;
3516
- /** Header parameter to specify a double quoted document revision token for cache control. */
3554
+ /** Header parameter for a conditional HTTP request not matching an ETag. */
3517
3555
  ifNoneMatch?: string;
3518
3556
  headers?: OutgoingHttpHeaders;
3519
3557
  }
@@ -3525,7 +3563,7 @@ declare namespace CloudantV1 {
3525
3563
  * excluding the `_design/` prefix.
3526
3564
  */
3527
3565
  ddoc: string;
3528
- /** Header parameter to specify the document revision. Alternative to rev query parameter. */
3566
+ /** Header parameter for a conditional HTTP request matching an ETag. */
3529
3567
  ifMatch?: string;
3530
3568
  /** Query parameter to specify whether to store in batch mode. The server will respond with a HTTP 202 Accepted
3531
3569
  * response code immediately.
@@ -3550,7 +3588,7 @@ declare namespace CloudantV1 {
3550
3588
  * excluding the `_design/` prefix.
3551
3589
  */
3552
3590
  ddoc: string;
3553
- /** Header parameter to specify a double quoted document revision token for cache control. */
3591
+ /** Header parameter for a conditional HTTP request not matching an ETag. */
3554
3592
  ifNoneMatch?: string;
3555
3593
  /** Query parameter to specify whether to include attachments bodies in a response. */
3556
3594
  attachments?: boolean;
@@ -3594,7 +3632,7 @@ declare namespace CloudantV1 {
3594
3632
  ddoc: string;
3595
3633
  /** HTTP request body for DesignDocument operations. */
3596
3634
  designDocument: DesignDocument;
3597
- /** Header parameter to specify the document revision. Alternative to rev query parameter. */
3635
+ /** Header parameter for a conditional HTTP request matching an ETag. */
3598
3636
  ifMatch?: string;
3599
3637
  /** Query parameter to specify whether to store in batch mode. The server will respond with a HTTP 202 Accepted
3600
3638
  * response code immediately.
@@ -3662,18 +3700,8 @@ declare namespace CloudantV1 {
3662
3700
  keys?: string[];
3663
3701
  /** Schema for a document ID. */
3664
3702
  startKey?: string;
3665
- /** The type of the response: application/json or application/octet-stream. */
3666
- accept?: PostDesignDocsConstants.Accept | string;
3667
3703
  headers?: OutgoingHttpHeaders;
3668
3704
  }
3669
- /** Constants for the `postDesignDocs` operation. */
3670
- namespace PostDesignDocsConstants {
3671
- /** The type of the response: application/json or application/octet-stream. */
3672
- enum Accept {
3673
- APPLICATION_JSON = "application/json",
3674
- APPLICATION_OCTET_STREAM = "application/octet-stream"
3675
- }
3676
- }
3677
3705
  /** Parameters for the `postDesignDocsQueries` operation. */
3678
3706
  interface PostDesignDocsQueriesParams {
3679
3707
  /** Path parameter to specify the database name. */
@@ -4339,8 +4367,12 @@ declare namespace CloudantV1 {
4339
4367
  stable?: boolean;
4340
4368
  /** Whether to update the index prior to returning the result. */
4341
4369
  update?: PostPartitionExplainConstants.Update | string;
4342
- /** Use this option to identify a specific index for query to run against, rather than by using the IBM Cloudant
4343
- * Query algorithm to find the best index.
4370
+ /** Use this option to identify a specific index to answer the query, rather than letting the IBM Cloudant query
4371
+ * planner choose an index. Specified as a two element array of design document id followed by index name, for
4372
+ * example `["my_design_doc", "my_index"]`.
4373
+ *
4374
+ * It’s recommended to specify indexes explicitly in your queries to prevent existing queries being affected by new
4375
+ * indexes that might get added later.
4344
4376
  */
4345
4377
  useIndex?: string[];
4346
4378
  headers?: OutgoingHttpHeaders;
@@ -4428,8 +4460,12 @@ declare namespace CloudantV1 {
4428
4460
  stable?: boolean;
4429
4461
  /** Whether to update the index prior to returning the result. */
4430
4462
  update?: PostPartitionFindConstants.Update | string;
4431
- /** Use this option to identify a specific index for query to run against, rather than by using the IBM Cloudant
4432
- * Query algorithm to find the best index.
4463
+ /** Use this option to identify a specific index to answer the query, rather than letting the IBM Cloudant query
4464
+ * planner choose an index. Specified as a two element array of design document id followed by index name, for
4465
+ * example `["my_design_doc", "my_index"]`.
4466
+ *
4467
+ * It’s recommended to specify indexes explicitly in your queries to prevent existing queries being affected by new
4468
+ * indexes that might get added later.
4433
4469
  */
4434
4470
  useIndex?: string[];
4435
4471
  headers?: OutgoingHttpHeaders;
@@ -4517,8 +4553,12 @@ declare namespace CloudantV1 {
4517
4553
  stable?: boolean;
4518
4554
  /** Whether to update the index prior to returning the result. */
4519
4555
  update?: PostPartitionFindAsStreamConstants.Update | string;
4520
- /** Use this option to identify a specific index for query to run against, rather than by using the IBM Cloudant
4521
- * Query algorithm to find the best index.
4556
+ /** Use this option to identify a specific index to answer the query, rather than letting the IBM Cloudant query
4557
+ * planner choose an index. Specified as a two element array of design document id followed by index name, for
4558
+ * example `["my_design_doc", "my_index"]`.
4559
+ *
4560
+ * It’s recommended to specify indexes explicitly in your queries to prevent existing queries being affected by new
4561
+ * indexes that might get added later.
4522
4562
  */
4523
4563
  useIndex?: string[];
4524
4564
  headers?: OutgoingHttpHeaders;
@@ -4604,8 +4644,12 @@ declare namespace CloudantV1 {
4604
4644
  stable?: boolean;
4605
4645
  /** Whether to update the index prior to returning the result. */
4606
4646
  update?: PostExplainConstants.Update | string;
4607
- /** Use this option to identify a specific index for query to run against, rather than by using the IBM Cloudant
4608
- * Query algorithm to find the best index.
4647
+ /** Use this option to identify a specific index to answer the query, rather than letting the IBM Cloudant query
4648
+ * planner choose an index. Specified as a two element array of design document id followed by index name, for
4649
+ * example `["my_design_doc", "my_index"]`.
4650
+ *
4651
+ * It’s recommended to specify indexes explicitly in your queries to prevent existing queries being affected by new
4652
+ * indexes that might get added later.
4609
4653
  */
4610
4654
  useIndex?: string[];
4611
4655
  /** The read quorum that is needed for the result. The value defaults to 1, in which case the document that was
@@ -4697,8 +4741,12 @@ declare namespace CloudantV1 {
4697
4741
  stable?: boolean;
4698
4742
  /** Whether to update the index prior to returning the result. */
4699
4743
  update?: PostFindConstants.Update | string;
4700
- /** Use this option to identify a specific index for query to run against, rather than by using the IBM Cloudant
4701
- * Query algorithm to find the best index.
4744
+ /** Use this option to identify a specific index to answer the query, rather than letting the IBM Cloudant query
4745
+ * planner choose an index. Specified as a two element array of design document id followed by index name, for
4746
+ * example `["my_design_doc", "my_index"]`.
4747
+ *
4748
+ * It’s recommended to specify indexes explicitly in your queries to prevent existing queries being affected by new
4749
+ * indexes that might get added later.
4702
4750
  */
4703
4751
  useIndex?: string[];
4704
4752
  /** The read quorum that is needed for the result. The value defaults to 1, in which case the document that was
@@ -4790,8 +4838,12 @@ declare namespace CloudantV1 {
4790
4838
  stable?: boolean;
4791
4839
  /** Whether to update the index prior to returning the result. */
4792
4840
  update?: PostFindAsStreamConstants.Update | string;
4793
- /** Use this option to identify a specific index for query to run against, rather than by using the IBM Cloudant
4794
- * Query algorithm to find the best index.
4841
+ /** Use this option to identify a specific index to answer the query, rather than letting the IBM Cloudant query
4842
+ * planner choose an index. Specified as a two element array of design document id followed by index name, for
4843
+ * example `["my_design_doc", "my_index"]`.
4844
+ *
4845
+ * It’s recommended to specify indexes explicitly in your queries to prevent existing queries being affected by new
4846
+ * indexes that might get added later.
4795
4847
  */
4796
4848
  useIndex?: string[];
4797
4849
  /** The read quorum that is needed for the result. The value defaults to 1, in which case the document that was
@@ -5122,7 +5174,7 @@ declare namespace CloudantV1 {
5122
5174
  interface HeadReplicationDocumentParams {
5123
5175
  /** Path parameter to specify the document ID. */
5124
5176
  docId: string;
5125
- /** Header parameter to specify a double quoted document revision token for cache control. */
5177
+ /** Header parameter for a conditional HTTP request not matching an ETag. */
5126
5178
  ifNoneMatch?: string;
5127
5179
  headers?: OutgoingHttpHeaders;
5128
5180
  }
@@ -5142,7 +5194,7 @@ declare namespace CloudantV1 {
5142
5194
  interface DeleteReplicationDocumentParams {
5143
5195
  /** Path parameter to specify the document ID. */
5144
5196
  docId: string;
5145
- /** Header parameter to specify the document revision. Alternative to rev query parameter. */
5197
+ /** Header parameter for a conditional HTTP request matching an ETag. */
5146
5198
  ifMatch?: string;
5147
5199
  /** Query parameter to specify whether to store in batch mode. The server will respond with a HTTP 202 Accepted
5148
5200
  * response code immediately.
@@ -5163,7 +5215,7 @@ declare namespace CloudantV1 {
5163
5215
  interface GetReplicationDocumentParams {
5164
5216
  /** Path parameter to specify the document ID. */
5165
5217
  docId: string;
5166
- /** Header parameter to specify a double quoted document revision token for cache control. */
5218
+ /** Header parameter for a conditional HTTP request not matching an ETag. */
5167
5219
  ifNoneMatch?: string;
5168
5220
  /** Query parameter to specify whether to include attachments bodies in a response. */
5169
5221
  attachments?: boolean;
@@ -5203,7 +5255,7 @@ declare namespace CloudantV1 {
5203
5255
  docId: string;
5204
5256
  /** HTTP request body for replication operations. */
5205
5257
  replicationDocument: ReplicationDocument;
5206
- /** Header parameter to specify the document revision. Alternative to rev query parameter. */
5258
+ /** Header parameter for a conditional HTTP request matching an ETag. */
5207
5259
  ifMatch?: string;
5208
5260
  /** Query parameter to specify whether to store in batch mode. The server will respond with a HTTP 202 Accepted
5209
5261
  * response code immediately.
@@ -5367,9 +5419,9 @@ declare namespace CloudantV1 {
5367
5419
  docId: string;
5368
5420
  /** Path parameter to specify the attachment name. */
5369
5421
  attachmentName: string;
5370
- /** Header parameter to specify the document revision. Alternative to rev query parameter. */
5422
+ /** Header parameter for a conditional HTTP request matching an ETag. */
5371
5423
  ifMatch?: string;
5372
- /** Header parameter to specify a double quoted document revision token for cache control. */
5424
+ /** Header parameter for a conditional HTTP request not matching an ETag. */
5373
5425
  ifNoneMatch?: string;
5374
5426
  /** Query parameter to specify a document revision. */
5375
5427
  rev?: string;
@@ -5383,7 +5435,7 @@ declare namespace CloudantV1 {
5383
5435
  docId: string;
5384
5436
  /** Path parameter to specify the attachment name. */
5385
5437
  attachmentName: string;
5386
- /** Header parameter to specify the document revision. Alternative to rev query parameter. */
5438
+ /** Header parameter for a conditional HTTP request matching an ETag. */
5387
5439
  ifMatch?: string;
5388
5440
  /** Query parameter to specify a document revision. */
5389
5441
  rev?: string;
@@ -5410,9 +5462,9 @@ declare namespace CloudantV1 {
5410
5462
  attachmentName: string;
5411
5463
  /** The type of the response: or *_/_*. */
5412
5464
  accept?: string;
5413
- /** Header parameter to specify the document revision. Alternative to rev query parameter. */
5465
+ /** Header parameter for a conditional HTTP request matching an ETag. */
5414
5466
  ifMatch?: string;
5415
- /** Header parameter to specify a double quoted document revision token for cache control. */
5467
+ /** Header parameter for a conditional HTTP request not matching an ETag. */
5416
5468
  ifNoneMatch?: string;
5417
5469
  /** Header parameter to specify the byte range for a request. This allows the implementation of resumable
5418
5470
  * downloads and skippable streams. This is available for all attachments inside CouchDB.
@@ -5434,7 +5486,7 @@ declare namespace CloudantV1 {
5434
5486
  attachment: NodeJS.ReadableStream | Buffer;
5435
5487
  /** Content-Type of the attachment. */
5436
5488
  contentType: string;
5437
- /** Header parameter to specify the document revision. Alternative to rev query parameter. */
5489
+ /** Header parameter for a conditional HTTP request matching an ETag. */
5438
5490
  ifMatch?: string;
5439
5491
  /** Query parameter to specify a document revision. */
5440
5492
  rev?: string;
@@ -5446,7 +5498,7 @@ declare namespace CloudantV1 {
5446
5498
  db: string;
5447
5499
  /** Path parameter to specify the document ID. */
5448
5500
  docId: string;
5449
- /** Header parameter to specify a double quoted document revision token for cache control. */
5501
+ /** Header parameter for a conditional HTTP request not matching an ETag. */
5450
5502
  ifNoneMatch?: string;
5451
5503
  headers?: OutgoingHttpHeaders;
5452
5504
  }
@@ -5477,7 +5529,7 @@ declare namespace CloudantV1 {
5477
5529
  docId: string;
5478
5530
  /** The type of the response: application/json, multipart/mixed, multipart/related, or application/octet-stream. */
5479
5531
  accept?: GetLocalDocumentConstants.Accept | string;
5480
- /** Header parameter to specify a double quoted document revision token for cache control. */
5532
+ /** Header parameter for a conditional HTTP request not matching an ETag. */
5481
5533
  ifNoneMatch?: string;
5482
5534
  /** Query parameter to specify whether to include attachments bodies in a response. */
5483
5535
  attachments?: boolean;
@@ -5836,7 +5888,7 @@ declare namespace CloudantV1 {
5836
5888
  /** Schema for the result of an all documents operation. */
5837
5889
  class AllDocsResult {
5838
5890
  /** Number of total rows. */
5839
- totalRows: number | null;
5891
+ totalRows: number;
5840
5892
  /** List of doc results. */
5841
5893
  rows: DocsResultRow[];
5842
5894
  /** Current update sequence for the database. */
@@ -6316,6 +6368,10 @@ declare namespace CloudantV1 {
6316
6368
  docDelCount: number;
6317
6369
  /** The engine used for the database. */
6318
6370
  engine?: string;
6371
+ /** An opaque string to detect whether a database has been recreated. The field name is for compatibility with
6372
+ * old replicator versions. Do not use the value to infer timing infromation. Typically only used by replicators.
6373
+ */
6374
+ instanceStartTime: string;
6319
6375
  /** Schema for database properties. */
6320
6376
  props: DatabaseInformationProps;
6321
6377
  /** Schema for size information of content. */
@@ -6342,6 +6398,7 @@ declare namespace CloudantV1 {
6342
6398
  doc_count: number;
6343
6399
  doc_del_count: number;
6344
6400
  engine?: string;
6401
+ instance_start_time: string;
6345
6402
  props: DatabaseInformationProps.Transport;
6346
6403
  sizes: ContentInformationSizes.Transport;
6347
6404
  update_seq: string;
@@ -6455,7 +6512,7 @@ declare namespace CloudantV1 {
6455
6512
  _deleted?: boolean;
6456
6513
  /** Schema for a list of document revision identifiers. */
6457
6514
  _deleted_conflicts?: string[];
6458
- /** Document ID. */
6515
+ /** Schema for a design document ID. */
6459
6516
  _id?: string;
6460
6517
  /** Document's update sequence in current database. Available if requested with local_seq=true query parameter. */
6461
6518
  _local_seq?: string;
@@ -6670,6 +6727,8 @@ declare namespace CloudantV1 {
6670
6727
  error?: string;
6671
6728
  /** The reason the error occurred (if available). */
6672
6729
  reason?: string;
6730
+ /** An internal error reference (if available). */
6731
+ ref?: number;
6673
6732
  /** Schema for a document. */
6674
6733
  doc?: Document;
6675
6734
  /** id. */
@@ -6686,6 +6745,7 @@ declare namespace CloudantV1 {
6686
6745
  caused_by?: string;
6687
6746
  error?: string;
6688
6747
  reason?: string;
6748
+ ref?: number;
6689
6749
  doc?: Document.Transport;
6690
6750
  id?: string;
6691
6751
  key: string;
@@ -6719,7 +6779,7 @@ declare namespace CloudantV1 {
6719
6779
  _deleted?: boolean;
6720
6780
  /** Schema for a list of document revision identifiers. */
6721
6781
  _deleted_conflicts?: string[];
6722
- /** Document ID. */
6782
+ /** Schema for a document ID. */
6723
6783
  _id?: string;
6724
6784
  /** Document's update sequence in current database. Available if requested with local_seq=true query parameter. */
6725
6785
  _local_seq?: string;
@@ -6765,6 +6825,8 @@ declare namespace CloudantV1 {
6765
6825
  error?: string;
6766
6826
  /** The reason the error occurred (if available). */
6767
6827
  reason?: string;
6828
+ /** An internal error reference (if available). */
6829
+ ref?: number;
6768
6830
  static serialize(obj: any): DocumentResult.Transport;
6769
6831
  static deserialize(obj: any): DocumentResult;
6770
6832
  }
@@ -6776,6 +6838,7 @@ declare namespace CloudantV1 {
6776
6838
  caused_by?: string;
6777
6839
  error?: string;
6778
6840
  reason?: string;
6841
+ ref?: number;
6779
6842
  }
6780
6843
  }
6781
6844
  /** Schema for information about revisions and their status. */
@@ -6854,6 +6917,8 @@ declare namespace CloudantV1 {
6854
6917
  fields: string[];
6855
6918
  /** Schema for information about an index. */
6856
6919
  index: IndexInformation;
6920
+ /** Schema for the list of all the other indexes that were not chosen for serving the query. */
6921
+ indexCandidates?: IndexCandidate[];
6857
6922
  /** The used maximum number of results returned. */
6858
6923
  limit: number;
6859
6924
  /** Arguments passed to the underlying view. */
@@ -6861,7 +6926,7 @@ declare namespace CloudantV1 {
6861
6926
  /** Options used for the request. */
6862
6927
  opts: ExplainResultOpts;
6863
6928
  /** Schema for any JSON type. */
6864
- partitioned?: any | null;
6929
+ partitioned?: any;
6865
6930
  /** JSON object describing criteria used to select documents. The selector specifies fields in the document, and
6866
6931
  * provides an expression to evaluate with the field content or other data.
6867
6932
  *
@@ -6891,6 +6956,8 @@ declare namespace CloudantV1 {
6891
6956
  * [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
6892
6957
  */
6893
6958
  selector: JsonObject;
6959
+ /** Schema for a list of objects with extra information on the selector to provide insights about its usability. */
6960
+ selectorHints?: SelectorHint[];
6894
6961
  /** Skip parameter used. */
6895
6962
  skip: number;
6896
6963
  static serialize(obj: any): ExplainResult.Transport;
@@ -6902,22 +6969,24 @@ declare namespace CloudantV1 {
6902
6969
  dbname: string;
6903
6970
  fields: string[];
6904
6971
  index: IndexInformation.Transport;
6972
+ index_candidates?: IndexCandidate[];
6905
6973
  limit: number;
6906
6974
  mrargs?: ExplainResultMrArgs.Transport;
6907
6975
  opts: ExplainResultOpts.Transport;
6908
6976
  partitioned?: any;
6909
6977
  selector: JsonObject;
6978
+ selector_hints?: SelectorHint[];
6910
6979
  skip: number;
6911
6980
  }
6912
6981
  }
6913
6982
  /** Arguments passed to the underlying view. */
6914
6983
  class ExplainResultMrArgs {
6915
6984
  /** Schema for any JSON type. */
6916
- conflicts?: any | null;
6985
+ conflicts?: any;
6917
6986
  /** Direction parameter passed to the underlying view. */
6918
6987
  direction?: string;
6919
6988
  /** Schema for any JSON type. */
6920
- endKey?: any | null;
6989
+ endKey?: any;
6921
6990
  /** A parameter that specifies whether to include the full content of the documents in the response in the
6922
6991
  * underlying view.
6923
6992
  */
@@ -6933,9 +7002,9 @@ declare namespace CloudantV1 {
6933
7002
  */
6934
7003
  stable?: boolean;
6935
7004
  /** Schema for any JSON type. */
6936
- startKey?: any | null;
7005
+ startKey?: any;
6937
7006
  /** Schema for any JSON type. */
6938
- update?: any | null;
7007
+ update?: any;
6939
7008
  /** The type of the underlying view. */
6940
7009
  viewType?: ExplainResultMrArgs.Constants.ViewType | string;
6941
7010
  static serialize(obj: any): ExplainResultMrArgs.Transport;
@@ -6985,7 +7054,7 @@ declare namespace CloudantV1 {
6985
7054
  /** Skip used in the request query. */
6986
7055
  skip: number;
6987
7056
  /** Schema for any JSON type. */
6988
- sort: any | null;
7057
+ sort: any;
6989
7058
  /** Stable used in the request query. */
6990
7059
  stable: boolean;
6991
7060
  /** Deprecated: Stale used in the request query. */
@@ -7035,6 +7104,88 @@ declare namespace CloudantV1 {
7035
7104
  warning?: string;
7036
7105
  }
7037
7106
  }
7107
+ /** Schema for detailed explanation of why the specific index was excluded by the query planner. */
7108
+ class IndexAnalysis {
7109
+ /** When `true`, the query is answered using the index only and no documents are fetched. */
7110
+ covering: boolean | null;
7111
+ /** A position of the unused index based on its potential relevance to the query. */
7112
+ ranking: number;
7113
+ /** A list of reasons explaining why index was not chosen for the query. */
7114
+ reasons: IndexAnalysisExclusionReason[];
7115
+ /** Indicates whether an index can still be used for the query. */
7116
+ usable: boolean;
7117
+ static serialize(obj: any): IndexAnalysis.Transport;
7118
+ static deserialize(obj: any): IndexAnalysis;
7119
+ }
7120
+ namespace IndexAnalysis {
7121
+ interface Transport {
7122
+ covering: boolean;
7123
+ ranking: number;
7124
+ reasons: IndexAnalysisExclusionReason[];
7125
+ usable: boolean;
7126
+ }
7127
+ }
7128
+ /** A reason for index's exclusion. */
7129
+ class IndexAnalysisExclusionReason {
7130
+ /** A reason code for index's exclusion.
7131
+ *
7132
+ * The full list of possible reason codes is following:
7133
+ *
7134
+ * * alphabetically_comes_after: json
7135
+ * There is another suitable index whose name comes before that of this index.
7136
+ * * empty_selector: text
7137
+ * "text" indexes do not support queries with empty selectors.
7138
+ * * excluded_by_user: any use_index was used to manually specify the index.
7139
+ * * field_mismatch: any Fields in "selector" of the query do match with the fields available in the index.
7140
+ * * is_partial: json, text Partial indexes can be selected only manually.
7141
+ * * less_overlap: json There is a better match of fields available within the indexes for the query.
7142
+ * * needs_text_search: json The use of the $text operator requires a "text" index.
7143
+ * * scope_mismatch: json The scope of the query and the index is not the same.
7144
+ * * sort_order_mismatch: json, special Fields in "sort" of the query do not match with the fields available in the
7145
+ * index.
7146
+ * * too_many_fields: json The index has more fields than the chosen one.
7147
+ * * unfavored_type: any The type of the index is not preferred.
7148
+ */
7149
+ name?: IndexAnalysisExclusionReason.Constants.Name | string;
7150
+ static serialize(obj: any): IndexAnalysisExclusionReason.Transport;
7151
+ static deserialize(obj: any): IndexAnalysisExclusionReason;
7152
+ }
7153
+ namespace IndexAnalysisExclusionReason {
7154
+ namespace Constants {
7155
+ /** A reason code for index's exclusion. The full list of possible reason codes is following: * alphabetically_comes_after: json There is another suitable index whose name comes before that of this index. * empty_selector: text "text" indexes do not support queries with empty selectors. * excluded_by_user: any use_index was used to manually specify the index. * field_mismatch: any Fields in "selector" of the query do match with the fields available in the index. * is_partial: json, text Partial indexes can be selected only manually. * less_overlap: json There is a better match of fields available within the indexes for the query. * needs_text_search: json The use of the $text operator requires a "text" index. * scope_mismatch: json The scope of the query and the index is not the same. * sort_order_mismatch: json, special Fields in "sort" of the query do not match with the fields available in the index. * too_many_fields: json The index has more fields than the chosen one. * unfavored_type: any The type of the index is not preferred. */
7156
+ enum Name {
7157
+ ALPHABETICALLY_COMES_AFTER = "alphabetically_comes_after",
7158
+ EMPTY_SELECTOR = "empty_selector",
7159
+ EXCLUDED_BY_USER = "excluded_by_user",
7160
+ FIELD_MISMATCH = "field_mismatch",
7161
+ IS_PARTIAL = "is_partial",
7162
+ LESS_OVERLAP = "less_overlap",
7163
+ NEEDS_TEXT_SEARCH = "needs_text_search",
7164
+ SCOPE_MISMATCH = "scope_mismatch",
7165
+ SORT_ORDER_MISMATCH = "sort_order_mismatch",
7166
+ TOO_MANY_FIELDS = "too_many_fields",
7167
+ UNFAVORED_TYPE = "unfavored_type"
7168
+ }
7169
+ }
7170
+ interface Transport {
7171
+ name?: string;
7172
+ }
7173
+ }
7174
+ /** Schema for an index that was not chosen for serving the query with the reason for the exclusion. */
7175
+ class IndexCandidate {
7176
+ /** Schema for detailed explanation of why the specific index was excluded by the query planner. */
7177
+ analysis: IndexAnalysis;
7178
+ /** Schema for information about an index. */
7179
+ index: IndexInformation;
7180
+ static serialize(obj: any): IndexCandidate.Transport;
7181
+ static deserialize(obj: any): IndexCandidate;
7182
+ }
7183
+ namespace IndexCandidate {
7184
+ interface Transport {
7185
+ analysis: IndexAnalysis.Transport;
7186
+ index: IndexInformation.Transport;
7187
+ }
7188
+ }
7038
7189
  /** Schema for a `json` or `text` query index definition. Indexes of type `text` have additional configuration properties that do not apply to `json` indexes, these are: * `default_analyzer` - the default text analyzer to use * `default_field` - whether to index the text in all document fields and what analyzer to use for that purpose. */
7039
7190
  class IndexDefinition {
7040
7191
  /** Schema for a full text search analyzer. */
@@ -7205,7 +7356,7 @@ declare namespace CloudantV1 {
7205
7356
  /** Schema for information about the indexes in a database. */
7206
7357
  class IndexesInformation {
7207
7358
  /** Number of total rows. */
7208
- totalRows: number | null;
7359
+ totalRows: number;
7209
7360
  /** Indexes. */
7210
7361
  indexes: IndexInformation[];
7211
7362
  static serialize(obj: any): IndexesInformation.Transport;
@@ -7444,7 +7595,7 @@ declare namespace CloudantV1 {
7444
7595
  _deleted?: boolean;
7445
7596
  /** Schema for a list of document revision identifiers. */
7446
7597
  _deleted_conflicts?: string[];
7447
- /** Document ID. */
7598
+ /** Schema for a document ID. */
7448
7599
  _id?: string;
7449
7600
  /** Document's update sequence in current database. Available if requested with local_seq=true query parameter. */
7450
7601
  _local_seq?: string;
@@ -7636,7 +7787,7 @@ declare namespace CloudantV1 {
7636
7787
  /** Schema for a listing of replication scheduler documents. */
7637
7788
  class SchedulerDocsResult {
7638
7789
  /** Number of total rows. */
7639
- totalRows: number | null;
7790
+ totalRows: number;
7640
7791
  /** Array of replication scheduler doc objects. */
7641
7792
  docs: SchedulerDocument[];
7642
7793
  static serialize(obj: any): SchedulerDocsResult.Transport;
@@ -7823,7 +7974,7 @@ declare namespace CloudantV1 {
7823
7974
  /** Schema for a listing of replication scheduler jobs. */
7824
7975
  class SchedulerJobsResult {
7825
7976
  /** Number of total rows. */
7826
- totalRows: number | null;
7977
+ totalRows: number;
7827
7978
  /** Array of replication job objects. */
7828
7979
  jobs: SchedulerJob[];
7829
7980
  static serialize(obj: any): SchedulerJobsResult.Transport;
@@ -7926,7 +8077,7 @@ declare namespace CloudantV1 {
7926
8077
  /** Schema for the result of a query search operation. */
7927
8078
  class SearchResult {
7928
8079
  /** Number of total rows. */
7929
- totalRows: number | null;
8080
+ totalRows: number;
7930
8081
  /** Opaque bookmark token used when paginating results. */
7931
8082
  bookmark?: string;
7932
8083
  /** Grouped search matches. */
@@ -7966,7 +8117,7 @@ declare namespace CloudantV1 {
7966
8117
  /** Schema for the result of a query search operation. */
7967
8118
  class SearchResultProperties {
7968
8119
  /** Number of total rows. */
7969
- totalRows: number | null;
8120
+ totalRows: number;
7970
8121
  /** Opaque bookmark token used when paginating results. */
7971
8122
  bookmark?: string;
7972
8123
  /** Grouped search matches. */
@@ -8059,6 +8210,31 @@ declare namespace CloudantV1 {
8059
8210
  roles?: string[];
8060
8211
  }
8061
8212
  }
8213
+ /** Schema for extra information on the selector. */
8214
+ class SelectorHint {
8215
+ /** A list of fields in the given selector that can be used to restrict the query. */
8216
+ indexableFields: string[];
8217
+ /** A type of the index. */
8218
+ type: SelectorHint.Constants.Type | string;
8219
+ /** A list of fields in the given selector that can't be used to restrict the query. */
8220
+ unindexableFields: string[];
8221
+ static serialize(obj: any): SelectorHint.Transport;
8222
+ static deserialize(obj: any): SelectorHint;
8223
+ }
8224
+ namespace SelectorHint {
8225
+ namespace Constants {
8226
+ /** A type of the index. */
8227
+ enum Type {
8228
+ JSON = "json",
8229
+ TEXT = "text"
8230
+ }
8231
+ }
8232
+ interface Transport {
8233
+ indexable_fields: string[];
8234
+ type: string;
8235
+ unindexable_fields: string[];
8236
+ }
8237
+ }
8062
8238
  /** Schema for information about the server instance. */
8063
8239
  class ServerInformation {
8064
8240
  /** Welcome message. */
@@ -8175,7 +8351,7 @@ declare namespace CloudantV1 {
8175
8351
  /** Schema for information about the up state of the server. */
8176
8352
  class UpInformation {
8177
8353
  /** seeds. */
8178
- seeds: JsonObject;
8354
+ seeds?: JsonObject;
8179
8355
  /** status. */
8180
8356
  status: UpInformation.Constants.Status | string;
8181
8357
  static serialize(obj: any): UpInformation.Transport;
@@ -8191,7 +8367,7 @@ declare namespace CloudantV1 {
8191
8367
  }
8192
8368
  }
8193
8369
  interface Transport {
8194
- seeds: JsonObject;
8370
+ seeds?: JsonObject;
8195
8371
  status: string;
8196
8372
  }
8197
8373
  }
@@ -8299,7 +8475,7 @@ declare namespace CloudantV1 {
8299
8475
  */
8300
8476
  updateSeq?: boolean;
8301
8477
  /** Schema for any JSON type. */
8302
- endKey?: any | null;
8478
+ endKey?: any;
8303
8479
  /** Schema for a document ID. */
8304
8480
  endKeyDocId?: string;
8305
8481
  /** Parameter to specify whether to group reduced results by key. Valid only if a reduce function defined in the
@@ -8313,7 +8489,7 @@ declare namespace CloudantV1 {
8313
8489
  */
8314
8490
  groupLevel?: number;
8315
8491
  /** Schema for any JSON type. */
8316
- key?: any | null;
8492
+ key?: any;
8317
8493
  /** Parameter to specify returning only documents that match any of the specified keys. A JSON array of keys
8318
8494
  * that match the key type emitted by the view function.
8319
8495
  */
@@ -8331,7 +8507,7 @@ declare namespace CloudantV1 {
8331
8507
  */
8332
8508
  stable?: boolean;
8333
8509
  /** Schema for any JSON type. */
8334
- startKey?: any | null;
8510
+ startKey?: any;
8335
8511
  /** Schema for a document ID. */
8336
8512
  startKeyDocId?: string;
8337
8513
  /** Parameter to specify whether or not the view in question should be updated prior to responding to the user.
@@ -8379,7 +8555,7 @@ declare namespace CloudantV1 {
8379
8555
  /** Schema for the result of a query view operation. */
8380
8556
  class ViewResult {
8381
8557
  /** Number of total rows. */
8382
- totalRows?: number | null;
8558
+ totalRows?: number;
8383
8559
  /** Current update sequence for the database. */
8384
8560
  updateSeq?: string;
8385
8561
  /** rows. */
@@ -8402,14 +8578,16 @@ declare namespace CloudantV1 {
8402
8578
  error?: string;
8403
8579
  /** The reason the error occurred (if available). */
8404
8580
  reason?: string;
8581
+ /** An internal error reference (if available). */
8582
+ ref?: number;
8405
8583
  /** Schema for a document. */
8406
8584
  doc?: Document;
8407
8585
  /** Schema for a document ID. */
8408
8586
  id?: string;
8409
8587
  /** Schema for any JSON type. */
8410
- key: any | null;
8588
+ key: any;
8411
8589
  /** Schema for any JSON type. */
8412
- value: any | null;
8590
+ value: any;
8413
8591
  static serialize(obj: any): ViewResultRow.Transport;
8414
8592
  static deserialize(obj: any): ViewResultRow;
8415
8593
  }
@@ -8418,6 +8596,7 @@ declare namespace CloudantV1 {
8418
8596
  caused_by?: string;
8419
8597
  error?: string;
8420
8598
  reason?: string;
8599
+ ref?: number;
8421
8600
  doc?: Document.Transport;
8422
8601
  id?: string;
8423
8602
  key: any;