@ -40,6 +40,16 @@ export interface ApiTokenReqType {
description? : string ;
}
/ * *
* Model for API Token List
* /
export interface ApiTokenListType {
/** @example [{"list":[{"id":"1","fk_user_id":"us_b3xo2i44nx5y9l","description":"This API Token is for ABC application","token":"DYh540o8hbWpUGdarekECKLdN5OhlgCUWutVJYX2"}],"pageInfo":{"isFirstPage":true,"isLastPage":true,"page":1,"pageSize":10,"totalRows":1}}] */
list? : ApiTokenType [ ] ;
/** Model for Paginated */
pageInfo? : PaginatedType ;
}
/ * *
* Model for Attachment
* /
@ -2291,6 +2301,12 @@ export type VisibilityRuleReqType = {
} ;
} [ ] ;
export interface ApiTokenReqCopyType {
list? : ApiTokenType [ ] ;
/** Model for Paginated */
pageInfo? : PaginatedType ;
}
import axios , { AxiosInstance , AxiosRequestConfig , ResponseType } from 'axios' ;
export type QueryParamsType = Record < string | number , any > ;
@ -3032,27 +3048,10 @@ export class Api<
* @name List
* @summary List Organisation Users
* @request GET : / a p i / v 1 / u s e r s
* @response ` 200 ` ` {
users ? : {
list : ( UserType ) [ ] ,
\ * * Model for Paginated * \
pageInfo : PaginatedType ,
} ,
} ` OK
* @response ` 200 ` ` UserListType ` OK
* /
list : ( params : RequestParams = { } ) = >
this . request <
{
users ? : {
list : UserType [ ] ;
/** Model for Paginated */
pageInfo : PaginatedType ;
} ;
} ,
any
> ( {
this . request < UserListType , any > ( {
path : ` /api/v1/users ` ,
method : 'GET' ,
format : 'json' ,
@ -6709,24 +6708,10 @@ export class Api<
* @name List
* @summary List API Tokens in Project
* @request GET : / a p i / v 1 / d b / m e t a / p r o j e c t s / { p r o j e c t I d } / a p i - t o k e n s
* @response ` 200 ` ` {
\ * * List of API Token Models * \
list : ( ApiTokenType ) [ ] ,
\ * * Pagination Info * \
pageInfo : PaginatedType ,
} ` OK
* @response ` 200 ` ` ApiTokenListType ` OK
* /
list : ( projectId : IdType , params : RequestParams = { } ) = >
this . request <
{
/** List of API Token Models */
list : ApiTokenType [ ] ;
/** Pagination Info */
pageInfo : PaginatedType ;
} ,
any
> ( {
this . request < ApiTokenListType , any > ( {
path : ` /api/v1/db/meta/projects/ ${ projectId } /api-tokens ` ,
method : 'GET' ,
format : 'json' ,