@ibm-cloud/cloudant 0.9.2 → 0.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +45 -106
- package/auth/sessionTokenManager.d.ts +0 -1
- package/cloudant/features/changesResultItemStream.d.ts +0 -2
- package/cloudant/features/stream.d.ts +0 -2
- package/cloudant/v1.d.ts +354 -120
- package/cloudant/v1.js +357 -107
- package/cloudant/v1.js.map +1 -1
- package/lib/common.js +1 -2
- package/lib/common.js.map +1 -1
- package/lib/getAuthenticatorFromEnvCloudantExtension.js +1 -1
- package/lib/getAuthenticatorFromEnvCloudantExtension.js.map +1 -1
- package/package.json +14 -13
package/cloudant/v1.d.ts
CHANGED
|
@@ -13,9 +13,6 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
/// <reference types="node" />
|
|
17
|
-
/// <reference types="node" />
|
|
18
|
-
/// <reference types="node" />
|
|
19
16
|
import { IncomingHttpHeaders, OutgoingHttpHeaders } from 'http';
|
|
20
17
|
import { SDKLogger, UserOptions } from 'ibm-cloud-sdk-core';
|
|
21
18
|
import CloudantBaseService from '../lib/cloudantBaseService';
|
|
@@ -1929,9 +1926,9 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1929
1926
|
/**
|
|
1930
1927
|
* Retrieve information about all indexes.
|
|
1931
1928
|
*
|
|
1932
|
-
* When you make a GET request to `/db/_index`, you get a list of all indexes
|
|
1933
|
-
*
|
|
1934
|
-
* the `indexes` property of design documents.
|
|
1929
|
+
* When you make a GET request to `/db/_index`, you get a list of all the indexes using `"language":"query"` in the
|
|
1930
|
+
* database and the primary index. In addition to the information available through this API, the indexes are stored
|
|
1931
|
+
* in the `indexes` property of their respective design documents.
|
|
1935
1932
|
*
|
|
1936
1933
|
* @param {Object} params - The parameters to send to the service.
|
|
1937
1934
|
* @param {string} params.db - Path parameter to specify the database name.
|
|
@@ -5642,7 +5639,9 @@ declare namespace CloudantV1 {
|
|
|
5642
5639
|
/*************************
|
|
5643
5640
|
* model interfaces
|
|
5644
5641
|
************************/
|
|
5645
|
-
/**
|
|
5642
|
+
/**
|
|
5643
|
+
* Schema for information about a running task.
|
|
5644
|
+
*/
|
|
5646
5645
|
class ActiveTask {
|
|
5647
5646
|
/** The total count of attempted doc revisions fetched with `_bulk_get`. Available for `replication` type tasks. */
|
|
5648
5647
|
bulkGetAttempts?: number;
|
|
@@ -5796,7 +5795,9 @@ declare namespace CloudantV1 {
|
|
|
5796
5795
|
view?: number;
|
|
5797
5796
|
}
|
|
5798
5797
|
}
|
|
5799
|
-
/**
|
|
5798
|
+
/**
|
|
5799
|
+
* Schema for Activity Tracker events.
|
|
5800
|
+
*/
|
|
5800
5801
|
class ActivityTrackerEvents {
|
|
5801
5802
|
/** An array of event types that are being sent to IBM Cloud Activity Tracker for the IBM Cloudant instance.
|
|
5802
5803
|
* "management" is a required element of this array.
|
|
@@ -5817,7 +5818,9 @@ declare namespace CloudantV1 {
|
|
|
5817
5818
|
types: string[];
|
|
5818
5819
|
}
|
|
5819
5820
|
}
|
|
5820
|
-
/**
|
|
5821
|
+
/**
|
|
5822
|
+
* Schema for the result of an all documents queries operation.
|
|
5823
|
+
*/
|
|
5821
5824
|
class AllDocsQueriesResult {
|
|
5822
5825
|
/** An array of result objects - one for each query. Each result object contains the same fields as the response
|
|
5823
5826
|
* to a regular `/_all_docs` request.
|
|
@@ -5831,7 +5834,9 @@ declare namespace CloudantV1 {
|
|
|
5831
5834
|
results: AllDocsResult[];
|
|
5832
5835
|
}
|
|
5833
5836
|
}
|
|
5834
|
-
/**
|
|
5837
|
+
/**
|
|
5838
|
+
* Schema for an all documents query operation.
|
|
5839
|
+
*/
|
|
5835
5840
|
class AllDocsQuery {
|
|
5836
5841
|
/** Parameter to specify whether to include the encoding information in attachment stubs if the particular
|
|
5837
5842
|
* attachment is compressed.
|
|
@@ -5885,7 +5890,9 @@ declare namespace CloudantV1 {
|
|
|
5885
5890
|
start_key?: string;
|
|
5886
5891
|
}
|
|
5887
5892
|
}
|
|
5888
|
-
/**
|
|
5893
|
+
/**
|
|
5894
|
+
* Schema for the result of an all documents operation.
|
|
5895
|
+
*/
|
|
5889
5896
|
class AllDocsResult {
|
|
5890
5897
|
/** Number of total rows. */
|
|
5891
5898
|
totalRows: number;
|
|
@@ -5903,7 +5910,9 @@ declare namespace CloudantV1 {
|
|
|
5903
5910
|
update_seq?: string;
|
|
5904
5911
|
}
|
|
5905
5912
|
}
|
|
5906
|
-
/**
|
|
5913
|
+
/**
|
|
5914
|
+
* Schema for a full text search analyzer.
|
|
5915
|
+
*/
|
|
5907
5916
|
class Analyzer {
|
|
5908
5917
|
/** Schema for the name of the Apache Lucene analyzer to use for text indexing. The default value varies
|
|
5909
5918
|
* depending on the analyzer usage:
|
|
@@ -5968,7 +5977,9 @@ declare namespace CloudantV1 {
|
|
|
5968
5977
|
stopwords?: string[];
|
|
5969
5978
|
}
|
|
5970
5979
|
}
|
|
5971
|
-
/**
|
|
5980
|
+
/**
|
|
5981
|
+
* Schema for a search analyzer configuration.
|
|
5982
|
+
*/
|
|
5972
5983
|
class AnalyzerConfiguration {
|
|
5973
5984
|
/** Schema for the name of the Apache Lucene analyzer to use for text indexing. The default value varies
|
|
5974
5985
|
* depending on the analyzer usage:
|
|
@@ -6040,7 +6051,9 @@ declare namespace CloudantV1 {
|
|
|
6040
6051
|
};
|
|
6041
6052
|
}
|
|
6042
6053
|
}
|
|
6043
|
-
/**
|
|
6054
|
+
/**
|
|
6055
|
+
* Schema for api keys.
|
|
6056
|
+
*/
|
|
6044
6057
|
class ApiKeysResult {
|
|
6045
6058
|
/** ok. */
|
|
6046
6059
|
ok: boolean;
|
|
@@ -6058,7 +6071,9 @@ declare namespace CloudantV1 {
|
|
|
6058
6071
|
password: string;
|
|
6059
6072
|
}
|
|
6060
6073
|
}
|
|
6061
|
-
/**
|
|
6074
|
+
/**
|
|
6075
|
+
* Schema for an attachment.
|
|
6076
|
+
*/
|
|
6062
6077
|
class Attachment {
|
|
6063
6078
|
/** Attachment MIME type. */
|
|
6064
6079
|
contentType?: string;
|
|
@@ -6066,7 +6081,7 @@ declare namespace CloudantV1 {
|
|
|
6066
6081
|
* `attachments=true` or `atts_since`. Note that when used with a view or changes feed `include_docs` must also be
|
|
6067
6082
|
* `true`.
|
|
6068
6083
|
*/
|
|
6069
|
-
data?:
|
|
6084
|
+
data?: Buffer;
|
|
6070
6085
|
/** Content hash digest. It starts with prefix which announce hash type (e.g. `md5-`) and continues with
|
|
6071
6086
|
* Base64-encoded hash digest.
|
|
6072
6087
|
*/
|
|
@@ -6105,7 +6120,9 @@ declare namespace CloudantV1 {
|
|
|
6105
6120
|
stub?: boolean;
|
|
6106
6121
|
}
|
|
6107
6122
|
}
|
|
6108
|
-
/**
|
|
6123
|
+
/**
|
|
6124
|
+
* Schema for submitting documents for bulk modifications.
|
|
6125
|
+
*/
|
|
6109
6126
|
class BulkDocs {
|
|
6110
6127
|
/** Array of documents. */
|
|
6111
6128
|
docs: Document[];
|
|
@@ -6120,7 +6137,9 @@ declare namespace CloudantV1 {
|
|
|
6120
6137
|
new_edits?: boolean;
|
|
6121
6138
|
}
|
|
6122
6139
|
}
|
|
6123
|
-
/**
|
|
6140
|
+
/**
|
|
6141
|
+
* Schema for a document item in a bulk get query.
|
|
6142
|
+
*/
|
|
6124
6143
|
class BulkGetQueryDocument {
|
|
6125
6144
|
/** Includes attachments only since specified revisions. */
|
|
6126
6145
|
attsSince?: string[];
|
|
@@ -6138,7 +6157,9 @@ declare namespace CloudantV1 {
|
|
|
6138
6157
|
rev?: string;
|
|
6139
6158
|
}
|
|
6140
6159
|
}
|
|
6141
|
-
/**
|
|
6160
|
+
/**
|
|
6161
|
+
* Schema for the results object of a bulk get operation.
|
|
6162
|
+
*/
|
|
6142
6163
|
class BulkGetResult {
|
|
6143
6164
|
/** Results. */
|
|
6144
6165
|
results: BulkGetResultItem[];
|
|
@@ -6150,7 +6171,9 @@ declare namespace CloudantV1 {
|
|
|
6150
6171
|
results: BulkGetResultItem[];
|
|
6151
6172
|
}
|
|
6152
6173
|
}
|
|
6153
|
-
/**
|
|
6174
|
+
/**
|
|
6175
|
+
* Schema for BulkGetResult object containing a successfully retrieved document or error information.
|
|
6176
|
+
*/
|
|
6154
6177
|
class BulkGetResultDocument {
|
|
6155
6178
|
/** Schema for the result of a document modification. */
|
|
6156
6179
|
error?: DocumentResult;
|
|
@@ -6165,7 +6188,9 @@ declare namespace CloudantV1 {
|
|
|
6165
6188
|
ok?: Document.Transport;
|
|
6166
6189
|
}
|
|
6167
6190
|
}
|
|
6168
|
-
/**
|
|
6191
|
+
/**
|
|
6192
|
+
* Schema for the document revisions information from a bulk get operation.
|
|
6193
|
+
*/
|
|
6169
6194
|
class BulkGetResultItem {
|
|
6170
6195
|
/** Array of document revisions or error information. */
|
|
6171
6196
|
docs: BulkGetResultDocument[];
|
|
@@ -6180,7 +6205,9 @@ declare namespace CloudantV1 {
|
|
|
6180
6205
|
id: string;
|
|
6181
6206
|
}
|
|
6182
6207
|
}
|
|
6183
|
-
/**
|
|
6208
|
+
/**
|
|
6209
|
+
* Schema for information about the currently provisioned and target throughput capacity.
|
|
6210
|
+
*/
|
|
6184
6211
|
class CapacityThroughputInformation {
|
|
6185
6212
|
/** Detailed information about provisioned throughput capacity. */
|
|
6186
6213
|
current: CapacityThroughputInformationCurrent;
|
|
@@ -6195,7 +6222,9 @@ declare namespace CloudantV1 {
|
|
|
6195
6222
|
target?: CapacityThroughputInformationTarget.Transport;
|
|
6196
6223
|
}
|
|
6197
6224
|
}
|
|
6198
|
-
/**
|
|
6225
|
+
/**
|
|
6226
|
+
* Detailed information about provisioned throughput capacity.
|
|
6227
|
+
*/
|
|
6199
6228
|
class CapacityThroughputInformationCurrent {
|
|
6200
6229
|
/** Schema for detailed information about throughput capacity with breakdown by specific throughput requests
|
|
6201
6230
|
* classes.
|
|
@@ -6209,7 +6238,9 @@ declare namespace CloudantV1 {
|
|
|
6209
6238
|
throughput: ThroughputInformation.Transport;
|
|
6210
6239
|
}
|
|
6211
6240
|
}
|
|
6212
|
-
/**
|
|
6241
|
+
/**
|
|
6242
|
+
* Detailed information about target throughput capacity.
|
|
6243
|
+
*/
|
|
6213
6244
|
class CapacityThroughputInformationTarget {
|
|
6214
6245
|
/** Schema for detailed information about throughput capacity with breakdown by specific throughput requests
|
|
6215
6246
|
* classes.
|
|
@@ -6223,7 +6254,9 @@ declare namespace CloudantV1 {
|
|
|
6223
6254
|
throughput: ThroughputInformation.Transport;
|
|
6224
6255
|
}
|
|
6225
6256
|
}
|
|
6226
|
-
/**
|
|
6257
|
+
/**
|
|
6258
|
+
* Schema for a document leaf with single field rev.
|
|
6259
|
+
*/
|
|
6227
6260
|
class Change {
|
|
6228
6261
|
/** Schema for a document revision identifier. */
|
|
6229
6262
|
rev: string;
|
|
@@ -6235,7 +6268,9 @@ declare namespace CloudantV1 {
|
|
|
6235
6268
|
rev: string;
|
|
6236
6269
|
}
|
|
6237
6270
|
}
|
|
6238
|
-
/**
|
|
6271
|
+
/**
|
|
6272
|
+
* Schema for normal changes feed result.
|
|
6273
|
+
*/
|
|
6239
6274
|
class ChangesResult {
|
|
6240
6275
|
/** last_seq. */
|
|
6241
6276
|
lastSeq: string;
|
|
@@ -6253,7 +6288,9 @@ declare namespace CloudantV1 {
|
|
|
6253
6288
|
results: ChangesResultItem[];
|
|
6254
6289
|
}
|
|
6255
6290
|
}
|
|
6256
|
-
/**
|
|
6291
|
+
/**
|
|
6292
|
+
* Schema for an item in the changes results array.
|
|
6293
|
+
*/
|
|
6257
6294
|
class ChangesResultItem {
|
|
6258
6295
|
/** List of document's leaves with single field rev. */
|
|
6259
6296
|
changes: Change[];
|
|
@@ -6277,7 +6314,9 @@ declare namespace CloudantV1 {
|
|
|
6277
6314
|
seq: string;
|
|
6278
6315
|
}
|
|
6279
6316
|
}
|
|
6280
|
-
/**
|
|
6317
|
+
/**
|
|
6318
|
+
* Schema for size information of content.
|
|
6319
|
+
*/
|
|
6281
6320
|
class ContentInformationSizes {
|
|
6282
6321
|
/** The active size of the content, in bytes. */
|
|
6283
6322
|
active: number;
|
|
@@ -6295,7 +6334,9 @@ declare namespace CloudantV1 {
|
|
|
6295
6334
|
file: number;
|
|
6296
6335
|
}
|
|
6297
6336
|
}
|
|
6298
|
-
/**
|
|
6337
|
+
/**
|
|
6338
|
+
* Schema for information about the CORS configuration.
|
|
6339
|
+
*/
|
|
6299
6340
|
class CorsInformation {
|
|
6300
6341
|
/** Boolean value to allow authentication credentials. If set to true, browser requests must be done by using
|
|
6301
6342
|
* withCredentials = true.
|
|
@@ -6318,7 +6359,9 @@ declare namespace CloudantV1 {
|
|
|
6318
6359
|
origins: string[];
|
|
6319
6360
|
}
|
|
6320
6361
|
}
|
|
6321
|
-
/**
|
|
6362
|
+
/**
|
|
6363
|
+
* Schema for information about current consumption of a provisioned throughput capacity.
|
|
6364
|
+
*/
|
|
6322
6365
|
class CurrentThroughputInformation {
|
|
6323
6366
|
/** Detailed information about current consumption. */
|
|
6324
6367
|
throughput: CurrentThroughputInformationThroughput;
|
|
@@ -6330,7 +6373,9 @@ declare namespace CloudantV1 {
|
|
|
6330
6373
|
throughput: CurrentThroughputInformationThroughput.Transport;
|
|
6331
6374
|
}
|
|
6332
6375
|
}
|
|
6333
|
-
/**
|
|
6376
|
+
/**
|
|
6377
|
+
* Detailed information about current consumption.
|
|
6378
|
+
*/
|
|
6334
6379
|
class CurrentThroughputInformationThroughput {
|
|
6335
6380
|
/** Number of global queries conducted against the instance for a given second. */
|
|
6336
6381
|
query: number;
|
|
@@ -6348,7 +6393,9 @@ declare namespace CloudantV1 {
|
|
|
6348
6393
|
write: number;
|
|
6349
6394
|
}
|
|
6350
6395
|
}
|
|
6351
|
-
/**
|
|
6396
|
+
/**
|
|
6397
|
+
* Schema for information about a database.
|
|
6398
|
+
*/
|
|
6352
6399
|
class DatabaseInformation {
|
|
6353
6400
|
/** Schema for database cluster information. */
|
|
6354
6401
|
cluster: DatabaseInformationCluster;
|
|
@@ -6406,7 +6453,9 @@ declare namespace CloudantV1 {
|
|
|
6406
6453
|
partitioned_indexes?: PartitionedIndexesInformation.Transport;
|
|
6407
6454
|
}
|
|
6408
6455
|
}
|
|
6409
|
-
/**
|
|
6456
|
+
/**
|
|
6457
|
+
* Schema for database cluster information.
|
|
6458
|
+
*/
|
|
6410
6459
|
class DatabaseInformationCluster {
|
|
6411
6460
|
/** Schema for the number of replicas of a database in a cluster. The cluster is using the default value and it
|
|
6412
6461
|
* cannot be changed by the user.
|
|
@@ -6429,7 +6478,9 @@ declare namespace CloudantV1 {
|
|
|
6429
6478
|
w: number;
|
|
6430
6479
|
}
|
|
6431
6480
|
}
|
|
6432
|
-
/**
|
|
6481
|
+
/**
|
|
6482
|
+
* Schema for database properties.
|
|
6483
|
+
*/
|
|
6433
6484
|
class DatabaseInformationProps {
|
|
6434
6485
|
/** The value is `true` for a partitioned database. */
|
|
6435
6486
|
partitioned?: boolean;
|
|
@@ -6441,7 +6492,9 @@ declare namespace CloudantV1 {
|
|
|
6441
6492
|
partitioned?: boolean;
|
|
6442
6493
|
}
|
|
6443
6494
|
}
|
|
6444
|
-
/**
|
|
6495
|
+
/**
|
|
6496
|
+
* Schema for a database change event.
|
|
6497
|
+
*/
|
|
6445
6498
|
class DbEvent {
|
|
6446
6499
|
/** Database name. */
|
|
6447
6500
|
dbName: string;
|
|
@@ -6467,7 +6520,9 @@ declare namespace CloudantV1 {
|
|
|
6467
6520
|
type: string;
|
|
6468
6521
|
}
|
|
6469
6522
|
}
|
|
6470
|
-
/**
|
|
6523
|
+
/**
|
|
6524
|
+
* Schema for database updates.
|
|
6525
|
+
*/
|
|
6471
6526
|
class DbUpdates {
|
|
6472
6527
|
/** Last sequence number. */
|
|
6473
6528
|
lastSeq: string;
|
|
@@ -6482,7 +6537,9 @@ declare namespace CloudantV1 {
|
|
|
6482
6537
|
results: DbEvent[];
|
|
6483
6538
|
}
|
|
6484
6539
|
}
|
|
6485
|
-
/**
|
|
6540
|
+
/**
|
|
6541
|
+
* Schema for database information keyed by database name.
|
|
6542
|
+
*/
|
|
6486
6543
|
class DbsInfoResult {
|
|
6487
6544
|
/** The name of the error. */
|
|
6488
6545
|
error?: string;
|
|
@@ -6500,7 +6557,11 @@ declare namespace CloudantV1 {
|
|
|
6500
6557
|
key: string;
|
|
6501
6558
|
}
|
|
6502
6559
|
}
|
|
6503
|
-
/**
|
|
6560
|
+
/**
|
|
6561
|
+
* Schema for a design document.
|
|
6562
|
+
*
|
|
6563
|
+
* This type supports additional properties of type any.
|
|
6564
|
+
*/
|
|
6504
6565
|
class DesignDocument {
|
|
6505
6566
|
/** Schema for a map of attachment name to attachment metadata. */
|
|
6506
6567
|
_attachments?: {
|
|
@@ -6606,7 +6667,9 @@ declare namespace CloudantV1 {
|
|
|
6606
6667
|
views?: {
|
|
6607
6668
|
[key: string]: DesignDocumentViewsMapReduce;
|
|
6608
6669
|
};
|
|
6609
|
-
/**
|
|
6670
|
+
/**
|
|
6671
|
+
* DesignDocument accepts additional properties of type any.
|
|
6672
|
+
*/
|
|
6610
6673
|
[propName: string]: any;
|
|
6611
6674
|
static serialize(obj: any): DesignDocument.Transport;
|
|
6612
6675
|
static deserialize(obj: any): DesignDocument;
|
|
@@ -6635,11 +6698,13 @@ declare namespace CloudantV1 {
|
|
|
6635
6698
|
views?: {
|
|
6636
6699
|
[key: string]: DesignDocumentViewsMapReduce.Transport;
|
|
6637
6700
|
};
|
|
6638
|
-
/** DesignDocument.DesignDocument.Transport accepts additional properties. */
|
|
6701
|
+
/** DesignDocument.DesignDocument.Transport accepts additional properties of type any. */
|
|
6639
6702
|
[propName: string]: any;
|
|
6640
6703
|
}
|
|
6641
6704
|
}
|
|
6642
|
-
/**
|
|
6705
|
+
/**
|
|
6706
|
+
* Schema for information about a design document.
|
|
6707
|
+
*/
|
|
6643
6708
|
class DesignDocumentInformation {
|
|
6644
6709
|
/** name. */
|
|
6645
6710
|
name: string;
|
|
@@ -6654,7 +6719,9 @@ declare namespace CloudantV1 {
|
|
|
6654
6719
|
view_index: DesignDocumentViewIndex.Transport;
|
|
6655
6720
|
}
|
|
6656
6721
|
}
|
|
6657
|
-
/**
|
|
6722
|
+
/**
|
|
6723
|
+
* Schema for design document options.
|
|
6724
|
+
*/
|
|
6658
6725
|
class DesignDocumentOptions {
|
|
6659
6726
|
/** Whether this design document describes partitioned or global indexes. */
|
|
6660
6727
|
partitioned?: boolean;
|
|
@@ -6666,7 +6733,9 @@ declare namespace CloudantV1 {
|
|
|
6666
6733
|
partitioned?: boolean;
|
|
6667
6734
|
}
|
|
6668
6735
|
}
|
|
6669
|
-
/**
|
|
6736
|
+
/**
|
|
6737
|
+
* View index information.
|
|
6738
|
+
*/
|
|
6670
6739
|
class DesignDocumentViewIndex {
|
|
6671
6740
|
/** List of collator versions. If there are multiple entries this implies a libicu upgrade has occurred but
|
|
6672
6741
|
* compaction has not run yet.
|
|
@@ -6704,7 +6773,9 @@ declare namespace CloudantV1 {
|
|
|
6704
6773
|
waiting_commit: boolean;
|
|
6705
6774
|
}
|
|
6706
6775
|
}
|
|
6707
|
-
/**
|
|
6776
|
+
/**
|
|
6777
|
+
* Schema for view functions definition.
|
|
6778
|
+
*/
|
|
6708
6779
|
class DesignDocumentViewsMapReduce {
|
|
6709
6780
|
/** JavaScript map function as a string. */
|
|
6710
6781
|
map: string;
|
|
@@ -6719,7 +6790,9 @@ declare namespace CloudantV1 {
|
|
|
6719
6790
|
reduce?: string;
|
|
6720
6791
|
}
|
|
6721
6792
|
}
|
|
6722
|
-
/**
|
|
6793
|
+
/**
|
|
6794
|
+
* Schema for a row of document information in a DocsResult.
|
|
6795
|
+
*/
|
|
6723
6796
|
class DocsResultRow {
|
|
6724
6797
|
/** The cause of the error (if available). */
|
|
6725
6798
|
causedBy?: string;
|
|
@@ -6752,7 +6825,9 @@ declare namespace CloudantV1 {
|
|
|
6752
6825
|
value?: DocsResultRowValue.Transport;
|
|
6753
6826
|
}
|
|
6754
6827
|
}
|
|
6755
|
-
/**
|
|
6828
|
+
/**
|
|
6829
|
+
* Value of built-in `/_all_docs` style view.
|
|
6830
|
+
*/
|
|
6756
6831
|
class DocsResultRowValue {
|
|
6757
6832
|
/** If `true` then the document is deleted. Not present for undeleted documents. */
|
|
6758
6833
|
deleted?: boolean;
|
|
@@ -6767,7 +6842,11 @@ declare namespace CloudantV1 {
|
|
|
6767
6842
|
rev: string;
|
|
6768
6843
|
}
|
|
6769
6844
|
}
|
|
6770
|
-
/**
|
|
6845
|
+
/**
|
|
6846
|
+
* Schema for a document.
|
|
6847
|
+
*
|
|
6848
|
+
* This type supports additional properties of type any.
|
|
6849
|
+
*/
|
|
6771
6850
|
class Document {
|
|
6772
6851
|
/** Schema for a map of attachment name to attachment metadata. */
|
|
6773
6852
|
_attachments?: {
|
|
@@ -6789,7 +6868,9 @@ declare namespace CloudantV1 {
|
|
|
6789
6868
|
_revisions?: Revisions;
|
|
6790
6869
|
/** Schema for a list of objects with information about local revisions and their status. */
|
|
6791
6870
|
_revs_info?: DocumentRevisionStatus[];
|
|
6792
|
-
/**
|
|
6871
|
+
/**
|
|
6872
|
+
* Document accepts additional properties of type any.
|
|
6873
|
+
*/
|
|
6793
6874
|
[propName: string]: any;
|
|
6794
6875
|
static serialize(obj: any): Document.Transport;
|
|
6795
6876
|
static deserialize(obj: any): Document;
|
|
@@ -6807,11 +6888,13 @@ declare namespace CloudantV1 {
|
|
|
6807
6888
|
_rev?: string;
|
|
6808
6889
|
_revisions?: Revisions.Transport;
|
|
6809
6890
|
_revs_info?: DocumentRevisionStatus[];
|
|
6810
|
-
/** Document.Document.Transport accepts additional properties. */
|
|
6891
|
+
/** Document.Document.Transport accepts additional properties of type any. */
|
|
6811
6892
|
[propName: string]: any;
|
|
6812
6893
|
}
|
|
6813
6894
|
}
|
|
6814
|
-
/**
|
|
6895
|
+
/**
|
|
6896
|
+
* Schema for the result of a document modification.
|
|
6897
|
+
*/
|
|
6815
6898
|
class DocumentResult {
|
|
6816
6899
|
/** Schema for a document ID. */
|
|
6817
6900
|
id: string;
|
|
@@ -6841,7 +6924,9 @@ declare namespace CloudantV1 {
|
|
|
6841
6924
|
ref?: number;
|
|
6842
6925
|
}
|
|
6843
6926
|
}
|
|
6844
|
-
/**
|
|
6927
|
+
/**
|
|
6928
|
+
* Schema for information about revisions and their status.
|
|
6929
|
+
*/
|
|
6845
6930
|
class DocumentRevisionStatus {
|
|
6846
6931
|
/** Schema for a document revision identifier. */
|
|
6847
6932
|
rev: string;
|
|
@@ -6866,7 +6951,9 @@ declare namespace CloudantV1 {
|
|
|
6866
6951
|
status: string;
|
|
6867
6952
|
}
|
|
6868
6953
|
}
|
|
6869
|
-
/**
|
|
6954
|
+
/**
|
|
6955
|
+
* Schema for document shard information.
|
|
6956
|
+
*/
|
|
6870
6957
|
class DocumentShardInfo {
|
|
6871
6958
|
/** List of nodes serving a replica of the shard. */
|
|
6872
6959
|
nodes: string[];
|
|
@@ -6881,7 +6968,9 @@ declare namespace CloudantV1 {
|
|
|
6881
6968
|
range: string;
|
|
6882
6969
|
}
|
|
6883
6970
|
}
|
|
6884
|
-
/**
|
|
6971
|
+
/**
|
|
6972
|
+
* Schema for find query execution statistics.
|
|
6973
|
+
*/
|
|
6885
6974
|
class ExecutionStats {
|
|
6886
6975
|
/** Time to execute the query. */
|
|
6887
6976
|
executionTimeMs: number;
|
|
@@ -6905,7 +6994,9 @@ declare namespace CloudantV1 {
|
|
|
6905
6994
|
total_quorum_docs_examined: number;
|
|
6906
6995
|
}
|
|
6907
6996
|
}
|
|
6908
|
-
/**
|
|
6997
|
+
/**
|
|
6998
|
+
* Schema for information about the index used for a find query.
|
|
6999
|
+
*/
|
|
6909
7000
|
class ExplainResult {
|
|
6910
7001
|
/** When `true`, the query is answered using the index only and no documents are fetched. */
|
|
6911
7002
|
covering: boolean;
|
|
@@ -6979,7 +7070,9 @@ declare namespace CloudantV1 {
|
|
|
6979
7070
|
skip: number;
|
|
6980
7071
|
}
|
|
6981
7072
|
}
|
|
6982
|
-
/**
|
|
7073
|
+
/**
|
|
7074
|
+
* Arguments passed to the underlying view.
|
|
7075
|
+
*/
|
|
6983
7076
|
class ExplainResultMrArgs {
|
|
6984
7077
|
/** Schema for any JSON type. */
|
|
6985
7078
|
conflicts?: any;
|
|
@@ -7031,7 +7124,9 @@ declare namespace CloudantV1 {
|
|
|
7031
7124
|
view_type?: string;
|
|
7032
7125
|
}
|
|
7033
7126
|
}
|
|
7034
|
-
/**
|
|
7127
|
+
/**
|
|
7128
|
+
* Options used for the request.
|
|
7129
|
+
*/
|
|
7035
7130
|
class ExplainResultOpts {
|
|
7036
7131
|
/** Opaque bookmark token used when paginating results. */
|
|
7037
7132
|
bookmark: string;
|
|
@@ -7083,7 +7178,9 @@ declare namespace CloudantV1 {
|
|
|
7083
7178
|
use_index: string[];
|
|
7084
7179
|
}
|
|
7085
7180
|
}
|
|
7086
|
-
/**
|
|
7181
|
+
/**
|
|
7182
|
+
* Schema for the result of a query find operation.
|
|
7183
|
+
*/
|
|
7087
7184
|
class FindResult {
|
|
7088
7185
|
/** Opaque bookmark token used when paginating results. */
|
|
7089
7186
|
bookmark: string;
|
|
@@ -7104,7 +7201,9 @@ declare namespace CloudantV1 {
|
|
|
7104
7201
|
warning?: string;
|
|
7105
7202
|
}
|
|
7106
7203
|
}
|
|
7107
|
-
/**
|
|
7204
|
+
/**
|
|
7205
|
+
* Schema for detailed explanation of why the specific index was excluded by the query planner.
|
|
7206
|
+
*/
|
|
7108
7207
|
class IndexAnalysis {
|
|
7109
7208
|
/** When `true`, the query is answered using the index only and no documents are fetched. */
|
|
7110
7209
|
covering: boolean | null;
|
|
@@ -7125,7 +7224,9 @@ declare namespace CloudantV1 {
|
|
|
7125
7224
|
usable: boolean;
|
|
7126
7225
|
}
|
|
7127
7226
|
}
|
|
7128
|
-
/**
|
|
7227
|
+
/**
|
|
7228
|
+
* A reason for index's exclusion.
|
|
7229
|
+
*/
|
|
7129
7230
|
class IndexAnalysisExclusionReason {
|
|
7130
7231
|
/** A reason code for index's exclusion.
|
|
7131
7232
|
*
|
|
@@ -7171,7 +7272,9 @@ declare namespace CloudantV1 {
|
|
|
7171
7272
|
name?: string;
|
|
7172
7273
|
}
|
|
7173
7274
|
}
|
|
7174
|
-
/**
|
|
7275
|
+
/**
|
|
7276
|
+
* Schema for an index that was not chosen for serving the query with the reason for the exclusion.
|
|
7277
|
+
*/
|
|
7175
7278
|
class IndexCandidate {
|
|
7176
7279
|
/** Schema for detailed explanation of why the specific index was excluded by the query planner. */
|
|
7177
7280
|
analysis: IndexAnalysis;
|
|
@@ -7186,7 +7289,12 @@ declare namespace CloudantV1 {
|
|
|
7186
7289
|
index: IndexInformation.Transport;
|
|
7187
7290
|
}
|
|
7188
7291
|
}
|
|
7189
|
-
/**
|
|
7292
|
+
/**
|
|
7293
|
+
* Schema for a `json` or `text` query index definition. Indexes of type `text` have additional configuration
|
|
7294
|
+
* properties that do not apply to `json` indexes, these are:
|
|
7295
|
+
* * `default_analyzer` - the default text analyzer to use * `default_field` - whether to index the text in all
|
|
7296
|
+
* document fields and what analyzer to use for that purpose.
|
|
7297
|
+
*/
|
|
7190
7298
|
class IndexDefinition {
|
|
7191
7299
|
/** Schema for a full text search analyzer. */
|
|
7192
7300
|
defaultAnalyzer?: Analyzer;
|
|
@@ -7250,13 +7358,19 @@ declare namespace CloudantV1 {
|
|
|
7250
7358
|
partial_filter_selector?: JsonObject;
|
|
7251
7359
|
}
|
|
7252
7360
|
}
|
|
7253
|
-
/**
|
|
7361
|
+
/**
|
|
7362
|
+
* Schema for indexed fields for use with declarative JSON query.
|
|
7363
|
+
*
|
|
7364
|
+
* This type supports additional properties of type string. Schema for sort direction.
|
|
7365
|
+
*/
|
|
7254
7366
|
class IndexField {
|
|
7255
7367
|
/** Name of the field. */
|
|
7256
7368
|
name?: string;
|
|
7257
7369
|
/** The type of the named field. */
|
|
7258
7370
|
type?: IndexField.Constants.Type | string;
|
|
7259
|
-
/**
|
|
7371
|
+
/**
|
|
7372
|
+
* IndexField accepts additional properties of type string. Schema for sort direction.
|
|
7373
|
+
*/
|
|
7260
7374
|
[propName: string]: any;
|
|
7261
7375
|
static serialize(obj: any): IndexField.Transport;
|
|
7262
7376
|
static deserialize(obj: any): IndexField;
|
|
@@ -7273,11 +7387,13 @@ declare namespace CloudantV1 {
|
|
|
7273
7387
|
interface Transport {
|
|
7274
7388
|
name?: string;
|
|
7275
7389
|
type?: string;
|
|
7276
|
-
/** IndexField.IndexField.Transport accepts additional properties. */
|
|
7390
|
+
/** IndexField.IndexField.Transport accepts additional properties of type string. */
|
|
7277
7391
|
[propName: string]: any;
|
|
7278
7392
|
}
|
|
7279
7393
|
}
|
|
7280
|
-
/**
|
|
7394
|
+
/**
|
|
7395
|
+
* Schema for information about an index.
|
|
7396
|
+
*/
|
|
7281
7397
|
class IndexInformation {
|
|
7282
7398
|
/** Design document ID including a `_design/` prefix. */
|
|
7283
7399
|
ddoc: string | null;
|
|
@@ -7313,7 +7429,9 @@ declare namespace CloudantV1 {
|
|
|
7313
7429
|
type: string;
|
|
7314
7430
|
}
|
|
7315
7431
|
}
|
|
7316
|
-
/**
|
|
7432
|
+
/**
|
|
7433
|
+
* Schema for the result of creating an index.
|
|
7434
|
+
*/
|
|
7317
7435
|
class IndexResult {
|
|
7318
7436
|
/** Id of the design document the index was created in. */
|
|
7319
7437
|
id: string;
|
|
@@ -7338,7 +7456,10 @@ declare namespace CloudantV1 {
|
|
|
7338
7456
|
result: string;
|
|
7339
7457
|
}
|
|
7340
7458
|
}
|
|
7341
|
-
/**
|
|
7459
|
+
/**
|
|
7460
|
+
* Schema for the text index default field configuration. The default field is used to index the text of all fields
|
|
7461
|
+
* within a document for use with the `$text` operator.
|
|
7462
|
+
*/
|
|
7342
7463
|
class IndexTextOperatorDefaultField {
|
|
7343
7464
|
/** Schema for a full text search analyzer. */
|
|
7344
7465
|
analyzer?: Analyzer;
|
|
@@ -7353,7 +7474,9 @@ declare namespace CloudantV1 {
|
|
|
7353
7474
|
enabled?: boolean;
|
|
7354
7475
|
}
|
|
7355
7476
|
}
|
|
7356
|
-
/**
|
|
7477
|
+
/**
|
|
7478
|
+
* Schema for information about the indexes in a database.
|
|
7479
|
+
*/
|
|
7357
7480
|
class IndexesInformation {
|
|
7358
7481
|
/** Number of total rows. */
|
|
7359
7482
|
totalRows: number;
|
|
@@ -7368,7 +7491,9 @@ declare namespace CloudantV1 {
|
|
|
7368
7491
|
indexes: IndexInformation[];
|
|
7369
7492
|
}
|
|
7370
7493
|
}
|
|
7371
|
-
/**
|
|
7494
|
+
/**
|
|
7495
|
+
* Schema for information about known nodes and cluster membership.
|
|
7496
|
+
*/
|
|
7372
7497
|
class MembershipInformation {
|
|
7373
7498
|
/** List of nodes this node knows about, including the ones that are part of the cluster. */
|
|
7374
7499
|
allNodes: string[];
|
|
@@ -7383,7 +7508,9 @@ declare namespace CloudantV1 {
|
|
|
7383
7508
|
cluster_nodes: string[];
|
|
7384
7509
|
}
|
|
7385
7510
|
}
|
|
7386
|
-
/**
|
|
7511
|
+
/**
|
|
7512
|
+
* Schema for an OK result.
|
|
7513
|
+
*/
|
|
7387
7514
|
class Ok {
|
|
7388
7515
|
/** ok. */
|
|
7389
7516
|
ok?: boolean;
|
|
@@ -7395,7 +7522,9 @@ declare namespace CloudantV1 {
|
|
|
7395
7522
|
ok?: boolean;
|
|
7396
7523
|
}
|
|
7397
7524
|
}
|
|
7398
|
-
/**
|
|
7525
|
+
/**
|
|
7526
|
+
* Schema for information about a database partition.
|
|
7527
|
+
*/
|
|
7399
7528
|
class PartitionInformation {
|
|
7400
7529
|
/** The name of the database. */
|
|
7401
7530
|
dbName: string;
|
|
@@ -7422,7 +7551,9 @@ declare namespace CloudantV1 {
|
|
|
7422
7551
|
sizes: PartitionInformationSizes.Transport;
|
|
7423
7552
|
}
|
|
7424
7553
|
}
|
|
7425
|
-
/**
|
|
7554
|
+
/**
|
|
7555
|
+
* Schema for information about the partition index count and limit in a database.
|
|
7556
|
+
*/
|
|
7426
7557
|
class PartitionInformationIndexes {
|
|
7427
7558
|
/** Total count of the partitioned indexes. */
|
|
7428
7559
|
count?: number;
|
|
@@ -7440,7 +7571,9 @@ declare namespace CloudantV1 {
|
|
|
7440
7571
|
limit?: number;
|
|
7441
7572
|
}
|
|
7442
7573
|
}
|
|
7443
|
-
/**
|
|
7574
|
+
/**
|
|
7575
|
+
* The count breakdown of partitioned indexes.
|
|
7576
|
+
*/
|
|
7444
7577
|
class PartitionInformationIndexesIndexes {
|
|
7445
7578
|
/** Number of partitioned search indexes. */
|
|
7446
7579
|
search?: number;
|
|
@@ -7455,7 +7588,9 @@ declare namespace CloudantV1 {
|
|
|
7455
7588
|
view?: number;
|
|
7456
7589
|
}
|
|
7457
7590
|
}
|
|
7458
|
-
/**
|
|
7591
|
+
/**
|
|
7592
|
+
* The size of active and external data, in bytes.
|
|
7593
|
+
*/
|
|
7459
7594
|
class PartitionInformationSizes {
|
|
7460
7595
|
/** The size of live data inside the database, in bytes. */
|
|
7461
7596
|
active?: number;
|
|
@@ -7470,7 +7605,9 @@ declare namespace CloudantV1 {
|
|
|
7470
7605
|
external?: number;
|
|
7471
7606
|
}
|
|
7472
7607
|
}
|
|
7473
|
-
/**
|
|
7608
|
+
/**
|
|
7609
|
+
* Number of partitioned indexes by type.
|
|
7610
|
+
*/
|
|
7474
7611
|
class PartitionedIndexesDetailedInformation {
|
|
7475
7612
|
/** Number of partitioned indexes of search type. */
|
|
7476
7613
|
search?: number;
|
|
@@ -7485,7 +7622,9 @@ declare namespace CloudantV1 {
|
|
|
7485
7622
|
view?: number;
|
|
7486
7623
|
}
|
|
7487
7624
|
}
|
|
7488
|
-
/**
|
|
7625
|
+
/**
|
|
7626
|
+
* Information about database's partitioned indexes.
|
|
7627
|
+
*/
|
|
7489
7628
|
class PartitionedIndexesInformation {
|
|
7490
7629
|
/** Total number of partitioned indexes in the database. */
|
|
7491
7630
|
count?: number;
|
|
@@ -7503,7 +7642,9 @@ declare namespace CloudantV1 {
|
|
|
7503
7642
|
limit?: number;
|
|
7504
7643
|
}
|
|
7505
7644
|
}
|
|
7506
|
-
/**
|
|
7645
|
+
/**
|
|
7646
|
+
* Request parameters to use during target database creation.
|
|
7647
|
+
*/
|
|
7507
7648
|
class ReplicationCreateTargetParameters {
|
|
7508
7649
|
/** Schema for the number of replicas of a database in a cluster. The cluster is using the default value and it
|
|
7509
7650
|
* cannot be changed by the user.
|
|
@@ -7523,7 +7664,9 @@ declare namespace CloudantV1 {
|
|
|
7523
7664
|
q?: number;
|
|
7524
7665
|
}
|
|
7525
7666
|
}
|
|
7526
|
-
/**
|
|
7667
|
+
/**
|
|
7668
|
+
* Schema for a replication source or target database.
|
|
7669
|
+
*/
|
|
7527
7670
|
class ReplicationDatabase {
|
|
7528
7671
|
/** Schema for replication source or target database authentication. */
|
|
7529
7672
|
auth?: ReplicationDatabaseAuth;
|
|
@@ -7541,7 +7684,9 @@ declare namespace CloudantV1 {
|
|
|
7541
7684
|
url: string;
|
|
7542
7685
|
}
|
|
7543
7686
|
}
|
|
7544
|
-
/**
|
|
7687
|
+
/**
|
|
7688
|
+
* Schema for replication source or target database authentication.
|
|
7689
|
+
*/
|
|
7545
7690
|
class ReplicationDatabaseAuth {
|
|
7546
7691
|
/** Schema for basic authentication of replication source or target database. */
|
|
7547
7692
|
basic?: ReplicationDatabaseAuthBasic;
|
|
@@ -7556,7 +7701,9 @@ declare namespace CloudantV1 {
|
|
|
7556
7701
|
iam?: ReplicationDatabaseAuthIam.Transport;
|
|
7557
7702
|
}
|
|
7558
7703
|
}
|
|
7559
|
-
/**
|
|
7704
|
+
/**
|
|
7705
|
+
* Schema for basic authentication of replication source or target database.
|
|
7706
|
+
*/
|
|
7560
7707
|
class ReplicationDatabaseAuthBasic {
|
|
7561
7708
|
/** The password associated with the username. */
|
|
7562
7709
|
password: string;
|
|
@@ -7571,7 +7718,9 @@ declare namespace CloudantV1 {
|
|
|
7571
7718
|
username: string;
|
|
7572
7719
|
}
|
|
7573
7720
|
}
|
|
7574
|
-
/**
|
|
7721
|
+
/**
|
|
7722
|
+
* Schema for an IAM API key for replication database authentication.
|
|
7723
|
+
*/
|
|
7575
7724
|
class ReplicationDatabaseAuthIam {
|
|
7576
7725
|
/** IAM API key. */
|
|
7577
7726
|
apiKey: string;
|
|
@@ -7583,7 +7732,11 @@ declare namespace CloudantV1 {
|
|
|
7583
7732
|
api_key: string;
|
|
7584
7733
|
}
|
|
7585
7734
|
}
|
|
7586
|
-
/**
|
|
7735
|
+
/**
|
|
7736
|
+
* Schema for a replication document. Note that `selector`, `doc_ids`, and `filter` are incompatible with each other.
|
|
7737
|
+
*
|
|
7738
|
+
* This type supports additional properties of type any.
|
|
7739
|
+
*/
|
|
7587
7740
|
class ReplicationDocument {
|
|
7588
7741
|
/** Schema for a map of attachment name to attachment metadata. */
|
|
7589
7742
|
_attachments?: {
|
|
@@ -7628,6 +7781,10 @@ declare namespace CloudantV1 {
|
|
|
7628
7781
|
filter?: string;
|
|
7629
7782
|
/** Maximum number of HTTP connections per replication. */
|
|
7630
7783
|
httpConnections?: number;
|
|
7784
|
+
/** The replication document owner. The server sets an appropriate value if the field is unset when writing a
|
|
7785
|
+
* replication document. Only administrators can modify the value to an owner other than themselves.
|
|
7786
|
+
*/
|
|
7787
|
+
owner?: string;
|
|
7631
7788
|
/** Schema for a map of string key value pairs, such as query parameters. */
|
|
7632
7789
|
queryParams?: JsonObject;
|
|
7633
7790
|
/** Number of times a replication request is retried. The requests are retried with a doubling exponential
|
|
@@ -7708,7 +7865,9 @@ declare namespace CloudantV1 {
|
|
|
7708
7865
|
* number can improve throughput.
|
|
7709
7866
|
*/
|
|
7710
7867
|
workerProcesses?: number;
|
|
7711
|
-
/**
|
|
7868
|
+
/**
|
|
7869
|
+
* ReplicationDocument accepts additional properties of type any.
|
|
7870
|
+
*/
|
|
7712
7871
|
[propName: string]: any;
|
|
7713
7872
|
static serialize(obj: any): ReplicationDocument.Transport;
|
|
7714
7873
|
static deserialize(obj: any): ReplicationDocument;
|
|
@@ -7735,6 +7894,7 @@ declare namespace CloudantV1 {
|
|
|
7735
7894
|
doc_ids?: string[];
|
|
7736
7895
|
filter?: string;
|
|
7737
7896
|
http_connections?: number;
|
|
7897
|
+
owner?: string;
|
|
7738
7898
|
query_params?: JsonObject;
|
|
7739
7899
|
retries_per_request?: number;
|
|
7740
7900
|
selector?: JsonObject;
|
|
@@ -7750,11 +7910,13 @@ declare namespace CloudantV1 {
|
|
|
7750
7910
|
winning_revs_only?: boolean;
|
|
7751
7911
|
worker_batch_size?: number;
|
|
7752
7912
|
worker_processes?: number;
|
|
7753
|
-
/** ReplicationDocument.ReplicationDocument.Transport accepts additional properties. */
|
|
7913
|
+
/** ReplicationDocument.ReplicationDocument.Transport accepts additional properties of type any. */
|
|
7754
7914
|
[propName: string]: any;
|
|
7755
7915
|
}
|
|
7756
7916
|
}
|
|
7757
|
-
/**
|
|
7917
|
+
/**
|
|
7918
|
+
* Schema for list of revision information.
|
|
7919
|
+
*/
|
|
7758
7920
|
class Revisions {
|
|
7759
7921
|
/** Array of valid revision IDs, in reverse order (latest first). */
|
|
7760
7922
|
ids: string[];
|
|
@@ -7769,7 +7931,9 @@ declare namespace CloudantV1 {
|
|
|
7769
7931
|
start: number;
|
|
7770
7932
|
}
|
|
7771
7933
|
}
|
|
7772
|
-
/**
|
|
7934
|
+
/**
|
|
7935
|
+
* Schema for information about missing revs and possible ancestors.
|
|
7936
|
+
*/
|
|
7773
7937
|
class RevsDiff {
|
|
7774
7938
|
/** List of missing revisions. */
|
|
7775
7939
|
missing?: string[];
|
|
@@ -7784,7 +7948,9 @@ declare namespace CloudantV1 {
|
|
|
7784
7948
|
possible_ancestors?: string[];
|
|
7785
7949
|
}
|
|
7786
7950
|
}
|
|
7787
|
-
/**
|
|
7951
|
+
/**
|
|
7952
|
+
* Schema for a listing of replication scheduler documents.
|
|
7953
|
+
*/
|
|
7788
7954
|
class SchedulerDocsResult {
|
|
7789
7955
|
/** Number of total rows. */
|
|
7790
7956
|
totalRows: number;
|
|
@@ -7799,7 +7965,9 @@ declare namespace CloudantV1 {
|
|
|
7799
7965
|
docs: SchedulerDocument[];
|
|
7800
7966
|
}
|
|
7801
7967
|
}
|
|
7802
|
-
/**
|
|
7968
|
+
/**
|
|
7969
|
+
* Schema for a replication scheduler document.
|
|
7970
|
+
*/
|
|
7803
7971
|
class SchedulerDocument {
|
|
7804
7972
|
/** Database where replication document came from. */
|
|
7805
7973
|
database: string;
|
|
@@ -7870,7 +8038,10 @@ declare namespace CloudantV1 {
|
|
|
7870
8038
|
target_proxy?: string;
|
|
7871
8039
|
}
|
|
7872
8040
|
}
|
|
7873
|
-
/**
|
|
8041
|
+
/**
|
|
8042
|
+
* Schema for scheduler document information. A JSON object that may contain additional information about the state.
|
|
8043
|
+
* For error states this will contain an error field and string value.
|
|
8044
|
+
*/
|
|
7874
8045
|
class SchedulerInfo {
|
|
7875
8046
|
/** The count of changes not yet replicated. */
|
|
7876
8047
|
changesPending?: number | null;
|
|
@@ -7909,7 +8080,9 @@ declare namespace CloudantV1 {
|
|
|
7909
8080
|
through_seq?: string;
|
|
7910
8081
|
}
|
|
7911
8082
|
}
|
|
7912
|
-
/**
|
|
8083
|
+
/**
|
|
8084
|
+
* Schema for a replication scheduler job.
|
|
8085
|
+
*/
|
|
7913
8086
|
class SchedulerJob {
|
|
7914
8087
|
/** Replication document database. */
|
|
7915
8088
|
database: string;
|
|
@@ -7953,7 +8126,9 @@ declare namespace CloudantV1 {
|
|
|
7953
8126
|
user: string;
|
|
7954
8127
|
}
|
|
7955
8128
|
}
|
|
7956
|
-
/**
|
|
8129
|
+
/**
|
|
8130
|
+
* Schema for a replication scheduler job event.
|
|
8131
|
+
*/
|
|
7957
8132
|
class SchedulerJobEvent {
|
|
7958
8133
|
/** Reason for current state of event. */
|
|
7959
8134
|
reason?: string;
|
|
@@ -7971,7 +8146,9 @@ declare namespace CloudantV1 {
|
|
|
7971
8146
|
type: string;
|
|
7972
8147
|
}
|
|
7973
8148
|
}
|
|
7974
|
-
/**
|
|
8149
|
+
/**
|
|
8150
|
+
* Schema for a listing of replication scheduler jobs.
|
|
8151
|
+
*/
|
|
7975
8152
|
class SchedulerJobsResult {
|
|
7976
8153
|
/** Number of total rows. */
|
|
7977
8154
|
totalRows: number;
|
|
@@ -7986,7 +8163,9 @@ declare namespace CloudantV1 {
|
|
|
7986
8163
|
jobs: SchedulerJob[];
|
|
7987
8164
|
}
|
|
7988
8165
|
}
|
|
7989
|
-
/**
|
|
8166
|
+
/**
|
|
8167
|
+
* Schema for the output of testing search analyzer tokenization.
|
|
8168
|
+
*/
|
|
7990
8169
|
class SearchAnalyzeResult {
|
|
7991
8170
|
/** tokens. */
|
|
7992
8171
|
tokens: string[];
|
|
@@ -7998,7 +8177,9 @@ declare namespace CloudantV1 {
|
|
|
7998
8177
|
tokens: string[];
|
|
7999
8178
|
}
|
|
8000
8179
|
}
|
|
8001
|
-
/**
|
|
8180
|
+
/**
|
|
8181
|
+
* Schema for a search index definition.
|
|
8182
|
+
*/
|
|
8002
8183
|
class SearchIndexDefinition {
|
|
8003
8184
|
/** Schema for a search analyzer configuration. */
|
|
8004
8185
|
analyzer?: AnalyzerConfiguration;
|
|
@@ -8032,7 +8213,9 @@ declare namespace CloudantV1 {
|
|
|
8032
8213
|
index: string;
|
|
8033
8214
|
}
|
|
8034
8215
|
}
|
|
8035
|
-
/**
|
|
8216
|
+
/**
|
|
8217
|
+
* Schema for metadata information about a search index.
|
|
8218
|
+
*/
|
|
8036
8219
|
class SearchIndexInfo {
|
|
8037
8220
|
/** The committed sequence identifier. */
|
|
8038
8221
|
committedSeq: number;
|
|
@@ -8059,7 +8242,9 @@ declare namespace CloudantV1 {
|
|
|
8059
8242
|
signature: string;
|
|
8060
8243
|
}
|
|
8061
8244
|
}
|
|
8062
|
-
/**
|
|
8245
|
+
/**
|
|
8246
|
+
* Schema for search index information.
|
|
8247
|
+
*/
|
|
8063
8248
|
class SearchInfoResult {
|
|
8064
8249
|
/** The name of the search index prefixed by the design document ID where the index is stored. */
|
|
8065
8250
|
name: string;
|
|
@@ -8074,7 +8259,9 @@ declare namespace CloudantV1 {
|
|
|
8074
8259
|
search_index: SearchIndexInfo.Transport;
|
|
8075
8260
|
}
|
|
8076
8261
|
}
|
|
8077
|
-
/**
|
|
8262
|
+
/**
|
|
8263
|
+
* Schema for the result of a query search operation.
|
|
8264
|
+
*/
|
|
8078
8265
|
class SearchResult {
|
|
8079
8266
|
/** Number of total rows. */
|
|
8080
8267
|
totalRows: number;
|
|
@@ -8114,7 +8301,9 @@ declare namespace CloudantV1 {
|
|
|
8114
8301
|
groups?: SearchResultProperties[];
|
|
8115
8302
|
}
|
|
8116
8303
|
}
|
|
8117
|
-
/**
|
|
8304
|
+
/**
|
|
8305
|
+
* Schema for the result of a query search operation.
|
|
8306
|
+
*/
|
|
8118
8307
|
class SearchResultProperties {
|
|
8119
8308
|
/** Number of total rows. */
|
|
8120
8309
|
totalRows: number;
|
|
@@ -8151,7 +8340,9 @@ declare namespace CloudantV1 {
|
|
|
8151
8340
|
rows?: SearchResultRow[];
|
|
8152
8341
|
}
|
|
8153
8342
|
}
|
|
8154
|
-
/**
|
|
8343
|
+
/**
|
|
8344
|
+
* Schema for a row of the result of a query search operation.
|
|
8345
|
+
*/
|
|
8155
8346
|
class SearchResultRow {
|
|
8156
8347
|
/** Schema for a document. */
|
|
8157
8348
|
doc?: Document;
|
|
@@ -8174,7 +8365,9 @@ declare namespace CloudantV1 {
|
|
|
8174
8365
|
id: string;
|
|
8175
8366
|
}
|
|
8176
8367
|
}
|
|
8177
|
-
/**
|
|
8368
|
+
/**
|
|
8369
|
+
* Schema for a security document.
|
|
8370
|
+
*/
|
|
8178
8371
|
class Security {
|
|
8179
8372
|
/** Schema for names and roles to map to a database permission. */
|
|
8180
8373
|
admins?: SecurityObject;
|
|
@@ -8195,7 +8388,9 @@ declare namespace CloudantV1 {
|
|
|
8195
8388
|
couchdb_auth_only?: boolean;
|
|
8196
8389
|
}
|
|
8197
8390
|
}
|
|
8198
|
-
/**
|
|
8391
|
+
/**
|
|
8392
|
+
* Schema for names and roles to map to a database permission.
|
|
8393
|
+
*/
|
|
8199
8394
|
class SecurityObject {
|
|
8200
8395
|
/** List of usernames. */
|
|
8201
8396
|
names?: string[];
|
|
@@ -8210,7 +8405,9 @@ declare namespace CloudantV1 {
|
|
|
8210
8405
|
roles?: string[];
|
|
8211
8406
|
}
|
|
8212
8407
|
}
|
|
8213
|
-
/**
|
|
8408
|
+
/**
|
|
8409
|
+
* Schema for extra information on the selector.
|
|
8410
|
+
*/
|
|
8214
8411
|
class SelectorHint {
|
|
8215
8412
|
/** A list of fields in the given selector that can be used to restrict the query. */
|
|
8216
8413
|
indexableFields: string[];
|
|
@@ -8235,7 +8432,9 @@ declare namespace CloudantV1 {
|
|
|
8235
8432
|
unindexable_fields: string[];
|
|
8236
8433
|
}
|
|
8237
8434
|
}
|
|
8238
|
-
/**
|
|
8435
|
+
/**
|
|
8436
|
+
* Schema for information about the server instance.
|
|
8437
|
+
*/
|
|
8239
8438
|
class ServerInformation {
|
|
8240
8439
|
/** Welcome message. */
|
|
8241
8440
|
couchdb: string;
|
|
@@ -8259,25 +8458,37 @@ declare namespace CloudantV1 {
|
|
|
8259
8458
|
features_flags: string[];
|
|
8260
8459
|
}
|
|
8261
8460
|
}
|
|
8262
|
-
/**
|
|
8461
|
+
/**
|
|
8462
|
+
* Schema for server vendor information.
|
|
8463
|
+
*
|
|
8464
|
+
* This type supports additional properties of type string.
|
|
8465
|
+
*/
|
|
8263
8466
|
class ServerVendor {
|
|
8264
8467
|
/** Vendor name. */
|
|
8265
8468
|
name: string;
|
|
8266
8469
|
/** Vendor variant. */
|
|
8267
|
-
variant
|
|
8470
|
+
variant: string;
|
|
8268
8471
|
/** Vendor version. */
|
|
8269
|
-
version
|
|
8472
|
+
version: string;
|
|
8473
|
+
/**
|
|
8474
|
+
* ServerVendor accepts additional properties of type string.
|
|
8475
|
+
*/
|
|
8476
|
+
[propName: string]: any;
|
|
8270
8477
|
static serialize(obj: any): ServerVendor.Transport;
|
|
8271
8478
|
static deserialize(obj: any): ServerVendor;
|
|
8272
8479
|
}
|
|
8273
8480
|
namespace ServerVendor {
|
|
8274
8481
|
interface Transport {
|
|
8275
8482
|
name: string;
|
|
8276
|
-
variant
|
|
8277
|
-
version
|
|
8483
|
+
variant: string;
|
|
8484
|
+
version: string;
|
|
8485
|
+
/** ServerVendor.ServerVendor.Transport accepts additional properties of type string. */
|
|
8486
|
+
[propName: string]: any;
|
|
8278
8487
|
}
|
|
8279
8488
|
}
|
|
8280
|
-
/**
|
|
8489
|
+
/**
|
|
8490
|
+
* Schema for session authentication information.
|
|
8491
|
+
*/
|
|
8281
8492
|
class SessionAuthentication {
|
|
8282
8493
|
/** authenticated. */
|
|
8283
8494
|
authenticated?: string;
|
|
@@ -8295,7 +8506,9 @@ declare namespace CloudantV1 {
|
|
|
8295
8506
|
authentication_handlers: string[];
|
|
8296
8507
|
}
|
|
8297
8508
|
}
|
|
8298
|
-
/**
|
|
8509
|
+
/**
|
|
8510
|
+
* Schema for information about a session.
|
|
8511
|
+
*/
|
|
8299
8512
|
class SessionInformation {
|
|
8300
8513
|
/** ok. */
|
|
8301
8514
|
ok: boolean;
|
|
@@ -8313,7 +8526,10 @@ declare namespace CloudantV1 {
|
|
|
8313
8526
|
userCtx: UserContext.Transport;
|
|
8314
8527
|
}
|
|
8315
8528
|
}
|
|
8316
|
-
/**
|
|
8529
|
+
/**
|
|
8530
|
+
* Schema for a shards object that maps the hash value range for each shard to the array of nodes that contain a copy
|
|
8531
|
+
* of that shard.
|
|
8532
|
+
*/
|
|
8317
8533
|
class ShardsInformation {
|
|
8318
8534
|
/** Mapping of shard hash value range to a list of nodes. */
|
|
8319
8535
|
shards: JsonObject;
|
|
@@ -8325,7 +8541,9 @@ declare namespace CloudantV1 {
|
|
|
8325
8541
|
shards: JsonObject;
|
|
8326
8542
|
}
|
|
8327
8543
|
}
|
|
8328
|
-
/**
|
|
8544
|
+
/**
|
|
8545
|
+
* Schema for detailed information about throughput capacity with breakdown by specific throughput requests classes.
|
|
8546
|
+
*/
|
|
8329
8547
|
class ThroughputInformation {
|
|
8330
8548
|
/** A number of blocks of throughput units. A block consists of 100 reads/sec, 50 writes/sec, and 5 global
|
|
8331
8549
|
* queries/sec of provisioned throughput capacity.
|
|
@@ -8348,7 +8566,9 @@ declare namespace CloudantV1 {
|
|
|
8348
8566
|
write: number;
|
|
8349
8567
|
}
|
|
8350
8568
|
}
|
|
8351
|
-
/**
|
|
8569
|
+
/**
|
|
8570
|
+
* Schema for information about the up state of the server.
|
|
8571
|
+
*/
|
|
8352
8572
|
class UpInformation {
|
|
8353
8573
|
/** seeds. */
|
|
8354
8574
|
seeds?: JsonObject;
|
|
@@ -8371,7 +8591,9 @@ declare namespace CloudantV1 {
|
|
|
8371
8591
|
status: string;
|
|
8372
8592
|
}
|
|
8373
8593
|
}
|
|
8374
|
-
/**
|
|
8594
|
+
/**
|
|
8595
|
+
* Schema for an ability to tell if view is up-to-date without querying it.
|
|
8596
|
+
*/
|
|
8375
8597
|
class UpdatesPending {
|
|
8376
8598
|
/** Sum of shard copies with the least amount of work to do. */
|
|
8377
8599
|
minimum: number;
|
|
@@ -8391,7 +8613,9 @@ declare namespace CloudantV1 {
|
|
|
8391
8613
|
total: number;
|
|
8392
8614
|
}
|
|
8393
8615
|
}
|
|
8394
|
-
/**
|
|
8616
|
+
/**
|
|
8617
|
+
* Schema for the user context of a session.
|
|
8618
|
+
*/
|
|
8395
8619
|
class UserContext {
|
|
8396
8620
|
/** Database name in the context of the provided operation. */
|
|
8397
8621
|
db?: string;
|
|
@@ -8422,7 +8646,9 @@ declare namespace CloudantV1 {
|
|
|
8422
8646
|
roles: string[];
|
|
8423
8647
|
}
|
|
8424
8648
|
}
|
|
8425
|
-
/**
|
|
8649
|
+
/**
|
|
8650
|
+
* Schema for a set of uuids generated by the server.
|
|
8651
|
+
*/
|
|
8426
8652
|
class UuidsResult {
|
|
8427
8653
|
/** uuids. */
|
|
8428
8654
|
uuids: string[];
|
|
@@ -8434,7 +8660,9 @@ declare namespace CloudantV1 {
|
|
|
8434
8660
|
uuids: string[];
|
|
8435
8661
|
}
|
|
8436
8662
|
}
|
|
8437
|
-
/**
|
|
8663
|
+
/**
|
|
8664
|
+
* Schema for the results of a queries view operation.
|
|
8665
|
+
*/
|
|
8438
8666
|
class ViewQueriesResult {
|
|
8439
8667
|
/** An array of result objects - one for each query. Each result object contains the same fields as the response
|
|
8440
8668
|
* to a regular view request.
|
|
@@ -8448,7 +8676,9 @@ declare namespace CloudantV1 {
|
|
|
8448
8676
|
results: ViewResult[];
|
|
8449
8677
|
}
|
|
8450
8678
|
}
|
|
8451
|
-
/**
|
|
8679
|
+
/**
|
|
8680
|
+
* Schema for a query view operation.
|
|
8681
|
+
*/
|
|
8452
8682
|
class ViewQuery {
|
|
8453
8683
|
/** Parameter to specify whether to include the encoding information in attachment stubs if the particular
|
|
8454
8684
|
* attachment is compressed.
|
|
@@ -8552,7 +8782,9 @@ declare namespace CloudantV1 {
|
|
|
8552
8782
|
update?: string;
|
|
8553
8783
|
}
|
|
8554
8784
|
}
|
|
8555
|
-
/**
|
|
8785
|
+
/**
|
|
8786
|
+
* Schema for the result of a query view operation.
|
|
8787
|
+
*/
|
|
8556
8788
|
class ViewResult {
|
|
8557
8789
|
/** Number of total rows. */
|
|
8558
8790
|
totalRows?: number;
|
|
@@ -8570,7 +8802,9 @@ declare namespace CloudantV1 {
|
|
|
8570
8802
|
rows: ViewResultRow[];
|
|
8571
8803
|
}
|
|
8572
8804
|
}
|
|
8573
|
-
/**
|
|
8805
|
+
/**
|
|
8806
|
+
* Schema for a row of a view result.
|
|
8807
|
+
*/
|
|
8574
8808
|
class ViewResultRow {
|
|
8575
8809
|
/** The cause of the error (if available). */
|
|
8576
8810
|
causedBy?: string;
|