This library is autogenerated based on the Swagger spec available here: https://developers.telnyx.com/docs/v2/messaging/10dlc#api-access-and-documentation
import { OpenAPI, BrandsService } from '@rewired/telnyx-10dlc';
// Set Bearer token
OpenAPI.TOKEN = process.env.TELNYX_API_KEY;
// List 10DLC Brands
BrandsService.listBrandsBrandGet().then(console.log).catch(console.error);
# Update source URL
vi ./scripts/generate-api.ts
# Regenerate TS library
yarn generate
# Commit changes
git add scripts/ gen/
git commit -m "feat: update swagger spec"
# Cut release
yarn release
git push --follow-tags