@storagehub/api-augment 0.2.10 → 0.2.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storagehub/api-augment",
3
- "version": "0.2.10",
3
+ "version": "0.2.11",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "author": "",
@@ -34,7 +34,7 @@
34
34
  "@polkadot/types-codec": "^16.4.7",
35
35
  "tsx": "4.20.5",
36
36
  "typescript": "^5.9.2",
37
- "@storagehub/types-bundle": "0.2.7"
37
+ "@storagehub/types-bundle": "0.2.8"
38
38
  },
39
39
  "scripts": {
40
40
  "scrape": "pnpm tsx scripts/scrapeMetadata.ts",
@@ -290,6 +290,15 @@ declare module "@polkadot/api-base/types/errors" {
290
290
  * Failed to convert to primitive type.
291
291
  **/
292
292
  FailedTypeConversion: AugmentedError<ApiType>;
293
+ /**
294
+ * File has an active storage request and as such is not eligible for deletion.
295
+ * The user should use the `revoke_storage_request` extrinsic to revoke it first.
296
+ **/
297
+ FileHasActiveStorageRequest: AugmentedError<ApiType>;
298
+ /**
299
+ * File has an `IncompleteStorageRequest` associated with it and as such is not eligible for a new storage request
300
+ **/
301
+ FileHasIncompleteStorageRequest: AugmentedError<ApiType>;
293
302
  /**
294
303
  * File key already pending deletion.
295
304
  **/
@@ -4913,7 +4913,9 @@ export default {
4913
4913
  "InvalidProviderID",
4914
4914
  "InvalidSignedOperation",
4915
4915
  "FileKeyMismatch",
4916
- "IncompleteStorageRequestNotFound"
4916
+ "IncompleteStorageRequestNotFound",
4917
+ "FileHasActiveStorageRequest",
4918
+ "FileHasIncompleteStorageRequest"
4917
4919
  ]
4918
4920
  },
4919
4921
  /**
@@ -6268,6 +6268,8 @@ declare module "@polkadot/types/lookup" {
6268
6268
  readonly isInvalidSignedOperation: boolean;
6269
6269
  readonly isFileKeyMismatch: boolean;
6270
6270
  readonly isIncompleteStorageRequestNotFound: boolean;
6271
+ readonly isFileHasActiveStorageRequest: boolean;
6272
+ readonly isFileHasIncompleteStorageRequest: boolean;
6271
6273
  readonly type:
6272
6274
  | "StorageRequestAlreadyRegistered"
6273
6275
  | "StorageRequestNotFound"
@@ -6362,7 +6364,9 @@ declare module "@polkadot/types/lookup" {
6362
6364
  | "InvalidProviderID"
6363
6365
  | "InvalidSignedOperation"
6364
6366
  | "FileKeyMismatch"
6365
- | "IncompleteStorageRequestNotFound";
6367
+ | "IncompleteStorageRequestNotFound"
6368
+ | "FileHasActiveStorageRequest"
6369
+ | "FileHasIncompleteStorageRequest";
6366
6370
  }
6367
6371
 
6368
6372
  /** @name PalletProofsDealerProofSubmissionRecord (498) */
@@ -310,6 +310,15 @@ declare module "@polkadot/api-base/types/errors" {
310
310
  * Failed to convert to primitive type.
311
311
  **/
312
312
  FailedTypeConversion: AugmentedError<ApiType>;
313
+ /**
314
+ * File has an active storage request and as such is not eligible for deletion.
315
+ * The user should use the `revoke_storage_request` extrinsic to revoke it first.
316
+ **/
317
+ FileHasActiveStorageRequest: AugmentedError<ApiType>;
318
+ /**
319
+ * File has an `IncompleteStorageRequest` associated with it and as such is not eligible for a new storage request
320
+ **/
321
+ FileHasIncompleteStorageRequest: AugmentedError<ApiType>;
313
322
  /**
314
323
  * File key already pending deletion.
315
324
  **/
@@ -3510,7 +3510,9 @@ export default {
3510
3510
  "InvalidProviderID",
3511
3511
  "InvalidSignedOperation",
3512
3512
  "FileKeyMismatch",
3513
- "IncompleteStorageRequestNotFound"
3513
+ "IncompleteStorageRequestNotFound",
3514
+ "FileHasActiveStorageRequest",
3515
+ "FileHasIncompleteStorageRequest"
3514
3516
  ]
3515
3517
  },
3516
3518
  /**
@@ -4190,6 +4190,8 @@ declare module "@polkadot/types/lookup" {
4190
4190
  readonly isInvalidSignedOperation: boolean;
4191
4191
  readonly isFileKeyMismatch: boolean;
4192
4192
  readonly isIncompleteStorageRequestNotFound: boolean;
4193
+ readonly isFileHasActiveStorageRequest: boolean;
4194
+ readonly isFileHasIncompleteStorageRequest: boolean;
4193
4195
  readonly type:
4194
4196
  | "StorageRequestAlreadyRegistered"
4195
4197
  | "StorageRequestNotFound"
@@ -4284,7 +4286,9 @@ declare module "@polkadot/types/lookup" {
4284
4286
  | "InvalidProviderID"
4285
4287
  | "InvalidSignedOperation"
4286
4288
  | "FileKeyMismatch"
4287
- | "IncompleteStorageRequestNotFound";
4289
+ | "IncompleteStorageRequestNotFound"
4290
+ | "FileHasActiveStorageRequest"
4291
+ | "FileHasIncompleteStorageRequest";
4288
4292
  }
4289
4293
 
4290
4294
  /** @name PalletProofsDealerProofSubmissionRecord (361) */