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 with Refresh Tokens
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.
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();
(async () => {
const result = await sdk.Org
.getByCurrentUser();
console.log(result);
})();
Environments
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);
Liblab Services
A list of all services and services methods.
Build
Api
Org
OrgMember
Artifact
Sdk
Doc
Auth
User
Token
HealthCheck
Event
Invitation
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 { Liblab } from './src';
const sdk = new Liblab();
(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 { Liblab } from './src';
const sdk = new Liblab();
(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 { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Build.getBuilds(32676475.631333575);
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 { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Build.getById(991940.5476521701);
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 { Liblab } from './src';
const sdk = new Liblab();
(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 { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Api.getApis(-92569181.22241963);
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 { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Api.getById(-12308741.270300329);
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 { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Api.update(-93982231.79755472);
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 { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Api.remove(-96048964.32579984);
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 { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Api.getApiMembers(-23904290.436528444);
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 { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Api.getApiSdks(72190635.6567977);
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 { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Api.getApiDocs(320964.81048351526);
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 { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Api.getApiBuilds(40000699.38957003);
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 { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Api.getApiByOrgSlugAndApiSlug('tempor', 'proident tempor minim');
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 { Liblab } from './src';
const sdk = new Liblab();
(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 { Liblab } from './src';
const sdk = new Liblab();
(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 { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Org.getById(-74098328.51971725);
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 { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Org.update(-79482105.28143287);
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 { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Org.remove(48074806.3815594);
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 { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Org.getApis(12049869.50860034);
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 { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Org.getPayments(-47440828.23047946);
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 { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Org.getArtifacts(69793297.86251837);
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 { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Org.getDocs(-6446005.620545983);
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 { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.OrgMember.createMember(-28710010.002063453);
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 { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.OrgMember.getByOrgId(57865104.543248415);
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 { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.OrgMember.updateMember(82318174.09950578, -35367515.62320748);
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 { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.OrgMember.removeMember(-53818213.84934566, -33184379.700088054);
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 { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.OrgMember.enableAllMembers(67930024.15561959);
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 { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.OrgMember.disableAllMembers(-29041532.273366228);
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 { Liblab } from './src';
const sdk = new Liblab();
(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 { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Artifact.getArtifacts(56304580.36366731);
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 { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Artifact.getById(-56349476.695539914);
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 { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Artifact.remove(-60301260.918456465);
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 { Liblab } from './src';
const sdk = new Liblab();
(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 { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Sdk.findSdks(49078768.10657278, 64359554.49825665, 41743370.31916773);
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 { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Sdk.getById(61058918.4946945);
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 { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Sdk.remove(-12256502.078421682);
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 { 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);
})();
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 { 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);
})();
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 { Liblab } from './src';
const sdk = new Liblab();
(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 { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Doc.findDocs(41661742.836339325, -43035457.78981403, 26703485.808616415);
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 { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Doc.approve('quis id commodo labore anim');
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 { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Doc.getById(-86620873.41100313);
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 { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Doc.remove(86857110.08107898);
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 { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Doc.update(50011526.01022762);
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 { Liblab } from './src';
const sdk = new Liblab();
(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 { Liblab } from './src';
const sdk = new Liblab();
(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 { Liblab } from './src';
const sdk = new Liblab();
(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 { Liblab } from './src';
const sdk = new Liblab();
(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 { Liblab } from './src';
const sdk = new Liblab();
(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 { Liblab } from './src';
const sdk = new Liblab();
(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 { Liblab } from './src';
const sdk = new Liblab();
(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 { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Auth.verifyEmail();
console.log(result);
})();
resendVerifictionEmail
- HTTP Method: POST
- Endpoint: /auth/resend-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 { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Auth.resendVerifictionEmail();
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 { Liblab } from './src';
const sdk = new Liblab();
(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 { Liblab } from './src';
const sdk = new Liblab();
(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 { Liblab } from './src';
const sdk = new Liblab();
(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 { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.User.getById(-6059471.604780778);
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 { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.User.update(1633979.847291872);
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 { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.User.remove(4641830.906790689);
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 { Liblab } from './src';
const sdk = new Liblab();
(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 { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Token.findByUserId(78968617.59437677);
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 { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Token.getById(67156140.97808796);
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 { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Token.remove(90877217.49216852);
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 { Liblab } from './src';
const sdk = new Liblab();
(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 { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Event.track();
console.log(result);
})();
createInvite
- HTTP Method: POST
- Endpoint: /invitations/{orgId}
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
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);
})();
acceptInvite
- HTTP Method: PATCH
- Endpoint: /invitations/accept/{inviteCode}
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'}
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);
})();
declineInvite
- HTTP Method: PATCH
- Endpoint: /invitations/decline/{inviteCode}
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'}
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);
})();
inviteCode
- HTTP Method: GET
- Endpoint: /invitations/{inviteCode}
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'}
Return Type
InvitationResponse
Example Usage Code Snippet
import { Liblab } from './src';
const sdk = new Liblab();
(async () => {
const result = await sdk.Invitation.inviteCode('ut');
console.log(result);
})();
getInvitesByUser
- HTTP Method: GET
- Endpoint: /invitations
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'}
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);
})();