@lumeweb/pinner 0.1.13 → 0.1.14

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 (92) hide show
  1. package/dist/esm/adapters/pinata/index.d.ts +1 -1
  2. package/dist/esm/adapters/pinata/shared/index.d.ts +1 -1
  3. package/dist/esm/adapters/pinata/shared/types.d.ts +41 -1
  4. package/dist/esm/adapters/pinata/v2/adapter-interface.d.ts +4 -1
  5. package/dist/esm/adapters/pinata/v2/index.d.ts +1 -1
  6. package/dist/esm/adapters/pinata/v2/types.d.ts +58 -1
  7. package/dist/esm/api/client.d.ts +21 -0
  8. package/dist/esm/api/client.js +54 -0
  9. package/dist/esm/api/client.js.map +1 -0
  10. package/dist/esm/api/generated/content/content.msw.js +30 -37
  11. package/dist/esm/api/generated/content/content.msw.js.map +1 -1
  12. package/dist/esm/api/generated/dns/dns.msw.js +30 -44
  13. package/dist/esm/api/generated/dns/dns.msw.js.map +1 -1
  14. package/dist/esm/api/generated/files/files.msw.js +30 -33
  15. package/dist/esm/api/generated/files/files.msw.js.map +1 -1
  16. package/dist/esm/api/generated/gateway/gateway.msw.js +30 -32
  17. package/dist/esm/api/generated/gateway/gateway.msw.js.map +1 -1
  18. package/dist/esm/api/generated/internal/internal.msw.js +30 -31
  19. package/dist/esm/api/generated/internal/internal.msw.js.map +1 -1
  20. package/dist/esm/api/generated/ipns/ipns.msw.js +30 -37
  21. package/dist/esm/api/generated/ipns/ipns.msw.js.map +1 -1
  22. package/dist/esm/api/generated/pinning/pinning.msw.js +30 -35
  23. package/dist/esm/api/generated/pinning/pinning.msw.js.map +1 -1
  24. package/dist/esm/api/generated/schemas/blockMetaResponse.d.ts +29 -29
  25. package/dist/esm/api/generated/schemas/component.d.ts +29 -29
  26. package/dist/esm/api/generated/schemas/errorResponse.d.ts +29 -29
  27. package/dist/esm/api/generated/schemas/fileManagerItem.d.ts +29 -29
  28. package/dist/esm/api/generated/schemas/gatewayWebsiteResponse.d.ts +29 -29
  29. package/dist/esm/api/generated/schemas/gatewayWebsiteStatusResponse.d.ts +29 -29
  30. package/dist/esm/api/generated/schemas/getBlockMetaBatchRequest.d.ts +42 -0
  31. package/dist/esm/api/generated/schemas/iPNSKeyListResponse.d.ts +29 -29
  32. package/dist/esm/api/generated/schemas/iPNSKeyRequest.d.ts +29 -29
  33. package/dist/esm/api/generated/schemas/iPNSKeyResponse.d.ts +29 -29
  34. package/dist/esm/api/generated/schemas/iPNSPublishRequest.d.ts +29 -29
  35. package/dist/esm/api/generated/schemas/iPNSPublishResponse.d.ts +29 -29
  36. package/dist/esm/api/generated/schemas/iPNSRepublishResponse.d.ts +29 -29
  37. package/dist/esm/api/generated/schemas/iPNSResolveResponse.d.ts +29 -29
  38. package/dist/esm/api/generated/schemas/infoResponse.d.ts +29 -29
  39. package/dist/esm/api/generated/schemas/pinRequestMeta.d.ts +29 -29
  40. package/dist/esm/api/generated/schemas/pinStatusResponseInfo.d.ts +29 -29
  41. package/dist/esm/api/generated/schemas/postApiUploadBody.d.ts +42 -0
  42. package/dist/esm/api/generated/schemas/postUploadResponse.d.ts +29 -29
  43. package/dist/esm/api/generated/schemas/recordResponse.d.ts +29 -29
  44. package/dist/esm/api/generated/schemas/recordResult.d.ts +29 -29
  45. package/dist/esm/api/generated/schemas/sSLStatusInfo.d.ts +29 -29
  46. package/dist/esm/api/generated/schemas/sSLStatusUpdateRequest.d.ts +44 -0
  47. package/dist/esm/api/generated/schemas/uploadResultResponse.d.ts +29 -29
  48. package/dist/esm/api/generated/schemas/validationResponse.d.ts +29 -29
  49. package/dist/esm/api/generated/schemas/websiteConfigResponse.d.ts +29 -29
  50. package/dist/esm/api/generated/schemas/websiteRequest.d.ts +29 -29
  51. package/dist/esm/api/generated/schemas/websiteUpdateRequest.d.ts +29 -29
  52. package/dist/esm/api/generated/schemas/websiteValidateResponse.d.ts +29 -29
  53. package/dist/esm/api/generated/schemas/zoneListResponse.d.ts +29 -29
  54. package/dist/esm/api/generated/schemas/zoneResponse.d.ts +29 -29
  55. package/dist/esm/api/generated/tus/tus.msw.js +30 -34
  56. package/dist/esm/api/generated/tus/tus.msw.js.map +1 -1
  57. package/dist/esm/api/generated/websites/websites.msw.js +30 -38
  58. package/dist/esm/api/generated/websites/websites.msw.js.map +1 -1
  59. package/dist/esm/api/ipns.d.ts +47 -6
  60. package/dist/esm/api/ipns.js +46 -39
  61. package/dist/esm/api/ipns.js.map +1 -1
  62. package/dist/esm/api/websites.d.ts +57 -6
  63. package/dist/esm/api/websites.js +57 -41
  64. package/dist/esm/api/websites.js.map +1 -1
  65. package/dist/esm/auth/manager.d.ts +29 -0
  66. package/dist/esm/auth/manager.js +30 -0
  67. package/dist/esm/auth/manager.js.map +1 -0
  68. package/dist/esm/blockstore/index.d.ts +1 -1
  69. package/dist/esm/blockstore/unstorage-base.d.ts +6 -1
  70. package/dist/esm/blockstore/unstorage-base.js +9 -6
  71. package/dist/esm/blockstore/unstorage-base.js.map +1 -1
  72. package/dist/esm/index.d.ts +31 -6
  73. package/dist/esm/pin/client.js +7 -7
  74. package/dist/esm/pin/client.js.map +1 -1
  75. package/dist/esm/pinner.d.ts +22 -0
  76. package/dist/esm/pinner.js +28 -4
  77. package/dist/esm/pinner.js.map +1 -1
  78. package/dist/esm/types/pin.d.ts +42 -0
  79. package/dist/esm/upload/base-upload.js +3 -1
  80. package/dist/esm/upload/base-upload.js.map +1 -1
  81. package/dist/esm/upload/builder.d.ts +1 -1
  82. package/dist/esm/upload/car.d.ts +18 -0
  83. package/dist/esm/upload/car.js.map +1 -1
  84. package/dist/esm/upload/manager.d.ts +32 -1
  85. package/dist/esm/upload/manager.js +36 -4
  86. package/dist/esm/upload/manager.js.map +1 -1
  87. package/dist/esm/upload/normalize.js.map +1 -1
  88. package/dist/esm/upload/tus-upload.js +3 -3
  89. package/dist/esm/upload/tus-upload.js.map +1 -1
  90. package/dist/esm/upload/xhr-upload.js +1 -1
  91. package/dist/esm/upload/xhr-upload.js.map +1 -1
  92. package/package.json +17 -17
@@ -1,37 +1,37 @@
1
1
  //#region src/api/generated/schemas/websiteConfigResponse.d.ts
2
2
  /**
3
- * Generated by orval v8.10.0 🍺
3
+ * Generated by orval v8.18.0 🍺
4
4
  * Do not edit manually.
5
5
  * Portal IPFS Plugin API
6
6
  *
7
- ## Portal IPFS Plugin API
8
-
9
- A comprehensive API for IPFS content management, including pinning services, file operations, IPNS key management, and website hosting.
10
-
11
- ### IPFS Pinning Service API Compatibility
12
-
13
- This API is fully compatible with the [IPFS Pinning Service API specification](https://github.com/ipfs/pinning-services-api-spec), an implementation-agnostic API standard for pinning service providers. This ensures interoperability with existing IPFS pinning clients and tools.
14
-
15
- ### Features
16
-
17
- - **Pinning**: Add, list, update, and remove pinned content
18
- - **Content**: Upload files, retrieve IPFS content, and manage metadata
19
- - **IPNS**: Manage IPNS keys and publish content
20
- - **Files**: Browse and manage pinned files with directory navigation
21
- - **Websites**: Create and manage website hosting with DNS and SSL automation
22
-
23
- ### Authentication
24
-
25
- All API endpoints require authentication using JWT tokens obtained from the Portal authentication service.
26
-
27
- ### Rate Limiting
28
-
29
- API requests are rate-limited based on user account tier. See Portal documentation for current limits.
30
-
31
- ### Documentation
32
-
33
- For detailed API usage examples and integration guides, visit the Portal documentation website.
34
-
7
+ * ## Portal IPFS Plugin API
8
+ *
9
+ * A comprehensive API for IPFS content management, including pinning services, file operations, IPNS key management, and website hosting.
10
+ *
11
+ * ### IPFS Pinning Service API Compatibility
12
+ *
13
+ * This API is fully compatible with the [IPFS Pinning Service API specification](https://github.com/ipfs/pinning-services-api-spec), an implementation-agnostic API standard for pinning service providers. This ensures interoperability with existing IPFS pinning clients and tools.
14
+ *
15
+ * ### Features
16
+ *
17
+ * - **Pinning**: Add, list, update, and remove pinned content
18
+ * - **Content**: Upload files, retrieve IPFS content, and manage metadata
19
+ * - **IPNS**: Manage IPNS keys and publish content
20
+ * - **Files**: Browse and manage pinned files with directory navigation
21
+ * - **Websites**: Create and manage website hosting with DNS and SSL automation
22
+ *
23
+ * ### Authentication
24
+ *
25
+ * All API endpoints require authentication using JWT tokens obtained from the Portal authentication service.
26
+ *
27
+ * ### Rate Limiting
28
+ *
29
+ * API requests are rate-limited based on user account tier. See Portal documentation for current limits.
30
+ *
31
+ * ### Documentation
32
+ *
33
+ * For detailed API usage examples and integration guides, visit the Portal documentation website.
34
+ *
35
35
  * OpenAPI spec version: 1.0.0
36
36
  */
37
37
  interface WebsiteConfigResponse {
@@ -1,37 +1,37 @@
1
1
  //#region src/api/generated/schemas/websiteRequest.d.ts
2
2
  /**
3
- * Generated by orval v8.10.0 🍺
3
+ * Generated by orval v8.18.0 🍺
4
4
  * Do not edit manually.
5
5
  * Portal IPFS Plugin API
6
6
  *
7
- ## Portal IPFS Plugin API
8
-
9
- A comprehensive API for IPFS content management, including pinning services, file operations, IPNS key management, and website hosting.
10
-
11
- ### IPFS Pinning Service API Compatibility
12
-
13
- This API is fully compatible with the [IPFS Pinning Service API specification](https://github.com/ipfs/pinning-services-api-spec), an implementation-agnostic API standard for pinning service providers. This ensures interoperability with existing IPFS pinning clients and tools.
14
-
15
- ### Features
16
-
17
- - **Pinning**: Add, list, update, and remove pinned content
18
- - **Content**: Upload files, retrieve IPFS content, and manage metadata
19
- - **IPNS**: Manage IPNS keys and publish content
20
- - **Files**: Browse and manage pinned files with directory navigation
21
- - **Websites**: Create and manage website hosting with DNS and SSL automation
22
-
23
- ### Authentication
24
-
25
- All API endpoints require authentication using JWT tokens obtained from the Portal authentication service.
26
-
27
- ### Rate Limiting
28
-
29
- API requests are rate-limited based on user account tier. See Portal documentation for current limits.
30
-
31
- ### Documentation
32
-
33
- For detailed API usage examples and integration guides, visit the Portal documentation website.
34
-
7
+ * ## Portal IPFS Plugin API
8
+ *
9
+ * A comprehensive API for IPFS content management, including pinning services, file operations, IPNS key management, and website hosting.
10
+ *
11
+ * ### IPFS Pinning Service API Compatibility
12
+ *
13
+ * This API is fully compatible with the [IPFS Pinning Service API specification](https://github.com/ipfs/pinning-services-api-spec), an implementation-agnostic API standard for pinning service providers. This ensures interoperability with existing IPFS pinning clients and tools.
14
+ *
15
+ * ### Features
16
+ *
17
+ * - **Pinning**: Add, list, update, and remove pinned content
18
+ * - **Content**: Upload files, retrieve IPFS content, and manage metadata
19
+ * - **IPNS**: Manage IPNS keys and publish content
20
+ * - **Files**: Browse and manage pinned files with directory navigation
21
+ * - **Websites**: Create and manage website hosting with DNS and SSL automation
22
+ *
23
+ * ### Authentication
24
+ *
25
+ * All API endpoints require authentication using JWT tokens obtained from the Portal authentication service.
26
+ *
27
+ * ### Rate Limiting
28
+ *
29
+ * API requests are rate-limited based on user account tier. See Portal documentation for current limits.
30
+ *
31
+ * ### Documentation
32
+ *
33
+ * For detailed API usage examples and integration guides, visit the Portal documentation website.
34
+ *
35
35
  * OpenAPI spec version: 1.0.0
36
36
  */
37
37
  interface WebsiteRequest {
@@ -1,37 +1,37 @@
1
1
  //#region src/api/generated/schemas/websiteUpdateRequest.d.ts
2
2
  /**
3
- * Generated by orval v8.10.0 🍺
3
+ * Generated by orval v8.18.0 🍺
4
4
  * Do not edit manually.
5
5
  * Portal IPFS Plugin API
6
6
  *
7
- ## Portal IPFS Plugin API
8
-
9
- A comprehensive API for IPFS content management, including pinning services, file operations, IPNS key management, and website hosting.
10
-
11
- ### IPFS Pinning Service API Compatibility
12
-
13
- This API is fully compatible with the [IPFS Pinning Service API specification](https://github.com/ipfs/pinning-services-api-spec), an implementation-agnostic API standard for pinning service providers. This ensures interoperability with existing IPFS pinning clients and tools.
14
-
15
- ### Features
16
-
17
- - **Pinning**: Add, list, update, and remove pinned content
18
- - **Content**: Upload files, retrieve IPFS content, and manage metadata
19
- - **IPNS**: Manage IPNS keys and publish content
20
- - **Files**: Browse and manage pinned files with directory navigation
21
- - **Websites**: Create and manage website hosting with DNS and SSL automation
22
-
23
- ### Authentication
24
-
25
- All API endpoints require authentication using JWT tokens obtained from the Portal authentication service.
26
-
27
- ### Rate Limiting
28
-
29
- API requests are rate-limited based on user account tier. See Portal documentation for current limits.
30
-
31
- ### Documentation
32
-
33
- For detailed API usage examples and integration guides, visit the Portal documentation website.
34
-
7
+ * ## Portal IPFS Plugin API
8
+ *
9
+ * A comprehensive API for IPFS content management, including pinning services, file operations, IPNS key management, and website hosting.
10
+ *
11
+ * ### IPFS Pinning Service API Compatibility
12
+ *
13
+ * This API is fully compatible with the [IPFS Pinning Service API specification](https://github.com/ipfs/pinning-services-api-spec), an implementation-agnostic API standard for pinning service providers. This ensures interoperability with existing IPFS pinning clients and tools.
14
+ *
15
+ * ### Features
16
+ *
17
+ * - **Pinning**: Add, list, update, and remove pinned content
18
+ * - **Content**: Upload files, retrieve IPFS content, and manage metadata
19
+ * - **IPNS**: Manage IPNS keys and publish content
20
+ * - **Files**: Browse and manage pinned files with directory navigation
21
+ * - **Websites**: Create and manage website hosting with DNS and SSL automation
22
+ *
23
+ * ### Authentication
24
+ *
25
+ * All API endpoints require authentication using JWT tokens obtained from the Portal authentication service.
26
+ *
27
+ * ### Rate Limiting
28
+ *
29
+ * API requests are rate-limited based on user account tier. See Portal documentation for current limits.
30
+ *
31
+ * ### Documentation
32
+ *
33
+ * For detailed API usage examples and integration guides, visit the Portal documentation website.
34
+ *
35
35
  * OpenAPI spec version: 1.0.0
36
36
  */
37
37
  interface WebsiteUpdateRequest {
@@ -1,37 +1,37 @@
1
1
  //#region src/api/generated/schemas/websiteValidateResponse.d.ts
2
2
  /**
3
- * Generated by orval v8.10.0 🍺
3
+ * Generated by orval v8.18.0 🍺
4
4
  * Do not edit manually.
5
5
  * Portal IPFS Plugin API
6
6
  *
7
- ## Portal IPFS Plugin API
8
-
9
- A comprehensive API for IPFS content management, including pinning services, file operations, IPNS key management, and website hosting.
10
-
11
- ### IPFS Pinning Service API Compatibility
12
-
13
- This API is fully compatible with the [IPFS Pinning Service API specification](https://github.com/ipfs/pinning-services-api-spec), an implementation-agnostic API standard for pinning service providers. This ensures interoperability with existing IPFS pinning clients and tools.
14
-
15
- ### Features
16
-
17
- - **Pinning**: Add, list, update, and remove pinned content
18
- - **Content**: Upload files, retrieve IPFS content, and manage metadata
19
- - **IPNS**: Manage IPNS keys and publish content
20
- - **Files**: Browse and manage pinned files with directory navigation
21
- - **Websites**: Create and manage website hosting with DNS and SSL automation
22
-
23
- ### Authentication
24
-
25
- All API endpoints require authentication using JWT tokens obtained from the Portal authentication service.
26
-
27
- ### Rate Limiting
28
-
29
- API requests are rate-limited based on user account tier. See Portal documentation for current limits.
30
-
31
- ### Documentation
32
-
33
- For detailed API usage examples and integration guides, visit the Portal documentation website.
34
-
7
+ * ## Portal IPFS Plugin API
8
+ *
9
+ * A comprehensive API for IPFS content management, including pinning services, file operations, IPNS key management, and website hosting.
10
+ *
11
+ * ### IPFS Pinning Service API Compatibility
12
+ *
13
+ * This API is fully compatible with the [IPFS Pinning Service API specification](https://github.com/ipfs/pinning-services-api-spec), an implementation-agnostic API standard for pinning service providers. This ensures interoperability with existing IPFS pinning clients and tools.
14
+ *
15
+ * ### Features
16
+ *
17
+ * - **Pinning**: Add, list, update, and remove pinned content
18
+ * - **Content**: Upload files, retrieve IPFS content, and manage metadata
19
+ * - **IPNS**: Manage IPNS keys and publish content
20
+ * - **Files**: Browse and manage pinned files with directory navigation
21
+ * - **Websites**: Create and manage website hosting with DNS and SSL automation
22
+ *
23
+ * ### Authentication
24
+ *
25
+ * All API endpoints require authentication using JWT tokens obtained from the Portal authentication service.
26
+ *
27
+ * ### Rate Limiting
28
+ *
29
+ * API requests are rate-limited based on user account tier. See Portal documentation for current limits.
30
+ *
31
+ * ### Documentation
32
+ *
33
+ * For detailed API usage examples and integration guides, visit the Portal documentation website.
34
+ *
35
35
  * OpenAPI spec version: 1.0.0
36
36
  */
37
37
  interface WebsiteValidateResponse {
@@ -1,37 +1,37 @@
1
1
  //#region src/api/generated/schemas/zoneListResponse.d.ts
2
2
  /**
3
- * Generated by orval v8.10.0 🍺
3
+ * Generated by orval v8.18.0 🍺
4
4
  * Do not edit manually.
5
5
  * Portal IPFS Plugin API
6
6
  *
7
- ## Portal IPFS Plugin API
8
-
9
- A comprehensive API for IPFS content management, including pinning services, file operations, IPNS key management, and website hosting.
10
-
11
- ### IPFS Pinning Service API Compatibility
12
-
13
- This API is fully compatible with the [IPFS Pinning Service API specification](https://github.com/ipfs/pinning-services-api-spec), an implementation-agnostic API standard for pinning service providers. This ensures interoperability with existing IPFS pinning clients and tools.
14
-
15
- ### Features
16
-
17
- - **Pinning**: Add, list, update, and remove pinned content
18
- - **Content**: Upload files, retrieve IPFS content, and manage metadata
19
- - **IPNS**: Manage IPNS keys and publish content
20
- - **Files**: Browse and manage pinned files with directory navigation
21
- - **Websites**: Create and manage website hosting with DNS and SSL automation
22
-
23
- ### Authentication
24
-
25
- All API endpoints require authentication using JWT tokens obtained from the Portal authentication service.
26
-
27
- ### Rate Limiting
28
-
29
- API requests are rate-limited based on user account tier. See Portal documentation for current limits.
30
-
31
- ### Documentation
32
-
33
- For detailed API usage examples and integration guides, visit the Portal documentation website.
34
-
7
+ * ## Portal IPFS Plugin API
8
+ *
9
+ * A comprehensive API for IPFS content management, including pinning services, file operations, IPNS key management, and website hosting.
10
+ *
11
+ * ### IPFS Pinning Service API Compatibility
12
+ *
13
+ * This API is fully compatible with the [IPFS Pinning Service API specification](https://github.com/ipfs/pinning-services-api-spec), an implementation-agnostic API standard for pinning service providers. This ensures interoperability with existing IPFS pinning clients and tools.
14
+ *
15
+ * ### Features
16
+ *
17
+ * - **Pinning**: Add, list, update, and remove pinned content
18
+ * - **Content**: Upload files, retrieve IPFS content, and manage metadata
19
+ * - **IPNS**: Manage IPNS keys and publish content
20
+ * - **Files**: Browse and manage pinned files with directory navigation
21
+ * - **Websites**: Create and manage website hosting with DNS and SSL automation
22
+ *
23
+ * ### Authentication
24
+ *
25
+ * All API endpoints require authentication using JWT tokens obtained from the Portal authentication service.
26
+ *
27
+ * ### Rate Limiting
28
+ *
29
+ * API requests are rate-limited based on user account tier. See Portal documentation for current limits.
30
+ *
31
+ * ### Documentation
32
+ *
33
+ * For detailed API usage examples and integration guides, visit the Portal documentation website.
34
+ *
35
35
  * OpenAPI spec version: 1.0.0
36
36
  */
37
37
  interface ZoneListResponse {
@@ -1,37 +1,37 @@
1
1
  //#region src/api/generated/schemas/zoneResponse.d.ts
2
2
  /**
3
- * Generated by orval v8.10.0 🍺
3
+ * Generated by orval v8.18.0 🍺
4
4
  * Do not edit manually.
5
5
  * Portal IPFS Plugin API
6
6
  *
7
- ## Portal IPFS Plugin API
8
-
9
- A comprehensive API for IPFS content management, including pinning services, file operations, IPNS key management, and website hosting.
10
-
11
- ### IPFS Pinning Service API Compatibility
12
-
13
- This API is fully compatible with the [IPFS Pinning Service API specification](https://github.com/ipfs/pinning-services-api-spec), an implementation-agnostic API standard for pinning service providers. This ensures interoperability with existing IPFS pinning clients and tools.
14
-
15
- ### Features
16
-
17
- - **Pinning**: Add, list, update, and remove pinned content
18
- - **Content**: Upload files, retrieve IPFS content, and manage metadata
19
- - **IPNS**: Manage IPNS keys and publish content
20
- - **Files**: Browse and manage pinned files with directory navigation
21
- - **Websites**: Create and manage website hosting with DNS and SSL automation
22
-
23
- ### Authentication
24
-
25
- All API endpoints require authentication using JWT tokens obtained from the Portal authentication service.
26
-
27
- ### Rate Limiting
28
-
29
- API requests are rate-limited based on user account tier. See Portal documentation for current limits.
30
-
31
- ### Documentation
32
-
33
- For detailed API usage examples and integration guides, visit the Portal documentation website.
34
-
7
+ * ## Portal IPFS Plugin API
8
+ *
9
+ * A comprehensive API for IPFS content management, including pinning services, file operations, IPNS key management, and website hosting.
10
+ *
11
+ * ### IPFS Pinning Service API Compatibility
12
+ *
13
+ * This API is fully compatible with the [IPFS Pinning Service API specification](https://github.com/ipfs/pinning-services-api-spec), an implementation-agnostic API standard for pinning service providers. This ensures interoperability with existing IPFS pinning clients and tools.
14
+ *
15
+ * ### Features
16
+ *
17
+ * - **Pinning**: Add, list, update, and remove pinned content
18
+ * - **Content**: Upload files, retrieve IPFS content, and manage metadata
19
+ * - **IPNS**: Manage IPNS keys and publish content
20
+ * - **Files**: Browse and manage pinned files with directory navigation
21
+ * - **Websites**: Create and manage website hosting with DNS and SSL automation
22
+ *
23
+ * ### Authentication
24
+ *
25
+ * All API endpoints require authentication using JWT tokens obtained from the Portal authentication service.
26
+ *
27
+ * ### Rate Limiting
28
+ *
29
+ * API requests are rate-limited based on user account tier. See Portal documentation for current limits.
30
+ *
31
+ * ### Documentation
32
+ *
33
+ * For detailed API usage examples and integration guides, visit the Portal documentation website.
34
+ *
35
35
  * OpenAPI spec version: 1.0.0
36
36
  */
37
37
  interface ZoneResponse {
@@ -1,40 +1,40 @@
1
1
  import { faker } from "@faker-js/faker";
2
- import { HttpResponse, delay, http } from "msw";
2
+ import { HttpResponse, http } from "msw";
3
3
 
4
4
  //#region src/api/generated/tus/tus.msw.ts
5
5
  /**
6
- * Generated by orval v8.10.0 🍺
6
+ * Generated by orval v8.18.0 🍺
7
7
  * Do not edit manually.
8
8
  * Portal IPFS Plugin API
9
9
  *
10
- ## Portal IPFS Plugin API
11
-
12
- A comprehensive API for IPFS content management, including pinning services, file operations, IPNS key management, and website hosting.
13
-
14
- ### IPFS Pinning Service API Compatibility
15
-
16
- This API is fully compatible with the [IPFS Pinning Service API specification](https://github.com/ipfs/pinning-services-api-spec), an implementation-agnostic API standard for pinning service providers. This ensures interoperability with existing IPFS pinning clients and tools.
17
-
18
- ### Features
19
-
20
- - **Pinning**: Add, list, update, and remove pinned content
21
- - **Content**: Upload files, retrieve IPFS content, and manage metadata
22
- - **IPNS**: Manage IPNS keys and publish content
23
- - **Files**: Browse and manage pinned files with directory navigation
24
- - **Websites**: Create and manage website hosting with DNS and SSL automation
25
-
26
- ### Authentication
27
-
28
- All API endpoints require authentication using JWT tokens obtained from the Portal authentication service.
29
-
30
- ### Rate Limiting
31
-
32
- API requests are rate-limited based on user account tier. See Portal documentation for current limits.
33
-
34
- ### Documentation
35
-
36
- For detailed API usage examples and integration guides, visit the Portal documentation website.
37
-
10
+ * ## Portal IPFS Plugin API
11
+ *
12
+ * A comprehensive API for IPFS content management, including pinning services, file operations, IPNS key management, and website hosting.
13
+ *
14
+ * ### IPFS Pinning Service API Compatibility
15
+ *
16
+ * This API is fully compatible with the [IPFS Pinning Service API specification](https://github.com/ipfs/pinning-services-api-spec), an implementation-agnostic API standard for pinning service providers. This ensures interoperability with existing IPFS pinning clients and tools.
17
+ *
18
+ * ### Features
19
+ *
20
+ * - **Pinning**: Add, list, update, and remove pinned content
21
+ * - **Content**: Upload files, retrieve IPFS content, and manage metadata
22
+ * - **IPNS**: Manage IPNS keys and publish content
23
+ * - **Files**: Browse and manage pinned files with directory navigation
24
+ * - **Websites**: Create and manage website hosting with DNS and SSL automation
25
+ *
26
+ * ### Authentication
27
+ *
28
+ * All API endpoints require authentication using JWT tokens obtained from the Portal authentication service.
29
+ *
30
+ * ### Rate Limiting
31
+ *
32
+ * API requests are rate-limited based on user account tier. See Portal documentation for current limits.
33
+ *
34
+ * ### Documentation
35
+ *
36
+ * For detailed API usage examples and integration guides, visit the Portal documentation website.
37
+ *
38
38
  * OpenAPI spec version: 1.0.0
39
39
  */
40
40
  const getPostApiUploadTusResponseMock = (overrideResponse = {}) => ({
@@ -60,28 +60,24 @@ const getPatchApiUploadTusIdResponseMock = (overrideResponse = {}) => ({
60
60
  });
61
61
  const getPostApiUploadTusMockHandler = (overrideResponse, options) => {
62
62
  return http.post("*/api/upload/tus", async (info) => {
63
- await delay(0);
64
63
  const resolvedBody = overrideResponse !== void 0 ? typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse : getPostApiUploadTusResponseMock();
65
64
  return resolvedBody === void 0 ? new HttpResponse(null, { status: 201 }) : HttpResponse.json(resolvedBody, { status: 200 });
66
65
  }, options);
67
66
  };
68
67
  const getDeleteApiUploadTusIdMockHandler = (overrideResponse, options) => {
69
68
  return http.delete("*/api/upload/tus/:id", async (info) => {
70
- await delay(0);
71
69
  const resolvedBody = overrideResponse !== void 0 ? typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse : getDeleteApiUploadTusIdResponseMock();
72
70
  return resolvedBody === void 0 ? new HttpResponse(null, { status: 204 }) : HttpResponse.json(resolvedBody, { status: 200 });
73
71
  }, options);
74
72
  };
75
73
  const getHeadApiUploadTusIdMockHandler = (overrideResponse, options) => {
76
74
  return http.head("*/api/upload/tus/:id", async (info) => {
77
- await delay(0);
78
75
  if (typeof overrideResponse === "function") await overrideResponse(info);
79
76
  return new HttpResponse(null, { status: 200 });
80
77
  }, options);
81
78
  };
82
79
  const getPatchApiUploadTusIdMockHandler = (overrideResponse, options) => {
83
80
  return http.patch("*/api/upload/tus/:id", async (info) => {
84
- await delay(0);
85
81
  const resolvedBody = overrideResponse !== void 0 ? typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse : getPatchApiUploadTusIdResponseMock();
86
82
  return resolvedBody === void 0 ? new HttpResponse(null, { status: 204 }) : HttpResponse.json(resolvedBody, { status: 200 });
87
83
  }, options);
@@ -1 +1 @@
1
- {"version":3,"file":"tus.msw.js","names":[],"sources":["../../../../../src/api/generated/tus/tus.msw.ts"],"sourcesContent":["/**\n * Generated by orval v8.10.0 🍺\n * Do not edit manually.\n * Portal IPFS Plugin API\n *\n## Portal IPFS Plugin API\n\nA comprehensive API for IPFS content management, including pinning services, file operations, IPNS key management, and website hosting.\n\n### IPFS Pinning Service API Compatibility\n\nThis API is fully compatible with the [IPFS Pinning Service API specification](https://github.com/ipfs/pinning-services-api-spec), an implementation-agnostic API standard for pinning service providers. This ensures interoperability with existing IPFS pinning clients and tools.\n\n### Features\n\n- **Pinning**: Add, list, update, and remove pinned content\n- **Content**: Upload files, retrieve IPFS content, and manage metadata\n- **IPNS**: Manage IPNS keys and publish content\n- **Files**: Browse and manage pinned files with directory navigation\n- **Websites**: Create and manage website hosting with DNS and SSL automation\n\n### Authentication\n\nAll API endpoints require authentication using JWT tokens obtained from the Portal authentication service.\n\n### Rate Limiting\n\nAPI requests are rate-limited based on user account tier. See Portal documentation for current limits.\n\n### Documentation\n\nFor detailed API usage examples and integration guides, visit the Portal documentation website.\n\n * OpenAPI spec version: 1.0.0\n */\nimport {\n faker\n} from '@faker-js/faker';\n\nimport {\n HttpResponse,\n delay,\n http\n} from 'msw';\nimport type {\n RequestHandlerOptions\n} from 'msw';\n\nimport type {\n ErrorResponse\n} from '../schemas';\n\n\nexport const getPostApiUploadTusResponseMock = (overrideResponse: Partial<Extract<ErrorResponse, object>> = {}): ErrorResponse => ({error: faker.string.alpha({length: {min: 10, max: 20}}), ...overrideResponse})\n\nexport const getDeleteApiUploadTusIdResponseMock = (overrideResponse: Partial<Extract<ErrorResponse, object>> = {}): ErrorResponse => ({error: faker.string.alpha({length: {min: 10, max: 20}}), ...overrideResponse})\n\nexport const getPatchApiUploadTusIdResponseMock = (overrideResponse: Partial<Extract<ErrorResponse, object>> = {}): ErrorResponse => ({error: faker.string.alpha({length: {min: 10, max: 20}}), ...overrideResponse})\n\n\nexport const getPostApiUploadTusMockHandler = (overrideResponse?: ErrorResponse | void | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<ErrorResponse | void> | ErrorResponse | void), options?: RequestHandlerOptions) => {\n return http.post('*/api/upload/tus', async (info: Parameters<Parameters<typeof http.post>[1]>[0]) => {await delay(0);\n\n const resolvedBody = overrideResponse !== undefined\n ? (typeof overrideResponse === \"function\" ? await overrideResponse(info) : overrideResponse)\n : getPostApiUploadTusResponseMock();\n return resolvedBody === undefined\n ? new HttpResponse(null, { status: 201 })\n : HttpResponse.json(resolvedBody, { status: 200 })\n }, options)\n}\n\nexport const getDeleteApiUploadTusIdMockHandler = (overrideResponse?: ErrorResponse | void | ((info: Parameters<Parameters<typeof http.delete>[1]>[0]) => Promise<ErrorResponse | void> | ErrorResponse | void), options?: RequestHandlerOptions) => {\n return http.delete('*/api/upload/tus/:id', async (info: Parameters<Parameters<typeof http.delete>[1]>[0]) => {await delay(0);\n\n const resolvedBody = overrideResponse !== undefined\n ? (typeof overrideResponse === \"function\" ? await overrideResponse(info) : overrideResponse)\n : getDeleteApiUploadTusIdResponseMock();\n return resolvedBody === undefined\n ? new HttpResponse(null, { status: 204 })\n : HttpResponse.json(resolvedBody, { status: 200 })\n }, options)\n}\n\nexport const getHeadApiUploadTusIdMockHandler = (overrideResponse?: void | ((info: Parameters<Parameters<typeof http.head>[1]>[0]) => Promise<void> | void), options?: RequestHandlerOptions) => {\n return http.head('*/api/upload/tus/:id', async (info: Parameters<Parameters<typeof http.head>[1]>[0]) => {await delay(0);\n if (typeof overrideResponse === 'function') {await overrideResponse(info); }\n\n return new HttpResponse(null,\n { status: 200\n })\n }, options)\n}\n\nexport const getPatchApiUploadTusIdMockHandler = (overrideResponse?: ErrorResponse | void | ((info: Parameters<Parameters<typeof http.patch>[1]>[0]) => Promise<ErrorResponse | void> | ErrorResponse | void), options?: RequestHandlerOptions) => {\n return http.patch('*/api/upload/tus/:id', async (info: Parameters<Parameters<typeof http.patch>[1]>[0]) => {await delay(0);\n\n const resolvedBody = overrideResponse !== undefined\n ? (typeof overrideResponse === \"function\" ? await overrideResponse(info) : overrideResponse)\n : getPatchApiUploadTusIdResponseMock();\n return resolvedBody === undefined\n ? new HttpResponse(null, { status: 204 })\n : HttpResponse.json(resolvedBody, { status: 200 })\n }, options)\n}\nexport const getTusMock = () => [\n getPostApiUploadTusMockHandler(),\n getDeleteApiUploadTusIdMockHandler(),\n getHeadApiUploadTusIdMockHandler(),\n getPatchApiUploadTusIdMockHandler()\n]\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqDA,MAAa,mCAAmC,mBAA4D,EAAE,MAAqB;CAAC,OAAO,MAAM,OAAO,MAAM,EAAC,QAAQ;EAAC,KAAK;EAAI,KAAK;EAAG,EAAC,CAAC;CAAE,GAAG;CAAiB;AAEjN,MAAa,uCAAuC,mBAA4D,EAAE,MAAqB;CAAC,OAAO,MAAM,OAAO,MAAM,EAAC,QAAQ;EAAC,KAAK;EAAI,KAAK;EAAG,EAAC,CAAC;CAAE,GAAG;CAAiB;AAErN,MAAa,sCAAsC,mBAA4D,EAAE,MAAqB;CAAC,OAAO,MAAM,OAAO,MAAM,EAAC,QAAQ;EAAC,KAAK;EAAI,KAAK;EAAG,EAAC,CAAC;CAAE,GAAG;CAAiB;AAGpN,MAAa,kCAAkC,kBAA4J,YAAoC;AAC7O,QAAO,KAAK,KAAK,oBAAoB,OAAO,SAAyD;AAAC,QAAM,MAAM,EAAE;EAEpH,MAAM,eAAe,qBAAqB,SACrC,OAAO,qBAAqB,aAAa,MAAM,iBAAiB,KAAK,GAAG,mBACzE,iCAAiC;AACnC,SAAO,iBAAiB,SACpB,IAAI,aAAa,MAAM,EAAE,QAAQ,KAAK,CAAC,GACvC,aAAa,KAAK,cAAc,EAAE,QAAQ,KAAK,CAAC;IACnD,QAAQ;;AAGb,MAAa,sCAAsC,kBAA8J,YAAoC;AACnP,QAAO,KAAK,OAAO,wBAAwB,OAAO,SAA2D;AAAC,QAAM,MAAM,EAAE;EAE5H,MAAM,eAAe,qBAAqB,SACrC,OAAO,qBAAqB,aAAa,MAAM,iBAAiB,KAAK,GAAG,mBACzE,qCAAqC;AACvC,SAAO,iBAAiB,SACpB,IAAI,aAAa,MAAM,EAAE,QAAQ,KAAK,CAAC,GACvC,aAAa,KAAK,cAAc,EAAE,QAAQ,KAAK,CAAC;IACnD,QAAQ;;AAGb,MAAa,oCAAoC,kBAA4G,YAAoC;AAC/L,QAAO,KAAK,KAAK,wBAAwB,OAAO,SAAyD;AAAC,QAAM,MAAM,EAAE;AACxH,MAAI,OAAO,qBAAqB,WAAa,OAAM,iBAAiB,KAAK;AAEvE,SAAO,IAAI,aAAa,MACtB,EAAE,QAAQ,KACT,CAAC;IACH,QAAQ;;AAGb,MAAa,qCAAqC,kBAA6J,YAAoC;AACjP,QAAO,KAAK,MAAM,wBAAwB,OAAO,SAA0D;AAAC,QAAM,MAAM,EAAE;EAE1H,MAAM,eAAe,qBAAqB,SACrC,OAAO,qBAAqB,aAAa,MAAM,iBAAiB,KAAK,GAAG,mBACzE,oCAAoC;AACtC,SAAO,iBAAiB,SACpB,IAAI,aAAa,MAAM,EAAE,QAAQ,KAAK,CAAC,GACvC,aAAa,KAAK,cAAc,EAAE,QAAQ,KAAK,CAAC;IACnD,QAAQ;;AAEb,MAAa,mBAAmB;CAC9B,gCAAgC;CAChC,oCAAoC;CACpC,kCAAkC;CAClC,mCAAmC;CACpC"}
1
+ {"version":3,"file":"tus.msw.js","names":[],"sources":["../../../../../src/api/generated/tus/tus.msw.ts"],"sourcesContent":["/**\n * Generated by orval v8.18.0 🍺\n * Do not edit manually.\n * Portal IPFS Plugin API\n *\n * ## Portal IPFS Plugin API\n *\n * A comprehensive API for IPFS content management, including pinning services, file operations, IPNS key management, and website hosting.\n *\n * ### IPFS Pinning Service API Compatibility\n *\n * This API is fully compatible with the [IPFS Pinning Service API specification](https://github.com/ipfs/pinning-services-api-spec), an implementation-agnostic API standard for pinning service providers. This ensures interoperability with existing IPFS pinning clients and tools.\n *\n * ### Features\n *\n * - **Pinning**: Add, list, update, and remove pinned content\n * - **Content**: Upload files, retrieve IPFS content, and manage metadata\n * - **IPNS**: Manage IPNS keys and publish content\n * - **Files**: Browse and manage pinned files with directory navigation\n * - **Websites**: Create and manage website hosting with DNS and SSL automation\n *\n * ### Authentication\n *\n * All API endpoints require authentication using JWT tokens obtained from the Portal authentication service.\n *\n * ### Rate Limiting\n *\n * API requests are rate-limited based on user account tier. See Portal documentation for current limits.\n *\n * ### Documentation\n *\n * For detailed API usage examples and integration guides, visit the Portal documentation website.\n *\n * OpenAPI spec version: 1.0.0\n */\nimport {\n faker\n} from '@faker-js/faker';\n\nimport {\n HttpResponse,\n http\n} from 'msw';\nimport type {\n RequestHandlerOptions\n} from 'msw';\n\nimport type {\n ErrorResponse\n} from '../schemas';\n\n\nexport const getPostApiUploadTusResponseMock = (overrideResponse: Partial<Extract<ErrorResponse, object>> = {}): ErrorResponse => ({error: faker.string.alpha({length: {min: 10, max: 20}}), ...overrideResponse})\n\nexport const getDeleteApiUploadTusIdResponseMock = (overrideResponse: Partial<Extract<ErrorResponse, object>> = {}): ErrorResponse => ({error: faker.string.alpha({length: {min: 10, max: 20}}), ...overrideResponse})\n\nexport const getPatchApiUploadTusIdResponseMock = (overrideResponse: Partial<Extract<ErrorResponse, object>> = {}): ErrorResponse => ({error: faker.string.alpha({length: {min: 10, max: 20}}), ...overrideResponse})\n\n\nexport const getPostApiUploadTusMockHandler = (overrideResponse?: ErrorResponse | void | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<ErrorResponse | void> | ErrorResponse | void), options?: RequestHandlerOptions) => {\n return http.post('*/api/upload/tus', async (info: Parameters<Parameters<typeof http.post>[1]>[0]) => {\n\n const resolvedBody = overrideResponse !== undefined\n ? (typeof overrideResponse === \"function\" ? await overrideResponse(info) : overrideResponse)\n : getPostApiUploadTusResponseMock();\n return resolvedBody === undefined\n ? new HttpResponse(null, { status: 201 })\n : HttpResponse.json(resolvedBody, { status: 200 })\n }, options)\n}\n\nexport const getDeleteApiUploadTusIdMockHandler = (overrideResponse?: ErrorResponse | void | ((info: Parameters<Parameters<typeof http.delete>[1]>[0]) => Promise<ErrorResponse | void> | ErrorResponse | void), options?: RequestHandlerOptions) => {\n return http.delete('*/api/upload/tus/:id', async (info: Parameters<Parameters<typeof http.delete>[1]>[0]) => {\n\n const resolvedBody = overrideResponse !== undefined\n ? (typeof overrideResponse === \"function\" ? await overrideResponse(info) : overrideResponse)\n : getDeleteApiUploadTusIdResponseMock();\n return resolvedBody === undefined\n ? new HttpResponse(null, { status: 204 })\n : HttpResponse.json(resolvedBody, { status: 200 })\n }, options)\n}\n\nexport const getHeadApiUploadTusIdMockHandler = (overrideResponse?: void | ((info: Parameters<Parameters<typeof http.head>[1]>[0]) => Promise<void> | void), options?: RequestHandlerOptions) => {\n return http.head('*/api/upload/tus/:id', async (info: Parameters<Parameters<typeof http.head>[1]>[0]) => {\n if (typeof overrideResponse === 'function') {await overrideResponse(info); }\n\n return new HttpResponse(null,\n { status: 200\n })\n }, options)\n}\n\nexport const getPatchApiUploadTusIdMockHandler = (overrideResponse?: ErrorResponse | void | ((info: Parameters<Parameters<typeof http.patch>[1]>[0]) => Promise<ErrorResponse | void> | ErrorResponse | void), options?: RequestHandlerOptions) => {\n return http.patch('*/api/upload/tus/:id', async (info: Parameters<Parameters<typeof http.patch>[1]>[0]) => {\n\n const resolvedBody = overrideResponse !== undefined\n ? (typeof overrideResponse === \"function\" ? await overrideResponse(info) : overrideResponse)\n : getPatchApiUploadTusIdResponseMock();\n return resolvedBody === undefined\n ? new HttpResponse(null, { status: 204 })\n : HttpResponse.json(resolvedBody, { status: 200 })\n }, options)\n}\nexport const getTusMock = () => [\n getPostApiUploadTusMockHandler(),\n getDeleteApiUploadTusIdMockHandler(),\n getHeadApiUploadTusIdMockHandler(),\n getPatchApiUploadTusIdMockHandler()\n]\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoDA,MAAa,mCAAmC,mBAA4D,EAAE,MAAqB;CAAC,OAAO,MAAM,OAAO,MAAM,EAAC,QAAQ;EAAC,KAAK;EAAI,KAAK;EAAG,EAAC,CAAC;CAAE,GAAG;CAAiB;AAEjN,MAAa,uCAAuC,mBAA4D,EAAE,MAAqB;CAAC,OAAO,MAAM,OAAO,MAAM,EAAC,QAAQ;EAAC,KAAK;EAAI,KAAK;EAAG,EAAC,CAAC;CAAE,GAAG;CAAiB;AAErN,MAAa,sCAAsC,mBAA4D,EAAE,MAAqB;CAAC,OAAO,MAAM,OAAO,MAAM,EAAC,QAAQ;EAAC,KAAK;EAAI,KAAK;EAAG,EAAC,CAAC;CAAE,GAAG;CAAiB;AAGpN,MAAa,kCAAkC,kBAA4J,YAAoC;AAC7O,QAAO,KAAK,KAAK,oBAAoB,OAAO,SAAyD;EAErG,MAAM,eAAe,qBAAqB,SACrC,OAAO,qBAAqB,aAAa,MAAM,iBAAiB,KAAK,GAAG,mBACzE,iCAAiC;AACnC,SAAO,iBAAiB,SACpB,IAAI,aAAa,MAAM,EAAE,QAAQ,KAAK,CAAC,GACvC,aAAa,KAAK,cAAc,EAAE,QAAQ,KAAK,CAAC;IACnD,QAAQ;;AAGb,MAAa,sCAAsC,kBAA8J,YAAoC;AACnP,QAAO,KAAK,OAAO,wBAAwB,OAAO,SAA2D;EAE7G,MAAM,eAAe,qBAAqB,SACrC,OAAO,qBAAqB,aAAa,MAAM,iBAAiB,KAAK,GAAG,mBACzE,qCAAqC;AACvC,SAAO,iBAAiB,SACpB,IAAI,aAAa,MAAM,EAAE,QAAQ,KAAK,CAAC,GACvC,aAAa,KAAK,cAAc,EAAE,QAAQ,KAAK,CAAC;IACnD,QAAQ;;AAGb,MAAa,oCAAoC,kBAA4G,YAAoC;AAC/L,QAAO,KAAK,KAAK,wBAAwB,OAAO,SAAyD;AACzG,MAAI,OAAO,qBAAqB,WAAa,OAAM,iBAAiB,KAAK;AAEvE,SAAO,IAAI,aAAa,MACtB,EAAE,QAAQ,KACT,CAAC;IACH,QAAQ;;AAGb,MAAa,qCAAqC,kBAA6J,YAAoC;AACjP,QAAO,KAAK,MAAM,wBAAwB,OAAO,SAA0D;EAE3G,MAAM,eAAe,qBAAqB,SACrC,OAAO,qBAAqB,aAAa,MAAM,iBAAiB,KAAK,GAAG,mBACzE,oCAAoC;AACtC,SAAO,iBAAiB,SACpB,IAAI,aAAa,MAAM,EAAE,QAAQ,KAAK,CAAC,GACvC,aAAa,KAAK,cAAc,EAAE,QAAQ,KAAK,CAAC;IACnD,QAAQ;;AAEb,MAAa,mBAAmB;CAC9B,gCAAgC;CAChC,oCAAoC;CACpC,kCAAkC;CAClC,mCAAmC;CACpC"}