@wandelbots/nova-api 26.9.0-dev.90 → 26.9.0-dev.91

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/dist/v2/index.js CHANGED
@@ -7271,6 +7271,33 @@ const StoreObjectApiAxiosParamCreator = function(configuration) {
7271
7271
  options: localVarRequestOptions
7272
7272
  };
7273
7273
  },
7274
+ getStorageUsage: async (cell, options = {}) => {
7275
+ assertParamExists("getStorageUsage", "cell", cell);
7276
+ const localVarPath = `/cells/{cell}/store/usage`.replace("{cell}", encodeURIComponent(String(cell)));
7277
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7278
+ let baseOptions;
7279
+ if (configuration) baseOptions = configuration.baseOptions;
7280
+ const localVarRequestOptions = {
7281
+ method: "GET",
7282
+ ...baseOptions,
7283
+ ...options
7284
+ };
7285
+ const localVarHeaderParameter = {};
7286
+ const localVarQueryParameter = {};
7287
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
7288
+ localVarHeaderParameter["Accept"] = "application/json";
7289
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7290
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7291
+ localVarRequestOptions.headers = {
7292
+ ...localVarHeaderParameter,
7293
+ ...headersFromBaseOptions,
7294
+ ...options.headers
7295
+ };
7296
+ return {
7297
+ url: toPathString(localVarUrlObj),
7298
+ options: localVarRequestOptions
7299
+ };
7300
+ },
7274
7301
  listAllObjectKeys: async (cell, options = {}) => {
7275
7302
  assertParamExists("listAllObjectKeys", "cell", cell);
7276
7303
  const localVarPath = `/cells/{cell}/store/objects`.replace("{cell}", encodeURIComponent(String(cell)));
@@ -7298,6 +7325,36 @@ const StoreObjectApiAxiosParamCreator = function(configuration) {
7298
7325
  options: localVarRequestOptions
7299
7326
  };
7300
7327
  },
7328
+ listObjectKeys: async (cell, prefix, pageSize, continuationToken, options = {}) => {
7329
+ assertParamExists("listObjectKeys", "cell", cell);
7330
+ const localVarPath = `/cells/{cell}/store/objects-keys`.replace("{cell}", encodeURIComponent(String(cell)));
7331
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7332
+ let baseOptions;
7333
+ if (configuration) baseOptions = configuration.baseOptions;
7334
+ const localVarRequestOptions = {
7335
+ method: "GET",
7336
+ ...baseOptions,
7337
+ ...options
7338
+ };
7339
+ const localVarHeaderParameter = {};
7340
+ const localVarQueryParameter = {};
7341
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
7342
+ if (prefix !== void 0) localVarQueryParameter["prefix"] = prefix;
7343
+ if (pageSize !== void 0) localVarQueryParameter["page_size"] = pageSize;
7344
+ if (continuationToken !== void 0) localVarQueryParameter["continuation_token"] = continuationToken;
7345
+ localVarHeaderParameter["Accept"] = "application/json";
7346
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7347
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7348
+ localVarRequestOptions.headers = {
7349
+ ...localVarHeaderParameter,
7350
+ ...headersFromBaseOptions,
7351
+ ...options.headers
7352
+ };
7353
+ return {
7354
+ url: toPathString(localVarUrlObj),
7355
+ options: localVarRequestOptions
7356
+ };
7357
+ },
7301
7358
  storeObject: async (cell, key, xMetadata, anyValue, options = {}) => {
7302
7359
  assertParamExists("storeObject", "cell", cell);
7303
7360
  assertParamExists("storeObject", "key", key);
@@ -7363,12 +7420,24 @@ const StoreObjectApiFp = function(configuration) {
7363
7420
  const localVarOperationServerBasePath = operationServerMap["StoreObjectApi.getObjectMetadata"]?.[localVarOperationServerIndex]?.url;
7364
7421
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7365
7422
  },
7423
+ async getStorageUsage(cell, options) {
7424
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getStorageUsage(cell, options);
7425
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7426
+ const localVarOperationServerBasePath = operationServerMap["StoreObjectApi.getStorageUsage"]?.[localVarOperationServerIndex]?.url;
7427
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7428
+ },
7366
7429
  async listAllObjectKeys(cell, options) {
7367
7430
  const localVarAxiosArgs = await localVarAxiosParamCreator.listAllObjectKeys(cell, options);
7368
7431
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7369
7432
  const localVarOperationServerBasePath = operationServerMap["StoreObjectApi.listAllObjectKeys"]?.[localVarOperationServerIndex]?.url;
7370
7433
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7371
7434
  },
7435
+ async listObjectKeys(cell, prefix, pageSize, continuationToken, options) {
7436
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listObjectKeys(cell, prefix, pageSize, continuationToken, options);
7437
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7438
+ const localVarOperationServerBasePath = operationServerMap["StoreObjectApi.listObjectKeys"]?.[localVarOperationServerIndex]?.url;
7439
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7440
+ },
7372
7441
  async storeObject(cell, key, xMetadata, anyValue, options) {
7373
7442
  const localVarAxiosArgs = await localVarAxiosParamCreator.storeObject(cell, key, xMetadata, anyValue, options);
7374
7443
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
@@ -7395,9 +7464,15 @@ const StoreObjectApiFactory = function(configuration, basePath, axios) {
7395
7464
  getObjectMetadata(cell, key, options) {
7396
7465
  return localVarFp.getObjectMetadata(cell, key, options).then((request) => request(axios, basePath));
7397
7466
  },
7467
+ getStorageUsage(cell, options) {
7468
+ return localVarFp.getStorageUsage(cell, options).then((request) => request(axios, basePath));
7469
+ },
7398
7470
  listAllObjectKeys(cell, options) {
7399
7471
  return localVarFp.listAllObjectKeys(cell, options).then((request) => request(axios, basePath));
7400
7472
  },
7473
+ listObjectKeys(cell, prefix, pageSize, continuationToken, options) {
7474
+ return localVarFp.listObjectKeys(cell, prefix, pageSize, continuationToken, options).then((request) => request(axios, basePath));
7475
+ },
7401
7476
  storeObject(cell, key, xMetadata, anyValue, options) {
7402
7477
  return localVarFp.storeObject(cell, key, xMetadata, anyValue, options).then((request) => request(axios, basePath));
7403
7478
  }
@@ -7451,7 +7526,17 @@ var StoreObjectApi = class extends BaseAPI {
7451
7526
  return StoreObjectApiFp(this.configuration).getObjectMetadata(cell, key, options).then((request) => request(this.axios, this.basePath));
7452
7527
  }
7453
7528
  /**
7454
- * **Required permissions:** `can_read_objects` - Read stored objects ___ List the keys for all objects.
7529
+ * **Required permissions:** `can_read_objects` - Read stored objects ___ Returns the cell\'s estimated SeaweedFS volume content and the capacity of the backing filesystem. The cell volume estimate is omitted if it cannot be determined. The filesystem may be shared with other cells and services, so its capacity is not a cell quota.
7530
+ * @summary Get storage usage
7531
+ * @param {string} cell Unique identifier addressing a cell in all API calls.
7532
+ * @param {*} [options] Override http request option.
7533
+ * @throws {RequiredError}
7534
+ */
7535
+ getStorageUsage(cell, options) {
7536
+ return StoreObjectApiFp(this.configuration).getStorageUsage(cell, options).then((request) => request(this.axios, this.basePath));
7537
+ }
7538
+ /**
7539
+ * **Required permissions:** `can_read_objects` - Read stored objects ___ List the keys for all objects. For filtered or paginated results, use [listObjectKeys](#/operations/listObjectKeys).
7455
7540
  * @summary List all Object Keys
7456
7541
  * @param {string} cell Unique identifier addressing a cell in all API calls.
7457
7542
  * @param {*} [options] Override http request option.
@@ -7461,6 +7546,19 @@ var StoreObjectApi = class extends BaseAPI {
7461
7546
  return StoreObjectApiFp(this.configuration).listAllObjectKeys(cell, options).then((request) => request(this.axios, this.basePath));
7462
7547
  }
7463
7548
  /**
7549
+ * **Required permissions:** `can_read_objects` - Read stored objects ___ Returns a page of stored object keys, optionally filtered by prefix. Pass the returned continuation token to retrieve the next page. Omission of the token means there are no more keys. The listing is not a snapshot; concurrent writes or deletions may affect subsequent pages. Tokens are opaque and must be reused unchanged with the same cell and prefix. Invalid tokens may not be detected.
7550
+ * @summary List Object Keys
7551
+ * @param {string} cell Unique identifier addressing a cell in all API calls.
7552
+ * @param {string} [prefix] Return only keys beginning with this prefix.
7553
+ * @param {number} [pageSize] Maximum number of keys to return. Defaults to 1000.
7554
+ * @param {string} [continuationToken] Token returned by the previous page. Reuse the same cell and prefix.
7555
+ * @param {*} [options] Override http request option.
7556
+ * @throws {RequiredError}
7557
+ */
7558
+ listObjectKeys(cell, prefix, pageSize, continuationToken, options) {
7559
+ return StoreObjectApiFp(this.configuration).listObjectKeys(cell, prefix, pageSize, continuationToken, options).then((request) => request(this.axios, this.basePath));
7560
+ }
7561
+ /**
7464
7562
  * **Required permissions:** `can_write_objects` - Write stored objects ___ Store any data as an object. Using a key which already contains an object will override the previously stored object. Use [getObjectMetadata](#/operations/getObjectMetadata) to verify that the key does not contain objects. #### Optional Specify metadata as a dictionary with names and values.
7465
7563
  * @summary Store Object
7466
7564
  * @param {string} cell Unique identifier addressing a cell in all API calls.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wandelbots/nova-api",
3
- "version": "26.9.0-dev.90",
3
+ "version": "26.9.0-dev.91",
4
4
  "description": "API Client to interact with Wandelbots Public API.",
5
5
  "type": "module",
6
6
  "files": [