@ibm-cloud/cloudant 0.12.0 → 0.12.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -7
- package/auth/sessionTokenManager.js +6 -1
- package/auth/sessionTokenManager.js.map +1 -1
- package/cloudant/v1.d.ts +433 -444
- package/cloudant/v1.js +670 -196
- package/cloudant/v1.js.map +1 -1
- package/lib/cloudantBaseService.js +0 -9
- package/lib/cloudantBaseService.js.map +1 -1
- package/package.json +10 -10
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
|
|
@@ -2816,6 +2816,26 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
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 {
|
|
5872
|
+
export interface PostActivityTrackerEventsParams extends DefaultParams {
|
|
5943
5873
|
/** An array of event types that are being sent to IBM Cloud Activity Tracker 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 {
|
|
@@ -6128,7 +6060,7 @@ declare namespace CloudantV1 {
|
|
|
6128
6060
|
/**
|
|
6129
6061
|
* Schema for Activity Tracker events.
|
|
6130
6062
|
*/
|
|
6131
|
-
class ActivityTrackerEvents {
|
|
6063
|
+
export class ActivityTrackerEvents {
|
|
6132
6064
|
/** An array of event types that are being sent to IBM Cloud Activity Tracker for the IBM Cloudant instance.
|
|
6133
6065
|
* "management" is a required element of this array.
|
|
6134
6066
|
*/
|
|
@@ -6136,7 +6068,7 @@ declare namespace CloudantV1 {
|
|
|
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
6073
|
/** An array of event types that are being sent to IBM Cloud Activity Tracker for the IBM Cloudant instance. "management" is a required element of this array. */
|
|
6142
6074
|
enum Types {
|
|
@@ -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,7 +6187,7 @@ 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 {
|
|
@@ -6310,7 +6242,7 @@ declare namespace CloudantV1 {
|
|
|
6310
6242
|
/**
|
|
6311
6243
|
* Schema for a search analyzer configuration.
|
|
6312
6244
|
*/
|
|
6313
|
-
class AnalyzerConfiguration {
|
|
6245
|
+
export class AnalyzerConfiguration {
|
|
6314
6246
|
/** Schema for the name of the Apache Lucene analyzer to use for text indexing. The default value varies
|
|
6315
6247
|
* depending on the analyzer usage:
|
|
6316
6248
|
* * For search indexes the default is `standard` * For query text indexes the default is `keyword` * For a query
|
|
@@ -6326,7 +6258,7 @@ declare namespace CloudantV1 {
|
|
|
6326
6258
|
static serialize(obj: any): AnalyzerConfiguration.Transport;
|
|
6327
6259
|
static deserialize(obj: any): AnalyzerConfiguration;
|
|
6328
6260
|
}
|
|
6329
|
-
namespace AnalyzerConfiguration {
|
|
6261
|
+
export namespace AnalyzerConfiguration {
|
|
6330
6262
|
namespace Constants {
|
|
6331
6263
|
/** 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
6264
|
enum Name {
|
|
@@ -6384,7 +6316,7 @@ declare namespace CloudantV1 {
|
|
|
6384
6316
|
/**
|
|
6385
6317
|
* Schema for api keys.
|
|
6386
6318
|
*/
|
|
6387
|
-
class ApiKeysResult {
|
|
6319
|
+
export class ApiKeysResult {
|
|
6388
6320
|
/** ok. */
|
|
6389
6321
|
ok: boolean;
|
|
6390
6322
|
/** The generated api key. */
|
|
@@ -6394,7 +6326,7 @@ declare namespace CloudantV1 {
|
|
|
6394
6326
|
static serialize(obj: any): ApiKeysResult.Transport;
|
|
6395
6327
|
static deserialize(obj: any): ApiKeysResult;
|
|
6396
6328
|
}
|
|
6397
|
-
namespace ApiKeysResult {
|
|
6329
|
+
export namespace ApiKeysResult {
|
|
6398
6330
|
interface Transport {
|
|
6399
6331
|
ok: boolean;
|
|
6400
6332
|
key: string;
|
|
@@ -6404,7 +6336,7 @@ declare namespace CloudantV1 {
|
|
|
6404
6336
|
/**
|
|
6405
6337
|
* Schema for an attachment.
|
|
6406
6338
|
*/
|
|
6407
|
-
class Attachment {
|
|
6339
|
+
export class Attachment {
|
|
6408
6340
|
/** Attachment MIME type. */
|
|
6409
6341
|
contentType?: string;
|
|
6410
6342
|
/** Base64-encoded content. Available if attachment content is requested by using the query parameters
|
|
@@ -6437,7 +6369,7 @@ declare namespace CloudantV1 {
|
|
|
6437
6369
|
static serialize(obj: any): Attachment.Transport;
|
|
6438
6370
|
static deserialize(obj: any): Attachment;
|
|
6439
6371
|
}
|
|
6440
|
-
namespace Attachment {
|
|
6372
|
+
export namespace Attachment {
|
|
6441
6373
|
interface Transport {
|
|
6442
6374
|
content_type?: string;
|
|
6443
6375
|
data?: string;
|
|
@@ -6453,7 +6385,7 @@ declare namespace CloudantV1 {
|
|
|
6453
6385
|
/**
|
|
6454
6386
|
* Schema for submitting documents for bulk modifications.
|
|
6455
6387
|
*/
|
|
6456
|
-
class BulkDocs {
|
|
6388
|
+
export class BulkDocs {
|
|
6457
6389
|
/** Array of documents. */
|
|
6458
6390
|
docs: Document[];
|
|
6459
6391
|
/** If `false`, prevents the database from assigning them new revision IDs. Default is `true`.
|
|
@@ -6465,7 +6397,7 @@ declare namespace CloudantV1 {
|
|
|
6465
6397
|
static serialize(obj: any): BulkDocs.Transport;
|
|
6466
6398
|
static deserialize(obj: any): BulkDocs;
|
|
6467
6399
|
}
|
|
6468
|
-
namespace BulkDocs {
|
|
6400
|
+
export namespace BulkDocs {
|
|
6469
6401
|
interface Transport {
|
|
6470
6402
|
docs: Document[];
|
|
6471
6403
|
new_edits?: boolean;
|
|
@@ -6474,7 +6406,7 @@ declare namespace CloudantV1 {
|
|
|
6474
6406
|
/**
|
|
6475
6407
|
* Schema for a document item in a bulk get query.
|
|
6476
6408
|
*/
|
|
6477
|
-
class BulkGetQueryDocument {
|
|
6409
|
+
export class BulkGetQueryDocument {
|
|
6478
6410
|
/** Includes attachments only since specified revisions. */
|
|
6479
6411
|
attsSince?: string[];
|
|
6480
6412
|
/** Schema for a document ID. */
|
|
@@ -6484,7 +6416,7 @@ declare namespace CloudantV1 {
|
|
|
6484
6416
|
static serialize(obj: any): BulkGetQueryDocument.Transport;
|
|
6485
6417
|
static deserialize(obj: any): BulkGetQueryDocument;
|
|
6486
6418
|
}
|
|
6487
|
-
namespace BulkGetQueryDocument {
|
|
6419
|
+
export namespace BulkGetQueryDocument {
|
|
6488
6420
|
interface Transport {
|
|
6489
6421
|
atts_since?: string[];
|
|
6490
6422
|
id: string;
|
|
@@ -6494,13 +6426,13 @@ declare namespace CloudantV1 {
|
|
|
6494
6426
|
/**
|
|
6495
6427
|
* Schema for the results object of a bulk get operation.
|
|
6496
6428
|
*/
|
|
6497
|
-
class BulkGetResult {
|
|
6429
|
+
export class BulkGetResult {
|
|
6498
6430
|
/** Results. */
|
|
6499
6431
|
results: BulkGetResultItem[];
|
|
6500
6432
|
static serialize(obj: any): BulkGetResult.Transport;
|
|
6501
6433
|
static deserialize(obj: any): BulkGetResult;
|
|
6502
6434
|
}
|
|
6503
|
-
namespace BulkGetResult {
|
|
6435
|
+
export namespace BulkGetResult {
|
|
6504
6436
|
interface Transport {
|
|
6505
6437
|
results: BulkGetResultItem[];
|
|
6506
6438
|
}
|
|
@@ -6508,7 +6440,7 @@ declare namespace CloudantV1 {
|
|
|
6508
6440
|
/**
|
|
6509
6441
|
* Schema for BulkGetResult object containing a successfully retrieved document or error information.
|
|
6510
6442
|
*/
|
|
6511
|
-
class BulkGetResultDocument {
|
|
6443
|
+
export class BulkGetResultDocument {
|
|
6512
6444
|
/** Schema for the result of a document modification. */
|
|
6513
6445
|
error?: DocumentResult;
|
|
6514
6446
|
/** Schema for a document. */
|
|
@@ -6516,7 +6448,7 @@ declare namespace CloudantV1 {
|
|
|
6516
6448
|
static serialize(obj: any): BulkGetResultDocument.Transport;
|
|
6517
6449
|
static deserialize(obj: any): BulkGetResultDocument;
|
|
6518
6450
|
}
|
|
6519
|
-
namespace BulkGetResultDocument {
|
|
6451
|
+
export namespace BulkGetResultDocument {
|
|
6520
6452
|
interface Transport {
|
|
6521
6453
|
error?: DocumentResult.Transport;
|
|
6522
6454
|
ok?: Document.Transport;
|
|
@@ -6525,7 +6457,7 @@ declare namespace CloudantV1 {
|
|
|
6525
6457
|
/**
|
|
6526
6458
|
* Schema for the document revisions information from a bulk get operation.
|
|
6527
6459
|
*/
|
|
6528
|
-
class BulkGetResultItem {
|
|
6460
|
+
export class BulkGetResultItem {
|
|
6529
6461
|
/** Array of document revisions or error information. */
|
|
6530
6462
|
docs: BulkGetResultDocument[];
|
|
6531
6463
|
/** Schema for a document ID. */
|
|
@@ -6533,16 +6465,44 @@ declare namespace CloudantV1 {
|
|
|
6533
6465
|
static serialize(obj: any): BulkGetResultItem.Transport;
|
|
6534
6466
|
static deserialize(obj: any): BulkGetResultItem;
|
|
6535
6467
|
}
|
|
6536
|
-
namespace BulkGetResultItem {
|
|
6468
|
+
export namespace BulkGetResultItem {
|
|
6537
6469
|
interface Transport {
|
|
6538
6470
|
docs: BulkGetResultDocument[];
|
|
6539
6471
|
id: string;
|
|
6540
6472
|
}
|
|
6541
6473
|
}
|
|
6474
|
+
/**
|
|
6475
|
+
* Schema for information about maximum total database count.
|
|
6476
|
+
*/
|
|
6477
|
+
export class CapacityDatabasesInformation {
|
|
6478
|
+
/** Schema for information about the current database capacity. */
|
|
6479
|
+
current?: CapacityDatabasesInformationCurrent;
|
|
6480
|
+
static serialize(obj: any): CapacityDatabasesInformation.Transport;
|
|
6481
|
+
static deserialize(obj: any): CapacityDatabasesInformation;
|
|
6482
|
+
}
|
|
6483
|
+
export namespace CapacityDatabasesInformation {
|
|
6484
|
+
interface Transport {
|
|
6485
|
+
current?: CapacityDatabasesInformationCurrent.Transport;
|
|
6486
|
+
}
|
|
6487
|
+
}
|
|
6488
|
+
/**
|
|
6489
|
+
* Schema for information about the current database capacity.
|
|
6490
|
+
*/
|
|
6491
|
+
export class CapacityDatabasesInformationCurrent {
|
|
6492
|
+
/** Schema for databases count. */
|
|
6493
|
+
databases?: DatabasesCountInformation;
|
|
6494
|
+
static serialize(obj: any): CapacityDatabasesInformationCurrent.Transport;
|
|
6495
|
+
static deserialize(obj: any): CapacityDatabasesInformationCurrent;
|
|
6496
|
+
}
|
|
6497
|
+
export namespace CapacityDatabasesInformationCurrent {
|
|
6498
|
+
interface Transport {
|
|
6499
|
+
databases?: DatabasesCountInformation.Transport;
|
|
6500
|
+
}
|
|
6501
|
+
}
|
|
6542
6502
|
/**
|
|
6543
6503
|
* Schema for information about the currently provisioned and target throughput capacity.
|
|
6544
6504
|
*/
|
|
6545
|
-
class CapacityThroughputInformation {
|
|
6505
|
+
export class CapacityThroughputInformation {
|
|
6546
6506
|
/** Detailed information about provisioned throughput capacity. */
|
|
6547
6507
|
current: CapacityThroughputInformationCurrent;
|
|
6548
6508
|
/** Detailed information about target throughput capacity. */
|
|
@@ -6550,7 +6510,7 @@ declare namespace CloudantV1 {
|
|
|
6550
6510
|
static serialize(obj: any): CapacityThroughputInformation.Transport;
|
|
6551
6511
|
static deserialize(obj: any): CapacityThroughputInformation;
|
|
6552
6512
|
}
|
|
6553
|
-
namespace CapacityThroughputInformation {
|
|
6513
|
+
export namespace CapacityThroughputInformation {
|
|
6554
6514
|
interface Transport {
|
|
6555
6515
|
current: CapacityThroughputInformationCurrent.Transport;
|
|
6556
6516
|
target?: CapacityThroughputInformationTarget.Transport;
|
|
@@ -6559,7 +6519,7 @@ declare namespace CloudantV1 {
|
|
|
6559
6519
|
/**
|
|
6560
6520
|
* Detailed information about provisioned throughput capacity.
|
|
6561
6521
|
*/
|
|
6562
|
-
class CapacityThroughputInformationCurrent {
|
|
6522
|
+
export class CapacityThroughputInformationCurrent {
|
|
6563
6523
|
/** Schema for detailed information about throughput capacity with breakdown by specific throughput requests
|
|
6564
6524
|
* classes.
|
|
6565
6525
|
*/
|
|
@@ -6567,7 +6527,7 @@ declare namespace CloudantV1 {
|
|
|
6567
6527
|
static serialize(obj: any): CapacityThroughputInformationCurrent.Transport;
|
|
6568
6528
|
static deserialize(obj: any): CapacityThroughputInformationCurrent;
|
|
6569
6529
|
}
|
|
6570
|
-
namespace CapacityThroughputInformationCurrent {
|
|
6530
|
+
export namespace CapacityThroughputInformationCurrent {
|
|
6571
6531
|
interface Transport {
|
|
6572
6532
|
throughput: ThroughputInformation.Transport;
|
|
6573
6533
|
}
|
|
@@ -6575,7 +6535,7 @@ declare namespace CloudantV1 {
|
|
|
6575
6535
|
/**
|
|
6576
6536
|
* Detailed information about target throughput capacity.
|
|
6577
6537
|
*/
|
|
6578
|
-
class CapacityThroughputInformationTarget {
|
|
6538
|
+
export class CapacityThroughputInformationTarget {
|
|
6579
6539
|
/** Schema for detailed information about throughput capacity with breakdown by specific throughput requests
|
|
6580
6540
|
* classes.
|
|
6581
6541
|
*/
|
|
@@ -6583,7 +6543,7 @@ declare namespace CloudantV1 {
|
|
|
6583
6543
|
static serialize(obj: any): CapacityThroughputInformationTarget.Transport;
|
|
6584
6544
|
static deserialize(obj: any): CapacityThroughputInformationTarget;
|
|
6585
6545
|
}
|
|
6586
|
-
namespace CapacityThroughputInformationTarget {
|
|
6546
|
+
export namespace CapacityThroughputInformationTarget {
|
|
6587
6547
|
interface Transport {
|
|
6588
6548
|
throughput: ThroughputInformation.Transport;
|
|
6589
6549
|
}
|
|
@@ -6591,13 +6551,13 @@ declare namespace CloudantV1 {
|
|
|
6591
6551
|
/**
|
|
6592
6552
|
* Schema for a document leaf with single field rev.
|
|
6593
6553
|
*/
|
|
6594
|
-
class Change {
|
|
6554
|
+
export class Change {
|
|
6595
6555
|
/** Schema for a document revision identifier. */
|
|
6596
6556
|
rev: string;
|
|
6597
6557
|
static serialize(obj: any): Change.Transport;
|
|
6598
6558
|
static deserialize(obj: any): Change;
|
|
6599
6559
|
}
|
|
6600
|
-
namespace Change {
|
|
6560
|
+
export namespace Change {
|
|
6601
6561
|
interface Transport {
|
|
6602
6562
|
rev: string;
|
|
6603
6563
|
}
|
|
@@ -6605,7 +6565,7 @@ declare namespace CloudantV1 {
|
|
|
6605
6565
|
/**
|
|
6606
6566
|
* Schema for normal changes feed result.
|
|
6607
6567
|
*/
|
|
6608
|
-
class ChangesResult {
|
|
6568
|
+
export class ChangesResult {
|
|
6609
6569
|
/** last_seq. */
|
|
6610
6570
|
lastSeq: string;
|
|
6611
6571
|
/** pending. */
|
|
@@ -6615,7 +6575,7 @@ declare namespace CloudantV1 {
|
|
|
6615
6575
|
static serialize(obj: any): ChangesResult.Transport;
|
|
6616
6576
|
static deserialize(obj: any): ChangesResult;
|
|
6617
6577
|
}
|
|
6618
|
-
namespace ChangesResult {
|
|
6578
|
+
export namespace ChangesResult {
|
|
6619
6579
|
interface Transport {
|
|
6620
6580
|
last_seq: string;
|
|
6621
6581
|
pending: number;
|
|
@@ -6625,7 +6585,7 @@ declare namespace CloudantV1 {
|
|
|
6625
6585
|
/**
|
|
6626
6586
|
* Schema for an item in the changes results array.
|
|
6627
6587
|
*/
|
|
6628
|
-
class ChangesResultItem {
|
|
6588
|
+
export class ChangesResultItem {
|
|
6629
6589
|
/** List of document's leaves with single field rev. */
|
|
6630
6590
|
changes: Change[];
|
|
6631
6591
|
/** if `true` then the document is deleted. */
|
|
@@ -6639,7 +6599,7 @@ declare namespace CloudantV1 {
|
|
|
6639
6599
|
static serialize(obj: any): ChangesResultItem.Transport;
|
|
6640
6600
|
static deserialize(obj: any): ChangesResultItem;
|
|
6641
6601
|
}
|
|
6642
|
-
namespace ChangesResultItem {
|
|
6602
|
+
export namespace ChangesResultItem {
|
|
6643
6603
|
interface Transport {
|
|
6644
6604
|
changes: Change[];
|
|
6645
6605
|
deleted?: boolean;
|
|
@@ -6651,7 +6611,7 @@ declare namespace CloudantV1 {
|
|
|
6651
6611
|
/**
|
|
6652
6612
|
* Schema for size information of content.
|
|
6653
6613
|
*/
|
|
6654
|
-
class ContentInformationSizes {
|
|
6614
|
+
export class ContentInformationSizes {
|
|
6655
6615
|
/** The active size of the content, in bytes. */
|
|
6656
6616
|
active: number;
|
|
6657
6617
|
/** The total uncompressed size of the content, in bytes. */
|
|
@@ -6661,7 +6621,7 @@ declare namespace CloudantV1 {
|
|
|
6661
6621
|
static serialize(obj: any): ContentInformationSizes.Transport;
|
|
6662
6622
|
static deserialize(obj: any): ContentInformationSizes;
|
|
6663
6623
|
}
|
|
6664
|
-
namespace ContentInformationSizes {
|
|
6624
|
+
export namespace ContentInformationSizes {
|
|
6665
6625
|
interface Transport {
|
|
6666
6626
|
active: number;
|
|
6667
6627
|
external: number;
|
|
@@ -6671,7 +6631,7 @@ declare namespace CloudantV1 {
|
|
|
6671
6631
|
/**
|
|
6672
6632
|
* Schema for information about the CORS configuration.
|
|
6673
6633
|
*/
|
|
6674
|
-
class CorsInformation {
|
|
6634
|
+
export class CorsInformation {
|
|
6675
6635
|
/** Boolean value to allow authentication credentials. If set to true, browser requests must be done by using
|
|
6676
6636
|
* withCredentials = true.
|
|
6677
6637
|
*/
|
|
@@ -6686,23 +6646,37 @@ declare namespace CloudantV1 {
|
|
|
6686
6646
|
static serialize(obj: any): CorsInformation.Transport;
|
|
6687
6647
|
static deserialize(obj: any): CorsInformation;
|
|
6688
6648
|
}
|
|
6689
|
-
namespace CorsInformation {
|
|
6649
|
+
export namespace CorsInformation {
|
|
6690
6650
|
interface Transport {
|
|
6691
6651
|
allow_credentials: boolean;
|
|
6692
6652
|
enable_cors: boolean;
|
|
6693
6653
|
origins: string[];
|
|
6694
6654
|
}
|
|
6695
6655
|
}
|
|
6656
|
+
/**
|
|
6657
|
+
* Schema for information about the current database counts.
|
|
6658
|
+
*/
|
|
6659
|
+
export class CurrentDatabasesInformation {
|
|
6660
|
+
/** Schema for databases count. */
|
|
6661
|
+
databases?: DatabasesCountInformation;
|
|
6662
|
+
static serialize(obj: any): CurrentDatabasesInformation.Transport;
|
|
6663
|
+
static deserialize(obj: any): CurrentDatabasesInformation;
|
|
6664
|
+
}
|
|
6665
|
+
export namespace CurrentDatabasesInformation {
|
|
6666
|
+
interface Transport {
|
|
6667
|
+
databases?: DatabasesCountInformation.Transport;
|
|
6668
|
+
}
|
|
6669
|
+
}
|
|
6696
6670
|
/**
|
|
6697
6671
|
* Schema for information about current consumption of a provisioned throughput capacity.
|
|
6698
6672
|
*/
|
|
6699
|
-
class CurrentThroughputInformation {
|
|
6673
|
+
export class CurrentThroughputInformation {
|
|
6700
6674
|
/** Detailed information about current consumption. */
|
|
6701
6675
|
throughput: CurrentThroughputInformationThroughput;
|
|
6702
6676
|
static serialize(obj: any): CurrentThroughputInformation.Transport;
|
|
6703
6677
|
static deserialize(obj: any): CurrentThroughputInformation;
|
|
6704
6678
|
}
|
|
6705
|
-
namespace CurrentThroughputInformation {
|
|
6679
|
+
export namespace CurrentThroughputInformation {
|
|
6706
6680
|
interface Transport {
|
|
6707
6681
|
throughput: CurrentThroughputInformationThroughput.Transport;
|
|
6708
6682
|
}
|
|
@@ -6710,7 +6684,7 @@ declare namespace CloudantV1 {
|
|
|
6710
6684
|
/**
|
|
6711
6685
|
* Detailed information about current consumption.
|
|
6712
6686
|
*/
|
|
6713
|
-
class CurrentThroughputInformationThroughput {
|
|
6687
|
+
export class CurrentThroughputInformationThroughput {
|
|
6714
6688
|
/** Number of global queries conducted against the instance for a given second. */
|
|
6715
6689
|
query: number;
|
|
6716
6690
|
/** Number of reads conducted against the instance for a given second. */
|
|
@@ -6720,7 +6694,7 @@ declare namespace CloudantV1 {
|
|
|
6720
6694
|
static serialize(obj: any): CurrentThroughputInformationThroughput.Transport;
|
|
6721
6695
|
static deserialize(obj: any): CurrentThroughputInformationThroughput;
|
|
6722
6696
|
}
|
|
6723
|
-
namespace CurrentThroughputInformationThroughput {
|
|
6697
|
+
export namespace CurrentThroughputInformationThroughput {
|
|
6724
6698
|
interface Transport {
|
|
6725
6699
|
query: number;
|
|
6726
6700
|
read: number;
|
|
@@ -6730,7 +6704,7 @@ declare namespace CloudantV1 {
|
|
|
6730
6704
|
/**
|
|
6731
6705
|
* Schema for information about a database.
|
|
6732
6706
|
*/
|
|
6733
|
-
class DatabaseInformation {
|
|
6707
|
+
export class DatabaseInformation {
|
|
6734
6708
|
/** Schema for database cluster information. */
|
|
6735
6709
|
cluster: DatabaseInformationCluster;
|
|
6736
6710
|
/** An opaque string that describes the committed state of the database. */
|
|
@@ -6768,7 +6742,7 @@ declare namespace CloudantV1 {
|
|
|
6768
6742
|
static serialize(obj: any): DatabaseInformation.Transport;
|
|
6769
6743
|
static deserialize(obj: any): DatabaseInformation;
|
|
6770
6744
|
}
|
|
6771
|
-
namespace DatabaseInformation {
|
|
6745
|
+
export namespace DatabaseInformation {
|
|
6772
6746
|
interface Transport {
|
|
6773
6747
|
cluster: DatabaseInformationCluster.Transport;
|
|
6774
6748
|
committed_update_seq?: string;
|
|
@@ -6790,7 +6764,7 @@ declare namespace CloudantV1 {
|
|
|
6790
6764
|
/**
|
|
6791
6765
|
* Schema for database cluster information.
|
|
6792
6766
|
*/
|
|
6793
|
-
class DatabaseInformationCluster {
|
|
6767
|
+
export class DatabaseInformationCluster {
|
|
6794
6768
|
/** Schema for the number of replicas of a database in a cluster. The cluster is using the default value and it
|
|
6795
6769
|
* cannot be changed by the user.
|
|
6796
6770
|
*/
|
|
@@ -6804,7 +6778,7 @@ declare namespace CloudantV1 {
|
|
|
6804
6778
|
static serialize(obj: any): DatabaseInformationCluster.Transport;
|
|
6805
6779
|
static deserialize(obj: any): DatabaseInformationCluster;
|
|
6806
6780
|
}
|
|
6807
|
-
namespace DatabaseInformationCluster {
|
|
6781
|
+
export namespace DatabaseInformationCluster {
|
|
6808
6782
|
interface Transport {
|
|
6809
6783
|
n: number;
|
|
6810
6784
|
q: number;
|
|
@@ -6815,21 +6789,35 @@ declare namespace CloudantV1 {
|
|
|
6815
6789
|
/**
|
|
6816
6790
|
* Schema for database properties.
|
|
6817
6791
|
*/
|
|
6818
|
-
class DatabaseInformationProps {
|
|
6792
|
+
export class DatabaseInformationProps {
|
|
6819
6793
|
/** The value is `true` for a partitioned database. */
|
|
6820
6794
|
partitioned?: boolean;
|
|
6821
6795
|
static serialize(obj: any): DatabaseInformationProps.Transport;
|
|
6822
6796
|
static deserialize(obj: any): DatabaseInformationProps;
|
|
6823
6797
|
}
|
|
6824
|
-
namespace DatabaseInformationProps {
|
|
6798
|
+
export namespace DatabaseInformationProps {
|
|
6825
6799
|
interface Transport {
|
|
6826
6800
|
partitioned?: boolean;
|
|
6827
6801
|
}
|
|
6828
6802
|
}
|
|
6803
|
+
/**
|
|
6804
|
+
* Schema for databases count.
|
|
6805
|
+
*/
|
|
6806
|
+
export class DatabasesCountInformation {
|
|
6807
|
+
/** The total number of databases. */
|
|
6808
|
+
total?: number;
|
|
6809
|
+
static serialize(obj: any): DatabasesCountInformation.Transport;
|
|
6810
|
+
static deserialize(obj: any): DatabasesCountInformation;
|
|
6811
|
+
}
|
|
6812
|
+
export namespace DatabasesCountInformation {
|
|
6813
|
+
interface Transport {
|
|
6814
|
+
total?: number;
|
|
6815
|
+
}
|
|
6816
|
+
}
|
|
6829
6817
|
/**
|
|
6830
6818
|
* Schema for a database change event.
|
|
6831
6819
|
*/
|
|
6832
|
-
class DbEvent {
|
|
6820
|
+
export class DbEvent {
|
|
6833
6821
|
/** Schema for a database name. */
|
|
6834
6822
|
dbName: string;
|
|
6835
6823
|
/** Sequence number. */
|
|
@@ -6839,7 +6827,7 @@ declare namespace CloudantV1 {
|
|
|
6839
6827
|
static serialize(obj: any): DbEvent.Transport;
|
|
6840
6828
|
static deserialize(obj: any): DbEvent;
|
|
6841
6829
|
}
|
|
6842
|
-
namespace DbEvent {
|
|
6830
|
+
export namespace DbEvent {
|
|
6843
6831
|
namespace Constants {
|
|
6844
6832
|
/** A database event. */
|
|
6845
6833
|
enum Type {
|
|
@@ -6857,7 +6845,7 @@ declare namespace CloudantV1 {
|
|
|
6857
6845
|
/**
|
|
6858
6846
|
* Schema for database updates.
|
|
6859
6847
|
*/
|
|
6860
|
-
class DbUpdates {
|
|
6848
|
+
export class DbUpdates {
|
|
6861
6849
|
/** Last sequence number. */
|
|
6862
6850
|
lastSeq: string;
|
|
6863
6851
|
/** results. */
|
|
@@ -6865,7 +6853,7 @@ declare namespace CloudantV1 {
|
|
|
6865
6853
|
static serialize(obj: any): DbUpdates.Transport;
|
|
6866
6854
|
static deserialize(obj: any): DbUpdates;
|
|
6867
6855
|
}
|
|
6868
|
-
namespace DbUpdates {
|
|
6856
|
+
export namespace DbUpdates {
|
|
6869
6857
|
interface Transport {
|
|
6870
6858
|
last_seq: string;
|
|
6871
6859
|
results: DbEvent[];
|
|
@@ -6874,7 +6862,7 @@ declare namespace CloudantV1 {
|
|
|
6874
6862
|
/**
|
|
6875
6863
|
* Schema for database information keyed by database name.
|
|
6876
6864
|
*/
|
|
6877
|
-
class DbsInfoResult {
|
|
6865
|
+
export class DbsInfoResult {
|
|
6878
6866
|
/** The name of the error. */
|
|
6879
6867
|
error?: string;
|
|
6880
6868
|
/** Schema for information about a database. */
|
|
@@ -6884,7 +6872,7 @@ declare namespace CloudantV1 {
|
|
|
6884
6872
|
static serialize(obj: any): DbsInfoResult.Transport;
|
|
6885
6873
|
static deserialize(obj: any): DbsInfoResult;
|
|
6886
6874
|
}
|
|
6887
|
-
namespace DbsInfoResult {
|
|
6875
|
+
export namespace DbsInfoResult {
|
|
6888
6876
|
interface Transport {
|
|
6889
6877
|
error?: string;
|
|
6890
6878
|
info?: DatabaseInformation.Transport;
|
|
@@ -6896,7 +6884,7 @@ declare namespace CloudantV1 {
|
|
|
6896
6884
|
*
|
|
6897
6885
|
* This type supports additional properties of type any.
|
|
6898
6886
|
*/
|
|
6899
|
-
class DesignDocument {
|
|
6887
|
+
export class DesignDocument {
|
|
6900
6888
|
/** Schema for a map of attachment name to attachment metadata. */
|
|
6901
6889
|
_attachments?: {
|
|
6902
6890
|
[key: string]: Attachment;
|
|
@@ -7008,7 +6996,7 @@ declare namespace CloudantV1 {
|
|
|
7008
6996
|
static serialize(obj: any): DesignDocument.Transport;
|
|
7009
6997
|
static deserialize(obj: any): DesignDocument;
|
|
7010
6998
|
}
|
|
7011
|
-
namespace DesignDocument {
|
|
6999
|
+
export namespace DesignDocument {
|
|
7012
7000
|
interface Transport {
|
|
7013
7001
|
_attachments?: {
|
|
7014
7002
|
[key: string]: Attachment.Transport;
|
|
@@ -7039,7 +7027,7 @@ declare namespace CloudantV1 {
|
|
|
7039
7027
|
/**
|
|
7040
7028
|
* Schema for information about a design document.
|
|
7041
7029
|
*/
|
|
7042
|
-
class DesignDocumentInformation {
|
|
7030
|
+
export class DesignDocumentInformation {
|
|
7043
7031
|
/** name. */
|
|
7044
7032
|
name: string;
|
|
7045
7033
|
/** View index information. */
|
|
@@ -7047,7 +7035,7 @@ declare namespace CloudantV1 {
|
|
|
7047
7035
|
static serialize(obj: any): DesignDocumentInformation.Transport;
|
|
7048
7036
|
static deserialize(obj: any): DesignDocumentInformation;
|
|
7049
7037
|
}
|
|
7050
|
-
namespace DesignDocumentInformation {
|
|
7038
|
+
export namespace DesignDocumentInformation {
|
|
7051
7039
|
interface Transport {
|
|
7052
7040
|
name: string;
|
|
7053
7041
|
view_index: DesignDocumentViewIndex.Transport;
|
|
@@ -7056,13 +7044,13 @@ declare namespace CloudantV1 {
|
|
|
7056
7044
|
/**
|
|
7057
7045
|
* Schema for design document options.
|
|
7058
7046
|
*/
|
|
7059
|
-
class DesignDocumentOptions {
|
|
7047
|
+
export class DesignDocumentOptions {
|
|
7060
7048
|
/** Whether this design document describes partitioned or global indexes. */
|
|
7061
7049
|
partitioned?: boolean;
|
|
7062
7050
|
static serialize(obj: any): DesignDocumentOptions.Transport;
|
|
7063
7051
|
static deserialize(obj: any): DesignDocumentOptions;
|
|
7064
7052
|
}
|
|
7065
|
-
namespace DesignDocumentOptions {
|
|
7053
|
+
export namespace DesignDocumentOptions {
|
|
7066
7054
|
interface Transport {
|
|
7067
7055
|
partitioned?: boolean;
|
|
7068
7056
|
}
|
|
@@ -7070,7 +7058,7 @@ declare namespace CloudantV1 {
|
|
|
7070
7058
|
/**
|
|
7071
7059
|
* View index information.
|
|
7072
7060
|
*/
|
|
7073
|
-
class DesignDocumentViewIndex {
|
|
7061
|
+
export class DesignDocumentViewIndex {
|
|
7074
7062
|
/** List of collator versions. If there are multiple entries this implies a libicu upgrade has occurred but
|
|
7075
7063
|
* compaction has not run yet.
|
|
7076
7064
|
*/
|
|
@@ -7094,7 +7082,7 @@ declare namespace CloudantV1 {
|
|
|
7094
7082
|
static serialize(obj: any): DesignDocumentViewIndex.Transport;
|
|
7095
7083
|
static deserialize(obj: any): DesignDocumentViewIndex;
|
|
7096
7084
|
}
|
|
7097
|
-
namespace DesignDocumentViewIndex {
|
|
7085
|
+
export namespace DesignDocumentViewIndex {
|
|
7098
7086
|
interface Transport {
|
|
7099
7087
|
collator_versions: string[];
|
|
7100
7088
|
compact_running: boolean;
|
|
@@ -7110,7 +7098,7 @@ declare namespace CloudantV1 {
|
|
|
7110
7098
|
/**
|
|
7111
7099
|
* Schema for view functions definition.
|
|
7112
7100
|
*/
|
|
7113
|
-
class DesignDocumentViewsMapReduce {
|
|
7101
|
+
export class DesignDocumentViewsMapReduce {
|
|
7114
7102
|
/** JavaScript map function as a string. */
|
|
7115
7103
|
map: string;
|
|
7116
7104
|
/** JavaScript reduce function as a string. */
|
|
@@ -7118,7 +7106,7 @@ declare namespace CloudantV1 {
|
|
|
7118
7106
|
static serialize(obj: any): DesignDocumentViewsMapReduce.Transport;
|
|
7119
7107
|
static deserialize(obj: any): DesignDocumentViewsMapReduce;
|
|
7120
7108
|
}
|
|
7121
|
-
namespace DesignDocumentViewsMapReduce {
|
|
7109
|
+
export namespace DesignDocumentViewsMapReduce {
|
|
7122
7110
|
interface Transport {
|
|
7123
7111
|
map: string;
|
|
7124
7112
|
reduce?: string;
|
|
@@ -7127,7 +7115,7 @@ declare namespace CloudantV1 {
|
|
|
7127
7115
|
/**
|
|
7128
7116
|
* Schema for a row of document information in a DocsResult.
|
|
7129
7117
|
*/
|
|
7130
|
-
class DocsResultRow {
|
|
7118
|
+
export class DocsResultRow {
|
|
7131
7119
|
/** The cause of the error (if available). */
|
|
7132
7120
|
causedBy?: string;
|
|
7133
7121
|
/** The name of the error. */
|
|
@@ -7147,7 +7135,7 @@ declare namespace CloudantV1 {
|
|
|
7147
7135
|
static serialize(obj: any): DocsResultRow.Transport;
|
|
7148
7136
|
static deserialize(obj: any): DocsResultRow;
|
|
7149
7137
|
}
|
|
7150
|
-
namespace DocsResultRow {
|
|
7138
|
+
export namespace DocsResultRow {
|
|
7151
7139
|
interface Transport {
|
|
7152
7140
|
caused_by?: string;
|
|
7153
7141
|
error?: string;
|
|
@@ -7162,7 +7150,7 @@ declare namespace CloudantV1 {
|
|
|
7162
7150
|
/**
|
|
7163
7151
|
* Value of built-in `/_all_docs` style view.
|
|
7164
7152
|
*/
|
|
7165
|
-
class DocsResultRowValue {
|
|
7153
|
+
export class DocsResultRowValue {
|
|
7166
7154
|
/** If `true` then the document is deleted. Not present for undeleted documents. */
|
|
7167
7155
|
deleted?: boolean;
|
|
7168
7156
|
/** Schema for a document revision identifier. */
|
|
@@ -7170,7 +7158,7 @@ declare namespace CloudantV1 {
|
|
|
7170
7158
|
static serialize(obj: any): DocsResultRowValue.Transport;
|
|
7171
7159
|
static deserialize(obj: any): DocsResultRowValue;
|
|
7172
7160
|
}
|
|
7173
|
-
namespace DocsResultRowValue {
|
|
7161
|
+
export namespace DocsResultRowValue {
|
|
7174
7162
|
interface Transport {
|
|
7175
7163
|
deleted?: boolean;
|
|
7176
7164
|
rev: string;
|
|
@@ -7181,7 +7169,7 @@ declare namespace CloudantV1 {
|
|
|
7181
7169
|
*
|
|
7182
7170
|
* This type supports additional properties of type any.
|
|
7183
7171
|
*/
|
|
7184
|
-
class Document {
|
|
7172
|
+
export class Document {
|
|
7185
7173
|
/** Schema for a map of attachment name to attachment metadata. */
|
|
7186
7174
|
_attachments?: {
|
|
7187
7175
|
[key: string]: Attachment;
|
|
@@ -7209,7 +7197,7 @@ declare namespace CloudantV1 {
|
|
|
7209
7197
|
static serialize(obj: any): Document.Transport;
|
|
7210
7198
|
static deserialize(obj: any): Document;
|
|
7211
7199
|
}
|
|
7212
|
-
namespace Document {
|
|
7200
|
+
export namespace Document {
|
|
7213
7201
|
interface Transport {
|
|
7214
7202
|
_attachments?: {
|
|
7215
7203
|
[key: string]: Attachment.Transport;
|
|
@@ -7229,7 +7217,7 @@ declare namespace CloudantV1 {
|
|
|
7229
7217
|
/**
|
|
7230
7218
|
* Schema for the result of a document modification.
|
|
7231
7219
|
*/
|
|
7232
|
-
class DocumentResult {
|
|
7220
|
+
export class DocumentResult {
|
|
7233
7221
|
/** Schema for a document ID. */
|
|
7234
7222
|
id: string;
|
|
7235
7223
|
/** Schema for a document revision identifier. */
|
|
@@ -7247,7 +7235,7 @@ declare namespace CloudantV1 {
|
|
|
7247
7235
|
static serialize(obj: any): DocumentResult.Transport;
|
|
7248
7236
|
static deserialize(obj: any): DocumentResult;
|
|
7249
7237
|
}
|
|
7250
|
-
namespace DocumentResult {
|
|
7238
|
+
export namespace DocumentResult {
|
|
7251
7239
|
interface Transport {
|
|
7252
7240
|
id: string;
|
|
7253
7241
|
rev?: string;
|
|
@@ -7261,7 +7249,7 @@ declare namespace CloudantV1 {
|
|
|
7261
7249
|
/**
|
|
7262
7250
|
* Schema for information about revisions and their status.
|
|
7263
7251
|
*/
|
|
7264
|
-
class DocumentRevisionStatus {
|
|
7252
|
+
export class DocumentRevisionStatus {
|
|
7265
7253
|
/** Schema for a document revision identifier. */
|
|
7266
7254
|
rev: string;
|
|
7267
7255
|
/** Status of the revision. May be one of: - `available`: Revision is available for retrieving with rev query
|
|
@@ -7271,7 +7259,7 @@ declare namespace CloudantV1 {
|
|
|
7271
7259
|
static serialize(obj: any): DocumentRevisionStatus.Transport;
|
|
7272
7260
|
static deserialize(obj: any): DocumentRevisionStatus;
|
|
7273
7261
|
}
|
|
7274
|
-
namespace DocumentRevisionStatus {
|
|
7262
|
+
export namespace DocumentRevisionStatus {
|
|
7275
7263
|
namespace Constants {
|
|
7276
7264
|
/** 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
7265
|
enum Status {
|
|
@@ -7288,7 +7276,7 @@ declare namespace CloudantV1 {
|
|
|
7288
7276
|
/**
|
|
7289
7277
|
* Schema for document shard information.
|
|
7290
7278
|
*/
|
|
7291
|
-
class DocumentShardInfo {
|
|
7279
|
+
export class DocumentShardInfo {
|
|
7292
7280
|
/** List of nodes serving a replica of the shard. */
|
|
7293
7281
|
nodes: string[];
|
|
7294
7282
|
/** The shard range in which the document is stored. */
|
|
@@ -7296,7 +7284,7 @@ declare namespace CloudantV1 {
|
|
|
7296
7284
|
static serialize(obj: any): DocumentShardInfo.Transport;
|
|
7297
7285
|
static deserialize(obj: any): DocumentShardInfo;
|
|
7298
7286
|
}
|
|
7299
|
-
namespace DocumentShardInfo {
|
|
7287
|
+
export namespace DocumentShardInfo {
|
|
7300
7288
|
interface Transport {
|
|
7301
7289
|
nodes: string[];
|
|
7302
7290
|
range: string;
|
|
@@ -7305,7 +7293,7 @@ declare namespace CloudantV1 {
|
|
|
7305
7293
|
/**
|
|
7306
7294
|
* Schema for find query execution statistics.
|
|
7307
7295
|
*/
|
|
7308
|
-
class ExecutionStats {
|
|
7296
|
+
export class ExecutionStats {
|
|
7309
7297
|
/** Time to execute the query. */
|
|
7310
7298
|
executionTimeMs: number;
|
|
7311
7299
|
/** Number of results returned. */
|
|
@@ -7319,7 +7307,7 @@ declare namespace CloudantV1 {
|
|
|
7319
7307
|
static serialize(obj: any): ExecutionStats.Transport;
|
|
7320
7308
|
static deserialize(obj: any): ExecutionStats;
|
|
7321
7309
|
}
|
|
7322
|
-
namespace ExecutionStats {
|
|
7310
|
+
export namespace ExecutionStats {
|
|
7323
7311
|
interface Transport {
|
|
7324
7312
|
execution_time_ms: number;
|
|
7325
7313
|
results_returned: number;
|
|
@@ -7331,7 +7319,7 @@ declare namespace CloudantV1 {
|
|
|
7331
7319
|
/**
|
|
7332
7320
|
* Schema for information about the index used for a find query.
|
|
7333
7321
|
*/
|
|
7334
|
-
class ExplainResult {
|
|
7322
|
+
export class ExplainResult {
|
|
7335
7323
|
/** When `true`, the query is answered using the index only and no documents are fetched. */
|
|
7336
7324
|
covering: boolean;
|
|
7337
7325
|
/** Schema for a database name. */
|
|
@@ -7394,7 +7382,7 @@ declare namespace CloudantV1 {
|
|
|
7394
7382
|
static serialize(obj: any): ExplainResult.Transport;
|
|
7395
7383
|
static deserialize(obj: any): ExplainResult;
|
|
7396
7384
|
}
|
|
7397
|
-
namespace ExplainResult {
|
|
7385
|
+
export namespace ExplainResult {
|
|
7398
7386
|
interface Transport {
|
|
7399
7387
|
covering: boolean;
|
|
7400
7388
|
dbname: string;
|
|
@@ -7413,7 +7401,7 @@ declare namespace CloudantV1 {
|
|
|
7413
7401
|
/**
|
|
7414
7402
|
* Arguments passed to the underlying view.
|
|
7415
7403
|
*/
|
|
7416
|
-
class ExplainResultMrArgs {
|
|
7404
|
+
export class ExplainResultMrArgs {
|
|
7417
7405
|
/** Schema for any JSON type. */
|
|
7418
7406
|
conflicts: any;
|
|
7419
7407
|
/** Direction parameter passed to the underlying view. */
|
|
@@ -7443,7 +7431,7 @@ declare namespace CloudantV1 {
|
|
|
7443
7431
|
static serialize(obj: any): ExplainResultMrArgs.Transport;
|
|
7444
7432
|
static deserialize(obj: any): ExplainResultMrArgs;
|
|
7445
7433
|
}
|
|
7446
|
-
namespace ExplainResultMrArgs {
|
|
7434
|
+
export namespace ExplainResultMrArgs {
|
|
7447
7435
|
namespace Constants {
|
|
7448
7436
|
/** Direction parameter passed to the underlying view. */
|
|
7449
7437
|
enum Direction {
|
|
@@ -7472,7 +7460,7 @@ declare namespace CloudantV1 {
|
|
|
7472
7460
|
/**
|
|
7473
7461
|
* Options used for the request.
|
|
7474
7462
|
*/
|
|
7475
|
-
class ExplainResultOpts {
|
|
7463
|
+
export class ExplainResultOpts {
|
|
7476
7464
|
/** Opaque bookmark token used when paginating results. */
|
|
7477
7465
|
bookmark: string;
|
|
7478
7466
|
/** Conflicts used in the request query. */
|
|
@@ -7506,7 +7494,7 @@ declare namespace CloudantV1 {
|
|
|
7506
7494
|
static serialize(obj: any): ExplainResultOpts.Transport;
|
|
7507
7495
|
static deserialize(obj: any): ExplainResultOpts;
|
|
7508
7496
|
}
|
|
7509
|
-
namespace ExplainResultOpts {
|
|
7497
|
+
export namespace ExplainResultOpts {
|
|
7510
7498
|
interface Transport {
|
|
7511
7499
|
bookmark: string;
|
|
7512
7500
|
conflicts: boolean;
|
|
@@ -7526,7 +7514,7 @@ declare namespace CloudantV1 {
|
|
|
7526
7514
|
/**
|
|
7527
7515
|
* Schema for the result of a query find operation.
|
|
7528
7516
|
*/
|
|
7529
|
-
class FindResult {
|
|
7517
|
+
export class FindResult {
|
|
7530
7518
|
/** Opaque bookmark token used when paginating results. */
|
|
7531
7519
|
bookmark: string;
|
|
7532
7520
|
/** Documents matching the selector. */
|
|
@@ -7538,7 +7526,7 @@ declare namespace CloudantV1 {
|
|
|
7538
7526
|
static serialize(obj: any): FindResult.Transport;
|
|
7539
7527
|
static deserialize(obj: any): FindResult;
|
|
7540
7528
|
}
|
|
7541
|
-
namespace FindResult {
|
|
7529
|
+
export namespace FindResult {
|
|
7542
7530
|
interface Transport {
|
|
7543
7531
|
bookmark: string;
|
|
7544
7532
|
docs: Document[];
|
|
@@ -7549,7 +7537,7 @@ declare namespace CloudantV1 {
|
|
|
7549
7537
|
/**
|
|
7550
7538
|
* Schema for detailed explanation of why the specific index was excluded by the query planner.
|
|
7551
7539
|
*/
|
|
7552
|
-
class IndexAnalysis {
|
|
7540
|
+
export class IndexAnalysis {
|
|
7553
7541
|
/** When `true`, the query is answered using the index only and no documents are fetched. */
|
|
7554
7542
|
covering: boolean | null;
|
|
7555
7543
|
/** A position of the unused index based on its potential relevance to the query. */
|
|
@@ -7561,7 +7549,7 @@ declare namespace CloudantV1 {
|
|
|
7561
7549
|
static serialize(obj: any): IndexAnalysis.Transport;
|
|
7562
7550
|
static deserialize(obj: any): IndexAnalysis;
|
|
7563
7551
|
}
|
|
7564
|
-
namespace IndexAnalysis {
|
|
7552
|
+
export namespace IndexAnalysis {
|
|
7565
7553
|
interface Transport {
|
|
7566
7554
|
covering: boolean;
|
|
7567
7555
|
ranking: number;
|
|
@@ -7572,7 +7560,7 @@ declare namespace CloudantV1 {
|
|
|
7572
7560
|
/**
|
|
7573
7561
|
* A reason for index's exclusion.
|
|
7574
7562
|
*/
|
|
7575
|
-
class IndexAnalysisExclusionReason {
|
|
7563
|
+
export class IndexAnalysisExclusionReason {
|
|
7576
7564
|
/** A reason code for index's exclusion.
|
|
7577
7565
|
*
|
|
7578
7566
|
* The full list of possible reason codes is following:
|
|
@@ -7596,7 +7584,7 @@ declare namespace CloudantV1 {
|
|
|
7596
7584
|
static serialize(obj: any): IndexAnalysisExclusionReason.Transport;
|
|
7597
7585
|
static deserialize(obj: any): IndexAnalysisExclusionReason;
|
|
7598
7586
|
}
|
|
7599
|
-
namespace IndexAnalysisExclusionReason {
|
|
7587
|
+
export namespace IndexAnalysisExclusionReason {
|
|
7600
7588
|
namespace Constants {
|
|
7601
7589
|
/** 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
7590
|
enum Name {
|
|
@@ -7620,7 +7608,7 @@ declare namespace CloudantV1 {
|
|
|
7620
7608
|
/**
|
|
7621
7609
|
* Schema for an index that was not chosen for serving the query with the reason for the exclusion.
|
|
7622
7610
|
*/
|
|
7623
|
-
class IndexCandidate {
|
|
7611
|
+
export class IndexCandidate {
|
|
7624
7612
|
/** Schema for detailed explanation of why the specific index was excluded by the query planner. */
|
|
7625
7613
|
analysis: IndexAnalysis;
|
|
7626
7614
|
/** Schema for information about an index. */
|
|
@@ -7628,7 +7616,7 @@ declare namespace CloudantV1 {
|
|
|
7628
7616
|
static serialize(obj: any): IndexCandidate.Transport;
|
|
7629
7617
|
static deserialize(obj: any): IndexCandidate;
|
|
7630
7618
|
}
|
|
7631
|
-
namespace IndexCandidate {
|
|
7619
|
+
export namespace IndexCandidate {
|
|
7632
7620
|
interface Transport {
|
|
7633
7621
|
analysis: IndexAnalysis.Transport;
|
|
7634
7622
|
index: IndexInformation.Transport;
|
|
@@ -7640,7 +7628,7 @@ declare namespace CloudantV1 {
|
|
|
7640
7628
|
* * `default_analyzer` - the default text analyzer to use * `default_field` - whether to index the text in all
|
|
7641
7629
|
* document fields and what analyzer to use for that purpose.
|
|
7642
7630
|
*/
|
|
7643
|
-
class IndexDefinition {
|
|
7631
|
+
export class IndexDefinition {
|
|
7644
7632
|
/** Schema for a full text search analyzer. */
|
|
7645
7633
|
defaultAnalyzer?: Analyzer;
|
|
7646
7634
|
/** Schema for the text index default field configuration. The default field is used to index the text of all
|
|
@@ -7700,7 +7688,7 @@ declare namespace CloudantV1 {
|
|
|
7700
7688
|
static serialize(obj: any): IndexDefinition.Transport;
|
|
7701
7689
|
static deserialize(obj: any): IndexDefinition;
|
|
7702
7690
|
}
|
|
7703
|
-
namespace IndexDefinition {
|
|
7691
|
+
export namespace IndexDefinition {
|
|
7704
7692
|
interface Transport {
|
|
7705
7693
|
default_analyzer?: Analyzer.Transport;
|
|
7706
7694
|
default_field?: IndexTextOperatorDefaultField.Transport;
|
|
@@ -7714,7 +7702,7 @@ declare namespace CloudantV1 {
|
|
|
7714
7702
|
*
|
|
7715
7703
|
* This type supports additional properties of type string. Schema for sort direction.
|
|
7716
7704
|
*/
|
|
7717
|
-
class IndexField {
|
|
7705
|
+
export class IndexField {
|
|
7718
7706
|
/** Name of the field. */
|
|
7719
7707
|
name?: string;
|
|
7720
7708
|
/** The type of the named field. */
|
|
@@ -7726,7 +7714,7 @@ declare namespace CloudantV1 {
|
|
|
7726
7714
|
static serialize(obj: any): IndexField.Transport;
|
|
7727
7715
|
static deserialize(obj: any): IndexField;
|
|
7728
7716
|
}
|
|
7729
|
-
namespace IndexField {
|
|
7717
|
+
export namespace IndexField {
|
|
7730
7718
|
namespace Constants {
|
|
7731
7719
|
/** The type of the named field. */
|
|
7732
7720
|
enum Type {
|
|
@@ -7745,7 +7733,7 @@ declare namespace CloudantV1 {
|
|
|
7745
7733
|
/**
|
|
7746
7734
|
* Schema for information about an index.
|
|
7747
7735
|
*/
|
|
7748
|
-
class IndexInformation {
|
|
7736
|
+
export class IndexInformation {
|
|
7749
7737
|
/** Schema for a nullable design document ID including a `_design/` prefix. */
|
|
7750
7738
|
ddoc: string | null;
|
|
7751
7739
|
/** Schema for a `json` or `text` query index definition. Indexes of type `text` have additional configuration
|
|
@@ -7763,7 +7751,7 @@ declare namespace CloudantV1 {
|
|
|
7763
7751
|
static serialize(obj: any): IndexInformation.Transport;
|
|
7764
7752
|
static deserialize(obj: any): IndexInformation;
|
|
7765
7753
|
}
|
|
7766
|
-
namespace IndexInformation {
|
|
7754
|
+
export namespace IndexInformation {
|
|
7767
7755
|
namespace Constants {
|
|
7768
7756
|
/** Schema for the type of an index. */
|
|
7769
7757
|
enum Type {
|
|
@@ -7783,7 +7771,7 @@ declare namespace CloudantV1 {
|
|
|
7783
7771
|
/**
|
|
7784
7772
|
* Schema for the result of creating an index.
|
|
7785
7773
|
*/
|
|
7786
|
-
class IndexResult {
|
|
7774
|
+
export class IndexResult {
|
|
7787
7775
|
/** Id of the design document the index was created in. */
|
|
7788
7776
|
id: string;
|
|
7789
7777
|
/** Name of the index created. */
|
|
@@ -7793,7 +7781,7 @@ declare namespace CloudantV1 {
|
|
|
7793
7781
|
static serialize(obj: any): IndexResult.Transport;
|
|
7794
7782
|
static deserialize(obj: any): IndexResult;
|
|
7795
7783
|
}
|
|
7796
|
-
namespace IndexResult {
|
|
7784
|
+
export namespace IndexResult {
|
|
7797
7785
|
namespace Constants {
|
|
7798
7786
|
/** Flag to show whether the index was created or one already exists. */
|
|
7799
7787
|
enum Result {
|
|
@@ -7811,7 +7799,7 @@ declare namespace CloudantV1 {
|
|
|
7811
7799
|
* Schema for the text index default field configuration. The default field is used to index the text of all fields
|
|
7812
7800
|
* within a document for use with the `$text` operator.
|
|
7813
7801
|
*/
|
|
7814
|
-
class IndexTextOperatorDefaultField {
|
|
7802
|
+
export class IndexTextOperatorDefaultField {
|
|
7815
7803
|
/** Schema for a full text search analyzer. */
|
|
7816
7804
|
analyzer?: Analyzer;
|
|
7817
7805
|
/** Whether or not the default_field is enabled. */
|
|
@@ -7819,7 +7807,7 @@ declare namespace CloudantV1 {
|
|
|
7819
7807
|
static serialize(obj: any): IndexTextOperatorDefaultField.Transport;
|
|
7820
7808
|
static deserialize(obj: any): IndexTextOperatorDefaultField;
|
|
7821
7809
|
}
|
|
7822
|
-
namespace IndexTextOperatorDefaultField {
|
|
7810
|
+
export namespace IndexTextOperatorDefaultField {
|
|
7823
7811
|
interface Transport {
|
|
7824
7812
|
analyzer?: Analyzer.Transport;
|
|
7825
7813
|
enabled?: boolean;
|
|
@@ -7828,7 +7816,7 @@ declare namespace CloudantV1 {
|
|
|
7828
7816
|
/**
|
|
7829
7817
|
* Schema for information about the indexes in a database.
|
|
7830
7818
|
*/
|
|
7831
|
-
class IndexesInformation {
|
|
7819
|
+
export class IndexesInformation {
|
|
7832
7820
|
/** Total number of query indexes in the database. */
|
|
7833
7821
|
totalRows: number;
|
|
7834
7822
|
/** Indexes. */
|
|
@@ -7836,7 +7824,7 @@ declare namespace CloudantV1 {
|
|
|
7836
7824
|
static serialize(obj: any): IndexesInformation.Transport;
|
|
7837
7825
|
static deserialize(obj: any): IndexesInformation;
|
|
7838
7826
|
}
|
|
7839
|
-
namespace IndexesInformation {
|
|
7827
|
+
export namespace IndexesInformation {
|
|
7840
7828
|
interface Transport {
|
|
7841
7829
|
total_rows: number;
|
|
7842
7830
|
indexes: IndexInformation[];
|
|
@@ -7845,7 +7833,7 @@ declare namespace CloudantV1 {
|
|
|
7845
7833
|
/**
|
|
7846
7834
|
* Schema for information about known nodes and cluster membership.
|
|
7847
7835
|
*/
|
|
7848
|
-
class MembershipInformation {
|
|
7836
|
+
export class MembershipInformation {
|
|
7849
7837
|
/** List of nodes this node knows about, including the ones that are part of the cluster. */
|
|
7850
7838
|
allNodes: string[];
|
|
7851
7839
|
/** All cluster nodes. */
|
|
@@ -7853,7 +7841,7 @@ declare namespace CloudantV1 {
|
|
|
7853
7841
|
static serialize(obj: any): MembershipInformation.Transport;
|
|
7854
7842
|
static deserialize(obj: any): MembershipInformation;
|
|
7855
7843
|
}
|
|
7856
|
-
namespace MembershipInformation {
|
|
7844
|
+
export namespace MembershipInformation {
|
|
7857
7845
|
interface Transport {
|
|
7858
7846
|
all_nodes: string[];
|
|
7859
7847
|
cluster_nodes: string[];
|
|
@@ -7862,13 +7850,13 @@ declare namespace CloudantV1 {
|
|
|
7862
7850
|
/**
|
|
7863
7851
|
* Schema for an OK result.
|
|
7864
7852
|
*/
|
|
7865
|
-
class Ok {
|
|
7853
|
+
export class Ok {
|
|
7866
7854
|
/** ok. */
|
|
7867
7855
|
ok?: boolean;
|
|
7868
7856
|
static serialize(obj: any): Ok.Transport;
|
|
7869
7857
|
static deserialize(obj: any): Ok;
|
|
7870
7858
|
}
|
|
7871
|
-
namespace Ok {
|
|
7859
|
+
export namespace Ok {
|
|
7872
7860
|
interface Transport {
|
|
7873
7861
|
ok?: boolean;
|
|
7874
7862
|
}
|
|
@@ -7876,7 +7864,7 @@ declare namespace CloudantV1 {
|
|
|
7876
7864
|
/**
|
|
7877
7865
|
* Schema for information about a database partition.
|
|
7878
7866
|
*/
|
|
7879
|
-
class PartitionInformation {
|
|
7867
|
+
export class PartitionInformation {
|
|
7880
7868
|
/** Schema for a database name. */
|
|
7881
7869
|
dbName: string;
|
|
7882
7870
|
/** A count of the documents in the specified database partition. */
|
|
@@ -7892,7 +7880,7 @@ declare namespace CloudantV1 {
|
|
|
7892
7880
|
static serialize(obj: any): PartitionInformation.Transport;
|
|
7893
7881
|
static deserialize(obj: any): PartitionInformation;
|
|
7894
7882
|
}
|
|
7895
|
-
namespace PartitionInformation {
|
|
7883
|
+
export namespace PartitionInformation {
|
|
7896
7884
|
interface Transport {
|
|
7897
7885
|
db_name: string;
|
|
7898
7886
|
doc_count: number;
|
|
@@ -7905,7 +7893,7 @@ declare namespace CloudantV1 {
|
|
|
7905
7893
|
/**
|
|
7906
7894
|
* Schema for information about the partition index count and limit in a database.
|
|
7907
7895
|
*/
|
|
7908
|
-
class PartitionInformationIndexes {
|
|
7896
|
+
export class PartitionInformationIndexes {
|
|
7909
7897
|
/** Total count of the partitioned indexes. */
|
|
7910
7898
|
count?: number;
|
|
7911
7899
|
/** The count breakdown of partitioned indexes. */
|
|
@@ -7915,7 +7903,7 @@ declare namespace CloudantV1 {
|
|
|
7915
7903
|
static serialize(obj: any): PartitionInformationIndexes.Transport;
|
|
7916
7904
|
static deserialize(obj: any): PartitionInformationIndexes;
|
|
7917
7905
|
}
|
|
7918
|
-
namespace PartitionInformationIndexes {
|
|
7906
|
+
export namespace PartitionInformationIndexes {
|
|
7919
7907
|
interface Transport {
|
|
7920
7908
|
count?: number;
|
|
7921
7909
|
indexes?: PartitionInformationIndexesIndexes.Transport;
|
|
@@ -7925,7 +7913,7 @@ declare namespace CloudantV1 {
|
|
|
7925
7913
|
/**
|
|
7926
7914
|
* The count breakdown of partitioned indexes.
|
|
7927
7915
|
*/
|
|
7928
|
-
class PartitionInformationIndexesIndexes {
|
|
7916
|
+
export class PartitionInformationIndexesIndexes {
|
|
7929
7917
|
/** Number of partitioned search indexes. */
|
|
7930
7918
|
search?: number;
|
|
7931
7919
|
/** Number of partitioned view indexes. */
|
|
@@ -7933,7 +7921,7 @@ declare namespace CloudantV1 {
|
|
|
7933
7921
|
static serialize(obj: any): PartitionInformationIndexesIndexes.Transport;
|
|
7934
7922
|
static deserialize(obj: any): PartitionInformationIndexesIndexes;
|
|
7935
7923
|
}
|
|
7936
|
-
namespace PartitionInformationIndexesIndexes {
|
|
7924
|
+
export namespace PartitionInformationIndexesIndexes {
|
|
7937
7925
|
interface Transport {
|
|
7938
7926
|
search?: number;
|
|
7939
7927
|
view?: number;
|
|
@@ -7942,7 +7930,7 @@ declare namespace CloudantV1 {
|
|
|
7942
7930
|
/**
|
|
7943
7931
|
* The size of active and external data, in bytes.
|
|
7944
7932
|
*/
|
|
7945
|
-
class PartitionInformationSizes {
|
|
7933
|
+
export class PartitionInformationSizes {
|
|
7946
7934
|
/** The size of live data inside the database, in bytes. */
|
|
7947
7935
|
active?: number;
|
|
7948
7936
|
/** The uncompressed size of database contents in bytes. */
|
|
@@ -7950,7 +7938,7 @@ declare namespace CloudantV1 {
|
|
|
7950
7938
|
static serialize(obj: any): PartitionInformationSizes.Transport;
|
|
7951
7939
|
static deserialize(obj: any): PartitionInformationSizes;
|
|
7952
7940
|
}
|
|
7953
|
-
namespace PartitionInformationSizes {
|
|
7941
|
+
export namespace PartitionInformationSizes {
|
|
7954
7942
|
interface Transport {
|
|
7955
7943
|
active?: number;
|
|
7956
7944
|
external?: number;
|
|
@@ -7959,7 +7947,7 @@ declare namespace CloudantV1 {
|
|
|
7959
7947
|
/**
|
|
7960
7948
|
* Number of partitioned indexes by type.
|
|
7961
7949
|
*/
|
|
7962
|
-
class PartitionedIndexesDetailedInformation {
|
|
7950
|
+
export class PartitionedIndexesDetailedInformation {
|
|
7963
7951
|
/** Number of partitioned indexes of search type. */
|
|
7964
7952
|
search?: number;
|
|
7965
7953
|
/** Number of partitioned indexes of view type. */
|
|
@@ -7967,7 +7955,7 @@ declare namespace CloudantV1 {
|
|
|
7967
7955
|
static serialize(obj: any): PartitionedIndexesDetailedInformation.Transport;
|
|
7968
7956
|
static deserialize(obj: any): PartitionedIndexesDetailedInformation;
|
|
7969
7957
|
}
|
|
7970
|
-
namespace PartitionedIndexesDetailedInformation {
|
|
7958
|
+
export namespace PartitionedIndexesDetailedInformation {
|
|
7971
7959
|
interface Transport {
|
|
7972
7960
|
search?: number;
|
|
7973
7961
|
view?: number;
|
|
@@ -7976,7 +7964,7 @@ declare namespace CloudantV1 {
|
|
|
7976
7964
|
/**
|
|
7977
7965
|
* Information about database's partitioned indexes.
|
|
7978
7966
|
*/
|
|
7979
|
-
class PartitionedIndexesInformation {
|
|
7967
|
+
export class PartitionedIndexesInformation {
|
|
7980
7968
|
/** Total number of partitioned indexes in the database. */
|
|
7981
7969
|
count?: number;
|
|
7982
7970
|
/** Number of partitioned indexes by type. */
|
|
@@ -7986,7 +7974,7 @@ declare namespace CloudantV1 {
|
|
|
7986
7974
|
static serialize(obj: any): PartitionedIndexesInformation.Transport;
|
|
7987
7975
|
static deserialize(obj: any): PartitionedIndexesInformation;
|
|
7988
7976
|
}
|
|
7989
|
-
namespace PartitionedIndexesInformation {
|
|
7977
|
+
export namespace PartitionedIndexesInformation {
|
|
7990
7978
|
interface Transport {
|
|
7991
7979
|
count?: number;
|
|
7992
7980
|
indexes?: PartitionedIndexesDetailedInformation.Transport;
|
|
@@ -7996,7 +7984,7 @@ declare namespace CloudantV1 {
|
|
|
7996
7984
|
/**
|
|
7997
7985
|
* Request parameters to use during target database creation.
|
|
7998
7986
|
*/
|
|
7999
|
-
class ReplicationCreateTargetParameters {
|
|
7987
|
+
export class ReplicationCreateTargetParameters {
|
|
8000
7988
|
/** Schema for the number of replicas of a database in a cluster. The cluster is using the default value and it
|
|
8001
7989
|
* cannot be changed by the user.
|
|
8002
7990
|
*/
|
|
@@ -8008,7 +7996,7 @@ declare namespace CloudantV1 {
|
|
|
8008
7996
|
static serialize(obj: any): ReplicationCreateTargetParameters.Transport;
|
|
8009
7997
|
static deserialize(obj: any): ReplicationCreateTargetParameters;
|
|
8010
7998
|
}
|
|
8011
|
-
namespace ReplicationCreateTargetParameters {
|
|
7999
|
+
export namespace ReplicationCreateTargetParameters {
|
|
8012
8000
|
interface Transport {
|
|
8013
8001
|
n?: number;
|
|
8014
8002
|
partitioned?: boolean;
|
|
@@ -8018,7 +8006,7 @@ declare namespace CloudantV1 {
|
|
|
8018
8006
|
/**
|
|
8019
8007
|
* Schema for a replication source or target database.
|
|
8020
8008
|
*/
|
|
8021
|
-
class ReplicationDatabase {
|
|
8009
|
+
export class ReplicationDatabase {
|
|
8022
8010
|
/** Schema for replication source or target database authentication. */
|
|
8023
8011
|
auth?: ReplicationDatabaseAuth;
|
|
8024
8012
|
/** Replication request headers. */
|
|
@@ -8028,7 +8016,7 @@ declare namespace CloudantV1 {
|
|
|
8028
8016
|
static serialize(obj: any): ReplicationDatabase.Transport;
|
|
8029
8017
|
static deserialize(obj: any): ReplicationDatabase;
|
|
8030
8018
|
}
|
|
8031
|
-
namespace ReplicationDatabase {
|
|
8019
|
+
export namespace ReplicationDatabase {
|
|
8032
8020
|
interface Transport {
|
|
8033
8021
|
auth?: ReplicationDatabaseAuth.Transport;
|
|
8034
8022
|
headers?: JsonObject;
|
|
@@ -8038,7 +8026,7 @@ declare namespace CloudantV1 {
|
|
|
8038
8026
|
/**
|
|
8039
8027
|
* Schema for replication source or target database authentication.
|
|
8040
8028
|
*/
|
|
8041
|
-
class ReplicationDatabaseAuth {
|
|
8029
|
+
export class ReplicationDatabaseAuth {
|
|
8042
8030
|
/** Schema for basic authentication of replication source or target database. */
|
|
8043
8031
|
basic?: ReplicationDatabaseAuthBasic;
|
|
8044
8032
|
/** Schema for an IAM API key for replication database authentication. */
|
|
@@ -8046,7 +8034,7 @@ declare namespace CloudantV1 {
|
|
|
8046
8034
|
static serialize(obj: any): ReplicationDatabaseAuth.Transport;
|
|
8047
8035
|
static deserialize(obj: any): ReplicationDatabaseAuth;
|
|
8048
8036
|
}
|
|
8049
|
-
namespace ReplicationDatabaseAuth {
|
|
8037
|
+
export namespace ReplicationDatabaseAuth {
|
|
8050
8038
|
interface Transport {
|
|
8051
8039
|
basic?: ReplicationDatabaseAuthBasic.Transport;
|
|
8052
8040
|
iam?: ReplicationDatabaseAuthIam.Transport;
|
|
@@ -8055,7 +8043,7 @@ declare namespace CloudantV1 {
|
|
|
8055
8043
|
/**
|
|
8056
8044
|
* Schema for basic authentication of replication source or target database.
|
|
8057
8045
|
*/
|
|
8058
|
-
class ReplicationDatabaseAuthBasic {
|
|
8046
|
+
export class ReplicationDatabaseAuthBasic {
|
|
8059
8047
|
/** The password associated with the username. */
|
|
8060
8048
|
password: string;
|
|
8061
8049
|
/** Schema for a username. */
|
|
@@ -8063,7 +8051,7 @@ declare namespace CloudantV1 {
|
|
|
8063
8051
|
static serialize(obj: any): ReplicationDatabaseAuthBasic.Transport;
|
|
8064
8052
|
static deserialize(obj: any): ReplicationDatabaseAuthBasic;
|
|
8065
8053
|
}
|
|
8066
|
-
namespace ReplicationDatabaseAuthBasic {
|
|
8054
|
+
export namespace ReplicationDatabaseAuthBasic {
|
|
8067
8055
|
interface Transport {
|
|
8068
8056
|
password: string;
|
|
8069
8057
|
username: string;
|
|
@@ -8072,13 +8060,13 @@ declare namespace CloudantV1 {
|
|
|
8072
8060
|
/**
|
|
8073
8061
|
* Schema for an IAM API key for replication database authentication.
|
|
8074
8062
|
*/
|
|
8075
|
-
class ReplicationDatabaseAuthIam {
|
|
8063
|
+
export class ReplicationDatabaseAuthIam {
|
|
8076
8064
|
/** IAM API key. */
|
|
8077
8065
|
apiKey: string;
|
|
8078
8066
|
static serialize(obj: any): ReplicationDatabaseAuthIam.Transport;
|
|
8079
8067
|
static deserialize(obj: any): ReplicationDatabaseAuthIam;
|
|
8080
8068
|
}
|
|
8081
|
-
namespace ReplicationDatabaseAuthIam {
|
|
8069
|
+
export namespace ReplicationDatabaseAuthIam {
|
|
8082
8070
|
interface Transport {
|
|
8083
8071
|
api_key: string;
|
|
8084
8072
|
}
|
|
@@ -8088,7 +8076,7 @@ declare namespace CloudantV1 {
|
|
|
8088
8076
|
*
|
|
8089
8077
|
* This type supports additional properties of type any.
|
|
8090
8078
|
*/
|
|
8091
|
-
class ReplicationDocument {
|
|
8079
|
+
export class ReplicationDocument {
|
|
8092
8080
|
/** Schema for a map of attachment name to attachment metadata. */
|
|
8093
8081
|
_attachments?: {
|
|
8094
8082
|
[key: string]: Attachment;
|
|
@@ -8229,7 +8217,7 @@ declare namespace CloudantV1 {
|
|
|
8229
8217
|
static serialize(obj: any): ReplicationDocument.Transport;
|
|
8230
8218
|
static deserialize(obj: any): ReplicationDocument;
|
|
8231
8219
|
}
|
|
8232
|
-
namespace ReplicationDocument {
|
|
8220
|
+
export namespace ReplicationDocument {
|
|
8233
8221
|
interface Transport {
|
|
8234
8222
|
_attachments?: {
|
|
8235
8223
|
[key: string]: Attachment.Transport;
|
|
@@ -8274,7 +8262,7 @@ declare namespace CloudantV1 {
|
|
|
8274
8262
|
/**
|
|
8275
8263
|
* Schema for list of revision information.
|
|
8276
8264
|
*/
|
|
8277
|
-
class Revisions {
|
|
8265
|
+
export class Revisions {
|
|
8278
8266
|
/** Array of valid revision IDs, in reverse order (latest first). */
|
|
8279
8267
|
ids: string[];
|
|
8280
8268
|
/** Prefix number for the latest revision. */
|
|
@@ -8282,7 +8270,7 @@ declare namespace CloudantV1 {
|
|
|
8282
8270
|
static serialize(obj: any): Revisions.Transport;
|
|
8283
8271
|
static deserialize(obj: any): Revisions;
|
|
8284
8272
|
}
|
|
8285
|
-
namespace Revisions {
|
|
8273
|
+
export namespace Revisions {
|
|
8286
8274
|
interface Transport {
|
|
8287
8275
|
ids: string[];
|
|
8288
8276
|
start: number;
|
|
@@ -8291,7 +8279,7 @@ declare namespace CloudantV1 {
|
|
|
8291
8279
|
/**
|
|
8292
8280
|
* Schema for information about missing revs and possible ancestors.
|
|
8293
8281
|
*/
|
|
8294
|
-
class RevsDiff {
|
|
8282
|
+
export class RevsDiff {
|
|
8295
8283
|
/** List of missing revisions. */
|
|
8296
8284
|
missing?: string[];
|
|
8297
8285
|
/** List of possible ancestor revisions. */
|
|
@@ -8299,7 +8287,7 @@ declare namespace CloudantV1 {
|
|
|
8299
8287
|
static serialize(obj: any): RevsDiff.Transport;
|
|
8300
8288
|
static deserialize(obj: any): RevsDiff;
|
|
8301
8289
|
}
|
|
8302
|
-
namespace RevsDiff {
|
|
8290
|
+
export namespace RevsDiff {
|
|
8303
8291
|
interface Transport {
|
|
8304
8292
|
missing?: string[];
|
|
8305
8293
|
possible_ancestors?: string[];
|
|
@@ -8308,7 +8296,7 @@ declare namespace CloudantV1 {
|
|
|
8308
8296
|
/**
|
|
8309
8297
|
* Schema for a listing of replication scheduler documents.
|
|
8310
8298
|
*/
|
|
8311
|
-
class SchedulerDocsResult {
|
|
8299
|
+
export class SchedulerDocsResult {
|
|
8312
8300
|
/** Total number of replication scheduler documents. */
|
|
8313
8301
|
totalRows: number;
|
|
8314
8302
|
/** Array of replication scheduler doc objects. */
|
|
@@ -8316,7 +8304,7 @@ declare namespace CloudantV1 {
|
|
|
8316
8304
|
static serialize(obj: any): SchedulerDocsResult.Transport;
|
|
8317
8305
|
static deserialize(obj: any): SchedulerDocsResult;
|
|
8318
8306
|
}
|
|
8319
|
-
namespace SchedulerDocsResult {
|
|
8307
|
+
export namespace SchedulerDocsResult {
|
|
8320
8308
|
interface Transport {
|
|
8321
8309
|
total_rows: number;
|
|
8322
8310
|
docs: SchedulerDocument[];
|
|
@@ -8325,7 +8313,7 @@ declare namespace CloudantV1 {
|
|
|
8325
8313
|
/**
|
|
8326
8314
|
* Schema for a replication scheduler document.
|
|
8327
8315
|
*/
|
|
8328
|
-
class SchedulerDocument {
|
|
8316
|
+
export class SchedulerDocument {
|
|
8329
8317
|
/** Database where replication document came from. */
|
|
8330
8318
|
database: string;
|
|
8331
8319
|
/** Replication document ID. */
|
|
@@ -8366,7 +8354,7 @@ declare namespace CloudantV1 {
|
|
|
8366
8354
|
static serialize(obj: any): SchedulerDocument.Transport;
|
|
8367
8355
|
static deserialize(obj: any): SchedulerDocument;
|
|
8368
8356
|
}
|
|
8369
|
-
namespace SchedulerDocument {
|
|
8357
|
+
export namespace SchedulerDocument {
|
|
8370
8358
|
namespace Constants {
|
|
8371
8359
|
/** Schema for replication state. */
|
|
8372
8360
|
enum State {
|
|
@@ -8399,7 +8387,7 @@ declare namespace CloudantV1 {
|
|
|
8399
8387
|
* Schema for scheduler document information. A JSON object that may contain additional information about the state.
|
|
8400
8388
|
* For error states this will contain an error field and string value.
|
|
8401
8389
|
*/
|
|
8402
|
-
class SchedulerInfo {
|
|
8390
|
+
export class SchedulerInfo {
|
|
8403
8391
|
/** The count of changes not yet replicated. */
|
|
8404
8392
|
changesPending?: number | null;
|
|
8405
8393
|
/** The source sequence id which was last successfully replicated. */
|
|
@@ -8423,7 +8411,7 @@ declare namespace CloudantV1 {
|
|
|
8423
8411
|
static serialize(obj: any): SchedulerInfo.Transport;
|
|
8424
8412
|
static deserialize(obj: any): SchedulerInfo;
|
|
8425
8413
|
}
|
|
8426
|
-
namespace SchedulerInfo {
|
|
8414
|
+
export namespace SchedulerInfo {
|
|
8427
8415
|
interface Transport {
|
|
8428
8416
|
changes_pending?: number;
|
|
8429
8417
|
checkpointed_source_seq?: string;
|
|
@@ -8440,7 +8428,7 @@ declare namespace CloudantV1 {
|
|
|
8440
8428
|
/**
|
|
8441
8429
|
* Schema for a replication scheduler job.
|
|
8442
8430
|
*/
|
|
8443
|
-
class SchedulerJob {
|
|
8431
|
+
export class SchedulerJob {
|
|
8444
8432
|
/** Replication document database. */
|
|
8445
8433
|
database: string;
|
|
8446
8434
|
/** Replication document ID. */
|
|
@@ -8468,7 +8456,7 @@ declare namespace CloudantV1 {
|
|
|
8468
8456
|
static serialize(obj: any): SchedulerJob.Transport;
|
|
8469
8457
|
static deserialize(obj: any): SchedulerJob;
|
|
8470
8458
|
}
|
|
8471
|
-
namespace SchedulerJob {
|
|
8459
|
+
export namespace SchedulerJob {
|
|
8472
8460
|
interface Transport {
|
|
8473
8461
|
database: string;
|
|
8474
8462
|
doc_id: string;
|
|
@@ -8486,7 +8474,7 @@ declare namespace CloudantV1 {
|
|
|
8486
8474
|
/**
|
|
8487
8475
|
* Schema for a replication scheduler job event.
|
|
8488
8476
|
*/
|
|
8489
|
-
class SchedulerJobEvent {
|
|
8477
|
+
export class SchedulerJobEvent {
|
|
8490
8478
|
/** Reason for current state of event. */
|
|
8491
8479
|
reason?: string;
|
|
8492
8480
|
/** Timestamp of the event. */
|
|
@@ -8496,7 +8484,7 @@ declare namespace CloudantV1 {
|
|
|
8496
8484
|
static serialize(obj: any): SchedulerJobEvent.Transport;
|
|
8497
8485
|
static deserialize(obj: any): SchedulerJobEvent;
|
|
8498
8486
|
}
|
|
8499
|
-
namespace SchedulerJobEvent {
|
|
8487
|
+
export namespace SchedulerJobEvent {
|
|
8500
8488
|
interface Transport {
|
|
8501
8489
|
reason?: string;
|
|
8502
8490
|
timestamp: string;
|
|
@@ -8506,7 +8494,7 @@ declare namespace CloudantV1 {
|
|
|
8506
8494
|
/**
|
|
8507
8495
|
* Schema for a listing of replication scheduler jobs.
|
|
8508
8496
|
*/
|
|
8509
|
-
class SchedulerJobsResult {
|
|
8497
|
+
export class SchedulerJobsResult {
|
|
8510
8498
|
/** Total number of replication jobs. */
|
|
8511
8499
|
totalRows: number;
|
|
8512
8500
|
/** Array of replication job objects. */
|
|
@@ -8514,7 +8502,7 @@ declare namespace CloudantV1 {
|
|
|
8514
8502
|
static serialize(obj: any): SchedulerJobsResult.Transport;
|
|
8515
8503
|
static deserialize(obj: any): SchedulerJobsResult;
|
|
8516
8504
|
}
|
|
8517
|
-
namespace SchedulerJobsResult {
|
|
8505
|
+
export namespace SchedulerJobsResult {
|
|
8518
8506
|
interface Transport {
|
|
8519
8507
|
total_rows: number;
|
|
8520
8508
|
jobs: SchedulerJob[];
|
|
@@ -8523,13 +8511,13 @@ declare namespace CloudantV1 {
|
|
|
8523
8511
|
/**
|
|
8524
8512
|
* Schema for the output of testing search analyzer tokenization.
|
|
8525
8513
|
*/
|
|
8526
|
-
class SearchAnalyzeResult {
|
|
8514
|
+
export class SearchAnalyzeResult {
|
|
8527
8515
|
/** tokens. */
|
|
8528
8516
|
tokens: string[];
|
|
8529
8517
|
static serialize(obj: any): SearchAnalyzeResult.Transport;
|
|
8530
8518
|
static deserialize(obj: any): SearchAnalyzeResult;
|
|
8531
8519
|
}
|
|
8532
|
-
namespace SearchAnalyzeResult {
|
|
8520
|
+
export namespace SearchAnalyzeResult {
|
|
8533
8521
|
interface Transport {
|
|
8534
8522
|
tokens: string[];
|
|
8535
8523
|
}
|
|
@@ -8537,7 +8525,7 @@ declare namespace CloudantV1 {
|
|
|
8537
8525
|
/**
|
|
8538
8526
|
* Schema for search index disk size.
|
|
8539
8527
|
*/
|
|
8540
|
-
class SearchDiskSizeInformation {
|
|
8528
|
+
export class SearchDiskSizeInformation {
|
|
8541
8529
|
/** The name of the search index prefixed by the design document ID where the index is stored. */
|
|
8542
8530
|
name: string;
|
|
8543
8531
|
/** Schema for search index disk size. */
|
|
@@ -8545,7 +8533,7 @@ declare namespace CloudantV1 {
|
|
|
8545
8533
|
static serialize(obj: any): SearchDiskSizeInformation.Transport;
|
|
8546
8534
|
static deserialize(obj: any): SearchDiskSizeInformation;
|
|
8547
8535
|
}
|
|
8548
|
-
namespace SearchDiskSizeInformation {
|
|
8536
|
+
export namespace SearchDiskSizeInformation {
|
|
8549
8537
|
interface Transport {
|
|
8550
8538
|
name: string;
|
|
8551
8539
|
search_index: SearchIndexDiskSize.Transport;
|
|
@@ -8554,7 +8542,7 @@ declare namespace CloudantV1 {
|
|
|
8554
8542
|
/**
|
|
8555
8543
|
* Schema for a search index definition.
|
|
8556
8544
|
*/
|
|
8557
|
-
class SearchIndexDefinition {
|
|
8545
|
+
export class SearchIndexDefinition {
|
|
8558
8546
|
/** Schema for a search analyzer configuration. */
|
|
8559
8547
|
analyzer?: AnalyzerConfiguration;
|
|
8560
8548
|
/** String form of a JavaScript function that is called for each document in the database. The function takes
|
|
@@ -8581,7 +8569,7 @@ declare namespace CloudantV1 {
|
|
|
8581
8569
|
static serialize(obj: any): SearchIndexDefinition.Transport;
|
|
8582
8570
|
static deserialize(obj: any): SearchIndexDefinition;
|
|
8583
8571
|
}
|
|
8584
|
-
namespace SearchIndexDefinition {
|
|
8572
|
+
export namespace SearchIndexDefinition {
|
|
8585
8573
|
interface Transport {
|
|
8586
8574
|
analyzer?: AnalyzerConfiguration.Transport;
|
|
8587
8575
|
index: string;
|
|
@@ -8590,13 +8578,13 @@ declare namespace CloudantV1 {
|
|
|
8590
8578
|
/**
|
|
8591
8579
|
* Schema for search index disk size.
|
|
8592
8580
|
*/
|
|
8593
|
-
class SearchIndexDiskSize {
|
|
8581
|
+
export class SearchIndexDiskSize {
|
|
8594
8582
|
/** The size of the search index on disk. */
|
|
8595
8583
|
diskSize?: number;
|
|
8596
8584
|
static serialize(obj: any): SearchIndexDiskSize.Transport;
|
|
8597
8585
|
static deserialize(obj: any): SearchIndexDiskSize;
|
|
8598
8586
|
}
|
|
8599
|
-
namespace SearchIndexDiskSize {
|
|
8587
|
+
export namespace SearchIndexDiskSize {
|
|
8600
8588
|
interface Transport {
|
|
8601
8589
|
disk_size?: number;
|
|
8602
8590
|
}
|
|
@@ -8604,7 +8592,7 @@ declare namespace CloudantV1 {
|
|
|
8604
8592
|
/**
|
|
8605
8593
|
* Schema for metadata information about a search index.
|
|
8606
8594
|
*/
|
|
8607
|
-
class SearchIndexInfo {
|
|
8595
|
+
export class SearchIndexInfo {
|
|
8608
8596
|
/** The committed sequence identifier. */
|
|
8609
8597
|
committedSeq: number;
|
|
8610
8598
|
/** The size of the search index on disk. */
|
|
@@ -8620,7 +8608,7 @@ declare namespace CloudantV1 {
|
|
|
8620
8608
|
static serialize(obj: any): SearchIndexInfo.Transport;
|
|
8621
8609
|
static deserialize(obj: any): SearchIndexInfo;
|
|
8622
8610
|
}
|
|
8623
|
-
namespace SearchIndexInfo {
|
|
8611
|
+
export namespace SearchIndexInfo {
|
|
8624
8612
|
interface Transport {
|
|
8625
8613
|
committed_seq: number;
|
|
8626
8614
|
disk_size: number;
|
|
@@ -8633,7 +8621,7 @@ declare namespace CloudantV1 {
|
|
|
8633
8621
|
/**
|
|
8634
8622
|
* Schema for search index information.
|
|
8635
8623
|
*/
|
|
8636
|
-
class SearchInfoResult {
|
|
8624
|
+
export class SearchInfoResult {
|
|
8637
8625
|
/** The name of the search index prefixed by the design document ID where the index is stored. */
|
|
8638
8626
|
name: string;
|
|
8639
8627
|
/** Schema for metadata information about a search index. */
|
|
@@ -8641,7 +8629,7 @@ declare namespace CloudantV1 {
|
|
|
8641
8629
|
static serialize(obj: any): SearchInfoResult.Transport;
|
|
8642
8630
|
static deserialize(obj: any): SearchInfoResult;
|
|
8643
8631
|
}
|
|
8644
|
-
namespace SearchInfoResult {
|
|
8632
|
+
export namespace SearchInfoResult {
|
|
8645
8633
|
interface Transport {
|
|
8646
8634
|
name: string;
|
|
8647
8635
|
search_index: SearchIndexInfo.Transport;
|
|
@@ -8650,7 +8638,7 @@ declare namespace CloudantV1 {
|
|
|
8650
8638
|
/**
|
|
8651
8639
|
* Schema for the result of a query search operation.
|
|
8652
8640
|
*/
|
|
8653
|
-
class SearchResult {
|
|
8641
|
+
export class SearchResult {
|
|
8654
8642
|
/** Total number of rows in the index matching the search query. The limit may truncate the number of matches
|
|
8655
8643
|
* returned.
|
|
8656
8644
|
*/
|
|
@@ -8676,7 +8664,7 @@ declare namespace CloudantV1 {
|
|
|
8676
8664
|
static serialize(obj: any): SearchResult.Transport;
|
|
8677
8665
|
static deserialize(obj: any): SearchResult;
|
|
8678
8666
|
}
|
|
8679
|
-
namespace SearchResult {
|
|
8667
|
+
export namespace SearchResult {
|
|
8680
8668
|
interface Transport {
|
|
8681
8669
|
total_rows: number;
|
|
8682
8670
|
bookmark?: string;
|
|
@@ -8694,7 +8682,7 @@ declare namespace CloudantV1 {
|
|
|
8694
8682
|
/**
|
|
8695
8683
|
* Schema for the result of a query search operation.
|
|
8696
8684
|
*/
|
|
8697
|
-
class SearchResultProperties {
|
|
8685
|
+
export class SearchResultProperties {
|
|
8698
8686
|
/** Total number of rows in the index matching the search query. The limit may truncate the number of matches
|
|
8699
8687
|
* returned.
|
|
8700
8688
|
*/
|
|
@@ -8718,7 +8706,7 @@ declare namespace CloudantV1 {
|
|
|
8718
8706
|
static serialize(obj: any): SearchResultProperties.Transport;
|
|
8719
8707
|
static deserialize(obj: any): SearchResultProperties;
|
|
8720
8708
|
}
|
|
8721
|
-
namespace SearchResultProperties {
|
|
8709
|
+
export namespace SearchResultProperties {
|
|
8722
8710
|
interface Transport {
|
|
8723
8711
|
total_rows: number;
|
|
8724
8712
|
bookmark?: string;
|
|
@@ -8735,7 +8723,7 @@ declare namespace CloudantV1 {
|
|
|
8735
8723
|
/**
|
|
8736
8724
|
* Schema for a row of the result of a query search operation.
|
|
8737
8725
|
*/
|
|
8738
|
-
class SearchResultRow {
|
|
8726
|
+
export class SearchResultRow {
|
|
8739
8727
|
/** Schema for a document. */
|
|
8740
8728
|
doc?: Document;
|
|
8741
8729
|
/** Schema for the fields returned by a query search operation, a map of field name to value. */
|
|
@@ -8749,7 +8737,7 @@ declare namespace CloudantV1 {
|
|
|
8749
8737
|
static serialize(obj: any): SearchResultRow.Transport;
|
|
8750
8738
|
static deserialize(obj: any): SearchResultRow;
|
|
8751
8739
|
}
|
|
8752
|
-
namespace SearchResultRow {
|
|
8740
|
+
export namespace SearchResultRow {
|
|
8753
8741
|
interface Transport {
|
|
8754
8742
|
doc?: Document.Transport;
|
|
8755
8743
|
fields: JsonObject;
|
|
@@ -8760,7 +8748,7 @@ declare namespace CloudantV1 {
|
|
|
8760
8748
|
/**
|
|
8761
8749
|
* Schema for a security document.
|
|
8762
8750
|
*/
|
|
8763
|
-
class Security {
|
|
8751
|
+
export class Security {
|
|
8764
8752
|
/** Schema for names and roles to map to a database permission. */
|
|
8765
8753
|
admins?: SecurityObject;
|
|
8766
8754
|
/** Database permissions for Cloudant users and/or API keys. */
|
|
@@ -8772,7 +8760,7 @@ declare namespace CloudantV1 {
|
|
|
8772
8760
|
static serialize(obj: any): Security.Transport;
|
|
8773
8761
|
static deserialize(obj: any): Security;
|
|
8774
8762
|
}
|
|
8775
|
-
namespace Security {
|
|
8763
|
+
export namespace Security {
|
|
8776
8764
|
interface Transport {
|
|
8777
8765
|
admins?: SecurityObject.Transport;
|
|
8778
8766
|
cloudant?: JsonObject;
|
|
@@ -8783,7 +8771,7 @@ declare namespace CloudantV1 {
|
|
|
8783
8771
|
/**
|
|
8784
8772
|
* Schema for names and roles to map to a database permission.
|
|
8785
8773
|
*/
|
|
8786
|
-
class SecurityObject {
|
|
8774
|
+
export class SecurityObject {
|
|
8787
8775
|
/** List of usernames. */
|
|
8788
8776
|
names?: string[];
|
|
8789
8777
|
/** List of roles. */
|
|
@@ -8791,7 +8779,7 @@ declare namespace CloudantV1 {
|
|
|
8791
8779
|
static serialize(obj: any): SecurityObject.Transport;
|
|
8792
8780
|
static deserialize(obj: any): SecurityObject;
|
|
8793
8781
|
}
|
|
8794
|
-
namespace SecurityObject {
|
|
8782
|
+
export namespace SecurityObject {
|
|
8795
8783
|
interface Transport {
|
|
8796
8784
|
names?: string[];
|
|
8797
8785
|
roles?: string[];
|
|
@@ -8800,7 +8788,7 @@ declare namespace CloudantV1 {
|
|
|
8800
8788
|
/**
|
|
8801
8789
|
* Schema for extra information on the selector.
|
|
8802
8790
|
*/
|
|
8803
|
-
class SelectorHint {
|
|
8791
|
+
export class SelectorHint {
|
|
8804
8792
|
/** A list of fields in the given selector that can be used to restrict the query. */
|
|
8805
8793
|
indexableFields: string[];
|
|
8806
8794
|
/** A type of the index. */
|
|
@@ -8810,7 +8798,7 @@ declare namespace CloudantV1 {
|
|
|
8810
8798
|
static serialize(obj: any): SelectorHint.Transport;
|
|
8811
8799
|
static deserialize(obj: any): SelectorHint;
|
|
8812
8800
|
}
|
|
8813
|
-
namespace SelectorHint {
|
|
8801
|
+
export namespace SelectorHint {
|
|
8814
8802
|
namespace Constants {
|
|
8815
8803
|
/** A type of the index. */
|
|
8816
8804
|
enum Type {
|
|
@@ -8827,7 +8815,7 @@ declare namespace CloudantV1 {
|
|
|
8827
8815
|
/**
|
|
8828
8816
|
* Schema for information about the server instance.
|
|
8829
8817
|
*/
|
|
8830
|
-
class ServerInformation {
|
|
8818
|
+
export class ServerInformation {
|
|
8831
8819
|
/** Welcome message. */
|
|
8832
8820
|
couchdb: string;
|
|
8833
8821
|
/** List of enabled optional features. */
|
|
@@ -8841,7 +8829,7 @@ declare namespace CloudantV1 {
|
|
|
8841
8829
|
static serialize(obj: any): ServerInformation.Transport;
|
|
8842
8830
|
static deserialize(obj: any): ServerInformation;
|
|
8843
8831
|
}
|
|
8844
|
-
namespace ServerInformation {
|
|
8832
|
+
export namespace ServerInformation {
|
|
8845
8833
|
interface Transport {
|
|
8846
8834
|
couchdb: string;
|
|
8847
8835
|
features: string[];
|
|
@@ -8855,7 +8843,7 @@ declare namespace CloudantV1 {
|
|
|
8855
8843
|
*
|
|
8856
8844
|
* This type supports additional properties of type string.
|
|
8857
8845
|
*/
|
|
8858
|
-
class ServerVendor {
|
|
8846
|
+
export class ServerVendor {
|
|
8859
8847
|
/** Vendor name. */
|
|
8860
8848
|
name: string;
|
|
8861
8849
|
/** Vendor variant. */
|
|
@@ -8869,7 +8857,7 @@ declare namespace CloudantV1 {
|
|
|
8869
8857
|
static serialize(obj: any): ServerVendor.Transport;
|
|
8870
8858
|
static deserialize(obj: any): ServerVendor;
|
|
8871
8859
|
}
|
|
8872
|
-
namespace ServerVendor {
|
|
8860
|
+
export namespace ServerVendor {
|
|
8873
8861
|
namespace Constants {
|
|
8874
8862
|
/** Vendor variant. */
|
|
8875
8863
|
enum Variant {
|
|
@@ -8887,7 +8875,7 @@ declare namespace CloudantV1 {
|
|
|
8887
8875
|
/**
|
|
8888
8876
|
* Schema for session authentication information.
|
|
8889
8877
|
*/
|
|
8890
|
-
class SessionAuthentication {
|
|
8878
|
+
export class SessionAuthentication {
|
|
8891
8879
|
/** authenticated. */
|
|
8892
8880
|
authenticated?: string;
|
|
8893
8881
|
/** authentication_db. */
|
|
@@ -8897,7 +8885,7 @@ declare namespace CloudantV1 {
|
|
|
8897
8885
|
static serialize(obj: any): SessionAuthentication.Transport;
|
|
8898
8886
|
static deserialize(obj: any): SessionAuthentication;
|
|
8899
8887
|
}
|
|
8900
|
-
namespace SessionAuthentication {
|
|
8888
|
+
export namespace SessionAuthentication {
|
|
8901
8889
|
interface Transport {
|
|
8902
8890
|
authenticated?: string;
|
|
8903
8891
|
authentication_db?: string;
|
|
@@ -8907,7 +8895,7 @@ declare namespace CloudantV1 {
|
|
|
8907
8895
|
/**
|
|
8908
8896
|
* Schema for information about a session.
|
|
8909
8897
|
*/
|
|
8910
|
-
class SessionInformation {
|
|
8898
|
+
export class SessionInformation {
|
|
8911
8899
|
/** ok. */
|
|
8912
8900
|
ok: boolean;
|
|
8913
8901
|
/** Schema for session authentication information. */
|
|
@@ -8917,7 +8905,7 @@ declare namespace CloudantV1 {
|
|
|
8917
8905
|
static serialize(obj: any): SessionInformation.Transport;
|
|
8918
8906
|
static deserialize(obj: any): SessionInformation;
|
|
8919
8907
|
}
|
|
8920
|
-
namespace SessionInformation {
|
|
8908
|
+
export namespace SessionInformation {
|
|
8921
8909
|
interface Transport {
|
|
8922
8910
|
ok: boolean;
|
|
8923
8911
|
info: SessionAuthentication.Transport;
|
|
@@ -8928,13 +8916,13 @@ declare namespace CloudantV1 {
|
|
|
8928
8916
|
* Schema for a shards object that maps the hash value range for each shard to the array of nodes that contain a copy
|
|
8929
8917
|
* of that shard.
|
|
8930
8918
|
*/
|
|
8931
|
-
class ShardsInformation {
|
|
8919
|
+
export class ShardsInformation {
|
|
8932
8920
|
/** Mapping of shard hash value range to a list of nodes. */
|
|
8933
8921
|
shards: JsonObject;
|
|
8934
8922
|
static serialize(obj: any): ShardsInformation.Transport;
|
|
8935
8923
|
static deserialize(obj: any): ShardsInformation;
|
|
8936
8924
|
}
|
|
8937
|
-
namespace ShardsInformation {
|
|
8925
|
+
export namespace ShardsInformation {
|
|
8938
8926
|
interface Transport {
|
|
8939
8927
|
shards: JsonObject;
|
|
8940
8928
|
}
|
|
@@ -8942,7 +8930,7 @@ declare namespace CloudantV1 {
|
|
|
8942
8930
|
/**
|
|
8943
8931
|
* Schema for detailed information about throughput capacity with breakdown by specific throughput requests classes.
|
|
8944
8932
|
*/
|
|
8945
|
-
class ThroughputInformation {
|
|
8933
|
+
export class ThroughputInformation {
|
|
8946
8934
|
/** A number of blocks of throughput units. A block consists of 100 reads/sec, 50 writes/sec, and 5 global
|
|
8947
8935
|
* queries/sec of provisioned throughput capacity. Not available for some plans.
|
|
8948
8936
|
*/
|
|
@@ -8956,7 +8944,7 @@ declare namespace CloudantV1 {
|
|
|
8956
8944
|
static serialize(obj: any): ThroughputInformation.Transport;
|
|
8957
8945
|
static deserialize(obj: any): ThroughputInformation;
|
|
8958
8946
|
}
|
|
8959
|
-
namespace ThroughputInformation {
|
|
8947
|
+
export namespace ThroughputInformation {
|
|
8960
8948
|
interface Transport {
|
|
8961
8949
|
blocks?: number;
|
|
8962
8950
|
query: number;
|
|
@@ -8967,7 +8955,7 @@ declare namespace CloudantV1 {
|
|
|
8967
8955
|
/**
|
|
8968
8956
|
* Schema for information about the up state of the server.
|
|
8969
8957
|
*/
|
|
8970
|
-
class UpInformation {
|
|
8958
|
+
export class UpInformation {
|
|
8971
8959
|
/** seeds. */
|
|
8972
8960
|
seeds?: JsonObject;
|
|
8973
8961
|
/** status. */
|
|
@@ -8975,7 +8963,7 @@ declare namespace CloudantV1 {
|
|
|
8975
8963
|
static serialize(obj: any): UpInformation.Transport;
|
|
8976
8964
|
static deserialize(obj: any): UpInformation;
|
|
8977
8965
|
}
|
|
8978
|
-
namespace UpInformation {
|
|
8966
|
+
export namespace UpInformation {
|
|
8979
8967
|
namespace Constants {
|
|
8980
8968
|
/** status. */
|
|
8981
8969
|
enum Status {
|
|
@@ -8992,7 +8980,7 @@ declare namespace CloudantV1 {
|
|
|
8992
8980
|
/**
|
|
8993
8981
|
* Schema for an ability to tell if view is up-to-date without querying it.
|
|
8994
8982
|
*/
|
|
8995
|
-
class UpdatesPending {
|
|
8983
|
+
export class UpdatesPending {
|
|
8996
8984
|
/** Sum of shard copies with the least amount of work to do. */
|
|
8997
8985
|
minimum: number;
|
|
8998
8986
|
/** 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 +8992,7 @@ declare namespace CloudantV1 {
|
|
|
9004
8992
|
static serialize(obj: any): UpdatesPending.Transport;
|
|
9005
8993
|
static deserialize(obj: any): UpdatesPending;
|
|
9006
8994
|
}
|
|
9007
|
-
namespace UpdatesPending {
|
|
8995
|
+
export namespace UpdatesPending {
|
|
9008
8996
|
interface Transport {
|
|
9009
8997
|
minimum: number;
|
|
9010
8998
|
preferred: number;
|
|
@@ -9014,7 +9002,7 @@ declare namespace CloudantV1 {
|
|
|
9014
9002
|
/**
|
|
9015
9003
|
* Schema for the user context of a session.
|
|
9016
9004
|
*/
|
|
9017
|
-
class UserContext {
|
|
9005
|
+
export class UserContext {
|
|
9018
9006
|
/** Database name in the context of the provided operation. */
|
|
9019
9007
|
db?: string;
|
|
9020
9008
|
/** Name of user running the process. */
|
|
@@ -9024,7 +9012,7 @@ declare namespace CloudantV1 {
|
|
|
9024
9012
|
static serialize(obj: any): UserContext.Transport;
|
|
9025
9013
|
static deserialize(obj: any): UserContext;
|
|
9026
9014
|
}
|
|
9027
|
-
namespace UserContext {
|
|
9015
|
+
export namespace UserContext {
|
|
9028
9016
|
namespace Constants {
|
|
9029
9017
|
/** List of user roles. */
|
|
9030
9018
|
enum Roles {
|
|
@@ -9047,13 +9035,13 @@ declare namespace CloudantV1 {
|
|
|
9047
9035
|
/**
|
|
9048
9036
|
* Schema for a set of uuids generated by the server.
|
|
9049
9037
|
*/
|
|
9050
|
-
class UuidsResult {
|
|
9038
|
+
export class UuidsResult {
|
|
9051
9039
|
/** uuids. */
|
|
9052
9040
|
uuids: string[];
|
|
9053
9041
|
static serialize(obj: any): UuidsResult.Transport;
|
|
9054
9042
|
static deserialize(obj: any): UuidsResult;
|
|
9055
9043
|
}
|
|
9056
|
-
namespace UuidsResult {
|
|
9044
|
+
export namespace UuidsResult {
|
|
9057
9045
|
interface Transport {
|
|
9058
9046
|
uuids: string[];
|
|
9059
9047
|
}
|
|
@@ -9061,7 +9049,7 @@ declare namespace CloudantV1 {
|
|
|
9061
9049
|
/**
|
|
9062
9050
|
* Schema for the results of a queries view operation.
|
|
9063
9051
|
*/
|
|
9064
|
-
class ViewQueriesResult {
|
|
9052
|
+
export class ViewQueriesResult {
|
|
9065
9053
|
/** An array of result objects - one for each query. Each result object contains the same fields as the response
|
|
9066
9054
|
* to a regular view request.
|
|
9067
9055
|
*/
|
|
@@ -9069,7 +9057,7 @@ declare namespace CloudantV1 {
|
|
|
9069
9057
|
static serialize(obj: any): ViewQueriesResult.Transport;
|
|
9070
9058
|
static deserialize(obj: any): ViewQueriesResult;
|
|
9071
9059
|
}
|
|
9072
|
-
namespace ViewQueriesResult {
|
|
9060
|
+
export namespace ViewQueriesResult {
|
|
9073
9061
|
interface Transport {
|
|
9074
9062
|
results: ViewResult[];
|
|
9075
9063
|
}
|
|
@@ -9077,7 +9065,7 @@ declare namespace CloudantV1 {
|
|
|
9077
9065
|
/**
|
|
9078
9066
|
* Schema for a query view operation.
|
|
9079
9067
|
*/
|
|
9080
|
-
class ViewQuery {
|
|
9068
|
+
export class ViewQuery {
|
|
9081
9069
|
/** Parameter to specify whether to include the encoding information in attachment stubs if the particular
|
|
9082
9070
|
* attachment is compressed.
|
|
9083
9071
|
*/
|
|
@@ -9152,7 +9140,7 @@ declare namespace CloudantV1 {
|
|
|
9152
9140
|
static serialize(obj: any): ViewQuery.Transport;
|
|
9153
9141
|
static deserialize(obj: any): ViewQuery;
|
|
9154
9142
|
}
|
|
9155
|
-
namespace ViewQuery {
|
|
9143
|
+
export namespace ViewQuery {
|
|
9156
9144
|
namespace Constants {
|
|
9157
9145
|
/** 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
9146
|
enum Update {
|
|
@@ -9187,7 +9175,7 @@ declare namespace CloudantV1 {
|
|
|
9187
9175
|
/**
|
|
9188
9176
|
* Schema for the result of a query view operation.
|
|
9189
9177
|
*/
|
|
9190
|
-
class ViewResult {
|
|
9178
|
+
export class ViewResult {
|
|
9191
9179
|
/** Total number of rows in the view index. Note that if the request query narrows the view this is not the
|
|
9192
9180
|
* number of matching rows. The number of matching rows, up to the specified `limit`, is the size of the `rows`
|
|
9193
9181
|
* array.
|
|
@@ -9200,7 +9188,7 @@ declare namespace CloudantV1 {
|
|
|
9200
9188
|
static serialize(obj: any): ViewResult.Transport;
|
|
9201
9189
|
static deserialize(obj: any): ViewResult;
|
|
9202
9190
|
}
|
|
9203
|
-
namespace ViewResult {
|
|
9191
|
+
export namespace ViewResult {
|
|
9204
9192
|
interface Transport {
|
|
9205
9193
|
total_rows?: number;
|
|
9206
9194
|
update_seq?: string;
|
|
@@ -9210,7 +9198,7 @@ declare namespace CloudantV1 {
|
|
|
9210
9198
|
/**
|
|
9211
9199
|
* Schema for a row of a view result.
|
|
9212
9200
|
*/
|
|
9213
|
-
class ViewResultRow {
|
|
9201
|
+
export class ViewResultRow {
|
|
9214
9202
|
/** The cause of the error (if available). */
|
|
9215
9203
|
causedBy?: string;
|
|
9216
9204
|
/** The name of the error. */
|
|
@@ -9230,7 +9218,7 @@ declare namespace CloudantV1 {
|
|
|
9230
9218
|
static serialize(obj: any): ViewResultRow.Transport;
|
|
9231
9219
|
static deserialize(obj: any): ViewResultRow;
|
|
9232
9220
|
}
|
|
9233
|
-
namespace ViewResultRow {
|
|
9221
|
+
export namespace ViewResultRow {
|
|
9234
9222
|
interface Transport {
|
|
9235
9223
|
caused_by?: string;
|
|
9236
9224
|
error?: string;
|
|
@@ -9242,5 +9230,6 @@ declare namespace CloudantV1 {
|
|
|
9242
9230
|
value: any;
|
|
9243
9231
|
}
|
|
9244
9232
|
}
|
|
9233
|
+
export {};
|
|
9245
9234
|
}
|
|
9246
9235
|
export = CloudantV1;
|