
Security News
arXiv Is Rate Limiting Authors Following a Flood of AI Slop Submissions
arXiv now limits authors to two submissions a month as AI slop overwhelms moderators, delays good papers, and sparks debate over applying the limit to everyone.
@software-hardware-integration-lab/sdk-url-shortener
Advanced tools
SDK client used to interface with the URL Shortener application.
This SDK provides a convenient TypeScript client for interacting with the SHI URL Shortener service. It is automatically generated from the OpenAPI specification located at Url-Shortener.json using Kiota.
All typing data is included in the package.
Install the SDK using npm:
npm install @shi-corp/sdk-url-shortener
Here's a basic example of how to use the SDK:
import { DefaultAzureCredential } from '@azure/identity'
import { urlShortenerClientFactory } from '@shi-corp/sdk-url-shortener';
/** Authentication session used to authenticate to URL Shortener. */
const credential = new DefaultAzureCredential();
/** Base URL for your URL Shortener instance. Protocol specifier (`http`/`https`) is required, even for localhost. */
const baseUrl = new URL('https://url-shortener.example.com');
/**
* Configured client for URL Shortener that can make authenticated web requests against backend.
*
* The third param, the scope is the `Application ID` of the `End User Login` app registration.
*/
const urlShortenerClient = urlShortenerClientFactory(credential, baseUrl, ['b9689d4e-0036-4f2f-8430-07adedb9ae7c/.default']);
/** List of available redirect entries. */
const results = await urlShortenerClient.api.redirect.get();
// Check if list is not empty
if (results?.length > 0) {
// Do something
}
You can optionally configure the SDK client with a custom base URL, including support for it being nested deep in a L7 load balancer:
/** Custom host and endpoint base to as an example for something behind a layer 7 load balancer, E.g. Azure App Gateway or Azure API Gateway. If in debug mode, run against localhost. */
const customBaseUrl = debugMode ? new URL('http://localhost:3004') : new URL('https://custom-host.example.com/Ballance/Instance1/');
/** Configured instance of the URL Shortener client. */
const customConfiguredClient = urlShortenerClientFactory(credential, customBaseUrl);
and/or scope (permission) list:
/**
* `.default` and explicit permissions can't exist in the same custom scope list at the same time, Entra ID doesn't support this.
*
* If not providing the `.default` scope, you can have any number of scopes (permissions) listed in different array indexes.
*/
const customScopes = ['your-custom-scope/something.read.all', 'your-custom-scope/everything.readwrite.all'];
// Initialize the SDK client with custom configuration.
const customConfiguredClient = urlShortenerClientFactory(credential, void 0, customScopes);
bin/: Compiled JavaScript files and type definitions.sdk/: Source TypeScript files generated by Kiota.
api/: API endpoint definitions.models/: Data models used by the SDK.To regenerate the SDK from the OpenAPI specification, run:
npm run generate:Sdk
To build the SDK for production, run:
npm run build:Prod
This SDK is licensed under the MIT License.
For issues or feature requests, please visit the GitHub Issues page.
For more information, visit the official documentation.
FAQs
SDK client used to interface with the URL Shortener application.
We found that @software-hardware-integration-lab/sdk-url-shortener demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
arXiv now limits authors to two submissions a month as AI slop overwhelms moderators, delays good papers, and sparks debate over applying the limit to everyone.

Research
/Security News
A new GhostAction wave hits hundreds of GitHub repos, expanding CI/CD secret theft to cloud and AI credentials in source code and git history.

Research
/Security News
Tensorlake npm SDK version 0.5.144 was compromised in a ChainDrop / Shai-Hulud attack, delivering credential-stealing malware.