@ibm-cloud/cloudant 0.11.0 → 0.12.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 +7 -7
- package/auth/sessionTokenManager.js +6 -1
- package/auth/sessionTokenManager.js.map +1 -1
- package/cloudant/v1.d.ts +285 -178
- package/cloudant/v1.js +487 -308
- package/cloudant/v1.js.map +1 -1
- package/lib/cloudantBaseService.js +0 -9
- package/lib/cloudantBaseService.js.map +1 -1
- package/package.json +12 -13
package/cloudant/v1.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* (C) Copyright IBM Corp.
|
|
2
|
+
* (C) Copyright IBM Corp. 2025.
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
@@ -66,20 +66,6 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
66
66
|
* @returns {Promise<CloudantV1.Response<CloudantV1.ServerInformation>>}
|
|
67
67
|
*/
|
|
68
68
|
getServerInformation(params?: CloudantV1.GetServerInformationParams): Promise<CloudantV1.Response<CloudantV1.ServerInformation>>;
|
|
69
|
-
/**
|
|
70
|
-
* Retrieve one or more UUIDs.
|
|
71
|
-
*
|
|
72
|
-
* Requests one or more Universally Unique Identifiers (UUIDs) from the instance. The response is a JSON object that
|
|
73
|
-
* provides a list of UUIDs.
|
|
74
|
-
*
|
|
75
|
-
* **Tip:** The authentication for this endpoint is only enforced when using IAM.
|
|
76
|
-
*
|
|
77
|
-
* @param {Object} [params] - The parameters to send to the service.
|
|
78
|
-
* @param {number} [params.count] - Query parameter to specify the number of UUIDs to return.
|
|
79
|
-
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
80
|
-
* @returns {Promise<CloudantV1.Response<CloudantV1.UuidsResult>>}
|
|
81
|
-
*/
|
|
82
|
-
getUuids(params?: CloudantV1.GetUuidsParams): Promise<CloudantV1.Response<CloudantV1.UuidsResult>>;
|
|
83
69
|
/**
|
|
84
70
|
* Retrieve provisioned throughput capacity information.
|
|
85
71
|
*
|
|
@@ -104,6 +90,20 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
104
90
|
* @returns {Promise<CloudantV1.Response<CloudantV1.CapacityThroughputInformation>>}
|
|
105
91
|
*/
|
|
106
92
|
putCapacityThroughputConfiguration(params: CloudantV1.PutCapacityThroughputConfigurationParams): Promise<CloudantV1.Response<CloudantV1.CapacityThroughputInformation>>;
|
|
93
|
+
/**
|
|
94
|
+
* Retrieve one or more UUIDs.
|
|
95
|
+
*
|
|
96
|
+
* Requests one or more Universally Unique Identifiers (UUIDs) from the instance. The response is a JSON object that
|
|
97
|
+
* provides a list of UUIDs.
|
|
98
|
+
*
|
|
99
|
+
* **Tip:** The authentication for this endpoint is only enforced when using IAM.
|
|
100
|
+
*
|
|
101
|
+
* @param {Object} [params] - The parameters to send to the service.
|
|
102
|
+
* @param {number} [params.count] - Query parameter to specify the number of UUIDs to return.
|
|
103
|
+
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
104
|
+
* @returns {Promise<CloudantV1.Response<CloudantV1.UuidsResult>>}
|
|
105
|
+
*/
|
|
106
|
+
getUuids(params?: CloudantV1.GetUuidsParams): Promise<CloudantV1.Response<CloudantV1.UuidsResult>>;
|
|
107
107
|
/*************************
|
|
108
108
|
* changes
|
|
109
109
|
************************/
|
|
@@ -2173,10 +2173,10 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
2173
2173
|
* @param {string[]} [params.groupSort] - This field defines the order of the groups in a search that uses
|
|
2174
2174
|
* group_field. The default sort order is relevance. This field can have the same values as the sort field, so single
|
|
2175
2175
|
* fields and arrays of fields are supported. This option is only available when making global queries.
|
|
2176
|
-
* @param {JsonObject} [params.ranges] -
|
|
2177
|
-
*
|
|
2178
|
-
*
|
|
2179
|
-
*
|
|
2176
|
+
* @param {JsonObject} [params.ranges] - Object mapping faceted, numeric search field names to the required ranges.
|
|
2177
|
+
* Each key is a field name and each value is another object defining the ranges by mapping range name keys to string
|
|
2178
|
+
* values describing the numeric ranges, for example "[0 TO 10]". This option is only available when making global
|
|
2179
|
+
* queries.
|
|
2180
2180
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
2181
2181
|
* @returns {Promise<CloudantV1.Response<CloudantV1.SearchResult>>}
|
|
2182
2182
|
*/
|
|
@@ -2234,14 +2234,28 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
2234
2234
|
* @param {string[]} [params.groupSort] - This field defines the order of the groups in a search that uses
|
|
2235
2235
|
* group_field. The default sort order is relevance. This field can have the same values as the sort field, so single
|
|
2236
2236
|
* fields and arrays of fields are supported. This option is only available when making global queries.
|
|
2237
|
-
* @param {JsonObject} [params.ranges] -
|
|
2238
|
-
*
|
|
2239
|
-
*
|
|
2240
|
-
*
|
|
2237
|
+
* @param {JsonObject} [params.ranges] - Object mapping faceted, numeric search field names to the required ranges.
|
|
2238
|
+
* Each key is a field name and each value is another object defining the ranges by mapping range name keys to string
|
|
2239
|
+
* values describing the numeric ranges, for example "[0 TO 10]". This option is only available when making global
|
|
2240
|
+
* queries.
|
|
2241
2241
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
2242
2242
|
* @returns {Promise<CloudantV1.Response<NodeJS.ReadableStream>>}
|
|
2243
2243
|
*/
|
|
2244
2244
|
postSearchAsStream(params: CloudantV1.PostSearchAsStreamParams): Promise<CloudantV1.Response<NodeJS.ReadableStream>>;
|
|
2245
|
+
/**
|
|
2246
|
+
* Retrieve information about the search index disk size.
|
|
2247
|
+
*
|
|
2248
|
+
* Retrieve size of the search index on disk.
|
|
2249
|
+
*
|
|
2250
|
+
* @param {Object} params - The parameters to send to the service.
|
|
2251
|
+
* @param {string} params.db - Path parameter to specify the database name.
|
|
2252
|
+
* @param {string} params.ddoc - Path parameter to specify the design document name. The design document name is the
|
|
2253
|
+
* design document ID excluding the `_design/` prefix.
|
|
2254
|
+
* @param {string} params.index - Path parameter to specify the index name.
|
|
2255
|
+
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
2256
|
+
* @returns {Promise<CloudantV1.Response<CloudantV1.SearchDiskSizeInformation>>}
|
|
2257
|
+
*/
|
|
2258
|
+
getSearchDiskSize(params: CloudantV1.GetSearchDiskSizeParams): Promise<CloudantV1.Response<CloudantV1.SearchDiskSizeInformation>>;
|
|
2245
2259
|
/**
|
|
2246
2260
|
* Retrieve information about a search index.
|
|
2247
2261
|
*
|
|
@@ -2260,14 +2274,15 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
2260
2274
|
* replication
|
|
2261
2275
|
************************/
|
|
2262
2276
|
/**
|
|
2263
|
-
* Retrieve the HTTP headers for a replication
|
|
2277
|
+
* Retrieve the HTTP headers for a persistent replication.
|
|
2264
2278
|
*
|
|
2265
2279
|
* Retrieves the HTTP headers containing minimal amount of information about the specified replication document from
|
|
2266
2280
|
* the `_replicator` database. The method supports the same query arguments as the `GET /_replicator/{doc_id}`
|
|
2267
2281
|
* method, but only headers like content length and the revision (ETag header) are returned.
|
|
2268
2282
|
*
|
|
2269
2283
|
* @param {Object} params - The parameters to send to the service.
|
|
2270
|
-
* @param {string} params.docId - Path parameter to specify the
|
|
2284
|
+
* @param {string} params.docId - Path parameter to specify the ID of the stored replication configuration in the
|
|
2285
|
+
* `_replicator` database.
|
|
2271
2286
|
* @param {string} [params.ifNoneMatch] - Header parameter for a conditional HTTP request not matching an ETag.
|
|
2272
2287
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
2273
2288
|
* @returns {Promise<CloudantV1.Response<CloudantV1.EmptyObject>>}
|
|
@@ -2299,12 +2314,27 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
2299
2314
|
*/
|
|
2300
2315
|
headSchedulerJob(params: CloudantV1.HeadSchedulerJobParams): Promise<CloudantV1.Response<CloudantV1.EmptyObject>>;
|
|
2301
2316
|
/**
|
|
2302
|
-
*
|
|
2317
|
+
* Create a persistent replication with a generated ID.
|
|
2318
|
+
*
|
|
2319
|
+
* Creates or modifies a document in the `_replicator` database to start a new replication or to edit an existing
|
|
2320
|
+
* replication.
|
|
2321
|
+
*
|
|
2322
|
+
* @param {Object} params - The parameters to send to the service.
|
|
2323
|
+
* @param {ReplicationDocument} params.replicationDocument - HTTP request body for replication operations.
|
|
2324
|
+
* @param {string} [params.batch] - Query parameter to specify whether to store in batch mode. The server will respond
|
|
2325
|
+
* with a HTTP 202 Accepted response code immediately.
|
|
2326
|
+
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
2327
|
+
* @returns {Promise<CloudantV1.Response<CloudantV1.DocumentResult>>}
|
|
2328
|
+
*/
|
|
2329
|
+
postReplicator(params: CloudantV1.PostReplicatorParams): Promise<CloudantV1.Response<CloudantV1.DocumentResult>>;
|
|
2330
|
+
/**
|
|
2331
|
+
* Cancel a persistent replication.
|
|
2303
2332
|
*
|
|
2304
2333
|
* Cancels a replication by deleting the document that describes it from the `_replicator` database.
|
|
2305
2334
|
*
|
|
2306
2335
|
* @param {Object} params - The parameters to send to the service.
|
|
2307
|
-
* @param {string} params.docId - Path parameter to specify the
|
|
2336
|
+
* @param {string} params.docId - Path parameter to specify the ID of the stored replication configuration in the
|
|
2337
|
+
* `_replicator` database.
|
|
2308
2338
|
* @param {string} [params.ifMatch] - Header parameter for a conditional HTTP request matching an ETag.
|
|
2309
2339
|
* @param {string} [params.batch] - Query parameter to specify whether to store in batch mode. The server will respond
|
|
2310
2340
|
* with a HTTP 202 Accepted response code immediately.
|
|
@@ -2314,13 +2344,14 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
2314
2344
|
*/
|
|
2315
2345
|
deleteReplicationDocument(params: CloudantV1.DeleteReplicationDocumentParams): Promise<CloudantV1.Response<CloudantV1.DocumentResult>>;
|
|
2316
2346
|
/**
|
|
2317
|
-
* Retrieve a replication
|
|
2347
|
+
* Retrieve the configuration for a persistent replication.
|
|
2318
2348
|
*
|
|
2319
2349
|
* Retrieves a replication document from the `_replicator` database to view the configuration of the replication. The
|
|
2320
2350
|
* status of the replication is no longer recorded in the document but can be checked via the replication scheduler.
|
|
2321
2351
|
*
|
|
2322
2352
|
* @param {Object} params - The parameters to send to the service.
|
|
2323
|
-
* @param {string} params.docId - Path parameter to specify the
|
|
2353
|
+
* @param {string} params.docId - Path parameter to specify the ID of the stored replication configuration in the
|
|
2354
|
+
* `_replicator` database.
|
|
2324
2355
|
* @param {string} [params.ifNoneMatch] - Header parameter for a conditional HTTP request not matching an ETag.
|
|
2325
2356
|
* @param {boolean} [params.attachments] - Query parameter to specify whether to include attachments bodies in a
|
|
2326
2357
|
* response.
|
|
@@ -2346,13 +2377,14 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
2346
2377
|
*/
|
|
2347
2378
|
getReplicationDocument(params: CloudantV1.GetReplicationDocumentParams): Promise<CloudantV1.Response<CloudantV1.ReplicationDocument>>;
|
|
2348
2379
|
/**
|
|
2349
|
-
* Create or modify a
|
|
2380
|
+
* Create or modify a persistent replication.
|
|
2350
2381
|
*
|
|
2351
2382
|
* Creates or modifies a document in the `_replicator` database to start a new replication or to edit an existing
|
|
2352
2383
|
* replication.
|
|
2353
2384
|
*
|
|
2354
2385
|
* @param {Object} params - The parameters to send to the service.
|
|
2355
|
-
* @param {string} params.docId - Path parameter to specify the
|
|
2386
|
+
* @param {string} params.docId - Path parameter to specify the ID of the stored replication configuration in the
|
|
2387
|
+
* `_replicator` database.
|
|
2356
2388
|
* @param {ReplicationDocument} params.replicationDocument - HTTP request body for replication operations.
|
|
2357
2389
|
* @param {string} [params.ifMatch] - Header parameter for a conditional HTTP request matching an ETag.
|
|
2358
2390
|
* @param {string} [params.batch] - Query parameter to specify whether to store in batch mode. The server will respond
|
|
@@ -2442,24 +2474,22 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
2442
2474
|
* authorization
|
|
2443
2475
|
************************/
|
|
2444
2476
|
/**
|
|
2445
|
-
*
|
|
2477
|
+
* Generates API keys for apps or persons to enable database access.
|
|
2446
2478
|
*
|
|
2447
|
-
*
|
|
2448
|
-
*
|
|
2449
|
-
*
|
|
2479
|
+
* Generates API keys to enable database access for a person or application, but without creating a new IBM Cloudant
|
|
2480
|
+
* account for that person or application. An API key is a randomly generated username and password. The key is given
|
|
2481
|
+
* the wanted access permissions for a database.
|
|
2450
2482
|
*
|
|
2451
|
-
* @param {Object} params - The parameters to send to the service.
|
|
2452
|
-
* @param {string} params.db - Path parameter to specify the database name.
|
|
2483
|
+
* @param {Object} [params] - The parameters to send to the service.
|
|
2453
2484
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
2454
|
-
* @returns {Promise<CloudantV1.Response<CloudantV1.
|
|
2485
|
+
* @returns {Promise<CloudantV1.Response<CloudantV1.ApiKeysResult>>}
|
|
2455
2486
|
*/
|
|
2456
|
-
|
|
2487
|
+
postApiKeys(params?: CloudantV1.PostApiKeysParams): Promise<CloudantV1.Response<CloudantV1.ApiKeysResult>>;
|
|
2457
2488
|
/**
|
|
2458
|
-
* Modify database permissions.
|
|
2489
|
+
* Modify only Cloudant related database permissions.
|
|
2459
2490
|
*
|
|
2460
|
-
* Modify
|
|
2461
|
-
*
|
|
2462
|
-
* users that have access permissions, you remove it from the list of users that have access to the database.
|
|
2491
|
+
* Modify only Cloudant related permissions to database. Be careful: by removing an API key from the list, you remove
|
|
2492
|
+
* the API key from the list of users that have access to the database.
|
|
2463
2493
|
*
|
|
2464
2494
|
* ### Note about nobody role
|
|
2465
2495
|
*
|
|
@@ -2469,31 +2499,33 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
2469
2499
|
*
|
|
2470
2500
|
* @param {Object} params - The parameters to send to the service.
|
|
2471
2501
|
* @param {string} params.db - Path parameter to specify the database name.
|
|
2502
|
+
* @param {JsonObject} params.cloudant - Database permissions for Cloudant users and/or API keys.
|
|
2472
2503
|
* @param {SecurityObject} [params.admins] - Schema for names and roles to map to a database permission.
|
|
2473
|
-
* @param {SecurityObject} [params.members] - Schema for names and roles to map to a database permission.
|
|
2474
|
-
* @param {JsonObject} [params.cloudant] - Database permissions for Cloudant users and/or API keys.
|
|
2475
2504
|
* @param {boolean} [params.couchdbAuthOnly] - Manage permissions using the `_users` database only.
|
|
2505
|
+
* @param {SecurityObject} [params.members] - Schema for names and roles to map to a database permission.
|
|
2476
2506
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
2477
2507
|
* @returns {Promise<CloudantV1.Response<CloudantV1.Ok>>}
|
|
2478
2508
|
*/
|
|
2479
|
-
|
|
2509
|
+
putCloudantSecurityConfiguration(params: CloudantV1.PutCloudantSecurityConfigurationParams): Promise<CloudantV1.Response<CloudantV1.Ok>>;
|
|
2480
2510
|
/**
|
|
2481
|
-
*
|
|
2511
|
+
* Retrieve database permissions information.
|
|
2482
2512
|
*
|
|
2483
|
-
*
|
|
2484
|
-
*
|
|
2485
|
-
*
|
|
2513
|
+
* See who has permission to read, write, and manage the database. The credentials you use to log in to the dashboard
|
|
2514
|
+
* automatically include `_admin` permissions to all databases you create. Everyone and everything else, including
|
|
2515
|
+
* users you share databases with and API keys you create, must be given a permission level explicitly.
|
|
2486
2516
|
*
|
|
2487
|
-
* @param {Object}
|
|
2517
|
+
* @param {Object} params - The parameters to send to the service.
|
|
2518
|
+
* @param {string} params.db - Path parameter to specify the database name.
|
|
2488
2519
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
2489
|
-
* @returns {Promise<CloudantV1.Response<CloudantV1.
|
|
2520
|
+
* @returns {Promise<CloudantV1.Response<CloudantV1.Security>>}
|
|
2490
2521
|
*/
|
|
2491
|
-
|
|
2522
|
+
getSecurity(params: CloudantV1.GetSecurityParams): Promise<CloudantV1.Response<CloudantV1.Security>>;
|
|
2492
2523
|
/**
|
|
2493
|
-
* Modify
|
|
2524
|
+
* Modify database permissions.
|
|
2494
2525
|
*
|
|
2495
|
-
* Modify
|
|
2496
|
-
*
|
|
2526
|
+
* Modify who has permission to read, write, or manage a database. This endpoint can be used to modify both Cloudant
|
|
2527
|
+
* and CouchDB related permissions. Be careful: by removing a Cloudant API key, a member or an admin from the list of
|
|
2528
|
+
* users that have access permissions, you remove it from the list of users that have access to the database.
|
|
2497
2529
|
*
|
|
2498
2530
|
* ### Note about nobody role
|
|
2499
2531
|
*
|
|
@@ -2503,14 +2535,14 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
2503
2535
|
*
|
|
2504
2536
|
* @param {Object} params - The parameters to send to the service.
|
|
2505
2537
|
* @param {string} params.db - Path parameter to specify the database name.
|
|
2506
|
-
* @param {JsonObject} params.cloudant - Database permissions for Cloudant users and/or API keys.
|
|
2507
2538
|
* @param {SecurityObject} [params.admins] - Schema for names and roles to map to a database permission.
|
|
2508
|
-
* @param {
|
|
2539
|
+
* @param {JsonObject} [params.cloudant] - Database permissions for Cloudant users and/or API keys.
|
|
2509
2540
|
* @param {boolean} [params.couchdbAuthOnly] - Manage permissions using the `_users` database only.
|
|
2541
|
+
* @param {SecurityObject} [params.members] - Schema for names and roles to map to a database permission.
|
|
2510
2542
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
2511
2543
|
* @returns {Promise<CloudantV1.Response<CloudantV1.Ok>>}
|
|
2512
2544
|
*/
|
|
2513
|
-
|
|
2545
|
+
putSecurity(params: CloudantV1.PutSecurityParams): Promise<CloudantV1.Response<CloudantV1.Ok>>;
|
|
2514
2546
|
/*************************
|
|
2515
2547
|
* cORS
|
|
2516
2548
|
************************/
|
|
@@ -2592,7 +2624,7 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
2592
2624
|
* @param {string} params.db - Path parameter to specify the database name.
|
|
2593
2625
|
* @param {string} params.docId - Path parameter to specify the document ID.
|
|
2594
2626
|
* @param {string} params.attachmentName - Path parameter to specify the attachment name.
|
|
2595
|
-
* @param {string} [params.accept] - The type of the response:
|
|
2627
|
+
* @param {string} [params.accept] - The type of the response: *_/_*.
|
|
2596
2628
|
* @param {string} [params.ifMatch] - Header parameter for a conditional HTTP request matching an ETag.
|
|
2597
2629
|
* @param {string} [params.ifNoneMatch] - Header parameter for a conditional HTTP request not matching an ETag.
|
|
2598
2630
|
* @param {string} [params.range] - Header parameter to specify the byte range for a request. This allows the
|
|
@@ -2762,31 +2794,6 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
2762
2794
|
* @returns {Promise<CloudantV1.Response<CloudantV1.ActiveTask[]>>}
|
|
2763
2795
|
*/
|
|
2764
2796
|
getActiveTasks(params?: CloudantV1.GetActiveTasksParams): Promise<CloudantV1.Response<CloudantV1.ActiveTask[]>>;
|
|
2765
|
-
/**
|
|
2766
|
-
* Retrieve cluster membership information.
|
|
2767
|
-
*
|
|
2768
|
-
* Displays the nodes that are part of the cluster as `cluster_nodes`. The field, `all_nodes`, displays all nodes this
|
|
2769
|
-
* node knows about, including the ones that are part of the cluster. This endpoint is useful when you set up a
|
|
2770
|
-
* cluster.
|
|
2771
|
-
*
|
|
2772
|
-
* @param {Object} [params] - The parameters to send to the service.
|
|
2773
|
-
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
2774
|
-
* @returns {Promise<CloudantV1.Response<CloudantV1.MembershipInformation>>}
|
|
2775
|
-
*/
|
|
2776
|
-
getMembershipInformation(params?: CloudantV1.GetMembershipInformationParams): Promise<CloudantV1.Response<CloudantV1.MembershipInformation>>;
|
|
2777
|
-
/**
|
|
2778
|
-
* Retrieve information about whether the server is up.
|
|
2779
|
-
*
|
|
2780
|
-
* Confirms that the server is up, running, and ready to respond to requests. If `maintenance_mode` is `true` or
|
|
2781
|
-
* `nolb`, the endpoint returns a 404 response.
|
|
2782
|
-
*
|
|
2783
|
-
* **Tip:** The authentication for this endpoint is only enforced when using IAM.
|
|
2784
|
-
*
|
|
2785
|
-
* @param {Object} [params] - The parameters to send to the service.
|
|
2786
|
-
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
2787
|
-
* @returns {Promise<CloudantV1.Response<CloudantV1.UpInformation>>}
|
|
2788
|
-
*/
|
|
2789
|
-
getUpInformation(params?: CloudantV1.GetUpInformationParams): Promise<CloudantV1.Response<CloudantV1.UpInformation>>;
|
|
2790
2797
|
/**
|
|
2791
2798
|
* Retrieve Activity Tracker events information.
|
|
2792
2799
|
*
|
|
@@ -2821,6 +2828,31 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
2821
2828
|
* @returns {Promise<CloudantV1.Response<CloudantV1.CurrentThroughputInformation>>}
|
|
2822
2829
|
*/
|
|
2823
2830
|
getCurrentThroughputInformation(params?: CloudantV1.GetCurrentThroughputInformationParams): Promise<CloudantV1.Response<CloudantV1.CurrentThroughputInformation>>;
|
|
2831
|
+
/**
|
|
2832
|
+
* Retrieve cluster membership information.
|
|
2833
|
+
*
|
|
2834
|
+
* Displays the nodes that are part of the cluster as `cluster_nodes`. The field, `all_nodes`, displays all nodes this
|
|
2835
|
+
* node knows about, including the ones that are part of the cluster. This endpoint is useful when you set up a
|
|
2836
|
+
* cluster.
|
|
2837
|
+
*
|
|
2838
|
+
* @param {Object} [params] - The parameters to send to the service.
|
|
2839
|
+
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
2840
|
+
* @returns {Promise<CloudantV1.Response<CloudantV1.MembershipInformation>>}
|
|
2841
|
+
*/
|
|
2842
|
+
getMembershipInformation(params?: CloudantV1.GetMembershipInformationParams): Promise<CloudantV1.Response<CloudantV1.MembershipInformation>>;
|
|
2843
|
+
/**
|
|
2844
|
+
* Retrieve information about whether the server is up.
|
|
2845
|
+
*
|
|
2846
|
+
* Confirms that the server is up, running, and ready to respond to requests. If `maintenance_mode` is `true` or
|
|
2847
|
+
* `nolb`, the endpoint returns a 404 response.
|
|
2848
|
+
*
|
|
2849
|
+
* **Tip:** The authentication for this endpoint is only enforced when using IAM.
|
|
2850
|
+
*
|
|
2851
|
+
* @param {Object} [params] - The parameters to send to the service.
|
|
2852
|
+
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
2853
|
+
* @returns {Promise<CloudantV1.Response<CloudantV1.UpInformation>>}
|
|
2854
|
+
*/
|
|
2855
|
+
getUpInformation(params?: CloudantV1.GetUpInformationParams): Promise<CloudantV1.Response<CloudantV1.UpInformation>>;
|
|
2824
2856
|
}
|
|
2825
2857
|
/*************************
|
|
2826
2858
|
* interfaces
|
|
@@ -2851,12 +2883,6 @@ declare namespace CloudantV1 {
|
|
|
2851
2883
|
interface GetServerInformationParams {
|
|
2852
2884
|
headers?: OutgoingHttpHeaders;
|
|
2853
2885
|
}
|
|
2854
|
-
/** Parameters for the `getUuids` operation. */
|
|
2855
|
-
interface GetUuidsParams {
|
|
2856
|
-
/** Query parameter to specify the number of UUIDs to return. */
|
|
2857
|
-
count?: number;
|
|
2858
|
-
headers?: OutgoingHttpHeaders;
|
|
2859
|
-
}
|
|
2860
2886
|
/** Parameters for the `getCapacityThroughputInformation` operation. */
|
|
2861
2887
|
interface GetCapacityThroughputInformationParams {
|
|
2862
2888
|
headers?: OutgoingHttpHeaders;
|
|
@@ -2869,6 +2895,12 @@ declare namespace CloudantV1 {
|
|
|
2869
2895
|
blocks: number;
|
|
2870
2896
|
headers?: OutgoingHttpHeaders;
|
|
2871
2897
|
}
|
|
2898
|
+
/** Parameters for the `getUuids` operation. */
|
|
2899
|
+
interface GetUuidsParams {
|
|
2900
|
+
/** Query parameter to specify the number of UUIDs to return. */
|
|
2901
|
+
count?: number;
|
|
2902
|
+
headers?: OutgoingHttpHeaders;
|
|
2903
|
+
}
|
|
2872
2904
|
/** Parameters for the `getDbUpdates` operation. */
|
|
2873
2905
|
interface GetDbUpdatesParams {
|
|
2874
2906
|
/** Query parameter to specify whether to return the documents in descending by key order. */
|
|
@@ -3028,7 +3060,7 @@ declare namespace CloudantV1 {
|
|
|
3028
3060
|
* will only return the current "winning" revision; all_docs will return all leaf revisions (including conflicts
|
|
3029
3061
|
* and deleted former conflicts).
|
|
3030
3062
|
*/
|
|
3031
|
-
style?: string;
|
|
3063
|
+
style?: PostChangesConstants.Style | string;
|
|
3032
3064
|
/** Query parameter to specify the maximum period in milliseconds to wait for a change before the response is
|
|
3033
3065
|
* sent, even if there are no results. Only applicable for `longpoll` or `continuous` feeds. Default value is
|
|
3034
3066
|
* specified by `httpd/changes_timeout` configuration option. Note that `60000` value is also the default maximum
|
|
@@ -3050,6 +3082,11 @@ declare namespace CloudantV1 {
|
|
|
3050
3082
|
LONGPOLL = "longpoll",
|
|
3051
3083
|
NORMAL = "normal"
|
|
3052
3084
|
}
|
|
3085
|
+
/** Query parameter to specify how many revisions are returned in the changes array. The default, `main_only`, will only return the current "winning" revision; all_docs will return all leaf revisions (including conflicts and deleted former conflicts). */
|
|
3086
|
+
enum Style {
|
|
3087
|
+
MAIN_ONLY = "main_only",
|
|
3088
|
+
ALL_DOCS = "all_docs"
|
|
3089
|
+
}
|
|
3053
3090
|
}
|
|
3054
3091
|
/** Parameters for the `postChangesAsStream` operation. */
|
|
3055
3092
|
interface PostChangesAsStreamParams {
|
|
@@ -3166,7 +3203,7 @@ declare namespace CloudantV1 {
|
|
|
3166
3203
|
* will only return the current "winning" revision; all_docs will return all leaf revisions (including conflicts
|
|
3167
3204
|
* and deleted former conflicts).
|
|
3168
3205
|
*/
|
|
3169
|
-
style?: string;
|
|
3206
|
+
style?: PostChangesAsStreamConstants.Style | string;
|
|
3170
3207
|
/** Query parameter to specify the maximum period in milliseconds to wait for a change before the response is
|
|
3171
3208
|
* sent, even if there are no results. Only applicable for `longpoll` or `continuous` feeds. Default value is
|
|
3172
3209
|
* specified by `httpd/changes_timeout` configuration option. Note that `60000` value is also the default maximum
|
|
@@ -3188,6 +3225,11 @@ declare namespace CloudantV1 {
|
|
|
3188
3225
|
LONGPOLL = "longpoll",
|
|
3189
3226
|
NORMAL = "normal"
|
|
3190
3227
|
}
|
|
3228
|
+
/** Query parameter to specify how many revisions are returned in the changes array. The default, `main_only`, will only return the current "winning" revision; all_docs will return all leaf revisions (including conflicts and deleted former conflicts). */
|
|
3229
|
+
enum Style {
|
|
3230
|
+
MAIN_ONLY = "main_only",
|
|
3231
|
+
ALL_DOCS = "all_docs"
|
|
3232
|
+
}
|
|
3191
3233
|
}
|
|
3192
3234
|
/** Parameters for the `headDatabase` operation. */
|
|
3193
3235
|
interface HeadDatabaseParams {
|
|
@@ -5307,10 +5349,9 @@ declare namespace CloudantV1 {
|
|
|
5307
5349
|
* supported. This option is only available when making global queries.
|
|
5308
5350
|
*/
|
|
5309
5351
|
groupSort?: string[];
|
|
5310
|
-
/**
|
|
5311
|
-
*
|
|
5312
|
-
*
|
|
5313
|
-
* option is only available when making global queries.
|
|
5352
|
+
/** Object mapping faceted, numeric search field names to the required ranges. Each key is a field name and each
|
|
5353
|
+
* value is another object defining the ranges by mapping range name keys to string values describing the numeric
|
|
5354
|
+
* ranges, for example "[0 TO 10]". This option is only available when making global queries.
|
|
5314
5355
|
*/
|
|
5315
5356
|
ranges?: JsonObject;
|
|
5316
5357
|
headers?: OutgoingHttpHeaders;
|
|
@@ -5394,10 +5435,9 @@ declare namespace CloudantV1 {
|
|
|
5394
5435
|
* supported. This option is only available when making global queries.
|
|
5395
5436
|
*/
|
|
5396
5437
|
groupSort?: string[];
|
|
5397
|
-
/**
|
|
5398
|
-
*
|
|
5399
|
-
*
|
|
5400
|
-
* option is only available when making global queries.
|
|
5438
|
+
/** Object mapping faceted, numeric search field names to the required ranges. Each key is a field name and each
|
|
5439
|
+
* value is another object defining the ranges by mapping range name keys to string values describing the numeric
|
|
5440
|
+
* ranges, for example "[0 TO 10]". This option is only available when making global queries.
|
|
5401
5441
|
*/
|
|
5402
5442
|
ranges?: JsonObject;
|
|
5403
5443
|
headers?: OutgoingHttpHeaders;
|
|
@@ -5409,6 +5449,18 @@ declare namespace CloudantV1 {
|
|
|
5409
5449
|
OK = "ok"
|
|
5410
5450
|
}
|
|
5411
5451
|
}
|
|
5452
|
+
/** Parameters for the `getSearchDiskSize` operation. */
|
|
5453
|
+
interface GetSearchDiskSizeParams {
|
|
5454
|
+
/** Path parameter to specify the database name. */
|
|
5455
|
+
db: string;
|
|
5456
|
+
/** Path parameter to specify the design document name. The design document name is the design document ID
|
|
5457
|
+
* excluding the `_design/` prefix.
|
|
5458
|
+
*/
|
|
5459
|
+
ddoc: string;
|
|
5460
|
+
/** Path parameter to specify the index name. */
|
|
5461
|
+
index: string;
|
|
5462
|
+
headers?: OutgoingHttpHeaders;
|
|
5463
|
+
}
|
|
5412
5464
|
/** Parameters for the `getSearchInfo` operation. */
|
|
5413
5465
|
interface GetSearchInfoParams {
|
|
5414
5466
|
/** Path parameter to specify the database name. */
|
|
@@ -5423,7 +5475,7 @@ declare namespace CloudantV1 {
|
|
|
5423
5475
|
}
|
|
5424
5476
|
/** Parameters for the `headReplicationDocument` operation. */
|
|
5425
5477
|
interface HeadReplicationDocumentParams {
|
|
5426
|
-
/** Path parameter to specify the
|
|
5478
|
+
/** Path parameter to specify the ID of the stored replication configuration in the `_replicator` database. */
|
|
5427
5479
|
docId: string;
|
|
5428
5480
|
/** Header parameter for a conditional HTTP request not matching an ETag. */
|
|
5429
5481
|
ifNoneMatch?: string;
|
|
@@ -5441,9 +5493,26 @@ declare namespace CloudantV1 {
|
|
|
5441
5493
|
jobId: string;
|
|
5442
5494
|
headers?: OutgoingHttpHeaders;
|
|
5443
5495
|
}
|
|
5496
|
+
/** Parameters for the `postReplicator` operation. */
|
|
5497
|
+
interface PostReplicatorParams {
|
|
5498
|
+
/** HTTP request body for replication operations. */
|
|
5499
|
+
replicationDocument: ReplicationDocument;
|
|
5500
|
+
/** Query parameter to specify whether to store in batch mode. The server will respond with a HTTP 202 Accepted
|
|
5501
|
+
* response code immediately.
|
|
5502
|
+
*/
|
|
5503
|
+
batch?: PostReplicatorConstants.Batch | string;
|
|
5504
|
+
headers?: OutgoingHttpHeaders;
|
|
5505
|
+
}
|
|
5506
|
+
/** Constants for the `postReplicator` operation. */
|
|
5507
|
+
namespace PostReplicatorConstants {
|
|
5508
|
+
/** Query parameter to specify whether to store in batch mode. The server will respond with a HTTP 202 Accepted response code immediately. */
|
|
5509
|
+
enum Batch {
|
|
5510
|
+
OK = "ok"
|
|
5511
|
+
}
|
|
5512
|
+
}
|
|
5444
5513
|
/** Parameters for the `deleteReplicationDocument` operation. */
|
|
5445
5514
|
interface DeleteReplicationDocumentParams {
|
|
5446
|
-
/** Path parameter to specify the
|
|
5515
|
+
/** Path parameter to specify the ID of the stored replication configuration in the `_replicator` database. */
|
|
5447
5516
|
docId: string;
|
|
5448
5517
|
/** Header parameter for a conditional HTTP request matching an ETag. */
|
|
5449
5518
|
ifMatch?: string;
|
|
@@ -5464,7 +5533,7 @@ declare namespace CloudantV1 {
|
|
|
5464
5533
|
}
|
|
5465
5534
|
/** Parameters for the `getReplicationDocument` operation. */
|
|
5466
5535
|
interface GetReplicationDocumentParams {
|
|
5467
|
-
/** Path parameter to specify the
|
|
5536
|
+
/** Path parameter to specify the ID of the stored replication configuration in the `_replicator` database. */
|
|
5468
5537
|
docId: string;
|
|
5469
5538
|
/** Header parameter for a conditional HTTP request not matching an ETag. */
|
|
5470
5539
|
ifNoneMatch?: string;
|
|
@@ -5502,7 +5571,7 @@ declare namespace CloudantV1 {
|
|
|
5502
5571
|
}
|
|
5503
5572
|
/** Parameters for the `putReplicationDocument` operation. */
|
|
5504
5573
|
interface PutReplicationDocumentParams {
|
|
5505
|
-
/** Path parameter to specify the
|
|
5574
|
+
/** Path parameter to specify the ID of the stored replication configuration in the `_replicator` database. */
|
|
5506
5575
|
docId: string;
|
|
5507
5576
|
/** HTTP request body for replication operations. */
|
|
5508
5577
|
replicationDocument: ReplicationDocument;
|
|
@@ -5580,28 +5649,26 @@ declare namespace CloudantV1 {
|
|
|
5580
5649
|
interface GetSessionInformationParams {
|
|
5581
5650
|
headers?: OutgoingHttpHeaders;
|
|
5582
5651
|
}
|
|
5583
|
-
/** Parameters for the `
|
|
5584
|
-
interface
|
|
5585
|
-
/** Path parameter to specify the database name. */
|
|
5586
|
-
db: string;
|
|
5652
|
+
/** Parameters for the `postApiKeys` operation. */
|
|
5653
|
+
interface PostApiKeysParams {
|
|
5587
5654
|
headers?: OutgoingHttpHeaders;
|
|
5588
5655
|
}
|
|
5589
|
-
/** Parameters for the `
|
|
5590
|
-
interface
|
|
5656
|
+
/** Parameters for the `putCloudantSecurityConfiguration` operation. */
|
|
5657
|
+
interface PutCloudantSecurityConfigurationParams {
|
|
5591
5658
|
/** Path parameter to specify the database name. */
|
|
5592
5659
|
db: string;
|
|
5660
|
+
/** Database permissions for Cloudant users and/or API keys. */
|
|
5661
|
+
cloudant: JsonObject;
|
|
5593
5662
|
/** Schema for names and roles to map to a database permission. */
|
|
5594
5663
|
admins?: SecurityObject;
|
|
5595
|
-
/** Schema for names and roles to map to a database permission. */
|
|
5596
|
-
members?: SecurityObject;
|
|
5597
|
-
/** Database permissions for Cloudant users and/or API keys. */
|
|
5598
|
-
cloudant?: JsonObject;
|
|
5599
5664
|
/** Manage permissions using the `_users` database only. */
|
|
5600
5665
|
couchdbAuthOnly?: boolean;
|
|
5666
|
+
/** Schema for names and roles to map to a database permission. */
|
|
5667
|
+
members?: SecurityObject;
|
|
5601
5668
|
headers?: OutgoingHttpHeaders;
|
|
5602
5669
|
}
|
|
5603
|
-
/** Constants for the `
|
|
5604
|
-
namespace
|
|
5670
|
+
/** Constants for the `putCloudantSecurityConfiguration` operation. */
|
|
5671
|
+
namespace PutCloudantSecurityConfigurationConstants {
|
|
5605
5672
|
/** Database permissions for Cloudant users and/or API keys. */
|
|
5606
5673
|
enum Cloudant {
|
|
5607
5674
|
READER = "_reader",
|
|
@@ -5614,26 +5681,28 @@ declare namespace CloudantV1 {
|
|
|
5614
5681
|
SECURITY = "_security"
|
|
5615
5682
|
}
|
|
5616
5683
|
}
|
|
5617
|
-
/** Parameters for the `
|
|
5618
|
-
interface
|
|
5684
|
+
/** Parameters for the `getSecurity` operation. */
|
|
5685
|
+
interface GetSecurityParams {
|
|
5686
|
+
/** Path parameter to specify the database name. */
|
|
5687
|
+
db: string;
|
|
5619
5688
|
headers?: OutgoingHttpHeaders;
|
|
5620
5689
|
}
|
|
5621
|
-
/** Parameters for the `
|
|
5622
|
-
interface
|
|
5690
|
+
/** Parameters for the `putSecurity` operation. */
|
|
5691
|
+
interface PutSecurityParams {
|
|
5623
5692
|
/** Path parameter to specify the database name. */
|
|
5624
5693
|
db: string;
|
|
5625
|
-
/** Database permissions for Cloudant users and/or API keys. */
|
|
5626
|
-
cloudant: JsonObject;
|
|
5627
5694
|
/** Schema for names and roles to map to a database permission. */
|
|
5628
5695
|
admins?: SecurityObject;
|
|
5629
|
-
/**
|
|
5630
|
-
|
|
5696
|
+
/** Database permissions for Cloudant users and/or API keys. */
|
|
5697
|
+
cloudant?: JsonObject;
|
|
5631
5698
|
/** Manage permissions using the `_users` database only. */
|
|
5632
5699
|
couchdbAuthOnly?: boolean;
|
|
5700
|
+
/** Schema for names and roles to map to a database permission. */
|
|
5701
|
+
members?: SecurityObject;
|
|
5633
5702
|
headers?: OutgoingHttpHeaders;
|
|
5634
5703
|
}
|
|
5635
|
-
/** Constants for the `
|
|
5636
|
-
namespace
|
|
5704
|
+
/** Constants for the `putSecurity` operation. */
|
|
5705
|
+
namespace PutSecurityConstants {
|
|
5637
5706
|
/** Database permissions for Cloudant users and/or API keys. */
|
|
5638
5707
|
enum Cloudant {
|
|
5639
5708
|
READER = "_reader",
|
|
@@ -5714,7 +5783,7 @@ declare namespace CloudantV1 {
|
|
|
5714
5783
|
docId: string;
|
|
5715
5784
|
/** Path parameter to specify the attachment name. */
|
|
5716
5785
|
attachmentName: string;
|
|
5717
|
-
/** The type of the response:
|
|
5786
|
+
/** The type of the response: *_/_*. */
|
|
5718
5787
|
accept?: string;
|
|
5719
5788
|
/** Header parameter for a conditional HTTP request matching an ETag. */
|
|
5720
5789
|
ifMatch?: string;
|
|
@@ -5865,14 +5934,6 @@ declare namespace CloudantV1 {
|
|
|
5865
5934
|
interface GetActiveTasksParams {
|
|
5866
5935
|
headers?: OutgoingHttpHeaders;
|
|
5867
5936
|
}
|
|
5868
|
-
/** Parameters for the `getMembershipInformation` operation. */
|
|
5869
|
-
interface GetMembershipInformationParams {
|
|
5870
|
-
headers?: OutgoingHttpHeaders;
|
|
5871
|
-
}
|
|
5872
|
-
/** Parameters for the `getUpInformation` operation. */
|
|
5873
|
-
interface GetUpInformationParams {
|
|
5874
|
-
headers?: OutgoingHttpHeaders;
|
|
5875
|
-
}
|
|
5876
5937
|
/** Parameters for the `getActivityTrackerEvents` operation. */
|
|
5877
5938
|
interface GetActivityTrackerEventsParams {
|
|
5878
5939
|
headers?: OutgoingHttpHeaders;
|
|
@@ -5897,6 +5958,14 @@ declare namespace CloudantV1 {
|
|
|
5897
5958
|
interface GetCurrentThroughputInformationParams {
|
|
5898
5959
|
headers?: OutgoingHttpHeaders;
|
|
5899
5960
|
}
|
|
5961
|
+
/** Parameters for the `getMembershipInformation` operation. */
|
|
5962
|
+
interface GetMembershipInformationParams {
|
|
5963
|
+
headers?: OutgoingHttpHeaders;
|
|
5964
|
+
}
|
|
5965
|
+
/** Parameters for the `getUpInformation` operation. */
|
|
5966
|
+
interface GetUpInformationParams {
|
|
5967
|
+
headers?: OutgoingHttpHeaders;
|
|
5968
|
+
}
|
|
5900
5969
|
/*************************
|
|
5901
5970
|
* model interfaces
|
|
5902
5971
|
************************/
|
|
@@ -6155,7 +6224,7 @@ declare namespace CloudantV1 {
|
|
|
6155
6224
|
* Schema for the result of an all documents operation.
|
|
6156
6225
|
*/
|
|
6157
6226
|
class AllDocsResult {
|
|
6158
|
-
/**
|
|
6227
|
+
/** Total number of document results. */
|
|
6159
6228
|
totalRows: number;
|
|
6160
6229
|
/** List of doc results. */
|
|
6161
6230
|
rows: DocsResultRow[];
|
|
@@ -6180,7 +6249,7 @@ declare namespace CloudantV1 {
|
|
|
6180
6249
|
* * For search indexes the default is `standard` * For query text indexes the default is `keyword` * For a query
|
|
6181
6250
|
* text index default_field the default is `standard`.
|
|
6182
6251
|
*/
|
|
6183
|
-
name
|
|
6252
|
+
name: Analyzer.Constants.Name | string;
|
|
6184
6253
|
/** Custom stopwords to use with the named analyzer. */
|
|
6185
6254
|
stopwords?: string[];
|
|
6186
6255
|
static serialize(obj: any): Analyzer.Transport;
|
|
@@ -6234,7 +6303,7 @@ declare namespace CloudantV1 {
|
|
|
6234
6303
|
}
|
|
6235
6304
|
}
|
|
6236
6305
|
interface Transport {
|
|
6237
|
-
name
|
|
6306
|
+
name: string;
|
|
6238
6307
|
stopwords?: string[];
|
|
6239
6308
|
}
|
|
6240
6309
|
}
|
|
@@ -6247,7 +6316,7 @@ declare namespace CloudantV1 {
|
|
|
6247
6316
|
* * For search indexes the default is `standard` * For query text indexes the default is `keyword` * For a query
|
|
6248
6317
|
* text index default_field the default is `standard`.
|
|
6249
6318
|
*/
|
|
6250
|
-
name
|
|
6319
|
+
name: AnalyzerConfiguration.Constants.Name | string;
|
|
6251
6320
|
/** Custom stopwords to use with the named analyzer. */
|
|
6252
6321
|
stopwords?: string[];
|
|
6253
6322
|
/** Schema for mapping a field name to a per field analyzer. */
|
|
@@ -6305,7 +6374,7 @@ declare namespace CloudantV1 {
|
|
|
6305
6374
|
}
|
|
6306
6375
|
}
|
|
6307
6376
|
interface Transport {
|
|
6308
|
-
name
|
|
6377
|
+
name: string;
|
|
6309
6378
|
stopwords?: string[];
|
|
6310
6379
|
fields?: {
|
|
6311
6380
|
[key: string]: Analyzer.Transport;
|
|
@@ -6684,6 +6753,8 @@ declare namespace CloudantV1 {
|
|
|
6684
6753
|
* old replicator versions. Do not use the value to infer timing infromation. Typically only used by replicators.
|
|
6685
6754
|
*/
|
|
6686
6755
|
instanceStartTime: string;
|
|
6756
|
+
/** Information about database's partitioned indexes. */
|
|
6757
|
+
partitionedIndexes?: PartitionedIndexesInformation;
|
|
6687
6758
|
/** Schema for database properties. */
|
|
6688
6759
|
props: DatabaseInformationProps;
|
|
6689
6760
|
/** Schema for size information of content. */
|
|
@@ -6694,8 +6765,6 @@ declare namespace CloudantV1 {
|
|
|
6694
6765
|
updateSeq: string;
|
|
6695
6766
|
/** The UUID of the database. */
|
|
6696
6767
|
uuid?: string;
|
|
6697
|
-
/** Information about database's partitioned indexes. */
|
|
6698
|
-
partitionedIndexes?: PartitionedIndexesInformation;
|
|
6699
6768
|
static serialize(obj: any): DatabaseInformation.Transport;
|
|
6700
6769
|
static deserialize(obj: any): DatabaseInformation;
|
|
6701
6770
|
}
|
|
@@ -6711,11 +6780,11 @@ declare namespace CloudantV1 {
|
|
|
6711
6780
|
doc_del_count: number;
|
|
6712
6781
|
engine?: string;
|
|
6713
6782
|
instance_start_time: string;
|
|
6783
|
+
partitioned_indexes?: PartitionedIndexesInformation.Transport;
|
|
6714
6784
|
props: DatabaseInformationProps.Transport;
|
|
6715
6785
|
sizes: ContentInformationSizes.Transport;
|
|
6716
6786
|
update_seq: string;
|
|
6717
6787
|
uuid?: string;
|
|
6718
|
-
partitioned_indexes?: PartitionedIndexesInformation.Transport;
|
|
6719
6788
|
}
|
|
6720
6789
|
}
|
|
6721
6790
|
/**
|
|
@@ -7346,31 +7415,31 @@ declare namespace CloudantV1 {
|
|
|
7346
7415
|
*/
|
|
7347
7416
|
class ExplainResultMrArgs {
|
|
7348
7417
|
/** Schema for any JSON type. */
|
|
7349
|
-
conflicts
|
|
7418
|
+
conflicts: any;
|
|
7350
7419
|
/** Direction parameter passed to the underlying view. */
|
|
7351
|
-
direction
|
|
7420
|
+
direction: ExplainResultMrArgs.Constants.Direction | string;
|
|
7352
7421
|
/** Schema for any JSON type. */
|
|
7353
|
-
endKey
|
|
7422
|
+
endKey: any;
|
|
7354
7423
|
/** A parameter that specifies whether to include the full content of the documents in the response in the
|
|
7355
7424
|
* underlying view.
|
|
7356
7425
|
*/
|
|
7357
|
-
includeDocs
|
|
7426
|
+
includeDocs: boolean;
|
|
7358
7427
|
/** Partition parameter passed to the underlying view. */
|
|
7359
|
-
partition
|
|
7428
|
+
partition: string | null;
|
|
7360
7429
|
/** A parameter that specifies returning only documents that match any of the specified keys in the underlying
|
|
7361
7430
|
* view.
|
|
7362
7431
|
*/
|
|
7363
|
-
reduce
|
|
7432
|
+
reduce: boolean;
|
|
7364
7433
|
/** A parameter that specifies whether the view results should be returned form a "stable" set of shards passed
|
|
7365
7434
|
* to the underlying view.
|
|
7366
7435
|
*/
|
|
7367
|
-
stable
|
|
7436
|
+
stable: boolean;
|
|
7368
7437
|
/** Schema for any JSON type. */
|
|
7369
7438
|
startKey?: any;
|
|
7370
7439
|
/** Schema for any JSON type. */
|
|
7371
|
-
update
|
|
7440
|
+
update: any;
|
|
7372
7441
|
/** The type of the underlying view. */
|
|
7373
|
-
viewType
|
|
7442
|
+
viewType: ExplainResultMrArgs.Constants.ViewType | string;
|
|
7374
7443
|
static serialize(obj: any): ExplainResultMrArgs.Transport;
|
|
7375
7444
|
static deserialize(obj: any): ExplainResultMrArgs;
|
|
7376
7445
|
}
|
|
@@ -7378,8 +7447,8 @@ declare namespace CloudantV1 {
|
|
|
7378
7447
|
namespace Constants {
|
|
7379
7448
|
/** Direction parameter passed to the underlying view. */
|
|
7380
7449
|
enum Direction {
|
|
7381
|
-
|
|
7382
|
-
|
|
7450
|
+
FWD = "fwd",
|
|
7451
|
+
REV = "rev"
|
|
7383
7452
|
}
|
|
7384
7453
|
/** The type of the underlying view. */
|
|
7385
7454
|
enum ViewType {
|
|
@@ -7388,16 +7457,16 @@ declare namespace CloudantV1 {
|
|
|
7388
7457
|
}
|
|
7389
7458
|
}
|
|
7390
7459
|
interface Transport {
|
|
7391
|
-
conflicts
|
|
7392
|
-
direction
|
|
7393
|
-
end_key
|
|
7394
|
-
include_docs
|
|
7395
|
-
partition
|
|
7396
|
-
reduce
|
|
7397
|
-
stable
|
|
7460
|
+
conflicts: any;
|
|
7461
|
+
direction: string;
|
|
7462
|
+
end_key: any;
|
|
7463
|
+
include_docs: boolean;
|
|
7464
|
+
partition: string;
|
|
7465
|
+
reduce: boolean;
|
|
7466
|
+
stable: boolean;
|
|
7398
7467
|
start_key?: any;
|
|
7399
|
-
update
|
|
7400
|
-
view_type
|
|
7468
|
+
update: any;
|
|
7469
|
+
view_type: string;
|
|
7401
7470
|
}
|
|
7402
7471
|
}
|
|
7403
7472
|
/**
|
|
@@ -7523,7 +7592,7 @@ declare namespace CloudantV1 {
|
|
|
7523
7592
|
* * too_many_fields: json The index has more fields than the chosen one.
|
|
7524
7593
|
* * unfavored_type: any The type of the index is not preferred.
|
|
7525
7594
|
*/
|
|
7526
|
-
name
|
|
7595
|
+
name: IndexAnalysisExclusionReason.Constants.Name | string;
|
|
7527
7596
|
static serialize(obj: any): IndexAnalysisExclusionReason.Transport;
|
|
7528
7597
|
static deserialize(obj: any): IndexAnalysisExclusionReason;
|
|
7529
7598
|
}
|
|
@@ -7545,7 +7614,7 @@ declare namespace CloudantV1 {
|
|
|
7545
7614
|
}
|
|
7546
7615
|
}
|
|
7547
7616
|
interface Transport {
|
|
7548
|
-
name
|
|
7617
|
+
name: string;
|
|
7549
7618
|
}
|
|
7550
7619
|
}
|
|
7551
7620
|
/**
|
|
@@ -7760,7 +7829,7 @@ declare namespace CloudantV1 {
|
|
|
7760
7829
|
* Schema for information about the indexes in a database.
|
|
7761
7830
|
*/
|
|
7762
7831
|
class IndexesInformation {
|
|
7763
|
-
/**
|
|
7832
|
+
/** Total number of query indexes in the database. */
|
|
7764
7833
|
totalRows: number;
|
|
7765
7834
|
/** Indexes. */
|
|
7766
7835
|
indexes: IndexInformation[];
|
|
@@ -8240,7 +8309,7 @@ declare namespace CloudantV1 {
|
|
|
8240
8309
|
* Schema for a listing of replication scheduler documents.
|
|
8241
8310
|
*/
|
|
8242
8311
|
class SchedulerDocsResult {
|
|
8243
|
-
/**
|
|
8312
|
+
/** Total number of replication scheduler documents. */
|
|
8244
8313
|
totalRows: number;
|
|
8245
8314
|
/** Array of replication scheduler doc objects. */
|
|
8246
8315
|
docs: SchedulerDocument[];
|
|
@@ -8438,7 +8507,7 @@ declare namespace CloudantV1 {
|
|
|
8438
8507
|
* Schema for a listing of replication scheduler jobs.
|
|
8439
8508
|
*/
|
|
8440
8509
|
class SchedulerJobsResult {
|
|
8441
|
-
/**
|
|
8510
|
+
/** Total number of replication jobs. */
|
|
8442
8511
|
totalRows: number;
|
|
8443
8512
|
/** Array of replication job objects. */
|
|
8444
8513
|
jobs: SchedulerJob[];
|
|
@@ -8465,6 +8534,23 @@ declare namespace CloudantV1 {
|
|
|
8465
8534
|
tokens: string[];
|
|
8466
8535
|
}
|
|
8467
8536
|
}
|
|
8537
|
+
/**
|
|
8538
|
+
* Schema for search index disk size.
|
|
8539
|
+
*/
|
|
8540
|
+
class SearchDiskSizeInformation {
|
|
8541
|
+
/** The name of the search index prefixed by the design document ID where the index is stored. */
|
|
8542
|
+
name: string;
|
|
8543
|
+
/** Schema for search index disk size. */
|
|
8544
|
+
searchIndex: SearchIndexDiskSize;
|
|
8545
|
+
static serialize(obj: any): SearchDiskSizeInformation.Transport;
|
|
8546
|
+
static deserialize(obj: any): SearchDiskSizeInformation;
|
|
8547
|
+
}
|
|
8548
|
+
namespace SearchDiskSizeInformation {
|
|
8549
|
+
interface Transport {
|
|
8550
|
+
name: string;
|
|
8551
|
+
search_index: SearchIndexDiskSize.Transport;
|
|
8552
|
+
}
|
|
8553
|
+
}
|
|
8468
8554
|
/**
|
|
8469
8555
|
* Schema for a search index definition.
|
|
8470
8556
|
*/
|
|
@@ -8501,6 +8587,20 @@ declare namespace CloudantV1 {
|
|
|
8501
8587
|
index: string;
|
|
8502
8588
|
}
|
|
8503
8589
|
}
|
|
8590
|
+
/**
|
|
8591
|
+
* Schema for search index disk size.
|
|
8592
|
+
*/
|
|
8593
|
+
class SearchIndexDiskSize {
|
|
8594
|
+
/** The size of the search index on disk. */
|
|
8595
|
+
diskSize?: number;
|
|
8596
|
+
static serialize(obj: any): SearchIndexDiskSize.Transport;
|
|
8597
|
+
static deserialize(obj: any): SearchIndexDiskSize;
|
|
8598
|
+
}
|
|
8599
|
+
namespace SearchIndexDiskSize {
|
|
8600
|
+
interface Transport {
|
|
8601
|
+
disk_size?: number;
|
|
8602
|
+
}
|
|
8603
|
+
}
|
|
8504
8604
|
/**
|
|
8505
8605
|
* Schema for metadata information about a search index.
|
|
8506
8606
|
*/
|
|
@@ -8551,7 +8651,9 @@ declare namespace CloudantV1 {
|
|
|
8551
8651
|
* Schema for the result of a query search operation.
|
|
8552
8652
|
*/
|
|
8553
8653
|
class SearchResult {
|
|
8554
|
-
/**
|
|
8654
|
+
/** Total number of rows in the index matching the search query. The limit may truncate the number of matches
|
|
8655
|
+
* returned.
|
|
8656
|
+
*/
|
|
8555
8657
|
totalRows: number;
|
|
8556
8658
|
/** Opaque bookmark token used when paginating results. */
|
|
8557
8659
|
bookmark?: string;
|
|
@@ -8593,7 +8695,9 @@ declare namespace CloudantV1 {
|
|
|
8593
8695
|
* Schema for the result of a query search operation.
|
|
8594
8696
|
*/
|
|
8595
8697
|
class SearchResultProperties {
|
|
8596
|
-
/**
|
|
8698
|
+
/** Total number of rows in the index matching the search query. The limit may truncate the number of matches
|
|
8699
|
+
* returned.
|
|
8700
|
+
*/
|
|
8597
8701
|
totalRows: number;
|
|
8598
8702
|
/** Opaque bookmark token used when paginating results. */
|
|
8599
8703
|
bookmark?: string;
|
|
@@ -8659,21 +8763,21 @@ declare namespace CloudantV1 {
|
|
|
8659
8763
|
class Security {
|
|
8660
8764
|
/** Schema for names and roles to map to a database permission. */
|
|
8661
8765
|
admins?: SecurityObject;
|
|
8662
|
-
/** Schema for names and roles to map to a database permission. */
|
|
8663
|
-
members?: SecurityObject;
|
|
8664
8766
|
/** Database permissions for Cloudant users and/or API keys. */
|
|
8665
8767
|
cloudant?: JsonObject;
|
|
8666
8768
|
/** Manage permissions using the `_users` database only. */
|
|
8667
8769
|
couchdbAuthOnly?: boolean;
|
|
8770
|
+
/** Schema for names and roles to map to a database permission. */
|
|
8771
|
+
members?: SecurityObject;
|
|
8668
8772
|
static serialize(obj: any): Security.Transport;
|
|
8669
8773
|
static deserialize(obj: any): Security;
|
|
8670
8774
|
}
|
|
8671
8775
|
namespace Security {
|
|
8672
8776
|
interface Transport {
|
|
8673
8777
|
admins?: SecurityObject.Transport;
|
|
8674
|
-
members?: SecurityObject.Transport;
|
|
8675
8778
|
cloudant?: JsonObject;
|
|
8676
8779
|
couchdb_auth_only?: boolean;
|
|
8780
|
+
members?: SecurityObject.Transport;
|
|
8677
8781
|
}
|
|
8678
8782
|
}
|
|
8679
8783
|
/**
|
|
@@ -8728,12 +8832,12 @@ declare namespace CloudantV1 {
|
|
|
8728
8832
|
couchdb: string;
|
|
8729
8833
|
/** List of enabled optional features. */
|
|
8730
8834
|
features: string[];
|
|
8835
|
+
/** List of feature flags. */
|
|
8836
|
+
featuresFlags: string[];
|
|
8731
8837
|
/** Schema for server vendor information. */
|
|
8732
8838
|
vendor: ServerVendor;
|
|
8733
8839
|
/** Apache CouchDB version. */
|
|
8734
8840
|
version: string;
|
|
8735
|
-
/** List of feature flags. */
|
|
8736
|
-
featuresFlags: string[];
|
|
8737
8841
|
static serialize(obj: any): ServerInformation.Transport;
|
|
8738
8842
|
static deserialize(obj: any): ServerInformation;
|
|
8739
8843
|
}
|
|
@@ -8741,9 +8845,9 @@ declare namespace CloudantV1 {
|
|
|
8741
8845
|
interface Transport {
|
|
8742
8846
|
couchdb: string;
|
|
8743
8847
|
features: string[];
|
|
8848
|
+
features_flags: string[];
|
|
8744
8849
|
vendor: ServerVendor.Transport;
|
|
8745
8850
|
version: string;
|
|
8746
|
-
features_flags: string[];
|
|
8747
8851
|
}
|
|
8748
8852
|
}
|
|
8749
8853
|
/**
|
|
@@ -9084,7 +9188,10 @@ declare namespace CloudantV1 {
|
|
|
9084
9188
|
* Schema for the result of a query view operation.
|
|
9085
9189
|
*/
|
|
9086
9190
|
class ViewResult {
|
|
9087
|
-
/**
|
|
9191
|
+
/** Total number of rows in the view index. Note that if the request query narrows the view this is not the
|
|
9192
|
+
* number of matching rows. The number of matching rows, up to the specified `limit`, is the size of the `rows`
|
|
9193
|
+
* array.
|
|
9194
|
+
*/
|
|
9088
9195
|
totalRows?: number;
|
|
9089
9196
|
/** Current update sequence for the database. */
|
|
9090
9197
|
updateSeq?: string;
|