windmill-client 0.3.5 → 0.3.7

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 (153) hide show
  1. package/dist/index.d.ts +1 -0
  2. package/dist/index.js +3 -1
  3. package/package.json +9 -2
  4. package/build.sh +0 -8
  5. package/client.ts +0 -364
  6. package/publish.sh +0 -5
  7. package/src/client.ts +0 -364
  8. package/src/core/ApiError.ts +0 -25
  9. package/src/core/ApiRequestOptions.ts +0 -17
  10. package/src/core/ApiResult.ts +0 -11
  11. package/src/core/CancelablePromise.ts +0 -131
  12. package/src/core/OpenAPI.ts +0 -32
  13. package/src/core/request.ts +0 -322
  14. package/src/index.ts +0 -148
  15. package/src/models/AccountId.ts +0 -6
  16. package/src/models/ActionKind.ts +0 -14
  17. package/src/models/After.ts +0 -9
  18. package/src/models/AppWithLastVersion.ts +0 -32
  19. package/src/models/AppWithLastVersionWDraft.ts +0 -12
  20. package/src/models/ArgsFilter.ts +0 -9
  21. package/src/models/AuditLog.ts +0 -43
  22. package/src/models/Before.ts +0 -9
  23. package/src/models/BranchAll.ts +0 -17
  24. package/src/models/BranchOne.ts +0 -17
  25. package/src/models/ClientName.ts +0 -6
  26. package/src/models/CompletedJob.ts +0 -73
  27. package/src/models/ContextualVariable.ts +0 -11
  28. package/src/models/CreateInput.ts +0 -10
  29. package/src/models/CreateResource.ts +0 -12
  30. package/src/models/CreateVariable.ts +0 -14
  31. package/src/models/CreateWorkspace.ts +0 -11
  32. package/src/models/CreatedBy.ts +0 -9
  33. package/src/models/EditResource.ts +0 -11
  34. package/src/models/EditResourceType.ts +0 -10
  35. package/src/models/EditSchedule.ts +0 -14
  36. package/src/models/EditVariable.ts +0 -12
  37. package/src/models/EditWorkspaceUser.ts +0 -11
  38. package/src/models/Flow.ts +0 -10
  39. package/src/models/FlowMetadata.ts +0 -17
  40. package/src/models/FlowModule.ts +0 -33
  41. package/src/models/FlowModuleValue.ts +0 -17
  42. package/src/models/FlowPreview.ts +0 -14
  43. package/src/models/FlowStatus.ts +0 -19
  44. package/src/models/FlowStatusModule.ts +0 -44
  45. package/src/models/FlowValue.ts +0 -13
  46. package/src/models/Folder.ts +0 -11
  47. package/src/models/ForloopFlow.ts +0 -16
  48. package/src/models/GlobalUserInfo.ts +0 -24
  49. package/src/models/Graphql.ts +0 -9
  50. package/src/models/Group.ts +0 -12
  51. package/src/models/Http.ts +0 -9
  52. package/src/models/Identity.ts +0 -10
  53. package/src/models/IncludeHeader.ts +0 -11
  54. package/src/models/Input.ts +0 -14
  55. package/src/models/InputId.ts +0 -6
  56. package/src/models/InputTransform.ts +0 -10
  57. package/src/models/JavascriptTransform.ts +0 -10
  58. package/src/models/Job.ts +0 -22
  59. package/src/models/JobId.ts +0 -6
  60. package/src/models/JobKinds.ts +0 -9
  61. package/src/models/ListableApp.ts +0 -28
  62. package/src/models/ListableRawApp.ts +0 -15
  63. package/src/models/ListableResource.ts +0 -20
  64. package/src/models/ListableVariable.ts +0 -20
  65. package/src/models/Login.ts +0 -10
  66. package/src/models/MainArgSignature.ts +0 -43
  67. package/src/models/Name.ts +0 -6
  68. package/src/models/NewJobId.ts +0 -9
  69. package/src/models/NewSchedule.ts +0 -18
  70. package/src/models/NewScript.ts +0 -44
  71. package/src/models/NewScriptWithDraft.ts +0 -12
  72. package/src/models/NewToken.ts +0 -11
  73. package/src/models/NewTokenImpersonate.ts +0 -11
  74. package/src/models/NewUser.ts +0 -11
  75. package/src/models/OpenFlow.ts +0 -14
  76. package/src/models/OpenFlowWPath.ts +0 -11
  77. package/src/models/Operation.ts +0 -9
  78. package/src/models/OrderDesc.ts +0 -9
  79. package/src/models/Page.ts +0 -9
  80. package/src/models/ParentJob.ts +0 -9
  81. package/src/models/Path.ts +0 -6
  82. package/src/models/PathFlow.ts +0 -13
  83. package/src/models/PathId.ts +0 -6
  84. package/src/models/PathScript.ts +0 -14
  85. package/src/models/Payload.ts +0 -11
  86. package/src/models/PerPage.ts +0 -9
  87. package/src/models/Policy.ts +0 -23
  88. package/src/models/Preview.ts +0 -37
  89. package/src/models/QueueLimit.ts +0 -10
  90. package/src/models/QueuedJob.ts +0 -71
  91. package/src/models/RawScript.ts +0 -31
  92. package/src/models/Resource.ts +0 -15
  93. package/src/models/ResourceName.ts +0 -9
  94. package/src/models/ResourceType.ts +0 -12
  95. package/src/models/ResultFilter.ts +0 -9
  96. package/src/models/Retry.ts +0 -17
  97. package/src/models/RunnableId.ts +0 -6
  98. package/src/models/RunnableType.ts +0 -10
  99. package/src/models/RunnableTypeQuery.ts +0 -8
  100. package/src/models/Running.ts +0 -9
  101. package/src/models/Schedule.ts +0 -23
  102. package/src/models/SchedulePath.ts +0 -9
  103. package/src/models/ScheduleWJobs.ts +0 -15
  104. package/src/models/Script.ts +0 -58
  105. package/src/models/ScriptArgs.ts +0 -6
  106. package/src/models/ScriptExactHash.ts +0 -9
  107. package/src/models/ScriptExactPath.ts +0 -9
  108. package/src/models/ScriptHash.ts +0 -6
  109. package/src/models/ScriptPath.ts +0 -6
  110. package/src/models/ScriptStartPath.ts +0 -9
  111. package/src/models/SlackToken.ts +0 -14
  112. package/src/models/StartedAfter.ts +0 -9
  113. package/src/models/StartedBefore.ts +0 -9
  114. package/src/models/StaticTransform.ts +0 -10
  115. package/src/models/Success.ts +0 -9
  116. package/src/models/Suspended.ts +0 -9
  117. package/src/models/Tag.ts +0 -9
  118. package/src/models/Token.ts +0 -6
  119. package/src/models/TokenResponse.ts +0 -12
  120. package/src/models/TruncatedToken.ts +0 -14
  121. package/src/models/UpdateInput.ts +0 -11
  122. package/src/models/Usage.ts +0 -9
  123. package/src/models/User.ts +0 -21
  124. package/src/models/UserWorkspaceList.ts +0 -14
  125. package/src/models/Username.ts +0 -9
  126. package/src/models/VersionId.ts +0 -6
  127. package/src/models/WorkerPing.ts +0 -14
  128. package/src/models/Workspace.ts +0 -12
  129. package/src/models/WorkspaceId.ts +0 -6
  130. package/src/models/WorkspaceInvite.ts +0 -12
  131. package/src/services/AdminService.ts +0 -91
  132. package/src/services/AppService.ts +0 -385
  133. package/src/services/AuditService.ts +0 -104
  134. package/src/services/CaptureService.ts +0 -80
  135. package/src/services/DraftService.ts +0 -63
  136. package/src/services/FavoriteService.ts +0 -63
  137. package/src/services/FlowService.ts +0 -369
  138. package/src/services/FolderService.ts +0 -270
  139. package/src/services/GranularAclService.ts +0 -105
  140. package/src/services/GroupService.ts +0 -239
  141. package/src/services/InputService.ts +0 -176
  142. package/src/services/JobService.ts +0 -1471
  143. package/src/services/OauthService.ts +0 -198
  144. package/src/services/RawAppService.ts +0 -210
  145. package/src/services/ResourceService.ts +0 -401
  146. package/src/services/ScheduleService.ts +0 -258
  147. package/src/services/ScriptService.ts +0 -517
  148. package/src/services/SettingsService.ts +0 -59
  149. package/src/services/UserService.ts +0 -614
  150. package/src/services/VariableService.ts +0 -221
  151. package/src/services/WorkerService.ts +0 -53
  152. package/src/services/WorkspaceService.ts +0 -494
  153. package/tsconfig.json +0 -110
@@ -1,221 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do no edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- import type { ContextualVariable } from '../models/ContextualVariable';
6
- import type { CreateVariable } from '../models/CreateVariable';
7
- import type { EditVariable } from '../models/EditVariable';
8
- import type { ListableVariable } from '../models/ListableVariable';
9
-
10
- import type { CancelablePromise } from '../core/CancelablePromise';
11
- import { OpenAPI } from '../core/OpenAPI';
12
- import { request as __request } from '../core/request';
13
-
14
- export class VariableService {
15
-
16
- /**
17
- * create variable
18
- * @returns string variable created
19
- * @throws ApiError
20
- */
21
- public static createVariable({
22
- workspace,
23
- requestBody,
24
- alreadyEncrypted,
25
- }: {
26
- workspace: string,
27
- /**
28
- * new variable
29
- */
30
- requestBody: CreateVariable,
31
- alreadyEncrypted?: boolean,
32
- }): CancelablePromise<string> {
33
- return __request(OpenAPI, {
34
- method: 'POST',
35
- url: '/w/{workspace}/variables/create',
36
- path: {
37
- 'workspace': workspace,
38
- },
39
- query: {
40
- 'already_encrypted': alreadyEncrypted,
41
- },
42
- body: requestBody,
43
- mediaType: 'application/json',
44
- });
45
- }
46
-
47
- /**
48
- * encrypt value
49
- * @returns string encrypted value
50
- * @throws ApiError
51
- */
52
- public static encryptValue({
53
- workspace,
54
- requestBody,
55
- }: {
56
- workspace: string,
57
- /**
58
- * new variable
59
- */
60
- requestBody: string,
61
- }): CancelablePromise<string> {
62
- return __request(OpenAPI, {
63
- method: 'POST',
64
- url: '/w/{workspace}/variables/encrypt',
65
- path: {
66
- 'workspace': workspace,
67
- },
68
- body: requestBody,
69
- mediaType: 'application/json',
70
- });
71
- }
72
-
73
- /**
74
- * delete variable
75
- * @returns string variable deleted
76
- * @throws ApiError
77
- */
78
- public static deleteVariable({
79
- workspace,
80
- path,
81
- }: {
82
- workspace: string,
83
- path: string,
84
- }): CancelablePromise<string> {
85
- return __request(OpenAPI, {
86
- method: 'DELETE',
87
- url: '/w/{workspace}/variables/delete/{path}',
88
- path: {
89
- 'workspace': workspace,
90
- 'path': path,
91
- },
92
- });
93
- }
94
-
95
- /**
96
- * update variable
97
- * @returns string variable updated
98
- * @throws ApiError
99
- */
100
- public static updateVariable({
101
- workspace,
102
- path,
103
- requestBody,
104
- alreadyEncrypted,
105
- }: {
106
- workspace: string,
107
- path: string,
108
- /**
109
- * updated variable
110
- */
111
- requestBody: EditVariable,
112
- alreadyEncrypted?: boolean,
113
- }): CancelablePromise<string> {
114
- return __request(OpenAPI, {
115
- method: 'POST',
116
- url: '/w/{workspace}/variables/update/{path}',
117
- path: {
118
- 'workspace': workspace,
119
- 'path': path,
120
- },
121
- query: {
122
- 'already_encrypted': alreadyEncrypted,
123
- },
124
- body: requestBody,
125
- mediaType: 'application/json',
126
- });
127
- }
128
-
129
- /**
130
- * get variable
131
- * @returns ListableVariable variable
132
- * @throws ApiError
133
- */
134
- public static getVariable({
135
- workspace,
136
- path,
137
- decryptSecret,
138
- }: {
139
- workspace: string,
140
- path: string,
141
- /**
142
- * ask to decrypt secret if this variable is secret
143
- * (if not secret no effect, default: true)
144
- *
145
- */
146
- decryptSecret?: boolean,
147
- }): CancelablePromise<ListableVariable> {
148
- return __request(OpenAPI, {
149
- method: 'GET',
150
- url: '/w/{workspace}/variables/get/{path}',
151
- path: {
152
- 'workspace': workspace,
153
- 'path': path,
154
- },
155
- query: {
156
- 'decrypt_secret': decryptSecret,
157
- },
158
- });
159
- }
160
-
161
- /**
162
- * does variable exists at path
163
- * @returns boolean variable
164
- * @throws ApiError
165
- */
166
- public static existsVariable({
167
- workspace,
168
- path,
169
- }: {
170
- workspace: string,
171
- path: string,
172
- }): CancelablePromise<boolean> {
173
- return __request(OpenAPI, {
174
- method: 'GET',
175
- url: '/w/{workspace}/variables/exists/{path}',
176
- path: {
177
- 'workspace': workspace,
178
- 'path': path,
179
- },
180
- });
181
- }
182
-
183
- /**
184
- * list variables
185
- * @returns ListableVariable variable list
186
- * @throws ApiError
187
- */
188
- public static listVariable({
189
- workspace,
190
- }: {
191
- workspace: string,
192
- }): CancelablePromise<Array<ListableVariable>> {
193
- return __request(OpenAPI, {
194
- method: 'GET',
195
- url: '/w/{workspace}/variables/list',
196
- path: {
197
- 'workspace': workspace,
198
- },
199
- });
200
- }
201
-
202
- /**
203
- * list contextual variables
204
- * @returns ContextualVariable contextual variable list
205
- * @throws ApiError
206
- */
207
- public static listContextualVariables({
208
- workspace,
209
- }: {
210
- workspace: string,
211
- }): CancelablePromise<Array<ContextualVariable>> {
212
- return __request(OpenAPI, {
213
- method: 'GET',
214
- url: '/w/{workspace}/variables/list_contextual',
215
- path: {
216
- 'workspace': workspace,
217
- },
218
- });
219
- }
220
-
221
- }
@@ -1,53 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do no edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- import type { WorkerPing } from '../models/WorkerPing';
6
-
7
- import type { CancelablePromise } from '../core/CancelablePromise';
8
- import { OpenAPI } from '../core/OpenAPI';
9
- import { request as __request } from '../core/request';
10
-
11
- export class WorkerService {
12
-
13
- /**
14
- * get all instance custom tags (tags are used to dispatch jobs to different worker groups)
15
- * @returns string list of custom tags
16
- * @throws ApiError
17
- */
18
- public static getCustomTags(): CancelablePromise<Array<string>> {
19
- return __request(OpenAPI, {
20
- method: 'GET',
21
- url: '/workers/custom_tags',
22
- });
23
- }
24
-
25
- /**
26
- * list workers
27
- * @returns WorkerPing a list of workers
28
- * @throws ApiError
29
- */
30
- public static listWorkers({
31
- page,
32
- perPage,
33
- }: {
34
- /**
35
- * which page to return (start at 1, default 1)
36
- */
37
- page?: number,
38
- /**
39
- * number of items to return for a given page (default 30, max 100)
40
- */
41
- perPage?: number,
42
- }): CancelablePromise<Array<WorkerPing>> {
43
- return __request(OpenAPI, {
44
- method: 'GET',
45
- url: '/workers/list',
46
- query: {
47
- 'page': page,
48
- 'per_page': perPage,
49
- },
50
- });
51
- }
52
-
53
- }