@ibm-cloud/cloudant 0.12.26 → 0.12.27

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/cloudant/v1.d.ts CHANGED
@@ -1098,6 +1098,147 @@ declare class CloudantV1 extends CloudantBaseService {
1098
1098
  * @returns {Promise<CloudantV1.Response<CloudantV1.AllDocsQueriesResult>>}
1099
1099
  */
1100
1100
  postDesignDocsQueries(params: CloudantV1.PostDesignDocsQueriesParams): Promise<CloudantV1.Response<CloudantV1.AllDocsQueriesResult>>;
1101
+ /*************************
1102
+ * monitoring
1103
+ ************************/
1104
+ /**
1105
+ * Retrieve HTTP headers about whether the server is up.
1106
+ *
1107
+ * Retrieves the HTTP headers about whether the server is up.
1108
+ *
1109
+ * @param {Object} [params] - The parameters to send to the service.
1110
+ * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
1111
+ * @returns {Promise<CloudantV1.Response<CloudantV1.EmptyObject>>}
1112
+ */
1113
+ headUpInformation(params?: CloudantV1.HeadUpInformationParams): Promise<CloudantV1.Response<CloudantV1.EmptyObject>>;
1114
+ /**
1115
+ * Retrieve list of running tasks.
1116
+ *
1117
+ * Lists running tasks, including the task type, name, status, and process ID. The result includes a JSON array of the
1118
+ * currently running tasks, with each task described as a single object. Depending on the operation type, the set of
1119
+ * response object fields might be different.
1120
+ *
1121
+ * @param {Object} [params] - The parameters to send to the service.
1122
+ * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
1123
+ * @returns {Promise<CloudantV1.Response<CloudantV1.ActiveTask[]>>}
1124
+ */
1125
+ getActiveTasks(params?: CloudantV1.GetActiveTasksParams): Promise<CloudantV1.Response<CloudantV1.ActiveTask[]>>;
1126
+ /**
1127
+ * Retrieve activity tracking events information.
1128
+ *
1129
+ * Check event types sent to IBM Cloud Activity Tracker Event Routing for the IBM Cloudant instance.
1130
+ *
1131
+ * @param {Object} [params] - The parameters to send to the service.
1132
+ * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
1133
+ * @returns {Promise<CloudantV1.Response<CloudantV1.ActivityTrackerEvents>>}
1134
+ */
1135
+ getActivityTrackerEvents(params?: CloudantV1.GetActivityTrackerEventsParams): Promise<CloudantV1.Response<CloudantV1.ActivityTrackerEvents>>;
1136
+ /**
1137
+ * Modify activity tracking events configuration.
1138
+ *
1139
+ * Configure event types sent to IBM Cloud Activity Tracker Event Routing for the IBM Cloudant instance.
1140
+ *
1141
+ * @param {Object} params - The parameters to send to the service.
1142
+ * @param {string[]} params.types - An array of event types sent to IBM Cloud Activity Tracker Event Routing for the
1143
+ * IBM Cloudant instance. "management" is a required element of this array.
1144
+ * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
1145
+ * @returns {Promise<CloudantV1.Response<CloudantV1.Ok>>}
1146
+ */
1147
+ postActivityTrackerEvents(params: CloudantV1.PostActivityTrackerEventsParams): Promise<CloudantV1.Response<CloudantV1.Ok>>;
1148
+ /**
1149
+ * Retrieve maximum allowed database count.
1150
+ *
1151
+ * Retrieves the maximum number of databases currently allowed in the instance.
1152
+ *
1153
+ * @param {Object} [params] - The parameters to send to the service.
1154
+ * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
1155
+ * @returns {Promise<CloudantV1.Response<CloudantV1.CapacityDatabasesInformation>>}
1156
+ */
1157
+ getCapacityDatabasesInformation(params?: CloudantV1.GetCapacityDatabasesInformationParams): Promise<CloudantV1.Response<CloudantV1.CapacityDatabasesInformation>>;
1158
+ /**
1159
+ * Retrieve current database count.
1160
+ *
1161
+ * Retrieves the current number of databases that exist in the instance.
1162
+ *
1163
+ * @param {Object} [params] - The parameters to send to the service.
1164
+ * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
1165
+ * @returns {Promise<CloudantV1.Response<CloudantV1.CurrentDatabasesInformation>>}
1166
+ */
1167
+ getCurrentDatabasesInformation(params?: CloudantV1.GetCurrentDatabasesInformationParams): Promise<CloudantV1.Response<CloudantV1.CurrentDatabasesInformation>>;
1168
+ /**
1169
+ * Retrieve the current provisioned throughput capacity consumption.
1170
+ *
1171
+ * View the current consumption of provisioned throughput capacity for an IBM Cloudant instance. The current
1172
+ * consumption shows the quantities of reads, writes, and global queries conducted against the instance for a given
1173
+ * second.
1174
+ *
1175
+ * @param {Object} [params] - The parameters to send to the service.
1176
+ * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
1177
+ * @returns {Promise<CloudantV1.Response<CloudantV1.CurrentThroughputInformation>>}
1178
+ */
1179
+ getCurrentThroughputInformation(params?: CloudantV1.GetCurrentThroughputInformationParams): Promise<CloudantV1.Response<CloudantV1.CurrentThroughputInformation>>;
1180
+ /**
1181
+ * Retrieve cluster membership information.
1182
+ *
1183
+ * Displays the nodes that are part of the cluster as `cluster_nodes`. The field, `all_nodes`, displays all nodes this
1184
+ * node knows about, including the ones that are part of the cluster. This endpoint is useful when you set up a
1185
+ * cluster.
1186
+ *
1187
+ * @param {Object} [params] - The parameters to send to the service.
1188
+ * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
1189
+ * @returns {Promise<CloudantV1.Response<CloudantV1.MembershipInformation>>}
1190
+ */
1191
+ getMembershipInformation(params?: CloudantV1.GetMembershipInformationParams): Promise<CloudantV1.Response<CloudantV1.MembershipInformation>>;
1192
+ /**
1193
+ * Retrieve information about whether the server is up.
1194
+ *
1195
+ * Confirms that the server is up, running, and ready to respond to requests. If the cluster is unavailable the
1196
+ * endpoint returns a `503` response code.
1197
+ *
1198
+ * **Tip:** The authentication for this endpoint is only enforced when using IAM.
1199
+ *
1200
+ * @param {Object} [params] - The parameters to send to the service.
1201
+ * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
1202
+ * @returns {Promise<CloudantV1.Response<CloudantV1.UpInformation>>}
1203
+ */
1204
+ getUpInformation(params?: CloudantV1.GetUpInformationParams): Promise<CloudantV1.Response<CloudantV1.UpInformation>>;
1205
+ /**
1206
+ * Retrieve index status for all design documents.
1207
+ *
1208
+ * **EXPERIMENTAL** Returns index status grouped by type for all design documents in the database or a filtered
1209
+ * subset. Results are grouped into `view_indexes` and `search_indexes`. Each entry identifies the index by its design
1210
+ * document and, for search indexes, its `name`. Use a `keys` array in the request body to select design documents by
1211
+ * ID. Use this endpoint to verify whether a database's indexes are fully built, for example before switching traffic
1212
+ * to a replica.
1213
+ *
1214
+ * @param {Object} params - The parameters to send to the service.
1215
+ * @param {string} params.db - Path parameter to specify the database name.
1216
+ * @param {boolean} [params.attEncodingInfo] - Parameter to specify whether to include the encoding information for
1217
+ * compressed attachments. This only applies when requesting documents in the response.
1218
+ * @param {boolean} [params.attachments] - Parameter to specify whether to include attachment content in included
1219
+ * document content or only the attachment metadata. This only applies when requesting documents in the response.
1220
+ * @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in
1221
+ * each returned document. This only applies when requesting documents in the response.
1222
+ * @param {boolean} [params.descending] - Parameter to specify whether to return the documents in descending by key
1223
+ * order.
1224
+ * @param {boolean} [params.includeDocs] - Parameter to specify whether to include the full content of the documents
1225
+ * in the response.
1226
+ * @param {boolean} [params.inclusiveEnd] - Parameter to specify whether to include the specified end key in the
1227
+ * result.
1228
+ * @param {number} [params.limit] - Parameter to specify the number of returned documents to limit the result to.
1229
+ * @param {number} [params.skip] - Parameter to specify the number of records before starting to return the results.
1230
+ * @param {boolean} [params.updateSeq] - Parameter to specify whether to include in the response an update_seq value
1231
+ * indicating the sequence id of the database the view reflects.
1232
+ * @param {string} [params.endKey] - Schema for a document ID.
1233
+ * @param {string} [params.key] - Schema for a document ID.
1234
+ * @param {string[]} [params.keys] - Schema for a list of document IDs.
1235
+ * @param {string} [params.startKey] - Schema for a document ID.
1236
+ * @param {string[]} [params.type] - Index types to filter results by. If omitted, the response includes all index
1237
+ * types.
1238
+ * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
1239
+ * @returns {Promise<CloudantV1.Response<CloudantV1.IndexInfoResult>>}
1240
+ */
1241
+ postIndexInfo(params: CloudantV1.PostIndexInfoParams): Promise<CloudantV1.Response<CloudantV1.IndexInfoResult>>;
1101
1242
  /*************************
1102
1243
  * views
1103
1244
  ************************/
@@ -2850,110 +2991,6 @@ declare class CloudantV1 extends CloudantBaseService {
2850
2991
  * @returns {Promise<CloudantV1.Response<CloudantV1.DocumentShardInfo>>}
2851
2992
  */
2852
2993
  getDocumentShardsInfo(params: CloudantV1.GetDocumentShardsInfoParams): Promise<CloudantV1.Response<CloudantV1.DocumentShardInfo>>;
2853
- /*************************
2854
- * monitoring
2855
- ************************/
2856
- /**
2857
- * Retrieve HTTP headers about whether the server is up.
2858
- *
2859
- * Retrieves the HTTP headers about whether the server is up.
2860
- *
2861
- * @param {Object} [params] - The parameters to send to the service.
2862
- * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
2863
- * @returns {Promise<CloudantV1.Response<CloudantV1.EmptyObject>>}
2864
- */
2865
- headUpInformation(params?: CloudantV1.HeadUpInformationParams): Promise<CloudantV1.Response<CloudantV1.EmptyObject>>;
2866
- /**
2867
- * Retrieve list of running tasks.
2868
- *
2869
- * Lists running tasks, including the task type, name, status, and process ID. The result includes a JSON array of the
2870
- * currently running tasks, with each task described as a single object. Depending on the operation type, the set of
2871
- * response object fields might be different.
2872
- *
2873
- * @param {Object} [params] - The parameters to send to the service.
2874
- * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
2875
- * @returns {Promise<CloudantV1.Response<CloudantV1.ActiveTask[]>>}
2876
- */
2877
- getActiveTasks(params?: CloudantV1.GetActiveTasksParams): Promise<CloudantV1.Response<CloudantV1.ActiveTask[]>>;
2878
- /**
2879
- * Retrieve activity tracking events information.
2880
- *
2881
- * Check event types sent to IBM Cloud Activity Tracker Event Routing for the IBM Cloudant instance.
2882
- *
2883
- * @param {Object} [params] - The parameters to send to the service.
2884
- * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
2885
- * @returns {Promise<CloudantV1.Response<CloudantV1.ActivityTrackerEvents>>}
2886
- */
2887
- getActivityTrackerEvents(params?: CloudantV1.GetActivityTrackerEventsParams): Promise<CloudantV1.Response<CloudantV1.ActivityTrackerEvents>>;
2888
- /**
2889
- * Modify activity tracking events configuration.
2890
- *
2891
- * Configure event types sent to IBM Cloud Activity Tracker Event Routing for the IBM Cloudant instance.
2892
- *
2893
- * @param {Object} params - The parameters to send to the service.
2894
- * @param {string[]} params.types - An array of event types sent to IBM Cloud Activity Tracker Event Routing for the
2895
- * IBM Cloudant instance. "management" is a required element of this array.
2896
- * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
2897
- * @returns {Promise<CloudantV1.Response<CloudantV1.Ok>>}
2898
- */
2899
- postActivityTrackerEvents(params: CloudantV1.PostActivityTrackerEventsParams): Promise<CloudantV1.Response<CloudantV1.Ok>>;
2900
- /**
2901
- * Retrieve maximum allowed database count.
2902
- *
2903
- * Retrieves the maximum number of databases currently allowed in the instance.
2904
- *
2905
- * @param {Object} [params] - The parameters to send to the service.
2906
- * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
2907
- * @returns {Promise<CloudantV1.Response<CloudantV1.CapacityDatabasesInformation>>}
2908
- */
2909
- getCapacityDatabasesInformation(params?: CloudantV1.GetCapacityDatabasesInformationParams): Promise<CloudantV1.Response<CloudantV1.CapacityDatabasesInformation>>;
2910
- /**
2911
- * Retrieve current database count.
2912
- *
2913
- * Retrieves the current number of databases that exist in the instance.
2914
- *
2915
- * @param {Object} [params] - The parameters to send to the service.
2916
- * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
2917
- * @returns {Promise<CloudantV1.Response<CloudantV1.CurrentDatabasesInformation>>}
2918
- */
2919
- getCurrentDatabasesInformation(params?: CloudantV1.GetCurrentDatabasesInformationParams): Promise<CloudantV1.Response<CloudantV1.CurrentDatabasesInformation>>;
2920
- /**
2921
- * Retrieve the current provisioned throughput capacity consumption.
2922
- *
2923
- * View the current consumption of provisioned throughput capacity for an IBM Cloudant instance. The current
2924
- * consumption shows the quantities of reads, writes, and global queries conducted against the instance for a given
2925
- * second.
2926
- *
2927
- * @param {Object} [params] - The parameters to send to the service.
2928
- * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
2929
- * @returns {Promise<CloudantV1.Response<CloudantV1.CurrentThroughputInformation>>}
2930
- */
2931
- getCurrentThroughputInformation(params?: CloudantV1.GetCurrentThroughputInformationParams): Promise<CloudantV1.Response<CloudantV1.CurrentThroughputInformation>>;
2932
- /**
2933
- * Retrieve cluster membership information.
2934
- *
2935
- * Displays the nodes that are part of the cluster as `cluster_nodes`. The field, `all_nodes`, displays all nodes this
2936
- * node knows about, including the ones that are part of the cluster. This endpoint is useful when you set up a
2937
- * cluster.
2938
- *
2939
- * @param {Object} [params] - The parameters to send to the service.
2940
- * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
2941
- * @returns {Promise<CloudantV1.Response<CloudantV1.MembershipInformation>>}
2942
- */
2943
- getMembershipInformation(params?: CloudantV1.GetMembershipInformationParams): Promise<CloudantV1.Response<CloudantV1.MembershipInformation>>;
2944
- /**
2945
- * Retrieve information about whether the server is up.
2946
- *
2947
- * Confirms that the server is up, running, and ready to respond to requests. If the cluster is unavailable the
2948
- * endpoint returns a `503` response code.
2949
- *
2950
- * **Tip:** The authentication for this endpoint is only enforced when using IAM.
2951
- *
2952
- * @param {Object} [params] - The parameters to send to the service.
2953
- * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
2954
- * @returns {Promise<CloudantV1.Response<CloudantV1.UpInformation>>}
2955
- */
2956
- getUpInformation(params?: CloudantV1.GetUpInformationParams): Promise<CloudantV1.Response<CloudantV1.UpInformation>>;
2957
2994
  }
2958
2995
  /*************************
2959
2996
  * interfaces
@@ -4048,6 +4085,94 @@ declare namespace CloudantV1 {
4048
4085
  APPLICATION_OCTET_STREAM = "application/octet-stream"
4049
4086
  }
4050
4087
  }
4088
+ /** Parameters for the `headUpInformation` operation. */
4089
+ export interface HeadUpInformationParams extends DefaultParams {
4090
+ }
4091
+ /** Parameters for the `getActiveTasks` operation. */
4092
+ export interface GetActiveTasksParams extends DefaultParams {
4093
+ }
4094
+ /** Parameters for the `getActivityTrackerEvents` operation. */
4095
+ export interface GetActivityTrackerEventsParams extends DefaultParams {
4096
+ }
4097
+ /** Parameters for the `postActivityTrackerEvents` operation. */
4098
+ export interface PostActivityTrackerEventsParams extends DefaultParams {
4099
+ /** An array of event types sent to IBM Cloud Activity Tracker Event Routing for the IBM Cloudant instance.
4100
+ * "management" is a required element of this array.
4101
+ */
4102
+ types: PostActivityTrackerEventsConstants.Types[] | string[];
4103
+ }
4104
+ /** Constants for the `postActivityTrackerEvents` operation. */
4105
+ export namespace PostActivityTrackerEventsConstants {
4106
+ /** Types */
4107
+ enum Types {
4108
+ MANAGEMENT = "management",
4109
+ DATA = "data"
4110
+ }
4111
+ }
4112
+ /** Parameters for the `getCapacityDatabasesInformation` operation. */
4113
+ export interface GetCapacityDatabasesInformationParams extends DefaultParams {
4114
+ }
4115
+ /** Parameters for the `getCurrentDatabasesInformation` operation. */
4116
+ export interface GetCurrentDatabasesInformationParams extends DefaultParams {
4117
+ }
4118
+ /** Parameters for the `getCurrentThroughputInformation` operation. */
4119
+ export interface GetCurrentThroughputInformationParams extends DefaultParams {
4120
+ }
4121
+ /** Parameters for the `getMembershipInformation` operation. */
4122
+ export interface GetMembershipInformationParams extends DefaultParams {
4123
+ }
4124
+ /** Parameters for the `getUpInformation` operation. */
4125
+ export interface GetUpInformationParams extends DefaultParams {
4126
+ }
4127
+ /** Parameters for the `postIndexInfo` operation. */
4128
+ export interface PostIndexInfoParams extends DefaultParams {
4129
+ /** Path parameter to specify the database name. */
4130
+ db: string;
4131
+ /** Parameter to specify whether to include the encoding information for compressed attachments. This only
4132
+ * applies when requesting documents in the response.
4133
+ */
4134
+ attEncodingInfo?: boolean;
4135
+ /** Parameter to specify whether to include attachment content in included document content or only the
4136
+ * attachment metadata. This only applies when requesting documents in the response.
4137
+ */
4138
+ attachments?: boolean;
4139
+ /** Parameter to specify whether to include a list of conflicted revisions in each returned document. This only
4140
+ * applies when requesting documents in the response.
4141
+ */
4142
+ conflicts?: boolean;
4143
+ /** Parameter to specify whether to return the documents in descending by key order. */
4144
+ descending?: boolean;
4145
+ /** Parameter to specify whether to include the full content of the documents in the response. */
4146
+ includeDocs?: boolean;
4147
+ /** Parameter to specify whether to include the specified end key in the result. */
4148
+ inclusiveEnd?: boolean;
4149
+ /** Parameter to specify the number of returned documents to limit the result to. */
4150
+ limit?: number;
4151
+ /** Parameter to specify the number of records before starting to return the results. */
4152
+ skip?: number;
4153
+ /** Parameter to specify whether to include in the response an update_seq value indicating the sequence id of
4154
+ * the database the view reflects.
4155
+ */
4156
+ updateSeq?: boolean;
4157
+ /** Schema for a document ID. */
4158
+ endKey?: string;
4159
+ /** Schema for a document ID. */
4160
+ key?: string;
4161
+ /** Schema for a list of document IDs. */
4162
+ keys?: string[];
4163
+ /** Schema for a document ID. */
4164
+ startKey?: string;
4165
+ /** Index types to filter results by. If omitted, the response includes all index types. */
4166
+ type?: PostIndexInfoConstants.Type[] | string[];
4167
+ }
4168
+ /** Constants for the `postIndexInfo` operation. */
4169
+ export namespace PostIndexInfoConstants {
4170
+ /** Type */
4171
+ enum Type {
4172
+ SEARCH = "search",
4173
+ VIEW = "view"
4174
+ }
4175
+ }
4051
4176
  /** Parameters for the `postView` operation. */
4052
4177
  export interface PostViewParams extends DefaultParams {
4053
4178
  /** Path parameter to specify the database name. */
@@ -6040,45 +6165,6 @@ declare namespace CloudantV1 {
6040
6165
  /** Path parameter to specify the document ID. */
6041
6166
  docId: string;
6042
6167
  }
6043
- /** Parameters for the `headUpInformation` operation. */
6044
- export interface HeadUpInformationParams extends DefaultParams {
6045
- }
6046
- /** Parameters for the `getActiveTasks` operation. */
6047
- export interface GetActiveTasksParams extends DefaultParams {
6048
- }
6049
- /** Parameters for the `getActivityTrackerEvents` operation. */
6050
- export interface GetActivityTrackerEventsParams extends DefaultParams {
6051
- }
6052
- /** Parameters for the `postActivityTrackerEvents` operation. */
6053
- export interface PostActivityTrackerEventsParams extends DefaultParams {
6054
- /** An array of event types sent to IBM Cloud Activity Tracker Event Routing for the IBM Cloudant instance.
6055
- * "management" is a required element of this array.
6056
- */
6057
- types: PostActivityTrackerEventsConstants.Types[] | string[];
6058
- }
6059
- /** Constants for the `postActivityTrackerEvents` operation. */
6060
- export namespace PostActivityTrackerEventsConstants {
6061
- /** Types */
6062
- enum Types {
6063
- MANAGEMENT = "management",
6064
- DATA = "data"
6065
- }
6066
- }
6067
- /** Parameters for the `getCapacityDatabasesInformation` operation. */
6068
- export interface GetCapacityDatabasesInformationParams extends DefaultParams {
6069
- }
6070
- /** Parameters for the `getCurrentDatabasesInformation` operation. */
6071
- export interface GetCurrentDatabasesInformationParams extends DefaultParams {
6072
- }
6073
- /** Parameters for the `getCurrentThroughputInformation` operation. */
6074
- export interface GetCurrentThroughputInformationParams extends DefaultParams {
6075
- }
6076
- /** Parameters for the `getMembershipInformation` operation. */
6077
- export interface GetMembershipInformationParams extends DefaultParams {
6078
- }
6079
- /** Parameters for the `getUpInformation` operation. */
6080
- export interface GetUpInformationParams extends DefaultParams {
6081
- }
6082
6168
  /*************************
6083
6169
  * model interfaces
6084
6170
  ************************/
@@ -7286,7 +7372,9 @@ declare namespace CloudantV1 {
7286
7372
  sizes: ContentInformationSizes;
7287
7373
  /** Indicates if the view is currently being updated. */
7288
7374
  updaterRunning: boolean;
7289
- /** Schema for an ability to tell if view is up-to-date without querying it. */
7375
+ /** Schema for information about pending updates for an index, calculated across all available copies of all
7376
+ * shards.
7377
+ */
7290
7378
  updatesPending: UpdatesPending;
7291
7379
  /** Number of clients waiting on views from this design document. */
7292
7380
  waitingClients: number;
@@ -7947,6 +8035,32 @@ declare namespace CloudantV1 {
7947
8035
  [propName: string]: any;
7948
8036
  }
7949
8037
  }
8038
+ /**
8039
+ * Schema for the result of an _index_info request.
8040
+ */
8041
+ export class IndexInfoResult {
8042
+ /** The ID of the first design document after the current page of results. Pass this value as `start_key` to
8043
+ * retrieve the next page. This field is `null` when no more design documents are available, or when the request
8044
+ * includes a `keys` parameter.
8045
+ */
8046
+ bookmark: string | null;
8047
+ /** The status of each search index across the design documents in the current page of results. */
8048
+ searchIndexes: SearchIndexInformation[];
8049
+ /** The total number of design documents in the database. A design document can contain multiple indexes. */
8050
+ totalRows: number;
8051
+ /** The view index status for each design document in the current page of results. */
8052
+ viewIndexes: ViewIndexInformation[];
8053
+ static serialize(obj: any): IndexInfoResult.Transport;
8054
+ static deserialize(obj: any): IndexInfoResult;
8055
+ }
8056
+ export namespace IndexInfoResult {
8057
+ interface Transport {
8058
+ bookmark: string;
8059
+ search_indexes: SearchIndexInformation[];
8060
+ total_rows: number;
8061
+ view_indexes: ViewIndexInformation[];
8062
+ }
8063
+ }
7950
8064
  /**
7951
8065
  * Schema for information about an index.
7952
8066
  */
@@ -8246,8 +8360,10 @@ declare namespace CloudantV1 {
8246
8360
  export class ReplicationDatabaseAuth {
8247
8361
  /** Schema for basic authentication of replication source or target database. */
8248
8362
  basic?: ReplicationDatabaseAuthBasic;
8249
- /** Schema for an IAM API key for replication database authentication. */
8363
+ /** Deprecated: use the `ibm` property instead to configure IAM for replication database authentication. */
8250
8364
  iam?: ReplicationDatabaseAuthIam;
8365
+ /** IBM IAM replication auth for CouchDB or Cloudant. */
8366
+ ibm?: ReplicationDatabaseAuthIBM;
8251
8367
  static serialize(obj: any): ReplicationDatabaseAuth.Transport;
8252
8368
  static deserialize(obj: any): ReplicationDatabaseAuth;
8253
8369
  }
@@ -8255,6 +8371,7 @@ declare namespace CloudantV1 {
8255
8371
  interface Transport {
8256
8372
  basic?: ReplicationDatabaseAuthBasic.Transport;
8257
8373
  iam?: ReplicationDatabaseAuthIam.Transport;
8374
+ ibm?: ReplicationDatabaseAuthIBM.Transport;
8258
8375
  }
8259
8376
  }
8260
8377
  /**
@@ -8275,7 +8392,35 @@ declare namespace CloudantV1 {
8275
8392
  }
8276
8393
  }
8277
8394
  /**
8278
- * Schema for an IAM API key for replication database authentication.
8395
+ * IBM IAM replication auth for CouchDB or Cloudant.
8396
+ */
8397
+ export class ReplicationDatabaseAuthIBM {
8398
+ /** IAM API key for replication database authentication. */
8399
+ iam: ReplicationDatabaseAuthIBMIam;
8400
+ static serialize(obj: any): ReplicationDatabaseAuthIBM.Transport;
8401
+ static deserialize(obj: any): ReplicationDatabaseAuthIBM;
8402
+ }
8403
+ export namespace ReplicationDatabaseAuthIBM {
8404
+ interface Transport {
8405
+ iam: ReplicationDatabaseAuthIBMIam.Transport;
8406
+ }
8407
+ }
8408
+ /**
8409
+ * IAM API key for replication database authentication.
8410
+ */
8411
+ export class ReplicationDatabaseAuthIBMIam {
8412
+ /** IAM API key. */
8413
+ apiKey: string;
8414
+ static serialize(obj: any): ReplicationDatabaseAuthIBMIam.Transport;
8415
+ static deserialize(obj: any): ReplicationDatabaseAuthIBMIam;
8416
+ }
8417
+ export namespace ReplicationDatabaseAuthIBMIam {
8418
+ interface Transport {
8419
+ api_key: string;
8420
+ }
8421
+ }
8422
+ /**
8423
+ * Deprecated: use the `ibm` property instead to configure IAM for replication database authentication.
8279
8424
  */
8280
8425
  export class ReplicationDatabaseAuthIam {
8281
8426
  /** IAM API key. */
@@ -8343,6 +8488,11 @@ declare namespace CloudantV1 {
8343
8488
  owner?: string;
8344
8489
  /** Schema for a map of string key value pairs, such as query parameters. */
8345
8490
  queryParams?: JsonObject;
8491
+ /** Specify whether to compress HTTP request bodies during replication. Set to `gzip` to compress request bodies
8492
+ * or `none` to disable compression. Only use `gzip` if the remote server accepts compressed requests. If unset,
8493
+ * the default is determined by the server administrator.
8494
+ */
8495
+ requestCompression?: ReplicationDocument.Constants.RequestCompression | string;
8346
8496
  /** Number of times a replication request is retried. The requests are retried with a doubling exponential
8347
8497
  * backoff starting at 0.25 seconds, with a cap at 5 minutes.
8348
8498
  */
@@ -8436,6 +8586,13 @@ declare namespace CloudantV1 {
8436
8586
  static deserialize(obj: any): ReplicationDocument;
8437
8587
  }
8438
8588
  export namespace ReplicationDocument {
8589
+ namespace Constants {
8590
+ /** Specify whether to compress HTTP request bodies during replication. Set to `gzip` to compress request bodies or `none` to disable compression. Only use `gzip` if the remote server accepts compressed requests. If unset, the default is determined by the server administrator. */
8591
+ enum RequestCompression {
8592
+ NONE = "none",
8593
+ GZIP = "gzip"
8594
+ }
8595
+ }
8439
8596
  interface Transport {
8440
8597
  _attachments?: {
8441
8598
  [key: string]: Attachment.Transport;
@@ -8459,6 +8616,7 @@ declare namespace CloudantV1 {
8459
8616
  http_connections?: number;
8460
8617
  owner?: string;
8461
8618
  query_params?: JsonObject;
8619
+ request_compression?: string;
8462
8620
  retries_per_request?: number;
8463
8621
  selector?: JsonObject;
8464
8622
  since_seq?: string;
@@ -8827,6 +8985,10 @@ declare namespace CloudantV1 {
8827
8985
  pendingSeq: number;
8828
8986
  /** Unique signature of the search index. */
8829
8987
  signature: string;
8988
+ /** Schema for information about pending updates for an index, calculated across all available copies of all
8989
+ * shards.
8990
+ */
8991
+ updatesPending?: UpdatesPending;
8830
8992
  static serialize(obj: any): SearchIndexInfo.Transport;
8831
8993
  static deserialize(obj: any): SearchIndexInfo;
8832
8994
  }
@@ -8838,6 +9000,42 @@ declare namespace CloudantV1 {
8838
9000
  doc_del_count: number;
8839
9001
  pending_seq: number;
8840
9002
  signature: string;
9003
+ updates_pending?: UpdatesPending.Transport;
9004
+ }
9005
+ }
9006
+ /**
9007
+ * Schema for search index status for a named index within a design document.
9008
+ */
9009
+ export class SearchIndexInformation {
9010
+ /** ok. */
9011
+ ok: boolean;
9012
+ /** The cause of the error (if available). */
9013
+ causedBy?: string;
9014
+ /** The name of the error. */
9015
+ error?: string;
9016
+ /** The reason the error occurred (if available). */
9017
+ reason?: string;
9018
+ /** An internal error reference (if available). */
9019
+ ref?: number;
9020
+ /** Schema for a design document ID including a `_design/` prefix. */
9021
+ ddoc: string;
9022
+ /** Schema for metadata information about a search index. */
9023
+ info?: SearchIndexInfo;
9024
+ /** The name of the search index. */
9025
+ name: string;
9026
+ static serialize(obj: any): SearchIndexInformation.Transport;
9027
+ static deserialize(obj: any): SearchIndexInformation;
9028
+ }
9029
+ export namespace SearchIndexInformation {
9030
+ interface Transport {
9031
+ ok: boolean;
9032
+ caused_by?: string;
9033
+ error?: string;
9034
+ reason?: string;
9035
+ ref?: number;
9036
+ ddoc: string;
9037
+ info?: SearchIndexInfo.Transport;
9038
+ name: string;
8841
9039
  }
8842
9040
  }
8843
9041
  /**
@@ -9203,22 +9401,37 @@ declare namespace CloudantV1 {
9203
9401
  }
9204
9402
  }
9205
9403
  /**
9206
- * Schema for an ability to tell if view is up-to-date without querying it.
9404
+ * Schema for information about pending updates for an index, calculated across all available copies of all shards.
9207
9405
  */
9208
9406
  export class UpdatesPending {
9209
- /** Sum of shard copies with the least amount of work to do. */
9210
- minimum: number;
9211
- /** Sum of unique shards. This value is zero when at least one copy of every shard range is up-to-date and the
9212
- * view is able to answer a query without index building delays.
9407
+ /** The number of shard copies that reported an answer. Copies that are unreachable or in maintenance mode are
9408
+ * not included. Compare with the `copies_expected` value.
9409
+ */
9410
+ copies?: number;
9411
+ /** The expected number of shard copy responses. If `copies` is less than this value, the results might be
9412
+ * partial and `maximum` might not represent the true backlog.
9413
+ */
9414
+ copiesExpected?: number;
9415
+ /** The backlog of the least up-to-date copy of each shard range. A value of `0` means the index is fully built
9416
+ * on every copy.
9213
9417
  */
9418
+ maximum?: number;
9419
+ /** The backlog of the most up-to-date copy of each shard range. A value of `0` means that at least one complete
9420
+ * copy exists for every shard range.
9421
+ */
9422
+ minimum: number;
9423
+ /** The backlog of the preferred shard copies, which are the copies that queries are routed to by default. */
9214
9424
  preferred: number;
9215
- /** Sum of all shard copies. */
9425
+ /** The total backlog across all shard copies. */
9216
9426
  total: number;
9217
9427
  static serialize(obj: any): UpdatesPending.Transport;
9218
9428
  static deserialize(obj: any): UpdatesPending;
9219
9429
  }
9220
9430
  export namespace UpdatesPending {
9221
9431
  interface Transport {
9432
+ copies?: number;
9433
+ copies_expected?: number;
9434
+ maximum?: number;
9222
9435
  minimum: number;
9223
9436
  preferred: number;
9224
9437
  total: number;
@@ -9271,6 +9484,41 @@ declare namespace CloudantV1 {
9271
9484
  uuids: string[];
9272
9485
  }
9273
9486
  }
9487
+ /**
9488
+ * Schema for view index status for a design document.
9489
+ */
9490
+ export class ViewIndexInformation {
9491
+ /** ok. */
9492
+ ok: boolean;
9493
+ /** The cause of the error (if available). */
9494
+ causedBy?: string;
9495
+ /** The name of the error. */
9496
+ error?: string;
9497
+ /** The reason the error occurred (if available). */
9498
+ reason?: string;
9499
+ /** An internal error reference (if available). */
9500
+ ref?: number;
9501
+ /** Schema for a design document ID including a `_design/` prefix. */
9502
+ ddoc: string;
9503
+ /** View index information. */
9504
+ info?: DesignDocumentViewIndex;
9505
+ /** The map-reduce view names in the design document. */
9506
+ views: string[];
9507
+ static serialize(obj: any): ViewIndexInformation.Transport;
9508
+ static deserialize(obj: any): ViewIndexInformation;
9509
+ }
9510
+ export namespace ViewIndexInformation {
9511
+ interface Transport {
9512
+ ok: boolean;
9513
+ caused_by?: string;
9514
+ error?: string;
9515
+ reason?: string;
9516
+ ref?: number;
9517
+ ddoc: string;
9518
+ info?: DesignDocumentViewIndex.Transport;
9519
+ views: string[];
9520
+ }
9521
+ }
9274
9522
  /**
9275
9523
  * Schema for the results of a queries view operation.
9276
9524
  */