@gnosticdev/highlevel-sdk
Version:
SDK for the HighLevel API
136 lines (134 loc) • 3.98 kB
text/typescript
type paths = {
'/workflows/': {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
/**
* Get Workflow
* @description Get Workflow
*/
get: operations['get-workflow'];
put?: never;
post?: never;
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
};
type webhooks = Record<string, never>;
type components = {
schemas: {
BadRequestDTO: {
/** @example Bad Request */
message?: string;
/** @example 400 */
statusCode?: number;
};
GetWorkflowSuccessfulResponseDto: {
workflows?: components['schemas']['WorkflowSchema'][];
};
UnauthorizedDTO: {
/** @example Unauthorized */
error?: string;
/** @example Invalid token: access token is invalid */
message?: string;
/** @example 401 */
statusCode?: number;
};
UnprocessableDTO: {
/** @example Unprocessable Entity */
error?: string;
/** @example [
* "Unprocessable Entity"
* ] */
message?: string[];
/** @example 422 */
statusCode?: number;
};
WorkflowSchema: {
/** @example 2021-05-26T11:33:49.000Z */
createdAt?: string;
/** @example 78559bb3-b920-461e-b010-7b2a2816d2a9 */
id?: string;
/** @example eBG6WapS3v4ZqwA45MTxtYJ */
locationId?: string;
/** @example First Workflow */
name?: string;
/** @example draft */
status?: string;
/** @example 2021-05-26T11:33:49.000Z */
updatedAt?: string;
/** @example 2 */
version?: number;
};
};
responses: never;
parameters: never;
requestBodies: never;
headers: never;
pathItems: never;
};
type $defs = Record<string, never>;
interface operations {
'get-workflow': {
parameters: {
query: {
/** @example ve9EPM428h8vShlRW1KT */
locationId: string;
};
header: {
/** @description Access Token */
Authorization: string;
/** @description API Version */
Version: '2021-07-28';
};
path?: never;
cookie?: never;
};
requestBody?: never;
responses: {
/** @description Successful response */
200: {
headers: {
[name: string]: unknown;
};
content: {
'application/json': components['schemas']['GetWorkflowSuccessfulResponseDto'];
};
};
/** @description Bad Request */
400: {
headers: {
[name: string]: unknown;
};
content: {
'application/json': components['schemas']['BadRequestDTO'];
};
};
/** @description Unauthorized */
401: {
headers: {
[name: string]: unknown;
};
content: {
'application/json': components['schemas']['UnauthorizedDTO'];
};
};
/** @description Unprocessable Entity */
422: {
headers: {
[name: string]: unknown;
};
content: {
'application/json': components['schemas']['UnprocessableDTO'];
};
};
};
};
}
export type { $defs, components, operations, paths, webhooks };