kb-cloud-client-typescript 2.4.0-alpha.98 → 2.4.0-alpha.99

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.
Files changed (67) hide show
  1. package/dist/adminapi/apis/account-api.d.ts +145 -2
  2. package/dist/adminapi/apis/account-api.d.ts.map +1 -1
  3. package/dist/adminapi/apis/account-api.js +163 -5
  4. package/dist/adminapi/apis/account-api.js.map +1 -1
  5. package/dist/adminapi/apis/mongodb-api.d.ts +145 -2
  6. package/dist/adminapi/apis/mongodb-api.d.ts.map +1 -1
  7. package/dist/adminapi/apis/mongodb-api.js +163 -5
  8. package/dist/adminapi/apis/mongodb-api.js.map +1 -1
  9. package/dist/adminapi/apis/shared-api.d.ts +145 -2
  10. package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
  11. package/dist/adminapi/apis/shared-api.js +163 -5
  12. package/dist/adminapi/apis/shared-api.js.map +1 -1
  13. package/dist/adminapi/models/alert-object.d.ts +13 -0
  14. package/dist/adminapi/models/alert-object.d.ts.map +1 -1
  15. package/dist/adminapi/models/index.d.ts +1 -0
  16. package/dist/adminapi/models/index.d.ts.map +1 -1
  17. package/dist/adminapi/models/index.js +1 -0
  18. package/dist/adminapi/models/index.js.map +1 -1
  19. package/dist/adminapi/models/mongo-rbaccapabilities.d.ts +6 -0
  20. package/dist/adminapi/models/mongo-rbaccapabilities.d.ts.map +1 -1
  21. package/dist/adminapi/models/object-type-enum.d.ts +23 -0
  22. package/dist/adminapi/models/object-type-enum.d.ts.map +1 -0
  23. package/dist/adminapi/models/object-type-enum.js +27 -0
  24. package/dist/adminapi/models/object-type-enum.js.map +1 -0
  25. package/dist/openapi/apis/account-api.d.ts +145 -2
  26. package/dist/openapi/apis/account-api.d.ts.map +1 -1
  27. package/dist/openapi/apis/account-api.js +163 -5
  28. package/dist/openapi/apis/account-api.js.map +1 -1
  29. package/dist/openapi/apis/mongodb-api.d.ts +145 -2
  30. package/dist/openapi/apis/mongodb-api.d.ts.map +1 -1
  31. package/dist/openapi/apis/mongodb-api.js +163 -5
  32. package/dist/openapi/apis/mongodb-api.js.map +1 -1
  33. package/dist/openapi/apis/shared-api.d.ts +145 -2
  34. package/dist/openapi/apis/shared-api.d.ts.map +1 -1
  35. package/dist/openapi/apis/shared-api.js +163 -5
  36. package/dist/openapi/apis/shared-api.js.map +1 -1
  37. package/dist/openapi/models/alert-object.d.ts +13 -0
  38. package/dist/openapi/models/alert-object.d.ts.map +1 -1
  39. package/dist/openapi/models/index.d.ts +1 -0
  40. package/dist/openapi/models/index.d.ts.map +1 -1
  41. package/dist/openapi/models/index.js +1 -0
  42. package/dist/openapi/models/index.js.map +1 -1
  43. package/dist/openapi/models/mongo-rbaccapabilities.d.ts +6 -0
  44. package/dist/openapi/models/mongo-rbaccapabilities.d.ts.map +1 -1
  45. package/dist/openapi/models/object-type-enum.d.ts +23 -0
  46. package/dist/openapi/models/object-type-enum.d.ts.map +1 -0
  47. package/dist/openapi/models/object-type-enum.js +27 -0
  48. package/dist/openapi/models/object-type-enum.js.map +1 -0
  49. package/package.json +1 -1
  50. package/src/adminapi/.openapi-generator/FILES +1 -0
  51. package/src/adminapi/apis/account-api.ts +256 -5
  52. package/src/adminapi/apis/mongodb-api.ts +256 -5
  53. package/src/adminapi/apis/shared-api.ts +256 -5
  54. package/src/adminapi/models/alert-object.ts +15 -0
  55. package/src/adminapi/models/index.ts +1 -0
  56. package/src/adminapi/models/mongo-rbaccapabilities.ts +6 -0
  57. package/src/adminapi/models/object-type-enum.ts +32 -0
  58. package/src/adminapi.yaml +140 -36
  59. package/src/openapi/.openapi-generator/FILES +1 -0
  60. package/src/openapi/apis/account-api.ts +256 -5
  61. package/src/openapi/apis/mongodb-api.ts +256 -5
  62. package/src/openapi/apis/shared-api.ts +256 -5
  63. package/src/openapi/models/alert-object.ts +15 -0
  64. package/src/openapi/models/index.ts +1 -0
  65. package/src/openapi/models/mongo-rbaccapabilities.ts +6 -0
  66. package/src/openapi/models/object-type-enum.ts +32 -0
  67. package/src/openapi.yaml +140 -36
@@ -2350,6 +2350,86 @@ const AccountApiAxiosParamCreator = function (configuration) {
2350
2350
  options: localVarRequestOptions,
2351
2351
  };
2352
2352
  },
2353
+ /**
2354
+ * Lists existing collections, views and time-series collections in a database using the cluster management connection. Returns metadata, not document contents.
2355
+ * @summary List MongoDB cluster database objects
2356
+ * @param {string} orgName
2357
+ * @param {string} clusterName
2358
+ * @param {string} database
2359
+ * @param {*} [options] Override http request option.
2360
+ * @throws {RequiredError}
2361
+ */
2362
+ mongoListClusterCollections: async (orgName, clusterName, database, options = {}) => {
2363
+ // verify required parameter 'orgName' is not null or undefined
2364
+ (0, common_1.assertParamExists)('mongoListClusterCollections', 'orgName', orgName);
2365
+ // verify required parameter 'clusterName' is not null or undefined
2366
+ (0, common_1.assertParamExists)('mongoListClusterCollections', 'clusterName', clusterName);
2367
+ // verify required parameter 'database' is not null or undefined
2368
+ (0, common_1.assertParamExists)('mongoListClusterCollections', 'database', database);
2369
+ const localVarPath = `/admin/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/databases/{database}/collections`
2370
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
2371
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
2372
+ .replace(`{${"database"}}`, encodeURIComponent(String(database)));
2373
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2374
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2375
+ let baseOptions;
2376
+ if (configuration) {
2377
+ baseOptions = configuration.baseOptions;
2378
+ }
2379
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2380
+ const localVarHeaderParameter = {};
2381
+ const localVarQueryParameter = {};
2382
+ // authentication BearerToken required
2383
+ // http bearer authentication required
2384
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2385
+ // authentication DigestAuth required
2386
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
2387
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2388
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2389
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2390
+ return {
2391
+ url: (0, common_1.toPathString)(localVarUrlObj),
2392
+ options: localVarRequestOptions,
2393
+ };
2394
+ },
2395
+ /**
2396
+ * Lists existing database names using the cluster management connection. Does not require a personal Workbench datasource.
2397
+ * @summary List MongoDB cluster databases
2398
+ * @param {string} orgName
2399
+ * @param {string} clusterName
2400
+ * @param {*} [options] Override http request option.
2401
+ * @throws {RequiredError}
2402
+ */
2403
+ mongoListClusterDatabases: async (orgName, clusterName, options = {}) => {
2404
+ // verify required parameter 'orgName' is not null or undefined
2405
+ (0, common_1.assertParamExists)('mongoListClusterDatabases', 'orgName', orgName);
2406
+ // verify required parameter 'clusterName' is not null or undefined
2407
+ (0, common_1.assertParamExists)('mongoListClusterDatabases', 'clusterName', clusterName);
2408
+ const localVarPath = `/admin/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/databases`
2409
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
2410
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
2411
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2412
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2413
+ let baseOptions;
2414
+ if (configuration) {
2415
+ baseOptions = configuration.baseOptions;
2416
+ }
2417
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2418
+ const localVarHeaderParameter = {};
2419
+ const localVarQueryParameter = {};
2420
+ // authentication BearerToken required
2421
+ // http bearer authentication required
2422
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2423
+ // authentication DigestAuth required
2424
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
2425
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2426
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2427
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2428
+ return {
2429
+ url: (0, common_1.toPathString)(localVarUrlObj),
2430
+ options: localVarRequestOptions,
2431
+ };
2432
+ },
2353
2433
  /**
2354
2434
  *
2355
2435
  * @summary ListRBACRoles
@@ -2398,10 +2478,11 @@ const AccountApiAxiosParamCreator = function (configuration) {
2398
2478
  * @param {string} orgName
2399
2479
  * @param {string} clusterName
2400
2480
  * @param {string} [database]
2481
+ * @param {boolean} [allDatabases] List accounts from all authentication databases. Overrides database; returns role memberships without effective privileges. Use the user detail endpoint for privileges. Requires viewUser and viewRole on the relevant databases.
2401
2482
  * @param {*} [options] Override http request option.
2402
2483
  * @throws {RequiredError}
2403
2484
  */
2404
- mongoListRBACUsers: async (orgName, clusterName, database, options = {}) => {
2485
+ mongoListRBACUsers: async (orgName, clusterName, database, allDatabases, options = {}) => {
2405
2486
  // verify required parameter 'orgName' is not null or undefined
2406
2487
  (0, common_1.assertParamExists)('mongoListRBACUsers', 'orgName', orgName);
2407
2488
  // verify required parameter 'clusterName' is not null or undefined
@@ -2426,6 +2507,9 @@ const AccountApiAxiosParamCreator = function (configuration) {
2426
2507
  if (database !== undefined) {
2427
2508
  localVarQueryParameter['database'] = database;
2428
2509
  }
2510
+ if (allDatabases !== undefined) {
2511
+ localVarQueryParameter['allDatabases'] = allDatabases;
2512
+ }
2429
2513
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2430
2514
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2431
2515
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -4184,6 +4268,37 @@ const AccountApiFp = function (configuration) {
4184
4268
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.mongoGetRBACUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4185
4269
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4186
4270
  },
4271
+ /**
4272
+ * Lists existing collections, views and time-series collections in a database using the cluster management connection. Returns metadata, not document contents.
4273
+ * @summary List MongoDB cluster database objects
4274
+ * @param {string} orgName
4275
+ * @param {string} clusterName
4276
+ * @param {string} database
4277
+ * @param {*} [options] Override http request option.
4278
+ * @throws {RequiredError}
4279
+ */
4280
+ async mongoListClusterCollections(orgName, clusterName, database, options) {
4281
+ var _a, _b, _c;
4282
+ const localVarAxiosArgs = await localVarAxiosParamCreator.mongoListClusterCollections(orgName, clusterName, database, options);
4283
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4284
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.mongoListClusterCollections']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4285
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4286
+ },
4287
+ /**
4288
+ * Lists existing database names using the cluster management connection. Does not require a personal Workbench datasource.
4289
+ * @summary List MongoDB cluster databases
4290
+ * @param {string} orgName
4291
+ * @param {string} clusterName
4292
+ * @param {*} [options] Override http request option.
4293
+ * @throws {RequiredError}
4294
+ */
4295
+ async mongoListClusterDatabases(orgName, clusterName, options) {
4296
+ var _a, _b, _c;
4297
+ const localVarAxiosArgs = await localVarAxiosParamCreator.mongoListClusterDatabases(orgName, clusterName, options);
4298
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4299
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.mongoListClusterDatabases']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4300
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4301
+ },
4187
4302
  /**
4188
4303
  *
4189
4304
  * @summary ListRBACRoles
@@ -4206,12 +4321,13 @@ const AccountApiFp = function (configuration) {
4206
4321
  * @param {string} orgName
4207
4322
  * @param {string} clusterName
4208
4323
  * @param {string} [database]
4324
+ * @param {boolean} [allDatabases] List accounts from all authentication databases. Overrides database; returns role memberships without effective privileges. Use the user detail endpoint for privileges. Requires viewUser and viewRole on the relevant databases.
4209
4325
  * @param {*} [options] Override http request option.
4210
4326
  * @throws {RequiredError}
4211
4327
  */
4212
- async mongoListRBACUsers(orgName, clusterName, database, options) {
4328
+ async mongoListRBACUsers(orgName, clusterName, database, allDatabases, options) {
4213
4329
  var _a, _b, _c;
4214
- const localVarAxiosArgs = await localVarAxiosParamCreator.mongoListRBACUsers(orgName, clusterName, database, options);
4330
+ const localVarAxiosArgs = await localVarAxiosParamCreator.mongoListRBACUsers(orgName, clusterName, database, allDatabases, options);
4215
4331
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4216
4332
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.mongoListRBACUsers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4217
4333
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -5045,6 +5161,26 @@ const AccountApiFactory = function (configuration, basePath, axios) {
5045
5161
  mongoGetRBACUser(requestParameters, options) {
5046
5162
  return localVarFp.mongoGetRBACUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.username, options).then((request) => request(axios, basePath));
5047
5163
  },
5164
+ /**
5165
+ * Lists existing collections, views and time-series collections in a database using the cluster management connection. Returns metadata, not document contents.
5166
+ * @summary List MongoDB cluster database objects
5167
+ * @param {AccountApiMongoListClusterCollectionsRequest} requestParameters Request parameters.
5168
+ * @param {*} [options] Override http request option.
5169
+ * @throws {RequiredError}
5170
+ */
5171
+ mongoListClusterCollections(requestParameters, options) {
5172
+ return localVarFp.mongoListClusterCollections(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, options).then((request) => request(axios, basePath));
5173
+ },
5174
+ /**
5175
+ * Lists existing database names using the cluster management connection. Does not require a personal Workbench datasource.
5176
+ * @summary List MongoDB cluster databases
5177
+ * @param {AccountApiMongoListClusterDatabasesRequest} requestParameters Request parameters.
5178
+ * @param {*} [options] Override http request option.
5179
+ * @throws {RequiredError}
5180
+ */
5181
+ mongoListClusterDatabases(requestParameters, options) {
5182
+ return localVarFp.mongoListClusterDatabases(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
5183
+ },
5048
5184
  /**
5049
5185
  *
5050
5186
  * @summary ListRBACRoles
@@ -5063,7 +5199,7 @@ const AccountApiFactory = function (configuration, basePath, axios) {
5063
5199
  * @throws {RequiredError}
5064
5200
  */
5065
5201
  mongoListRBACUsers(requestParameters, options) {
5066
- return localVarFp.mongoListRBACUsers(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, options).then((request) => request(axios, basePath));
5202
+ return localVarFp.mongoListRBACUsers(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.allDatabases, options).then((request) => request(axios, basePath));
5067
5203
  },
5068
5204
  /**
5069
5205
  *
@@ -5805,6 +5941,28 @@ class AccountApi extends base_1.BaseAPI {
5805
5941
  mongoGetRBACUser(requestParameters, options) {
5806
5942
  return (0, exports.AccountApiFp)(this.configuration).mongoGetRBACUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.username, options).then((request) => request(this.axios, this.basePath));
5807
5943
  }
5944
+ /**
5945
+ * Lists existing collections, views and time-series collections in a database using the cluster management connection. Returns metadata, not document contents.
5946
+ * @summary List MongoDB cluster database objects
5947
+ * @param {AccountApiMongoListClusterCollectionsRequest} requestParameters Request parameters.
5948
+ * @param {*} [options] Override http request option.
5949
+ * @throws {RequiredError}
5950
+ * @memberof AccountApi
5951
+ */
5952
+ mongoListClusterCollections(requestParameters, options) {
5953
+ return (0, exports.AccountApiFp)(this.configuration).mongoListClusterCollections(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, options).then((request) => request(this.axios, this.basePath));
5954
+ }
5955
+ /**
5956
+ * Lists existing database names using the cluster management connection. Does not require a personal Workbench datasource.
5957
+ * @summary List MongoDB cluster databases
5958
+ * @param {AccountApiMongoListClusterDatabasesRequest} requestParameters Request parameters.
5959
+ * @param {*} [options] Override http request option.
5960
+ * @throws {RequiredError}
5961
+ * @memberof AccountApi
5962
+ */
5963
+ mongoListClusterDatabases(requestParameters, options) {
5964
+ return (0, exports.AccountApiFp)(this.configuration).mongoListClusterDatabases(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
5965
+ }
5808
5966
  /**
5809
5967
  *
5810
5968
  * @summary ListRBACRoles
@@ -5825,7 +5983,7 @@ class AccountApi extends base_1.BaseAPI {
5825
5983
  * @memberof AccountApi
5826
5984
  */
5827
5985
  mongoListRBACUsers(requestParameters, options) {
5828
- return (0, exports.AccountApiFp)(this.configuration).mongoListRBACUsers(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, options).then((request) => request(this.axios, this.basePath));
5986
+ return (0, exports.AccountApiFp)(this.configuration).mongoListRBACUsers(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.allDatabases, options).then((request) => request(this.axios, this.basePath));
5829
5987
  }
5830
5988
  /**
5831
5989
  *