@ibm-cloud/cloudant 0.0.10 → 0.0.14
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/LICENSE +25 -0
- package/README.md +395 -275
- package/auth/couchdbSessionAuthenticator.d.ts +2 -2
- package/auth/couchdbSessionAuthenticator.js +2 -2
- package/auth/couchdbSessionAuthenticator.js.map +1 -1
- package/auth/index.d.ts +1 -1
- package/auth/index.js +2 -1
- package/auth/index.js.map +1 -1
- package/auth/sessionTokenManager.d.ts +2 -2
- package/auth/sessionTokenManager.js +14 -8
- package/auth/sessionTokenManager.js.map +1 -1
- package/cloudant/v1.d.ts +594 -517
- package/cloudant/v1.js +3111 -3290
- package/cloudant/v1.js.map +1 -1
- package/index.d.ts +3 -3
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/lib/cloudantBaseService.d.ts +10 -2
- package/lib/cloudantBaseService.js +16 -2
- package/lib/cloudantBaseService.js.map +1 -1
- package/lib/common.d.ts +1 -1
- package/lib/common.js +1 -1
- package/lib/common.js.map +1 -1
- package/lib/getAuthenticatorFromEnvCloudantExtension.d.ts +2 -2
- package/lib/getAuthenticatorFromEnvCloudantExtension.js +1 -1
- package/lib/getAuthenticatorFromEnvCloudantExtension.js.map +1 -1
- package/package.json +7 -9
package/cloudant/v1.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* (C) Copyright IBM Corp.
|
|
2
|
+
* (C) Copyright IBM Corp. 2021.
|
|
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.
|
|
@@ -40,7 +40,7 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
40
40
|
* Construct a CloudantV1 object.
|
|
41
41
|
*
|
|
42
42
|
* @param {Object} options - Options for the service.
|
|
43
|
-
* @param {string} [options.serviceUrl] - The base url to use when contacting the service
|
|
43
|
+
* @param {string} [options.serviceUrl] - The base url to use when contacting the service. The base url may differ between IBM Cloud regions.
|
|
44
44
|
* @param {OutgoingHttpHeaders} [options.headers] - Default headers that shall be included with every request to the service.
|
|
45
45
|
* @param {Authenticator} options.authenticator - The Authenticator object used to authenticate requests to the service
|
|
46
46
|
* @constructor
|
|
@@ -86,87 +86,56 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
86
86
|
* @returns {Promise<CloudantV1.Response<CloudantV1.UuidsResult>>}
|
|
87
87
|
*/
|
|
88
88
|
getUuids(params?: CloudantV1.GetUuidsParams): Promise<CloudantV1.Response<CloudantV1.UuidsResult>>;
|
|
89
|
-
/*************************
|
|
90
|
-
* databases
|
|
91
|
-
************************/
|
|
92
89
|
/**
|
|
93
|
-
* Retrieve
|
|
90
|
+
* Retrieve provisioned throughput capacity information.
|
|
94
91
|
*
|
|
95
|
-
*
|
|
96
|
-
*
|
|
97
|
-
*
|
|
98
|
-
* @param {Object} params - The parameters to send to the service.
|
|
99
|
-
* @param {string} params.db - Path parameter to specify the database name.
|
|
100
|
-
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
101
|
-
* @returns {Promise<CloudantV1.Response<CloudantV1.Empty>>}
|
|
102
|
-
*/
|
|
103
|
-
headDatabase(params: CloudantV1.HeadDatabaseParams): Promise<CloudantV1.Response<CloudantV1.Empty>>;
|
|
104
|
-
/**
|
|
105
|
-
* Query a list of all database names in the instance.
|
|
92
|
+
* View the amount of provisioned throughput capacity allocated to an IBM Cloudant instance and what is the target
|
|
93
|
+
* provisioned throughput capacity.
|
|
106
94
|
*
|
|
107
95
|
* @param {Object} [params] - The parameters to send to the service.
|
|
108
|
-
* @param {boolean} [params.descending] - Query parameter to specify whether to return the documents in descending by
|
|
109
|
-
* key order.
|
|
110
|
-
* @param {string} [params.endkey] - Query parameter to specify to stop returning records when the specified key is
|
|
111
|
-
* reached. String representation of any JSON type that matches the key type emitted by the view function.
|
|
112
|
-
* @param {number} [params.limit] - Query parameter to specify the number of returned documents to limit the result
|
|
113
|
-
* to.
|
|
114
|
-
* @param {number} [params.skip] - Query parameter to specify the number of records before starting to return the
|
|
115
|
-
* results.
|
|
116
|
-
* @param {string} [params.startkey] - Query parameter to specify to start returning records from the specified key.
|
|
117
|
-
* String representation of any JSON type that matches the key type emitted by the view function.
|
|
118
|
-
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
119
|
-
* @returns {Promise<CloudantV1.Response<string[]>>}
|
|
120
|
-
*/
|
|
121
|
-
getAllDbs(params?: CloudantV1.GetAllDbsParams): Promise<CloudantV1.Response<string[]>>;
|
|
122
|
-
/**
|
|
123
|
-
* Query information about multiple databases.
|
|
124
|
-
*
|
|
125
|
-
* This operation enables you to request information about multiple databases in a single request, instead of issuing
|
|
126
|
-
* multiple `GET /{db}` requests. It returns a list that contains an information object for each database specified in
|
|
127
|
-
* the request.
|
|
128
|
-
*
|
|
129
|
-
* @param {Object} params - The parameters to send to the service.
|
|
130
|
-
* @param {string[]} params.keys - A list of database names.
|
|
131
96
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
132
|
-
* @returns {Promise<CloudantV1.Response<CloudantV1.
|
|
97
|
+
* @returns {Promise<CloudantV1.Response<CloudantV1.CapacityThroughputInformation>>}
|
|
133
98
|
*/
|
|
134
|
-
|
|
99
|
+
getCapacityThroughputInformation(params?: CloudantV1.GetCapacityThroughputInformationParams): Promise<CloudantV1.Response<CloudantV1.CapacityThroughputInformation>>;
|
|
135
100
|
/**
|
|
136
|
-
*
|
|
101
|
+
* Update the target provisioned throughput capacity.
|
|
137
102
|
*
|
|
138
|
-
*
|
|
139
|
-
*
|
|
140
|
-
* suggests that a user wanted to delete a document but forgot to add the document ID to the URL.
|
|
103
|
+
* Sets the target provisioned throughput capacity for an IBM Cloudant instance. When target capacity is changed, the
|
|
104
|
+
* current capacity asynchronously changes to meet the target capacity.
|
|
141
105
|
*
|
|
142
106
|
* @param {Object} params - The parameters to send to the service.
|
|
143
|
-
* @param {
|
|
107
|
+
* @param {number} params.blocks - A number of blocks of throughput units. A block consists of 100 reads/sec, 50
|
|
108
|
+
* writes/sec, and 5 global queries/sec of provisioned throughput capacity.
|
|
144
109
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
145
|
-
* @returns {Promise<CloudantV1.Response<CloudantV1.
|
|
110
|
+
* @returns {Promise<CloudantV1.Response<CloudantV1.CapacityThroughputInformation>>}
|
|
146
111
|
*/
|
|
147
|
-
|
|
112
|
+
putCapacityThroughputInformation(params: CloudantV1.PutCapacityThroughputInformationParams): Promise<CloudantV1.Response<CloudantV1.CapacityThroughputInformation>>;
|
|
113
|
+
/*************************
|
|
114
|
+
* changes
|
|
115
|
+
************************/
|
|
148
116
|
/**
|
|
149
|
-
* Retrieve
|
|
117
|
+
* Retrieve change events for all databases.
|
|
150
118
|
*
|
|
151
|
-
*
|
|
152
|
-
*
|
|
153
|
-
*
|
|
154
|
-
*
|
|
155
|
-
*/
|
|
156
|
-
getDatabaseInformation(params: CloudantV1.GetDatabaseInformationParams): Promise<CloudantV1.Response<CloudantV1.DatabaseInformation>>;
|
|
157
|
-
/**
|
|
158
|
-
* Create a database.
|
|
119
|
+
* Lists changes to databases, like a global changes feed. Types of changes include updating the database and creating
|
|
120
|
+
* or deleting a database. Like the changes feed, the feed is not guaranteed to return changes in the correct order
|
|
121
|
+
* and might repeat changes. Polling modes for this method work like polling modes for the changes feed.
|
|
122
|
+
* **Note: This endpoint requires _admin or _db_updates role and is only available on dedicated clusters.**.
|
|
159
123
|
*
|
|
160
|
-
* @param {Object} params - The parameters to send to the service.
|
|
161
|
-
* @param {string} params.
|
|
162
|
-
* @param {
|
|
163
|
-
*
|
|
164
|
-
*
|
|
165
|
-
*
|
|
124
|
+
* @param {Object} [params] - The parameters to send to the service.
|
|
125
|
+
* @param {string} [params.feed] - Query parameter to specify the changes feed type.
|
|
126
|
+
* @param {number} [params.heartbeat] - Query parameter to specify the period in milliseconds after which an empty
|
|
127
|
+
* line is sent in the results. Only applicable for longpoll, continuous, and eventsource feeds. Overrides any timeout
|
|
128
|
+
* to keep the feed alive indefinitely. May also be `true` to use default value of 60000.
|
|
129
|
+
* @param {number} [params.timeout] - Query parameter to specify the maximum period in milliseconds to wait for a
|
|
130
|
+
* change before the response is sent, even if there are no results. Only applicable for `longpoll` or `continuous`
|
|
131
|
+
* feeds. Default value is specified by `httpd/changes_timeout` configuration option. Note that `60000` value is also
|
|
132
|
+
* the default maximum timeout to prevent undetected dead connections.
|
|
133
|
+
* @param {string} [params.since] - Query parameter to specify to start the results from the change immediately after
|
|
134
|
+
* the given update sequence. Can be a valid update sequence or `now` value. Default is `0` i.e. all changes.
|
|
166
135
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
167
|
-
* @returns {Promise<CloudantV1.Response<CloudantV1.
|
|
136
|
+
* @returns {Promise<CloudantV1.Response<CloudantV1.DbUpdates>>}
|
|
168
137
|
*/
|
|
169
|
-
|
|
138
|
+
getDbUpdates(params?: CloudantV1.GetDbUpdatesParams): Promise<CloudantV1.Response<CloudantV1.DbUpdates>>;
|
|
170
139
|
/**
|
|
171
140
|
* Query the database document changes feed.
|
|
172
141
|
*
|
|
@@ -335,6 +304,87 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
335
304
|
* @returns {Promise<CloudantV1.Response<NodeJS.ReadableStream|Buffer>>}
|
|
336
305
|
*/
|
|
337
306
|
postChangesAsStream(params: CloudantV1.PostChangesAsStreamParams): Promise<CloudantV1.Response<NodeJS.ReadableStream | Buffer>>;
|
|
307
|
+
/*************************
|
|
308
|
+
* databases
|
|
309
|
+
************************/
|
|
310
|
+
/**
|
|
311
|
+
* Retrieve the HTTP headers for a database.
|
|
312
|
+
*
|
|
313
|
+
* Returns the HTTP headers that contain a minimal amount of information about the specified database. Since the
|
|
314
|
+
* response body is empty, using the HEAD method is a lightweight way to check if the database exists or not.
|
|
315
|
+
*
|
|
316
|
+
* @param {Object} params - The parameters to send to the service.
|
|
317
|
+
* @param {string} params.db - Path parameter to specify the database name.
|
|
318
|
+
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
319
|
+
* @returns {Promise<CloudantV1.Response<CloudantV1.Empty>>}
|
|
320
|
+
*/
|
|
321
|
+
headDatabase(params: CloudantV1.HeadDatabaseParams): Promise<CloudantV1.Response<CloudantV1.Empty>>;
|
|
322
|
+
/**
|
|
323
|
+
* Query a list of all database names in the instance.
|
|
324
|
+
*
|
|
325
|
+
* @param {Object} [params] - The parameters to send to the service.
|
|
326
|
+
* @param {boolean} [params.descending] - Query parameter to specify whether to return the documents in descending by
|
|
327
|
+
* key order.
|
|
328
|
+
* @param {string} [params.endkey] - Query parameter to specify to stop returning records when the specified key is
|
|
329
|
+
* reached. String representation of any JSON type that matches the key type emitted by the view function.
|
|
330
|
+
* @param {number} [params.limit] - Query parameter to specify the number of returned documents to limit the result
|
|
331
|
+
* to.
|
|
332
|
+
* @param {number} [params.skip] - Query parameter to specify the number of records before starting to return the
|
|
333
|
+
* results.
|
|
334
|
+
* @param {string} [params.startkey] - Query parameter to specify to start returning records from the specified key.
|
|
335
|
+
* String representation of any JSON type that matches the key type emitted by the view function.
|
|
336
|
+
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
337
|
+
* @returns {Promise<CloudantV1.Response<string[]>>}
|
|
338
|
+
*/
|
|
339
|
+
getAllDbs(params?: CloudantV1.GetAllDbsParams): Promise<CloudantV1.Response<string[]>>;
|
|
340
|
+
/**
|
|
341
|
+
* Query information about multiple databases.
|
|
342
|
+
*
|
|
343
|
+
* This operation enables you to request information about multiple databases in a single request, instead of issuing
|
|
344
|
+
* multiple `GET /{db}` requests. It returns a list that contains an information object for each database specified in
|
|
345
|
+
* the request.
|
|
346
|
+
*
|
|
347
|
+
* @param {Object} params - The parameters to send to the service.
|
|
348
|
+
* @param {string[]} params.keys - A list of database names.
|
|
349
|
+
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
350
|
+
* @returns {Promise<CloudantV1.Response<CloudantV1.DbsInfoResult[]>>}
|
|
351
|
+
*/
|
|
352
|
+
postDbsInfo(params: CloudantV1.PostDbsInfoParams): Promise<CloudantV1.Response<CloudantV1.DbsInfoResult[]>>;
|
|
353
|
+
/**
|
|
354
|
+
* Delete a database.
|
|
355
|
+
*
|
|
356
|
+
* Deletes the specified database and all documents and attachments contained within it. To avoid deleting a database,
|
|
357
|
+
* the server responds with a 400 HTTP status code when the request URL includes a `?rev=` parameter. This response
|
|
358
|
+
* suggests that a user wanted to delete a document but forgot to add the document ID to the URL.
|
|
359
|
+
*
|
|
360
|
+
* @param {Object} params - The parameters to send to the service.
|
|
361
|
+
* @param {string} params.db - Path parameter to specify the database name.
|
|
362
|
+
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
363
|
+
* @returns {Promise<CloudantV1.Response<CloudantV1.Ok>>}
|
|
364
|
+
*/
|
|
365
|
+
deleteDatabase(params: CloudantV1.DeleteDatabaseParams): Promise<CloudantV1.Response<CloudantV1.Ok>>;
|
|
366
|
+
/**
|
|
367
|
+
* Retrieve information about a database.
|
|
368
|
+
*
|
|
369
|
+
* @param {Object} params - The parameters to send to the service.
|
|
370
|
+
* @param {string} params.db - Path parameter to specify the database name.
|
|
371
|
+
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
372
|
+
* @returns {Promise<CloudantV1.Response<CloudantV1.DatabaseInformation>>}
|
|
373
|
+
*/
|
|
374
|
+
getDatabaseInformation(params: CloudantV1.GetDatabaseInformationParams): Promise<CloudantV1.Response<CloudantV1.DatabaseInformation>>;
|
|
375
|
+
/**
|
|
376
|
+
* Create a database.
|
|
377
|
+
*
|
|
378
|
+
* @param {Object} params - The parameters to send to the service.
|
|
379
|
+
* @param {string} params.db - Path parameter to specify the database name.
|
|
380
|
+
* @param {boolean} [params.partitioned] - Query parameter to specify whether to enable database partitions when
|
|
381
|
+
* creating a database.
|
|
382
|
+
* @param {number} [params.q] - The number of shards in the database. Each shard is a partition of the hash value
|
|
383
|
+
* range. Default is 8, unless overridden in the `cluster config`.
|
|
384
|
+
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
385
|
+
* @returns {Promise<CloudantV1.Response<CloudantV1.Ok>>}
|
|
386
|
+
*/
|
|
387
|
+
putDatabase(params: CloudantV1.PutDatabaseParams): Promise<CloudantV1.Response<CloudantV1.Ok>>;
|
|
338
388
|
/*************************
|
|
339
389
|
* documents
|
|
340
390
|
************************/
|
|
@@ -1440,7 +1490,7 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1440
1490
|
* Retrieve information about which index is used for a query.
|
|
1441
1491
|
*
|
|
1442
1492
|
* Shows which index is being used by the query. Parameters are the same as the [`_find`
|
|
1443
|
-
* endpoint](#query-an-index-by-using-selector-syntax.
|
|
1493
|
+
* endpoint](#query-an-index-by-using-selector-syntax).
|
|
1444
1494
|
*
|
|
1445
1495
|
* @param {Object} params - The parameters to send to the service.
|
|
1446
1496
|
* @param {string} params.db - Path parameter to specify the database name.
|
|
@@ -1637,30 +1687,6 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1637
1687
|
* * `default_analyzer` - the default text analyzer to use * `default_field` - whether to index the text in all
|
|
1638
1688
|
* document fields and what analyzer to use for that purpose.
|
|
1639
1689
|
* @param {string} [params.name] - name.
|
|
1640
|
-
* @param {JsonObject} [params.partialFilterSelector] - JSON object describing criteria used to select documents. The
|
|
1641
|
-
* selector specifies fields in the document, and provides an expression to evaluate with the field content or other
|
|
1642
|
-
* data.
|
|
1643
|
-
*
|
|
1644
|
-
* The selector object must:
|
|
1645
|
-
* * Be structured as valid JSON.
|
|
1646
|
-
* * Contain a valid query expression.
|
|
1647
|
-
*
|
|
1648
|
-
* Using a selector is significantly more efficient than using a JavaScript filter function, and is the recommended
|
|
1649
|
-
* option if filtering on document attributes only.
|
|
1650
|
-
*
|
|
1651
|
-
* Elementary selector syntax requires you to specify one or more fields, and the corresponding values required for
|
|
1652
|
-
* those fields. You can create more complex selector expressions by combining operators.
|
|
1653
|
-
*
|
|
1654
|
-
* Operators are identified by the use of a dollar sign `$` prefix in the name field.
|
|
1655
|
-
*
|
|
1656
|
-
* There are two core types of operators in the selector syntax:
|
|
1657
|
-
* * Combination operators: applied at the topmost level of selection. They are used to combine selectors. In addition
|
|
1658
|
-
* to the common boolean operators (`$and`, `$or`, `$not`, `$nor`) there are three combination operators: `$all`,
|
|
1659
|
-
* `$elemMatch`, and `$allMatch`. A combination operator takes a single argument. The argument is either another
|
|
1660
|
-
* selector, or an array of selectors.
|
|
1661
|
-
* * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
|
|
1662
|
-
* instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the supplied
|
|
1663
|
-
* argument.
|
|
1664
1690
|
* @param {boolean} [params.partitioned] - The default value is `true` for databases with `partitioned: true` and
|
|
1665
1691
|
* `false` otherwise. For databases with `partitioned: false` if this option is specified the value must be `false`.
|
|
1666
1692
|
* @param {string} [params.type] - Schema for the type of an index.
|
|
@@ -1691,8 +1717,8 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1691
1717
|
* analyzer tokenization.
|
|
1692
1718
|
*
|
|
1693
1719
|
* @param {Object} params - The parameters to send to the service.
|
|
1694
|
-
* @param {string} params.analyzer - analyzer.
|
|
1695
|
-
* @param {string} params.text - text.
|
|
1720
|
+
* @param {string} params.analyzer - The analyzer type that is being used at the tokenization.
|
|
1721
|
+
* @param {string} params.text - The text to tokenize with the analyzer.
|
|
1696
1722
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
1697
1723
|
* @returns {Promise<CloudantV1.Response<CloudantV1.SearchAnalyzeResult>>}
|
|
1698
1724
|
*/
|
|
@@ -1957,39 +1983,15 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1957
1983
|
* @returns {Promise<CloudantV1.Response<CloudantV1.GeoIndexInformation>>}
|
|
1958
1984
|
*/
|
|
1959
1985
|
getGeoIndexInformation(params: CloudantV1.GetGeoIndexInformationParams): Promise<CloudantV1.Response<CloudantV1.GeoIndexInformation>>;
|
|
1960
|
-
/*************************
|
|
1961
|
-
* changes
|
|
1962
|
-
************************/
|
|
1963
|
-
/**
|
|
1964
|
-
* Retrieve change events for all databases.
|
|
1965
|
-
*
|
|
1966
|
-
* Lists changes to databases, like a global changes feed. Types of changes include updating the database and creating
|
|
1967
|
-
* or deleting a database. Like the changes feed, the feed is not guaranteed to return changes in the correct order
|
|
1968
|
-
* and might repeat changes. Polling modes for this method work like polling modes for the changes feed.
|
|
1969
|
-
* **Note: This endpoint requires _admin or _db_updates role and is only available on dedicated clusters.**.
|
|
1970
|
-
*
|
|
1971
|
-
* @param {Object} [params] - The parameters to send to the service.
|
|
1972
|
-
* @param {string} [params.feed] - Query parameter to specify the changes feed type.
|
|
1973
|
-
* @param {number} [params.heartbeat] - Query parameter to specify the period in milliseconds after which an empty
|
|
1974
|
-
* line is sent in the results. Only applicable for longpoll, continuous, and eventsource feeds. Overrides any timeout
|
|
1975
|
-
* to keep the feed alive indefinitely. May also be `true` to use default value of 60000.
|
|
1976
|
-
* @param {number} [params.timeout] - Query parameter to specify the maximum period in milliseconds to wait for a
|
|
1977
|
-
* change before the response is sent, even if there are no results. Only applicable for `longpoll` or `continuous`
|
|
1978
|
-
* feeds. Default value is specified by `httpd/changes_timeout` configuration option. Note that `60000` value is also
|
|
1979
|
-
* the default maximum timeout to prevent undetected dead connections.
|
|
1980
|
-
* @param {string} [params.since] - Query parameter to specify to start the results from the change immediately after
|
|
1981
|
-
* the given update sequence. Can be a valid update sequence or `now` value. Default is `0` i.e. all changes.
|
|
1982
|
-
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
1983
|
-
* @returns {Promise<CloudantV1.Response<CloudantV1.DbUpdates>>}
|
|
1984
|
-
*/
|
|
1985
|
-
getDbUpdates(params?: CloudantV1.GetDbUpdatesParams): Promise<CloudantV1.Response<CloudantV1.DbUpdates>>;
|
|
1986
1986
|
/*************************
|
|
1987
1987
|
* replication
|
|
1988
1988
|
************************/
|
|
1989
1989
|
/**
|
|
1990
1990
|
* Retrieve the HTTP headers for a replication document.
|
|
1991
1991
|
*
|
|
1992
|
-
* Retrieves the HTTP headers
|
|
1992
|
+
* Retrieves the HTTP headers containing minimal amount of information about the specified replication document from
|
|
1993
|
+
* the `_replicator` database. The method supports the same query arguments as the `GET /_replicator/{doc_id}`
|
|
1994
|
+
* method, but only headers like content length and the revision (ETag header) are returned.
|
|
1993
1995
|
*
|
|
1994
1996
|
* @param {Object} params - The parameters to send to the service.
|
|
1995
1997
|
* @param {string} params.docId - Path parameter to specify the document ID.
|
|
@@ -1999,6 +2001,19 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1999
2001
|
* @returns {Promise<CloudantV1.Response<CloudantV1.Empty>>}
|
|
2000
2002
|
*/
|
|
2001
2003
|
headReplicationDocument(params: CloudantV1.HeadReplicationDocumentParams): Promise<CloudantV1.Response<CloudantV1.Empty>>;
|
|
2004
|
+
/**
|
|
2005
|
+
* Retrieve HTTP headers for a replication scheduler document.
|
|
2006
|
+
*
|
|
2007
|
+
* Retrieves the HTTP headers containing minimal amount of information about the specified replication scheduler
|
|
2008
|
+
* document. Since the response body is empty, using the HEAD method is a lightweight way to check if the replication
|
|
2009
|
+
* scheduler document exists or not.
|
|
2010
|
+
*
|
|
2011
|
+
* @param {Object} params - The parameters to send to the service.
|
|
2012
|
+
* @param {string} params.docId - Path parameter to specify the document ID.
|
|
2013
|
+
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
2014
|
+
* @returns {Promise<CloudantV1.Response<CloudantV1.Empty>>}
|
|
2015
|
+
*/
|
|
2016
|
+
headSchedulerDocument(params: CloudantV1.HeadSchedulerDocumentParams): Promise<CloudantV1.Response<CloudantV1.Empty>>;
|
|
2002
2017
|
/**
|
|
2003
2018
|
* Retrieve the HTTP headers for a replication scheduler job.
|
|
2004
2019
|
*
|
|
@@ -2239,9 +2254,9 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
2239
2254
|
*
|
|
2240
2255
|
* @param {Object} [params] - The parameters to send to the service.
|
|
2241
2256
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
2242
|
-
* @returns {Promise<CloudantV1.Response<CloudantV1.
|
|
2257
|
+
* @returns {Promise<CloudantV1.Response<CloudantV1.CorsInformation>>}
|
|
2243
2258
|
*/
|
|
2244
|
-
getCorsInformation(params?: CloudantV1.GetCorsInformationParams): Promise<CloudantV1.Response<CloudantV1.
|
|
2259
|
+
getCorsInformation(params?: CloudantV1.GetCorsInformationParams): Promise<CloudantV1.Response<CloudantV1.CorsInformation>>;
|
|
2245
2260
|
/**
|
|
2246
2261
|
* Modify CORS configuration.
|
|
2247
2262
|
*
|
|
@@ -2351,6 +2366,21 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
2351
2366
|
/*************************
|
|
2352
2367
|
* localDocuments
|
|
2353
2368
|
************************/
|
|
2369
|
+
/**
|
|
2370
|
+
* Retrieve HTTP headers for a local document.
|
|
2371
|
+
*
|
|
2372
|
+
* Retrieves the HTTP headers containing minimal amount of information about the specified local document. Since the
|
|
2373
|
+
* response body is empty, using the HEAD method is a lightweight way to check if the local document exists or not.
|
|
2374
|
+
*
|
|
2375
|
+
* @param {Object} params - The parameters to send to the service.
|
|
2376
|
+
* @param {string} params.db - Path parameter to specify the database name.
|
|
2377
|
+
* @param {string} params.docId - Path parameter to specify the document ID.
|
|
2378
|
+
* @param {string} [params.ifNoneMatch] - Header parameter to specify a double quoted document revision token for
|
|
2379
|
+
* cache control.
|
|
2380
|
+
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
2381
|
+
* @returns {Promise<CloudantV1.Response<CloudantV1.Empty>>}
|
|
2382
|
+
*/
|
|
2383
|
+
headLocalDocument(params: CloudantV1.HeadLocalDocumentParams): Promise<CloudantV1.Response<CloudantV1.Empty>>;
|
|
2354
2384
|
/**
|
|
2355
2385
|
* Delete a local document.
|
|
2356
2386
|
*
|
|
@@ -2408,63 +2438,13 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
2408
2438
|
* @returns {Promise<CloudantV1.Response<CloudantV1.DocumentResult>>}
|
|
2409
2439
|
*/
|
|
2410
2440
|
putLocalDocument(params: CloudantV1.PutLocalDocumentParams): Promise<CloudantV1.Response<CloudantV1.DocumentResult>>;
|
|
2441
|
+
/*************************
|
|
2442
|
+
* databaseDetails
|
|
2443
|
+
************************/
|
|
2411
2444
|
/**
|
|
2412
|
-
* Query
|
|
2445
|
+
* Query which document revisions are missing from the database.
|
|
2413
2446
|
*
|
|
2414
|
-
*
|
|
2415
|
-
* object, including a list of matching local documents with basic contents, such as the ID. When no request body
|
|
2416
|
-
* parameters are specified, results for all local documents in the database are returned. Optionally, document
|
|
2417
|
-
* content or additional metadata can be included in the response.
|
|
2418
|
-
*
|
|
2419
|
-
* @param {Object} params - The parameters to send to the service.
|
|
2420
|
-
* @param {string} params.db - Path parameter to specify the database name.
|
|
2421
|
-
* @param {boolean} [params.attEncodingInfo] - Parameter to specify whether to include the encoding information in
|
|
2422
|
-
* attachment stubs if the particular attachment is compressed.
|
|
2423
|
-
* @param {boolean} [params.attachments] - Parameter to specify whether to include attachments bodies in a response.
|
|
2424
|
-
* @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in the
|
|
2425
|
-
* `_conflicts` property of the returned document. Ignored if `include_docs` isn't `true`.
|
|
2426
|
-
* @param {boolean} [params.descending] - Parameter to specify whether to return the documents in descending by key
|
|
2427
|
-
* order.
|
|
2428
|
-
* @param {boolean} [params.includeDocs] - Parameter to specify whether to include the full content of the documents
|
|
2429
|
-
* in the response.
|
|
2430
|
-
* @param {boolean} [params.inclusiveEnd] - Parameter to specify whether the specified end key should be included in
|
|
2431
|
-
* the result.
|
|
2432
|
-
* @param {number} [params.limit] - Parameter to specify the number of returned documents to limit the result to.
|
|
2433
|
-
* @param {number} [params.skip] - Parameter to specify the number of records before starting to return the results.
|
|
2434
|
-
* @param {boolean} [params.updateSeq] - Parameter to specify whether to include in the response an update_seq value
|
|
2435
|
-
* indicating the sequence id of the database the view reflects.
|
|
2436
|
-
* @param {string} [params.endkey] - Schema for a document ID.
|
|
2437
|
-
* @param {string} [params.key] - Schema for a document ID.
|
|
2438
|
-
* @param {string[]} [params.keys] - Schema for a list of document IDs.
|
|
2439
|
-
* @param {string} [params.startkey] - Schema for a document ID.
|
|
2440
|
-
* @param {string} [params.accept] - The type of the response: application/json or application/octet-stream.
|
|
2441
|
-
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
2442
|
-
* @returns {Promise<CloudantV1.Response<CloudantV1.AllDocsResult>>}
|
|
2443
|
-
*/
|
|
2444
|
-
postLocalDocs(params: CloudantV1.PostLocalDocsParams): Promise<CloudantV1.Response<CloudantV1.AllDocsResult>>;
|
|
2445
|
-
/**
|
|
2446
|
-
* Multi-query the list of all local documents in a database.
|
|
2447
|
-
*
|
|
2448
|
-
* Runs multiple view queries of all local documents in this database. This operation enables you to request multiple
|
|
2449
|
-
* queries in a single request, in place of multiple `POST /{db}/_local_docs` requests.
|
|
2450
|
-
*
|
|
2451
|
-
* @param {Object} params - The parameters to send to the service.
|
|
2452
|
-
* @param {string} params.db - Path parameter to specify the database name.
|
|
2453
|
-
* @param {AllDocsQuery[]} params.queries - An array of query objects with fields for the parameters of each
|
|
2454
|
-
* individual view query to be executed. The field names and their meaning are the same as the query parameters of a
|
|
2455
|
-
* regular `/_all_docs` request.
|
|
2456
|
-
* @param {string} [params.accept] - The type of the response: application/json or application/octet-stream.
|
|
2457
|
-
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
2458
|
-
* @returns {Promise<CloudantV1.Response<CloudantV1.AllDocsQueriesResult>>}
|
|
2459
|
-
*/
|
|
2460
|
-
postLocalDocsQueries(params: CloudantV1.PostLocalDocsQueriesParams): Promise<CloudantV1.Response<CloudantV1.AllDocsQueriesResult>>;
|
|
2461
|
-
/*************************
|
|
2462
|
-
* databaseDetails
|
|
2463
|
-
************************/
|
|
2464
|
-
/**
|
|
2465
|
-
* Query which document revisions are missing from the database.
|
|
2466
|
-
*
|
|
2467
|
-
* Given a list of document revisions, returns the document revisions that do not exist in the database.
|
|
2447
|
+
* Given a list of document revisions, returns the document revisions that do not exist in the database.
|
|
2468
2448
|
*
|
|
2469
2449
|
* @param {Object} params - The parameters to send to the service.
|
|
2470
2450
|
* @param {string} params.db - Path parameter to specify the database name.
|
|
@@ -2514,6 +2494,16 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
2514
2494
|
/*************************
|
|
2515
2495
|
* monitoring
|
|
2516
2496
|
************************/
|
|
2497
|
+
/**
|
|
2498
|
+
* Retrieve HTTP headers about whether the server is up.
|
|
2499
|
+
*
|
|
2500
|
+
* Retrieves the HTTP headers about whether the server is up.
|
|
2501
|
+
*
|
|
2502
|
+
* @param {Object} [params] - The parameters to send to the service.
|
|
2503
|
+
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
2504
|
+
* @returns {Promise<CloudantV1.Response<CloudantV1.Empty>>}
|
|
2505
|
+
*/
|
|
2506
|
+
headUpInformation(params?: CloudantV1.HeadUpInformationParams): Promise<CloudantV1.Response<CloudantV1.Empty>>;
|
|
2517
2507
|
/**
|
|
2518
2508
|
* Retrieve list of running tasks.
|
|
2519
2509
|
*
|
|
@@ -2537,6 +2527,40 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
2537
2527
|
* @returns {Promise<CloudantV1.Response<CloudantV1.UpInformation>>}
|
|
2538
2528
|
*/
|
|
2539
2529
|
getUpInformation(params?: CloudantV1.GetUpInformationParams): Promise<CloudantV1.Response<CloudantV1.UpInformation>>;
|
|
2530
|
+
/**
|
|
2531
|
+
* Retrieve Activity Tracker events information.
|
|
2532
|
+
*
|
|
2533
|
+
* Check event types that are being sent to IBM Cloud Activity Tracker with LogDNA for the IBM Cloudant instance.
|
|
2534
|
+
*
|
|
2535
|
+
* @param {Object} [params] - The parameters to send to the service.
|
|
2536
|
+
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
2537
|
+
* @returns {Promise<CloudantV1.Response<CloudantV1.ActivityTrackerEventsConfiguration>>}
|
|
2538
|
+
*/
|
|
2539
|
+
getActivityTrackerEventsInformation(params?: CloudantV1.GetActivityTrackerEventsInformationParams): Promise<CloudantV1.Response<CloudantV1.ActivityTrackerEventsConfiguration>>;
|
|
2540
|
+
/**
|
|
2541
|
+
* Modify Activity Tracker events configuration.
|
|
2542
|
+
*
|
|
2543
|
+
* Configure event types that are being sent to IBM Cloud Activity Tracker with LogDNA for the IBM Cloudant instance.
|
|
2544
|
+
*
|
|
2545
|
+
* @param {Object} params - The parameters to send to the service.
|
|
2546
|
+
* @param {string[]} params.types - An array of event types that are being sent to IBM Cloud Activity Tracker with
|
|
2547
|
+
* LogDNA for the IBM Cloudant instance. "management" is a required element of this array.
|
|
2548
|
+
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
2549
|
+
* @returns {Promise<CloudantV1.Response<CloudantV1.Ok>>}
|
|
2550
|
+
*/
|
|
2551
|
+
postActivityTrackerEventsConfiguration(params: CloudantV1.PostActivityTrackerEventsConfigurationParams): Promise<CloudantV1.Response<CloudantV1.Ok>>;
|
|
2552
|
+
/**
|
|
2553
|
+
* Retrieve the current provisioned throughput capacity consumption.
|
|
2554
|
+
*
|
|
2555
|
+
* View the current consumption of provisioned throughput capacity for an IBM Cloudant instance. The current
|
|
2556
|
+
* consumption shows the quantities of reads, writes, and global queries conducted against the instance for a given
|
|
2557
|
+
* second.
|
|
2558
|
+
*
|
|
2559
|
+
* @param {Object} [params] - The parameters to send to the service.
|
|
2560
|
+
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
2561
|
+
* @returns {Promise<CloudantV1.Response<CloudantV1.CurrentThroughputInformation>>}
|
|
2562
|
+
*/
|
|
2563
|
+
getCurrentThroughputInformation(params?: CloudantV1.GetCurrentThroughputInformationParams): Promise<CloudantV1.Response<CloudantV1.CurrentThroughputInformation>>;
|
|
2540
2564
|
}
|
|
2541
2565
|
/*************************
|
|
2542
2566
|
* interfaces
|
|
@@ -2575,60 +2599,49 @@ declare namespace CloudantV1 {
|
|
|
2575
2599
|
count?: number;
|
|
2576
2600
|
headers?: OutgoingHttpHeaders;
|
|
2577
2601
|
}
|
|
2578
|
-
/** Parameters for the `
|
|
2579
|
-
interface
|
|
2580
|
-
/** Path parameter to specify the database name. */
|
|
2581
|
-
db: string;
|
|
2602
|
+
/** Parameters for the `getCapacityThroughputInformation` operation. */
|
|
2603
|
+
interface GetCapacityThroughputInformationParams {
|
|
2582
2604
|
headers?: OutgoingHttpHeaders;
|
|
2583
2605
|
}
|
|
2584
|
-
/** Parameters for the `
|
|
2585
|
-
interface
|
|
2586
|
-
/**
|
|
2587
|
-
|
|
2588
|
-
/** Query parameter to specify to stop returning records when the specified key is reached. String
|
|
2589
|
-
* representation of any JSON type that matches the key type emitted by the view function.
|
|
2590
|
-
*/
|
|
2591
|
-
endkey?: string;
|
|
2592
|
-
/** Query parameter to specify the number of returned documents to limit the result to. */
|
|
2593
|
-
limit?: number;
|
|
2594
|
-
/** Query parameter to specify the number of records before starting to return the results. */
|
|
2595
|
-
skip?: number;
|
|
2596
|
-
/** Query parameter to specify to start returning records from the specified key. String representation of any
|
|
2597
|
-
* JSON type that matches the key type emitted by the view function.
|
|
2606
|
+
/** Parameters for the `putCapacityThroughputInformation` operation. */
|
|
2607
|
+
interface PutCapacityThroughputInformationParams {
|
|
2608
|
+
/** A number of blocks of throughput units. A block consists of 100 reads/sec, 50 writes/sec, and 5 global
|
|
2609
|
+
* queries/sec of provisioned throughput capacity.
|
|
2598
2610
|
*/
|
|
2599
|
-
|
|
2600
|
-
headers?: OutgoingHttpHeaders;
|
|
2601
|
-
}
|
|
2602
|
-
/** Parameters for the `postDbsInfo` operation. */
|
|
2603
|
-
interface PostDbsInfoParams {
|
|
2604
|
-
/** A list of database names. */
|
|
2605
|
-
keys: string[];
|
|
2611
|
+
blocks: number;
|
|
2606
2612
|
headers?: OutgoingHttpHeaders;
|
|
2607
2613
|
}
|
|
2608
|
-
/** Parameters for the `
|
|
2609
|
-
interface
|
|
2610
|
-
/**
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
interface GetDatabaseInformationParams {
|
|
2616
|
-
/** Path parameter to specify the database name. */
|
|
2617
|
-
db: string;
|
|
2618
|
-
headers?: OutgoingHttpHeaders;
|
|
2619
|
-
}
|
|
2620
|
-
/** Parameters for the `putDatabase` operation. */
|
|
2621
|
-
interface PutDatabaseParams {
|
|
2622
|
-
/** Path parameter to specify the database name. */
|
|
2623
|
-
db: string;
|
|
2624
|
-
/** Query parameter to specify whether to enable database partitions when creating a database. */
|
|
2625
|
-
partitioned?: boolean;
|
|
2626
|
-
/** The number of shards in the database. Each shard is a partition of the hash value range. Default is 8,
|
|
2627
|
-
* unless overridden in the `cluster config`.
|
|
2614
|
+
/** Parameters for the `getDbUpdates` operation. */
|
|
2615
|
+
interface GetDbUpdatesParams {
|
|
2616
|
+
/** Query parameter to specify the changes feed type. */
|
|
2617
|
+
feed?: GetDbUpdatesConstants.Feed | string;
|
|
2618
|
+
/** Query parameter to specify the period in milliseconds after which an empty line is sent in the results. Only
|
|
2619
|
+
* applicable for longpoll, continuous, and eventsource feeds. Overrides any timeout to keep the feed alive
|
|
2620
|
+
* indefinitely. May also be `true` to use default value of 60000.
|
|
2628
2621
|
*/
|
|
2629
|
-
|
|
2622
|
+
heartbeat?: number;
|
|
2623
|
+
/** Query parameter to specify the maximum period in milliseconds to wait for a change before the response is
|
|
2624
|
+
* sent, even if there are no results. Only applicable for `longpoll` or `continuous` feeds. Default value is
|
|
2625
|
+
* specified by `httpd/changes_timeout` configuration option. Note that `60000` value is also the default maximum
|
|
2626
|
+
* timeout to prevent undetected dead connections.
|
|
2627
|
+
*/
|
|
2628
|
+
timeout?: number;
|
|
2629
|
+
/** Query parameter to specify to start the results from the change immediately after the given update sequence.
|
|
2630
|
+
* Can be a valid update sequence or `now` value. Default is `0` i.e. all changes.
|
|
2631
|
+
*/
|
|
2632
|
+
since?: string;
|
|
2630
2633
|
headers?: OutgoingHttpHeaders;
|
|
2631
2634
|
}
|
|
2635
|
+
/** Constants for the `getDbUpdates` operation. */
|
|
2636
|
+
namespace GetDbUpdatesConstants {
|
|
2637
|
+
/** Query parameter to specify the changes feed type. */
|
|
2638
|
+
enum Feed {
|
|
2639
|
+
CONTINUOUS = "continuous",
|
|
2640
|
+
EVENTSOURCE = "eventsource",
|
|
2641
|
+
LONGPOLL = "longpoll",
|
|
2642
|
+
NORMAL = "normal"
|
|
2643
|
+
}
|
|
2644
|
+
}
|
|
2632
2645
|
/** Parameters for the `postChanges` operation. */
|
|
2633
2646
|
interface PostChangesParams {
|
|
2634
2647
|
/** Path parameter to specify the database name. */
|
|
@@ -2855,6 +2868,60 @@ declare namespace CloudantV1 {
|
|
|
2855
2868
|
NORMAL = "normal"
|
|
2856
2869
|
}
|
|
2857
2870
|
}
|
|
2871
|
+
/** Parameters for the `headDatabase` operation. */
|
|
2872
|
+
interface HeadDatabaseParams {
|
|
2873
|
+
/** Path parameter to specify the database name. */
|
|
2874
|
+
db: string;
|
|
2875
|
+
headers?: OutgoingHttpHeaders;
|
|
2876
|
+
}
|
|
2877
|
+
/** Parameters for the `getAllDbs` operation. */
|
|
2878
|
+
interface GetAllDbsParams {
|
|
2879
|
+
/** Query parameter to specify whether to return the documents in descending by key order. */
|
|
2880
|
+
descending?: boolean;
|
|
2881
|
+
/** Query parameter to specify to stop returning records when the specified key is reached. String
|
|
2882
|
+
* representation of any JSON type that matches the key type emitted by the view function.
|
|
2883
|
+
*/
|
|
2884
|
+
endkey?: string;
|
|
2885
|
+
/** Query parameter to specify the number of returned documents to limit the result to. */
|
|
2886
|
+
limit?: number;
|
|
2887
|
+
/** Query parameter to specify the number of records before starting to return the results. */
|
|
2888
|
+
skip?: number;
|
|
2889
|
+
/** Query parameter to specify to start returning records from the specified key. String representation of any
|
|
2890
|
+
* JSON type that matches the key type emitted by the view function.
|
|
2891
|
+
*/
|
|
2892
|
+
startkey?: string;
|
|
2893
|
+
headers?: OutgoingHttpHeaders;
|
|
2894
|
+
}
|
|
2895
|
+
/** Parameters for the `postDbsInfo` operation. */
|
|
2896
|
+
interface PostDbsInfoParams {
|
|
2897
|
+
/** A list of database names. */
|
|
2898
|
+
keys: string[];
|
|
2899
|
+
headers?: OutgoingHttpHeaders;
|
|
2900
|
+
}
|
|
2901
|
+
/** Parameters for the `deleteDatabase` operation. */
|
|
2902
|
+
interface DeleteDatabaseParams {
|
|
2903
|
+
/** Path parameter to specify the database name. */
|
|
2904
|
+
db: string;
|
|
2905
|
+
headers?: OutgoingHttpHeaders;
|
|
2906
|
+
}
|
|
2907
|
+
/** Parameters for the `getDatabaseInformation` operation. */
|
|
2908
|
+
interface GetDatabaseInformationParams {
|
|
2909
|
+
/** Path parameter to specify the database name. */
|
|
2910
|
+
db: string;
|
|
2911
|
+
headers?: OutgoingHttpHeaders;
|
|
2912
|
+
}
|
|
2913
|
+
/** Parameters for the `putDatabase` operation. */
|
|
2914
|
+
interface PutDatabaseParams {
|
|
2915
|
+
/** Path parameter to specify the database name. */
|
|
2916
|
+
db: string;
|
|
2917
|
+
/** Query parameter to specify whether to enable database partitions when creating a database. */
|
|
2918
|
+
partitioned?: boolean;
|
|
2919
|
+
/** The number of shards in the database. Each shard is a partition of the hash value range. Default is 8,
|
|
2920
|
+
* unless overridden in the `cluster config`.
|
|
2921
|
+
*/
|
|
2922
|
+
q?: number;
|
|
2923
|
+
headers?: OutgoingHttpHeaders;
|
|
2924
|
+
}
|
|
2858
2925
|
/** Parameters for the `headDocument` operation. */
|
|
2859
2926
|
interface HeadDocumentParams {
|
|
2860
2927
|
/** Path parameter to specify the database name. */
|
|
@@ -4484,31 +4551,6 @@ declare namespace CloudantV1 {
|
|
|
4484
4551
|
def?: IndexDefinition;
|
|
4485
4552
|
/** name. */
|
|
4486
4553
|
name?: string;
|
|
4487
|
-
/** JSON object describing criteria used to select documents. The selector specifies fields in the document, and
|
|
4488
|
-
* provides an expression to evaluate with the field content or other data.
|
|
4489
|
-
*
|
|
4490
|
-
* The selector object must:
|
|
4491
|
-
* * Be structured as valid JSON.
|
|
4492
|
-
* * Contain a valid query expression.
|
|
4493
|
-
*
|
|
4494
|
-
* Using a selector is significantly more efficient than using a JavaScript filter function, and is the recommended
|
|
4495
|
-
* option if filtering on document attributes only.
|
|
4496
|
-
*
|
|
4497
|
-
* Elementary selector syntax requires you to specify one or more fields, and the corresponding values required for
|
|
4498
|
-
* those fields. You can create more complex selector expressions by combining operators.
|
|
4499
|
-
*
|
|
4500
|
-
* Operators are identified by the use of a dollar sign `$` prefix in the name field.
|
|
4501
|
-
*
|
|
4502
|
-
* There are two core types of operators in the selector syntax:
|
|
4503
|
-
* * Combination operators: applied at the topmost level of selection. They are used to combine selectors. In
|
|
4504
|
-
* addition to the common boolean operators (`$and`, `$or`, `$not`, `$nor`) there are three combination operators:
|
|
4505
|
-
* `$all`, `$elemMatch`, and `$allMatch`. A combination operator takes a single argument. The argument is either
|
|
4506
|
-
* another selector, or an array of selectors.
|
|
4507
|
-
* * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
|
|
4508
|
-
* instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the
|
|
4509
|
-
* supplied argument.
|
|
4510
|
-
*/
|
|
4511
|
-
partialFilterSelector?: JsonObject;
|
|
4512
4554
|
/** The default value is `true` for databases with `partitioned: true` and `false` otherwise. For databases with
|
|
4513
4555
|
* `partitioned: false` if this option is specified the value must be `false`.
|
|
4514
4556
|
*/
|
|
@@ -4551,15 +4593,15 @@ declare namespace CloudantV1 {
|
|
|
4551
4593
|
}
|
|
4552
4594
|
/** Parameters for the `postSearchAnalyze` operation. */
|
|
4553
4595
|
interface PostSearchAnalyzeParams {
|
|
4554
|
-
/** analyzer. */
|
|
4596
|
+
/** The analyzer type that is being used at the tokenization. */
|
|
4555
4597
|
analyzer: PostSearchAnalyzeConstants.Analyzer | string;
|
|
4556
|
-
/** text. */
|
|
4598
|
+
/** The text to tokenize with the analyzer. */
|
|
4557
4599
|
text: string;
|
|
4558
4600
|
headers?: OutgoingHttpHeaders;
|
|
4559
4601
|
}
|
|
4560
4602
|
/** Constants for the `postSearchAnalyze` operation. */
|
|
4561
4603
|
namespace PostSearchAnalyzeConstants {
|
|
4562
|
-
/** analyzer. */
|
|
4604
|
+
/** The analyzer type that is being used at the tokenization. */
|
|
4563
4605
|
enum Analyzer {
|
|
4564
4606
|
ARABIC = "arabic",
|
|
4565
4607
|
ARMENIAN = "armenian",
|
|
@@ -4985,37 +5027,6 @@ declare namespace CloudantV1 {
|
|
|
4985
5027
|
index: string;
|
|
4986
5028
|
headers?: OutgoingHttpHeaders;
|
|
4987
5029
|
}
|
|
4988
|
-
/** Parameters for the `getDbUpdates` operation. */
|
|
4989
|
-
interface GetDbUpdatesParams {
|
|
4990
|
-
/** Query parameter to specify the changes feed type. */
|
|
4991
|
-
feed?: GetDbUpdatesConstants.Feed | string;
|
|
4992
|
-
/** Query parameter to specify the period in milliseconds after which an empty line is sent in the results. Only
|
|
4993
|
-
* applicable for longpoll, continuous, and eventsource feeds. Overrides any timeout to keep the feed alive
|
|
4994
|
-
* indefinitely. May also be `true` to use default value of 60000.
|
|
4995
|
-
*/
|
|
4996
|
-
heartbeat?: number;
|
|
4997
|
-
/** Query parameter to specify the maximum period in milliseconds to wait for a change before the response is
|
|
4998
|
-
* sent, even if there are no results. Only applicable for `longpoll` or `continuous` feeds. Default value is
|
|
4999
|
-
* specified by `httpd/changes_timeout` configuration option. Note that `60000` value is also the default maximum
|
|
5000
|
-
* timeout to prevent undetected dead connections.
|
|
5001
|
-
*/
|
|
5002
|
-
timeout?: number;
|
|
5003
|
-
/** Query parameter to specify to start the results from the change immediately after the given update sequence.
|
|
5004
|
-
* Can be a valid update sequence or `now` value. Default is `0` i.e. all changes.
|
|
5005
|
-
*/
|
|
5006
|
-
since?: string;
|
|
5007
|
-
headers?: OutgoingHttpHeaders;
|
|
5008
|
-
}
|
|
5009
|
-
/** Constants for the `getDbUpdates` operation. */
|
|
5010
|
-
namespace GetDbUpdatesConstants {
|
|
5011
|
-
/** Query parameter to specify the changes feed type. */
|
|
5012
|
-
enum Feed {
|
|
5013
|
-
CONTINUOUS = "continuous",
|
|
5014
|
-
EVENTSOURCE = "eventsource",
|
|
5015
|
-
LONGPOLL = "longpoll",
|
|
5016
|
-
NORMAL = "normal"
|
|
5017
|
-
}
|
|
5018
|
-
}
|
|
5019
5030
|
/** Parameters for the `headReplicationDocument` operation. */
|
|
5020
5031
|
interface HeadReplicationDocumentParams {
|
|
5021
5032
|
/** Path parameter to specify the document ID. */
|
|
@@ -5024,6 +5035,12 @@ declare namespace CloudantV1 {
|
|
|
5024
5035
|
ifNoneMatch?: string;
|
|
5025
5036
|
headers?: OutgoingHttpHeaders;
|
|
5026
5037
|
}
|
|
5038
|
+
/** Parameters for the `headSchedulerDocument` operation. */
|
|
5039
|
+
interface HeadSchedulerDocumentParams {
|
|
5040
|
+
/** Path parameter to specify the document ID. */
|
|
5041
|
+
docId: string;
|
|
5042
|
+
headers?: OutgoingHttpHeaders;
|
|
5043
|
+
}
|
|
5027
5044
|
/** Parameters for the `headSchedulerJob` operation. */
|
|
5028
5045
|
interface HeadSchedulerJobParams {
|
|
5029
5046
|
/** Path parameter to specify the replication job id. */
|
|
@@ -5346,6 +5363,16 @@ declare namespace CloudantV1 {
|
|
|
5346
5363
|
rev?: string;
|
|
5347
5364
|
headers?: OutgoingHttpHeaders;
|
|
5348
5365
|
}
|
|
5366
|
+
/** Parameters for the `headLocalDocument` operation. */
|
|
5367
|
+
interface HeadLocalDocumentParams {
|
|
5368
|
+
/** Path parameter to specify the database name. */
|
|
5369
|
+
db: string;
|
|
5370
|
+
/** Path parameter to specify the document ID. */
|
|
5371
|
+
docId: string;
|
|
5372
|
+
/** Header parameter to specify a double quoted document revision token for cache control. */
|
|
5373
|
+
ifNoneMatch?: string;
|
|
5374
|
+
headers?: OutgoingHttpHeaders;
|
|
5375
|
+
}
|
|
5349
5376
|
/** Parameters for the `deleteLocalDocument` operation. */
|
|
5350
5377
|
interface DeleteLocalDocumentParams {
|
|
5351
5378
|
/** Path parameter to specify the database name. */
|
|
@@ -5429,74 +5456,6 @@ declare namespace CloudantV1 {
|
|
|
5429
5456
|
OK = "ok"
|
|
5430
5457
|
}
|
|
5431
5458
|
}
|
|
5432
|
-
/** Parameters for the `postLocalDocs` operation. */
|
|
5433
|
-
interface PostLocalDocsParams {
|
|
5434
|
-
/** Path parameter to specify the database name. */
|
|
5435
|
-
db: string;
|
|
5436
|
-
/** Parameter to specify whether to include the encoding information in attachment stubs if the particular
|
|
5437
|
-
* attachment is compressed.
|
|
5438
|
-
*/
|
|
5439
|
-
attEncodingInfo?: boolean;
|
|
5440
|
-
/** Parameter to specify whether to include attachments bodies in a response. */
|
|
5441
|
-
attachments?: boolean;
|
|
5442
|
-
/** Parameter to specify whether to include a list of conflicted revisions in the `_conflicts` property of the
|
|
5443
|
-
* returned document. Ignored if `include_docs` isn't `true`.
|
|
5444
|
-
*/
|
|
5445
|
-
conflicts?: boolean;
|
|
5446
|
-
/** Parameter to specify whether to return the documents in descending by key order. */
|
|
5447
|
-
descending?: boolean;
|
|
5448
|
-
/** Parameter to specify whether to include the full content of the documents in the response. */
|
|
5449
|
-
includeDocs?: boolean;
|
|
5450
|
-
/** Parameter to specify whether the specified end key should be included in the result. */
|
|
5451
|
-
inclusiveEnd?: boolean;
|
|
5452
|
-
/** Parameter to specify the number of returned documents to limit the result to. */
|
|
5453
|
-
limit?: number;
|
|
5454
|
-
/** Parameter to specify the number of records before starting to return the results. */
|
|
5455
|
-
skip?: number;
|
|
5456
|
-
/** Parameter to specify whether to include in the response an update_seq value indicating the sequence id of
|
|
5457
|
-
* the database the view reflects.
|
|
5458
|
-
*/
|
|
5459
|
-
updateSeq?: boolean;
|
|
5460
|
-
/** Schema for a document ID. */
|
|
5461
|
-
endkey?: string;
|
|
5462
|
-
/** Schema for a document ID. */
|
|
5463
|
-
key?: string;
|
|
5464
|
-
/** Schema for a list of document IDs. */
|
|
5465
|
-
keys?: string[];
|
|
5466
|
-
/** Schema for a document ID. */
|
|
5467
|
-
startkey?: string;
|
|
5468
|
-
/** The type of the response: application/json or application/octet-stream. */
|
|
5469
|
-
accept?: PostLocalDocsConstants.Accept | string;
|
|
5470
|
-
headers?: OutgoingHttpHeaders;
|
|
5471
|
-
}
|
|
5472
|
-
/** Constants for the `postLocalDocs` operation. */
|
|
5473
|
-
namespace PostLocalDocsConstants {
|
|
5474
|
-
/** The type of the response: application/json or application/octet-stream. */
|
|
5475
|
-
enum Accept {
|
|
5476
|
-
APPLICATION_JSON = "application/json",
|
|
5477
|
-
APPLICATION_OCTET_STREAM = "application/octet-stream"
|
|
5478
|
-
}
|
|
5479
|
-
}
|
|
5480
|
-
/** Parameters for the `postLocalDocsQueries` operation. */
|
|
5481
|
-
interface PostLocalDocsQueriesParams {
|
|
5482
|
-
/** Path parameter to specify the database name. */
|
|
5483
|
-
db: string;
|
|
5484
|
-
/** An array of query objects with fields for the parameters of each individual view query to be executed. The
|
|
5485
|
-
* field names and their meaning are the same as the query parameters of a regular `/_all_docs` request.
|
|
5486
|
-
*/
|
|
5487
|
-
queries: AllDocsQuery[];
|
|
5488
|
-
/** The type of the response: application/json or application/octet-stream. */
|
|
5489
|
-
accept?: PostLocalDocsQueriesConstants.Accept | string;
|
|
5490
|
-
headers?: OutgoingHttpHeaders;
|
|
5491
|
-
}
|
|
5492
|
-
/** Constants for the `postLocalDocsQueries` operation. */
|
|
5493
|
-
namespace PostLocalDocsQueriesConstants {
|
|
5494
|
-
/** The type of the response: application/json or application/octet-stream. */
|
|
5495
|
-
enum Accept {
|
|
5496
|
-
APPLICATION_JSON = "application/json",
|
|
5497
|
-
APPLICATION_OCTET_STREAM = "application/octet-stream"
|
|
5498
|
-
}
|
|
5499
|
-
}
|
|
5500
5459
|
/** Parameters for the `postMissingRevs` operation. */
|
|
5501
5460
|
interface PostMissingRevsParams {
|
|
5502
5461
|
/** Path parameter to specify the database name. */
|
|
@@ -5527,6 +5486,10 @@ declare namespace CloudantV1 {
|
|
|
5527
5486
|
docId: string;
|
|
5528
5487
|
headers?: OutgoingHttpHeaders;
|
|
5529
5488
|
}
|
|
5489
|
+
/** Parameters for the `headUpInformation` operation. */
|
|
5490
|
+
interface HeadUpInformationParams {
|
|
5491
|
+
headers?: OutgoingHttpHeaders;
|
|
5492
|
+
}
|
|
5530
5493
|
/** Parameters for the `getActiveTasks` operation. */
|
|
5531
5494
|
interface GetActiveTasksParams {
|
|
5532
5495
|
headers?: OutgoingHttpHeaders;
|
|
@@ -5535,6 +5498,30 @@ declare namespace CloudantV1 {
|
|
|
5535
5498
|
interface GetUpInformationParams {
|
|
5536
5499
|
headers?: OutgoingHttpHeaders;
|
|
5537
5500
|
}
|
|
5501
|
+
/** Parameters for the `getActivityTrackerEventsInformation` operation. */
|
|
5502
|
+
interface GetActivityTrackerEventsInformationParams {
|
|
5503
|
+
headers?: OutgoingHttpHeaders;
|
|
5504
|
+
}
|
|
5505
|
+
/** Parameters for the `postActivityTrackerEventsConfiguration` operation. */
|
|
5506
|
+
interface PostActivityTrackerEventsConfigurationParams {
|
|
5507
|
+
/** An array of event types that are being sent to IBM Cloud Activity Tracker with LogDNA for the IBM Cloudant
|
|
5508
|
+
* instance. "management" is a required element of this array.
|
|
5509
|
+
*/
|
|
5510
|
+
types: PostActivityTrackerEventsConfigurationConstants.Types | string[];
|
|
5511
|
+
headers?: OutgoingHttpHeaders;
|
|
5512
|
+
}
|
|
5513
|
+
/** Constants for the `postActivityTrackerEventsConfiguration` operation. */
|
|
5514
|
+
namespace PostActivityTrackerEventsConfigurationConstants {
|
|
5515
|
+
/** Types */
|
|
5516
|
+
enum Types {
|
|
5517
|
+
MANAGEMENT = "management",
|
|
5518
|
+
DATA = "data"
|
|
5519
|
+
}
|
|
5520
|
+
}
|
|
5521
|
+
/** Parameters for the `getCurrentThroughputInformation` operation. */
|
|
5522
|
+
interface GetCurrentThroughputInformationParams {
|
|
5523
|
+
headers?: OutgoingHttpHeaders;
|
|
5524
|
+
}
|
|
5538
5525
|
/*************************
|
|
5539
5526
|
* model interfaces
|
|
5540
5527
|
************************/
|
|
@@ -5543,13 +5530,15 @@ declare namespace CloudantV1 {
|
|
|
5543
5530
|
/** Processed changes. */
|
|
5544
5531
|
changes_done?: number;
|
|
5545
5532
|
/** Source database. */
|
|
5546
|
-
database
|
|
5533
|
+
database: string;
|
|
5534
|
+
/** Cluster node where the task is running. */
|
|
5535
|
+
node: string;
|
|
5547
5536
|
/** Process ID. */
|
|
5548
|
-
pid
|
|
5537
|
+
pid: string;
|
|
5549
5538
|
/** Current percentage progress. */
|
|
5550
5539
|
progress?: number;
|
|
5551
5540
|
/** Schema for a Unix epoch timestamp. */
|
|
5552
|
-
started_on
|
|
5541
|
+
started_on: number;
|
|
5553
5542
|
/** Task status message. */
|
|
5554
5543
|
status?: string;
|
|
5555
5544
|
/** Task name. */
|
|
@@ -5557,9 +5546,16 @@ declare namespace CloudantV1 {
|
|
|
5557
5546
|
/** Total changes to process. */
|
|
5558
5547
|
total_changes?: number;
|
|
5559
5548
|
/** Operation type. */
|
|
5560
|
-
type
|
|
5549
|
+
type: string;
|
|
5561
5550
|
/** Schema for a Unix epoch timestamp. */
|
|
5562
|
-
updated_on
|
|
5551
|
+
updated_on: number;
|
|
5552
|
+
}
|
|
5553
|
+
/** Schema for Activity Tracker events configuration. */
|
|
5554
|
+
interface ActivityTrackerEventsConfiguration {
|
|
5555
|
+
/** An array of event types that are being sent to IBM Cloud Activity Tracker with LogDNA for the IBM Cloudant
|
|
5556
|
+
* instance. "management" is a required element of this array.
|
|
5557
|
+
*/
|
|
5558
|
+
types: string[];
|
|
5563
5559
|
}
|
|
5564
5560
|
/** Schema for the result of an all documents queries operation. */
|
|
5565
5561
|
interface AllDocsQueriesResult {
|
|
@@ -5606,9 +5602,9 @@ declare namespace CloudantV1 {
|
|
|
5606
5602
|
/** Schema for the result of an all documents operation. */
|
|
5607
5603
|
interface AllDocsResult {
|
|
5608
5604
|
/** Number of total rows. */
|
|
5609
|
-
total_rows
|
|
5605
|
+
total_rows: number;
|
|
5610
5606
|
/** List of doc results. */
|
|
5611
|
-
rows
|
|
5607
|
+
rows: DocsResultRow[];
|
|
5612
5608
|
/** Current update sequence for the database. */
|
|
5613
5609
|
update_seq?: string;
|
|
5614
5610
|
}
|
|
@@ -5639,11 +5635,11 @@ declare namespace CloudantV1 {
|
|
|
5639
5635
|
/** Schema for api keys. */
|
|
5640
5636
|
interface ApiKeysResult {
|
|
5641
5637
|
/** ok. */
|
|
5642
|
-
ok
|
|
5638
|
+
ok: boolean;
|
|
5643
5639
|
/** The generated api key. */
|
|
5644
|
-
key
|
|
5640
|
+
key: string;
|
|
5645
5641
|
/** The password associated with the api key. */
|
|
5646
|
-
password
|
|
5642
|
+
password: string;
|
|
5647
5643
|
}
|
|
5648
5644
|
/** Schema for an attachment. */
|
|
5649
5645
|
interface Attachment {
|
|
@@ -5698,7 +5694,7 @@ declare namespace CloudantV1 {
|
|
|
5698
5694
|
/** Schema for the results object of a bulk get operation. */
|
|
5699
5695
|
interface BulkGetResult {
|
|
5700
5696
|
/** Results. */
|
|
5701
|
-
results
|
|
5697
|
+
results: BulkGetResultItem[];
|
|
5702
5698
|
}
|
|
5703
5699
|
/** Schema for BulkGetResult object containing a successfully retrieved document or error information. */
|
|
5704
5700
|
interface BulkGetResultDocument {
|
|
@@ -5710,99 +5706,136 @@ declare namespace CloudantV1 {
|
|
|
5710
5706
|
/** Schema for the document revisions information from a bulk get operation. */
|
|
5711
5707
|
interface BulkGetResultItem {
|
|
5712
5708
|
/** Array of document revisions or error information. */
|
|
5713
|
-
docs
|
|
5709
|
+
docs: BulkGetResultDocument[];
|
|
5714
5710
|
/** Schema for a document ID. */
|
|
5715
|
-
id
|
|
5711
|
+
id: string;
|
|
5712
|
+
}
|
|
5713
|
+
/** Schema for information about the currently provisioned and target throughput capacity. */
|
|
5714
|
+
interface CapacityThroughputInformation {
|
|
5715
|
+
/** Detailed information about provisioned throughput capacity. */
|
|
5716
|
+
current: CapacityThroughputInformationCurrent;
|
|
5717
|
+
/** Detailed information about target throughput capacity. */
|
|
5718
|
+
target?: CapacityThroughputInformationTarget;
|
|
5719
|
+
}
|
|
5720
|
+
/** Detailed information about provisioned throughput capacity. */
|
|
5721
|
+
interface CapacityThroughputInformationCurrent {
|
|
5722
|
+
/** Schema for detailed information about throughput capacity with breakdown by specific throughput requests
|
|
5723
|
+
* classes.
|
|
5724
|
+
*/
|
|
5725
|
+
throughput: ThroughputInformation;
|
|
5726
|
+
}
|
|
5727
|
+
/** Detailed information about target throughput capacity. */
|
|
5728
|
+
interface CapacityThroughputInformationTarget {
|
|
5729
|
+
/** Schema for detailed information about throughput capacity with breakdown by specific throughput requests
|
|
5730
|
+
* classes.
|
|
5731
|
+
*/
|
|
5732
|
+
throughput: ThroughputInformation;
|
|
5716
5733
|
}
|
|
5717
5734
|
/** Schema for a document leaf with single field rev. */
|
|
5718
5735
|
interface Change {
|
|
5719
5736
|
/** Schema for a document revision identifier. */
|
|
5720
|
-
rev
|
|
5737
|
+
rev: string;
|
|
5721
5738
|
}
|
|
5722
5739
|
/** Schema for normal changes feed result. */
|
|
5723
5740
|
interface ChangesResult {
|
|
5724
5741
|
/** last_seq. */
|
|
5725
|
-
last_seq
|
|
5742
|
+
last_seq: string;
|
|
5726
5743
|
/** pending. */
|
|
5727
|
-
pending
|
|
5744
|
+
pending: number;
|
|
5728
5745
|
/** results. */
|
|
5729
|
-
results
|
|
5746
|
+
results: ChangesResultItem[];
|
|
5730
5747
|
}
|
|
5731
5748
|
/** Schema for an item in the changes results array. */
|
|
5732
5749
|
interface ChangesResultItem {
|
|
5733
5750
|
/** List of document's leaves with single field rev. */
|
|
5734
|
-
changes
|
|
5751
|
+
changes: Change[];
|
|
5735
5752
|
/** if `true` then the document is deleted. */
|
|
5736
5753
|
deleted?: boolean;
|
|
5754
|
+
/** Schema for a document. */
|
|
5755
|
+
doc?: Document;
|
|
5737
5756
|
/** Schema for a document ID. */
|
|
5738
|
-
id
|
|
5757
|
+
id: string;
|
|
5739
5758
|
/** Update sequence. */
|
|
5740
|
-
seq
|
|
5759
|
+
seq: string;
|
|
5741
5760
|
}
|
|
5742
5761
|
/** Schema for size information of content. */
|
|
5743
5762
|
interface ContentInformationSizes {
|
|
5744
5763
|
/** The active size of the content, in bytes. */
|
|
5745
|
-
active
|
|
5764
|
+
active: number;
|
|
5746
5765
|
/** The total uncompressed size of the content, in bytes. */
|
|
5747
|
-
external
|
|
5766
|
+
external: number;
|
|
5748
5767
|
/** The total size of the content as stored on disk, in bytes. */
|
|
5749
|
-
file
|
|
5768
|
+
file: number;
|
|
5750
5769
|
}
|
|
5751
|
-
/** Schema for
|
|
5752
|
-
interface
|
|
5770
|
+
/** Schema for information about the CORS configuration. */
|
|
5771
|
+
interface CorsInformation {
|
|
5753
5772
|
/** Boolean value to allow authentication credentials. If set to true, browser requests must be done by using
|
|
5754
5773
|
* withCredentials = true.
|
|
5755
5774
|
*/
|
|
5756
|
-
allow_credentials
|
|
5775
|
+
allow_credentials: boolean;
|
|
5757
5776
|
/** Boolean value to turn CORS on and off. */
|
|
5758
|
-
enable_cors
|
|
5777
|
+
enable_cors: boolean;
|
|
5759
5778
|
/** An array of strings that contain allowed origin domains. You have to specify the full URL including the
|
|
5760
5779
|
* protocol. It is recommended that only the HTTPS protocol is used. Subdomains count as separate domains, so you
|
|
5761
5780
|
* have to specify all subdomains used.
|
|
5762
5781
|
*/
|
|
5763
5782
|
origins: string[];
|
|
5764
5783
|
}
|
|
5784
|
+
/** Schema for information about current consumption of a provisioned throughput capacity. */
|
|
5785
|
+
interface CurrentThroughputInformation {
|
|
5786
|
+
/** Detailed information about current consumption. */
|
|
5787
|
+
throughput: CurrentThroughputInformationThroughput;
|
|
5788
|
+
}
|
|
5789
|
+
/** Detailed information about current consumption. */
|
|
5790
|
+
interface CurrentThroughputInformationThroughput {
|
|
5791
|
+
/** Number of global queries conducted against the instance for a given second. */
|
|
5792
|
+
query: number;
|
|
5793
|
+
/** Number of reads conducted against the instance for a given second. */
|
|
5794
|
+
read: number;
|
|
5795
|
+
/** Number of writes conducted against the instance for a given second. */
|
|
5796
|
+
write: number;
|
|
5797
|
+
}
|
|
5765
5798
|
/** Schema for information about a database. */
|
|
5766
5799
|
interface DatabaseInformation {
|
|
5767
5800
|
/** Schema for database cluster information. */
|
|
5768
|
-
cluster
|
|
5801
|
+
cluster: DatabaseInformationCluster;
|
|
5769
5802
|
/** An opaque string that describes the committed state of the database. */
|
|
5770
5803
|
committed_update_seq?: string;
|
|
5771
5804
|
/** True if the database compaction routine is operating on this database. */
|
|
5772
|
-
compact_running
|
|
5805
|
+
compact_running: boolean;
|
|
5773
5806
|
/** An opaque string that describes the compaction state of the database. */
|
|
5774
5807
|
compacted_seq?: string;
|
|
5775
5808
|
/** The name of the database. */
|
|
5776
|
-
db_name
|
|
5809
|
+
db_name: string;
|
|
5777
5810
|
/** The version of the physical format used for the data when it is stored on disk. */
|
|
5778
|
-
disk_format_version
|
|
5811
|
+
disk_format_version: number;
|
|
5779
5812
|
/** A count of the documents in the specified database. */
|
|
5780
|
-
doc_count
|
|
5813
|
+
doc_count: number;
|
|
5781
5814
|
/** Number of deleted documents. */
|
|
5782
|
-
doc_del_count
|
|
5815
|
+
doc_del_count: number;
|
|
5783
5816
|
/** The engine used for the database. */
|
|
5784
5817
|
engine?: string;
|
|
5785
5818
|
/** Schema for database properties. */
|
|
5786
|
-
props
|
|
5819
|
+
props: DatabaseInformationProps;
|
|
5787
5820
|
/** Schema for size information of content. */
|
|
5788
|
-
sizes
|
|
5821
|
+
sizes: ContentInformationSizes;
|
|
5789
5822
|
/** An opaque string that describes the state of the database. Do not rely on this string for counting the
|
|
5790
5823
|
* number of updates.
|
|
5791
5824
|
*/
|
|
5792
|
-
update_seq
|
|
5825
|
+
update_seq: string;
|
|
5793
5826
|
/** The UUID of the database. */
|
|
5794
5827
|
uuid?: string;
|
|
5795
5828
|
}
|
|
5796
5829
|
/** Schema for database cluster information. */
|
|
5797
5830
|
interface DatabaseInformationCluster {
|
|
5798
5831
|
/** Schema for the number of replicas of a database in a cluster. */
|
|
5799
|
-
n
|
|
5832
|
+
n: number;
|
|
5800
5833
|
/** Schema for the number of shards in a database. Each shard is a partition of the hash value range. */
|
|
5801
|
-
q
|
|
5834
|
+
q: number;
|
|
5802
5835
|
/** Read quorum. The number of consistent copies of a document that need to be read before a successful reply. */
|
|
5803
|
-
r
|
|
5836
|
+
r: number;
|
|
5804
5837
|
/** Write quorum. The number of copies of a document that need to be written before a successful reply. */
|
|
5805
|
-
w
|
|
5838
|
+
w: number;
|
|
5806
5839
|
}
|
|
5807
5840
|
/** Schema for database properties. */
|
|
5808
5841
|
interface DatabaseInformationProps {
|
|
@@ -5814,25 +5847,25 @@ declare namespace CloudantV1 {
|
|
|
5814
5847
|
/** Account name. */
|
|
5815
5848
|
account?: string;
|
|
5816
5849
|
/** Database name. */
|
|
5817
|
-
|
|
5850
|
+
db_name: string;
|
|
5818
5851
|
/** Sequence number. */
|
|
5819
|
-
seq
|
|
5852
|
+
seq: string;
|
|
5820
5853
|
/** A database event. */
|
|
5821
|
-
type
|
|
5854
|
+
type: string;
|
|
5822
5855
|
}
|
|
5823
5856
|
/** Schema for database updates. */
|
|
5824
5857
|
interface DbUpdates {
|
|
5825
5858
|
/** Last sequence number. */
|
|
5826
|
-
last_seq
|
|
5859
|
+
last_seq: string;
|
|
5827
5860
|
/** results. */
|
|
5828
|
-
results
|
|
5861
|
+
results: DbEvent[];
|
|
5829
5862
|
}
|
|
5830
5863
|
/** Schema for database information keyed by database name. */
|
|
5831
5864
|
interface DbsInfoResult {
|
|
5832
5865
|
/** Schema for information about a database. */
|
|
5833
5866
|
info?: DatabaseInformation;
|
|
5834
5867
|
/** Database name. */
|
|
5835
|
-
key
|
|
5868
|
+
key: string;
|
|
5836
5869
|
}
|
|
5837
5870
|
/** Schema for a design document. */
|
|
5838
5871
|
interface DesignDocument {
|
|
@@ -5880,9 +5913,9 @@ declare namespace CloudantV1 {
|
|
|
5880
5913
|
/** Schema for information about a design document. */
|
|
5881
5914
|
interface DesignDocumentInformation {
|
|
5882
5915
|
/** name. */
|
|
5883
|
-
name
|
|
5916
|
+
name: string;
|
|
5884
5917
|
/** View index information. */
|
|
5885
|
-
view_index
|
|
5918
|
+
view_index: DesignDocumentViewIndex;
|
|
5886
5919
|
}
|
|
5887
5920
|
/** Schema for design document options. */
|
|
5888
5921
|
interface DesignDocumentOptions {
|
|
@@ -5892,26 +5925,26 @@ declare namespace CloudantV1 {
|
|
|
5892
5925
|
/** View index information. */
|
|
5893
5926
|
interface DesignDocumentViewIndex {
|
|
5894
5927
|
/** Indicates whether a compaction routine is currently running on the view. */
|
|
5895
|
-
compact_running
|
|
5928
|
+
compact_running: boolean;
|
|
5896
5929
|
/** Language for the defined views. */
|
|
5897
|
-
language
|
|
5930
|
+
language: string;
|
|
5898
5931
|
/** MD5 signature of the views for the design document. */
|
|
5899
|
-
signature
|
|
5932
|
+
signature: string;
|
|
5900
5933
|
/** Schema for size information of content. */
|
|
5901
|
-
sizes
|
|
5934
|
+
sizes: ContentInformationSizes;
|
|
5902
5935
|
/** The update sequence of the corresponding database that has been indexed. */
|
|
5903
|
-
update_seq
|
|
5936
|
+
update_seq: string;
|
|
5904
5937
|
/** Indicates if the view is currently being updated. */
|
|
5905
|
-
updater_running
|
|
5938
|
+
updater_running: boolean;
|
|
5906
5939
|
/** Number of clients waiting on views from this design document. */
|
|
5907
|
-
waiting_clients
|
|
5940
|
+
waiting_clients: number;
|
|
5908
5941
|
/** Indicates if there are outstanding commits to the underlying database that need to processed. */
|
|
5909
|
-
waiting_commit
|
|
5942
|
+
waiting_commit: boolean;
|
|
5910
5943
|
}
|
|
5911
5944
|
/** Schema for view functions definition. */
|
|
5912
5945
|
interface DesignDocumentViewsMapReduce {
|
|
5913
5946
|
/** JavaScript map function as a string. */
|
|
5914
|
-
map
|
|
5947
|
+
map: string;
|
|
5915
5948
|
/** JavaScript reduce function as a string. */
|
|
5916
5949
|
reduce?: string;
|
|
5917
5950
|
}
|
|
@@ -5928,14 +5961,14 @@ declare namespace CloudantV1 {
|
|
|
5928
5961
|
/** id. */
|
|
5929
5962
|
id?: string;
|
|
5930
5963
|
/** Document ID. */
|
|
5931
|
-
key
|
|
5964
|
+
key: string;
|
|
5932
5965
|
/** Value of built-in `/_all_docs` style view. */
|
|
5933
5966
|
value?: DocsResultRowValue;
|
|
5934
5967
|
}
|
|
5935
5968
|
/** Value of built-in `/_all_docs` style view. */
|
|
5936
5969
|
interface DocsResultRowValue {
|
|
5937
5970
|
/** Schema for a document revision identifier. */
|
|
5938
|
-
rev
|
|
5971
|
+
rev: string;
|
|
5939
5972
|
}
|
|
5940
5973
|
/** Schema for a document. */
|
|
5941
5974
|
interface Document {
|
|
@@ -5963,7 +5996,7 @@ declare namespace CloudantV1 {
|
|
|
5963
5996
|
/** Schema for the result of a document modification. */
|
|
5964
5997
|
interface DocumentResult {
|
|
5965
5998
|
/** Schema for a document ID. */
|
|
5966
|
-
id
|
|
5999
|
+
id: string;
|
|
5967
6000
|
/** Schema for a document revision identifier. */
|
|
5968
6001
|
rev?: string;
|
|
5969
6002
|
/** ok. */
|
|
@@ -5978,44 +6011,44 @@ declare namespace CloudantV1 {
|
|
|
5978
6011
|
/** Schema for information about revisions and their status. */
|
|
5979
6012
|
interface DocumentRevisionStatus {
|
|
5980
6013
|
/** Schema for a document revision identifier. */
|
|
5981
|
-
rev
|
|
6014
|
+
rev: string;
|
|
5982
6015
|
/** Status of the revision. May be one of: - `available`: Revision is available for retrieving with rev query
|
|
5983
6016
|
* parameter - `missing`: Revision is not available - `deleted`: Revision belongs to deleted document.
|
|
5984
6017
|
*/
|
|
5985
|
-
status
|
|
6018
|
+
status: string;
|
|
5986
6019
|
}
|
|
5987
6020
|
/** Schema for document shard information. */
|
|
5988
6021
|
interface DocumentShardInfo {
|
|
5989
6022
|
/** List of nodes serving a replica of the shard. */
|
|
5990
|
-
nodes
|
|
6023
|
+
nodes: string[];
|
|
5991
6024
|
/** The shard range in which the document is stored. */
|
|
5992
|
-
range
|
|
6025
|
+
range: string;
|
|
5993
6026
|
}
|
|
5994
6027
|
/** Schema for find query execution statistics. */
|
|
5995
6028
|
interface ExecutionStats {
|
|
5996
6029
|
/** Time to execute the query. */
|
|
5997
|
-
execution_time_ms
|
|
6030
|
+
execution_time_ms: number;
|
|
5998
6031
|
/** Number of results returned. */
|
|
5999
|
-
results_returned
|
|
6032
|
+
results_returned: number;
|
|
6000
6033
|
/** Number of documents fetched from the index. */
|
|
6001
|
-
total_docs_examined
|
|
6034
|
+
total_docs_examined: number;
|
|
6002
6035
|
/** Number of rows scanned in the index. */
|
|
6003
|
-
total_keys_examined
|
|
6036
|
+
total_keys_examined: number;
|
|
6004
6037
|
/** Number of documents fetched from the primary index with the specified read quorum. */
|
|
6005
|
-
total_quorum_docs_examined
|
|
6038
|
+
total_quorum_docs_examined: number;
|
|
6006
6039
|
}
|
|
6007
6040
|
/** Schema for information about the index used for a find query. */
|
|
6008
6041
|
interface ExplainResult {
|
|
6009
6042
|
/** dbname. */
|
|
6010
|
-
dbname
|
|
6043
|
+
dbname: string;
|
|
6011
6044
|
/** fields. */
|
|
6012
|
-
fields
|
|
6045
|
+
fields: string[];
|
|
6013
6046
|
/** Schema for information about an index. */
|
|
6014
|
-
index
|
|
6047
|
+
index: IndexInformation;
|
|
6015
6048
|
/** limit. */
|
|
6016
|
-
limit
|
|
6049
|
+
limit: number;
|
|
6017
6050
|
/** opts. */
|
|
6018
|
-
opts
|
|
6051
|
+
opts: JsonObject;
|
|
6019
6052
|
/** range. */
|
|
6020
6053
|
range?: ExplainResultRange;
|
|
6021
6054
|
/** JSON object describing criteria used to select documents. The selector specifies fields in the document, and
|
|
@@ -6042,9 +6075,9 @@ declare namespace CloudantV1 {
|
|
|
6042
6075
|
* instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the
|
|
6043
6076
|
* supplied argument.
|
|
6044
6077
|
*/
|
|
6045
|
-
selector
|
|
6078
|
+
selector: JsonObject;
|
|
6046
6079
|
/** skip. */
|
|
6047
|
-
skip
|
|
6080
|
+
skip: number;
|
|
6048
6081
|
}
|
|
6049
6082
|
/** range. */
|
|
6050
6083
|
interface ExplainResultRange {
|
|
@@ -6056,9 +6089,9 @@ declare namespace CloudantV1 {
|
|
|
6056
6089
|
/** Schema for the result of a query find operation. */
|
|
6057
6090
|
interface FindResult {
|
|
6058
6091
|
/** Opaque bookmark token used when paginating results. */
|
|
6059
|
-
bookmark
|
|
6092
|
+
bookmark: string;
|
|
6060
6093
|
/** Documents matching the selector. */
|
|
6061
|
-
docs
|
|
6094
|
+
docs: Document[];
|
|
6062
6095
|
/** Schema for find query execution statistics. */
|
|
6063
6096
|
execution_stats?: ExecutionStats;
|
|
6064
6097
|
/** warning. */
|
|
@@ -6075,16 +6108,18 @@ declare namespace CloudantV1 {
|
|
|
6075
6108
|
/** Schema for information about a geospatial index. */
|
|
6076
6109
|
interface GeoIndexInformation {
|
|
6077
6110
|
/** Schema for geospatial index statistics. */
|
|
6078
|
-
geo_index
|
|
6111
|
+
geo_index: GeoIndexStats;
|
|
6112
|
+
/** The name of the geospatial index design document. */
|
|
6113
|
+
name: string;
|
|
6079
6114
|
}
|
|
6080
6115
|
/** Schema for geospatial index statistics. */
|
|
6081
6116
|
interface GeoIndexStats {
|
|
6082
6117
|
/** The size of the geospatial index, in bytes. */
|
|
6083
|
-
data_size
|
|
6118
|
+
data_size: number;
|
|
6084
6119
|
/** The size of the geospatial index, as stored on disk, in bytes. */
|
|
6085
|
-
disk_size
|
|
6120
|
+
disk_size: number;
|
|
6086
6121
|
/** Number of documents in the geospatial index. */
|
|
6087
|
-
doc_count
|
|
6122
|
+
doc_count: number;
|
|
6088
6123
|
}
|
|
6089
6124
|
/** Schema for a GeoJSON feature object. Note that the content of the feature objects varies depending on the response format chosen and whether the `include_docs` parameter is `true`. */
|
|
6090
6125
|
interface GeoJsonFeature {
|
|
@@ -6109,11 +6144,11 @@ declare namespace CloudantV1 {
|
|
|
6109
6144
|
/** Schema for the result of a geospatial query operation. For the `legacy`, `geojson`, or `application/vnd.geo+json` format this is a GeoJson FeatureCollection with additional metadata in foreign members. */
|
|
6110
6145
|
interface GeoResult {
|
|
6111
6146
|
/** Opaque bookmark token used when paginating results. */
|
|
6112
|
-
bookmark
|
|
6147
|
+
bookmark: string;
|
|
6113
6148
|
/** The array of GeoJSON Feature Objects matching the geospatial query. */
|
|
6114
6149
|
features?: GeoJsonFeature[];
|
|
6115
6150
|
/** The array of rows matching the geospatial query. Present only when using `view` format. */
|
|
6116
|
-
rows
|
|
6151
|
+
rows: GeoResultRow[];
|
|
6117
6152
|
/** Declaration of the GeoJSON type: FeatureCollection Object. */
|
|
6118
6153
|
type?: string;
|
|
6119
6154
|
}
|
|
@@ -6145,6 +6180,31 @@ declare namespace CloudantV1 {
|
|
|
6145
6180
|
* of the extra processing that is needed to determine and store the arrays lengths.
|
|
6146
6181
|
*/
|
|
6147
6182
|
index_array_lengths?: boolean;
|
|
6183
|
+
/** JSON object describing criteria used to select documents. The selector specifies fields in the document, and
|
|
6184
|
+
* provides an expression to evaluate with the field content or other data.
|
|
6185
|
+
*
|
|
6186
|
+
* The selector object must:
|
|
6187
|
+
* * Be structured as valid JSON.
|
|
6188
|
+
* * Contain a valid query expression.
|
|
6189
|
+
*
|
|
6190
|
+
* Using a selector is significantly more efficient than using a JavaScript filter function, and is the recommended
|
|
6191
|
+
* option if filtering on document attributes only.
|
|
6192
|
+
*
|
|
6193
|
+
* Elementary selector syntax requires you to specify one or more fields, and the corresponding values required for
|
|
6194
|
+
* those fields. You can create more complex selector expressions by combining operators.
|
|
6195
|
+
*
|
|
6196
|
+
* Operators are identified by the use of a dollar sign `$` prefix in the name field.
|
|
6197
|
+
*
|
|
6198
|
+
* There are two core types of operators in the selector syntax:
|
|
6199
|
+
* * Combination operators: applied at the topmost level of selection. They are used to combine selectors. In
|
|
6200
|
+
* addition to the common boolean operators (`$and`, `$or`, `$not`, `$nor`) there are three combination operators:
|
|
6201
|
+
* `$all`, `$elemMatch`, and `$allMatch`. A combination operator takes a single argument. The argument is either
|
|
6202
|
+
* another selector, or an array of selectors.
|
|
6203
|
+
* * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
|
|
6204
|
+
* instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the
|
|
6205
|
+
* supplied argument.
|
|
6206
|
+
*/
|
|
6207
|
+
partial_filter_selector?: JsonObject;
|
|
6148
6208
|
}
|
|
6149
6209
|
/** Schema for indexed fields for use with declarative JSON query. */
|
|
6150
6210
|
interface IndexField {
|
|
@@ -6158,26 +6218,26 @@ declare namespace CloudantV1 {
|
|
|
6158
6218
|
/** Schema for information about an index. */
|
|
6159
6219
|
interface IndexInformation {
|
|
6160
6220
|
/** Design document ID. */
|
|
6161
|
-
ddoc
|
|
6221
|
+
ddoc: string;
|
|
6162
6222
|
/** Schema for a `json` or `text` query index definition. Indexes of type `text` have additional configuration
|
|
6163
6223
|
* properties that do not apply to `json` indexes, these are:
|
|
6164
6224
|
* * `default_analyzer` - the default text analyzer to use * `default_field` - whether to index the text in all
|
|
6165
6225
|
* document fields and what analyzer to use for that purpose.
|
|
6166
6226
|
*/
|
|
6167
|
-
def
|
|
6227
|
+
def: IndexDefinition;
|
|
6168
6228
|
/** Index name. */
|
|
6169
|
-
name
|
|
6229
|
+
name: string;
|
|
6170
6230
|
/** Schema for the type of an index. */
|
|
6171
|
-
type
|
|
6231
|
+
type: string;
|
|
6172
6232
|
}
|
|
6173
6233
|
/** Schema for the result of creating an index. */
|
|
6174
6234
|
interface IndexResult {
|
|
6175
6235
|
/** Id of the design document the index was created in. */
|
|
6176
|
-
id
|
|
6236
|
+
id: string;
|
|
6177
6237
|
/** Name of the index created. */
|
|
6178
|
-
name
|
|
6238
|
+
name: string;
|
|
6179
6239
|
/** Flag to show whether the index was created or one already exists. */
|
|
6180
|
-
result
|
|
6240
|
+
result: string;
|
|
6181
6241
|
}
|
|
6182
6242
|
/** 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. */
|
|
6183
6243
|
interface IndexTextOperatorDefaultField {
|
|
@@ -6189,21 +6249,21 @@ declare namespace CloudantV1 {
|
|
|
6189
6249
|
/** Schema for information about the indexes in a database. */
|
|
6190
6250
|
interface IndexesInformation {
|
|
6191
6251
|
/** Number of total rows. */
|
|
6192
|
-
total_rows
|
|
6252
|
+
total_rows: number;
|
|
6193
6253
|
/** Indexes. */
|
|
6194
|
-
indexes
|
|
6254
|
+
indexes: IndexInformation[];
|
|
6195
6255
|
}
|
|
6196
6256
|
/** Schema for information about known nodes and cluster membership. */
|
|
6197
6257
|
interface MembershipInformation {
|
|
6198
6258
|
/** List of nodes this node knows about, including the ones that are part of the cluster. */
|
|
6199
|
-
all_nodes
|
|
6259
|
+
all_nodes: string[];
|
|
6200
6260
|
/** All cluster nodes. */
|
|
6201
|
-
cluster_nodes
|
|
6261
|
+
cluster_nodes: string[];
|
|
6202
6262
|
}
|
|
6203
6263
|
/** Schema for mapping document IDs to lists of missing revisions. */
|
|
6204
6264
|
interface MissingRevsResult {
|
|
6205
6265
|
/** Schema for mapping document IDs to lists of revisions. */
|
|
6206
|
-
missing_revs
|
|
6266
|
+
missing_revs: JsonObject;
|
|
6207
6267
|
}
|
|
6208
6268
|
/** Schema for an OK result. */
|
|
6209
6269
|
interface Ok {
|
|
@@ -6213,17 +6273,17 @@ declare namespace CloudantV1 {
|
|
|
6213
6273
|
/** Schema for information about a database partition. */
|
|
6214
6274
|
interface PartitionInformation {
|
|
6215
6275
|
/** The name of the database. */
|
|
6216
|
-
db_name
|
|
6276
|
+
db_name: string;
|
|
6217
6277
|
/** A count of the documents in the specified database partition. */
|
|
6218
|
-
doc_count
|
|
6278
|
+
doc_count: number;
|
|
6219
6279
|
/** Number of deleted documents. */
|
|
6220
|
-
doc_del_count
|
|
6280
|
+
doc_del_count: number;
|
|
6221
6281
|
/** The name of the partition in the database. */
|
|
6222
|
-
partition
|
|
6282
|
+
partition: string;
|
|
6223
6283
|
/** Schema for information about the partition index count and limit in a database. */
|
|
6224
6284
|
partitioned_indexes?: PartitionInformationIndexes;
|
|
6225
6285
|
/** The size of active and external data, in bytes. */
|
|
6226
|
-
sizes
|
|
6286
|
+
sizes: PartitionInformationSizes;
|
|
6227
6287
|
}
|
|
6228
6288
|
/** Schema for information about the partition index count and limit in a database. */
|
|
6229
6289
|
interface PartitionInformationIndexes {
|
|
@@ -6264,7 +6324,7 @@ declare namespace CloudantV1 {
|
|
|
6264
6324
|
/** Replication request headers. */
|
|
6265
6325
|
headers?: JsonObject;
|
|
6266
6326
|
/** Replication database URL. */
|
|
6267
|
-
url
|
|
6327
|
+
url: string;
|
|
6268
6328
|
}
|
|
6269
6329
|
/** Schema for replication source or target database authentication. */
|
|
6270
6330
|
interface ReplicationDatabaseAuth {
|
|
@@ -6386,47 +6446,47 @@ declare namespace CloudantV1 {
|
|
|
6386
6446
|
/** Schema for replication history information. */
|
|
6387
6447
|
interface ReplicationHistory {
|
|
6388
6448
|
/** Number of document write failures. */
|
|
6389
|
-
doc_write_failures
|
|
6449
|
+
doc_write_failures: number;
|
|
6390
6450
|
/** Number of documents read. */
|
|
6391
|
-
docs_read
|
|
6451
|
+
docs_read: number;
|
|
6392
6452
|
/** Number of documents written to target. */
|
|
6393
|
-
docs_written
|
|
6453
|
+
docs_written: number;
|
|
6394
6454
|
/** Last sequence number in changes stream. */
|
|
6395
|
-
end_last_seq
|
|
6455
|
+
end_last_seq: string;
|
|
6396
6456
|
/** Date/Time replication operation completed in RFC 2822 format. */
|
|
6397
|
-
end_time
|
|
6457
|
+
end_time: string;
|
|
6398
6458
|
/** Number of missing documents checked. */
|
|
6399
|
-
missing_checked
|
|
6459
|
+
missing_checked: number;
|
|
6400
6460
|
/** Number of missing documents found. */
|
|
6401
|
-
missing_found
|
|
6461
|
+
missing_found: number;
|
|
6402
6462
|
/** Last recorded sequence number. */
|
|
6403
|
-
recorded_seq
|
|
6463
|
+
recorded_seq: string;
|
|
6404
6464
|
/** Session ID for this replication operation. */
|
|
6405
|
-
session_id
|
|
6465
|
+
session_id: string;
|
|
6406
6466
|
/** First sequence number in changes stream. */
|
|
6407
|
-
start_last_seq
|
|
6467
|
+
start_last_seq: string;
|
|
6408
6468
|
/** Date/Time replication operation started in RFC 2822 format. */
|
|
6409
|
-
start_time
|
|
6469
|
+
start_time: string;
|
|
6410
6470
|
}
|
|
6411
6471
|
/** Schema for a replication result. */
|
|
6412
6472
|
interface ReplicationResult {
|
|
6413
6473
|
/** Replication history. */
|
|
6414
|
-
history
|
|
6474
|
+
history: ReplicationHistory[];
|
|
6415
6475
|
/** Replication status. */
|
|
6416
|
-
ok
|
|
6476
|
+
ok: boolean;
|
|
6417
6477
|
/** Replication protocol version. */
|
|
6418
|
-
replication_id_version
|
|
6478
|
+
replication_id_version: number;
|
|
6419
6479
|
/** Unique session ID. */
|
|
6420
|
-
session_id
|
|
6480
|
+
session_id: string;
|
|
6421
6481
|
/** Last sequence number read from source database. */
|
|
6422
|
-
source_last_seq
|
|
6482
|
+
source_last_seq: string;
|
|
6423
6483
|
}
|
|
6424
6484
|
/** Schema for list of revision information. */
|
|
6425
6485
|
interface Revisions {
|
|
6426
6486
|
/** Array of valid revision IDs, in reverse order (latest first). */
|
|
6427
|
-
ids
|
|
6487
|
+
ids: string[];
|
|
6428
6488
|
/** Prefix number for the latest revision. */
|
|
6429
|
-
start
|
|
6489
|
+
start: number;
|
|
6430
6490
|
}
|
|
6431
6491
|
/** Schema for information about missing revs and possible ancestors. */
|
|
6432
6492
|
interface RevsDiff {
|
|
@@ -6438,29 +6498,29 @@ declare namespace CloudantV1 {
|
|
|
6438
6498
|
/** Schema for a listing of replication scheduler documents. */
|
|
6439
6499
|
interface SchedulerDocsResult {
|
|
6440
6500
|
/** Number of total rows. */
|
|
6441
|
-
total_rows
|
|
6501
|
+
total_rows: number;
|
|
6442
6502
|
/** Array of replication scheduler doc objects. */
|
|
6443
|
-
docs
|
|
6503
|
+
docs: SchedulerDocument[];
|
|
6444
6504
|
}
|
|
6445
6505
|
/** Schema for a replication scheduler document. */
|
|
6446
6506
|
interface SchedulerDocument {
|
|
6447
6507
|
/** Database where replication document came from. */
|
|
6448
|
-
database
|
|
6508
|
+
database: string;
|
|
6449
6509
|
/** Replication document ID. */
|
|
6450
|
-
doc_id
|
|
6510
|
+
doc_id: string;
|
|
6451
6511
|
/** Consecutive errors count. Indicates how many times in a row this replication has crashed. Replication will
|
|
6452
6512
|
* be retried with an exponential backoff based on this number. As soon as the replication succeeds this count is
|
|
6453
6513
|
* reset to 0. To can be used to get an idea why a particular replication is not making progress.
|
|
6454
6514
|
*/
|
|
6455
|
-
error_count
|
|
6515
|
+
error_count: number;
|
|
6456
6516
|
/** Replication ID, or null if state is completed or failed. */
|
|
6457
|
-
id
|
|
6517
|
+
id: string;
|
|
6458
6518
|
/** Schema for scheduler document information. A JSON object that may contain additional information about the
|
|
6459
6519
|
* state. For error states this will contain an error field and string value.
|
|
6460
6520
|
*/
|
|
6461
|
-
info
|
|
6521
|
+
info: SchedulerInfo;
|
|
6462
6522
|
/** Timestamp of last state update. */
|
|
6463
|
-
last_updated
|
|
6523
|
+
last_updated: string;
|
|
6464
6524
|
/** Cluster node where the job is running. */
|
|
6465
6525
|
node?: string;
|
|
6466
6526
|
/** Replication source. */
|
|
@@ -6470,9 +6530,9 @@ declare namespace CloudantV1 {
|
|
|
6470
6530
|
*/
|
|
6471
6531
|
source_proxy?: string;
|
|
6472
6532
|
/** Timestamp of when the replication was started. */
|
|
6473
|
-
start_time
|
|
6533
|
+
start_time: string;
|
|
6474
6534
|
/** Schema for replication state. */
|
|
6475
|
-
state
|
|
6535
|
+
state: string;
|
|
6476
6536
|
/** Replication target. */
|
|
6477
6537
|
target?: string;
|
|
6478
6538
|
/** Address of the (http or socks5 protocol) proxy server through which replication with the target database
|
|
@@ -6506,48 +6566,48 @@ declare namespace CloudantV1 {
|
|
|
6506
6566
|
/** Schema for a replication scheduler job. */
|
|
6507
6567
|
interface SchedulerJob {
|
|
6508
6568
|
/** Replication document database. */
|
|
6509
|
-
database
|
|
6569
|
+
database: string;
|
|
6510
6570
|
/** Replication document ID. */
|
|
6511
|
-
doc_id
|
|
6571
|
+
doc_id: string;
|
|
6512
6572
|
/** Timestamped history of events as a list of objects. */
|
|
6513
|
-
history
|
|
6573
|
+
history: SchedulerJobEvent[];
|
|
6514
6574
|
/** Schema for a replication job id. */
|
|
6515
|
-
id
|
|
6575
|
+
id: string;
|
|
6516
6576
|
/** Schema for scheduler document information. A JSON object that may contain additional information about the
|
|
6517
6577
|
* state. For error states this will contain an error field and string value.
|
|
6518
6578
|
*/
|
|
6519
|
-
info
|
|
6579
|
+
info: SchedulerInfo;
|
|
6520
6580
|
/** Cluster node where the job is running. */
|
|
6521
|
-
node
|
|
6581
|
+
node: string;
|
|
6522
6582
|
/** Replication process ID. */
|
|
6523
|
-
pid
|
|
6583
|
+
pid: string;
|
|
6524
6584
|
/** Replication source. */
|
|
6525
|
-
source
|
|
6585
|
+
source: string;
|
|
6526
6586
|
/** Timestamp of when the replication was started. */
|
|
6527
|
-
start_time
|
|
6587
|
+
start_time: string;
|
|
6528
6588
|
/** Replication target. */
|
|
6529
|
-
target
|
|
6589
|
+
target: string;
|
|
6530
6590
|
/** Name of user running replication. */
|
|
6531
|
-
user
|
|
6591
|
+
user: string;
|
|
6532
6592
|
}
|
|
6533
6593
|
/** Schema for a replication scheduler job event. */
|
|
6534
6594
|
interface SchedulerJobEvent {
|
|
6535
6595
|
/** Timestamp of the event. */
|
|
6536
|
-
timestamp
|
|
6596
|
+
timestamp: string;
|
|
6537
6597
|
/** Type of the event. */
|
|
6538
|
-
type
|
|
6598
|
+
type: string;
|
|
6539
6599
|
}
|
|
6540
6600
|
/** Schema for a listing of replication scheduler jobs. */
|
|
6541
6601
|
interface SchedulerJobsResult {
|
|
6542
6602
|
/** Number of total rows. */
|
|
6543
|
-
total_rows
|
|
6603
|
+
total_rows: number;
|
|
6544
6604
|
/** Array of replication job objects. */
|
|
6545
|
-
jobs
|
|
6605
|
+
jobs: SchedulerJob[];
|
|
6546
6606
|
}
|
|
6547
6607
|
/** Schema for the output of testing search analyzer tokenization. */
|
|
6548
6608
|
interface SearchAnalyzeResult {
|
|
6549
6609
|
/** tokens. */
|
|
6550
|
-
tokens
|
|
6610
|
+
tokens: string[];
|
|
6551
6611
|
}
|
|
6552
6612
|
/** Schema for a search index definition. */
|
|
6553
6613
|
interface SearchIndexDefinition {
|
|
@@ -6598,7 +6658,7 @@ declare namespace CloudantV1 {
|
|
|
6598
6658
|
/** Schema for the result of a query search operation. */
|
|
6599
6659
|
interface SearchResult {
|
|
6600
6660
|
/** Number of total rows. */
|
|
6601
|
-
total_rows
|
|
6661
|
+
total_rows: number;
|
|
6602
6662
|
/** Opaque bookmark token used when paginating results. */
|
|
6603
6663
|
bookmark?: string;
|
|
6604
6664
|
/** Grouped search matches. */
|
|
@@ -6617,7 +6677,7 @@ declare namespace CloudantV1 {
|
|
|
6617
6677
|
/** Schema for the result of a query search operation. */
|
|
6618
6678
|
interface SearchResultProperties {
|
|
6619
6679
|
/** Number of total rows. */
|
|
6620
|
-
total_rows
|
|
6680
|
+
total_rows: number;
|
|
6621
6681
|
/** Opaque bookmark token used when paginating results. */
|
|
6622
6682
|
bookmark?: string;
|
|
6623
6683
|
/** Grouped search matches. */
|
|
@@ -6636,13 +6696,13 @@ declare namespace CloudantV1 {
|
|
|
6636
6696
|
/** Schema for a document. */
|
|
6637
6697
|
doc?: Document;
|
|
6638
6698
|
/** Schema for the fields returned by a query search operation, a map of field name to value. */
|
|
6639
|
-
fields
|
|
6699
|
+
fields: JsonObject;
|
|
6640
6700
|
/** Returns the context in which a search term was mentioned so that you can display more emphasized results to
|
|
6641
6701
|
* a user.
|
|
6642
6702
|
*/
|
|
6643
6703
|
highlights?: JsonObject;
|
|
6644
6704
|
/** Schema for a document ID. */
|
|
6645
|
-
id
|
|
6705
|
+
id: string;
|
|
6646
6706
|
}
|
|
6647
6707
|
/** Schema for a security document. */
|
|
6648
6708
|
interface Security {
|
|
@@ -6665,18 +6725,20 @@ declare namespace CloudantV1 {
|
|
|
6665
6725
|
/** Schema for information about the server instance. */
|
|
6666
6726
|
interface ServerInformation {
|
|
6667
6727
|
/** Welcome message. */
|
|
6668
|
-
couchdb
|
|
6728
|
+
couchdb: string;
|
|
6669
6729
|
/** List of enabled optional features. */
|
|
6670
|
-
features
|
|
6730
|
+
features: string[];
|
|
6671
6731
|
/** Schema for server vendor information. */
|
|
6672
|
-
vendor
|
|
6732
|
+
vendor: ServerVendor;
|
|
6673
6733
|
/** Apache CouchDB version. */
|
|
6674
|
-
version
|
|
6734
|
+
version: string;
|
|
6735
|
+
/** List of feature flags. */
|
|
6736
|
+
features_flags: string[];
|
|
6675
6737
|
}
|
|
6676
6738
|
/** Schema for server vendor information. */
|
|
6677
6739
|
interface ServerVendor {
|
|
6678
6740
|
/** Vendor name. */
|
|
6679
|
-
name
|
|
6741
|
+
name: string;
|
|
6680
6742
|
/** Vendor variant. */
|
|
6681
6743
|
variant?: string;
|
|
6682
6744
|
/** Vendor version. */
|
|
@@ -6689,40 +6751,55 @@ declare namespace CloudantV1 {
|
|
|
6689
6751
|
/** authentication_db. */
|
|
6690
6752
|
authentication_db?: string;
|
|
6691
6753
|
/** authentication_handlers. */
|
|
6692
|
-
authentication_handlers
|
|
6754
|
+
authentication_handlers: string[];
|
|
6693
6755
|
}
|
|
6694
6756
|
/** Schema for information about a session. */
|
|
6695
6757
|
interface SessionInformation {
|
|
6696
6758
|
/** ok. */
|
|
6697
|
-
ok
|
|
6759
|
+
ok: boolean;
|
|
6698
6760
|
/** Schema for session authentication information. */
|
|
6699
|
-
info
|
|
6761
|
+
info: SessionAuthentication;
|
|
6700
6762
|
/** Schema for the user context of a session. */
|
|
6701
|
-
userCtx
|
|
6763
|
+
userCtx: UserContext;
|
|
6702
6764
|
}
|
|
6703
6765
|
/** 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. */
|
|
6704
6766
|
interface ShardsInformation {
|
|
6705
6767
|
/** Mapping of shard hash value range to a list of nodes. */
|
|
6706
|
-
shards
|
|
6768
|
+
shards: JsonObject;
|
|
6769
|
+
}
|
|
6770
|
+
/** Schema for detailed information about throughput capacity with breakdown by specific throughput requests classes. */
|
|
6771
|
+
interface ThroughputInformation {
|
|
6772
|
+
/** A number of blocks of throughput units. A block consists of 100 reads/sec, 50 writes/sec, and 5 global
|
|
6773
|
+
* queries/sec of provisioned throughput capacity.
|
|
6774
|
+
*/
|
|
6775
|
+
blocks: number;
|
|
6776
|
+
/** Provisioned global queries capacity in operations per second. */
|
|
6777
|
+
query: number;
|
|
6778
|
+
/** Provisioned reads capacity in operations per second. */
|
|
6779
|
+
read: number;
|
|
6780
|
+
/** Provisioned writes capacity in operations per second. */
|
|
6781
|
+
write: number;
|
|
6707
6782
|
}
|
|
6708
6783
|
/** Schema for information about the up state of the server. */
|
|
6709
6784
|
interface UpInformation {
|
|
6785
|
+
/** seeds. */
|
|
6786
|
+
seeds: JsonObject;
|
|
6710
6787
|
/** status. */
|
|
6711
|
-
status
|
|
6788
|
+
status: string;
|
|
6712
6789
|
}
|
|
6713
6790
|
/** Schema for the user context of a session. */
|
|
6714
6791
|
interface UserContext {
|
|
6715
6792
|
/** Database name in the context of the provided operation. */
|
|
6716
6793
|
db?: string;
|
|
6717
6794
|
/** User name. */
|
|
6718
|
-
name
|
|
6795
|
+
name: string;
|
|
6719
6796
|
/** List of user roles. */
|
|
6720
|
-
roles
|
|
6797
|
+
roles: string[];
|
|
6721
6798
|
}
|
|
6722
6799
|
/** Schema for a set of uuids generated by the server. */
|
|
6723
6800
|
interface UuidsResult {
|
|
6724
6801
|
/** uuids. */
|
|
6725
|
-
uuids
|
|
6802
|
+
uuids: string[];
|
|
6726
6803
|
}
|
|
6727
6804
|
/** Schema for the results of a queries view operation. */
|
|
6728
6805
|
interface ViewQueriesResult {
|
|
@@ -6793,7 +6870,7 @@ declare namespace CloudantV1 {
|
|
|
6793
6870
|
/** Current update sequence for the database. */
|
|
6794
6871
|
update_seq?: string;
|
|
6795
6872
|
/** rows. */
|
|
6796
|
-
rows
|
|
6873
|
+
rows: ViewResultRow[];
|
|
6797
6874
|
}
|
|
6798
6875
|
/** Schema for a row of a view result. */
|
|
6799
6876
|
interface ViewResultRow {
|
|
@@ -6808,9 +6885,9 @@ declare namespace CloudantV1 {
|
|
|
6808
6885
|
/** Schema for a document ID. */
|
|
6809
6886
|
id?: string;
|
|
6810
6887
|
/** Schema for any JSON type. */
|
|
6811
|
-
key
|
|
6888
|
+
key: any;
|
|
6812
6889
|
/** Schema for any JSON type. */
|
|
6813
|
-
value
|
|
6890
|
+
value: any;
|
|
6814
6891
|
}
|
|
6815
6892
|
/** Schema for a GeoJSON geometry. */
|
|
6816
6893
|
interface GeoJsonGeometry extends GeoJsonGeometryObject {
|