|
|
@ -2478,7 +2478,10 @@ export class Api< |
|
|
|
* @summary Signup |
|
|
|
* @summary Signup |
|
|
|
* @request POST:/api/v1/auth/user/signup |
|
|
|
* @request POST:/api/v1/auth/user/signup |
|
|
|
* @response `200` `{
|
|
|
|
* @response `200` `{
|
|
|
|
\** The signed JWT token for information exchange *\ |
|
|
|
\** |
|
|
|
|
|
|
|
* The signed JWT token for information exchange |
|
|
|
|
|
|
|
* @example eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6IndAbm9jb2RiLmNvbSIsImZpcnN0bmFtZSI6bnVsbCwibGFzdG5hbWUiOm51bGwsImlkIjoidXNfYjN4bzJpNDRueDV5OWwiLCJyb2xlcyI6Im9yZy1sZXZlbC1jcmVhdG9yLHN1cGVyIiwidG9rZW5fdmVyc2lvbiI6ImJmMTc3ZGUzYjk3YjAzMjY4YjU0NGZmMjMzNGU5YjFhMGUzYzgxM2NiYzliOTJkYWMwYmM5NTRiNmUzN2ZjMTJjYmFkNDM2NmIwYzExZTdjIiwiaWF0IjoxNjc4MDc4NDMyLCJleHAiOjE2NzgxMTQ0MzJ9.gzwp_svZlbA5PV_eawYV-9UFjZVjniy-tCDce16xrkI |
|
|
|
|
|
|
|
*\ |
|
|
|
token?: string, |
|
|
|
token?: string, |
|
|
|
|
|
|
|
|
|
|
|
}` OK
|
|
|
|
}` OK
|
|
|
@ -2490,7 +2493,10 @@ export class Api< |
|
|
|
signup: (data: SignUpReqType, params: RequestParams = {}) => |
|
|
|
signup: (data: SignUpReqType, params: RequestParams = {}) => |
|
|
|
this.request< |
|
|
|
this.request< |
|
|
|
{ |
|
|
|
{ |
|
|
|
/** The signed JWT token for information exchange */ |
|
|
|
/** |
|
|
|
|
|
|
|
* The signed JWT token for information exchange |
|
|
|
|
|
|
|
* @example eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6IndAbm9jb2RiLmNvbSIsImZpcnN0bmFtZSI6bnVsbCwibGFzdG5hbWUiOm51bGwsImlkIjoidXNfYjN4bzJpNDRueDV5OWwiLCJyb2xlcyI6Im9yZy1sZXZlbC1jcmVhdG9yLHN1cGVyIiwidG9rZW5fdmVyc2lvbiI6ImJmMTc3ZGUzYjk3YjAzMjY4YjU0NGZmMjMzNGU5YjFhMGUzYzgxM2NiYzliOTJkYWMwYmM5NTRiNmUzN2ZjMTJjYmFkNDM2NmIwYzExZTdjIiwiaWF0IjoxNjc4MDc4NDMyLCJleHAiOjE2NzgxMTQ0MzJ9.gzwp_svZlbA5PV_eawYV-9UFjZVjniy-tCDce16xrkI |
|
|
|
|
|
|
|
*/ |
|
|
|
token?: string; |
|
|
|
token?: string; |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
@ -2513,7 +2519,10 @@ export class Api< |
|
|
|
* @summary Signout |
|
|
|
* @summary Signout |
|
|
|
* @request POST:/api/v1/auth/user/signout |
|
|
|
* @request POST:/api/v1/auth/user/signout |
|
|
|
* @response `200` `{
|
|
|
|
* @response `200` `{
|
|
|
|
\** Success Message *\ |
|
|
|
\** |
|
|
|
|
|
|
|
* Success Message |
|
|
|
|
|
|
|
* @example Signed out successfully |
|
|
|
|
|
|
|
*\ |
|
|
|
msg?: string, |
|
|
|
msg?: string, |
|
|
|
|
|
|
|
|
|
|
|
}` OK
|
|
|
|
}` OK
|
|
|
@ -2526,7 +2535,10 @@ export class Api< |
|
|
|
signout: (params: RequestParams = {}) => |
|
|
|
signout: (params: RequestParams = {}) => |
|
|
|
this.request< |
|
|
|
this.request< |
|
|
|
{ |
|
|
|
{ |
|
|
|
/** Success Message */ |
|
|
|
/** |
|
|
|
|
|
|
|
* Success Message |
|
|
|
|
|
|
|
* @example Signed out successfully |
|
|
|
|
|
|
|
*/ |
|
|
|
msg?: string; |
|
|
|
msg?: string; |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
@ -2548,7 +2560,10 @@ export class Api< |
|
|
|
* @summary Signin |
|
|
|
* @summary Signin |
|
|
|
* @request POST:/api/v1/auth/user/signin |
|
|
|
* @request POST:/api/v1/auth/user/signin |
|
|
|
* @response `200` `{
|
|
|
|
* @response `200` `{
|
|
|
|
\** The signed JWT token for information exchange *\ |
|
|
|
\** |
|
|
|
|
|
|
|
* The signed JWT token for information exchange |
|
|
|
|
|
|
|
* @example eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6IndAbm9jb2RiLmNvbSIsImZpcnN0bmFtZSI6bnVsbCwibGFzdG5hbWUiOm51bGwsImlkIjoidXNfYjN4bzJpNDRueDV5OWwiLCJyb2xlcyI6Im9yZy1sZXZlbC1jcmVhdG9yLHN1cGVyIiwidG9rZW5fdmVyc2lvbiI6ImJmMTc3ZGUzYjk3YjAzMjY4YjU0NGZmMjMzNGU5YjFhMGUzYzgxM2NiYzliOTJkYWMwYmM5NTRiNmUzN2ZjMTJjYmFkNDM2NmIwYzExZTdjIiwiaWF0IjoxNjc4MDc4NDMyLCJleHAiOjE2NzgxMTQ0MzJ9.gzwp_svZlbA5PV_eawYV-9UFjZVjniy-tCDce16xrkI |
|
|
|
|
|
|
|
*\ |
|
|
|
token?: string, |
|
|
|
token?: string, |
|
|
|
|
|
|
|
|
|
|
|
}` OK
|
|
|
|
}` OK
|
|
|
@ -2561,7 +2576,10 @@ export class Api< |
|
|
|
signin: (data: SignInReqType, params: RequestParams = {}) => |
|
|
|
signin: (data: SignInReqType, params: RequestParams = {}) => |
|
|
|
this.request< |
|
|
|
this.request< |
|
|
|
{ |
|
|
|
{ |
|
|
|
/** The signed JWT token for information exchange */ |
|
|
|
/** |
|
|
|
|
|
|
|
* The signed JWT token for information exchange |
|
|
|
|
|
|
|
* @example eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6IndAbm9jb2RiLmNvbSIsImZpcnN0bmFtZSI6bnVsbCwibGFzdG5hbWUiOm51bGwsImlkIjoidXNfYjN4bzJpNDRueDV5OWwiLCJyb2xlcyI6Im9yZy1sZXZlbC1jcmVhdG9yLHN1cGVyIiwidG9rZW5fdmVyc2lvbiI6ImJmMTc3ZGUzYjk3YjAzMjY4YjU0NGZmMjMzNGU5YjFhMGUzYzgxM2NiYzliOTJkYWMwYmM5NTRiNmUzN2ZjMTJjYmFkNDM2NmIwYzExZTdjIiwiaWF0IjoxNjc4MDc4NDMyLCJleHAiOjE2NzgxMTQ0MzJ9.gzwp_svZlbA5PV_eawYV-9UFjZVjniy-tCDce16xrkI |
|
|
|
|
|
|
|
*/ |
|
|
|
token?: string; |
|
|
|
token?: string; |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
@ -2619,7 +2637,14 @@ export class Api< |
|
|
|
* @name PasswordForgot |
|
|
|
* @name PasswordForgot |
|
|
|
* @summary Forget Password |
|
|
|
* @summary Forget Password |
|
|
|
* @request POST:/api/v1/auth/password/forgot |
|
|
|
* @request POST:/api/v1/auth/password/forgot |
|
|
|
* @response `200` `void` OK |
|
|
|
* @response `200` `{
|
|
|
|
|
|
|
|
\** |
|
|
|
|
|
|
|
* Success Message |
|
|
|
|
|
|
|
* @example Please check your email to reset the password |
|
|
|
|
|
|
|
*\ |
|
|
|
|
|
|
|
msg?: string, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}` OK
|
|
|
|
* @response `400` `{
|
|
|
|
* @response `400` `{
|
|
|
|
\** @example BadRequest [Error]: <ERROR MESSAGE> *\ |
|
|
|
\** @example BadRequest [Error]: <ERROR MESSAGE> *\ |
|
|
|
msg?: string, |
|
|
|
msg?: string, |
|
|
@ -2628,7 +2653,13 @@ export class Api< |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
passwordForgot: (data: PasswordForgotReqType, params: RequestParams = {}) => |
|
|
|
passwordForgot: (data: PasswordForgotReqType, params: RequestParams = {}) => |
|
|
|
this.request< |
|
|
|
this.request< |
|
|
|
void, |
|
|
|
{ |
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* Success Message |
|
|
|
|
|
|
|
* @example Please check your email to reset the password |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
msg?: string; |
|
|
|
|
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
/** @example BadRequest [Error]: <ERROR MESSAGE> */ |
|
|
|
/** @example BadRequest [Error]: <ERROR MESSAGE> */ |
|
|
|
msg?: string; |
|
|
|
msg?: string; |
|
|
@ -2638,6 +2669,7 @@ export class Api< |
|
|
|
method: 'POST', |
|
|
|
method: 'POST', |
|
|
|
body: data, |
|
|
|
body: data, |
|
|
|
type: ContentType.Json, |
|
|
|
type: ContentType.Json, |
|
|
|
|
|
|
|
format: 'json', |
|
|
|
...params, |
|
|
|
...params, |
|
|
|
}), |
|
|
|
}), |
|
|
|
|
|
|
|
|
|
|
@ -2685,7 +2717,14 @@ export class Api< |
|
|
|
* @name PasswordResetTokenValidate |
|
|
|
* @name PasswordResetTokenValidate |
|
|
|
* @summary Verify Reset Token |
|
|
|
* @summary Verify Reset Token |
|
|
|
* @request POST:/api/v1/auth/token/validate/{token} |
|
|
|
* @request POST:/api/v1/auth/token/validate/{token} |
|
|
|
* @response `200` `void` OK |
|
|
|
* @response `200` `{
|
|
|
|
|
|
|
|
\** |
|
|
|
|
|
|
|
* Success Message |
|
|
|
|
|
|
|
* @example Token has been validated successfully |
|
|
|
|
|
|
|
*\ |
|
|
|
|
|
|
|
msg?: string, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}` OK
|
|
|
|
* @response `400` `{
|
|
|
|
* @response `400` `{
|
|
|
|
\** @example BadRequest [Error]: <ERROR MESSAGE> *\ |
|
|
|
\** @example BadRequest [Error]: <ERROR MESSAGE> *\ |
|
|
|
msg?: string, |
|
|
|
msg?: string, |
|
|
@ -2694,7 +2733,13 @@ export class Api< |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
passwordResetTokenValidate: (token: string, params: RequestParams = {}) => |
|
|
|
passwordResetTokenValidate: (token: string, params: RequestParams = {}) => |
|
|
|
this.request< |
|
|
|
this.request< |
|
|
|
void, |
|
|
|
{ |
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* Success Message |
|
|
|
|
|
|
|
* @example Token has been validated successfully |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
msg?: string; |
|
|
|
|
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
/** @example BadRequest [Error]: <ERROR MESSAGE> */ |
|
|
|
/** @example BadRequest [Error]: <ERROR MESSAGE> */ |
|
|
|
msg?: string; |
|
|
|
msg?: string; |
|
|
@ -2702,6 +2747,7 @@ export class Api< |
|
|
|
>({ |
|
|
|
>({ |
|
|
|
path: `/api/v1/auth/token/validate/${token}`, |
|
|
|
path: `/api/v1/auth/token/validate/${token}`, |
|
|
|
method: 'POST', |
|
|
|
method: 'POST', |
|
|
|
|
|
|
|
format: 'json', |
|
|
|
...params, |
|
|
|
...params, |
|
|
|
}), |
|
|
|
}), |
|
|
|
|
|
|
|
|
|
|
@ -2712,7 +2758,14 @@ export class Api< |
|
|
|
* @name EmailValidate |
|
|
|
* @name EmailValidate |
|
|
|
* @summary Verify Email |
|
|
|
* @summary Verify Email |
|
|
|
* @request POST:/api/v1/auth/email/validate/{token} |
|
|
|
* @request POST:/api/v1/auth/email/validate/{token} |
|
|
|
* @response `200` `void` OK |
|
|
|
* @response `200` `{
|
|
|
|
|
|
|
|
\** |
|
|
|
|
|
|
|
* Success Message |
|
|
|
|
|
|
|
* @example Email has been verified successfully |
|
|
|
|
|
|
|
*\ |
|
|
|
|
|
|
|
msg?: string, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}` OK
|
|
|
|
* @response `400` `{
|
|
|
|
* @response `400` `{
|
|
|
|
\** @example BadRequest [Error]: <ERROR MESSAGE> *\ |
|
|
|
\** @example BadRequest [Error]: <ERROR MESSAGE> *\ |
|
|
|
msg?: string, |
|
|
|
msg?: string, |
|
|
@ -2721,7 +2774,13 @@ export class Api< |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
emailValidate: (token: string, params: RequestParams = {}) => |
|
|
|
emailValidate: (token: string, params: RequestParams = {}) => |
|
|
|
this.request< |
|
|
|
this.request< |
|
|
|
void, |
|
|
|
{ |
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* Success Message |
|
|
|
|
|
|
|
* @example Email has been verified successfully |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
msg?: string; |
|
|
|
|
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
/** @example BadRequest [Error]: <ERROR MESSAGE> */ |
|
|
|
/** @example BadRequest [Error]: <ERROR MESSAGE> */ |
|
|
|
msg?: string; |
|
|
|
msg?: string; |
|
|
@ -2729,6 +2788,7 @@ export class Api< |
|
|
|
>({ |
|
|
|
>({ |
|
|
|
path: `/api/v1/auth/email/validate/${token}`, |
|
|
|
path: `/api/v1/auth/email/validate/${token}`, |
|
|
|
method: 'POST', |
|
|
|
method: 'POST', |
|
|
|
|
|
|
|
format: 'json', |
|
|
|
...params, |
|
|
|
...params, |
|
|
|
}), |
|
|
|
}), |
|
|
|
|
|
|
|
|
|
|
@ -2739,7 +2799,14 @@ export class Api< |
|
|
|
* @name PasswordReset |
|
|
|
* @name PasswordReset |
|
|
|
* @summary Reset Password |
|
|
|
* @summary Reset Password |
|
|
|
* @request POST:/api/v1/auth/password/reset/{token} |
|
|
|
* @request POST:/api/v1/auth/password/reset/{token} |
|
|
|
* @response `200` `void` OK |
|
|
|
* @response `200` `{
|
|
|
|
|
|
|
|
\** |
|
|
|
|
|
|
|
* Success Message |
|
|
|
|
|
|
|
* @example Password has been reset successfully |
|
|
|
|
|
|
|
*\ |
|
|
|
|
|
|
|
msg?: string, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}` OK
|
|
|
|
* @response `400` `{
|
|
|
|
* @response `400` `{
|
|
|
|
\** @example BadRequest [Error]: <ERROR MESSAGE> *\ |
|
|
|
\** @example BadRequest [Error]: <ERROR MESSAGE> *\ |
|
|
|
msg?: string, |
|
|
|
msg?: string, |
|
|
@ -2752,7 +2819,13 @@ export class Api< |
|
|
|
params: RequestParams = {} |
|
|
|
params: RequestParams = {} |
|
|
|
) => |
|
|
|
) => |
|
|
|
this.request< |
|
|
|
this.request< |
|
|
|
void, |
|
|
|
{ |
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* Success Message |
|
|
|
|
|
|
|
* @example Password has been reset successfully |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
msg?: string; |
|
|
|
|
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
/** @example BadRequest [Error]: <ERROR MESSAGE> */ |
|
|
|
/** @example BadRequest [Error]: <ERROR MESSAGE> */ |
|
|
|
msg?: string; |
|
|
|
msg?: string; |
|
|
@ -2762,6 +2835,7 @@ export class Api< |
|
|
|
method: 'POST', |
|
|
|
method: 'POST', |
|
|
|
body: data, |
|
|
|
body: data, |
|
|
|
type: ContentType.Json, |
|
|
|
type: ContentType.Json, |
|
|
|
|
|
|
|
format: 'json', |
|
|
|
...params, |
|
|
|
...params, |
|
|
|
}), |
|
|
|
}), |
|
|
|
|
|
|
|
|
|
|
@ -2773,7 +2847,10 @@ export class Api< |
|
|
|
* @summary Refresh Token |
|
|
|
* @summary Refresh Token |
|
|
|
* @request POST:/api/v1/auth/token/refresh |
|
|
|
* @request POST:/api/v1/auth/token/refresh |
|
|
|
* @response `200` `{
|
|
|
|
* @response `200` `{
|
|
|
|
\** New access token for user *\ |
|
|
|
\** |
|
|
|
|
|
|
|
* New access token for user |
|
|
|
|
|
|
|
* @example 96751db2d53fb834382b682268874a2ea9ee610e4d904e688d1513f11d3c30d62d36d9e05dec0d63 |
|
|
|
|
|
|
|
*\ |
|
|
|
token?: string, |
|
|
|
token?: string, |
|
|
|
|
|
|
|
|
|
|
|
}` OK
|
|
|
|
}` OK
|
|
|
@ -2786,7 +2863,10 @@ export class Api< |
|
|
|
tokenRefresh: (params: RequestParams = {}) => |
|
|
|
tokenRefresh: (params: RequestParams = {}) => |
|
|
|
this.request< |
|
|
|
this.request< |
|
|
|
{ |
|
|
|
{ |
|
|
|
/** New access token for user */ |
|
|
|
/** |
|
|
|
|
|
|
|
* New access token for user |
|
|
|
|
|
|
|
* @example 96751db2d53fb834382b682268874a2ea9ee610e4d904e688d1513f11d3c30d62d36d9e05dec0d63 |
|
|
|
|
|
|
|
*/ |
|
|
|
token?: string; |
|
|
|
token?: string; |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
@ -2849,7 +2929,14 @@ export class Api< |
|
|
|
* @name ProjectUserAdd |
|
|
|
* @name ProjectUserAdd |
|
|
|
* @summary Create Project User |
|
|
|
* @summary Create Project User |
|
|
|
* @request POST:/api/v1/db/meta/projects/{projectId}/users |
|
|
|
* @request POST:/api/v1/db/meta/projects/{projectId}/users |
|
|
|
* @response `200` `any` OK |
|
|
|
* @response `200` `{
|
|
|
|
|
|
|
|
\** |
|
|
|
|
|
|
|
* Success Message |
|
|
|
|
|
|
|
* @example The user has been invited successfully |
|
|
|
|
|
|
|
*\ |
|
|
|
|
|
|
|
msg?: string, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}` OK
|
|
|
|
* @response `400` `{
|
|
|
|
* @response `400` `{
|
|
|
|
\** @example BadRequest [Error]: <ERROR MESSAGE> *\ |
|
|
|
\** @example BadRequest [Error]: <ERROR MESSAGE> *\ |
|
|
|
msg?: string, |
|
|
|
msg?: string, |
|
|
@ -2862,7 +2949,13 @@ export class Api< |
|
|
|
params: RequestParams = {} |
|
|
|
params: RequestParams = {} |
|
|
|
) => |
|
|
|
) => |
|
|
|
this.request< |
|
|
|
this.request< |
|
|
|
any, |
|
|
|
{ |
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* Success Message |
|
|
|
|
|
|
|
* @example The user has been invited successfully |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
msg?: string; |
|
|
|
|
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
/** @example BadRequest [Error]: <ERROR MESSAGE> */ |
|
|
|
/** @example BadRequest [Error]: <ERROR MESSAGE> */ |
|
|
|
msg?: string; |
|
|
|
msg?: string; |
|
|
@ -2883,7 +2976,14 @@ export class Api< |
|
|
|
* @name ProjectUserUpdate |
|
|
|
* @name ProjectUserUpdate |
|
|
|
* @summary Update Project User |
|
|
|
* @summary Update Project User |
|
|
|
* @request PATCH:/api/v1/db/meta/projects/{projectId}/users/{userId} |
|
|
|
* @request PATCH:/api/v1/db/meta/projects/{projectId}/users/{userId} |
|
|
|
* @response `200` `any` OK |
|
|
|
* @response `200` `{
|
|
|
|
|
|
|
|
\** |
|
|
|
|
|
|
|
* Success Message |
|
|
|
|
|
|
|
* @example The user has been updated successfully |
|
|
|
|
|
|
|
*\ |
|
|
|
|
|
|
|
msg?: string, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}` OK
|
|
|
|
* @response `400` `{
|
|
|
|
* @response `400` `{
|
|
|
|
\** @example BadRequest [Error]: <ERROR MESSAGE> *\ |
|
|
|
\** @example BadRequest [Error]: <ERROR MESSAGE> *\ |
|
|
|
msg?: string, |
|
|
|
msg?: string, |
|
|
@ -2897,7 +2997,13 @@ export class Api< |
|
|
|
params: RequestParams = {} |
|
|
|
params: RequestParams = {} |
|
|
|
) => |
|
|
|
) => |
|
|
|
this.request< |
|
|
|
this.request< |
|
|
|
any, |
|
|
|
{ |
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* Success Message |
|
|
|
|
|
|
|
* @example The user has been updated successfully |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
msg?: string; |
|
|
|
|
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
/** @example BadRequest [Error]: <ERROR MESSAGE> */ |
|
|
|
/** @example BadRequest [Error]: <ERROR MESSAGE> */ |
|
|
|
msg?: string; |
|
|
|
msg?: string; |
|
|
@ -2918,7 +3024,14 @@ export class Api< |
|
|
|
* @name ProjectUserRemove |
|
|
|
* @name ProjectUserRemove |
|
|
|
* @summary Delete Project User |
|
|
|
* @summary Delete Project User |
|
|
|
* @request DELETE:/api/v1/db/meta/projects/{projectId}/users/{userId} |
|
|
|
* @request DELETE:/api/v1/db/meta/projects/{projectId}/users/{userId} |
|
|
|
* @response `200` `any` OK |
|
|
|
* @response `200` `{
|
|
|
|
|
|
|
|
\** |
|
|
|
|
|
|
|
* Success Message |
|
|
|
|
|
|
|
* @example The user has been updated successfully |
|
|
|
|
|
|
|
*\ |
|
|
|
|
|
|
|
msg?: string, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}` OK
|
|
|
|
* @response `400` `{
|
|
|
|
* @response `400` `{
|
|
|
|
\** @example BadRequest [Error]: <ERROR MESSAGE> *\ |
|
|
|
\** @example BadRequest [Error]: <ERROR MESSAGE> *\ |
|
|
|
msg?: string, |
|
|
|
msg?: string, |
|
|
@ -2931,7 +3044,13 @@ export class Api< |
|
|
|
params: RequestParams = {} |
|
|
|
params: RequestParams = {} |
|
|
|
) => |
|
|
|
) => |
|
|
|
this.request< |
|
|
|
this.request< |
|
|
|
any, |
|
|
|
{ |
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* Success Message |
|
|
|
|
|
|
|
* @example The user has been updated successfully |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
msg?: string; |
|
|
|
|
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
/** @example BadRequest [Error]: <ERROR MESSAGE> */ |
|
|
|
/** @example BadRequest [Error]: <ERROR MESSAGE> */ |
|
|
|
msg?: string; |
|
|
|
msg?: string; |
|
|
@ -2950,7 +3069,14 @@ export class Api< |
|
|
|
* @name ProjectUserResendInvite |
|
|
|
* @name ProjectUserResendInvite |
|
|
|
* @summary Resend User Invitation |
|
|
|
* @summary Resend User Invitation |
|
|
|
* @request POST:/api/v1/db/meta/projects/{projectId}/users/{userId}/resend-invite |
|
|
|
* @request POST:/api/v1/db/meta/projects/{projectId}/users/{userId}/resend-invite |
|
|
|
* @response `200` `any` OK |
|
|
|
* @response `200` `{
|
|
|
|
|
|
|
|
\** |
|
|
|
|
|
|
|
* Success Message |
|
|
|
|
|
|
|
* @example The invitation has been sent to the user |
|
|
|
|
|
|
|
*\ |
|
|
|
|
|
|
|
msg?: string, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}` OK
|
|
|
|
* @response `400` `{
|
|
|
|
* @response `400` `{
|
|
|
|
\** @example BadRequest [Error]: <ERROR MESSAGE> *\ |
|
|
|
\** @example BadRequest [Error]: <ERROR MESSAGE> *\ |
|
|
|
msg?: string, |
|
|
|
msg?: string, |
|
|
@ -2963,7 +3089,13 @@ export class Api< |
|
|
|
params: RequestParams = {} |
|
|
|
params: RequestParams = {} |
|
|
|
) => |
|
|
|
) => |
|
|
|
this.request< |
|
|
|
this.request< |
|
|
|
any, |
|
|
|
{ |
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* Success Message |
|
|
|
|
|
|
|
* @example The invitation has been sent to the user |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
msg?: string; |
|
|
|
|
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
/** @example BadRequest [Error]: <ERROR MESSAGE> */ |
|
|
|
/** @example BadRequest [Error]: <ERROR MESSAGE> */ |
|
|
|
msg?: string; |
|
|
|
msg?: string; |
|
|
@ -2983,18 +3115,7 @@ export class Api< |
|
|
|
* @name List |
|
|
|
* @name List |
|
|
|
* @summary List Organisation API Tokens |
|
|
|
* @summary List Organisation API Tokens |
|
|
|
* @request GET:/api/v1/tokens |
|
|
|
* @request GET:/api/v1/tokens |
|
|
|
* @response `200` `{
|
|
|
|
* @response `200` `ApiTokenListType` OK |
|
|
|
users?: { |
|
|
|
|
|
|
|
list: ((ApiTokenType & { |
|
|
|
|
|
|
|
created_by?: string, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}))[], |
|
|
|
|
|
|
|
\** Model for Paginated *\ |
|
|
|
|
|
|
|
pageInfo: PaginatedType, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}` OK
|
|
|
|
|
|
|
|
* @response `400` `{
|
|
|
|
* @response `400` `{
|
|
|
|
\** @example BadRequest [Error]: <ERROR MESSAGE> *\ |
|
|
|
\** @example BadRequest [Error]: <ERROR MESSAGE> *\ |
|
|
|
msg?: string, |
|
|
|
msg?: string, |
|
|
@ -3003,15 +3124,7 @@ export class Api< |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
list: (params: RequestParams = {}) => |
|
|
|
list: (params: RequestParams = {}) => |
|
|
|
this.request< |
|
|
|
this.request< |
|
|
|
{ |
|
|
|
ApiTokenListType, |
|
|
|
users?: { |
|
|
|
|
|
|
|
list: (ApiTokenType & { |
|
|
|
|
|
|
|
created_by?: string; |
|
|
|
|
|
|
|
})[]; |
|
|
|
|
|
|
|
/** Model for Paginated */ |
|
|
|
|
|
|
|
pageInfo: PaginatedType; |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
{ |
|
|
|
/** @example BadRequest [Error]: <ERROR MESSAGE> */ |
|
|
|
/** @example BadRequest [Error]: <ERROR MESSAGE> */ |
|
|
|
msg?: string; |
|
|
|
msg?: string; |
|
|
@ -3059,7 +3172,7 @@ export class Api< |
|
|
|
* @name Delete |
|
|
|
* @name Delete |
|
|
|
* @summary Delete Organisation API Tokens |
|
|
|
* @summary Delete Organisation API Tokens |
|
|
|
* @request DELETE:/api/v1/tokens/{token} |
|
|
|
* @request DELETE:/api/v1/tokens/{token} |
|
|
|
* @response `200` `void` OK |
|
|
|
* @response `200` `number` OK |
|
|
|
* @response `400` `{
|
|
|
|
* @response `400` `{
|
|
|
|
\** @example BadRequest [Error]: <ERROR MESSAGE> *\ |
|
|
|
\** @example BadRequest [Error]: <ERROR MESSAGE> *\ |
|
|
|
msg?: string, |
|
|
|
msg?: string, |
|
|
@ -3068,7 +3181,7 @@ export class Api< |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
delete: (token: string, params: RequestParams = {}) => |
|
|
|
delete: (token: string, params: RequestParams = {}) => |
|
|
|
this.request< |
|
|
|
this.request< |
|
|
|
void, |
|
|
|
number, |
|
|
|
{ |
|
|
|
{ |
|
|
|
/** @example BadRequest [Error]: <ERROR MESSAGE> */ |
|
|
|
/** @example BadRequest [Error]: <ERROR MESSAGE> */ |
|
|
|
msg?: string; |
|
|
|
msg?: string; |
|
|
@ -3076,6 +3189,7 @@ export class Api< |
|
|
|
>({ |
|
|
|
>({ |
|
|
|
path: `/api/v1/tokens/${token}`, |
|
|
|
path: `/api/v1/tokens/${token}`, |
|
|
|
method: 'DELETE', |
|
|
|
method: 'DELETE', |
|
|
|
|
|
|
|
format: 'json', |
|
|
|
...params, |
|
|
|
...params, |
|
|
|
}), |
|
|
|
}), |
|
|
|
}; |
|
|
|
}; |
|
|
@ -3290,7 +3404,11 @@ export class Api< |
|
|
|
* @name Update |
|
|
|
* @name Update |
|
|
|
* @summary Update Organisation User |
|
|
|
* @summary Update Organisation User |
|
|
|
* @request PATCH:/api/v1/users/{userId} |
|
|
|
* @request PATCH:/api/v1/users/{userId} |
|
|
|
* @response `200` `void` OK |
|
|
|
* @response `200` `{
|
|
|
|
|
|
|
|
\** @example The user has been updated successfully *\ |
|
|
|
|
|
|
|
msg?: string, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}` OK
|
|
|
|
* @response `400` `{
|
|
|
|
* @response `400` `{
|
|
|
|
\** @example BadRequest [Error]: <ERROR MESSAGE> *\ |
|
|
|
\** @example BadRequest [Error]: <ERROR MESSAGE> *\ |
|
|
|
msg?: string, |
|
|
|
msg?: string, |
|
|
@ -3303,7 +3421,10 @@ export class Api< |
|
|
|
params: RequestParams = {} |
|
|
|
params: RequestParams = {} |
|
|
|
) => |
|
|
|
) => |
|
|
|
this.request< |
|
|
|
this.request< |
|
|
|
void, |
|
|
|
{ |
|
|
|
|
|
|
|
/** @example The user has been updated successfully */ |
|
|
|
|
|
|
|
msg?: string; |
|
|
|
|
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
/** @example BadRequest [Error]: <ERROR MESSAGE> */ |
|
|
|
/** @example BadRequest [Error]: <ERROR MESSAGE> */ |
|
|
|
msg?: string; |
|
|
|
msg?: string; |
|
|
@ -3313,6 +3434,7 @@ export class Api< |
|
|
|
method: 'PATCH', |
|
|
|
method: 'PATCH', |
|
|
|
body: data, |
|
|
|
body: data, |
|
|
|
type: ContentType.Json, |
|
|
|
type: ContentType.Json, |
|
|
|
|
|
|
|
format: 'json', |
|
|
|
...params, |
|
|
|
...params, |
|
|
|
}), |
|
|
|
}), |
|
|
|
|
|
|
|
|
|
|
@ -3323,7 +3445,14 @@ export class Api< |
|
|
|
* @name Delete |
|
|
|
* @name Delete |
|
|
|
* @summary Delete Organisation User |
|
|
|
* @summary Delete Organisation User |
|
|
|
* @request DELETE:/api/v1/users/{userId} |
|
|
|
* @request DELETE:/api/v1/users/{userId} |
|
|
|
* @response `200` `void` OK |
|
|
|
* @response `200` `{
|
|
|
|
|
|
|
|
\** |
|
|
|
|
|
|
|
* Sucess Message |
|
|
|
|
|
|
|
* @example The user has been deleted successfully |
|
|
|
|
|
|
|
*\ |
|
|
|
|
|
|
|
msg?: string, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}` OK
|
|
|
|
* @response `400` `{
|
|
|
|
* @response `400` `{
|
|
|
|
\** @example BadRequest [Error]: <ERROR MESSAGE> *\ |
|
|
|
\** @example BadRequest [Error]: <ERROR MESSAGE> *\ |
|
|
|
msg?: string, |
|
|
|
msg?: string, |
|
|
@ -3332,7 +3461,13 @@ export class Api< |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
delete: (userId: IdType, params: RequestParams = {}) => |
|
|
|
delete: (userId: IdType, params: RequestParams = {}) => |
|
|
|
this.request< |
|
|
|
this.request< |
|
|
|
void, |
|
|
|
{ |
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* Sucess Message |
|
|
|
|
|
|
|
* @example The user has been deleted successfully |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
msg?: string; |
|
|
|
|
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
/** @example BadRequest [Error]: <ERROR MESSAGE> */ |
|
|
|
/** @example BadRequest [Error]: <ERROR MESSAGE> */ |
|
|
|
msg?: string; |
|
|
|
msg?: string; |
|
|
@ -3340,6 +3475,7 @@ export class Api< |
|
|
|
>({ |
|
|
|
>({ |
|
|
|
path: `/api/v1/users/${userId}`, |
|
|
|
path: `/api/v1/users/${userId}`, |
|
|
|
method: 'DELETE', |
|
|
|
method: 'DELETE', |
|
|
|
|
|
|
|
format: 'json', |
|
|
|
...params, |
|
|
|
...params, |
|
|
|
}), |
|
|
|
}), |
|
|
|
|
|
|
|
|
|
|
@ -3350,7 +3486,14 @@ export class Api< |
|
|
|
* @name ResendInvite |
|
|
|
* @name ResendInvite |
|
|
|
* @summary Invite Organisation User |
|
|
|
* @summary Invite Organisation User |
|
|
|
* @request POST:/api/v1/users/{userId}/resend-invite |
|
|
|
* @request POST:/api/v1/users/{userId}/resend-invite |
|
|
|
* @response `200` `void` OK |
|
|
|
* @response `200` `{
|
|
|
|
|
|
|
|
\** |
|
|
|
|
|
|
|
* Success Message |
|
|
|
|
|
|
|
* @example The invitation has been sent to the target user |
|
|
|
|
|
|
|
*\ |
|
|
|
|
|
|
|
msg?: string, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}` OK
|
|
|
|
* @response `400` `{
|
|
|
|
* @response `400` `{
|
|
|
|
\** @example BadRequest [Error]: <ERROR MESSAGE> *\ |
|
|
|
\** @example BadRequest [Error]: <ERROR MESSAGE> *\ |
|
|
|
msg?: string, |
|
|
|
msg?: string, |
|
|
@ -3359,7 +3502,13 @@ export class Api< |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
resendInvite: (userId: IdType, params: RequestParams = {}) => |
|
|
|
resendInvite: (userId: IdType, params: RequestParams = {}) => |
|
|
|
this.request< |
|
|
|
this.request< |
|
|
|
void, |
|
|
|
{ |
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* Success Message |
|
|
|
|
|
|
|
* @example The invitation has been sent to the target user |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
msg?: string; |
|
|
|
|
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
/** @example BadRequest [Error]: <ERROR MESSAGE> */ |
|
|
|
/** @example BadRequest [Error]: <ERROR MESSAGE> */ |
|
|
|
msg?: string; |
|
|
|
msg?: string; |
|
|
@ -3367,6 +3516,7 @@ export class Api< |
|
|
|
>({ |
|
|
|
>({ |
|
|
|
path: `/api/v1/users/${userId}/resend-invite`, |
|
|
|
path: `/api/v1/users/${userId}/resend-invite`, |
|
|
|
method: 'POST', |
|
|
|
method: 'POST', |
|
|
|
|
|
|
|
format: 'json', |
|
|
|
...params, |
|
|
|
...params, |
|
|
|
}), |
|
|
|
}), |
|
|
|
|
|
|
|
|
|
|
|