@ibm-cloud/cloudant 0.8.3 → 0.9.1
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/README.md +19 -12
- package/cloudant/features/changesFollower.js +1 -1
- package/cloudant/features/changesFollower.js.map +1 -1
- package/cloudant/features/changesParamsHelper.js +1 -1
- package/cloudant/features/changesParamsHelper.js.map +1 -1
- package/cloudant/features/changesResultItemStream.js +1 -1
- package/cloudant/features/changesResultItemStream.js.map +1 -1
- package/cloudant/features/changesResultIterator.js +5 -5
- package/cloudant/features/changesResultIterator.js.map +1 -1
- package/cloudant/v1.d.ts +1623 -394
- package/cloudant/v1.js +6312 -187
- package/cloudant/v1.js.map +1 -1
- package/lib/cloudantBaseService.js +1 -1
- package/lib/cloudantBaseService.js.map +1 -1
- package/package.json +12 -12
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
|
|
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
|
|
219
|
-
*
|
|
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
|
|
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
|
|
323
|
-
*
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
1529
|
-
*
|
|
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
|
|
1599
|
-
*
|
|
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
|
|
1669
|
-
*
|
|
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
|
|
1736
|
-
*
|
|
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
|
|
1809
|
-
*
|
|
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
|
|
1882
|
-
*
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
@@ -2667,8 +2695,10 @@ declare namespace CloudantV1 {
|
|
|
2667
2695
|
interface EmptyObject {
|
|
2668
2696
|
}
|
|
2669
2697
|
/** A standard JS object, defined to avoid the limitations of `Object` and `object` */
|
|
2670
|
-
|
|
2698
|
+
class JsonObject {
|
|
2671
2699
|
[key: string]: any;
|
|
2700
|
+
static serialize(obj: any): any;
|
|
2701
|
+
static deserialize(obj: any): any;
|
|
2672
2702
|
}
|
|
2673
2703
|
/*************************
|
|
2674
2704
|
* request interfaces
|
|
@@ -2800,19 +2830,24 @@ declare namespace CloudantV1 {
|
|
|
2800
2830
|
descending?: boolean;
|
|
2801
2831
|
/** Query parameter to specify the changes feed type. */
|
|
2802
2832
|
feed?: PostChangesConstants.Feed | string;
|
|
2803
|
-
/** Query parameter to specify a filter
|
|
2804
|
-
* emitting only filtered events. For example: `design_doc/filtername`.
|
|
2805
|
-
*
|
|
2806
|
-
* 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.
|
|
2807
2834
|
*
|
|
2835
|
+
* The built-in filter types are:
|
|
2808
2836
|
* * `_design` - Returns only changes to design documents.
|
|
2809
2837
|
* * `_doc_ids` - Returns changes for documents with an ID matching one specified in
|
|
2810
|
-
* `doc_ids` request body parameter.
|
|
2838
|
+
* `doc_ids` request body parameter. (`POST` only)
|
|
2811
2839
|
* * `_selector` - Returns changes for documents that match the `selector`
|
|
2812
2840
|
* request body parameter. The selector syntax is the same as used for
|
|
2813
|
-
* `_find`.
|
|
2841
|
+
* `_find`. (`POST` only)
|
|
2814
2842
|
* * `_view` - Returns changes for documents that match an existing map
|
|
2815
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.
|
|
2816
2851
|
*/
|
|
2817
2852
|
filter?: string;
|
|
2818
2853
|
/** Query parameter to specify the period in milliseconds after which an empty line is sent in the results. Off
|
|
@@ -2927,19 +2962,24 @@ declare namespace CloudantV1 {
|
|
|
2927
2962
|
descending?: boolean;
|
|
2928
2963
|
/** Query parameter to specify the changes feed type. */
|
|
2929
2964
|
feed?: PostChangesAsStreamConstants.Feed | string;
|
|
2930
|
-
/** Query parameter to specify a filter
|
|
2931
|
-
* emitting only filtered events. For example: `design_doc/filtername`.
|
|
2932
|
-
*
|
|
2933
|
-
* 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.
|
|
2934
2966
|
*
|
|
2967
|
+
* The built-in filter types are:
|
|
2935
2968
|
* * `_design` - Returns only changes to design documents.
|
|
2936
2969
|
* * `_doc_ids` - Returns changes for documents with an ID matching one specified in
|
|
2937
|
-
* `doc_ids` request body parameter.
|
|
2970
|
+
* `doc_ids` request body parameter. (`POST` only)
|
|
2938
2971
|
* * `_selector` - Returns changes for documents that match the `selector`
|
|
2939
2972
|
* request body parameter. The selector syntax is the same as used for
|
|
2940
|
-
* `_find`.
|
|
2973
|
+
* `_find`. (`POST` only)
|
|
2941
2974
|
* * `_view` - Returns changes for documents that match an existing map
|
|
2942
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.
|
|
2943
2983
|
*/
|
|
2944
2984
|
filter?: string;
|
|
2945
2985
|
/** Query parameter to specify the period in milliseconds after which an empty line is sent in the results. Off
|
|
@@ -3059,7 +3099,7 @@ declare namespace CloudantV1 {
|
|
|
3059
3099
|
db: string;
|
|
3060
3100
|
/** Path parameter to specify the document ID. */
|
|
3061
3101
|
docId: string;
|
|
3062
|
-
/** Header parameter
|
|
3102
|
+
/** Header parameter for a conditional HTTP request not matching an ETag. */
|
|
3063
3103
|
ifNoneMatch?: string;
|
|
3064
3104
|
/** Query parameter to specify whether to force retrieving latest leaf revision, no matter what rev was
|
|
3065
3105
|
* requested.
|
|
@@ -3287,7 +3327,7 @@ declare namespace CloudantV1 {
|
|
|
3287
3327
|
db: string;
|
|
3288
3328
|
/** Path parameter to specify the document ID. */
|
|
3289
3329
|
docId: string;
|
|
3290
|
-
/** Header parameter
|
|
3330
|
+
/** Header parameter for a conditional HTTP request matching an ETag. */
|
|
3291
3331
|
ifMatch?: string;
|
|
3292
3332
|
/** Query parameter to specify whether to store in batch mode. The server will respond with a HTTP 202 Accepted
|
|
3293
3333
|
* response code immediately.
|
|
@@ -3310,7 +3350,7 @@ declare namespace CloudantV1 {
|
|
|
3310
3350
|
db: string;
|
|
3311
3351
|
/** Path parameter to specify the document ID. */
|
|
3312
3352
|
docId: string;
|
|
3313
|
-
/** Header parameter
|
|
3353
|
+
/** Header parameter for a conditional HTTP request not matching an ETag. */
|
|
3314
3354
|
ifNoneMatch?: string;
|
|
3315
3355
|
/** Query parameter to specify whether to include attachments bodies in a response. */
|
|
3316
3356
|
attachments?: boolean;
|
|
@@ -3350,7 +3390,7 @@ declare namespace CloudantV1 {
|
|
|
3350
3390
|
db: string;
|
|
3351
3391
|
/** Path parameter to specify the document ID. */
|
|
3352
3392
|
docId: string;
|
|
3353
|
-
/** Header parameter
|
|
3393
|
+
/** Header parameter for a conditional HTTP request not matching an ETag. */
|
|
3354
3394
|
ifNoneMatch?: string;
|
|
3355
3395
|
/** Query parameter to specify whether to include attachments bodies in a response. */
|
|
3356
3396
|
attachments?: boolean;
|
|
@@ -3390,7 +3430,7 @@ declare namespace CloudantV1 {
|
|
|
3390
3430
|
db: string;
|
|
3391
3431
|
/** Path parameter to specify the document ID. */
|
|
3392
3432
|
docId: string;
|
|
3393
|
-
/** Header parameter
|
|
3433
|
+
/** Header parameter for a conditional HTTP request not matching an ETag. */
|
|
3394
3434
|
ifNoneMatch?: string;
|
|
3395
3435
|
/** Query parameter to specify whether to include attachments bodies in a response. */
|
|
3396
3436
|
attachments?: boolean;
|
|
@@ -3430,7 +3470,7 @@ declare namespace CloudantV1 {
|
|
|
3430
3470
|
db: string;
|
|
3431
3471
|
/** Path parameter to specify the document ID. */
|
|
3432
3472
|
docId: string;
|
|
3433
|
-
/** Header parameter
|
|
3473
|
+
/** Header parameter for a conditional HTTP request not matching an ETag. */
|
|
3434
3474
|
ifNoneMatch?: string;
|
|
3435
3475
|
/** Query parameter to specify whether to include attachments bodies in a response. */
|
|
3436
3476
|
attachments?: boolean;
|
|
@@ -3474,7 +3514,7 @@ declare namespace CloudantV1 {
|
|
|
3474
3514
|
document: Document | NodeJS.ReadableStream | Buffer;
|
|
3475
3515
|
/** The type of the input. */
|
|
3476
3516
|
contentType?: PutDocumentConstants.ContentType | string;
|
|
3477
|
-
/** Header parameter
|
|
3517
|
+
/** Header parameter for a conditional HTTP request matching an ETag. */
|
|
3478
3518
|
ifMatch?: string;
|
|
3479
3519
|
/** Query parameter to specify whether to store in batch mode. The server will respond with a HTTP 202 Accepted
|
|
3480
3520
|
* response code immediately.
|
|
@@ -3511,7 +3551,7 @@ declare namespace CloudantV1 {
|
|
|
3511
3551
|
* excluding the `_design/` prefix.
|
|
3512
3552
|
*/
|
|
3513
3553
|
ddoc: string;
|
|
3514
|
-
/** Header parameter
|
|
3554
|
+
/** Header parameter for a conditional HTTP request not matching an ETag. */
|
|
3515
3555
|
ifNoneMatch?: string;
|
|
3516
3556
|
headers?: OutgoingHttpHeaders;
|
|
3517
3557
|
}
|
|
@@ -3523,7 +3563,7 @@ declare namespace CloudantV1 {
|
|
|
3523
3563
|
* excluding the `_design/` prefix.
|
|
3524
3564
|
*/
|
|
3525
3565
|
ddoc: string;
|
|
3526
|
-
/** Header parameter
|
|
3566
|
+
/** Header parameter for a conditional HTTP request matching an ETag. */
|
|
3527
3567
|
ifMatch?: string;
|
|
3528
3568
|
/** Query parameter to specify whether to store in batch mode. The server will respond with a HTTP 202 Accepted
|
|
3529
3569
|
* response code immediately.
|
|
@@ -3548,7 +3588,7 @@ declare namespace CloudantV1 {
|
|
|
3548
3588
|
* excluding the `_design/` prefix.
|
|
3549
3589
|
*/
|
|
3550
3590
|
ddoc: string;
|
|
3551
|
-
/** Header parameter
|
|
3591
|
+
/** Header parameter for a conditional HTTP request not matching an ETag. */
|
|
3552
3592
|
ifNoneMatch?: string;
|
|
3553
3593
|
/** Query parameter to specify whether to include attachments bodies in a response. */
|
|
3554
3594
|
attachments?: boolean;
|
|
@@ -3592,7 +3632,7 @@ declare namespace CloudantV1 {
|
|
|
3592
3632
|
ddoc: string;
|
|
3593
3633
|
/** HTTP request body for DesignDocument operations. */
|
|
3594
3634
|
designDocument: DesignDocument;
|
|
3595
|
-
/** Header parameter
|
|
3635
|
+
/** Header parameter for a conditional HTTP request matching an ETag. */
|
|
3596
3636
|
ifMatch?: string;
|
|
3597
3637
|
/** Query parameter to specify whether to store in batch mode. The server will respond with a HTTP 202 Accepted
|
|
3598
3638
|
* response code immediately.
|
|
@@ -3660,18 +3700,8 @@ declare namespace CloudantV1 {
|
|
|
3660
3700
|
keys?: string[];
|
|
3661
3701
|
/** Schema for a document ID. */
|
|
3662
3702
|
startKey?: string;
|
|
3663
|
-
/** The type of the response: application/json or application/octet-stream. */
|
|
3664
|
-
accept?: PostDesignDocsConstants.Accept | string;
|
|
3665
3703
|
headers?: OutgoingHttpHeaders;
|
|
3666
3704
|
}
|
|
3667
|
-
/** Constants for the `postDesignDocs` operation. */
|
|
3668
|
-
namespace PostDesignDocsConstants {
|
|
3669
|
-
/** The type of the response: application/json or application/octet-stream. */
|
|
3670
|
-
enum Accept {
|
|
3671
|
-
APPLICATION_JSON = "application/json",
|
|
3672
|
-
APPLICATION_OCTET_STREAM = "application/octet-stream"
|
|
3673
|
-
}
|
|
3674
|
-
}
|
|
3675
3705
|
/** Parameters for the `postDesignDocsQueries` operation. */
|
|
3676
3706
|
interface PostDesignDocsQueriesParams {
|
|
3677
3707
|
/** Path parameter to specify the database name. */
|
|
@@ -4337,8 +4367,12 @@ declare namespace CloudantV1 {
|
|
|
4337
4367
|
stable?: boolean;
|
|
4338
4368
|
/** Whether to update the index prior to returning the result. */
|
|
4339
4369
|
update?: PostPartitionExplainConstants.Update | string;
|
|
4340
|
-
/** Use this option to identify a specific index
|
|
4341
|
-
*
|
|
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.
|
|
4342
4376
|
*/
|
|
4343
4377
|
useIndex?: string[];
|
|
4344
4378
|
headers?: OutgoingHttpHeaders;
|
|
@@ -4426,8 +4460,12 @@ declare namespace CloudantV1 {
|
|
|
4426
4460
|
stable?: boolean;
|
|
4427
4461
|
/** Whether to update the index prior to returning the result. */
|
|
4428
4462
|
update?: PostPartitionFindConstants.Update | string;
|
|
4429
|
-
/** Use this option to identify a specific index
|
|
4430
|
-
*
|
|
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.
|
|
4431
4469
|
*/
|
|
4432
4470
|
useIndex?: string[];
|
|
4433
4471
|
headers?: OutgoingHttpHeaders;
|
|
@@ -4515,8 +4553,12 @@ declare namespace CloudantV1 {
|
|
|
4515
4553
|
stable?: boolean;
|
|
4516
4554
|
/** Whether to update the index prior to returning the result. */
|
|
4517
4555
|
update?: PostPartitionFindAsStreamConstants.Update | string;
|
|
4518
|
-
/** Use this option to identify a specific index
|
|
4519
|
-
*
|
|
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.
|
|
4520
4562
|
*/
|
|
4521
4563
|
useIndex?: string[];
|
|
4522
4564
|
headers?: OutgoingHttpHeaders;
|
|
@@ -4602,8 +4644,12 @@ declare namespace CloudantV1 {
|
|
|
4602
4644
|
stable?: boolean;
|
|
4603
4645
|
/** Whether to update the index prior to returning the result. */
|
|
4604
4646
|
update?: PostExplainConstants.Update | string;
|
|
4605
|
-
/** Use this option to identify a specific index
|
|
4606
|
-
*
|
|
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.
|
|
4607
4653
|
*/
|
|
4608
4654
|
useIndex?: string[];
|
|
4609
4655
|
/** The read quorum that is needed for the result. The value defaults to 1, in which case the document that was
|
|
@@ -4695,8 +4741,12 @@ declare namespace CloudantV1 {
|
|
|
4695
4741
|
stable?: boolean;
|
|
4696
4742
|
/** Whether to update the index prior to returning the result. */
|
|
4697
4743
|
update?: PostFindConstants.Update | string;
|
|
4698
|
-
/** Use this option to identify a specific index
|
|
4699
|
-
*
|
|
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.
|
|
4700
4750
|
*/
|
|
4701
4751
|
useIndex?: string[];
|
|
4702
4752
|
/** The read quorum that is needed for the result. The value defaults to 1, in which case the document that was
|
|
@@ -4788,8 +4838,12 @@ declare namespace CloudantV1 {
|
|
|
4788
4838
|
stable?: boolean;
|
|
4789
4839
|
/** Whether to update the index prior to returning the result. */
|
|
4790
4840
|
update?: PostFindAsStreamConstants.Update | string;
|
|
4791
|
-
/** Use this option to identify a specific index
|
|
4792
|
-
*
|
|
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.
|
|
4793
4847
|
*/
|
|
4794
4848
|
useIndex?: string[];
|
|
4795
4849
|
/** The read quorum that is needed for the result. The value defaults to 1, in which case the document that was
|
|
@@ -5120,7 +5174,7 @@ declare namespace CloudantV1 {
|
|
|
5120
5174
|
interface HeadReplicationDocumentParams {
|
|
5121
5175
|
/** Path parameter to specify the document ID. */
|
|
5122
5176
|
docId: string;
|
|
5123
|
-
/** Header parameter
|
|
5177
|
+
/** Header parameter for a conditional HTTP request not matching an ETag. */
|
|
5124
5178
|
ifNoneMatch?: string;
|
|
5125
5179
|
headers?: OutgoingHttpHeaders;
|
|
5126
5180
|
}
|
|
@@ -5140,7 +5194,7 @@ declare namespace CloudantV1 {
|
|
|
5140
5194
|
interface DeleteReplicationDocumentParams {
|
|
5141
5195
|
/** Path parameter to specify the document ID. */
|
|
5142
5196
|
docId: string;
|
|
5143
|
-
/** Header parameter
|
|
5197
|
+
/** Header parameter for a conditional HTTP request matching an ETag. */
|
|
5144
5198
|
ifMatch?: string;
|
|
5145
5199
|
/** Query parameter to specify whether to store in batch mode. The server will respond with a HTTP 202 Accepted
|
|
5146
5200
|
* response code immediately.
|
|
@@ -5161,7 +5215,7 @@ declare namespace CloudantV1 {
|
|
|
5161
5215
|
interface GetReplicationDocumentParams {
|
|
5162
5216
|
/** Path parameter to specify the document ID. */
|
|
5163
5217
|
docId: string;
|
|
5164
|
-
/** Header parameter
|
|
5218
|
+
/** Header parameter for a conditional HTTP request not matching an ETag. */
|
|
5165
5219
|
ifNoneMatch?: string;
|
|
5166
5220
|
/** Query parameter to specify whether to include attachments bodies in a response. */
|
|
5167
5221
|
attachments?: boolean;
|
|
@@ -5201,7 +5255,7 @@ declare namespace CloudantV1 {
|
|
|
5201
5255
|
docId: string;
|
|
5202
5256
|
/** HTTP request body for replication operations. */
|
|
5203
5257
|
replicationDocument: ReplicationDocument;
|
|
5204
|
-
/** Header parameter
|
|
5258
|
+
/** Header parameter for a conditional HTTP request matching an ETag. */
|
|
5205
5259
|
ifMatch?: string;
|
|
5206
5260
|
/** Query parameter to specify whether to store in batch mode. The server will respond with a HTTP 202 Accepted
|
|
5207
5261
|
* response code immediately.
|
|
@@ -5365,9 +5419,9 @@ declare namespace CloudantV1 {
|
|
|
5365
5419
|
docId: string;
|
|
5366
5420
|
/** Path parameter to specify the attachment name. */
|
|
5367
5421
|
attachmentName: string;
|
|
5368
|
-
/** Header parameter
|
|
5422
|
+
/** Header parameter for a conditional HTTP request matching an ETag. */
|
|
5369
5423
|
ifMatch?: string;
|
|
5370
|
-
/** Header parameter
|
|
5424
|
+
/** Header parameter for a conditional HTTP request not matching an ETag. */
|
|
5371
5425
|
ifNoneMatch?: string;
|
|
5372
5426
|
/** Query parameter to specify a document revision. */
|
|
5373
5427
|
rev?: string;
|
|
@@ -5381,7 +5435,7 @@ declare namespace CloudantV1 {
|
|
|
5381
5435
|
docId: string;
|
|
5382
5436
|
/** Path parameter to specify the attachment name. */
|
|
5383
5437
|
attachmentName: string;
|
|
5384
|
-
/** Header parameter
|
|
5438
|
+
/** Header parameter for a conditional HTTP request matching an ETag. */
|
|
5385
5439
|
ifMatch?: string;
|
|
5386
5440
|
/** Query parameter to specify a document revision. */
|
|
5387
5441
|
rev?: string;
|
|
@@ -5408,9 +5462,9 @@ declare namespace CloudantV1 {
|
|
|
5408
5462
|
attachmentName: string;
|
|
5409
5463
|
/** The type of the response: or *_/_*. */
|
|
5410
5464
|
accept?: string;
|
|
5411
|
-
/** Header parameter
|
|
5465
|
+
/** Header parameter for a conditional HTTP request matching an ETag. */
|
|
5412
5466
|
ifMatch?: string;
|
|
5413
|
-
/** Header parameter
|
|
5467
|
+
/** Header parameter for a conditional HTTP request not matching an ETag. */
|
|
5414
5468
|
ifNoneMatch?: string;
|
|
5415
5469
|
/** Header parameter to specify the byte range for a request. This allows the implementation of resumable
|
|
5416
5470
|
* downloads and skippable streams. This is available for all attachments inside CouchDB.
|
|
@@ -5432,7 +5486,7 @@ declare namespace CloudantV1 {
|
|
|
5432
5486
|
attachment: NodeJS.ReadableStream | Buffer;
|
|
5433
5487
|
/** Content-Type of the attachment. */
|
|
5434
5488
|
contentType: string;
|
|
5435
|
-
/** Header parameter
|
|
5489
|
+
/** Header parameter for a conditional HTTP request matching an ETag. */
|
|
5436
5490
|
ifMatch?: string;
|
|
5437
5491
|
/** Query parameter to specify a document revision. */
|
|
5438
5492
|
rev?: string;
|
|
@@ -5444,7 +5498,7 @@ declare namespace CloudantV1 {
|
|
|
5444
5498
|
db: string;
|
|
5445
5499
|
/** Path parameter to specify the document ID. */
|
|
5446
5500
|
docId: string;
|
|
5447
|
-
/** Header parameter
|
|
5501
|
+
/** Header parameter for a conditional HTTP request not matching an ETag. */
|
|
5448
5502
|
ifNoneMatch?: string;
|
|
5449
5503
|
headers?: OutgoingHttpHeaders;
|
|
5450
5504
|
}
|
|
@@ -5475,7 +5529,7 @@ declare namespace CloudantV1 {
|
|
|
5475
5529
|
docId: string;
|
|
5476
5530
|
/** The type of the response: application/json, multipart/mixed, multipart/related, or application/octet-stream. */
|
|
5477
5531
|
accept?: GetLocalDocumentConstants.Accept | string;
|
|
5478
|
-
/** Header parameter
|
|
5532
|
+
/** Header parameter for a conditional HTTP request not matching an ETag. */
|
|
5479
5533
|
ifNoneMatch?: string;
|
|
5480
5534
|
/** Query parameter to specify whether to include attachments bodies in a response. */
|
|
5481
5535
|
attachments?: boolean;
|
|
@@ -5589,21 +5643,21 @@ declare namespace CloudantV1 {
|
|
|
5589
5643
|
* model interfaces
|
|
5590
5644
|
************************/
|
|
5591
5645
|
/** Schema for information about a running task. */
|
|
5592
|
-
|
|
5646
|
+
class ActiveTask {
|
|
5593
5647
|
/** The total count of attempted doc revisions fetched with `_bulk_get`. Available for `replication` type tasks. */
|
|
5594
|
-
|
|
5648
|
+
bulkGetAttempts?: number;
|
|
5595
5649
|
/** The total count of successful docs fetched with `_bulk_get`. Available for `replication` type tasks. */
|
|
5596
|
-
|
|
5650
|
+
bulkGetDocs?: number;
|
|
5597
5651
|
/** Processed changes. Available for `database_compaction`, `indexer`, `search_indexer`, `view_compaction` type
|
|
5598
5652
|
* tasks.
|
|
5599
5653
|
*/
|
|
5600
|
-
|
|
5654
|
+
changesDone?: number;
|
|
5601
5655
|
/** The count of changes not yet replicated. Available for `replication` type tasks. */
|
|
5602
|
-
|
|
5656
|
+
changesPending?: number;
|
|
5603
5657
|
/** Specifies the checkpoint interval in ms. Available for `replication` type tasks. */
|
|
5604
|
-
|
|
5658
|
+
checkpointInterval?: number;
|
|
5605
5659
|
/** The source sequence id which was last successfully replicated. Available for `replication` type tasks. */
|
|
5606
|
-
|
|
5660
|
+
checkpointedSourceSeq?: string;
|
|
5607
5661
|
/** The replication configured to be continuous. Available for `replication` type tasks. */
|
|
5608
5662
|
continuous?: boolean;
|
|
5609
5663
|
/** Source database. */
|
|
@@ -5611,21 +5665,21 @@ declare namespace CloudantV1 {
|
|
|
5611
5665
|
/** The design document that belongs to this task. Available for `indexer`, `search_indexer`, `view_compaction`
|
|
5612
5666
|
* type tasks.
|
|
5613
5667
|
*/
|
|
5614
|
-
|
|
5668
|
+
designDocument?: string;
|
|
5615
5669
|
/** Replication document ID. Available for `replication` type tasks. */
|
|
5616
|
-
|
|
5670
|
+
docId?: string;
|
|
5617
5671
|
/** Number of document write failures. Available for `replication` type tasks. */
|
|
5618
|
-
|
|
5672
|
+
docWriteFailures?: number;
|
|
5619
5673
|
/** Number of documents read. Available for `replication` type tasks. */
|
|
5620
|
-
|
|
5674
|
+
docsRead?: number;
|
|
5621
5675
|
/** Number of documents written to target. Available for `replication` type tasks. */
|
|
5622
|
-
|
|
5676
|
+
docsWritten?: number;
|
|
5623
5677
|
/** The search index that belongs to this task. Available for `search_indexer` type tasks. */
|
|
5624
5678
|
index?: string;
|
|
5625
5679
|
/** Indexer process ID. Available for `indexer` type tasks. */
|
|
5626
|
-
|
|
5680
|
+
indexerPid?: string;
|
|
5627
5681
|
/** The count of docs which have been read from the source. Available for `replication` type tasks. */
|
|
5628
|
-
|
|
5682
|
+
missingRevisionsFound?: number;
|
|
5629
5683
|
/** Cluster node where the task is running. */
|
|
5630
5684
|
node: string;
|
|
5631
5685
|
/** The phase the active task is in. `docid_sort`, `docid_copy`, `document_copy` phases are available for
|
|
@@ -5635,13 +5689,13 @@ declare namespace CloudantV1 {
|
|
|
5635
5689
|
/** Process ID. */
|
|
5636
5690
|
pid: string;
|
|
5637
5691
|
/** Process status. */
|
|
5638
|
-
|
|
5692
|
+
processStatus?: ActiveTask.Constants.ProcessStatus | string;
|
|
5639
5693
|
/** Current percentage progress. Available for `database_compaction`, `indexer`, `search_indexer`,
|
|
5640
5694
|
* `view_compaction` type tasks.
|
|
5641
5695
|
*/
|
|
5642
5696
|
progress?: number;
|
|
5643
5697
|
/** Replication ID. Available for `replication` type tasks. */
|
|
5644
|
-
|
|
5698
|
+
replicationId?: string;
|
|
5645
5699
|
/** Indicates whether a compaction retry is currently running on the database. Available for
|
|
5646
5700
|
* `database_compaction` type tasks.
|
|
5647
5701
|
*/
|
|
@@ -5649,31 +5703,33 @@ declare namespace CloudantV1 {
|
|
|
5649
5703
|
/** The count of revisions which have been checked since this replication began. Available for `replication`
|
|
5650
5704
|
* type tasks.
|
|
5651
5705
|
*/
|
|
5652
|
-
|
|
5706
|
+
revisionsChecked?: number;
|
|
5653
5707
|
/** Replication source. Available for `replication` type tasks. */
|
|
5654
5708
|
source?: string;
|
|
5655
5709
|
/** The last sequence number obtained from the source database changes feed. Available for `replication` type
|
|
5656
5710
|
* tasks.
|
|
5657
5711
|
*/
|
|
5658
|
-
|
|
5712
|
+
sourceSeq?: string;
|
|
5659
5713
|
/** Schema for a Unix epoch timestamp. */
|
|
5660
|
-
|
|
5714
|
+
startedOn: number;
|
|
5661
5715
|
/** Replication target. Available for `replication` type tasks. */
|
|
5662
5716
|
target?: string;
|
|
5663
5717
|
/** The last sequence number processed by the replicator. Available for `replication` type tasks. */
|
|
5664
|
-
|
|
5718
|
+
throughSeq?: string;
|
|
5665
5719
|
/** Total changes to process. Available for `database_compaction`, `indexer`, `search_indexer`,
|
|
5666
5720
|
* `view_compaction` type tasks.
|
|
5667
5721
|
*/
|
|
5668
|
-
|
|
5722
|
+
totalChanges?: number;
|
|
5669
5723
|
/** Operation type. */
|
|
5670
5724
|
type: ActiveTask.Constants.Type | string;
|
|
5671
5725
|
/** Schema for a Unix epoch timestamp. */
|
|
5672
|
-
|
|
5726
|
+
updatedOn: number;
|
|
5673
5727
|
/** Name of user running replication or owning the indexer. Available for `indexer`, `replication` type tasks. */
|
|
5674
|
-
user?: string;
|
|
5728
|
+
user?: string | null;
|
|
5675
5729
|
/** Number of view indexes. Available for `view_compaction` type tasks. */
|
|
5676
5730
|
view?: number;
|
|
5731
|
+
static serialize(obj: any): ActiveTask.Transport;
|
|
5732
|
+
static deserialize(obj: any): ActiveTask;
|
|
5677
5733
|
}
|
|
5678
5734
|
namespace ActiveTask {
|
|
5679
5735
|
namespace Constants {
|
|
@@ -5703,13 +5759,51 @@ declare namespace CloudantV1 {
|
|
|
5703
5759
|
VIEW_COMPACTION = "view_compaction"
|
|
5704
5760
|
}
|
|
5705
5761
|
}
|
|
5762
|
+
interface Transport {
|
|
5763
|
+
bulk_get_attempts?: number;
|
|
5764
|
+
bulk_get_docs?: number;
|
|
5765
|
+
changes_done?: number;
|
|
5766
|
+
changes_pending?: number;
|
|
5767
|
+
checkpoint_interval?: number;
|
|
5768
|
+
checkpointed_source_seq?: string;
|
|
5769
|
+
continuous?: boolean;
|
|
5770
|
+
database: string;
|
|
5771
|
+
design_document?: string;
|
|
5772
|
+
doc_id?: string;
|
|
5773
|
+
doc_write_failures?: number;
|
|
5774
|
+
docs_read?: number;
|
|
5775
|
+
docs_written?: number;
|
|
5776
|
+
index?: string;
|
|
5777
|
+
indexer_pid?: string;
|
|
5778
|
+
missing_revisions_found?: number;
|
|
5779
|
+
node: string;
|
|
5780
|
+
phase?: string;
|
|
5781
|
+
pid: string;
|
|
5782
|
+
process_status?: string;
|
|
5783
|
+
progress?: number;
|
|
5784
|
+
replication_id?: string;
|
|
5785
|
+
retry?: boolean;
|
|
5786
|
+
revisions_checked?: number;
|
|
5787
|
+
source?: string;
|
|
5788
|
+
source_seq?: string;
|
|
5789
|
+
started_on: number;
|
|
5790
|
+
target?: string;
|
|
5791
|
+
through_seq?: string;
|
|
5792
|
+
total_changes?: number;
|
|
5793
|
+
type: string;
|
|
5794
|
+
updated_on: number;
|
|
5795
|
+
user?: string;
|
|
5796
|
+
view?: number;
|
|
5797
|
+
}
|
|
5706
5798
|
}
|
|
5707
5799
|
/** Schema for Activity Tracker events. */
|
|
5708
|
-
|
|
5800
|
+
class ActivityTrackerEvents {
|
|
5709
5801
|
/** An array of event types that are being sent to IBM Cloud Activity Tracker for the IBM Cloudant instance.
|
|
5710
5802
|
* "management" is a required element of this array.
|
|
5711
5803
|
*/
|
|
5712
5804
|
types: ActivityTrackerEvents.Constants.Types[] | string[];
|
|
5805
|
+
static serialize(obj: any): ActivityTrackerEvents.Transport;
|
|
5806
|
+
static deserialize(obj: any): ActivityTrackerEvents;
|
|
5713
5807
|
}
|
|
5714
5808
|
namespace ActivityTrackerEvents {
|
|
5715
5809
|
namespace Constants {
|
|
@@ -5719,20 +5813,30 @@ declare namespace CloudantV1 {
|
|
|
5719
5813
|
DATA = "data"
|
|
5720
5814
|
}
|
|
5721
5815
|
}
|
|
5816
|
+
interface Transport {
|
|
5817
|
+
types: string[];
|
|
5818
|
+
}
|
|
5722
5819
|
}
|
|
5723
5820
|
/** Schema for the result of an all documents queries operation. */
|
|
5724
|
-
|
|
5821
|
+
class AllDocsQueriesResult {
|
|
5725
5822
|
/** An array of result objects - one for each query. Each result object contains the same fields as the response
|
|
5726
5823
|
* to a regular `/_all_docs` request.
|
|
5727
5824
|
*/
|
|
5728
5825
|
results: AllDocsResult[];
|
|
5826
|
+
static serialize(obj: any): AllDocsQueriesResult.Transport;
|
|
5827
|
+
static deserialize(obj: any): AllDocsQueriesResult;
|
|
5828
|
+
}
|
|
5829
|
+
namespace AllDocsQueriesResult {
|
|
5830
|
+
interface Transport {
|
|
5831
|
+
results: AllDocsResult[];
|
|
5832
|
+
}
|
|
5729
5833
|
}
|
|
5730
5834
|
/** Schema for an all documents query operation. */
|
|
5731
|
-
|
|
5835
|
+
class AllDocsQuery {
|
|
5732
5836
|
/** Parameter to specify whether to include the encoding information in attachment stubs if the particular
|
|
5733
5837
|
* attachment is compressed.
|
|
5734
5838
|
*/
|
|
5735
|
-
|
|
5839
|
+
attEncodingInfo?: boolean;
|
|
5736
5840
|
/** Parameter to specify whether to include attachments bodies in a response. */
|
|
5737
5841
|
attachments?: boolean;
|
|
5738
5842
|
/** Parameter to specify whether to include a list of conflicted revisions in each returned document. Active
|
|
@@ -5742,9 +5846,9 @@ declare namespace CloudantV1 {
|
|
|
5742
5846
|
/** Parameter to specify whether to return the documents in descending by key order. */
|
|
5743
5847
|
descending?: boolean;
|
|
5744
5848
|
/** Parameter to specify whether to include the full content of the documents in the response. */
|
|
5745
|
-
|
|
5849
|
+
includeDocs?: boolean;
|
|
5746
5850
|
/** Parameter to specify whether the specified end key should be included in the result. */
|
|
5747
|
-
|
|
5851
|
+
inclusiveEnd?: boolean;
|
|
5748
5852
|
/** Parameter to specify the number of returned documents to limit the result to. */
|
|
5749
5853
|
limit?: number;
|
|
5750
5854
|
/** Parameter to specify the number of records before starting to return the results. */
|
|
@@ -5752,27 +5856,55 @@ declare namespace CloudantV1 {
|
|
|
5752
5856
|
/** Parameter to specify whether to include in the response an update_seq value indicating the sequence id of
|
|
5753
5857
|
* the database the view reflects.
|
|
5754
5858
|
*/
|
|
5755
|
-
|
|
5859
|
+
updateSeq?: boolean;
|
|
5756
5860
|
/** Schema for a document ID. */
|
|
5757
|
-
|
|
5861
|
+
endKey?: string;
|
|
5758
5862
|
/** Schema for a document ID. */
|
|
5759
5863
|
key?: string;
|
|
5760
5864
|
/** Schema for a list of document IDs. */
|
|
5761
5865
|
keys?: string[];
|
|
5762
5866
|
/** Schema for a document ID. */
|
|
5763
|
-
|
|
5867
|
+
startKey?: string;
|
|
5868
|
+
static serialize(obj: any): AllDocsQuery.Transport;
|
|
5869
|
+
static deserialize(obj: any): AllDocsQuery;
|
|
5870
|
+
}
|
|
5871
|
+
namespace AllDocsQuery {
|
|
5872
|
+
interface Transport {
|
|
5873
|
+
att_encoding_info?: boolean;
|
|
5874
|
+
attachments?: boolean;
|
|
5875
|
+
conflicts?: boolean;
|
|
5876
|
+
descending?: boolean;
|
|
5877
|
+
include_docs?: boolean;
|
|
5878
|
+
inclusive_end?: boolean;
|
|
5879
|
+
limit?: number;
|
|
5880
|
+
skip?: number;
|
|
5881
|
+
update_seq?: boolean;
|
|
5882
|
+
end_key?: string;
|
|
5883
|
+
key?: string;
|
|
5884
|
+
keys?: string[];
|
|
5885
|
+
start_key?: string;
|
|
5886
|
+
}
|
|
5764
5887
|
}
|
|
5765
5888
|
/** Schema for the result of an all documents operation. */
|
|
5766
|
-
|
|
5889
|
+
class AllDocsResult {
|
|
5767
5890
|
/** Number of total rows. */
|
|
5768
|
-
|
|
5891
|
+
totalRows: number;
|
|
5769
5892
|
/** List of doc results. */
|
|
5770
5893
|
rows: DocsResultRow[];
|
|
5771
5894
|
/** Current update sequence for the database. */
|
|
5772
|
-
|
|
5895
|
+
updateSeq?: string;
|
|
5896
|
+
static serialize(obj: any): AllDocsResult.Transport;
|
|
5897
|
+
static deserialize(obj: any): AllDocsResult;
|
|
5898
|
+
}
|
|
5899
|
+
namespace AllDocsResult {
|
|
5900
|
+
interface Transport {
|
|
5901
|
+
total_rows: number;
|
|
5902
|
+
rows: DocsResultRow[];
|
|
5903
|
+
update_seq?: string;
|
|
5904
|
+
}
|
|
5773
5905
|
}
|
|
5774
5906
|
/** Schema for a full text search analyzer. */
|
|
5775
|
-
|
|
5907
|
+
class Analyzer {
|
|
5776
5908
|
/** Schema for the name of the Apache Lucene analyzer to use for text indexing. The default value varies
|
|
5777
5909
|
* depending on the analyzer usage:
|
|
5778
5910
|
* * For search indexes the default is `standard` * For query text indexes the default is `keyword` * For a query
|
|
@@ -5781,6 +5913,8 @@ declare namespace CloudantV1 {
|
|
|
5781
5913
|
name?: Analyzer.Constants.Name | string;
|
|
5782
5914
|
/** Custom stopwords to use with the named analyzer. */
|
|
5783
5915
|
stopwords?: string[];
|
|
5916
|
+
static serialize(obj: any): Analyzer.Transport;
|
|
5917
|
+
static deserialize(obj: any): Analyzer;
|
|
5784
5918
|
}
|
|
5785
5919
|
namespace Analyzer {
|
|
5786
5920
|
namespace Constants {
|
|
@@ -5829,9 +5963,13 @@ declare namespace CloudantV1 {
|
|
|
5829
5963
|
PERFIELD = "perfield"
|
|
5830
5964
|
}
|
|
5831
5965
|
}
|
|
5966
|
+
interface Transport {
|
|
5967
|
+
name?: string;
|
|
5968
|
+
stopwords?: string[];
|
|
5969
|
+
}
|
|
5832
5970
|
}
|
|
5833
5971
|
/** Schema for a search analyzer configuration. */
|
|
5834
|
-
|
|
5972
|
+
class AnalyzerConfiguration {
|
|
5835
5973
|
/** Schema for the name of the Apache Lucene analyzer to use for text indexing. The default value varies
|
|
5836
5974
|
* depending on the analyzer usage:
|
|
5837
5975
|
* * For search indexes the default is `standard` * For query text indexes the default is `keyword` * For a query
|
|
@@ -5841,7 +5979,11 @@ declare namespace CloudantV1 {
|
|
|
5841
5979
|
/** Custom stopwords to use with the named analyzer. */
|
|
5842
5980
|
stopwords?: string[];
|
|
5843
5981
|
/** Schema for mapping a field name to a per field analyzer. */
|
|
5844
|
-
fields?:
|
|
5982
|
+
fields?: {
|
|
5983
|
+
[key: string]: Analyzer;
|
|
5984
|
+
};
|
|
5985
|
+
static serialize(obj: any): AnalyzerConfiguration.Transport;
|
|
5986
|
+
static deserialize(obj: any): AnalyzerConfiguration;
|
|
5845
5987
|
}
|
|
5846
5988
|
namespace AnalyzerConfiguration {
|
|
5847
5989
|
namespace Constants {
|
|
@@ -5890,20 +6032,36 @@ declare namespace CloudantV1 {
|
|
|
5890
6032
|
PERFIELD = "perfield"
|
|
5891
6033
|
}
|
|
5892
6034
|
}
|
|
6035
|
+
interface Transport {
|
|
6036
|
+
name?: string;
|
|
6037
|
+
stopwords?: string[];
|
|
6038
|
+
fields?: {
|
|
6039
|
+
[key: string]: Analyzer.Transport;
|
|
6040
|
+
};
|
|
6041
|
+
}
|
|
5893
6042
|
}
|
|
5894
6043
|
/** Schema for api keys. */
|
|
5895
|
-
|
|
6044
|
+
class ApiKeysResult {
|
|
5896
6045
|
/** ok. */
|
|
5897
6046
|
ok: boolean;
|
|
5898
6047
|
/** The generated api key. */
|
|
5899
6048
|
key: string;
|
|
5900
6049
|
/** The password associated with the api key. */
|
|
5901
6050
|
password: string;
|
|
6051
|
+
static serialize(obj: any): ApiKeysResult.Transport;
|
|
6052
|
+
static deserialize(obj: any): ApiKeysResult;
|
|
6053
|
+
}
|
|
6054
|
+
namespace ApiKeysResult {
|
|
6055
|
+
interface Transport {
|
|
6056
|
+
ok: boolean;
|
|
6057
|
+
key: string;
|
|
6058
|
+
password: string;
|
|
6059
|
+
}
|
|
5902
6060
|
}
|
|
5903
6061
|
/** Schema for an attachment. */
|
|
5904
|
-
|
|
6062
|
+
class Attachment {
|
|
5905
6063
|
/** Attachment MIME type. */
|
|
5906
|
-
|
|
6064
|
+
contentType?: string;
|
|
5907
6065
|
/** Base64-encoded content. Available if attachment content is requested by using the query parameters
|
|
5908
6066
|
* `attachments=true` or `atts_since`. Note that when used with a view or changes feed `include_docs` must also be
|
|
5909
6067
|
* `true`.
|
|
@@ -5917,7 +6075,7 @@ declare namespace CloudantV1 {
|
|
|
5917
6075
|
* attachment was added and the query parameter `att_encoding_info` is `true`. Note that when used with a view or
|
|
5918
6076
|
* changes feed `include_docs` must also be `true`.
|
|
5919
6077
|
*/
|
|
5920
|
-
|
|
6078
|
+
encodedLength?: number;
|
|
5921
6079
|
/** Compression codec. Available if content_type was in list of compressible types when the attachment was added
|
|
5922
6080
|
* and the and the query parameter `att_encoding_info` is `true`. Note that when used with a view or changes feed
|
|
5923
6081
|
* `include_docs` must also be `true`.
|
|
@@ -5931,79 +6089,172 @@ declare namespace CloudantV1 {
|
|
|
5931
6089
|
revpos?: number;
|
|
5932
6090
|
/** Has `true` value if object contains stub info and no content. Otherwise omitted in response. */
|
|
5933
6091
|
stub?: boolean;
|
|
6092
|
+
static serialize(obj: any): Attachment.Transport;
|
|
6093
|
+
static deserialize(obj: any): Attachment;
|
|
6094
|
+
}
|
|
6095
|
+
namespace Attachment {
|
|
6096
|
+
interface Transport {
|
|
6097
|
+
content_type?: string;
|
|
6098
|
+
data?: string;
|
|
6099
|
+
digest?: string;
|
|
6100
|
+
encoded_length?: number;
|
|
6101
|
+
encoding?: string;
|
|
6102
|
+
follows?: boolean;
|
|
6103
|
+
length?: number;
|
|
6104
|
+
revpos?: number;
|
|
6105
|
+
stub?: boolean;
|
|
6106
|
+
}
|
|
5934
6107
|
}
|
|
5935
6108
|
/** Schema for submitting documents for bulk modifications. */
|
|
5936
|
-
|
|
6109
|
+
class BulkDocs {
|
|
5937
6110
|
/** Array of documents. */
|
|
5938
6111
|
docs: Document[];
|
|
5939
6112
|
/** If `false`, prevents the database from assigning them new revision IDs. Default is `true`. */
|
|
5940
|
-
|
|
6113
|
+
newEdits?: boolean;
|
|
6114
|
+
static serialize(obj: any): BulkDocs.Transport;
|
|
6115
|
+
static deserialize(obj: any): BulkDocs;
|
|
6116
|
+
}
|
|
6117
|
+
namespace BulkDocs {
|
|
6118
|
+
interface Transport {
|
|
6119
|
+
docs: Document[];
|
|
6120
|
+
new_edits?: boolean;
|
|
6121
|
+
}
|
|
5941
6122
|
}
|
|
5942
6123
|
/** Schema for a document item in a bulk get query. */
|
|
5943
|
-
|
|
6124
|
+
class BulkGetQueryDocument {
|
|
5944
6125
|
/** Includes attachments only since specified revisions. */
|
|
5945
|
-
|
|
6126
|
+
attsSince?: string[];
|
|
5946
6127
|
/** Schema for a document ID. */
|
|
5947
6128
|
id: string;
|
|
5948
6129
|
/** Schema for a document revision identifier. */
|
|
5949
6130
|
rev?: string;
|
|
6131
|
+
static serialize(obj: any): BulkGetQueryDocument.Transport;
|
|
6132
|
+
static deserialize(obj: any): BulkGetQueryDocument;
|
|
6133
|
+
}
|
|
6134
|
+
namespace BulkGetQueryDocument {
|
|
6135
|
+
interface Transport {
|
|
6136
|
+
atts_since?: string[];
|
|
6137
|
+
id: string;
|
|
6138
|
+
rev?: string;
|
|
6139
|
+
}
|
|
5950
6140
|
}
|
|
5951
6141
|
/** Schema for the results object of a bulk get operation. */
|
|
5952
|
-
|
|
6142
|
+
class BulkGetResult {
|
|
5953
6143
|
/** Results. */
|
|
5954
6144
|
results: BulkGetResultItem[];
|
|
6145
|
+
static serialize(obj: any): BulkGetResult.Transport;
|
|
6146
|
+
static deserialize(obj: any): BulkGetResult;
|
|
6147
|
+
}
|
|
6148
|
+
namespace BulkGetResult {
|
|
6149
|
+
interface Transport {
|
|
6150
|
+
results: BulkGetResultItem[];
|
|
6151
|
+
}
|
|
5955
6152
|
}
|
|
5956
6153
|
/** Schema for BulkGetResult object containing a successfully retrieved document or error information. */
|
|
5957
|
-
|
|
6154
|
+
class BulkGetResultDocument {
|
|
5958
6155
|
/** Schema for the result of a document modification. */
|
|
5959
6156
|
error?: DocumentResult;
|
|
5960
6157
|
/** Schema for a document. */
|
|
5961
6158
|
ok?: Document;
|
|
6159
|
+
static serialize(obj: any): BulkGetResultDocument.Transport;
|
|
6160
|
+
static deserialize(obj: any): BulkGetResultDocument;
|
|
6161
|
+
}
|
|
6162
|
+
namespace BulkGetResultDocument {
|
|
6163
|
+
interface Transport {
|
|
6164
|
+
error?: DocumentResult.Transport;
|
|
6165
|
+
ok?: Document.Transport;
|
|
6166
|
+
}
|
|
5962
6167
|
}
|
|
5963
6168
|
/** Schema for the document revisions information from a bulk get operation. */
|
|
5964
|
-
|
|
6169
|
+
class BulkGetResultItem {
|
|
5965
6170
|
/** Array of document revisions or error information. */
|
|
5966
6171
|
docs: BulkGetResultDocument[];
|
|
5967
6172
|
/** Schema for a document ID. */
|
|
5968
6173
|
id: string;
|
|
6174
|
+
static serialize(obj: any): BulkGetResultItem.Transport;
|
|
6175
|
+
static deserialize(obj: any): BulkGetResultItem;
|
|
6176
|
+
}
|
|
6177
|
+
namespace BulkGetResultItem {
|
|
6178
|
+
interface Transport {
|
|
6179
|
+
docs: BulkGetResultDocument[];
|
|
6180
|
+
id: string;
|
|
6181
|
+
}
|
|
5969
6182
|
}
|
|
5970
6183
|
/** Schema for information about the currently provisioned and target throughput capacity. */
|
|
5971
|
-
|
|
6184
|
+
class CapacityThroughputInformation {
|
|
5972
6185
|
/** Detailed information about provisioned throughput capacity. */
|
|
5973
6186
|
current: CapacityThroughputInformationCurrent;
|
|
5974
6187
|
/** Detailed information about target throughput capacity. */
|
|
5975
6188
|
target?: CapacityThroughputInformationTarget;
|
|
6189
|
+
static serialize(obj: any): CapacityThroughputInformation.Transport;
|
|
6190
|
+
static deserialize(obj: any): CapacityThroughputInformation;
|
|
6191
|
+
}
|
|
6192
|
+
namespace CapacityThroughputInformation {
|
|
6193
|
+
interface Transport {
|
|
6194
|
+
current: CapacityThroughputInformationCurrent.Transport;
|
|
6195
|
+
target?: CapacityThroughputInformationTarget.Transport;
|
|
6196
|
+
}
|
|
5976
6197
|
}
|
|
5977
6198
|
/** Detailed information about provisioned throughput capacity. */
|
|
5978
|
-
|
|
6199
|
+
class CapacityThroughputInformationCurrent {
|
|
5979
6200
|
/** Schema for detailed information about throughput capacity with breakdown by specific throughput requests
|
|
5980
6201
|
* classes.
|
|
5981
6202
|
*/
|
|
5982
6203
|
throughput: ThroughputInformation;
|
|
6204
|
+
static serialize(obj: any): CapacityThroughputInformationCurrent.Transport;
|
|
6205
|
+
static deserialize(obj: any): CapacityThroughputInformationCurrent;
|
|
6206
|
+
}
|
|
6207
|
+
namespace CapacityThroughputInformationCurrent {
|
|
6208
|
+
interface Transport {
|
|
6209
|
+
throughput: ThroughputInformation.Transport;
|
|
6210
|
+
}
|
|
5983
6211
|
}
|
|
5984
6212
|
/** Detailed information about target throughput capacity. */
|
|
5985
|
-
|
|
6213
|
+
class CapacityThroughputInformationTarget {
|
|
5986
6214
|
/** Schema for detailed information about throughput capacity with breakdown by specific throughput requests
|
|
5987
6215
|
* classes.
|
|
5988
6216
|
*/
|
|
5989
6217
|
throughput: ThroughputInformation;
|
|
6218
|
+
static serialize(obj: any): CapacityThroughputInformationTarget.Transport;
|
|
6219
|
+
static deserialize(obj: any): CapacityThroughputInformationTarget;
|
|
6220
|
+
}
|
|
6221
|
+
namespace CapacityThroughputInformationTarget {
|
|
6222
|
+
interface Transport {
|
|
6223
|
+
throughput: ThroughputInformation.Transport;
|
|
6224
|
+
}
|
|
5990
6225
|
}
|
|
5991
6226
|
/** Schema for a document leaf with single field rev. */
|
|
5992
|
-
|
|
6227
|
+
class Change {
|
|
5993
6228
|
/** Schema for a document revision identifier. */
|
|
5994
6229
|
rev: string;
|
|
6230
|
+
static serialize(obj: any): Change.Transport;
|
|
6231
|
+
static deserialize(obj: any): Change;
|
|
6232
|
+
}
|
|
6233
|
+
namespace Change {
|
|
6234
|
+
interface Transport {
|
|
6235
|
+
rev: string;
|
|
6236
|
+
}
|
|
5995
6237
|
}
|
|
5996
6238
|
/** Schema for normal changes feed result. */
|
|
5997
|
-
|
|
6239
|
+
class ChangesResult {
|
|
5998
6240
|
/** last_seq. */
|
|
5999
|
-
|
|
6241
|
+
lastSeq: string;
|
|
6000
6242
|
/** pending. */
|
|
6001
6243
|
pending: number;
|
|
6002
6244
|
/** results. */
|
|
6003
6245
|
results: ChangesResultItem[];
|
|
6246
|
+
static serialize(obj: any): ChangesResult.Transport;
|
|
6247
|
+
static deserialize(obj: any): ChangesResult;
|
|
6248
|
+
}
|
|
6249
|
+
namespace ChangesResult {
|
|
6250
|
+
interface Transport {
|
|
6251
|
+
last_seq: string;
|
|
6252
|
+
pending: number;
|
|
6253
|
+
results: ChangesResultItem[];
|
|
6254
|
+
}
|
|
6004
6255
|
}
|
|
6005
6256
|
/** Schema for an item in the changes results array. */
|
|
6006
|
-
|
|
6257
|
+
class ChangesResultItem {
|
|
6007
6258
|
/** List of document's leaves with single field rev. */
|
|
6008
6259
|
changes: Change[];
|
|
6009
6260
|
/** if `true` then the document is deleted. */
|
|
@@ -6014,62 +6265,107 @@ declare namespace CloudantV1 {
|
|
|
6014
6265
|
id: string;
|
|
6015
6266
|
/** Update sequence. */
|
|
6016
6267
|
seq: string;
|
|
6268
|
+
static serialize(obj: any): ChangesResultItem.Transport;
|
|
6269
|
+
static deserialize(obj: any): ChangesResultItem;
|
|
6270
|
+
}
|
|
6271
|
+
namespace ChangesResultItem {
|
|
6272
|
+
interface Transport {
|
|
6273
|
+
changes: Change[];
|
|
6274
|
+
deleted?: boolean;
|
|
6275
|
+
doc?: Document.Transport;
|
|
6276
|
+
id: string;
|
|
6277
|
+
seq: string;
|
|
6278
|
+
}
|
|
6017
6279
|
}
|
|
6018
6280
|
/** Schema for size information of content. */
|
|
6019
|
-
|
|
6281
|
+
class ContentInformationSizes {
|
|
6020
6282
|
/** The active size of the content, in bytes. */
|
|
6021
6283
|
active: number;
|
|
6022
6284
|
/** The total uncompressed size of the content, in bytes. */
|
|
6023
6285
|
external: number;
|
|
6024
6286
|
/** The total size of the content as stored on disk, in bytes. */
|
|
6025
6287
|
file: number;
|
|
6288
|
+
static serialize(obj: any): ContentInformationSizes.Transport;
|
|
6289
|
+
static deserialize(obj: any): ContentInformationSizes;
|
|
6290
|
+
}
|
|
6291
|
+
namespace ContentInformationSizes {
|
|
6292
|
+
interface Transport {
|
|
6293
|
+
active: number;
|
|
6294
|
+
external: number;
|
|
6295
|
+
file: number;
|
|
6296
|
+
}
|
|
6026
6297
|
}
|
|
6027
6298
|
/** Schema for information about the CORS configuration. */
|
|
6028
|
-
|
|
6299
|
+
class CorsInformation {
|
|
6029
6300
|
/** Boolean value to allow authentication credentials. If set to true, browser requests must be done by using
|
|
6030
6301
|
* withCredentials = true.
|
|
6031
6302
|
*/
|
|
6032
|
-
|
|
6303
|
+
allowCredentials: boolean;
|
|
6033
6304
|
/** Boolean value to turn CORS on and off. */
|
|
6034
|
-
|
|
6305
|
+
enableCors: boolean;
|
|
6035
6306
|
/** An array of strings that contain allowed origin domains. You have to specify the full URL including the
|
|
6036
6307
|
* protocol. It is recommended that only the HTTPS protocol is used. Subdomains count as separate domains, so you
|
|
6037
6308
|
* have to specify all subdomains used.
|
|
6038
6309
|
*/
|
|
6039
6310
|
origins: string[];
|
|
6311
|
+
static serialize(obj: any): CorsInformation.Transport;
|
|
6312
|
+
static deserialize(obj: any): CorsInformation;
|
|
6313
|
+
}
|
|
6314
|
+
namespace CorsInformation {
|
|
6315
|
+
interface Transport {
|
|
6316
|
+
allow_credentials: boolean;
|
|
6317
|
+
enable_cors: boolean;
|
|
6318
|
+
origins: string[];
|
|
6319
|
+
}
|
|
6040
6320
|
}
|
|
6041
6321
|
/** Schema for information about current consumption of a provisioned throughput capacity. */
|
|
6042
|
-
|
|
6322
|
+
class CurrentThroughputInformation {
|
|
6043
6323
|
/** Detailed information about current consumption. */
|
|
6044
6324
|
throughput: CurrentThroughputInformationThroughput;
|
|
6325
|
+
static serialize(obj: any): CurrentThroughputInformation.Transport;
|
|
6326
|
+
static deserialize(obj: any): CurrentThroughputInformation;
|
|
6327
|
+
}
|
|
6328
|
+
namespace CurrentThroughputInformation {
|
|
6329
|
+
interface Transport {
|
|
6330
|
+
throughput: CurrentThroughputInformationThroughput.Transport;
|
|
6331
|
+
}
|
|
6045
6332
|
}
|
|
6046
6333
|
/** Detailed information about current consumption. */
|
|
6047
|
-
|
|
6334
|
+
class CurrentThroughputInformationThroughput {
|
|
6048
6335
|
/** Number of global queries conducted against the instance for a given second. */
|
|
6049
6336
|
query: number;
|
|
6050
6337
|
/** Number of reads conducted against the instance for a given second. */
|
|
6051
6338
|
read: number;
|
|
6052
6339
|
/** Number of writes conducted against the instance for a given second. */
|
|
6053
6340
|
write: number;
|
|
6341
|
+
static serialize(obj: any): CurrentThroughputInformationThroughput.Transport;
|
|
6342
|
+
static deserialize(obj: any): CurrentThroughputInformationThroughput;
|
|
6343
|
+
}
|
|
6344
|
+
namespace CurrentThroughputInformationThroughput {
|
|
6345
|
+
interface Transport {
|
|
6346
|
+
query: number;
|
|
6347
|
+
read: number;
|
|
6348
|
+
write: number;
|
|
6349
|
+
}
|
|
6054
6350
|
}
|
|
6055
6351
|
/** Schema for information about a database. */
|
|
6056
|
-
|
|
6352
|
+
class DatabaseInformation {
|
|
6057
6353
|
/** Schema for database cluster information. */
|
|
6058
6354
|
cluster: DatabaseInformationCluster;
|
|
6059
6355
|
/** An opaque string that describes the committed state of the database. */
|
|
6060
|
-
|
|
6356
|
+
committedUpdateSeq?: string;
|
|
6061
6357
|
/** True if the database compaction routine is operating on this database. */
|
|
6062
|
-
|
|
6358
|
+
compactRunning: boolean;
|
|
6063
6359
|
/** An opaque string that describes the compaction state of the database. */
|
|
6064
|
-
|
|
6360
|
+
compactedSeq?: string;
|
|
6065
6361
|
/** The name of the database. */
|
|
6066
|
-
|
|
6362
|
+
dbName: string;
|
|
6067
6363
|
/** The version of the physical format used for the data when it is stored on disk. */
|
|
6068
|
-
|
|
6364
|
+
diskFormatVersion: number;
|
|
6069
6365
|
/** A count of the documents in the specified database. */
|
|
6070
|
-
|
|
6366
|
+
docCount: number;
|
|
6071
6367
|
/** Number of deleted documents. */
|
|
6072
|
-
|
|
6368
|
+
docDelCount: number;
|
|
6073
6369
|
/** The engine used for the database. */
|
|
6074
6370
|
engine?: string;
|
|
6075
6371
|
/** Schema for database properties. */
|
|
@@ -6079,14 +6375,34 @@ declare namespace CloudantV1 {
|
|
|
6079
6375
|
/** An opaque string that describes the state of the database. Do not rely on this string for counting the
|
|
6080
6376
|
* number of updates.
|
|
6081
6377
|
*/
|
|
6082
|
-
|
|
6378
|
+
updateSeq: string;
|
|
6083
6379
|
/** The UUID of the database. */
|
|
6084
6380
|
uuid?: string;
|
|
6085
6381
|
/** Information about database's partitioned indexes. */
|
|
6086
|
-
|
|
6382
|
+
partitionedIndexes?: PartitionedIndexesInformation;
|
|
6383
|
+
static serialize(obj: any): DatabaseInformation.Transport;
|
|
6384
|
+
static deserialize(obj: any): DatabaseInformation;
|
|
6385
|
+
}
|
|
6386
|
+
namespace DatabaseInformation {
|
|
6387
|
+
interface Transport {
|
|
6388
|
+
cluster: DatabaseInformationCluster.Transport;
|
|
6389
|
+
committed_update_seq?: string;
|
|
6390
|
+
compact_running: boolean;
|
|
6391
|
+
compacted_seq?: string;
|
|
6392
|
+
db_name: string;
|
|
6393
|
+
disk_format_version: number;
|
|
6394
|
+
doc_count: number;
|
|
6395
|
+
doc_del_count: number;
|
|
6396
|
+
engine?: string;
|
|
6397
|
+
props: DatabaseInformationProps.Transport;
|
|
6398
|
+
sizes: ContentInformationSizes.Transport;
|
|
6399
|
+
update_seq: string;
|
|
6400
|
+
uuid?: string;
|
|
6401
|
+
partitioned_indexes?: PartitionedIndexesInformation.Transport;
|
|
6402
|
+
}
|
|
6087
6403
|
}
|
|
6088
6404
|
/** Schema for database cluster information. */
|
|
6089
|
-
|
|
6405
|
+
class DatabaseInformationCluster {
|
|
6090
6406
|
/** Schema for the number of replicas of a database in a cluster. The cluster is using the default value and it
|
|
6091
6407
|
* cannot be changed by the user.
|
|
6092
6408
|
*/
|
|
@@ -6097,20 +6413,39 @@ declare namespace CloudantV1 {
|
|
|
6097
6413
|
r: number;
|
|
6098
6414
|
/** Write quorum. The number of copies of a document that need to be written before a successful reply. */
|
|
6099
6415
|
w: number;
|
|
6416
|
+
static serialize(obj: any): DatabaseInformationCluster.Transport;
|
|
6417
|
+
static deserialize(obj: any): DatabaseInformationCluster;
|
|
6418
|
+
}
|
|
6419
|
+
namespace DatabaseInformationCluster {
|
|
6420
|
+
interface Transport {
|
|
6421
|
+
n: number;
|
|
6422
|
+
q: number;
|
|
6423
|
+
r: number;
|
|
6424
|
+
w: number;
|
|
6425
|
+
}
|
|
6100
6426
|
}
|
|
6101
6427
|
/** Schema for database properties. */
|
|
6102
|
-
|
|
6428
|
+
class DatabaseInformationProps {
|
|
6103
6429
|
/** The value is `true` for a partitioned database. */
|
|
6104
6430
|
partitioned?: boolean;
|
|
6431
|
+
static serialize(obj: any): DatabaseInformationProps.Transport;
|
|
6432
|
+
static deserialize(obj: any): DatabaseInformationProps;
|
|
6433
|
+
}
|
|
6434
|
+
namespace DatabaseInformationProps {
|
|
6435
|
+
interface Transport {
|
|
6436
|
+
partitioned?: boolean;
|
|
6437
|
+
}
|
|
6105
6438
|
}
|
|
6106
6439
|
/** Schema for a database change event. */
|
|
6107
|
-
|
|
6440
|
+
class DbEvent {
|
|
6108
6441
|
/** Database name. */
|
|
6109
|
-
|
|
6442
|
+
dbName: string;
|
|
6110
6443
|
/** Sequence number. */
|
|
6111
6444
|
seq: string;
|
|
6112
6445
|
/** A database event. */
|
|
6113
6446
|
type: DbEvent.Constants.Type | string;
|
|
6447
|
+
static serialize(obj: any): DbEvent.Transport;
|
|
6448
|
+
static deserialize(obj: any): DbEvent;
|
|
6114
6449
|
}
|
|
6115
6450
|
namespace DbEvent {
|
|
6116
6451
|
namespace Constants {
|
|
@@ -6121,34 +6456,58 @@ declare namespace CloudantV1 {
|
|
|
6121
6456
|
UPDATED = "updated"
|
|
6122
6457
|
}
|
|
6123
6458
|
}
|
|
6459
|
+
interface Transport {
|
|
6460
|
+
db_name: string;
|
|
6461
|
+
seq: string;
|
|
6462
|
+
type: string;
|
|
6463
|
+
}
|
|
6124
6464
|
}
|
|
6125
6465
|
/** Schema for database updates. */
|
|
6126
|
-
|
|
6466
|
+
class DbUpdates {
|
|
6127
6467
|
/** Last sequence number. */
|
|
6128
|
-
|
|
6468
|
+
lastSeq: string;
|
|
6129
6469
|
/** results. */
|
|
6130
6470
|
results: DbEvent[];
|
|
6471
|
+
static serialize(obj: any): DbUpdates.Transport;
|
|
6472
|
+
static deserialize(obj: any): DbUpdates;
|
|
6473
|
+
}
|
|
6474
|
+
namespace DbUpdates {
|
|
6475
|
+
interface Transport {
|
|
6476
|
+
last_seq: string;
|
|
6477
|
+
results: DbEvent[];
|
|
6478
|
+
}
|
|
6131
6479
|
}
|
|
6132
6480
|
/** Schema for database information keyed by database name. */
|
|
6133
|
-
|
|
6481
|
+
class DbsInfoResult {
|
|
6134
6482
|
/** The name of the error. */
|
|
6135
6483
|
error?: string;
|
|
6136
6484
|
/** Schema for information about a database. */
|
|
6137
6485
|
info?: DatabaseInformation;
|
|
6138
6486
|
/** Database name. */
|
|
6139
6487
|
key: string;
|
|
6488
|
+
static serialize(obj: any): DbsInfoResult.Transport;
|
|
6489
|
+
static deserialize(obj: any): DbsInfoResult;
|
|
6490
|
+
}
|
|
6491
|
+
namespace DbsInfoResult {
|
|
6492
|
+
interface Transport {
|
|
6493
|
+
error?: string;
|
|
6494
|
+
info?: DatabaseInformation.Transport;
|
|
6495
|
+
key: string;
|
|
6496
|
+
}
|
|
6140
6497
|
}
|
|
6141
6498
|
/** Schema for a design document. */
|
|
6142
|
-
|
|
6499
|
+
class DesignDocument {
|
|
6143
6500
|
/** Schema for a map of attachment name to attachment metadata. */
|
|
6144
|
-
_attachments?:
|
|
6501
|
+
_attachments?: {
|
|
6502
|
+
[key: string]: Attachment;
|
|
6503
|
+
};
|
|
6145
6504
|
/** Schema for a list of document revision identifiers. */
|
|
6146
6505
|
_conflicts?: string[];
|
|
6147
6506
|
/** Deletion flag. Available if document was removed. */
|
|
6148
6507
|
_deleted?: boolean;
|
|
6149
6508
|
/** Schema for a list of document revision identifiers. */
|
|
6150
6509
|
_deleted_conflicts?: string[];
|
|
6151
|
-
/**
|
|
6510
|
+
/** Schema for a design document ID. */
|
|
6152
6511
|
_id?: string;
|
|
6153
6512
|
/** Document's update sequence in current database. Available if requested with local_seq=true query parameter. */
|
|
6154
6513
|
_local_seq?: string;
|
|
@@ -6204,7 +6563,9 @@ declare namespace CloudantV1 {
|
|
|
6204
6563
|
*/
|
|
6205
6564
|
filters?: JsonObject;
|
|
6206
6565
|
/** Search (text) index function definitions. */
|
|
6207
|
-
indexes?:
|
|
6566
|
+
indexes?: {
|
|
6567
|
+
[key: string]: SearchIndexDefinition;
|
|
6568
|
+
};
|
|
6208
6569
|
/** Defines Query Server key to process design document functions. */
|
|
6209
6570
|
language?: string;
|
|
6210
6571
|
/** Schema for design document options. */
|
|
@@ -6235,32 +6596,79 @@ declare namespace CloudantV1 {
|
|
|
6235
6596
|
* * `secObj` - Security Object, with lists of database security roles,
|
|
6236
6597
|
* see the `SecurityObject`.
|
|
6237
6598
|
*/
|
|
6238
|
-
|
|
6599
|
+
validateDocUpdate?: string;
|
|
6239
6600
|
/** Schema for design document views. */
|
|
6240
|
-
views?:
|
|
6601
|
+
views?: {
|
|
6602
|
+
[key: string]: DesignDocumentViewsMapReduce;
|
|
6603
|
+
};
|
|
6241
6604
|
/** DesignDocument accepts additional properties. */
|
|
6242
6605
|
[propName: string]: any;
|
|
6606
|
+
static serialize(obj: any): DesignDocument.Transport;
|
|
6607
|
+
static deserialize(obj: any): DesignDocument;
|
|
6608
|
+
}
|
|
6609
|
+
namespace DesignDocument {
|
|
6610
|
+
interface Transport {
|
|
6611
|
+
_attachments?: {
|
|
6612
|
+
[key: string]: Attachment.Transport;
|
|
6613
|
+
};
|
|
6614
|
+
_conflicts?: string[];
|
|
6615
|
+
_deleted?: boolean;
|
|
6616
|
+
_deleted_conflicts?: string[];
|
|
6617
|
+
_id?: string;
|
|
6618
|
+
_local_seq?: string;
|
|
6619
|
+
_rev?: string;
|
|
6620
|
+
_revisions?: Revisions.Transport;
|
|
6621
|
+
_revs_info?: DocumentRevisionStatus[];
|
|
6622
|
+
autoupdate?: boolean;
|
|
6623
|
+
filters?: JsonObject;
|
|
6624
|
+
indexes?: {
|
|
6625
|
+
[key: string]: SearchIndexDefinition.Transport;
|
|
6626
|
+
};
|
|
6627
|
+
language?: string;
|
|
6628
|
+
options?: DesignDocumentOptions.Transport;
|
|
6629
|
+
validate_doc_update?: string;
|
|
6630
|
+
views?: {
|
|
6631
|
+
[key: string]: DesignDocumentViewsMapReduce.Transport;
|
|
6632
|
+
};
|
|
6633
|
+
/** DesignDocument.DesignDocument.Transport accepts additional properties. */
|
|
6634
|
+
[propName: string]: any;
|
|
6635
|
+
}
|
|
6243
6636
|
}
|
|
6244
6637
|
/** Schema for information about a design document. */
|
|
6245
|
-
|
|
6638
|
+
class DesignDocumentInformation {
|
|
6246
6639
|
/** name. */
|
|
6247
6640
|
name: string;
|
|
6248
6641
|
/** View index information. */
|
|
6249
|
-
|
|
6642
|
+
viewIndex: DesignDocumentViewIndex;
|
|
6643
|
+
static serialize(obj: any): DesignDocumentInformation.Transport;
|
|
6644
|
+
static deserialize(obj: any): DesignDocumentInformation;
|
|
6645
|
+
}
|
|
6646
|
+
namespace DesignDocumentInformation {
|
|
6647
|
+
interface Transport {
|
|
6648
|
+
name: string;
|
|
6649
|
+
view_index: DesignDocumentViewIndex.Transport;
|
|
6650
|
+
}
|
|
6250
6651
|
}
|
|
6251
6652
|
/** Schema for design document options. */
|
|
6252
|
-
|
|
6653
|
+
class DesignDocumentOptions {
|
|
6253
6654
|
/** Whether this design document describes partitioned or global indexes. */
|
|
6254
6655
|
partitioned?: boolean;
|
|
6656
|
+
static serialize(obj: any): DesignDocumentOptions.Transport;
|
|
6657
|
+
static deserialize(obj: any): DesignDocumentOptions;
|
|
6658
|
+
}
|
|
6659
|
+
namespace DesignDocumentOptions {
|
|
6660
|
+
interface Transport {
|
|
6661
|
+
partitioned?: boolean;
|
|
6662
|
+
}
|
|
6255
6663
|
}
|
|
6256
6664
|
/** View index information. */
|
|
6257
|
-
|
|
6665
|
+
class DesignDocumentViewIndex {
|
|
6258
6666
|
/** List of collator versions. If there are multiple entries this implies a libicu upgrade has occurred but
|
|
6259
6667
|
* compaction has not run yet.
|
|
6260
6668
|
*/
|
|
6261
|
-
|
|
6669
|
+
collatorVersions: string[];
|
|
6262
6670
|
/** Indicates whether a compaction routine is currently running on the view. */
|
|
6263
|
-
|
|
6671
|
+
compactRunning: boolean;
|
|
6264
6672
|
/** Language for the defined views. */
|
|
6265
6673
|
language: string;
|
|
6266
6674
|
/** MD5 signature of the views for the design document. */
|
|
@@ -6268,29 +6676,54 @@ declare namespace CloudantV1 {
|
|
|
6268
6676
|
/** Schema for size information of content. */
|
|
6269
6677
|
sizes: ContentInformationSizes;
|
|
6270
6678
|
/** Indicates if the view is currently being updated. */
|
|
6271
|
-
|
|
6679
|
+
updaterRunning: boolean;
|
|
6272
6680
|
/** Schema for an ability to tell if view is up-to-date without querying it. */
|
|
6273
|
-
|
|
6681
|
+
updatesPending: UpdatesPending;
|
|
6274
6682
|
/** Number of clients waiting on views from this design document. */
|
|
6275
|
-
|
|
6683
|
+
waitingClients: number;
|
|
6276
6684
|
/** Indicates if there are outstanding commits to the underlying database that need to processed. */
|
|
6277
|
-
|
|
6685
|
+
waitingCommit: boolean;
|
|
6686
|
+
static serialize(obj: any): DesignDocumentViewIndex.Transport;
|
|
6687
|
+
static deserialize(obj: any): DesignDocumentViewIndex;
|
|
6688
|
+
}
|
|
6689
|
+
namespace DesignDocumentViewIndex {
|
|
6690
|
+
interface Transport {
|
|
6691
|
+
collator_versions: string[];
|
|
6692
|
+
compact_running: boolean;
|
|
6693
|
+
language: string;
|
|
6694
|
+
signature: string;
|
|
6695
|
+
sizes: ContentInformationSizes.Transport;
|
|
6696
|
+
updater_running: boolean;
|
|
6697
|
+
updates_pending: UpdatesPending.Transport;
|
|
6698
|
+
waiting_clients: number;
|
|
6699
|
+
waiting_commit: boolean;
|
|
6700
|
+
}
|
|
6278
6701
|
}
|
|
6279
6702
|
/** Schema for view functions definition. */
|
|
6280
|
-
|
|
6703
|
+
class DesignDocumentViewsMapReduce {
|
|
6281
6704
|
/** JavaScript map function as a string. */
|
|
6282
6705
|
map: string;
|
|
6283
6706
|
/** JavaScript reduce function as a string. */
|
|
6284
6707
|
reduce?: string;
|
|
6708
|
+
static serialize(obj: any): DesignDocumentViewsMapReduce.Transport;
|
|
6709
|
+
static deserialize(obj: any): DesignDocumentViewsMapReduce;
|
|
6710
|
+
}
|
|
6711
|
+
namespace DesignDocumentViewsMapReduce {
|
|
6712
|
+
interface Transport {
|
|
6713
|
+
map: string;
|
|
6714
|
+
reduce?: string;
|
|
6715
|
+
}
|
|
6285
6716
|
}
|
|
6286
6717
|
/** Schema for a row of document information in a DocsResult. */
|
|
6287
|
-
|
|
6718
|
+
class DocsResultRow {
|
|
6288
6719
|
/** The cause of the error (if available). */
|
|
6289
|
-
|
|
6720
|
+
causedBy?: string;
|
|
6290
6721
|
/** The name of the error. */
|
|
6291
6722
|
error?: string;
|
|
6292
6723
|
/** The reason the error occurred (if available). */
|
|
6293
6724
|
reason?: string;
|
|
6725
|
+
/** An internal error reference (if available). */
|
|
6726
|
+
ref?: number;
|
|
6294
6727
|
/** Schema for a document. */
|
|
6295
6728
|
doc?: Document;
|
|
6296
6729
|
/** id. */
|
|
@@ -6299,25 +6732,49 @@ declare namespace CloudantV1 {
|
|
|
6299
6732
|
key: string;
|
|
6300
6733
|
/** Value of built-in `/_all_docs` style view. */
|
|
6301
6734
|
value?: DocsResultRowValue;
|
|
6735
|
+
static serialize(obj: any): DocsResultRow.Transport;
|
|
6736
|
+
static deserialize(obj: any): DocsResultRow;
|
|
6737
|
+
}
|
|
6738
|
+
namespace DocsResultRow {
|
|
6739
|
+
interface Transport {
|
|
6740
|
+
caused_by?: string;
|
|
6741
|
+
error?: string;
|
|
6742
|
+
reason?: string;
|
|
6743
|
+
ref?: number;
|
|
6744
|
+
doc?: Document.Transport;
|
|
6745
|
+
id?: string;
|
|
6746
|
+
key: string;
|
|
6747
|
+
value?: DocsResultRowValue.Transport;
|
|
6748
|
+
}
|
|
6302
6749
|
}
|
|
6303
6750
|
/** Value of built-in `/_all_docs` style view. */
|
|
6304
|
-
|
|
6751
|
+
class DocsResultRowValue {
|
|
6305
6752
|
/** If `true` then the document is deleted. Not present for undeleted documents. */
|
|
6306
6753
|
deleted?: boolean;
|
|
6307
6754
|
/** Schema for a document revision identifier. */
|
|
6308
6755
|
rev: string;
|
|
6756
|
+
static serialize(obj: any): DocsResultRowValue.Transport;
|
|
6757
|
+
static deserialize(obj: any): DocsResultRowValue;
|
|
6758
|
+
}
|
|
6759
|
+
namespace DocsResultRowValue {
|
|
6760
|
+
interface Transport {
|
|
6761
|
+
deleted?: boolean;
|
|
6762
|
+
rev: string;
|
|
6763
|
+
}
|
|
6309
6764
|
}
|
|
6310
6765
|
/** Schema for a document. */
|
|
6311
|
-
|
|
6766
|
+
class Document {
|
|
6312
6767
|
/** Schema for a map of attachment name to attachment metadata. */
|
|
6313
|
-
_attachments?:
|
|
6768
|
+
_attachments?: {
|
|
6769
|
+
[key: string]: Attachment;
|
|
6770
|
+
};
|
|
6314
6771
|
/** Schema for a list of document revision identifiers. */
|
|
6315
6772
|
_conflicts?: string[];
|
|
6316
6773
|
/** Deletion flag. Available if document was removed. */
|
|
6317
6774
|
_deleted?: boolean;
|
|
6318
6775
|
/** Schema for a list of document revision identifiers. */
|
|
6319
6776
|
_deleted_conflicts?: string[];
|
|
6320
|
-
/**
|
|
6777
|
+
/** Schema for a document ID. */
|
|
6321
6778
|
_id?: string;
|
|
6322
6779
|
/** Document's update sequence in current database. Available if requested with local_seq=true query parameter. */
|
|
6323
6780
|
_local_seq?: string;
|
|
@@ -6329,9 +6786,28 @@ declare namespace CloudantV1 {
|
|
|
6329
6786
|
_revs_info?: DocumentRevisionStatus[];
|
|
6330
6787
|
/** Document accepts additional properties. */
|
|
6331
6788
|
[propName: string]: any;
|
|
6789
|
+
static serialize(obj: any): Document.Transport;
|
|
6790
|
+
static deserialize(obj: any): Document;
|
|
6791
|
+
}
|
|
6792
|
+
namespace Document {
|
|
6793
|
+
interface Transport {
|
|
6794
|
+
_attachments?: {
|
|
6795
|
+
[key: string]: Attachment.Transport;
|
|
6796
|
+
};
|
|
6797
|
+
_conflicts?: string[];
|
|
6798
|
+
_deleted?: boolean;
|
|
6799
|
+
_deleted_conflicts?: string[];
|
|
6800
|
+
_id?: string;
|
|
6801
|
+
_local_seq?: string;
|
|
6802
|
+
_rev?: string;
|
|
6803
|
+
_revisions?: Revisions.Transport;
|
|
6804
|
+
_revs_info?: DocumentRevisionStatus[];
|
|
6805
|
+
/** Document.Document.Transport accepts additional properties. */
|
|
6806
|
+
[propName: string]: any;
|
|
6807
|
+
}
|
|
6332
6808
|
}
|
|
6333
6809
|
/** Schema for the result of a document modification. */
|
|
6334
|
-
|
|
6810
|
+
class DocumentResult {
|
|
6335
6811
|
/** Schema for a document ID. */
|
|
6336
6812
|
id: string;
|
|
6337
6813
|
/** Schema for a document revision identifier. */
|
|
@@ -6339,20 +6815,37 @@ declare namespace CloudantV1 {
|
|
|
6339
6815
|
/** ok. */
|
|
6340
6816
|
ok?: boolean;
|
|
6341
6817
|
/** The cause of the error (if available). */
|
|
6342
|
-
|
|
6818
|
+
causedBy?: string;
|
|
6343
6819
|
/** The name of the error. */
|
|
6344
6820
|
error?: string;
|
|
6345
6821
|
/** The reason the error occurred (if available). */
|
|
6346
6822
|
reason?: string;
|
|
6823
|
+
/** An internal error reference (if available). */
|
|
6824
|
+
ref?: number;
|
|
6825
|
+
static serialize(obj: any): DocumentResult.Transport;
|
|
6826
|
+
static deserialize(obj: any): DocumentResult;
|
|
6827
|
+
}
|
|
6828
|
+
namespace DocumentResult {
|
|
6829
|
+
interface Transport {
|
|
6830
|
+
id: string;
|
|
6831
|
+
rev?: string;
|
|
6832
|
+
ok?: boolean;
|
|
6833
|
+
caused_by?: string;
|
|
6834
|
+
error?: string;
|
|
6835
|
+
reason?: string;
|
|
6836
|
+
ref?: number;
|
|
6837
|
+
}
|
|
6347
6838
|
}
|
|
6348
6839
|
/** Schema for information about revisions and their status. */
|
|
6349
|
-
|
|
6840
|
+
class DocumentRevisionStatus {
|
|
6350
6841
|
/** Schema for a document revision identifier. */
|
|
6351
6842
|
rev: string;
|
|
6352
6843
|
/** Status of the revision. May be one of: - `available`: Revision is available for retrieving with rev query
|
|
6353
6844
|
* parameter - `missing`: Revision is not available - `deleted`: Revision belongs to deleted document.
|
|
6354
6845
|
*/
|
|
6355
6846
|
status: DocumentRevisionStatus.Constants.Status | string;
|
|
6847
|
+
static serialize(obj: any): DocumentRevisionStatus.Transport;
|
|
6848
|
+
static deserialize(obj: any): DocumentRevisionStatus;
|
|
6356
6849
|
}
|
|
6357
6850
|
namespace DocumentRevisionStatus {
|
|
6358
6851
|
namespace Constants {
|
|
@@ -6363,29 +6856,52 @@ declare namespace CloudantV1 {
|
|
|
6363
6856
|
DELETED = "deleted"
|
|
6364
6857
|
}
|
|
6365
6858
|
}
|
|
6859
|
+
interface Transport {
|
|
6860
|
+
rev: string;
|
|
6861
|
+
status: string;
|
|
6862
|
+
}
|
|
6366
6863
|
}
|
|
6367
6864
|
/** Schema for document shard information. */
|
|
6368
|
-
|
|
6865
|
+
class DocumentShardInfo {
|
|
6369
6866
|
/** List of nodes serving a replica of the shard. */
|
|
6370
6867
|
nodes: string[];
|
|
6371
6868
|
/** The shard range in which the document is stored. */
|
|
6372
6869
|
range: string;
|
|
6870
|
+
static serialize(obj: any): DocumentShardInfo.Transport;
|
|
6871
|
+
static deserialize(obj: any): DocumentShardInfo;
|
|
6872
|
+
}
|
|
6873
|
+
namespace DocumentShardInfo {
|
|
6874
|
+
interface Transport {
|
|
6875
|
+
nodes: string[];
|
|
6876
|
+
range: string;
|
|
6877
|
+
}
|
|
6373
6878
|
}
|
|
6374
6879
|
/** Schema for find query execution statistics. */
|
|
6375
|
-
|
|
6880
|
+
class ExecutionStats {
|
|
6376
6881
|
/** Time to execute the query. */
|
|
6377
|
-
|
|
6882
|
+
executionTimeMs: number;
|
|
6378
6883
|
/** Number of results returned. */
|
|
6379
|
-
|
|
6884
|
+
resultsReturned: number;
|
|
6380
6885
|
/** Number of documents fetched from the index. */
|
|
6381
|
-
|
|
6886
|
+
totalDocsExamined: number;
|
|
6382
6887
|
/** Number of rows scanned in the index. */
|
|
6383
|
-
|
|
6888
|
+
totalKeysExamined: number;
|
|
6384
6889
|
/** Number of documents fetched from the primary index with the specified read quorum. */
|
|
6385
|
-
|
|
6890
|
+
totalQuorumDocsExamined: number;
|
|
6891
|
+
static serialize(obj: any): ExecutionStats.Transport;
|
|
6892
|
+
static deserialize(obj: any): ExecutionStats;
|
|
6893
|
+
}
|
|
6894
|
+
namespace ExecutionStats {
|
|
6895
|
+
interface Transport {
|
|
6896
|
+
execution_time_ms: number;
|
|
6897
|
+
results_returned: number;
|
|
6898
|
+
total_docs_examined: number;
|
|
6899
|
+
total_keys_examined: number;
|
|
6900
|
+
total_quorum_docs_examined: number;
|
|
6901
|
+
}
|
|
6386
6902
|
}
|
|
6387
6903
|
/** Schema for information about the index used for a find query. */
|
|
6388
|
-
|
|
6904
|
+
class ExplainResult {
|
|
6389
6905
|
/** When `true`, the query is answered using the index only and no documents are fetched. */
|
|
6390
6906
|
covering: boolean;
|
|
6391
6907
|
/** Name of database. */
|
|
@@ -6396,6 +6912,8 @@ declare namespace CloudantV1 {
|
|
|
6396
6912
|
fields: string[];
|
|
6397
6913
|
/** Schema for information about an index. */
|
|
6398
6914
|
index: IndexInformation;
|
|
6915
|
+
/** Schema for the list of all the other indexes that were not chosen for serving the query. */
|
|
6916
|
+
indexCandidates?: IndexCandidate[];
|
|
6399
6917
|
/** The used maximum number of results returned. */
|
|
6400
6918
|
limit: number;
|
|
6401
6919
|
/** Arguments passed to the underlying view. */
|
|
@@ -6433,23 +6951,43 @@ declare namespace CloudantV1 {
|
|
|
6433
6951
|
* [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
|
|
6434
6952
|
*/
|
|
6435
6953
|
selector: JsonObject;
|
|
6954
|
+
/** Schema for a list of objects with extra information on the selector to provide insights about its usability. */
|
|
6955
|
+
selectorHints?: SelectorHint[];
|
|
6436
6956
|
/** Skip parameter used. */
|
|
6437
6957
|
skip: number;
|
|
6958
|
+
static serialize(obj: any): ExplainResult.Transport;
|
|
6959
|
+
static deserialize(obj: any): ExplainResult;
|
|
6960
|
+
}
|
|
6961
|
+
namespace ExplainResult {
|
|
6962
|
+
interface Transport {
|
|
6963
|
+
covering: boolean;
|
|
6964
|
+
dbname: string;
|
|
6965
|
+
fields: string[];
|
|
6966
|
+
index: IndexInformation.Transport;
|
|
6967
|
+
index_candidates?: IndexCandidate[];
|
|
6968
|
+
limit: number;
|
|
6969
|
+
mrargs?: ExplainResultMrArgs.Transport;
|
|
6970
|
+
opts: ExplainResultOpts.Transport;
|
|
6971
|
+
partitioned?: any;
|
|
6972
|
+
selector: JsonObject;
|
|
6973
|
+
selector_hints?: SelectorHint[];
|
|
6974
|
+
skip: number;
|
|
6975
|
+
}
|
|
6438
6976
|
}
|
|
6439
6977
|
/** Arguments passed to the underlying view. */
|
|
6440
|
-
|
|
6978
|
+
class ExplainResultMrArgs {
|
|
6441
6979
|
/** Schema for any JSON type. */
|
|
6442
6980
|
conflicts?: any;
|
|
6443
6981
|
/** Direction parameter passed to the underlying view. */
|
|
6444
6982
|
direction?: string;
|
|
6445
6983
|
/** Schema for any JSON type. */
|
|
6446
|
-
|
|
6984
|
+
endKey?: any;
|
|
6447
6985
|
/** A parameter that specifies whether to include the full content of the documents in the response in the
|
|
6448
6986
|
* underlying view.
|
|
6449
6987
|
*/
|
|
6450
|
-
|
|
6988
|
+
includeDocs?: boolean;
|
|
6451
6989
|
/** Partition parameter passed to the underlying view. */
|
|
6452
|
-
partition?: string;
|
|
6990
|
+
partition?: string | null;
|
|
6453
6991
|
/** A parameter that specifies returning only documents that match any of the specified keys in the underlying
|
|
6454
6992
|
* view.
|
|
6455
6993
|
*/
|
|
@@ -6459,11 +6997,13 @@ declare namespace CloudantV1 {
|
|
|
6459
6997
|
*/
|
|
6460
6998
|
stable?: boolean;
|
|
6461
6999
|
/** Schema for any JSON type. */
|
|
6462
|
-
|
|
7000
|
+
startKey?: any;
|
|
6463
7001
|
/** Schema for any JSON type. */
|
|
6464
7002
|
update?: any;
|
|
6465
7003
|
/** The type of the underlying view. */
|
|
6466
|
-
|
|
7004
|
+
viewType?: ExplainResultMrArgs.Constants.ViewType | string;
|
|
7005
|
+
static serialize(obj: any): ExplainResultMrArgs.Transport;
|
|
7006
|
+
static deserialize(obj: any): ExplainResultMrArgs;
|
|
6467
7007
|
}
|
|
6468
7008
|
namespace ExplainResultMrArgs {
|
|
6469
7009
|
namespace Constants {
|
|
@@ -6473,15 +7013,27 @@ declare namespace CloudantV1 {
|
|
|
6473
7013
|
REDUCE = "reduce"
|
|
6474
7014
|
}
|
|
6475
7015
|
}
|
|
7016
|
+
interface Transport {
|
|
7017
|
+
conflicts?: any;
|
|
7018
|
+
direction?: string;
|
|
7019
|
+
end_key?: any;
|
|
7020
|
+
include_docs?: boolean;
|
|
7021
|
+
partition?: string;
|
|
7022
|
+
reduce?: boolean;
|
|
7023
|
+
stable?: boolean;
|
|
7024
|
+
start_key?: any;
|
|
7025
|
+
update?: any;
|
|
7026
|
+
view_type?: string;
|
|
7027
|
+
}
|
|
6476
7028
|
}
|
|
6477
7029
|
/** Options used for the request. */
|
|
6478
|
-
|
|
7030
|
+
class ExplainResultOpts {
|
|
6479
7031
|
/** Opaque bookmark token used when paginating results. */
|
|
6480
7032
|
bookmark: string;
|
|
6481
7033
|
/** Conflicts used in the request query. */
|
|
6482
7034
|
conflicts: boolean;
|
|
6483
7035
|
/** Execution statistics used in the request query. */
|
|
6484
|
-
|
|
7036
|
+
executionStats: boolean;
|
|
6485
7037
|
/** JSON array that uses the field syntax. Use this parameter to specify which fields of a document must be
|
|
6486
7038
|
* returned. If it is omitted or empty, the entire document is returned.
|
|
6487
7039
|
*/
|
|
@@ -6505,27 +7057,138 @@ declare namespace CloudantV1 {
|
|
|
6505
7057
|
/** Update used in the request query. */
|
|
6506
7058
|
update: boolean;
|
|
6507
7059
|
/** Use index used in the request query. */
|
|
6508
|
-
|
|
7060
|
+
useIndex: string[];
|
|
7061
|
+
static serialize(obj: any): ExplainResultOpts.Transport;
|
|
7062
|
+
static deserialize(obj: any): ExplainResultOpts;
|
|
7063
|
+
}
|
|
7064
|
+
namespace ExplainResultOpts {
|
|
7065
|
+
interface Transport {
|
|
7066
|
+
bookmark: string;
|
|
7067
|
+
conflicts: boolean;
|
|
7068
|
+
execution_stats: boolean;
|
|
7069
|
+
fields: string[];
|
|
7070
|
+
limit: number;
|
|
7071
|
+
partition: string;
|
|
7072
|
+
r: number;
|
|
7073
|
+
skip: number;
|
|
7074
|
+
sort: any;
|
|
7075
|
+
stable: boolean;
|
|
7076
|
+
stale: boolean;
|
|
7077
|
+
update: boolean;
|
|
7078
|
+
use_index: string[];
|
|
7079
|
+
}
|
|
6509
7080
|
}
|
|
6510
7081
|
/** Schema for the result of a query find operation. */
|
|
6511
|
-
|
|
7082
|
+
class FindResult {
|
|
6512
7083
|
/** Opaque bookmark token used when paginating results. */
|
|
6513
7084
|
bookmark: string;
|
|
6514
7085
|
/** Documents matching the selector. */
|
|
6515
7086
|
docs: Document[];
|
|
6516
7087
|
/** Schema for find query execution statistics. */
|
|
6517
|
-
|
|
7088
|
+
executionStats?: ExecutionStats;
|
|
6518
7089
|
/** warning. */
|
|
6519
7090
|
warning?: string;
|
|
7091
|
+
static serialize(obj: any): FindResult.Transport;
|
|
7092
|
+
static deserialize(obj: any): FindResult;
|
|
7093
|
+
}
|
|
7094
|
+
namespace FindResult {
|
|
7095
|
+
interface Transport {
|
|
7096
|
+
bookmark: string;
|
|
7097
|
+
docs: Document[];
|
|
7098
|
+
execution_stats?: ExecutionStats.Transport;
|
|
7099
|
+
warning?: string;
|
|
7100
|
+
}
|
|
7101
|
+
}
|
|
7102
|
+
/** Schema for detailed explanation of why the specific index was excluded by the query planner. */
|
|
7103
|
+
class IndexAnalysis {
|
|
7104
|
+
/** When `true`, the query is answered using the index only and no documents are fetched. */
|
|
7105
|
+
covering: boolean | null;
|
|
7106
|
+
/** A position of the unused index based on its potential relevance to the query. */
|
|
7107
|
+
ranking: number;
|
|
7108
|
+
/** A list of reasons explaining why index was not chosen for the query. */
|
|
7109
|
+
reasons: IndexAnalysisExclusionReason[];
|
|
7110
|
+
/** Indicates whether an index can still be used for the query. */
|
|
7111
|
+
usable: boolean;
|
|
7112
|
+
static serialize(obj: any): IndexAnalysis.Transport;
|
|
7113
|
+
static deserialize(obj: any): IndexAnalysis;
|
|
7114
|
+
}
|
|
7115
|
+
namespace IndexAnalysis {
|
|
7116
|
+
interface Transport {
|
|
7117
|
+
covering: boolean;
|
|
7118
|
+
ranking: number;
|
|
7119
|
+
reasons: IndexAnalysisExclusionReason[];
|
|
7120
|
+
usable: boolean;
|
|
7121
|
+
}
|
|
7122
|
+
}
|
|
7123
|
+
/** A reason for index's exclusion. */
|
|
7124
|
+
class IndexAnalysisExclusionReason {
|
|
7125
|
+
/** A reason code for index's exclusion.
|
|
7126
|
+
*
|
|
7127
|
+
* The full list of possible reason codes is following:
|
|
7128
|
+
*
|
|
7129
|
+
* * alphabetically_comes_after: json
|
|
7130
|
+
* There is another suitable index whose name comes before that of this index.
|
|
7131
|
+
* * empty_selector: text
|
|
7132
|
+
* "text" indexes do not support queries with empty selectors.
|
|
7133
|
+
* * excluded_by_user: any use_index was used to manually specify the index.
|
|
7134
|
+
* * field_mismatch: any Fields in "selector" of the query do match with the fields available in the index.
|
|
7135
|
+
* * is_partial: json, text Partial indexes can be selected only manually.
|
|
7136
|
+
* * less_overlap: json There is a better match of fields available within the indexes for the query.
|
|
7137
|
+
* * needs_text_search: json The use of the $text operator requires a "text" index.
|
|
7138
|
+
* * scope_mismatch: json The scope of the query and the index is not the same.
|
|
7139
|
+
* * sort_order_mismatch: json, special Fields in "sort" of the query do not match with the fields available in the
|
|
7140
|
+
* index.
|
|
7141
|
+
* * too_many_fields: json The index has more fields than the chosen one.
|
|
7142
|
+
* * unfavored_type: any The type of the index is not preferred.
|
|
7143
|
+
*/
|
|
7144
|
+
name?: IndexAnalysisExclusionReason.Constants.Name | string;
|
|
7145
|
+
static serialize(obj: any): IndexAnalysisExclusionReason.Transport;
|
|
7146
|
+
static deserialize(obj: any): IndexAnalysisExclusionReason;
|
|
7147
|
+
}
|
|
7148
|
+
namespace IndexAnalysisExclusionReason {
|
|
7149
|
+
namespace Constants {
|
|
7150
|
+
/** 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. */
|
|
7151
|
+
enum Name {
|
|
7152
|
+
ALPHABETICALLY_COMES_AFTER = "alphabetically_comes_after",
|
|
7153
|
+
EMPTY_SELECTOR = "empty_selector",
|
|
7154
|
+
EXCLUDED_BY_USER = "excluded_by_user",
|
|
7155
|
+
FIELD_MISMATCH = "field_mismatch",
|
|
7156
|
+
IS_PARTIAL = "is_partial",
|
|
7157
|
+
LESS_OVERLAP = "less_overlap",
|
|
7158
|
+
NEEDS_TEXT_SEARCH = "needs_text_search",
|
|
7159
|
+
SCOPE_MISMATCH = "scope_mismatch",
|
|
7160
|
+
SORT_ORDER_MISMATCH = "sort_order_mismatch",
|
|
7161
|
+
TOO_MANY_FIELDS = "too_many_fields",
|
|
7162
|
+
UNFAVORED_TYPE = "unfavored_type"
|
|
7163
|
+
}
|
|
7164
|
+
}
|
|
7165
|
+
interface Transport {
|
|
7166
|
+
name?: string;
|
|
7167
|
+
}
|
|
7168
|
+
}
|
|
7169
|
+
/** Schema for an index that was not chosen for serving the query with the reason for the exclusion. */
|
|
7170
|
+
class IndexCandidate {
|
|
7171
|
+
/** Schema for detailed explanation of why the specific index was excluded by the query planner. */
|
|
7172
|
+
analysis: IndexAnalysis;
|
|
7173
|
+
/** Schema for information about an index. */
|
|
7174
|
+
index: IndexInformation;
|
|
7175
|
+
static serialize(obj: any): IndexCandidate.Transport;
|
|
7176
|
+
static deserialize(obj: any): IndexCandidate;
|
|
7177
|
+
}
|
|
7178
|
+
namespace IndexCandidate {
|
|
7179
|
+
interface Transport {
|
|
7180
|
+
analysis: IndexAnalysis.Transport;
|
|
7181
|
+
index: IndexInformation.Transport;
|
|
7182
|
+
}
|
|
6520
7183
|
}
|
|
6521
7184
|
/** 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. */
|
|
6522
|
-
|
|
7185
|
+
class IndexDefinition {
|
|
6523
7186
|
/** Schema for a full text search analyzer. */
|
|
6524
|
-
|
|
7187
|
+
defaultAnalyzer?: Analyzer;
|
|
6525
7188
|
/** Schema for the text index default field configuration. The default field is used to index the text of all
|
|
6526
7189
|
* fields within a document for use with the `$text` operator.
|
|
6527
7190
|
*/
|
|
6528
|
-
|
|
7191
|
+
defaultField?: IndexTextOperatorDefaultField;
|
|
6529
7192
|
/** List of field objects to index. Nested fields are also allowed, e.g. `person.name`.
|
|
6530
7193
|
*
|
|
6531
7194
|
* For "json" type indexes each object is a mapping of field name to sort direction (asc or desc).
|
|
@@ -6540,7 +7203,7 @@ declare namespace CloudantV1 {
|
|
|
6540
7203
|
* database are complex, or not completely under your control. As a result, it is difficult to estimate the impact
|
|
6541
7204
|
* of the extra processing that is needed to determine and store the arrays lengths.
|
|
6542
7205
|
*/
|
|
6543
|
-
|
|
7206
|
+
indexArrayLengths?: boolean;
|
|
6544
7207
|
/** JSON object describing criteria used to select documents. The selector specifies fields in the document, and
|
|
6545
7208
|
* provides an expression to evaluate with the field content or other data.
|
|
6546
7209
|
*
|
|
@@ -6569,16 +7232,29 @@ declare namespace CloudantV1 {
|
|
|
6569
7232
|
* For further reference see
|
|
6570
7233
|
* [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
|
|
6571
7234
|
*/
|
|
6572
|
-
|
|
7235
|
+
partialFilterSelector?: JsonObject;
|
|
7236
|
+
static serialize(obj: any): IndexDefinition.Transport;
|
|
7237
|
+
static deserialize(obj: any): IndexDefinition;
|
|
7238
|
+
}
|
|
7239
|
+
namespace IndexDefinition {
|
|
7240
|
+
interface Transport {
|
|
7241
|
+
default_analyzer?: Analyzer.Transport;
|
|
7242
|
+
default_field?: IndexTextOperatorDefaultField.Transport;
|
|
7243
|
+
fields?: IndexField[];
|
|
7244
|
+
index_array_lengths?: boolean;
|
|
7245
|
+
partial_filter_selector?: JsonObject;
|
|
7246
|
+
}
|
|
6573
7247
|
}
|
|
6574
7248
|
/** Schema for indexed fields for use with declarative JSON query. */
|
|
6575
|
-
|
|
7249
|
+
class IndexField {
|
|
6576
7250
|
/** Name of the field. */
|
|
6577
7251
|
name?: string;
|
|
6578
7252
|
/** The type of the named field. */
|
|
6579
7253
|
type?: IndexField.Constants.Type | string;
|
|
6580
7254
|
/** IndexField accepts additional properties. */
|
|
6581
7255
|
[propName: string]: any;
|
|
7256
|
+
static serialize(obj: any): IndexField.Transport;
|
|
7257
|
+
static deserialize(obj: any): IndexField;
|
|
6582
7258
|
}
|
|
6583
7259
|
namespace IndexField {
|
|
6584
7260
|
namespace Constants {
|
|
@@ -6589,11 +7265,17 @@ declare namespace CloudantV1 {
|
|
|
6589
7265
|
STRING = "string"
|
|
6590
7266
|
}
|
|
6591
7267
|
}
|
|
7268
|
+
interface Transport {
|
|
7269
|
+
name?: string;
|
|
7270
|
+
type?: string;
|
|
7271
|
+
/** IndexField.IndexField.Transport accepts additional properties. */
|
|
7272
|
+
[propName: string]: any;
|
|
7273
|
+
}
|
|
6592
7274
|
}
|
|
6593
7275
|
/** Schema for information about an index. */
|
|
6594
|
-
|
|
7276
|
+
class IndexInformation {
|
|
6595
7277
|
/** Design document ID including a `_design/` prefix. */
|
|
6596
|
-
ddoc: string;
|
|
7278
|
+
ddoc: string | null;
|
|
6597
7279
|
/** Schema for a `json` or `text` query index definition. Indexes of type `text` have additional configuration
|
|
6598
7280
|
* properties that do not apply to `json` indexes, these are:
|
|
6599
7281
|
* * `default_analyzer` - the default text analyzer to use * `default_field` - whether to index the text in all
|
|
@@ -6606,6 +7288,8 @@ declare namespace CloudantV1 {
|
|
|
6606
7288
|
partitioned?: boolean;
|
|
6607
7289
|
/** Schema for the type of an index. */
|
|
6608
7290
|
type: IndexInformation.Constants.Type | string;
|
|
7291
|
+
static serialize(obj: any): IndexInformation.Transport;
|
|
7292
|
+
static deserialize(obj: any): IndexInformation;
|
|
6609
7293
|
}
|
|
6610
7294
|
namespace IndexInformation {
|
|
6611
7295
|
namespace Constants {
|
|
@@ -6616,15 +7300,24 @@ declare namespace CloudantV1 {
|
|
|
6616
7300
|
TEXT = "text"
|
|
6617
7301
|
}
|
|
6618
7302
|
}
|
|
7303
|
+
interface Transport {
|
|
7304
|
+
ddoc: string;
|
|
7305
|
+
def: IndexDefinition.Transport;
|
|
7306
|
+
name: string;
|
|
7307
|
+
partitioned?: boolean;
|
|
7308
|
+
type: string;
|
|
7309
|
+
}
|
|
6619
7310
|
}
|
|
6620
7311
|
/** Schema for the result of creating an index. */
|
|
6621
|
-
|
|
7312
|
+
class IndexResult {
|
|
6622
7313
|
/** Id of the design document the index was created in. */
|
|
6623
7314
|
id: string;
|
|
6624
7315
|
/** Name of the index created. */
|
|
6625
7316
|
name: string;
|
|
6626
7317
|
/** Flag to show whether the index was created or one already exists. */
|
|
6627
7318
|
result: IndexResult.Constants.Result | string;
|
|
7319
|
+
static serialize(obj: any): IndexResult.Transport;
|
|
7320
|
+
static deserialize(obj: any): IndexResult;
|
|
6628
7321
|
}
|
|
6629
7322
|
namespace IndexResult {
|
|
6630
7323
|
namespace Constants {
|
|
@@ -6634,89 +7327,179 @@ declare namespace CloudantV1 {
|
|
|
6634
7327
|
EXISTS = "exists"
|
|
6635
7328
|
}
|
|
6636
7329
|
}
|
|
7330
|
+
interface Transport {
|
|
7331
|
+
id: string;
|
|
7332
|
+
name: string;
|
|
7333
|
+
result: string;
|
|
7334
|
+
}
|
|
6637
7335
|
}
|
|
6638
7336
|
/** Schema for the text index default field configuration. The default field is used to index the text of all fields within a document for use with the `$text` operator. */
|
|
6639
|
-
|
|
7337
|
+
class IndexTextOperatorDefaultField {
|
|
6640
7338
|
/** Schema for a full text search analyzer. */
|
|
6641
7339
|
analyzer?: Analyzer;
|
|
6642
7340
|
/** Whether or not the default_field is enabled. */
|
|
6643
7341
|
enabled?: boolean;
|
|
7342
|
+
static serialize(obj: any): IndexTextOperatorDefaultField.Transport;
|
|
7343
|
+
static deserialize(obj: any): IndexTextOperatorDefaultField;
|
|
7344
|
+
}
|
|
7345
|
+
namespace IndexTextOperatorDefaultField {
|
|
7346
|
+
interface Transport {
|
|
7347
|
+
analyzer?: Analyzer.Transport;
|
|
7348
|
+
enabled?: boolean;
|
|
7349
|
+
}
|
|
6644
7350
|
}
|
|
6645
7351
|
/** Schema for information about the indexes in a database. */
|
|
6646
|
-
|
|
7352
|
+
class IndexesInformation {
|
|
6647
7353
|
/** Number of total rows. */
|
|
6648
|
-
|
|
7354
|
+
totalRows: number;
|
|
6649
7355
|
/** Indexes. */
|
|
6650
7356
|
indexes: IndexInformation[];
|
|
7357
|
+
static serialize(obj: any): IndexesInformation.Transport;
|
|
7358
|
+
static deserialize(obj: any): IndexesInformation;
|
|
7359
|
+
}
|
|
7360
|
+
namespace IndexesInformation {
|
|
7361
|
+
interface Transport {
|
|
7362
|
+
total_rows: number;
|
|
7363
|
+
indexes: IndexInformation[];
|
|
7364
|
+
}
|
|
6651
7365
|
}
|
|
6652
7366
|
/** Schema for information about known nodes and cluster membership. */
|
|
6653
|
-
|
|
7367
|
+
class MembershipInformation {
|
|
6654
7368
|
/** List of nodes this node knows about, including the ones that are part of the cluster. */
|
|
6655
|
-
|
|
7369
|
+
allNodes: string[];
|
|
6656
7370
|
/** All cluster nodes. */
|
|
6657
|
-
|
|
7371
|
+
clusterNodes: string[];
|
|
7372
|
+
static serialize(obj: any): MembershipInformation.Transport;
|
|
7373
|
+
static deserialize(obj: any): MembershipInformation;
|
|
7374
|
+
}
|
|
7375
|
+
namespace MembershipInformation {
|
|
7376
|
+
interface Transport {
|
|
7377
|
+
all_nodes: string[];
|
|
7378
|
+
cluster_nodes: string[];
|
|
7379
|
+
}
|
|
6658
7380
|
}
|
|
6659
7381
|
/** Schema for an OK result. */
|
|
6660
|
-
|
|
7382
|
+
class Ok {
|
|
6661
7383
|
/** ok. */
|
|
6662
7384
|
ok?: boolean;
|
|
7385
|
+
static serialize(obj: any): Ok.Transport;
|
|
7386
|
+
static deserialize(obj: any): Ok;
|
|
7387
|
+
}
|
|
7388
|
+
namespace Ok {
|
|
7389
|
+
interface Transport {
|
|
7390
|
+
ok?: boolean;
|
|
7391
|
+
}
|
|
6663
7392
|
}
|
|
6664
7393
|
/** Schema for information about a database partition. */
|
|
6665
|
-
|
|
7394
|
+
class PartitionInformation {
|
|
6666
7395
|
/** The name of the database. */
|
|
6667
|
-
|
|
7396
|
+
dbName: string;
|
|
6668
7397
|
/** A count of the documents in the specified database partition. */
|
|
6669
|
-
|
|
7398
|
+
docCount: number;
|
|
6670
7399
|
/** Number of deleted documents. */
|
|
6671
|
-
|
|
7400
|
+
docDelCount: number;
|
|
6672
7401
|
/** The name of the partition in the database. */
|
|
6673
7402
|
partition: string;
|
|
6674
7403
|
/** Schema for information about the partition index count and limit in a database. */
|
|
6675
|
-
|
|
7404
|
+
partitionedIndexes?: PartitionInformationIndexes;
|
|
6676
7405
|
/** The size of active and external data, in bytes. */
|
|
6677
7406
|
sizes: PartitionInformationSizes;
|
|
7407
|
+
static serialize(obj: any): PartitionInformation.Transport;
|
|
7408
|
+
static deserialize(obj: any): PartitionInformation;
|
|
7409
|
+
}
|
|
7410
|
+
namespace PartitionInformation {
|
|
7411
|
+
interface Transport {
|
|
7412
|
+
db_name: string;
|
|
7413
|
+
doc_count: number;
|
|
7414
|
+
doc_del_count: number;
|
|
7415
|
+
partition: string;
|
|
7416
|
+
partitioned_indexes?: PartitionInformationIndexes.Transport;
|
|
7417
|
+
sizes: PartitionInformationSizes.Transport;
|
|
7418
|
+
}
|
|
6678
7419
|
}
|
|
6679
7420
|
/** Schema for information about the partition index count and limit in a database. */
|
|
6680
|
-
|
|
7421
|
+
class PartitionInformationIndexes {
|
|
6681
7422
|
/** Total count of the partitioned indexes. */
|
|
6682
7423
|
count?: number;
|
|
6683
7424
|
/** The count breakdown of partitioned indexes. */
|
|
6684
7425
|
indexes?: PartitionInformationIndexesIndexes;
|
|
6685
7426
|
/** The partitioned index limit. */
|
|
6686
7427
|
limit?: number;
|
|
7428
|
+
static serialize(obj: any): PartitionInformationIndexes.Transport;
|
|
7429
|
+
static deserialize(obj: any): PartitionInformationIndexes;
|
|
7430
|
+
}
|
|
7431
|
+
namespace PartitionInformationIndexes {
|
|
7432
|
+
interface Transport {
|
|
7433
|
+
count?: number;
|
|
7434
|
+
indexes?: PartitionInformationIndexesIndexes.Transport;
|
|
7435
|
+
limit?: number;
|
|
7436
|
+
}
|
|
6687
7437
|
}
|
|
6688
7438
|
/** The count breakdown of partitioned indexes. */
|
|
6689
|
-
|
|
7439
|
+
class PartitionInformationIndexesIndexes {
|
|
6690
7440
|
/** Number of partitioned search indexes. */
|
|
6691
7441
|
search?: number;
|
|
6692
7442
|
/** Number of partitioned view indexes. */
|
|
6693
7443
|
view?: number;
|
|
7444
|
+
static serialize(obj: any): PartitionInformationIndexesIndexes.Transport;
|
|
7445
|
+
static deserialize(obj: any): PartitionInformationIndexesIndexes;
|
|
7446
|
+
}
|
|
7447
|
+
namespace PartitionInformationIndexesIndexes {
|
|
7448
|
+
interface Transport {
|
|
7449
|
+
search?: number;
|
|
7450
|
+
view?: number;
|
|
7451
|
+
}
|
|
6694
7452
|
}
|
|
6695
7453
|
/** The size of active and external data, in bytes. */
|
|
6696
|
-
|
|
7454
|
+
class PartitionInformationSizes {
|
|
6697
7455
|
/** The size of live data inside the database, in bytes. */
|
|
6698
7456
|
active?: number;
|
|
6699
7457
|
/** The uncompressed size of database contents in bytes. */
|
|
6700
7458
|
external?: number;
|
|
7459
|
+
static serialize(obj: any): PartitionInformationSizes.Transport;
|
|
7460
|
+
static deserialize(obj: any): PartitionInformationSizes;
|
|
7461
|
+
}
|
|
7462
|
+
namespace PartitionInformationSizes {
|
|
7463
|
+
interface Transport {
|
|
7464
|
+
active?: number;
|
|
7465
|
+
external?: number;
|
|
7466
|
+
}
|
|
6701
7467
|
}
|
|
6702
7468
|
/** Number of partitioned indexes by type. */
|
|
6703
|
-
|
|
7469
|
+
class PartitionedIndexesDetailedInformation {
|
|
6704
7470
|
/** Number of partitioned indexes of search type. */
|
|
6705
7471
|
search?: number;
|
|
6706
7472
|
/** Number of partitioned indexes of view type. */
|
|
6707
7473
|
view?: number;
|
|
7474
|
+
static serialize(obj: any): PartitionedIndexesDetailedInformation.Transport;
|
|
7475
|
+
static deserialize(obj: any): PartitionedIndexesDetailedInformation;
|
|
7476
|
+
}
|
|
7477
|
+
namespace PartitionedIndexesDetailedInformation {
|
|
7478
|
+
interface Transport {
|
|
7479
|
+
search?: number;
|
|
7480
|
+
view?: number;
|
|
7481
|
+
}
|
|
6708
7482
|
}
|
|
6709
7483
|
/** Information about database's partitioned indexes. */
|
|
6710
|
-
|
|
7484
|
+
class PartitionedIndexesInformation {
|
|
6711
7485
|
/** Total number of partitioned indexes in the database. */
|
|
6712
7486
|
count?: number;
|
|
6713
7487
|
/** Number of partitioned indexes by type. */
|
|
6714
7488
|
indexes?: PartitionedIndexesDetailedInformation;
|
|
6715
7489
|
/** Maximum allowed number of partitioned indexes in the database. */
|
|
6716
7490
|
limit?: number;
|
|
7491
|
+
static serialize(obj: any): PartitionedIndexesInformation.Transport;
|
|
7492
|
+
static deserialize(obj: any): PartitionedIndexesInformation;
|
|
7493
|
+
}
|
|
7494
|
+
namespace PartitionedIndexesInformation {
|
|
7495
|
+
interface Transport {
|
|
7496
|
+
count?: number;
|
|
7497
|
+
indexes?: PartitionedIndexesDetailedInformation.Transport;
|
|
7498
|
+
limit?: number;
|
|
7499
|
+
}
|
|
6717
7500
|
}
|
|
6718
7501
|
/** Request parameters to use during target database creation. */
|
|
6719
|
-
|
|
7502
|
+
class ReplicationCreateTargetParameters {
|
|
6720
7503
|
/** Schema for the number of replicas of a database in a cluster. The cluster is using the default value and it
|
|
6721
7504
|
* cannot be changed by the user.
|
|
6722
7505
|
*/
|
|
@@ -6725,46 +7508,89 @@ declare namespace CloudantV1 {
|
|
|
6725
7508
|
partitioned?: boolean;
|
|
6726
7509
|
/** Schema for the number of shards in a database. Each shard is a partition of the hash value range. */
|
|
6727
7510
|
q?: number;
|
|
7511
|
+
static serialize(obj: any): ReplicationCreateTargetParameters.Transport;
|
|
7512
|
+
static deserialize(obj: any): ReplicationCreateTargetParameters;
|
|
7513
|
+
}
|
|
7514
|
+
namespace ReplicationCreateTargetParameters {
|
|
7515
|
+
interface Transport {
|
|
7516
|
+
n?: number;
|
|
7517
|
+
partitioned?: boolean;
|
|
7518
|
+
q?: number;
|
|
7519
|
+
}
|
|
6728
7520
|
}
|
|
6729
7521
|
/** Schema for a replication source or target database. */
|
|
6730
|
-
|
|
7522
|
+
class ReplicationDatabase {
|
|
6731
7523
|
/** Schema for replication source or target database authentication. */
|
|
6732
7524
|
auth?: ReplicationDatabaseAuth;
|
|
6733
7525
|
/** Replication request headers. */
|
|
6734
7526
|
headers?: JsonObject;
|
|
6735
7527
|
/** Replication database URL. */
|
|
6736
7528
|
url: string;
|
|
7529
|
+
static serialize(obj: any): ReplicationDatabase.Transport;
|
|
7530
|
+
static deserialize(obj: any): ReplicationDatabase;
|
|
7531
|
+
}
|
|
7532
|
+
namespace ReplicationDatabase {
|
|
7533
|
+
interface Transport {
|
|
7534
|
+
auth?: ReplicationDatabaseAuth.Transport;
|
|
7535
|
+
headers?: JsonObject;
|
|
7536
|
+
url: string;
|
|
7537
|
+
}
|
|
6737
7538
|
}
|
|
6738
7539
|
/** Schema for replication source or target database authentication. */
|
|
6739
|
-
|
|
7540
|
+
class ReplicationDatabaseAuth {
|
|
6740
7541
|
/** Schema for basic authentication of replication source or target database. */
|
|
6741
7542
|
basic?: ReplicationDatabaseAuthBasic;
|
|
6742
7543
|
/** Schema for an IAM API key for replication database authentication. */
|
|
6743
7544
|
iam?: ReplicationDatabaseAuthIam;
|
|
7545
|
+
static serialize(obj: any): ReplicationDatabaseAuth.Transport;
|
|
7546
|
+
static deserialize(obj: any): ReplicationDatabaseAuth;
|
|
7547
|
+
}
|
|
7548
|
+
namespace ReplicationDatabaseAuth {
|
|
7549
|
+
interface Transport {
|
|
7550
|
+
basic?: ReplicationDatabaseAuthBasic.Transport;
|
|
7551
|
+
iam?: ReplicationDatabaseAuthIam.Transport;
|
|
7552
|
+
}
|
|
6744
7553
|
}
|
|
6745
7554
|
/** Schema for basic authentication of replication source or target database. */
|
|
6746
|
-
|
|
7555
|
+
class ReplicationDatabaseAuthBasic {
|
|
6747
7556
|
/** The password associated with the username. */
|
|
6748
7557
|
password: string;
|
|
6749
7558
|
/** The username. */
|
|
6750
7559
|
username: string;
|
|
7560
|
+
static serialize(obj: any): ReplicationDatabaseAuthBasic.Transport;
|
|
7561
|
+
static deserialize(obj: any): ReplicationDatabaseAuthBasic;
|
|
7562
|
+
}
|
|
7563
|
+
namespace ReplicationDatabaseAuthBasic {
|
|
7564
|
+
interface Transport {
|
|
7565
|
+
password: string;
|
|
7566
|
+
username: string;
|
|
7567
|
+
}
|
|
6751
7568
|
}
|
|
6752
7569
|
/** Schema for an IAM API key for replication database authentication. */
|
|
6753
|
-
|
|
7570
|
+
class ReplicationDatabaseAuthIam {
|
|
6754
7571
|
/** IAM API key. */
|
|
6755
|
-
|
|
7572
|
+
apiKey: string;
|
|
7573
|
+
static serialize(obj: any): ReplicationDatabaseAuthIam.Transport;
|
|
7574
|
+
static deserialize(obj: any): ReplicationDatabaseAuthIam;
|
|
7575
|
+
}
|
|
7576
|
+
namespace ReplicationDatabaseAuthIam {
|
|
7577
|
+
interface Transport {
|
|
7578
|
+
api_key: string;
|
|
7579
|
+
}
|
|
6756
7580
|
}
|
|
6757
7581
|
/** Schema for a replication document. Note that `selector`, `doc_ids`, and `filter` are incompatible with each other. */
|
|
6758
|
-
|
|
7582
|
+
class ReplicationDocument {
|
|
6759
7583
|
/** Schema for a map of attachment name to attachment metadata. */
|
|
6760
|
-
_attachments?:
|
|
7584
|
+
_attachments?: {
|
|
7585
|
+
[key: string]: Attachment;
|
|
7586
|
+
};
|
|
6761
7587
|
/** Schema for a list of document revision identifiers. */
|
|
6762
7588
|
_conflicts?: string[];
|
|
6763
7589
|
/** Deletion flag. Available if document was removed. */
|
|
6764
7590
|
_deleted?: boolean;
|
|
6765
7591
|
/** Schema for a list of document revision identifiers. */
|
|
6766
7592
|
_deleted_conflicts?: string[];
|
|
6767
|
-
/**
|
|
7593
|
+
/** Schema for a document ID. */
|
|
6768
7594
|
_id?: string;
|
|
6769
7595
|
/** Document's update sequence in current database. Available if requested with local_seq=true query parameter. */
|
|
6770
7596
|
_local_seq?: string;
|
|
@@ -6777,32 +7603,32 @@ declare namespace CloudantV1 {
|
|
|
6777
7603
|
/** Cancels the replication. */
|
|
6778
7604
|
cancel?: boolean;
|
|
6779
7605
|
/** Defines replication checkpoint interval in milliseconds. */
|
|
6780
|
-
|
|
7606
|
+
checkpointInterval?: number;
|
|
6781
7607
|
/** HTTP connection timeout per replication. Even for very fast/reliable networks it might need to be increased
|
|
6782
7608
|
* if a remote database is too busy.
|
|
6783
7609
|
*/
|
|
6784
|
-
|
|
7610
|
+
connectionTimeout?: number;
|
|
6785
7611
|
/** Configure the replication to be continuous. */
|
|
6786
7612
|
continuous?: boolean;
|
|
6787
7613
|
/** Creates the target database. Requires administrator privileges on target server. */
|
|
6788
|
-
|
|
7614
|
+
createTarget?: boolean;
|
|
6789
7615
|
/** Request parameters to use during target database creation. */
|
|
6790
|
-
|
|
7616
|
+
createTargetParams?: ReplicationCreateTargetParameters;
|
|
6791
7617
|
/** Schema for a list of document IDs. */
|
|
6792
|
-
|
|
7618
|
+
docIds?: string[];
|
|
6793
7619
|
/** The name of a filter function which is defined in a design document in the source database in
|
|
6794
7620
|
* {ddoc_id}/{filter} format. It determines which documents get replicated. Using the selector option provides
|
|
6795
7621
|
* performance benefits when compared with using the filter option. Use the selector option when possible.
|
|
6796
7622
|
*/
|
|
6797
7623
|
filter?: string;
|
|
6798
7624
|
/** Maximum number of HTTP connections per replication. */
|
|
6799
|
-
|
|
7625
|
+
httpConnections?: number;
|
|
6800
7626
|
/** Schema for a map of string key value pairs, such as query parameters. */
|
|
6801
|
-
|
|
7627
|
+
queryParams?: JsonObject;
|
|
6802
7628
|
/** Number of times a replication request is retried. The requests are retried with a doubling exponential
|
|
6803
7629
|
* backoff starting at 0.25 seconds, with a cap at 5 minutes.
|
|
6804
7630
|
*/
|
|
6805
|
-
|
|
7631
|
+
retriesPerRequest?: number;
|
|
6806
7632
|
/** JSON object describing criteria used to select documents. The selector specifies fields in the document, and
|
|
6807
7633
|
* provides an expression to evaluate with the field content or other data.
|
|
6808
7634
|
*
|
|
@@ -6833,9 +7659,9 @@ declare namespace CloudantV1 {
|
|
|
6833
7659
|
*/
|
|
6834
7660
|
selector?: JsonObject;
|
|
6835
7661
|
/** Start the replication at a specific sequence value. */
|
|
6836
|
-
|
|
7662
|
+
sinceSeq?: string;
|
|
6837
7663
|
/** Replication socket options. */
|
|
6838
|
-
|
|
7664
|
+
socketOptions?: string;
|
|
6839
7665
|
/** Schema for a replication source or target database. */
|
|
6840
7666
|
source: ReplicationDatabase;
|
|
6841
7667
|
/** Deprecated: This setting is forbidden in IBM Cloudant replication documents. This setting may be used with
|
|
@@ -6844,7 +7670,7 @@ declare namespace CloudantV1 {
|
|
|
6844
7670
|
* Address of a (http or socks5 protocol) proxy server through which replication with the source database should
|
|
6845
7671
|
* occur.
|
|
6846
7672
|
*/
|
|
6847
|
-
|
|
7673
|
+
sourceProxy?: string | null;
|
|
6848
7674
|
/** Schema for a replication source or target database. */
|
|
6849
7675
|
target: ReplicationDatabase;
|
|
6850
7676
|
/** Deprecated: This setting is forbidden in IBM Cloudant replication documents. This setting may be used with
|
|
@@ -6853,73 +7679,140 @@ declare namespace CloudantV1 {
|
|
|
6853
7679
|
* Address of a (http or socks5 protocol) proxy server through which replication with the target database should
|
|
6854
7680
|
* occur.
|
|
6855
7681
|
*/
|
|
6856
|
-
|
|
7682
|
+
targetProxy?: string | null;
|
|
6857
7683
|
/** Specify whether to use _bulk_get for fetching documents from the source. If unset, the server configured
|
|
6858
7684
|
* default will be used.
|
|
6859
7685
|
*/
|
|
6860
|
-
|
|
7686
|
+
useBulkGet?: boolean;
|
|
6861
7687
|
/** Specify if checkpoints should be saved during replication. Using checkpoints means a replication can be
|
|
6862
7688
|
* efficiently resumed.
|
|
6863
7689
|
*/
|
|
6864
|
-
|
|
7690
|
+
useCheckpoints?: boolean;
|
|
6865
7691
|
/** Schema for the user context of a session. */
|
|
6866
|
-
|
|
7692
|
+
userCtx?: UserContext;
|
|
6867
7693
|
/** Replicate only the winning revisions. Replication with this mode discards conflicting revisions. Replication
|
|
6868
7694
|
* IDs and checkpoints generated by this mode are different to those generated by default, so it is possible to
|
|
6869
7695
|
* first replicate the winning revisions then later backfill remaining revisions with a regular replication job.
|
|
6870
7696
|
*/
|
|
6871
|
-
|
|
7697
|
+
winningRevsOnly?: boolean;
|
|
6872
7698
|
/** Controls how many documents are processed. After each batch a checkpoint is written so this controls how
|
|
6873
7699
|
* frequently checkpointing occurs.
|
|
6874
7700
|
*/
|
|
6875
|
-
|
|
7701
|
+
workerBatchSize?: number;
|
|
6876
7702
|
/** Controls how many separate processes will read from the changes manager and write to the target. A higher
|
|
6877
7703
|
* number can improve throughput.
|
|
6878
7704
|
*/
|
|
6879
|
-
|
|
7705
|
+
workerProcesses?: number;
|
|
6880
7706
|
/** ReplicationDocument accepts additional properties. */
|
|
6881
7707
|
[propName: string]: any;
|
|
7708
|
+
static serialize(obj: any): ReplicationDocument.Transport;
|
|
7709
|
+
static deserialize(obj: any): ReplicationDocument;
|
|
7710
|
+
}
|
|
7711
|
+
namespace ReplicationDocument {
|
|
7712
|
+
interface Transport {
|
|
7713
|
+
_attachments?: {
|
|
7714
|
+
[key: string]: Attachment.Transport;
|
|
7715
|
+
};
|
|
7716
|
+
_conflicts?: string[];
|
|
7717
|
+
_deleted?: boolean;
|
|
7718
|
+
_deleted_conflicts?: string[];
|
|
7719
|
+
_id?: string;
|
|
7720
|
+
_local_seq?: string;
|
|
7721
|
+
_rev?: string;
|
|
7722
|
+
_revisions?: Revisions.Transport;
|
|
7723
|
+
_revs_info?: DocumentRevisionStatus[];
|
|
7724
|
+
cancel?: boolean;
|
|
7725
|
+
checkpoint_interval?: number;
|
|
7726
|
+
connection_timeout?: number;
|
|
7727
|
+
continuous?: boolean;
|
|
7728
|
+
create_target?: boolean;
|
|
7729
|
+
create_target_params?: ReplicationCreateTargetParameters.Transport;
|
|
7730
|
+
doc_ids?: string[];
|
|
7731
|
+
filter?: string;
|
|
7732
|
+
http_connections?: number;
|
|
7733
|
+
query_params?: JsonObject;
|
|
7734
|
+
retries_per_request?: number;
|
|
7735
|
+
selector?: JsonObject;
|
|
7736
|
+
since_seq?: string;
|
|
7737
|
+
socket_options?: string;
|
|
7738
|
+
source: ReplicationDatabase.Transport;
|
|
7739
|
+
source_proxy?: string;
|
|
7740
|
+
target: ReplicationDatabase.Transport;
|
|
7741
|
+
target_proxy?: string;
|
|
7742
|
+
use_bulk_get?: boolean;
|
|
7743
|
+
use_checkpoints?: boolean;
|
|
7744
|
+
user_ctx?: UserContext.Transport;
|
|
7745
|
+
winning_revs_only?: boolean;
|
|
7746
|
+
worker_batch_size?: number;
|
|
7747
|
+
worker_processes?: number;
|
|
7748
|
+
/** ReplicationDocument.ReplicationDocument.Transport accepts additional properties. */
|
|
7749
|
+
[propName: string]: any;
|
|
7750
|
+
}
|
|
6882
7751
|
}
|
|
6883
7752
|
/** Schema for list of revision information. */
|
|
6884
|
-
|
|
7753
|
+
class Revisions {
|
|
6885
7754
|
/** Array of valid revision IDs, in reverse order (latest first). */
|
|
6886
7755
|
ids: string[];
|
|
6887
7756
|
/** Prefix number for the latest revision. */
|
|
6888
7757
|
start: number;
|
|
7758
|
+
static serialize(obj: any): Revisions.Transport;
|
|
7759
|
+
static deserialize(obj: any): Revisions;
|
|
7760
|
+
}
|
|
7761
|
+
namespace Revisions {
|
|
7762
|
+
interface Transport {
|
|
7763
|
+
ids: string[];
|
|
7764
|
+
start: number;
|
|
7765
|
+
}
|
|
6889
7766
|
}
|
|
6890
7767
|
/** Schema for information about missing revs and possible ancestors. */
|
|
6891
|
-
|
|
7768
|
+
class RevsDiff {
|
|
6892
7769
|
/** List of missing revisions. */
|
|
6893
7770
|
missing?: string[];
|
|
6894
7771
|
/** List of possible ancestor revisions. */
|
|
6895
|
-
|
|
7772
|
+
possibleAncestors?: string[];
|
|
7773
|
+
static serialize(obj: any): RevsDiff.Transport;
|
|
7774
|
+
static deserialize(obj: any): RevsDiff;
|
|
7775
|
+
}
|
|
7776
|
+
namespace RevsDiff {
|
|
7777
|
+
interface Transport {
|
|
7778
|
+
missing?: string[];
|
|
7779
|
+
possible_ancestors?: string[];
|
|
7780
|
+
}
|
|
6896
7781
|
}
|
|
6897
7782
|
/** Schema for a listing of replication scheduler documents. */
|
|
6898
|
-
|
|
7783
|
+
class SchedulerDocsResult {
|
|
6899
7784
|
/** Number of total rows. */
|
|
6900
|
-
|
|
7785
|
+
totalRows: number;
|
|
6901
7786
|
/** Array of replication scheduler doc objects. */
|
|
6902
7787
|
docs: SchedulerDocument[];
|
|
7788
|
+
static serialize(obj: any): SchedulerDocsResult.Transport;
|
|
7789
|
+
static deserialize(obj: any): SchedulerDocsResult;
|
|
7790
|
+
}
|
|
7791
|
+
namespace SchedulerDocsResult {
|
|
7792
|
+
interface Transport {
|
|
7793
|
+
total_rows: number;
|
|
7794
|
+
docs: SchedulerDocument[];
|
|
7795
|
+
}
|
|
6903
7796
|
}
|
|
6904
7797
|
/** Schema for a replication scheduler document. */
|
|
6905
|
-
|
|
7798
|
+
class SchedulerDocument {
|
|
6906
7799
|
/** Database where replication document came from. */
|
|
6907
7800
|
database: string;
|
|
6908
7801
|
/** Replication document ID. */
|
|
6909
|
-
|
|
7802
|
+
docId: string;
|
|
6910
7803
|
/** Consecutive errors count. Indicates how many times in a row this replication has crashed. Replication will
|
|
6911
7804
|
* be retried with an exponential backoff based on this number. As soon as the replication succeeds this count is
|
|
6912
7805
|
* reset to 0. To can be used to get an idea why a particular replication is not making progress.
|
|
6913
7806
|
*/
|
|
6914
|
-
|
|
7807
|
+
errorCount: number;
|
|
6915
7808
|
/** Replication ID, or null if state is completed or failed. */
|
|
6916
|
-
id: string;
|
|
7809
|
+
id: string | null;
|
|
6917
7810
|
/** Schema for scheduler document information. A JSON object that may contain additional information about the
|
|
6918
7811
|
* state. For error states this will contain an error field and string value.
|
|
6919
7812
|
*/
|
|
6920
|
-
info: SchedulerInfo;
|
|
7813
|
+
info: SchedulerInfo | null;
|
|
6921
7814
|
/** Timestamp of last state update. */
|
|
6922
|
-
|
|
7815
|
+
lastUpdated: string;
|
|
6923
7816
|
/** Cluster node where the job is running. */
|
|
6924
7817
|
node?: string;
|
|
6925
7818
|
/** Replication source. */
|
|
@@ -6928,9 +7821,9 @@ declare namespace CloudantV1 {
|
|
|
6928
7821
|
*
|
|
6929
7822
|
* Address of the (http or socks5 protocol) proxy server through which replication with the source database occurs.
|
|
6930
7823
|
*/
|
|
6931
|
-
|
|
7824
|
+
sourceProxy?: string | null;
|
|
6932
7825
|
/** Timestamp of when the replication was started. */
|
|
6933
|
-
|
|
7826
|
+
startTime: string;
|
|
6934
7827
|
/** Schema for replication state. */
|
|
6935
7828
|
state: SchedulerDocument.Constants.State | string;
|
|
6936
7829
|
/** Replication target. */
|
|
@@ -6939,7 +7832,9 @@ declare namespace CloudantV1 {
|
|
|
6939
7832
|
*
|
|
6940
7833
|
* Address of the (http or socks5 protocol) proxy server through which replication with the target database occurs.
|
|
6941
7834
|
*/
|
|
6942
|
-
|
|
7835
|
+
targetProxy?: string | null;
|
|
7836
|
+
static serialize(obj: any): SchedulerDocument.Transport;
|
|
7837
|
+
static deserialize(obj: any): SchedulerDocument;
|
|
6943
7838
|
}
|
|
6944
7839
|
namespace SchedulerDocument {
|
|
6945
7840
|
namespace Constants {
|
|
@@ -6954,36 +7849,67 @@ declare namespace CloudantV1 {
|
|
|
6954
7849
|
FAILED = "failed"
|
|
6955
7850
|
}
|
|
6956
7851
|
}
|
|
7852
|
+
interface Transport {
|
|
7853
|
+
database: string;
|
|
7854
|
+
doc_id: string;
|
|
7855
|
+
error_count: number;
|
|
7856
|
+
id: string;
|
|
7857
|
+
info: SchedulerInfo.Transport;
|
|
7858
|
+
last_updated: string;
|
|
7859
|
+
node?: string;
|
|
7860
|
+
source?: string;
|
|
7861
|
+
source_proxy?: string;
|
|
7862
|
+
start_time: string;
|
|
7863
|
+
state: string;
|
|
7864
|
+
target?: string;
|
|
7865
|
+
target_proxy?: string;
|
|
7866
|
+
}
|
|
6957
7867
|
}
|
|
6958
7868
|
/** Schema for scheduler document information. A JSON object that may contain additional information about the state. For error states this will contain an error field and string value. */
|
|
6959
|
-
|
|
7869
|
+
class SchedulerInfo {
|
|
6960
7870
|
/** The count of changes not yet replicated. */
|
|
6961
|
-
|
|
7871
|
+
changesPending?: number | null;
|
|
6962
7872
|
/** The source sequence id which was last successfully replicated. */
|
|
6963
|
-
|
|
7873
|
+
checkpointedSourceSeq?: string;
|
|
6964
7874
|
/** The count of docs which failed to be written to the target. */
|
|
6965
|
-
|
|
7875
|
+
docWriteFailures?: number;
|
|
6966
7876
|
/** The count of docs which have been read from the source. */
|
|
6967
|
-
|
|
7877
|
+
docsRead?: number;
|
|
6968
7878
|
/** The count of docs which have been written to the target. */
|
|
6969
|
-
|
|
7879
|
+
docsWritten?: number;
|
|
6970
7880
|
/** Replication error message. */
|
|
6971
7881
|
error?: string;
|
|
6972
7882
|
/** The count of revisions which were found on the source, but missing from the target. */
|
|
6973
|
-
|
|
7883
|
+
missingRevisionsFound?: number;
|
|
6974
7884
|
/** The count of revisions which have been checked since this replication began. */
|
|
6975
|
-
|
|
7885
|
+
revisionsChecked?: number;
|
|
6976
7886
|
/** The last sequence number obtained from the source database changes feed. */
|
|
6977
|
-
|
|
7887
|
+
sourceSeq?: string;
|
|
6978
7888
|
/** The last sequence number processed by the replicator. */
|
|
6979
|
-
|
|
7889
|
+
throughSeq?: string;
|
|
7890
|
+
static serialize(obj: any): SchedulerInfo.Transport;
|
|
7891
|
+
static deserialize(obj: any): SchedulerInfo;
|
|
7892
|
+
}
|
|
7893
|
+
namespace SchedulerInfo {
|
|
7894
|
+
interface Transport {
|
|
7895
|
+
changes_pending?: number;
|
|
7896
|
+
checkpointed_source_seq?: string;
|
|
7897
|
+
doc_write_failures?: number;
|
|
7898
|
+
docs_read?: number;
|
|
7899
|
+
docs_written?: number;
|
|
7900
|
+
error?: string;
|
|
7901
|
+
missing_revisions_found?: number;
|
|
7902
|
+
revisions_checked?: number;
|
|
7903
|
+
source_seq?: string;
|
|
7904
|
+
through_seq?: string;
|
|
7905
|
+
}
|
|
6980
7906
|
}
|
|
6981
7907
|
/** Schema for a replication scheduler job. */
|
|
6982
|
-
|
|
7908
|
+
class SchedulerJob {
|
|
6983
7909
|
/** Replication document database. */
|
|
6984
7910
|
database: string;
|
|
6985
7911
|
/** Replication document ID. */
|
|
6986
|
-
|
|
7912
|
+
docId: string;
|
|
6987
7913
|
/** Timestamped history of events as a list of objects. */
|
|
6988
7914
|
history: SchedulerJobEvent[];
|
|
6989
7915
|
/** Schema for a replication job id. */
|
|
@@ -6991,43 +7917,84 @@ declare namespace CloudantV1 {
|
|
|
6991
7917
|
/** Schema for scheduler document information. A JSON object that may contain additional information about the
|
|
6992
7918
|
* state. For error states this will contain an error field and string value.
|
|
6993
7919
|
*/
|
|
6994
|
-
info: SchedulerInfo;
|
|
7920
|
+
info: SchedulerInfo | null;
|
|
6995
7921
|
/** Cluster node where the job is running. */
|
|
6996
7922
|
node: string;
|
|
6997
7923
|
/** Replication process ID. */
|
|
6998
|
-
pid: string;
|
|
7924
|
+
pid: string | null;
|
|
6999
7925
|
/** Replication source. */
|
|
7000
7926
|
source: string;
|
|
7001
7927
|
/** Timestamp of when the replication was started. */
|
|
7002
|
-
|
|
7928
|
+
startTime: string;
|
|
7003
7929
|
/** Replication target. */
|
|
7004
7930
|
target: string;
|
|
7005
7931
|
/** Name of user running replication. */
|
|
7006
|
-
user: string;
|
|
7932
|
+
user: string | null;
|
|
7933
|
+
static serialize(obj: any): SchedulerJob.Transport;
|
|
7934
|
+
static deserialize(obj: any): SchedulerJob;
|
|
7935
|
+
}
|
|
7936
|
+
namespace SchedulerJob {
|
|
7937
|
+
interface Transport {
|
|
7938
|
+
database: string;
|
|
7939
|
+
doc_id: string;
|
|
7940
|
+
history: SchedulerJobEvent[];
|
|
7941
|
+
id: string;
|
|
7942
|
+
info: SchedulerInfo.Transport;
|
|
7943
|
+
node: string;
|
|
7944
|
+
pid: string;
|
|
7945
|
+
source: string;
|
|
7946
|
+
start_time: string;
|
|
7947
|
+
target: string;
|
|
7948
|
+
user: string;
|
|
7949
|
+
}
|
|
7007
7950
|
}
|
|
7008
7951
|
/** Schema for a replication scheduler job event. */
|
|
7009
|
-
|
|
7952
|
+
class SchedulerJobEvent {
|
|
7010
7953
|
/** Reason for current state of event. */
|
|
7011
7954
|
reason?: string;
|
|
7012
7955
|
/** Timestamp of the event. */
|
|
7013
7956
|
timestamp: string;
|
|
7014
7957
|
/** Type of the event. */
|
|
7015
7958
|
type: string;
|
|
7959
|
+
static serialize(obj: any): SchedulerJobEvent.Transport;
|
|
7960
|
+
static deserialize(obj: any): SchedulerJobEvent;
|
|
7961
|
+
}
|
|
7962
|
+
namespace SchedulerJobEvent {
|
|
7963
|
+
interface Transport {
|
|
7964
|
+
reason?: string;
|
|
7965
|
+
timestamp: string;
|
|
7966
|
+
type: string;
|
|
7967
|
+
}
|
|
7016
7968
|
}
|
|
7017
7969
|
/** Schema for a listing of replication scheduler jobs. */
|
|
7018
|
-
|
|
7970
|
+
class SchedulerJobsResult {
|
|
7019
7971
|
/** Number of total rows. */
|
|
7020
|
-
|
|
7972
|
+
totalRows: number;
|
|
7021
7973
|
/** Array of replication job objects. */
|
|
7022
7974
|
jobs: SchedulerJob[];
|
|
7975
|
+
static serialize(obj: any): SchedulerJobsResult.Transport;
|
|
7976
|
+
static deserialize(obj: any): SchedulerJobsResult;
|
|
7977
|
+
}
|
|
7978
|
+
namespace SchedulerJobsResult {
|
|
7979
|
+
interface Transport {
|
|
7980
|
+
total_rows: number;
|
|
7981
|
+
jobs: SchedulerJob[];
|
|
7982
|
+
}
|
|
7023
7983
|
}
|
|
7024
7984
|
/** Schema for the output of testing search analyzer tokenization. */
|
|
7025
|
-
|
|
7985
|
+
class SearchAnalyzeResult {
|
|
7026
7986
|
/** tokens. */
|
|
7027
7987
|
tokens: string[];
|
|
7988
|
+
static serialize(obj: any): SearchAnalyzeResult.Transport;
|
|
7989
|
+
static deserialize(obj: any): SearchAnalyzeResult;
|
|
7990
|
+
}
|
|
7991
|
+
namespace SearchAnalyzeResult {
|
|
7992
|
+
interface Transport {
|
|
7993
|
+
tokens: string[];
|
|
7994
|
+
}
|
|
7028
7995
|
}
|
|
7029
7996
|
/** Schema for a search index definition. */
|
|
7030
|
-
|
|
7997
|
+
class SearchIndexDefinition {
|
|
7031
7998
|
/** Schema for a search analyzer configuration. */
|
|
7032
7999
|
analyzer?: AnalyzerConfiguration;
|
|
7033
8000
|
/** String form of a JavaScript function that is called for each document in the database. The function takes
|
|
@@ -7051,67 +8018,136 @@ declare namespace CloudantV1 {
|
|
|
7051
8018
|
* in the search result; otherwise, the value is not returned.
|
|
7052
8019
|
*/
|
|
7053
8020
|
index: string;
|
|
8021
|
+
static serialize(obj: any): SearchIndexDefinition.Transport;
|
|
8022
|
+
static deserialize(obj: any): SearchIndexDefinition;
|
|
8023
|
+
}
|
|
8024
|
+
namespace SearchIndexDefinition {
|
|
8025
|
+
interface Transport {
|
|
8026
|
+
analyzer?: AnalyzerConfiguration.Transport;
|
|
8027
|
+
index: string;
|
|
8028
|
+
}
|
|
7054
8029
|
}
|
|
7055
8030
|
/** Schema for metadata information about a search index. */
|
|
7056
|
-
|
|
8031
|
+
class SearchIndexInfo {
|
|
7057
8032
|
/** The committed sequence identifier. */
|
|
7058
|
-
|
|
8033
|
+
committedSeq: number;
|
|
7059
8034
|
/** The size of the search index on disk. */
|
|
7060
|
-
|
|
8035
|
+
diskSize: number;
|
|
7061
8036
|
/** The count of the number of indexed documents. */
|
|
7062
|
-
|
|
8037
|
+
docCount: number;
|
|
7063
8038
|
/** The number of deleted documents. */
|
|
7064
|
-
|
|
8039
|
+
docDelCount: number;
|
|
7065
8040
|
/** The pending sequence identifier. */
|
|
7066
|
-
|
|
8041
|
+
pendingSeq: number;
|
|
7067
8042
|
/** Unique signature of the search index. */
|
|
7068
8043
|
signature: string;
|
|
8044
|
+
static serialize(obj: any): SearchIndexInfo.Transport;
|
|
8045
|
+
static deserialize(obj: any): SearchIndexInfo;
|
|
8046
|
+
}
|
|
8047
|
+
namespace SearchIndexInfo {
|
|
8048
|
+
interface Transport {
|
|
8049
|
+
committed_seq: number;
|
|
8050
|
+
disk_size: number;
|
|
8051
|
+
doc_count: number;
|
|
8052
|
+
doc_del_count: number;
|
|
8053
|
+
pending_seq: number;
|
|
8054
|
+
signature: string;
|
|
8055
|
+
}
|
|
7069
8056
|
}
|
|
7070
8057
|
/** Schema for search index information. */
|
|
7071
|
-
|
|
8058
|
+
class SearchInfoResult {
|
|
7072
8059
|
/** The name of the search index prefixed by the design document ID where the index is stored. */
|
|
7073
8060
|
name: string;
|
|
7074
8061
|
/** Schema for metadata information about a search index. */
|
|
7075
|
-
|
|
8062
|
+
searchIndex: SearchIndexInfo;
|
|
8063
|
+
static serialize(obj: any): SearchInfoResult.Transport;
|
|
8064
|
+
static deserialize(obj: any): SearchInfoResult;
|
|
8065
|
+
}
|
|
8066
|
+
namespace SearchInfoResult {
|
|
8067
|
+
interface Transport {
|
|
8068
|
+
name: string;
|
|
8069
|
+
search_index: SearchIndexInfo.Transport;
|
|
8070
|
+
}
|
|
7076
8071
|
}
|
|
7077
8072
|
/** Schema for the result of a query search operation. */
|
|
7078
|
-
|
|
8073
|
+
class SearchResult {
|
|
7079
8074
|
/** Number of total rows. */
|
|
7080
|
-
|
|
8075
|
+
totalRows: number;
|
|
7081
8076
|
/** Opaque bookmark token used when paginating results. */
|
|
7082
8077
|
bookmark?: string;
|
|
7083
8078
|
/** Grouped search matches. */
|
|
7084
8079
|
by?: string;
|
|
7085
8080
|
/** The counts facet syntax returns the number of query results for each unique value of each named field. */
|
|
7086
|
-
counts?:
|
|
8081
|
+
counts?: {
|
|
8082
|
+
[key: string]: JsonObject;
|
|
8083
|
+
};
|
|
7087
8084
|
/** The range facet syntax reuses the standard Lucene syntax for ranges to return counts of results that fit
|
|
7088
8085
|
* into each specified category.
|
|
7089
8086
|
*/
|
|
7090
|
-
ranges?:
|
|
8087
|
+
ranges?: {
|
|
8088
|
+
[key: string]: JsonObject;
|
|
8089
|
+
};
|
|
7091
8090
|
/** Array of row objects. */
|
|
7092
8091
|
rows?: SearchResultRow[];
|
|
7093
8092
|
/** Array of grouped search matches. */
|
|
7094
8093
|
groups?: SearchResultProperties[];
|
|
8094
|
+
static serialize(obj: any): SearchResult.Transport;
|
|
8095
|
+
static deserialize(obj: any): SearchResult;
|
|
8096
|
+
}
|
|
8097
|
+
namespace SearchResult {
|
|
8098
|
+
interface Transport {
|
|
8099
|
+
total_rows: number;
|
|
8100
|
+
bookmark?: string;
|
|
8101
|
+
by?: string;
|
|
8102
|
+
counts?: {
|
|
8103
|
+
[key: string]: JsonObject;
|
|
8104
|
+
};
|
|
8105
|
+
ranges?: {
|
|
8106
|
+
[key: string]: JsonObject;
|
|
8107
|
+
};
|
|
8108
|
+
rows?: SearchResultRow[];
|
|
8109
|
+
groups?: SearchResultProperties[];
|
|
8110
|
+
}
|
|
7095
8111
|
}
|
|
7096
8112
|
/** Schema for the result of a query search operation. */
|
|
7097
|
-
|
|
8113
|
+
class SearchResultProperties {
|
|
7098
8114
|
/** Number of total rows. */
|
|
7099
|
-
|
|
8115
|
+
totalRows: number;
|
|
7100
8116
|
/** Opaque bookmark token used when paginating results. */
|
|
7101
8117
|
bookmark?: string;
|
|
7102
8118
|
/** Grouped search matches. */
|
|
7103
8119
|
by?: string;
|
|
7104
8120
|
/** The counts facet syntax returns the number of query results for each unique value of each named field. */
|
|
7105
|
-
counts?:
|
|
8121
|
+
counts?: {
|
|
8122
|
+
[key: string]: JsonObject;
|
|
8123
|
+
};
|
|
7106
8124
|
/** The range facet syntax reuses the standard Lucene syntax for ranges to return counts of results that fit
|
|
7107
8125
|
* into each specified category.
|
|
7108
8126
|
*/
|
|
7109
|
-
ranges?:
|
|
8127
|
+
ranges?: {
|
|
8128
|
+
[key: string]: JsonObject;
|
|
8129
|
+
};
|
|
7110
8130
|
/** Array of row objects. */
|
|
7111
8131
|
rows?: SearchResultRow[];
|
|
8132
|
+
static serialize(obj: any): SearchResultProperties.Transport;
|
|
8133
|
+
static deserialize(obj: any): SearchResultProperties;
|
|
8134
|
+
}
|
|
8135
|
+
namespace SearchResultProperties {
|
|
8136
|
+
interface Transport {
|
|
8137
|
+
total_rows: number;
|
|
8138
|
+
bookmark?: string;
|
|
8139
|
+
by?: string;
|
|
8140
|
+
counts?: {
|
|
8141
|
+
[key: string]: JsonObject;
|
|
8142
|
+
};
|
|
8143
|
+
ranges?: {
|
|
8144
|
+
[key: string]: JsonObject;
|
|
8145
|
+
};
|
|
8146
|
+
rows?: SearchResultRow[];
|
|
8147
|
+
}
|
|
7112
8148
|
}
|
|
7113
8149
|
/** Schema for a row of the result of a query search operation. */
|
|
7114
|
-
|
|
8150
|
+
class SearchResultRow {
|
|
7115
8151
|
/** Schema for a document. */
|
|
7116
8152
|
doc?: Document;
|
|
7117
8153
|
/** Schema for the fields returned by a query search operation, a map of field name to value. */
|
|
@@ -7122,9 +8158,19 @@ declare namespace CloudantV1 {
|
|
|
7122
8158
|
highlights?: JsonObject;
|
|
7123
8159
|
/** Schema for a document ID. */
|
|
7124
8160
|
id: string;
|
|
8161
|
+
static serialize(obj: any): SearchResultRow.Transport;
|
|
8162
|
+
static deserialize(obj: any): SearchResultRow;
|
|
8163
|
+
}
|
|
8164
|
+
namespace SearchResultRow {
|
|
8165
|
+
interface Transport {
|
|
8166
|
+
doc?: Document.Transport;
|
|
8167
|
+
fields: JsonObject;
|
|
8168
|
+
highlights?: JsonObject;
|
|
8169
|
+
id: string;
|
|
8170
|
+
}
|
|
7125
8171
|
}
|
|
7126
8172
|
/** Schema for a security document. */
|
|
7127
|
-
|
|
8173
|
+
class Security {
|
|
7128
8174
|
/** Schema for names and roles to map to a database permission. */
|
|
7129
8175
|
admins?: SecurityObject;
|
|
7130
8176
|
/** Schema for names and roles to map to a database permission. */
|
|
@@ -7132,17 +8178,60 @@ declare namespace CloudantV1 {
|
|
|
7132
8178
|
/** Database permissions for Cloudant users and/or API keys. */
|
|
7133
8179
|
cloudant?: JsonObject;
|
|
7134
8180
|
/** Manage permissions using the `_users` database only. */
|
|
7135
|
-
|
|
8181
|
+
couchdbAuthOnly?: boolean;
|
|
8182
|
+
static serialize(obj: any): Security.Transport;
|
|
8183
|
+
static deserialize(obj: any): Security;
|
|
8184
|
+
}
|
|
8185
|
+
namespace Security {
|
|
8186
|
+
interface Transport {
|
|
8187
|
+
admins?: SecurityObject.Transport;
|
|
8188
|
+
members?: SecurityObject.Transport;
|
|
8189
|
+
cloudant?: JsonObject;
|
|
8190
|
+
couchdb_auth_only?: boolean;
|
|
8191
|
+
}
|
|
7136
8192
|
}
|
|
7137
8193
|
/** Schema for names and roles to map to a database permission. */
|
|
7138
|
-
|
|
8194
|
+
class SecurityObject {
|
|
7139
8195
|
/** List of usernames. */
|
|
7140
8196
|
names?: string[];
|
|
7141
8197
|
/** List of roles. */
|
|
7142
8198
|
roles?: string[];
|
|
8199
|
+
static serialize(obj: any): SecurityObject.Transport;
|
|
8200
|
+
static deserialize(obj: any): SecurityObject;
|
|
8201
|
+
}
|
|
8202
|
+
namespace SecurityObject {
|
|
8203
|
+
interface Transport {
|
|
8204
|
+
names?: string[];
|
|
8205
|
+
roles?: string[];
|
|
8206
|
+
}
|
|
8207
|
+
}
|
|
8208
|
+
/** Schema for extra information on the selector. */
|
|
8209
|
+
class SelectorHint {
|
|
8210
|
+
/** A list of fields in the given selector that can be used to restrict the query. */
|
|
8211
|
+
indexableFields: string[];
|
|
8212
|
+
/** A type of the index. */
|
|
8213
|
+
type: SelectorHint.Constants.Type | string;
|
|
8214
|
+
/** A list of fields in the given selector that can't be used to restrict the query. */
|
|
8215
|
+
unindexableFields: string[];
|
|
8216
|
+
static serialize(obj: any): SelectorHint.Transport;
|
|
8217
|
+
static deserialize(obj: any): SelectorHint;
|
|
8218
|
+
}
|
|
8219
|
+
namespace SelectorHint {
|
|
8220
|
+
namespace Constants {
|
|
8221
|
+
/** A type of the index. */
|
|
8222
|
+
enum Type {
|
|
8223
|
+
JSON = "json",
|
|
8224
|
+
TEXT = "text"
|
|
8225
|
+
}
|
|
8226
|
+
}
|
|
8227
|
+
interface Transport {
|
|
8228
|
+
indexable_fields: string[];
|
|
8229
|
+
type: string;
|
|
8230
|
+
unindexable_fields: string[];
|
|
8231
|
+
}
|
|
7143
8232
|
}
|
|
7144
8233
|
/** Schema for information about the server instance. */
|
|
7145
|
-
|
|
8234
|
+
class ServerInformation {
|
|
7146
8235
|
/** Welcome message. */
|
|
7147
8236
|
couchdb: string;
|
|
7148
8237
|
/** List of enabled optional features. */
|
|
@@ -7152,42 +8241,87 @@ declare namespace CloudantV1 {
|
|
|
7152
8241
|
/** Apache CouchDB version. */
|
|
7153
8242
|
version: string;
|
|
7154
8243
|
/** List of feature flags. */
|
|
7155
|
-
|
|
8244
|
+
featuresFlags: string[];
|
|
8245
|
+
static serialize(obj: any): ServerInformation.Transport;
|
|
8246
|
+
static deserialize(obj: any): ServerInformation;
|
|
8247
|
+
}
|
|
8248
|
+
namespace ServerInformation {
|
|
8249
|
+
interface Transport {
|
|
8250
|
+
couchdb: string;
|
|
8251
|
+
features: string[];
|
|
8252
|
+
vendor: ServerVendor.Transport;
|
|
8253
|
+
version: string;
|
|
8254
|
+
features_flags: string[];
|
|
8255
|
+
}
|
|
7156
8256
|
}
|
|
7157
8257
|
/** Schema for server vendor information. */
|
|
7158
|
-
|
|
8258
|
+
class ServerVendor {
|
|
7159
8259
|
/** Vendor name. */
|
|
7160
8260
|
name: string;
|
|
7161
8261
|
/** Vendor variant. */
|
|
7162
8262
|
variant?: string;
|
|
7163
8263
|
/** Vendor version. */
|
|
7164
8264
|
version?: string;
|
|
8265
|
+
static serialize(obj: any): ServerVendor.Transport;
|
|
8266
|
+
static deserialize(obj: any): ServerVendor;
|
|
8267
|
+
}
|
|
8268
|
+
namespace ServerVendor {
|
|
8269
|
+
interface Transport {
|
|
8270
|
+
name: string;
|
|
8271
|
+
variant?: string;
|
|
8272
|
+
version?: string;
|
|
8273
|
+
}
|
|
7165
8274
|
}
|
|
7166
8275
|
/** Schema for session authentication information. */
|
|
7167
|
-
|
|
8276
|
+
class SessionAuthentication {
|
|
7168
8277
|
/** authenticated. */
|
|
7169
8278
|
authenticated?: string;
|
|
7170
8279
|
/** authentication_db. */
|
|
7171
|
-
|
|
8280
|
+
authenticationDb?: string;
|
|
7172
8281
|
/** authentication_handlers. */
|
|
7173
|
-
|
|
8282
|
+
authenticationHandlers: string[];
|
|
8283
|
+
static serialize(obj: any): SessionAuthentication.Transport;
|
|
8284
|
+
static deserialize(obj: any): SessionAuthentication;
|
|
8285
|
+
}
|
|
8286
|
+
namespace SessionAuthentication {
|
|
8287
|
+
interface Transport {
|
|
8288
|
+
authenticated?: string;
|
|
8289
|
+
authentication_db?: string;
|
|
8290
|
+
authentication_handlers: string[];
|
|
8291
|
+
}
|
|
7174
8292
|
}
|
|
7175
8293
|
/** Schema for information about a session. */
|
|
7176
|
-
|
|
8294
|
+
class SessionInformation {
|
|
7177
8295
|
/** ok. */
|
|
7178
8296
|
ok: boolean;
|
|
7179
8297
|
/** Schema for session authentication information. */
|
|
7180
8298
|
info: SessionAuthentication;
|
|
7181
8299
|
/** Schema for the user context of a session. */
|
|
7182
8300
|
userCtx: UserContext;
|
|
8301
|
+
static serialize(obj: any): SessionInformation.Transport;
|
|
8302
|
+
static deserialize(obj: any): SessionInformation;
|
|
8303
|
+
}
|
|
8304
|
+
namespace SessionInformation {
|
|
8305
|
+
interface Transport {
|
|
8306
|
+
ok: boolean;
|
|
8307
|
+
info: SessionAuthentication.Transport;
|
|
8308
|
+
userCtx: UserContext.Transport;
|
|
8309
|
+
}
|
|
7183
8310
|
}
|
|
7184
8311
|
/** Schema for a shards object that maps the hash value range for each shard to the array of nodes that contain a copy of that shard. */
|
|
7185
|
-
|
|
8312
|
+
class ShardsInformation {
|
|
7186
8313
|
/** Mapping of shard hash value range to a list of nodes. */
|
|
7187
8314
|
shards: JsonObject;
|
|
8315
|
+
static serialize(obj: any): ShardsInformation.Transport;
|
|
8316
|
+
static deserialize(obj: any): ShardsInformation;
|
|
8317
|
+
}
|
|
8318
|
+
namespace ShardsInformation {
|
|
8319
|
+
interface Transport {
|
|
8320
|
+
shards: JsonObject;
|
|
8321
|
+
}
|
|
7188
8322
|
}
|
|
7189
8323
|
/** Schema for detailed information about throughput capacity with breakdown by specific throughput requests classes. */
|
|
7190
|
-
|
|
8324
|
+
class ThroughputInformation {
|
|
7191
8325
|
/** A number of blocks of throughput units. A block consists of 100 reads/sec, 50 writes/sec, and 5 global
|
|
7192
8326
|
* queries/sec of provisioned throughput capacity.
|
|
7193
8327
|
*/
|
|
@@ -7198,13 +8332,25 @@ declare namespace CloudantV1 {
|
|
|
7198
8332
|
read: number;
|
|
7199
8333
|
/** Provisioned writes capacity in operations per second. */
|
|
7200
8334
|
write: number;
|
|
8335
|
+
static serialize(obj: any): ThroughputInformation.Transport;
|
|
8336
|
+
static deserialize(obj: any): ThroughputInformation;
|
|
8337
|
+
}
|
|
8338
|
+
namespace ThroughputInformation {
|
|
8339
|
+
interface Transport {
|
|
8340
|
+
blocks: number;
|
|
8341
|
+
query: number;
|
|
8342
|
+
read: number;
|
|
8343
|
+
write: number;
|
|
8344
|
+
}
|
|
7201
8345
|
}
|
|
7202
8346
|
/** Schema for information about the up state of the server. */
|
|
7203
|
-
|
|
8347
|
+
class UpInformation {
|
|
7204
8348
|
/** seeds. */
|
|
7205
|
-
seeds
|
|
8349
|
+
seeds?: JsonObject;
|
|
7206
8350
|
/** status. */
|
|
7207
8351
|
status: UpInformation.Constants.Status | string;
|
|
8352
|
+
static serialize(obj: any): UpInformation.Transport;
|
|
8353
|
+
static deserialize(obj: any): UpInformation;
|
|
7208
8354
|
}
|
|
7209
8355
|
namespace UpInformation {
|
|
7210
8356
|
namespace Constants {
|
|
@@ -7215,9 +8361,13 @@ declare namespace CloudantV1 {
|
|
|
7215
8361
|
OK = "ok"
|
|
7216
8362
|
}
|
|
7217
8363
|
}
|
|
8364
|
+
interface Transport {
|
|
8365
|
+
seeds?: JsonObject;
|
|
8366
|
+
status: string;
|
|
8367
|
+
}
|
|
7218
8368
|
}
|
|
7219
8369
|
/** Schema for an ability to tell if view is up-to-date without querying it. */
|
|
7220
|
-
|
|
8370
|
+
class UpdatesPending {
|
|
7221
8371
|
/** Sum of shard copies with the least amount of work to do. */
|
|
7222
8372
|
minimum: number;
|
|
7223
8373
|
/** Sum of unique shards. This value is zero when at least one copy of every shard range is up-to-date and the
|
|
@@ -7226,15 +8376,26 @@ declare namespace CloudantV1 {
|
|
|
7226
8376
|
preferred: number;
|
|
7227
8377
|
/** Sum of all shard copies. */
|
|
7228
8378
|
total: number;
|
|
8379
|
+
static serialize(obj: any): UpdatesPending.Transport;
|
|
8380
|
+
static deserialize(obj: any): UpdatesPending;
|
|
8381
|
+
}
|
|
8382
|
+
namespace UpdatesPending {
|
|
8383
|
+
interface Transport {
|
|
8384
|
+
minimum: number;
|
|
8385
|
+
preferred: number;
|
|
8386
|
+
total: number;
|
|
8387
|
+
}
|
|
7229
8388
|
}
|
|
7230
8389
|
/** Schema for the user context of a session. */
|
|
7231
|
-
|
|
8390
|
+
class UserContext {
|
|
7232
8391
|
/** Database name in the context of the provided operation. */
|
|
7233
8392
|
db?: string;
|
|
7234
8393
|
/** User name. */
|
|
7235
|
-
name: string;
|
|
8394
|
+
name: string | null;
|
|
7236
8395
|
/** List of user roles. */
|
|
7237
8396
|
roles: UserContext.Constants.Roles[] | string[];
|
|
8397
|
+
static serialize(obj: any): UserContext.Transport;
|
|
8398
|
+
static deserialize(obj: any): UserContext;
|
|
7238
8399
|
}
|
|
7239
8400
|
namespace UserContext {
|
|
7240
8401
|
namespace Constants {
|
|
@@ -7250,25 +8411,44 @@ declare namespace CloudantV1 {
|
|
|
7250
8411
|
SECURITY = "_security"
|
|
7251
8412
|
}
|
|
7252
8413
|
}
|
|
8414
|
+
interface Transport {
|
|
8415
|
+
db?: string;
|
|
8416
|
+
name: string;
|
|
8417
|
+
roles: string[];
|
|
8418
|
+
}
|
|
7253
8419
|
}
|
|
7254
8420
|
/** Schema for a set of uuids generated by the server. */
|
|
7255
|
-
|
|
8421
|
+
class UuidsResult {
|
|
7256
8422
|
/** uuids. */
|
|
7257
8423
|
uuids: string[];
|
|
8424
|
+
static serialize(obj: any): UuidsResult.Transport;
|
|
8425
|
+
static deserialize(obj: any): UuidsResult;
|
|
8426
|
+
}
|
|
8427
|
+
namespace UuidsResult {
|
|
8428
|
+
interface Transport {
|
|
8429
|
+
uuids: string[];
|
|
8430
|
+
}
|
|
7258
8431
|
}
|
|
7259
8432
|
/** Schema for the results of a queries view operation. */
|
|
7260
|
-
|
|
8433
|
+
class ViewQueriesResult {
|
|
7261
8434
|
/** An array of result objects - one for each query. Each result object contains the same fields as the response
|
|
7262
8435
|
* to a regular view request.
|
|
7263
8436
|
*/
|
|
7264
8437
|
results: ViewResult[];
|
|
8438
|
+
static serialize(obj: any): ViewQueriesResult.Transport;
|
|
8439
|
+
static deserialize(obj: any): ViewQueriesResult;
|
|
8440
|
+
}
|
|
8441
|
+
namespace ViewQueriesResult {
|
|
8442
|
+
interface Transport {
|
|
8443
|
+
results: ViewResult[];
|
|
8444
|
+
}
|
|
7265
8445
|
}
|
|
7266
8446
|
/** Schema for a query view operation. */
|
|
7267
|
-
|
|
8447
|
+
class ViewQuery {
|
|
7268
8448
|
/** Parameter to specify whether to include the encoding information in attachment stubs if the particular
|
|
7269
8449
|
* attachment is compressed.
|
|
7270
8450
|
*/
|
|
7271
|
-
|
|
8451
|
+
attEncodingInfo?: boolean;
|
|
7272
8452
|
/** Parameter to specify whether to include attachments bodies in a response. */
|
|
7273
8453
|
attachments?: boolean;
|
|
7274
8454
|
/** Parameter to specify whether to include a list of conflicted revisions in each returned document. Active
|
|
@@ -7278,9 +8458,9 @@ declare namespace CloudantV1 {
|
|
|
7278
8458
|
/** Parameter to specify whether to return the documents in descending by key order. */
|
|
7279
8459
|
descending?: boolean;
|
|
7280
8460
|
/** Parameter to specify whether to include the full content of the documents in the response. */
|
|
7281
|
-
|
|
8461
|
+
includeDocs?: boolean;
|
|
7282
8462
|
/** Parameter to specify whether the specified end key should be included in the result. */
|
|
7283
|
-
|
|
8463
|
+
inclusiveEnd?: boolean;
|
|
7284
8464
|
/** Parameter to specify the number of returned documents to limit the result to. */
|
|
7285
8465
|
limit?: number;
|
|
7286
8466
|
/** Parameter to specify the number of records before starting to return the results. */
|
|
@@ -7288,11 +8468,11 @@ declare namespace CloudantV1 {
|
|
|
7288
8468
|
/** Parameter to specify whether to include in the response an update_seq value indicating the sequence id of
|
|
7289
8469
|
* the database the view reflects.
|
|
7290
8470
|
*/
|
|
7291
|
-
|
|
8471
|
+
updateSeq?: boolean;
|
|
7292
8472
|
/** Schema for any JSON type. */
|
|
7293
|
-
|
|
8473
|
+
endKey?: any;
|
|
7294
8474
|
/** Schema for a document ID. */
|
|
7295
|
-
|
|
8475
|
+
endKeyDocId?: string;
|
|
7296
8476
|
/** Parameter to specify whether to group reduced results by key. Valid only if a reduce function defined in the
|
|
7297
8477
|
* view. If the view emits key in JSON array format, then it is possible to reduce groups further based on the
|
|
7298
8478
|
* number of array elements with the `group_level` parameter.
|
|
@@ -7302,7 +8482,7 @@ declare namespace CloudantV1 {
|
|
|
7302
8482
|
* Implies group is `true`. Group level groups the reduced results by the specified number of array elements. If
|
|
7303
8483
|
* unset, results are grouped by the entire array key, returning a reduced value for each complete key.
|
|
7304
8484
|
*/
|
|
7305
|
-
|
|
8485
|
+
groupLevel?: number;
|
|
7306
8486
|
/** Schema for any JSON type. */
|
|
7307
8487
|
key?: any;
|
|
7308
8488
|
/** Parameter to specify returning only documents that match any of the specified keys. A JSON array of keys
|
|
@@ -7322,9 +8502,9 @@ declare namespace CloudantV1 {
|
|
|
7322
8502
|
*/
|
|
7323
8503
|
stable?: boolean;
|
|
7324
8504
|
/** Schema for any JSON type. */
|
|
7325
|
-
|
|
8505
|
+
startKey?: any;
|
|
7326
8506
|
/** Schema for a document ID. */
|
|
7327
|
-
|
|
8507
|
+
startKeyDocId?: string;
|
|
7328
8508
|
/** Parameter to specify whether or not the view in question should be updated prior to responding to the user.
|
|
7329
8509
|
*
|
|
7330
8510
|
* * `true` - Return results after the view is updated.
|
|
@@ -7332,6 +8512,8 @@ declare namespace CloudantV1 {
|
|
|
7332
8512
|
* * `lazy` - Return the view results without waiting for an update, but update them immediately after the request.
|
|
7333
8513
|
*/
|
|
7334
8514
|
update?: ViewQuery.Constants.Update | string;
|
|
8515
|
+
static serialize(obj: any): ViewQuery.Transport;
|
|
8516
|
+
static deserialize(obj: any): ViewQuery;
|
|
7335
8517
|
}
|
|
7336
8518
|
namespace ViewQuery {
|
|
7337
8519
|
namespace Constants {
|
|
@@ -7342,24 +8524,57 @@ declare namespace CloudantV1 {
|
|
|
7342
8524
|
LAZY = "lazy"
|
|
7343
8525
|
}
|
|
7344
8526
|
}
|
|
8527
|
+
interface Transport {
|
|
8528
|
+
att_encoding_info?: boolean;
|
|
8529
|
+
attachments?: boolean;
|
|
8530
|
+
conflicts?: boolean;
|
|
8531
|
+
descending?: boolean;
|
|
8532
|
+
include_docs?: boolean;
|
|
8533
|
+
inclusive_end?: boolean;
|
|
8534
|
+
limit?: number;
|
|
8535
|
+
skip?: number;
|
|
8536
|
+
update_seq?: boolean;
|
|
8537
|
+
end_key?: any;
|
|
8538
|
+
end_key_doc_id?: string;
|
|
8539
|
+
group?: boolean;
|
|
8540
|
+
group_level?: number;
|
|
8541
|
+
key?: any;
|
|
8542
|
+
keys?: any[];
|
|
8543
|
+
reduce?: boolean;
|
|
8544
|
+
stable?: boolean;
|
|
8545
|
+
start_key?: any;
|
|
8546
|
+
start_key_doc_id?: string;
|
|
8547
|
+
update?: string;
|
|
8548
|
+
}
|
|
7345
8549
|
}
|
|
7346
8550
|
/** Schema for the result of a query view operation. */
|
|
7347
|
-
|
|
8551
|
+
class ViewResult {
|
|
7348
8552
|
/** Number of total rows. */
|
|
7349
|
-
|
|
8553
|
+
totalRows?: number;
|
|
7350
8554
|
/** Current update sequence for the database. */
|
|
7351
|
-
|
|
8555
|
+
updateSeq?: string;
|
|
7352
8556
|
/** rows. */
|
|
7353
8557
|
rows: ViewResultRow[];
|
|
8558
|
+
static serialize(obj: any): ViewResult.Transport;
|
|
8559
|
+
static deserialize(obj: any): ViewResult;
|
|
8560
|
+
}
|
|
8561
|
+
namespace ViewResult {
|
|
8562
|
+
interface Transport {
|
|
8563
|
+
total_rows?: number;
|
|
8564
|
+
update_seq?: string;
|
|
8565
|
+
rows: ViewResultRow[];
|
|
8566
|
+
}
|
|
7354
8567
|
}
|
|
7355
8568
|
/** Schema for a row of a view result. */
|
|
7356
|
-
|
|
8569
|
+
class ViewResultRow {
|
|
7357
8570
|
/** The cause of the error (if available). */
|
|
7358
|
-
|
|
8571
|
+
causedBy?: string;
|
|
7359
8572
|
/** The name of the error. */
|
|
7360
8573
|
error?: string;
|
|
7361
8574
|
/** The reason the error occurred (if available). */
|
|
7362
8575
|
reason?: string;
|
|
8576
|
+
/** An internal error reference (if available). */
|
|
8577
|
+
ref?: number;
|
|
7363
8578
|
/** Schema for a document. */
|
|
7364
8579
|
doc?: Document;
|
|
7365
8580
|
/** Schema for a document ID. */
|
|
@@ -7368,6 +8583,20 @@ declare namespace CloudantV1 {
|
|
|
7368
8583
|
key: any;
|
|
7369
8584
|
/** Schema for any JSON type. */
|
|
7370
8585
|
value: any;
|
|
8586
|
+
static serialize(obj: any): ViewResultRow.Transport;
|
|
8587
|
+
static deserialize(obj: any): ViewResultRow;
|
|
8588
|
+
}
|
|
8589
|
+
namespace ViewResultRow {
|
|
8590
|
+
interface Transport {
|
|
8591
|
+
caused_by?: string;
|
|
8592
|
+
error?: string;
|
|
8593
|
+
reason?: string;
|
|
8594
|
+
ref?: number;
|
|
8595
|
+
doc?: Document.Transport;
|
|
8596
|
+
id?: string;
|
|
8597
|
+
key: any;
|
|
8598
|
+
value: any;
|
|
8599
|
+
}
|
|
7371
8600
|
}
|
|
7372
8601
|
}
|
|
7373
8602
|
export = CloudantV1;
|