
Security News
Potemkin Understanding in LLMs: New Study Reveals Flaws in AI Benchmarks
New research reveals that LLMs often fake understanding, passing benchmarks but failing to apply concepts or stay internally consistent.
@liblab/sdk
Advanced tools
The Typescript SDK for Liblab.
npm install liblab
To see whether an endpoint needs a specific type of authentication check the endpoint's documentation.
The Liblab API uses bearer tokens for authentication, but these bearer tokens have a short expiration time. Refresh tokens have longer duration, and they have the ability to obtain new bearer tokens. The bearer and refresh token can be set when initializing the SDK like this:
sdk = new Liblab('YOUR_REFRESH_TOKEN', 'YOUR_BEARER_TOKEN')
Or at a later stage:
sdk = new Liblab()
sdk.setBearerToken('YOUR_BEARER_TOKEN');
sdk.setRefreshToken('YOUR_REFRESH_TOKEN');
After the refresh token has been set, the SDK will automatically refresh the bearer token when needed.
Here is a simple program demonstrating usage of this SDK. It is also available in the sample.js
file in this directory.
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Org
.getByCurrentUser();
console.log(result);
})();
Here is the list of all available environments:
DEFAULT = 'https://api-dev.liblab.com',
PRODUCTION = 'https://api.liblab.com',
STAGING = 'https://api-staging.liblab.com',
DEVELOPMENT = 'https://api-dev.liblab.com'
How to set the environment:
const sdk = new Liblab();
sdk.setEnvironment(Environment.DEFAULT);
A list of all services and services methods.
Services
Method | Description |
---|---|
buildSdk | |
buildDoc | |
getBuilds | |
getById |
Method | Description |
---|---|
create | |
getApis | |
getById | |
update | |
remove | |
getApiMembers | |
getApiSdks | |
getApiDocs | |
getApiBuilds | |
getApiByOrgSlugAndApiSlug |
Method | Description |
---|---|
create | |
getByCurrentUser | |
getById | |
update | |
remove | |
getApis | |
getPayments | |
getArtifacts | |
getDocs |
Method | Description |
---|---|
createMember | |
getByOrgId | |
updateMember | |
removeMember | |
enableAllMembers | |
disableAllMembers |
Method | Description |
---|---|
create | |
getArtifacts | |
getById | |
remove |
Method | Description |
---|---|
create | |
findSdks | |
getById | |
remove |
Method | Description |
---|---|
getApprovedByOrgSlugAndApiSlug | |
getAllApprovedByOrgSlugAndApiSlug | |
create | |
findDocs | |
approve | |
getById | |
remove | |
update |
Method | Description |
---|---|
signup | |
login | |
logout | |
refreshToken | |
resetPassword | |
oneTimeLogin | |
changePassword | |
verifyEmail | |
resendVerifictionEmail |
Method | Description |
---|---|
getCurrentUser | |
create | |
getUserApis | |
getById | |
update | |
remove |
Method | Description |
---|---|
create | |
findByUserId | |
getById | |
remove |
Method | Description |
---|---|
HealthCheckController_check |
Method | Description |
---|---|
track |
Method | Description |
---|---|
createInvite | |
acceptInvite | |
declineInvite | |
inviteCode | |
getInvitesByUser |
Required Parameters
Name | Type | Description |
---|---|---|
input | object | Request body. |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Build.buildSdk();
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|---|---|
input | object | Request body. |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Build.buildDoc();
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|---|---|
apiId | number |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Build.getBuilds(32676475.631333575);
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|---|---|
id | number |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Build.getById(991940.5476521701);
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|---|---|
input | object | Request body. |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Api.create();
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|---|---|
orgId | number |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Api.getApis(-92569181.22241963);
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|---|---|
id | number |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Api.getById(-12308741.270300329);
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|---|---|
id | number | |
input | object | Request body. |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Api.update(-93982231.79755472);
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|---|---|
id | number |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
Returns a dict object.
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Api.remove(-96048964.32579984);
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|---|---|
id | number |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Api.getApiMembers(-23904290.436528444);
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|---|---|
id | number |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Api.getApiSdks(72190635.6567977);
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|---|---|
id | number |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Api.getApiDocs(320964.81048351526);
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|---|---|
id | number |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Api.getApiBuilds(40000699.38957003);
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|---|---|
orgSlug | string | |
apiSlug | string |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
ApiGetApiByOrgSlugAndApiSlug200Response
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Api.getApiByOrgSlugAndApiSlug('tempor', 'proident tempor minim');
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|---|---|
input | object | Request body. |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Org.create();
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
OrgGetByCurrentUser200Response
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Org.getByCurrentUser();
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|---|---|
id | number |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Org.getById(-74098328.51971725);
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|---|---|
id | number | |
input | object | Request body. |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Org.update(-79482105.28143287);
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|---|---|
id | number |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
Returns a dict object.
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Org.remove(48074806.3815594);
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|---|---|
id | number |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Org.getApis(12049869.50860034);
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|---|---|
id | number |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Org.getPayments(-47440828.23047946);
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|---|---|
id | number |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Org.getArtifacts(69793297.86251837);
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|---|---|
id | number |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Org.getDocs(-6446005.620545983);
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|---|---|
orgId | number | |
input | object | Request body. |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.OrgMember.createMember(-28710010.002063453);
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|---|---|
orgId | number |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
OrgmemberGetByOrgId200Response
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.OrgMember.getByOrgId(57865104.543248415);
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|---|---|
memberId | number | |
orgId | number | |
input | object | Request body. |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.OrgMember.updateMember(82318174.09950578, -35367515.62320748);
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|---|---|
memberId | number | |
orgId | number |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
Returns a dict object.
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.OrgMember.removeMember(-53818213.84934566, -33184379.700088054);
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|---|---|
orgId | number |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.OrgMember.enableAllMembers(67930024.15561959);
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|---|---|
orgId | number |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.OrgMember.disableAllMembers(-29041532.273366228);
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|---|---|
input | object | Request body. |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Artifact.create();
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|---|---|
buildId | number |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
ArtifactGetArtifacts200Response
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Artifact.getArtifacts(56304580.36366731);
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|---|---|
id | number |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Artifact.getById(-56349476.695539914);
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|---|---|
id | number |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
Returns a dict object.
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Artifact.remove(-60301260.918456465);
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|---|---|
input | object | Request body. |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Sdk.create();
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|---|---|
offset | number | |
limit | number | |
artifactId | number |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Sdk.findSdks(49078768.10657278, 64359554.49825665, 41743370.31916773);
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|---|---|
id | number |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Sdk.getById(61058918.4946945);
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|---|---|
id | number |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
Returns a dict object.
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Sdk.remove(-12256502.078421682);
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|---|---|
orgSlug | string |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|---|---|
apiSlug | string | |
apiVersion | string |
Return Type
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Doc.getApprovedByOrgSlugAndApiSlug('eiusmod ipsum non pariatur', {
apiSlug: 'in nostrud',
apiVersion: 'sit adipisicing Lorem Duis sint',
});
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|---|---|
orgSlug | string |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|---|---|
apiSlug | string | |
apiVersion | string |
Return Type
DocGetAllApprovedByOrgSlugAndApiSlug200Response
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Doc.getAllApprovedByOrgSlugAndApiSlug('deserunt eiusmod ad Excepteur', {
apiSlug: 'eiusmod cupidatat ut deserunt occaecat',
apiVersion: 'in et mollit dolore anim',
});
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|---|---|
input | object | Request body. |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Doc.create();
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|---|---|
offset | number | |
limit | number | |
artifactId | number |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Doc.findDocs(41661742.836339325, -43035457.78981403, 26703485.808616415);
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|---|---|
previewSlug | string |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Doc.approve('quis id commodo labore anim');
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|---|---|
id | number |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Doc.getById(-86620873.41100313);
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|---|---|
id | number |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Doc.remove(86857110.08107898);
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|---|---|
id | number | |
input | object | Request body. |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Doc.update(50011526.01022762);
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|---|---|
input | object | Request body. |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Auth.signup();
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|---|---|
input | object | Request body. |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Auth.login();
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
Returns a dict object.
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Auth.logout();
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|---|---|
input | object | Request body. |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Auth.refreshToken();
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|---|---|
input | object | Request body. |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
Returns a dict object.
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Auth.resetPassword();
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|---|---|
input | object | Request body. |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Auth.oneTimeLogin();
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|---|---|
input | object | Request body. |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Auth.changePassword();
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|---|---|
input | object | Request body. |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
Returns a dict object.
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Auth.verifyEmail();
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|---|---|
input | object | Request body. |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
Returns a dict object.
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Auth.resendVerifictionEmail();
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.User.getCurrentUser();
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|---|---|
input | object | Request body. |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.User.create();
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.User.getUserApis();
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|---|---|
id | number |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.User.getById(-6059471.604780778);
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|---|---|
id | number | |
input | object | Request body. |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.User.update(1633979.847291872);
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|---|---|
id | number |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
Returns a dict object.
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.User.remove(4641830.906790689);
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|---|---|
input | object | Request body. |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Token.create();
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|---|---|
userId | number |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Token.findByUserId(78968617.59437677);
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|---|---|
id | number |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Token.getById(67156140.97808796);
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|---|---|
id | number |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
Returns a dict object.
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Token.remove(90877217.49216852);
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.HealthCheck.healthCheckControllerCheck();
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|---|---|
input | object | Request body. |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
Returns a dict object.
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Event.track();
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|---|---|
orgId | number | |
input | object | Request body. |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
InvitationResponse InvitationResponse
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Invitation.createInvite(-5278412.196885943);
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|---|---|
inviteCode | string |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
Returns a dict object.
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Invitation.acceptInvite('magna sed dolore dolor');
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|---|---|
inviteCode | string |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
Returns a dict object.
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Invitation.declineInvite('eiusmod ut');
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|---|---|
inviteCode | string |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Invitation.inviteCode('ut');
console.log(result);
})();
Required Parameters
Name | Type | Description |
---|---|---|
offset | number | |
limit | number |
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|
Return Type
InvitationGetInvitesByUser200Response
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Invitation.getInvitesByUser(-9723905.815212324, 52955440.09617627);
console.log(result);
})();
FAQs
Liblab
We found that @liblab/sdk 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.
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
New research reveals that LLMs often fake understanding, passing benchmarks but failing to apply concepts or stay internally consistent.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.