@ibm-cloud/cloudant 0.10.0 → 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 +7 -7
- package/cloudant/v1.d.ts +339 -111
- package/cloudant/v1.js +319 -101
- package/cloudant/v1.js.map +1 -1
- package/package.json +12 -12
package/cloudant/v1.d.ts
CHANGED
|
@@ -5639,7 +5639,9 @@ declare namespace CloudantV1 {
|
|
|
5639
5639
|
/*************************
|
|
5640
5640
|
* model interfaces
|
|
5641
5641
|
************************/
|
|
5642
|
-
/**
|
|
5642
|
+
/**
|
|
5643
|
+
* Schema for information about a running task.
|
|
5644
|
+
*/
|
|
5643
5645
|
class ActiveTask {
|
|
5644
5646
|
/** The total count of attempted doc revisions fetched with `_bulk_get`. Available for `replication` type tasks. */
|
|
5645
5647
|
bulkGetAttempts?: number;
|
|
@@ -5793,7 +5795,9 @@ declare namespace CloudantV1 {
|
|
|
5793
5795
|
view?: number;
|
|
5794
5796
|
}
|
|
5795
5797
|
}
|
|
5796
|
-
/**
|
|
5798
|
+
/**
|
|
5799
|
+
* Schema for Activity Tracker events.
|
|
5800
|
+
*/
|
|
5797
5801
|
class ActivityTrackerEvents {
|
|
5798
5802
|
/** An array of event types that are being sent to IBM Cloud Activity Tracker for the IBM Cloudant instance.
|
|
5799
5803
|
* "management" is a required element of this array.
|
|
@@ -5814,7 +5818,9 @@ declare namespace CloudantV1 {
|
|
|
5814
5818
|
types: string[];
|
|
5815
5819
|
}
|
|
5816
5820
|
}
|
|
5817
|
-
/**
|
|
5821
|
+
/**
|
|
5822
|
+
* Schema for the result of an all documents queries operation.
|
|
5823
|
+
*/
|
|
5818
5824
|
class AllDocsQueriesResult {
|
|
5819
5825
|
/** An array of result objects - one for each query. Each result object contains the same fields as the response
|
|
5820
5826
|
* to a regular `/_all_docs` request.
|
|
@@ -5828,7 +5834,9 @@ declare namespace CloudantV1 {
|
|
|
5828
5834
|
results: AllDocsResult[];
|
|
5829
5835
|
}
|
|
5830
5836
|
}
|
|
5831
|
-
/**
|
|
5837
|
+
/**
|
|
5838
|
+
* Schema for an all documents query operation.
|
|
5839
|
+
*/
|
|
5832
5840
|
class AllDocsQuery {
|
|
5833
5841
|
/** Parameter to specify whether to include the encoding information in attachment stubs if the particular
|
|
5834
5842
|
* attachment is compressed.
|
|
@@ -5882,7 +5890,9 @@ declare namespace CloudantV1 {
|
|
|
5882
5890
|
start_key?: string;
|
|
5883
5891
|
}
|
|
5884
5892
|
}
|
|
5885
|
-
/**
|
|
5893
|
+
/**
|
|
5894
|
+
* Schema for the result of an all documents operation.
|
|
5895
|
+
*/
|
|
5886
5896
|
class AllDocsResult {
|
|
5887
5897
|
/** Number of total rows. */
|
|
5888
5898
|
totalRows: number;
|
|
@@ -5900,7 +5910,9 @@ declare namespace CloudantV1 {
|
|
|
5900
5910
|
update_seq?: string;
|
|
5901
5911
|
}
|
|
5902
5912
|
}
|
|
5903
|
-
/**
|
|
5913
|
+
/**
|
|
5914
|
+
* Schema for a full text search analyzer.
|
|
5915
|
+
*/
|
|
5904
5916
|
class Analyzer {
|
|
5905
5917
|
/** Schema for the name of the Apache Lucene analyzer to use for text indexing. The default value varies
|
|
5906
5918
|
* depending on the analyzer usage:
|
|
@@ -5965,7 +5977,9 @@ declare namespace CloudantV1 {
|
|
|
5965
5977
|
stopwords?: string[];
|
|
5966
5978
|
}
|
|
5967
5979
|
}
|
|
5968
|
-
/**
|
|
5980
|
+
/**
|
|
5981
|
+
* Schema for a search analyzer configuration.
|
|
5982
|
+
*/
|
|
5969
5983
|
class AnalyzerConfiguration {
|
|
5970
5984
|
/** Schema for the name of the Apache Lucene analyzer to use for text indexing. The default value varies
|
|
5971
5985
|
* depending on the analyzer usage:
|
|
@@ -6037,7 +6051,9 @@ declare namespace CloudantV1 {
|
|
|
6037
6051
|
};
|
|
6038
6052
|
}
|
|
6039
6053
|
}
|
|
6040
|
-
/**
|
|
6054
|
+
/**
|
|
6055
|
+
* Schema for api keys.
|
|
6056
|
+
*/
|
|
6041
6057
|
class ApiKeysResult {
|
|
6042
6058
|
/** ok. */
|
|
6043
6059
|
ok: boolean;
|
|
@@ -6055,7 +6071,9 @@ declare namespace CloudantV1 {
|
|
|
6055
6071
|
password: string;
|
|
6056
6072
|
}
|
|
6057
6073
|
}
|
|
6058
|
-
/**
|
|
6074
|
+
/**
|
|
6075
|
+
* Schema for an attachment.
|
|
6076
|
+
*/
|
|
6059
6077
|
class Attachment {
|
|
6060
6078
|
/** Attachment MIME type. */
|
|
6061
6079
|
contentType?: string;
|
|
@@ -6102,7 +6120,9 @@ declare namespace CloudantV1 {
|
|
|
6102
6120
|
stub?: boolean;
|
|
6103
6121
|
}
|
|
6104
6122
|
}
|
|
6105
|
-
/**
|
|
6123
|
+
/**
|
|
6124
|
+
* Schema for submitting documents for bulk modifications.
|
|
6125
|
+
*/
|
|
6106
6126
|
class BulkDocs {
|
|
6107
6127
|
/** Array of documents. */
|
|
6108
6128
|
docs: Document[];
|
|
@@ -6117,7 +6137,9 @@ declare namespace CloudantV1 {
|
|
|
6117
6137
|
new_edits?: boolean;
|
|
6118
6138
|
}
|
|
6119
6139
|
}
|
|
6120
|
-
/**
|
|
6140
|
+
/**
|
|
6141
|
+
* Schema for a document item in a bulk get query.
|
|
6142
|
+
*/
|
|
6121
6143
|
class BulkGetQueryDocument {
|
|
6122
6144
|
/** Includes attachments only since specified revisions. */
|
|
6123
6145
|
attsSince?: string[];
|
|
@@ -6135,7 +6157,9 @@ declare namespace CloudantV1 {
|
|
|
6135
6157
|
rev?: string;
|
|
6136
6158
|
}
|
|
6137
6159
|
}
|
|
6138
|
-
/**
|
|
6160
|
+
/**
|
|
6161
|
+
* Schema for the results object of a bulk get operation.
|
|
6162
|
+
*/
|
|
6139
6163
|
class BulkGetResult {
|
|
6140
6164
|
/** Results. */
|
|
6141
6165
|
results: BulkGetResultItem[];
|
|
@@ -6147,7 +6171,9 @@ declare namespace CloudantV1 {
|
|
|
6147
6171
|
results: BulkGetResultItem[];
|
|
6148
6172
|
}
|
|
6149
6173
|
}
|
|
6150
|
-
/**
|
|
6174
|
+
/**
|
|
6175
|
+
* Schema for BulkGetResult object containing a successfully retrieved document or error information.
|
|
6176
|
+
*/
|
|
6151
6177
|
class BulkGetResultDocument {
|
|
6152
6178
|
/** Schema for the result of a document modification. */
|
|
6153
6179
|
error?: DocumentResult;
|
|
@@ -6162,7 +6188,9 @@ declare namespace CloudantV1 {
|
|
|
6162
6188
|
ok?: Document.Transport;
|
|
6163
6189
|
}
|
|
6164
6190
|
}
|
|
6165
|
-
/**
|
|
6191
|
+
/**
|
|
6192
|
+
* Schema for the document revisions information from a bulk get operation.
|
|
6193
|
+
*/
|
|
6166
6194
|
class BulkGetResultItem {
|
|
6167
6195
|
/** Array of document revisions or error information. */
|
|
6168
6196
|
docs: BulkGetResultDocument[];
|
|
@@ -6177,7 +6205,9 @@ declare namespace CloudantV1 {
|
|
|
6177
6205
|
id: string;
|
|
6178
6206
|
}
|
|
6179
6207
|
}
|
|
6180
|
-
/**
|
|
6208
|
+
/**
|
|
6209
|
+
* Schema for information about the currently provisioned and target throughput capacity.
|
|
6210
|
+
*/
|
|
6181
6211
|
class CapacityThroughputInformation {
|
|
6182
6212
|
/** Detailed information about provisioned throughput capacity. */
|
|
6183
6213
|
current: CapacityThroughputInformationCurrent;
|
|
@@ -6192,7 +6222,9 @@ declare namespace CloudantV1 {
|
|
|
6192
6222
|
target?: CapacityThroughputInformationTarget.Transport;
|
|
6193
6223
|
}
|
|
6194
6224
|
}
|
|
6195
|
-
/**
|
|
6225
|
+
/**
|
|
6226
|
+
* Detailed information about provisioned throughput capacity.
|
|
6227
|
+
*/
|
|
6196
6228
|
class CapacityThroughputInformationCurrent {
|
|
6197
6229
|
/** Schema for detailed information about throughput capacity with breakdown by specific throughput requests
|
|
6198
6230
|
* classes.
|
|
@@ -6206,7 +6238,9 @@ declare namespace CloudantV1 {
|
|
|
6206
6238
|
throughput: ThroughputInformation.Transport;
|
|
6207
6239
|
}
|
|
6208
6240
|
}
|
|
6209
|
-
/**
|
|
6241
|
+
/**
|
|
6242
|
+
* Detailed information about target throughput capacity.
|
|
6243
|
+
*/
|
|
6210
6244
|
class CapacityThroughputInformationTarget {
|
|
6211
6245
|
/** Schema for detailed information about throughput capacity with breakdown by specific throughput requests
|
|
6212
6246
|
* classes.
|
|
@@ -6220,7 +6254,9 @@ declare namespace CloudantV1 {
|
|
|
6220
6254
|
throughput: ThroughputInformation.Transport;
|
|
6221
6255
|
}
|
|
6222
6256
|
}
|
|
6223
|
-
/**
|
|
6257
|
+
/**
|
|
6258
|
+
* Schema for a document leaf with single field rev.
|
|
6259
|
+
*/
|
|
6224
6260
|
class Change {
|
|
6225
6261
|
/** Schema for a document revision identifier. */
|
|
6226
6262
|
rev: string;
|
|
@@ -6232,7 +6268,9 @@ declare namespace CloudantV1 {
|
|
|
6232
6268
|
rev: string;
|
|
6233
6269
|
}
|
|
6234
6270
|
}
|
|
6235
|
-
/**
|
|
6271
|
+
/**
|
|
6272
|
+
* Schema for normal changes feed result.
|
|
6273
|
+
*/
|
|
6236
6274
|
class ChangesResult {
|
|
6237
6275
|
/** last_seq. */
|
|
6238
6276
|
lastSeq: string;
|
|
@@ -6250,7 +6288,9 @@ declare namespace CloudantV1 {
|
|
|
6250
6288
|
results: ChangesResultItem[];
|
|
6251
6289
|
}
|
|
6252
6290
|
}
|
|
6253
|
-
/**
|
|
6291
|
+
/**
|
|
6292
|
+
* Schema for an item in the changes results array.
|
|
6293
|
+
*/
|
|
6254
6294
|
class ChangesResultItem {
|
|
6255
6295
|
/** List of document's leaves with single field rev. */
|
|
6256
6296
|
changes: Change[];
|
|
@@ -6274,7 +6314,9 @@ declare namespace CloudantV1 {
|
|
|
6274
6314
|
seq: string;
|
|
6275
6315
|
}
|
|
6276
6316
|
}
|
|
6277
|
-
/**
|
|
6317
|
+
/**
|
|
6318
|
+
* Schema for size information of content.
|
|
6319
|
+
*/
|
|
6278
6320
|
class ContentInformationSizes {
|
|
6279
6321
|
/** The active size of the content, in bytes. */
|
|
6280
6322
|
active: number;
|
|
@@ -6292,7 +6334,9 @@ declare namespace CloudantV1 {
|
|
|
6292
6334
|
file: number;
|
|
6293
6335
|
}
|
|
6294
6336
|
}
|
|
6295
|
-
/**
|
|
6337
|
+
/**
|
|
6338
|
+
* Schema for information about the CORS configuration.
|
|
6339
|
+
*/
|
|
6296
6340
|
class CorsInformation {
|
|
6297
6341
|
/** Boolean value to allow authentication credentials. If set to true, browser requests must be done by using
|
|
6298
6342
|
* withCredentials = true.
|
|
@@ -6315,7 +6359,9 @@ declare namespace CloudantV1 {
|
|
|
6315
6359
|
origins: string[];
|
|
6316
6360
|
}
|
|
6317
6361
|
}
|
|
6318
|
-
/**
|
|
6362
|
+
/**
|
|
6363
|
+
* Schema for information about current consumption of a provisioned throughput capacity.
|
|
6364
|
+
*/
|
|
6319
6365
|
class CurrentThroughputInformation {
|
|
6320
6366
|
/** Detailed information about current consumption. */
|
|
6321
6367
|
throughput: CurrentThroughputInformationThroughput;
|
|
@@ -6327,7 +6373,9 @@ declare namespace CloudantV1 {
|
|
|
6327
6373
|
throughput: CurrentThroughputInformationThroughput.Transport;
|
|
6328
6374
|
}
|
|
6329
6375
|
}
|
|
6330
|
-
/**
|
|
6376
|
+
/**
|
|
6377
|
+
* Detailed information about current consumption.
|
|
6378
|
+
*/
|
|
6331
6379
|
class CurrentThroughputInformationThroughput {
|
|
6332
6380
|
/** Number of global queries conducted against the instance for a given second. */
|
|
6333
6381
|
query: number;
|
|
@@ -6345,7 +6393,9 @@ declare namespace CloudantV1 {
|
|
|
6345
6393
|
write: number;
|
|
6346
6394
|
}
|
|
6347
6395
|
}
|
|
6348
|
-
/**
|
|
6396
|
+
/**
|
|
6397
|
+
* Schema for information about a database.
|
|
6398
|
+
*/
|
|
6349
6399
|
class DatabaseInformation {
|
|
6350
6400
|
/** Schema for database cluster information. */
|
|
6351
6401
|
cluster: DatabaseInformationCluster;
|
|
@@ -6403,7 +6453,9 @@ declare namespace CloudantV1 {
|
|
|
6403
6453
|
partitioned_indexes?: PartitionedIndexesInformation.Transport;
|
|
6404
6454
|
}
|
|
6405
6455
|
}
|
|
6406
|
-
/**
|
|
6456
|
+
/**
|
|
6457
|
+
* Schema for database cluster information.
|
|
6458
|
+
*/
|
|
6407
6459
|
class DatabaseInformationCluster {
|
|
6408
6460
|
/** Schema for the number of replicas of a database in a cluster. The cluster is using the default value and it
|
|
6409
6461
|
* cannot be changed by the user.
|
|
@@ -6426,7 +6478,9 @@ declare namespace CloudantV1 {
|
|
|
6426
6478
|
w: number;
|
|
6427
6479
|
}
|
|
6428
6480
|
}
|
|
6429
|
-
/**
|
|
6481
|
+
/**
|
|
6482
|
+
* Schema for database properties.
|
|
6483
|
+
*/
|
|
6430
6484
|
class DatabaseInformationProps {
|
|
6431
6485
|
/** The value is `true` for a partitioned database. */
|
|
6432
6486
|
partitioned?: boolean;
|
|
@@ -6438,7 +6492,9 @@ declare namespace CloudantV1 {
|
|
|
6438
6492
|
partitioned?: boolean;
|
|
6439
6493
|
}
|
|
6440
6494
|
}
|
|
6441
|
-
/**
|
|
6495
|
+
/**
|
|
6496
|
+
* Schema for a database change event.
|
|
6497
|
+
*/
|
|
6442
6498
|
class DbEvent {
|
|
6443
6499
|
/** Database name. */
|
|
6444
6500
|
dbName: string;
|
|
@@ -6464,7 +6520,9 @@ declare namespace CloudantV1 {
|
|
|
6464
6520
|
type: string;
|
|
6465
6521
|
}
|
|
6466
6522
|
}
|
|
6467
|
-
/**
|
|
6523
|
+
/**
|
|
6524
|
+
* Schema for database updates.
|
|
6525
|
+
*/
|
|
6468
6526
|
class DbUpdates {
|
|
6469
6527
|
/** Last sequence number. */
|
|
6470
6528
|
lastSeq: string;
|
|
@@ -6479,7 +6537,9 @@ declare namespace CloudantV1 {
|
|
|
6479
6537
|
results: DbEvent[];
|
|
6480
6538
|
}
|
|
6481
6539
|
}
|
|
6482
|
-
/**
|
|
6540
|
+
/**
|
|
6541
|
+
* Schema for database information keyed by database name.
|
|
6542
|
+
*/
|
|
6483
6543
|
class DbsInfoResult {
|
|
6484
6544
|
/** The name of the error. */
|
|
6485
6545
|
error?: string;
|
|
@@ -6497,7 +6557,11 @@ declare namespace CloudantV1 {
|
|
|
6497
6557
|
key: string;
|
|
6498
6558
|
}
|
|
6499
6559
|
}
|
|
6500
|
-
/**
|
|
6560
|
+
/**
|
|
6561
|
+
* Schema for a design document.
|
|
6562
|
+
*
|
|
6563
|
+
* This type supports additional properties of type any.
|
|
6564
|
+
*/
|
|
6501
6565
|
class DesignDocument {
|
|
6502
6566
|
/** Schema for a map of attachment name to attachment metadata. */
|
|
6503
6567
|
_attachments?: {
|
|
@@ -6603,7 +6667,9 @@ declare namespace CloudantV1 {
|
|
|
6603
6667
|
views?: {
|
|
6604
6668
|
[key: string]: DesignDocumentViewsMapReduce;
|
|
6605
6669
|
};
|
|
6606
|
-
/**
|
|
6670
|
+
/**
|
|
6671
|
+
* DesignDocument accepts additional properties of type any.
|
|
6672
|
+
*/
|
|
6607
6673
|
[propName: string]: any;
|
|
6608
6674
|
static serialize(obj: any): DesignDocument.Transport;
|
|
6609
6675
|
static deserialize(obj: any): DesignDocument;
|
|
@@ -6632,11 +6698,13 @@ declare namespace CloudantV1 {
|
|
|
6632
6698
|
views?: {
|
|
6633
6699
|
[key: string]: DesignDocumentViewsMapReduce.Transport;
|
|
6634
6700
|
};
|
|
6635
|
-
/** DesignDocument.DesignDocument.Transport accepts additional properties. */
|
|
6701
|
+
/** DesignDocument.DesignDocument.Transport accepts additional properties of type any. */
|
|
6636
6702
|
[propName: string]: any;
|
|
6637
6703
|
}
|
|
6638
6704
|
}
|
|
6639
|
-
/**
|
|
6705
|
+
/**
|
|
6706
|
+
* Schema for information about a design document.
|
|
6707
|
+
*/
|
|
6640
6708
|
class DesignDocumentInformation {
|
|
6641
6709
|
/** name. */
|
|
6642
6710
|
name: string;
|
|
@@ -6651,7 +6719,9 @@ declare namespace CloudantV1 {
|
|
|
6651
6719
|
view_index: DesignDocumentViewIndex.Transport;
|
|
6652
6720
|
}
|
|
6653
6721
|
}
|
|
6654
|
-
/**
|
|
6722
|
+
/**
|
|
6723
|
+
* Schema for design document options.
|
|
6724
|
+
*/
|
|
6655
6725
|
class DesignDocumentOptions {
|
|
6656
6726
|
/** Whether this design document describes partitioned or global indexes. */
|
|
6657
6727
|
partitioned?: boolean;
|
|
@@ -6663,7 +6733,9 @@ declare namespace CloudantV1 {
|
|
|
6663
6733
|
partitioned?: boolean;
|
|
6664
6734
|
}
|
|
6665
6735
|
}
|
|
6666
|
-
/**
|
|
6736
|
+
/**
|
|
6737
|
+
* View index information.
|
|
6738
|
+
*/
|
|
6667
6739
|
class DesignDocumentViewIndex {
|
|
6668
6740
|
/** List of collator versions. If there are multiple entries this implies a libicu upgrade has occurred but
|
|
6669
6741
|
* compaction has not run yet.
|
|
@@ -6701,7 +6773,9 @@ declare namespace CloudantV1 {
|
|
|
6701
6773
|
waiting_commit: boolean;
|
|
6702
6774
|
}
|
|
6703
6775
|
}
|
|
6704
|
-
/**
|
|
6776
|
+
/**
|
|
6777
|
+
* Schema for view functions definition.
|
|
6778
|
+
*/
|
|
6705
6779
|
class DesignDocumentViewsMapReduce {
|
|
6706
6780
|
/** JavaScript map function as a string. */
|
|
6707
6781
|
map: string;
|
|
@@ -6716,7 +6790,9 @@ declare namespace CloudantV1 {
|
|
|
6716
6790
|
reduce?: string;
|
|
6717
6791
|
}
|
|
6718
6792
|
}
|
|
6719
|
-
/**
|
|
6793
|
+
/**
|
|
6794
|
+
* Schema for a row of document information in a DocsResult.
|
|
6795
|
+
*/
|
|
6720
6796
|
class DocsResultRow {
|
|
6721
6797
|
/** The cause of the error (if available). */
|
|
6722
6798
|
causedBy?: string;
|
|
@@ -6749,7 +6825,9 @@ declare namespace CloudantV1 {
|
|
|
6749
6825
|
value?: DocsResultRowValue.Transport;
|
|
6750
6826
|
}
|
|
6751
6827
|
}
|
|
6752
|
-
/**
|
|
6828
|
+
/**
|
|
6829
|
+
* Value of built-in `/_all_docs` style view.
|
|
6830
|
+
*/
|
|
6753
6831
|
class DocsResultRowValue {
|
|
6754
6832
|
/** If `true` then the document is deleted. Not present for undeleted documents. */
|
|
6755
6833
|
deleted?: boolean;
|
|
@@ -6764,7 +6842,11 @@ declare namespace CloudantV1 {
|
|
|
6764
6842
|
rev: string;
|
|
6765
6843
|
}
|
|
6766
6844
|
}
|
|
6767
|
-
/**
|
|
6845
|
+
/**
|
|
6846
|
+
* Schema for a document.
|
|
6847
|
+
*
|
|
6848
|
+
* This type supports additional properties of type any.
|
|
6849
|
+
*/
|
|
6768
6850
|
class Document {
|
|
6769
6851
|
/** Schema for a map of attachment name to attachment metadata. */
|
|
6770
6852
|
_attachments?: {
|
|
@@ -6786,7 +6868,9 @@ declare namespace CloudantV1 {
|
|
|
6786
6868
|
_revisions?: Revisions;
|
|
6787
6869
|
/** Schema for a list of objects with information about local revisions and their status. */
|
|
6788
6870
|
_revs_info?: DocumentRevisionStatus[];
|
|
6789
|
-
/**
|
|
6871
|
+
/**
|
|
6872
|
+
* Document accepts additional properties of type any.
|
|
6873
|
+
*/
|
|
6790
6874
|
[propName: string]: any;
|
|
6791
6875
|
static serialize(obj: any): Document.Transport;
|
|
6792
6876
|
static deserialize(obj: any): Document;
|
|
@@ -6804,11 +6888,13 @@ declare namespace CloudantV1 {
|
|
|
6804
6888
|
_rev?: string;
|
|
6805
6889
|
_revisions?: Revisions.Transport;
|
|
6806
6890
|
_revs_info?: DocumentRevisionStatus[];
|
|
6807
|
-
/** Document.Document.Transport accepts additional properties. */
|
|
6891
|
+
/** Document.Document.Transport accepts additional properties of type any. */
|
|
6808
6892
|
[propName: string]: any;
|
|
6809
6893
|
}
|
|
6810
6894
|
}
|
|
6811
|
-
/**
|
|
6895
|
+
/**
|
|
6896
|
+
* Schema for the result of a document modification.
|
|
6897
|
+
*/
|
|
6812
6898
|
class DocumentResult {
|
|
6813
6899
|
/** Schema for a document ID. */
|
|
6814
6900
|
id: string;
|
|
@@ -6838,7 +6924,9 @@ declare namespace CloudantV1 {
|
|
|
6838
6924
|
ref?: number;
|
|
6839
6925
|
}
|
|
6840
6926
|
}
|
|
6841
|
-
/**
|
|
6927
|
+
/**
|
|
6928
|
+
* Schema for information about revisions and their status.
|
|
6929
|
+
*/
|
|
6842
6930
|
class DocumentRevisionStatus {
|
|
6843
6931
|
/** Schema for a document revision identifier. */
|
|
6844
6932
|
rev: string;
|
|
@@ -6863,7 +6951,9 @@ declare namespace CloudantV1 {
|
|
|
6863
6951
|
status: string;
|
|
6864
6952
|
}
|
|
6865
6953
|
}
|
|
6866
|
-
/**
|
|
6954
|
+
/**
|
|
6955
|
+
* Schema for document shard information.
|
|
6956
|
+
*/
|
|
6867
6957
|
class DocumentShardInfo {
|
|
6868
6958
|
/** List of nodes serving a replica of the shard. */
|
|
6869
6959
|
nodes: string[];
|
|
@@ -6878,7 +6968,9 @@ declare namespace CloudantV1 {
|
|
|
6878
6968
|
range: string;
|
|
6879
6969
|
}
|
|
6880
6970
|
}
|
|
6881
|
-
/**
|
|
6971
|
+
/**
|
|
6972
|
+
* Schema for find query execution statistics.
|
|
6973
|
+
*/
|
|
6882
6974
|
class ExecutionStats {
|
|
6883
6975
|
/** Time to execute the query. */
|
|
6884
6976
|
executionTimeMs: number;
|
|
@@ -6902,7 +6994,9 @@ declare namespace CloudantV1 {
|
|
|
6902
6994
|
total_quorum_docs_examined: number;
|
|
6903
6995
|
}
|
|
6904
6996
|
}
|
|
6905
|
-
/**
|
|
6997
|
+
/**
|
|
6998
|
+
* Schema for information about the index used for a find query.
|
|
6999
|
+
*/
|
|
6906
7000
|
class ExplainResult {
|
|
6907
7001
|
/** When `true`, the query is answered using the index only and no documents are fetched. */
|
|
6908
7002
|
covering: boolean;
|
|
@@ -6976,7 +7070,9 @@ declare namespace CloudantV1 {
|
|
|
6976
7070
|
skip: number;
|
|
6977
7071
|
}
|
|
6978
7072
|
}
|
|
6979
|
-
/**
|
|
7073
|
+
/**
|
|
7074
|
+
* Arguments passed to the underlying view.
|
|
7075
|
+
*/
|
|
6980
7076
|
class ExplainResultMrArgs {
|
|
6981
7077
|
/** Schema for any JSON type. */
|
|
6982
7078
|
conflicts?: any;
|
|
@@ -7028,7 +7124,9 @@ declare namespace CloudantV1 {
|
|
|
7028
7124
|
view_type?: string;
|
|
7029
7125
|
}
|
|
7030
7126
|
}
|
|
7031
|
-
/**
|
|
7127
|
+
/**
|
|
7128
|
+
* Options used for the request.
|
|
7129
|
+
*/
|
|
7032
7130
|
class ExplainResultOpts {
|
|
7033
7131
|
/** Opaque bookmark token used when paginating results. */
|
|
7034
7132
|
bookmark: string;
|
|
@@ -7080,7 +7178,9 @@ declare namespace CloudantV1 {
|
|
|
7080
7178
|
use_index: string[];
|
|
7081
7179
|
}
|
|
7082
7180
|
}
|
|
7083
|
-
/**
|
|
7181
|
+
/**
|
|
7182
|
+
* Schema for the result of a query find operation.
|
|
7183
|
+
*/
|
|
7084
7184
|
class FindResult {
|
|
7085
7185
|
/** Opaque bookmark token used when paginating results. */
|
|
7086
7186
|
bookmark: string;
|
|
@@ -7101,7 +7201,9 @@ declare namespace CloudantV1 {
|
|
|
7101
7201
|
warning?: string;
|
|
7102
7202
|
}
|
|
7103
7203
|
}
|
|
7104
|
-
/**
|
|
7204
|
+
/**
|
|
7205
|
+
* Schema for detailed explanation of why the specific index was excluded by the query planner.
|
|
7206
|
+
*/
|
|
7105
7207
|
class IndexAnalysis {
|
|
7106
7208
|
/** When `true`, the query is answered using the index only and no documents are fetched. */
|
|
7107
7209
|
covering: boolean | null;
|
|
@@ -7122,7 +7224,9 @@ declare namespace CloudantV1 {
|
|
|
7122
7224
|
usable: boolean;
|
|
7123
7225
|
}
|
|
7124
7226
|
}
|
|
7125
|
-
/**
|
|
7227
|
+
/**
|
|
7228
|
+
* A reason for index's exclusion.
|
|
7229
|
+
*/
|
|
7126
7230
|
class IndexAnalysisExclusionReason {
|
|
7127
7231
|
/** A reason code for index's exclusion.
|
|
7128
7232
|
*
|
|
@@ -7168,7 +7272,9 @@ declare namespace CloudantV1 {
|
|
|
7168
7272
|
name?: string;
|
|
7169
7273
|
}
|
|
7170
7274
|
}
|
|
7171
|
-
/**
|
|
7275
|
+
/**
|
|
7276
|
+
* Schema for an index that was not chosen for serving the query with the reason for the exclusion.
|
|
7277
|
+
*/
|
|
7172
7278
|
class IndexCandidate {
|
|
7173
7279
|
/** Schema for detailed explanation of why the specific index was excluded by the query planner. */
|
|
7174
7280
|
analysis: IndexAnalysis;
|
|
@@ -7183,7 +7289,12 @@ declare namespace CloudantV1 {
|
|
|
7183
7289
|
index: IndexInformation.Transport;
|
|
7184
7290
|
}
|
|
7185
7291
|
}
|
|
7186
|
-
/**
|
|
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
|
+
*/
|
|
7187
7298
|
class IndexDefinition {
|
|
7188
7299
|
/** Schema for a full text search analyzer. */
|
|
7189
7300
|
defaultAnalyzer?: Analyzer;
|
|
@@ -7247,13 +7358,19 @@ declare namespace CloudantV1 {
|
|
|
7247
7358
|
partial_filter_selector?: JsonObject;
|
|
7248
7359
|
}
|
|
7249
7360
|
}
|
|
7250
|
-
/**
|
|
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
|
+
*/
|
|
7251
7366
|
class IndexField {
|
|
7252
7367
|
/** Name of the field. */
|
|
7253
7368
|
name?: string;
|
|
7254
7369
|
/** The type of the named field. */
|
|
7255
7370
|
type?: IndexField.Constants.Type | string;
|
|
7256
|
-
/**
|
|
7371
|
+
/**
|
|
7372
|
+
* IndexField accepts additional properties of type string. Schema for sort direction.
|
|
7373
|
+
*/
|
|
7257
7374
|
[propName: string]: any;
|
|
7258
7375
|
static serialize(obj: any): IndexField.Transport;
|
|
7259
7376
|
static deserialize(obj: any): IndexField;
|
|
@@ -7270,11 +7387,13 @@ declare namespace CloudantV1 {
|
|
|
7270
7387
|
interface Transport {
|
|
7271
7388
|
name?: string;
|
|
7272
7389
|
type?: string;
|
|
7273
|
-
/** IndexField.IndexField.Transport accepts additional properties. */
|
|
7390
|
+
/** IndexField.IndexField.Transport accepts additional properties of type string. */
|
|
7274
7391
|
[propName: string]: any;
|
|
7275
7392
|
}
|
|
7276
7393
|
}
|
|
7277
|
-
/**
|
|
7394
|
+
/**
|
|
7395
|
+
* Schema for information about an index.
|
|
7396
|
+
*/
|
|
7278
7397
|
class IndexInformation {
|
|
7279
7398
|
/** Design document ID including a `_design/` prefix. */
|
|
7280
7399
|
ddoc: string | null;
|
|
@@ -7310,7 +7429,9 @@ declare namespace CloudantV1 {
|
|
|
7310
7429
|
type: string;
|
|
7311
7430
|
}
|
|
7312
7431
|
}
|
|
7313
|
-
/**
|
|
7432
|
+
/**
|
|
7433
|
+
* Schema for the result of creating an index.
|
|
7434
|
+
*/
|
|
7314
7435
|
class IndexResult {
|
|
7315
7436
|
/** Id of the design document the index was created in. */
|
|
7316
7437
|
id: string;
|
|
@@ -7335,7 +7456,10 @@ declare namespace CloudantV1 {
|
|
|
7335
7456
|
result: string;
|
|
7336
7457
|
}
|
|
7337
7458
|
}
|
|
7338
|
-
/**
|
|
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
|
+
*/
|
|
7339
7463
|
class IndexTextOperatorDefaultField {
|
|
7340
7464
|
/** Schema for a full text search analyzer. */
|
|
7341
7465
|
analyzer?: Analyzer;
|
|
@@ -7350,7 +7474,9 @@ declare namespace CloudantV1 {
|
|
|
7350
7474
|
enabled?: boolean;
|
|
7351
7475
|
}
|
|
7352
7476
|
}
|
|
7353
|
-
/**
|
|
7477
|
+
/**
|
|
7478
|
+
* Schema for information about the indexes in a database.
|
|
7479
|
+
*/
|
|
7354
7480
|
class IndexesInformation {
|
|
7355
7481
|
/** Number of total rows. */
|
|
7356
7482
|
totalRows: number;
|
|
@@ -7365,7 +7491,9 @@ declare namespace CloudantV1 {
|
|
|
7365
7491
|
indexes: IndexInformation[];
|
|
7366
7492
|
}
|
|
7367
7493
|
}
|
|
7368
|
-
/**
|
|
7494
|
+
/**
|
|
7495
|
+
* Schema for information about known nodes and cluster membership.
|
|
7496
|
+
*/
|
|
7369
7497
|
class MembershipInformation {
|
|
7370
7498
|
/** List of nodes this node knows about, including the ones that are part of the cluster. */
|
|
7371
7499
|
allNodes: string[];
|
|
@@ -7380,7 +7508,9 @@ declare namespace CloudantV1 {
|
|
|
7380
7508
|
cluster_nodes: string[];
|
|
7381
7509
|
}
|
|
7382
7510
|
}
|
|
7383
|
-
/**
|
|
7511
|
+
/**
|
|
7512
|
+
* Schema for an OK result.
|
|
7513
|
+
*/
|
|
7384
7514
|
class Ok {
|
|
7385
7515
|
/** ok. */
|
|
7386
7516
|
ok?: boolean;
|
|
@@ -7392,7 +7522,9 @@ declare namespace CloudantV1 {
|
|
|
7392
7522
|
ok?: boolean;
|
|
7393
7523
|
}
|
|
7394
7524
|
}
|
|
7395
|
-
/**
|
|
7525
|
+
/**
|
|
7526
|
+
* Schema for information about a database partition.
|
|
7527
|
+
*/
|
|
7396
7528
|
class PartitionInformation {
|
|
7397
7529
|
/** The name of the database. */
|
|
7398
7530
|
dbName: string;
|
|
@@ -7419,7 +7551,9 @@ declare namespace CloudantV1 {
|
|
|
7419
7551
|
sizes: PartitionInformationSizes.Transport;
|
|
7420
7552
|
}
|
|
7421
7553
|
}
|
|
7422
|
-
/**
|
|
7554
|
+
/**
|
|
7555
|
+
* Schema for information about the partition index count and limit in a database.
|
|
7556
|
+
*/
|
|
7423
7557
|
class PartitionInformationIndexes {
|
|
7424
7558
|
/** Total count of the partitioned indexes. */
|
|
7425
7559
|
count?: number;
|
|
@@ -7437,7 +7571,9 @@ declare namespace CloudantV1 {
|
|
|
7437
7571
|
limit?: number;
|
|
7438
7572
|
}
|
|
7439
7573
|
}
|
|
7440
|
-
/**
|
|
7574
|
+
/**
|
|
7575
|
+
* The count breakdown of partitioned indexes.
|
|
7576
|
+
*/
|
|
7441
7577
|
class PartitionInformationIndexesIndexes {
|
|
7442
7578
|
/** Number of partitioned search indexes. */
|
|
7443
7579
|
search?: number;
|
|
@@ -7452,7 +7588,9 @@ declare namespace CloudantV1 {
|
|
|
7452
7588
|
view?: number;
|
|
7453
7589
|
}
|
|
7454
7590
|
}
|
|
7455
|
-
/**
|
|
7591
|
+
/**
|
|
7592
|
+
* The size of active and external data, in bytes.
|
|
7593
|
+
*/
|
|
7456
7594
|
class PartitionInformationSizes {
|
|
7457
7595
|
/** The size of live data inside the database, in bytes. */
|
|
7458
7596
|
active?: number;
|
|
@@ -7467,7 +7605,9 @@ declare namespace CloudantV1 {
|
|
|
7467
7605
|
external?: number;
|
|
7468
7606
|
}
|
|
7469
7607
|
}
|
|
7470
|
-
/**
|
|
7608
|
+
/**
|
|
7609
|
+
* Number of partitioned indexes by type.
|
|
7610
|
+
*/
|
|
7471
7611
|
class PartitionedIndexesDetailedInformation {
|
|
7472
7612
|
/** Number of partitioned indexes of search type. */
|
|
7473
7613
|
search?: number;
|
|
@@ -7482,7 +7622,9 @@ declare namespace CloudantV1 {
|
|
|
7482
7622
|
view?: number;
|
|
7483
7623
|
}
|
|
7484
7624
|
}
|
|
7485
|
-
/**
|
|
7625
|
+
/**
|
|
7626
|
+
* Information about database's partitioned indexes.
|
|
7627
|
+
*/
|
|
7486
7628
|
class PartitionedIndexesInformation {
|
|
7487
7629
|
/** Total number of partitioned indexes in the database. */
|
|
7488
7630
|
count?: number;
|
|
@@ -7500,7 +7642,9 @@ declare namespace CloudantV1 {
|
|
|
7500
7642
|
limit?: number;
|
|
7501
7643
|
}
|
|
7502
7644
|
}
|
|
7503
|
-
/**
|
|
7645
|
+
/**
|
|
7646
|
+
* Request parameters to use during target database creation.
|
|
7647
|
+
*/
|
|
7504
7648
|
class ReplicationCreateTargetParameters {
|
|
7505
7649
|
/** Schema for the number of replicas of a database in a cluster. The cluster is using the default value and it
|
|
7506
7650
|
* cannot be changed by the user.
|
|
@@ -7520,7 +7664,9 @@ declare namespace CloudantV1 {
|
|
|
7520
7664
|
q?: number;
|
|
7521
7665
|
}
|
|
7522
7666
|
}
|
|
7523
|
-
/**
|
|
7667
|
+
/**
|
|
7668
|
+
* Schema for a replication source or target database.
|
|
7669
|
+
*/
|
|
7524
7670
|
class ReplicationDatabase {
|
|
7525
7671
|
/** Schema for replication source or target database authentication. */
|
|
7526
7672
|
auth?: ReplicationDatabaseAuth;
|
|
@@ -7538,7 +7684,9 @@ declare namespace CloudantV1 {
|
|
|
7538
7684
|
url: string;
|
|
7539
7685
|
}
|
|
7540
7686
|
}
|
|
7541
|
-
/**
|
|
7687
|
+
/**
|
|
7688
|
+
* Schema for replication source or target database authentication.
|
|
7689
|
+
*/
|
|
7542
7690
|
class ReplicationDatabaseAuth {
|
|
7543
7691
|
/** Schema for basic authentication of replication source or target database. */
|
|
7544
7692
|
basic?: ReplicationDatabaseAuthBasic;
|
|
@@ -7553,7 +7701,9 @@ declare namespace CloudantV1 {
|
|
|
7553
7701
|
iam?: ReplicationDatabaseAuthIam.Transport;
|
|
7554
7702
|
}
|
|
7555
7703
|
}
|
|
7556
|
-
/**
|
|
7704
|
+
/**
|
|
7705
|
+
* Schema for basic authentication of replication source or target database.
|
|
7706
|
+
*/
|
|
7557
7707
|
class ReplicationDatabaseAuthBasic {
|
|
7558
7708
|
/** The password associated with the username. */
|
|
7559
7709
|
password: string;
|
|
@@ -7568,7 +7718,9 @@ declare namespace CloudantV1 {
|
|
|
7568
7718
|
username: string;
|
|
7569
7719
|
}
|
|
7570
7720
|
}
|
|
7571
|
-
/**
|
|
7721
|
+
/**
|
|
7722
|
+
* Schema for an IAM API key for replication database authentication.
|
|
7723
|
+
*/
|
|
7572
7724
|
class ReplicationDatabaseAuthIam {
|
|
7573
7725
|
/** IAM API key. */
|
|
7574
7726
|
apiKey: string;
|
|
@@ -7580,7 +7732,11 @@ declare namespace CloudantV1 {
|
|
|
7580
7732
|
api_key: string;
|
|
7581
7733
|
}
|
|
7582
7734
|
}
|
|
7583
|
-
/**
|
|
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
|
+
*/
|
|
7584
7740
|
class ReplicationDocument {
|
|
7585
7741
|
/** Schema for a map of attachment name to attachment metadata. */
|
|
7586
7742
|
_attachments?: {
|
|
@@ -7709,7 +7865,9 @@ declare namespace CloudantV1 {
|
|
|
7709
7865
|
* number can improve throughput.
|
|
7710
7866
|
*/
|
|
7711
7867
|
workerProcesses?: number;
|
|
7712
|
-
/**
|
|
7868
|
+
/**
|
|
7869
|
+
* ReplicationDocument accepts additional properties of type any.
|
|
7870
|
+
*/
|
|
7713
7871
|
[propName: string]: any;
|
|
7714
7872
|
static serialize(obj: any): ReplicationDocument.Transport;
|
|
7715
7873
|
static deserialize(obj: any): ReplicationDocument;
|
|
@@ -7752,11 +7910,13 @@ declare namespace CloudantV1 {
|
|
|
7752
7910
|
winning_revs_only?: boolean;
|
|
7753
7911
|
worker_batch_size?: number;
|
|
7754
7912
|
worker_processes?: number;
|
|
7755
|
-
/** ReplicationDocument.ReplicationDocument.Transport accepts additional properties. */
|
|
7913
|
+
/** ReplicationDocument.ReplicationDocument.Transport accepts additional properties of type any. */
|
|
7756
7914
|
[propName: string]: any;
|
|
7757
7915
|
}
|
|
7758
7916
|
}
|
|
7759
|
-
/**
|
|
7917
|
+
/**
|
|
7918
|
+
* Schema for list of revision information.
|
|
7919
|
+
*/
|
|
7760
7920
|
class Revisions {
|
|
7761
7921
|
/** Array of valid revision IDs, in reverse order (latest first). */
|
|
7762
7922
|
ids: string[];
|
|
@@ -7771,7 +7931,9 @@ declare namespace CloudantV1 {
|
|
|
7771
7931
|
start: number;
|
|
7772
7932
|
}
|
|
7773
7933
|
}
|
|
7774
|
-
/**
|
|
7934
|
+
/**
|
|
7935
|
+
* Schema for information about missing revs and possible ancestors.
|
|
7936
|
+
*/
|
|
7775
7937
|
class RevsDiff {
|
|
7776
7938
|
/** List of missing revisions. */
|
|
7777
7939
|
missing?: string[];
|
|
@@ -7786,7 +7948,9 @@ declare namespace CloudantV1 {
|
|
|
7786
7948
|
possible_ancestors?: string[];
|
|
7787
7949
|
}
|
|
7788
7950
|
}
|
|
7789
|
-
/**
|
|
7951
|
+
/**
|
|
7952
|
+
* Schema for a listing of replication scheduler documents.
|
|
7953
|
+
*/
|
|
7790
7954
|
class SchedulerDocsResult {
|
|
7791
7955
|
/** Number of total rows. */
|
|
7792
7956
|
totalRows: number;
|
|
@@ -7801,7 +7965,9 @@ declare namespace CloudantV1 {
|
|
|
7801
7965
|
docs: SchedulerDocument[];
|
|
7802
7966
|
}
|
|
7803
7967
|
}
|
|
7804
|
-
/**
|
|
7968
|
+
/**
|
|
7969
|
+
* Schema for a replication scheduler document.
|
|
7970
|
+
*/
|
|
7805
7971
|
class SchedulerDocument {
|
|
7806
7972
|
/** Database where replication document came from. */
|
|
7807
7973
|
database: string;
|
|
@@ -7872,7 +8038,10 @@ declare namespace CloudantV1 {
|
|
|
7872
8038
|
target_proxy?: string;
|
|
7873
8039
|
}
|
|
7874
8040
|
}
|
|
7875
|
-
/**
|
|
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
|
+
*/
|
|
7876
8045
|
class SchedulerInfo {
|
|
7877
8046
|
/** The count of changes not yet replicated. */
|
|
7878
8047
|
changesPending?: number | null;
|
|
@@ -7911,7 +8080,9 @@ declare namespace CloudantV1 {
|
|
|
7911
8080
|
through_seq?: string;
|
|
7912
8081
|
}
|
|
7913
8082
|
}
|
|
7914
|
-
/**
|
|
8083
|
+
/**
|
|
8084
|
+
* Schema for a replication scheduler job.
|
|
8085
|
+
*/
|
|
7915
8086
|
class SchedulerJob {
|
|
7916
8087
|
/** Replication document database. */
|
|
7917
8088
|
database: string;
|
|
@@ -7955,7 +8126,9 @@ declare namespace CloudantV1 {
|
|
|
7955
8126
|
user: string;
|
|
7956
8127
|
}
|
|
7957
8128
|
}
|
|
7958
|
-
/**
|
|
8129
|
+
/**
|
|
8130
|
+
* Schema for a replication scheduler job event.
|
|
8131
|
+
*/
|
|
7959
8132
|
class SchedulerJobEvent {
|
|
7960
8133
|
/** Reason for current state of event. */
|
|
7961
8134
|
reason?: string;
|
|
@@ -7973,7 +8146,9 @@ declare namespace CloudantV1 {
|
|
|
7973
8146
|
type: string;
|
|
7974
8147
|
}
|
|
7975
8148
|
}
|
|
7976
|
-
/**
|
|
8149
|
+
/**
|
|
8150
|
+
* Schema for a listing of replication scheduler jobs.
|
|
8151
|
+
*/
|
|
7977
8152
|
class SchedulerJobsResult {
|
|
7978
8153
|
/** Number of total rows. */
|
|
7979
8154
|
totalRows: number;
|
|
@@ -7988,7 +8163,9 @@ declare namespace CloudantV1 {
|
|
|
7988
8163
|
jobs: SchedulerJob[];
|
|
7989
8164
|
}
|
|
7990
8165
|
}
|
|
7991
|
-
/**
|
|
8166
|
+
/**
|
|
8167
|
+
* Schema for the output of testing search analyzer tokenization.
|
|
8168
|
+
*/
|
|
7992
8169
|
class SearchAnalyzeResult {
|
|
7993
8170
|
/** tokens. */
|
|
7994
8171
|
tokens: string[];
|
|
@@ -8000,7 +8177,9 @@ declare namespace CloudantV1 {
|
|
|
8000
8177
|
tokens: string[];
|
|
8001
8178
|
}
|
|
8002
8179
|
}
|
|
8003
|
-
/**
|
|
8180
|
+
/**
|
|
8181
|
+
* Schema for a search index definition.
|
|
8182
|
+
*/
|
|
8004
8183
|
class SearchIndexDefinition {
|
|
8005
8184
|
/** Schema for a search analyzer configuration. */
|
|
8006
8185
|
analyzer?: AnalyzerConfiguration;
|
|
@@ -8034,7 +8213,9 @@ declare namespace CloudantV1 {
|
|
|
8034
8213
|
index: string;
|
|
8035
8214
|
}
|
|
8036
8215
|
}
|
|
8037
|
-
/**
|
|
8216
|
+
/**
|
|
8217
|
+
* Schema for metadata information about a search index.
|
|
8218
|
+
*/
|
|
8038
8219
|
class SearchIndexInfo {
|
|
8039
8220
|
/** The committed sequence identifier. */
|
|
8040
8221
|
committedSeq: number;
|
|
@@ -8061,7 +8242,9 @@ declare namespace CloudantV1 {
|
|
|
8061
8242
|
signature: string;
|
|
8062
8243
|
}
|
|
8063
8244
|
}
|
|
8064
|
-
/**
|
|
8245
|
+
/**
|
|
8246
|
+
* Schema for search index information.
|
|
8247
|
+
*/
|
|
8065
8248
|
class SearchInfoResult {
|
|
8066
8249
|
/** The name of the search index prefixed by the design document ID where the index is stored. */
|
|
8067
8250
|
name: string;
|
|
@@ -8076,7 +8259,9 @@ declare namespace CloudantV1 {
|
|
|
8076
8259
|
search_index: SearchIndexInfo.Transport;
|
|
8077
8260
|
}
|
|
8078
8261
|
}
|
|
8079
|
-
/**
|
|
8262
|
+
/**
|
|
8263
|
+
* Schema for the result of a query search operation.
|
|
8264
|
+
*/
|
|
8080
8265
|
class SearchResult {
|
|
8081
8266
|
/** Number of total rows. */
|
|
8082
8267
|
totalRows: number;
|
|
@@ -8116,7 +8301,9 @@ declare namespace CloudantV1 {
|
|
|
8116
8301
|
groups?: SearchResultProperties[];
|
|
8117
8302
|
}
|
|
8118
8303
|
}
|
|
8119
|
-
/**
|
|
8304
|
+
/**
|
|
8305
|
+
* Schema for the result of a query search operation.
|
|
8306
|
+
*/
|
|
8120
8307
|
class SearchResultProperties {
|
|
8121
8308
|
/** Number of total rows. */
|
|
8122
8309
|
totalRows: number;
|
|
@@ -8153,7 +8340,9 @@ declare namespace CloudantV1 {
|
|
|
8153
8340
|
rows?: SearchResultRow[];
|
|
8154
8341
|
}
|
|
8155
8342
|
}
|
|
8156
|
-
/**
|
|
8343
|
+
/**
|
|
8344
|
+
* Schema for a row of the result of a query search operation.
|
|
8345
|
+
*/
|
|
8157
8346
|
class SearchResultRow {
|
|
8158
8347
|
/** Schema for a document. */
|
|
8159
8348
|
doc?: Document;
|
|
@@ -8176,7 +8365,9 @@ declare namespace CloudantV1 {
|
|
|
8176
8365
|
id: string;
|
|
8177
8366
|
}
|
|
8178
8367
|
}
|
|
8179
|
-
/**
|
|
8368
|
+
/**
|
|
8369
|
+
* Schema for a security document.
|
|
8370
|
+
*/
|
|
8180
8371
|
class Security {
|
|
8181
8372
|
/** Schema for names and roles to map to a database permission. */
|
|
8182
8373
|
admins?: SecurityObject;
|
|
@@ -8197,7 +8388,9 @@ declare namespace CloudantV1 {
|
|
|
8197
8388
|
couchdb_auth_only?: boolean;
|
|
8198
8389
|
}
|
|
8199
8390
|
}
|
|
8200
|
-
/**
|
|
8391
|
+
/**
|
|
8392
|
+
* Schema for names and roles to map to a database permission.
|
|
8393
|
+
*/
|
|
8201
8394
|
class SecurityObject {
|
|
8202
8395
|
/** List of usernames. */
|
|
8203
8396
|
names?: string[];
|
|
@@ -8212,7 +8405,9 @@ declare namespace CloudantV1 {
|
|
|
8212
8405
|
roles?: string[];
|
|
8213
8406
|
}
|
|
8214
8407
|
}
|
|
8215
|
-
/**
|
|
8408
|
+
/**
|
|
8409
|
+
* Schema for extra information on the selector.
|
|
8410
|
+
*/
|
|
8216
8411
|
class SelectorHint {
|
|
8217
8412
|
/** A list of fields in the given selector that can be used to restrict the query. */
|
|
8218
8413
|
indexableFields: string[];
|
|
@@ -8237,7 +8432,9 @@ declare namespace CloudantV1 {
|
|
|
8237
8432
|
unindexable_fields: string[];
|
|
8238
8433
|
}
|
|
8239
8434
|
}
|
|
8240
|
-
/**
|
|
8435
|
+
/**
|
|
8436
|
+
* Schema for information about the server instance.
|
|
8437
|
+
*/
|
|
8241
8438
|
class ServerInformation {
|
|
8242
8439
|
/** Welcome message. */
|
|
8243
8440
|
couchdb: string;
|
|
@@ -8261,7 +8458,11 @@ declare namespace CloudantV1 {
|
|
|
8261
8458
|
features_flags: string[];
|
|
8262
8459
|
}
|
|
8263
8460
|
}
|
|
8264
|
-
/**
|
|
8461
|
+
/**
|
|
8462
|
+
* Schema for server vendor information.
|
|
8463
|
+
*
|
|
8464
|
+
* This type supports additional properties of type string.
|
|
8465
|
+
*/
|
|
8265
8466
|
class ServerVendor {
|
|
8266
8467
|
/** Vendor name. */
|
|
8267
8468
|
name: string;
|
|
@@ -8269,7 +8470,9 @@ declare namespace CloudantV1 {
|
|
|
8269
8470
|
variant: string;
|
|
8270
8471
|
/** Vendor version. */
|
|
8271
8472
|
version: string;
|
|
8272
|
-
/**
|
|
8473
|
+
/**
|
|
8474
|
+
* ServerVendor accepts additional properties of type string.
|
|
8475
|
+
*/
|
|
8273
8476
|
[propName: string]: any;
|
|
8274
8477
|
static serialize(obj: any): ServerVendor.Transport;
|
|
8275
8478
|
static deserialize(obj: any): ServerVendor;
|
|
@@ -8279,11 +8482,13 @@ declare namespace CloudantV1 {
|
|
|
8279
8482
|
name: string;
|
|
8280
8483
|
variant: string;
|
|
8281
8484
|
version: string;
|
|
8282
|
-
/** ServerVendor.ServerVendor.Transport accepts additional properties. */
|
|
8485
|
+
/** ServerVendor.ServerVendor.Transport accepts additional properties of type string. */
|
|
8283
8486
|
[propName: string]: any;
|
|
8284
8487
|
}
|
|
8285
8488
|
}
|
|
8286
|
-
/**
|
|
8489
|
+
/**
|
|
8490
|
+
* Schema for session authentication information.
|
|
8491
|
+
*/
|
|
8287
8492
|
class SessionAuthentication {
|
|
8288
8493
|
/** authenticated. */
|
|
8289
8494
|
authenticated?: string;
|
|
@@ -8301,7 +8506,9 @@ declare namespace CloudantV1 {
|
|
|
8301
8506
|
authentication_handlers: string[];
|
|
8302
8507
|
}
|
|
8303
8508
|
}
|
|
8304
|
-
/**
|
|
8509
|
+
/**
|
|
8510
|
+
* Schema for information about a session.
|
|
8511
|
+
*/
|
|
8305
8512
|
class SessionInformation {
|
|
8306
8513
|
/** ok. */
|
|
8307
8514
|
ok: boolean;
|
|
@@ -8319,7 +8526,10 @@ declare namespace CloudantV1 {
|
|
|
8319
8526
|
userCtx: UserContext.Transport;
|
|
8320
8527
|
}
|
|
8321
8528
|
}
|
|
8322
|
-
/**
|
|
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
|
+
*/
|
|
8323
8533
|
class ShardsInformation {
|
|
8324
8534
|
/** Mapping of shard hash value range to a list of nodes. */
|
|
8325
8535
|
shards: JsonObject;
|
|
@@ -8331,7 +8541,9 @@ declare namespace CloudantV1 {
|
|
|
8331
8541
|
shards: JsonObject;
|
|
8332
8542
|
}
|
|
8333
8543
|
}
|
|
8334
|
-
/**
|
|
8544
|
+
/**
|
|
8545
|
+
* Schema for detailed information about throughput capacity with breakdown by specific throughput requests classes.
|
|
8546
|
+
*/
|
|
8335
8547
|
class ThroughputInformation {
|
|
8336
8548
|
/** A number of blocks of throughput units. A block consists of 100 reads/sec, 50 writes/sec, and 5 global
|
|
8337
8549
|
* queries/sec of provisioned throughput capacity.
|
|
@@ -8354,7 +8566,9 @@ declare namespace CloudantV1 {
|
|
|
8354
8566
|
write: number;
|
|
8355
8567
|
}
|
|
8356
8568
|
}
|
|
8357
|
-
/**
|
|
8569
|
+
/**
|
|
8570
|
+
* Schema for information about the up state of the server.
|
|
8571
|
+
*/
|
|
8358
8572
|
class UpInformation {
|
|
8359
8573
|
/** seeds. */
|
|
8360
8574
|
seeds?: JsonObject;
|
|
@@ -8377,7 +8591,9 @@ declare namespace CloudantV1 {
|
|
|
8377
8591
|
status: string;
|
|
8378
8592
|
}
|
|
8379
8593
|
}
|
|
8380
|
-
/**
|
|
8594
|
+
/**
|
|
8595
|
+
* Schema for an ability to tell if view is up-to-date without querying it.
|
|
8596
|
+
*/
|
|
8381
8597
|
class UpdatesPending {
|
|
8382
8598
|
/** Sum of shard copies with the least amount of work to do. */
|
|
8383
8599
|
minimum: number;
|
|
@@ -8397,7 +8613,9 @@ declare namespace CloudantV1 {
|
|
|
8397
8613
|
total: number;
|
|
8398
8614
|
}
|
|
8399
8615
|
}
|
|
8400
|
-
/**
|
|
8616
|
+
/**
|
|
8617
|
+
* Schema for the user context of a session.
|
|
8618
|
+
*/
|
|
8401
8619
|
class UserContext {
|
|
8402
8620
|
/** Database name in the context of the provided operation. */
|
|
8403
8621
|
db?: string;
|
|
@@ -8428,7 +8646,9 @@ declare namespace CloudantV1 {
|
|
|
8428
8646
|
roles: string[];
|
|
8429
8647
|
}
|
|
8430
8648
|
}
|
|
8431
|
-
/**
|
|
8649
|
+
/**
|
|
8650
|
+
* Schema for a set of uuids generated by the server.
|
|
8651
|
+
*/
|
|
8432
8652
|
class UuidsResult {
|
|
8433
8653
|
/** uuids. */
|
|
8434
8654
|
uuids: string[];
|
|
@@ -8440,7 +8660,9 @@ declare namespace CloudantV1 {
|
|
|
8440
8660
|
uuids: string[];
|
|
8441
8661
|
}
|
|
8442
8662
|
}
|
|
8443
|
-
/**
|
|
8663
|
+
/**
|
|
8664
|
+
* Schema for the results of a queries view operation.
|
|
8665
|
+
*/
|
|
8444
8666
|
class ViewQueriesResult {
|
|
8445
8667
|
/** An array of result objects - one for each query. Each result object contains the same fields as the response
|
|
8446
8668
|
* to a regular view request.
|
|
@@ -8454,7 +8676,9 @@ declare namespace CloudantV1 {
|
|
|
8454
8676
|
results: ViewResult[];
|
|
8455
8677
|
}
|
|
8456
8678
|
}
|
|
8457
|
-
/**
|
|
8679
|
+
/**
|
|
8680
|
+
* Schema for a query view operation.
|
|
8681
|
+
*/
|
|
8458
8682
|
class ViewQuery {
|
|
8459
8683
|
/** Parameter to specify whether to include the encoding information in attachment stubs if the particular
|
|
8460
8684
|
* attachment is compressed.
|
|
@@ -8558,7 +8782,9 @@ declare namespace CloudantV1 {
|
|
|
8558
8782
|
update?: string;
|
|
8559
8783
|
}
|
|
8560
8784
|
}
|
|
8561
|
-
/**
|
|
8785
|
+
/**
|
|
8786
|
+
* Schema for the result of a query view operation.
|
|
8787
|
+
*/
|
|
8562
8788
|
class ViewResult {
|
|
8563
8789
|
/** Number of total rows. */
|
|
8564
8790
|
totalRows?: number;
|
|
@@ -8576,7 +8802,9 @@ declare namespace CloudantV1 {
|
|
|
8576
8802
|
rows: ViewResultRow[];
|
|
8577
8803
|
}
|
|
8578
8804
|
}
|
|
8579
|
-
/**
|
|
8805
|
+
/**
|
|
8806
|
+
* Schema for a row of a view result.
|
|
8807
|
+
*/
|
|
8580
8808
|
class ViewResultRow {
|
|
8581
8809
|
/** The cause of the error (if available). */
|
|
8582
8810
|
causedBy?: string;
|