Liblab Typescript SDK 1.0.0
The Typescript SDK for Liblab.
- API version: 1.0
- SDK version: 1.0.0
Table of Contents
Installation
npm install liblab
Authentication
To see whether an endpoint needs a specific type of authentication check the endpoint's documentation.
Bearer Authentication
The Liblab API uses bearer tokens as a form of authentication. You can set the bearer token for the entire SDK using the setBearerToken
method:
const sdk = new Liblab()
sdk.setBearerToken('YOUR_BEARER_TOKEN')
Or you can set it for each endpoint individually:
const sdk = new Liblab()
sdk.health_check.setBearerToken('YOUR_BEARER_TOKEN')
Sample Usage
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(process.env.LIBLAB_BEARER_TOKEN);
(async () => {
const result = await sdk.HealthCheck
.healthCheckControllerCheck();
console.log(result);
})();
Liblab Services
A list of all services and services methods.
Build
Api
Org
Artifact
Sdk
Doc
OrgMember
Auth
User
Token
HealthCheck
Event
All Methods
buildSdk
- HTTP Method: POST
- Endpoint: /builds/sdk
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'}
Return Type
BuildResponse
Example Usage Code Snippet
import { LiblabSDK } from './src';
const sdk = new LiblabSDK(process.env.LIBLABSDK_BEARER_TOKEN);
(async () => {
const result = await sdk.Build.buildSdk();
console.log(result);
})();
buildDoc
- HTTP Method: POST
- Endpoint: /builds/doc
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'}
Return Type
BuildResponse
Example Usage Code Snippet
import { LiblabSDK } from './src';
const sdk = new LiblabSDK(process.env.LIBLABSDK_BEARER_TOKEN);
(async () => {
const result = await sdk.Build.buildDoc();
console.log(result);
})();
getBuilds
- HTTP Method: GET
- Endpoint: /builds
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'}
Return Type
BuildGetBuilds200Response
Example Usage Code Snippet
import { LiblabSDK } from './src';
const sdk = new LiblabSDK(process.env.LIBLABSDK_BEARER_TOKEN);
(async () => {
const result = await sdk.Build.getBuilds(-48165764.75663075);
console.log(result);
})();
getById
- HTTP Method: GET
- Endpoint: /builds/{id}
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'}
Return Type
BuildResponse
Example Usage Code Snippet
import { LiblabSDK } from './src';
const sdk = new LiblabSDK(process.env.LIBLABSDK_BEARER_TOKEN);
(async () => {
const result = await sdk.Build.getById(7962706.324171886);
console.log(result);
})();
create
- HTTP Method: POST
- Endpoint: /apis
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'}
Return Type
ApiResponse
Example Usage Code Snippet
import { LiblabSDK } from './src';
const sdk = new LiblabSDK(process.env.LIBLABSDK_BEARER_TOKEN);
(async () => {
const result = await sdk.Api.create();
console.log(result);
})();
getApis
- HTTP Method: GET
- Endpoint: /apis
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'}
Return Type
ApiGetApis200Response
Example Usage Code Snippet
import { LiblabSDK } from './src';
const sdk = new LiblabSDK(process.env.LIBLABSDK_BEARER_TOKEN);
(async () => {
const result = await sdk.Api.getApis(-44024406.39159413);
console.log(result);
})();
getById
- HTTP Method: GET
- Endpoint: /apis/{id}
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'}
Return Type
ApiResponse
Example Usage Code Snippet
import { LiblabSDK } from './src';
const sdk = new LiblabSDK(process.env.LIBLABSDK_BEARER_TOKEN);
(async () => {
const result = await sdk.Api.getById(45998560.587584436);
console.log(result);
})();
update
- HTTP Method: PATCH
- Endpoint: /apis/{id}
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'}
Return Type
ApiResponse
Example Usage Code Snippet
import { LiblabSDK } from './src';
const sdk = new LiblabSDK(process.env.LIBLABSDK_BEARER_TOKEN);
(async () => {
const result = await sdk.Api.update(-42811138.51284308);
console.log(result);
})();
remove
- HTTP Method: DELETE
- Endpoint: /apis/{id}
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'}
Return Type
Returns a dict object.
Example Usage Code Snippet
import { LiblabSDK } from './src';
const sdk = new LiblabSDK(process.env.LIBLABSDK_BEARER_TOKEN);
(async () => {
const result = await sdk.Api.remove(25097616.37081574);
console.log(result);
})();
getApiMembers
- HTTP Method: GET
- Endpoint: /apis/{id}/members
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'}
Return Type
ApiGetApiMembers200Response
Example Usage Code Snippet
import { LiblabSDK } from './src';
const sdk = new LiblabSDK(process.env.LIBLABSDK_BEARER_TOKEN);
(async () => {
const result = await sdk.Api.getApiMembers(62996297.474656165);
console.log(result);
})();
getApiSdks
- HTTP Method: GET
- Endpoint: /apis/{id}/sdks
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'}
Return Type
ApiGetApiSdks200Response
Example Usage Code Snippet
import { LiblabSDK } from './src';
const sdk = new LiblabSDK(process.env.LIBLABSDK_BEARER_TOKEN);
(async () => {
const result = await sdk.Api.getApiSdks(-94265783.58558074);
console.log(result);
})();
getApiDocs
- HTTP Method: GET
- Endpoint: /apis/{id}/docs
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'}
Return Type
ApiGetApiDocs200Response
Example Usage Code Snippet
import { LiblabSDK } from './src';
const sdk = new LiblabSDK(process.env.LIBLABSDK_BEARER_TOKEN);
(async () => {
const result = await sdk.Api.getApiDocs(77993445.48287058);
console.log(result);
})();
getApiBuilds
- HTTP Method: GET
- Endpoint: /apis/{id}/builds
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'}
Return Type
ApiGetApiBuilds200Response
Example Usage Code Snippet
import { LiblabSDK } from './src';
const sdk = new LiblabSDK(process.env.LIBLABSDK_BEARER_TOKEN);
(async () => {
const result = await sdk.Api.getApiBuilds(44290956.50090212);
console.log(result);
})();
getApiByOrgSlugAndApiSlug
- HTTP Method: GET
- Endpoint: /apis/{orgSlug}/{apiSlug}
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'}
Return Type
ApiGetApiByOrgSlugAndApiSlug200Response
Example Usage Code Snippet
import { LiblabSDK } from './src';
const sdk = new LiblabSDK(process.env.LIBLABSDK_BEARER_TOKEN);
(async () => {
const result = await sdk.Api.getApiByOrgSlugAndApiSlug('do consectetur veniam', 'labore');
console.log(result);
})();
create
- HTTP Method: POST
- Endpoint: /orgs
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'}
Return Type
OrgResponse
Example Usage Code Snippet
import { LiblabSDK } from './src';
const sdk = new LiblabSDK(process.env.LIBLABSDK_BEARER_TOKEN);
(async () => {
const result = await sdk.Org.create();
console.log(result);
})();
getByCurrentUser
- HTTP Method: GET
- Endpoint: /orgs
Required Parameters
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Return Type
OrgGetByCurrentUser200Response
Example Usage Code Snippet
import { LiblabSDK } from './src';
const sdk = new LiblabSDK(process.env.LIBLABSDK_BEARER_TOKEN);
(async () => {
const result = await sdk.Org.getByCurrentUser();
console.log(result);
})();
getById
- HTTP Method: GET
- Endpoint: /orgs/{id}
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'}
Return Type
OrgResponse
Example Usage Code Snippet
import { LiblabSDK } from './src';
const sdk = new LiblabSDK(process.env.LIBLABSDK_BEARER_TOKEN);
(async () => {
const result = await sdk.Org.getById(29616203.34158708);
console.log(result);
})();
update
- HTTP Method: PATCH
- Endpoint: /orgs/{id}
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'}
Return Type
OrgResponse
Example Usage Code Snippet
import { LiblabSDK } from './src';
const sdk = new LiblabSDK(process.env.LIBLABSDK_BEARER_TOKEN);
(async () => {
const result = await sdk.Org.update(-43820798.32424775);
console.log(result);
})();
remove
- HTTP Method: DELETE
- Endpoint: /orgs/{id}
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'}
Return Type
Returns a dict object.
Example Usage Code Snippet
import { LiblabSDK } from './src';
const sdk = new LiblabSDK(process.env.LIBLABSDK_BEARER_TOKEN);
(async () => {
const result = await sdk.Org.remove(61896566.78847578);
console.log(result);
})();
getApis
- HTTP Method: GET
- Endpoint: /orgs/{id}/apis
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'}
Return Type
OrgGetApis200Response
Example Usage Code Snippet
import { LiblabSDK } from './src';
const sdk = new LiblabSDK(process.env.LIBLABSDK_BEARER_TOKEN);
(async () => {
const result = await sdk.Org.getApis(72924693.44292223);
console.log(result);
})();
getPayments
- HTTP Method: GET
- Endpoint: /orgs/{id}/payments
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'}
Return Type
OrgGetPayments200Response
Example Usage Code Snippet
import { LiblabSDK } from './src';
const sdk = new LiblabSDK(process.env.LIBLABSDK_BEARER_TOKEN);
(async () => {
const result = await sdk.Org.getPayments(93458864.63311532);
console.log(result);
})();
getArtifacts
- HTTP Method: GET
- Endpoint: /orgs/{id}/artifacts
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'}
Return Type
OrgGetArtifacts200Response
Example Usage Code Snippet
import { LiblabSDK } from './src';
const sdk = new LiblabSDK(process.env.LIBLABSDK_BEARER_TOKEN);
(async () => {
const result = await sdk.Org.getArtifacts(41484752.291130304);
console.log(result);
})();
getDocs
- HTTP Method: GET
- Endpoint: /orgs/{id}/docs
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'}
Return Type
OrgGetDocs200Response
Example Usage Code Snippet
import { LiblabSDK } from './src';
const sdk = new LiblabSDK(process.env.LIBLABSDK_BEARER_TOKEN);
(async () => {
const result = await sdk.Org.getDocs(-60486711.54613974);
console.log(result);
})();
create
- HTTP Method: POST
- Endpoint: /artifacts
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'}
Return Type
ArtifactResponse
Example Usage Code Snippet
import { LiblabSDK } from './src';
const sdk = new LiblabSDK(process.env.LIBLABSDK_BEARER_TOKEN);
(async () => {
const result = await sdk.Artifact.create();
console.log(result);
})();
getArtifacts
- HTTP Method: GET
- Endpoint: /artifacts
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'}
Return Type
ArtifactGetArtifacts200Response
Example Usage Code Snippet
import { LiblabSDK } from './src';
const sdk = new LiblabSDK(process.env.LIBLABSDK_BEARER_TOKEN);
(async () => {
const result = await sdk.Artifact.getArtifacts(-76814136.45340297);
console.log(result);
})();
getById
- HTTP Method: GET
- Endpoint: /artifacts/{id}
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'}
Return Type
ApiResponse
Example Usage Code Snippet
import { LiblabSDK } from './src';
const sdk = new LiblabSDK(process.env.LIBLABSDK_BEARER_TOKEN);
(async () => {
const result = await sdk.Artifact.getById(-83529753.03611995);
console.log(result);
})();
remove
- HTTP Method: DELETE
- Endpoint: /artifacts/{id}
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'}
Return Type
Returns a dict object.
Example Usage Code Snippet
import { LiblabSDK } from './src';
const sdk = new LiblabSDK(process.env.LIBLABSDK_BEARER_TOKEN);
(async () => {
const result = await sdk.Artifact.remove(39572852.30218929);
console.log(result);
})();
create
- HTTP Method: POST
- Endpoint: /sdks
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'}
Return Type
SdkResponse
Example Usage Code Snippet
import { LiblabSDK } from './src';
const sdk = new LiblabSDK(process.env.LIBLABSDK_BEARER_TOKEN);
(async () => {
const result = await sdk.Sdk.create();
console.log(result);
})();
findSdks
- HTTP Method: GET
- Endpoint: /sdks
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'}
Return Type
SdkFindSdks200Response
Example Usage Code Snippet
import { LiblabSDK } from './src';
const sdk = new LiblabSDK(process.env.LIBLABSDK_BEARER_TOKEN);
(async () => {
const result = await sdk.Sdk.findSdks(76225525.71193135, -31309771.085607976, -88006073.87400015);
console.log(result);
})();
getById
- HTTP Method: GET
- Endpoint: /sdks/{id}
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'}
Return Type
SdkResponse
Example Usage Code Snippet
import { LiblabSDK } from './src';
const sdk = new LiblabSDK(process.env.LIBLABSDK_BEARER_TOKEN);
(async () => {
const result = await sdk.Sdk.getById(-29313635.565291747);
console.log(result);
})();
remove
- HTTP Method: DELETE
- Endpoint: /sdks/{id}
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'}
Return Type
Returns a dict object.
Example Usage Code Snippet
import { LiblabSDK } from './src';
const sdk = new LiblabSDK(process.env.LIBLABSDK_BEARER_TOKEN);
(async () => {
const result = await sdk.Sdk.remove(-36118912.24134358);
console.log(result);
})();
getApprovedByOrgSlugAndApiSlug
- HTTP Method: GET
- Endpoint: /docs/approved
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
DocResponse
Example Usage Code Snippet
import { LiblabSDK } from './src';
const sdk = new LiblabSDK(process.env.LIBLABSDK_BEARER_TOKEN);
(async () => {
const result = await sdk.Doc.getApprovedByOrgSlugAndApiSlug('sit in ex', {
apiSlug: 'nulla laborum dolore Duis',
apiVersion: 'est consequat magna',
});
console.log(result);
})();
getAllApprovedByOrgSlugAndApiSlug
- HTTP Method: GET
- Endpoint: /docs/approved/all
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 { LiblabSDK } from './src';
const sdk = new LiblabSDK(process.env.LIBLABSDK_BEARER_TOKEN);
(async () => {
const result = await sdk.Doc.getAllApprovedByOrgSlugAndApiSlug('eiusmod', {
apiSlug: 'mollit elit dolor irure ullamco',
apiVersion: 'qui Duis aute',
});
console.log(result);
})();
create
- HTTP Method: POST
- Endpoint: /docs
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'}
Return Type
DocCreatedResponse
Example Usage Code Snippet
import { LiblabSDK } from './src';
const sdk = new LiblabSDK(process.env.LIBLABSDK_BEARER_TOKEN);
(async () => {
const result = await sdk.Doc.create();
console.log(result);
})();
findDocs
- HTTP Method: GET
- Endpoint: /docs
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'}
Return Type
DocFindDocs200Response
Example Usage Code Snippet
import { LiblabSDK } from './src';
const sdk = new LiblabSDK(process.env.LIBLABSDK_BEARER_TOKEN);
(async () => {
const result = await sdk.Doc.findDocs(-51767973.38255068, 63329237.03969279, -95342948.16935271);
console.log(result);
})();
approve
- HTTP Method: POST
- Endpoint: /docs/{previewSlug}/approve
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'}
Return Type
DocResponse
Example Usage Code Snippet
import { LiblabSDK } from './src';
const sdk = new LiblabSDK(process.env.LIBLABSDK_BEARER_TOKEN);
(async () => {
const result = await sdk.Doc.approve('incididunt Excepteur anim qui');
console.log(result);
})();
getById
- HTTP Method: GET
- Endpoint: /docs/{id}
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'}
Return Type
DocResponse
Example Usage Code Snippet
import { LiblabSDK } from './src';
const sdk = new LiblabSDK(process.env.LIBLABSDK_BEARER_TOKEN);
(async () => {
const result = await sdk.Doc.getById(71207621.81299311);
console.log(result);
})();
remove
- HTTP Method: DELETE
- Endpoint: /docs/{id}
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'}
Return Type
DocResponse
Example Usage Code Snippet
import { LiblabSDK } from './src';
const sdk = new LiblabSDK(process.env.LIBLABSDK_BEARER_TOKEN);
(async () => {
const result = await sdk.Doc.remove(50511659.749599844);
console.log(result);
})();
update
- HTTP Method: PUT
- Endpoint: /docs/{id}
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'}
Return Type
DocResponse
Example Usage Code Snippet
import { LiblabSDK } from './src';
const sdk = new LiblabSDK(process.env.LIBLABSDK_BEARER_TOKEN);
(async () => {
const result = await sdk.Doc.update(8766762.025551781);
console.log(result);
})();
createMember
- HTTP Method: POST
- Endpoint: /orgs/{orgId}/members
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'}
Return Type
OrgMemberResponse
Example Usage Code Snippet
import { LiblabSDK } from './src';
const sdk = new LiblabSDK(process.env.LIBLABSDK_BEARER_TOKEN);
(async () => {
const result = await sdk.OrgMember.createMember(-73884745.8488439);
console.log(result);
})();
getByOrgId
- HTTP Method: GET
- Endpoint: /orgs/{orgId}/members
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'}
Return Type
OrgmemberGetByOrgId200Response
Example Usage Code Snippet
import { LiblabSDK } from './src';
const sdk = new LiblabSDK(process.env.LIBLABSDK_BEARER_TOKEN);
(async () => {
const result = await sdk.OrgMember.getByOrgId(55887092.28546879);
console.log(result);
})();
updateMember
- HTTP Method: PATCH
- Endpoint: /orgs/{orgId}/members/{memberId}
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'}
Return Type
OrgMemberResponse
Example Usage Code Snippet
import { LiblabSDK } from './src';
const sdk = new LiblabSDK(process.env.LIBLABSDK_BEARER_TOKEN);
(async () => {
const result = await sdk.OrgMember.updateMember(30264526.63798502, -44918709.87069926);
console.log(result);
})();
removeMember
- HTTP Method: DELETE
- Endpoint: /orgs/{orgId}/members/{memberId}
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'}
Return Type
Returns a dict object.
Example Usage Code Snippet
import { LiblabSDK } from './src';
const sdk = new LiblabSDK(process.env.LIBLABSDK_BEARER_TOKEN);
(async () => {
const result = await sdk.OrgMember.removeMember(-26001316.444469407, -46121159.497894436);
console.log(result);
})();
enableAllMembers
- HTTP Method: PATCH
- Endpoint: /orgs/{orgId}/enable
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'}
Return Type
UpdateManyOrgMembersResponse
Example Usage Code Snippet
import { LiblabSDK } from './src';
const sdk = new LiblabSDK(process.env.LIBLABSDK_BEARER_TOKEN);
(async () => {
const result = await sdk.OrgMember.enableAllMembers(10566272.565736547);
console.log(result);
})();
disableAllMembers
- HTTP Method: PATCH
- Endpoint: /orgs/{orgId}/disable
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'}
Return Type
UpdateManyOrgMembersResponse
Example Usage Code Snippet
import { LiblabSDK } from './src';
const sdk = new LiblabSDK(process.env.LIBLABSDK_BEARER_TOKEN);
(async () => {
const result = await sdk.OrgMember.disableAllMembers(8968740.892253682);
console.log(result);
})();
signup
- HTTP Method: POST
- Endpoint: /auth/signup
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'}
Return Type
UserResponse
Example Usage Code Snippet
import { LiblabSDK } from './src';
const sdk = new LiblabSDK(process.env.LIBLABSDK_BEARER_TOKEN);
(async () => {
const result = await sdk.Auth.signup();
console.log(result);
})();
login
- HTTP Method: POST
- Endpoint: /auth/login
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'}
Return Type
AuthTokenResponse
Example Usage Code Snippet
import { LiblabSDK } from './src';
const sdk = new LiblabSDK(process.env.LIBLABSDK_BEARER_TOKEN);
(async () => {
const result = await sdk.Auth.login();
console.log(result);
})();
logout
- HTTP Method: POST
- Endpoint: /auth/logout
Required Parameters
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Return Type
Returns a dict object.
Example Usage Code Snippet
import { LiblabSDK } from './src';
const sdk = new LiblabSDK(process.env.LIBLABSDK_BEARER_TOKEN);
(async () => {
const result = await sdk.Auth.logout();
console.log(result);
})();
refreshToken
- HTTP Method: POST
- Endpoint: /auth/refresh-jwt
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'}
Return Type
AuthTokenResponse
Example Usage Code Snippet
import { LiblabSDK } from './src';
const sdk = new LiblabSDK(process.env.LIBLABSDK_BEARER_TOKEN);
(async () => {
const result = await sdk.Auth.refreshToken();
console.log(result);
})();
resetPassword
- HTTP Method: POST
- Endpoint: /auth/reset-password
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'}
Return Type
Returns a dict object.
Example Usage Code Snippet
import { LiblabSDK } from './src';
const sdk = new LiblabSDK(process.env.LIBLABSDK_BEARER_TOKEN);
(async () => {
const result = await sdk.Auth.resetPassword();
console.log(result);
})();
oneTimeLogin
- HTTP Method: POST
- Endpoint: /auth/one-time-login
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'}
Return Type
AuthTokenResponse
Example Usage Code Snippet
import { LiblabSDK } from './src';
const sdk = new LiblabSDK(process.env.LIBLABSDK_BEARER_TOKEN);
(async () => {
const result = await sdk.Auth.oneTimeLogin();
console.log(result);
})();
changePassword
- HTTP Method: POST
- Endpoint: /auth/change-password
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'}
Return Type
AuthTokenResponse
Example Usage Code Snippet
import { LiblabSDK } from './src';
const sdk = new LiblabSDK(process.env.LIBLABSDK_BEARER_TOKEN);
(async () => {
const result = await sdk.Auth.changePassword();
console.log(result);
})();
verifyEmail
- HTTP Method: POST
- Endpoint: /auth/verify-email
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'}
Return Type
Returns a dict object.
Example Usage Code Snippet
import { LiblabSDK } from './src';
const sdk = new LiblabSDK(process.env.LIBLABSDK_BEARER_TOKEN);
(async () => {
const result = await sdk.Auth.verifyEmail();
console.log(result);
})();
getCurrentUser
- HTTP Method: GET
- Endpoint: /users/current-user
Required Parameters
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Return Type
UserResponse
Example Usage Code Snippet
import { LiblabSDK } from './src';
const sdk = new LiblabSDK(process.env.LIBLABSDK_BEARER_TOKEN);
(async () => {
const result = await sdk.User.getCurrentUser();
console.log(result);
})();
create
- HTTP Method: POST
- Endpoint: /users
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'}
Return Type
UserResponse
Example Usage Code Snippet
import { LiblabSDK } from './src';
const sdk = new LiblabSDK(process.env.LIBLABSDK_BEARER_TOKEN);
(async () => {
const result = await sdk.User.create();
console.log(result);
})();
getUserApis
- HTTP Method: GET
- Endpoint: /users
Required Parameters
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Return Type
UserGetUserApis200Response
Example Usage Code Snippet
import { LiblabSDK } from './src';
const sdk = new LiblabSDK(process.env.LIBLABSDK_BEARER_TOKEN);
(async () => {
const result = await sdk.User.getUserApis();
console.log(result);
})();
getById
- HTTP Method: GET
- Endpoint: /users/{id}
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'}
Return Type
UserResponse
Example Usage Code Snippet
import { LiblabSDK } from './src';
const sdk = new LiblabSDK(process.env.LIBLABSDK_BEARER_TOKEN);
(async () => {
const result = await sdk.User.getById(49930422.854065895);
console.log(result);
})();
update
- HTTP Method: PATCH
- Endpoint: /users/{id}
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'}
Return Type
UserResponse
Example Usage Code Snippet
import { LiblabSDK } from './src';
const sdk = new LiblabSDK(process.env.LIBLABSDK_BEARER_TOKEN);
(async () => {
const result = await sdk.User.update(57470273.702373356);
console.log(result);
})();
remove
- HTTP Method: DELETE
- Endpoint: /users/{id}
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'}
Return Type
Returns a dict object.
Example Usage Code Snippet
import { LiblabSDK } from './src';
const sdk = new LiblabSDK(process.env.LIBLABSDK_BEARER_TOKEN);
(async () => {
const result = await sdk.User.remove(70304338.5974536);
console.log(result);
})();
create
- HTTP Method: POST
- Endpoint: /auth/tokens
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'}
Return Type
CreateTokenResponse
Example Usage Code Snippet
import { LiblabSDK } from './src';
const sdk = new LiblabSDK(process.env.LIBLABSDK_BEARER_TOKEN);
(async () => {
const result = await sdk.Token.create();
console.log(result);
})();
findByUserId
- HTTP Method: GET
- Endpoint: /auth/tokens
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'}
Return Type
GetTokenResponse
Example Usage Code Snippet
import { LiblabSDK } from './src';
const sdk = new LiblabSDK(process.env.LIBLABSDK_BEARER_TOKEN);
(async () => {
const result = await sdk.Token.findByUserId(-18337023.913837895);
console.log(result);
})();
getById
- HTTP Method: GET
- Endpoint: /auth/tokens/{id}
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'}
Return Type
GetTokenResponse
Example Usage Code Snippet
import { LiblabSDK } from './src';
const sdk = new LiblabSDK(process.env.LIBLABSDK_BEARER_TOKEN);
(async () => {
const result = await sdk.Token.getById(-20091585.144753844);
console.log(result);
})();
remove
- HTTP Method: DELETE
- Endpoint: /auth/tokens/{id}
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'}
Return Type
Returns a dict object.
Example Usage Code Snippet
import { LiblabSDK } from './src';
const sdk = new LiblabSDK(process.env.LIBLABSDK_BEARER_TOKEN);
(async () => {
const result = await sdk.Token.remove(-17168870.122559234);
console.log(result);
})();
HealthCheckController_check
- HTTP Method: GET
- Endpoint: /health-check
Required Parameters
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Return Type
HealthCheckResponse
Example Usage Code Snippet
import { LiblabSDK } from './src';
const sdk = new LiblabSDK(process.env.LIBLABSDK_BEARER_TOKEN);
(async () => {
const result = await sdk.HealthCheck.healthCheckControllerCheck();
console.log(result);
})();
track
- HTTP Method: POST
- Endpoint: /events
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'}
Return Type
Returns a dict object.
Example Usage Code Snippet
import { LiblabSDK } from './src';
const sdk = new LiblabSDK(process.env.LIBLABSDK_BEARER_TOKEN);
(async () => {
const result = await sdk.Event.track();
console.log(result);
})();