windmill-components 1.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +661 -0
- package/common.d.ts +29 -0
- package/components/ArgInfo.svelte +48 -0
- package/components/ArgInput.svelte +277 -0
- package/components/AutosizedTextarea.svelte +34 -0
- package/components/Badge.svelte +12 -0
- package/components/Button.svelte +82 -0
- package/components/ButtonAndDropdown.svelte +25 -0
- package/components/CenteredPage.svelte +5 -0
- package/components/ChevronButton.svelte +21 -0
- package/components/DisplayResult.svelte +101 -0
- package/components/Dropdown.svelte +108 -0
- package/components/Editor.svelte +370 -0
- package/components/FieldHeader.svelte +21 -0
- package/components/FlowBuilder.svelte +202 -0
- package/components/FlowEditor.svelte +95 -0
- package/components/FlowPreview.svelte +141 -0
- package/components/FlowStatusViewer.svelte +137 -0
- package/components/GroupModal.svelte +90 -0
- package/components/IconedResourceType.svelte +32 -0
- package/components/InviteGlobalUser.svelte +56 -0
- package/components/InviteUser.svelte +48 -0
- package/components/ItemPicker.svelte +58 -0
- package/components/JobStatus.svelte +38 -0
- package/components/Modal.svelte +94 -0
- package/components/ModuleStep.svelte +64 -0
- package/components/Multiselect.svelte +327 -0
- package/components/ObjectResourceInput.svelte +62 -0
- package/components/ObjectTypeNarrowing.svelte +25 -0
- package/components/PageHeader.svelte +29 -0
- package/components/Password.svelte +45 -0
- package/components/Path.svelte +129 -0
- package/components/RadioButton.svelte +117 -0
- package/components/Required.svelte +11 -0
- package/components/ResourceEditor.svelte +260 -0
- package/components/ResourcePicker.svelte +21 -0
- package/components/ResourceTypePicker.svelte +71 -0
- package/components/RunForm.svelte +127 -0
- package/components/SchemaEditor.svelte +221 -0
- package/components/SchemaForm.svelte +166 -0
- package/components/SchemaModal.svelte +160 -0
- package/components/SchemaViewer.svelte +76 -0
- package/components/ScriptBuilder.svelte +293 -0
- package/components/ScriptEditor.svelte +669 -0
- package/components/ScriptPicker.svelte +110 -0
- package/components/ScriptSchema.svelte +71 -0
- package/components/ShareModal.svelte +135 -0
- package/components/SharedBadge.svelte +54 -0
- package/components/StringTypeNarrowing.svelte +101 -0
- package/components/Switch.svelte +61 -0
- package/components/TableCustom.svelte +39 -0
- package/components/TableSimple.svelte +66 -0
- package/components/Tabs.svelte +21 -0
- package/components/Tooltip.svelte +93 -0
- package/components/VariableEditor.svelte +159 -0
- package/components/icons/DbIcon.svelte +12 -0
- package/components/icons/Mail.svelte +62 -0
- package/components/icons/Mysql.svelte +77 -0
- package/components/icons/PostgresIcon.svelte +57 -0
- package/components/icons/Slack.svelte +26 -0
- package/gen/core/ApiError.d.ts +8 -0
- package/gen/core/ApiRequestOptions.d.ts +13 -0
- package/gen/core/ApiResult.d.ts +7 -0
- package/gen/core/CancelablePromise.d.ts +26 -0
- package/gen/core/OpenAPI.d.ts +16 -0
- package/gen/core/request.d.ts +13 -0
- package/gen/index.d.ts +59 -0
- package/gen/models/AuditLog.d.ts +32 -0
- package/gen/models/CompletedJob.d.ts +48 -0
- package/gen/models/ContextualVariable.d.ts +5 -0
- package/gen/models/CreateResource.d.ts +6 -0
- package/gen/models/CreateVariable.d.ts +6 -0
- package/gen/models/CreateWorkspace.d.ts +6 -0
- package/gen/models/EditResource.d.ts +5 -0
- package/gen/models/EditResourceType.d.ts +4 -0
- package/gen/models/EditSchedule.d.ts +7 -0
- package/gen/models/EditVariable.d.ts +6 -0
- package/gen/models/EditWorkspaceUser.d.ts +3 -0
- package/gen/models/Flow.d.ts +13 -0
- package/gen/models/FlowModule.d.ts +6 -0
- package/gen/models/FlowModuleValue.d.ts +10 -0
- package/gen/models/FlowPreview.d.ts +7 -0
- package/gen/models/FlowStatus.d.ts +6 -0
- package/gen/models/FlowStatusModule.d.ts +15 -0
- package/gen/models/FlowValue.d.ts +5 -0
- package/gen/models/GlobalUserInfo.d.ts +14 -0
- package/gen/models/Group.d.ts +6 -0
- package/gen/models/InputTransform.d.ts +12 -0
- package/gen/models/Job.d.ts +11 -0
- package/gen/models/ListableVariable.d.ts +8 -0
- package/gen/models/Login.d.ts +4 -0
- package/gen/models/MainArgSignature.d.ts +14 -0
- package/gen/models/NewSchedule.d.ts +9 -0
- package/gen/models/NewToken.d.ts +4 -0
- package/gen/models/NewUser.d.ts +5 -0
- package/gen/models/Preview.d.ts +13 -0
- package/gen/models/QueuedJob.d.ts +47 -0
- package/gen/models/Resource.d.ts +8 -0
- package/gen/models/ResourceType.d.ts +6 -0
- package/gen/models/Schedule.d.ts +13 -0
- package/gen/models/Script.d.ts +29 -0
- package/gen/models/ScriptArgs.d.ts +1 -0
- package/gen/models/TruncatedToken.d.ts +7 -0
- package/gen/models/User.d.ts +10 -0
- package/gen/models/UserWorkspaceList.d.ts +8 -0
- package/gen/models/WorkerPing.d.ts +8 -0
- package/gen/models/Workspace.d.ts +6 -0
- package/gen/models/WorkspaceInvite.d.ts +5 -0
- package/gen/services/AdminService.d.ts +35 -0
- package/gen/services/AuditService.d.ts +37 -0
- package/gen/services/FlowService.d.ts +82 -0
- package/gen/services/GranularAclService.d.ts +42 -0
- package/gen/services/GroupService.d.ts +94 -0
- package/gen/services/JobService.d.ts +217 -0
- package/gen/services/ResourceService.d.ts +116 -0
- package/gen/services/ScheduleService.d.ts +73 -0
- package/gen/services/ScriptService.d.ts +165 -0
- package/gen/services/SettingsService.d.ts +15 -0
- package/gen/services/UserService.d.ts +211 -0
- package/gen/services/VariableService.d.ts +66 -0
- package/gen/services/WorkerService.d.ts +15 -0
- package/gen/services/WorkspaceService.d.ts +137 -0
- package/infer.d.ts +2 -0
- package/lib/components/ArgInfo.svelte.d.ts +16 -0
- package/lib/components/ArgInput.svelte.d.ts +37 -0
- package/lib/components/AutosizedTextarea.svelte.d.ts +19 -0
- package/lib/components/Badge.svelte.d.ts +20 -0
- package/lib/components/Button.svelte.d.ts +23 -0
- package/lib/components/ButtonAndDropdown.svelte.d.ts +23 -0
- package/lib/components/CenteredPage.svelte.d.ts +23 -0
- package/lib/components/ChevronButton.svelte.d.ts +19 -0
- package/lib/components/DisplayResult.svelte.d.ts +16 -0
- package/lib/components/Dropdown.svelte.d.ts +22 -0
- package/lib/components/Editor.svelte.d.ts +38 -0
- package/lib/components/FieldHeader.svelte.d.ts +23 -0
- package/lib/components/FlowBuilder.svelte.d.ts +18 -0
- package/lib/components/FlowEditor.svelte.d.ts +19 -0
- package/lib/components/FlowPreview.svelte.d.ts +21 -0
- package/lib/components/FlowStatusViewer.svelte.d.ts +18 -0
- package/lib/components/GroupModal.svelte.d.ts +17 -0
- package/lib/components/IconedResourceType.svelte.d.ts +19 -0
- package/lib/components/InviteGlobalUser.svelte.d.ts +19 -0
- package/lib/components/InviteUser.svelte.d.ts +19 -0
- package/lib/components/ItemPicker.svelte.d.ts +24 -0
- package/lib/components/JobStatus.svelte.d.ts +17 -0
- package/lib/components/Modal.svelte.d.ts +28 -0
- package/lib/components/ModuleStep.svelte.d.ts +26 -0
- package/lib/components/Multiselect.svelte.d.ts +33 -0
- package/lib/components/ObjectResourceInput.svelte.d.ts +17 -0
- package/lib/components/ObjectTypeNarrowing.svelte.d.ts +16 -0
- package/lib/components/PageHeader.svelte.d.ts +20 -0
- package/lib/components/Password.svelte.d.ts +18 -0
- package/lib/components/Path.svelte.d.ts +26 -0
- package/lib/components/RadioButton.svelte.d.ts +21 -0
- package/lib/components/Required.svelte.d.ts +17 -0
- package/lib/components/ResourceEditor.svelte.d.ts +22 -0
- package/lib/components/ResourcePicker.svelte.d.ts +17 -0
- package/lib/components/ResourceTypePicker.svelte.d.ts +19 -0
- package/lib/components/RunForm.svelte.d.ts +22 -0
- package/lib/components/SchemaEditor.svelte.d.ts +22 -0
- package/lib/components/SchemaForm.svelte.d.ts +23 -0
- package/lib/components/SchemaModal.svelte.d.ts +44 -0
- package/lib/components/SchemaViewer.svelte.d.ts +17 -0
- package/lib/components/ScriptBuilder.svelte.d.ts +20 -0
- package/lib/components/ScriptEditor.svelte.d.ts +28 -0
- package/lib/components/ScriptPicker.svelte.d.ts +21 -0
- package/lib/components/ScriptSchema.svelte.d.ts +22 -0
- package/lib/components/ShareModal.svelte.d.ts +21 -0
- package/lib/components/SharedBadge.svelte.d.ts +17 -0
- package/lib/components/StringTypeNarrowing.svelte.d.ts +18 -0
- package/lib/components/Switch.svelte.d.ts +31 -0
- package/lib/components/TableCustom.svelte.d.ts +25 -0
- package/lib/components/TableSimple.svelte.d.ts +24 -0
- package/lib/components/Tabs.svelte.d.ts +20 -0
- package/lib/components/Tooltip.svelte.d.ts +20 -0
- package/lib/components/VariableEditor.svelte.d.ts +21 -0
- package/lib/components/icons/DbIcon.svelte.d.ts +17 -0
- package/lib/components/icons/Mail.svelte.d.ts +17 -0
- package/lib/components/icons/Mysql.svelte.d.ts +17 -0
- package/lib/components/icons/PostgresIcon.svelte.d.ts +17 -0
- package/lib/components/icons/Slack.svelte.d.ts +17 -0
- package/package.json +110 -0
- package/stores.d.ts +19 -0
- package/utils.d.ts +60 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export declare type AuditLog = {
|
|
2
|
+
id: number;
|
|
3
|
+
timestamp: string;
|
|
4
|
+
username: string;
|
|
5
|
+
operation: AuditLog.operation;
|
|
6
|
+
action_kind: AuditLog.action_kind;
|
|
7
|
+
resource?: string;
|
|
8
|
+
parameters?: any;
|
|
9
|
+
};
|
|
10
|
+
export declare namespace AuditLog {
|
|
11
|
+
enum operation {
|
|
12
|
+
JOBS_RUN = "jobs.run",
|
|
13
|
+
SCRIPTS_CREATE = "scripts.create",
|
|
14
|
+
SCRIPTS_UPDATE = "scripts.update",
|
|
15
|
+
USERS_CREATE = "users.create",
|
|
16
|
+
USERS_DELETE = "users.delete",
|
|
17
|
+
USERS_SETPASSWORD = "users.setpassword",
|
|
18
|
+
USERS_UPDATE = "users.update",
|
|
19
|
+
USERS_LOGIN = "users.login",
|
|
20
|
+
USERS_TOKEN_CREATE = "users.token.create",
|
|
21
|
+
USERS_TOKEN_DELETE = "users.token.delete",
|
|
22
|
+
VARIABLES_CREATE = "variables.create",
|
|
23
|
+
VARIABLES_DELETE = "variables.delete",
|
|
24
|
+
VARIABLES_UPDATE = "variables.update"
|
|
25
|
+
}
|
|
26
|
+
enum action_kind {
|
|
27
|
+
CREATED = "Created",
|
|
28
|
+
UPDATED = "Updated",
|
|
29
|
+
DELETE = "Delete",
|
|
30
|
+
EXECUTE = "Execute"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { FlowStatus } from './FlowStatus';
|
|
2
|
+
import type { FlowValue } from './FlowValue';
|
|
3
|
+
import type { ScriptArgs } from './ScriptArgs';
|
|
4
|
+
export declare type CompletedJob = {
|
|
5
|
+
workspace_id?: string;
|
|
6
|
+
id: string;
|
|
7
|
+
parent_job?: string;
|
|
8
|
+
created_by: string;
|
|
9
|
+
created_at: string;
|
|
10
|
+
started_at: string;
|
|
11
|
+
duration: number;
|
|
12
|
+
success: boolean;
|
|
13
|
+
script_path?: string;
|
|
14
|
+
script_hash?: string;
|
|
15
|
+
args?: ScriptArgs;
|
|
16
|
+
result?: any;
|
|
17
|
+
logs?: string;
|
|
18
|
+
deleted?: boolean;
|
|
19
|
+
raw_code?: string;
|
|
20
|
+
canceled: boolean;
|
|
21
|
+
canceled_by?: string;
|
|
22
|
+
canceled_reason?: string;
|
|
23
|
+
job_kind: CompletedJob.job_kind;
|
|
24
|
+
schedule_path?: string;
|
|
25
|
+
/**
|
|
26
|
+
* The user (u/userfoo) or group (g/groupfoo) whom
|
|
27
|
+
* the execution of this script will be permissioned_as and by extension its DT_TOKEN.
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
permissioned_as: string;
|
|
31
|
+
flow_status?: FlowStatus;
|
|
32
|
+
raw_flow?: FlowValue;
|
|
33
|
+
is_flow_step: boolean;
|
|
34
|
+
language?: CompletedJob.language;
|
|
35
|
+
};
|
|
36
|
+
export declare namespace CompletedJob {
|
|
37
|
+
enum job_kind {
|
|
38
|
+
SCRIPT = "script",
|
|
39
|
+
PREVIEW = "preview",
|
|
40
|
+
DEPENDENCIES = "dependencies",
|
|
41
|
+
FLOW = "flow",
|
|
42
|
+
FLOWPREVIEW = "flowpreview"
|
|
43
|
+
}
|
|
44
|
+
enum language {
|
|
45
|
+
PYTHON3 = "python3",
|
|
46
|
+
DENO = "deno"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { FlowValue } from './FlowValue';
|
|
2
|
+
export declare type Flow = {
|
|
3
|
+
workspace_id?: string;
|
|
4
|
+
path: string;
|
|
5
|
+
summary: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
value: FlowValue;
|
|
8
|
+
edited_by: string;
|
|
9
|
+
edited_at: string;
|
|
10
|
+
archived: boolean;
|
|
11
|
+
schema?: any;
|
|
12
|
+
extra_perms: Record<string, boolean>;
|
|
13
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare type FlowStatusModule = {
|
|
2
|
+
type: FlowStatusModule.type;
|
|
3
|
+
job?: string;
|
|
4
|
+
event?: string;
|
|
5
|
+
};
|
|
6
|
+
export declare namespace FlowStatusModule {
|
|
7
|
+
enum type {
|
|
8
|
+
WAITING_FOR_PRIOR_STEPS = "WaitingForPriorSteps",
|
|
9
|
+
WAITING_FOR_EVENT = "WaitingForEvent",
|
|
10
|
+
WAITING_FOR_EXECUTOR = "WaitingForExecutor",
|
|
11
|
+
IN_PROGRESS = "InProgress",
|
|
12
|
+
SUCCESS = "Success",
|
|
13
|
+
FAILURE = "Failure"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare type GlobalUserInfo = {
|
|
2
|
+
email: string;
|
|
3
|
+
login_type: GlobalUserInfo.login_type;
|
|
4
|
+
super_admin: boolean;
|
|
5
|
+
verified: boolean;
|
|
6
|
+
name?: string;
|
|
7
|
+
company?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare namespace GlobalUserInfo {
|
|
10
|
+
enum login_type {
|
|
11
|
+
PASSWORD = "password",
|
|
12
|
+
GITHUB = "github"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { CompletedJob } from './CompletedJob';
|
|
2
|
+
import type { QueuedJob } from './QueuedJob';
|
|
3
|
+
export declare type Job = ((CompletedJob | QueuedJob) & {
|
|
4
|
+
type?: Job.type;
|
|
5
|
+
});
|
|
6
|
+
export declare namespace Job {
|
|
7
|
+
enum type {
|
|
8
|
+
COMPLETED_JOB = "CompletedJob",
|
|
9
|
+
QUEUED_JOB = "QueuedJob"
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare type MainArgSignature = {
|
|
2
|
+
star_args: boolean;
|
|
3
|
+
star_kwargs?: boolean;
|
|
4
|
+
args: Array<{
|
|
5
|
+
name: string;
|
|
6
|
+
typ: ('str' | 'float' | 'int' | 'bool' | 'email' | 'unknown' | {
|
|
7
|
+
resource: string;
|
|
8
|
+
} | {
|
|
9
|
+
list: 'str' | 'float' | 'int' | 'email';
|
|
10
|
+
});
|
|
11
|
+
has_default?: boolean;
|
|
12
|
+
default?: any;
|
|
13
|
+
}>;
|
|
14
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ScriptArgs } from './ScriptArgs';
|
|
2
|
+
export declare type Preview = {
|
|
3
|
+
content: string;
|
|
4
|
+
path?: string;
|
|
5
|
+
args: ScriptArgs;
|
|
6
|
+
language: Preview.language;
|
|
7
|
+
};
|
|
8
|
+
export declare namespace Preview {
|
|
9
|
+
enum language {
|
|
10
|
+
PYTHON3 = "python3",
|
|
11
|
+
DENO = "deno"
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { FlowStatus } from './FlowStatus';
|
|
2
|
+
import type { FlowValue } from './FlowValue';
|
|
3
|
+
import type { ScriptArgs } from './ScriptArgs';
|
|
4
|
+
export declare type QueuedJob = {
|
|
5
|
+
workspace_id?: string;
|
|
6
|
+
id: string;
|
|
7
|
+
parent_job?: string;
|
|
8
|
+
created_by?: string;
|
|
9
|
+
created_at?: string;
|
|
10
|
+
started_at?: string;
|
|
11
|
+
scheduled_for?: string;
|
|
12
|
+
running: boolean;
|
|
13
|
+
script_path?: string;
|
|
14
|
+
script_hash?: string;
|
|
15
|
+
args?: ScriptArgs;
|
|
16
|
+
logs?: string;
|
|
17
|
+
raw_code?: string;
|
|
18
|
+
canceled: boolean;
|
|
19
|
+
canceled_by?: string;
|
|
20
|
+
canceled_reason?: string;
|
|
21
|
+
last_ping?: string;
|
|
22
|
+
job_kind: QueuedJob.job_kind;
|
|
23
|
+
schedule_path?: string;
|
|
24
|
+
/**
|
|
25
|
+
* The user (u/userfoo) or group (g/groupfoo) whom
|
|
26
|
+
* the execution of this script will be permissioned_as and by extension its DT_TOKEN.
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
permissioned_as: string;
|
|
30
|
+
flow_status?: FlowStatus;
|
|
31
|
+
raw_flow?: FlowValue;
|
|
32
|
+
is_flow_step: boolean;
|
|
33
|
+
language?: QueuedJob.language;
|
|
34
|
+
};
|
|
35
|
+
export declare namespace QueuedJob {
|
|
36
|
+
enum job_kind {
|
|
37
|
+
SCRIPT = "script",
|
|
38
|
+
PREVIEW = "preview",
|
|
39
|
+
DEPENDENCIES = "dependencies",
|
|
40
|
+
FLOW = "flow",
|
|
41
|
+
FLOWPREVIEW = "flowpreview"
|
|
42
|
+
}
|
|
43
|
+
enum language {
|
|
44
|
+
PYTHON3 = "python3",
|
|
45
|
+
DENO = "deno"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ScriptArgs } from './ScriptArgs';
|
|
2
|
+
export declare type Schedule = {
|
|
3
|
+
path: string;
|
|
4
|
+
edited_by: string;
|
|
5
|
+
edited_at: string;
|
|
6
|
+
schedule: string;
|
|
7
|
+
offset_: number;
|
|
8
|
+
enabled?: boolean;
|
|
9
|
+
script_path: string;
|
|
10
|
+
is_flow: boolean;
|
|
11
|
+
args?: ScriptArgs;
|
|
12
|
+
extra_perms: Record<string, boolean>;
|
|
13
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export declare type Script = {
|
|
2
|
+
workspace_id?: string;
|
|
3
|
+
hash: string;
|
|
4
|
+
path: string;
|
|
5
|
+
/**
|
|
6
|
+
* The first element is the direct parent of the script, the second is the parent of the first, etc
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
parent_hashes?: Array<string>;
|
|
10
|
+
summary: string;
|
|
11
|
+
description?: string;
|
|
12
|
+
content: string;
|
|
13
|
+
created_by: string;
|
|
14
|
+
created_at: string;
|
|
15
|
+
archived: boolean;
|
|
16
|
+
schema?: any;
|
|
17
|
+
deleted: boolean;
|
|
18
|
+
is_template: boolean;
|
|
19
|
+
extra_perms: Record<string, boolean>;
|
|
20
|
+
lock?: string;
|
|
21
|
+
lock_error_logs?: string;
|
|
22
|
+
language: Script.language;
|
|
23
|
+
};
|
|
24
|
+
export declare namespace Script {
|
|
25
|
+
enum language {
|
|
26
|
+
PYTHON3 = "python3",
|
|
27
|
+
DENO = "deno"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare type ScriptArgs = Record<string, any>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { EditWorkspaceUser } from '../models/EditWorkspaceUser';
|
|
2
|
+
import type { NewUser } from '../models/NewUser';
|
|
3
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
4
|
+
export declare class AdminService {
|
|
5
|
+
/**
|
|
6
|
+
* create user (require admin privilege)
|
|
7
|
+
* @returns string user created
|
|
8
|
+
* @throws ApiError
|
|
9
|
+
*/
|
|
10
|
+
static createUser({ workspace, requestBody, }: {
|
|
11
|
+
workspace: string;
|
|
12
|
+
/** new user **/
|
|
13
|
+
requestBody: NewUser;
|
|
14
|
+
}): CancelablePromise<string>;
|
|
15
|
+
/**
|
|
16
|
+
* update user (require admin privilege)
|
|
17
|
+
* @returns string edited user
|
|
18
|
+
* @throws ApiError
|
|
19
|
+
*/
|
|
20
|
+
static updateUser({ workspace, username, requestBody, }: {
|
|
21
|
+
workspace: string;
|
|
22
|
+
username: string;
|
|
23
|
+
/** new user **/
|
|
24
|
+
requestBody: EditWorkspaceUser;
|
|
25
|
+
}): CancelablePromise<string>;
|
|
26
|
+
/**
|
|
27
|
+
* delete user (require admin privilege)
|
|
28
|
+
* @returns string delete user
|
|
29
|
+
* @throws ApiError
|
|
30
|
+
*/
|
|
31
|
+
static deleteUser({ workspace, username, }: {
|
|
32
|
+
workspace: string;
|
|
33
|
+
username: string;
|
|
34
|
+
}): CancelablePromise<string>;
|
|
35
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { AuditLog } from '../models/AuditLog';
|
|
2
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
3
|
+
export declare class AuditService {
|
|
4
|
+
/**
|
|
5
|
+
* get audit log (requires admin privilege)
|
|
6
|
+
* @returns AuditLog an audit log
|
|
7
|
+
* @throws ApiError
|
|
8
|
+
*/
|
|
9
|
+
static getAuditLog({ workspace, id, }: {
|
|
10
|
+
workspace: string;
|
|
11
|
+
id: number;
|
|
12
|
+
}): CancelablePromise<AuditLog>;
|
|
13
|
+
/**
|
|
14
|
+
* list audit logs (requires admin privilege)
|
|
15
|
+
* @returns AuditLog a list of audit logs
|
|
16
|
+
* @throws ApiError
|
|
17
|
+
*/
|
|
18
|
+
static listAuditLogs({ workspace, page, perPage, before, after, username, operation, resource, actionKind, }: {
|
|
19
|
+
workspace: string;
|
|
20
|
+
/** which page to return (start at 1, default 1) **/
|
|
21
|
+
page?: number;
|
|
22
|
+
/** number of items to return for a given page (default 30, max 100) **/
|
|
23
|
+
perPage?: number;
|
|
24
|
+
/** filter on created before (exclusive) timestamp **/
|
|
25
|
+
before?: string;
|
|
26
|
+
/** filter on created after (exclusive) timestamp **/
|
|
27
|
+
after?: string;
|
|
28
|
+
/** filter on exact username of user **/
|
|
29
|
+
username?: string;
|
|
30
|
+
/** filter on exact or prefix name of operation **/
|
|
31
|
+
operation?: string;
|
|
32
|
+
/** filter on exact or prefix name of resource **/
|
|
33
|
+
resource?: string;
|
|
34
|
+
/** filter on type of operation **/
|
|
35
|
+
actionKind?: 'Create' | 'Update' | 'Delete' | 'Execute';
|
|
36
|
+
}): CancelablePromise<Array<AuditLog>>;
|
|
37
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import type { Flow } from '../models/Flow';
|
|
2
|
+
import type { FlowValue } from '../models/FlowValue';
|
|
3
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
4
|
+
export declare class FlowService {
|
|
5
|
+
/**
|
|
6
|
+
* list all available flows
|
|
7
|
+
* @returns Flow All available flow
|
|
8
|
+
* @throws ApiError
|
|
9
|
+
*/
|
|
10
|
+
static listFlows({ workspace, page, perPage, orderDesc, createdBy, pathStart, pathExact, showArchived, }: {
|
|
11
|
+
workspace: string;
|
|
12
|
+
/** which page to return (start at 1, default 1) **/
|
|
13
|
+
page?: number;
|
|
14
|
+
/** number of items to return for a given page (default 30, max 100) **/
|
|
15
|
+
perPage?: number;
|
|
16
|
+
/** order by desc order (default true) **/
|
|
17
|
+
orderDesc?: boolean;
|
|
18
|
+
/** mask to filter exact matching user creator **/
|
|
19
|
+
createdBy?: string;
|
|
20
|
+
/** mask to filter matching starting parh **/
|
|
21
|
+
pathStart?: string;
|
|
22
|
+
/** mask to filter exact matching path **/
|
|
23
|
+
pathExact?: string;
|
|
24
|
+
/** (default false)
|
|
25
|
+
* show also the archived files.
|
|
26
|
+
* when multiple archived hash share the same path, only the ones with the latest create_at
|
|
27
|
+
* are displayed.
|
|
28
|
+
* **/
|
|
29
|
+
showArchived?: boolean;
|
|
30
|
+
}): CancelablePromise<Array<Flow>>;
|
|
31
|
+
/**
|
|
32
|
+
* get flow by path
|
|
33
|
+
* @returns Flow flow details
|
|
34
|
+
* @throws ApiError
|
|
35
|
+
*/
|
|
36
|
+
static getFlowByPath({ workspace, path, }: {
|
|
37
|
+
workspace: string;
|
|
38
|
+
path: string;
|
|
39
|
+
}): CancelablePromise<Flow>;
|
|
40
|
+
/**
|
|
41
|
+
* create flow
|
|
42
|
+
* @returns string flow created
|
|
43
|
+
* @throws ApiError
|
|
44
|
+
*/
|
|
45
|
+
static createFlow({ workspace, requestBody, }: {
|
|
46
|
+
workspace: string;
|
|
47
|
+
/** Partially filled flow **/
|
|
48
|
+
requestBody: {
|
|
49
|
+
path: string;
|
|
50
|
+
summary: string;
|
|
51
|
+
description: string;
|
|
52
|
+
value: FlowValue;
|
|
53
|
+
schema?: any;
|
|
54
|
+
};
|
|
55
|
+
}): CancelablePromise<string>;
|
|
56
|
+
/**
|
|
57
|
+
* update flow
|
|
58
|
+
* @returns string flow updated
|
|
59
|
+
* @throws ApiError
|
|
60
|
+
*/
|
|
61
|
+
static updateFlow({ workspace, path, requestBody, }: {
|
|
62
|
+
workspace: string;
|
|
63
|
+
path: string;
|
|
64
|
+
/** Partially filled flow **/
|
|
65
|
+
requestBody: {
|
|
66
|
+
path: string;
|
|
67
|
+
summary: string;
|
|
68
|
+
description: string;
|
|
69
|
+
value: FlowValue;
|
|
70
|
+
schema?: any;
|
|
71
|
+
};
|
|
72
|
+
}): CancelablePromise<string>;
|
|
73
|
+
/**
|
|
74
|
+
* archive flow by path
|
|
75
|
+
* @returns string flow archived
|
|
76
|
+
* @throws ApiError
|
|
77
|
+
*/
|
|
78
|
+
static archiveFlowByPath({ workspace, path, }: {
|
|
79
|
+
workspace: string;
|
|
80
|
+
path: string;
|
|
81
|
+
}): CancelablePromise<string>;
|
|
82
|
+
}
|