@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,122 @@
|
|
1
|
+
import RuleSource from './RuleSource.js';
|
2
|
+
|
3
|
+
const ZapierRuleResponse = {
|
4
|
+
"additionalProperties": false,
|
5
|
+
"properties": {
|
6
|
+
"_links": {
|
7
|
+
"type": [
|
8
|
+
"object",
|
9
|
+
"null"
|
10
|
+
],
|
11
|
+
"additionalProperties": true
|
12
|
+
},
|
13
|
+
"appId": {
|
14
|
+
"description": "The Ably application ID.",
|
15
|
+
"type": "string",
|
16
|
+
"examples": [
|
17
|
+
"28GY6a"
|
18
|
+
]
|
19
|
+
},
|
20
|
+
"created": {
|
21
|
+
"description": "Unix timestamp representing the date and time of creation of the rule.",
|
22
|
+
"type": "number",
|
23
|
+
"examples": [
|
24
|
+
1602844091815
|
25
|
+
]
|
26
|
+
},
|
27
|
+
"id": {
|
28
|
+
"description": "The rule ID.",
|
29
|
+
"type": "string",
|
30
|
+
"examples": [
|
31
|
+
"83IzAB"
|
32
|
+
]
|
33
|
+
},
|
34
|
+
"modified": {
|
35
|
+
"description": "Unix timestamp representing the date and time of last modification of the rule.",
|
36
|
+
"type": "number",
|
37
|
+
"examples": [
|
38
|
+
1614679682091
|
39
|
+
]
|
40
|
+
},
|
41
|
+
"requestMode": {
|
42
|
+
"description": "This is Single Request mode or Batch Request mode. Single Request mode sends each event separately to the endpoint specified by the rule. Batch Request mode rolls up multiple events into the same request. You can read more about the difference between single and batched events in the Ably <a href=\"https://ably.com/documentation/general/events#batching\">documentation</a>.\n\n`single` `batch`",
|
43
|
+
"enum": [
|
44
|
+
"single",
|
45
|
+
"batch"
|
46
|
+
],
|
47
|
+
"type": "string",
|
48
|
+
"examples": [
|
49
|
+
"single"
|
50
|
+
]
|
51
|
+
},
|
52
|
+
"ruleType": {
|
53
|
+
"description": "The type of rule. In this case Zapier. See the <a href=\"https://ably.com/integrations\">documentation</a> for further information.\n\n`http/zapier`",
|
54
|
+
"enum": [
|
55
|
+
"http/zapier"
|
56
|
+
],
|
57
|
+
"type": "string"
|
58
|
+
},
|
59
|
+
"source": RuleSource,
|
60
|
+
"status": {
|
61
|
+
"description": "The status of the rule. Rules can be enabled or disabled.\n\n`enabled` `disabled`",
|
62
|
+
"enum": [
|
63
|
+
"enabled",
|
64
|
+
"disabled"
|
65
|
+
],
|
66
|
+
"type": "string",
|
67
|
+
"examples": [
|
68
|
+
"enabled"
|
69
|
+
]
|
70
|
+
},
|
71
|
+
"target": {
|
72
|
+
"additionalProperties": false,
|
73
|
+
"properties": {
|
74
|
+
"headers": {
|
75
|
+
"description": "If you have additional information to send, you'll need to include the relevant headers.",
|
76
|
+
"items": {
|
77
|
+
"properties": {
|
78
|
+
"name": {
|
79
|
+
"description": "The name of the header.",
|
80
|
+
"type": "string"
|
81
|
+
},
|
82
|
+
"value": {
|
83
|
+
"description": "The value of the header.",
|
84
|
+
"type": "string"
|
85
|
+
}
|
86
|
+
},
|
87
|
+
"type": "object"
|
88
|
+
},
|
89
|
+
"type": "array"
|
90
|
+
},
|
91
|
+
"signingKeyId": {
|
92
|
+
"description": "The signing key ID for use in `batch` mode. Ably will optionally sign the payload using an API key ensuring your servers can validate the payload using the private API key. See the <a href=\"https://ably.com/documentation/general/events#security\">webhook security docs</a> for more information.",
|
93
|
+
"type": [
|
94
|
+
"string",
|
95
|
+
"null"
|
96
|
+
]
|
97
|
+
},
|
98
|
+
"url": {
|
99
|
+
"type": "string"
|
100
|
+
}
|
101
|
+
},
|
102
|
+
"required": [
|
103
|
+
"url"
|
104
|
+
],
|
105
|
+
"type": "object"
|
106
|
+
},
|
107
|
+
"version": {
|
108
|
+
"description": "API version. Events and the format of their payloads are versioned. Please see the <a href=\"https://ably.com/documentation/general/events\">Events documentation</a>.",
|
109
|
+
"type": "string"
|
110
|
+
}
|
111
|
+
},
|
112
|
+
"required": [
|
113
|
+
"ruleType",
|
114
|
+
"requestMode",
|
115
|
+
"source",
|
116
|
+
"target"
|
117
|
+
],
|
118
|
+
"type": "object",
|
119
|
+
"title": "zapier_rule_response",
|
120
|
+
"x-readme-ref-name": "zapier_rule_response"
|
121
|
+
} as const;
|
122
|
+
export default ZapierRuleResponse
|
@@ -0,0 +1,77 @@
|
|
1
|
+
import AmqpExternalRulePatch from './schemas/AmqpExternalRulePatch.js';
|
2
|
+
import AmqpExternalRulePost from './schemas/AmqpExternalRulePost.js';
|
3
|
+
import AmqpExternalRuleResponse from './schemas/AmqpExternalRuleResponse.js';
|
4
|
+
import AmqpRulePatch from './schemas/AmqpRulePatch.js';
|
5
|
+
import AmqpRulePost from './schemas/AmqpRulePost.js';
|
6
|
+
import AmqpRuleResponse from './schemas/AmqpRuleResponse.js';
|
7
|
+
import AppPatch from './schemas/AppPatch.js';
|
8
|
+
import AppPkcs12 from './schemas/AppPkcs12.js';
|
9
|
+
import AppPost from './schemas/AppPost.js';
|
10
|
+
import AppResponse from './schemas/AppResponse.js';
|
11
|
+
import AwsAccessKeys from './schemas/AwsAccessKeys.js';
|
12
|
+
import AwsAccessKeysResponse from './schemas/AwsAccessKeysResponse.js';
|
13
|
+
import AwsAssumeRole from './schemas/AwsAssumeRole.js';
|
14
|
+
import AwsKinesisRulePatch from './schemas/AwsKinesisRulePatch.js';
|
15
|
+
import AwsKinesisRulePost from './schemas/AwsKinesisRulePost.js';
|
16
|
+
import AwsKinesisRuleResponse from './schemas/AwsKinesisRuleResponse.js';
|
17
|
+
import AwsLambdaRulePatch from './schemas/AwsLambdaRulePatch.js';
|
18
|
+
import AwsLambdaRulePost from './schemas/AwsLambdaRulePost.js';
|
19
|
+
import AwsLambdaRuleResponse from './schemas/AwsLambdaRuleResponse.js';
|
20
|
+
import AwsSqsRulePatch from './schemas/AwsSqsRulePatch.js';
|
21
|
+
import AwsSqsRulePost from './schemas/AwsSqsRulePost.js';
|
22
|
+
import AwsSqsRuleResponse from './schemas/AwsSqsRuleResponse.js';
|
23
|
+
import AzureFunctionRulePatch from './schemas/AzureFunctionRulePatch.js';
|
24
|
+
import AzureFunctionRulePost from './schemas/AzureFunctionRulePost.js';
|
25
|
+
import AzureFunctionRuleResponse from './schemas/AzureFunctionRuleResponse.js';
|
26
|
+
import CloudflareWorkerRulePatch from './schemas/CloudflareWorkerRulePatch.js';
|
27
|
+
import CloudflareWorkerRulePost from './schemas/CloudflareWorkerRulePost.js';
|
28
|
+
import CloudflareWorkerRuleResponse from './schemas/CloudflareWorkerRuleResponse.js';
|
29
|
+
import DeleteAppsAppIdNamespacesNamespaceId from './schemas/DeleteAppsAppIdNamespacesNamespaceId.js';
|
30
|
+
import DeleteAppsAppIdQueuesQueueId from './schemas/DeleteAppsAppIdQueuesQueueId.js';
|
31
|
+
import DeleteAppsAppIdRulesRuleId from './schemas/DeleteAppsAppIdRulesRuleId.js';
|
32
|
+
import DeleteAppsId from './schemas/DeleteAppsId.js';
|
33
|
+
import Error from './schemas/Error.js';
|
34
|
+
import GetAccountsAccountIdApps from './schemas/GetAccountsAccountIdApps.js';
|
35
|
+
import GetAppsAppIdKeys from './schemas/GetAppsAppIdKeys.js';
|
36
|
+
import GetAppsAppIdNamespaces from './schemas/GetAppsAppIdNamespaces.js';
|
37
|
+
import GetAppsAppIdQueues from './schemas/GetAppsAppIdQueues.js';
|
38
|
+
import GetAppsAppIdRules from './schemas/GetAppsAppIdRules.js';
|
39
|
+
import GetAppsAppIdRulesRuleId from './schemas/GetAppsAppIdRulesRuleId.js';
|
40
|
+
import GoogleCloudFunctionRulePatch from './schemas/GoogleCloudFunctionRulePatch.js';
|
41
|
+
import GoogleCloudFunctionRulePost from './schemas/GoogleCloudFunctionRulePost.js';
|
42
|
+
import GoogleCloudFunctionRuleResponse from './schemas/GoogleCloudFunctionRuleResponse.js';
|
43
|
+
import HttpRulePatch from './schemas/HttpRulePatch.js';
|
44
|
+
import HttpRulePost from './schemas/HttpRulePost.js';
|
45
|
+
import HttpRuleResponse from './schemas/HttpRuleResponse.js';
|
46
|
+
import IftttRulePatch from './schemas/IftttRulePatch.js';
|
47
|
+
import IftttRulePost from './schemas/IftttRulePost.js';
|
48
|
+
import IftttRuleResponse from './schemas/IftttRuleResponse.js';
|
49
|
+
import KeyPatch from './schemas/KeyPatch.js';
|
50
|
+
import KeyPost from './schemas/KeyPost.js';
|
51
|
+
import KeyResponse from './schemas/KeyResponse.js';
|
52
|
+
import Me from './schemas/Me.js';
|
53
|
+
import NamespacePatch from './schemas/NamespacePatch.js';
|
54
|
+
import NamespacePost from './schemas/NamespacePost.js';
|
55
|
+
import NamespaceResponse from './schemas/NamespaceResponse.js';
|
56
|
+
import PatchAppsAppIdKeysKeyId from './schemas/PatchAppsAppIdKeysKeyId.js';
|
57
|
+
import PatchAppsAppIdNamespacesNamespaceId from './schemas/PatchAppsAppIdNamespacesNamespaceId.js';
|
58
|
+
import PatchAppsAppIdRulesRuleId from './schemas/PatchAppsAppIdRulesRuleId.js';
|
59
|
+
import PatchAppsId from './schemas/PatchAppsId.js';
|
60
|
+
import PostAccountsAccountIdApps from './schemas/PostAccountsAccountIdApps.js';
|
61
|
+
import PostAppsAppIdKeys from './schemas/PostAppsAppIdKeys.js';
|
62
|
+
import PostAppsAppIdKeysKeyIdRevoke from './schemas/PostAppsAppIdKeysKeyIdRevoke.js';
|
63
|
+
import PostAppsAppIdNamespaces from './schemas/PostAppsAppIdNamespaces.js';
|
64
|
+
import PostAppsAppIdQueues from './schemas/PostAppsAppIdQueues.js';
|
65
|
+
import PostAppsAppIdRules from './schemas/PostAppsAppIdRules.js';
|
66
|
+
import PostAppsIdPkcs12 from './schemas/PostAppsIdPkcs12.js';
|
67
|
+
import Queue from './schemas/Queue.js';
|
68
|
+
import QueueResponse from './schemas/QueueResponse.js';
|
69
|
+
import RulePatch from './schemas/RulePatch.js';
|
70
|
+
import RulePost from './schemas/RulePost.js';
|
71
|
+
import RuleResponse from './schemas/RuleResponse.js';
|
72
|
+
import RuleSource from './schemas/RuleSource.js';
|
73
|
+
import UnsupportedRuleResponse from './schemas/UnsupportedRuleResponse.js';
|
74
|
+
import ZapierRulePatch from './schemas/ZapierRulePatch.js';
|
75
|
+
import ZapierRulePost from './schemas/ZapierRulePost.js';
|
76
|
+
import ZapierRuleResponse from './schemas/ZapierRuleResponse.js';
|
77
|
+
export { AmqpExternalRulePatch, AmqpExternalRulePost, AmqpExternalRuleResponse, AmqpRulePatch, AmqpRulePost, AmqpRuleResponse, AppPatch, AppPkcs12, AppPost, AppResponse, AwsAccessKeys, AwsAccessKeysResponse, AwsAssumeRole, AwsKinesisRulePatch, AwsKinesisRulePost, AwsKinesisRuleResponse, AwsLambdaRulePatch, AwsLambdaRulePost, AwsLambdaRuleResponse, AwsSqsRulePatch, AwsSqsRulePost, AwsSqsRuleResponse, AzureFunctionRulePatch, AzureFunctionRulePost, AzureFunctionRuleResponse, CloudflareWorkerRulePatch, CloudflareWorkerRulePost, CloudflareWorkerRuleResponse, DeleteAppsAppIdNamespacesNamespaceId, DeleteAppsAppIdQueuesQueueId, DeleteAppsAppIdRulesRuleId, DeleteAppsId, Error, GetAccountsAccountIdApps, GetAppsAppIdKeys, GetAppsAppIdNamespaces, GetAppsAppIdQueues, GetAppsAppIdRules, GetAppsAppIdRulesRuleId, GoogleCloudFunctionRulePatch, GoogleCloudFunctionRulePost, GoogleCloudFunctionRuleResponse, HttpRulePatch, HttpRulePost, HttpRuleResponse, IftttRulePatch, IftttRulePost, IftttRuleResponse, KeyPatch, KeyPost, KeyResponse, Me, NamespacePatch, NamespacePost, NamespaceResponse, PatchAppsAppIdKeysKeyId, PatchAppsAppIdNamespacesNamespaceId, PatchAppsAppIdRulesRuleId, PatchAppsId, PostAccountsAccountIdApps, PostAppsAppIdKeys, PostAppsAppIdKeysKeyIdRevoke, PostAppsAppIdNamespaces, PostAppsAppIdQueues, PostAppsAppIdRules, PostAppsIdPkcs12, Queue, QueueResponse, RulePatch, RulePost, RuleResponse, RuleSource, UnsupportedRuleResponse, ZapierRulePatch, ZapierRulePost, ZapierRuleResponse }
|
@@ -0,0 +1,381 @@
|
|
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 '@api/test-utils/definitions/alby.json';
|
5
|
+
|
6
|
+
export default class SDK {
|
7
|
+
core: APICore;
|
8
|
+
|
9
|
+
constructor() {
|
10
|
+
this.core = new APICore(definition, 'alby/1.0.14 (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
|
+
* List all applications for the specified account ID.
|
75
|
+
*
|
76
|
+
* @summary Lists apps
|
77
|
+
* @throws FetchError<401, types.Error> Authentication failed
|
78
|
+
* @throws FetchError<404, types.Error> Account not found
|
79
|
+
* @throws FetchError<500, types.Error> Internal server error
|
80
|
+
*/
|
81
|
+
getAccountsAccount_idApps(metadata: types.GetAccountsAccountIdAppsMetadataParam): Promise<FetchResponse<200, types.GetAccountsAccountIdAppsResponse200>> {
|
82
|
+
return this.core.fetch('/accounts/{account_id}/apps', 'get', metadata);
|
83
|
+
}
|
84
|
+
|
85
|
+
/**
|
86
|
+
* Creates an application with the specified properties.
|
87
|
+
*
|
88
|
+
* @summary Creates an app
|
89
|
+
* @throws FetchError<400, types.Error> Bad request
|
90
|
+
* @throws FetchError<401, types.Error> Authentication failed
|
91
|
+
* @throws FetchError<404, types.Error> Account not found
|
92
|
+
* @throws FetchError<422, types.Error> Invalid request
|
93
|
+
* @throws FetchError<500, types.Error> Internal server error
|
94
|
+
*/
|
95
|
+
postAccountsAccount_idApps(body: types.AppPost, metadata: types.PostAccountsAccountIdAppsMetadataParam): Promise<FetchResponse<201, types.AppResponse>> {
|
96
|
+
return this.core.fetch('/accounts/{account_id}/apps', 'post', body, metadata);
|
97
|
+
}
|
98
|
+
|
99
|
+
/**
|
100
|
+
* Lists the API keys associated with the application ID.
|
101
|
+
*
|
102
|
+
* @summary Lists app keys
|
103
|
+
* @throws FetchError<401, types.Error> Authentication failed
|
104
|
+
* @throws FetchError<404, types.Error> App not found
|
105
|
+
* @throws FetchError<500, types.Error> Internal server error
|
106
|
+
* @throws FetchError<504, types.Error> Gateway timeout
|
107
|
+
*/
|
108
|
+
getAppsApp_idKeys(metadata: types.GetAppsAppIdKeysMetadataParam): Promise<FetchResponse<200, types.GetAppsAppIdKeysResponse200>> {
|
109
|
+
return this.core.fetch('/apps/{app_id}/keys', 'get', metadata);
|
110
|
+
}
|
111
|
+
|
112
|
+
/**
|
113
|
+
* Creates an API key for the application specified.
|
114
|
+
*
|
115
|
+
* @summary Creates a key
|
116
|
+
* @throws FetchError<400, types.Error> Bad request
|
117
|
+
* @throws FetchError<401, types.Error> Authentication failed
|
118
|
+
* @throws FetchError<404, types.Error> App not found
|
119
|
+
* @throws FetchError<422, types.Error> Invalid request
|
120
|
+
* @throws FetchError<500, types.Error> Internal server error
|
121
|
+
*/
|
122
|
+
postAppsApp_idKeys(body: types.KeyPost, metadata: types.PostAppsAppIdKeysMetadataParam): Promise<FetchResponse<201, types.KeyResponse>> {
|
123
|
+
return this.core.fetch('/apps/{app_id}/keys', 'post', body, metadata);
|
124
|
+
}
|
125
|
+
|
126
|
+
/**
|
127
|
+
* Update the API key with the specified key ID, for the application with the specified
|
128
|
+
* application ID.
|
129
|
+
*
|
130
|
+
* @summary Updates a key
|
131
|
+
* @throws FetchError<400, types.Error> Bad request
|
132
|
+
* @throws FetchError<401, types.Error> Authentication failed
|
133
|
+
* @throws FetchError<404, types.Error> App not found
|
134
|
+
* @throws FetchError<422, types.Error> Invalid request
|
135
|
+
* @throws FetchError<500, types.Error> Internal server error
|
136
|
+
* @throws FetchError<504, types.Error> Gateway timeout
|
137
|
+
*/
|
138
|
+
patchAppsApp_idKeysKey_id(body: types.KeyPatch, metadata: types.PatchAppsAppIdKeysKeyIdMetadataParam): Promise<FetchResponse<200, types.KeyResponse>>;
|
139
|
+
patchAppsApp_idKeysKey_id(metadata: types.PatchAppsAppIdKeysKeyIdMetadataParam): Promise<FetchResponse<200, types.KeyResponse>>;
|
140
|
+
patchAppsApp_idKeysKey_id(body?: types.KeyPatch | types.PatchAppsAppIdKeysKeyIdMetadataParam, metadata?: types.PatchAppsAppIdKeysKeyIdMetadataParam): Promise<FetchResponse<200, types.KeyResponse>> {
|
141
|
+
return this.core.fetch('/apps/{app_id}/keys/{key_id}', 'patch', body, metadata);
|
142
|
+
}
|
143
|
+
|
144
|
+
/**
|
145
|
+
* Revokes the API key with the specified ID, with the Application ID. This deletes the
|
146
|
+
* key.
|
147
|
+
*
|
148
|
+
* @summary Revokes a key
|
149
|
+
* @throws FetchError<401, types.Error> Authentication failed
|
150
|
+
* @throws FetchError<404, types.Error> Not found
|
151
|
+
* @throws FetchError<500, types.Error> Internal server error
|
152
|
+
* @throws FetchError<504, types.Error> Gateway timeout
|
153
|
+
*/
|
154
|
+
postAppsApp_idKeysKey_idRevoke(metadata: types.PostAppsAppIdKeysKeyIdRevokeMetadataParam): Promise<FetchResponse<number, unknown>> {
|
155
|
+
return this.core.fetch('/apps/{app_id}/keys/{key_id}/revoke', 'post', metadata);
|
156
|
+
}
|
157
|
+
|
158
|
+
/**
|
159
|
+
* List the namespaces for the specified application ID.
|
160
|
+
*
|
161
|
+
* @summary Lists namespaces
|
162
|
+
* @throws FetchError<401, types.Error> Authentication failed
|
163
|
+
* @throws FetchError<404, types.Error> App not found
|
164
|
+
* @throws FetchError<500, types.Error> Internal server error
|
165
|
+
* @throws FetchError<504, types.Error> Gateway timeout
|
166
|
+
*/
|
167
|
+
getAppsApp_idNamespaces(metadata: types.GetAppsAppIdNamespacesMetadataParam): Promise<FetchResponse<200, types.GetAppsAppIdNamespacesResponse200>> {
|
168
|
+
return this.core.fetch('/apps/{app_id}/namespaces', 'get', metadata);
|
169
|
+
}
|
170
|
+
|
171
|
+
/**
|
172
|
+
* Creates a namespace for the specified application ID.
|
173
|
+
*
|
174
|
+
* @summary Creates a namespace
|
175
|
+
* @throws FetchError<400, types.Error> Bad request
|
176
|
+
* @throws FetchError<401, types.Error> Authentication failed
|
177
|
+
* @throws FetchError<404, types.Error> App not found
|
178
|
+
* @throws FetchError<422, types.Error> Invalid request
|
179
|
+
* @throws FetchError<500, types.Error> Internal server error
|
180
|
+
*/
|
181
|
+
postAppsApp_idNamespaces(body: types.NamespacePost, metadata: types.PostAppsAppIdNamespacesMetadataParam): Promise<FetchResponse<201, types.NamespaceResponse>> {
|
182
|
+
return this.core.fetch('/apps/{app_id}/namespaces', 'post', body, metadata);
|
183
|
+
}
|
184
|
+
|
185
|
+
/**
|
186
|
+
* Deletes the namespace with the specified ID, for the specified application ID.
|
187
|
+
*
|
188
|
+
* @summary Deletes a namespace
|
189
|
+
* @throws FetchError<401, types.Error> Authentication failed
|
190
|
+
* @throws FetchError<404, types.Error> Not found
|
191
|
+
* @throws FetchError<500, types.Error> Internal server error
|
192
|
+
* @throws FetchError<504, types.Error> Gateway timeout
|
193
|
+
*/
|
194
|
+
deleteAppsApp_idNamespacesNamespace_id(metadata: types.DeleteAppsAppIdNamespacesNamespaceIdMetadataParam): Promise<FetchResponse<number, unknown>> {
|
195
|
+
return this.core.fetch('/apps/{app_id}/namespaces/{namespace_id}', 'delete', metadata);
|
196
|
+
}
|
197
|
+
|
198
|
+
/**
|
199
|
+
* Updates the namespace with the specified ID, for the application with the specified
|
200
|
+
* application ID.
|
201
|
+
*
|
202
|
+
* @summary Updates a namespace
|
203
|
+
* @throws FetchError<400, types.Error> Bad request
|
204
|
+
* @throws FetchError<401, types.Error> Authentication failed
|
205
|
+
* @throws FetchError<404, types.Error> Not found
|
206
|
+
* @throws FetchError<500, types.Error> Internal server error
|
207
|
+
* @throws FetchError<504, types.Error> Gateway timeout
|
208
|
+
*/
|
209
|
+
patchAppsApp_idNamespacesNamespace_id(body: types.NamespacePatch, metadata: types.PatchAppsAppIdNamespacesNamespaceIdMetadataParam): Promise<FetchResponse<200, types.NamespaceResponse>>;
|
210
|
+
patchAppsApp_idNamespacesNamespace_id(metadata: types.PatchAppsAppIdNamespacesNamespaceIdMetadataParam): Promise<FetchResponse<200, types.NamespaceResponse>>;
|
211
|
+
patchAppsApp_idNamespacesNamespace_id(body?: types.NamespacePatch | types.PatchAppsAppIdNamespacesNamespaceIdMetadataParam, metadata?: types.PatchAppsAppIdNamespacesNamespaceIdMetadataParam): Promise<FetchResponse<200, types.NamespaceResponse>> {
|
212
|
+
return this.core.fetch('/apps/{app_id}/namespaces/{namespace_id}', 'patch', body, metadata);
|
213
|
+
}
|
214
|
+
|
215
|
+
/**
|
216
|
+
* Lists the queues associated with the specified application ID.
|
217
|
+
*
|
218
|
+
* @summary Lists queues
|
219
|
+
* @throws FetchError<401, types.Error> Authentication failed
|
220
|
+
* @throws FetchError<404, types.Error> App not found
|
221
|
+
* @throws FetchError<500, types.Error> Internal server error
|
222
|
+
* @throws FetchError<503, types.Error> 503 Service unavailable
|
223
|
+
* @throws FetchError<504, types.Error> Gateway timeout
|
224
|
+
*/
|
225
|
+
getAppsApp_idQueues(metadata: types.GetAppsAppIdQueuesMetadataParam): Promise<FetchResponse<200, types.GetAppsAppIdQueuesResponse200>> {
|
226
|
+
return this.core.fetch('/apps/{app_id}/queues', 'get', metadata);
|
227
|
+
}
|
228
|
+
|
229
|
+
/**
|
230
|
+
* Creates a queue for the application specified by application ID. The properties for the
|
231
|
+
* queue to be created are specified in the request body.
|
232
|
+
*
|
233
|
+
* @summary Creates a queue
|
234
|
+
* @throws FetchError<400, types.Error> Bad request
|
235
|
+
* @throws FetchError<401, types.Error> Authentication failed
|
236
|
+
* @throws FetchError<404, types.Error> App not found
|
237
|
+
* @throws FetchError<422, types.Error> Invalid request
|
238
|
+
* @throws FetchError<500, types.Error> Internal server error
|
239
|
+
*/
|
240
|
+
postAppsApp_idQueues(body: types.Queue, metadata: types.PostAppsAppIdQueuesMetadataParam): Promise<FetchResponse<201, types.QueueResponse>> {
|
241
|
+
return this.core.fetch('/apps/{app_id}/queues', 'post', body, metadata);
|
242
|
+
}
|
243
|
+
|
244
|
+
/**
|
245
|
+
* Delete the queue with the specified queue name, from the application with the specified
|
246
|
+
* application ID.
|
247
|
+
*
|
248
|
+
* @summary Deletes a queue
|
249
|
+
* @throws FetchError<400, types.Error> Bad request
|
250
|
+
* @throws FetchError<401, types.Error> Authentication failed
|
251
|
+
* @throws FetchError<404, types.Error> App not found
|
252
|
+
* @throws FetchError<500, types.Error> Internal server error
|
253
|
+
* @throws FetchError<503, types.Error> 503 Service unavailable
|
254
|
+
*/
|
255
|
+
deleteAppsApp_idQueuesQueue_id(metadata: types.DeleteAppsAppIdQueuesQueueIdMetadataParam): Promise<FetchResponse<number, unknown>> {
|
256
|
+
return this.core.fetch('/apps/{app_id}/queues/{queue_id}', 'delete', metadata);
|
257
|
+
}
|
258
|
+
|
259
|
+
/**
|
260
|
+
* Lists the rules for the application specified by the application ID.
|
261
|
+
*
|
262
|
+
* @summary Lists Reactor rules
|
263
|
+
* @throws FetchError<401, types.Error> Authentication failed
|
264
|
+
* @throws FetchError<404, types.Error> App not found
|
265
|
+
* @throws FetchError<500, types.Error> Internal server error
|
266
|
+
* @throws FetchError<504, types.Error> Gateway timeout
|
267
|
+
*/
|
268
|
+
getAppsApp_idRules(metadata: types.GetAppsAppIdRulesMetadataParam): Promise<FetchResponse<200, types.GetAppsAppIdRulesResponse200>> {
|
269
|
+
return this.core.fetch('/apps/{app_id}/rules', 'get', metadata);
|
270
|
+
}
|
271
|
+
|
272
|
+
/**
|
273
|
+
* Creates a rule for the application with the specified application ID.
|
274
|
+
*
|
275
|
+
* @summary Creates a Reactor rule
|
276
|
+
* @throws FetchError<400, types.Error> Bad request
|
277
|
+
* @throws FetchError<401, types.Error> Authentication failed
|
278
|
+
* @throws FetchError<404, types.Error> App not found
|
279
|
+
* @throws FetchError<422, types.Error> Invalid request
|
280
|
+
* @throws FetchError<500, types.Error> Internal server error
|
281
|
+
* @throws FetchError<504, types.Error> Gateway timeout
|
282
|
+
*/
|
283
|
+
postAppsApp_idRules(body: types.RulePost, metadata: types.PostAppsAppIdRulesMetadataParam): Promise<FetchResponse<201, types.RuleResponse>>;
|
284
|
+
postAppsApp_idRules(metadata: types.PostAppsAppIdRulesMetadataParam): Promise<FetchResponse<201, types.RuleResponse>>;
|
285
|
+
postAppsApp_idRules(body?: types.RulePost | types.PostAppsAppIdRulesMetadataParam, metadata?: types.PostAppsAppIdRulesMetadataParam): Promise<FetchResponse<201, types.RuleResponse>> {
|
286
|
+
return this.core.fetch('/apps/{app_id}/rules', 'post', body, metadata);
|
287
|
+
}
|
288
|
+
|
289
|
+
/**
|
290
|
+
* Deletes a Reactor rule
|
291
|
+
*
|
292
|
+
* @throws FetchError<401, types.Error> Authentication failed
|
293
|
+
* @throws FetchError<404, types.Error> App not found
|
294
|
+
* @throws FetchError<500, types.Error> Internal server error
|
295
|
+
* @throws FetchError<504, types.Error> Gateway timeout
|
296
|
+
*/
|
297
|
+
deleteAppsApp_idRulesRule_id(metadata: types.DeleteAppsAppIdRulesRuleIdMetadataParam): Promise<FetchResponse<number, unknown>> {
|
298
|
+
return this.core.fetch('/apps/{app_id}/rules/{rule_id}', 'delete', metadata);
|
299
|
+
}
|
300
|
+
|
301
|
+
/**
|
302
|
+
* Returns the rule specified by the rule ID, for the application specified by application
|
303
|
+
* ID.
|
304
|
+
*
|
305
|
+
* @summary Gets a reactor rule by rule ID
|
306
|
+
* @throws FetchError<401, types.Error> Authentication failed
|
307
|
+
* @throws FetchError<404, types.Error> Not found
|
308
|
+
* @throws FetchError<500, types.Error> Internal server error
|
309
|
+
* @throws FetchError<504, types.Error> Gateway timeout
|
310
|
+
*/
|
311
|
+
getAppsApp_idRulesRule_id(metadata: types.GetAppsAppIdRulesRuleIdMetadataParam): Promise<FetchResponse<200, types.RuleResponse>> {
|
312
|
+
return this.core.fetch('/apps/{app_id}/rules/{rule_id}', 'get', metadata);
|
313
|
+
}
|
314
|
+
|
315
|
+
/**
|
316
|
+
* Updates a Reactor rule
|
317
|
+
*
|
318
|
+
* @throws FetchError<400, types.Error> Bad request
|
319
|
+
* @throws FetchError<401, types.Error> Authentication failed
|
320
|
+
* @throws FetchError<404, types.Error> App not found
|
321
|
+
* @throws FetchError<422, types.Error> Invalid request
|
322
|
+
* @throws FetchError<500, types.Error> Internal server error
|
323
|
+
* @throws FetchError<504, types.Error> Gateway timeout
|
324
|
+
*/
|
325
|
+
patchAppsApp_idRulesRule_id(body: types.RulePatch, metadata: types.PatchAppsAppIdRulesRuleIdMetadataParam): Promise<FetchResponse<200, types.RuleResponse>>;
|
326
|
+
patchAppsApp_idRulesRule_id(metadata: types.PatchAppsAppIdRulesRuleIdMetadataParam): Promise<FetchResponse<200, types.RuleResponse>>;
|
327
|
+
patchAppsApp_idRulesRule_id(body?: types.RulePatch | types.PatchAppsAppIdRulesRuleIdMetadataParam, metadata?: types.PatchAppsAppIdRulesRuleIdMetadataParam): Promise<FetchResponse<200, types.RuleResponse>> {
|
328
|
+
return this.core.fetch('/apps/{app_id}/rules/{rule_id}', 'patch', body, metadata);
|
329
|
+
}
|
330
|
+
|
331
|
+
/**
|
332
|
+
* Deletes the application with the specified application ID.
|
333
|
+
*
|
334
|
+
* @summary Deletes an app
|
335
|
+
* @throws FetchError<401, types.Error> Authentication failed
|
336
|
+
* @throws FetchError<404, types.Error> App not found
|
337
|
+
* @throws FetchError<422, types.Error> Invalid request
|
338
|
+
* @throws FetchError<500, types.Error> Internal server error
|
339
|
+
*/
|
340
|
+
deleteAppsId(metadata: types.DeleteAppsIdMetadataParam): Promise<FetchResponse<number, unknown>> {
|
341
|
+
return this.core.fetch('/apps/{id}', 'delete', metadata);
|
342
|
+
}
|
343
|
+
|
344
|
+
/**
|
345
|
+
* Updates the application with the specified application ID.
|
346
|
+
*
|
347
|
+
* @summary Updates an app
|
348
|
+
* @throws FetchError<400, types.Error> Bad request
|
349
|
+
* @throws FetchError<401, types.Error> Authentication failed
|
350
|
+
* @throws FetchError<404, types.Error> App not found
|
351
|
+
* @throws FetchError<500, types.Error> Internal server error
|
352
|
+
*/
|
353
|
+
patchAppsId(body: types.AppPatch, metadata: types.PatchAppsIdMetadataParam): Promise<FetchResponse<200, types.AppResponse>>;
|
354
|
+
patchAppsId(metadata: types.PatchAppsIdMetadataParam): Promise<FetchResponse<200, types.AppResponse>>;
|
355
|
+
patchAppsId(body?: types.AppPatch | types.PatchAppsIdMetadataParam, metadata?: types.PatchAppsIdMetadataParam): Promise<FetchResponse<200, types.AppResponse>> {
|
356
|
+
return this.core.fetch('/apps/{id}', 'patch', body, metadata);
|
357
|
+
}
|
358
|
+
|
359
|
+
/**
|
360
|
+
* Updates the application's Apple Push Notification service (APNs) information.
|
361
|
+
*
|
362
|
+
* @summary Updates app's APNs info from a `.p12` file
|
363
|
+
* @throws FetchError<400, types.Error> Bad request
|
364
|
+
* @throws FetchError<401, types.Error> Authentication failed
|
365
|
+
* @throws FetchError<404, types.Error> App not found
|
366
|
+
* @throws FetchError<500, types.Error> Internal server error
|
367
|
+
*/
|
368
|
+
postAppsIdPkcs12(body: types.AppPkcs12, metadata: types.PostAppsIdPkcs12MetadataParam): Promise<FetchResponse<200, types.AppResponse>> {
|
369
|
+
return this.core.fetch('/apps/{id}/pkcs12', 'post', body, metadata);
|
370
|
+
}
|
371
|
+
|
372
|
+
/**
|
373
|
+
* Get token details
|
374
|
+
*
|
375
|
+
* @throws FetchError<401, types.Error> Authentication failed
|
376
|
+
* @throws FetchError<500, types.Error> Internal server error
|
377
|
+
*/
|
378
|
+
getMe(): Promise<FetchResponse<200, types.Me>> {
|
379
|
+
return this.core.fetch('/me', 'get');
|
380
|
+
}
|
381
|
+
}
|