@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":"dns.msw.js","names":[],"sources":["../../../../../src/api/generated/dns/dns.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 BulkDeleteResponse,\n BulkRecordsResponse,\n ErrorResponse,\n RecordResponse,\n RecordResponseResponse,\n ValidationResponse,\n ZoneListResponseResponse,\n ZoneResponse\n} from '../schemas';\n\n\nexport const getGetApiDnsZonesResponseMock = (overrideResponse: Partial<Extract<ZoneListResponseResponse, object>> = {}): ZoneListResponseResponse => ({data: Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => ({created_at: faker.date.past().toISOString().slice(0, 19) + 'Z', domain: faker.string.alpha({length: {min: 10, max: 20}}), id: faker.number.int(), powerdns_zone_id: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), status: faker.string.alpha({length: {min: 10, max: 20}}), updated_at: faker.date.past().toISOString().slice(0, 19) + 'Z', user_id: faker.number.int()})), total: faker.number.int(), ...overrideResponse})\n\nexport const getPostApiDnsZonesResponseMock = (overrideResponse: Partial<Extract<ErrorResponse | ZoneResponse, object>> = {}): ErrorResponse | ZoneResponse => (faker.helpers.arrayElement([{error: faker.string.alpha({length: {min: 10, max: 20}}), ...overrideResponse}, {created_at: faker.date.past().toISOString().slice(0, 19) + 'Z', domain: faker.string.alpha({length: {min: 10, max: 20}}), id: faker.number.int(), powerdns_zone_id: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), status: faker.string.alpha({length: {min: 10, max: 20}}), updated_at: faker.date.past().toISOString().slice(0, 19) + 'Z', user_id: faker.number.int(), ...overrideResponse}]))\n\nexport const getDeleteApiDnsZonesIdResponseMock = (overrideResponse: Partial<Extract<ErrorResponse, object>> = {}): ErrorResponse => ({error: faker.string.alpha({length: {min: 10, max: 20}}), ...overrideResponse})\n\nexport const getGetApiDnsZonesIdResponseMock = (overrideResponse: Partial<Extract<ZoneResponse, object>> = {}): ZoneResponse => ({created_at: faker.date.past().toISOString().slice(0, 19) + 'Z', domain: faker.string.alpha({length: {min: 10, max: 20}}), id: faker.number.int(), powerdns_zone_id: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), status: faker.string.alpha({length: {min: 10, max: 20}}), updated_at: faker.date.past().toISOString().slice(0, 19) + 'Z', user_id: faker.number.int(), ...overrideResponse})\n\nexport const getPutApiDnsZonesIdResponseMock = (overrideResponse: Partial<Extract<ZoneResponse, object>> = {}): ZoneResponse => ({created_at: faker.date.past().toISOString().slice(0, 19) + 'Z', domain: faker.string.alpha({length: {min: 10, max: 20}}), id: faker.number.int(), powerdns_zone_id: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), status: faker.string.alpha({length: {min: 10, max: 20}}), updated_at: faker.date.past().toISOString().slice(0, 19) + 'Z', user_id: faker.number.int(), ...overrideResponse})\n\nexport const getGetApiDnsZonesIdRecordsResponseMock = (overrideResponse: Partial<Extract<RecordResponseResponse, object>> = {}): RecordResponseResponse => ({data: Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => ({content: faker.string.alpha({length: {min: 10, max: 20}}), disabled: faker.datatype.boolean(), name: faker.string.alpha({length: {min: 10, max: 20}}), ttl: faker.number.int(), type: faker.string.alpha({length: {min: 10, max: 20}}), zone_id: faker.number.int()})), total: faker.number.int(), ...overrideResponse})\n\nexport const getPostApiDnsZonesIdRecordsResponseMock = (overrideResponse: Partial<Extract<ErrorResponse | RecordResponse, object>> = {}): ErrorResponse | RecordResponse => (faker.helpers.arrayElement([{error: faker.string.alpha({length: {min: 10, max: 20}}), ...overrideResponse}, {content: faker.string.alpha({length: {min: 10, max: 20}}), disabled: faker.datatype.boolean(), name: faker.string.alpha({length: {min: 10, max: 20}}), ttl: faker.number.int(), type: faker.string.alpha({length: {min: 10, max: 20}}), zone_id: faker.number.int(), ...overrideResponse}]))\n\nexport const getDeleteApiDnsZonesIdRecordsNameTypeResponseMock = (overrideResponse: Partial<Extract<ErrorResponse, object>> = {}): ErrorResponse => ({error: faker.string.alpha({length: {min: 10, max: 20}}), ...overrideResponse})\n\nexport const getGetApiDnsZonesIdRecordsNameTypeResponseMock = (overrideResponse: Partial<Extract<RecordResponse, object>> = {}): RecordResponse => ({content: faker.string.alpha({length: {min: 10, max: 20}}), disabled: faker.datatype.boolean(), name: faker.string.alpha({length: {min: 10, max: 20}}), ttl: faker.number.int(), type: faker.string.alpha({length: {min: 10, max: 20}}), zone_id: faker.number.int(), ...overrideResponse})\n\nexport const getPutApiDnsZonesIdRecordsNameTypeResponseMock = (overrideResponse: Partial<Extract<RecordResponse, object>> = {}): RecordResponse => ({content: faker.string.alpha({length: {min: 10, max: 20}}), disabled: faker.datatype.boolean(), name: faker.string.alpha({length: {min: 10, max: 20}}), ttl: faker.number.int(), type: faker.string.alpha({length: {min: 10, max: 20}}), zone_id: faker.number.int(), ...overrideResponse})\n\nexport const getPostApiDnsZonesIdRecordsBulkResponseMock = (overrideResponse: Partial<Extract<BulkRecordsResponse, object>> = {}): BulkRecordsResponse => ({records: Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => ({content: faker.string.alpha({length: {min: 10, max: 20}}), disabled: faker.datatype.boolean(), name: faker.string.alpha({length: {min: 10, max: 20}}), ttl: faker.number.int(), type: faker.string.alpha({length: {min: 10, max: 20}}), zone_id: faker.number.int()})), ...overrideResponse})\n\nexport const getPostApiDnsZonesIdRecordsBulkDeleteResponseMock = (overrideResponse: Partial<Extract<BulkDeleteResponse, object>> = {}): BulkDeleteResponse => ({results: Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => ({error: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), name: faker.string.alpha({length: {min: 10, max: 20}}), status: faker.string.alpha({length: {min: 10, max: 20}}), type: faker.string.alpha({length: {min: 10, max: 20}})})), ...overrideResponse})\n\nexport const getGetApiDnsZonesIdStatusResponseMock = (overrideResponse: Partial<Extract<ZoneResponse, object>> = {}): ZoneResponse => ({created_at: faker.date.past().toISOString().slice(0, 19) + 'Z', domain: faker.string.alpha({length: {min: 10, max: 20}}), id: faker.number.int(), powerdns_zone_id: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), status: faker.string.alpha({length: {min: 10, max: 20}}), updated_at: faker.date.past().toISOString().slice(0, 19) + 'Z', user_id: faker.number.int(), ...overrideResponse})\n\nexport const getPostApiDnsZonesIdValidateResponseMock = (overrideResponse: Partial<Extract<ValidationResponse, object>> = {}): ValidationResponse => ({checked_at: faker.date.past().toISOString().slice(0, 19) + 'Z', message: faker.string.alpha({length: {min: 10, max: 20}}), nameservers: 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]), valid: faker.datatype.boolean(), ...overrideResponse})\n\n\nexport const getGetApiDnsZonesMockHandler = (overrideResponse?: ZoneListResponseResponse | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<ZoneListResponseResponse> | ZoneListResponseResponse), options?: RequestHandlerOptions) => {\n return http.get('*/api/dns/zones', 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 : getGetApiDnsZonesResponseMock(),\n { status: 200\n })\n }, options)\n}\n\nexport const getPostApiDnsZonesMockHandler = (overrideResponse?: ErrorResponse | ZoneResponse | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<ErrorResponse | ZoneResponse> | ErrorResponse | ZoneResponse), options?: RequestHandlerOptions) => {\n return http.post('*/api/dns/zones', 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 : getPostApiDnsZonesResponseMock(),\n { status: 200\n })\n }, options)\n}\n\nexport const getDeleteApiDnsZonesIdMockHandler = (overrideResponse?: ErrorResponse | void | ((info: Parameters<Parameters<typeof http.delete>[1]>[0]) => Promise<ErrorResponse | void> | ErrorResponse | void), options?: RequestHandlerOptions) => {\n return http.delete('*/api/dns/zones/: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 : getDeleteApiDnsZonesIdResponseMock();\n return resolvedBody === undefined\n ? new HttpResponse(null, { status: 204 })\n : HttpResponse.json(resolvedBody, { status: 200 })\n }, options)\n}\n\nexport const getGetApiDnsZonesIdMockHandler = (overrideResponse?: ZoneResponse | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<ZoneResponse> | ZoneResponse), options?: RequestHandlerOptions) => {\n return http.get('*/api/dns/zones/: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 : getGetApiDnsZonesIdResponseMock(),\n { status: 200\n })\n }, options)\n}\n\nexport const getPutApiDnsZonesIdMockHandler = (overrideResponse?: ZoneResponse | ((info: Parameters<Parameters<typeof http.put>[1]>[0]) => Promise<ZoneResponse> | ZoneResponse), options?: RequestHandlerOptions) => {\n return http.put('*/api/dns/zones/:id', async (info: Parameters<Parameters<typeof http.put>[1]>[0]) => {await delay(0);\n\n\n return HttpResponse.json(overrideResponse !== undefined\n ? (typeof overrideResponse === \"function\" ? await overrideResponse(info) : overrideResponse)\n : getPutApiDnsZonesIdResponseMock(),\n { status: 200\n })\n }, options)\n}\n\nexport const getGetApiDnsZonesIdRecordsMockHandler = (overrideResponse?: RecordResponseResponse | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<RecordResponseResponse> | RecordResponseResponse), options?: RequestHandlerOptions) => {\n return http.get('*/api/dns/zones/:id/records', 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 : getGetApiDnsZonesIdRecordsResponseMock(),\n { status: 200\n })\n }, options)\n}\n\nexport const getPostApiDnsZonesIdRecordsMockHandler = (overrideResponse?: ErrorResponse | RecordResponse | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<ErrorResponse | RecordResponse> | ErrorResponse | RecordResponse), options?: RequestHandlerOptions) => {\n return http.post('*/api/dns/zones/:id/records', 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 : getPostApiDnsZonesIdRecordsResponseMock(),\n { status: 200\n })\n }, options)\n}\n\nexport const getDeleteApiDnsZonesIdRecordsNameTypeMockHandler = (overrideResponse?: ErrorResponse | void | ((info: Parameters<Parameters<typeof http.delete>[1]>[0]) => Promise<ErrorResponse | void> | ErrorResponse | void), options?: RequestHandlerOptions) => {\n return http.delete('*/api/dns/zones/:id/records/:name/:type', 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 : getDeleteApiDnsZonesIdRecordsNameTypeResponseMock();\n return resolvedBody === undefined\n ? new HttpResponse(null, { status: 204 })\n : HttpResponse.json(resolvedBody, { status: 200 })\n }, options)\n}\n\nexport const getGetApiDnsZonesIdRecordsNameTypeMockHandler = (overrideResponse?: RecordResponse | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<RecordResponse> | RecordResponse), options?: RequestHandlerOptions) => {\n return http.get('*/api/dns/zones/:id/records/:name/:type', 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 : getGetApiDnsZonesIdRecordsNameTypeResponseMock(),\n { status: 200\n })\n }, options)\n}\n\nexport const getPutApiDnsZonesIdRecordsNameTypeMockHandler = (overrideResponse?: RecordResponse | ((info: Parameters<Parameters<typeof http.put>[1]>[0]) => Promise<RecordResponse> | RecordResponse), options?: RequestHandlerOptions) => {\n return http.put('*/api/dns/zones/:id/records/:name/:type', async (info: Parameters<Parameters<typeof http.put>[1]>[0]) => {await delay(0);\n\n\n return HttpResponse.json(overrideResponse !== undefined\n ? (typeof overrideResponse === \"function\" ? await overrideResponse(info) : overrideResponse)\n : getPutApiDnsZonesIdRecordsNameTypeResponseMock(),\n { status: 200\n })\n }, options)\n}\n\nexport const getPostApiDnsZonesIdRecordsBulkMockHandler = (overrideResponse?: BulkRecordsResponse | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<BulkRecordsResponse> | BulkRecordsResponse), options?: RequestHandlerOptions) => {\n return http.post('*/api/dns/zones/:id/records/bulk', 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 : getPostApiDnsZonesIdRecordsBulkResponseMock(),\n { status: 200\n })\n }, options)\n}\n\nexport const getPostApiDnsZonesIdRecordsBulkDeleteMockHandler = (overrideResponse?: BulkDeleteResponse | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<BulkDeleteResponse> | BulkDeleteResponse), options?: RequestHandlerOptions) => {\n return http.post('*/api/dns/zones/:id/records/bulk-delete', 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 : getPostApiDnsZonesIdRecordsBulkDeleteResponseMock(),\n { status: 200\n })\n }, options)\n}\n\nexport const getGetApiDnsZonesIdStatusMockHandler = (overrideResponse?: ZoneResponse | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<ZoneResponse> | ZoneResponse), options?: RequestHandlerOptions) => {\n return http.get('*/api/dns/zones/:id/status', 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 : getGetApiDnsZonesIdStatusResponseMock(),\n { status: 200\n })\n }, options)\n}\n\nexport const getPostApiDnsZonesIdValidateMockHandler = (overrideResponse?: ValidationResponse | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<ValidationResponse> | ValidationResponse), options?: RequestHandlerOptions) => {\n return http.post('*/api/dns/zones/:id/validate', 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 : getPostApiDnsZonesIdValidateResponseMock(),\n { status: 200\n })\n }, options)\n}\nexport const getDnsMock = () => [\n getGetApiDnsZonesMockHandler(),\n getPostApiDnsZonesMockHandler(),\n getDeleteApiDnsZonesIdMockHandler(),\n getGetApiDnsZonesIdMockHandler(),\n getPutApiDnsZonesIdMockHandler(),\n getGetApiDnsZonesIdRecordsMockHandler(),\n getPostApiDnsZonesIdRecordsMockHandler(),\n getDeleteApiDnsZonesIdRecordsNameTypeMockHandler(),\n getGetApiDnsZonesIdRecordsNameTypeMockHandler(),\n getPutApiDnsZonesIdRecordsNameTypeMockHandler(),\n getPostApiDnsZonesIdRecordsBulkMockHandler(),\n getPostApiDnsZonesIdRecordsBulkDeleteMockHandler(),\n getGetApiDnsZonesIdStatusMockHandler(),\n getPostApiDnsZonesIdValidateMockHandler()\n]\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4DA,MAAa,iCAAiC,mBAAuE,EAAE,MAAgC;CAAC,MAAM,MAAM,KAAK,EAAE,QAAQ,MAAM,OAAO,IAAI;EAAC,KAAK;EAAG,KAAK;EAAG,CAAC,EAAE,GAAG,GAAG,MAAM,IAAI,EAAE,CAAC,WAAW;EAAC,YAAY,MAAM,KAAK,MAAM,CAAC,aAAa,CAAC,MAAM,GAAG,GAAG,GAAG;EAAK,QAAQ,MAAM,OAAO,MAAM,EAAC,QAAQ;GAAC,KAAK;GAAI,KAAK;GAAG,EAAC,CAAC;EAAE,IAAI,MAAM,OAAO,KAAK;EAAE,kBAAkB,MAAM,QAAQ,aAAa,CAAC,MAAM,OAAO,MAAM,EAAC,QAAQ;GAAC,KAAK;GAAI,KAAK;GAAG,EAAC,CAAC,EAAE,OAAU,CAAC;EAAE,QAAQ,MAAM,OAAO,MAAM,EAAC,QAAQ;GAAC,KAAK;GAAI,KAAK;GAAG,EAAC,CA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E;AAG1H,SAAO,aAAa,KAAK,qBAAqB,SAC3C,OAAO,qBAAqB,aAAa,MAAM,iBAAiB,KAAK,GAAG,mBACzE,uCAAuC,EACvC,EAAE,QAAQ,KACT,CAAC;IACH,QAAQ;;AAGb,MAAa,2CAA2C,kBAAsJ,YAAoC;AAChP,QAAO,KAAK,KAAK,gCAAgC,OAAO,SAAyD;AAAC,QAAM,MAAM,EAAE;AAG9H,SAAO,aAAa,KAAK,qBAAqB,SAC3C,OAAO,qBAAqB,aAAa,MAAM,iBAAiB,KAAK,GAAG,mBACzE,0CAA0C,EAC1C,EAAE,QAAQ,KACT,CAAC;IACH,QAAQ;;AAEb,MAAa,mBAAmB;CAC9B,8BAA8B;CAC9B,+BAA+B;CAC/B,mCAAmC;CACnC,gCAAgC;CAChC,gCAAgC;CAChC,uCAAuC;CACvC,wCAAwC;CACxC,kDAAkD;CAClD,+CAA+C;CAC/C,+CAA+C;CAC/C,4CAA4C;CAC5C,kDAAkD;CAClD,sCAAsC;CACtC,yCAAyC;CAC1C"}
|
|
1
|
+
{"version":3,"file":"dns.msw.js","names":[],"sources":["../../../../../src/api/generated/dns/dns.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 BulkDeleteResponse,\n BulkRecordsResponse,\n ErrorResponse,\n RecordResponse,\n RecordResponseResponse,\n ValidationResponse,\n ZoneListResponseResponse,\n ZoneResponse\n} from '../schemas';\n\n\nexport const getGetApiDnsZonesResponseMock = (overrideResponse: Partial<Extract<ZoneListResponseResponse, object>> = {}): ZoneListResponseResponse => ({data: Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => ({created_at: faker.date.past().toISOString().slice(0, 19) + 'Z', domain: faker.string.alpha({length: {min: 10, max: 20}}), id: faker.number.int(), powerdns_zone_id: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), status: faker.string.alpha({length: {min: 10, max: 20}}), updated_at: faker.date.past().toISOString().slice(0, 19) + 'Z', user_id: faker.number.int()})), total: faker.number.int(), ...overrideResponse})\n\nexport const getPostApiDnsZonesResponseMock = (overrideResponse: Partial<Extract<ErrorResponse | ZoneResponse, object>> = {}): ErrorResponse | ZoneResponse => (faker.helpers.arrayElement([{error: faker.string.alpha({length: {min: 10, max: 20}}), ...overrideResponse}, {created_at: faker.date.past().toISOString().slice(0, 19) + 'Z', domain: faker.string.alpha({length: {min: 10, max: 20}}), id: faker.number.int(), powerdns_zone_id: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), status: faker.string.alpha({length: {min: 10, max: 20}}), updated_at: faker.date.past().toISOString().slice(0, 19) + 'Z', user_id: faker.number.int(), ...overrideResponse}]))\n\nexport const getDeleteApiDnsZonesIdResponseMock = (overrideResponse: Partial<Extract<ErrorResponse, object>> = {}): ErrorResponse => ({error: faker.string.alpha({length: {min: 10, max: 20}}), ...overrideResponse})\n\nexport const getGetApiDnsZonesIdResponseMock = (overrideResponse: Partial<Extract<ZoneResponse, object>> = {}): ZoneResponse => ({created_at: faker.date.past().toISOString().slice(0, 19) + 'Z', domain: faker.string.alpha({length: {min: 10, max: 20}}), id: faker.number.int(), powerdns_zone_id: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), status: faker.string.alpha({length: {min: 10, max: 20}}), updated_at: faker.date.past().toISOString().slice(0, 19) + 'Z', user_id: faker.number.int(), ...overrideResponse})\n\nexport const getPutApiDnsZonesIdResponseMock = (overrideResponse: Partial<Extract<ZoneResponse, object>> = {}): ZoneResponse => ({created_at: faker.date.past().toISOString().slice(0, 19) + 'Z', domain: faker.string.alpha({length: {min: 10, max: 20}}), id: faker.number.int(), powerdns_zone_id: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), status: faker.string.alpha({length: {min: 10, max: 20}}), updated_at: faker.date.past().toISOString().slice(0, 19) + 'Z', user_id: faker.number.int(), ...overrideResponse})\n\nexport const getGetApiDnsZonesIdRecordsResponseMock = (overrideResponse: Partial<Extract<RecordResponseResponse, object>> = {}): RecordResponseResponse => ({data: Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => ({content: faker.string.alpha({length: {min: 10, max: 20}}), disabled: faker.datatype.boolean(), name: faker.string.alpha({length: {min: 10, max: 20}}), ttl: faker.number.int(), type: faker.string.alpha({length: {min: 10, max: 20}}), zone_id: faker.number.int()})), total: faker.number.int(), ...overrideResponse})\n\nexport const getPostApiDnsZonesIdRecordsResponseMock = (overrideResponse: Partial<Extract<ErrorResponse | RecordResponse, object>> = {}): ErrorResponse | RecordResponse => (faker.helpers.arrayElement([{error: faker.string.alpha({length: {min: 10, max: 20}}), ...overrideResponse}, {content: faker.string.alpha({length: {min: 10, max: 20}}), disabled: faker.datatype.boolean(), name: faker.string.alpha({length: {min: 10, max: 20}}), ttl: faker.number.int(), type: faker.string.alpha({length: {min: 10, max: 20}}), zone_id: faker.number.int(), ...overrideResponse}]))\n\nexport const getDeleteApiDnsZonesIdRecordsNameTypeResponseMock = (overrideResponse: Partial<Extract<ErrorResponse, object>> = {}): ErrorResponse => ({error: faker.string.alpha({length: {min: 10, max: 20}}), ...overrideResponse})\n\nexport const getGetApiDnsZonesIdRecordsNameTypeResponseMock = (overrideResponse: Partial<Extract<RecordResponse, object>> = {}): RecordResponse => ({content: faker.string.alpha({length: {min: 10, max: 20}}), disabled: faker.datatype.boolean(), name: faker.string.alpha({length: {min: 10, max: 20}}), ttl: faker.number.int(), type: faker.string.alpha({length: {min: 10, max: 20}}), zone_id: faker.number.int(), ...overrideResponse})\n\nexport const getPutApiDnsZonesIdRecordsNameTypeResponseMock = (overrideResponse: Partial<Extract<RecordResponse, object>> = {}): RecordResponse => ({content: faker.string.alpha({length: {min: 10, max: 20}}), disabled: faker.datatype.boolean(), name: faker.string.alpha({length: {min: 10, max: 20}}), ttl: faker.number.int(), type: faker.string.alpha({length: {min: 10, max: 20}}), zone_id: faker.number.int(), ...overrideResponse})\n\nexport const getPostApiDnsZonesIdRecordsBulkResponseMock = (overrideResponse: Partial<Extract<BulkRecordsResponse, object>> = {}): BulkRecordsResponse => ({records: Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => ({content: faker.string.alpha({length: {min: 10, max: 20}}), disabled: faker.datatype.boolean(), name: faker.string.alpha({length: {min: 10, max: 20}}), ttl: faker.number.int(), type: faker.string.alpha({length: {min: 10, max: 20}}), zone_id: faker.number.int()})), ...overrideResponse})\n\nexport const getPostApiDnsZonesIdRecordsBulkDeleteResponseMock = (overrideResponse: Partial<Extract<BulkDeleteResponse, object>> = {}): BulkDeleteResponse => ({results: Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => ({error: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), name: faker.string.alpha({length: {min: 10, max: 20}}), status: faker.string.alpha({length: {min: 10, max: 20}}), type: faker.string.alpha({length: {min: 10, max: 20}})})), ...overrideResponse})\n\nexport const getGetApiDnsZonesIdStatusResponseMock = (overrideResponse: Partial<Extract<ZoneResponse, object>> = {}): ZoneResponse => ({created_at: faker.date.past().toISOString().slice(0, 19) + 'Z', domain: faker.string.alpha({length: {min: 10, max: 20}}), id: faker.number.int(), powerdns_zone_id: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), status: faker.string.alpha({length: {min: 10, max: 20}}), updated_at: faker.date.past().toISOString().slice(0, 19) + 'Z', user_id: faker.number.int(), ...overrideResponse})\n\nexport const getPostApiDnsZonesIdValidateResponseMock = (overrideResponse: Partial<Extract<ValidationResponse, object>> = {}): ValidationResponse => ({checked_at: faker.date.past().toISOString().slice(0, 19) + 'Z', message: faker.string.alpha({length: {min: 10, max: 20}}), nameservers: 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]), valid: faker.datatype.boolean(), ...overrideResponse})\n\n\nexport const getGetApiDnsZonesMockHandler = (overrideResponse?: ZoneListResponseResponse | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<ZoneListResponseResponse> | ZoneListResponseResponse), options?: RequestHandlerOptions) => {\n return http.get('*/api/dns/zones', 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 : getGetApiDnsZonesResponseMock(),\n { status: 200\n })\n }, options)\n}\n\nexport const getPostApiDnsZonesMockHandler = (overrideResponse?: ErrorResponse | ZoneResponse | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<ErrorResponse | ZoneResponse> | ErrorResponse | ZoneResponse), options?: RequestHandlerOptions) => {\n return http.post('*/api/dns/zones', 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 : getPostApiDnsZonesResponseMock(),\n { status: 200\n })\n }, options)\n}\n\nexport const getDeleteApiDnsZonesIdMockHandler = (overrideResponse?: ErrorResponse | void | ((info: Parameters<Parameters<typeof http.delete>[1]>[0]) => Promise<ErrorResponse | void> | ErrorResponse | void), options?: RequestHandlerOptions) => {\n return http.delete('*/api/dns/zones/: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 : getDeleteApiDnsZonesIdResponseMock();\n return resolvedBody === undefined\n ? new HttpResponse(null, { status: 204 })\n : HttpResponse.json(resolvedBody, { status: 200 })\n }, options)\n}\n\nexport const getGetApiDnsZonesIdMockHandler = (overrideResponse?: ZoneResponse | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<ZoneResponse> | ZoneResponse), options?: RequestHandlerOptions) => {\n return http.get('*/api/dns/zones/: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 : getGetApiDnsZonesIdResponseMock(),\n { status: 200\n })\n }, options)\n}\n\nexport const getPutApiDnsZonesIdMockHandler = (overrideResponse?: ZoneResponse | ((info: Parameters<Parameters<typeof http.put>[1]>[0]) => Promise<ZoneResponse> | ZoneResponse), options?: RequestHandlerOptions) => {\n return http.put('*/api/dns/zones/:id', async (info: Parameters<Parameters<typeof http.put>[1]>[0]) => {\n\n\n return HttpResponse.json(overrideResponse !== undefined\n ? (typeof overrideResponse === \"function\" ? await overrideResponse(info) : overrideResponse)\n : getPutApiDnsZonesIdResponseMock(),\n { status: 200\n })\n }, options)\n}\n\nexport const getGetApiDnsZonesIdRecordsMockHandler = (overrideResponse?: RecordResponseResponse | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<RecordResponseResponse> | RecordResponseResponse), options?: RequestHandlerOptions) => {\n return http.get('*/api/dns/zones/:id/records', 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 : getGetApiDnsZonesIdRecordsResponseMock(),\n { status: 200\n })\n }, options)\n}\n\nexport const getPostApiDnsZonesIdRecordsMockHandler = (overrideResponse?: ErrorResponse | RecordResponse | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<ErrorResponse | RecordResponse> | ErrorResponse | RecordResponse), options?: RequestHandlerOptions) => {\n return http.post('*/api/dns/zones/:id/records', 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 : getPostApiDnsZonesIdRecordsResponseMock(),\n { status: 200\n })\n }, options)\n}\n\nexport const getDeleteApiDnsZonesIdRecordsNameTypeMockHandler = (overrideResponse?: ErrorResponse | void | ((info: Parameters<Parameters<typeof http.delete>[1]>[0]) => Promise<ErrorResponse | void> | ErrorResponse | void), options?: RequestHandlerOptions) => {\n return http.delete('*/api/dns/zones/:id/records/:name/:type', async (info: Parameters<Parameters<typeof http.delete>[1]>[0]) => {\n\n const resolvedBody = overrideResponse !== undefined\n ? (typeof overrideResponse === \"function\" ? await overrideResponse(info) : overrideResponse)\n : getDeleteApiDnsZonesIdRecordsNameTypeResponseMock();\n return resolvedBody === undefined\n ? new HttpResponse(null, { status: 204 })\n : HttpResponse.json(resolvedBody, { status: 200 })\n }, options)\n}\n\nexport const getGetApiDnsZonesIdRecordsNameTypeMockHandler = (overrideResponse?: RecordResponse | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<RecordResponse> | RecordResponse), options?: RequestHandlerOptions) => {\n return http.get('*/api/dns/zones/:id/records/:name/:type', 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 : getGetApiDnsZonesIdRecordsNameTypeResponseMock(),\n { status: 200\n })\n }, options)\n}\n\nexport const getPutApiDnsZonesIdRecordsNameTypeMockHandler = (overrideResponse?: RecordResponse | ((info: Parameters<Parameters<typeof http.put>[1]>[0]) => Promise<RecordResponse> | RecordResponse), options?: RequestHandlerOptions) => {\n return http.put('*/api/dns/zones/:id/records/:name/:type', async (info: Parameters<Parameters<typeof http.put>[1]>[0]) => {\n\n\n return HttpResponse.json(overrideResponse !== undefined\n ? (typeof overrideResponse === \"function\" ? await overrideResponse(info) : overrideResponse)\n : getPutApiDnsZonesIdRecordsNameTypeResponseMock(),\n { status: 200\n })\n }, options)\n}\n\nexport const getPostApiDnsZonesIdRecordsBulkMockHandler = (overrideResponse?: BulkRecordsResponse | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<BulkRecordsResponse> | BulkRecordsResponse), options?: RequestHandlerOptions) => {\n return http.post('*/api/dns/zones/:id/records/bulk', 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 : getPostApiDnsZonesIdRecordsBulkResponseMock(),\n { status: 200\n })\n }, options)\n}\n\nexport const getPostApiDnsZonesIdRecordsBulkDeleteMockHandler = (overrideResponse?: BulkDeleteResponse | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<BulkDeleteResponse> | BulkDeleteResponse), options?: RequestHandlerOptions) => {\n return http.post('*/api/dns/zones/:id/records/bulk-delete', 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 : getPostApiDnsZonesIdRecordsBulkDeleteResponseMock(),\n { status: 200\n })\n }, options)\n}\n\nexport const getGetApiDnsZonesIdStatusMockHandler = (overrideResponse?: ZoneResponse | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<ZoneResponse> | ZoneResponse), options?: RequestHandlerOptions) => {\n return http.get('*/api/dns/zones/:id/status', 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 : getGetApiDnsZonesIdStatusResponseMock(),\n { status: 200\n })\n }, options)\n}\n\nexport const getPostApiDnsZonesIdValidateMockHandler = (overrideResponse?: ValidationResponse | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<ValidationResponse> | ValidationResponse), options?: RequestHandlerOptions) => {\n return http.post('*/api/dns/zones/:id/validate', 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 : getPostApiDnsZonesIdValidateResponseMock(),\n { status: 200\n })\n }, options)\n}\nexport const getDnsMock = () => [\n getGetApiDnsZonesMockHandler(),\n getPostApiDnsZonesMockHandler(),\n getDeleteApiDnsZonesIdMockHandler(),\n getGetApiDnsZonesIdMockHandler(),\n getPutApiDnsZonesIdMockHandler(),\n getGetApiDnsZonesIdRecordsMockHandler(),\n getPostApiDnsZonesIdRecordsMockHandler(),\n getDeleteApiDnsZonesIdRecordsNameTypeMockHandler(),\n getGetApiDnsZonesIdRecordsNameTypeMockHandler(),\n getPutApiDnsZonesIdRecordsNameTypeMockHandler(),\n getPostApiDnsZonesIdRecordsBulkMockHandler(),\n getPostApiDnsZonesIdRecordsBulkDeleteMockHandler(),\n getGetApiDnsZonesIdStatusMockHandler(),\n getPostApiDnsZonesIdValidateMockHandler()\n]\n"],"mapp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ACH,QAAQ;;AAGb,MAAa,oDAAoD,kBAAsJ,YAAoC;AACzP,QAAO,KAAK,KAAK,2CAA2C,OAAO,SAAyD;AAG1H,SAAO,aAAa,KAAK,qBAAqB,SAC3C,OAAO,qBAAqB,aAAa,MAAM,iBAAiB,KAAK,GAAG,mBACzE,mDAAmD,EACnD,EAAE,QAAQ,KACT,CAAC;IACH,QAAQ;;AAGb,MAAa,wCAAwC,kBAAmI,YAAoC;AAC1N,QAAO,KAAK,IAAI,8BAA8B,OAAO,SAAwD;AAG3G,SAAO,aAAa,KAAK,qBAAqB,SAC3C,OAAO,qBAAqB,aAAa,MAAM,iBAAiB,KAAK,GAAG,mBACzE,uCAAuC,EACvC,EAAE,QAAQ,KACT,CAAC;IACH,QAAQ;;AAGb,MAAa,2CAA2C,kBAAsJ,YAAoC;AAChP,QAAO,KAAK,KAAK,gCAAgC,OAAO,SAAyD;AAG/G,SAAO,aAAa,KAAK,qBAAqB,SAC3C,OAAO,qBAAqB,aAAa,MAAM,iBAAiB,KAAK,GAAG,mBACzE,0CAA0C,EAC1C,EAAE,QAAQ,KACT,CAAC;IACH,QAAQ;;AAEb,MAAa,mBAAmB;CAC9B,8BAA8B;CAC9B,+BAA+B;CAC/B,mCAAmC;CACnC,gCAAgC;CAChC,gCAAgC;CAChC,uCAAuC;CACvC,wCAAwC;CACxC,kDAAkD;CAClD,+CAA+C;CAC/C,+CAA+C;CAC/C,4CAA4C;CAC5C,kDAAkD;CAClD,sCAAsC;CACtC,yCAAyC;CAC1C"}
|
|
@@ -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/files/files.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 getGetApiFilesResponseMock = (overrideResponse = {}) => ({
|
|
@@ -123,19 +123,16 @@ const getGetApiFilesDirectoryResponseMock = (overrideResponse = {}) => ({
|
|
|
123
123
|
});
|
|
124
124
|
const getGetApiFilesMockHandler = (overrideResponse, options) => {
|
|
125
125
|
return http.get("*/api/files", async (info) => {
|
|
126
|
-
await delay(0);
|
|
127
126
|
return HttpResponse.json(overrideResponse !== void 0 ? typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse : getGetApiFilesResponseMock(), { status: 200 });
|
|
128
127
|
}, options);
|
|
129
128
|
};
|
|
130
129
|
const getGetApiFilesBreadcrumbsMockHandler = (overrideResponse, options) => {
|
|
131
130
|
return http.get("*/api/files/breadcrumbs", async (info) => {
|
|
132
|
-
await delay(0);
|
|
133
131
|
return HttpResponse.json(overrideResponse !== void 0 ? typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse : getGetApiFilesBreadcrumbsResponseMock(), { status: 200 });
|
|
134
132
|
}, options);
|
|
135
133
|
};
|
|
136
134
|
const getGetApiFilesDirectoryMockHandler = (overrideResponse, options) => {
|
|
137
135
|
return http.get("*/api/files/directory", async (info) => {
|
|
138
|
-
await delay(0);
|
|
139
136
|
return HttpResponse.json(overrideResponse !== void 0 ? typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse : getGetApiFilesDirectoryResponseMock(), { status: 200 });
|
|
140
137
|
}, options);
|
|
141
138
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.msw.js","names":[],"sources":["../../../../../src/api/generated/files/files.msw.ts"],"sourcesContent":["/**\n * Generated by orval v8.
|
|
1
|
+
{"version":3,"file":"files.msw.js","names":[],"sources":["../../../../../src/api/generated/files/files.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 FileManagerItemResponse\n} from '../schemas';\n\n\nexport const getGetApiFilesResponseMock = (overrideResponse: Partial<Extract<FileManagerItemResponse, object>> = {}): FileManagerItemResponse => ({data: Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => ({cid: faker.string.alpha({length: {min: 10, max: 20}}), created: faker.date.past().toISOString().slice(0, 19) + 'Z', depth: faker.number.int(), is_directory: faker.datatype.boolean(), name: faker.string.alpha({length: {min: 10, max: 20}}), path: faker.string.alpha({length: {min: 10, max: 20}}), size: faker.number.int(), type: faker.number.int(), unpinnable: faker.datatype.boolean(), updated: faker.date.past().toISOString().slice(0, 19) + 'Z'})), total: faker.number.int(), ...overrideResponse})\n\nexport const getGetApiFilesBreadcrumbsResponseMock = (overrideResponse: Partial<Extract<FileManagerItemResponse, object>> = {}): FileManagerItemResponse => ({data: Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => ({cid: faker.string.alpha({length: {min: 10, max: 20}}), created: faker.date.past().toISOString().slice(0, 19) + 'Z', depth: faker.number.int(), is_directory: faker.datatype.boolean(), name: faker.string.alpha({length: {min: 10, max: 20}}), path: faker.string.alpha({length: {min: 10, max: 20}}), size: faker.number.int(), type: faker.number.int(), unpinnable: faker.datatype.boolean(), updated: faker.date.past().toISOString().slice(0, 19) + 'Z'})), total: faker.number.int(), ...overrideResponse})\n\nexport const getGetApiFilesDirectoryResponseMock = (overrideResponse: Partial<Extract<FileManagerItemResponse, object>> = {}): FileManagerItemResponse => ({data: Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => ({cid: faker.string.alpha({length: {min: 10, max: 20}}), created: faker.date.past().toISOString().slice(0, 19) + 'Z', depth: faker.number.int(), is_directory: faker.datatype.boolean(), name: faker.string.alpha({length: {min: 10, max: 20}}), path: faker.string.alpha({length: {min: 10, max: 20}}), size: faker.number.int(), type: faker.number.int(), unpinnable: faker.datatype.boolean(), updated: faker.date.past().toISOString().slice(0, 19) + 'Z'})), total: faker.number.int(), ...overrideResponse})\n\n\nexport const getGetApiFilesMockHandler = (overrideResponse?: FileManagerItemResponse | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<FileManagerItemResponse> | FileManagerItemResponse), options?: RequestHandlerOptions) => {\n return http.get('*/api/files', 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 : getGetApiFilesResponseMock(),\n { status: 200\n })\n }, options)\n}\n\nexport const getGetApiFilesBreadcrumbsMockHandler = (overrideResponse?: FileManagerItemResponse | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<FileManagerItemResponse> | FileManagerItemResponse), options?: RequestHandlerOptions) => {\n return http.get('*/api/files/breadcrumbs', 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 : getGetApiFilesBreadcrumbsResponseMock(),\n { status: 200\n })\n }, options)\n}\n\nexport const getGetApiFilesDirectoryMockHandler = (overrideResponse?: FileManagerItemResponse | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<FileManagerItemResponse> | FileManagerItemResponse), options?: RequestHandlerOptions) => {\n return http.get('*/api/files/directory', 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 : getGetApiFilesDirectoryResponseMock(),\n { status: 200\n })\n }, options)\n}\nexport const getFilesMock = () => [\n getGetApiFilesMockHandler(),\n getGetApiFilesBreadcrumbsMockHandler(),\n getGetApiFilesDirectoryMockHandler()\n]\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoDA,MAAa,8BAA8B,mBAAsE,EAAE,MAA+B;CAAC,MAAM,MAAM,KAAK,EAAE,QAAQ,MAAM,OAAO,IAAI;EAAC,KAAK;EAAG,KAAK;EAAG,CAAC,EA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C;IACH,QAAQ;;AAGb,MAAa,wCAAwC,kBAAoK,YAAoC;AAC3P,QAAO,KAAK,IAAI,2BAA2B,OAAO,SAAwD;AAGxG,SAAO,aAAa,KAAK,qBAAqB,SAC3C,OAAO,qBAAqB,aAAa,MAAM,iBAAiB,KAAK,GAAG,mBACzE,uCAAuC,EACvC,EAAE,QAAQ,KACT,CAAC;IACH,QAAQ;;AAGb,MAAa,sCAAsC,kBAAoK,YAAoC;AACzP,QAAO,KAAK,IAAI,yBAAyB,OAAO,SAAwD;AAGtG,SAAO,aAAa,KAAK,qBAAqB,SAC3C,OAAO,qBAAqB,aAAa,MAAM,iBAAiB,KAAK,GAAG,mBACzE,qCAAqC,EACrC,EAAE,QAAQ,KACT,CAAC;IACH,QAAQ;;AAEb,MAAa,qBAAqB;CAChC,2BAA2B;CAC3B,sCAAsC;CACtC,oCAAoC;CACrC"}
|
|
@@ -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/gateway/gateway.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 getGetInternalWebsitesDomainResponseMock = (overrideResponse = {}) => ({
|
|
@@ -74,13 +74,11 @@ const getGetInternalWebsitesDomainStatusResponseMock = (overrideResponse = {}) =
|
|
|
74
74
|
});
|
|
75
75
|
const getGetInternalWebsitesDomainMockHandler = (overrideResponse, options) => {
|
|
76
76
|
return http.get("*/internal/websites/:domain", async (info) => {
|
|
77
|
-
await delay(0);
|
|
78
77
|
return HttpResponse.json(overrideResponse !== void 0 ? typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse : getGetInternalWebsitesDomainResponseMock(), { status: 200 });
|
|
79
78
|
}, options);
|
|
80
79
|
};
|
|
81
80
|
const getGetInternalWebsitesDomainStatusMockHandler = (overrideResponse, options) => {
|
|
82
81
|
return http.get("*/internal/websites/:domain/status", async (info) => {
|
|
83
|
-
await delay(0);
|
|
84
82
|
return HttpResponse.json(overrideResponse !== void 0 ? typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse : getGetInternalWebsitesDomainStatusResponseMock(), { status: 200 });
|
|
85
83
|
}, options);
|
|
86
84
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gateway.msw.js","names":[],"sources":["../../../../../src/api/generated/gateway/gateway.msw.ts"],"sourcesContent":["/**\n * Generated by orval v8.
|
|
1
|
+
{"version":3,"file":"gateway.msw.js","names":[],"sources":["../../../../../src/api/generated/gateway/gateway.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 GatewayWebsiteResponse,\n GatewayWebsiteStatusResponse\n} from '../schemas';\n\n\nexport const getGetInternalWebsitesDomainResponseMock = (overrideResponse: Partial<Extract<GatewayWebsiteResponse, object>> = {}): GatewayWebsiteResponse => ({domain: faker.string.alpha({length: {min: 10, max: 20}}), status: faker.string.alpha({length: {min: 10, max: 20}}), target_hash: faker.string.alpha({length: {min: 10, max: 20}}), target_type: faker.string.alpha({length: {min: 10, max: 20}}), ...overrideResponse})\n\nexport const getGetInternalWebsitesDomainStatusResponseMock = (overrideResponse: Partial<Extract<GatewayWebsiteStatusResponse, object>> = {}): GatewayWebsiteStatusResponse => ({domain: faker.string.alpha({length: {min: 10, max: 20}}), is_broken: faker.datatype.boolean(), last_checked: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), status: faker.string.alpha({length: {min: 10, max: 20}}), ...overrideResponse})\n\n\nexport const getGetInternalWebsitesDomainMockHandler = (overrideResponse?: GatewayWebsiteResponse | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<GatewayWebsiteResponse> | GatewayWebsiteResponse), options?: RequestHandlerOptions) => {\n return http.get('*/internal/websites/:domain', 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 : getGetInternalWebsitesDomainResponseMock(),\n { status: 200\n })\n }, options)\n}\n\nexport const getGetInternalWebsitesDomainStatusMockHandler = (overrideResponse?: GatewayWebsiteStatusResponse | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<GatewayWebsiteStatusResponse> | GatewayWebsiteStatusResponse), options?: RequestHandlerOptions) => {\n return http.get('*/internal/websites/:domain/status', 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 : getGetInternalWebsitesDomainStatusResponseMock(),\n { status: 200\n })\n }, options)\n}\nexport const getGatewayMock = () => [\n getGetInternalWebsitesDomainMockHandler(),\n getGetInternalWebsitesDomainStatusMockHandler()\n]\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqDA,MAAa,4CAA4C,mBAAqE,EAAE,MAA8B;CAAC,QAAQ,MAAM,OAAO,MAAM,EAAC,QAAQ;EAAC,KAAK;EAAI,KAAK;EAAG,EAAC,CAAC;CAAE,QAAQ,MAAM,OAAO,MAAM,EAAC,QAAQ;EAAC,KAAK;EAAI,KAAK;EAAG,EAAC,CAAC;CAAE,aAAa,MAAM,OAAO,MAAM,EAAC,QAAQ;EAAC,KAAK;EAAI,KAAK;EAAG,EAAC,CAAC;CAAE,aAAa,MAAM,OAAO,MAAM,EAAC,QAAQ;EAAC,KAAK;EAAI,KAAK;EAAG,EAAC,CAAC;CAAE,GAAG;CAAiB;AAEra,MAAa,kDAAkD,mBAA2E,EAAE,MAAoC;CAAC,QAAQ,MAAM,OAAO,MAAM,EAAC,QAAQ;EAAC,KAAK;EAAI,KAAK;EAAG,EAAC,CAAC;CAAE,WAAW,MAAM,SAAS,SAAS;CAAE,cAAc,MAAM,QAAQ,aAAa,CAAC,MAAM,OAAO,MAAM,EAAC,QAAQ;EAAC,KAAK;EAAI,KAAK;EAAG,EAAC,CAAC,EAAE,OAAU,CAAC;CAAE,QAAQ,MAAM,OAAO,MAAM,EAAC,QAAQ;EAAC,KAAK;EAAI,KAAK;EAAG,EAAC,CAAC;CAAE,GAAG;CAAiB;AAGvc,MAAa,2CAA2C,kBAAiK,YAAoC;AAC3P,QAAO,KAAK,IAAI,+BAA+B,OAAO,SAAwD;AAG5G,SAAO,aAAa,KAAK,qBAAqB,SAC3C,OAAO,qBAAqB,aAAa,MAAM,iBAAiB,KAAK,GAAG,mBACzE,0CAA0C,EAC1C,EAAE,QAAQ,KACT,CAAC;IACH,QAAQ;;AAGb,MAAa,iDAAiD,kBAAmL,YAAoC;AACnR,QAAO,KAAK,IAAI,sCAAsC,OAAO,SAAwD;AAGnH,SAAO,aAAa,KAAK,qBAAqB,SAC3C,OAAO,qBAAqB,aAAa,MAAM,iBAAiB,KAAK,GAAG,mBACzE,gDAAgD,EAChD,EAAE,QAAQ,KACT,CAAC;IACH,QAAQ;;AAEb,MAAa,uBAAuB,CAClC,yCAAyC,EACzC,+CAA+C,CAChD"}
|
|
@@ -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/internal/internal.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 getPostInternalWebsitesDomainSslStatusResponseMock = (overrideResponse = {}) => ({
|
|
@@ -96,7 +96,6 @@ const getPostInternalWebsitesDomainSslStatusResponseMock = (overrideResponse = {
|
|
|
96
96
|
});
|
|
97
97
|
const getPostInternalWebsitesDomainSslStatusMockHandler = (overrideResponse, options) => {
|
|
98
98
|
return http.post("*/internal/websites/:domain/ssl-status", async (info) => {
|
|
99
|
-
await delay(0);
|
|
100
99
|
return HttpResponse.json(overrideResponse !== void 0 ? typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse : getPostInternalWebsitesDomainSslStatusResponseMock(), { status: 200 });
|
|
101
100
|
}, options);
|
|
102
101
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.msw.js","names":[],"sources":["../../../../../src/api/generated/internal/internal.msw.ts"],"sourcesContent":["/**\n * Generated by orval v8.
|
|
1
|
+
{"version":3,"file":"internal.msw.js","names":[],"sources":["../../../../../src/api/generated/internal/internal.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 WebsiteResponse\n} from '../schemas';\n\n\nexport const getPostInternalWebsitesDomainSslStatusResponseMock = (overrideResponse: Partial<Extract<WebsiteResponse, object>> = {}): WebsiteResponse => ({active_cid: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), created: faker.date.past().toISOString().slice(0, 19) + 'Z', dns_hosting_enabled: faker.datatype.boolean(), dns_zone_id: faker.helpers.arrayElement([faker.number.int(), undefined]), domain: faker.string.alpha({length: {min: 10, max: 20}}), expired: faker.datatype.boolean(), gateway_domain: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), id: faker.number.int(), ipns_key_id: faker.helpers.arrayElement([faker.number.int(), undefined]), is_subdomain: faker.datatype.boolean(), last_checked_at: faker.helpers.arrayElement([faker.date.past().toISOString().slice(0, 19) + 'Z', undefined]), ssl: faker.helpers.arrayElement([{error: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), issued_at: faker.helpers.arrayElement([faker.date.past().toISOString().slice(0, 19) + 'Z', undefined]), last_updated_at: faker.helpers.arrayElement([faker.date.past().toISOString().slice(0, 19) + 'Z', undefined]), status: faker.string.alpha({length: {min: 10, max: 20}})}, undefined]), status: faker.string.alpha({length: {min: 10, max: 20}}), target_hash: faker.string.alpha({length: {min: 10, max: 20}}), target_type: faker.string.alpha({length: {min: 10, max: 20}}), updated: faker.date.past().toISOString().slice(0, 19) + 'Z', validation_expires_at: faker.helpers.arrayElement([faker.date.past().toISOString().slice(0, 19) + 'Z', undefined]), validation_record_host: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), validation_token: faker.string.alpha({length: {min: 10, max: 20}}), ...overrideResponse})\n\n\nexport const getPostInternalWebsitesDomainSslStatusMockHandler = (overrideResponse?: WebsiteResponse | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<WebsiteResponse> | WebsiteResponse), options?: RequestHandlerOptions) => {\n return http.post('*/internal/websites/:domain/ssl-status', 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 : getPostInternalWebsitesDomainSslStatusResponseMock(),\n { status: 200\n })\n }, options)\n}\nexport const getInternalMock = () => [\n getPostInternalWebsitesDomainSslStatusMockHandler()\n]\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoDA,MAAa,sDAAsD,mBAA8D,EAAE,MAAuB;CAAC,YAAY,MAAM,QAAQ,aAAa,CAAC,MAAM,OAAO,MAAM,EAAC,QAAQ;EAAC,KAAK;EAAI,KAAK;EAAG,EAAC,CAAC,EAAE,OAAU,CAAC;CAAE,SAAS,MAAM,KAAK,MAAM,CAAC,aAAa,CAAC,MAAM,GAAG,GAAG,GAAG;CAAK,qBAAqB,MAAM,SAAS,SAAS;CAAE,aAAa,MAAM,QAAQ,aAAa,CAAC,MAAM,OAAO,KAAK,EAAE,OAAU,CAAC;CAAE,QAAQ,MAAM,OAAO,MAAM,EAAC,QAAQ;EAAC,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M,KAAK,MAAM,CAAC,aAAa,CAAC,MAAM,GAAG,GAAG,GAAG;CAAK,uBAAuB,MAAM,QAAQ,aAAa,CAAC,MAAM,KAAK,MAAM,CAAC,aAAa,CAAC,MAAM,GAAG,GAAG,GAAG,KAAK,OAAU,CAAC;CAAE,wBAAwB,MAAM,QAAQ,aAAa,CAAC,MAAM,OAAO,MAAM,EAAC,QAAQ;EAAC,KAAK;EAAI,KAAK;EAAG,EAAC,CAAC,EAAE,OAAU,CAAC;CAAE,kBAAkB,MAAM,OAAO,MAAM,EAAC,QAAQ;EAAC,KAAK;EAAI,KAAK;EAAG,EAAC,CAAC;CAAE,GAAG;CAAiB;AAG90D,MAAa,qDAAqD,kBAA6I,YAAoC;AACjP,QAAO,KAAK,KAAK,0CAA0C,OAAO,SAAyD;AAGzH,SAAO,aAAa,KAAK,qBAAqB,SAC3C,OAAO,qBAAqB,aAAa,MAAM,iBAAiB,KAAK,GAAG,mBACzE,oDAAoD,EACpD,EAAE,QAAQ,KACT,CAAC;IACH,QAAQ;;AAEb,MAAa,wBAAwB,CACnC,mDAAmD,CACpD"}
|
|
@@ -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/ipns/ipns.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 getGetApiIpnsKeysResponseMock = (overrideResponse = {}) => ({
|
|
@@ -164,44 +164,37 @@ const getGetApiIpnsResolveNameResponseMock = (overrideResponse = {}) => ({
|
|
|
164
164
|
});
|
|
165
165
|
const getGetApiIpnsKeysMockHandler = (overrideResponse, options) => {
|
|
166
166
|
return http.get("*/api/ipns/keys", async (info) => {
|
|
167
|
-
await delay(0);
|
|
168
167
|
return HttpResponse.json(overrideResponse !== void 0 ? typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse : getGetApiIpnsKeysResponseMock(), { status: 200 });
|
|
169
168
|
}, options);
|
|
170
169
|
};
|
|
171
170
|
const getPostApiIpnsKeysMockHandler = (overrideResponse, options) => {
|
|
172
171
|
return http.post("*/api/ipns/keys", async (info) => {
|
|
173
|
-
await delay(0);
|
|
174
172
|
return HttpResponse.json(overrideResponse !== void 0 ? typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse : getPostApiIpnsKeysResponseMock(), { status: 200 });
|
|
175
173
|
}, options);
|
|
176
174
|
};
|
|
177
175
|
const getDeleteApiIpnsKeysIdMockHandler = (overrideResponse, options) => {
|
|
178
176
|
return http.delete("*/api/ipns/keys/:id", async (info) => {
|
|
179
|
-
await delay(0);
|
|
180
177
|
const resolvedBody = overrideResponse !== void 0 ? typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse : getDeleteApiIpnsKeysIdResponseMock();
|
|
181
178
|
return resolvedBody === void 0 ? new HttpResponse(null, { status: 204 }) : HttpResponse.json(resolvedBody, { status: 200 });
|
|
182
179
|
}, options);
|
|
183
180
|
};
|
|
184
181
|
const getGetApiIpnsKeysIdMockHandler = (overrideResponse, options) => {
|
|
185
182
|
return http.get("*/api/ipns/keys/:id", async (info) => {
|
|
186
|
-
await delay(0);
|
|
187
183
|
return HttpResponse.json(overrideResponse !== void 0 ? typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse : getGetApiIpnsKeysIdResponseMock(), { status: 200 });
|
|
188
184
|
}, options);
|
|
189
185
|
};
|
|
190
186
|
const getPostApiIpnsKeysIdRepublishMockHandler = (overrideResponse, options) => {
|
|
191
187
|
return http.post("*/api/ipns/keys/:id/republish", async (info) => {
|
|
192
|
-
await delay(0);
|
|
193
188
|
return HttpResponse.json(overrideResponse !== void 0 ? typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse : getPostApiIpnsKeysIdRepublishResponseMock(), { status: 200 });
|
|
194
189
|
}, options);
|
|
195
190
|
};
|
|
196
191
|
const getPostApiIpnsPublishMockHandler = (overrideResponse, options) => {
|
|
197
192
|
return http.post("*/api/ipns/publish", async (info) => {
|
|
198
|
-
await delay(0);
|
|
199
193
|
return HttpResponse.json(overrideResponse !== void 0 ? typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse : getPostApiIpnsPublishResponseMock(), { status: 200 });
|
|
200
194
|
}, options);
|
|
201
195
|
};
|
|
202
196
|
const getGetApiIpnsResolveNameMockHandler = (overrideResponse, options) => {
|
|
203
197
|
return http.get("*/api/ipns/resolve/:name", async (info) => {
|
|
204
|
-
await delay(0);
|
|
205
198
|
return HttpResponse.json(overrideResponse !== void 0 ? typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse : getGetApiIpnsResolveNameResponseMock(), { status: 200 });
|
|
206
199
|
}, options);
|
|
207
200
|
};
|