@shinkashi/insight-sdk
Version:
Solution Insight SDK for JavaScript
247 lines • 5.51 kB
TypeScript
export declare type InsightCredential = {
url: string;
apiKey: string;
apiSecret: string;
headers: {
[header: string]: string;
};
};
export declare type GlobalCustomer = {
id: string;
name: string;
};
export declare type Customer = {
id: string;
name: string;
};
export declare type User = {
id: string;
login: string;
name: string;
email: string;
is_deleted: boolean;
issue_credentials?: boolean;
reset_password?: boolean;
groups?: string[];
};
export declare type Group = {
id: string;
users?: string[];
name: string;
is_deleted?: boolean;
};
export declare type PolicyEffect = 'Allow' | 'Deny';
export declare type PolicyAction = 'Read' | 'Create' | 'Update' | 'Delete';
export declare type PolicyResource = string[];
export declare type PolicyFilter = {
[FilterKey: string]: any;
};
export declare type PolicyStatement = {
Sid?: string;
Action?: PolicyAction[];
Effect: PolicyEffect;
Resource: PolicyResource;
Filters?: PolicyFilter[];
};
export declare type PolicyDocument = {
Statement: PolicyStatement[];
};
export declare type Policy = {
id: string;
name: string;
description: string;
document: PolicyDocument;
};
export declare type Application = {
id: string;
name: string;
metadata: ResourceMetadataKeyValueFlat[];
resources: string[];
};
export declare type ACMPEnv = {
[key: string]: string;
};
export declare type ResourceMetadataKeyValue = {
[key: string]: string | object;
};
export declare type ResourceMetadata = {
[namespace: string]: ResourceMetadataKeyValue;
};
export declare type ResourceMetadataKeyValueFlat = {
value_type: "text";
value: string;
key: string;
} | {
value_type: "json";
value: object;
key: string;
};
export declare type Resource = {
id: string;
name: string;
};
export declare type ServiceDef = {
id: string;
name: string;
description: string;
approval_plan_id: string;
actions: OrderActions;
};
export declare type OrderActionNflex = {
command: "run_nflex";
nflex_module_id: string;
};
export declare type OrderActions = {
create_order: OrderActionNflex;
approve_order?: OrderActionNflex;
complete_order?: OrderActionNflex;
};
export declare type ApprovalPlan = {
id: string;
name: string;
description: string;
steps: ApprovalStep[];
};
export declare type ApprovalStep = {
condition: "any" | "all";
users: string[];
};
export declare type AuditHistory = {
entity_id: string;
entity_type: string;
summary: string;
};
export declare type NflexModule = {
id: string;
name: string;
description?: string;
language: "python" | "python3" | "javascript";
file_type: "inline" | "zip" | "github";
schedule?: string;
source_code?: string;
};
export declare type QueryRequestItem = {
key: string;
modifier: "exact" | "regex" | "null" | "empty" | "gt" | "lt";
not?: boolean;
values?: string[];
};
export declare type QueryRequest = {
queries?: QueryRequestItem[];
attributes?: string[];
aggregations?: {
attribute: string;
name: string;
type: string;
}[];
group_by_attributes?: string[];
page?: number;
per_page?: number;
sort?: {
direction: "asc" | "desc";
key: string;
}[];
};
export declare type QueryResponseItem = {
account: {
id: string;
name: string;
};
base: {
name: string;
remote_id: string;
};
connetions: any;
details: any;
id: string;
metadata: {
[namespace: string]: {
[key: string]: string;
};
};
provider: {
id: string;
name: string;
};
tags: string[];
type: string;
};
export declare type QueryResponse = {
items: QueryResponseItem[];
page: number;
per_page: number;
total_count: number;
};
export declare type TicketOverview = {
configuration_items: string[];
impact: string;
urgency: string;
category: string;
summary: string;
ticket_number: string;
last_updated: string;
last_update_at: string;
created: string;
};
export declare type TicketOverviewResponse = {
page: number;
total_count: number;
objects: TicketOverview[];
};
export declare type Dashboard = {
id: string;
name: string;
is_favourite: boolean;
widgets: any;
settings: any;
};
export declare type DashboardWidget = {
uuid: string;
widget_id: string;
title: string;
pos: {
col: number;
row: number;
};
sizex: number;
sizey: number;
configure: {
file_name: '';
bucket_name: '';
source: '';
};
content: {
id: string;
type: string;
source: string;
};
settings: object;
minx: number;
miny: number;
maxx: number;
maxy: number;
};
export declare type BucketPut = {
id?: string;
name: string;
type?: "private" | "public";
global_app_name?: string;
};
export declare type BucketGet = {
page: number;
per_page: number;
total_count: number;
objects: BucketFile[];
name: string;
type: "private" | "public";
size: number;
};
export declare type BucketFile = {
name: string;
bucket: string;
size: string;
auto_delete: string;
updated_at: string;
expires_at?: string;
};
//# sourceMappingURL=types.d.ts.map