
Security News
NVD Concedes Inability to Keep Pace with Surging CVE Disclosures in 2025
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
test-celitech-liblab
Advanced tools
Celitech - Welcome to the CELITECH API documentation! Useful links: [Homepage](https://www.celitech.com) | [Support email](mailto:support@celitech.com) | [Blog](https://www.celitech.com/blog/) # Introduction This guide is your go-to resource for the CE
The Typescript SDK for Celitech.
Welcome to the CELITECH API documentation! Useful links: Homepage | Support email | Blog # Introduction This guide is your go-to resource for the CELITECH API, with full documentation and schemas. Need help? Email us at support@celitech.com. Partners refers to online service providers that use our eSIM API. Access levels include Gold, Platinum, and Diamond. ## API The CELITECH API is designed for use by partner platforms, including both web and mobile applications. It's assumed all endpoint calls are initiated from the backend of an integrated platform. API URL: https://api.celitech.net/v1
## Authentication & Authorization CELITECH API uses the OAuth 2.0 protocol for authentication and authorization. The endpoints are protected using client credentials flow which is based on a token exchange. The token has a defined life span (typically 1 hour), after which a new token must be obtained. To begin, obtain OAuth 2.0 client credentials ( CLIENT_ID & CLIENT_SECRET ) from the CELITECH Dashboard. Then your client application requests an access token from the CELITECH Authorization Server, extracts a token from the response, and sends the token to the CELITECH API that you want to access. Security Scheme Type: OAuth2
Flow type: clientCredentials
Token URL: https://auth.celitech.net/oauth2/token
npm install test-celitech-liblab
You will need the following environment variables in order to access all the features of this SDK:
Name | Description |
---|---|
CLIENT_ID | Client ID parameter |
CLIENT_SECRET | Client Secret parameter |
You can set these environment variables on the command line or you can use
whatever tooling your project has in place to manage environment variables. If
you are using a .env
file, we have provided a template with the variable names
in the .env.example
file in the same directory as this readme.
Here is a simple program demonstrating usage of this SDK. It can also be found in the examples/src/index.ts
file in this directory.
When running the sample make sure to use npm install
to install all the dependencies.
import { Celitech } from 'test-celitech-liblab';
const sdk = new Celitech();
(async () => {
const result = await sdk.destinations
.listDestinations();
console.log(result);
})();
Here is the list of all available environments:
DEFAULT = 'https://tshnuiufz7.execute-api.us-east-1.amazonaws.com/test',
TOKEN_SERVER = 'https://test-core-partners.auth.us-east-1.amazoncognito.com/oauth2/token',
PRODUCTION = 'https://tshnuiufz7.execute-api.us-east-1.amazonaws.com/test'
How to set the environment:
const sdk = new Celitech();
sdk.setEnvironment(Environment.DEFAULT);
A list of all services and services methods.
Services
Method | Description |
---|---|
listDestinations | List Destinations |
Method | Description |
---|---|
listPackages | List Packages |
Method | Description |
---|---|
createPurchase | Create Purchase |
listPurchases | List Purchases |
topUpEsim | Top-up eSIM |
editPurchase | Edit Purchase |
getPurchaseConsumption | Get Purchase Consumption |
Method | Description |
---|---|
getEsim | Get eSIM Status |
getEsimDevice | Get eSIM Device |
getEsimHistory | Get eSIM History |
getEsimMac | Get eSIM MAC |
List Destinations
Return Type
ListDestinationsResponse
Example Usage Code Snippet
import { Celitech } from './src';
const sdk = new Celitech();
(async () => {
const result = await sdk.destinations.listDestinations();
console.log(result);
})();
List Packages
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|---|---|
destination | string | |
startDate | string | Start date of the package's validity in the format 'yyyy-MM-dd'. This date can be set to the current day or any day within the next 12 months. |
endDate | string | End date of the package's validity in the format 'yyyy-MM-dd'. End date can be maximum 60 days after Start date. |
afterCursor | string | |
limit | number | |
startTime | number | |
endTime | number | |
duration | number |
Return Type
ListPackagesResponse
Example Usage Code Snippet
import { Celitech } from './src';
const sdk = new Celitech();
(async () => {
const result = await sdk.packages.listPackages({
destination: 'FRA',
startDate: '2023-11-01',
endDate: '2023-11-20',
afterCursor:
'Y3JlYXRlZEF0OjE1OTk0OTMwOTgsZGVzdGluYXRpb246QVVTLG1pbkRheXM6MCxkYXRhTGltaXRJbkJ5dGVzOjUzNjg3MDkxMjA',
limit: 20,
startTime: 1672052449,
endTime: 1672396681,
duration: 344232,
});
console.log(result);
})();
Create Purchase
Required Parameters
| input | object | Request body. |
Return Type
CreatePurchaseResponse
Example Usage Code Snippet
import { Celitech } from './src';
const sdk = new Celitech();
(async () => {
const input = {
dataLimitInGB: 1,
destination: 'FRA',
email: 'example@domain.com',
endDate: '2023-11-20',
endTime: 1672396681,
networkBrand: 'CELITECH',
startDate: '2023-11-01',
startTime: 1672051891,
};
const result = await sdk.purchases.createPurchase(input);
console.log(result);
})();
List Purchases
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|---|---|
iccid | string | |
afterDate | string | Start date of the interval for filtering purchases in the format 'yyyy-MM-dd' |
beforeDate | string | End date of the interval for filtering purchases in the format 'yyyy-MM-dd' |
afterCursor | string | |
limit | number | |
after | number | |
before | number |
Return Type
ListPurchasesResponse
Example Usage Code Snippet
import { Celitech } from './src';
const sdk = new Celitech();
(async () => {
const result = await sdk.purchases.listPurchases({
iccid: '1111222233334444555',
afterDate: '2023-11-01',
beforeDate: '2023-11-20',
afterCursor:
'Y3JlYXRlZEF0OjE1OTk0OTMwOTgsZGVzdGluYXRpb246QVVTLG1pbkRheXM6MCxkYXRhTGltaXRJbkJ5dGVzOjUzNjg3MDkxMjA',
limit: 20,
after: 1672052365,
before: 1672396681,
});
console.log(result);
})();
Top-up eSIM
Required Parameters
| input | object | Request body. |
Return Type
TopUpEsimResponse
Example Usage Code Snippet
import { Celitech } from './src';
const sdk = new Celitech();
(async () => {
const input = {
dataLimitInGB: 1,
email: 'example@domain.com',
endDate: '2023-11-20',
endTime: 1672396681,
iccid: '1111222233334444555',
startDate: '2023-11-01',
startTime: 1672051891,
};
const result = await sdk.purchases.topUpEsim(input);
console.log(result);
})();
Edit Purchase
Required Parameters
| input | object | Request body. |
Return Type
EditPurchaseResponse
Example Usage Code Snippet
import { Celitech } from './src';
const sdk = new Celitech();
(async () => {
const input = {
endDate: '2023-11-20',
endTime: 1672396681,
purchaseId: 'ae471106-c8b4-42cf-b83a-b061291f2922',
startDate: '2023-11-01',
startTime: 1672051891,
};
const result = await sdk.purchases.editPurchase(input);
console.log(result);
})();
Get Purchase Consumption
Required Parameters
Name | Type | Description |
---|---|---|
purchaseId | string |
Return Type
GetPurchaseConsumptionResponse
Example Usage Code Snippet
import { Celitech } from './src';
const sdk = new Celitech();
(async () => {
const result = await sdk.purchases.getPurchaseConsumption('4973fa15-6979-4daa-9cf3-672620df819c');
console.log(result);
})();
Get eSIM Status
Required Parameters
Name | Type | Description |
---|---|---|
iccid | string |
Return Type
GetEsimResponse
Example Usage Code Snippet
import { Celitech } from './src';
const sdk = new Celitech();
(async () => {
const result = await sdk.eSim.getEsim('1111222233334444555');
console.log(result);
})();
Get eSIM Device
Required Parameters
Name | Type | Description |
---|---|---|
iccid | string |
Return Type
GetEsimDeviceResponse
Example Usage Code Snippet
import { Celitech } from './src';
const sdk = new Celitech();
(async () => {
const result = await sdk.eSim.getEsimDevice('1111222233334444555');
console.log(result);
})();
Get eSIM History
Required Parameters
Name | Type | Description |
---|---|---|
iccid | string |
Return Type
GetEsimHistoryResponse
Example Usage Code Snippet
import { Celitech } from './src';
const sdk = new Celitech();
(async () => {
const result = await sdk.eSim.getEsimHistory('1111222233334444555');
console.log(result);
})();
Get eSIM MAC
Required Parameters
Name | Type | Description |
---|---|---|
iccid | string |
Return Type
GetEsimMacResponse
Example Usage Code Snippet
import { Celitech } from './src';
const sdk = new Celitech();
(async () => {
const result = await sdk.eSim.getEsimMac('1111222233334444555');
console.log(result);
})();
License: MIT. See license in LICENSE.
FAQs
Celitech - Welcome to the CELITECH API documentation! Useful links: [Homepage](https://www.celitech.com) | [Support email](mailto:support@celitech.com) | [Blog](https://www.celitech.com/blog/) # Introduction This guide is your go-to resource for the CE
The npm package test-celitech-liblab receives a total of 0 weekly downloads. As such, test-celitech-liblab popularity was classified as not popular.
We found that test-celitech-liblab demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
Security Fundamentals
Attackers use obfuscation to hide malware in open source packages. Learn how to spot these techniques across npm, PyPI, Maven, and more.
Security News
Join Socket for exclusive networking events, rooftop gatherings, and one-on-one meetings during BSidesSF and RSA 2025 in San Francisco.