@hatchet-dev/typescript-sdk 0.1.11 → 0.1.13
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/clients/admin/admin-client.d.ts +72 -1
- package/clients/admin/admin-client.js +93 -2
- package/clients/admin/index.d.ts +1 -0
- package/clients/admin/index.js +17 -0
- package/clients/hatchet-client/client-config.d.ts +6 -0
- package/clients/hatchet-client/client-config.js +2 -0
- package/clients/hatchet-client/hatchet-client.d.ts +6 -2
- package/clients/hatchet-client/hatchet-client.js +8 -5
- package/clients/listener/listener-client.js +1 -1
- package/clients/rest/api.d.ts +4 -0
- package/clients/rest/api.js +13 -0
- package/clients/rest/generated/Api.d.ts +417 -0
- package/clients/rest/generated/Api.js +363 -0
- package/clients/rest/generated/data-contracts.d.ts +509 -0
- package/clients/rest/generated/data-contracts.js +54 -0
- package/clients/rest/generated/http-client.d.ts +41 -0
- package/clients/rest/generated/http-client.js +99 -0
- package/clients/rest/index.d.ts +8 -0
- package/clients/rest/index.js +35 -0
- package/clients/worker/worker.d.ts +3 -2
- package/clients/worker/worker.js +4 -0
- package/index.d.ts +2 -0
- package/index.js +2 -0
- package/package.json +12 -3
- package/protoc/workflows/workflows.d.ts +2 -0
- package/protoc/workflows/workflows.js +16 -2
- package/step.d.ts +10 -7
- package/step.js +6 -2
- package/util/config-loader/config-loader.d.ts +2 -2
- package/util/config-loader/config-loader.js +27 -7
- package/util/config-loader/token.d.ts +5 -0
- package/util/config-loader/token.js +26 -0
- package/workflow.d.ts +1 -1
|
@@ -0,0 +1,363 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/*
|
|
5
|
+
* ---------------------------------------------------------------
|
|
6
|
+
* ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
|
|
7
|
+
* ## ##
|
|
8
|
+
* ## AUTHOR: acacode ##
|
|
9
|
+
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
|
|
10
|
+
* ---------------------------------------------------------------
|
|
11
|
+
*/
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.Api = void 0;
|
|
14
|
+
const http_client_1 = require("./http-client");
|
|
15
|
+
class Api extends http_client_1.HttpClient {
|
|
16
|
+
constructor() {
|
|
17
|
+
super(...arguments);
|
|
18
|
+
/**
|
|
19
|
+
* @description Gets metadata for the Hatchet instance
|
|
20
|
+
*
|
|
21
|
+
* @tags Metadata
|
|
22
|
+
* @name MetadataGet
|
|
23
|
+
* @summary Get metadata
|
|
24
|
+
* @request GET:/api/v1/meta
|
|
25
|
+
*/
|
|
26
|
+
this.metadataGet = (params = {}) => this.request(Object.assign({ path: `/api/v1/meta`, method: 'GET', format: 'json' }, params));
|
|
27
|
+
/**
|
|
28
|
+
* @description Logs in a user.
|
|
29
|
+
*
|
|
30
|
+
* @tags User
|
|
31
|
+
* @name UserUpdateLogin
|
|
32
|
+
* @summary Login user
|
|
33
|
+
* @request POST:/api/v1/users/login
|
|
34
|
+
*/
|
|
35
|
+
this.userUpdateLogin = (data, params = {}) => this.request(Object.assign({ path: `/api/v1/users/login`, method: 'POST', body: data, type: http_client_1.ContentType.Json, format: 'json' }, params));
|
|
36
|
+
/**
|
|
37
|
+
* @description Starts the OAuth flow
|
|
38
|
+
*
|
|
39
|
+
* @tags User
|
|
40
|
+
* @name UserUpdateOauthStart
|
|
41
|
+
* @summary Start OAuth flow
|
|
42
|
+
* @request GET:/api/v1/users/google/start
|
|
43
|
+
*/
|
|
44
|
+
this.userUpdateOauthStart = (params = {}) => this.request(Object.assign({ path: `/api/v1/users/google/start`, method: 'GET' }, params));
|
|
45
|
+
/**
|
|
46
|
+
* @description Completes the OAuth flow
|
|
47
|
+
*
|
|
48
|
+
* @tags User
|
|
49
|
+
* @name UserUpdateOauthCallback
|
|
50
|
+
* @summary Complete OAuth flow
|
|
51
|
+
* @request GET:/api/v1/users/google/callback
|
|
52
|
+
*/
|
|
53
|
+
this.userUpdateOauthCallback = (params = {}) => this.request(Object.assign({ path: `/api/v1/users/google/callback`, method: 'GET' }, params));
|
|
54
|
+
/**
|
|
55
|
+
* @description Gets the current user
|
|
56
|
+
*
|
|
57
|
+
* @tags User
|
|
58
|
+
* @name UserGetCurrent
|
|
59
|
+
* @summary Get current user
|
|
60
|
+
* @request GET:/api/v1/users/current
|
|
61
|
+
* @secure
|
|
62
|
+
*/
|
|
63
|
+
this.userGetCurrent = (params = {}) => this.request(Object.assign({ path: `/api/v1/users/current`, method: 'GET', secure: true, format: 'json' }, params));
|
|
64
|
+
/**
|
|
65
|
+
* @description Registers a user.
|
|
66
|
+
*
|
|
67
|
+
* @tags User
|
|
68
|
+
* @name UserCreate
|
|
69
|
+
* @summary Register user
|
|
70
|
+
* @request POST:/api/v1/users/register
|
|
71
|
+
*/
|
|
72
|
+
this.userCreate = (data, params = {}) => this.request(Object.assign({ path: `/api/v1/users/register`, method: 'POST', body: data, type: http_client_1.ContentType.Json, format: 'json' }, params));
|
|
73
|
+
/**
|
|
74
|
+
* @description Logs out a user.
|
|
75
|
+
*
|
|
76
|
+
* @tags User
|
|
77
|
+
* @name UserUpdateLogout
|
|
78
|
+
* @summary Logout user
|
|
79
|
+
* @request POST:/api/v1/users/logout
|
|
80
|
+
* @secure
|
|
81
|
+
*/
|
|
82
|
+
this.userUpdateLogout = (params = {}) => this.request(Object.assign({ path: `/api/v1/users/logout`, method: 'POST', secure: true, format: 'json' }, params));
|
|
83
|
+
/**
|
|
84
|
+
* @description Lists all tenant memberships for the current user
|
|
85
|
+
*
|
|
86
|
+
* @tags User
|
|
87
|
+
* @name TenantMembershipsList
|
|
88
|
+
* @summary List tenant memberships
|
|
89
|
+
* @request GET:/api/v1/users/memberships
|
|
90
|
+
* @secure
|
|
91
|
+
*/
|
|
92
|
+
this.tenantMembershipsList = (params = {}) => this.request(Object.assign({ path: `/api/v1/users/memberships`, method: 'GET', secure: true, format: 'json' }, params));
|
|
93
|
+
/**
|
|
94
|
+
* @description Lists all tenant invites for the current user
|
|
95
|
+
*
|
|
96
|
+
* @tags Tenant
|
|
97
|
+
* @name UserListTenantInvites
|
|
98
|
+
* @summary List tenant invites
|
|
99
|
+
* @request GET:/api/v1/users/invites
|
|
100
|
+
* @secure
|
|
101
|
+
*/
|
|
102
|
+
this.userListTenantInvites = (params = {}) => this.request(Object.assign({ path: `/api/v1/users/invites`, method: 'GET', secure: true, format: 'json' }, params));
|
|
103
|
+
/**
|
|
104
|
+
* @description Accepts a tenant invite
|
|
105
|
+
*
|
|
106
|
+
* @tags Tenant
|
|
107
|
+
* @name TenantInviteAccept
|
|
108
|
+
* @summary Accept tenant invite
|
|
109
|
+
* @request POST:/api/v1/users/invites/accept
|
|
110
|
+
* @secure
|
|
111
|
+
*/
|
|
112
|
+
this.tenantInviteAccept = (data, params = {}) => this.request(Object.assign({ path: `/api/v1/users/invites/accept`, method: 'POST', body: data, secure: true, type: http_client_1.ContentType.Json }, params));
|
|
113
|
+
/**
|
|
114
|
+
* @description Rejects a tenant invite
|
|
115
|
+
*
|
|
116
|
+
* @tags Tenant
|
|
117
|
+
* @name TenantInviteReject
|
|
118
|
+
* @summary Reject tenant invite
|
|
119
|
+
* @request POST:/api/v1/users/invites/reject
|
|
120
|
+
* @secure
|
|
121
|
+
*/
|
|
122
|
+
this.tenantInviteReject = (data, params = {}) => this.request(Object.assign({ path: `/api/v1/users/invites/reject`, method: 'POST', body: data, secure: true, type: http_client_1.ContentType.Json }, params));
|
|
123
|
+
/**
|
|
124
|
+
* @description Creates a new tenant
|
|
125
|
+
*
|
|
126
|
+
* @tags Tenant
|
|
127
|
+
* @name TenantCreate
|
|
128
|
+
* @summary Create tenant
|
|
129
|
+
* @request POST:/api/v1/tenants
|
|
130
|
+
* @secure
|
|
131
|
+
*/
|
|
132
|
+
this.tenantCreate = (data, params = {}) => this.request(Object.assign({ path: `/api/v1/tenants`, method: 'POST', body: data, secure: true, type: http_client_1.ContentType.Json, format: 'json' }, params));
|
|
133
|
+
/**
|
|
134
|
+
* @description Creates a new tenant invite
|
|
135
|
+
*
|
|
136
|
+
* @tags Tenant
|
|
137
|
+
* @name TenantInviteCreate
|
|
138
|
+
* @summary Create tenant invite
|
|
139
|
+
* @request POST:/api/v1/tenants/{tenant}/invites
|
|
140
|
+
* @secure
|
|
141
|
+
*/
|
|
142
|
+
this.tenantInviteCreate = (tenant, data, params = {}) => this.request(Object.assign({ path: `/api/v1/tenants/${tenant}/invites`, method: 'POST', body: data, secure: true, type: http_client_1.ContentType.Json, format: 'json' }, params));
|
|
143
|
+
/**
|
|
144
|
+
* @description Gets a list of tenant invites
|
|
145
|
+
*
|
|
146
|
+
* @tags Tenant
|
|
147
|
+
* @name TenantInviteList
|
|
148
|
+
* @summary List tenant invites
|
|
149
|
+
* @request GET:/api/v1/tenants/{tenant}/invites
|
|
150
|
+
* @secure
|
|
151
|
+
*/
|
|
152
|
+
this.tenantInviteList = (tenant, params = {}) => this.request(Object.assign({ path: `/api/v1/tenants/${tenant}/invites`, method: 'GET', secure: true, format: 'json' }, params));
|
|
153
|
+
/**
|
|
154
|
+
* @description Updates a tenant invite
|
|
155
|
+
*
|
|
156
|
+
* @name TenantInviteUpdate
|
|
157
|
+
* @summary Update invite
|
|
158
|
+
* @request PATCH:/api/v1/tenants/{tenant}/invites/{tenant-invite}
|
|
159
|
+
* @secure
|
|
160
|
+
*/
|
|
161
|
+
this.tenantInviteUpdate = (tenant, tenantInvite, data, params = {}) => this.request(Object.assign({ path: `/api/v1/tenants/${tenant}/invites/${tenantInvite}`, method: 'PATCH', body: data, secure: true, type: http_client_1.ContentType.Json, format: 'json' }, params));
|
|
162
|
+
/**
|
|
163
|
+
* @description Deletes a tenant invite
|
|
164
|
+
*
|
|
165
|
+
* @name TenantInviteDelete
|
|
166
|
+
* @summary Delete invite
|
|
167
|
+
* @request DELETE:/api/v1/tenants/{tenant}/invites/{tenant-invite}
|
|
168
|
+
* @secure
|
|
169
|
+
*/
|
|
170
|
+
this.tenantInviteDelete = (tenant, tenantInvite, params = {}) => this.request(Object.assign({ path: `/api/v1/tenants/${tenant}/invites/${tenantInvite}`, method: 'DELETE', secure: true, format: 'json' }, params));
|
|
171
|
+
/**
|
|
172
|
+
* @description Create an API token for a tenant
|
|
173
|
+
*
|
|
174
|
+
* @tags API Token
|
|
175
|
+
* @name ApiTokenCreate
|
|
176
|
+
* @summary Create API Token
|
|
177
|
+
* @request POST:/api/v1/tenants/{tenant}/api-tokens
|
|
178
|
+
* @secure
|
|
179
|
+
*/
|
|
180
|
+
this.apiTokenCreate = (tenant, data, params = {}) => this.request(Object.assign({ path: `/api/v1/tenants/${tenant}/api-tokens`, method: 'POST', body: data, secure: true, type: http_client_1.ContentType.Json, format: 'json' }, params));
|
|
181
|
+
/**
|
|
182
|
+
* @description List API tokens for a tenant
|
|
183
|
+
*
|
|
184
|
+
* @tags API Token
|
|
185
|
+
* @name ApiTokenList
|
|
186
|
+
* @summary List API Tokens
|
|
187
|
+
* @request GET:/api/v1/tenants/{tenant}/api-tokens
|
|
188
|
+
* @secure
|
|
189
|
+
*/
|
|
190
|
+
this.apiTokenList = (tenant, params = {}) => this.request(Object.assign({ path: `/api/v1/tenants/${tenant}/api-tokens`, method: 'GET', secure: true, format: 'json' }, params));
|
|
191
|
+
/**
|
|
192
|
+
* @description Revoke an API token for a tenant
|
|
193
|
+
*
|
|
194
|
+
* @tags API Token
|
|
195
|
+
* @name ApiTokenUpdateRevoke
|
|
196
|
+
* @summary Revoke API Token
|
|
197
|
+
* @request POST:/api/v1/api-tokens/{api-token}
|
|
198
|
+
* @secure
|
|
199
|
+
*/
|
|
200
|
+
this.apiTokenUpdateRevoke = (apiToken, params = {}) => this.request(Object.assign({ path: `/api/v1/api-tokens/${apiToken}`, method: 'POST', secure: true }, params));
|
|
201
|
+
/**
|
|
202
|
+
* @description Lists all events for a tenant.
|
|
203
|
+
*
|
|
204
|
+
* @tags Event
|
|
205
|
+
* @name EventList
|
|
206
|
+
* @summary List events
|
|
207
|
+
* @request GET:/api/v1/tenants/{tenant}/events
|
|
208
|
+
* @secure
|
|
209
|
+
*/
|
|
210
|
+
this.eventList = (tenant, query, params = {}) => this.request(Object.assign({ path: `/api/v1/tenants/${tenant}/events`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
211
|
+
/**
|
|
212
|
+
* @description Replays a list of events.
|
|
213
|
+
*
|
|
214
|
+
* @tags Event
|
|
215
|
+
* @name EventUpdateReplay
|
|
216
|
+
* @summary Replay events
|
|
217
|
+
* @request POST:/api/v1/tenants/{tenant}/events/replay
|
|
218
|
+
* @secure
|
|
219
|
+
*/
|
|
220
|
+
this.eventUpdateReplay = (tenant, data, params = {}) => this.request(Object.assign({ path: `/api/v1/tenants/${tenant}/events/replay`, method: 'POST', body: data, secure: true, type: http_client_1.ContentType.Json, format: 'json' }, params));
|
|
221
|
+
/**
|
|
222
|
+
* @description Gets a list of tenant members
|
|
223
|
+
*
|
|
224
|
+
* @tags Tenant
|
|
225
|
+
* @name TenantMemberList
|
|
226
|
+
* @summary List tenant members
|
|
227
|
+
* @request GET:/api/v1/tenants/{tenant}/members
|
|
228
|
+
* @secure
|
|
229
|
+
*/
|
|
230
|
+
this.tenantMemberList = (tenant, params = {}) => this.request(Object.assign({ path: `/api/v1/tenants/${tenant}/members`, method: 'GET', secure: true, format: 'json' }, params));
|
|
231
|
+
/**
|
|
232
|
+
* @description Get the data for an event.
|
|
233
|
+
*
|
|
234
|
+
* @tags Event
|
|
235
|
+
* @name EventDataGet
|
|
236
|
+
* @summary Get event data
|
|
237
|
+
* @request GET:/api/v1/events/{event}/data
|
|
238
|
+
* @secure
|
|
239
|
+
*/
|
|
240
|
+
this.eventDataGet = (event, params = {}) => this.request(Object.assign({ path: `/api/v1/events/${event}/data`, method: 'GET', secure: true, format: 'json' }, params));
|
|
241
|
+
/**
|
|
242
|
+
* @description Lists all event keys for a tenant.
|
|
243
|
+
*
|
|
244
|
+
* @tags Event
|
|
245
|
+
* @name EventKeyList
|
|
246
|
+
* @summary List event keys
|
|
247
|
+
* @request GET:/api/v1/tenants/{tenant}/events/keys
|
|
248
|
+
* @secure
|
|
249
|
+
*/
|
|
250
|
+
this.eventKeyList = (tenant, params = {}) => this.request(Object.assign({ path: `/api/v1/tenants/${tenant}/events/keys`, method: 'GET', secure: true, format: 'json' }, params));
|
|
251
|
+
/**
|
|
252
|
+
* @description Get all workflows for a tenant
|
|
253
|
+
*
|
|
254
|
+
* @tags Workflow
|
|
255
|
+
* @name WorkflowList
|
|
256
|
+
* @summary Get workflows
|
|
257
|
+
* @request GET:/api/v1/tenants/{tenant}/workflows
|
|
258
|
+
* @secure
|
|
259
|
+
*/
|
|
260
|
+
this.workflowList = (tenant, params = {}) => this.request(Object.assign({ path: `/api/v1/tenants/${tenant}/workflows`, method: 'GET', secure: true, format: 'json' }, params));
|
|
261
|
+
/**
|
|
262
|
+
* @description Get a workflow for a tenant
|
|
263
|
+
*
|
|
264
|
+
* @tags Workflow
|
|
265
|
+
* @name WorkflowGet
|
|
266
|
+
* @summary Get workflow
|
|
267
|
+
* @request GET:/api/v1/workflows/{workflow}
|
|
268
|
+
* @secure
|
|
269
|
+
*/
|
|
270
|
+
this.workflowGet = (workflow, params = {}) => this.request(Object.assign({ path: `/api/v1/workflows/${workflow}`, method: 'GET', secure: true, format: 'json' }, params));
|
|
271
|
+
/**
|
|
272
|
+
* @description Get a workflow version for a tenant
|
|
273
|
+
*
|
|
274
|
+
* @tags Workflow
|
|
275
|
+
* @name WorkflowVersionGet
|
|
276
|
+
* @summary Get workflow version
|
|
277
|
+
* @request GET:/api/v1/workflows/{workflow}/versions
|
|
278
|
+
* @secure
|
|
279
|
+
*/
|
|
280
|
+
this.workflowVersionGet = (workflow, query, params = {}) => this.request(Object.assign({ path: `/api/v1/workflows/${workflow}/versions`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
281
|
+
/**
|
|
282
|
+
* @description Trigger a new workflow run for a tenant
|
|
283
|
+
*
|
|
284
|
+
* @tags Workflow Run
|
|
285
|
+
* @name WorkflowRunCreate
|
|
286
|
+
* @summary Trigger workflow run
|
|
287
|
+
* @request POST:/api/v1/workflows/{workflow}/trigger
|
|
288
|
+
* @secure
|
|
289
|
+
*/
|
|
290
|
+
this.workflowRunCreate = (workflow, data, query, params = {}) => this.request(Object.assign({ path: `/api/v1/workflows/${workflow}/trigger`, method: 'POST', query: query, body: data, secure: true, type: http_client_1.ContentType.Json, format: 'json' }, params));
|
|
291
|
+
/**
|
|
292
|
+
* @description Get a workflow version definition for a tenant
|
|
293
|
+
*
|
|
294
|
+
* @tags Workflow
|
|
295
|
+
* @name WorkflowVersionGetDefinition
|
|
296
|
+
* @summary Get workflow version definition
|
|
297
|
+
* @request GET:/api/v1/workflows/{workflow}/versions/definition
|
|
298
|
+
* @secure
|
|
299
|
+
*/
|
|
300
|
+
this.workflowVersionGetDefinition = (workflow, query, params = {}) => this.request(Object.assign({ path: `/api/v1/workflows/${workflow}/versions/definition`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
301
|
+
/**
|
|
302
|
+
* @description Get all workflow runs for a tenant
|
|
303
|
+
*
|
|
304
|
+
* @tags Workflow
|
|
305
|
+
* @name WorkflowRunList
|
|
306
|
+
* @summary Get workflow runs
|
|
307
|
+
* @request GET:/api/v1/tenants/{tenant}/workflows/runs
|
|
308
|
+
* @secure
|
|
309
|
+
*/
|
|
310
|
+
this.workflowRunList = (tenant, query, params = {}) => this.request(Object.assign({ path: `/api/v1/tenants/${tenant}/workflows/runs`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
311
|
+
/**
|
|
312
|
+
* @description Get a workflow run for a tenant
|
|
313
|
+
*
|
|
314
|
+
* @tags Workflow
|
|
315
|
+
* @name WorkflowRunGet
|
|
316
|
+
* @summary Get workflow run
|
|
317
|
+
* @request GET:/api/v1/tenants/{tenant}/workflow-runs/{workflow-run}
|
|
318
|
+
* @secure
|
|
319
|
+
*/
|
|
320
|
+
this.workflowRunGet = (tenant, workflowRun, params = {}) => this.request(Object.assign({ path: `/api/v1/tenants/${tenant}/workflow-runs/${workflowRun}`, method: 'GET', secure: true, format: 'json' }, params));
|
|
321
|
+
/**
|
|
322
|
+
* @description Get a step run by id
|
|
323
|
+
*
|
|
324
|
+
* @tags Step Run
|
|
325
|
+
* @name StepRunGet
|
|
326
|
+
* @summary Get step run
|
|
327
|
+
* @request GET:/api/v1/tenants/{tenant}/step-runs/{step-run}
|
|
328
|
+
* @secure
|
|
329
|
+
*/
|
|
330
|
+
this.stepRunGet = (tenant, stepRun, params = {}) => this.request(Object.assign({ path: `/api/v1/tenants/${tenant}/step-runs/${stepRun}`, method: 'GET', secure: true, format: 'json' }, params));
|
|
331
|
+
/**
|
|
332
|
+
* @description Reruns a step run
|
|
333
|
+
*
|
|
334
|
+
* @tags Step Run
|
|
335
|
+
* @name StepRunUpdateRerun
|
|
336
|
+
* @summary Rerun step run
|
|
337
|
+
* @request POST:/api/v1/tenants/{tenant}/step-runs/{step-run}/rerun
|
|
338
|
+
* @secure
|
|
339
|
+
*/
|
|
340
|
+
this.stepRunUpdateRerun = (tenant, stepRun, data, params = {}) => this.request(Object.assign({ path: `/api/v1/tenants/${tenant}/step-runs/${stepRun}/rerun`, method: 'POST', body: data, secure: true, type: http_client_1.ContentType.Json, format: 'json' }, params));
|
|
341
|
+
/**
|
|
342
|
+
* @description Get all workers for a tenant
|
|
343
|
+
*
|
|
344
|
+
* @tags Worker
|
|
345
|
+
* @name WorkerList
|
|
346
|
+
* @summary Get workers
|
|
347
|
+
* @request GET:/api/v1/tenants/{tenant}/worker
|
|
348
|
+
* @secure
|
|
349
|
+
*/
|
|
350
|
+
this.workerList = (tenant, params = {}) => this.request(Object.assign({ path: `/api/v1/tenants/${tenant}/worker`, method: 'GET', secure: true, format: 'json' }, params));
|
|
351
|
+
/**
|
|
352
|
+
* @description Get a worker
|
|
353
|
+
*
|
|
354
|
+
* @tags Worker
|
|
355
|
+
* @name WorkerGet
|
|
356
|
+
* @summary Get worker
|
|
357
|
+
* @request GET:/api/v1/workers/{worker}
|
|
358
|
+
* @secure
|
|
359
|
+
*/
|
|
360
|
+
this.workerGet = (worker, params = {}) => this.request(Object.assign({ path: `/api/v1/workers/${worker}`, method: 'GET', secure: true, format: 'json' }, params));
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
exports.Api = Api;
|