windmill-client 0.2.0 → 0.2.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 (198) hide show
  1. package/dist/core/ApiError.d.ts +10 -0
  2. package/dist/core/ApiError.js +15 -0
  3. package/dist/core/ApiRequestOptions.d.ts +13 -0
  4. package/dist/core/ApiRequestOptions.js +2 -0
  5. package/dist/core/ApiResult.d.ts +7 -0
  6. package/dist/core/ApiResult.js +2 -0
  7. package/dist/core/CancelablePromise.d.ts +26 -0
  8. package/dist/core/CancelablePromise.js +94 -0
  9. package/dist/core/OpenAPI.d.ts +16 -0
  10. package/dist/core/OpenAPI.js +14 -0
  11. package/dist/core/request.d.ts +13 -0
  12. package/dist/core/request.js +269 -0
  13. package/dist/index.d.ts +95 -0
  14. package/dist/index.js +85 -0
  15. package/dist/models/AppWithLastVersion.d.ts +21 -0
  16. package/dist/models/AppWithLastVersion.js +15 -0
  17. package/dist/models/AppWithLastVersionWDraft.d.ts +5 -0
  18. package/dist/models/AppWithLastVersionWDraft.js +5 -0
  19. package/dist/models/AuditLog.d.ts +32 -0
  20. package/dist/models/AuditLog.js +32 -0
  21. package/dist/models/BranchAll.d.ts +10 -0
  22. package/dist/models/BranchAll.js +5 -0
  23. package/dist/models/BranchOne.d.ts +10 -0
  24. package/dist/models/BranchOne.js +5 -0
  25. package/dist/models/CompletedJob.d.ts +57 -0
  26. package/dist/models/CompletedJob.js +26 -0
  27. package/dist/models/ContextualVariable.d.ts +5 -0
  28. package/dist/models/ContextualVariable.js +5 -0
  29. package/dist/models/CreateInput.d.ts +4 -0
  30. package/dist/models/CreateInput.js +5 -0
  31. package/dist/models/CreateResource.d.ts +6 -0
  32. package/dist/models/CreateResource.js +5 -0
  33. package/dist/models/CreateVariable.d.ts +8 -0
  34. package/dist/models/CreateVariable.js +5 -0
  35. package/dist/models/CreateWorkspace.d.ts +5 -0
  36. package/dist/models/CreateWorkspace.js +5 -0
  37. package/dist/models/EditResource.d.ts +5 -0
  38. package/dist/models/EditResource.js +5 -0
  39. package/dist/models/EditResourceType.d.ts +4 -0
  40. package/dist/models/EditResourceType.js +5 -0
  41. package/dist/models/EditSchedule.d.ts +6 -0
  42. package/dist/models/EditSchedule.js +5 -0
  43. package/dist/models/EditVariable.d.ts +6 -0
  44. package/dist/models/EditVariable.js +5 -0
  45. package/dist/models/EditWorkspaceUser.d.ts +5 -0
  46. package/dist/models/EditWorkspaceUser.js +5 -0
  47. package/dist/models/Flow.d.ts +3 -0
  48. package/dist/models/Flow.js +5 -0
  49. package/dist/models/FlowMetadata.d.ts +11 -0
  50. package/dist/models/FlowMetadata.js +5 -0
  51. package/dist/models/FlowModule.d.ts +18 -0
  52. package/dist/models/FlowModule.js +5 -0
  53. package/dist/models/FlowModuleValue.d.ts +8 -0
  54. package/dist/models/FlowModuleValue.js +5 -0
  55. package/dist/models/FlowPreview.d.ts +7 -0
  56. package/dist/models/FlowPreview.js +5 -0
  57. package/dist/models/FlowStatus.d.ts +12 -0
  58. package/dist/models/FlowStatus.js +5 -0
  59. package/dist/models/FlowStatusModule.d.ts +34 -0
  60. package/dist/models/FlowStatusModule.js +18 -0
  61. package/dist/models/FlowValue.d.ts +6 -0
  62. package/dist/models/FlowValue.js +5 -0
  63. package/dist/models/Folder.d.ts +5 -0
  64. package/dist/models/Folder.js +5 -0
  65. package/dist/models/ForloopFlow.d.ts +9 -0
  66. package/dist/models/ForloopFlow.js +5 -0
  67. package/dist/models/GlobalUserInfo.d.ts +14 -0
  68. package/dist/models/GlobalUserInfo.js +14 -0
  69. package/dist/models/Group.d.ts +6 -0
  70. package/dist/models/Group.js +5 -0
  71. package/dist/models/Identity.d.ts +4 -0
  72. package/dist/models/Identity.js +5 -0
  73. package/dist/models/Input.d.ts +8 -0
  74. package/dist/models/Input.js +5 -0
  75. package/dist/models/InputTransform.d.ts +3 -0
  76. package/dist/models/InputTransform.js +5 -0
  77. package/dist/models/JavascriptTransform.d.ts +4 -0
  78. package/dist/models/JavascriptTransform.js +5 -0
  79. package/dist/models/Job.d.ts +11 -0
  80. package/dist/models/Job.js +14 -0
  81. package/dist/models/ListableApp.d.ts +18 -0
  82. package/dist/models/ListableApp.js +15 -0
  83. package/dist/models/ListableResource.d.ts +14 -0
  84. package/dist/models/ListableResource.js +5 -0
  85. package/dist/models/ListableVariable.d.ts +14 -0
  86. package/dist/models/ListableVariable.js +5 -0
  87. package/dist/models/Login.d.ts +4 -0
  88. package/dist/models/Login.js +5 -0
  89. package/dist/models/MainArgSignature.d.ts +33 -0
  90. package/dist/models/MainArgSignature.js +14 -0
  91. package/dist/models/NewSchedule.d.ts +10 -0
  92. package/dist/models/NewSchedule.js +5 -0
  93. package/dist/models/NewScript.d.ts +29 -0
  94. package/dist/models/NewScript.js +24 -0
  95. package/dist/models/NewScriptWithDraft.d.ts +5 -0
  96. package/dist/models/NewScriptWithDraft.js +5 -0
  97. package/dist/models/NewToken.d.ts +4 -0
  98. package/dist/models/NewToken.js +5 -0
  99. package/dist/models/NewTokenImpersonate.d.ts +5 -0
  100. package/dist/models/NewTokenImpersonate.js +5 -0
  101. package/dist/models/NewUser.d.ts +5 -0
  102. package/dist/models/NewUser.js +5 -0
  103. package/dist/models/OpenFlow.d.ts +7 -0
  104. package/dist/models/OpenFlow.js +5 -0
  105. package/dist/models/OpenFlowWPath.d.ts +4 -0
  106. package/dist/models/OpenFlowWPath.js +5 -0
  107. package/dist/models/PathFlow.d.ts +6 -0
  108. package/dist/models/PathFlow.js +5 -0
  109. package/dist/models/PathScript.d.ts +7 -0
  110. package/dist/models/PathScript.js +5 -0
  111. package/dist/models/Policy.d.ts +13 -0
  112. package/dist/models/Policy.js +15 -0
  113. package/dist/models/Preview.d.ts +16 -0
  114. package/dist/models/Preview.js +16 -0
  115. package/dist/models/QueuedJob.d.ts +55 -0
  116. package/dist/models/QueuedJob.js +26 -0
  117. package/dist/models/RawScript.d.ts +18 -0
  118. package/dist/models/RawScript.js +16 -0
  119. package/dist/models/Resource.d.ts +9 -0
  120. package/dist/models/Resource.js +5 -0
  121. package/dist/models/ResourceType.d.ts +6 -0
  122. package/dist/models/ResourceType.js +5 -0
  123. package/dist/models/Retry.d.ts +11 -0
  124. package/dist/models/Retry.js +5 -0
  125. package/dist/models/RunnableType.d.ts +5 -0
  126. package/dist/models/RunnableType.js +12 -0
  127. package/dist/models/Schedule.d.ts +15 -0
  128. package/dist/models/Schedule.js +5 -0
  129. package/dist/models/Script.d.ts +43 -0
  130. package/dist/models/Script.js +24 -0
  131. package/dist/models/ScriptArgs.d.ts +1 -0
  132. package/dist/models/ScriptArgs.js +5 -0
  133. package/dist/models/SlackToken.d.ts +8 -0
  134. package/dist/models/SlackToken.js +5 -0
  135. package/dist/models/StaticTransform.d.ts +4 -0
  136. package/dist/models/StaticTransform.js +5 -0
  137. package/dist/models/TokenResponse.d.ts +6 -0
  138. package/dist/models/TokenResponse.js +5 -0
  139. package/dist/models/TruncatedToken.d.ts +7 -0
  140. package/dist/models/TruncatedToken.js +5 -0
  141. package/dist/models/UpdateInput.d.ts +5 -0
  142. package/dist/models/UpdateInput.js +5 -0
  143. package/dist/models/Usage.d.ts +3 -0
  144. package/dist/models/Usage.js +5 -0
  145. package/dist/models/User.d.ts +14 -0
  146. package/dist/models/User.js +5 -0
  147. package/dist/models/UserWorkspaceList.d.ts +8 -0
  148. package/dist/models/UserWorkspaceList.js +5 -0
  149. package/dist/models/WorkerPing.d.ts +8 -0
  150. package/dist/models/WorkerPing.js +5 -0
  151. package/dist/models/Workspace.d.ts +6 -0
  152. package/dist/models/Workspace.js +5 -0
  153. package/dist/models/WorkspaceInvite.d.ts +6 -0
  154. package/dist/models/WorkspaceInvite.js +5 -0
  155. package/dist/services/AdminService.d.ts +39 -0
  156. package/dist/services/AdminService.js +56 -0
  157. package/dist/services/AppService.d.ts +194 -0
  158. package/dist/services/AppService.js +211 -0
  159. package/dist/services/AuditService.d.ts +53 -0
  160. package/dist/services/AuditService.js +47 -0
  161. package/dist/services/CaptureService.d.ts +30 -0
  162. package/dist/services/CaptureService.js +56 -0
  163. package/dist/services/DraftService.d.ts +16 -0
  164. package/dist/services/DraftService.js +24 -0
  165. package/dist/services/FavoriteService.d.ts +27 -0
  166. package/dist/services/FavoriteService.js +40 -0
  167. package/dist/services/FlowService.d.ts +186 -0
  168. package/dist/services/FlowService.js +200 -0
  169. package/dist/services/FolderService.d.ts +128 -0
  170. package/dist/services/FolderService.js +155 -0
  171. package/dist/services/GranularAclService.d.ts +46 -0
  172. package/dist/services/GranularAclService.js +60 -0
  173. package/dist/services/GroupService.d.ts +110 -0
  174. package/dist/services/GroupService.js +140 -0
  175. package/dist/services/InputService.d.ts +78 -0
  176. package/dist/services/InputService.js +99 -0
  177. package/dist/services/JobService.d.ts +636 -0
  178. package/dist/services/JobService.js +564 -0
  179. package/dist/services/OauthService.d.ts +95 -0
  180. package/dist/services/OauthService.js +124 -0
  181. package/dist/services/ResourceService.d.ts +177 -0
  182. package/dist/services/ResourceService.js +244 -0
  183. package/dist/services/ScheduleService.d.ts +103 -0
  184. package/dist/services/ScheduleService.js +134 -0
  185. package/dist/services/ScriptService.d.ts +303 -0
  186. package/dist/services/ScriptService.js +339 -0
  187. package/dist/services/SettingsService.d.ts +15 -0
  188. package/dist/services/SettingsService.js +30 -0
  189. package/dist/services/UserService.d.ts +284 -0
  190. package/dist/services/UserService.js +376 -0
  191. package/dist/services/VariableService.d.ts +83 -0
  192. package/dist/services/VariableService.js +123 -0
  193. package/dist/services/WorkerService.d.ts +25 -0
  194. package/dist/services/WorkerService.js +34 -0
  195. package/dist/services/WorkspaceService.d.ts +227 -0
  196. package/dist/services/WorkspaceService.js +275 -0
  197. package/package.json +1 -1
  198. package/tsconfig.json +1 -1
@@ -0,0 +1,134 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ScheduleService = void 0;
4
+ const OpenAPI_1 = require("../core/OpenAPI");
5
+ const request_1 = require("../core/request");
6
+ class ScheduleService {
7
+ /**
8
+ * preview schedule
9
+ * @returns string List of 5 estimated upcoming execution events (in UTC)
10
+ * @throws ApiError
11
+ */
12
+ static previewSchedule({ requestBody, }) {
13
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
14
+ method: 'POST',
15
+ url: '/schedules/preview',
16
+ body: requestBody,
17
+ mediaType: 'application/json',
18
+ });
19
+ }
20
+ /**
21
+ * create schedule
22
+ * @returns string schedule created
23
+ * @throws ApiError
24
+ */
25
+ static createSchedule({ workspace, requestBody, }) {
26
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
27
+ method: 'POST',
28
+ url: '/w/{workspace}/schedules/create',
29
+ path: {
30
+ 'workspace': workspace,
31
+ },
32
+ body: requestBody,
33
+ mediaType: 'application/json',
34
+ });
35
+ }
36
+ /**
37
+ * update schedule
38
+ * @returns string schedule updated
39
+ * @throws ApiError
40
+ */
41
+ static updateSchedule({ workspace, path, requestBody, }) {
42
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
43
+ method: 'POST',
44
+ url: '/w/{workspace}/schedules/update/{path}',
45
+ path: {
46
+ 'workspace': workspace,
47
+ 'path': path,
48
+ },
49
+ body: requestBody,
50
+ mediaType: 'application/json',
51
+ });
52
+ }
53
+ /**
54
+ * set enabled schedule
55
+ * @returns string schedule enabled set
56
+ * @throws ApiError
57
+ */
58
+ static setScheduleEnabled({ workspace, path, requestBody, }) {
59
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
60
+ method: 'POST',
61
+ url: '/w/{workspace}/schedules/setenabled/{path}',
62
+ path: {
63
+ 'workspace': workspace,
64
+ 'path': path,
65
+ },
66
+ body: requestBody,
67
+ mediaType: 'application/json',
68
+ });
69
+ }
70
+ /**
71
+ * delete schedule
72
+ * @returns string schedule deleted
73
+ * @throws ApiError
74
+ */
75
+ static deleteSchedule({ workspace, path, }) {
76
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
77
+ method: 'DELETE',
78
+ url: '/w/{workspace}/schedules/delete/{path}',
79
+ path: {
80
+ 'workspace': workspace,
81
+ 'path': path,
82
+ },
83
+ });
84
+ }
85
+ /**
86
+ * get schedule
87
+ * @returns Schedule schedule deleted
88
+ * @throws ApiError
89
+ */
90
+ static getSchedule({ workspace, path, }) {
91
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
92
+ method: 'GET',
93
+ url: '/w/{workspace}/schedules/get/{path}',
94
+ path: {
95
+ 'workspace': workspace,
96
+ 'path': path,
97
+ },
98
+ });
99
+ }
100
+ /**
101
+ * does schedule exists
102
+ * @returns boolean schedule exists
103
+ * @throws ApiError
104
+ */
105
+ static existsSchedule({ workspace, path, }) {
106
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
107
+ method: 'GET',
108
+ url: '/w/{workspace}/schedules/exists/{path}',
109
+ path: {
110
+ 'workspace': workspace,
111
+ 'path': path,
112
+ },
113
+ });
114
+ }
115
+ /**
116
+ * list schedules
117
+ * @returns Schedule schedule list
118
+ * @throws ApiError
119
+ */
120
+ static listSchedules({ workspace, page, perPage, }) {
121
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
122
+ method: 'GET',
123
+ url: '/w/{workspace}/schedules/list',
124
+ path: {
125
+ 'workspace': workspace,
126
+ },
127
+ query: {
128
+ 'page': page,
129
+ 'per_page': perPage,
130
+ },
131
+ });
132
+ }
133
+ }
134
+ exports.ScheduleService = ScheduleService;
@@ -0,0 +1,303 @@
1
+ import type { MainArgSignature } from '../models/MainArgSignature';
2
+ import type { NewScript } from '../models/NewScript';
3
+ import type { NewScriptWithDraft } from '../models/NewScriptWithDraft';
4
+ import type { Script } from '../models/Script';
5
+ import type { CancelablePromise } from '../core/CancelablePromise';
6
+ export declare class ScriptService {
7
+ /**
8
+ * list all available hub scripts
9
+ * @returns any hub scripts list
10
+ * @throws ApiError
11
+ */
12
+ static listHubScripts(): CancelablePromise<{
13
+ asks?: Array<{
14
+ id: number;
15
+ ask_id: number;
16
+ summary: string;
17
+ app: string;
18
+ approved: boolean;
19
+ kind: 'script' | 'failure' | 'trigger' | 'command' | 'approval';
20
+ votes: number;
21
+ views: number;
22
+ }>;
23
+ }>;
24
+ /**
25
+ * get hub script content by path
26
+ * @returns string script details
27
+ * @throws ApiError
28
+ */
29
+ static getHubScriptContentByPath({ path, }: {
30
+ path: string;
31
+ }): CancelablePromise<string>;
32
+ /**
33
+ * get full hub script by path
34
+ * @returns any script details
35
+ * @throws ApiError
36
+ */
37
+ static getHubScriptByPath({ path, }: {
38
+ path: string;
39
+ }): CancelablePromise<{
40
+ content: string;
41
+ lockfile?: string;
42
+ schema?: any;
43
+ language: 'deno' | 'python3' | 'go' | 'bash';
44
+ summary?: string;
45
+ }>;
46
+ /**
47
+ * list all available scripts
48
+ * @returns Script All available scripts
49
+ * @throws ApiError
50
+ */
51
+ static listScripts({ workspace, page, perPage, orderDesc, createdBy, pathStart, pathExact, firstParentHash, lastParentHash, parentHash, showArchived, isTemplate, kind, starredOnly, }: {
52
+ workspace: string;
53
+ /**
54
+ * which page to return (start at 1, default 1)
55
+ */
56
+ page?: number;
57
+ /**
58
+ * number of items to return for a given page (default 30, max 100)
59
+ */
60
+ perPage?: number;
61
+ /**
62
+ * order by desc order (default true)
63
+ */
64
+ orderDesc?: boolean;
65
+ /**
66
+ * mask to filter exact matching user creator
67
+ */
68
+ createdBy?: string;
69
+ /**
70
+ * mask to filter matching starting path
71
+ */
72
+ pathStart?: string;
73
+ /**
74
+ * mask to filter exact matching path
75
+ */
76
+ pathExact?: string;
77
+ /**
78
+ * mask to filter scripts whom first direct parent has exact hash
79
+ */
80
+ firstParentHash?: string;
81
+ /**
82
+ * mask to filter scripts whom last parent in the chain has exact hash.
83
+ * Beware that each script stores only a limited number of parents. Hence
84
+ * the last parent hash for a script is not necessarily its top-most parent.
85
+ * To find the top-most parent you will have to jump from last to last hash
86
+ * until finding the parent
87
+ *
88
+ */
89
+ lastParentHash?: string;
90
+ /**
91
+ * is the hash present in the array of stored parent hashes for this script.
92
+ * The same warning applies than for last_parent_hash. A script only store a
93
+ * limited number of direct parent
94
+ *
95
+ */
96
+ parentHash?: string;
97
+ /**
98
+ * (default false)
99
+ * show also the archived files.
100
+ * when multiple archived hash share the same path, only the ones with the latest create_at
101
+ * are
102
+ * ed.
103
+ *
104
+ */
105
+ showArchived?: boolean;
106
+ /**
107
+ * (default regardless)
108
+ * if true show only the templates
109
+ * if false show only the non templates
110
+ * if not defined, show all regardless of if the script is a template
111
+ *
112
+ */
113
+ isTemplate?: boolean;
114
+ /**
115
+ * (default regardless)
116
+ * script kind
117
+ *
118
+ */
119
+ kind?: string;
120
+ /**
121
+ * (default false)
122
+ * show only the starred items
123
+ *
124
+ */
125
+ starredOnly?: boolean;
126
+ }): CancelablePromise<Array<Script>>;
127
+ /**
128
+ * list all available scripts paths
129
+ * @returns string list of script paths
130
+ * @throws ApiError
131
+ */
132
+ static listScriptPaths({ workspace, }: {
133
+ workspace: string;
134
+ }): CancelablePromise<Array<string>>;
135
+ /**
136
+ * create script
137
+ * @returns string script created
138
+ * @throws ApiError
139
+ */
140
+ static createScript({ workspace, requestBody, }: {
141
+ workspace: string;
142
+ /**
143
+ * Partially filled script
144
+ */
145
+ requestBody: NewScript;
146
+ }): CancelablePromise<string>;
147
+ /**
148
+ * inspect python code to infer jsonschema of arguments
149
+ * @returns MainArgSignature parsed args
150
+ * @throws ApiError
151
+ */
152
+ static pythonToJsonschema({ requestBody, }: {
153
+ /**
154
+ * python code with the main function
155
+ */
156
+ requestBody: string;
157
+ }): CancelablePromise<MainArgSignature>;
158
+ /**
159
+ * inspect deno code to infer jsonschema of arguments
160
+ * @returns MainArgSignature parsed args
161
+ * @throws ApiError
162
+ */
163
+ static denoToJsonschema({ requestBody, }: {
164
+ /**
165
+ * deno code with the main function
166
+ */
167
+ requestBody: string;
168
+ }): CancelablePromise<MainArgSignature>;
169
+ /**
170
+ * inspect bash code to infer jsonschema of arguments
171
+ * @returns MainArgSignature parsed args
172
+ * @throws ApiError
173
+ */
174
+ static bashToJsonschema({ requestBody, }: {
175
+ /**
176
+ * bash code with the main function
177
+ */
178
+ requestBody: string;
179
+ }): CancelablePromise<MainArgSignature>;
180
+ /**
181
+ * inspect go code to infer jsonschema of arguments
182
+ * @returns MainArgSignature parsed args
183
+ * @throws ApiError
184
+ */
185
+ static goToJsonschema({ requestBody, }: {
186
+ /**
187
+ * go code with the main function
188
+ */
189
+ requestBody: string;
190
+ }): CancelablePromise<MainArgSignature>;
191
+ /**
192
+ * archive script by path
193
+ * @returns string script archived
194
+ * @throws ApiError
195
+ */
196
+ static archiveScriptByPath({ workspace, path, }: {
197
+ workspace: string;
198
+ path: string;
199
+ }): CancelablePromise<string>;
200
+ /**
201
+ * archive script by hash
202
+ * @returns Script script details
203
+ * @throws ApiError
204
+ */
205
+ static archiveScriptByHash({ workspace, hash, }: {
206
+ workspace: string;
207
+ hash: string;
208
+ }): CancelablePromise<Script>;
209
+ /**
210
+ * delete script by hash (erase content but keep hash, require admin)
211
+ * @returns Script script details
212
+ * @throws ApiError
213
+ */
214
+ static deleteScriptByHash({ workspace, hash, }: {
215
+ workspace: string;
216
+ hash: string;
217
+ }): CancelablePromise<Script>;
218
+ /**
219
+ * delete all scripts at a given path (require admin)
220
+ * @returns string script path
221
+ * @throws ApiError
222
+ */
223
+ static deleteScriptByPath({ workspace, path, }: {
224
+ workspace: string;
225
+ path: string;
226
+ }): CancelablePromise<string>;
227
+ /**
228
+ * get script by path
229
+ * @returns Script script details
230
+ * @throws ApiError
231
+ */
232
+ static getScriptByPath({ workspace, path, }: {
233
+ workspace: string;
234
+ path: string;
235
+ }): CancelablePromise<Script>;
236
+ /**
237
+ * get script by path with draft
238
+ * @returns NewScriptWithDraft script details
239
+ * @throws ApiError
240
+ */
241
+ static getScriptByPathWithDraft({ workspace, path, }: {
242
+ workspace: string;
243
+ path: string;
244
+ }): CancelablePromise<NewScriptWithDraft>;
245
+ /**
246
+ * raw script by path
247
+ * @returns string script content
248
+ * @throws ApiError
249
+ */
250
+ static rawScriptByPath({ workspace, path, }: {
251
+ workspace: string;
252
+ path: string;
253
+ }): CancelablePromise<string>;
254
+ /**
255
+ * raw script by path with a token (mostly used by lsp to be used with import maps to resolve scripts)
256
+ * @returns string script content
257
+ * @throws ApiError
258
+ */
259
+ static rawScriptByPathTokened({ workspace, token, path, }: {
260
+ workspace: string;
261
+ token: string;
262
+ path: string;
263
+ }): CancelablePromise<string>;
264
+ /**
265
+ * exists script by path
266
+ * @returns boolean does it exists
267
+ * @throws ApiError
268
+ */
269
+ static existsScriptByPath({ workspace, path, }: {
270
+ workspace: string;
271
+ path: string;
272
+ }): CancelablePromise<boolean>;
273
+ /**
274
+ * get script by hash
275
+ * @returns Script script details
276
+ * @throws ApiError
277
+ */
278
+ static getScriptByHash({ workspace, hash, }: {
279
+ workspace: string;
280
+ hash: string;
281
+ }): CancelablePromise<Script>;
282
+ /**
283
+ * raw script by hash
284
+ * @returns string script content
285
+ * @throws ApiError
286
+ */
287
+ static rawScriptByHash({ workspace, path, }: {
288
+ workspace: string;
289
+ path: string;
290
+ }): CancelablePromise<string>;
291
+ /**
292
+ * get script deployment status
293
+ * @returns any script details
294
+ * @throws ApiError
295
+ */
296
+ static getScriptDeploymentStatus({ workspace, hash, }: {
297
+ workspace: string;
298
+ hash: string;
299
+ }): CancelablePromise<{
300
+ lock?: string;
301
+ lock_error_logs?: string;
302
+ }>;
303
+ }