@ibm-cloud/cloudant 0.12.1 → 0.12.3
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/features/changesFollower.d.ts +1 -1
- package/cloudant/features/changesFollower.js +1 -1
- package/cloudant/features/changesFollower.js.map +1 -1
- package/cloudant/features/changesParamsHelper.d.ts +3 -2
- package/cloudant/features/changesParamsHelper.js +12 -5
- package/cloudant/features/changesParamsHelper.js.map +1 -1
- package/cloudant/features/changesResultIterator.js +1 -1
- package/cloudant/features/changesResultIterator.js.map +1 -1
- package/cloudant/v1.d.ts +454 -463
- package/cloudant/v1.js +590 -114
- package/cloudant/v1.js.map +1 -1
- package/package.json +12 -12
package/cloudant/v1.d.ts
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { IncomingHttpHeaders, OutgoingHttpHeaders } from 'http';
|
|
17
|
-
import { SDKLogger, UserOptions } from 'ibm-cloud-sdk-core';
|
|
17
|
+
import { AbortSignal, SDKLogger, UserOptions } from 'ibm-cloud-sdk-core';
|
|
18
18
|
import CloudantBaseService from '../lib/cloudantBaseService';
|
|
19
19
|
/**
|
|
20
20
|
* NoSQL database based on Apache CouchDB
|
|
@@ -2795,9 +2795,9 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
2795
2795
|
*/
|
|
2796
2796
|
getActiveTasks(params?: CloudantV1.GetActiveTasksParams): Promise<CloudantV1.Response<CloudantV1.ActiveTask[]>>;
|
|
2797
2797
|
/**
|
|
2798
|
-
* Retrieve
|
|
2798
|
+
* Retrieve activity tracking events information.
|
|
2799
2799
|
*
|
|
2800
|
-
* Check event types
|
|
2800
|
+
* Check event types sent to IBM Cloud Activity Tracker Event Routing for the IBM Cloudant instance.
|
|
2801
2801
|
*
|
|
2802
2802
|
* @param {Object} [params] - The parameters to send to the service.
|
|
2803
2803
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
@@ -2805,17 +2805,37 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
2805
2805
|
*/
|
|
2806
2806
|
getActivityTrackerEvents(params?: CloudantV1.GetActivityTrackerEventsParams): Promise<CloudantV1.Response<CloudantV1.ActivityTrackerEvents>>;
|
|
2807
2807
|
/**
|
|
2808
|
-
* Modify
|
|
2808
|
+
* Modify activity tracking events configuration.
|
|
2809
2809
|
*
|
|
2810
|
-
* Configure event types
|
|
2810
|
+
* Configure event types sent to IBM Cloud Activity Tracker Event Routing for the IBM Cloudant instance.
|
|
2811
2811
|
*
|
|
2812
2812
|
* @param {Object} params - The parameters to send to the service.
|
|
2813
|
-
* @param {string[]} params.types - An array of event types
|
|
2813
|
+
* @param {string[]} params.types - An array of event types sent to IBM Cloud Activity Tracker Event Routing for the
|
|
2814
2814
|
* IBM Cloudant instance. "management" is a required element of this array.
|
|
2815
2815
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
2816
2816
|
* @returns {Promise<CloudantV1.Response<CloudantV1.Ok>>}
|
|
2817
2817
|
*/
|
|
2818
2818
|
postActivityTrackerEvents(params: CloudantV1.PostActivityTrackerEventsParams): Promise<CloudantV1.Response<CloudantV1.Ok>>;
|
|
2819
|
+
/**
|
|
2820
|
+
* Retrieve maximum allowed database count.
|
|
2821
|
+
*
|
|
2822
|
+
* Retrieves the maximum number of databases currently allowed in the instance.
|
|
2823
|
+
*
|
|
2824
|
+
* @param {Object} [params] - The parameters to send to the service.
|
|
2825
|
+
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
2826
|
+
* @returns {Promise<CloudantV1.Response<CloudantV1.CapacityDatabasesInformation>>}
|
|
2827
|
+
*/
|
|
2828
|
+
getCapacityDatabasesInformation(params?: CloudantV1.GetCapacityDatabasesInformationParams): Promise<CloudantV1.Response<CloudantV1.CapacityDatabasesInformation>>;
|
|
2829
|
+
/**
|
|
2830
|
+
* Retrieve current database count.
|
|
2831
|
+
*
|
|
2832
|
+
* Retrieves the current number of databases that exist in the instance.
|
|
2833
|
+
*
|
|
2834
|
+
* @param {Object} [params] - The parameters to send to the service.
|
|
2835
|
+
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
2836
|
+
* @returns {Promise<CloudantV1.Response<CloudantV1.CurrentDatabasesInformation>>}
|
|
2837
|
+
*/
|
|
2838
|
+
getCurrentDatabasesInformation(params?: CloudantV1.GetCurrentDatabasesInformationParams): Promise<CloudantV1.Response<CloudantV1.CurrentDatabasesInformation>>;
|
|
2819
2839
|
/**
|
|
2820
2840
|
* Retrieve the current provisioned throughput capacity consumption.
|
|
2821
2841
|
*
|
|
@@ -2859,19 +2879,19 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
2859
2879
|
************************/
|
|
2860
2880
|
declare namespace CloudantV1 {
|
|
2861
2881
|
/** An operation response. */
|
|
2862
|
-
interface Response<T = any> {
|
|
2882
|
+
export interface Response<T = any> {
|
|
2863
2883
|
result: T;
|
|
2864
2884
|
status: number;
|
|
2865
2885
|
statusText: string;
|
|
2866
2886
|
headers: IncomingHttpHeaders;
|
|
2867
2887
|
}
|
|
2868
2888
|
/** The callback for a service request. */
|
|
2869
|
-
type Callback<T> = (error: any, response?: Response<T>) => void;
|
|
2889
|
+
export type Callback<T> = (error: any, response?: Response<T>) => void;
|
|
2870
2890
|
/** The body of a service request that returns no response data. */
|
|
2871
|
-
interface EmptyObject {
|
|
2891
|
+
export interface EmptyObject {
|
|
2872
2892
|
}
|
|
2873
2893
|
/** A standard JS object, defined to avoid the limitations of `Object` and `object` */
|
|
2874
|
-
class JsonObject {
|
|
2894
|
+
export class JsonObject {
|
|
2875
2895
|
[key: string]: any;
|
|
2876
2896
|
static serialize(obj: any): any;
|
|
2877
2897
|
static deserialize(obj: any): any;
|
|
@@ -2879,30 +2899,30 @@ declare namespace CloudantV1 {
|
|
|
2879
2899
|
/*************************
|
|
2880
2900
|
* request interfaces
|
|
2881
2901
|
************************/
|
|
2882
|
-
|
|
2883
|
-
interface GetServerInformationParams {
|
|
2902
|
+
interface DefaultParams {
|
|
2884
2903
|
headers?: OutgoingHttpHeaders;
|
|
2904
|
+
signal?: AbortSignal;
|
|
2905
|
+
}
|
|
2906
|
+
/** Parameters for the `getServerInformation` operation. */
|
|
2907
|
+
export interface GetServerInformationParams extends DefaultParams {
|
|
2885
2908
|
}
|
|
2886
2909
|
/** Parameters for the `getCapacityThroughputInformation` operation. */
|
|
2887
|
-
interface GetCapacityThroughputInformationParams {
|
|
2888
|
-
headers?: OutgoingHttpHeaders;
|
|
2910
|
+
export interface GetCapacityThroughputInformationParams extends DefaultParams {
|
|
2889
2911
|
}
|
|
2890
2912
|
/** Parameters for the `putCapacityThroughputConfiguration` operation. */
|
|
2891
|
-
interface PutCapacityThroughputConfigurationParams {
|
|
2913
|
+
export interface PutCapacityThroughputConfigurationParams extends DefaultParams {
|
|
2892
2914
|
/** A number of blocks of throughput units. A block consists of 100 reads/sec, 50 writes/sec, and 5 global
|
|
2893
2915
|
* queries/sec of provisioned throughput capacity. Not available for some plans.
|
|
2894
2916
|
*/
|
|
2895
2917
|
blocks: number;
|
|
2896
|
-
headers?: OutgoingHttpHeaders;
|
|
2897
2918
|
}
|
|
2898
2919
|
/** Parameters for the `getUuids` operation. */
|
|
2899
|
-
interface GetUuidsParams {
|
|
2920
|
+
export interface GetUuidsParams extends DefaultParams {
|
|
2900
2921
|
/** Query parameter to specify the number of UUIDs to return. */
|
|
2901
2922
|
count?: number;
|
|
2902
|
-
headers?: OutgoingHttpHeaders;
|
|
2903
2923
|
}
|
|
2904
2924
|
/** Parameters for the `getDbUpdates` operation. */
|
|
2905
|
-
interface GetDbUpdatesParams {
|
|
2925
|
+
export interface GetDbUpdatesParams extends DefaultParams {
|
|
2906
2926
|
/** Query parameter to specify whether to return the documents in descending by key order. */
|
|
2907
2927
|
descending?: boolean;
|
|
2908
2928
|
/** Query parameter to specify the changes feed type. */
|
|
@@ -2933,10 +2953,9 @@ declare namespace CloudantV1 {
|
|
|
2933
2953
|
* Can be a valid update sequence or `now` value. Default is `0` i.e. all changes.
|
|
2934
2954
|
*/
|
|
2935
2955
|
since?: string;
|
|
2936
|
-
headers?: OutgoingHttpHeaders;
|
|
2937
2956
|
}
|
|
2938
2957
|
/** Constants for the `getDbUpdates` operation. */
|
|
2939
|
-
namespace GetDbUpdatesConstants {
|
|
2958
|
+
export namespace GetDbUpdatesConstants {
|
|
2940
2959
|
/** Query parameter to specify the changes feed type. */
|
|
2941
2960
|
enum Feed {
|
|
2942
2961
|
CONTINUOUS = "continuous",
|
|
@@ -2946,7 +2965,7 @@ declare namespace CloudantV1 {
|
|
|
2946
2965
|
}
|
|
2947
2966
|
}
|
|
2948
2967
|
/** Parameters for the `postChanges` operation. */
|
|
2949
|
-
interface PostChangesParams {
|
|
2968
|
+
export interface PostChangesParams extends DefaultParams {
|
|
2950
2969
|
/** Path parameter to specify the database name. */
|
|
2951
2970
|
db: string;
|
|
2952
2971
|
/** Schema for a list of document IDs. */
|
|
@@ -3071,10 +3090,9 @@ declare namespace CloudantV1 {
|
|
|
3071
3090
|
* emits at least one record for them.
|
|
3072
3091
|
*/
|
|
3073
3092
|
view?: string;
|
|
3074
|
-
headers?: OutgoingHttpHeaders;
|
|
3075
3093
|
}
|
|
3076
3094
|
/** Constants for the `postChanges` operation. */
|
|
3077
|
-
namespace PostChangesConstants {
|
|
3095
|
+
export namespace PostChangesConstants {
|
|
3078
3096
|
/** Query parameter to specify the changes feed type. */
|
|
3079
3097
|
enum Feed {
|
|
3080
3098
|
CONTINUOUS = "continuous",
|
|
@@ -3089,7 +3107,7 @@ declare namespace CloudantV1 {
|
|
|
3089
3107
|
}
|
|
3090
3108
|
}
|
|
3091
3109
|
/** Parameters for the `postChangesAsStream` operation. */
|
|
3092
|
-
interface PostChangesAsStreamParams {
|
|
3110
|
+
export interface PostChangesAsStreamParams extends DefaultParams {
|
|
3093
3111
|
/** Path parameter to specify the database name. */
|
|
3094
3112
|
db: string;
|
|
3095
3113
|
/** Schema for a list of document IDs. */
|
|
@@ -3214,10 +3232,9 @@ declare namespace CloudantV1 {
|
|
|
3214
3232
|
* emits at least one record for them.
|
|
3215
3233
|
*/
|
|
3216
3234
|
view?: string;
|
|
3217
|
-
headers?: OutgoingHttpHeaders;
|
|
3218
3235
|
}
|
|
3219
3236
|
/** Constants for the `postChangesAsStream` operation. */
|
|
3220
|
-
namespace PostChangesAsStreamConstants {
|
|
3237
|
+
export namespace PostChangesAsStreamConstants {
|
|
3221
3238
|
/** Query parameter to specify the changes feed type. */
|
|
3222
3239
|
enum Feed {
|
|
3223
3240
|
CONTINUOUS = "continuous",
|
|
@@ -3232,13 +3249,12 @@ declare namespace CloudantV1 {
|
|
|
3232
3249
|
}
|
|
3233
3250
|
}
|
|
3234
3251
|
/** Parameters for the `headDatabase` operation. */
|
|
3235
|
-
interface HeadDatabaseParams {
|
|
3252
|
+
export interface HeadDatabaseParams extends DefaultParams {
|
|
3236
3253
|
/** Path parameter to specify the database name. */
|
|
3237
3254
|
db: string;
|
|
3238
|
-
headers?: OutgoingHttpHeaders;
|
|
3239
3255
|
}
|
|
3240
3256
|
/** Parameters for the `getAllDbs` operation. */
|
|
3241
|
-
interface GetAllDbsParams {
|
|
3257
|
+
export interface GetAllDbsParams extends DefaultParams {
|
|
3242
3258
|
/** Query parameter to specify whether to return the documents in descending by key order. */
|
|
3243
3259
|
descending?: boolean;
|
|
3244
3260
|
/** Query parameter to specify to stop returning records when the specified key is reached. String
|
|
@@ -3253,28 +3269,24 @@ declare namespace CloudantV1 {
|
|
|
3253
3269
|
* JSON type that matches the key type emitted by the view function.
|
|
3254
3270
|
*/
|
|
3255
3271
|
startKey?: string;
|
|
3256
|
-
headers?: OutgoingHttpHeaders;
|
|
3257
3272
|
}
|
|
3258
3273
|
/** Parameters for the `postDbsInfo` operation. */
|
|
3259
|
-
interface PostDbsInfoParams {
|
|
3274
|
+
export interface PostDbsInfoParams extends DefaultParams {
|
|
3260
3275
|
/** A list of database names. */
|
|
3261
3276
|
keys: string[];
|
|
3262
|
-
headers?: OutgoingHttpHeaders;
|
|
3263
3277
|
}
|
|
3264
3278
|
/** Parameters for the `deleteDatabase` operation. */
|
|
3265
|
-
interface DeleteDatabaseParams {
|
|
3279
|
+
export interface DeleteDatabaseParams extends DefaultParams {
|
|
3266
3280
|
/** Path parameter to specify the database name. */
|
|
3267
3281
|
db: string;
|
|
3268
|
-
headers?: OutgoingHttpHeaders;
|
|
3269
3282
|
}
|
|
3270
3283
|
/** Parameters for the `getDatabaseInformation` operation. */
|
|
3271
|
-
interface GetDatabaseInformationParams {
|
|
3284
|
+
export interface GetDatabaseInformationParams extends DefaultParams {
|
|
3272
3285
|
/** Path parameter to specify the database name. */
|
|
3273
3286
|
db: string;
|
|
3274
|
-
headers?: OutgoingHttpHeaders;
|
|
3275
3287
|
}
|
|
3276
3288
|
/** Parameters for the `putDatabase` operation. */
|
|
3277
|
-
interface PutDatabaseParams {
|
|
3289
|
+
export interface PutDatabaseParams extends DefaultParams {
|
|
3278
3290
|
/** Path parameter to specify the database name. */
|
|
3279
3291
|
db: string;
|
|
3280
3292
|
/** Query parameter to specify whether to enable database partitions when creating a database.
|
|
@@ -3290,10 +3302,9 @@ declare namespace CloudantV1 {
|
|
|
3290
3302
|
* Cloudant customer support for guidance on how to meet your specific needs and requirements.
|
|
3291
3303
|
*/
|
|
3292
3304
|
q?: number;
|
|
3293
|
-
headers?: OutgoingHttpHeaders;
|
|
3294
3305
|
}
|
|
3295
3306
|
/** Parameters for the `headDocument` operation. */
|
|
3296
|
-
interface HeadDocumentParams {
|
|
3307
|
+
export interface HeadDocumentParams extends DefaultParams {
|
|
3297
3308
|
/** Path parameter to specify the database name. */
|
|
3298
3309
|
db: string;
|
|
3299
3310
|
/** Path parameter to specify the document ID. */
|
|
@@ -3306,10 +3317,9 @@ declare namespace CloudantV1 {
|
|
|
3306
3317
|
latest?: boolean;
|
|
3307
3318
|
/** Query parameter to specify a document revision. */
|
|
3308
3319
|
rev?: string;
|
|
3309
|
-
headers?: OutgoingHttpHeaders;
|
|
3310
3320
|
}
|
|
3311
3321
|
/** Parameters for the `postDocument` operation. */
|
|
3312
|
-
interface PostDocumentParams {
|
|
3322
|
+
export interface PostDocumentParams extends DefaultParams {
|
|
3313
3323
|
/** Path parameter to specify the database name. */
|
|
3314
3324
|
db: string;
|
|
3315
3325
|
/** HTTP request body for Document operations. */
|
|
@@ -3320,10 +3330,9 @@ declare namespace CloudantV1 {
|
|
|
3320
3330
|
* response code immediately.
|
|
3321
3331
|
*/
|
|
3322
3332
|
batch?: PostDocumentConstants.Batch | string;
|
|
3323
|
-
headers?: OutgoingHttpHeaders;
|
|
3324
3333
|
}
|
|
3325
3334
|
/** Constants for the `postDocument` operation. */
|
|
3326
|
-
namespace PostDocumentConstants {
|
|
3335
|
+
export namespace PostDocumentConstants {
|
|
3327
3336
|
/** The type of the input. */
|
|
3328
3337
|
enum ContentType {
|
|
3329
3338
|
APPLICATION_JSON = "application/json",
|
|
@@ -3337,7 +3346,7 @@ declare namespace CloudantV1 {
|
|
|
3337
3346
|
}
|
|
3338
3347
|
}
|
|
3339
3348
|
/** Parameters for the `postAllDocs` operation. */
|
|
3340
|
-
interface PostAllDocsParams {
|
|
3349
|
+
export interface PostAllDocsParams extends DefaultParams {
|
|
3341
3350
|
/** Path parameter to specify the database name. */
|
|
3342
3351
|
db: string;
|
|
3343
3352
|
/** Parameter to specify whether to include the encoding information in attachment stubs if the particular
|
|
@@ -3372,10 +3381,9 @@ declare namespace CloudantV1 {
|
|
|
3372
3381
|
keys?: string[];
|
|
3373
3382
|
/** Schema for a document ID. */
|
|
3374
3383
|
startKey?: string;
|
|
3375
|
-
headers?: OutgoingHttpHeaders;
|
|
3376
3384
|
}
|
|
3377
3385
|
/** Parameters for the `postAllDocsAsStream` operation. */
|
|
3378
|
-
interface PostAllDocsAsStreamParams {
|
|
3386
|
+
export interface PostAllDocsAsStreamParams extends DefaultParams {
|
|
3379
3387
|
/** Path parameter to specify the database name. */
|
|
3380
3388
|
db: string;
|
|
3381
3389
|
/** Parameter to specify whether to include the encoding information in attachment stubs if the particular
|
|
@@ -3410,38 +3418,34 @@ declare namespace CloudantV1 {
|
|
|
3410
3418
|
keys?: string[];
|
|
3411
3419
|
/** Schema for a document ID. */
|
|
3412
3420
|
startKey?: string;
|
|
3413
|
-
headers?: OutgoingHttpHeaders;
|
|
3414
3421
|
}
|
|
3415
3422
|
/** Parameters for the `postAllDocsQueries` operation. */
|
|
3416
|
-
interface PostAllDocsQueriesParams {
|
|
3423
|
+
export interface PostAllDocsQueriesParams extends DefaultParams {
|
|
3417
3424
|
/** Path parameter to specify the database name. */
|
|
3418
3425
|
db: string;
|
|
3419
3426
|
/** An array of query objects with fields for the parameters of each individual view query to be executed. The
|
|
3420
3427
|
* field names and their meaning are the same as the query parameters of a regular `/_all_docs` request.
|
|
3421
3428
|
*/
|
|
3422
3429
|
queries: AllDocsQuery[];
|
|
3423
|
-
headers?: OutgoingHttpHeaders;
|
|
3424
3430
|
}
|
|
3425
3431
|
/** Parameters for the `postAllDocsQueriesAsStream` operation. */
|
|
3426
|
-
interface PostAllDocsQueriesAsStreamParams {
|
|
3432
|
+
export interface PostAllDocsQueriesAsStreamParams extends DefaultParams {
|
|
3427
3433
|
/** Path parameter to specify the database name. */
|
|
3428
3434
|
db: string;
|
|
3429
3435
|
/** An array of query objects with fields for the parameters of each individual view query to be executed. The
|
|
3430
3436
|
* field names and their meaning are the same as the query parameters of a regular `/_all_docs` request.
|
|
3431
3437
|
*/
|
|
3432
3438
|
queries: AllDocsQuery[];
|
|
3433
|
-
headers?: OutgoingHttpHeaders;
|
|
3434
3439
|
}
|
|
3435
3440
|
/** Parameters for the `postBulkDocs` operation. */
|
|
3436
|
-
interface PostBulkDocsParams {
|
|
3441
|
+
export interface PostBulkDocsParams extends DefaultParams {
|
|
3437
3442
|
/** Path parameter to specify the database name. */
|
|
3438
3443
|
db: string;
|
|
3439
3444
|
/** HTTP request body for postBulkDocs. */
|
|
3440
3445
|
bulkDocs: BulkDocs | NodeJS.ReadableStream | Buffer;
|
|
3441
|
-
headers?: OutgoingHttpHeaders;
|
|
3442
3446
|
}
|
|
3443
3447
|
/** Parameters for the `postBulkGet` operation. */
|
|
3444
|
-
interface PostBulkGetParams {
|
|
3448
|
+
export interface PostBulkGetParams extends DefaultParams {
|
|
3445
3449
|
/** Path parameter to specify the database name. */
|
|
3446
3450
|
db: string;
|
|
3447
3451
|
/** List of document items to get in bulk. */
|
|
@@ -3458,10 +3462,9 @@ declare namespace CloudantV1 {
|
|
|
3458
3462
|
latest?: boolean;
|
|
3459
3463
|
/** Query parameter to specify whether to include a list of all known document revisions. */
|
|
3460
3464
|
revs?: boolean;
|
|
3461
|
-
headers?: OutgoingHttpHeaders;
|
|
3462
3465
|
}
|
|
3463
3466
|
/** Parameters for the `postBulkGetAsMixed` operation. */
|
|
3464
|
-
interface PostBulkGetAsMixedParams {
|
|
3467
|
+
export interface PostBulkGetAsMixedParams extends DefaultParams {
|
|
3465
3468
|
/** Path parameter to specify the database name. */
|
|
3466
3469
|
db: string;
|
|
3467
3470
|
/** List of document items to get in bulk. */
|
|
@@ -3478,10 +3481,9 @@ declare namespace CloudantV1 {
|
|
|
3478
3481
|
latest?: boolean;
|
|
3479
3482
|
/** Query parameter to specify whether to include a list of all known document revisions. */
|
|
3480
3483
|
revs?: boolean;
|
|
3481
|
-
headers?: OutgoingHttpHeaders;
|
|
3482
3484
|
}
|
|
3483
3485
|
/** Parameters for the `postBulkGetAsRelated` operation. */
|
|
3484
|
-
interface PostBulkGetAsRelatedParams {
|
|
3486
|
+
export interface PostBulkGetAsRelatedParams extends DefaultParams {
|
|
3485
3487
|
/** Path parameter to specify the database name. */
|
|
3486
3488
|
db: string;
|
|
3487
3489
|
/** List of document items to get in bulk. */
|
|
@@ -3498,10 +3500,9 @@ declare namespace CloudantV1 {
|
|
|
3498
3500
|
latest?: boolean;
|
|
3499
3501
|
/** Query parameter to specify whether to include a list of all known document revisions. */
|
|
3500
3502
|
revs?: boolean;
|
|
3501
|
-
headers?: OutgoingHttpHeaders;
|
|
3502
3503
|
}
|
|
3503
3504
|
/** Parameters for the `postBulkGetAsStream` operation. */
|
|
3504
|
-
interface PostBulkGetAsStreamParams {
|
|
3505
|
+
export interface PostBulkGetAsStreamParams extends DefaultParams {
|
|
3505
3506
|
/** Path parameter to specify the database name. */
|
|
3506
3507
|
db: string;
|
|
3507
3508
|
/** List of document items to get in bulk. */
|
|
@@ -3518,10 +3519,9 @@ declare namespace CloudantV1 {
|
|
|
3518
3519
|
latest?: boolean;
|
|
3519
3520
|
/** Query parameter to specify whether to include a list of all known document revisions. */
|
|
3520
3521
|
revs?: boolean;
|
|
3521
|
-
headers?: OutgoingHttpHeaders;
|
|
3522
3522
|
}
|
|
3523
3523
|
/** Parameters for the `deleteDocument` operation. */
|
|
3524
|
-
interface DeleteDocumentParams {
|
|
3524
|
+
export interface DeleteDocumentParams extends DefaultParams {
|
|
3525
3525
|
/** Path parameter to specify the database name. */
|
|
3526
3526
|
db: string;
|
|
3527
3527
|
/** Path parameter to specify the document ID. */
|
|
@@ -3534,17 +3534,16 @@ declare namespace CloudantV1 {
|
|
|
3534
3534
|
batch?: DeleteDocumentConstants.Batch | string;
|
|
3535
3535
|
/** Query parameter to specify a document revision. */
|
|
3536
3536
|
rev?: string;
|
|
3537
|
-
headers?: OutgoingHttpHeaders;
|
|
3538
3537
|
}
|
|
3539
3538
|
/** Constants for the `deleteDocument` operation. */
|
|
3540
|
-
namespace DeleteDocumentConstants {
|
|
3539
|
+
export namespace DeleteDocumentConstants {
|
|
3541
3540
|
/** Query parameter to specify whether to store in batch mode. The server will respond with a HTTP 202 Accepted response code immediately. */
|
|
3542
3541
|
enum Batch {
|
|
3543
3542
|
OK = "ok"
|
|
3544
3543
|
}
|
|
3545
3544
|
}
|
|
3546
3545
|
/** Parameters for the `getDocument` operation. */
|
|
3547
|
-
interface GetDocumentParams {
|
|
3546
|
+
export interface GetDocumentParams extends DefaultParams {
|
|
3548
3547
|
/** Path parameter to specify the database name. */
|
|
3549
3548
|
db: string;
|
|
3550
3549
|
/** Path parameter to specify the document ID. */
|
|
@@ -3581,10 +3580,9 @@ declare namespace CloudantV1 {
|
|
|
3581
3580
|
revs?: boolean;
|
|
3582
3581
|
/** Query parameter to specify whether to includes detailed information for all known document revisions. */
|
|
3583
3582
|
revsInfo?: boolean;
|
|
3584
|
-
headers?: OutgoingHttpHeaders;
|
|
3585
3583
|
}
|
|
3586
3584
|
/** Parameters for the `getDocumentAsMixed` operation. */
|
|
3587
|
-
interface GetDocumentAsMixedParams {
|
|
3585
|
+
export interface GetDocumentAsMixedParams extends DefaultParams {
|
|
3588
3586
|
/** Path parameter to specify the database name. */
|
|
3589
3587
|
db: string;
|
|
3590
3588
|
/** Path parameter to specify the document ID. */
|
|
@@ -3621,10 +3619,9 @@ declare namespace CloudantV1 {
|
|
|
3621
3619
|
revs?: boolean;
|
|
3622
3620
|
/** Query parameter to specify whether to includes detailed information for all known document revisions. */
|
|
3623
3621
|
revsInfo?: boolean;
|
|
3624
|
-
headers?: OutgoingHttpHeaders;
|
|
3625
3622
|
}
|
|
3626
3623
|
/** Parameters for the `getDocumentAsRelated` operation. */
|
|
3627
|
-
interface GetDocumentAsRelatedParams {
|
|
3624
|
+
export interface GetDocumentAsRelatedParams extends DefaultParams {
|
|
3628
3625
|
/** Path parameter to specify the database name. */
|
|
3629
3626
|
db: string;
|
|
3630
3627
|
/** Path parameter to specify the document ID. */
|
|
@@ -3661,10 +3658,9 @@ declare namespace CloudantV1 {
|
|
|
3661
3658
|
revs?: boolean;
|
|
3662
3659
|
/** Query parameter to specify whether to includes detailed information for all known document revisions. */
|
|
3663
3660
|
revsInfo?: boolean;
|
|
3664
|
-
headers?: OutgoingHttpHeaders;
|
|
3665
3661
|
}
|
|
3666
3662
|
/** Parameters for the `getDocumentAsStream` operation. */
|
|
3667
|
-
interface GetDocumentAsStreamParams {
|
|
3663
|
+
export interface GetDocumentAsStreamParams extends DefaultParams {
|
|
3668
3664
|
/** Path parameter to specify the database name. */
|
|
3669
3665
|
db: string;
|
|
3670
3666
|
/** Path parameter to specify the document ID. */
|
|
@@ -3701,10 +3697,9 @@ declare namespace CloudantV1 {
|
|
|
3701
3697
|
revs?: boolean;
|
|
3702
3698
|
/** Query parameter to specify whether to includes detailed information for all known document revisions. */
|
|
3703
3699
|
revsInfo?: boolean;
|
|
3704
|
-
headers?: OutgoingHttpHeaders;
|
|
3705
3700
|
}
|
|
3706
3701
|
/** Parameters for the `putDocument` operation. */
|
|
3707
|
-
interface PutDocumentParams {
|
|
3702
|
+
export interface PutDocumentParams extends DefaultParams {
|
|
3708
3703
|
/** Path parameter to specify the database name. */
|
|
3709
3704
|
db: string;
|
|
3710
3705
|
/** Path parameter to specify the document ID. */
|
|
@@ -3729,10 +3724,9 @@ declare namespace CloudantV1 {
|
|
|
3729
3724
|
newEdits?: boolean;
|
|
3730
3725
|
/** Query parameter to specify a document revision. */
|
|
3731
3726
|
rev?: string;
|
|
3732
|
-
headers?: OutgoingHttpHeaders;
|
|
3733
3727
|
}
|
|
3734
3728
|
/** Constants for the `putDocument` operation. */
|
|
3735
|
-
namespace PutDocumentConstants {
|
|
3729
|
+
export namespace PutDocumentConstants {
|
|
3736
3730
|
/** The type of the input. */
|
|
3737
3731
|
enum ContentType {
|
|
3738
3732
|
APPLICATION_JSON = "application/json",
|
|
@@ -3746,7 +3740,7 @@ declare namespace CloudantV1 {
|
|
|
3746
3740
|
}
|
|
3747
3741
|
}
|
|
3748
3742
|
/** Parameters for the `headDesignDocument` operation. */
|
|
3749
|
-
interface HeadDesignDocumentParams {
|
|
3743
|
+
export interface HeadDesignDocumentParams extends DefaultParams {
|
|
3750
3744
|
/** Path parameter to specify the database name. */
|
|
3751
3745
|
db: string;
|
|
3752
3746
|
/** Path parameter to specify the design document name. The design document name is the design document ID
|
|
@@ -3755,10 +3749,9 @@ declare namespace CloudantV1 {
|
|
|
3755
3749
|
ddoc: string;
|
|
3756
3750
|
/** Header parameter for a conditional HTTP request not matching an ETag. */
|
|
3757
3751
|
ifNoneMatch?: string;
|
|
3758
|
-
headers?: OutgoingHttpHeaders;
|
|
3759
3752
|
}
|
|
3760
3753
|
/** Parameters for the `deleteDesignDocument` operation. */
|
|
3761
|
-
interface DeleteDesignDocumentParams {
|
|
3754
|
+
export interface DeleteDesignDocumentParams extends DefaultParams {
|
|
3762
3755
|
/** Path parameter to specify the database name. */
|
|
3763
3756
|
db: string;
|
|
3764
3757
|
/** Path parameter to specify the design document name. The design document name is the design document ID
|
|
@@ -3773,17 +3766,16 @@ declare namespace CloudantV1 {
|
|
|
3773
3766
|
batch?: DeleteDesignDocumentConstants.Batch | string;
|
|
3774
3767
|
/** Query parameter to specify a document revision. */
|
|
3775
3768
|
rev?: string;
|
|
3776
|
-
headers?: OutgoingHttpHeaders;
|
|
3777
3769
|
}
|
|
3778
3770
|
/** Constants for the `deleteDesignDocument` operation. */
|
|
3779
|
-
namespace DeleteDesignDocumentConstants {
|
|
3771
|
+
export namespace DeleteDesignDocumentConstants {
|
|
3780
3772
|
/** Query parameter to specify whether to store in batch mode. The server will respond with a HTTP 202 Accepted response code immediately. */
|
|
3781
3773
|
enum Batch {
|
|
3782
3774
|
OK = "ok"
|
|
3783
3775
|
}
|
|
3784
3776
|
}
|
|
3785
3777
|
/** Parameters for the `getDesignDocument` operation. */
|
|
3786
|
-
interface GetDesignDocumentParams {
|
|
3778
|
+
export interface GetDesignDocumentParams extends DefaultParams {
|
|
3787
3779
|
/** Path parameter to specify the database name. */
|
|
3788
3780
|
db: string;
|
|
3789
3781
|
/** Path parameter to specify the design document name. The design document name is the design document ID
|
|
@@ -3822,10 +3814,9 @@ declare namespace CloudantV1 {
|
|
|
3822
3814
|
revs?: boolean;
|
|
3823
3815
|
/** Query parameter to specify whether to includes detailed information for all known document revisions. */
|
|
3824
3816
|
revsInfo?: boolean;
|
|
3825
|
-
headers?: OutgoingHttpHeaders;
|
|
3826
3817
|
}
|
|
3827
3818
|
/** Parameters for the `putDesignDocument` operation. */
|
|
3828
|
-
interface PutDesignDocumentParams {
|
|
3819
|
+
export interface PutDesignDocumentParams extends DefaultParams {
|
|
3829
3820
|
/** Path parameter to specify the database name. */
|
|
3830
3821
|
db: string;
|
|
3831
3822
|
/** Path parameter to specify the design document name. The design document name is the design document ID
|
|
@@ -3850,27 +3841,25 @@ declare namespace CloudantV1 {
|
|
|
3850
3841
|
newEdits?: boolean;
|
|
3851
3842
|
/** Query parameter to specify a document revision. */
|
|
3852
3843
|
rev?: string;
|
|
3853
|
-
headers?: OutgoingHttpHeaders;
|
|
3854
3844
|
}
|
|
3855
3845
|
/** Constants for the `putDesignDocument` operation. */
|
|
3856
|
-
namespace PutDesignDocumentConstants {
|
|
3846
|
+
export namespace PutDesignDocumentConstants {
|
|
3857
3847
|
/** Query parameter to specify whether to store in batch mode. The server will respond with a HTTP 202 Accepted response code immediately. */
|
|
3858
3848
|
enum Batch {
|
|
3859
3849
|
OK = "ok"
|
|
3860
3850
|
}
|
|
3861
3851
|
}
|
|
3862
3852
|
/** Parameters for the `getDesignDocumentInformation` operation. */
|
|
3863
|
-
interface GetDesignDocumentInformationParams {
|
|
3853
|
+
export interface GetDesignDocumentInformationParams extends DefaultParams {
|
|
3864
3854
|
/** Path parameter to specify the database name. */
|
|
3865
3855
|
db: string;
|
|
3866
3856
|
/** Path parameter to specify the design document name. The design document name is the design document ID
|
|
3867
3857
|
* excluding the `_design/` prefix.
|
|
3868
3858
|
*/
|
|
3869
3859
|
ddoc: string;
|
|
3870
|
-
headers?: OutgoingHttpHeaders;
|
|
3871
3860
|
}
|
|
3872
3861
|
/** Parameters for the `postDesignDocs` operation. */
|
|
3873
|
-
interface PostDesignDocsParams {
|
|
3862
|
+
export interface PostDesignDocsParams extends DefaultParams {
|
|
3874
3863
|
/** Path parameter to specify the database name. */
|
|
3875
3864
|
db: string;
|
|
3876
3865
|
/** Parameter to specify whether to include the encoding information in attachment stubs if the particular
|
|
@@ -3905,10 +3894,9 @@ declare namespace CloudantV1 {
|
|
|
3905
3894
|
keys?: string[];
|
|
3906
3895
|
/** Schema for a document ID. */
|
|
3907
3896
|
startKey?: string;
|
|
3908
|
-
headers?: OutgoingHttpHeaders;
|
|
3909
3897
|
}
|
|
3910
3898
|
/** Parameters for the `postDesignDocsQueries` operation. */
|
|
3911
|
-
interface PostDesignDocsQueriesParams {
|
|
3899
|
+
export interface PostDesignDocsQueriesParams extends DefaultParams {
|
|
3912
3900
|
/** Path parameter to specify the database name. */
|
|
3913
3901
|
db: string;
|
|
3914
3902
|
/** An array of query objects with fields for the parameters of each individual view query to be executed. The
|
|
@@ -3917,10 +3905,9 @@ declare namespace CloudantV1 {
|
|
|
3917
3905
|
queries: AllDocsQuery[];
|
|
3918
3906
|
/** The type of the response: application/json or application/octet-stream. */
|
|
3919
3907
|
accept?: PostDesignDocsQueriesConstants.Accept | string;
|
|
3920
|
-
headers?: OutgoingHttpHeaders;
|
|
3921
3908
|
}
|
|
3922
3909
|
/** Constants for the `postDesignDocsQueries` operation. */
|
|
3923
|
-
namespace PostDesignDocsQueriesConstants {
|
|
3910
|
+
export namespace PostDesignDocsQueriesConstants {
|
|
3924
3911
|
/** The type of the response: application/json or application/octet-stream. */
|
|
3925
3912
|
enum Accept {
|
|
3926
3913
|
APPLICATION_JSON = "application/json",
|
|
@@ -3928,7 +3915,7 @@ declare namespace CloudantV1 {
|
|
|
3928
3915
|
}
|
|
3929
3916
|
}
|
|
3930
3917
|
/** Parameters for the `postView` operation. */
|
|
3931
|
-
interface PostViewParams {
|
|
3918
|
+
export interface PostViewParams extends DefaultParams {
|
|
3932
3919
|
/** Path parameter to specify the database name. */
|
|
3933
3920
|
db: string;
|
|
3934
3921
|
/** Path parameter to specify the design document name. The design document name is the design document ID
|
|
@@ -4008,10 +3995,9 @@ declare namespace CloudantV1 {
|
|
|
4008
3995
|
* * `lazy` - Return the view results without waiting for an update, but update them immediately after the request.
|
|
4009
3996
|
*/
|
|
4010
3997
|
update?: PostViewConstants.Update | string;
|
|
4011
|
-
headers?: OutgoingHttpHeaders;
|
|
4012
3998
|
}
|
|
4013
3999
|
/** Constants for the `postView` operation. */
|
|
4014
|
-
namespace PostViewConstants {
|
|
4000
|
+
export namespace PostViewConstants {
|
|
4015
4001
|
/** Parameter to specify whether or not the view in question should be updated prior to responding to the user. * `true` - Return results after the view is updated. * `false` - Return results without updating the view. * `lazy` - Return the view results without waiting for an update, but update them immediately after the request. */
|
|
4016
4002
|
enum Update {
|
|
4017
4003
|
TRUE = "true",
|
|
@@ -4020,7 +4006,7 @@ declare namespace CloudantV1 {
|
|
|
4020
4006
|
}
|
|
4021
4007
|
}
|
|
4022
4008
|
/** Parameters for the `postViewAsStream` operation. */
|
|
4023
|
-
interface PostViewAsStreamParams {
|
|
4009
|
+
export interface PostViewAsStreamParams extends DefaultParams {
|
|
4024
4010
|
/** Path parameter to specify the database name. */
|
|
4025
4011
|
db: string;
|
|
4026
4012
|
/** Path parameter to specify the design document name. The design document name is the design document ID
|
|
@@ -4100,10 +4086,9 @@ declare namespace CloudantV1 {
|
|
|
4100
4086
|
* * `lazy` - Return the view results without waiting for an update, but update them immediately after the request.
|
|
4101
4087
|
*/
|
|
4102
4088
|
update?: PostViewAsStreamConstants.Update | string;
|
|
4103
|
-
headers?: OutgoingHttpHeaders;
|
|
4104
4089
|
}
|
|
4105
4090
|
/** Constants for the `postViewAsStream` operation. */
|
|
4106
|
-
namespace PostViewAsStreamConstants {
|
|
4091
|
+
export namespace PostViewAsStreamConstants {
|
|
4107
4092
|
/** Parameter to specify whether or not the view in question should be updated prior to responding to the user. * `true` - Return results after the view is updated. * `false` - Return results without updating the view. * `lazy` - Return the view results without waiting for an update, but update them immediately after the request. */
|
|
4108
4093
|
enum Update {
|
|
4109
4094
|
TRUE = "true",
|
|
@@ -4112,7 +4097,7 @@ declare namespace CloudantV1 {
|
|
|
4112
4097
|
}
|
|
4113
4098
|
}
|
|
4114
4099
|
/** Parameters for the `postViewQueries` operation. */
|
|
4115
|
-
interface PostViewQueriesParams {
|
|
4100
|
+
export interface PostViewQueriesParams extends DefaultParams {
|
|
4116
4101
|
/** Path parameter to specify the database name. */
|
|
4117
4102
|
db: string;
|
|
4118
4103
|
/** Path parameter to specify the design document name. The design document name is the design document ID
|
|
@@ -4125,10 +4110,9 @@ declare namespace CloudantV1 {
|
|
|
4125
4110
|
* field names and their meaning are the same as the query parameters of a regular view request.
|
|
4126
4111
|
*/
|
|
4127
4112
|
queries: ViewQuery[];
|
|
4128
|
-
headers?: OutgoingHttpHeaders;
|
|
4129
4113
|
}
|
|
4130
4114
|
/** Parameters for the `postViewQueriesAsStream` operation. */
|
|
4131
|
-
interface PostViewQueriesAsStreamParams {
|
|
4115
|
+
export interface PostViewQueriesAsStreamParams extends DefaultParams {
|
|
4132
4116
|
/** Path parameter to specify the database name. */
|
|
4133
4117
|
db: string;
|
|
4134
4118
|
/** Path parameter to specify the design document name. The design document name is the design document ID
|
|
@@ -4141,18 +4125,16 @@ declare namespace CloudantV1 {
|
|
|
4141
4125
|
* field names and their meaning are the same as the query parameters of a regular view request.
|
|
4142
4126
|
*/
|
|
4143
4127
|
queries: ViewQuery[];
|
|
4144
|
-
headers?: OutgoingHttpHeaders;
|
|
4145
4128
|
}
|
|
4146
4129
|
/** Parameters for the `getPartitionInformation` operation. */
|
|
4147
|
-
interface GetPartitionInformationParams {
|
|
4130
|
+
export interface GetPartitionInformationParams extends DefaultParams {
|
|
4148
4131
|
/** Path parameter to specify the database name. */
|
|
4149
4132
|
db: string;
|
|
4150
4133
|
/** Path parameter to specify the database partition key. */
|
|
4151
4134
|
partitionKey: string;
|
|
4152
|
-
headers?: OutgoingHttpHeaders;
|
|
4153
4135
|
}
|
|
4154
4136
|
/** Parameters for the `postPartitionAllDocs` operation. */
|
|
4155
|
-
interface PostPartitionAllDocsParams {
|
|
4137
|
+
export interface PostPartitionAllDocsParams extends DefaultParams {
|
|
4156
4138
|
/** Path parameter to specify the database name. */
|
|
4157
4139
|
db: string;
|
|
4158
4140
|
/** Path parameter to specify the database partition key. */
|
|
@@ -4189,10 +4171,9 @@ declare namespace CloudantV1 {
|
|
|
4189
4171
|
keys?: string[];
|
|
4190
4172
|
/** Schema for a document ID. */
|
|
4191
4173
|
startKey?: string;
|
|
4192
|
-
headers?: OutgoingHttpHeaders;
|
|
4193
4174
|
}
|
|
4194
4175
|
/** Parameters for the `postPartitionAllDocsAsStream` operation. */
|
|
4195
|
-
interface PostPartitionAllDocsAsStreamParams {
|
|
4176
|
+
export interface PostPartitionAllDocsAsStreamParams extends DefaultParams {
|
|
4196
4177
|
/** Path parameter to specify the database name. */
|
|
4197
4178
|
db: string;
|
|
4198
4179
|
/** Path parameter to specify the database partition key. */
|
|
@@ -4229,10 +4210,9 @@ declare namespace CloudantV1 {
|
|
|
4229
4210
|
keys?: string[];
|
|
4230
4211
|
/** Schema for a document ID. */
|
|
4231
4212
|
startKey?: string;
|
|
4232
|
-
headers?: OutgoingHttpHeaders;
|
|
4233
4213
|
}
|
|
4234
4214
|
/** Parameters for the `postPartitionSearch` operation. */
|
|
4235
|
-
interface PostPartitionSearchParams {
|
|
4215
|
+
export interface PostPartitionSearchParams extends DefaultParams {
|
|
4236
4216
|
/** Path parameter to specify the database name. */
|
|
4237
4217
|
db: string;
|
|
4238
4218
|
/** Path parameter to specify the database partition key. */
|
|
@@ -4280,17 +4260,16 @@ declare namespace CloudantV1 {
|
|
|
4280
4260
|
sort?: string[];
|
|
4281
4261
|
/** Do not wait for the index to finish building to return results. */
|
|
4282
4262
|
stale?: PostPartitionSearchConstants.Stale | string;
|
|
4283
|
-
headers?: OutgoingHttpHeaders;
|
|
4284
4263
|
}
|
|
4285
4264
|
/** Constants for the `postPartitionSearch` operation. */
|
|
4286
|
-
namespace PostPartitionSearchConstants {
|
|
4265
|
+
export namespace PostPartitionSearchConstants {
|
|
4287
4266
|
/** Do not wait for the index to finish building to return results. */
|
|
4288
4267
|
enum Stale {
|
|
4289
4268
|
OK = "ok"
|
|
4290
4269
|
}
|
|
4291
4270
|
}
|
|
4292
4271
|
/** Parameters for the `postPartitionSearchAsStream` operation. */
|
|
4293
|
-
interface PostPartitionSearchAsStreamParams {
|
|
4272
|
+
export interface PostPartitionSearchAsStreamParams extends DefaultParams {
|
|
4294
4273
|
/** Path parameter to specify the database name. */
|
|
4295
4274
|
db: string;
|
|
4296
4275
|
/** Path parameter to specify the database partition key. */
|
|
@@ -4338,17 +4317,16 @@ declare namespace CloudantV1 {
|
|
|
4338
4317
|
sort?: string[];
|
|
4339
4318
|
/** Do not wait for the index to finish building to return results. */
|
|
4340
4319
|
stale?: PostPartitionSearchAsStreamConstants.Stale | string;
|
|
4341
|
-
headers?: OutgoingHttpHeaders;
|
|
4342
4320
|
}
|
|
4343
4321
|
/** Constants for the `postPartitionSearchAsStream` operation. */
|
|
4344
|
-
namespace PostPartitionSearchAsStreamConstants {
|
|
4322
|
+
export namespace PostPartitionSearchAsStreamConstants {
|
|
4345
4323
|
/** Do not wait for the index to finish building to return results. */
|
|
4346
4324
|
enum Stale {
|
|
4347
4325
|
OK = "ok"
|
|
4348
4326
|
}
|
|
4349
4327
|
}
|
|
4350
4328
|
/** Parameters for the `postPartitionView` operation. */
|
|
4351
|
-
interface PostPartitionViewParams {
|
|
4329
|
+
export interface PostPartitionViewParams extends DefaultParams {
|
|
4352
4330
|
/** Path parameter to specify the database name. */
|
|
4353
4331
|
db: string;
|
|
4354
4332
|
/** Path parameter to specify the database partition key. */
|
|
@@ -4422,10 +4400,9 @@ declare namespace CloudantV1 {
|
|
|
4422
4400
|
* * `lazy` - Return the view results without waiting for an update, but update them immediately after the request.
|
|
4423
4401
|
*/
|
|
4424
4402
|
update?: PostPartitionViewConstants.Update | string;
|
|
4425
|
-
headers?: OutgoingHttpHeaders;
|
|
4426
4403
|
}
|
|
4427
4404
|
/** Constants for the `postPartitionView` operation. */
|
|
4428
|
-
namespace PostPartitionViewConstants {
|
|
4405
|
+
export namespace PostPartitionViewConstants {
|
|
4429
4406
|
/** Parameter to specify whether or not the view in question should be updated prior to responding to the user. * `true` - Return results after the view is updated. * `false` - Return results without updating the view. * `lazy` - Return the view results without waiting for an update, but update them immediately after the request. */
|
|
4430
4407
|
enum Update {
|
|
4431
4408
|
TRUE = "true",
|
|
@@ -4434,7 +4411,7 @@ declare namespace CloudantV1 {
|
|
|
4434
4411
|
}
|
|
4435
4412
|
}
|
|
4436
4413
|
/** Parameters for the `postPartitionViewAsStream` operation. */
|
|
4437
|
-
interface PostPartitionViewAsStreamParams {
|
|
4414
|
+
export interface PostPartitionViewAsStreamParams extends DefaultParams {
|
|
4438
4415
|
/** Path parameter to specify the database name. */
|
|
4439
4416
|
db: string;
|
|
4440
4417
|
/** Path parameter to specify the database partition key. */
|
|
@@ -4508,10 +4485,9 @@ declare namespace CloudantV1 {
|
|
|
4508
4485
|
* * `lazy` - Return the view results without waiting for an update, but update them immediately after the request.
|
|
4509
4486
|
*/
|
|
4510
4487
|
update?: PostPartitionViewAsStreamConstants.Update | string;
|
|
4511
|
-
headers?: OutgoingHttpHeaders;
|
|
4512
4488
|
}
|
|
4513
4489
|
/** Constants for the `postPartitionViewAsStream` operation. */
|
|
4514
|
-
namespace PostPartitionViewAsStreamConstants {
|
|
4490
|
+
export namespace PostPartitionViewAsStreamConstants {
|
|
4515
4491
|
/** Parameter to specify whether or not the view in question should be updated prior to responding to the user. * `true` - Return results after the view is updated. * `false` - Return results without updating the view. * `lazy` - Return the view results without waiting for an update, but update them immediately after the request. */
|
|
4516
4492
|
enum Update {
|
|
4517
4493
|
TRUE = "true",
|
|
@@ -4520,7 +4496,7 @@ declare namespace CloudantV1 {
|
|
|
4520
4496
|
}
|
|
4521
4497
|
}
|
|
4522
4498
|
/** Parameters for the `postPartitionExplain` operation. */
|
|
4523
|
-
interface PostPartitionExplainParams {
|
|
4499
|
+
export interface PostPartitionExplainParams extends DefaultParams {
|
|
4524
4500
|
/** Path parameter to specify the database name. */
|
|
4525
4501
|
db: string;
|
|
4526
4502
|
/** Path parameter to specify the database partition key. */
|
|
@@ -4608,10 +4584,9 @@ declare namespace CloudantV1 {
|
|
|
4608
4584
|
* the server responds instead with a `400` status code if the requested index is unsuitable to answer the query.
|
|
4609
4585
|
*/
|
|
4610
4586
|
useIndex?: string[];
|
|
4611
|
-
headers?: OutgoingHttpHeaders;
|
|
4612
4587
|
}
|
|
4613
4588
|
/** Constants for the `postPartitionExplain` operation. */
|
|
4614
|
-
namespace PostPartitionExplainConstants {
|
|
4589
|
+
export namespace PostPartitionExplainConstants {
|
|
4615
4590
|
/** Schema for a mapping of field name to sort direction. */
|
|
4616
4591
|
enum Sort {
|
|
4617
4592
|
ASC = "asc",
|
|
@@ -4625,7 +4600,7 @@ declare namespace CloudantV1 {
|
|
|
4625
4600
|
}
|
|
4626
4601
|
}
|
|
4627
4602
|
/** Parameters for the `postPartitionFind` operation. */
|
|
4628
|
-
interface PostPartitionFindParams {
|
|
4603
|
+
export interface PostPartitionFindParams extends DefaultParams {
|
|
4629
4604
|
/** Path parameter to specify the database name. */
|
|
4630
4605
|
db: string;
|
|
4631
4606
|
/** Path parameter to specify the database partition key. */
|
|
@@ -4713,10 +4688,9 @@ declare namespace CloudantV1 {
|
|
|
4713
4688
|
* the server responds instead with a `400` status code if the requested index is unsuitable to answer the query.
|
|
4714
4689
|
*/
|
|
4715
4690
|
useIndex?: string[];
|
|
4716
|
-
headers?: OutgoingHttpHeaders;
|
|
4717
4691
|
}
|
|
4718
4692
|
/** Constants for the `postPartitionFind` operation. */
|
|
4719
|
-
namespace PostPartitionFindConstants {
|
|
4693
|
+
export namespace PostPartitionFindConstants {
|
|
4720
4694
|
/** Schema for a mapping of field name to sort direction. */
|
|
4721
4695
|
enum Sort {
|
|
4722
4696
|
ASC = "asc",
|
|
@@ -4730,7 +4704,7 @@ declare namespace CloudantV1 {
|
|
|
4730
4704
|
}
|
|
4731
4705
|
}
|
|
4732
4706
|
/** Parameters for the `postPartitionFindAsStream` operation. */
|
|
4733
|
-
interface PostPartitionFindAsStreamParams {
|
|
4707
|
+
export interface PostPartitionFindAsStreamParams extends DefaultParams {
|
|
4734
4708
|
/** Path parameter to specify the database name. */
|
|
4735
4709
|
db: string;
|
|
4736
4710
|
/** Path parameter to specify the database partition key. */
|
|
@@ -4818,10 +4792,9 @@ declare namespace CloudantV1 {
|
|
|
4818
4792
|
* the server responds instead with a `400` status code if the requested index is unsuitable to answer the query.
|
|
4819
4793
|
*/
|
|
4820
4794
|
useIndex?: string[];
|
|
4821
|
-
headers?: OutgoingHttpHeaders;
|
|
4822
4795
|
}
|
|
4823
4796
|
/** Constants for the `postPartitionFindAsStream` operation. */
|
|
4824
|
-
namespace PostPartitionFindAsStreamConstants {
|
|
4797
|
+
export namespace PostPartitionFindAsStreamConstants {
|
|
4825
4798
|
/** Schema for a mapping of field name to sort direction. */
|
|
4826
4799
|
enum Sort {
|
|
4827
4800
|
ASC = "asc",
|
|
@@ -4835,7 +4808,7 @@ declare namespace CloudantV1 {
|
|
|
4835
4808
|
}
|
|
4836
4809
|
}
|
|
4837
4810
|
/** Parameters for the `postExplain` operation. */
|
|
4838
|
-
interface PostExplainParams {
|
|
4811
|
+
export interface PostExplainParams extends DefaultParams {
|
|
4839
4812
|
/** Path parameter to specify the database name. */
|
|
4840
4813
|
db: string;
|
|
4841
4814
|
/** JSON object describing criteria used to select documents. The selector specifies fields in the document, and
|
|
@@ -4927,10 +4900,9 @@ declare namespace CloudantV1 {
|
|
|
4927
4900
|
* stored locally with the index.
|
|
4928
4901
|
*/
|
|
4929
4902
|
r?: number;
|
|
4930
|
-
headers?: OutgoingHttpHeaders;
|
|
4931
4903
|
}
|
|
4932
4904
|
/** Constants for the `postExplain` operation. */
|
|
4933
|
-
namespace PostExplainConstants {
|
|
4905
|
+
export namespace PostExplainConstants {
|
|
4934
4906
|
/** Schema for a mapping of field name to sort direction. */
|
|
4935
4907
|
enum Sort {
|
|
4936
4908
|
ASC = "asc",
|
|
@@ -4944,7 +4916,7 @@ declare namespace CloudantV1 {
|
|
|
4944
4916
|
}
|
|
4945
4917
|
}
|
|
4946
4918
|
/** Parameters for the `postFind` operation. */
|
|
4947
|
-
interface PostFindParams {
|
|
4919
|
+
export interface PostFindParams extends DefaultParams {
|
|
4948
4920
|
/** Path parameter to specify the database name. */
|
|
4949
4921
|
db: string;
|
|
4950
4922
|
/** JSON object describing criteria used to select documents. The selector specifies fields in the document, and
|
|
@@ -5036,10 +5008,9 @@ declare namespace CloudantV1 {
|
|
|
5036
5008
|
* stored locally with the index.
|
|
5037
5009
|
*/
|
|
5038
5010
|
r?: number;
|
|
5039
|
-
headers?: OutgoingHttpHeaders;
|
|
5040
5011
|
}
|
|
5041
5012
|
/** Constants for the `postFind` operation. */
|
|
5042
|
-
namespace PostFindConstants {
|
|
5013
|
+
export namespace PostFindConstants {
|
|
5043
5014
|
/** Schema for a mapping of field name to sort direction. */
|
|
5044
5015
|
enum Sort {
|
|
5045
5016
|
ASC = "asc",
|
|
@@ -5053,7 +5024,7 @@ declare namespace CloudantV1 {
|
|
|
5053
5024
|
}
|
|
5054
5025
|
}
|
|
5055
5026
|
/** Parameters for the `postFindAsStream` operation. */
|
|
5056
|
-
interface PostFindAsStreamParams {
|
|
5027
|
+
export interface PostFindAsStreamParams extends DefaultParams {
|
|
5057
5028
|
/** Path parameter to specify the database name. */
|
|
5058
5029
|
db: string;
|
|
5059
5030
|
/** JSON object describing criteria used to select documents. The selector specifies fields in the document, and
|
|
@@ -5145,10 +5116,9 @@ declare namespace CloudantV1 {
|
|
|
5145
5116
|
* stored locally with the index.
|
|
5146
5117
|
*/
|
|
5147
5118
|
r?: number;
|
|
5148
|
-
headers?: OutgoingHttpHeaders;
|
|
5149
5119
|
}
|
|
5150
5120
|
/** Constants for the `postFindAsStream` operation. */
|
|
5151
|
-
namespace PostFindAsStreamConstants {
|
|
5121
|
+
export namespace PostFindAsStreamConstants {
|
|
5152
5122
|
/** Schema for a mapping of field name to sort direction. */
|
|
5153
5123
|
enum Sort {
|
|
5154
5124
|
ASC = "asc",
|
|
@@ -5162,13 +5132,12 @@ declare namespace CloudantV1 {
|
|
|
5162
5132
|
}
|
|
5163
5133
|
}
|
|
5164
5134
|
/** Parameters for the `getIndexesInformation` operation. */
|
|
5165
|
-
interface GetIndexesInformationParams {
|
|
5135
|
+
export interface GetIndexesInformationParams extends DefaultParams {
|
|
5166
5136
|
/** Path parameter to specify the database name. */
|
|
5167
5137
|
db: string;
|
|
5168
|
-
headers?: OutgoingHttpHeaders;
|
|
5169
5138
|
}
|
|
5170
5139
|
/** Parameters for the `postIndex` operation. */
|
|
5171
|
-
interface PostIndexParams {
|
|
5140
|
+
export interface PostIndexParams extends DefaultParams {
|
|
5172
5141
|
/** Path parameter to specify the database name. */
|
|
5173
5142
|
db: string;
|
|
5174
5143
|
/** Schema for a `json` or `text` query index definition. Indexes of type `text` have additional configuration
|
|
@@ -5189,10 +5158,9 @@ declare namespace CloudantV1 {
|
|
|
5189
5158
|
partitioned?: boolean;
|
|
5190
5159
|
/** Schema for the type of an index. */
|
|
5191
5160
|
type?: PostIndexConstants.Type | string;
|
|
5192
|
-
headers?: OutgoingHttpHeaders;
|
|
5193
5161
|
}
|
|
5194
5162
|
/** Constants for the `postIndex` operation. */
|
|
5195
|
-
namespace PostIndexConstants {
|
|
5163
|
+
export namespace PostIndexConstants {
|
|
5196
5164
|
/** Schema for the type of an index. */
|
|
5197
5165
|
enum Type {
|
|
5198
5166
|
JSON = "json",
|
|
@@ -5201,7 +5169,7 @@ declare namespace CloudantV1 {
|
|
|
5201
5169
|
}
|
|
5202
5170
|
}
|
|
5203
5171
|
/** Parameters for the `deleteIndex` operation. */
|
|
5204
|
-
interface DeleteIndexParams {
|
|
5172
|
+
export interface DeleteIndexParams extends DefaultParams {
|
|
5205
5173
|
/** Path parameter to specify the database name. */
|
|
5206
5174
|
db: string;
|
|
5207
5175
|
/** Path parameter to specify the design document name. The design document name is the design document ID
|
|
@@ -5212,10 +5180,9 @@ declare namespace CloudantV1 {
|
|
|
5212
5180
|
type: DeleteIndexConstants.Type | string;
|
|
5213
5181
|
/** Path parameter to specify the index name. */
|
|
5214
5182
|
index: string;
|
|
5215
|
-
headers?: OutgoingHttpHeaders;
|
|
5216
5183
|
}
|
|
5217
5184
|
/** Constants for the `deleteIndex` operation. */
|
|
5218
|
-
namespace DeleteIndexConstants {
|
|
5185
|
+
export namespace DeleteIndexConstants {
|
|
5219
5186
|
/** Path parameter to specify the index type. */
|
|
5220
5187
|
enum Type {
|
|
5221
5188
|
JSON = "json",
|
|
@@ -5224,15 +5191,14 @@ declare namespace CloudantV1 {
|
|
|
5224
5191
|
}
|
|
5225
5192
|
}
|
|
5226
5193
|
/** Parameters for the `postSearchAnalyze` operation. */
|
|
5227
|
-
interface PostSearchAnalyzeParams {
|
|
5194
|
+
export interface PostSearchAnalyzeParams extends DefaultParams {
|
|
5228
5195
|
/** The analyzer type that is being used at the tokenization. */
|
|
5229
5196
|
analyzer: PostSearchAnalyzeConstants.Analyzer | string;
|
|
5230
5197
|
/** The text to tokenize with the analyzer. */
|
|
5231
5198
|
text: string;
|
|
5232
|
-
headers?: OutgoingHttpHeaders;
|
|
5233
5199
|
}
|
|
5234
5200
|
/** Constants for the `postSearchAnalyze` operation. */
|
|
5235
|
-
namespace PostSearchAnalyzeConstants {
|
|
5201
|
+
export namespace PostSearchAnalyzeConstants {
|
|
5236
5202
|
/** The analyzer type that is being used at the tokenization. */
|
|
5237
5203
|
enum Analyzer {
|
|
5238
5204
|
ARABIC = "arabic",
|
|
@@ -5278,7 +5244,7 @@ declare namespace CloudantV1 {
|
|
|
5278
5244
|
}
|
|
5279
5245
|
}
|
|
5280
5246
|
/** Parameters for the `postSearch` operation. */
|
|
5281
|
-
interface PostSearchParams {
|
|
5247
|
+
export interface PostSearchParams extends DefaultParams {
|
|
5282
5248
|
/** Path parameter to specify the database name. */
|
|
5283
5249
|
db: string;
|
|
5284
5250
|
/** Path parameter to specify the design document name. The design document name is the design document ID
|
|
@@ -5354,17 +5320,16 @@ declare namespace CloudantV1 {
|
|
|
5354
5320
|
* ranges, for example "[0 TO 10]". This option is only available when making global queries.
|
|
5355
5321
|
*/
|
|
5356
5322
|
ranges?: JsonObject;
|
|
5357
|
-
headers?: OutgoingHttpHeaders;
|
|
5358
5323
|
}
|
|
5359
5324
|
/** Constants for the `postSearch` operation. */
|
|
5360
|
-
namespace PostSearchConstants {
|
|
5325
|
+
export namespace PostSearchConstants {
|
|
5361
5326
|
/** Do not wait for the index to finish building to return results. */
|
|
5362
5327
|
enum Stale {
|
|
5363
5328
|
OK = "ok"
|
|
5364
5329
|
}
|
|
5365
5330
|
}
|
|
5366
5331
|
/** Parameters for the `postSearchAsStream` operation. */
|
|
5367
|
-
interface PostSearchAsStreamParams {
|
|
5332
|
+
export interface PostSearchAsStreamParams extends DefaultParams {
|
|
5368
5333
|
/** Path parameter to specify the database name. */
|
|
5369
5334
|
db: string;
|
|
5370
5335
|
/** Path parameter to specify the design document name. The design document name is the design document ID
|
|
@@ -5440,17 +5405,16 @@ declare namespace CloudantV1 {
|
|
|
5440
5405
|
* ranges, for example "[0 TO 10]". This option is only available when making global queries.
|
|
5441
5406
|
*/
|
|
5442
5407
|
ranges?: JsonObject;
|
|
5443
|
-
headers?: OutgoingHttpHeaders;
|
|
5444
5408
|
}
|
|
5445
5409
|
/** Constants for the `postSearchAsStream` operation. */
|
|
5446
|
-
namespace PostSearchAsStreamConstants {
|
|
5410
|
+
export namespace PostSearchAsStreamConstants {
|
|
5447
5411
|
/** Do not wait for the index to finish building to return results. */
|
|
5448
5412
|
enum Stale {
|
|
5449
5413
|
OK = "ok"
|
|
5450
5414
|
}
|
|
5451
5415
|
}
|
|
5452
5416
|
/** Parameters for the `getSearchDiskSize` operation. */
|
|
5453
|
-
interface GetSearchDiskSizeParams {
|
|
5417
|
+
export interface GetSearchDiskSizeParams extends DefaultParams {
|
|
5454
5418
|
/** Path parameter to specify the database name. */
|
|
5455
5419
|
db: string;
|
|
5456
5420
|
/** Path parameter to specify the design document name. The design document name is the design document ID
|
|
@@ -5459,10 +5423,9 @@ declare namespace CloudantV1 {
|
|
|
5459
5423
|
ddoc: string;
|
|
5460
5424
|
/** Path parameter to specify the index name. */
|
|
5461
5425
|
index: string;
|
|
5462
|
-
headers?: OutgoingHttpHeaders;
|
|
5463
5426
|
}
|
|
5464
5427
|
/** Parameters for the `getSearchInfo` operation. */
|
|
5465
|
-
interface GetSearchInfoParams {
|
|
5428
|
+
export interface GetSearchInfoParams extends DefaultParams {
|
|
5466
5429
|
/** Path parameter to specify the database name. */
|
|
5467
5430
|
db: string;
|
|
5468
5431
|
/** Path parameter to specify the design document name. The design document name is the design document ID
|
|
@@ -5471,47 +5434,42 @@ declare namespace CloudantV1 {
|
|
|
5471
5434
|
ddoc: string;
|
|
5472
5435
|
/** Path parameter to specify the index name. */
|
|
5473
5436
|
index: string;
|
|
5474
|
-
headers?: OutgoingHttpHeaders;
|
|
5475
5437
|
}
|
|
5476
5438
|
/** Parameters for the `headReplicationDocument` operation. */
|
|
5477
|
-
interface HeadReplicationDocumentParams {
|
|
5439
|
+
export interface HeadReplicationDocumentParams extends DefaultParams {
|
|
5478
5440
|
/** Path parameter to specify the ID of the stored replication configuration in the `_replicator` database. */
|
|
5479
5441
|
docId: string;
|
|
5480
5442
|
/** Header parameter for a conditional HTTP request not matching an ETag. */
|
|
5481
5443
|
ifNoneMatch?: string;
|
|
5482
|
-
headers?: OutgoingHttpHeaders;
|
|
5483
5444
|
}
|
|
5484
5445
|
/** Parameters for the `headSchedulerDocument` operation. */
|
|
5485
|
-
interface HeadSchedulerDocumentParams {
|
|
5446
|
+
export interface HeadSchedulerDocumentParams extends DefaultParams {
|
|
5486
5447
|
/** Path parameter to specify the document ID. */
|
|
5487
5448
|
docId: string;
|
|
5488
|
-
headers?: OutgoingHttpHeaders;
|
|
5489
5449
|
}
|
|
5490
5450
|
/** Parameters for the `headSchedulerJob` operation. */
|
|
5491
|
-
interface HeadSchedulerJobParams {
|
|
5451
|
+
export interface HeadSchedulerJobParams extends DefaultParams {
|
|
5492
5452
|
/** Path parameter to specify the replication job id. */
|
|
5493
5453
|
jobId: string;
|
|
5494
|
-
headers?: OutgoingHttpHeaders;
|
|
5495
5454
|
}
|
|
5496
5455
|
/** Parameters for the `postReplicator` operation. */
|
|
5497
|
-
interface PostReplicatorParams {
|
|
5456
|
+
export interface PostReplicatorParams extends DefaultParams {
|
|
5498
5457
|
/** HTTP request body for replication operations. */
|
|
5499
5458
|
replicationDocument: ReplicationDocument;
|
|
5500
5459
|
/** Query parameter to specify whether to store in batch mode. The server will respond with a HTTP 202 Accepted
|
|
5501
5460
|
* response code immediately.
|
|
5502
5461
|
*/
|
|
5503
5462
|
batch?: PostReplicatorConstants.Batch | string;
|
|
5504
|
-
headers?: OutgoingHttpHeaders;
|
|
5505
5463
|
}
|
|
5506
5464
|
/** Constants for the `postReplicator` operation. */
|
|
5507
|
-
namespace PostReplicatorConstants {
|
|
5465
|
+
export namespace PostReplicatorConstants {
|
|
5508
5466
|
/** Query parameter to specify whether to store in batch mode. The server will respond with a HTTP 202 Accepted response code immediately. */
|
|
5509
5467
|
enum Batch {
|
|
5510
5468
|
OK = "ok"
|
|
5511
5469
|
}
|
|
5512
5470
|
}
|
|
5513
5471
|
/** Parameters for the `deleteReplicationDocument` operation. */
|
|
5514
|
-
interface DeleteReplicationDocumentParams {
|
|
5472
|
+
export interface DeleteReplicationDocumentParams extends DefaultParams {
|
|
5515
5473
|
/** Path parameter to specify the ID of the stored replication configuration in the `_replicator` database. */
|
|
5516
5474
|
docId: string;
|
|
5517
5475
|
/** Header parameter for a conditional HTTP request matching an ETag. */
|
|
@@ -5522,17 +5480,16 @@ declare namespace CloudantV1 {
|
|
|
5522
5480
|
batch?: DeleteReplicationDocumentConstants.Batch | string;
|
|
5523
5481
|
/** Query parameter to specify a document revision. */
|
|
5524
5482
|
rev?: string;
|
|
5525
|
-
headers?: OutgoingHttpHeaders;
|
|
5526
5483
|
}
|
|
5527
5484
|
/** Constants for the `deleteReplicationDocument` operation. */
|
|
5528
|
-
namespace DeleteReplicationDocumentConstants {
|
|
5485
|
+
export namespace DeleteReplicationDocumentConstants {
|
|
5529
5486
|
/** Query parameter to specify whether to store in batch mode. The server will respond with a HTTP 202 Accepted response code immediately. */
|
|
5530
5487
|
enum Batch {
|
|
5531
5488
|
OK = "ok"
|
|
5532
5489
|
}
|
|
5533
5490
|
}
|
|
5534
5491
|
/** Parameters for the `getReplicationDocument` operation. */
|
|
5535
|
-
interface GetReplicationDocumentParams {
|
|
5492
|
+
export interface GetReplicationDocumentParams extends DefaultParams {
|
|
5536
5493
|
/** Path parameter to specify the ID of the stored replication configuration in the `_replicator` database. */
|
|
5537
5494
|
docId: string;
|
|
5538
5495
|
/** Header parameter for a conditional HTTP request not matching an ETag. */
|
|
@@ -5567,10 +5524,9 @@ declare namespace CloudantV1 {
|
|
|
5567
5524
|
revs?: boolean;
|
|
5568
5525
|
/** Query parameter to specify whether to includes detailed information for all known document revisions. */
|
|
5569
5526
|
revsInfo?: boolean;
|
|
5570
|
-
headers?: OutgoingHttpHeaders;
|
|
5571
5527
|
}
|
|
5572
5528
|
/** Parameters for the `putReplicationDocument` operation. */
|
|
5573
|
-
interface PutReplicationDocumentParams {
|
|
5529
|
+
export interface PutReplicationDocumentParams extends DefaultParams {
|
|
5574
5530
|
/** Path parameter to specify the ID of the stored replication configuration in the `_replicator` database. */
|
|
5575
5531
|
docId: string;
|
|
5576
5532
|
/** HTTP request body for replication operations. */
|
|
@@ -5591,17 +5547,16 @@ declare namespace CloudantV1 {
|
|
|
5591
5547
|
newEdits?: boolean;
|
|
5592
5548
|
/** Query parameter to specify a document revision. */
|
|
5593
5549
|
rev?: string;
|
|
5594
|
-
headers?: OutgoingHttpHeaders;
|
|
5595
5550
|
}
|
|
5596
5551
|
/** Constants for the `putReplicationDocument` operation. */
|
|
5597
|
-
namespace PutReplicationDocumentConstants {
|
|
5552
|
+
export namespace PutReplicationDocumentConstants {
|
|
5598
5553
|
/** Query parameter to specify whether to store in batch mode. The server will respond with a HTTP 202 Accepted response code immediately. */
|
|
5599
5554
|
enum Batch {
|
|
5600
5555
|
OK = "ok"
|
|
5601
5556
|
}
|
|
5602
5557
|
}
|
|
5603
5558
|
/** Parameters for the `getSchedulerDocs` operation. */
|
|
5604
|
-
interface GetSchedulerDocsParams {
|
|
5559
|
+
export interface GetSchedulerDocsParams extends DefaultParams {
|
|
5605
5560
|
/** Query parameter to specify the number of returned documents to limit the result to. */
|
|
5606
5561
|
limit?: number;
|
|
5607
5562
|
/** Query parameter to specify the number of records before starting to return the results. */
|
|
@@ -5610,10 +5565,9 @@ declare namespace CloudantV1 {
|
|
|
5610
5565
|
* comma-delimited string.
|
|
5611
5566
|
*/
|
|
5612
5567
|
states?: GetSchedulerDocsConstants.States[] | string[];
|
|
5613
|
-
headers?: OutgoingHttpHeaders;
|
|
5614
5568
|
}
|
|
5615
5569
|
/** Constants for the `getSchedulerDocs` operation. */
|
|
5616
|
-
namespace GetSchedulerDocsConstants {
|
|
5570
|
+
export namespace GetSchedulerDocsConstants {
|
|
5617
5571
|
/** Query parameter to include only replication documents in the specified states. String must be a comma-delimited string. */
|
|
5618
5572
|
enum States {
|
|
5619
5573
|
INITIALIZING = "initializing",
|
|
@@ -5626,35 +5580,30 @@ declare namespace CloudantV1 {
|
|
|
5626
5580
|
}
|
|
5627
5581
|
}
|
|
5628
5582
|
/** Parameters for the `getSchedulerDocument` operation. */
|
|
5629
|
-
interface GetSchedulerDocumentParams {
|
|
5583
|
+
export interface GetSchedulerDocumentParams extends DefaultParams {
|
|
5630
5584
|
/** Path parameter to specify the document ID. */
|
|
5631
5585
|
docId: string;
|
|
5632
|
-
headers?: OutgoingHttpHeaders;
|
|
5633
5586
|
}
|
|
5634
5587
|
/** Parameters for the `getSchedulerJobs` operation. */
|
|
5635
|
-
interface GetSchedulerJobsParams {
|
|
5588
|
+
export interface GetSchedulerJobsParams extends DefaultParams {
|
|
5636
5589
|
/** Query parameter to specify the number of returned jobs to limit the result to. */
|
|
5637
5590
|
limit?: number;
|
|
5638
5591
|
/** Query parameter to specify the number of records before starting to return the results. */
|
|
5639
5592
|
skip?: number;
|
|
5640
|
-
headers?: OutgoingHttpHeaders;
|
|
5641
5593
|
}
|
|
5642
5594
|
/** Parameters for the `getSchedulerJob` operation. */
|
|
5643
|
-
interface GetSchedulerJobParams {
|
|
5595
|
+
export interface GetSchedulerJobParams extends DefaultParams {
|
|
5644
5596
|
/** Path parameter to specify the replication job id. */
|
|
5645
5597
|
jobId: string;
|
|
5646
|
-
headers?: OutgoingHttpHeaders;
|
|
5647
5598
|
}
|
|
5648
5599
|
/** Parameters for the `getSessionInformation` operation. */
|
|
5649
|
-
interface GetSessionInformationParams {
|
|
5650
|
-
headers?: OutgoingHttpHeaders;
|
|
5600
|
+
export interface GetSessionInformationParams extends DefaultParams {
|
|
5651
5601
|
}
|
|
5652
5602
|
/** Parameters for the `postApiKeys` operation. */
|
|
5653
|
-
interface PostApiKeysParams {
|
|
5654
|
-
headers?: OutgoingHttpHeaders;
|
|
5603
|
+
export interface PostApiKeysParams extends DefaultParams {
|
|
5655
5604
|
}
|
|
5656
5605
|
/** Parameters for the `putCloudantSecurityConfiguration` operation. */
|
|
5657
|
-
interface PutCloudantSecurityConfigurationParams {
|
|
5606
|
+
export interface PutCloudantSecurityConfigurationParams extends DefaultParams {
|
|
5658
5607
|
/** Path parameter to specify the database name. */
|
|
5659
5608
|
db: string;
|
|
5660
5609
|
/** Database permissions for Cloudant users and/or API keys. */
|
|
@@ -5665,10 +5614,9 @@ declare namespace CloudantV1 {
|
|
|
5665
5614
|
couchdbAuthOnly?: boolean;
|
|
5666
5615
|
/** Schema for names and roles to map to a database permission. */
|
|
5667
5616
|
members?: SecurityObject;
|
|
5668
|
-
headers?: OutgoingHttpHeaders;
|
|
5669
5617
|
}
|
|
5670
5618
|
/** Constants for the `putCloudantSecurityConfiguration` operation. */
|
|
5671
|
-
namespace PutCloudantSecurityConfigurationConstants {
|
|
5619
|
+
export namespace PutCloudantSecurityConfigurationConstants {
|
|
5672
5620
|
/** Database permissions for Cloudant users and/or API keys. */
|
|
5673
5621
|
enum Cloudant {
|
|
5674
5622
|
READER = "_reader",
|
|
@@ -5682,13 +5630,12 @@ declare namespace CloudantV1 {
|
|
|
5682
5630
|
}
|
|
5683
5631
|
}
|
|
5684
5632
|
/** Parameters for the `getSecurity` operation. */
|
|
5685
|
-
interface GetSecurityParams {
|
|
5633
|
+
export interface GetSecurityParams extends DefaultParams {
|
|
5686
5634
|
/** Path parameter to specify the database name. */
|
|
5687
5635
|
db: string;
|
|
5688
|
-
headers?: OutgoingHttpHeaders;
|
|
5689
5636
|
}
|
|
5690
5637
|
/** Parameters for the `putSecurity` operation. */
|
|
5691
|
-
interface PutSecurityParams {
|
|
5638
|
+
export interface PutSecurityParams extends DefaultParams {
|
|
5692
5639
|
/** Path parameter to specify the database name. */
|
|
5693
5640
|
db: string;
|
|
5694
5641
|
/** Schema for names and roles to map to a database permission. */
|
|
@@ -5699,10 +5646,9 @@ declare namespace CloudantV1 {
|
|
|
5699
5646
|
couchdbAuthOnly?: boolean;
|
|
5700
5647
|
/** Schema for names and roles to map to a database permission. */
|
|
5701
5648
|
members?: SecurityObject;
|
|
5702
|
-
headers?: OutgoingHttpHeaders;
|
|
5703
5649
|
}
|
|
5704
5650
|
/** Constants for the `putSecurity` operation. */
|
|
5705
|
-
namespace PutSecurityConstants {
|
|
5651
|
+
export namespace PutSecurityConstants {
|
|
5706
5652
|
/** Database permissions for Cloudant users and/or API keys. */
|
|
5707
5653
|
enum Cloudant {
|
|
5708
5654
|
READER = "_reader",
|
|
@@ -5716,11 +5662,10 @@ declare namespace CloudantV1 {
|
|
|
5716
5662
|
}
|
|
5717
5663
|
}
|
|
5718
5664
|
/** Parameters for the `getCorsInformation` operation. */
|
|
5719
|
-
interface GetCorsInformationParams {
|
|
5720
|
-
headers?: OutgoingHttpHeaders;
|
|
5665
|
+
export interface GetCorsInformationParams extends DefaultParams {
|
|
5721
5666
|
}
|
|
5722
5667
|
/** Parameters for the `putCorsConfiguration` operation. */
|
|
5723
|
-
interface PutCorsConfigurationParams {
|
|
5668
|
+
export interface PutCorsConfigurationParams extends DefaultParams {
|
|
5724
5669
|
/** An array of strings that contain allowed origin domains. You have to specify the full URL including the
|
|
5725
5670
|
* protocol. It is recommended that only the HTTPS protocol is used. Subdomains count as separate domains, so you
|
|
5726
5671
|
* have to specify all subdomains used.
|
|
@@ -5732,10 +5677,9 @@ declare namespace CloudantV1 {
|
|
|
5732
5677
|
allowCredentials?: boolean;
|
|
5733
5678
|
/** Boolean value to turn CORS on and off. */
|
|
5734
5679
|
enableCors?: boolean;
|
|
5735
|
-
headers?: OutgoingHttpHeaders;
|
|
5736
5680
|
}
|
|
5737
5681
|
/** Parameters for the `headAttachment` operation. */
|
|
5738
|
-
interface HeadAttachmentParams {
|
|
5682
|
+
export interface HeadAttachmentParams extends DefaultParams {
|
|
5739
5683
|
/** Path parameter to specify the database name. */
|
|
5740
5684
|
db: string;
|
|
5741
5685
|
/** Path parameter to specify the document ID. */
|
|
@@ -5748,10 +5692,9 @@ declare namespace CloudantV1 {
|
|
|
5748
5692
|
ifNoneMatch?: string;
|
|
5749
5693
|
/** Query parameter to specify a document revision. */
|
|
5750
5694
|
rev?: string;
|
|
5751
|
-
headers?: OutgoingHttpHeaders;
|
|
5752
5695
|
}
|
|
5753
5696
|
/** Parameters for the `deleteAttachment` operation. */
|
|
5754
|
-
interface DeleteAttachmentParams {
|
|
5697
|
+
export interface DeleteAttachmentParams extends DefaultParams {
|
|
5755
5698
|
/** Path parameter to specify the database name. */
|
|
5756
5699
|
db: string;
|
|
5757
5700
|
/** Path parameter to specify the document ID. */
|
|
@@ -5766,17 +5709,16 @@ declare namespace CloudantV1 {
|
|
|
5766
5709
|
* response code immediately.
|
|
5767
5710
|
*/
|
|
5768
5711
|
batch?: DeleteAttachmentConstants.Batch | string;
|
|
5769
|
-
headers?: OutgoingHttpHeaders;
|
|
5770
5712
|
}
|
|
5771
5713
|
/** Constants for the `deleteAttachment` operation. */
|
|
5772
|
-
namespace DeleteAttachmentConstants {
|
|
5714
|
+
export namespace DeleteAttachmentConstants {
|
|
5773
5715
|
/** Query parameter to specify whether to store in batch mode. The server will respond with a HTTP 202 Accepted response code immediately. */
|
|
5774
5716
|
enum Batch {
|
|
5775
5717
|
OK = "ok"
|
|
5776
5718
|
}
|
|
5777
5719
|
}
|
|
5778
5720
|
/** Parameters for the `getAttachment` operation. */
|
|
5779
|
-
interface GetAttachmentParams {
|
|
5721
|
+
export interface GetAttachmentParams extends DefaultParams {
|
|
5780
5722
|
/** Path parameter to specify the database name. */
|
|
5781
5723
|
db: string;
|
|
5782
5724
|
/** Path parameter to specify the document ID. */
|
|
@@ -5795,10 +5737,9 @@ declare namespace CloudantV1 {
|
|
|
5795
5737
|
range?: string;
|
|
5796
5738
|
/** Query parameter to specify a document revision. */
|
|
5797
5739
|
rev?: string;
|
|
5798
|
-
headers?: OutgoingHttpHeaders;
|
|
5799
5740
|
}
|
|
5800
5741
|
/** Parameters for the `putAttachment` operation. */
|
|
5801
|
-
interface PutAttachmentParams {
|
|
5742
|
+
export interface PutAttachmentParams extends DefaultParams {
|
|
5802
5743
|
/** Path parameter to specify the database name. */
|
|
5803
5744
|
db: string;
|
|
5804
5745
|
/** Path parameter to specify the document ID. */
|
|
@@ -5813,20 +5754,18 @@ declare namespace CloudantV1 {
|
|
|
5813
5754
|
ifMatch?: string;
|
|
5814
5755
|
/** Query parameter to specify a document revision. */
|
|
5815
5756
|
rev?: string;
|
|
5816
|
-
headers?: OutgoingHttpHeaders;
|
|
5817
5757
|
}
|
|
5818
5758
|
/** Parameters for the `headLocalDocument` operation. */
|
|
5819
|
-
interface HeadLocalDocumentParams {
|
|
5759
|
+
export interface HeadLocalDocumentParams extends DefaultParams {
|
|
5820
5760
|
/** Path parameter to specify the database name. */
|
|
5821
5761
|
db: string;
|
|
5822
5762
|
/** Path parameter to specify the document ID. */
|
|
5823
5763
|
docId: string;
|
|
5824
5764
|
/** Header parameter for a conditional HTTP request not matching an ETag. */
|
|
5825
5765
|
ifNoneMatch?: string;
|
|
5826
|
-
headers?: OutgoingHttpHeaders;
|
|
5827
5766
|
}
|
|
5828
5767
|
/** Parameters for the `deleteLocalDocument` operation. */
|
|
5829
|
-
interface DeleteLocalDocumentParams {
|
|
5768
|
+
export interface DeleteLocalDocumentParams extends DefaultParams {
|
|
5830
5769
|
/** Path parameter to specify the database name. */
|
|
5831
5770
|
db: string;
|
|
5832
5771
|
/** Path parameter to specify the document ID. */
|
|
@@ -5835,17 +5774,16 @@ declare namespace CloudantV1 {
|
|
|
5835
5774
|
* response code immediately.
|
|
5836
5775
|
*/
|
|
5837
5776
|
batch?: DeleteLocalDocumentConstants.Batch | string;
|
|
5838
|
-
headers?: OutgoingHttpHeaders;
|
|
5839
5777
|
}
|
|
5840
5778
|
/** Constants for the `deleteLocalDocument` operation. */
|
|
5841
|
-
namespace DeleteLocalDocumentConstants {
|
|
5779
|
+
export namespace DeleteLocalDocumentConstants {
|
|
5842
5780
|
/** Query parameter to specify whether to store in batch mode. The server will respond with a HTTP 202 Accepted response code immediately. */
|
|
5843
5781
|
enum Batch {
|
|
5844
5782
|
OK = "ok"
|
|
5845
5783
|
}
|
|
5846
5784
|
}
|
|
5847
5785
|
/** Parameters for the `getLocalDocument` operation. */
|
|
5848
|
-
interface GetLocalDocumentParams {
|
|
5786
|
+
export interface GetLocalDocumentParams extends DefaultParams {
|
|
5849
5787
|
/** Path parameter to specify the database name. */
|
|
5850
5788
|
db: string;
|
|
5851
5789
|
/** Path parameter to specify the document ID. */
|
|
@@ -5862,10 +5800,9 @@ declare namespace CloudantV1 {
|
|
|
5862
5800
|
attEncodingInfo?: boolean;
|
|
5863
5801
|
/** Query parameter to specify whether to include the last update sequence for the document. */
|
|
5864
5802
|
localSeq?: boolean;
|
|
5865
|
-
headers?: OutgoingHttpHeaders;
|
|
5866
5803
|
}
|
|
5867
5804
|
/** Constants for the `getLocalDocument` operation. */
|
|
5868
|
-
namespace GetLocalDocumentConstants {
|
|
5805
|
+
export namespace GetLocalDocumentConstants {
|
|
5869
5806
|
/** The type of the response: application/json, multipart/mixed, multipart/related, or application/octet-stream. */
|
|
5870
5807
|
enum Accept {
|
|
5871
5808
|
APPLICATION_JSON = "application/json",
|
|
@@ -5875,7 +5812,7 @@ declare namespace CloudantV1 {
|
|
|
5875
5812
|
}
|
|
5876
5813
|
}
|
|
5877
5814
|
/** Parameters for the `putLocalDocument` operation. */
|
|
5878
|
-
interface PutLocalDocumentParams {
|
|
5815
|
+
export interface PutLocalDocumentParams extends DefaultParams {
|
|
5879
5816
|
/** Path parameter to specify the database name. */
|
|
5880
5817
|
db: string;
|
|
5881
5818
|
/** Path parameter to specify the document ID. */
|
|
@@ -5888,10 +5825,9 @@ declare namespace CloudantV1 {
|
|
|
5888
5825
|
* response code immediately.
|
|
5889
5826
|
*/
|
|
5890
5827
|
batch?: PutLocalDocumentConstants.Batch | string;
|
|
5891
|
-
headers?: OutgoingHttpHeaders;
|
|
5892
5828
|
}
|
|
5893
5829
|
/** Constants for the `putLocalDocument` operation. */
|
|
5894
|
-
namespace PutLocalDocumentConstants {
|
|
5830
|
+
export namespace PutLocalDocumentConstants {
|
|
5895
5831
|
/** The type of the input. */
|
|
5896
5832
|
enum ContentType {
|
|
5897
5833
|
APPLICATION_JSON = "application/json",
|
|
@@ -5905,66 +5841,62 @@ declare namespace CloudantV1 {
|
|
|
5905
5841
|
}
|
|
5906
5842
|
}
|
|
5907
5843
|
/** Parameters for the `postRevsDiff` operation. */
|
|
5908
|
-
interface PostRevsDiffParams {
|
|
5844
|
+
export interface PostRevsDiffParams extends DefaultParams {
|
|
5909
5845
|
/** Path parameter to specify the database name. */
|
|
5910
5846
|
db: string;
|
|
5911
5847
|
/** HTTP request body for operations with Document revisions. */
|
|
5912
5848
|
documentRevisions: JsonObject;
|
|
5913
|
-
headers?: OutgoingHttpHeaders;
|
|
5914
5849
|
}
|
|
5915
5850
|
/** Parameters for the `getShardsInformation` operation. */
|
|
5916
|
-
interface GetShardsInformationParams {
|
|
5851
|
+
export interface GetShardsInformationParams extends DefaultParams {
|
|
5917
5852
|
/** Path parameter to specify the database name. */
|
|
5918
5853
|
db: string;
|
|
5919
|
-
headers?: OutgoingHttpHeaders;
|
|
5920
5854
|
}
|
|
5921
5855
|
/** Parameters for the `getDocumentShardsInfo` operation. */
|
|
5922
|
-
interface GetDocumentShardsInfoParams {
|
|
5856
|
+
export interface GetDocumentShardsInfoParams extends DefaultParams {
|
|
5923
5857
|
/** Path parameter to specify the database name. */
|
|
5924
5858
|
db: string;
|
|
5925
5859
|
/** Path parameter to specify the document ID. */
|
|
5926
5860
|
docId: string;
|
|
5927
|
-
headers?: OutgoingHttpHeaders;
|
|
5928
5861
|
}
|
|
5929
5862
|
/** Parameters for the `headUpInformation` operation. */
|
|
5930
|
-
interface HeadUpInformationParams {
|
|
5931
|
-
headers?: OutgoingHttpHeaders;
|
|
5863
|
+
export interface HeadUpInformationParams extends DefaultParams {
|
|
5932
5864
|
}
|
|
5933
5865
|
/** Parameters for the `getActiveTasks` operation. */
|
|
5934
|
-
interface GetActiveTasksParams {
|
|
5935
|
-
headers?: OutgoingHttpHeaders;
|
|
5866
|
+
export interface GetActiveTasksParams extends DefaultParams {
|
|
5936
5867
|
}
|
|
5937
5868
|
/** Parameters for the `getActivityTrackerEvents` operation. */
|
|
5938
|
-
interface GetActivityTrackerEventsParams {
|
|
5939
|
-
headers?: OutgoingHttpHeaders;
|
|
5869
|
+
export interface GetActivityTrackerEventsParams extends DefaultParams {
|
|
5940
5870
|
}
|
|
5941
5871
|
/** Parameters for the `postActivityTrackerEvents` operation. */
|
|
5942
|
-
interface PostActivityTrackerEventsParams {
|
|
5943
|
-
/** An array of event types
|
|
5872
|
+
export interface PostActivityTrackerEventsParams extends DefaultParams {
|
|
5873
|
+
/** An array of event types sent to IBM Cloud Activity Tracker Event Routing for the IBM Cloudant instance.
|
|
5944
5874
|
* "management" is a required element of this array.
|
|
5945
5875
|
*/
|
|
5946
5876
|
types: PostActivityTrackerEventsConstants.Types[] | string[];
|
|
5947
|
-
headers?: OutgoingHttpHeaders;
|
|
5948
5877
|
}
|
|
5949
5878
|
/** Constants for the `postActivityTrackerEvents` operation. */
|
|
5950
|
-
namespace PostActivityTrackerEventsConstants {
|
|
5879
|
+
export namespace PostActivityTrackerEventsConstants {
|
|
5951
5880
|
/** Types */
|
|
5952
5881
|
enum Types {
|
|
5953
5882
|
MANAGEMENT = "management",
|
|
5954
5883
|
DATA = "data"
|
|
5955
5884
|
}
|
|
5956
5885
|
}
|
|
5886
|
+
/** Parameters for the `getCapacityDatabasesInformation` operation. */
|
|
5887
|
+
export interface GetCapacityDatabasesInformationParams extends DefaultParams {
|
|
5888
|
+
}
|
|
5889
|
+
/** Parameters for the `getCurrentDatabasesInformation` operation. */
|
|
5890
|
+
export interface GetCurrentDatabasesInformationParams extends DefaultParams {
|
|
5891
|
+
}
|
|
5957
5892
|
/** Parameters for the `getCurrentThroughputInformation` operation. */
|
|
5958
|
-
interface GetCurrentThroughputInformationParams {
|
|
5959
|
-
headers?: OutgoingHttpHeaders;
|
|
5893
|
+
export interface GetCurrentThroughputInformationParams extends DefaultParams {
|
|
5960
5894
|
}
|
|
5961
5895
|
/** Parameters for the `getMembershipInformation` operation. */
|
|
5962
|
-
interface GetMembershipInformationParams {
|
|
5963
|
-
headers?: OutgoingHttpHeaders;
|
|
5896
|
+
export interface GetMembershipInformationParams extends DefaultParams {
|
|
5964
5897
|
}
|
|
5965
5898
|
/** Parameters for the `getUpInformation` operation. */
|
|
5966
|
-
interface GetUpInformationParams {
|
|
5967
|
-
headers?: OutgoingHttpHeaders;
|
|
5899
|
+
export interface GetUpInformationParams extends DefaultParams {
|
|
5968
5900
|
}
|
|
5969
5901
|
/*************************
|
|
5970
5902
|
* model interfaces
|
|
@@ -5972,7 +5904,7 @@ declare namespace CloudantV1 {
|
|
|
5972
5904
|
/**
|
|
5973
5905
|
* Schema for information about a running task.
|
|
5974
5906
|
*/
|
|
5975
|
-
class ActiveTask {
|
|
5907
|
+
export class ActiveTask {
|
|
5976
5908
|
/** The total count of attempted doc revisions fetched with `_bulk_get`. Available for `replication` type tasks. */
|
|
5977
5909
|
bulkGetAttempts?: number;
|
|
5978
5910
|
/** The total count of successful docs fetched with `_bulk_get`. Available for `replication` type tasks. */
|
|
@@ -6060,7 +5992,7 @@ declare namespace CloudantV1 {
|
|
|
6060
5992
|
static serialize(obj: any): ActiveTask.Transport;
|
|
6061
5993
|
static deserialize(obj: any): ActiveTask;
|
|
6062
5994
|
}
|
|
6063
|
-
namespace ActiveTask {
|
|
5995
|
+
export namespace ActiveTask {
|
|
6064
5996
|
namespace Constants {
|
|
6065
5997
|
/** The phase the active task is in. `docid_sort`, `docid_copy`, `document_copy` phases are available for `database_compaction`, while `ids` and `view` phases are available for `view_compaction` type tasks. */
|
|
6066
5998
|
enum Phase {
|
|
@@ -6126,19 +6058,19 @@ declare namespace CloudantV1 {
|
|
|
6126
6058
|
}
|
|
6127
6059
|
}
|
|
6128
6060
|
/**
|
|
6129
|
-
* Schema for
|
|
6061
|
+
* Schema for activity tracking events.
|
|
6130
6062
|
*/
|
|
6131
|
-
class ActivityTrackerEvents {
|
|
6132
|
-
/** An array of event types
|
|
6063
|
+
export class ActivityTrackerEvents {
|
|
6064
|
+
/** An array of event types sent to IBM Cloud Activity Tracker Event Routing for the IBM Cloudant instance.
|
|
6133
6065
|
* "management" is a required element of this array.
|
|
6134
6066
|
*/
|
|
6135
6067
|
types: ActivityTrackerEvents.Constants.Types[] | string[];
|
|
6136
6068
|
static serialize(obj: any): ActivityTrackerEvents.Transport;
|
|
6137
6069
|
static deserialize(obj: any): ActivityTrackerEvents;
|
|
6138
6070
|
}
|
|
6139
|
-
namespace ActivityTrackerEvents {
|
|
6071
|
+
export namespace ActivityTrackerEvents {
|
|
6140
6072
|
namespace Constants {
|
|
6141
|
-
/** An array of event types
|
|
6073
|
+
/** An array of event types sent to IBM Cloud Activity Tracker Event Routing for the IBM Cloudant instance. "management" is a required element of this array. */
|
|
6142
6074
|
enum Types {
|
|
6143
6075
|
MANAGEMENT = "management",
|
|
6144
6076
|
DATA = "data"
|
|
@@ -6151,7 +6083,7 @@ declare namespace CloudantV1 {
|
|
|
6151
6083
|
/**
|
|
6152
6084
|
* Schema for the result of an all documents queries operation.
|
|
6153
6085
|
*/
|
|
6154
|
-
class AllDocsQueriesResult {
|
|
6086
|
+
export class AllDocsQueriesResult {
|
|
6155
6087
|
/** An array of result objects - one for each query. Each result object contains the same fields as the response
|
|
6156
6088
|
* to a regular `/_all_docs` request.
|
|
6157
6089
|
*/
|
|
@@ -6159,7 +6091,7 @@ declare namespace CloudantV1 {
|
|
|
6159
6091
|
static serialize(obj: any): AllDocsQueriesResult.Transport;
|
|
6160
6092
|
static deserialize(obj: any): AllDocsQueriesResult;
|
|
6161
6093
|
}
|
|
6162
|
-
namespace AllDocsQueriesResult {
|
|
6094
|
+
export namespace AllDocsQueriesResult {
|
|
6163
6095
|
interface Transport {
|
|
6164
6096
|
results: AllDocsResult[];
|
|
6165
6097
|
}
|
|
@@ -6167,7 +6099,7 @@ declare namespace CloudantV1 {
|
|
|
6167
6099
|
/**
|
|
6168
6100
|
* Schema for an all documents query operation.
|
|
6169
6101
|
*/
|
|
6170
|
-
class AllDocsQuery {
|
|
6102
|
+
export class AllDocsQuery {
|
|
6171
6103
|
/** Parameter to specify whether to include the encoding information in attachment stubs if the particular
|
|
6172
6104
|
* attachment is compressed.
|
|
6173
6105
|
*/
|
|
@@ -6203,7 +6135,7 @@ declare namespace CloudantV1 {
|
|
|
6203
6135
|
static serialize(obj: any): AllDocsQuery.Transport;
|
|
6204
6136
|
static deserialize(obj: any): AllDocsQuery;
|
|
6205
6137
|
}
|
|
6206
|
-
namespace AllDocsQuery {
|
|
6138
|
+
export namespace AllDocsQuery {
|
|
6207
6139
|
interface Transport {
|
|
6208
6140
|
att_encoding_info?: boolean;
|
|
6209
6141
|
attachments?: boolean;
|
|
@@ -6223,7 +6155,7 @@ declare namespace CloudantV1 {
|
|
|
6223
6155
|
/**
|
|
6224
6156
|
* Schema for the result of an all documents operation.
|
|
6225
6157
|
*/
|
|
6226
|
-
class AllDocsResult {
|
|
6158
|
+
export class AllDocsResult {
|
|
6227
6159
|
/** Total number of document results. */
|
|
6228
6160
|
totalRows: number;
|
|
6229
6161
|
/** List of doc results. */
|
|
@@ -6233,7 +6165,7 @@ declare namespace CloudantV1 {
|
|
|
6233
6165
|
static serialize(obj: any): AllDocsResult.Transport;
|
|
6234
6166
|
static deserialize(obj: any): AllDocsResult;
|
|
6235
6167
|
}
|
|
6236
|
-
namespace AllDocsResult {
|
|
6168
|
+
export namespace AllDocsResult {
|
|
6237
6169
|
interface Transport {
|
|
6238
6170
|
total_rows: number;
|
|
6239
6171
|
rows: DocsResultRow[];
|
|
@@ -6243,7 +6175,7 @@ declare namespace CloudantV1 {
|
|
|
6243
6175
|
/**
|
|
6244
6176
|
* Schema for a full text search analyzer.
|
|
6245
6177
|
*/
|
|
6246
|
-
class Analyzer {
|
|
6178
|
+
export class Analyzer {
|
|
6247
6179
|
/** Schema for the name of the Apache Lucene analyzer to use for text indexing. The default value varies
|
|
6248
6180
|
* depending on the analyzer usage:
|
|
6249
6181
|
* * For search indexes the default is `standard` * For query text indexes the default is `keyword` * For a query
|
|
@@ -6255,33 +6187,35 @@ declare namespace CloudantV1 {
|
|
|
6255
6187
|
static serialize(obj: any): Analyzer.Transport;
|
|
6256
6188
|
static deserialize(obj: any): Analyzer;
|
|
6257
6189
|
}
|
|
6258
|
-
namespace Analyzer {
|
|
6190
|
+
export namespace Analyzer {
|
|
6259
6191
|
namespace Constants {
|
|
6260
6192
|
/** Schema for the name of the Apache Lucene analyzer to use for text indexing. The default value varies depending on the analyzer usage: * For search indexes the default is `standard` * For query text indexes the default is `keyword` * For a query text index default_field the default is `standard`. */
|
|
6261
6193
|
enum Name {
|
|
6262
6194
|
CLASSIC = "classic",
|
|
6263
6195
|
EMAIL = "email",
|
|
6264
6196
|
KEYWORD = "keyword",
|
|
6197
|
+
PERFIELD = "perfield",
|
|
6265
6198
|
SIMPLE = "simple",
|
|
6199
|
+
SIMPLE_ASCIIFOLDING = "simple_asciifolding",
|
|
6266
6200
|
STANDARD = "standard",
|
|
6267
6201
|
WHITESPACE = "whitespace",
|
|
6268
6202
|
ARABIC = "arabic",
|
|
6269
6203
|
ARMENIAN = "armenian",
|
|
6270
6204
|
BASQUE = "basque",
|
|
6271
|
-
BULGARIAN = "bulgarian",
|
|
6272
6205
|
BRAZILIAN = "brazilian",
|
|
6206
|
+
BULGARIAN = "bulgarian",
|
|
6273
6207
|
CATALAN = "catalan",
|
|
6274
|
-
CJK = "cjk",
|
|
6275
6208
|
CHINESE = "chinese",
|
|
6209
|
+
CJK = "cjk",
|
|
6276
6210
|
CZECH = "czech",
|
|
6277
6211
|
DANISH = "danish",
|
|
6278
6212
|
DUTCH = "dutch",
|
|
6279
6213
|
ENGLISH = "english",
|
|
6280
6214
|
FINNISH = "finnish",
|
|
6281
6215
|
FRENCH = "french",
|
|
6216
|
+
GALICIAN = "galician",
|
|
6282
6217
|
GERMAN = "german",
|
|
6283
6218
|
GREEK = "greek",
|
|
6284
|
-
GALICIAN = "galician",
|
|
6285
6219
|
HINDI = "hindi",
|
|
6286
6220
|
HUNGARIAN = "hungarian",
|
|
6287
6221
|
INDONESIAN = "indonesian",
|
|
@@ -6298,8 +6232,7 @@ declare namespace CloudantV1 {
|
|
|
6298
6232
|
SPANISH = "spanish",
|
|
6299
6233
|
SWEDISH = "swedish",
|
|
6300
6234
|
THAI = "thai",
|
|
6301
|
-
TURKISH = "turkish"
|
|
6302
|
-
PERFIELD = "perfield"
|
|
6235
|
+
TURKISH = "turkish"
|
|
6303
6236
|
}
|
|
6304
6237
|
}
|
|
6305
6238
|
interface Transport {
|
|
@@ -6310,7 +6243,7 @@ declare namespace CloudantV1 {
|
|
|
6310
6243
|
/**
|
|
6311
6244
|
* Schema for a search analyzer configuration.
|
|
6312
6245
|
*/
|
|
6313
|
-
class AnalyzerConfiguration {
|
|
6246
|
+
export class AnalyzerConfiguration {
|
|
6314
6247
|
/** Schema for the name of the Apache Lucene analyzer to use for text indexing. The default value varies
|
|
6315
6248
|
* depending on the analyzer usage:
|
|
6316
6249
|
* * For search indexes the default is `standard` * For query text indexes the default is `keyword` * For a query
|
|
@@ -6326,33 +6259,35 @@ declare namespace CloudantV1 {
|
|
|
6326
6259
|
static serialize(obj: any): AnalyzerConfiguration.Transport;
|
|
6327
6260
|
static deserialize(obj: any): AnalyzerConfiguration;
|
|
6328
6261
|
}
|
|
6329
|
-
namespace AnalyzerConfiguration {
|
|
6262
|
+
export namespace AnalyzerConfiguration {
|
|
6330
6263
|
namespace Constants {
|
|
6331
6264
|
/** Schema for the name of the Apache Lucene analyzer to use for text indexing. The default value varies depending on the analyzer usage: * For search indexes the default is `standard` * For query text indexes the default is `keyword` * For a query text index default_field the default is `standard`. */
|
|
6332
6265
|
enum Name {
|
|
6333
6266
|
CLASSIC = "classic",
|
|
6334
6267
|
EMAIL = "email",
|
|
6335
6268
|
KEYWORD = "keyword",
|
|
6269
|
+
PERFIELD = "perfield",
|
|
6336
6270
|
SIMPLE = "simple",
|
|
6271
|
+
SIMPLE_ASCIIFOLDING = "simple_asciifolding",
|
|
6337
6272
|
STANDARD = "standard",
|
|
6338
6273
|
WHITESPACE = "whitespace",
|
|
6339
6274
|
ARABIC = "arabic",
|
|
6340
6275
|
ARMENIAN = "armenian",
|
|
6341
6276
|
BASQUE = "basque",
|
|
6342
|
-
BULGARIAN = "bulgarian",
|
|
6343
6277
|
BRAZILIAN = "brazilian",
|
|
6278
|
+
BULGARIAN = "bulgarian",
|
|
6344
6279
|
CATALAN = "catalan",
|
|
6345
|
-
CJK = "cjk",
|
|
6346
6280
|
CHINESE = "chinese",
|
|
6281
|
+
CJK = "cjk",
|
|
6347
6282
|
CZECH = "czech",
|
|
6348
6283
|
DANISH = "danish",
|
|
6349
6284
|
DUTCH = "dutch",
|
|
6350
6285
|
ENGLISH = "english",
|
|
6351
6286
|
FINNISH = "finnish",
|
|
6352
6287
|
FRENCH = "french",
|
|
6288
|
+
GALICIAN = "galician",
|
|
6353
6289
|
GERMAN = "german",
|
|
6354
6290
|
GREEK = "greek",
|
|
6355
|
-
GALICIAN = "galician",
|
|
6356
6291
|
HINDI = "hindi",
|
|
6357
6292
|
HUNGARIAN = "hungarian",
|
|
6358
6293
|
INDONESIAN = "indonesian",
|
|
@@ -6369,8 +6304,7 @@ declare namespace CloudantV1 {
|
|
|
6369
6304
|
SPANISH = "spanish",
|
|
6370
6305
|
SWEDISH = "swedish",
|
|
6371
6306
|
THAI = "thai",
|
|
6372
|
-
TURKISH = "turkish"
|
|
6373
|
-
PERFIELD = "perfield"
|
|
6307
|
+
TURKISH = "turkish"
|
|
6374
6308
|
}
|
|
6375
6309
|
}
|
|
6376
6310
|
interface Transport {
|
|
@@ -6384,7 +6318,7 @@ declare namespace CloudantV1 {
|
|
|
6384
6318
|
/**
|
|
6385
6319
|
* Schema for api keys.
|
|
6386
6320
|
*/
|
|
6387
|
-
class ApiKeysResult {
|
|
6321
|
+
export class ApiKeysResult {
|
|
6388
6322
|
/** ok. */
|
|
6389
6323
|
ok: boolean;
|
|
6390
6324
|
/** The generated api key. */
|
|
@@ -6394,7 +6328,7 @@ declare namespace CloudantV1 {
|
|
|
6394
6328
|
static serialize(obj: any): ApiKeysResult.Transport;
|
|
6395
6329
|
static deserialize(obj: any): ApiKeysResult;
|
|
6396
6330
|
}
|
|
6397
|
-
namespace ApiKeysResult {
|
|
6331
|
+
export namespace ApiKeysResult {
|
|
6398
6332
|
interface Transport {
|
|
6399
6333
|
ok: boolean;
|
|
6400
6334
|
key: string;
|
|
@@ -6404,7 +6338,7 @@ declare namespace CloudantV1 {
|
|
|
6404
6338
|
/**
|
|
6405
6339
|
* Schema for an attachment.
|
|
6406
6340
|
*/
|
|
6407
|
-
class Attachment {
|
|
6341
|
+
export class Attachment {
|
|
6408
6342
|
/** Attachment MIME type. */
|
|
6409
6343
|
contentType?: string;
|
|
6410
6344
|
/** Base64-encoded content. Available if attachment content is requested by using the query parameters
|
|
@@ -6437,7 +6371,7 @@ declare namespace CloudantV1 {
|
|
|
6437
6371
|
static serialize(obj: any): Attachment.Transport;
|
|
6438
6372
|
static deserialize(obj: any): Attachment;
|
|
6439
6373
|
}
|
|
6440
|
-
namespace Attachment {
|
|
6374
|
+
export namespace Attachment {
|
|
6441
6375
|
interface Transport {
|
|
6442
6376
|
content_type?: string;
|
|
6443
6377
|
data?: string;
|
|
@@ -6453,7 +6387,7 @@ declare namespace CloudantV1 {
|
|
|
6453
6387
|
/**
|
|
6454
6388
|
* Schema for submitting documents for bulk modifications.
|
|
6455
6389
|
*/
|
|
6456
|
-
class BulkDocs {
|
|
6390
|
+
export class BulkDocs {
|
|
6457
6391
|
/** Array of documents. */
|
|
6458
6392
|
docs: Document[];
|
|
6459
6393
|
/** If `false`, prevents the database from assigning them new revision IDs. Default is `true`.
|
|
@@ -6465,7 +6399,7 @@ declare namespace CloudantV1 {
|
|
|
6465
6399
|
static serialize(obj: any): BulkDocs.Transport;
|
|
6466
6400
|
static deserialize(obj: any): BulkDocs;
|
|
6467
6401
|
}
|
|
6468
|
-
namespace BulkDocs {
|
|
6402
|
+
export namespace BulkDocs {
|
|
6469
6403
|
interface Transport {
|
|
6470
6404
|
docs: Document[];
|
|
6471
6405
|
new_edits?: boolean;
|
|
@@ -6474,7 +6408,7 @@ declare namespace CloudantV1 {
|
|
|
6474
6408
|
/**
|
|
6475
6409
|
* Schema for a document item in a bulk get query.
|
|
6476
6410
|
*/
|
|
6477
|
-
class BulkGetQueryDocument {
|
|
6411
|
+
export class BulkGetQueryDocument {
|
|
6478
6412
|
/** Includes attachments only since specified revisions. */
|
|
6479
6413
|
attsSince?: string[];
|
|
6480
6414
|
/** Schema for a document ID. */
|
|
@@ -6484,7 +6418,7 @@ declare namespace CloudantV1 {
|
|
|
6484
6418
|
static serialize(obj: any): BulkGetQueryDocument.Transport;
|
|
6485
6419
|
static deserialize(obj: any): BulkGetQueryDocument;
|
|
6486
6420
|
}
|
|
6487
|
-
namespace BulkGetQueryDocument {
|
|
6421
|
+
export namespace BulkGetQueryDocument {
|
|
6488
6422
|
interface Transport {
|
|
6489
6423
|
atts_since?: string[];
|
|
6490
6424
|
id: string;
|
|
@@ -6494,13 +6428,13 @@ declare namespace CloudantV1 {
|
|
|
6494
6428
|
/**
|
|
6495
6429
|
* Schema for the results object of a bulk get operation.
|
|
6496
6430
|
*/
|
|
6497
|
-
class BulkGetResult {
|
|
6431
|
+
export class BulkGetResult {
|
|
6498
6432
|
/** Results. */
|
|
6499
6433
|
results: BulkGetResultItem[];
|
|
6500
6434
|
static serialize(obj: any): BulkGetResult.Transport;
|
|
6501
6435
|
static deserialize(obj: any): BulkGetResult;
|
|
6502
6436
|
}
|
|
6503
|
-
namespace BulkGetResult {
|
|
6437
|
+
export namespace BulkGetResult {
|
|
6504
6438
|
interface Transport {
|
|
6505
6439
|
results: BulkGetResultItem[];
|
|
6506
6440
|
}
|
|
@@ -6508,7 +6442,7 @@ declare namespace CloudantV1 {
|
|
|
6508
6442
|
/**
|
|
6509
6443
|
* Schema for BulkGetResult object containing a successfully retrieved document or error information.
|
|
6510
6444
|
*/
|
|
6511
|
-
class BulkGetResultDocument {
|
|
6445
|
+
export class BulkGetResultDocument {
|
|
6512
6446
|
/** Schema for the result of a document modification. */
|
|
6513
6447
|
error?: DocumentResult;
|
|
6514
6448
|
/** Schema for a document. */
|
|
@@ -6516,7 +6450,7 @@ declare namespace CloudantV1 {
|
|
|
6516
6450
|
static serialize(obj: any): BulkGetResultDocument.Transport;
|
|
6517
6451
|
static deserialize(obj: any): BulkGetResultDocument;
|
|
6518
6452
|
}
|
|
6519
|
-
namespace BulkGetResultDocument {
|
|
6453
|
+
export namespace BulkGetResultDocument {
|
|
6520
6454
|
interface Transport {
|
|
6521
6455
|
error?: DocumentResult.Transport;
|
|
6522
6456
|
ok?: Document.Transport;
|
|
@@ -6525,7 +6459,7 @@ declare namespace CloudantV1 {
|
|
|
6525
6459
|
/**
|
|
6526
6460
|
* Schema for the document revisions information from a bulk get operation.
|
|
6527
6461
|
*/
|
|
6528
|
-
class BulkGetResultItem {
|
|
6462
|
+
export class BulkGetResultItem {
|
|
6529
6463
|
/** Array of document revisions or error information. */
|
|
6530
6464
|
docs: BulkGetResultDocument[];
|
|
6531
6465
|
/** Schema for a document ID. */
|
|
@@ -6533,16 +6467,44 @@ declare namespace CloudantV1 {
|
|
|
6533
6467
|
static serialize(obj: any): BulkGetResultItem.Transport;
|
|
6534
6468
|
static deserialize(obj: any): BulkGetResultItem;
|
|
6535
6469
|
}
|
|
6536
|
-
namespace BulkGetResultItem {
|
|
6470
|
+
export namespace BulkGetResultItem {
|
|
6537
6471
|
interface Transport {
|
|
6538
6472
|
docs: BulkGetResultDocument[];
|
|
6539
6473
|
id: string;
|
|
6540
6474
|
}
|
|
6541
6475
|
}
|
|
6476
|
+
/**
|
|
6477
|
+
* Schema for information about maximum total database count.
|
|
6478
|
+
*/
|
|
6479
|
+
export class CapacityDatabasesInformation {
|
|
6480
|
+
/** Schema for information about the current database capacity. */
|
|
6481
|
+
current?: CapacityDatabasesInformationCurrent;
|
|
6482
|
+
static serialize(obj: any): CapacityDatabasesInformation.Transport;
|
|
6483
|
+
static deserialize(obj: any): CapacityDatabasesInformation;
|
|
6484
|
+
}
|
|
6485
|
+
export namespace CapacityDatabasesInformation {
|
|
6486
|
+
interface Transport {
|
|
6487
|
+
current?: CapacityDatabasesInformationCurrent.Transport;
|
|
6488
|
+
}
|
|
6489
|
+
}
|
|
6490
|
+
/**
|
|
6491
|
+
* Schema for information about the current database capacity.
|
|
6492
|
+
*/
|
|
6493
|
+
export class CapacityDatabasesInformationCurrent {
|
|
6494
|
+
/** Schema for databases count. */
|
|
6495
|
+
databases?: DatabasesCountInformation;
|
|
6496
|
+
static serialize(obj: any): CapacityDatabasesInformationCurrent.Transport;
|
|
6497
|
+
static deserialize(obj: any): CapacityDatabasesInformationCurrent;
|
|
6498
|
+
}
|
|
6499
|
+
export namespace CapacityDatabasesInformationCurrent {
|
|
6500
|
+
interface Transport {
|
|
6501
|
+
databases?: DatabasesCountInformation.Transport;
|
|
6502
|
+
}
|
|
6503
|
+
}
|
|
6542
6504
|
/**
|
|
6543
6505
|
* Schema for information about the currently provisioned and target throughput capacity.
|
|
6544
6506
|
*/
|
|
6545
|
-
class CapacityThroughputInformation {
|
|
6507
|
+
export class CapacityThroughputInformation {
|
|
6546
6508
|
/** Detailed information about provisioned throughput capacity. */
|
|
6547
6509
|
current: CapacityThroughputInformationCurrent;
|
|
6548
6510
|
/** Detailed information about target throughput capacity. */
|
|
@@ -6550,7 +6512,7 @@ declare namespace CloudantV1 {
|
|
|
6550
6512
|
static serialize(obj: any): CapacityThroughputInformation.Transport;
|
|
6551
6513
|
static deserialize(obj: any): CapacityThroughputInformation;
|
|
6552
6514
|
}
|
|
6553
|
-
namespace CapacityThroughputInformation {
|
|
6515
|
+
export namespace CapacityThroughputInformation {
|
|
6554
6516
|
interface Transport {
|
|
6555
6517
|
current: CapacityThroughputInformationCurrent.Transport;
|
|
6556
6518
|
target?: CapacityThroughputInformationTarget.Transport;
|
|
@@ -6559,7 +6521,7 @@ declare namespace CloudantV1 {
|
|
|
6559
6521
|
/**
|
|
6560
6522
|
* Detailed information about provisioned throughput capacity.
|
|
6561
6523
|
*/
|
|
6562
|
-
class CapacityThroughputInformationCurrent {
|
|
6524
|
+
export class CapacityThroughputInformationCurrent {
|
|
6563
6525
|
/** Schema for detailed information about throughput capacity with breakdown by specific throughput requests
|
|
6564
6526
|
* classes.
|
|
6565
6527
|
*/
|
|
@@ -6567,7 +6529,7 @@ declare namespace CloudantV1 {
|
|
|
6567
6529
|
static serialize(obj: any): CapacityThroughputInformationCurrent.Transport;
|
|
6568
6530
|
static deserialize(obj: any): CapacityThroughputInformationCurrent;
|
|
6569
6531
|
}
|
|
6570
|
-
namespace CapacityThroughputInformationCurrent {
|
|
6532
|
+
export namespace CapacityThroughputInformationCurrent {
|
|
6571
6533
|
interface Transport {
|
|
6572
6534
|
throughput: ThroughputInformation.Transport;
|
|
6573
6535
|
}
|
|
@@ -6575,7 +6537,7 @@ declare namespace CloudantV1 {
|
|
|
6575
6537
|
/**
|
|
6576
6538
|
* Detailed information about target throughput capacity.
|
|
6577
6539
|
*/
|
|
6578
|
-
class CapacityThroughputInformationTarget {
|
|
6540
|
+
export class CapacityThroughputInformationTarget {
|
|
6579
6541
|
/** Schema for detailed information about throughput capacity with breakdown by specific throughput requests
|
|
6580
6542
|
* classes.
|
|
6581
6543
|
*/
|
|
@@ -6583,7 +6545,7 @@ declare namespace CloudantV1 {
|
|
|
6583
6545
|
static serialize(obj: any): CapacityThroughputInformationTarget.Transport;
|
|
6584
6546
|
static deserialize(obj: any): CapacityThroughputInformationTarget;
|
|
6585
6547
|
}
|
|
6586
|
-
namespace CapacityThroughputInformationTarget {
|
|
6548
|
+
export namespace CapacityThroughputInformationTarget {
|
|
6587
6549
|
interface Transport {
|
|
6588
6550
|
throughput: ThroughputInformation.Transport;
|
|
6589
6551
|
}
|
|
@@ -6591,13 +6553,13 @@ declare namespace CloudantV1 {
|
|
|
6591
6553
|
/**
|
|
6592
6554
|
* Schema for a document leaf with single field rev.
|
|
6593
6555
|
*/
|
|
6594
|
-
class Change {
|
|
6556
|
+
export class Change {
|
|
6595
6557
|
/** Schema for a document revision identifier. */
|
|
6596
6558
|
rev: string;
|
|
6597
6559
|
static serialize(obj: any): Change.Transport;
|
|
6598
6560
|
static deserialize(obj: any): Change;
|
|
6599
6561
|
}
|
|
6600
|
-
namespace Change {
|
|
6562
|
+
export namespace Change {
|
|
6601
6563
|
interface Transport {
|
|
6602
6564
|
rev: string;
|
|
6603
6565
|
}
|
|
@@ -6605,7 +6567,7 @@ declare namespace CloudantV1 {
|
|
|
6605
6567
|
/**
|
|
6606
6568
|
* Schema for normal changes feed result.
|
|
6607
6569
|
*/
|
|
6608
|
-
class ChangesResult {
|
|
6570
|
+
export class ChangesResult {
|
|
6609
6571
|
/** last_seq. */
|
|
6610
6572
|
lastSeq: string;
|
|
6611
6573
|
/** pending. */
|
|
@@ -6615,7 +6577,7 @@ declare namespace CloudantV1 {
|
|
|
6615
6577
|
static serialize(obj: any): ChangesResult.Transport;
|
|
6616
6578
|
static deserialize(obj: any): ChangesResult;
|
|
6617
6579
|
}
|
|
6618
|
-
namespace ChangesResult {
|
|
6580
|
+
export namespace ChangesResult {
|
|
6619
6581
|
interface Transport {
|
|
6620
6582
|
last_seq: string;
|
|
6621
6583
|
pending: number;
|
|
@@ -6625,7 +6587,7 @@ declare namespace CloudantV1 {
|
|
|
6625
6587
|
/**
|
|
6626
6588
|
* Schema for an item in the changes results array.
|
|
6627
6589
|
*/
|
|
6628
|
-
class ChangesResultItem {
|
|
6590
|
+
export class ChangesResultItem {
|
|
6629
6591
|
/** List of document's leaves with single field rev. */
|
|
6630
6592
|
changes: Change[];
|
|
6631
6593
|
/** if `true` then the document is deleted. */
|
|
@@ -6639,7 +6601,7 @@ declare namespace CloudantV1 {
|
|
|
6639
6601
|
static serialize(obj: any): ChangesResultItem.Transport;
|
|
6640
6602
|
static deserialize(obj: any): ChangesResultItem;
|
|
6641
6603
|
}
|
|
6642
|
-
namespace ChangesResultItem {
|
|
6604
|
+
export namespace ChangesResultItem {
|
|
6643
6605
|
interface Transport {
|
|
6644
6606
|
changes: Change[];
|
|
6645
6607
|
deleted?: boolean;
|
|
@@ -6651,7 +6613,7 @@ declare namespace CloudantV1 {
|
|
|
6651
6613
|
/**
|
|
6652
6614
|
* Schema for size information of content.
|
|
6653
6615
|
*/
|
|
6654
|
-
class ContentInformationSizes {
|
|
6616
|
+
export class ContentInformationSizes {
|
|
6655
6617
|
/** The active size of the content, in bytes. */
|
|
6656
6618
|
active: number;
|
|
6657
6619
|
/** The total uncompressed size of the content, in bytes. */
|
|
@@ -6661,7 +6623,7 @@ declare namespace CloudantV1 {
|
|
|
6661
6623
|
static serialize(obj: any): ContentInformationSizes.Transport;
|
|
6662
6624
|
static deserialize(obj: any): ContentInformationSizes;
|
|
6663
6625
|
}
|
|
6664
|
-
namespace ContentInformationSizes {
|
|
6626
|
+
export namespace ContentInformationSizes {
|
|
6665
6627
|
interface Transport {
|
|
6666
6628
|
active: number;
|
|
6667
6629
|
external: number;
|
|
@@ -6671,7 +6633,7 @@ declare namespace CloudantV1 {
|
|
|
6671
6633
|
/**
|
|
6672
6634
|
* Schema for information about the CORS configuration.
|
|
6673
6635
|
*/
|
|
6674
|
-
class CorsInformation {
|
|
6636
|
+
export class CorsInformation {
|
|
6675
6637
|
/** Boolean value to allow authentication credentials. If set to true, browser requests must be done by using
|
|
6676
6638
|
* withCredentials = true.
|
|
6677
6639
|
*/
|
|
@@ -6686,23 +6648,37 @@ declare namespace CloudantV1 {
|
|
|
6686
6648
|
static serialize(obj: any): CorsInformation.Transport;
|
|
6687
6649
|
static deserialize(obj: any): CorsInformation;
|
|
6688
6650
|
}
|
|
6689
|
-
namespace CorsInformation {
|
|
6651
|
+
export namespace CorsInformation {
|
|
6690
6652
|
interface Transport {
|
|
6691
6653
|
allow_credentials: boolean;
|
|
6692
6654
|
enable_cors: boolean;
|
|
6693
6655
|
origins: string[];
|
|
6694
6656
|
}
|
|
6695
6657
|
}
|
|
6658
|
+
/**
|
|
6659
|
+
* Schema for information about the current database counts.
|
|
6660
|
+
*/
|
|
6661
|
+
export class CurrentDatabasesInformation {
|
|
6662
|
+
/** Schema for databases count. */
|
|
6663
|
+
databases?: DatabasesCountInformation;
|
|
6664
|
+
static serialize(obj: any): CurrentDatabasesInformation.Transport;
|
|
6665
|
+
static deserialize(obj: any): CurrentDatabasesInformation;
|
|
6666
|
+
}
|
|
6667
|
+
export namespace CurrentDatabasesInformation {
|
|
6668
|
+
interface Transport {
|
|
6669
|
+
databases?: DatabasesCountInformation.Transport;
|
|
6670
|
+
}
|
|
6671
|
+
}
|
|
6696
6672
|
/**
|
|
6697
6673
|
* Schema for information about current consumption of a provisioned throughput capacity.
|
|
6698
6674
|
*/
|
|
6699
|
-
class CurrentThroughputInformation {
|
|
6675
|
+
export class CurrentThroughputInformation {
|
|
6700
6676
|
/** Detailed information about current consumption. */
|
|
6701
6677
|
throughput: CurrentThroughputInformationThroughput;
|
|
6702
6678
|
static serialize(obj: any): CurrentThroughputInformation.Transport;
|
|
6703
6679
|
static deserialize(obj: any): CurrentThroughputInformation;
|
|
6704
6680
|
}
|
|
6705
|
-
namespace CurrentThroughputInformation {
|
|
6681
|
+
export namespace CurrentThroughputInformation {
|
|
6706
6682
|
interface Transport {
|
|
6707
6683
|
throughput: CurrentThroughputInformationThroughput.Transport;
|
|
6708
6684
|
}
|
|
@@ -6710,7 +6686,7 @@ declare namespace CloudantV1 {
|
|
|
6710
6686
|
/**
|
|
6711
6687
|
* Detailed information about current consumption.
|
|
6712
6688
|
*/
|
|
6713
|
-
class CurrentThroughputInformationThroughput {
|
|
6689
|
+
export class CurrentThroughputInformationThroughput {
|
|
6714
6690
|
/** Number of global queries conducted against the instance for a given second. */
|
|
6715
6691
|
query: number;
|
|
6716
6692
|
/** Number of reads conducted against the instance for a given second. */
|
|
@@ -6720,7 +6696,7 @@ declare namespace CloudantV1 {
|
|
|
6720
6696
|
static serialize(obj: any): CurrentThroughputInformationThroughput.Transport;
|
|
6721
6697
|
static deserialize(obj: any): CurrentThroughputInformationThroughput;
|
|
6722
6698
|
}
|
|
6723
|
-
namespace CurrentThroughputInformationThroughput {
|
|
6699
|
+
export namespace CurrentThroughputInformationThroughput {
|
|
6724
6700
|
interface Transport {
|
|
6725
6701
|
query: number;
|
|
6726
6702
|
read: number;
|
|
@@ -6730,7 +6706,7 @@ declare namespace CloudantV1 {
|
|
|
6730
6706
|
/**
|
|
6731
6707
|
* Schema for information about a database.
|
|
6732
6708
|
*/
|
|
6733
|
-
class DatabaseInformation {
|
|
6709
|
+
export class DatabaseInformation {
|
|
6734
6710
|
/** Schema for database cluster information. */
|
|
6735
6711
|
cluster: DatabaseInformationCluster;
|
|
6736
6712
|
/** An opaque string that describes the committed state of the database. */
|
|
@@ -6768,7 +6744,7 @@ declare namespace CloudantV1 {
|
|
|
6768
6744
|
static serialize(obj: any): DatabaseInformation.Transport;
|
|
6769
6745
|
static deserialize(obj: any): DatabaseInformation;
|
|
6770
6746
|
}
|
|
6771
|
-
namespace DatabaseInformation {
|
|
6747
|
+
export namespace DatabaseInformation {
|
|
6772
6748
|
interface Transport {
|
|
6773
6749
|
cluster: DatabaseInformationCluster.Transport;
|
|
6774
6750
|
committed_update_seq?: string;
|
|
@@ -6790,7 +6766,7 @@ declare namespace CloudantV1 {
|
|
|
6790
6766
|
/**
|
|
6791
6767
|
* Schema for database cluster information.
|
|
6792
6768
|
*/
|
|
6793
|
-
class DatabaseInformationCluster {
|
|
6769
|
+
export class DatabaseInformationCluster {
|
|
6794
6770
|
/** Schema for the number of replicas of a database in a cluster. The cluster is using the default value and it
|
|
6795
6771
|
* cannot be changed by the user.
|
|
6796
6772
|
*/
|
|
@@ -6804,7 +6780,7 @@ declare namespace CloudantV1 {
|
|
|
6804
6780
|
static serialize(obj: any): DatabaseInformationCluster.Transport;
|
|
6805
6781
|
static deserialize(obj: any): DatabaseInformationCluster;
|
|
6806
6782
|
}
|
|
6807
|
-
namespace DatabaseInformationCluster {
|
|
6783
|
+
export namespace DatabaseInformationCluster {
|
|
6808
6784
|
interface Transport {
|
|
6809
6785
|
n: number;
|
|
6810
6786
|
q: number;
|
|
@@ -6815,21 +6791,35 @@ declare namespace CloudantV1 {
|
|
|
6815
6791
|
/**
|
|
6816
6792
|
* Schema for database properties.
|
|
6817
6793
|
*/
|
|
6818
|
-
class DatabaseInformationProps {
|
|
6794
|
+
export class DatabaseInformationProps {
|
|
6819
6795
|
/** The value is `true` for a partitioned database. */
|
|
6820
6796
|
partitioned?: boolean;
|
|
6821
6797
|
static serialize(obj: any): DatabaseInformationProps.Transport;
|
|
6822
6798
|
static deserialize(obj: any): DatabaseInformationProps;
|
|
6823
6799
|
}
|
|
6824
|
-
namespace DatabaseInformationProps {
|
|
6800
|
+
export namespace DatabaseInformationProps {
|
|
6825
6801
|
interface Transport {
|
|
6826
6802
|
partitioned?: boolean;
|
|
6827
6803
|
}
|
|
6828
6804
|
}
|
|
6805
|
+
/**
|
|
6806
|
+
* Schema for databases count.
|
|
6807
|
+
*/
|
|
6808
|
+
export class DatabasesCountInformation {
|
|
6809
|
+
/** The total number of databases. */
|
|
6810
|
+
total?: number;
|
|
6811
|
+
static serialize(obj: any): DatabasesCountInformation.Transport;
|
|
6812
|
+
static deserialize(obj: any): DatabasesCountInformation;
|
|
6813
|
+
}
|
|
6814
|
+
export namespace DatabasesCountInformation {
|
|
6815
|
+
interface Transport {
|
|
6816
|
+
total?: number;
|
|
6817
|
+
}
|
|
6818
|
+
}
|
|
6829
6819
|
/**
|
|
6830
6820
|
* Schema for a database change event.
|
|
6831
6821
|
*/
|
|
6832
|
-
class DbEvent {
|
|
6822
|
+
export class DbEvent {
|
|
6833
6823
|
/** Schema for a database name. */
|
|
6834
6824
|
dbName: string;
|
|
6835
6825
|
/** Sequence number. */
|
|
@@ -6839,7 +6829,7 @@ declare namespace CloudantV1 {
|
|
|
6839
6829
|
static serialize(obj: any): DbEvent.Transport;
|
|
6840
6830
|
static deserialize(obj: any): DbEvent;
|
|
6841
6831
|
}
|
|
6842
|
-
namespace DbEvent {
|
|
6832
|
+
export namespace DbEvent {
|
|
6843
6833
|
namespace Constants {
|
|
6844
6834
|
/** A database event. */
|
|
6845
6835
|
enum Type {
|
|
@@ -6857,7 +6847,7 @@ declare namespace CloudantV1 {
|
|
|
6857
6847
|
/**
|
|
6858
6848
|
* Schema for database updates.
|
|
6859
6849
|
*/
|
|
6860
|
-
class DbUpdates {
|
|
6850
|
+
export class DbUpdates {
|
|
6861
6851
|
/** Last sequence number. */
|
|
6862
6852
|
lastSeq: string;
|
|
6863
6853
|
/** results. */
|
|
@@ -6865,7 +6855,7 @@ declare namespace CloudantV1 {
|
|
|
6865
6855
|
static serialize(obj: any): DbUpdates.Transport;
|
|
6866
6856
|
static deserialize(obj: any): DbUpdates;
|
|
6867
6857
|
}
|
|
6868
|
-
namespace DbUpdates {
|
|
6858
|
+
export namespace DbUpdates {
|
|
6869
6859
|
interface Transport {
|
|
6870
6860
|
last_seq: string;
|
|
6871
6861
|
results: DbEvent[];
|
|
@@ -6874,7 +6864,7 @@ declare namespace CloudantV1 {
|
|
|
6874
6864
|
/**
|
|
6875
6865
|
* Schema for database information keyed by database name.
|
|
6876
6866
|
*/
|
|
6877
|
-
class DbsInfoResult {
|
|
6867
|
+
export class DbsInfoResult {
|
|
6878
6868
|
/** The name of the error. */
|
|
6879
6869
|
error?: string;
|
|
6880
6870
|
/** Schema for information about a database. */
|
|
@@ -6884,7 +6874,7 @@ declare namespace CloudantV1 {
|
|
|
6884
6874
|
static serialize(obj: any): DbsInfoResult.Transport;
|
|
6885
6875
|
static deserialize(obj: any): DbsInfoResult;
|
|
6886
6876
|
}
|
|
6887
|
-
namespace DbsInfoResult {
|
|
6877
|
+
export namespace DbsInfoResult {
|
|
6888
6878
|
interface Transport {
|
|
6889
6879
|
error?: string;
|
|
6890
6880
|
info?: DatabaseInformation.Transport;
|
|
@@ -6896,7 +6886,7 @@ declare namespace CloudantV1 {
|
|
|
6896
6886
|
*
|
|
6897
6887
|
* This type supports additional properties of type any.
|
|
6898
6888
|
*/
|
|
6899
|
-
class DesignDocument {
|
|
6889
|
+
export class DesignDocument {
|
|
6900
6890
|
/** Schema for a map of attachment name to attachment metadata. */
|
|
6901
6891
|
_attachments?: {
|
|
6902
6892
|
[key: string]: Attachment;
|
|
@@ -7008,7 +6998,7 @@ declare namespace CloudantV1 {
|
|
|
7008
6998
|
static serialize(obj: any): DesignDocument.Transport;
|
|
7009
6999
|
static deserialize(obj: any): DesignDocument;
|
|
7010
7000
|
}
|
|
7011
|
-
namespace DesignDocument {
|
|
7001
|
+
export namespace DesignDocument {
|
|
7012
7002
|
interface Transport {
|
|
7013
7003
|
_attachments?: {
|
|
7014
7004
|
[key: string]: Attachment.Transport;
|
|
@@ -7039,7 +7029,7 @@ declare namespace CloudantV1 {
|
|
|
7039
7029
|
/**
|
|
7040
7030
|
* Schema for information about a design document.
|
|
7041
7031
|
*/
|
|
7042
|
-
class DesignDocumentInformation {
|
|
7032
|
+
export class DesignDocumentInformation {
|
|
7043
7033
|
/** name. */
|
|
7044
7034
|
name: string;
|
|
7045
7035
|
/** View index information. */
|
|
@@ -7047,7 +7037,7 @@ declare namespace CloudantV1 {
|
|
|
7047
7037
|
static serialize(obj: any): DesignDocumentInformation.Transport;
|
|
7048
7038
|
static deserialize(obj: any): DesignDocumentInformation;
|
|
7049
7039
|
}
|
|
7050
|
-
namespace DesignDocumentInformation {
|
|
7040
|
+
export namespace DesignDocumentInformation {
|
|
7051
7041
|
interface Transport {
|
|
7052
7042
|
name: string;
|
|
7053
7043
|
view_index: DesignDocumentViewIndex.Transport;
|
|
@@ -7056,13 +7046,13 @@ declare namespace CloudantV1 {
|
|
|
7056
7046
|
/**
|
|
7057
7047
|
* Schema for design document options.
|
|
7058
7048
|
*/
|
|
7059
|
-
class DesignDocumentOptions {
|
|
7049
|
+
export class DesignDocumentOptions {
|
|
7060
7050
|
/** Whether this design document describes partitioned or global indexes. */
|
|
7061
7051
|
partitioned?: boolean;
|
|
7062
7052
|
static serialize(obj: any): DesignDocumentOptions.Transport;
|
|
7063
7053
|
static deserialize(obj: any): DesignDocumentOptions;
|
|
7064
7054
|
}
|
|
7065
|
-
namespace DesignDocumentOptions {
|
|
7055
|
+
export namespace DesignDocumentOptions {
|
|
7066
7056
|
interface Transport {
|
|
7067
7057
|
partitioned?: boolean;
|
|
7068
7058
|
}
|
|
@@ -7070,7 +7060,7 @@ declare namespace CloudantV1 {
|
|
|
7070
7060
|
/**
|
|
7071
7061
|
* View index information.
|
|
7072
7062
|
*/
|
|
7073
|
-
class DesignDocumentViewIndex {
|
|
7063
|
+
export class DesignDocumentViewIndex {
|
|
7074
7064
|
/** List of collator versions. If there are multiple entries this implies a libicu upgrade has occurred but
|
|
7075
7065
|
* compaction has not run yet.
|
|
7076
7066
|
*/
|
|
@@ -7094,7 +7084,7 @@ declare namespace CloudantV1 {
|
|
|
7094
7084
|
static serialize(obj: any): DesignDocumentViewIndex.Transport;
|
|
7095
7085
|
static deserialize(obj: any): DesignDocumentViewIndex;
|
|
7096
7086
|
}
|
|
7097
|
-
namespace DesignDocumentViewIndex {
|
|
7087
|
+
export namespace DesignDocumentViewIndex {
|
|
7098
7088
|
interface Transport {
|
|
7099
7089
|
collator_versions: string[];
|
|
7100
7090
|
compact_running: boolean;
|
|
@@ -7110,7 +7100,7 @@ declare namespace CloudantV1 {
|
|
|
7110
7100
|
/**
|
|
7111
7101
|
* Schema for view functions definition.
|
|
7112
7102
|
*/
|
|
7113
|
-
class DesignDocumentViewsMapReduce {
|
|
7103
|
+
export class DesignDocumentViewsMapReduce {
|
|
7114
7104
|
/** JavaScript map function as a string. */
|
|
7115
7105
|
map: string;
|
|
7116
7106
|
/** JavaScript reduce function as a string. */
|
|
@@ -7118,7 +7108,7 @@ declare namespace CloudantV1 {
|
|
|
7118
7108
|
static serialize(obj: any): DesignDocumentViewsMapReduce.Transport;
|
|
7119
7109
|
static deserialize(obj: any): DesignDocumentViewsMapReduce;
|
|
7120
7110
|
}
|
|
7121
|
-
namespace DesignDocumentViewsMapReduce {
|
|
7111
|
+
export namespace DesignDocumentViewsMapReduce {
|
|
7122
7112
|
interface Transport {
|
|
7123
7113
|
map: string;
|
|
7124
7114
|
reduce?: string;
|
|
@@ -7127,7 +7117,7 @@ declare namespace CloudantV1 {
|
|
|
7127
7117
|
/**
|
|
7128
7118
|
* Schema for a row of document information in a DocsResult.
|
|
7129
7119
|
*/
|
|
7130
|
-
class DocsResultRow {
|
|
7120
|
+
export class DocsResultRow {
|
|
7131
7121
|
/** The cause of the error (if available). */
|
|
7132
7122
|
causedBy?: string;
|
|
7133
7123
|
/** The name of the error. */
|
|
@@ -7147,7 +7137,7 @@ declare namespace CloudantV1 {
|
|
|
7147
7137
|
static serialize(obj: any): DocsResultRow.Transport;
|
|
7148
7138
|
static deserialize(obj: any): DocsResultRow;
|
|
7149
7139
|
}
|
|
7150
|
-
namespace DocsResultRow {
|
|
7140
|
+
export namespace DocsResultRow {
|
|
7151
7141
|
interface Transport {
|
|
7152
7142
|
caused_by?: string;
|
|
7153
7143
|
error?: string;
|
|
@@ -7162,7 +7152,7 @@ declare namespace CloudantV1 {
|
|
|
7162
7152
|
/**
|
|
7163
7153
|
* Value of built-in `/_all_docs` style view.
|
|
7164
7154
|
*/
|
|
7165
|
-
class DocsResultRowValue {
|
|
7155
|
+
export class DocsResultRowValue {
|
|
7166
7156
|
/** If `true` then the document is deleted. Not present for undeleted documents. */
|
|
7167
7157
|
deleted?: boolean;
|
|
7168
7158
|
/** Schema for a document revision identifier. */
|
|
@@ -7170,7 +7160,7 @@ declare namespace CloudantV1 {
|
|
|
7170
7160
|
static serialize(obj: any): DocsResultRowValue.Transport;
|
|
7171
7161
|
static deserialize(obj: any): DocsResultRowValue;
|
|
7172
7162
|
}
|
|
7173
|
-
namespace DocsResultRowValue {
|
|
7163
|
+
export namespace DocsResultRowValue {
|
|
7174
7164
|
interface Transport {
|
|
7175
7165
|
deleted?: boolean;
|
|
7176
7166
|
rev: string;
|
|
@@ -7181,7 +7171,7 @@ declare namespace CloudantV1 {
|
|
|
7181
7171
|
*
|
|
7182
7172
|
* This type supports additional properties of type any.
|
|
7183
7173
|
*/
|
|
7184
|
-
class Document {
|
|
7174
|
+
export class Document {
|
|
7185
7175
|
/** Schema for a map of attachment name to attachment metadata. */
|
|
7186
7176
|
_attachments?: {
|
|
7187
7177
|
[key: string]: Attachment;
|
|
@@ -7209,7 +7199,7 @@ declare namespace CloudantV1 {
|
|
|
7209
7199
|
static serialize(obj: any): Document.Transport;
|
|
7210
7200
|
static deserialize(obj: any): Document;
|
|
7211
7201
|
}
|
|
7212
|
-
namespace Document {
|
|
7202
|
+
export namespace Document {
|
|
7213
7203
|
interface Transport {
|
|
7214
7204
|
_attachments?: {
|
|
7215
7205
|
[key: string]: Attachment.Transport;
|
|
@@ -7229,7 +7219,7 @@ declare namespace CloudantV1 {
|
|
|
7229
7219
|
/**
|
|
7230
7220
|
* Schema for the result of a document modification.
|
|
7231
7221
|
*/
|
|
7232
|
-
class DocumentResult {
|
|
7222
|
+
export class DocumentResult {
|
|
7233
7223
|
/** Schema for a document ID. */
|
|
7234
7224
|
id: string;
|
|
7235
7225
|
/** Schema for a document revision identifier. */
|
|
@@ -7247,7 +7237,7 @@ declare namespace CloudantV1 {
|
|
|
7247
7237
|
static serialize(obj: any): DocumentResult.Transport;
|
|
7248
7238
|
static deserialize(obj: any): DocumentResult;
|
|
7249
7239
|
}
|
|
7250
|
-
namespace DocumentResult {
|
|
7240
|
+
export namespace DocumentResult {
|
|
7251
7241
|
interface Transport {
|
|
7252
7242
|
id: string;
|
|
7253
7243
|
rev?: string;
|
|
@@ -7261,7 +7251,7 @@ declare namespace CloudantV1 {
|
|
|
7261
7251
|
/**
|
|
7262
7252
|
* Schema for information about revisions and their status.
|
|
7263
7253
|
*/
|
|
7264
|
-
class DocumentRevisionStatus {
|
|
7254
|
+
export class DocumentRevisionStatus {
|
|
7265
7255
|
/** Schema for a document revision identifier. */
|
|
7266
7256
|
rev: string;
|
|
7267
7257
|
/** Status of the revision. May be one of: - `available`: Revision is available for retrieving with rev query
|
|
@@ -7271,7 +7261,7 @@ declare namespace CloudantV1 {
|
|
|
7271
7261
|
static serialize(obj: any): DocumentRevisionStatus.Transport;
|
|
7272
7262
|
static deserialize(obj: any): DocumentRevisionStatus;
|
|
7273
7263
|
}
|
|
7274
|
-
namespace DocumentRevisionStatus {
|
|
7264
|
+
export namespace DocumentRevisionStatus {
|
|
7275
7265
|
namespace Constants {
|
|
7276
7266
|
/** Status of the revision. May be one of: - `available`: Revision is available for retrieving with rev query parameter - `missing`: Revision is not available - `deleted`: Revision belongs to deleted document. */
|
|
7277
7267
|
enum Status {
|
|
@@ -7288,7 +7278,7 @@ declare namespace CloudantV1 {
|
|
|
7288
7278
|
/**
|
|
7289
7279
|
* Schema for document shard information.
|
|
7290
7280
|
*/
|
|
7291
|
-
class DocumentShardInfo {
|
|
7281
|
+
export class DocumentShardInfo {
|
|
7292
7282
|
/** List of nodes serving a replica of the shard. */
|
|
7293
7283
|
nodes: string[];
|
|
7294
7284
|
/** The shard range in which the document is stored. */
|
|
@@ -7296,7 +7286,7 @@ declare namespace CloudantV1 {
|
|
|
7296
7286
|
static serialize(obj: any): DocumentShardInfo.Transport;
|
|
7297
7287
|
static deserialize(obj: any): DocumentShardInfo;
|
|
7298
7288
|
}
|
|
7299
|
-
namespace DocumentShardInfo {
|
|
7289
|
+
export namespace DocumentShardInfo {
|
|
7300
7290
|
interface Transport {
|
|
7301
7291
|
nodes: string[];
|
|
7302
7292
|
range: string;
|
|
@@ -7305,7 +7295,7 @@ declare namespace CloudantV1 {
|
|
|
7305
7295
|
/**
|
|
7306
7296
|
* Schema for find query execution statistics.
|
|
7307
7297
|
*/
|
|
7308
|
-
class ExecutionStats {
|
|
7298
|
+
export class ExecutionStats {
|
|
7309
7299
|
/** Time to execute the query. */
|
|
7310
7300
|
executionTimeMs: number;
|
|
7311
7301
|
/** Number of results returned. */
|
|
@@ -7319,7 +7309,7 @@ declare namespace CloudantV1 {
|
|
|
7319
7309
|
static serialize(obj: any): ExecutionStats.Transport;
|
|
7320
7310
|
static deserialize(obj: any): ExecutionStats;
|
|
7321
7311
|
}
|
|
7322
|
-
namespace ExecutionStats {
|
|
7312
|
+
export namespace ExecutionStats {
|
|
7323
7313
|
interface Transport {
|
|
7324
7314
|
execution_time_ms: number;
|
|
7325
7315
|
results_returned: number;
|
|
@@ -7331,7 +7321,7 @@ declare namespace CloudantV1 {
|
|
|
7331
7321
|
/**
|
|
7332
7322
|
* Schema for information about the index used for a find query.
|
|
7333
7323
|
*/
|
|
7334
|
-
class ExplainResult {
|
|
7324
|
+
export class ExplainResult {
|
|
7335
7325
|
/** When `true`, the query is answered using the index only and no documents are fetched. */
|
|
7336
7326
|
covering: boolean;
|
|
7337
7327
|
/** Schema for a database name. */
|
|
@@ -7394,7 +7384,7 @@ declare namespace CloudantV1 {
|
|
|
7394
7384
|
static serialize(obj: any): ExplainResult.Transport;
|
|
7395
7385
|
static deserialize(obj: any): ExplainResult;
|
|
7396
7386
|
}
|
|
7397
|
-
namespace ExplainResult {
|
|
7387
|
+
export namespace ExplainResult {
|
|
7398
7388
|
interface Transport {
|
|
7399
7389
|
covering: boolean;
|
|
7400
7390
|
dbname: string;
|
|
@@ -7413,7 +7403,7 @@ declare namespace CloudantV1 {
|
|
|
7413
7403
|
/**
|
|
7414
7404
|
* Arguments passed to the underlying view.
|
|
7415
7405
|
*/
|
|
7416
|
-
class ExplainResultMrArgs {
|
|
7406
|
+
export class ExplainResultMrArgs {
|
|
7417
7407
|
/** Schema for any JSON type. */
|
|
7418
7408
|
conflicts: any;
|
|
7419
7409
|
/** Direction parameter passed to the underlying view. */
|
|
@@ -7443,7 +7433,7 @@ declare namespace CloudantV1 {
|
|
|
7443
7433
|
static serialize(obj: any): ExplainResultMrArgs.Transport;
|
|
7444
7434
|
static deserialize(obj: any): ExplainResultMrArgs;
|
|
7445
7435
|
}
|
|
7446
|
-
namespace ExplainResultMrArgs {
|
|
7436
|
+
export namespace ExplainResultMrArgs {
|
|
7447
7437
|
namespace Constants {
|
|
7448
7438
|
/** Direction parameter passed to the underlying view. */
|
|
7449
7439
|
enum Direction {
|
|
@@ -7472,7 +7462,7 @@ declare namespace CloudantV1 {
|
|
|
7472
7462
|
/**
|
|
7473
7463
|
* Options used for the request.
|
|
7474
7464
|
*/
|
|
7475
|
-
class ExplainResultOpts {
|
|
7465
|
+
export class ExplainResultOpts {
|
|
7476
7466
|
/** Opaque bookmark token used when paginating results. */
|
|
7477
7467
|
bookmark: string;
|
|
7478
7468
|
/** Conflicts used in the request query. */
|
|
@@ -7506,7 +7496,7 @@ declare namespace CloudantV1 {
|
|
|
7506
7496
|
static serialize(obj: any): ExplainResultOpts.Transport;
|
|
7507
7497
|
static deserialize(obj: any): ExplainResultOpts;
|
|
7508
7498
|
}
|
|
7509
|
-
namespace ExplainResultOpts {
|
|
7499
|
+
export namespace ExplainResultOpts {
|
|
7510
7500
|
interface Transport {
|
|
7511
7501
|
bookmark: string;
|
|
7512
7502
|
conflicts: boolean;
|
|
@@ -7526,7 +7516,7 @@ declare namespace CloudantV1 {
|
|
|
7526
7516
|
/**
|
|
7527
7517
|
* Schema for the result of a query find operation.
|
|
7528
7518
|
*/
|
|
7529
|
-
class FindResult {
|
|
7519
|
+
export class FindResult {
|
|
7530
7520
|
/** Opaque bookmark token used when paginating results. */
|
|
7531
7521
|
bookmark: string;
|
|
7532
7522
|
/** Documents matching the selector. */
|
|
@@ -7538,7 +7528,7 @@ declare namespace CloudantV1 {
|
|
|
7538
7528
|
static serialize(obj: any): FindResult.Transport;
|
|
7539
7529
|
static deserialize(obj: any): FindResult;
|
|
7540
7530
|
}
|
|
7541
|
-
namespace FindResult {
|
|
7531
|
+
export namespace FindResult {
|
|
7542
7532
|
interface Transport {
|
|
7543
7533
|
bookmark: string;
|
|
7544
7534
|
docs: Document[];
|
|
@@ -7549,7 +7539,7 @@ declare namespace CloudantV1 {
|
|
|
7549
7539
|
/**
|
|
7550
7540
|
* Schema for detailed explanation of why the specific index was excluded by the query planner.
|
|
7551
7541
|
*/
|
|
7552
|
-
class IndexAnalysis {
|
|
7542
|
+
export class IndexAnalysis {
|
|
7553
7543
|
/** When `true`, the query is answered using the index only and no documents are fetched. */
|
|
7554
7544
|
covering: boolean | null;
|
|
7555
7545
|
/** A position of the unused index based on its potential relevance to the query. */
|
|
@@ -7561,7 +7551,7 @@ declare namespace CloudantV1 {
|
|
|
7561
7551
|
static serialize(obj: any): IndexAnalysis.Transport;
|
|
7562
7552
|
static deserialize(obj: any): IndexAnalysis;
|
|
7563
7553
|
}
|
|
7564
|
-
namespace IndexAnalysis {
|
|
7554
|
+
export namespace IndexAnalysis {
|
|
7565
7555
|
interface Transport {
|
|
7566
7556
|
covering: boolean;
|
|
7567
7557
|
ranking: number;
|
|
@@ -7572,7 +7562,7 @@ declare namespace CloudantV1 {
|
|
|
7572
7562
|
/**
|
|
7573
7563
|
* A reason for index's exclusion.
|
|
7574
7564
|
*/
|
|
7575
|
-
class IndexAnalysisExclusionReason {
|
|
7565
|
+
export class IndexAnalysisExclusionReason {
|
|
7576
7566
|
/** A reason code for index's exclusion.
|
|
7577
7567
|
*
|
|
7578
7568
|
* The full list of possible reason codes is following:
|
|
@@ -7596,7 +7586,7 @@ declare namespace CloudantV1 {
|
|
|
7596
7586
|
static serialize(obj: any): IndexAnalysisExclusionReason.Transport;
|
|
7597
7587
|
static deserialize(obj: any): IndexAnalysisExclusionReason;
|
|
7598
7588
|
}
|
|
7599
|
-
namespace IndexAnalysisExclusionReason {
|
|
7589
|
+
export namespace IndexAnalysisExclusionReason {
|
|
7600
7590
|
namespace Constants {
|
|
7601
7591
|
/** A reason code for index's exclusion. The full list of possible reason codes is following: * alphabetically_comes_after: json There is another suitable index whose name comes before that of this index. * empty_selector: text "text" indexes do not support queries with empty selectors. * excluded_by_user: any use_index was used to manually specify the index. * field_mismatch: any Fields in "selector" of the query do match with the fields available in the index. * is_partial: json, text Partial indexes can be selected only manually. * less_overlap: json There is a better match of fields available within the indexes for the query. * needs_text_search: json The use of the $text operator requires a "text" index. * scope_mismatch: json The scope of the query and the index is not the same. * sort_order_mismatch: json, special Fields in "sort" of the query do not match with the fields available in the index. * too_many_fields: json The index has more fields than the chosen one. * unfavored_type: any The type of the index is not preferred. */
|
|
7602
7592
|
enum Name {
|
|
@@ -7620,7 +7610,7 @@ declare namespace CloudantV1 {
|
|
|
7620
7610
|
/**
|
|
7621
7611
|
* Schema for an index that was not chosen for serving the query with the reason for the exclusion.
|
|
7622
7612
|
*/
|
|
7623
|
-
class IndexCandidate {
|
|
7613
|
+
export class IndexCandidate {
|
|
7624
7614
|
/** Schema for detailed explanation of why the specific index was excluded by the query planner. */
|
|
7625
7615
|
analysis: IndexAnalysis;
|
|
7626
7616
|
/** Schema for information about an index. */
|
|
@@ -7628,7 +7618,7 @@ declare namespace CloudantV1 {
|
|
|
7628
7618
|
static serialize(obj: any): IndexCandidate.Transport;
|
|
7629
7619
|
static deserialize(obj: any): IndexCandidate;
|
|
7630
7620
|
}
|
|
7631
|
-
namespace IndexCandidate {
|
|
7621
|
+
export namespace IndexCandidate {
|
|
7632
7622
|
interface Transport {
|
|
7633
7623
|
analysis: IndexAnalysis.Transport;
|
|
7634
7624
|
index: IndexInformation.Transport;
|
|
@@ -7640,7 +7630,7 @@ declare namespace CloudantV1 {
|
|
|
7640
7630
|
* * `default_analyzer` - the default text analyzer to use * `default_field` - whether to index the text in all
|
|
7641
7631
|
* document fields and what analyzer to use for that purpose.
|
|
7642
7632
|
*/
|
|
7643
|
-
class IndexDefinition {
|
|
7633
|
+
export class IndexDefinition {
|
|
7644
7634
|
/** Schema for a full text search analyzer. */
|
|
7645
7635
|
defaultAnalyzer?: Analyzer;
|
|
7646
7636
|
/** Schema for the text index default field configuration. The default field is used to index the text of all
|
|
@@ -7700,7 +7690,7 @@ declare namespace CloudantV1 {
|
|
|
7700
7690
|
static serialize(obj: any): IndexDefinition.Transport;
|
|
7701
7691
|
static deserialize(obj: any): IndexDefinition;
|
|
7702
7692
|
}
|
|
7703
|
-
namespace IndexDefinition {
|
|
7693
|
+
export namespace IndexDefinition {
|
|
7704
7694
|
interface Transport {
|
|
7705
7695
|
default_analyzer?: Analyzer.Transport;
|
|
7706
7696
|
default_field?: IndexTextOperatorDefaultField.Transport;
|
|
@@ -7714,7 +7704,7 @@ declare namespace CloudantV1 {
|
|
|
7714
7704
|
*
|
|
7715
7705
|
* This type supports additional properties of type string. Schema for sort direction.
|
|
7716
7706
|
*/
|
|
7717
|
-
class IndexField {
|
|
7707
|
+
export class IndexField {
|
|
7718
7708
|
/** Name of the field. */
|
|
7719
7709
|
name?: string;
|
|
7720
7710
|
/** The type of the named field. */
|
|
@@ -7726,7 +7716,7 @@ declare namespace CloudantV1 {
|
|
|
7726
7716
|
static serialize(obj: any): IndexField.Transport;
|
|
7727
7717
|
static deserialize(obj: any): IndexField;
|
|
7728
7718
|
}
|
|
7729
|
-
namespace IndexField {
|
|
7719
|
+
export namespace IndexField {
|
|
7730
7720
|
namespace Constants {
|
|
7731
7721
|
/** The type of the named field. */
|
|
7732
7722
|
enum Type {
|
|
@@ -7745,7 +7735,7 @@ declare namespace CloudantV1 {
|
|
|
7745
7735
|
/**
|
|
7746
7736
|
* Schema for information about an index.
|
|
7747
7737
|
*/
|
|
7748
|
-
class IndexInformation {
|
|
7738
|
+
export class IndexInformation {
|
|
7749
7739
|
/** Schema for a nullable design document ID including a `_design/` prefix. */
|
|
7750
7740
|
ddoc: string | null;
|
|
7751
7741
|
/** Schema for a `json` or `text` query index definition. Indexes of type `text` have additional configuration
|
|
@@ -7763,7 +7753,7 @@ declare namespace CloudantV1 {
|
|
|
7763
7753
|
static serialize(obj: any): IndexInformation.Transport;
|
|
7764
7754
|
static deserialize(obj: any): IndexInformation;
|
|
7765
7755
|
}
|
|
7766
|
-
namespace IndexInformation {
|
|
7756
|
+
export namespace IndexInformation {
|
|
7767
7757
|
namespace Constants {
|
|
7768
7758
|
/** Schema for the type of an index. */
|
|
7769
7759
|
enum Type {
|
|
@@ -7783,7 +7773,7 @@ declare namespace CloudantV1 {
|
|
|
7783
7773
|
/**
|
|
7784
7774
|
* Schema for the result of creating an index.
|
|
7785
7775
|
*/
|
|
7786
|
-
class IndexResult {
|
|
7776
|
+
export class IndexResult {
|
|
7787
7777
|
/** Id of the design document the index was created in. */
|
|
7788
7778
|
id: string;
|
|
7789
7779
|
/** Name of the index created. */
|
|
@@ -7793,7 +7783,7 @@ declare namespace CloudantV1 {
|
|
|
7793
7783
|
static serialize(obj: any): IndexResult.Transport;
|
|
7794
7784
|
static deserialize(obj: any): IndexResult;
|
|
7795
7785
|
}
|
|
7796
|
-
namespace IndexResult {
|
|
7786
|
+
export namespace IndexResult {
|
|
7797
7787
|
namespace Constants {
|
|
7798
7788
|
/** Flag to show whether the index was created or one already exists. */
|
|
7799
7789
|
enum Result {
|
|
@@ -7811,7 +7801,7 @@ declare namespace CloudantV1 {
|
|
|
7811
7801
|
* Schema for the text index default field configuration. The default field is used to index the text of all fields
|
|
7812
7802
|
* within a document for use with the `$text` operator.
|
|
7813
7803
|
*/
|
|
7814
|
-
class IndexTextOperatorDefaultField {
|
|
7804
|
+
export class IndexTextOperatorDefaultField {
|
|
7815
7805
|
/** Schema for a full text search analyzer. */
|
|
7816
7806
|
analyzer?: Analyzer;
|
|
7817
7807
|
/** Whether or not the default_field is enabled. */
|
|
@@ -7819,7 +7809,7 @@ declare namespace CloudantV1 {
|
|
|
7819
7809
|
static serialize(obj: any): IndexTextOperatorDefaultField.Transport;
|
|
7820
7810
|
static deserialize(obj: any): IndexTextOperatorDefaultField;
|
|
7821
7811
|
}
|
|
7822
|
-
namespace IndexTextOperatorDefaultField {
|
|
7812
|
+
export namespace IndexTextOperatorDefaultField {
|
|
7823
7813
|
interface Transport {
|
|
7824
7814
|
analyzer?: Analyzer.Transport;
|
|
7825
7815
|
enabled?: boolean;
|
|
@@ -7828,7 +7818,7 @@ declare namespace CloudantV1 {
|
|
|
7828
7818
|
/**
|
|
7829
7819
|
* Schema for information about the indexes in a database.
|
|
7830
7820
|
*/
|
|
7831
|
-
class IndexesInformation {
|
|
7821
|
+
export class IndexesInformation {
|
|
7832
7822
|
/** Total number of query indexes in the database. */
|
|
7833
7823
|
totalRows: number;
|
|
7834
7824
|
/** Indexes. */
|
|
@@ -7836,7 +7826,7 @@ declare namespace CloudantV1 {
|
|
|
7836
7826
|
static serialize(obj: any): IndexesInformation.Transport;
|
|
7837
7827
|
static deserialize(obj: any): IndexesInformation;
|
|
7838
7828
|
}
|
|
7839
|
-
namespace IndexesInformation {
|
|
7829
|
+
export namespace IndexesInformation {
|
|
7840
7830
|
interface Transport {
|
|
7841
7831
|
total_rows: number;
|
|
7842
7832
|
indexes: IndexInformation[];
|
|
@@ -7845,7 +7835,7 @@ declare namespace CloudantV1 {
|
|
|
7845
7835
|
/**
|
|
7846
7836
|
* Schema for information about known nodes and cluster membership.
|
|
7847
7837
|
*/
|
|
7848
|
-
class MembershipInformation {
|
|
7838
|
+
export class MembershipInformation {
|
|
7849
7839
|
/** List of nodes this node knows about, including the ones that are part of the cluster. */
|
|
7850
7840
|
allNodes: string[];
|
|
7851
7841
|
/** All cluster nodes. */
|
|
@@ -7853,7 +7843,7 @@ declare namespace CloudantV1 {
|
|
|
7853
7843
|
static serialize(obj: any): MembershipInformation.Transport;
|
|
7854
7844
|
static deserialize(obj: any): MembershipInformation;
|
|
7855
7845
|
}
|
|
7856
|
-
namespace MembershipInformation {
|
|
7846
|
+
export namespace MembershipInformation {
|
|
7857
7847
|
interface Transport {
|
|
7858
7848
|
all_nodes: string[];
|
|
7859
7849
|
cluster_nodes: string[];
|
|
@@ -7862,13 +7852,13 @@ declare namespace CloudantV1 {
|
|
|
7862
7852
|
/**
|
|
7863
7853
|
* Schema for an OK result.
|
|
7864
7854
|
*/
|
|
7865
|
-
class Ok {
|
|
7855
|
+
export class Ok {
|
|
7866
7856
|
/** ok. */
|
|
7867
7857
|
ok?: boolean;
|
|
7868
7858
|
static serialize(obj: any): Ok.Transport;
|
|
7869
7859
|
static deserialize(obj: any): Ok;
|
|
7870
7860
|
}
|
|
7871
|
-
namespace Ok {
|
|
7861
|
+
export namespace Ok {
|
|
7872
7862
|
interface Transport {
|
|
7873
7863
|
ok?: boolean;
|
|
7874
7864
|
}
|
|
@@ -7876,7 +7866,7 @@ declare namespace CloudantV1 {
|
|
|
7876
7866
|
/**
|
|
7877
7867
|
* Schema for information about a database partition.
|
|
7878
7868
|
*/
|
|
7879
|
-
class PartitionInformation {
|
|
7869
|
+
export class PartitionInformation {
|
|
7880
7870
|
/** Schema for a database name. */
|
|
7881
7871
|
dbName: string;
|
|
7882
7872
|
/** A count of the documents in the specified database partition. */
|
|
@@ -7892,7 +7882,7 @@ declare namespace CloudantV1 {
|
|
|
7892
7882
|
static serialize(obj: any): PartitionInformation.Transport;
|
|
7893
7883
|
static deserialize(obj: any): PartitionInformation;
|
|
7894
7884
|
}
|
|
7895
|
-
namespace PartitionInformation {
|
|
7885
|
+
export namespace PartitionInformation {
|
|
7896
7886
|
interface Transport {
|
|
7897
7887
|
db_name: string;
|
|
7898
7888
|
doc_count: number;
|
|
@@ -7905,7 +7895,7 @@ declare namespace CloudantV1 {
|
|
|
7905
7895
|
/**
|
|
7906
7896
|
* Schema for information about the partition index count and limit in a database.
|
|
7907
7897
|
*/
|
|
7908
|
-
class PartitionInformationIndexes {
|
|
7898
|
+
export class PartitionInformationIndexes {
|
|
7909
7899
|
/** Total count of the partitioned indexes. */
|
|
7910
7900
|
count?: number;
|
|
7911
7901
|
/** The count breakdown of partitioned indexes. */
|
|
@@ -7915,7 +7905,7 @@ declare namespace CloudantV1 {
|
|
|
7915
7905
|
static serialize(obj: any): PartitionInformationIndexes.Transport;
|
|
7916
7906
|
static deserialize(obj: any): PartitionInformationIndexes;
|
|
7917
7907
|
}
|
|
7918
|
-
namespace PartitionInformationIndexes {
|
|
7908
|
+
export namespace PartitionInformationIndexes {
|
|
7919
7909
|
interface Transport {
|
|
7920
7910
|
count?: number;
|
|
7921
7911
|
indexes?: PartitionInformationIndexesIndexes.Transport;
|
|
@@ -7925,7 +7915,7 @@ declare namespace CloudantV1 {
|
|
|
7925
7915
|
/**
|
|
7926
7916
|
* The count breakdown of partitioned indexes.
|
|
7927
7917
|
*/
|
|
7928
|
-
class PartitionInformationIndexesIndexes {
|
|
7918
|
+
export class PartitionInformationIndexesIndexes {
|
|
7929
7919
|
/** Number of partitioned search indexes. */
|
|
7930
7920
|
search?: number;
|
|
7931
7921
|
/** Number of partitioned view indexes. */
|
|
@@ -7933,7 +7923,7 @@ declare namespace CloudantV1 {
|
|
|
7933
7923
|
static serialize(obj: any): PartitionInformationIndexesIndexes.Transport;
|
|
7934
7924
|
static deserialize(obj: any): PartitionInformationIndexesIndexes;
|
|
7935
7925
|
}
|
|
7936
|
-
namespace PartitionInformationIndexesIndexes {
|
|
7926
|
+
export namespace PartitionInformationIndexesIndexes {
|
|
7937
7927
|
interface Transport {
|
|
7938
7928
|
search?: number;
|
|
7939
7929
|
view?: number;
|
|
@@ -7942,7 +7932,7 @@ declare namespace CloudantV1 {
|
|
|
7942
7932
|
/**
|
|
7943
7933
|
* The size of active and external data, in bytes.
|
|
7944
7934
|
*/
|
|
7945
|
-
class PartitionInformationSizes {
|
|
7935
|
+
export class PartitionInformationSizes {
|
|
7946
7936
|
/** The size of live data inside the database, in bytes. */
|
|
7947
7937
|
active?: number;
|
|
7948
7938
|
/** The uncompressed size of database contents in bytes. */
|
|
@@ -7950,7 +7940,7 @@ declare namespace CloudantV1 {
|
|
|
7950
7940
|
static serialize(obj: any): PartitionInformationSizes.Transport;
|
|
7951
7941
|
static deserialize(obj: any): PartitionInformationSizes;
|
|
7952
7942
|
}
|
|
7953
|
-
namespace PartitionInformationSizes {
|
|
7943
|
+
export namespace PartitionInformationSizes {
|
|
7954
7944
|
interface Transport {
|
|
7955
7945
|
active?: number;
|
|
7956
7946
|
external?: number;
|
|
@@ -7959,7 +7949,7 @@ declare namespace CloudantV1 {
|
|
|
7959
7949
|
/**
|
|
7960
7950
|
* Number of partitioned indexes by type.
|
|
7961
7951
|
*/
|
|
7962
|
-
class PartitionedIndexesDetailedInformation {
|
|
7952
|
+
export class PartitionedIndexesDetailedInformation {
|
|
7963
7953
|
/** Number of partitioned indexes of search type. */
|
|
7964
7954
|
search?: number;
|
|
7965
7955
|
/** Number of partitioned indexes of view type. */
|
|
@@ -7967,7 +7957,7 @@ declare namespace CloudantV1 {
|
|
|
7967
7957
|
static serialize(obj: any): PartitionedIndexesDetailedInformation.Transport;
|
|
7968
7958
|
static deserialize(obj: any): PartitionedIndexesDetailedInformation;
|
|
7969
7959
|
}
|
|
7970
|
-
namespace PartitionedIndexesDetailedInformation {
|
|
7960
|
+
export namespace PartitionedIndexesDetailedInformation {
|
|
7971
7961
|
interface Transport {
|
|
7972
7962
|
search?: number;
|
|
7973
7963
|
view?: number;
|
|
@@ -7976,7 +7966,7 @@ declare namespace CloudantV1 {
|
|
|
7976
7966
|
/**
|
|
7977
7967
|
* Information about database's partitioned indexes.
|
|
7978
7968
|
*/
|
|
7979
|
-
class PartitionedIndexesInformation {
|
|
7969
|
+
export class PartitionedIndexesInformation {
|
|
7980
7970
|
/** Total number of partitioned indexes in the database. */
|
|
7981
7971
|
count?: number;
|
|
7982
7972
|
/** Number of partitioned indexes by type. */
|
|
@@ -7986,7 +7976,7 @@ declare namespace CloudantV1 {
|
|
|
7986
7976
|
static serialize(obj: any): PartitionedIndexesInformation.Transport;
|
|
7987
7977
|
static deserialize(obj: any): PartitionedIndexesInformation;
|
|
7988
7978
|
}
|
|
7989
|
-
namespace PartitionedIndexesInformation {
|
|
7979
|
+
export namespace PartitionedIndexesInformation {
|
|
7990
7980
|
interface Transport {
|
|
7991
7981
|
count?: number;
|
|
7992
7982
|
indexes?: PartitionedIndexesDetailedInformation.Transport;
|
|
@@ -7996,7 +7986,7 @@ declare namespace CloudantV1 {
|
|
|
7996
7986
|
/**
|
|
7997
7987
|
* Request parameters to use during target database creation.
|
|
7998
7988
|
*/
|
|
7999
|
-
class ReplicationCreateTargetParameters {
|
|
7989
|
+
export class ReplicationCreateTargetParameters {
|
|
8000
7990
|
/** Schema for the number of replicas of a database in a cluster. The cluster is using the default value and it
|
|
8001
7991
|
* cannot be changed by the user.
|
|
8002
7992
|
*/
|
|
@@ -8008,7 +7998,7 @@ declare namespace CloudantV1 {
|
|
|
8008
7998
|
static serialize(obj: any): ReplicationCreateTargetParameters.Transport;
|
|
8009
7999
|
static deserialize(obj: any): ReplicationCreateTargetParameters;
|
|
8010
8000
|
}
|
|
8011
|
-
namespace ReplicationCreateTargetParameters {
|
|
8001
|
+
export namespace ReplicationCreateTargetParameters {
|
|
8012
8002
|
interface Transport {
|
|
8013
8003
|
n?: number;
|
|
8014
8004
|
partitioned?: boolean;
|
|
@@ -8018,7 +8008,7 @@ declare namespace CloudantV1 {
|
|
|
8018
8008
|
/**
|
|
8019
8009
|
* Schema for a replication source or target database.
|
|
8020
8010
|
*/
|
|
8021
|
-
class ReplicationDatabase {
|
|
8011
|
+
export class ReplicationDatabase {
|
|
8022
8012
|
/** Schema for replication source or target database authentication. */
|
|
8023
8013
|
auth?: ReplicationDatabaseAuth;
|
|
8024
8014
|
/** Replication request headers. */
|
|
@@ -8028,7 +8018,7 @@ declare namespace CloudantV1 {
|
|
|
8028
8018
|
static serialize(obj: any): ReplicationDatabase.Transport;
|
|
8029
8019
|
static deserialize(obj: any): ReplicationDatabase;
|
|
8030
8020
|
}
|
|
8031
|
-
namespace ReplicationDatabase {
|
|
8021
|
+
export namespace ReplicationDatabase {
|
|
8032
8022
|
interface Transport {
|
|
8033
8023
|
auth?: ReplicationDatabaseAuth.Transport;
|
|
8034
8024
|
headers?: JsonObject;
|
|
@@ -8038,7 +8028,7 @@ declare namespace CloudantV1 {
|
|
|
8038
8028
|
/**
|
|
8039
8029
|
* Schema for replication source or target database authentication.
|
|
8040
8030
|
*/
|
|
8041
|
-
class ReplicationDatabaseAuth {
|
|
8031
|
+
export class ReplicationDatabaseAuth {
|
|
8042
8032
|
/** Schema for basic authentication of replication source or target database. */
|
|
8043
8033
|
basic?: ReplicationDatabaseAuthBasic;
|
|
8044
8034
|
/** Schema for an IAM API key for replication database authentication. */
|
|
@@ -8046,7 +8036,7 @@ declare namespace CloudantV1 {
|
|
|
8046
8036
|
static serialize(obj: any): ReplicationDatabaseAuth.Transport;
|
|
8047
8037
|
static deserialize(obj: any): ReplicationDatabaseAuth;
|
|
8048
8038
|
}
|
|
8049
|
-
namespace ReplicationDatabaseAuth {
|
|
8039
|
+
export namespace ReplicationDatabaseAuth {
|
|
8050
8040
|
interface Transport {
|
|
8051
8041
|
basic?: ReplicationDatabaseAuthBasic.Transport;
|
|
8052
8042
|
iam?: ReplicationDatabaseAuthIam.Transport;
|
|
@@ -8055,7 +8045,7 @@ declare namespace CloudantV1 {
|
|
|
8055
8045
|
/**
|
|
8056
8046
|
* Schema for basic authentication of replication source or target database.
|
|
8057
8047
|
*/
|
|
8058
|
-
class ReplicationDatabaseAuthBasic {
|
|
8048
|
+
export class ReplicationDatabaseAuthBasic {
|
|
8059
8049
|
/** The password associated with the username. */
|
|
8060
8050
|
password: string;
|
|
8061
8051
|
/** Schema for a username. */
|
|
@@ -8063,7 +8053,7 @@ declare namespace CloudantV1 {
|
|
|
8063
8053
|
static serialize(obj: any): ReplicationDatabaseAuthBasic.Transport;
|
|
8064
8054
|
static deserialize(obj: any): ReplicationDatabaseAuthBasic;
|
|
8065
8055
|
}
|
|
8066
|
-
namespace ReplicationDatabaseAuthBasic {
|
|
8056
|
+
export namespace ReplicationDatabaseAuthBasic {
|
|
8067
8057
|
interface Transport {
|
|
8068
8058
|
password: string;
|
|
8069
8059
|
username: string;
|
|
@@ -8072,13 +8062,13 @@ declare namespace CloudantV1 {
|
|
|
8072
8062
|
/**
|
|
8073
8063
|
* Schema for an IAM API key for replication database authentication.
|
|
8074
8064
|
*/
|
|
8075
|
-
class ReplicationDatabaseAuthIam {
|
|
8065
|
+
export class ReplicationDatabaseAuthIam {
|
|
8076
8066
|
/** IAM API key. */
|
|
8077
8067
|
apiKey: string;
|
|
8078
8068
|
static serialize(obj: any): ReplicationDatabaseAuthIam.Transport;
|
|
8079
8069
|
static deserialize(obj: any): ReplicationDatabaseAuthIam;
|
|
8080
8070
|
}
|
|
8081
|
-
namespace ReplicationDatabaseAuthIam {
|
|
8071
|
+
export namespace ReplicationDatabaseAuthIam {
|
|
8082
8072
|
interface Transport {
|
|
8083
8073
|
api_key: string;
|
|
8084
8074
|
}
|
|
@@ -8088,7 +8078,7 @@ declare namespace CloudantV1 {
|
|
|
8088
8078
|
*
|
|
8089
8079
|
* This type supports additional properties of type any.
|
|
8090
8080
|
*/
|
|
8091
|
-
class ReplicationDocument {
|
|
8081
|
+
export class ReplicationDocument {
|
|
8092
8082
|
/** Schema for a map of attachment name to attachment metadata. */
|
|
8093
8083
|
_attachments?: {
|
|
8094
8084
|
[key: string]: Attachment;
|
|
@@ -8229,7 +8219,7 @@ declare namespace CloudantV1 {
|
|
|
8229
8219
|
static serialize(obj: any): ReplicationDocument.Transport;
|
|
8230
8220
|
static deserialize(obj: any): ReplicationDocument;
|
|
8231
8221
|
}
|
|
8232
|
-
namespace ReplicationDocument {
|
|
8222
|
+
export namespace ReplicationDocument {
|
|
8233
8223
|
interface Transport {
|
|
8234
8224
|
_attachments?: {
|
|
8235
8225
|
[key: string]: Attachment.Transport;
|
|
@@ -8274,7 +8264,7 @@ declare namespace CloudantV1 {
|
|
|
8274
8264
|
/**
|
|
8275
8265
|
* Schema for list of revision information.
|
|
8276
8266
|
*/
|
|
8277
|
-
class Revisions {
|
|
8267
|
+
export class Revisions {
|
|
8278
8268
|
/** Array of valid revision IDs, in reverse order (latest first). */
|
|
8279
8269
|
ids: string[];
|
|
8280
8270
|
/** Prefix number for the latest revision. */
|
|
@@ -8282,7 +8272,7 @@ declare namespace CloudantV1 {
|
|
|
8282
8272
|
static serialize(obj: any): Revisions.Transport;
|
|
8283
8273
|
static deserialize(obj: any): Revisions;
|
|
8284
8274
|
}
|
|
8285
|
-
namespace Revisions {
|
|
8275
|
+
export namespace Revisions {
|
|
8286
8276
|
interface Transport {
|
|
8287
8277
|
ids: string[];
|
|
8288
8278
|
start: number;
|
|
@@ -8291,7 +8281,7 @@ declare namespace CloudantV1 {
|
|
|
8291
8281
|
/**
|
|
8292
8282
|
* Schema for information about missing revs and possible ancestors.
|
|
8293
8283
|
*/
|
|
8294
|
-
class RevsDiff {
|
|
8284
|
+
export class RevsDiff {
|
|
8295
8285
|
/** List of missing revisions. */
|
|
8296
8286
|
missing?: string[];
|
|
8297
8287
|
/** List of possible ancestor revisions. */
|
|
@@ -8299,7 +8289,7 @@ declare namespace CloudantV1 {
|
|
|
8299
8289
|
static serialize(obj: any): RevsDiff.Transport;
|
|
8300
8290
|
static deserialize(obj: any): RevsDiff;
|
|
8301
8291
|
}
|
|
8302
|
-
namespace RevsDiff {
|
|
8292
|
+
export namespace RevsDiff {
|
|
8303
8293
|
interface Transport {
|
|
8304
8294
|
missing?: string[];
|
|
8305
8295
|
possible_ancestors?: string[];
|
|
@@ -8308,7 +8298,7 @@ declare namespace CloudantV1 {
|
|
|
8308
8298
|
/**
|
|
8309
8299
|
* Schema for a listing of replication scheduler documents.
|
|
8310
8300
|
*/
|
|
8311
|
-
class SchedulerDocsResult {
|
|
8301
|
+
export class SchedulerDocsResult {
|
|
8312
8302
|
/** Total number of replication scheduler documents. */
|
|
8313
8303
|
totalRows: number;
|
|
8314
8304
|
/** Array of replication scheduler doc objects. */
|
|
@@ -8316,7 +8306,7 @@ declare namespace CloudantV1 {
|
|
|
8316
8306
|
static serialize(obj: any): SchedulerDocsResult.Transport;
|
|
8317
8307
|
static deserialize(obj: any): SchedulerDocsResult;
|
|
8318
8308
|
}
|
|
8319
|
-
namespace SchedulerDocsResult {
|
|
8309
|
+
export namespace SchedulerDocsResult {
|
|
8320
8310
|
interface Transport {
|
|
8321
8311
|
total_rows: number;
|
|
8322
8312
|
docs: SchedulerDocument[];
|
|
@@ -8325,7 +8315,7 @@ declare namespace CloudantV1 {
|
|
|
8325
8315
|
/**
|
|
8326
8316
|
* Schema for a replication scheduler document.
|
|
8327
8317
|
*/
|
|
8328
|
-
class SchedulerDocument {
|
|
8318
|
+
export class SchedulerDocument {
|
|
8329
8319
|
/** Database where replication document came from. */
|
|
8330
8320
|
database: string;
|
|
8331
8321
|
/** Replication document ID. */
|
|
@@ -8366,7 +8356,7 @@ declare namespace CloudantV1 {
|
|
|
8366
8356
|
static serialize(obj: any): SchedulerDocument.Transport;
|
|
8367
8357
|
static deserialize(obj: any): SchedulerDocument;
|
|
8368
8358
|
}
|
|
8369
|
-
namespace SchedulerDocument {
|
|
8359
|
+
export namespace SchedulerDocument {
|
|
8370
8360
|
namespace Constants {
|
|
8371
8361
|
/** Schema for replication state. */
|
|
8372
8362
|
enum State {
|
|
@@ -8399,7 +8389,7 @@ declare namespace CloudantV1 {
|
|
|
8399
8389
|
* Schema for scheduler document information. A JSON object that may contain additional information about the state.
|
|
8400
8390
|
* For error states this will contain an error field and string value.
|
|
8401
8391
|
*/
|
|
8402
|
-
class SchedulerInfo {
|
|
8392
|
+
export class SchedulerInfo {
|
|
8403
8393
|
/** The count of changes not yet replicated. */
|
|
8404
8394
|
changesPending?: number | null;
|
|
8405
8395
|
/** The source sequence id which was last successfully replicated. */
|
|
@@ -8423,7 +8413,7 @@ declare namespace CloudantV1 {
|
|
|
8423
8413
|
static serialize(obj: any): SchedulerInfo.Transport;
|
|
8424
8414
|
static deserialize(obj: any): SchedulerInfo;
|
|
8425
8415
|
}
|
|
8426
|
-
namespace SchedulerInfo {
|
|
8416
|
+
export namespace SchedulerInfo {
|
|
8427
8417
|
interface Transport {
|
|
8428
8418
|
changes_pending?: number;
|
|
8429
8419
|
checkpointed_source_seq?: string;
|
|
@@ -8440,7 +8430,7 @@ declare namespace CloudantV1 {
|
|
|
8440
8430
|
/**
|
|
8441
8431
|
* Schema for a replication scheduler job.
|
|
8442
8432
|
*/
|
|
8443
|
-
class SchedulerJob {
|
|
8433
|
+
export class SchedulerJob {
|
|
8444
8434
|
/** Replication document database. */
|
|
8445
8435
|
database: string;
|
|
8446
8436
|
/** Replication document ID. */
|
|
@@ -8468,7 +8458,7 @@ declare namespace CloudantV1 {
|
|
|
8468
8458
|
static serialize(obj: any): SchedulerJob.Transport;
|
|
8469
8459
|
static deserialize(obj: any): SchedulerJob;
|
|
8470
8460
|
}
|
|
8471
|
-
namespace SchedulerJob {
|
|
8461
|
+
export namespace SchedulerJob {
|
|
8472
8462
|
interface Transport {
|
|
8473
8463
|
database: string;
|
|
8474
8464
|
doc_id: string;
|
|
@@ -8486,7 +8476,7 @@ declare namespace CloudantV1 {
|
|
|
8486
8476
|
/**
|
|
8487
8477
|
* Schema for a replication scheduler job event.
|
|
8488
8478
|
*/
|
|
8489
|
-
class SchedulerJobEvent {
|
|
8479
|
+
export class SchedulerJobEvent {
|
|
8490
8480
|
/** Reason for current state of event. */
|
|
8491
8481
|
reason?: string;
|
|
8492
8482
|
/** Timestamp of the event. */
|
|
@@ -8496,7 +8486,7 @@ declare namespace CloudantV1 {
|
|
|
8496
8486
|
static serialize(obj: any): SchedulerJobEvent.Transport;
|
|
8497
8487
|
static deserialize(obj: any): SchedulerJobEvent;
|
|
8498
8488
|
}
|
|
8499
|
-
namespace SchedulerJobEvent {
|
|
8489
|
+
export namespace SchedulerJobEvent {
|
|
8500
8490
|
interface Transport {
|
|
8501
8491
|
reason?: string;
|
|
8502
8492
|
timestamp: string;
|
|
@@ -8506,7 +8496,7 @@ declare namespace CloudantV1 {
|
|
|
8506
8496
|
/**
|
|
8507
8497
|
* Schema for a listing of replication scheduler jobs.
|
|
8508
8498
|
*/
|
|
8509
|
-
class SchedulerJobsResult {
|
|
8499
|
+
export class SchedulerJobsResult {
|
|
8510
8500
|
/** Total number of replication jobs. */
|
|
8511
8501
|
totalRows: number;
|
|
8512
8502
|
/** Array of replication job objects. */
|
|
@@ -8514,7 +8504,7 @@ declare namespace CloudantV1 {
|
|
|
8514
8504
|
static serialize(obj: any): SchedulerJobsResult.Transport;
|
|
8515
8505
|
static deserialize(obj: any): SchedulerJobsResult;
|
|
8516
8506
|
}
|
|
8517
|
-
namespace SchedulerJobsResult {
|
|
8507
|
+
export namespace SchedulerJobsResult {
|
|
8518
8508
|
interface Transport {
|
|
8519
8509
|
total_rows: number;
|
|
8520
8510
|
jobs: SchedulerJob[];
|
|
@@ -8523,13 +8513,13 @@ declare namespace CloudantV1 {
|
|
|
8523
8513
|
/**
|
|
8524
8514
|
* Schema for the output of testing search analyzer tokenization.
|
|
8525
8515
|
*/
|
|
8526
|
-
class SearchAnalyzeResult {
|
|
8516
|
+
export class SearchAnalyzeResult {
|
|
8527
8517
|
/** tokens. */
|
|
8528
8518
|
tokens: string[];
|
|
8529
8519
|
static serialize(obj: any): SearchAnalyzeResult.Transport;
|
|
8530
8520
|
static deserialize(obj: any): SearchAnalyzeResult;
|
|
8531
8521
|
}
|
|
8532
|
-
namespace SearchAnalyzeResult {
|
|
8522
|
+
export namespace SearchAnalyzeResult {
|
|
8533
8523
|
interface Transport {
|
|
8534
8524
|
tokens: string[];
|
|
8535
8525
|
}
|
|
@@ -8537,7 +8527,7 @@ declare namespace CloudantV1 {
|
|
|
8537
8527
|
/**
|
|
8538
8528
|
* Schema for search index disk size.
|
|
8539
8529
|
*/
|
|
8540
|
-
class SearchDiskSizeInformation {
|
|
8530
|
+
export class SearchDiskSizeInformation {
|
|
8541
8531
|
/** The name of the search index prefixed by the design document ID where the index is stored. */
|
|
8542
8532
|
name: string;
|
|
8543
8533
|
/** Schema for search index disk size. */
|
|
@@ -8545,7 +8535,7 @@ declare namespace CloudantV1 {
|
|
|
8545
8535
|
static serialize(obj: any): SearchDiskSizeInformation.Transport;
|
|
8546
8536
|
static deserialize(obj: any): SearchDiskSizeInformation;
|
|
8547
8537
|
}
|
|
8548
|
-
namespace SearchDiskSizeInformation {
|
|
8538
|
+
export namespace SearchDiskSizeInformation {
|
|
8549
8539
|
interface Transport {
|
|
8550
8540
|
name: string;
|
|
8551
8541
|
search_index: SearchIndexDiskSize.Transport;
|
|
@@ -8554,7 +8544,7 @@ declare namespace CloudantV1 {
|
|
|
8554
8544
|
/**
|
|
8555
8545
|
* Schema for a search index definition.
|
|
8556
8546
|
*/
|
|
8557
|
-
class SearchIndexDefinition {
|
|
8547
|
+
export class SearchIndexDefinition {
|
|
8558
8548
|
/** Schema for a search analyzer configuration. */
|
|
8559
8549
|
analyzer?: AnalyzerConfiguration;
|
|
8560
8550
|
/** String form of a JavaScript function that is called for each document in the database. The function takes
|
|
@@ -8581,7 +8571,7 @@ declare namespace CloudantV1 {
|
|
|
8581
8571
|
static serialize(obj: any): SearchIndexDefinition.Transport;
|
|
8582
8572
|
static deserialize(obj: any): SearchIndexDefinition;
|
|
8583
8573
|
}
|
|
8584
|
-
namespace SearchIndexDefinition {
|
|
8574
|
+
export namespace SearchIndexDefinition {
|
|
8585
8575
|
interface Transport {
|
|
8586
8576
|
analyzer?: AnalyzerConfiguration.Transport;
|
|
8587
8577
|
index: string;
|
|
@@ -8590,13 +8580,13 @@ declare namespace CloudantV1 {
|
|
|
8590
8580
|
/**
|
|
8591
8581
|
* Schema for search index disk size.
|
|
8592
8582
|
*/
|
|
8593
|
-
class SearchIndexDiskSize {
|
|
8583
|
+
export class SearchIndexDiskSize {
|
|
8594
8584
|
/** The size of the search index on disk. */
|
|
8595
8585
|
diskSize?: number;
|
|
8596
8586
|
static serialize(obj: any): SearchIndexDiskSize.Transport;
|
|
8597
8587
|
static deserialize(obj: any): SearchIndexDiskSize;
|
|
8598
8588
|
}
|
|
8599
|
-
namespace SearchIndexDiskSize {
|
|
8589
|
+
export namespace SearchIndexDiskSize {
|
|
8600
8590
|
interface Transport {
|
|
8601
8591
|
disk_size?: number;
|
|
8602
8592
|
}
|
|
@@ -8604,7 +8594,7 @@ declare namespace CloudantV1 {
|
|
|
8604
8594
|
/**
|
|
8605
8595
|
* Schema for metadata information about a search index.
|
|
8606
8596
|
*/
|
|
8607
|
-
class SearchIndexInfo {
|
|
8597
|
+
export class SearchIndexInfo {
|
|
8608
8598
|
/** The committed sequence identifier. */
|
|
8609
8599
|
committedSeq: number;
|
|
8610
8600
|
/** The size of the search index on disk. */
|
|
@@ -8620,7 +8610,7 @@ declare namespace CloudantV1 {
|
|
|
8620
8610
|
static serialize(obj: any): SearchIndexInfo.Transport;
|
|
8621
8611
|
static deserialize(obj: any): SearchIndexInfo;
|
|
8622
8612
|
}
|
|
8623
|
-
namespace SearchIndexInfo {
|
|
8613
|
+
export namespace SearchIndexInfo {
|
|
8624
8614
|
interface Transport {
|
|
8625
8615
|
committed_seq: number;
|
|
8626
8616
|
disk_size: number;
|
|
@@ -8633,7 +8623,7 @@ declare namespace CloudantV1 {
|
|
|
8633
8623
|
/**
|
|
8634
8624
|
* Schema for search index information.
|
|
8635
8625
|
*/
|
|
8636
|
-
class SearchInfoResult {
|
|
8626
|
+
export class SearchInfoResult {
|
|
8637
8627
|
/** The name of the search index prefixed by the design document ID where the index is stored. */
|
|
8638
8628
|
name: string;
|
|
8639
8629
|
/** Schema for metadata information about a search index. */
|
|
@@ -8641,7 +8631,7 @@ declare namespace CloudantV1 {
|
|
|
8641
8631
|
static serialize(obj: any): SearchInfoResult.Transport;
|
|
8642
8632
|
static deserialize(obj: any): SearchInfoResult;
|
|
8643
8633
|
}
|
|
8644
|
-
namespace SearchInfoResult {
|
|
8634
|
+
export namespace SearchInfoResult {
|
|
8645
8635
|
interface Transport {
|
|
8646
8636
|
name: string;
|
|
8647
8637
|
search_index: SearchIndexInfo.Transport;
|
|
@@ -8650,7 +8640,7 @@ declare namespace CloudantV1 {
|
|
|
8650
8640
|
/**
|
|
8651
8641
|
* Schema for the result of a query search operation.
|
|
8652
8642
|
*/
|
|
8653
|
-
class SearchResult {
|
|
8643
|
+
export class SearchResult {
|
|
8654
8644
|
/** Total number of rows in the index matching the search query. The limit may truncate the number of matches
|
|
8655
8645
|
* returned.
|
|
8656
8646
|
*/
|
|
@@ -8676,7 +8666,7 @@ declare namespace CloudantV1 {
|
|
|
8676
8666
|
static serialize(obj: any): SearchResult.Transport;
|
|
8677
8667
|
static deserialize(obj: any): SearchResult;
|
|
8678
8668
|
}
|
|
8679
|
-
namespace SearchResult {
|
|
8669
|
+
export namespace SearchResult {
|
|
8680
8670
|
interface Transport {
|
|
8681
8671
|
total_rows: number;
|
|
8682
8672
|
bookmark?: string;
|
|
@@ -8694,7 +8684,7 @@ declare namespace CloudantV1 {
|
|
|
8694
8684
|
/**
|
|
8695
8685
|
* Schema for the result of a query search operation.
|
|
8696
8686
|
*/
|
|
8697
|
-
class SearchResultProperties {
|
|
8687
|
+
export class SearchResultProperties {
|
|
8698
8688
|
/** Total number of rows in the index matching the search query. The limit may truncate the number of matches
|
|
8699
8689
|
* returned.
|
|
8700
8690
|
*/
|
|
@@ -8718,7 +8708,7 @@ declare namespace CloudantV1 {
|
|
|
8718
8708
|
static serialize(obj: any): SearchResultProperties.Transport;
|
|
8719
8709
|
static deserialize(obj: any): SearchResultProperties;
|
|
8720
8710
|
}
|
|
8721
|
-
namespace SearchResultProperties {
|
|
8711
|
+
export namespace SearchResultProperties {
|
|
8722
8712
|
interface Transport {
|
|
8723
8713
|
total_rows: number;
|
|
8724
8714
|
bookmark?: string;
|
|
@@ -8735,7 +8725,7 @@ declare namespace CloudantV1 {
|
|
|
8735
8725
|
/**
|
|
8736
8726
|
* Schema for a row of the result of a query search operation.
|
|
8737
8727
|
*/
|
|
8738
|
-
class SearchResultRow {
|
|
8728
|
+
export class SearchResultRow {
|
|
8739
8729
|
/** Schema for a document. */
|
|
8740
8730
|
doc?: Document;
|
|
8741
8731
|
/** Schema for the fields returned by a query search operation, a map of field name to value. */
|
|
@@ -8749,7 +8739,7 @@ declare namespace CloudantV1 {
|
|
|
8749
8739
|
static serialize(obj: any): SearchResultRow.Transport;
|
|
8750
8740
|
static deserialize(obj: any): SearchResultRow;
|
|
8751
8741
|
}
|
|
8752
|
-
namespace SearchResultRow {
|
|
8742
|
+
export namespace SearchResultRow {
|
|
8753
8743
|
interface Transport {
|
|
8754
8744
|
doc?: Document.Transport;
|
|
8755
8745
|
fields: JsonObject;
|
|
@@ -8760,7 +8750,7 @@ declare namespace CloudantV1 {
|
|
|
8760
8750
|
/**
|
|
8761
8751
|
* Schema for a security document.
|
|
8762
8752
|
*/
|
|
8763
|
-
class Security {
|
|
8753
|
+
export class Security {
|
|
8764
8754
|
/** Schema for names and roles to map to a database permission. */
|
|
8765
8755
|
admins?: SecurityObject;
|
|
8766
8756
|
/** Database permissions for Cloudant users and/or API keys. */
|
|
@@ -8772,7 +8762,7 @@ declare namespace CloudantV1 {
|
|
|
8772
8762
|
static serialize(obj: any): Security.Transport;
|
|
8773
8763
|
static deserialize(obj: any): Security;
|
|
8774
8764
|
}
|
|
8775
|
-
namespace Security {
|
|
8765
|
+
export namespace Security {
|
|
8776
8766
|
interface Transport {
|
|
8777
8767
|
admins?: SecurityObject.Transport;
|
|
8778
8768
|
cloudant?: JsonObject;
|
|
@@ -8783,7 +8773,7 @@ declare namespace CloudantV1 {
|
|
|
8783
8773
|
/**
|
|
8784
8774
|
* Schema for names and roles to map to a database permission.
|
|
8785
8775
|
*/
|
|
8786
|
-
class SecurityObject {
|
|
8776
|
+
export class SecurityObject {
|
|
8787
8777
|
/** List of usernames. */
|
|
8788
8778
|
names?: string[];
|
|
8789
8779
|
/** List of roles. */
|
|
@@ -8791,7 +8781,7 @@ declare namespace CloudantV1 {
|
|
|
8791
8781
|
static serialize(obj: any): SecurityObject.Transport;
|
|
8792
8782
|
static deserialize(obj: any): SecurityObject;
|
|
8793
8783
|
}
|
|
8794
|
-
namespace SecurityObject {
|
|
8784
|
+
export namespace SecurityObject {
|
|
8795
8785
|
interface Transport {
|
|
8796
8786
|
names?: string[];
|
|
8797
8787
|
roles?: string[];
|
|
@@ -8800,7 +8790,7 @@ declare namespace CloudantV1 {
|
|
|
8800
8790
|
/**
|
|
8801
8791
|
* Schema for extra information on the selector.
|
|
8802
8792
|
*/
|
|
8803
|
-
class SelectorHint {
|
|
8793
|
+
export class SelectorHint {
|
|
8804
8794
|
/** A list of fields in the given selector that can be used to restrict the query. */
|
|
8805
8795
|
indexableFields: string[];
|
|
8806
8796
|
/** A type of the index. */
|
|
@@ -8810,7 +8800,7 @@ declare namespace CloudantV1 {
|
|
|
8810
8800
|
static serialize(obj: any): SelectorHint.Transport;
|
|
8811
8801
|
static deserialize(obj: any): SelectorHint;
|
|
8812
8802
|
}
|
|
8813
|
-
namespace SelectorHint {
|
|
8803
|
+
export namespace SelectorHint {
|
|
8814
8804
|
namespace Constants {
|
|
8815
8805
|
/** A type of the index. */
|
|
8816
8806
|
enum Type {
|
|
@@ -8827,7 +8817,7 @@ declare namespace CloudantV1 {
|
|
|
8827
8817
|
/**
|
|
8828
8818
|
* Schema for information about the server instance.
|
|
8829
8819
|
*/
|
|
8830
|
-
class ServerInformation {
|
|
8820
|
+
export class ServerInformation {
|
|
8831
8821
|
/** Welcome message. */
|
|
8832
8822
|
couchdb: string;
|
|
8833
8823
|
/** List of enabled optional features. */
|
|
@@ -8841,7 +8831,7 @@ declare namespace CloudantV1 {
|
|
|
8841
8831
|
static serialize(obj: any): ServerInformation.Transport;
|
|
8842
8832
|
static deserialize(obj: any): ServerInformation;
|
|
8843
8833
|
}
|
|
8844
|
-
namespace ServerInformation {
|
|
8834
|
+
export namespace ServerInformation {
|
|
8845
8835
|
interface Transport {
|
|
8846
8836
|
couchdb: string;
|
|
8847
8837
|
features: string[];
|
|
@@ -8855,7 +8845,7 @@ declare namespace CloudantV1 {
|
|
|
8855
8845
|
*
|
|
8856
8846
|
* This type supports additional properties of type string.
|
|
8857
8847
|
*/
|
|
8858
|
-
class ServerVendor {
|
|
8848
|
+
export class ServerVendor {
|
|
8859
8849
|
/** Vendor name. */
|
|
8860
8850
|
name: string;
|
|
8861
8851
|
/** Vendor variant. */
|
|
@@ -8869,7 +8859,7 @@ declare namespace CloudantV1 {
|
|
|
8869
8859
|
static serialize(obj: any): ServerVendor.Transport;
|
|
8870
8860
|
static deserialize(obj: any): ServerVendor;
|
|
8871
8861
|
}
|
|
8872
|
-
namespace ServerVendor {
|
|
8862
|
+
export namespace ServerVendor {
|
|
8873
8863
|
namespace Constants {
|
|
8874
8864
|
/** Vendor variant. */
|
|
8875
8865
|
enum Variant {
|
|
@@ -8887,7 +8877,7 @@ declare namespace CloudantV1 {
|
|
|
8887
8877
|
/**
|
|
8888
8878
|
* Schema for session authentication information.
|
|
8889
8879
|
*/
|
|
8890
|
-
class SessionAuthentication {
|
|
8880
|
+
export class SessionAuthentication {
|
|
8891
8881
|
/** authenticated. */
|
|
8892
8882
|
authenticated?: string;
|
|
8893
8883
|
/** authentication_db. */
|
|
@@ -8897,7 +8887,7 @@ declare namespace CloudantV1 {
|
|
|
8897
8887
|
static serialize(obj: any): SessionAuthentication.Transport;
|
|
8898
8888
|
static deserialize(obj: any): SessionAuthentication;
|
|
8899
8889
|
}
|
|
8900
|
-
namespace SessionAuthentication {
|
|
8890
|
+
export namespace SessionAuthentication {
|
|
8901
8891
|
interface Transport {
|
|
8902
8892
|
authenticated?: string;
|
|
8903
8893
|
authentication_db?: string;
|
|
@@ -8907,7 +8897,7 @@ declare namespace CloudantV1 {
|
|
|
8907
8897
|
/**
|
|
8908
8898
|
* Schema for information about a session.
|
|
8909
8899
|
*/
|
|
8910
|
-
class SessionInformation {
|
|
8900
|
+
export class SessionInformation {
|
|
8911
8901
|
/** ok. */
|
|
8912
8902
|
ok: boolean;
|
|
8913
8903
|
/** Schema for session authentication information. */
|
|
@@ -8917,7 +8907,7 @@ declare namespace CloudantV1 {
|
|
|
8917
8907
|
static serialize(obj: any): SessionInformation.Transport;
|
|
8918
8908
|
static deserialize(obj: any): SessionInformation;
|
|
8919
8909
|
}
|
|
8920
|
-
namespace SessionInformation {
|
|
8910
|
+
export namespace SessionInformation {
|
|
8921
8911
|
interface Transport {
|
|
8922
8912
|
ok: boolean;
|
|
8923
8913
|
info: SessionAuthentication.Transport;
|
|
@@ -8928,13 +8918,13 @@ declare namespace CloudantV1 {
|
|
|
8928
8918
|
* Schema for a shards object that maps the hash value range for each shard to the array of nodes that contain a copy
|
|
8929
8919
|
* of that shard.
|
|
8930
8920
|
*/
|
|
8931
|
-
class ShardsInformation {
|
|
8921
|
+
export class ShardsInformation {
|
|
8932
8922
|
/** Mapping of shard hash value range to a list of nodes. */
|
|
8933
8923
|
shards: JsonObject;
|
|
8934
8924
|
static serialize(obj: any): ShardsInformation.Transport;
|
|
8935
8925
|
static deserialize(obj: any): ShardsInformation;
|
|
8936
8926
|
}
|
|
8937
|
-
namespace ShardsInformation {
|
|
8927
|
+
export namespace ShardsInformation {
|
|
8938
8928
|
interface Transport {
|
|
8939
8929
|
shards: JsonObject;
|
|
8940
8930
|
}
|
|
@@ -8942,7 +8932,7 @@ declare namespace CloudantV1 {
|
|
|
8942
8932
|
/**
|
|
8943
8933
|
* Schema for detailed information about throughput capacity with breakdown by specific throughput requests classes.
|
|
8944
8934
|
*/
|
|
8945
|
-
class ThroughputInformation {
|
|
8935
|
+
export class ThroughputInformation {
|
|
8946
8936
|
/** A number of blocks of throughput units. A block consists of 100 reads/sec, 50 writes/sec, and 5 global
|
|
8947
8937
|
* queries/sec of provisioned throughput capacity. Not available for some plans.
|
|
8948
8938
|
*/
|
|
@@ -8956,7 +8946,7 @@ declare namespace CloudantV1 {
|
|
|
8956
8946
|
static serialize(obj: any): ThroughputInformation.Transport;
|
|
8957
8947
|
static deserialize(obj: any): ThroughputInformation;
|
|
8958
8948
|
}
|
|
8959
|
-
namespace ThroughputInformation {
|
|
8949
|
+
export namespace ThroughputInformation {
|
|
8960
8950
|
interface Transport {
|
|
8961
8951
|
blocks?: number;
|
|
8962
8952
|
query: number;
|
|
@@ -8967,7 +8957,7 @@ declare namespace CloudantV1 {
|
|
|
8967
8957
|
/**
|
|
8968
8958
|
* Schema for information about the up state of the server.
|
|
8969
8959
|
*/
|
|
8970
|
-
class UpInformation {
|
|
8960
|
+
export class UpInformation {
|
|
8971
8961
|
/** seeds. */
|
|
8972
8962
|
seeds?: JsonObject;
|
|
8973
8963
|
/** status. */
|
|
@@ -8975,7 +8965,7 @@ declare namespace CloudantV1 {
|
|
|
8975
8965
|
static serialize(obj: any): UpInformation.Transport;
|
|
8976
8966
|
static deserialize(obj: any): UpInformation;
|
|
8977
8967
|
}
|
|
8978
|
-
namespace UpInformation {
|
|
8968
|
+
export namespace UpInformation {
|
|
8979
8969
|
namespace Constants {
|
|
8980
8970
|
/** status. */
|
|
8981
8971
|
enum Status {
|
|
@@ -8992,7 +8982,7 @@ declare namespace CloudantV1 {
|
|
|
8992
8982
|
/**
|
|
8993
8983
|
* Schema for an ability to tell if view is up-to-date without querying it.
|
|
8994
8984
|
*/
|
|
8995
|
-
class UpdatesPending {
|
|
8985
|
+
export class UpdatesPending {
|
|
8996
8986
|
/** Sum of shard copies with the least amount of work to do. */
|
|
8997
8987
|
minimum: number;
|
|
8998
8988
|
/** Sum of unique shards. This value is zero when at least one copy of every shard range is up-to-date and the
|
|
@@ -9004,7 +8994,7 @@ declare namespace CloudantV1 {
|
|
|
9004
8994
|
static serialize(obj: any): UpdatesPending.Transport;
|
|
9005
8995
|
static deserialize(obj: any): UpdatesPending;
|
|
9006
8996
|
}
|
|
9007
|
-
namespace UpdatesPending {
|
|
8997
|
+
export namespace UpdatesPending {
|
|
9008
8998
|
interface Transport {
|
|
9009
8999
|
minimum: number;
|
|
9010
9000
|
preferred: number;
|
|
@@ -9014,7 +9004,7 @@ declare namespace CloudantV1 {
|
|
|
9014
9004
|
/**
|
|
9015
9005
|
* Schema for the user context of a session.
|
|
9016
9006
|
*/
|
|
9017
|
-
class UserContext {
|
|
9007
|
+
export class UserContext {
|
|
9018
9008
|
/** Database name in the context of the provided operation. */
|
|
9019
9009
|
db?: string;
|
|
9020
9010
|
/** Name of user running the process. */
|
|
@@ -9024,7 +9014,7 @@ declare namespace CloudantV1 {
|
|
|
9024
9014
|
static serialize(obj: any): UserContext.Transport;
|
|
9025
9015
|
static deserialize(obj: any): UserContext;
|
|
9026
9016
|
}
|
|
9027
|
-
namespace UserContext {
|
|
9017
|
+
export namespace UserContext {
|
|
9028
9018
|
namespace Constants {
|
|
9029
9019
|
/** List of user roles. */
|
|
9030
9020
|
enum Roles {
|
|
@@ -9047,13 +9037,13 @@ declare namespace CloudantV1 {
|
|
|
9047
9037
|
/**
|
|
9048
9038
|
* Schema for a set of uuids generated by the server.
|
|
9049
9039
|
*/
|
|
9050
|
-
class UuidsResult {
|
|
9040
|
+
export class UuidsResult {
|
|
9051
9041
|
/** uuids. */
|
|
9052
9042
|
uuids: string[];
|
|
9053
9043
|
static serialize(obj: any): UuidsResult.Transport;
|
|
9054
9044
|
static deserialize(obj: any): UuidsResult;
|
|
9055
9045
|
}
|
|
9056
|
-
namespace UuidsResult {
|
|
9046
|
+
export namespace UuidsResult {
|
|
9057
9047
|
interface Transport {
|
|
9058
9048
|
uuids: string[];
|
|
9059
9049
|
}
|
|
@@ -9061,7 +9051,7 @@ declare namespace CloudantV1 {
|
|
|
9061
9051
|
/**
|
|
9062
9052
|
* Schema for the results of a queries view operation.
|
|
9063
9053
|
*/
|
|
9064
|
-
class ViewQueriesResult {
|
|
9054
|
+
export class ViewQueriesResult {
|
|
9065
9055
|
/** An array of result objects - one for each query. Each result object contains the same fields as the response
|
|
9066
9056
|
* to a regular view request.
|
|
9067
9057
|
*/
|
|
@@ -9069,7 +9059,7 @@ declare namespace CloudantV1 {
|
|
|
9069
9059
|
static serialize(obj: any): ViewQueriesResult.Transport;
|
|
9070
9060
|
static deserialize(obj: any): ViewQueriesResult;
|
|
9071
9061
|
}
|
|
9072
|
-
namespace ViewQueriesResult {
|
|
9062
|
+
export namespace ViewQueriesResult {
|
|
9073
9063
|
interface Transport {
|
|
9074
9064
|
results: ViewResult[];
|
|
9075
9065
|
}
|
|
@@ -9077,7 +9067,7 @@ declare namespace CloudantV1 {
|
|
|
9077
9067
|
/**
|
|
9078
9068
|
* Schema for a query view operation.
|
|
9079
9069
|
*/
|
|
9080
|
-
class ViewQuery {
|
|
9070
|
+
export class ViewQuery {
|
|
9081
9071
|
/** Parameter to specify whether to include the encoding information in attachment stubs if the particular
|
|
9082
9072
|
* attachment is compressed.
|
|
9083
9073
|
*/
|
|
@@ -9152,7 +9142,7 @@ declare namespace CloudantV1 {
|
|
|
9152
9142
|
static serialize(obj: any): ViewQuery.Transport;
|
|
9153
9143
|
static deserialize(obj: any): ViewQuery;
|
|
9154
9144
|
}
|
|
9155
|
-
namespace ViewQuery {
|
|
9145
|
+
export namespace ViewQuery {
|
|
9156
9146
|
namespace Constants {
|
|
9157
9147
|
/** Parameter to specify whether or not the view in question should be updated prior to responding to the user. * `true` - Return results after the view is updated. * `false` - Return results without updating the view. * `lazy` - Return the view results without waiting for an update, but update them immediately after the request. */
|
|
9158
9148
|
enum Update {
|
|
@@ -9187,7 +9177,7 @@ declare namespace CloudantV1 {
|
|
|
9187
9177
|
/**
|
|
9188
9178
|
* Schema for the result of a query view operation.
|
|
9189
9179
|
*/
|
|
9190
|
-
class ViewResult {
|
|
9180
|
+
export class ViewResult {
|
|
9191
9181
|
/** Total number of rows in the view index. Note that if the request query narrows the view this is not the
|
|
9192
9182
|
* number of matching rows. The number of matching rows, up to the specified `limit`, is the size of the `rows`
|
|
9193
9183
|
* array.
|
|
@@ -9200,7 +9190,7 @@ declare namespace CloudantV1 {
|
|
|
9200
9190
|
static serialize(obj: any): ViewResult.Transport;
|
|
9201
9191
|
static deserialize(obj: any): ViewResult;
|
|
9202
9192
|
}
|
|
9203
|
-
namespace ViewResult {
|
|
9193
|
+
export namespace ViewResult {
|
|
9204
9194
|
interface Transport {
|
|
9205
9195
|
total_rows?: number;
|
|
9206
9196
|
update_seq?: string;
|
|
@@ -9210,7 +9200,7 @@ declare namespace CloudantV1 {
|
|
|
9210
9200
|
/**
|
|
9211
9201
|
* Schema for a row of a view result.
|
|
9212
9202
|
*/
|
|
9213
|
-
class ViewResultRow {
|
|
9203
|
+
export class ViewResultRow {
|
|
9214
9204
|
/** The cause of the error (if available). */
|
|
9215
9205
|
causedBy?: string;
|
|
9216
9206
|
/** The name of the error. */
|
|
@@ -9230,7 +9220,7 @@ declare namespace CloudantV1 {
|
|
|
9230
9220
|
static serialize(obj: any): ViewResultRow.Transport;
|
|
9231
9221
|
static deserialize(obj: any): ViewResultRow;
|
|
9232
9222
|
}
|
|
9233
|
-
namespace ViewResultRow {
|
|
9223
|
+
export namespace ViewResultRow {
|
|
9234
9224
|
interface Transport {
|
|
9235
9225
|
caused_by?: string;
|
|
9236
9226
|
error?: string;
|
|
@@ -9242,5 +9232,6 @@ declare namespace CloudantV1 {
|
|
|
9242
9232
|
value: any;
|
|
9243
9233
|
}
|
|
9244
9234
|
}
|
|
9235
|
+
export {};
|
|
9245
9236
|
}
|
|
9246
9237
|
export = CloudantV1;
|