@bfra.me/api-core 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +11 -0
- package/LICENSE +18 -0
- package/README.md +18 -0
- package/dist/chunk-7NM3WYHE.js +32 -0
- package/dist/chunk-7NM3WYHE.js.map +1 -0
- package/dist/chunk-7QVYU63E.js +7 -0
- package/dist/chunk-7QVYU63E.js.map +1 -0
- package/dist/chunk-HKKQOEV3.js +786 -0
- package/dist/chunk-HKKQOEV3.js.map +1 -0
- package/dist/errors/fetchError.d.ts +13 -0
- package/dist/errors/fetchError.js +8 -0
- package/dist/errors/fetchError.js.map +1 -0
- package/dist/index.d.ts +47 -0
- package/dist/index.js +105 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/index.d.ts +59 -0
- package/dist/lib/index.js +16 -0
- package/dist/lib/index.js.map +1 -0
- package/dist/types.d.ts +22 -0
- package/dist/types.js +1 -0
- package/dist/types.js.map +1 -0
- package/eslint.config.ts +25 -0
- package/package.json +67 -0
- package/src/errors/fetchError.ts +29 -0
- package/src/index.ts +134 -0
- package/src/lib/getJSONSchemaDefaults.ts +77 -0
- package/src/lib/index.ts +7 -0
- package/src/lib/parseResponse.ts +28 -0
- package/src/lib/prepareAuth.ts +107 -0
- package/src/lib/prepareParams.ts +439 -0
- package/src/lib/prepareServer.ts +52 -0
- package/src/types.ts +28 -0
- package/test-utils/CHANGELOG.md +11 -0
- package/test-utils/datasets/real-world-apis.json +8507 -0
- package/test-utils/datasets/refresh-dataset +336 -0
- package/test-utils/definitions/alby.json +5391 -0
- package/test-utils/definitions/auth-quirks.json +62 -0
- package/test-utils/definitions/basiq.json +104 -0
- package/test-utils/definitions/metrotransit.json +318 -0
- package/test-utils/definitions/nested-defaults.json +107 -0
- package/test-utils/definitions/operationid-quirks.json +36 -0
- package/test-utils/definitions/optional-payload.json +57 -0
- package/test-utils/definitions/payloads.json +58 -0
- package/test-utils/definitions/response-title-quirks.json +77 -0
- package/test-utils/definitions/simple.json +291 -0
- package/test-utils/fetch-mock.ts +81 -0
- package/test-utils/fixtures/hello.jp.txt +1 -0
- package/test-utils/fixtures/hello.txt +1 -0
- package/test-utils/fixtures/owlbert-shrub.png +0 -0
- package/test-utils/fixtures/owlbert.png +0 -0
- package/test-utils/index.ts +2 -0
- package/test-utils/load-spec.ts +8 -0
- package/test-utils/node_modules/.bin/tsc +17 -0
- package/test-utils/node_modules/.bin/tsserver +17 -0
- package/test-utils/package.json +20 -0
- package/test-utils/sdks/README.md +3 -0
- package/test-utils/sdks/alby/README.md +23 -0
- package/test-utils/sdks/alby/package.json +55 -0
- package/test-utils/sdks/alby/src/index.ts +18 -0
- package/test-utils/sdks/alby/src/schemas/AmqpExternalRulePatch.ts +92 -0
- package/test-utils/sdks/alby/src/schemas/AmqpExternalRulePost.ts +93 -0
- package/test-utils/sdks/alby/src/schemas/AmqpExternalRuleResponse.ts +143 -0
- package/test-utils/sdks/alby/src/schemas/AmqpRulePatch.ts +76 -0
- package/test-utils/sdks/alby/src/schemas/AmqpRulePost.ts +85 -0
- package/test-utils/sdks/alby/src/schemas/AmqpRuleResponse.ts +124 -0
- package/test-utils/sdks/alby/src/schemas/AppPatch.ts +68 -0
- package/test-utils/sdks/alby/src/schemas/AppPkcs12.ts +22 -0
- package/test-utils/sdks/alby/src/schemas/AppPost.ts +71 -0
- package/test-utils/sdks/alby/src/schemas/AppResponse.ts +69 -0
- package/test-utils/sdks/alby/src/schemas/AwsAccessKeys.ts +28 -0
- package/test-utils/sdks/alby/src/schemas/AwsAccessKeysResponse.ts +20 -0
- package/test-utils/sdks/alby/src/schemas/AwsAssumeRole.ts +23 -0
- package/test-utils/sdks/alby/src/schemas/AwsKinesisRulePatch.ts +90 -0
- package/test-utils/sdks/alby/src/schemas/AwsKinesisRulePost.ts +103 -0
- package/test-utils/sdks/alby/src/schemas/AwsKinesisRuleResponse.ts +142 -0
- package/test-utils/sdks/alby/src/schemas/AwsLambdaRulePatch.ts +90 -0
- package/test-utils/sdks/alby/src/schemas/AwsLambdaRulePost.ts +90 -0
- package/test-utils/sdks/alby/src/schemas/AwsLambdaRuleResponse.ts +132 -0
- package/test-utils/sdks/alby/src/schemas/AwsSqsRulePatch.ts +86 -0
- package/test-utils/sdks/alby/src/schemas/AwsSqsRulePost.ts +98 -0
- package/test-utils/sdks/alby/src/schemas/AwsSqsRuleResponse.ts +137 -0
- package/test-utils/sdks/alby/src/schemas/AzureFunctionRulePatch.ts +96 -0
- package/test-utils/sdks/alby/src/schemas/AzureFunctionRulePost.ts +106 -0
- package/test-utils/sdks/alby/src/schemas/AzureFunctionRuleResponse.ts +145 -0
- package/test-utils/sdks/alby/src/schemas/CloudflareWorkerRulePatch.ts +74 -0
- package/test-utils/sdks/alby/src/schemas/CloudflareWorkerRulePost.ts +83 -0
- package/test-utils/sdks/alby/src/schemas/CloudflareWorkerRuleResponse.ts +125 -0
- package/test-utils/sdks/alby/src/schemas/DeleteAppsAppIdNamespacesNamespaceId.ts +26 -0
- package/test-utils/sdks/alby/src/schemas/DeleteAppsAppIdQueuesQueueId.ts +26 -0
- package/test-utils/sdks/alby/src/schemas/DeleteAppsAppIdRulesRuleId.ts +26 -0
- package/test-utils/sdks/alby/src/schemas/DeleteAppsId.ts +20 -0
- package/test-utils/sdks/alby/src/schemas/Error.ts +39 -0
- package/test-utils/sdks/alby/src/schemas/GetAccountsAccountIdApps.ts +29 -0
- package/test-utils/sdks/alby/src/schemas/GetAppsAppIdKeys.ts +29 -0
- package/test-utils/sdks/alby/src/schemas/GetAppsAppIdNamespaces.ts +29 -0
- package/test-utils/sdks/alby/src/schemas/GetAppsAppIdQueues.ts +29 -0
- package/test-utils/sdks/alby/src/schemas/GetAppsAppIdRules.ts +29 -0
- package/test-utils/sdks/alby/src/schemas/GetAppsAppIdRulesRuleId.ts +26 -0
- package/test-utils/sdks/alby/src/schemas/GoogleCloudFunctionRulePatch.ts +100 -0
- package/test-utils/sdks/alby/src/schemas/GoogleCloudFunctionRulePost.ts +100 -0
- package/test-utils/sdks/alby/src/schemas/GoogleCloudFunctionRuleResponse.ts +150 -0
- package/test-utils/sdks/alby/src/schemas/HttpRulePatch.ts +89 -0
- package/test-utils/sdks/alby/src/schemas/HttpRulePost.ts +100 -0
- package/test-utils/sdks/alby/src/schemas/HttpRuleResponse.ts +138 -0
- package/test-utils/sdks/alby/src/schemas/IftttRulePatch.ts +59 -0
- package/test-utils/sdks/alby/src/schemas/IftttRulePost.ts +62 -0
- package/test-utils/sdks/alby/src/schemas/IftttRuleResponse.ts +101 -0
- package/test-utils/sdks/alby/src/schemas/KeyPatch.ts +34 -0
- package/test-utils/sdks/alby/src/schemas/KeyPost.ts +39 -0
- package/test-utils/sdks/alby/src/schemas/KeyResponse.ts +63 -0
- package/test-utils/sdks/alby/src/schemas/Me.ts +98 -0
- package/test-utils/sdks/alby/src/schemas/NamespacePatch.ts +49 -0
- package/test-utils/sdks/alby/src/schemas/NamespacePost.ts +59 -0
- package/test-utils/sdks/alby/src/schemas/NamespaceResponse.ts +70 -0
- package/test-utils/sdks/alby/src/schemas/PatchAppsAppIdKeysKeyId.ts +26 -0
- package/test-utils/sdks/alby/src/schemas/PatchAppsAppIdNamespacesNamespaceId.ts +26 -0
- package/test-utils/sdks/alby/src/schemas/PatchAppsAppIdRulesRuleId.ts +26 -0
- package/test-utils/sdks/alby/src/schemas/PatchAppsId.ts +20 -0
- package/test-utils/sdks/alby/src/schemas/PostAccountsAccountIdApps.ts +20 -0
- package/test-utils/sdks/alby/src/schemas/PostAppsAppIdKeys.ts +20 -0
- package/test-utils/sdks/alby/src/schemas/PostAppsAppIdKeysKeyIdRevoke.ts +26 -0
- package/test-utils/sdks/alby/src/schemas/PostAppsAppIdNamespaces.ts +20 -0
- package/test-utils/sdks/alby/src/schemas/PostAppsAppIdQueues.ts +20 -0
- package/test-utils/sdks/alby/src/schemas/PostAppsAppIdRules.ts +20 -0
- package/test-utils/sdks/alby/src/schemas/PostAppsIdPkcs12.ts +20 -0
- package/test-utils/sdks/alby/src/schemas/Queue.ts +43 -0
- package/test-utils/sdks/alby/src/schemas/QueueResponse.ts +185 -0
- package/test-utils/sdks/alby/src/schemas/RulePatch.ts +46 -0
- package/test-utils/sdks/alby/src/schemas/RulePost.ts +49 -0
- package/test-utils/sdks/alby/src/schemas/RuleResponse.ts +46 -0
- package/test-utils/sdks/alby/src/schemas/RuleSource.ts +30 -0
- package/test-utils/sdks/alby/src/schemas/UnsupportedRuleResponse.ts +98 -0
- package/test-utils/sdks/alby/src/schemas/ZapierRulePatch.ts +74 -0
- package/test-utils/sdks/alby/src/schemas/ZapierRulePost.ts +83 -0
- package/test-utils/sdks/alby/src/schemas/ZapierRuleResponse.ts +122 -0
- package/test-utils/sdks/alby/src/schemas.ts +77 -0
- package/test-utils/sdks/alby/src/sdk.ts +381 -0
- package/test-utils/sdks/alby/src/types.ts +84 -0
- package/test-utils/sdks/alby/tsconfig.json +12 -0
- package/test-utils/sdks/metrotransit/README.md +22 -0
- package/test-utils/sdks/metrotransit/package.json +55 -0
- package/test-utils/sdks/metrotransit/src/index.ts +12 -0
- package/test-utils/sdks/metrotransit/src/schemas/Agency.ts +19 -0
- package/test-utils/sdks/metrotransit/src/schemas/AlertMessage.ts +18 -0
- package/test-utils/sdks/metrotransit/src/schemas/Departure.ts +78 -0
- package/test-utils/sdks/metrotransit/src/schemas/Direction.ts +19 -0
- package/test-utils/sdks/metrotransit/src/schemas/GetNextripAgencies.ts +12 -0
- package/test-utils/sdks/metrotransit/src/schemas/GetNextripDirectionsRouteId.ts +28 -0
- package/test-utils/sdks/metrotransit/src/schemas/GetNextripRouteIdDirectionIdPlaceCode.ts +30 -0
- package/test-utils/sdks/metrotransit/src/schemas/GetNextripRoutes.ts +12 -0
- package/test-utils/sdks/metrotransit/src/schemas/GetNextripStopId.ts +20 -0
- package/test-utils/sdks/metrotransit/src/schemas/GetNextripStopsRouteIdDirectionId.ts +34 -0
- package/test-utils/sdks/metrotransit/src/schemas/GetNextripVehiclesRouteId.ts +28 -0
- package/test-utils/sdks/metrotransit/src/schemas/NexTripResult.ts +34 -0
- package/test-utils/sdks/metrotransit/src/schemas/Place.ts +21 -0
- package/test-utils/sdks/metrotransit/src/schemas/ProblemDetails.ts +40 -0
- package/test-utils/sdks/metrotransit/src/schemas/Route.ts +25 -0
- package/test-utils/sdks/metrotransit/src/schemas/Stop.ts +27 -0
- package/test-utils/sdks/metrotransit/src/schemas/Vehicle.ts +61 -0
- package/test-utils/sdks/metrotransit/src/schemas.ts +18 -0
- package/test-utils/sdks/metrotransit/src/sdk.ts +107 -0
- package/test-utils/sdks/metrotransit/src/types.ts +23 -0
- package/test-utils/sdks/metrotransit/tsconfig.json +12 -0
- package/test-utils/sdks/operationid-quirks/README.md +22 -0
- package/test-utils/sdks/operationid-quirks/package.json +50 -0
- package/test-utils/sdks/operationid-quirks/src/index.ts +9 -0
- package/test-utils/sdks/operationid-quirks/src/sdk.ts +107 -0
- package/test-utils/sdks/operationid-quirks/tsconfig.json +12 -0
- package/test-utils/sdks/optional-payload/README.md +14 -0
- package/test-utils/sdks/optional-payload/package.json +55 -0
- package/test-utils/sdks/optional-payload/src/index.ts +9 -0
- package/test-utils/sdks/optional-payload/src/schemas/UpdatePetWithForm.ts +35 -0
- package/test-utils/sdks/optional-payload/src/schemas.ts +2 -0
- package/test-utils/sdks/optional-payload/src/sdk.ts +82 -0
- package/test-utils/sdks/optional-payload/src/types.ts +5 -0
- package/test-utils/sdks/optional-payload/tsconfig.json +12 -0
- package/test-utils/sdks/petstore/LICENSE +97 -0
- package/test-utils/sdks/petstore/README.md +23 -0
- package/test-utils/sdks/petstore/package.json +56 -0
- package/test-utils/sdks/petstore/src/index.ts +17 -0
- package/test-utils/sdks/petstore/src/schemas/ApiResponse.ts +18 -0
- package/test-utils/sdks/petstore/src/schemas/Category.ts +15 -0
- package/test-utils/sdks/petstore/src/schemas/CreateUsersWithArrayInput.ts +10 -0
- package/test-utils/sdks/petstore/src/schemas/CreateUsersWithListInput.ts +10 -0
- package/test-utils/sdks/petstore/src/schemas/DeleteOrder.ts +22 -0
- package/test-utils/sdks/petstore/src/schemas/DeletePet.ts +31 -0
- package/test-utils/sdks/petstore/src/schemas/DeleteUser.ts +20 -0
- package/test-utils/sdks/petstore/src/schemas/FindPetsByStatus.ts +38 -0
- package/test-utils/sdks/petstore/src/schemas/FindPetsByTags.ts +32 -0
- package/test-utils/sdks/petstore/src/schemas/GetInventory.ts +13 -0
- package/test-utils/sdks/petstore/src/schemas/GetOrderById.ts +23 -0
- package/test-utils/sdks/petstore/src/schemas/GetPetById.ts +21 -0
- package/test-utils/sdks/petstore/src/schemas/GetUserByName.ts +20 -0
- package/test-utils/sdks/petstore/src/schemas/LoginUser.ts +32 -0
- package/test-utils/sdks/petstore/src/schemas/Order.ts +37 -0
- package/test-utils/sdks/petstore/src/schemas/Pet.ts +53 -0
- package/test-utils/sdks/petstore/src/schemas/Tag.ts +15 -0
- package/test-utils/sdks/petstore/src/schemas/UpdatePetWithForm.ts +35 -0
- package/test-utils/sdks/petstore/src/schemas/UpdateUser.ts +20 -0
- package/test-utils/sdks/petstore/src/schemas/UploadFile.ts +36 -0
- package/test-utils/sdks/petstore/src/schemas/User.ts +35 -0
- package/test-utils/sdks/petstore/src/schemas.ts +22 -0
- package/test-utils/sdks/petstore/src/sdk.ts +248 -0
- package/test-utils/sdks/petstore/src/types.ts +29 -0
- package/test-utils/sdks/petstore/tsconfig.json +12 -0
- package/test-utils/sdks/readme/README.md +23 -0
- package/test-utils/sdks/readme/package.json +55 -0
- package/test-utils/sdks/readme/src/index.ts +13 -0
- package/test-utils/sdks/readme/src/schemas/Apply.ts +61 -0
- package/test-utils/sdks/readme/src/schemas/Category.ts +24 -0
- package/test-utils/sdks/readme/src/schemas/Changelog.ts +36 -0
- package/test-utils/sdks/readme/src/schemas/CondensedProjectData.ts +25 -0
- package/test-utils/sdks/readme/src/schemas/CreateCategory.ts +21 -0
- package/test-utils/sdks/readme/src/schemas/CreateCustomPage.ts +22 -0
- package/test-utils/sdks/readme/src/schemas/CreateDoc.ts +40 -0
- package/test-utils/sdks/readme/src/schemas/CreateVersion.ts +33 -0
- package/test-utils/sdks/readme/src/schemas/CustomPage.ts +33 -0
- package/test-utils/sdks/readme/src/schemas/DeleteApiSpecification.ts +39 -0
- package/test-utils/sdks/readme/src/schemas/DeleteCategory.ts +37 -0
- package/test-utils/sdks/readme/src/schemas/DeleteChangelog.ts +20 -0
- package/test-utils/sdks/readme/src/schemas/DeleteCustomPage.ts +39 -0
- package/test-utils/sdks/readme/src/schemas/DeleteDoc.ts +53 -0
- package/test-utils/sdks/readme/src/schemas/DeleteVersion.ts +42 -0
- package/test-utils/sdks/readme/src/schemas/DocSchemaPost.ts +135 -0
- package/test-utils/sdks/readme/src/schemas/DocSchemaPut.ts +62 -0
- package/test-utils/sdks/readme/src/schemas/DocSchemaResponse.ts +54 -0
- package/test-utils/sdks/readme/src/schemas/ErrorApikeyEmpty.ts +49 -0
- package/test-utils/sdks/readme/src/schemas/ErrorApikeyMismatch.ts +49 -0
- package/test-utils/sdks/readme/src/schemas/ErrorApikeyNotfound.ts +49 -0
- package/test-utils/sdks/readme/src/schemas/ErrorCategoryInvalid.ts +49 -0
- package/test-utils/sdks/readme/src/schemas/ErrorCategoryNotfound.ts +49 -0
- package/test-utils/sdks/readme/src/schemas/ErrorCustompageInvalid.ts +49 -0
- package/test-utils/sdks/readme/src/schemas/ErrorCustompageNotfound.ts +49 -0
- package/test-utils/sdks/readme/src/schemas/ErrorDocInvalid.ts +49 -0
- package/test-utils/sdks/readme/src/schemas/ErrorDocNotfound.ts +49 -0
- package/test-utils/sdks/readme/src/schemas/ErrorRegistryNotfound.ts +49 -0
- package/test-utils/sdks/readme/src/schemas/ErrorSpecFileEmpty.ts +49 -0
- package/test-utils/sdks/readme/src/schemas/ErrorSpecIdDuplicate.ts +49 -0
- package/test-utils/sdks/readme/src/schemas/ErrorSpecIdInvalid.ts +49 -0
- package/test-utils/sdks/readme/src/schemas/ErrorSpecInvalid.ts +49 -0
- package/test-utils/sdks/readme/src/schemas/ErrorSpecInvalidSchema.ts +49 -0
- package/test-utils/sdks/readme/src/schemas/ErrorSpecNotfound.ts +49 -0
- package/test-utils/sdks/readme/src/schemas/ErrorSpecTimeout.ts +49 -0
- package/test-utils/sdks/readme/src/schemas/ErrorSpecVersionNotfound.ts +49 -0
- package/test-utils/sdks/readme/src/schemas/ErrorVersionCantDemoteStable.ts +49 -0
- package/test-utils/sdks/readme/src/schemas/ErrorVersionCantRemoveStable.ts +49 -0
- package/test-utils/sdks/readme/src/schemas/ErrorVersionDuplicate.ts +49 -0
- package/test-utils/sdks/readme/src/schemas/ErrorVersionEmpty.ts +49 -0
- package/test-utils/sdks/readme/src/schemas/ErrorVersionForkEmpty.ts +49 -0
- package/test-utils/sdks/readme/src/schemas/ErrorVersionForkNotfound.ts +49 -0
- package/test-utils/sdks/readme/src/schemas/ErrorVersionNotfound.ts +49 -0
- package/test-utils/sdks/readme/src/schemas/GetApiRegistry.ts +27 -0
- package/test-utils/sdks/readme/src/schemas/GetApiSchema.ts +10 -0
- package/test-utils/sdks/readme/src/schemas/GetApiSpecification.ts +74 -0
- package/test-utils/sdks/readme/src/schemas/GetCategories.ts +57 -0
- package/test-utils/sdks/readme/src/schemas/GetCategory.ts +37 -0
- package/test-utils/sdks/readme/src/schemas/GetCategoryDocs.ts +37 -0
- package/test-utils/sdks/readme/src/schemas/GetChangelog.ts +20 -0
- package/test-utils/sdks/readme/src/schemas/GetChangelogs.ts +43 -0
- package/test-utils/sdks/readme/src/schemas/GetCustomPage.ts +39 -0
- package/test-utils/sdks/readme/src/schemas/GetCustomPages.ts +60 -0
- package/test-utils/sdks/readme/src/schemas/GetDoc.ts +53 -0
- package/test-utils/sdks/readme/src/schemas/GetOpenRoles.ts +12 -0
- package/test-utils/sdks/readme/src/schemas/GetProductionDoc.ts +53 -0
- package/test-utils/sdks/readme/src/schemas/GetProject.ts +22 -0
- package/test-utils/sdks/readme/src/schemas/GetVersion.ts +42 -0
- package/test-utils/sdks/readme/src/schemas/GetVersions.ts +22 -0
- package/test-utils/sdks/readme/src/schemas/JobOpening.ts +52 -0
- package/test-utils/sdks/readme/src/schemas/SearchDocs.ts +53 -0
- package/test-utils/sdks/readme/src/schemas/UpdateApiSpecification.ts +67 -0
- package/test-utils/sdks/readme/src/schemas/UpdateCategory.ts +37 -0
- package/test-utils/sdks/readme/src/schemas/UpdateChangelog.ts +20 -0
- package/test-utils/sdks/readme/src/schemas/UpdateCustomPage.ts +39 -0
- package/test-utils/sdks/readme/src/schemas/UpdateDoc.ts +53 -0
- package/test-utils/sdks/readme/src/schemas/UpdateVersion.ts +42 -0
- package/test-utils/sdks/readme/src/schemas/UploadApiSpecification.ts +64 -0
- package/test-utils/sdks/readme/src/schemas/Version.ts +40 -0
- package/test-utils/sdks/readme/src/schemas.ts +70 -0
- package/test-utils/sdks/readme/src/sdk.ts +477 -0
- package/test-utils/sdks/readme/src/types.ts +120 -0
- package/test-utils/sdks/readme/tsconfig.json +12 -0
- package/test-utils/sdks/response-title-quirks/README.md +14 -0
- package/test-utils/sdks/response-title-quirks/package.json +55 -0
- package/test-utils/sdks/response-title-quirks/src/index.ts +9 -0
- package/test-utils/sdks/response-title-quirks/src/schemas/GetAnything.ts +60 -0
- package/test-utils/sdks/response-title-quirks/src/schemas.ts +2 -0
- package/test-utils/sdks/response-title-quirks/src/sdk.ts +76 -0
- package/test-utils/sdks/response-title-quirks/src/types.ts +5 -0
- package/test-utils/sdks/response-title-quirks/tsconfig.json +12 -0
- package/test-utils/sdks/simple/README.md +14 -0
- package/test-utils/sdks/simple/package.json +55 -0
- package/test-utils/sdks/simple/src/index.ts +10 -0
- package/test-utils/sdks/simple/src/schemas/Category.ts +15 -0
- package/test-utils/sdks/simple/src/schemas/FindPetsByStatus.ts +38 -0
- package/test-utils/sdks/simple/src/schemas/Pet.ts +53 -0
- package/test-utils/sdks/simple/src/schemas/Tag.ts +15 -0
- package/test-utils/sdks/simple/src/schemas.ts +5 -0
- package/test-utils/sdks/simple/src/sdk.ts +81 -0
- package/test-utils/sdks/simple/src/types.ts +8 -0
- package/test-utils/sdks/simple/tsconfig.json +12 -0
- package/test-utils/sdks/star-trek/README.md +22 -0
- package/test-utils/sdks/star-trek/package.json +55 -0
- package/test-utils/sdks/star-trek/src/index.ts +9 -0
- package/test-utils/sdks/star-trek/src/schemas/AnimalBase.ts +41 -0
- package/test-utils/sdks/star-trek/src/schemas/AnimalBaseResponse.ts +20 -0
- package/test-utils/sdks/star-trek/src/schemas/AnimalFull.ts +41 -0
- package/test-utils/sdks/star-trek/src/schemas/AnimalFullResponse.ts +12 -0
- package/test-utils/sdks/star-trek/src/schemas/AstronomicalObjectBase.ts +27 -0
- package/test-utils/sdks/star-trek/src/schemas/AstronomicalObjectBaseResponse.ts +20 -0
- package/test-utils/sdks/star-trek/src/schemas/AstronomicalObjectFull.ts +32 -0
- package/test-utils/sdks/star-trek/src/schemas/AstronomicalObjectFullResponse.ts +12 -0
- package/test-utils/sdks/star-trek/src/schemas/AstronomicalObjectHeader.ts +21 -0
- package/test-utils/sdks/star-trek/src/schemas/AstronomicalObjectType.ts +36 -0
- package/test-utils/sdks/star-trek/src/schemas/BloodType.ts +12 -0
- package/test-utils/sdks/star-trek/src/schemas/BookBase.ts +120 -0
- package/test-utils/sdks/star-trek/src/schemas/BookBaseResponse.ts +20 -0
- package/test-utils/sdks/star-trek/src/schemas/BookCollectionBase.ts +51 -0
- package/test-utils/sdks/star-trek/src/schemas/BookCollectionBaseResponse.ts +20 -0
- package/test-utils/sdks/star-trek/src/schemas/BookCollectionFull.ts +98 -0
- package/test-utils/sdks/star-trek/src/schemas/BookCollectionFullResponse.ts +12 -0
- package/test-utils/sdks/star-trek/src/schemas/BookFull.ts +182 -0
- package/test-utils/sdks/star-trek/src/schemas/BookFullResponse.ts +12 -0
- package/test-utils/sdks/star-trek/src/schemas/BookSeriesBase.ts +57 -0
- package/test-utils/sdks/star-trek/src/schemas/BookSeriesBaseResponse.ts +20 -0
- package/test-utils/sdks/star-trek/src/schemas/BookSeriesFull.ts +81 -0
- package/test-utils/sdks/star-trek/src/schemas/BookSeriesFullResponse.ts +12 -0
- package/test-utils/sdks/star-trek/src/schemas/CharacterBase.ts +104 -0
- package/test-utils/sdks/star-trek/src/schemas/CharacterBaseResponse.ts +20 -0
- package/test-utils/sdks/star-trek/src/schemas/CharacterFull.ts +152 -0
- package/test-utils/sdks/star-trek/src/schemas/CharacterFullResponse.ts +12 -0
- package/test-utils/sdks/star-trek/src/schemas/CharacterHeader.ts +21 -0
- package/test-utils/sdks/star-trek/src/schemas/CharacterRelation.ts +17 -0
- package/test-utils/sdks/star-trek/src/schemas/CharacterSpecies.ts +25 -0
- package/test-utils/sdks/star-trek/src/schemas/ComicCollectionBase.ts +71 -0
- package/test-utils/sdks/star-trek/src/schemas/ComicCollectionBaseResponse.ts +20 -0
- package/test-utils/sdks/star-trek/src/schemas/ComicCollectionFull.ts +123 -0
- package/test-utils/sdks/star-trek/src/schemas/ComicCollectionFullResponse.ts +12 -0
- package/test-utils/sdks/star-trek/src/schemas/ComicSeriesBase.ts +75 -0
- package/test-utils/sdks/star-trek/src/schemas/ComicSeriesBaseResponse.ts +20 -0
- package/test-utils/sdks/star-trek/src/schemas/ComicSeriesFull.ts +99 -0
- package/test-utils/sdks/star-trek/src/schemas/ComicSeriesFullResponse.ts +12 -0
- package/test-utils/sdks/star-trek/src/schemas/ComicStripBase.ts +61 -0
- package/test-utils/sdks/star-trek/src/schemas/ComicStripBaseResponse.ts +20 -0
- package/test-utils/sdks/star-trek/src/schemas/ComicStripFull.ts +85 -0
- package/test-utils/sdks/star-trek/src/schemas/ComicStripFullResponse.ts +12 -0
- package/test-utils/sdks/star-trek/src/schemas/ComicsBase.ts +75 -0
- package/test-utils/sdks/star-trek/src/schemas/ComicsBaseResponse.ts +20 -0
- package/test-utils/sdks/star-trek/src/schemas/ComicsFull.ts +127 -0
- package/test-utils/sdks/star-trek/src/schemas/ComicsFullResponse.ts +12 -0
- package/test-utils/sdks/star-trek/src/schemas/CompanyBase.ts +89 -0
- package/test-utils/sdks/star-trek/src/schemas/CompanyBaseResponse.ts +20 -0
- package/test-utils/sdks/star-trek/src/schemas/CompanyFull.ts +89 -0
- package/test-utils/sdks/star-trek/src/schemas/CompanyFullResponse.ts +12 -0
- package/test-utils/sdks/star-trek/src/schemas/CompanyHeader.ts +21 -0
- package/test-utils/sdks/star-trek/src/schemas/ConflictBase.ts +49 -0
- package/test-utils/sdks/star-trek/src/schemas/ConflictBaseResponse.ts +20 -0
- package/test-utils/sdks/star-trek/src/schemas/ConflictFull.ts +78 -0
- package/test-utils/sdks/star-trek/src/schemas/ConflictFullResponse.ts +12 -0
- package/test-utils/sdks/star-trek/src/schemas/ContentLanguage.ts +21 -0
- package/test-utils/sdks/star-trek/src/schemas/ContentRating.ts +20 -0
- package/test-utils/sdks/star-trek/src/schemas/ContentRatingSystem.ts +35 -0
- package/test-utils/sdks/star-trek/src/schemas/Country.ts +21 -0
- package/test-utils/sdks/star-trek/src/schemas/ElementBase.ts +61 -0
- package/test-utils/sdks/star-trek/src/schemas/ElementBaseResponse.ts +20 -0
- package/test-utils/sdks/star-trek/src/schemas/ElementFull.ts +61 -0
- package/test-utils/sdks/star-trek/src/schemas/ElementFullResponse.ts +12 -0
- package/test-utils/sdks/star-trek/src/schemas/EpisodeBase.ts +82 -0
- package/test-utils/sdks/star-trek/src/schemas/EpisodeBaseResponse.ts +20 -0
- package/test-utils/sdks/star-trek/src/schemas/EpisodeFull.ts +125 -0
- package/test-utils/sdks/star-trek/src/schemas/EpisodeFullResponse.ts +12 -0
- package/test-utils/sdks/star-trek/src/schemas/Error.ts +17 -0
- package/test-utils/sdks/star-trek/src/schemas/FoodBase.ts +61 -0
- package/test-utils/sdks/star-trek/src/schemas/FoodBaseResponse.ts +20 -0
- package/test-utils/sdks/star-trek/src/schemas/FoodFull.ts +61 -0
- package/test-utils/sdks/star-trek/src/schemas/FoodFullResponse.ts +12 -0
- package/test-utils/sdks/star-trek/src/schemas/Gender.ts +11 -0
- package/test-utils/sdks/star-trek/src/schemas/Genre.ts +17 -0
- package/test-utils/sdks/star-trek/src/schemas/GetAnimal.ts +25 -0
- package/test-utils/sdks/star-trek/src/schemas/GetAnimalSearch.ts +30 -0
- package/test-utils/sdks/star-trek/src/schemas/GetAstronomicalobject.ts +25 -0
- package/test-utils/sdks/star-trek/src/schemas/GetAstronomicalobjectSearch.ts +30 -0
- package/test-utils/sdks/star-trek/src/schemas/GetBook.ts +25 -0
- package/test-utils/sdks/star-trek/src/schemas/GetBookSearch.ts +30 -0
- package/test-utils/sdks/star-trek/src/schemas/GetBookcollection.ts +25 -0
- package/test-utils/sdks/star-trek/src/schemas/GetBookcollectionSearch.ts +30 -0
- package/test-utils/sdks/star-trek/src/schemas/GetBookseries.ts +25 -0
- package/test-utils/sdks/star-trek/src/schemas/GetBookseriesSearch.ts +30 -0
- package/test-utils/sdks/star-trek/src/schemas/GetCharacter.ts +25 -0
- package/test-utils/sdks/star-trek/src/schemas/GetCharacterSearch.ts +30 -0
- package/test-utils/sdks/star-trek/src/schemas/GetComiccollection.ts +25 -0
- package/test-utils/sdks/star-trek/src/schemas/GetComiccollectionSearch.ts +30 -0
- package/test-utils/sdks/star-trek/src/schemas/GetComics.ts +25 -0
- package/test-utils/sdks/star-trek/src/schemas/GetComicsSearch.ts +30 -0
- package/test-utils/sdks/star-trek/src/schemas/GetComicseries.ts +25 -0
- package/test-utils/sdks/star-trek/src/schemas/GetComicseriesSearch.ts +30 -0
- package/test-utils/sdks/star-trek/src/schemas/GetComicstrip.ts +25 -0
- package/test-utils/sdks/star-trek/src/schemas/GetComicstripSearch.ts +30 -0
- package/test-utils/sdks/star-trek/src/schemas/GetCompany.ts +25 -0
- package/test-utils/sdks/star-trek/src/schemas/GetCompanySearch.ts +30 -0
- package/test-utils/sdks/star-trek/src/schemas/GetConflict.ts +25 -0
- package/test-utils/sdks/star-trek/src/schemas/GetConflictSearch.ts +30 -0
- package/test-utils/sdks/star-trek/src/schemas/GetElement.ts +25 -0
- package/test-utils/sdks/star-trek/src/schemas/GetElementSearch.ts +30 -0
- package/test-utils/sdks/star-trek/src/schemas/GetEpisode.ts +25 -0
- package/test-utils/sdks/star-trek/src/schemas/GetEpisodeSearch.ts +30 -0
- package/test-utils/sdks/star-trek/src/schemas/GetFood.ts +25 -0
- package/test-utils/sdks/star-trek/src/schemas/GetFoodSearch.ts +30 -0
- package/test-utils/sdks/star-trek/src/schemas/GetLiterature.ts +25 -0
- package/test-utils/sdks/star-trek/src/schemas/GetLiteratureSearch.ts +30 -0
- package/test-utils/sdks/star-trek/src/schemas/GetLocation.ts +25 -0
- package/test-utils/sdks/star-trek/src/schemas/GetLocationSearch.ts +30 -0
- package/test-utils/sdks/star-trek/src/schemas/GetMagazine.ts +25 -0
- package/test-utils/sdks/star-trek/src/schemas/GetMagazineSearch.ts +30 -0
- package/test-utils/sdks/star-trek/src/schemas/GetMagazineseries.ts +25 -0
- package/test-utils/sdks/star-trek/src/schemas/GetMagazineseriesSearch.ts +30 -0
- package/test-utils/sdks/star-trek/src/schemas/GetMaterial.ts +25 -0
- package/test-utils/sdks/star-trek/src/schemas/GetMaterialSearch.ts +30 -0
- package/test-utils/sdks/star-trek/src/schemas/GetMedicalcondition.ts +25 -0
- package/test-utils/sdks/star-trek/src/schemas/GetMedicalconditionSearch.ts +30 -0
- package/test-utils/sdks/star-trek/src/schemas/GetMovie.ts +25 -0
- package/test-utils/sdks/star-trek/src/schemas/GetMovieSearch.ts +30 -0
- package/test-utils/sdks/star-trek/src/schemas/GetOccupation.ts +25 -0
- package/test-utils/sdks/star-trek/src/schemas/GetOccupationSearch.ts +30 -0
- package/test-utils/sdks/star-trek/src/schemas/GetOrganization.ts +25 -0
- package/test-utils/sdks/star-trek/src/schemas/GetOrganizationSearch.ts +30 -0
- package/test-utils/sdks/star-trek/src/schemas/GetPerformer.ts +25 -0
- package/test-utils/sdks/star-trek/src/schemas/GetPerformerSearch.ts +30 -0
- package/test-utils/sdks/star-trek/src/schemas/GetSeason.ts +25 -0
- package/test-utils/sdks/star-trek/src/schemas/GetSeasonSearch.ts +30 -0
- package/test-utils/sdks/star-trek/src/schemas/GetSeries.ts +25 -0
- package/test-utils/sdks/star-trek/src/schemas/GetSeriesSearch.ts +30 -0
- package/test-utils/sdks/star-trek/src/schemas/GetSoundtrack.ts +25 -0
- package/test-utils/sdks/star-trek/src/schemas/GetSoundtrackSearch.ts +30 -0
- package/test-utils/sdks/star-trek/src/schemas/GetSpacecraft.ts +25 -0
- package/test-utils/sdks/star-trek/src/schemas/GetSpacecraftSearch.ts +30 -0
- package/test-utils/sdks/star-trek/src/schemas/GetSpacecraftclass.ts +25 -0
- package/test-utils/sdks/star-trek/src/schemas/GetSpacecraftclassSearch.ts +30 -0
- package/test-utils/sdks/star-trek/src/schemas/GetSpecies.ts +25 -0
- package/test-utils/sdks/star-trek/src/schemas/GetSpeciesSearch.ts +30 -0
- package/test-utils/sdks/star-trek/src/schemas/GetStaff.ts +25 -0
- package/test-utils/sdks/star-trek/src/schemas/GetStaffSearch.ts +30 -0
- package/test-utils/sdks/star-trek/src/schemas/GetTechnology.ts +25 -0
- package/test-utils/sdks/star-trek/src/schemas/GetTechnologySearch.ts +30 -0
- package/test-utils/sdks/star-trek/src/schemas/GetTitle.ts +25 -0
- package/test-utils/sdks/star-trek/src/schemas/GetTitleSearch.ts +30 -0
- package/test-utils/sdks/star-trek/src/schemas/GetTradingcard.ts +25 -0
- package/test-utils/sdks/star-trek/src/schemas/GetTradingcardSearch.ts +30 -0
- package/test-utils/sdks/star-trek/src/schemas/GetTradingcarddeck.ts +25 -0
- package/test-utils/sdks/star-trek/src/schemas/GetTradingcarddeckSearch.ts +30 -0
- package/test-utils/sdks/star-trek/src/schemas/GetTradingcardset.ts +25 -0
- package/test-utils/sdks/star-trek/src/schemas/GetTradingcardsetSearch.ts +30 -0
- package/test-utils/sdks/star-trek/src/schemas/GetVideogame.ts +25 -0
- package/test-utils/sdks/star-trek/src/schemas/GetVideogameSearch.ts +30 -0
- package/test-utils/sdks/star-trek/src/schemas/GetVideorelease.ts +25 -0
- package/test-utils/sdks/star-trek/src/schemas/GetVideoreleaseSearch.ts +30 -0
- package/test-utils/sdks/star-trek/src/schemas/GetWeapon.ts +25 -0
- package/test-utils/sdks/star-trek/src/schemas/GetWeaponSearch.ts +30 -0
- package/test-utils/sdks/star-trek/src/schemas/LiteratureBase.ts +45 -0
- package/test-utils/sdks/star-trek/src/schemas/LiteratureBaseResponse.ts +20 -0
- package/test-utils/sdks/star-trek/src/schemas/LiteratureFull.ts +45 -0
- package/test-utils/sdks/star-trek/src/schemas/LiteratureFullResponse.ts +12 -0
- package/test-utils/sdks/star-trek/src/schemas/LocationBase.ts +113 -0
- package/test-utils/sdks/star-trek/src/schemas/LocationBaseResponse.ts +20 -0
- package/test-utils/sdks/star-trek/src/schemas/LocationFull.ts +113 -0
- package/test-utils/sdks/star-trek/src/schemas/LocationFullResponse.ts +12 -0
- package/test-utils/sdks/star-trek/src/schemas/MagazineBase.ts +53 -0
- package/test-utils/sdks/star-trek/src/schemas/MagazineBaseResponse.ts +20 -0
- package/test-utils/sdks/star-trek/src/schemas/MagazineFull.ts +72 -0
- package/test-utils/sdks/star-trek/src/schemas/MagazineFullResponse.ts +12 -0
- package/test-utils/sdks/star-trek/src/schemas/MagazineSeriesBase.ts +41 -0
- package/test-utils/sdks/star-trek/src/schemas/MagazineSeriesBaseResponse.ts +20 -0
- package/test-utils/sdks/star-trek/src/schemas/MagazineSeriesFull.ts +60 -0
- package/test-utils/sdks/star-trek/src/schemas/MagazineSeriesFullResponse.ts +12 -0
- package/test-utils/sdks/star-trek/src/schemas/MaritalStatus.ts +17 -0
- package/test-utils/sdks/star-trek/src/schemas/MaterialBase.ts +61 -0
- package/test-utils/sdks/star-trek/src/schemas/MaterialBaseResponse.ts +20 -0
- package/test-utils/sdks/star-trek/src/schemas/MaterialFull.ts +61 -0
- package/test-utils/sdks/star-trek/src/schemas/MaterialFullResponse.ts +12 -0
- package/test-utils/sdks/star-trek/src/schemas/MedicalConditionBase.ts +25 -0
- package/test-utils/sdks/star-trek/src/schemas/MedicalConditionBaseResponse.ts +20 -0
- package/test-utils/sdks/star-trek/src/schemas/MedicalConditionFull.ts +25 -0
- package/test-utils/sdks/star-trek/src/schemas/MedicalConditionFullResponse.ts +12 -0
- package/test-utils/sdks/star-trek/src/schemas/MovieBase.ts +87 -0
- package/test-utils/sdks/star-trek/src/schemas/MovieBaseResponse.ts +20 -0
- package/test-utils/sdks/star-trek/src/schemas/MovieFull.ts +139 -0
- package/test-utils/sdks/star-trek/src/schemas/MovieFullResponse.ts +12 -0
- package/test-utils/sdks/star-trek/src/schemas/OccupationBase.ts +33 -0
- package/test-utils/sdks/star-trek/src/schemas/OccupationBaseResponse.ts +20 -0
- package/test-utils/sdks/star-trek/src/schemas/OccupationFull.ts +40 -0
- package/test-utils/sdks/star-trek/src/schemas/OccupationFullResponse.ts +12 -0
- package/test-utils/sdks/star-trek/src/schemas/OrganizationBase.ts +69 -0
- package/test-utils/sdks/star-trek/src/schemas/OrganizationBaseResponse.ts +20 -0
- package/test-utils/sdks/star-trek/src/schemas/OrganizationFull.ts +76 -0
- package/test-utils/sdks/star-trek/src/schemas/OrganizationFullResponse.ts +12 -0
- package/test-utils/sdks/star-trek/src/schemas/OrganizationHeader.ts +21 -0
- package/test-utils/sdks/star-trek/src/schemas/PerformerBase.ts +98 -0
- package/test-utils/sdks/star-trek/src/schemas/PerformerBaseResponse.ts +20 -0
- package/test-utils/sdks/star-trek/src/schemas/PerformerFull.ts +136 -0
- package/test-utils/sdks/star-trek/src/schemas/PerformerFullResponse.ts +12 -0
- package/test-utils/sdks/star-trek/src/schemas/Platform.ts +17 -0
- package/test-utils/sdks/star-trek/src/schemas/PostAnimalSearch.ts +65 -0
- package/test-utils/sdks/star-trek/src/schemas/PostAstronomicalobjectSearch.ts +53 -0
- package/test-utils/sdks/star-trek/src/schemas/PostBookSearch.ts +141 -0
- package/test-utils/sdks/star-trek/src/schemas/PostBookcollectionSearch.ts +85 -0
- package/test-utils/sdks/star-trek/src/schemas/PostBookseriesSearch.ts +83 -0
- package/test-utils/sdks/star-trek/src/schemas/PostCharacterSearch.ts +69 -0
- package/test-utils/sdks/star-trek/src/schemas/PostComiccollectionSearch.ts +89 -0
- package/test-utils/sdks/star-trek/src/schemas/PostComicsSearch.ts +93 -0
- package/test-utils/sdks/star-trek/src/schemas/PostComicseriesSearch.ts +93 -0
- package/test-utils/sdks/star-trek/src/schemas/PostComicstripSearch.ts +75 -0
- package/test-utils/sdks/star-trek/src/schemas/PostCompanySearch.ts +113 -0
- package/test-utils/sdks/star-trek/src/schemas/PostConflictSearch.ts +75 -0
- package/test-utils/sdks/star-trek/src/schemas/PostElementSearch.ts +77 -0
- package/test-utils/sdks/star-trek/src/schemas/PostEpisodeSearch.ts +113 -0
- package/test-utils/sdks/star-trek/src/schemas/PostFoodSearch.ts +85 -0
- package/test-utils/sdks/star-trek/src/schemas/PostLiteratureSearch.ts +69 -0
- package/test-utils/sdks/star-trek/src/schemas/PostLocationSearch.ts +137 -0
- package/test-utils/sdks/star-trek/src/schemas/PostMagazineSearch.ts +65 -0
- package/test-utils/sdks/star-trek/src/schemas/PostMagazineseriesSearch.ts +65 -0
- package/test-utils/sdks/star-trek/src/schemas/PostMaterialSearch.ts +85 -0
- package/test-utils/sdks/star-trek/src/schemas/PostMedicalconditionSearch.ts +49 -0
- package/test-utils/sdks/star-trek/src/schemas/PostMovieSearch.ts +75 -0
- package/test-utils/sdks/star-trek/src/schemas/PostOccupationSearch.ts +57 -0
- package/test-utils/sdks/star-trek/src/schemas/PostOrganizationSearch.ts +93 -0
- package/test-utils/sdks/star-trek/src/schemas/PostPerformerSearch.ts +133 -0
- package/test-utils/sdks/star-trek/src/schemas/PostSeasonSearch.ts +65 -0
- package/test-utils/sdks/star-trek/src/schemas/PostSeriesSearch.ts +89 -0
- package/test-utils/sdks/star-trek/src/schemas/PostSoundtrackSearch.ts +65 -0
- package/test-utils/sdks/star-trek/src/schemas/PostSpacecraftSearch.ts +45 -0
- package/test-utils/sdks/star-trek/src/schemas/PostSpacecraftclassSearch.ts +53 -0
- package/test-utils/sdks/star-trek/src/schemas/PostSpeciesSearch.ts +93 -0
- package/test-utils/sdks/star-trek/src/schemas/PostStaffSearch.ts +301 -0
- package/test-utils/sdks/star-trek/src/schemas/PostTechnologySearch.ts +125 -0
- package/test-utils/sdks/star-trek/src/schemas/PostTitleSearch.ts +65 -0
- package/test-utils/sdks/star-trek/src/schemas/PostTradingcardSearch.ts +53 -0
- package/test-utils/sdks/star-trek/src/schemas/PostTradingcarddeckSearch.ts +49 -0
- package/test-utils/sdks/star-trek/src/schemas/PostTradingcardsetSearch.ts +119 -0
- package/test-utils/sdks/star-trek/src/schemas/PostVideogameSearch.ts +55 -0
- package/test-utils/sdks/star-trek/src/schemas/PostVideoreleaseSearch.ts +65 -0
- package/test-utils/sdks/star-trek/src/schemas/PostWeaponSearch.ts +73 -0
- package/test-utils/sdks/star-trek/src/schemas/ProductionRunUnit.ts +11 -0
- package/test-utils/sdks/star-trek/src/schemas/Reference.ts +20 -0
- package/test-utils/sdks/star-trek/src/schemas/ReferenceType.ts +11 -0
- package/test-utils/sdks/star-trek/src/schemas/ResponsePage.ts +42 -0
- package/test-utils/sdks/star-trek/src/schemas/ResponseSort.ts +16 -0
- package/test-utils/sdks/star-trek/src/schemas/ResponseSortClause.ts +25 -0
- package/test-utils/sdks/star-trek/src/schemas/ResponseSortDirection.ts +11 -0
- package/test-utils/sdks/star-trek/src/schemas/SeasonBase.ts +32 -0
- package/test-utils/sdks/star-trek/src/schemas/SeasonBaseResponse.ts +20 -0
- package/test-utils/sdks/star-trek/src/schemas/SeasonFull.ts +38 -0
- package/test-utils/sdks/star-trek/src/schemas/SeasonFullResponse.ts +12 -0
- package/test-utils/sdks/star-trek/src/schemas/SeasonHeader.ts +21 -0
- package/test-utils/sdks/star-trek/src/schemas/SeriesBase.ts +60 -0
- package/test-utils/sdks/star-trek/src/schemas/SeriesBaseResponse.ts +20 -0
- package/test-utils/sdks/star-trek/src/schemas/SeriesFull.ts +72 -0
- package/test-utils/sdks/star-trek/src/schemas/SeriesFullResponse.ts +12 -0
- package/test-utils/sdks/star-trek/src/schemas/SeriesHeader.ts +21 -0
- package/test-utils/sdks/star-trek/src/schemas/SoundtrackBase.ts +30 -0
- package/test-utils/sdks/star-trek/src/schemas/SoundtrackBaseResponse.ts +20 -0
- package/test-utils/sdks/star-trek/src/schemas/SoundtrackFull.ts +59 -0
- package/test-utils/sdks/star-trek/src/schemas/SoundtrackFullResponse.ts +12 -0
- package/test-utils/sdks/star-trek/src/schemas/SpacecraftBase.ts +39 -0
- package/test-utils/sdks/star-trek/src/schemas/SpacecraftBaseResponse.ts +20 -0
- package/test-utils/sdks/star-trek/src/schemas/SpacecraftClassBase.ts +48 -0
- package/test-utils/sdks/star-trek/src/schemas/SpacecraftClassBaseResponse.ts +20 -0
- package/test-utils/sdks/star-trek/src/schemas/SpacecraftClassFull.ts +60 -0
- package/test-utils/sdks/star-trek/src/schemas/SpacecraftClassFullResponse.ts +12 -0
- package/test-utils/sdks/star-trek/src/schemas/SpacecraftClassHeader.ts +21 -0
- package/test-utils/sdks/star-trek/src/schemas/SpacecraftFull.ts +45 -0
- package/test-utils/sdks/star-trek/src/schemas/SpacecraftFullResponse.ts +12 -0
- package/test-utils/sdks/star-trek/src/schemas/SpacecraftType.ts +17 -0
- package/test-utils/sdks/star-trek/src/schemas/SpeciesBase.ts +73 -0
- package/test-utils/sdks/star-trek/src/schemas/SpeciesBaseResponse.ts +20 -0
- package/test-utils/sdks/star-trek/src/schemas/SpeciesFull.ts +79 -0
- package/test-utils/sdks/star-trek/src/schemas/SpeciesFullResponse.ts +12 -0
- package/test-utils/sdks/star-trek/src/schemas/SpeciesHeader.ts +21 -0
- package/test-utils/sdks/star-trek/src/schemas/StaffBase.ts +266 -0
- package/test-utils/sdks/star-trek/src/schemas/StaffBaseResponse.ts +20 -0
- package/test-utils/sdks/star-trek/src/schemas/StaffFull.ts +323 -0
- package/test-utils/sdks/star-trek/src/schemas/StaffFullResponse.ts +12 -0
- package/test-utils/sdks/star-trek/src/schemas/StaffHeader.ts +21 -0
- package/test-utils/sdks/star-trek/src/schemas/TechnologyBase.ts +101 -0
- package/test-utils/sdks/star-trek/src/schemas/TechnologyBaseResponse.ts +20 -0
- package/test-utils/sdks/star-trek/src/schemas/TechnologyFull.ts +101 -0
- package/test-utils/sdks/star-trek/src/schemas/TechnologyFullResponse.ts +12 -0
- package/test-utils/sdks/star-trek/src/schemas/TitleBase.ts +41 -0
- package/test-utils/sdks/star-trek/src/schemas/TitleBaseResponse.ts +20 -0
- package/test-utils/sdks/star-trek/src/schemas/TitleFull.ts +48 -0
- package/test-utils/sdks/star-trek/src/schemas/TitleFullResponse.ts +12 -0
- package/test-utils/sdks/star-trek/src/schemas/TradingCardBase.ts +38 -0
- package/test-utils/sdks/star-trek/src/schemas/TradingCardBaseResponse.ts +20 -0
- package/test-utils/sdks/star-trek/src/schemas/TradingCardDeckBase.ts +28 -0
- package/test-utils/sdks/star-trek/src/schemas/TradingCardDeckBaseResponse.ts +20 -0
- package/test-utils/sdks/star-trek/src/schemas/TradingCardDeckFull.ts +34 -0
- package/test-utils/sdks/star-trek/src/schemas/TradingCardDeckFullResponse.ts +12 -0
- package/test-utils/sdks/star-trek/src/schemas/TradingCardDeckHeader.ts +21 -0
- package/test-utils/sdks/star-trek/src/schemas/TradingCardFull.ts +38 -0
- package/test-utils/sdks/star-trek/src/schemas/TradingCardFullResponse.ts +12 -0
- package/test-utils/sdks/star-trek/src/schemas/TradingCardSetBase.ts +62 -0
- package/test-utils/sdks/star-trek/src/schemas/TradingCardSetBaseResponse.ts +20 -0
- package/test-utils/sdks/star-trek/src/schemas/TradingCardSetFull.ts +86 -0
- package/test-utils/sdks/star-trek/src/schemas/TradingCardSetFullResponse.ts +12 -0
- package/test-utils/sdks/star-trek/src/schemas/TradingCardSetHeader.ts +21 -0
- package/test-utils/sdks/star-trek/src/schemas/VideoGameBase.ts +48 -0
- package/test-utils/sdks/star-trek/src/schemas/VideoGameBaseResponse.ts +20 -0
- package/test-utils/sdks/star-trek/src/schemas/VideoGameFull.ts +84 -0
- package/test-utils/sdks/star-trek/src/schemas/VideoGameFullResponse.ts +12 -0
- package/test-utils/sdks/star-trek/src/schemas/VideoReleaseBase.ts +127 -0
- package/test-utils/sdks/star-trek/src/schemas/VideoReleaseBaseResponse.ts +20 -0
- package/test-utils/sdks/star-trek/src/schemas/VideoReleaseFormat.ts +23 -0
- package/test-utils/sdks/star-trek/src/schemas/VideoReleaseFull.ts +155 -0
- package/test-utils/sdks/star-trek/src/schemas/VideoReleaseFullResponse.ts +12 -0
- package/test-utils/sdks/star-trek/src/schemas/WeaponBase.ts +49 -0
- package/test-utils/sdks/star-trek/src/schemas/WeaponBaseResponse.ts +20 -0
- package/test-utils/sdks/star-trek/src/schemas/WeaponFull.ts +49 -0
- package/test-utils/sdks/star-trek/src/schemas/WeaponFullResponse.ts +12 -0
- package/test-utils/sdks/star-trek/src/schemas.ts +314 -0
- package/test-utils/sdks/star-trek/src/sdk.ts +1032 -0
- package/test-utils/sdks/star-trek/src/types.ts +490 -0
- package/test-utils/sdks/star-trek/tsconfig.json +12 -0
- package/test-utils/tsconfig.json +9 -0
- package/tsconfig.eslint.json +8 -0
- package/tsconfig.json +9 -0
- package/tsup.config.ts +31 -0
@@ -0,0 +1,477 @@
|
|
1
|
+
import type * as types from './types.js';
|
2
|
+
import type { ConfigOptions, FetchResponse } from '@readme/api-core/types';
|
3
|
+
import APICore from '@readme/api-core';
|
4
|
+
import definition from '@readme/oas-examples/3.0/json/readme.json';
|
5
|
+
|
6
|
+
export default class SDK {
|
7
|
+
core: APICore;
|
8
|
+
|
9
|
+
constructor() {
|
10
|
+
this.core = new APICore(definition, 'readme/4.355.0 (api/7.0.0-mock)');
|
11
|
+
}
|
12
|
+
|
13
|
+
/**
|
14
|
+
* Optionally configure various options that the SDK allows.
|
15
|
+
*
|
16
|
+
* @param config Object of supported SDK options and toggles.
|
17
|
+
* @param config.timeout Override the default `fetch` request timeout of 30 seconds. This number
|
18
|
+
* should be represented in milliseconds.
|
19
|
+
*/
|
20
|
+
config(config: ConfigOptions) {
|
21
|
+
this.core.setConfig(config);
|
22
|
+
}
|
23
|
+
|
24
|
+
/**
|
25
|
+
* If the API you're using requires authentication you can supply the required credentials
|
26
|
+
* through this method and the library will magically determine how they should be used
|
27
|
+
* within your API request.
|
28
|
+
*
|
29
|
+
* With the exception of OpenID and MutualTLS, it supports all forms of authentication
|
30
|
+
* supported by the OpenAPI specification.
|
31
|
+
*
|
32
|
+
* @example <caption>HTTP Basic auth</caption>
|
33
|
+
* sdk.auth('username', 'password');
|
34
|
+
*
|
35
|
+
* @example <caption>Bearer tokens (HTTP or OAuth 2)</caption>
|
36
|
+
* sdk.auth('myBearerToken');
|
37
|
+
*
|
38
|
+
* @example <caption>API Keys</caption>
|
39
|
+
* sdk.auth('myApiKey');
|
40
|
+
*
|
41
|
+
* @see {@link https://spec.openapis.org/oas/v3.0.3#fixed-fields-22}
|
42
|
+
* @see {@link https://spec.openapis.org/oas/v3.1.0#fixed-fields-22}
|
43
|
+
* @param values Your auth credentials for the API; can specify up to two strings or numbers.
|
44
|
+
*/
|
45
|
+
auth(...values: string[] | number[]) {
|
46
|
+
this.core.setAuth(...values);
|
47
|
+
return this;
|
48
|
+
}
|
49
|
+
|
50
|
+
/**
|
51
|
+
* If the API you're using offers alternate server URLs, and server variables, you can tell
|
52
|
+
* the SDK which one to use with this method. To use it you can supply either one of the
|
53
|
+
* server URLs that are contained within the OpenAPI definition (along with any server
|
54
|
+
* variables), or you can pass it a fully qualified URL to use (that may or may not exist
|
55
|
+
* within the OpenAPI definition).
|
56
|
+
*
|
57
|
+
* @example <caption>Server URL with server variables</caption>
|
58
|
+
* sdk.server('https://{region}.api.example.com/{basePath}', {
|
59
|
+
* name: 'eu',
|
60
|
+
* basePath: 'v14',
|
61
|
+
* });
|
62
|
+
*
|
63
|
+
* @example <caption>Fully qualified server URL</caption>
|
64
|
+
* sdk.server('https://eu.api.example.com/v14');
|
65
|
+
*
|
66
|
+
* @param url Server URL
|
67
|
+
* @param variables An object of variables to replace into the server URL.
|
68
|
+
*/
|
69
|
+
server(url: string, variables = {}) {
|
70
|
+
this.core.setServer(url, variables);
|
71
|
+
}
|
72
|
+
|
73
|
+
/**
|
74
|
+
* Get an API definition file that's been uploaded to ReadMe.
|
75
|
+
*
|
76
|
+
* @summary Retrieve an entry from the API Registry
|
77
|
+
* @throws FetchError<404, types.ErrorRegistryNotfound> The registry entry couldn't be found.
|
78
|
+
*/
|
79
|
+
getAPIRegistry(metadata: types.GetApiRegistryMetadataParam): Promise<FetchResponse<200, types.GetApiRegistryResponse200>> {
|
80
|
+
return this.core.fetch('/api-registry/{uuid}', 'get', metadata);
|
81
|
+
}
|
82
|
+
|
83
|
+
/**
|
84
|
+
* Get API specification metadata.
|
85
|
+
*
|
86
|
+
* @summary Get metadata
|
87
|
+
* @throws FetchError<400, types.ErrorVersionEmpty> No version was supplied.
|
88
|
+
* @throws FetchError<401, types.GetApiSpecificationResponse401> Unauthorized
|
89
|
+
* @throws FetchError<403, types.GetApiSpecificationResponse403> Unauthorized
|
90
|
+
* @throws FetchError<404, types.ErrorVersionNotfound> The version couldn't be found.
|
91
|
+
*/
|
92
|
+
getAPISpecification(metadata?: types.GetApiSpecificationMetadataParam): Promise<FetchResponse<200, types.GetApiSpecificationResponse200>> {
|
93
|
+
return this.core.fetch('/api-specification', 'get', metadata);
|
94
|
+
}
|
95
|
+
|
96
|
+
/**
|
97
|
+
* Upload an API specification to ReadMe. Or, to use a newer solution see
|
98
|
+
* https://docs.readme.com/main/docs/rdme.
|
99
|
+
*
|
100
|
+
* @summary Upload specification
|
101
|
+
* @throws FetchError<400, types.UploadApiSpecificationResponse400> There was a validation error during upload.
|
102
|
+
* @throws FetchError<401, types.UploadApiSpecificationResponse401> Unauthorized
|
103
|
+
* @throws FetchError<403, types.UploadApiSpecificationResponse403> Unauthorized
|
104
|
+
* @throws FetchError<408, types.ErrorSpecTimeout> The spec upload timed out.
|
105
|
+
*/
|
106
|
+
uploadAPISpecification(body: types.UploadApiSpecificationBodyParam, metadata?: types.UploadApiSpecificationMetadataParam): Promise<FetchResponse<number, unknown>> {
|
107
|
+
return this.core.fetch('/api-specification', 'post', body, metadata);
|
108
|
+
}
|
109
|
+
|
110
|
+
/**
|
111
|
+
* Update an API specification in ReadMe.
|
112
|
+
*
|
113
|
+
* @summary Update specification
|
114
|
+
* @throws FetchError<400, types.UpdateApiSpecificationResponse400> There was a validation error during upload.
|
115
|
+
* @throws FetchError<401, types.UpdateApiSpecificationResponse401> Unauthorized
|
116
|
+
* @throws FetchError<403, types.UpdateApiSpecificationResponse403> Unauthorized
|
117
|
+
* @throws FetchError<408, types.ErrorSpecTimeout> The spec upload timed out.
|
118
|
+
*/
|
119
|
+
updateAPISpecification(body: types.UpdateApiSpecificationBodyParam, metadata: types.UpdateApiSpecificationMetadataParam): Promise<FetchResponse<number, unknown>> {
|
120
|
+
return this.core.fetch('/api-specification/{id}', 'put', body, metadata);
|
121
|
+
}
|
122
|
+
|
123
|
+
/**
|
124
|
+
* Delete an API specification in ReadMe.
|
125
|
+
*
|
126
|
+
* @summary Delete specification
|
127
|
+
* @throws FetchError<400, types.ErrorSpecIdInvalid> The spec ID isn't valid.
|
128
|
+
* @throws FetchError<401, types.DeleteApiSpecificationResponse401> Unauthorized
|
129
|
+
* @throws FetchError<403, types.DeleteApiSpecificationResponse403> Unauthorized
|
130
|
+
* @throws FetchError<404, types.ErrorSpecNotfound> The spec couldn't be found.
|
131
|
+
*/
|
132
|
+
deleteAPISpecification(metadata: types.DeleteApiSpecificationMetadataParam): Promise<FetchResponse<number, unknown>> {
|
133
|
+
return this.core.fetch('/api-specification/{id}', 'delete', metadata);
|
134
|
+
}
|
135
|
+
|
136
|
+
/**
|
137
|
+
* Returns all the roles we're hiring for at ReadMe!
|
138
|
+
*
|
139
|
+
* @summary Get open roles
|
140
|
+
*/
|
141
|
+
getOpenRoles(): Promise<FetchResponse<200, types.GetOpenRolesResponse200>> {
|
142
|
+
return this.core.fetch('/apply', 'get');
|
143
|
+
}
|
144
|
+
|
145
|
+
/**
|
146
|
+
* This endpoint will let you apply to a job at ReadMe programatically, without having to
|
147
|
+
* go through our UI!
|
148
|
+
*
|
149
|
+
* @summary Submit your application!
|
150
|
+
*/
|
151
|
+
applyToReadMe(body: types.Apply): Promise<FetchResponse<number, unknown>> {
|
152
|
+
return this.core.fetch('/apply', 'post', body);
|
153
|
+
}
|
154
|
+
|
155
|
+
/**
|
156
|
+
* Returns all the categories for a specified version.
|
157
|
+
*
|
158
|
+
* @summary Get all categories
|
159
|
+
*/
|
160
|
+
getCategories(metadata?: types.GetCategoriesMetadataParam): Promise<FetchResponse<200, types.GetCategoriesResponse200>> {
|
161
|
+
return this.core.fetch('/categories', 'get', metadata);
|
162
|
+
}
|
163
|
+
|
164
|
+
/**
|
165
|
+
* Create a new category inside of this project.
|
166
|
+
*
|
167
|
+
* @summary Create category
|
168
|
+
* @throws FetchError<400, types.ErrorCategoryInvalid> The category couldn't be saved.
|
169
|
+
*/
|
170
|
+
createCategory(body: types.Category, metadata?: types.CreateCategoryMetadataParam): Promise<FetchResponse<number, unknown>> {
|
171
|
+
return this.core.fetch('/categories', 'post', body, metadata);
|
172
|
+
}
|
173
|
+
|
174
|
+
/**
|
175
|
+
* Returns the category with this slug.
|
176
|
+
*
|
177
|
+
* @summary Get category
|
178
|
+
* @throws FetchError<404, types.ErrorCategoryNotfound> The category couldn't be found.
|
179
|
+
*/
|
180
|
+
getCategory(metadata: types.GetCategoryMetadataParam): Promise<FetchResponse<number, unknown>> {
|
181
|
+
return this.core.fetch('/categories/{slug}', 'get', metadata);
|
182
|
+
}
|
183
|
+
|
184
|
+
/**
|
185
|
+
* Change the properties of a category.
|
186
|
+
*
|
187
|
+
* @summary Update category
|
188
|
+
* @throws FetchError<400, types.ErrorCategoryInvalid> The category couldn't be saved.
|
189
|
+
* @throws FetchError<404, types.ErrorCategoryNotfound> The category couldn't be found.
|
190
|
+
*/
|
191
|
+
updateCategory(body: types.Category, metadata: types.UpdateCategoryMetadataParam): Promise<FetchResponse<number, unknown>> {
|
192
|
+
return this.core.fetch('/categories/{slug}', 'put', body, metadata);
|
193
|
+
}
|
194
|
+
|
195
|
+
/**
|
196
|
+
* Delete the category with this slug.
|
197
|
+
* >⚠️Heads Up!
|
198
|
+
* > This will also delete all of the docs within this category.
|
199
|
+
*
|
200
|
+
* @summary Delete category
|
201
|
+
* @throws FetchError<404, types.ErrorCategoryNotfound> The category couldn't be found.
|
202
|
+
*/
|
203
|
+
deleteCategory(metadata: types.DeleteCategoryMetadataParam): Promise<FetchResponse<number, unknown>> {
|
204
|
+
return this.core.fetch('/categories/{slug}', 'delete', metadata);
|
205
|
+
}
|
206
|
+
|
207
|
+
/**
|
208
|
+
* Returns the docs and children docs within this category.
|
209
|
+
*
|
210
|
+
* @summary Get docs for category
|
211
|
+
* @throws FetchError<404, types.ErrorCategoryNotfound> The category couldn't be found.
|
212
|
+
*/
|
213
|
+
getCategoryDocs(metadata: types.GetCategoryDocsMetadataParam): Promise<FetchResponse<number, unknown>> {
|
214
|
+
return this.core.fetch('/categories/{slug}/docs', 'get', metadata);
|
215
|
+
}
|
216
|
+
|
217
|
+
/**
|
218
|
+
* Returns a list of changelogs.
|
219
|
+
*
|
220
|
+
* @summary Get changelogs
|
221
|
+
*/
|
222
|
+
getChangelogs(metadata?: types.GetChangelogsMetadataParam): Promise<FetchResponse<200, types.GetChangelogsResponse200>> {
|
223
|
+
return this.core.fetch('/changelogs', 'get', metadata);
|
224
|
+
}
|
225
|
+
|
226
|
+
/**
|
227
|
+
* Create a new changelog entry.
|
228
|
+
*
|
229
|
+
* @summary Create changelog
|
230
|
+
*/
|
231
|
+
createChangelog(body: types.Changelog): Promise<FetchResponse<number, unknown>> {
|
232
|
+
return this.core.fetch('/changelogs', 'post', body);
|
233
|
+
}
|
234
|
+
|
235
|
+
/**
|
236
|
+
* Returns the changelog with this slug.
|
237
|
+
*
|
238
|
+
* @summary Get changelog
|
239
|
+
*/
|
240
|
+
getChangelog(metadata: types.GetChangelogMetadataParam): Promise<FetchResponse<number, unknown>> {
|
241
|
+
return this.core.fetch('/changelogs/{slug}', 'get', metadata);
|
242
|
+
}
|
243
|
+
|
244
|
+
/**
|
245
|
+
* Update a changelog with this slug.
|
246
|
+
*
|
247
|
+
* @summary Update changelog
|
248
|
+
*/
|
249
|
+
updateChangelog(body: types.Changelog, metadata: types.UpdateChangelogMetadataParam): Promise<FetchResponse<number, unknown>> {
|
250
|
+
return this.core.fetch('/changelogs/{slug}', 'put', body, metadata);
|
251
|
+
}
|
252
|
+
|
253
|
+
/**
|
254
|
+
* Delete the changelog with this slug.
|
255
|
+
*
|
256
|
+
* @summary Delete changelog
|
257
|
+
*/
|
258
|
+
deleteChangelog(metadata: types.DeleteChangelogMetadataParam): Promise<FetchResponse<number, unknown>> {
|
259
|
+
return this.core.fetch('/changelogs/{slug}', 'delete', metadata);
|
260
|
+
}
|
261
|
+
|
262
|
+
/**
|
263
|
+
* Returns a list of custom pages.
|
264
|
+
*
|
265
|
+
* @summary Get custom pages
|
266
|
+
* @throws FetchError<401, types.GetCustomPagesResponse401> Unauthorized
|
267
|
+
* @throws FetchError<403, types.GetCustomPagesResponse403> Unauthorized
|
268
|
+
*/
|
269
|
+
getCustomPages(metadata?: types.GetCustomPagesMetadataParam): Promise<FetchResponse<200, types.GetCustomPagesResponse200>> {
|
270
|
+
return this.core.fetch('/custompages', 'get', metadata);
|
271
|
+
}
|
272
|
+
|
273
|
+
/**
|
274
|
+
* Create a new custom page inside of this project.
|
275
|
+
*
|
276
|
+
* @summary Create custom page
|
277
|
+
* @throws FetchError<400, types.ErrorCustompageInvalid> The page couldn't be saved.
|
278
|
+
* @throws FetchError<401, types.CreateCustomPageResponse401> Unauthorized
|
279
|
+
* @throws FetchError<403, types.CreateCustomPageResponse403> Unauthorized
|
280
|
+
*/
|
281
|
+
createCustomPage(body: types.CustomPage): Promise<FetchResponse<number, unknown>> {
|
282
|
+
return this.core.fetch('/custompages', 'post', body);
|
283
|
+
}
|
284
|
+
|
285
|
+
/**
|
286
|
+
* Returns the custom page with this slug.
|
287
|
+
*
|
288
|
+
* @summary Get custom page
|
289
|
+
* @throws FetchError<401, types.GetCustomPageResponse401> Unauthorized
|
290
|
+
* @throws FetchError<403, types.GetCustomPageResponse403> Unauthorized
|
291
|
+
* @throws FetchError<404, types.ErrorCustompageNotfound> The custom page couldn't be found.
|
292
|
+
*/
|
293
|
+
getCustomPage(metadata: types.GetCustomPageMetadataParam): Promise<FetchResponse<number, unknown>> {
|
294
|
+
return this.core.fetch('/custompages/{slug}', 'get', metadata);
|
295
|
+
}
|
296
|
+
|
297
|
+
/**
|
298
|
+
* Update a custom page with this slug.
|
299
|
+
*
|
300
|
+
* @summary Update custom page
|
301
|
+
* @throws FetchError<400, types.ErrorCustompageInvalid> The page couldn't be saved.
|
302
|
+
* @throws FetchError<401, types.UpdateCustomPageResponse401> Unauthorized
|
303
|
+
* @throws FetchError<403, types.UpdateCustomPageResponse403> Unauthorized
|
304
|
+
* @throws FetchError<404, types.ErrorCustompageNotfound> The custom page couldn't be found.
|
305
|
+
*/
|
306
|
+
updateCustomPage(body: types.CustomPage, metadata: types.UpdateCustomPageMetadataParam): Promise<FetchResponse<number, unknown>> {
|
307
|
+
return this.core.fetch('/custompages/{slug}', 'put', body, metadata);
|
308
|
+
}
|
309
|
+
|
310
|
+
/**
|
311
|
+
* Delete the custom page with this slug.
|
312
|
+
*
|
313
|
+
* @summary Delete custom page
|
314
|
+
* @throws FetchError<401, types.DeleteCustomPageResponse401> Unauthorized
|
315
|
+
* @throws FetchError<403, types.DeleteCustomPageResponse403> Unauthorized
|
316
|
+
* @throws FetchError<404, types.ErrorCustompageNotfound> The custom page couldn't be found.
|
317
|
+
*/
|
318
|
+
deleteCustomPage(metadata: types.DeleteCustomPageMetadataParam): Promise<FetchResponse<number, unknown>> {
|
319
|
+
return this.core.fetch('/custompages/{slug}', 'delete', metadata);
|
320
|
+
}
|
321
|
+
|
322
|
+
/**
|
323
|
+
* Returns the doc with this slug.
|
324
|
+
*
|
325
|
+
* @summary Get doc
|
326
|
+
* @throws FetchError<401, types.GetDocResponse401> Unauthorized
|
327
|
+
* @throws FetchError<403, types.GetDocResponse403> Unauthorized
|
328
|
+
* @throws FetchError<404, types.ErrorDocNotfound> The doc couldn't be found.
|
329
|
+
*/
|
330
|
+
getDoc(metadata: types.GetDocMetadataParam): Promise<FetchResponse<200, types.DocSchemaResponse>> {
|
331
|
+
return this.core.fetch('/docs/{slug}', 'get', metadata);
|
332
|
+
}
|
333
|
+
|
334
|
+
/**
|
335
|
+
* Update a doc with this slug.
|
336
|
+
*
|
337
|
+
* @summary Update doc
|
338
|
+
* @throws FetchError<400, types.ErrorDocInvalid> The doc couldn't be saved.
|
339
|
+
* @throws FetchError<401, types.UpdateDocResponse401> Unauthorized
|
340
|
+
* @throws FetchError<403, types.UpdateDocResponse403> Unauthorized
|
341
|
+
* @throws FetchError<404, types.ErrorDocNotfound> The doc couldn't be found.
|
342
|
+
*/
|
343
|
+
updateDoc(body: types.DocSchemaPut, metadata: types.UpdateDocMetadataParam): Promise<FetchResponse<200, types.DocSchemaResponse>> {
|
344
|
+
return this.core.fetch('/docs/{slug}', 'put', body, metadata);
|
345
|
+
}
|
346
|
+
|
347
|
+
/**
|
348
|
+
* Delete the doc with this slug.
|
349
|
+
*
|
350
|
+
* @summary Delete doc
|
351
|
+
* @throws FetchError<401, types.DeleteDocResponse401> Unauthorized
|
352
|
+
* @throws FetchError<403, types.DeleteDocResponse403> Unauthorized
|
353
|
+
* @throws FetchError<404, types.ErrorDocNotfound> The doc couldn't be found.
|
354
|
+
*/
|
355
|
+
deleteDoc(metadata: types.DeleteDocMetadataParam): Promise<FetchResponse<number, unknown>> {
|
356
|
+
return this.core.fetch('/docs/{slug}', 'delete', metadata);
|
357
|
+
}
|
358
|
+
|
359
|
+
/**
|
360
|
+
* This is intended for use by enterprise users with staging enabled. This endpoint will
|
361
|
+
* return the live version of your document, whereas the standard endpoint will always
|
362
|
+
* return staging.
|
363
|
+
*
|
364
|
+
* @summary Get production doc
|
365
|
+
* @throws FetchError<401, types.GetProductionDocResponse401> Unauthorized
|
366
|
+
* @throws FetchError<403, types.GetProductionDocResponse403> Unauthorized
|
367
|
+
* @throws FetchError<404, types.ErrorDocNotfound> The doc couldn't be found.
|
368
|
+
*/
|
369
|
+
getProductionDoc(metadata: types.GetProductionDocMetadataParam): Promise<FetchResponse<200, types.DocSchemaResponse>> {
|
370
|
+
return this.core.fetch('/docs/{slug}/production', 'get', metadata);
|
371
|
+
}
|
372
|
+
|
373
|
+
/**
|
374
|
+
* Create a new doc inside of this project.
|
375
|
+
*
|
376
|
+
* @summary Create doc
|
377
|
+
* @throws FetchError<400, types.ErrorDocInvalid> The doc couldn't be saved.
|
378
|
+
* @throws FetchError<401, types.CreateDocResponse401> Unauthorized
|
379
|
+
* @throws FetchError<403, types.CreateDocResponse403> Unauthorized
|
380
|
+
*/
|
381
|
+
createDoc(body: types.DocSchemaPost, metadata?: types.CreateDocMetadataParam): Promise<FetchResponse<201, types.DocSchemaResponse>> {
|
382
|
+
return this.core.fetch('/docs', 'post', body, metadata);
|
383
|
+
}
|
384
|
+
|
385
|
+
/**
|
386
|
+
* Returns all docs that match the search.
|
387
|
+
*
|
388
|
+
* @summary Search docs
|
389
|
+
* @throws FetchError<401, types.SearchDocsResponse401> Unauthorized
|
390
|
+
* @throws FetchError<403, types.SearchDocsResponse403> Unauthorized
|
391
|
+
*/
|
392
|
+
searchDocs(metadata: types.SearchDocsMetadataParam): Promise<FetchResponse<number, unknown>> {
|
393
|
+
return this.core.fetch('/docs/search', 'post', metadata);
|
394
|
+
}
|
395
|
+
|
396
|
+
/**
|
397
|
+
* Returns project data for the API key.
|
398
|
+
*
|
399
|
+
* @summary Get metadata about the current project
|
400
|
+
* @throws FetchError<401, types.GetProjectResponse401> Unauthorized
|
401
|
+
* @throws FetchError<403, types.GetProjectResponse403> Unauthorized
|
402
|
+
*/
|
403
|
+
getProject(): Promise<FetchResponse<200, types.CondensedProjectData>> {
|
404
|
+
return this.core.fetch('/', 'get');
|
405
|
+
}
|
406
|
+
|
407
|
+
/**
|
408
|
+
* Returns a copy of our OpenAPI Definition.
|
409
|
+
*
|
410
|
+
* @summary Get our OpenAPI Definition
|
411
|
+
*/
|
412
|
+
getAPISchema(): Promise<FetchResponse<200, types.GetApiSchemaResponse200>> {
|
413
|
+
return this.core.fetch('/schema', 'get');
|
414
|
+
}
|
415
|
+
|
416
|
+
/**
|
417
|
+
* Retrieve a list of versions associated with a project API key.
|
418
|
+
*
|
419
|
+
* @summary Get versions
|
420
|
+
* @throws FetchError<401, types.GetVersionsResponse401> Unauthorized
|
421
|
+
* @throws FetchError<403, types.GetVersionsResponse403> Unauthorized
|
422
|
+
*/
|
423
|
+
getVersions(): Promise<FetchResponse<number, unknown>> {
|
424
|
+
return this.core.fetch('/version', 'get');
|
425
|
+
}
|
426
|
+
|
427
|
+
/**
|
428
|
+
* Create a new version.
|
429
|
+
*
|
430
|
+
* @summary Create version
|
431
|
+
* @throws FetchError<400, types.CreateVersionResponse400> There was a validation error during creation.
|
432
|
+
* @throws FetchError<401, types.CreateVersionResponse401> Unauthorized
|
433
|
+
* @throws FetchError<403, types.CreateVersionResponse403> Unauthorized
|
434
|
+
* @throws FetchError<404, types.ErrorVersionForkNotfound> The version couldn't be found.
|
435
|
+
*/
|
436
|
+
createVersion(body: types.Version): Promise<FetchResponse<number, unknown>> {
|
437
|
+
return this.core.fetch('/version', 'post', body);
|
438
|
+
}
|
439
|
+
|
440
|
+
/**
|
441
|
+
* Returns the version with this version ID.
|
442
|
+
*
|
443
|
+
* @summary Get version
|
444
|
+
* @throws FetchError<401, types.GetVersionResponse401> Unauthorized
|
445
|
+
* @throws FetchError<403, types.GetVersionResponse403> Unauthorized
|
446
|
+
* @throws FetchError<404, types.ErrorVersionNotfound> The version couldn't be found.
|
447
|
+
*/
|
448
|
+
getVersion(metadata: types.GetVersionMetadataParam): Promise<FetchResponse<number, unknown>> {
|
449
|
+
return this.core.fetch('/version/{versionId}', 'get', metadata);
|
450
|
+
}
|
451
|
+
|
452
|
+
/**
|
453
|
+
* Update an existing version.
|
454
|
+
*
|
455
|
+
* @summary Update version
|
456
|
+
* @throws FetchError<400, types.ErrorVersionCantDemoteStable> A stable version can't be demoted.
|
457
|
+
* @throws FetchError<401, types.UpdateVersionResponse401> Unauthorized
|
458
|
+
* @throws FetchError<403, types.UpdateVersionResponse403> Unauthorized
|
459
|
+
* @throws FetchError<404, types.ErrorVersionNotfound> The version couldn't be found.
|
460
|
+
*/
|
461
|
+
updateVersion(body: types.Version, metadata: types.UpdateVersionMetadataParam): Promise<FetchResponse<number, unknown>> {
|
462
|
+
return this.core.fetch('/version/{versionId}', 'put', body, metadata);
|
463
|
+
}
|
464
|
+
|
465
|
+
/**
|
466
|
+
* Delete a version
|
467
|
+
*
|
468
|
+
* @summary Delete version
|
469
|
+
* @throws FetchError<400, types.ErrorVersionCantRemoveStable> A stable version can't be removed.
|
470
|
+
* @throws FetchError<401, types.DeleteVersionResponse401> Unauthorized
|
471
|
+
* @throws FetchError<403, types.DeleteVersionResponse403> Unauthorized
|
472
|
+
* @throws FetchError<404, types.ErrorVersionNotfound> The version couldn't be found.
|
473
|
+
*/
|
474
|
+
deleteVersion(metadata: types.DeleteVersionMetadataParam): Promise<FetchResponse<number, unknown>> {
|
475
|
+
return this.core.fetch('/version/{versionId}', 'delete', metadata);
|
476
|
+
}
|
477
|
+
}
|
@@ -0,0 +1,120 @@
|
|
1
|
+
import type { FromSchema } from '@readme/api-core/types';
|
2
|
+
import type * as schemas from './schemas.js';
|
3
|
+
|
4
|
+
export type Apply = FromSchema<typeof schemas.Apply>;
|
5
|
+
export type Category = FromSchema<typeof schemas.Category>;
|
6
|
+
export type Changelog = FromSchema<typeof schemas.Changelog>;
|
7
|
+
export type CondensedProjectData = FromSchema<typeof schemas.CondensedProjectData>;
|
8
|
+
export type CreateCategoryMetadataParam = FromSchema<typeof schemas.CreateCategory.metadata>;
|
9
|
+
export type CreateCustomPageResponse401 = FromSchema<typeof schemas.CreateCustomPage.response['401']>;
|
10
|
+
export type CreateCustomPageResponse403 = FromSchema<typeof schemas.CreateCustomPage.response['403']>;
|
11
|
+
export type CreateDocMetadataParam = FromSchema<typeof schemas.CreateDoc.metadata>;
|
12
|
+
export type CreateDocResponse401 = FromSchema<typeof schemas.CreateDoc.response['401']>;
|
13
|
+
export type CreateDocResponse403 = FromSchema<typeof schemas.CreateDoc.response['403']>;
|
14
|
+
export type CreateVersionResponse400 = FromSchema<typeof schemas.CreateVersion.response['400']>;
|
15
|
+
export type CreateVersionResponse401 = FromSchema<typeof schemas.CreateVersion.response['401']>;
|
16
|
+
export type CreateVersionResponse403 = FromSchema<typeof schemas.CreateVersion.response['403']>;
|
17
|
+
export type CustomPage = FromSchema<typeof schemas.CustomPage>;
|
18
|
+
export type DeleteApiSpecificationMetadataParam = FromSchema<typeof schemas.DeleteApiSpecification.metadata>;
|
19
|
+
export type DeleteApiSpecificationResponse401 = FromSchema<typeof schemas.DeleteApiSpecification.response['401']>;
|
20
|
+
export type DeleteApiSpecificationResponse403 = FromSchema<typeof schemas.DeleteApiSpecification.response['403']>;
|
21
|
+
export type DeleteCategoryMetadataParam = FromSchema<typeof schemas.DeleteCategory.metadata>;
|
22
|
+
export type DeleteChangelogMetadataParam = FromSchema<typeof schemas.DeleteChangelog.metadata>;
|
23
|
+
export type DeleteCustomPageMetadataParam = FromSchema<typeof schemas.DeleteCustomPage.metadata>;
|
24
|
+
export type DeleteCustomPageResponse401 = FromSchema<typeof schemas.DeleteCustomPage.response['401']>;
|
25
|
+
export type DeleteCustomPageResponse403 = FromSchema<typeof schemas.DeleteCustomPage.response['403']>;
|
26
|
+
export type DeleteDocMetadataParam = FromSchema<typeof schemas.DeleteDoc.metadata>;
|
27
|
+
export type DeleteDocResponse401 = FromSchema<typeof schemas.DeleteDoc.response['401']>;
|
28
|
+
export type DeleteDocResponse403 = FromSchema<typeof schemas.DeleteDoc.response['403']>;
|
29
|
+
export type DeleteVersionMetadataParam = FromSchema<typeof schemas.DeleteVersion.metadata>;
|
30
|
+
export type DeleteVersionResponse401 = FromSchema<typeof schemas.DeleteVersion.response['401']>;
|
31
|
+
export type DeleteVersionResponse403 = FromSchema<typeof schemas.DeleteVersion.response['403']>;
|
32
|
+
export type DocSchemaPost = FromSchema<typeof schemas.DocSchemaPost>;
|
33
|
+
export type DocSchemaPut = FromSchema<typeof schemas.DocSchemaPut>;
|
34
|
+
export type DocSchemaResponse = FromSchema<typeof schemas.DocSchemaResponse>;
|
35
|
+
export type ErrorApikeyEmpty = FromSchema<typeof schemas.ErrorApikeyEmpty>;
|
36
|
+
export type ErrorApikeyMismatch = FromSchema<typeof schemas.ErrorApikeyMismatch>;
|
37
|
+
export type ErrorApikeyNotfound = FromSchema<typeof schemas.ErrorApikeyNotfound>;
|
38
|
+
export type ErrorCategoryInvalid = FromSchema<typeof schemas.ErrorCategoryInvalid>;
|
39
|
+
export type ErrorCategoryNotfound = FromSchema<typeof schemas.ErrorCategoryNotfound>;
|
40
|
+
export type ErrorCustompageInvalid = FromSchema<typeof schemas.ErrorCustompageInvalid>;
|
41
|
+
export type ErrorCustompageNotfound = FromSchema<typeof schemas.ErrorCustompageNotfound>;
|
42
|
+
export type ErrorDocInvalid = FromSchema<typeof schemas.ErrorDocInvalid>;
|
43
|
+
export type ErrorDocNotfound = FromSchema<typeof schemas.ErrorDocNotfound>;
|
44
|
+
export type ErrorRegistryNotfound = FromSchema<typeof schemas.ErrorRegistryNotfound>;
|
45
|
+
export type ErrorSpecFileEmpty = FromSchema<typeof schemas.ErrorSpecFileEmpty>;
|
46
|
+
export type ErrorSpecIdDuplicate = FromSchema<typeof schemas.ErrorSpecIdDuplicate>;
|
47
|
+
export type ErrorSpecIdInvalid = FromSchema<typeof schemas.ErrorSpecIdInvalid>;
|
48
|
+
export type ErrorSpecInvalid = FromSchema<typeof schemas.ErrorSpecInvalid>;
|
49
|
+
export type ErrorSpecInvalidSchema = FromSchema<typeof schemas.ErrorSpecInvalidSchema>;
|
50
|
+
export type ErrorSpecNotfound = FromSchema<typeof schemas.ErrorSpecNotfound>;
|
51
|
+
export type ErrorSpecTimeout = FromSchema<typeof schemas.ErrorSpecTimeout>;
|
52
|
+
export type ErrorSpecVersionNotfound = FromSchema<typeof schemas.ErrorSpecVersionNotfound>;
|
53
|
+
export type ErrorVersionCantDemoteStable = FromSchema<typeof schemas.ErrorVersionCantDemoteStable>;
|
54
|
+
export type ErrorVersionCantRemoveStable = FromSchema<typeof schemas.ErrorVersionCantRemoveStable>;
|
55
|
+
export type ErrorVersionDuplicate = FromSchema<typeof schemas.ErrorVersionDuplicate>;
|
56
|
+
export type ErrorVersionEmpty = FromSchema<typeof schemas.ErrorVersionEmpty>;
|
57
|
+
export type ErrorVersionForkEmpty = FromSchema<typeof schemas.ErrorVersionForkEmpty>;
|
58
|
+
export type ErrorVersionForkNotfound = FromSchema<typeof schemas.ErrorVersionForkNotfound>;
|
59
|
+
export type ErrorVersionNotfound = FromSchema<typeof schemas.ErrorVersionNotfound>;
|
60
|
+
export type GetApiRegistryMetadataParam = FromSchema<typeof schemas.GetApiRegistry.metadata>;
|
61
|
+
export type GetApiRegistryResponse200 = FromSchema<typeof schemas.GetApiRegistry.response['200']>;
|
62
|
+
export type GetApiSchemaResponse200 = FromSchema<typeof schemas.GetApiSchema.response['200']>;
|
63
|
+
export type GetApiSpecificationMetadataParam = FromSchema<typeof schemas.GetApiSpecification.metadata>;
|
64
|
+
export type GetApiSpecificationResponse200 = FromSchema<typeof schemas.GetApiSpecification.response['200']>;
|
65
|
+
export type GetApiSpecificationResponse401 = FromSchema<typeof schemas.GetApiSpecification.response['401']>;
|
66
|
+
export type GetApiSpecificationResponse403 = FromSchema<typeof schemas.GetApiSpecification.response['403']>;
|
67
|
+
export type GetCategoriesMetadataParam = FromSchema<typeof schemas.GetCategories.metadata>;
|
68
|
+
export type GetCategoriesResponse200 = FromSchema<typeof schemas.GetCategories.response['200']>;
|
69
|
+
export type GetCategoryDocsMetadataParam = FromSchema<typeof schemas.GetCategoryDocs.metadata>;
|
70
|
+
export type GetCategoryMetadataParam = FromSchema<typeof schemas.GetCategory.metadata>;
|
71
|
+
export type GetChangelogMetadataParam = FromSchema<typeof schemas.GetChangelog.metadata>;
|
72
|
+
export type GetChangelogsMetadataParam = FromSchema<typeof schemas.GetChangelogs.metadata>;
|
73
|
+
export type GetChangelogsResponse200 = FromSchema<typeof schemas.GetChangelogs.response['200']>;
|
74
|
+
export type GetCustomPageMetadataParam = FromSchema<typeof schemas.GetCustomPage.metadata>;
|
75
|
+
export type GetCustomPageResponse401 = FromSchema<typeof schemas.GetCustomPage.response['401']>;
|
76
|
+
export type GetCustomPageResponse403 = FromSchema<typeof schemas.GetCustomPage.response['403']>;
|
77
|
+
export type GetCustomPagesMetadataParam = FromSchema<typeof schemas.GetCustomPages.metadata>;
|
78
|
+
export type GetCustomPagesResponse200 = FromSchema<typeof schemas.GetCustomPages.response['200']>;
|
79
|
+
export type GetCustomPagesResponse401 = FromSchema<typeof schemas.GetCustomPages.response['401']>;
|
80
|
+
export type GetCustomPagesResponse403 = FromSchema<typeof schemas.GetCustomPages.response['403']>;
|
81
|
+
export type GetDocMetadataParam = FromSchema<typeof schemas.GetDoc.metadata>;
|
82
|
+
export type GetDocResponse401 = FromSchema<typeof schemas.GetDoc.response['401']>;
|
83
|
+
export type GetDocResponse403 = FromSchema<typeof schemas.GetDoc.response['403']>;
|
84
|
+
export type GetOpenRolesResponse200 = FromSchema<typeof schemas.GetOpenRoles.response['200']>;
|
85
|
+
export type GetProductionDocMetadataParam = FromSchema<typeof schemas.GetProductionDoc.metadata>;
|
86
|
+
export type GetProductionDocResponse401 = FromSchema<typeof schemas.GetProductionDoc.response['401']>;
|
87
|
+
export type GetProductionDocResponse403 = FromSchema<typeof schemas.GetProductionDoc.response['403']>;
|
88
|
+
export type GetProjectResponse401 = FromSchema<typeof schemas.GetProject.response['401']>;
|
89
|
+
export type GetProjectResponse403 = FromSchema<typeof schemas.GetProject.response['403']>;
|
90
|
+
export type GetVersionMetadataParam = FromSchema<typeof schemas.GetVersion.metadata>;
|
91
|
+
export type GetVersionResponse401 = FromSchema<typeof schemas.GetVersion.response['401']>;
|
92
|
+
export type GetVersionResponse403 = FromSchema<typeof schemas.GetVersion.response['403']>;
|
93
|
+
export type GetVersionsResponse401 = FromSchema<typeof schemas.GetVersions.response['401']>;
|
94
|
+
export type GetVersionsResponse403 = FromSchema<typeof schemas.GetVersions.response['403']>;
|
95
|
+
export type JobOpening = FromSchema<typeof schemas.JobOpening>;
|
96
|
+
export type SearchDocsMetadataParam = FromSchema<typeof schemas.SearchDocs.metadata>;
|
97
|
+
export type SearchDocsResponse401 = FromSchema<typeof schemas.SearchDocs.response['401']>;
|
98
|
+
export type SearchDocsResponse403 = FromSchema<typeof schemas.SearchDocs.response['403']>;
|
99
|
+
export type UpdateApiSpecificationBodyParam = FromSchema<typeof schemas.UpdateApiSpecification.body>;
|
100
|
+
export type UpdateApiSpecificationMetadataParam = FromSchema<typeof schemas.UpdateApiSpecification.metadata>;
|
101
|
+
export type UpdateApiSpecificationResponse400 = FromSchema<typeof schemas.UpdateApiSpecification.response['400']>;
|
102
|
+
export type UpdateApiSpecificationResponse401 = FromSchema<typeof schemas.UpdateApiSpecification.response['401']>;
|
103
|
+
export type UpdateApiSpecificationResponse403 = FromSchema<typeof schemas.UpdateApiSpecification.response['403']>;
|
104
|
+
export type UpdateCategoryMetadataParam = FromSchema<typeof schemas.UpdateCategory.metadata>;
|
105
|
+
export type UpdateChangelogMetadataParam = FromSchema<typeof schemas.UpdateChangelog.metadata>;
|
106
|
+
export type UpdateCustomPageMetadataParam = FromSchema<typeof schemas.UpdateCustomPage.metadata>;
|
107
|
+
export type UpdateCustomPageResponse401 = FromSchema<typeof schemas.UpdateCustomPage.response['401']>;
|
108
|
+
export type UpdateCustomPageResponse403 = FromSchema<typeof schemas.UpdateCustomPage.response['403']>;
|
109
|
+
export type UpdateDocMetadataParam = FromSchema<typeof schemas.UpdateDoc.metadata>;
|
110
|
+
export type UpdateDocResponse401 = FromSchema<typeof schemas.UpdateDoc.response['401']>;
|
111
|
+
export type UpdateDocResponse403 = FromSchema<typeof schemas.UpdateDoc.response['403']>;
|
112
|
+
export type UpdateVersionMetadataParam = FromSchema<typeof schemas.UpdateVersion.metadata>;
|
113
|
+
export type UpdateVersionResponse401 = FromSchema<typeof schemas.UpdateVersion.response['401']>;
|
114
|
+
export type UpdateVersionResponse403 = FromSchema<typeof schemas.UpdateVersion.response['403']>;
|
115
|
+
export type UploadApiSpecificationBodyParam = FromSchema<typeof schemas.UploadApiSpecification.body>;
|
116
|
+
export type UploadApiSpecificationMetadataParam = FromSchema<typeof schemas.UploadApiSpecification.metadata>;
|
117
|
+
export type UploadApiSpecificationResponse400 = FromSchema<typeof schemas.UploadApiSpecification.response['400']>;
|
118
|
+
export type UploadApiSpecificationResponse401 = FromSchema<typeof schemas.UploadApiSpecification.response['401']>;
|
119
|
+
export type UploadApiSpecificationResponse403 = FromSchema<typeof schemas.UploadApiSpecification.response['403']>;
|
120
|
+
export type Version = FromSchema<typeof schemas.Version>;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# `@api/response-title-quirks`
|
2
|
+
|
3
|
+
This SDK was autogenerated by the [`api` SDK generator](https://api.readme.dev), powered by [ReadMe](https://readme.com) 🦉
|
4
|
+
|
5
|
+
Add SDK setup information and usage examples here so your users get started in a jiffy! 🚀
|
6
|
+
|
7
|
+
<!---
|
8
|
+
|
9
|
+
Here's some additional info about the generated SDK:
|
10
|
+
|
11
|
+
`api` version: 7.0.0-mock
|
12
|
+
Generated at 2023-10-25T00:00:00.000Z
|
13
|
+
|
14
|
+
--->
|