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.
Files changed (184) hide show
  1. package/LICENSE +661 -0
  2. package/common.d.ts +29 -0
  3. package/components/ArgInfo.svelte +48 -0
  4. package/components/ArgInput.svelte +277 -0
  5. package/components/AutosizedTextarea.svelte +34 -0
  6. package/components/Badge.svelte +12 -0
  7. package/components/Button.svelte +82 -0
  8. package/components/ButtonAndDropdown.svelte +25 -0
  9. package/components/CenteredPage.svelte +5 -0
  10. package/components/ChevronButton.svelte +21 -0
  11. package/components/DisplayResult.svelte +101 -0
  12. package/components/Dropdown.svelte +108 -0
  13. package/components/Editor.svelte +370 -0
  14. package/components/FieldHeader.svelte +21 -0
  15. package/components/FlowBuilder.svelte +202 -0
  16. package/components/FlowEditor.svelte +95 -0
  17. package/components/FlowPreview.svelte +141 -0
  18. package/components/FlowStatusViewer.svelte +137 -0
  19. package/components/GroupModal.svelte +90 -0
  20. package/components/IconedResourceType.svelte +32 -0
  21. package/components/InviteGlobalUser.svelte +56 -0
  22. package/components/InviteUser.svelte +48 -0
  23. package/components/ItemPicker.svelte +58 -0
  24. package/components/JobStatus.svelte +38 -0
  25. package/components/Modal.svelte +94 -0
  26. package/components/ModuleStep.svelte +64 -0
  27. package/components/Multiselect.svelte +327 -0
  28. package/components/ObjectResourceInput.svelte +62 -0
  29. package/components/ObjectTypeNarrowing.svelte +25 -0
  30. package/components/PageHeader.svelte +29 -0
  31. package/components/Password.svelte +45 -0
  32. package/components/Path.svelte +129 -0
  33. package/components/RadioButton.svelte +117 -0
  34. package/components/Required.svelte +11 -0
  35. package/components/ResourceEditor.svelte +260 -0
  36. package/components/ResourcePicker.svelte +21 -0
  37. package/components/ResourceTypePicker.svelte +71 -0
  38. package/components/RunForm.svelte +127 -0
  39. package/components/SchemaEditor.svelte +221 -0
  40. package/components/SchemaForm.svelte +166 -0
  41. package/components/SchemaModal.svelte +160 -0
  42. package/components/SchemaViewer.svelte +76 -0
  43. package/components/ScriptBuilder.svelte +293 -0
  44. package/components/ScriptEditor.svelte +669 -0
  45. package/components/ScriptPicker.svelte +110 -0
  46. package/components/ScriptSchema.svelte +71 -0
  47. package/components/ShareModal.svelte +135 -0
  48. package/components/SharedBadge.svelte +54 -0
  49. package/components/StringTypeNarrowing.svelte +101 -0
  50. package/components/Switch.svelte +61 -0
  51. package/components/TableCustom.svelte +39 -0
  52. package/components/TableSimple.svelte +66 -0
  53. package/components/Tabs.svelte +21 -0
  54. package/components/Tooltip.svelte +93 -0
  55. package/components/VariableEditor.svelte +159 -0
  56. package/components/icons/DbIcon.svelte +12 -0
  57. package/components/icons/Mail.svelte +62 -0
  58. package/components/icons/Mysql.svelte +77 -0
  59. package/components/icons/PostgresIcon.svelte +57 -0
  60. package/components/icons/Slack.svelte +26 -0
  61. package/gen/core/ApiError.d.ts +8 -0
  62. package/gen/core/ApiRequestOptions.d.ts +13 -0
  63. package/gen/core/ApiResult.d.ts +7 -0
  64. package/gen/core/CancelablePromise.d.ts +26 -0
  65. package/gen/core/OpenAPI.d.ts +16 -0
  66. package/gen/core/request.d.ts +13 -0
  67. package/gen/index.d.ts +59 -0
  68. package/gen/models/AuditLog.d.ts +32 -0
  69. package/gen/models/CompletedJob.d.ts +48 -0
  70. package/gen/models/ContextualVariable.d.ts +5 -0
  71. package/gen/models/CreateResource.d.ts +6 -0
  72. package/gen/models/CreateVariable.d.ts +6 -0
  73. package/gen/models/CreateWorkspace.d.ts +6 -0
  74. package/gen/models/EditResource.d.ts +5 -0
  75. package/gen/models/EditResourceType.d.ts +4 -0
  76. package/gen/models/EditSchedule.d.ts +7 -0
  77. package/gen/models/EditVariable.d.ts +6 -0
  78. package/gen/models/EditWorkspaceUser.d.ts +3 -0
  79. package/gen/models/Flow.d.ts +13 -0
  80. package/gen/models/FlowModule.d.ts +6 -0
  81. package/gen/models/FlowModuleValue.d.ts +10 -0
  82. package/gen/models/FlowPreview.d.ts +7 -0
  83. package/gen/models/FlowStatus.d.ts +6 -0
  84. package/gen/models/FlowStatusModule.d.ts +15 -0
  85. package/gen/models/FlowValue.d.ts +5 -0
  86. package/gen/models/GlobalUserInfo.d.ts +14 -0
  87. package/gen/models/Group.d.ts +6 -0
  88. package/gen/models/InputTransform.d.ts +12 -0
  89. package/gen/models/Job.d.ts +11 -0
  90. package/gen/models/ListableVariable.d.ts +8 -0
  91. package/gen/models/Login.d.ts +4 -0
  92. package/gen/models/MainArgSignature.d.ts +14 -0
  93. package/gen/models/NewSchedule.d.ts +9 -0
  94. package/gen/models/NewToken.d.ts +4 -0
  95. package/gen/models/NewUser.d.ts +5 -0
  96. package/gen/models/Preview.d.ts +13 -0
  97. package/gen/models/QueuedJob.d.ts +47 -0
  98. package/gen/models/Resource.d.ts +8 -0
  99. package/gen/models/ResourceType.d.ts +6 -0
  100. package/gen/models/Schedule.d.ts +13 -0
  101. package/gen/models/Script.d.ts +29 -0
  102. package/gen/models/ScriptArgs.d.ts +1 -0
  103. package/gen/models/TruncatedToken.d.ts +7 -0
  104. package/gen/models/User.d.ts +10 -0
  105. package/gen/models/UserWorkspaceList.d.ts +8 -0
  106. package/gen/models/WorkerPing.d.ts +8 -0
  107. package/gen/models/Workspace.d.ts +6 -0
  108. package/gen/models/WorkspaceInvite.d.ts +5 -0
  109. package/gen/services/AdminService.d.ts +35 -0
  110. package/gen/services/AuditService.d.ts +37 -0
  111. package/gen/services/FlowService.d.ts +82 -0
  112. package/gen/services/GranularAclService.d.ts +42 -0
  113. package/gen/services/GroupService.d.ts +94 -0
  114. package/gen/services/JobService.d.ts +217 -0
  115. package/gen/services/ResourceService.d.ts +116 -0
  116. package/gen/services/ScheduleService.d.ts +73 -0
  117. package/gen/services/ScriptService.d.ts +165 -0
  118. package/gen/services/SettingsService.d.ts +15 -0
  119. package/gen/services/UserService.d.ts +211 -0
  120. package/gen/services/VariableService.d.ts +66 -0
  121. package/gen/services/WorkerService.d.ts +15 -0
  122. package/gen/services/WorkspaceService.d.ts +137 -0
  123. package/infer.d.ts +2 -0
  124. package/lib/components/ArgInfo.svelte.d.ts +16 -0
  125. package/lib/components/ArgInput.svelte.d.ts +37 -0
  126. package/lib/components/AutosizedTextarea.svelte.d.ts +19 -0
  127. package/lib/components/Badge.svelte.d.ts +20 -0
  128. package/lib/components/Button.svelte.d.ts +23 -0
  129. package/lib/components/ButtonAndDropdown.svelte.d.ts +23 -0
  130. package/lib/components/CenteredPage.svelte.d.ts +23 -0
  131. package/lib/components/ChevronButton.svelte.d.ts +19 -0
  132. package/lib/components/DisplayResult.svelte.d.ts +16 -0
  133. package/lib/components/Dropdown.svelte.d.ts +22 -0
  134. package/lib/components/Editor.svelte.d.ts +38 -0
  135. package/lib/components/FieldHeader.svelte.d.ts +23 -0
  136. package/lib/components/FlowBuilder.svelte.d.ts +18 -0
  137. package/lib/components/FlowEditor.svelte.d.ts +19 -0
  138. package/lib/components/FlowPreview.svelte.d.ts +21 -0
  139. package/lib/components/FlowStatusViewer.svelte.d.ts +18 -0
  140. package/lib/components/GroupModal.svelte.d.ts +17 -0
  141. package/lib/components/IconedResourceType.svelte.d.ts +19 -0
  142. package/lib/components/InviteGlobalUser.svelte.d.ts +19 -0
  143. package/lib/components/InviteUser.svelte.d.ts +19 -0
  144. package/lib/components/ItemPicker.svelte.d.ts +24 -0
  145. package/lib/components/JobStatus.svelte.d.ts +17 -0
  146. package/lib/components/Modal.svelte.d.ts +28 -0
  147. package/lib/components/ModuleStep.svelte.d.ts +26 -0
  148. package/lib/components/Multiselect.svelte.d.ts +33 -0
  149. package/lib/components/ObjectResourceInput.svelte.d.ts +17 -0
  150. package/lib/components/ObjectTypeNarrowing.svelte.d.ts +16 -0
  151. package/lib/components/PageHeader.svelte.d.ts +20 -0
  152. package/lib/components/Password.svelte.d.ts +18 -0
  153. package/lib/components/Path.svelte.d.ts +26 -0
  154. package/lib/components/RadioButton.svelte.d.ts +21 -0
  155. package/lib/components/Required.svelte.d.ts +17 -0
  156. package/lib/components/ResourceEditor.svelte.d.ts +22 -0
  157. package/lib/components/ResourcePicker.svelte.d.ts +17 -0
  158. package/lib/components/ResourceTypePicker.svelte.d.ts +19 -0
  159. package/lib/components/RunForm.svelte.d.ts +22 -0
  160. package/lib/components/SchemaEditor.svelte.d.ts +22 -0
  161. package/lib/components/SchemaForm.svelte.d.ts +23 -0
  162. package/lib/components/SchemaModal.svelte.d.ts +44 -0
  163. package/lib/components/SchemaViewer.svelte.d.ts +17 -0
  164. package/lib/components/ScriptBuilder.svelte.d.ts +20 -0
  165. package/lib/components/ScriptEditor.svelte.d.ts +28 -0
  166. package/lib/components/ScriptPicker.svelte.d.ts +21 -0
  167. package/lib/components/ScriptSchema.svelte.d.ts +22 -0
  168. package/lib/components/ShareModal.svelte.d.ts +21 -0
  169. package/lib/components/SharedBadge.svelte.d.ts +17 -0
  170. package/lib/components/StringTypeNarrowing.svelte.d.ts +18 -0
  171. package/lib/components/Switch.svelte.d.ts +31 -0
  172. package/lib/components/TableCustom.svelte.d.ts +25 -0
  173. package/lib/components/TableSimple.svelte.d.ts +24 -0
  174. package/lib/components/Tabs.svelte.d.ts +20 -0
  175. package/lib/components/Tooltip.svelte.d.ts +20 -0
  176. package/lib/components/VariableEditor.svelte.d.ts +21 -0
  177. package/lib/components/icons/DbIcon.svelte.d.ts +17 -0
  178. package/lib/components/icons/Mail.svelte.d.ts +17 -0
  179. package/lib/components/icons/Mysql.svelte.d.ts +17 -0
  180. package/lib/components/icons/PostgresIcon.svelte.d.ts +17 -0
  181. package/lib/components/icons/Slack.svelte.d.ts +17 -0
  182. package/package.json +110 -0
  183. package/stores.d.ts +19 -0
  184. package/utils.d.ts +60 -0
@@ -0,0 +1,165 @@
1
+ import type { MainArgSignature } from '../models/MainArgSignature';
2
+ import type { Script } from '../models/Script';
3
+ import type { CancelablePromise } from '../core/CancelablePromise';
4
+ export declare class ScriptService {
5
+ /**
6
+ * list all available hub scripts
7
+ * @returns any hub scripts list
8
+ * @throws ApiError
9
+ */
10
+ static listHubScripts(): CancelablePromise<Array<{
11
+ id: number;
12
+ summary: string;
13
+ app: string;
14
+ approved: boolean;
15
+ }>>;
16
+ /**
17
+ * get hub script content by path
18
+ * @returns string script details
19
+ * @throws ApiError
20
+ */
21
+ static getHubScriptContentByPath({ path, }: {
22
+ path: string;
23
+ }): CancelablePromise<string>;
24
+ /**
25
+ * list all available scripts
26
+ * @returns Script All available scripts
27
+ * @throws ApiError
28
+ */
29
+ static listScripts({ workspace, page, perPage, orderDesc, createdBy, pathStart, pathExact, firstParentHash, lastParentHash, parentHash, showArchived, isTemplate, }: {
30
+ workspace: string;
31
+ /** which page to return (start at 1, default 1) **/
32
+ page?: number;
33
+ /** number of items to return for a given page (default 30, max 100) **/
34
+ perPage?: number;
35
+ /** order by desc order (default true) **/
36
+ orderDesc?: boolean;
37
+ /** mask to filter exact matching user creator **/
38
+ createdBy?: string;
39
+ /** mask to filter matching starting parh **/
40
+ pathStart?: string;
41
+ /** mask to filter exact matching path **/
42
+ pathExact?: string;
43
+ /** mask to filter scripts whom first direct parent has exact hash **/
44
+ firstParentHash?: string;
45
+ /** mask to filter scripts whom last parent in the chain has exact hash.
46
+ * Beware that each script stores only a limited number of parents. Hence
47
+ * the last parent hash for a script is not necessarily its top-most parent.
48
+ * To find the top-most parent you will have to jump from last to last hash
49
+ * until finding the parent
50
+ * **/
51
+ lastParentHash?: string;
52
+ /** is the hash present in the array of stored parent hashes for this script.
53
+ * The same warning applies than for last_parent_hash. A script only store a
54
+ * limited number of direct parent
55
+ * **/
56
+ parentHash?: string;
57
+ /** (default false)
58
+ * show also the archived files.
59
+ * when multiple archived hash share the same path, only the ones with the latest create_at
60
+ * are displayed.
61
+ * **/
62
+ showArchived?: boolean;
63
+ /** (default regardless)
64
+ * if true show only the templates
65
+ * if false show only the non templates
66
+ * if not defined, show all regardless of if the script is a template
67
+ * **/
68
+ isTemplate?: boolean;
69
+ }): CancelablePromise<Array<Script>>;
70
+ /**
71
+ * create script
72
+ * @returns string script created
73
+ * @throws ApiError
74
+ */
75
+ static createScript({ workspace, requestBody, }: {
76
+ workspace: string;
77
+ /** Partially filled script **/
78
+ requestBody: {
79
+ path: string;
80
+ parent_hash?: string;
81
+ summary: string;
82
+ description: string;
83
+ content: string;
84
+ schema?: any;
85
+ is_template?: boolean;
86
+ lock?: Array<string>;
87
+ language: 'python3' | 'deno';
88
+ };
89
+ }): CancelablePromise<string>;
90
+ /**
91
+ * inspect python code to infer jsonschema of arguments
92
+ * @returns MainArgSignature parsed args
93
+ * @throws ApiError
94
+ */
95
+ static pythonToJsonschema({ requestBody, }: {
96
+ /** python code with the main function **/
97
+ requestBody: string;
98
+ }): CancelablePromise<MainArgSignature>;
99
+ /**
100
+ * inspect deno code to infer jsonschema of arguments
101
+ * @returns MainArgSignature parsed args
102
+ * @throws ApiError
103
+ */
104
+ static denoToJsonschema({ requestBody, }: {
105
+ /** deno code with the main function **/
106
+ requestBody: string;
107
+ }): CancelablePromise<MainArgSignature>;
108
+ /**
109
+ * archive script by path
110
+ * @returns string script archived
111
+ * @throws ApiError
112
+ */
113
+ static archiveScriptByPath({ workspace, path, }: {
114
+ workspace: string;
115
+ path: string;
116
+ }): CancelablePromise<string>;
117
+ /**
118
+ * archive script by hash
119
+ * @returns Script script details
120
+ * @throws ApiError
121
+ */
122
+ static archiveScriptByHash({ workspace, hash, }: {
123
+ workspace: string;
124
+ hash: string;
125
+ }): CancelablePromise<Script>;
126
+ /**
127
+ * delete script by hash (erase content but keep hash)
128
+ * @returns Script script details
129
+ * @throws ApiError
130
+ */
131
+ static deleteScriptByHash({ workspace, hash, }: {
132
+ workspace: string;
133
+ hash: string;
134
+ }): CancelablePromise<Script>;
135
+ /**
136
+ * get script by path
137
+ * @returns Script script details
138
+ * @throws ApiError
139
+ */
140
+ static getScriptByPath({ workspace, path, }: {
141
+ workspace: string;
142
+ path: string;
143
+ }): CancelablePromise<Script>;
144
+ /**
145
+ * get script by hash
146
+ * @returns Script script details
147
+ * @throws ApiError
148
+ */
149
+ static getScriptByHash({ workspace, hash, }: {
150
+ workspace: string;
151
+ hash: string;
152
+ }): CancelablePromise<Script>;
153
+ /**
154
+ * get script deployment status
155
+ * @returns any script details
156
+ * @throws ApiError
157
+ */
158
+ static getScriptDeploymentStatus({ workspace, hash, }: {
159
+ workspace: string;
160
+ hash: string;
161
+ }): CancelablePromise<{
162
+ lock?: string;
163
+ lock_error_logs?: string;
164
+ }>;
165
+ }
@@ -0,0 +1,15 @@
1
+ import type { CancelablePromise } from '../core/CancelablePromise';
2
+ export declare class SettingsService {
3
+ /**
4
+ * get backend version
5
+ * @returns string git version of backend
6
+ * @throws ApiError
7
+ */
8
+ static backendVersion(): CancelablePromise<string>;
9
+ /**
10
+ * get openapi yaml spec
11
+ * @returns string openapi yaml file content
12
+ * @throws ApiError
13
+ */
14
+ static getOpenApiYaml(): CancelablePromise<string>;
15
+ }
@@ -0,0 +1,211 @@
1
+ import type { EditWorkspaceUser } from '../models/EditWorkspaceUser';
2
+ import type { GlobalUserInfo } from '../models/GlobalUserInfo';
3
+ import type { Login } from '../models/Login';
4
+ import type { NewToken } from '../models/NewToken';
5
+ import type { NewUser } from '../models/NewUser';
6
+ import type { TruncatedToken } from '../models/TruncatedToken';
7
+ import type { User } from '../models/User';
8
+ import type { WorkspaceInvite } from '../models/WorkspaceInvite';
9
+ import type { CancelablePromise } from '../core/CancelablePromise';
10
+ export declare class UserService {
11
+ /**
12
+ * login with password
13
+ * @returns string Successfully authenticated. The session ID is returned in a cookie named `token` and as plaintext response. Preferred method of authorization is through the bearer token. The cookie is only for browser convenience.
14
+ *
15
+ * @throws ApiError
16
+ */
17
+ static login({ requestBody, }: {
18
+ /** Partially filled script **/
19
+ requestBody: Login;
20
+ }): CancelablePromise<string>;
21
+ /**
22
+ * create user (require admin privilege)
23
+ * @returns string user created
24
+ * @throws ApiError
25
+ */
26
+ static createUser({ workspace, requestBody, }: {
27
+ workspace: string;
28
+ /** new user **/
29
+ requestBody: NewUser;
30
+ }): CancelablePromise<string>;
31
+ /**
32
+ * update user (require admin privilege)
33
+ * @returns string edited user
34
+ * @throws ApiError
35
+ */
36
+ static updateUser({ workspace, username, requestBody, }: {
37
+ workspace: string;
38
+ username: string;
39
+ /** new user **/
40
+ requestBody: EditWorkspaceUser;
41
+ }): CancelablePromise<string>;
42
+ /**
43
+ * set password
44
+ * @returns string password set
45
+ * @throws ApiError
46
+ */
47
+ static setPassword({ requestBody, }: {
48
+ /** set password **/
49
+ requestBody: {
50
+ password: string;
51
+ };
52
+ }): CancelablePromise<string>;
53
+ /**
54
+ * create user
55
+ * @returns string user created
56
+ * @throws ApiError
57
+ */
58
+ static createUserGlobally({ requestBody, }: {
59
+ /** user info **/
60
+ requestBody: {
61
+ email: string;
62
+ password: string;
63
+ super_admin: boolean;
64
+ name?: string;
65
+ company?: string;
66
+ };
67
+ }): CancelablePromise<string>;
68
+ /**
69
+ * global update user (require super admin)
70
+ * @returns string user updated
71
+ * @throws ApiError
72
+ */
73
+ static globalUserUpdate({ email, requestBody, }: {
74
+ email: string;
75
+ /** new user info **/
76
+ requestBody: {
77
+ is_super_admin?: boolean;
78
+ };
79
+ }): CancelablePromise<string>;
80
+ /**
81
+ * delete user (require admin privilege)
82
+ * @returns string delete user
83
+ * @throws ApiError
84
+ */
85
+ static deleteUser({ workspace, username, }: {
86
+ workspace: string;
87
+ username: string;
88
+ }): CancelablePromise<string>;
89
+ /**
90
+ * logout
91
+ * @returns string logout
92
+ * @throws ApiError
93
+ */
94
+ static logout(): CancelablePromise<string>;
95
+ /**
96
+ * get current user email (if logged in)
97
+ * @returns string user email
98
+ * @throws ApiError
99
+ */
100
+ static getCurrentEmail(): CancelablePromise<string>;
101
+ /**
102
+ * get current global whoami (if logged in)
103
+ * @returns GlobalUserInfo user email
104
+ * @throws ApiError
105
+ */
106
+ static globalWhoami(): CancelablePromise<GlobalUserInfo>;
107
+ /**
108
+ * list all workspace invites
109
+ * @returns WorkspaceInvite list all workspace invites
110
+ * @throws ApiError
111
+ */
112
+ static listWorkspaceInvites(): CancelablePromise<Array<WorkspaceInvite>>;
113
+ /**
114
+ * whoami
115
+ * @returns User user
116
+ * @throws ApiError
117
+ */
118
+ static whoami({ workspace, }: {
119
+ workspace: string;
120
+ }): CancelablePromise<User>;
121
+ /**
122
+ * leave workspace
123
+ * @returns string status
124
+ * @throws ApiError
125
+ */
126
+ static leaveWorkspace({ workspace, }: {
127
+ workspace: string;
128
+ }): CancelablePromise<string>;
129
+ /**
130
+ * accept invite to workspace
131
+ * @returns string status
132
+ * @throws ApiError
133
+ */
134
+ static acceptInvite({ requestBody, }: {
135
+ /** accept invite **/
136
+ requestBody: {
137
+ workspace_id: string;
138
+ username: string;
139
+ };
140
+ }): CancelablePromise<string>;
141
+ /**
142
+ * decline invite to workspace
143
+ * @returns string status
144
+ * @throws ApiError
145
+ */
146
+ static declineInvite({ requestBody, }: {
147
+ /** decline invite **/
148
+ requestBody: {
149
+ workspace_id: string;
150
+ };
151
+ }): CancelablePromise<string>;
152
+ /**
153
+ * whois
154
+ * @returns User user
155
+ * @throws ApiError
156
+ */
157
+ static whois({ workspace, username, }: {
158
+ workspace: string;
159
+ username: string;
160
+ }): CancelablePromise<User>;
161
+ /**
162
+ * list all users as super admin (require to be super amdin)
163
+ * @returns GlobalUserInfo user
164
+ * @throws ApiError
165
+ */
166
+ static listUsersAsSuperAdmin({ page, perPage, }: {
167
+ /** which page to return (start at 1, default 1) **/
168
+ page?: number;
169
+ /** number of items to return for a given page (default 30, max 100) **/
170
+ perPage?: number;
171
+ }): CancelablePromise<Array<GlobalUserInfo>>;
172
+ /**
173
+ * list users
174
+ * @returns User user
175
+ * @throws ApiError
176
+ */
177
+ static listUsers({ workspace, }: {
178
+ workspace: string;
179
+ }): CancelablePromise<Array<User>>;
180
+ /**
181
+ * list usernames
182
+ * @returns string user
183
+ * @throws ApiError
184
+ */
185
+ static listUsernames({ workspace, }: {
186
+ workspace: string;
187
+ }): CancelablePromise<Array<string>>;
188
+ /**
189
+ * create token
190
+ * @returns string token created
191
+ * @throws ApiError
192
+ */
193
+ static createToken({ requestBody, }: {
194
+ /** new token **/
195
+ requestBody: NewToken;
196
+ }): CancelablePromise<string>;
197
+ /**
198
+ * delete token
199
+ * @returns string delete token
200
+ * @throws ApiError
201
+ */
202
+ static deleteToken({ tokenPrefix, }: {
203
+ tokenPrefix: string;
204
+ }): CancelablePromise<string>;
205
+ /**
206
+ * list token
207
+ * @returns TruncatedToken truncated token
208
+ * @throws ApiError
209
+ */
210
+ static listTokens(): CancelablePromise<Array<TruncatedToken>>;
211
+ }
@@ -0,0 +1,66 @@
1
+ import type { ContextualVariable } from '../models/ContextualVariable';
2
+ import type { CreateVariable } from '../models/CreateVariable';
3
+ import type { EditVariable } from '../models/EditVariable';
4
+ import type { ListableVariable } from '../models/ListableVariable';
5
+ import type { CancelablePromise } from '../core/CancelablePromise';
6
+ export declare class VariableService {
7
+ /**
8
+ * create variable
9
+ * @returns string variable created
10
+ * @throws ApiError
11
+ */
12
+ static createVariable({ workspace, requestBody, }: {
13
+ workspace: string;
14
+ /** new variable **/
15
+ requestBody: CreateVariable;
16
+ }): CancelablePromise<string>;
17
+ /**
18
+ * delete variable
19
+ * @returns string variable deleted
20
+ * @throws ApiError
21
+ */
22
+ static deleteVariable({ workspace, path, }: {
23
+ workspace: string;
24
+ path: string;
25
+ }): CancelablePromise<string>;
26
+ /**
27
+ * update variable
28
+ * @returns string variable updated
29
+ * @throws ApiError
30
+ */
31
+ static updateVariable({ workspace, path, requestBody, }: {
32
+ workspace: string;
33
+ path: string;
34
+ /** updated variable **/
35
+ requestBody: EditVariable;
36
+ }): CancelablePromise<string>;
37
+ /**
38
+ * get variable
39
+ * @returns ListableVariable variable
40
+ * @throws ApiError
41
+ */
42
+ static getVariable({ workspace, path, decryptSecret, }: {
43
+ workspace: string;
44
+ path: string;
45
+ /** ask to decrypt secret if this variable is secret
46
+ * (if not secret no effect, default: true)
47
+ * **/
48
+ decryptSecret?: boolean;
49
+ }): CancelablePromise<ListableVariable>;
50
+ /**
51
+ * list variables
52
+ * @returns ListableVariable variable list
53
+ * @throws ApiError
54
+ */
55
+ static listVariable({ workspace, }: {
56
+ workspace: string;
57
+ }): CancelablePromise<Array<ListableVariable>>;
58
+ /**
59
+ * list contextual variables
60
+ * @returns ContextualVariable contextual variable list
61
+ * @throws ApiError
62
+ */
63
+ static listContextualVariables({ workspace, }: {
64
+ workspace: string;
65
+ }): CancelablePromise<Array<ContextualVariable>>;
66
+ }
@@ -0,0 +1,15 @@
1
+ import type { WorkerPing } from '../models/WorkerPing';
2
+ import type { CancelablePromise } from '../core/CancelablePromise';
3
+ export declare class WorkerService {
4
+ /**
5
+ * list workers
6
+ * @returns WorkerPing a list of workers
7
+ * @throws ApiError
8
+ */
9
+ static listWorkers({ page, perPage, }: {
10
+ /** which page to return (start at 1, default 1) **/
11
+ page?: number;
12
+ /** number of items to return for a given page (default 30, max 100) **/
13
+ perPage?: number;
14
+ }): CancelablePromise<Array<WorkerPing>>;
15
+ }
@@ -0,0 +1,137 @@
1
+ import type { CreateWorkspace } from '../models/CreateWorkspace';
2
+ import type { UserWorkspaceList } from '../models/UserWorkspaceList';
3
+ import type { Workspace } from '../models/Workspace';
4
+ import type { WorkspaceInvite } from '../models/WorkspaceInvite';
5
+ import type { CancelablePromise } from '../core/CancelablePromise';
6
+ export declare class WorkspaceService {
7
+ /**
8
+ * list all workspaces visible to me
9
+ * @returns Workspace all workspaces
10
+ * @throws ApiError
11
+ */
12
+ static listWorkspaces(): CancelablePromise<Array<Workspace>>;
13
+ /**
14
+ * list all workspaces visible to me with user info
15
+ * @returns UserWorkspaceList workspace with associated username
16
+ * @throws ApiError
17
+ */
18
+ static listUserWorkspaces(): CancelablePromise<UserWorkspaceList>;
19
+ /**
20
+ * list all workspaces as super admin (require to be super amdin)
21
+ * @returns Workspace workspaces
22
+ * @throws ApiError
23
+ */
24
+ static listWorkspacesAsSuperAdmin({ page, perPage, }: {
25
+ /** which page to return (start at 1, default 1) **/
26
+ page?: number;
27
+ /** number of items to return for a given page (default 30, max 100) **/
28
+ perPage?: number;
29
+ }): CancelablePromise<Array<Workspace>>;
30
+ /**
31
+ * create workspace
32
+ * @returns string token created
33
+ * @throws ApiError
34
+ */
35
+ static createWorkspace({ requestBody, }: {
36
+ /** new token **/
37
+ requestBody: CreateWorkspace;
38
+ }): CancelablePromise<string>;
39
+ /**
40
+ * validate id
41
+ * @returns string status
42
+ * @throws ApiError
43
+ */
44
+ static validateId({ requestBody, }: {
45
+ /** id of workspace **/
46
+ requestBody: {
47
+ id: string;
48
+ };
49
+ }): CancelablePromise<string>;
50
+ /**
51
+ * validate username
52
+ * @returns string status
53
+ * @throws ApiError
54
+ */
55
+ static validateUsername({ requestBody, }: {
56
+ requestBody: {
57
+ id: string;
58
+ username: string;
59
+ };
60
+ }): CancelablePromise<string>;
61
+ /**
62
+ * invite user to workspace
63
+ * @returns string status
64
+ * @throws ApiError
65
+ */
66
+ static inviteUser({ workspace, requestBody, }: {
67
+ workspace: string;
68
+ /** WorkspaceInvite **/
69
+ requestBody: {
70
+ email: string;
71
+ is_admin: boolean;
72
+ };
73
+ }): CancelablePromise<string>;
74
+ /**
75
+ * delete user invite
76
+ * @returns string status
77
+ * @throws ApiError
78
+ */
79
+ static deleteInvite({ workspace, requestBody, }: {
80
+ workspace: string;
81
+ /** WorkspaceInvite **/
82
+ requestBody: {
83
+ email: string;
84
+ is_admin: boolean;
85
+ };
86
+ }): CancelablePromise<string>;
87
+ /**
88
+ * delete workspace
89
+ * @returns string status
90
+ * @throws ApiError
91
+ */
92
+ static deleteWorkspace({ workspace, }: {
93
+ workspace: string;
94
+ }): CancelablePromise<string>;
95
+ /**
96
+ * list pending invites for a workspace
97
+ * @returns WorkspaceInvite user
98
+ * @throws ApiError
99
+ */
100
+ static listPendingInvites({ workspace, }: {
101
+ workspace: string;
102
+ }): CancelablePromise<Array<WorkspaceInvite>>;
103
+ /**
104
+ * get settings
105
+ * @returns any status
106
+ * @throws ApiError
107
+ */
108
+ static getSettings({ workspace, }: {
109
+ workspace: string;
110
+ }): CancelablePromise<{
111
+ workspace_id?: string;
112
+ slack_name?: string;
113
+ slack_team_id?: string;
114
+ slack_command_script?: string;
115
+ }>;
116
+ /**
117
+ * edit slack command
118
+ * @returns string status
119
+ * @throws ApiError
120
+ */
121
+ static editSlackCommand({ workspace, requestBody, }: {
122
+ workspace: string;
123
+ /** WorkspaceInvite **/
124
+ requestBody: {
125
+ slack_command_script?: string;
126
+ };
127
+ }): CancelablePromise<string>;
128
+ /**
129
+ * disconnect client
130
+ * @returns string disconnected client
131
+ * @throws ApiError
132
+ */
133
+ static disconnectClient({ workspace, clientName, }: {
134
+ workspace: string;
135
+ clientName: string;
136
+ }): CancelablePromise<string>;
137
+ }
package/infer.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ import type { Schema } from './common';
2
+ export declare function inferArgs(language: 'python3' | 'deno', code: string, schema: Schema): Promise<void>;
@@ -0,0 +1,16 @@
1
+ import { SvelteComponentTyped } from "svelte";
2
+ declare const __propDef: {
3
+ props: {
4
+ value: any;
5
+ };
6
+ events: {
7
+ [evt: string]: CustomEvent<any>;
8
+ };
9
+ slots: {};
10
+ };
11
+ export declare type ArgInfoProps = typeof __propDef.props;
12
+ export declare type ArgInfoEvents = typeof __propDef.events;
13
+ export declare type ArgInfoSlots = typeof __propDef.slots;
14
+ export default class ArgInfo extends SvelteComponentTyped<ArgInfoProps, ArgInfoEvents, ArgInfoSlots> {
15
+ }
16
+ export {};
@@ -0,0 +1,37 @@
1
+ import { SvelteComponentTyped } from "svelte";
2
+ declare const __propDef: {
3
+ props: {
4
+ label?: string | undefined;
5
+ value: any;
6
+ defaultValue?: any;
7
+ description?: string | undefined;
8
+ format?: string | undefined;
9
+ contentEncoding?: string | undefined;
10
+ type?: string | undefined;
11
+ required?: boolean | undefined;
12
+ pattern: undefined | string;
13
+ valid?: boolean | undefined;
14
+ minRows?: number | undefined;
15
+ maxRows?: number | undefined;
16
+ enum_?: string[] | undefined;
17
+ disabled?: boolean | undefined;
18
+ editableSchema?: boolean | undefined;
19
+ itemsType?: {
20
+ type?: "string" | "number" | undefined;
21
+ contentEncoding?: string | undefined;
22
+ } | undefined;
23
+ displayHeader?: boolean | undefined;
24
+ evalValueToRaw?: (() => void) | undefined;
25
+ };
26
+ events: {
27
+ [evt: string]: CustomEvent<any>;
28
+ };
29
+ slots: {};
30
+ };
31
+ export declare type ArgInputProps = typeof __propDef.props;
32
+ export declare type ArgInputEvents = typeof __propDef.events;
33
+ export declare type ArgInputSlots = typeof __propDef.slots;
34
+ export default class ArgInput extends SvelteComponentTyped<ArgInputProps, ArgInputEvents, ArgInputSlots> {
35
+ get evalValueToRaw(): () => void;
36
+ }
37
+ export {};
@@ -0,0 +1,19 @@
1
+ import { SvelteComponentTyped } from "svelte";
2
+ declare const __propDef: {
3
+ props: {
4
+ value: string;
5
+ placeholder?: string | undefined;
6
+ minRows?: number | undefined;
7
+ maxRows?: number | undefined;
8
+ };
9
+ events: {
10
+ [evt: string]: CustomEvent<any>;
11
+ };
12
+ slots: {};
13
+ };
14
+ export declare type AutosizedTextareaProps = typeof __propDef.props;
15
+ export declare type AutosizedTextareaEvents = typeof __propDef.events;
16
+ export declare type AutosizedTextareaSlots = typeof __propDef.slots;
17
+ export default class AutosizedTextarea extends SvelteComponentTyped<AutosizedTextareaProps, AutosizedTextareaEvents, AutosizedTextareaSlots> {
18
+ }
19
+ export {};