windmill-client 0.2.1 → 0.3.1

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.
Files changed (121) hide show
  1. package/build.sh +0 -1
  2. package/dist/core/OpenAPI.js +1 -1
  3. package/dist/index.d.ts +2 -0
  4. package/dist/index.js +3 -1
  5. package/dist/models/ListableRawApp.d.ts +9 -0
  6. package/dist/models/ListableRawApp.js +5 -0
  7. package/dist/services/AppService.d.ts +19 -18
  8. package/dist/services/AppService.js +16 -16
  9. package/dist/services/FavoriteService.d.ts +2 -2
  10. package/dist/services/GranularAclService.d.ts +3 -3
  11. package/dist/services/JobService.d.ts +12 -0
  12. package/dist/services/JobService.js +15 -0
  13. package/dist/services/RawAppService.d.ts +103 -0
  14. package/dist/services/RawAppService.js +110 -0
  15. package/package.json +1 -1
  16. package/publish.sh +3 -0
  17. package/src/core/OpenAPI.ts +1 -1
  18. package/src/index.ts +2 -0
  19. package/src/models/ListableRawApp.ts +14 -0
  20. package/src/services/AppService.ts +33 -32
  21. package/src/services/FavoriteService.ts +2 -2
  22. package/src/services/GranularAclService.ts +3 -3
  23. package/src/services/JobService.ts +25 -0
  24. package/src/services/RawAppService.ts +209 -0
  25. package/src/core/ApiError.d.ts +0 -10
  26. package/src/core/ApiRequestOptions.d.ts +0 -13
  27. package/src/core/ApiResult.d.ts +0 -7
  28. package/src/core/CancelablePromise.d.ts +0 -26
  29. package/src/core/OpenAPI.d.ts +0 -16
  30. package/src/core/request.d.ts +0 -13
  31. package/src/models/AppWithLastVersion.d.ts +0 -21
  32. package/src/models/AppWithLastVersionWDraft.d.ts +0 -5
  33. package/src/models/AuditLog.d.ts +0 -32
  34. package/src/models/BranchAll.d.ts +0 -10
  35. package/src/models/BranchOne.d.ts +0 -10
  36. package/src/models/CompletedJob.d.ts +0 -57
  37. package/src/models/ContextualVariable.d.ts +0 -5
  38. package/src/models/CreateInput.d.ts +0 -4
  39. package/src/models/CreateResource.d.ts +0 -6
  40. package/src/models/CreateVariable.d.ts +0 -8
  41. package/src/models/CreateWorkspace.d.ts +0 -5
  42. package/src/models/EditResource.d.ts +0 -5
  43. package/src/models/EditResourceType.d.ts +0 -4
  44. package/src/models/EditSchedule.d.ts +0 -6
  45. package/src/models/EditVariable.d.ts +0 -6
  46. package/src/models/EditWorkspaceUser.d.ts +0 -5
  47. package/src/models/Flow.d.ts +0 -3
  48. package/src/models/FlowMetadata.d.ts +0 -11
  49. package/src/models/FlowModule.d.ts +0 -18
  50. package/src/models/FlowModuleValue.d.ts +0 -8
  51. package/src/models/FlowPreview.d.ts +0 -7
  52. package/src/models/FlowStatus.d.ts +0 -12
  53. package/src/models/FlowStatusModule.d.ts +0 -34
  54. package/src/models/FlowValue.d.ts +0 -6
  55. package/src/models/Folder.d.ts +0 -5
  56. package/src/models/ForloopFlow.d.ts +0 -9
  57. package/src/models/GlobalUserInfo.d.ts +0 -14
  58. package/src/models/Group.d.ts +0 -6
  59. package/src/models/Identity.d.ts +0 -4
  60. package/src/models/Input.d.ts +0 -8
  61. package/src/models/InputTransform.d.ts +0 -3
  62. package/src/models/JavascriptTransform.d.ts +0 -4
  63. package/src/models/Job.d.ts +0 -11
  64. package/src/models/ListableApp.d.ts +0 -18
  65. package/src/models/ListableResource.d.ts +0 -14
  66. package/src/models/ListableVariable.d.ts +0 -14
  67. package/src/models/Login.d.ts +0 -4
  68. package/src/models/MainArgSignature.d.ts +0 -33
  69. package/src/models/NewSchedule.d.ts +0 -10
  70. package/src/models/NewScript.d.ts +0 -29
  71. package/src/models/NewScriptWithDraft.d.ts +0 -5
  72. package/src/models/NewToken.d.ts +0 -4
  73. package/src/models/NewTokenImpersonate.d.ts +0 -5
  74. package/src/models/NewUser.d.ts +0 -5
  75. package/src/models/OpenFlow.d.ts +0 -7
  76. package/src/models/OpenFlowWPath.d.ts +0 -4
  77. package/src/models/PathFlow.d.ts +0 -6
  78. package/src/models/PathScript.d.ts +0 -7
  79. package/src/models/Policy.d.ts +0 -13
  80. package/src/models/Preview.d.ts +0 -16
  81. package/src/models/QueuedJob.d.ts +0 -55
  82. package/src/models/RawScript.d.ts +0 -18
  83. package/src/models/Resource.d.ts +0 -9
  84. package/src/models/ResourceType.d.ts +0 -6
  85. package/src/models/Retry.d.ts +0 -11
  86. package/src/models/RunnableType.d.ts +0 -5
  87. package/src/models/Schedule.d.ts +0 -15
  88. package/src/models/Script.d.ts +0 -43
  89. package/src/models/ScriptArgs.d.ts +0 -1
  90. package/src/models/SlackToken.d.ts +0 -8
  91. package/src/models/StaticTransform.d.ts +0 -4
  92. package/src/models/TokenResponse.d.ts +0 -6
  93. package/src/models/TruncatedToken.d.ts +0 -7
  94. package/src/models/UpdateInput.d.ts +0 -5
  95. package/src/models/Usage.d.ts +0 -3
  96. package/src/models/User.d.ts +0 -14
  97. package/src/models/UserWorkspaceList.d.ts +0 -8
  98. package/src/models/WorkerPing.d.ts +0 -8
  99. package/src/models/Workspace.d.ts +0 -6
  100. package/src/models/WorkspaceInvite.d.ts +0 -6
  101. package/src/services/AdminService.d.ts +0 -39
  102. package/src/services/AppService.d.ts +0 -194
  103. package/src/services/AuditService.d.ts +0 -53
  104. package/src/services/CaptureService.d.ts +0 -30
  105. package/src/services/DraftService.d.ts +0 -16
  106. package/src/services/FavoriteService.d.ts +0 -27
  107. package/src/services/FlowService.d.ts +0 -186
  108. package/src/services/FolderService.d.ts +0 -128
  109. package/src/services/GranularAclService.d.ts +0 -46
  110. package/src/services/GroupService.d.ts +0 -110
  111. package/src/services/InputService.d.ts +0 -78
  112. package/src/services/JobService.d.ts +0 -636
  113. package/src/services/OauthService.d.ts +0 -95
  114. package/src/services/ResourceService.d.ts +0 -177
  115. package/src/services/ScheduleService.d.ts +0 -103
  116. package/src/services/ScriptService.d.ts +0 -303
  117. package/src/services/SettingsService.d.ts +0 -15
  118. package/src/services/UserService.d.ts +0 -284
  119. package/src/services/VariableService.d.ts +0 -83
  120. package/src/services/WorkerService.d.ts +0 -25
  121. package/src/services/WorkspaceService.d.ts +0 -227
@@ -1,9 +0,0 @@
1
- import type { FlowModule } from './FlowModule';
2
- import type { InputTransform } from './InputTransform';
3
- export type ForloopFlow = {
4
- modules: Array<FlowModule>;
5
- iterator: InputTransform;
6
- skip_failures: boolean;
7
- type: 'forloopflow';
8
- parallel?: boolean;
9
- };
@@ -1,14 +0,0 @@
1
- export 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
- }
@@ -1,6 +0,0 @@
1
- export type Group = {
2
- name: string;
3
- summary?: string;
4
- members?: Array<string>;
5
- extra_perms?: Record<string, boolean>;
6
- };
@@ -1,4 +0,0 @@
1
- export type Identity = {
2
- type: 'identity';
3
- flow?: boolean;
4
- };
@@ -1,8 +0,0 @@
1
- export type Input = {
2
- id: string;
3
- name: string;
4
- args: any;
5
- created_by: string;
6
- created_at: string;
7
- is_public: boolean;
8
- };
@@ -1,3 +0,0 @@
1
- import type { JavascriptTransform } from './JavascriptTransform';
2
- import type { StaticTransform } from './StaticTransform';
3
- export type InputTransform = (StaticTransform | JavascriptTransform);
@@ -1,4 +0,0 @@
1
- export type JavascriptTransform = {
2
- expr: string;
3
- type: 'javascript';
4
- };
@@ -1,11 +0,0 @@
1
- import type { CompletedJob } from './CompletedJob';
2
- import type { QueuedJob } from './QueuedJob';
3
- export 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
- }
@@ -1,18 +0,0 @@
1
- export type ListableApp = {
2
- id: number;
3
- workspace_id: string;
4
- path: string;
5
- summary: string;
6
- version: number;
7
- extra_perms: Record<string, boolean>;
8
- starred?: boolean;
9
- edited_at: string;
10
- execution_mode: ListableApp.execution_mode;
11
- };
12
- export declare namespace ListableApp {
13
- enum execution_mode {
14
- VIEWER = "viewer",
15
- PUBLISHER = "publisher",
16
- ANONYMOUS = "anonymous"
17
- }
18
- }
@@ -1,14 +0,0 @@
1
- export type ListableResource = {
2
- workspace_id?: string;
3
- path: string;
4
- description?: string;
5
- resource_type: string;
6
- value?: any;
7
- is_oauth: boolean;
8
- extra_perms?: Record<string, boolean>;
9
- is_expired?: boolean;
10
- refresh_error?: string;
11
- is_linked: boolean;
12
- is_refreshed: boolean;
13
- account?: number;
14
- };
@@ -1,14 +0,0 @@
1
- export type ListableVariable = {
2
- workspace_id: string;
3
- path: string;
4
- value?: string;
5
- is_secret: boolean;
6
- description?: string;
7
- account?: number;
8
- is_oauth?: boolean;
9
- extra_perms: Record<string, boolean>;
10
- is_expired?: boolean;
11
- refresh_error?: string;
12
- is_linked?: boolean;
13
- is_refreshed?: boolean;
14
- };
@@ -1,4 +0,0 @@
1
- export type Login = {
2
- email: string;
3
- password: string;
4
- };
@@ -1,33 +0,0 @@
1
- export type MainArgSignature = {
2
- type: MainArgSignature.type;
3
- error: string;
4
- star_args: boolean;
5
- star_kwargs?: boolean;
6
- args: Array<{
7
- name: string;
8
- typ: ('float' | 'int' | 'bool' | 'email' | 'unknown' | 'bytes' | 'dict' | 'datetime' | 'sql' | {
9
- resource: string | null;
10
- } | {
11
- str: Array<string> | null;
12
- } | {
13
- object: Array<{
14
- key: string;
15
- typ: ('float' | 'int' | 'bool' | 'email' | 'unknown' | 'bytes' | 'dict' | 'datetime' | 'sql' | {
16
- str: any;
17
- });
18
- }>;
19
- } | {
20
- list: ('float' | 'int' | 'bool' | 'email' | 'unknown' | 'bytes' | 'dict' | 'datetime' | 'sql' | {
21
- str: any;
22
- }) | null;
23
- });
24
- has_default?: boolean;
25
- default?: any;
26
- }>;
27
- };
28
- export declare namespace MainArgSignature {
29
- enum type {
30
- VALID = "Valid",
31
- INVALID = "Invalid"
32
- }
33
- }
@@ -1,10 +0,0 @@
1
- import type { ScriptArgs } from './ScriptArgs';
2
- export type NewSchedule = {
3
- path: string;
4
- schedule: string;
5
- timezone: string;
6
- script_path: string;
7
- is_flow: boolean;
8
- args: ScriptArgs;
9
- enabled?: boolean;
10
- };
@@ -1,29 +0,0 @@
1
- export type NewScript = {
2
- path: string;
3
- parent_hash?: string;
4
- summary: string;
5
- description: string;
6
- content: string;
7
- schema?: any;
8
- is_template?: boolean;
9
- lock?: Array<string>;
10
- language: NewScript.language;
11
- kind?: NewScript.kind;
12
- tag?: string;
13
- draft_only?: boolean;
14
- };
15
- export declare namespace NewScript {
16
- enum language {
17
- PYTHON3 = "python3",
18
- DENO = "deno",
19
- GO = "go",
20
- BASH = "bash"
21
- }
22
- enum kind {
23
- SCRIPT = "script",
24
- FAILURE = "failure",
25
- TRIGGER = "trigger",
26
- COMMAND = "command",
27
- APPROVAL = "approval"
28
- }
29
- }
@@ -1,5 +0,0 @@
1
- import type { NewScript } from './NewScript';
2
- export type NewScriptWithDraft = (NewScript & {
3
- draft?: NewScript;
4
- hash: string;
5
- });
@@ -1,4 +0,0 @@
1
- export type NewToken = {
2
- label?: string;
3
- expiration?: string;
4
- };
@@ -1,5 +0,0 @@
1
- export type NewTokenImpersonate = {
2
- label?: string;
3
- expiration?: string;
4
- impersonate_email: string;
5
- };
@@ -1,5 +0,0 @@
1
- export type NewUser = {
2
- email: string;
3
- username: string;
4
- is_admin: boolean;
5
- };
@@ -1,7 +0,0 @@
1
- import type { FlowValue } from './FlowValue';
2
- export type OpenFlow = {
3
- summary: string;
4
- description?: string;
5
- value: FlowValue;
6
- schema?: any;
7
- };
@@ -1,4 +0,0 @@
1
- import type { OpenFlow } from './OpenFlow';
2
- export type OpenFlowWPath = (OpenFlow & {
3
- path: string;
4
- });
@@ -1,6 +0,0 @@
1
- import type { InputTransform } from './InputTransform';
2
- export type PathFlow = {
3
- input_transforms: Record<string, InputTransform>;
4
- path: string;
5
- type: 'flow';
6
- };
@@ -1,7 +0,0 @@
1
- import type { InputTransform } from './InputTransform';
2
- export type PathScript = {
3
- input_transforms: Record<string, InputTransform>;
4
- path: string;
5
- hash?: string;
6
- type: 'script';
7
- };
@@ -1,13 +0,0 @@
1
- export type Policy = {
2
- triggerables?: Record<string, any>;
3
- execution_mode?: Policy.execution_mode;
4
- on_behalf_of?: string;
5
- on_behalf_of_email?: string;
6
- };
7
- export declare namespace Policy {
8
- enum execution_mode {
9
- VIEWER = "viewer",
10
- PUBLISHER = "publisher",
11
- ANONYMOUS = "anonymous"
12
- }
13
- }
@@ -1,16 +0,0 @@
1
- import type { ScriptArgs } from './ScriptArgs';
2
- export type Preview = {
3
- content: string;
4
- path?: string;
5
- args: ScriptArgs;
6
- language: Preview.language;
7
- tag?: string;
8
- };
9
- export declare namespace Preview {
10
- enum language {
11
- PYTHON3 = "python3",
12
- DENO = "deno",
13
- GO = "go",
14
- BASH = "bash"
15
- }
16
- }
@@ -1,55 +0,0 @@
1
- import type { FlowStatus } from './FlowStatus';
2
- import type { FlowValue } from './FlowValue';
3
- import type { ScriptArgs } from './ScriptArgs';
4
- export 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
- email: string;
35
- visible_to_owner: boolean;
36
- mem_peak?: number;
37
- tag: string;
38
- };
39
- export declare namespace QueuedJob {
40
- enum job_kind {
41
- SCRIPT = "script",
42
- PREVIEW = "preview",
43
- DEPENDENCIES = "dependencies",
44
- FLOW = "flow",
45
- FLOWPREVIEW = "flowpreview",
46
- SCRIPT_HUB = "script_hub",
47
- IDENTITY = "identity"
48
- }
49
- enum language {
50
- PYTHON3 = "python3",
51
- DENO = "deno",
52
- GO = "go",
53
- BASH = "bash"
54
- }
55
- }
@@ -1,18 +0,0 @@
1
- import type { InputTransform } from './InputTransform';
2
- export type RawScript = {
3
- input_transforms: Record<string, InputTransform>;
4
- content: string;
5
- language: RawScript.language;
6
- path?: string;
7
- lock?: string;
8
- type: 'rawscript';
9
- tag?: string;
10
- };
11
- export declare namespace RawScript {
12
- enum language {
13
- DENO = "deno",
14
- PYTHON3 = "python3",
15
- GO = "go",
16
- BASH = "bash"
17
- }
18
- }
@@ -1,9 +0,0 @@
1
- export type Resource = {
2
- workspace_id?: string;
3
- path: string;
4
- description?: string;
5
- resource_type: string;
6
- value?: any;
7
- is_oauth: boolean;
8
- extra_perms?: Record<string, boolean>;
9
- };
@@ -1,6 +0,0 @@
1
- export type ResourceType = {
2
- workspace_id?: string;
3
- name: string;
4
- schema?: any;
5
- description?: string;
6
- };
@@ -1,11 +0,0 @@
1
- export type Retry = {
2
- constant?: {
3
- attempts?: number;
4
- seconds?: number;
5
- };
6
- exponential?: {
7
- attempts?: number;
8
- multiplier?: number;
9
- seconds?: number;
10
- };
11
- };
@@ -1,5 +0,0 @@
1
- export declare enum RunnableType {
2
- SCRIPT_HASH = "ScriptHash",
3
- SCRIPT_PATH = "ScriptPath",
4
- FLOW_PATH = "FlowPath"
5
- }
@@ -1,15 +0,0 @@
1
- import type { ScriptArgs } from './ScriptArgs';
2
- export type Schedule = {
3
- path: string;
4
- edited_by: string;
5
- edited_at: string;
6
- schedule: string;
7
- timezone: string;
8
- enabled: boolean;
9
- script_path: string;
10
- is_flow: boolean;
11
- args?: ScriptArgs;
12
- extra_perms: Record<string, boolean>;
13
- email: string;
14
- error?: string;
15
- };
@@ -1,43 +0,0 @@
1
- export 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
- kind: Script.kind;
24
- starred: boolean;
25
- tag?: string;
26
- has_draft?: boolean;
27
- draft_only?: boolean;
28
- };
29
- export declare namespace Script {
30
- enum language {
31
- PYTHON3 = "python3",
32
- DENO = "deno",
33
- GO = "go",
34
- BASH = "bash"
35
- }
36
- enum kind {
37
- SCRIPT = "script",
38
- FAILURE = "failure",
39
- TRIGGER = "trigger",
40
- COMMAND = "command",
41
- APPROVAL = "approval"
42
- }
43
- }
@@ -1 +0,0 @@
1
- export type ScriptArgs = Record<string, any>;
@@ -1,8 +0,0 @@
1
- export type SlackToken = {
2
- access_token: string;
3
- team_id: string;
4
- team_name: string;
5
- bot: {
6
- bot_access_token?: string;
7
- };
8
- };
@@ -1,4 +0,0 @@
1
- export type StaticTransform = {
2
- value?: any;
3
- type: 'static';
4
- };
@@ -1,6 +0,0 @@
1
- export type TokenResponse = {
2
- access_token: string;
3
- expires_in?: number;
4
- refresh_token?: string;
5
- scope?: Array<string>;
6
- };
@@ -1,7 +0,0 @@
1
- export type TruncatedToken = {
2
- label?: string;
3
- expiration?: string;
4
- token_prefix: string;
5
- created_at: string;
6
- last_used_at: string;
7
- };
@@ -1,5 +0,0 @@
1
- export type UpdateInput = {
2
- id: string;
3
- name: string;
4
- is_public: boolean;
5
- };
@@ -1,3 +0,0 @@
1
- export type Usage = {
2
- executions?: number;
3
- };
@@ -1,14 +0,0 @@
1
- import type { Usage } from './Usage';
2
- export type User = {
3
- email: string;
4
- username: string;
5
- is_admin: boolean;
6
- is_super_admin: boolean;
7
- created_at: string;
8
- operator: boolean;
9
- disabled: boolean;
10
- groups?: Array<string>;
11
- folders: Array<string>;
12
- folders_owners: Array<string>;
13
- usage?: Usage;
14
- };
@@ -1,8 +0,0 @@
1
- export type UserWorkspaceList = {
2
- email: string;
3
- workspaces: Array<{
4
- id: string;
5
- name: string;
6
- username: string;
7
- }>;
8
- };
@@ -1,8 +0,0 @@
1
- export type WorkerPing = {
2
- worker: string;
3
- worker_instance: string;
4
- last_ping?: number;
5
- started_at: string;
6
- ip: string;
7
- jobs_executed: number;
8
- };
@@ -1,6 +0,0 @@
1
- export type Workspace = {
2
- id: string;
3
- name: string;
4
- owner: string;
5
- domain?: string;
6
- };
@@ -1,6 +0,0 @@
1
- export type WorkspaceInvite = {
2
- workspace_id: string;
3
- email: string;
4
- is_admin: boolean;
5
- operator: boolean;
6
- };
@@ -1,39 +0,0 @@
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
- /**
13
- * new user
14
- */
15
- requestBody: NewUser;
16
- }): CancelablePromise<string>;
17
- /**
18
- * update user (require admin privilege)
19
- * @returns string edited user
20
- * @throws ApiError
21
- */
22
- static updateUser({ workspace, username, requestBody, }: {
23
- workspace: string;
24
- username: string;
25
- /**
26
- * new user
27
- */
28
- requestBody: EditWorkspaceUser;
29
- }): CancelablePromise<string>;
30
- /**
31
- * delete user (require admin privilege)
32
- * @returns string delete user
33
- * @throws ApiError
34
- */
35
- static deleteUser({ workspace, username, }: {
36
- workspace: string;
37
- username: string;
38
- }): CancelablePromise<string>;
39
- }