@lumeweb/pinner 0.1.13 → 0.1.15
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/esm/adapters/pinata/index.d.ts +1 -1
- package/dist/esm/adapters/pinata/shared/index.d.ts +1 -1
- package/dist/esm/adapters/pinata/shared/types.d.ts +41 -1
- package/dist/esm/adapters/pinata/v2/adapter-interface.d.ts +4 -1
- package/dist/esm/adapters/pinata/v2/index.d.ts +1 -1
- package/dist/esm/adapters/pinata/v2/types.d.ts +58 -1
- package/dist/esm/api/client.d.ts +21 -0
- package/dist/esm/api/client.js +54 -0
- package/dist/esm/api/client.js.map +1 -0
- package/dist/esm/api/generated/content/content.msw.js +30 -37
- package/dist/esm/api/generated/content/content.msw.js.map +1 -1
- package/dist/esm/api/generated/dns/dns.msw.js +30 -44
- package/dist/esm/api/generated/dns/dns.msw.js.map +1 -1
- package/dist/esm/api/generated/files/files.msw.js +30 -33
- package/dist/esm/api/generated/files/files.msw.js.map +1 -1
- package/dist/esm/api/generated/gateway/gateway.msw.js +30 -32
- package/dist/esm/api/generated/gateway/gateway.msw.js.map +1 -1
- package/dist/esm/api/generated/internal/internal.msw.js +30 -31
- package/dist/esm/api/generated/internal/internal.msw.js.map +1 -1
- package/dist/esm/api/generated/ipns/ipns.msw.js +30 -37
- package/dist/esm/api/generated/ipns/ipns.msw.js.map +1 -1
- package/dist/esm/api/generated/pinning/pinning.msw.js +30 -35
- package/dist/esm/api/generated/pinning/pinning.msw.js.map +1 -1
- package/dist/esm/api/generated/schemas/blockMetaResponse.d.ts +29 -29
- package/dist/esm/api/generated/schemas/component.d.ts +29 -29
- package/dist/esm/api/generated/schemas/errorResponse.d.ts +29 -29
- package/dist/esm/api/generated/schemas/fileManagerItem.d.ts +29 -29
- package/dist/esm/api/generated/schemas/gatewayWebsiteResponse.d.ts +29 -29
- package/dist/esm/api/generated/schemas/gatewayWebsiteStatusResponse.d.ts +29 -29
- package/dist/esm/api/generated/schemas/getBlockMetaBatchRequest.d.ts +42 -0
- package/dist/esm/api/generated/schemas/iPNSKeyListResponse.d.ts +29 -29
- package/dist/esm/api/generated/schemas/iPNSKeyRequest.d.ts +29 -29
- package/dist/esm/api/generated/schemas/iPNSKeyResponse.d.ts +29 -29
- package/dist/esm/api/generated/schemas/iPNSPublishRequest.d.ts +29 -29
- package/dist/esm/api/generated/schemas/iPNSPublishResponse.d.ts +29 -29
- package/dist/esm/api/generated/schemas/iPNSRepublishResponse.d.ts +29 -29
- package/dist/esm/api/generated/schemas/iPNSResolveResponse.d.ts +29 -29
- package/dist/esm/api/generated/schemas/infoResponse.d.ts +29 -29
- package/dist/esm/api/generated/schemas/pinRequestMeta.d.ts +29 -29
- package/dist/esm/api/generated/schemas/pinStatusResponseInfo.d.ts +29 -29
- package/dist/esm/api/generated/schemas/postApiUploadBody.d.ts +42 -0
- package/dist/esm/api/generated/schemas/postUploadResponse.d.ts +29 -29
- package/dist/esm/api/generated/schemas/recordResponse.d.ts +29 -29
- package/dist/esm/api/generated/schemas/recordResult.d.ts +29 -29
- package/dist/esm/api/generated/schemas/sSLStatusInfo.d.ts +29 -29
- package/dist/esm/api/generated/schemas/sSLStatusUpdateRequest.d.ts +44 -0
- package/dist/esm/api/generated/schemas/uploadResultResponse.d.ts +29 -29
- package/dist/esm/api/generated/schemas/validationResponse.d.ts +29 -29
- package/dist/esm/api/generated/schemas/websiteConfigResponse.d.ts +29 -29
- package/dist/esm/api/generated/schemas/websiteRequest.d.ts +29 -29
- package/dist/esm/api/generated/schemas/websiteUpdateRequest.d.ts +29 -29
- package/dist/esm/api/generated/schemas/websiteValidateResponse.d.ts +29 -29
- package/dist/esm/api/generated/schemas/zoneListResponse.d.ts +29 -29
- package/dist/esm/api/generated/schemas/zoneResponse.d.ts +29 -29
- package/dist/esm/api/generated/tus/tus.msw.js +30 -34
- package/dist/esm/api/generated/tus/tus.msw.js.map +1 -1
- package/dist/esm/api/generated/websites/websites.msw.js +30 -38
- package/dist/esm/api/generated/websites/websites.msw.js.map +1 -1
- package/dist/esm/api/ipns.d.ts +47 -6
- package/dist/esm/api/ipns.js +46 -39
- package/dist/esm/api/ipns.js.map +1 -1
- package/dist/esm/api/websites.d.ts +57 -6
- package/dist/esm/api/websites.js +57 -41
- package/dist/esm/api/websites.js.map +1 -1
- package/dist/esm/auth/index.js +2 -0
- package/dist/esm/auth/key-exchange.js +76 -0
- package/dist/esm/auth/key-exchange.js.map +1 -0
- package/dist/esm/auth/manager.d.ts +33 -0
- package/dist/esm/auth/manager.js +29 -0
- package/dist/esm/auth/manager.js.map +1 -0
- package/dist/esm/blockstore/index.d.ts +1 -1
- package/dist/esm/blockstore/unstorage-base.d.ts +6 -1
- package/dist/esm/blockstore/unstorage-base.js +9 -6
- package/dist/esm/blockstore/unstorage-base.js.map +1 -1
- package/dist/esm/config.js +13 -0
- package/dist/esm/config.js.map +1 -0
- package/dist/esm/index.d.ts +31 -6
- package/dist/esm/pin/client.js +14 -14
- package/dist/esm/pin/client.js.map +1 -1
- package/dist/esm/pinner.d.ts +22 -0
- package/dist/esm/pinner.js +31 -4
- package/dist/esm/pinner.js.map +1 -1
- package/dist/esm/types/pin.d.ts +42 -0
- package/dist/esm/upload/base-upload.js +6 -4
- package/dist/esm/upload/base-upload.js.map +1 -1
- package/dist/esm/upload/builder.d.ts +1 -1
- package/dist/esm/upload/car.d.ts +18 -0
- package/dist/esm/upload/car.js.map +1 -1
- package/dist/esm/upload/manager.d.ts +33 -1
- package/dist/esm/upload/manager.js +50 -4
- package/dist/esm/upload/manager.js.map +1 -1
- package/dist/esm/upload/normalize.js.map +1 -1
- package/dist/esm/upload/tus-upload.js +4 -4
- package/dist/esm/upload/tus-upload.js.map +1 -1
- package/dist/esm/upload/xhr-upload.js +2 -2
- package/dist/esm/upload/xhr-upload.js.map +1 -1
- package/package.json +18 -17
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ipns.msw.js","names":[],"sources":["../../../../../src/api/generated/ipns/ipns.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 IPNSKeyListResponseResponse,\n IPNSKeyResponse,\n IPNSPublishResponse,\n IPNSRepublishResponse,\n IPNSResolveResponse\n} from '../schemas';\n\n\nexport const getGetApiIpnsKeysResponseMock = (overrideResponse: Partial<Extract<IPNSKeyListResponseResponse, object>> = {}): IPNSKeyListResponseResponse => ({data: Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => ({created: faker.date.past().toISOString().slice(0, 19) + 'Z', id: faker.number.int(), ipns_name: faker.string.alpha({length: {min: 10, max: 20}}), last_published_at: faker.helpers.arrayElement([faker.date.past().toISOString().slice(0, 19) + 'Z', undefined]), name: faker.string.alpha({length: {min: 10, max: 20}}), peer_id: faker.string.alpha({length: {min: 10, max: 20}}), value: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined])})), total: faker.number.int(), ...overrideResponse})\n\nexport const getPostApiIpnsKeysResponseMock = (overrideResponse: Partial<Extract<ErrorResponse | IPNSKeyResponse, object>> = {}): ErrorResponse | IPNSKeyResponse => (faker.helpers.arrayElement([{error: faker.string.alpha({length: {min: 10, max: 20}}), ...overrideResponse}, {created: faker.date.past().toISOString().slice(0, 19) + 'Z', id: faker.number.int(), ipns_name: faker.string.alpha({length: {min: 10, max: 20}}), last_published_at: faker.helpers.arrayElement([faker.date.past().toISOString().slice(0, 19) + 'Z', undefined]), name: faker.string.alpha({length: {min: 10, max: 20}}), peer_id: faker.string.alpha({length: {min: 10, max: 20}}), value: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), ...overrideResponse}]))\n\nexport const getDeleteApiIpnsKeysIdResponseMock = (overrideResponse: Partial<Extract<ErrorResponse, object>> = {}): ErrorResponse => ({error: faker.string.alpha({length: {min: 10, max: 20}}), ...overrideResponse})\n\nexport const getGetApiIpnsKeysIdResponseMock = (overrideResponse: Partial<Extract<IPNSKeyResponse, object>> = {}): IPNSKeyResponse => ({created: faker.date.past().toISOString().slice(0, 19) + 'Z', id: faker.number.int(), ipns_name: faker.string.alpha({length: {min: 10, max: 20}}), last_published_at: faker.helpers.arrayElement([faker.date.past().toISOString().slice(0, 19) + 'Z', undefined]), name: faker.string.alpha({length: {min: 10, max: 20}}), peer_id: faker.string.alpha({length: {min: 10, max: 20}}), value: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), ...overrideResponse})\n\nexport const getPostApiIpnsKeysIdRepublishResponseMock = (overrideResponse: Partial<Extract<IPNSRepublishResponse, object>> = {}): IPNSRepublishResponse => ({count: faker.number.int(), message: faker.string.alpha({length: {min: 10, max: 20}}), ...overrideResponse})\n\nexport const getPostApiIpnsPublishResponseMock = (overrideResponse: Partial<Extract<IPNSPublishResponse, object>> = {}): IPNSPublishResponse => ({name: faker.string.alpha({length: {min: 10, max: 20}}), published: faker.date.past().toISOString().slice(0, 19) + 'Z', sequence: faker.number.int(), validity: faker.date.past().toISOString().slice(0, 19) + 'Z', value: faker.string.alpha({length: {min: 10, max: 20}}), ...overrideResponse})\n\nexport const getGetApiIpnsResolveNameResponseMock = (overrideResponse: Partial<Extract<IPNSResolveResponse, object>> = {}): IPNSResolveResponse => ({expired: faker.datatype.boolean(), expires: faker.date.past().toISOString().slice(0, 19) + 'Z', name: faker.string.alpha({length: {min: 10, max: 20}}), path: faker.string.alpha({length: {min: 10, max: 20}}), sequence: faker.number.int(), value: faker.string.alpha({length: {min: 10, max: 20}}), ...overrideResponse})\n\n\nexport const getGetApiIpnsKeysMockHandler = (overrideResponse?: IPNSKeyListResponseResponse | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<IPNSKeyListResponseResponse> | IPNSKeyListResponseResponse), options?: RequestHandlerOptions) => {\n return http.get('*/api/ipns/keys', async (info: Parameters<Parameters<typeof http.get>[1]>[0]) => {await delay(0);\n\n\n return HttpResponse.json(overrideResponse !== undefined\n ? (typeof overrideResponse === \"function\" ? await overrideResponse(info) : overrideResponse)\n : getGetApiIpnsKeysResponseMock(),\n { status: 200\n })\n }, options)\n}\n\nexport const getPostApiIpnsKeysMockHandler = (overrideResponse?: ErrorResponse | IPNSKeyResponse | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<ErrorResponse | IPNSKeyResponse> | ErrorResponse | IPNSKeyResponse), options?: RequestHandlerOptions) => {\n return http.post('*/api/ipns/keys', async (info: Parameters<Parameters<typeof http.post>[1]>[0]) => {await delay(0);\n\n\n return HttpResponse.json(overrideResponse !== undefined\n ? (typeof overrideResponse === \"function\" ? await overrideResponse(info) : overrideResponse)\n : getPostApiIpnsKeysResponseMock(),\n { status: 200\n })\n }, options)\n}\n\nexport const getDeleteApiIpnsKeysIdMockHandler = (overrideResponse?: ErrorResponse | void | ((info: Parameters<Parameters<typeof http.delete>[1]>[0]) => Promise<ErrorResponse | void> | ErrorResponse | void), options?: RequestHandlerOptions) => {\n return http.delete('*/api/ipns/keys/: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 : getDeleteApiIpnsKeysIdResponseMock();\n return resolvedBody === undefined\n ? new HttpResponse(null, { status: 204 })\n : HttpResponse.json(resolvedBody, { status: 200 })\n }, options)\n}\n\nexport const getGetApiIpnsKeysIdMockHandler = (overrideResponse?: IPNSKeyResponse | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<IPNSKeyResponse> | IPNSKeyResponse), options?: RequestHandlerOptions) => {\n return http.get('*/api/ipns/keys/:id', async (info: Parameters<Parameters<typeof http.get>[1]>[0]) => {await delay(0);\n\n\n return HttpResponse.json(overrideResponse !== undefined\n ? (typeof overrideResponse === \"function\" ? await overrideResponse(info) : overrideResponse)\n : getGetApiIpnsKeysIdResponseMock(),\n { status: 200\n })\n }, options)\n}\n\nexport const getPostApiIpnsKeysIdRepublishMockHandler = (overrideResponse?: IPNSRepublishResponse | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<IPNSRepublishResponse> | IPNSRepublishResponse), options?: RequestHandlerOptions) => {\n return http.post('*/api/ipns/keys/:id/republish', async (info: Parameters<Parameters<typeof http.post>[1]>[0]) => {await delay(0);\n\n\n return HttpResponse.json(overrideResponse !== undefined\n ? (typeof overrideResponse === \"function\" ? await overrideResponse(info) : overrideResponse)\n : getPostApiIpnsKeysIdRepublishResponseMock(),\n { status: 200\n })\n }, options)\n}\n\nexport const getPostApiIpnsPublishMockHandler = (overrideResponse?: IPNSPublishResponse | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<IPNSPublishResponse> | IPNSPublishResponse), options?: RequestHandlerOptions) => {\n return http.post('*/api/ipns/publish', async (info: Parameters<Parameters<typeof http.post>[1]>[0]) => {await delay(0);\n\n\n return HttpResponse.json(overrideResponse !== undefined\n ? (typeof overrideResponse === \"function\" ? await overrideResponse(info) : overrideResponse)\n : getPostApiIpnsPublishResponseMock(),\n { status: 200\n })\n }, options)\n}\n\nexport const getGetApiIpnsResolveNameMockHandler = (overrideResponse?: IPNSResolveResponse | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<IPNSResolveResponse> | IPNSResolveResponse), options?: RequestHandlerOptions) => {\n return http.get('*/api/ipns/resolve/:name', async (info: Parameters<Parameters<typeof http.get>[1]>[0]) => {await delay(0);\n\n\n return HttpResponse.json(overrideResponse !== undefined\n ? (typeof overrideResponse === \"function\" ? await overrideResponse(info) : overrideResponse)\n : getGetApiIpnsResolveNameResponseMock(),\n { status: 200\n })\n }, options)\n}\nexport const getIpnsMock = () => [\n getGetApiIpnsKeysMockHandler(),\n getPostApiIpnsKeysMockHandler(),\n getDeleteApiIpnsKeysIdMockHandler(),\n getGetApiIpnsKeysIdMockHandler(),\n getPostApiIpnsKeysIdRepublishMockHandler(),\n getPostApiIpnsPublishMockHandler(),\n getGetApiIpnsResolveNameMockHandler()\n]\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0DA,MAAa,iCAAiC,mBAA0E,EAAE,MAAmC;CAAC,MAAM,MAAM,KAAK,EAAE,QAAQ,MAAM,OAAO,IAAI;EAAC,KAAK;EAAG,KAAK;EAAG,CAAC,EAAE,GAAG,GAAG,MAAM,IAAI,EAAE,CAAC,WAAW;EAAC,SAAS,MAAM,KAAK,MAAM,CAAC,aAAa,CAAC,MAAM,GAAG,GAAG,GAAG;EAAK,IAAI,MAAM,OAAO,KAAK;EAAE,WAAW,MAAM,OAAO,MAAM,EAAC,QAAQ;GAAC,KAAK;GAAI,KAAK;GAAG,EAAC,CAAC;EAAE,mBAAmB,MAAM,QAAQ,aAAa,CAAC,MAAM,KAAK,MAAM,CAAC,aAAa,CAAC,MAAM,GAAG,GAAG,GAAG,KAAK,OAA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AC/B,8BAA8B;CAC9B,+BAA+B;CAC/B,mCAAmC;CACnC,gCAAgC;CAChC,0CAA0C;CAC1C,kCAAkC;CAClC,qCAAqC;CACtC"}
|
|
1
|
+
{"version":3,"file":"ipns.msw.js","names":[],"sources":["../../../../../src/api/generated/ipns/ipns.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 IPNSKeyListResponseResponse,\n IPNSKeyResponse,\n IPNSPublishResponse,\n IPNSRepublishResponse,\n IPNSResolveResponse\n} from '../schemas';\n\n\nexport const getGetApiIpnsKeysResponseMock = (overrideResponse: Partial<Extract<IPNSKeyListResponseResponse, object>> = {}): IPNSKeyListResponseResponse => ({data: Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => ({created: faker.date.past().toISOString().slice(0, 19) + 'Z', id: faker.number.int(), ipns_name: faker.string.alpha({length: {min: 10, max: 20}}), last_published_at: faker.helpers.arrayElement([faker.date.past().toISOString().slice(0, 19) + 'Z', undefined]), name: faker.string.alpha({length: {min: 10, max: 20}}), peer_id: faker.string.alpha({length: {min: 10, max: 20}}), value: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined])})), total: faker.number.int(), ...overrideResponse})\n\nexport const getPostApiIpnsKeysResponseMock = (overrideResponse: Partial<Extract<ErrorResponse | IPNSKeyResponse, object>> = {}): ErrorResponse | IPNSKeyResponse => (faker.helpers.arrayElement([{error: faker.string.alpha({length: {min: 10, max: 20}}), ...overrideResponse}, {created: faker.date.past().toISOString().slice(0, 19) + 'Z', id: faker.number.int(), ipns_name: faker.string.alpha({length: {min: 10, max: 20}}), last_published_at: faker.helpers.arrayElement([faker.date.past().toISOString().slice(0, 19) + 'Z', undefined]), name: faker.string.alpha({length: {min: 10, max: 20}}), peer_id: faker.string.alpha({length: {min: 10, max: 20}}), value: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), ...overrideResponse}]))\n\nexport const getDeleteApiIpnsKeysIdResponseMock = (overrideResponse: Partial<Extract<ErrorResponse, object>> = {}): ErrorResponse => ({error: faker.string.alpha({length: {min: 10, max: 20}}), ...overrideResponse})\n\nexport const getGetApiIpnsKeysIdResponseMock = (overrideResponse: Partial<Extract<IPNSKeyResponse, object>> = {}): IPNSKeyResponse => ({created: faker.date.past().toISOString().slice(0, 19) + 'Z', id: faker.number.int(), ipns_name: faker.string.alpha({length: {min: 10, max: 20}}), last_published_at: faker.helpers.arrayElement([faker.date.past().toISOString().slice(0, 19) + 'Z', undefined]), name: faker.string.alpha({length: {min: 10, max: 20}}), peer_id: faker.string.alpha({length: {min: 10, max: 20}}), value: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), ...overrideResponse})\n\nexport const getPostApiIpnsKeysIdRepublishResponseMock = (overrideResponse: Partial<Extract<IPNSRepublishResponse, object>> = {}): IPNSRepublishResponse => ({count: faker.number.int(), message: faker.string.alpha({length: {min: 10, max: 20}}), ...overrideResponse})\n\nexport const getPostApiIpnsPublishResponseMock = (overrideResponse: Partial<Extract<IPNSPublishResponse, object>> = {}): IPNSPublishResponse => ({name: faker.string.alpha({length: {min: 10, max: 20}}), published: faker.date.past().toISOString().slice(0, 19) + 'Z', sequence: faker.number.int(), validity: faker.date.past().toISOString().slice(0, 19) + 'Z', value: faker.string.alpha({length: {min: 10, max: 20}}), ...overrideResponse})\n\nexport const getGetApiIpnsResolveNameResponseMock = (overrideResponse: Partial<Extract<IPNSResolveResponse, object>> = {}): IPNSResolveResponse => ({expired: faker.datatype.boolean(), expires: faker.date.past().toISOString().slice(0, 19) + 'Z', name: faker.string.alpha({length: {min: 10, max: 20}}), path: faker.string.alpha({length: {min: 10, max: 20}}), sequence: faker.number.int(), value: faker.string.alpha({length: {min: 10, max: 20}}), ...overrideResponse})\n\n\nexport const getGetApiIpnsKeysMockHandler = (overrideResponse?: IPNSKeyListResponseResponse | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<IPNSKeyListResponseResponse> | IPNSKeyListResponseResponse), options?: RequestHandlerOptions) => {\n return http.get('*/api/ipns/keys', async (info: Parameters<Parameters<typeof http.get>[1]>[0]) => {\n\n\n return HttpResponse.json(overrideResponse !== undefined\n ? (typeof overrideResponse === \"function\" ? await overrideResponse(info) : overrideResponse)\n : getGetApiIpnsKeysResponseMock(),\n { status: 200\n })\n }, options)\n}\n\nexport const getPostApiIpnsKeysMockHandler = (overrideResponse?: ErrorResponse | IPNSKeyResponse | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<ErrorResponse | IPNSKeyResponse> | ErrorResponse | IPNSKeyResponse), options?: RequestHandlerOptions) => {\n return http.post('*/api/ipns/keys', async (info: Parameters<Parameters<typeof http.post>[1]>[0]) => {\n\n\n return HttpResponse.json(overrideResponse !== undefined\n ? (typeof overrideResponse === \"function\" ? await overrideResponse(info) : overrideResponse)\n : getPostApiIpnsKeysResponseMock(),\n { status: 200\n })\n }, options)\n}\n\nexport const getDeleteApiIpnsKeysIdMockHandler = (overrideResponse?: ErrorResponse | void | ((info: Parameters<Parameters<typeof http.delete>[1]>[0]) => Promise<ErrorResponse | void> | ErrorResponse | void), options?: RequestHandlerOptions) => {\n return http.delete('*/api/ipns/keys/: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 : getDeleteApiIpnsKeysIdResponseMock();\n return resolvedBody === undefined\n ? new HttpResponse(null, { status: 204 })\n : HttpResponse.json(resolvedBody, { status: 200 })\n }, options)\n}\n\nexport const getGetApiIpnsKeysIdMockHandler = (overrideResponse?: IPNSKeyResponse | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<IPNSKeyResponse> | IPNSKeyResponse), options?: RequestHandlerOptions) => {\n return http.get('*/api/ipns/keys/:id', async (info: Parameters<Parameters<typeof http.get>[1]>[0]) => {\n\n\n return HttpResponse.json(overrideResponse !== undefined\n ? (typeof overrideResponse === \"function\" ? await overrideResponse(info) : overrideResponse)\n : getGetApiIpnsKeysIdResponseMock(),\n { status: 200\n })\n }, options)\n}\n\nexport const getPostApiIpnsKeysIdRepublishMockHandler = (overrideResponse?: IPNSRepublishResponse | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<IPNSRepublishResponse> | IPNSRepublishResponse), options?: RequestHandlerOptions) => {\n return http.post('*/api/ipns/keys/:id/republish', async (info: Parameters<Parameters<typeof http.post>[1]>[0]) => {\n\n\n return HttpResponse.json(overrideResponse !== undefined\n ? (typeof overrideResponse === \"function\" ? await overrideResponse(info) : overrideResponse)\n : getPostApiIpnsKeysIdRepublishResponseMock(),\n { status: 200\n })\n }, options)\n}\n\nexport const getPostApiIpnsPublishMockHandler = (overrideResponse?: IPNSPublishResponse | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<IPNSPublishResponse> | IPNSPublishResponse), options?: RequestHandlerOptions) => {\n return http.post('*/api/ipns/publish', async (info: Parameters<Parameters<typeof http.post>[1]>[0]) => {\n\n\n return HttpResponse.json(overrideResponse !== undefined\n ? (typeof overrideResponse === \"function\" ? await overrideResponse(info) : overrideResponse)\n : getPostApiIpnsPublishResponseMock(),\n { status: 200\n })\n }, options)\n}\n\nexport const getGetApiIpnsResolveNameMockHandler = (overrideResponse?: IPNSResolveResponse | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<IPNSResolveResponse> | IPNSResolveResponse), options?: RequestHandlerOptions) => {\n return http.get('*/api/ipns/resolve/:name', async (info: Parameters<Parameters<typeof http.get>[1]>[0]) => {\n\n\n return HttpResponse.json(overrideResponse !== undefined\n ? (typeof overrideResponse === \"function\" ? await overrideResponse(info) : overrideResponse)\n : getGetApiIpnsResolveNameResponseMock(),\n { status: 200\n })\n }, options)\n}\nexport const getIpnsMock = () => [\n getGetApiIpnsKeysMockHandler(),\n getPostApiIpnsKeysMockHandler(),\n getDeleteApiIpnsKeysIdMockHandler(),\n getGetApiIpnsKeysIdMockHandler(),\n getPostApiIpnsKeysIdRepublishMockHandler(),\n getPostApiIpnsPublishMockHandler(),\n getGetApiIpnsResolveNameMockHandler()\n]\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyDA,MAAa,iCAAiC,mBAA0E,EAAE,MAAmC;CAAC,MAAM,MAAM,KAAK,EAAE,QAAQ,MAAM,OAAO,IAAI;EAAC,KAAK;EAAG,KAAK;EAAG,CAAC,EAAE,GAAG,GAAG,MAAM,IAAI,EAAE,CAAC,WAAW;EAAC,SAAS,MAAM,KAAK,MAAM,CAAC,aAAa,CAAC,MAAM,GAAG,GAAG,GAAG;EAAK,IAAI,MAAM,OAAO,KAAK;EAAE,WAAW,MAAM,OAAO,MAAM,EAAC,QAA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;CAC9B,+BAA+B;CAC/B,mCAAmC;CACnC,gCAAgC;CAChC,0CAA0C;CAC1C,kCAAkC;CAClC,qCAAqC;CACtC"}
|
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
import { faker } from "@faker-js/faker";
|
|
2
|
-
import { HttpResponse,
|
|
2
|
+
import { HttpResponse, http } from "msw";
|
|
3
3
|
|
|
4
4
|
//#region src/api/generated/pinning/pinning.msw.ts
|
|
5
5
|
/**
|
|
6
|
-
* Generated by orval v8.
|
|
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 getGetPinsResponseMock = (overrideResponse = {}) => ({
|
|
@@ -240,32 +240,27 @@ const getPostPinsRequestidResponseMock = (overrideResponse = {}) => faker.helper
|
|
|
240
240
|
}]);
|
|
241
241
|
const getGetPinsMockHandler = (overrideResponse, options) => {
|
|
242
242
|
return http.get("*/pins", async (info) => {
|
|
243
|
-
await delay(0);
|
|
244
243
|
return HttpResponse.json(overrideResponse !== void 0 ? typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse : getGetPinsResponseMock(), { status: 200 });
|
|
245
244
|
}, options);
|
|
246
245
|
};
|
|
247
246
|
const getPostPinsMockHandler = (overrideResponse, options) => {
|
|
248
247
|
return http.post("*/pins", async (info) => {
|
|
249
|
-
await delay(0);
|
|
250
248
|
return HttpResponse.json(overrideResponse !== void 0 ? typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse : getPostPinsResponseMock(), { status: 200 });
|
|
251
249
|
}, options);
|
|
252
250
|
};
|
|
253
251
|
const getDeletePinsRequestidMockHandler = (overrideResponse, options) => {
|
|
254
252
|
return http.delete("*/pins/:requestid", async (info) => {
|
|
255
|
-
await delay(0);
|
|
256
253
|
const resolvedBody = overrideResponse !== void 0 ? typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse : getDeletePinsRequestidResponseMock();
|
|
257
254
|
return resolvedBody === void 0 ? new HttpResponse(null, { status: 202 }) : HttpResponse.json(resolvedBody, { status: 200 });
|
|
258
255
|
}, options);
|
|
259
256
|
};
|
|
260
257
|
const getGetPinsRequestidMockHandler = (overrideResponse, options) => {
|
|
261
258
|
return http.get("*/pins/:requestid", async (info) => {
|
|
262
|
-
await delay(0);
|
|
263
259
|
return HttpResponse.json(overrideResponse !== void 0 ? typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse : getGetPinsRequestidResponseMock(), { status: 200 });
|
|
264
260
|
}, options);
|
|
265
261
|
};
|
|
266
262
|
const getPostPinsRequestidMockHandler = (overrideResponse, options) => {
|
|
267
263
|
return http.post("*/pins/:requestid", async (info) => {
|
|
268
|
-
await delay(0);
|
|
269
264
|
return HttpResponse.json(overrideResponse !== void 0 ? typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse : getPostPinsRequestidResponseMock(), { status: 200 });
|
|
270
265
|
}, options);
|
|
271
266
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pinning.msw.js","names":[],"sources":["../../../../../src/api/generated/pinning/pinning.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 PinResultsResponse,\n PinStatusResponse\n} from '../schemas';\n\n\nexport const getGetPinsResponseMock = (overrideResponse: Partial<Extract<PinResultsResponse, object>> = {}): PinResultsResponse => ({count: faker.number.int(), results: Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => ({created: faker.date.past().toISOString().slice(0, 19) + 'Z', delegates: Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => (Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => ({})))), info: faker.helpers.arrayElement([{\n [faker.string.alphanumeric(5)]: faker.string.alpha({length: {min: 10, max: 20}})\n }, undefined]), pin: {cid: faker.string.alpha({length: {min: 10, max: 20}}), meta: faker.helpers.arrayElement([{\n [faker.string.alphanumeric(5)]: faker.string.alpha({length: {min: 10, max: 20}})\n }, undefined]), name: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), origins: faker.helpers.arrayElement([Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => (faker.string.alpha({length: {min: 10, max: 20}}))), undefined])}, requestid: faker.string.alpha({length: {min: 10, max: 20}}), status: faker.string.alpha({length: {min: 10, max: 20}})})), ...overrideResponse})\n\nexport const getPostPinsResponseMock = (overrideResponse: Partial<Extract<ErrorResponse | PinStatusResponse, object>> = {}): ErrorResponse | PinStatusResponse => (faker.helpers.arrayElement([{error: faker.string.alpha({length: {min: 10, max: 20}}), ...overrideResponse}, {created: faker.date.past().toISOString().slice(0, 19) + 'Z', delegates: Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => (Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => ({})))), info: faker.helpers.arrayElement([{\n [faker.string.alphanumeric(5)]: faker.string.alpha({length: {min: 10, max: 20}})\n }, undefined]), pin: {cid: faker.string.alpha({length: {min: 10, max: 20}}), meta: faker.helpers.arrayElement([{\n [faker.string.alphanumeric(5)]: faker.string.alpha({length: {min: 10, max: 20}})\n }, undefined]), name: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), origins: faker.helpers.arrayElement([Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => (faker.string.alpha({length: {min: 10, max: 20}}))), undefined])}, requestid: faker.string.alpha({length: {min: 10, max: 20}}), status: faker.string.alpha({length: {min: 10, max: 20}}), ...overrideResponse}]))\n\nexport const getDeletePinsRequestidResponseMock = (overrideResponse: Partial<Extract<ErrorResponse, object>> = {}): ErrorResponse => ({error: faker.string.alpha({length: {min: 10, max: 20}}), ...overrideResponse})\n\nexport const getGetPinsRequestidResponseMock = (overrideResponse: Partial<Extract<PinStatusResponse, object>> = {}): PinStatusResponse => ({created: faker.date.past().toISOString().slice(0, 19) + 'Z', delegates: Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => (Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => ({})))), info: faker.helpers.arrayElement([{\n [faker.string.alphanumeric(5)]: faker.string.alpha({length: {min: 10, max: 20}})\n }, undefined]), pin: {cid: faker.string.alpha({length: {min: 10, max: 20}}), meta: faker.helpers.arrayElement([{\n [faker.string.alphanumeric(5)]: faker.string.alpha({length: {min: 10, max: 20}})\n }, undefined]), name: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), origins: faker.helpers.arrayElement([Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => (faker.string.alpha({length: {min: 10, max: 20}}))), undefined])}, requestid: faker.string.alpha({length: {min: 10, max: 20}}), status: faker.string.alpha({length: {min: 10, max: 20}}), ...overrideResponse})\n\nexport const getPostPinsRequestidResponseMock = (overrideResponse: Partial<Extract<ErrorResponse | PinStatusResponse, object>> = {}): ErrorResponse | PinStatusResponse => (faker.helpers.arrayElement([{error: faker.string.alpha({length: {min: 10, max: 20}}), ...overrideResponse}, {created: faker.date.past().toISOString().slice(0, 19) + 'Z', delegates: Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => (Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => ({})))), info: faker.helpers.arrayElement([{\n [faker.string.alphanumeric(5)]: faker.string.alpha({length: {min: 10, max: 20}})\n }, undefined]), pin: {cid: faker.string.alpha({length: {min: 10, max: 20}}), meta: faker.helpers.arrayElement([{\n [faker.string.alphanumeric(5)]: faker.string.alpha({length: {min: 10, max: 20}})\n }, undefined]), name: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), origins: faker.helpers.arrayElement([Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => (faker.string.alpha({length: {min: 10, max: 20}}))), undefined])}, requestid: faker.string.alpha({length: {min: 10, max: 20}}), status: faker.string.alpha({length: {min: 10, max: 20}}), ...overrideResponse}]))\n\n\nexport const getGetPinsMockHandler = (overrideResponse?: PinResultsResponse | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<PinResultsResponse> | PinResultsResponse), options?: RequestHandlerOptions) => {\n return http.get('*/pins', async (info: Parameters<Parameters<typeof http.get>[1]>[0]) => {await delay(0);\n\n\n return HttpResponse.json(overrideResponse !== undefined\n ? (typeof overrideResponse === \"function\" ? await overrideResponse(info) : overrideResponse)\n : getGetPinsResponseMock(),\n { status: 200\n })\n }, options)\n}\n\nexport const getPostPinsMockHandler = (overrideResponse?: ErrorResponse | PinStatusResponse | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<ErrorResponse | PinStatusResponse> | ErrorResponse | PinStatusResponse), options?: RequestHandlerOptions) => {\n return http.post('*/pins', async (info: Parameters<Parameters<typeof http.post>[1]>[0]) => {await delay(0);\n\n\n return HttpResponse.json(overrideResponse !== undefined\n ? (typeof overrideResponse === \"function\" ? await overrideResponse(info) : overrideResponse)\n : getPostPinsResponseMock(),\n { status: 200\n })\n }, options)\n}\n\nexport const getDeletePinsRequestidMockHandler = (overrideResponse?: ErrorResponse | void | ((info: Parameters<Parameters<typeof http.delete>[1]>[0]) => Promise<ErrorResponse | void> | ErrorResponse | void), options?: RequestHandlerOptions) => {\n return http.delete('*/pins/:requestid', 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 : getDeletePinsRequestidResponseMock();\n return resolvedBody === undefined\n ? new HttpResponse(null, { status: 202 })\n : HttpResponse.json(resolvedBody, { status: 200 })\n }, options)\n}\n\nexport const getGetPinsRequestidMockHandler = (overrideResponse?: PinStatusResponse | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<PinStatusResponse> | PinStatusResponse), options?: RequestHandlerOptions) => {\n return http.get('*/pins/:requestid', async (info: Parameters<Parameters<typeof http.get>[1]>[0]) => {await delay(0);\n\n\n return HttpResponse.json(overrideResponse !== undefined\n ? (typeof overrideResponse === \"function\" ? await overrideResponse(info) : overrideResponse)\n : getGetPinsRequestidResponseMock(),\n { status: 200\n })\n }, options)\n}\n\nexport const getPostPinsRequestidMockHandler = (overrideResponse?: ErrorResponse | PinStatusResponse | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<ErrorResponse | PinStatusResponse> | ErrorResponse | PinStatusResponse), options?: RequestHandlerOptions) => {\n return http.post('*/pins/:requestid', async (info: Parameters<Parameters<typeof http.post>[1]>[0]) => {await delay(0);\n\n\n return HttpResponse.json(overrideResponse !== undefined\n ? (typeof overrideResponse === \"function\" ? await overrideResponse(info) : overrideResponse)\n : getPostPinsRequestidResponseMock(),\n { status: 200\n })\n }, options)\n}\nexport const getPinningMock = () => [\n getGetPinsMockHandler(),\n getPostPinsMockHandler(),\n getDeletePinsRequestidMockHandler(),\n getGetPinsRequestidMockHandler(),\n getPostPinsRequestidMockHandler()\n]\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuDA,MAAa,0BAA0B,mBAAiE,EAAE,MAA0B;CAAC,OAAO,MAAM,OAAO,KAAK;CAAE,SAAS,MAAM,KAAK,EAAE,QAAQ,MAAM,OAAO,IAAI;EAAC,KAAK;EAAG,KAAK;EAAG,CAAC,EAAE,GAAG,GAAG,MAAM,IAAI,EAAE,CAAC,WAAW;EAAC,SAAS,MAAM,KAAK,MAAM,CAAC,aAAa,CAAC,MAAM,GAAG,GAAG,GAAG;EAAK,WAAW,MAAM,KAAK,EAAE,QAAQ,MAAM,OAAO,IAAI;GAAC,KAAK;GAAG,KAAK;GAAG,CAAC,EAAE,GAAG,GAAG,MAAM,IAAI,EAAE,CAAC,UAAW,MAAM,KAAK,EAAE,QAAQ,MAAM,OAAO,IAAI;GAAC,KAAK;GAA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cesContent":["/**\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 PinResultsResponse,\n PinStatusResponse\n} from '../schemas';\n\n\nexport const getGetPinsResponseMock = (overrideResponse: Partial<Extract<PinResultsResponse, object>> = {}): PinResultsResponse => ({count: faker.number.int(), results: Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => ({created: faker.date.past().toISOString().slice(0, 19) + 'Z', delegates: Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => (Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => ({})))), info: faker.helpers.arrayElement([{\n [faker.string.alphanumeric(5)]: faker.string.alpha({length: {min: 10, max: 20}})\n }, undefined]), pin: {cid: faker.string.alpha({length: {min: 10, max: 20}}), meta: faker.helpers.arrayElement([{\n [faker.string.alphanumeric(5)]: faker.string.alpha({length: {min: 10, max: 20}})\n }, undefined]), name: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), origins: faker.helpers.arrayElement([Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => (faker.string.alpha({length: {min: 10, max: 20}}))), undefined])}, requestid: faker.string.alpha({length: {min: 10, max: 20}}), status: faker.string.alpha({length: {min: 10, max: 20}})})), ...overrideResponse})\n\nexport const getPostPinsResponseMock = (overrideResponse: Partial<Extract<ErrorResponse | PinStatusResponse, object>> = {}): ErrorResponse | PinStatusResponse => (faker.helpers.arrayElement([{error: faker.string.alpha({length: {min: 10, max: 20}}), ...overrideResponse}, {created: faker.date.past().toISOString().slice(0, 19) + 'Z', delegates: Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => (Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => ({})))), info: faker.helpers.arrayElement([{\n [faker.string.alphanumeric(5)]: faker.string.alpha({length: {min: 10, max: 20}})\n }, undefined]), pin: {cid: faker.string.alpha({length: {min: 10, max: 20}}), meta: faker.helpers.arrayElement([{\n [faker.string.alphanumeric(5)]: faker.string.alpha({length: {min: 10, max: 20}})\n }, undefined]), name: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), origins: faker.helpers.arrayElement([Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => (faker.string.alpha({length: {min: 10, max: 20}}))), undefined])}, requestid: faker.string.alpha({length: {min: 10, max: 20}}), status: faker.string.alpha({length: {min: 10, max: 20}}), ...overrideResponse}]))\n\nexport const getDeletePinsRequestidResponseMock = (overrideResponse: Partial<Extract<ErrorResponse, object>> = {}): ErrorResponse => ({error: faker.string.alpha({length: {min: 10, max: 20}}), ...overrideResponse})\n\nexport const getGetPinsRequestidResponseMock = (overrideResponse: Partial<Extract<PinStatusResponse, object>> = {}): PinStatusResponse => ({created: faker.date.past().toISOString().slice(0, 19) + 'Z', delegates: Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => (Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => ({})))), info: faker.helpers.arrayElement([{\n [faker.string.alphanumeric(5)]: faker.string.alpha({length: {min: 10, max: 20}})\n }, undefined]), pin: {cid: faker.string.alpha({length: {min: 10, max: 20}}), meta: faker.helpers.arrayElement([{\n [faker.string.alphanumeric(5)]: faker.string.alpha({length: {min: 10, max: 20}})\n }, undefined]), name: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), origins: faker.helpers.arrayElement([Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => (faker.string.alpha({length: {min: 10, max: 20}}))), undefined])}, requestid: faker.string.alpha({length: {min: 10, max: 20}}), status: faker.string.alpha({length: {min: 10, max: 20}}), ...overrideResponse})\n\nexport const getPostPinsRequestidResponseMock = (overrideResponse: Partial<Extract<ErrorResponse | PinStatusResponse, object>> = {}): ErrorResponse | PinStatusResponse => (faker.helpers.arrayElement([{error: faker.string.alpha({length: {min: 10, max: 20}}), ...overrideResponse}, {created: faker.date.past().toISOString().slice(0, 19) + 'Z', delegates: Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => (Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => ({})))), info: faker.helpers.arrayElement([{\n [faker.string.alphanumeric(5)]: faker.string.alpha({length: {min: 10, max: 20}})\n }, undefined]), pin: {cid: faker.string.alpha({length: {min: 10, max: 20}}), meta: faker.helpers.arrayElement([{\n [faker.string.alphanumeric(5)]: faker.string.alpha({length: {min: 10, max: 20}})\n }, undefined]), name: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), origins: faker.helpers.arrayElement([Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => (faker.string.alpha({length: {min: 10, max: 20}}))), undefined])}, requestid: faker.string.alpha({length: {min: 10, max: 20}}), status: faker.string.alpha({length: {min: 10, max: 20}}), ...overrideResponse}]))\n\n\nexport const getGetPinsMockHandler = (overrideResponse?: PinResultsResponse | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<PinResultsResponse> | PinResultsResponse), options?: RequestHandlerOptions) => {\n return http.get('*/pins', async (info: Parameters<Parameters<typeof http.get>[1]>[0]) => {\n\n\n return HttpResponse.json(overrideResponse !== undefined\n ? (typeof overrideResponse === \"function\" ? await overrideResponse(info) : overrideResponse)\n : getGetPinsResponseMock(),\n { status: 200\n })\n }, options)\n}\n\nexport const getPostPinsMockHandler = (overrideResponse?: ErrorResponse | PinStatusResponse | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<ErrorResponse | PinStatusResponse> | ErrorResponse | PinStatusResponse), options?: RequestHandlerOptions) => {\n return http.post('*/pins', async (info: Parameters<Parameters<typeof http.post>[1]>[0]) => {\n\n\n return HttpResponse.json(overrideResponse !== undefined\n ? (typeof overrideResponse === \"function\" ? await overrideResponse(info) : overrideResponse)\n : getPostPinsResponseMock(),\n { status: 200\n })\n }, options)\n}\n\nexport const getDeletePinsRequestidMockHandler = (overrideResponse?: ErrorResponse | void | ((info: Parameters<Parameters<typeof http.delete>[1]>[0]) => Promise<ErrorResponse | void> | ErrorResponse | void), options?: RequestHandlerOptions) => {\n return http.delete('*/pins/:requestid', async (info: Parameters<Parameters<typeof http.delete>[1]>[0]) => {\n\n const resolvedBody = overrideResponse !== undefined\n ? (typeof overrideResponse === \"function\" ? await overrideResponse(info) : overrideResponse)\n : getDeletePinsRequestidResponseMock();\n return resolvedBody === undefined\n ? new HttpResponse(null, { status: 202 })\n : HttpResponse.json(resolvedBody, { status: 200 })\n }, options)\n}\n\nexport const getGetPinsRequestidMockHandler = (overrideResponse?: PinStatusResponse | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<PinStatusResponse> | PinStatusResponse), options?: RequestHandlerOptions) => {\n return http.get('*/pins/:requestid', async (info: Parameters<Parameters<typeof http.get>[1]>[0]) => {\n\n\n return HttpResponse.json(overrideResponse !== undefined\n ? (typeof overrideResponse === \"function\" ? await overrideResponse(info) : overrideResponse)\n : getGetPinsRequestidResponseMock(),\n { status: 200\n })\n }, options)\n}\n\nexport const getPostPinsRequestidMockHandler = (overrideResponse?: ErrorResponse | PinStatusResponse | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<ErrorResponse | PinStatusResponse> | ErrorResponse | PinStatusResponse), options?: RequestHandlerOptions) => {\n return http.post('*/pins/:requestid', async (info: Parameters<Parameters<typeof http.post>[1]>[0]) => {\n\n\n return HttpResponse.json(overrideResponse !== undefined\n ? (typeof overrideResponse === \"function\" ? await overrideResponse(info) : overrideResponse)\n : getPostPinsRequestidResponseMock(),\n { status: 200\n })\n }, options)\n}\nexport const getPinningMock = () => [\n getGetPinsMockHandler(),\n getPostPinsMockHandler(),\n getDeletePinsRequestidMockHandler(),\n getGetPinsRequestidMockHandler(),\n getPostPinsRequestidMockHandler()\n]\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsDA,MAAa,0BAA0B,mBAAiE,EAAE,MAA0B;CAAC,OAAO,MAAM,OAAO,KAAK;CAAE,SAAS,MAAM,KAAK,EAAE,QAAQ,MAAM,OAAO,IAAI;EAAC,KAAK;EAAG,KAAK;EAAG,CAAC,EAAE,GAAG,GAAG,MAAM,IAAI,EAAE,CAAC,WAAW;EAAC,SAAS,MAAM,KAAK,MAAM,CAAC,aAAa,CAAC,MAAM,GAAG,GAAG,GAAG;EAAK,WAAW,MAAM,KAAK,EAAE,QAAQ,MAAM,OAAO,IAAI;GAAC,KAAK;GAAG,KAAK;GAAG,CAAC,EAAE,GAAG,GAAG,MAAM,IAAI,EAAE,CAAC,UAAW,MAAM,KAAK,EAAE,QAAQ,MAAM,OAAO,IAAI;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al 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 BlockMetaResponse {
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
//#region src/api/generated/schemas/component.d.ts
|
|
2
2
|
/**
|
|
3
|
-
* Generated by orval v8.
|
|
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 Component {
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
//#region src/api/generated/schemas/errorResponse.d.ts
|
|
2
2
|
/**
|
|
3
|
-
* Generated by orval v8.
|
|
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 ErrorResponse {
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
//#region src/api/generated/schemas/fileManagerItem.d.ts
|
|
2
2
|
/**
|
|
3
|
-
* Generated by orval v8.
|
|
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 FileManagerItem {
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
//#region src/api/generated/schemas/gatewayWebsiteResponse.d.ts
|
|
2
2
|
/**
|
|
3
|
-
* Generated by orval v8.
|
|
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 GatewayWebsiteResponse {
|