@hatchet-dev/typescript-sdk 1.33.2 → 1.34.0-alpha.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.
- package/clients/admin/admin-client.d.ts +6 -1
- package/clients/admin/admin-client.js +9 -4
- package/clients/admin/rpc.d.ts +13 -0
- package/clients/admin/rpc.js +23 -0
- package/clients/event/event-client.d.ts +2 -1
- package/clients/event/event-client.js +6 -3
- package/clients/event/rpc.d.ts +7 -0
- package/clients/event/rpc.js +13 -0
- package/clients/rest/generated/data-contracts.d.ts +2 -0
- package/clients/transport/grpc-target.d.ts +19 -0
- package/clients/transport/grpc-target.js +85 -0
- package/clients/transport/index.d.ts +4 -0
- package/clients/transport/index.js +15 -0
- package/clients/transport/message-bridge.d.ts +32 -0
- package/clients/transport/message-bridge.js +20 -0
- package/clients/transport/node-transport.d.ts +50 -0
- package/clients/transport/node-transport.js +123 -0
- package/clients/transport/transport.d.ts +14 -0
- package/clients/transport/transport.js +24 -0
- package/clients/transport/ts-proto-client.d.ts +41 -0
- package/clients/transport/ts-proto-client.js +143 -0
- package/core/index.d.ts +9 -0
- package/core/index.js +12 -0
- package/dist/check-exports.mjs +171 -0
- package/legacy/legacy-client.d.ts +4 -0
- package/legacy/legacy-client.js +5 -3
- package/package.json +95 -2
- package/protoc-es/dispatcher/dispatcher_pb.d.ts +1357 -0
- package/protoc-es/dispatcher/dispatcher_pb.js +371 -0
- package/protoc-es/events/events_pb.d.ts +294 -0
- package/protoc-es/events/events_pb.js +61 -0
- package/protoc-es/google/rpc/status_pb.d.ts +48 -0
- package/protoc-es/google/rpc/status_pb.js +27 -0
- package/protoc-es/v1/dispatcher_pb.d.ts +676 -0
- package/protoc-es/v1/dispatcher_pb.js +155 -0
- package/protoc-es/v1/shared/condition_pb.d.ts +166 -0
- package/protoc-es/v1/shared/condition_pb.js +68 -0
- package/protoc-es/v1/shared/trigger_pb.d.ts +160 -0
- package/protoc-es/v1/shared/trigger_pb.js +55 -0
- package/protoc-es/v1/workflows_pb.d.ts +995 -0
- package/protoc-es/v1/workflows_pb.js +280 -0
- package/protoc-es/workflows/workflows_pb.d.ts +715 -0
- package/protoc-es/workflows/workflows_pb.js +216 -0
- package/scripts/check-exports.mjs +171 -0
- package/util/grpc-error.d.ts +3 -1
- package/util/grpc-error.js +13 -4
- package/v1/client/admin.d.ts +2 -1
- package/v1/client/admin.js +34 -114
- package/v1/client/client.d.ts +1 -0
- package/v1/client/client.js +8 -5
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -0,0 +1,715 @@
|
|
|
1
|
+
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
3
|
+
import type { DesiredWorkerLabels, TriggerWorkflowRequest, TriggerWorkflowRequestSchema } from "../v1/shared/trigger_pb";
|
|
4
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
5
|
+
/**
|
|
6
|
+
* Describes the file workflows/workflows.proto.
|
|
7
|
+
*/
|
|
8
|
+
export declare const file_workflows_workflows: GenFile;
|
|
9
|
+
/**
|
|
10
|
+
* @generated from message PutWorkflowRequest
|
|
11
|
+
*/
|
|
12
|
+
export type PutWorkflowRequest = Message<"PutWorkflowRequest"> & {
|
|
13
|
+
/**
|
|
14
|
+
* @generated from field: CreateWorkflowVersionOpts opts = 1;
|
|
15
|
+
*/
|
|
16
|
+
opts?: CreateWorkflowVersionOpts | undefined;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Describes the message PutWorkflowRequest.
|
|
20
|
+
* Use `create(PutWorkflowRequestSchema)` to create a new message.
|
|
21
|
+
*/
|
|
22
|
+
export declare const PutWorkflowRequestSchema: GenMessage<PutWorkflowRequest>;
|
|
23
|
+
/**
|
|
24
|
+
* CreateWorkflowVersionOpts represents options to create a workflow version.
|
|
25
|
+
*
|
|
26
|
+
* @generated from message CreateWorkflowVersionOpts
|
|
27
|
+
*/
|
|
28
|
+
export type CreateWorkflowVersionOpts = Message<"CreateWorkflowVersionOpts"> & {
|
|
29
|
+
/**
|
|
30
|
+
* (required) the workflow name
|
|
31
|
+
*
|
|
32
|
+
* @generated from field: string name = 1;
|
|
33
|
+
*/
|
|
34
|
+
name: string;
|
|
35
|
+
/**
|
|
36
|
+
* (optional) the workflow description
|
|
37
|
+
*
|
|
38
|
+
* @generated from field: string description = 2;
|
|
39
|
+
*/
|
|
40
|
+
description: string;
|
|
41
|
+
/**
|
|
42
|
+
* (required) the workflow version
|
|
43
|
+
*
|
|
44
|
+
* @generated from field: string version = 3;
|
|
45
|
+
*/
|
|
46
|
+
version: string;
|
|
47
|
+
/**
|
|
48
|
+
* (optional) event triggers for the workflow
|
|
49
|
+
*
|
|
50
|
+
* @generated from field: repeated string event_triggers = 4;
|
|
51
|
+
*/
|
|
52
|
+
eventTriggers: string[];
|
|
53
|
+
/**
|
|
54
|
+
* (optional) cron triggers for the workflow
|
|
55
|
+
*
|
|
56
|
+
* @generated from field: repeated string cron_triggers = 5;
|
|
57
|
+
*/
|
|
58
|
+
cronTriggers: string[];
|
|
59
|
+
/**
|
|
60
|
+
* (optional) scheduled triggers for the workflow
|
|
61
|
+
*
|
|
62
|
+
* @generated from field: repeated google.protobuf.Timestamp scheduled_triggers = 6;
|
|
63
|
+
*/
|
|
64
|
+
scheduledTriggers: Timestamp[];
|
|
65
|
+
/**
|
|
66
|
+
* (required) the workflow jobs
|
|
67
|
+
*
|
|
68
|
+
* @generated from field: repeated CreateWorkflowJobOpts jobs = 7;
|
|
69
|
+
*/
|
|
70
|
+
jobs: CreateWorkflowJobOpts[];
|
|
71
|
+
/**
|
|
72
|
+
* (optional) the workflow concurrency options
|
|
73
|
+
*
|
|
74
|
+
* @generated from field: WorkflowConcurrencyOpts concurrency = 8;
|
|
75
|
+
*/
|
|
76
|
+
concurrency?: WorkflowConcurrencyOpts | undefined;
|
|
77
|
+
/**
|
|
78
|
+
* (optional) the timeout for the schedule
|
|
79
|
+
*
|
|
80
|
+
* @generated from field: optional string schedule_timeout = 9;
|
|
81
|
+
*/
|
|
82
|
+
scheduleTimeout?: string | undefined;
|
|
83
|
+
/**
|
|
84
|
+
* (optional) the input for the cron trigger
|
|
85
|
+
*
|
|
86
|
+
* @generated from field: optional string cron_input = 10;
|
|
87
|
+
*/
|
|
88
|
+
cronInput?: string | undefined;
|
|
89
|
+
/**
|
|
90
|
+
* (optional) the job to run on failure
|
|
91
|
+
*
|
|
92
|
+
* @generated from field: optional CreateWorkflowJobOpts on_failure_job = 11;
|
|
93
|
+
*/
|
|
94
|
+
onFailureJob?: CreateWorkflowJobOpts | undefined;
|
|
95
|
+
/**
|
|
96
|
+
* (optional) the sticky strategy for assigning tasks to workers
|
|
97
|
+
*
|
|
98
|
+
* @generated from field: optional StickyStrategy sticky = 12;
|
|
99
|
+
*/
|
|
100
|
+
sticky?: StickyStrategy | undefined;
|
|
101
|
+
/**
|
|
102
|
+
* (optional) the kind of workflow
|
|
103
|
+
*
|
|
104
|
+
* @generated from field: optional WorkflowKind kind = 13;
|
|
105
|
+
*/
|
|
106
|
+
kind?: WorkflowKind | undefined;
|
|
107
|
+
/**
|
|
108
|
+
* (optional) the priority of the workflow
|
|
109
|
+
*
|
|
110
|
+
* @generated from field: optional int32 default_priority = 14;
|
|
111
|
+
*/
|
|
112
|
+
defaultPriority?: number | undefined;
|
|
113
|
+
};
|
|
114
|
+
/**
|
|
115
|
+
* Describes the message CreateWorkflowVersionOpts.
|
|
116
|
+
* Use `create(CreateWorkflowVersionOptsSchema)` to create a new message.
|
|
117
|
+
*/
|
|
118
|
+
export declare const CreateWorkflowVersionOptsSchema: GenMessage<CreateWorkflowVersionOpts>;
|
|
119
|
+
/**
|
|
120
|
+
* @generated from message WorkflowConcurrencyOpts
|
|
121
|
+
*/
|
|
122
|
+
export type WorkflowConcurrencyOpts = Message<"WorkflowConcurrencyOpts"> & {
|
|
123
|
+
/**
|
|
124
|
+
* (optional) the action id for getting the concurrency group
|
|
125
|
+
*
|
|
126
|
+
* @generated from field: optional string action = 1;
|
|
127
|
+
*/
|
|
128
|
+
action?: string | undefined;
|
|
129
|
+
/**
|
|
130
|
+
* (optional) the maximum number of concurrent workflow runs, default 1
|
|
131
|
+
*
|
|
132
|
+
* @generated from field: optional int32 max_runs = 2;
|
|
133
|
+
*/
|
|
134
|
+
maxRuns?: number | undefined;
|
|
135
|
+
/**
|
|
136
|
+
* (optional) the strategy to use when the concurrency limit is reached, default CANCEL_IN_PROGRESS
|
|
137
|
+
*
|
|
138
|
+
* @generated from field: optional ConcurrencyLimitStrategy limit_strategy = 3;
|
|
139
|
+
*/
|
|
140
|
+
limitStrategy?: ConcurrencyLimitStrategy | undefined;
|
|
141
|
+
/**
|
|
142
|
+
* (optional) the expression to use for concurrency
|
|
143
|
+
*
|
|
144
|
+
* @generated from field: optional string expression = 4;
|
|
145
|
+
*/
|
|
146
|
+
expression?: string | undefined;
|
|
147
|
+
};
|
|
148
|
+
/**
|
|
149
|
+
* Describes the message WorkflowConcurrencyOpts.
|
|
150
|
+
* Use `create(WorkflowConcurrencyOptsSchema)` to create a new message.
|
|
151
|
+
*/
|
|
152
|
+
export declare const WorkflowConcurrencyOptsSchema: GenMessage<WorkflowConcurrencyOpts>;
|
|
153
|
+
/**
|
|
154
|
+
* CreateWorkflowJobOpts represents options to create a workflow job.
|
|
155
|
+
*
|
|
156
|
+
* @generated from message CreateWorkflowJobOpts
|
|
157
|
+
*/
|
|
158
|
+
export type CreateWorkflowJobOpts = Message<"CreateWorkflowJobOpts"> & {
|
|
159
|
+
/**
|
|
160
|
+
* (required) the job name
|
|
161
|
+
*
|
|
162
|
+
* @generated from field: string name = 1;
|
|
163
|
+
*/
|
|
164
|
+
name: string;
|
|
165
|
+
/**
|
|
166
|
+
* (optional) the job description
|
|
167
|
+
*
|
|
168
|
+
* @generated from field: string description = 2;
|
|
169
|
+
*/
|
|
170
|
+
description: string;
|
|
171
|
+
/**
|
|
172
|
+
* (required) the job tasks
|
|
173
|
+
*
|
|
174
|
+
* @generated from field: repeated CreateWorkflowStepOpts steps = 4;
|
|
175
|
+
*/
|
|
176
|
+
steps: CreateWorkflowStepOpts[];
|
|
177
|
+
};
|
|
178
|
+
/**
|
|
179
|
+
* Describes the message CreateWorkflowJobOpts.
|
|
180
|
+
* Use `create(CreateWorkflowJobOptsSchema)` to create a new message.
|
|
181
|
+
*/
|
|
182
|
+
export declare const CreateWorkflowJobOptsSchema: GenMessage<CreateWorkflowJobOpts>;
|
|
183
|
+
/**
|
|
184
|
+
* CreateWorkflowStepOpts represents options to create a workflow task.
|
|
185
|
+
*
|
|
186
|
+
* @generated from message CreateWorkflowStepOpts
|
|
187
|
+
*/
|
|
188
|
+
export type CreateWorkflowStepOpts = Message<"CreateWorkflowStepOpts"> & {
|
|
189
|
+
/**
|
|
190
|
+
* (required) the task name
|
|
191
|
+
*
|
|
192
|
+
* @generated from field: string readable_id = 1;
|
|
193
|
+
*/
|
|
194
|
+
readableId: string;
|
|
195
|
+
/**
|
|
196
|
+
* (required) the task action id
|
|
197
|
+
*
|
|
198
|
+
* @generated from field: string action = 2;
|
|
199
|
+
*/
|
|
200
|
+
action: string;
|
|
201
|
+
/**
|
|
202
|
+
* (optional) the task timeout
|
|
203
|
+
*
|
|
204
|
+
* @generated from field: string timeout = 3;
|
|
205
|
+
*/
|
|
206
|
+
timeout: string;
|
|
207
|
+
/**
|
|
208
|
+
* (optional) the task inputs, assuming string representation of JSON
|
|
209
|
+
*
|
|
210
|
+
* @generated from field: string inputs = 4;
|
|
211
|
+
*/
|
|
212
|
+
inputs: string;
|
|
213
|
+
/**
|
|
214
|
+
* (optional) the task parents. if none are passed in, this is a root task
|
|
215
|
+
*
|
|
216
|
+
* @generated from field: repeated string parents = 5;
|
|
217
|
+
*/
|
|
218
|
+
parents: string[];
|
|
219
|
+
/**
|
|
220
|
+
* (optional) the custom task user data, assuming string representation of JSON
|
|
221
|
+
*
|
|
222
|
+
* @generated from field: string user_data = 6;
|
|
223
|
+
*/
|
|
224
|
+
userData: string;
|
|
225
|
+
/**
|
|
226
|
+
* (optional) the number of retries for the task, default 0
|
|
227
|
+
*
|
|
228
|
+
* @generated from field: int32 retries = 7;
|
|
229
|
+
*/
|
|
230
|
+
retries: number;
|
|
231
|
+
/**
|
|
232
|
+
* (optional) the rate limits for the task
|
|
233
|
+
*
|
|
234
|
+
* @generated from field: repeated CreateStepRateLimit rate_limits = 8;
|
|
235
|
+
*/
|
|
236
|
+
rateLimits: CreateStepRateLimit[];
|
|
237
|
+
/**
|
|
238
|
+
* (optional) the desired worker affinity state for the task
|
|
239
|
+
*
|
|
240
|
+
* @generated from field: map<string, v1.DesiredWorkerLabels> worker_labels = 9;
|
|
241
|
+
*/
|
|
242
|
+
workerLabels: {
|
|
243
|
+
[key: string]: DesiredWorkerLabels;
|
|
244
|
+
};
|
|
245
|
+
/**
|
|
246
|
+
* (optional) the retry backoff factor for the task
|
|
247
|
+
*
|
|
248
|
+
* @generated from field: optional float backoff_factor = 10;
|
|
249
|
+
*/
|
|
250
|
+
backoffFactor?: number | undefined;
|
|
251
|
+
/**
|
|
252
|
+
* (optional) the maximum backoff time for the task
|
|
253
|
+
*
|
|
254
|
+
* @generated from field: optional int32 backoff_max_seconds = 11;
|
|
255
|
+
*/
|
|
256
|
+
backoffMaxSeconds?: number | undefined;
|
|
257
|
+
};
|
|
258
|
+
/**
|
|
259
|
+
* Describes the message CreateWorkflowStepOpts.
|
|
260
|
+
* Use `create(CreateWorkflowStepOptsSchema)` to create a new message.
|
|
261
|
+
*/
|
|
262
|
+
export declare const CreateWorkflowStepOptsSchema: GenMessage<CreateWorkflowStepOpts>;
|
|
263
|
+
/**
|
|
264
|
+
* @generated from message CreateStepRateLimit
|
|
265
|
+
*/
|
|
266
|
+
export type CreateStepRateLimit = Message<"CreateStepRateLimit"> & {
|
|
267
|
+
/**
|
|
268
|
+
* (required) the key for the rate limit
|
|
269
|
+
*
|
|
270
|
+
* @generated from field: string key = 1;
|
|
271
|
+
*/
|
|
272
|
+
key: string;
|
|
273
|
+
/**
|
|
274
|
+
* (optional) the number of units this task consumes
|
|
275
|
+
*
|
|
276
|
+
* @generated from field: optional int32 units = 2;
|
|
277
|
+
*/
|
|
278
|
+
units?: number | undefined;
|
|
279
|
+
/**
|
|
280
|
+
* (optional) a CEL expression for determining the rate limit key
|
|
281
|
+
*
|
|
282
|
+
* @generated from field: optional string key_expr = 3;
|
|
283
|
+
*/
|
|
284
|
+
keyExpr?: string | undefined;
|
|
285
|
+
/**
|
|
286
|
+
* (optional) a CEL expression for determining the number of units consumed
|
|
287
|
+
*
|
|
288
|
+
* @generated from field: optional string units_expr = 4;
|
|
289
|
+
*/
|
|
290
|
+
unitsExpr?: string | undefined;
|
|
291
|
+
/**
|
|
292
|
+
* (optional) a CEL expression for determining the total amount of rate limit units
|
|
293
|
+
*
|
|
294
|
+
* @generated from field: optional string limit_values_expr = 5;
|
|
295
|
+
*/
|
|
296
|
+
limitValuesExpr?: string | undefined;
|
|
297
|
+
/**
|
|
298
|
+
* (optional) the default rate limit window to use for dynamic rate limits
|
|
299
|
+
*
|
|
300
|
+
* @generated from field: optional RateLimitDuration duration = 6;
|
|
301
|
+
*/
|
|
302
|
+
duration?: RateLimitDuration | undefined;
|
|
303
|
+
};
|
|
304
|
+
/**
|
|
305
|
+
* Describes the message CreateStepRateLimit.
|
|
306
|
+
* Use `create(CreateStepRateLimitSchema)` to create a new message.
|
|
307
|
+
*/
|
|
308
|
+
export declare const CreateStepRateLimitSchema: GenMessage<CreateStepRateLimit>;
|
|
309
|
+
/**
|
|
310
|
+
* ListWorkflowsRequest is the request for ListWorkflows.
|
|
311
|
+
*
|
|
312
|
+
* @generated from message ListWorkflowsRequest
|
|
313
|
+
*/
|
|
314
|
+
export type ListWorkflowsRequest = Message<"ListWorkflowsRequest"> & {};
|
|
315
|
+
/**
|
|
316
|
+
* Describes the message ListWorkflowsRequest.
|
|
317
|
+
* Use `create(ListWorkflowsRequestSchema)` to create a new message.
|
|
318
|
+
*/
|
|
319
|
+
export declare const ListWorkflowsRequestSchema: GenMessage<ListWorkflowsRequest>;
|
|
320
|
+
/**
|
|
321
|
+
* @generated from message ScheduleWorkflowRequest
|
|
322
|
+
*/
|
|
323
|
+
export type ScheduleWorkflowRequest = Message<"ScheduleWorkflowRequest"> & {
|
|
324
|
+
/**
|
|
325
|
+
* @generated from field: string name = 1;
|
|
326
|
+
*/
|
|
327
|
+
name: string;
|
|
328
|
+
/**
|
|
329
|
+
* @generated from field: repeated google.protobuf.Timestamp schedules = 2;
|
|
330
|
+
*/
|
|
331
|
+
schedules: Timestamp[];
|
|
332
|
+
/**
|
|
333
|
+
* (optional) the input data for the workflow
|
|
334
|
+
*
|
|
335
|
+
* @generated from field: string input = 3;
|
|
336
|
+
*/
|
|
337
|
+
input: string;
|
|
338
|
+
/**
|
|
339
|
+
* (optional) the parent workflow run id
|
|
340
|
+
*
|
|
341
|
+
* @generated from field: optional string parent_id = 4;
|
|
342
|
+
*/
|
|
343
|
+
parentId?: string | undefined;
|
|
344
|
+
/**
|
|
345
|
+
* (optional) the parent task external run id
|
|
346
|
+
*
|
|
347
|
+
* @generated from field: optional string parent_task_run_external_id = 5;
|
|
348
|
+
*/
|
|
349
|
+
parentTaskRunExternalId?: string | undefined;
|
|
350
|
+
/**
|
|
351
|
+
* (optional) the index of the child workflow. if this is set, matches on the index or the
|
|
352
|
+
* child key will be a no-op, even if the schedule has changed.
|
|
353
|
+
*
|
|
354
|
+
* @generated from field: optional int32 child_index = 6;
|
|
355
|
+
*/
|
|
356
|
+
childIndex?: number | undefined;
|
|
357
|
+
/**
|
|
358
|
+
* (optional) the key for the child. if this is set, matches on the index or the
|
|
359
|
+
* child key will be a no-op, even if the schedule has changed.
|
|
360
|
+
*
|
|
361
|
+
* @generated from field: optional string child_key = 7;
|
|
362
|
+
*/
|
|
363
|
+
childKey?: string | undefined;
|
|
364
|
+
/**
|
|
365
|
+
* (optional) the additional metadata for the workflow
|
|
366
|
+
*
|
|
367
|
+
* @generated from field: optional string additional_metadata = 8;
|
|
368
|
+
*/
|
|
369
|
+
additionalMetadata?: string | undefined;
|
|
370
|
+
/**
|
|
371
|
+
* (optional) the priority of the workflow
|
|
372
|
+
*
|
|
373
|
+
* @generated from field: optional int32 priority = 9;
|
|
374
|
+
*/
|
|
375
|
+
priority?: number | undefined;
|
|
376
|
+
};
|
|
377
|
+
/**
|
|
378
|
+
* Describes the message ScheduleWorkflowRequest.
|
|
379
|
+
* Use `create(ScheduleWorkflowRequestSchema)` to create a new message.
|
|
380
|
+
*/
|
|
381
|
+
export declare const ScheduleWorkflowRequestSchema: GenMessage<ScheduleWorkflowRequest>;
|
|
382
|
+
/**
|
|
383
|
+
* ScheduledWorkflow represents a scheduled workflow.
|
|
384
|
+
*
|
|
385
|
+
* @generated from message ScheduledWorkflow
|
|
386
|
+
*/
|
|
387
|
+
export type ScheduledWorkflow = Message<"ScheduledWorkflow"> & {
|
|
388
|
+
/**
|
|
389
|
+
* @generated from field: string id = 1;
|
|
390
|
+
*/
|
|
391
|
+
id: string;
|
|
392
|
+
/**
|
|
393
|
+
* @generated from field: google.protobuf.Timestamp trigger_at = 2;
|
|
394
|
+
*/
|
|
395
|
+
triggerAt?: Timestamp | undefined;
|
|
396
|
+
};
|
|
397
|
+
/**
|
|
398
|
+
* Describes the message ScheduledWorkflow.
|
|
399
|
+
* Use `create(ScheduledWorkflowSchema)` to create a new message.
|
|
400
|
+
*/
|
|
401
|
+
export declare const ScheduledWorkflowSchema: GenMessage<ScheduledWorkflow>;
|
|
402
|
+
/**
|
|
403
|
+
* WorkflowVersion represents the WorkflowVersion model.
|
|
404
|
+
*
|
|
405
|
+
* @generated from message WorkflowVersion
|
|
406
|
+
*/
|
|
407
|
+
export type WorkflowVersion = Message<"WorkflowVersion"> & {
|
|
408
|
+
/**
|
|
409
|
+
* @generated from field: string id = 1;
|
|
410
|
+
*/
|
|
411
|
+
id: string;
|
|
412
|
+
/**
|
|
413
|
+
* @generated from field: google.protobuf.Timestamp created_at = 2;
|
|
414
|
+
*/
|
|
415
|
+
createdAt?: Timestamp | undefined;
|
|
416
|
+
/**
|
|
417
|
+
* @generated from field: google.protobuf.Timestamp updated_at = 3;
|
|
418
|
+
*/
|
|
419
|
+
updatedAt?: Timestamp | undefined;
|
|
420
|
+
/**
|
|
421
|
+
* @generated from field: string version = 5;
|
|
422
|
+
*/
|
|
423
|
+
version: string;
|
|
424
|
+
/**
|
|
425
|
+
* @generated from field: int64 order = 6;
|
|
426
|
+
*/
|
|
427
|
+
order: bigint;
|
|
428
|
+
/**
|
|
429
|
+
* @generated from field: string workflow_id = 7;
|
|
430
|
+
*/
|
|
431
|
+
workflowId: string;
|
|
432
|
+
/**
|
|
433
|
+
* @generated from field: repeated ScheduledWorkflow scheduled_workflows = 8;
|
|
434
|
+
*/
|
|
435
|
+
scheduledWorkflows: ScheduledWorkflow[];
|
|
436
|
+
};
|
|
437
|
+
/**
|
|
438
|
+
* Describes the message WorkflowVersion.
|
|
439
|
+
* Use `create(WorkflowVersionSchema)` to create a new message.
|
|
440
|
+
*/
|
|
441
|
+
export declare const WorkflowVersionSchema: GenMessage<WorkflowVersion>;
|
|
442
|
+
/**
|
|
443
|
+
* WorkflowTriggerEventRef represents the WorkflowTriggerEventRef model.
|
|
444
|
+
*
|
|
445
|
+
* @generated from message WorkflowTriggerEventRef
|
|
446
|
+
*/
|
|
447
|
+
export type WorkflowTriggerEventRef = Message<"WorkflowTriggerEventRef"> & {
|
|
448
|
+
/**
|
|
449
|
+
* @generated from field: string parent_id = 1;
|
|
450
|
+
*/
|
|
451
|
+
parentId: string;
|
|
452
|
+
/**
|
|
453
|
+
* @generated from field: string event_key = 2;
|
|
454
|
+
*/
|
|
455
|
+
eventKey: string;
|
|
456
|
+
};
|
|
457
|
+
/**
|
|
458
|
+
* Describes the message WorkflowTriggerEventRef.
|
|
459
|
+
* Use `create(WorkflowTriggerEventRefSchema)` to create a new message.
|
|
460
|
+
*/
|
|
461
|
+
export declare const WorkflowTriggerEventRefSchema: GenMessage<WorkflowTriggerEventRef>;
|
|
462
|
+
/**
|
|
463
|
+
* WorkflowTriggerCronRef represents the WorkflowTriggerCronRef model.
|
|
464
|
+
*
|
|
465
|
+
* @generated from message WorkflowTriggerCronRef
|
|
466
|
+
*/
|
|
467
|
+
export type WorkflowTriggerCronRef = Message<"WorkflowTriggerCronRef"> & {
|
|
468
|
+
/**
|
|
469
|
+
* @generated from field: string parent_id = 1;
|
|
470
|
+
*/
|
|
471
|
+
parentId: string;
|
|
472
|
+
/**
|
|
473
|
+
* @generated from field: string cron = 2;
|
|
474
|
+
*/
|
|
475
|
+
cron: string;
|
|
476
|
+
};
|
|
477
|
+
/**
|
|
478
|
+
* Describes the message WorkflowTriggerCronRef.
|
|
479
|
+
* Use `create(WorkflowTriggerCronRefSchema)` to create a new message.
|
|
480
|
+
*/
|
|
481
|
+
export declare const WorkflowTriggerCronRefSchema: GenMessage<WorkflowTriggerCronRef>;
|
|
482
|
+
/**
|
|
483
|
+
* @generated from message BulkTriggerWorkflowRequest
|
|
484
|
+
*/
|
|
485
|
+
export type BulkTriggerWorkflowRequest = Message<"BulkTriggerWorkflowRequest"> & {
|
|
486
|
+
/**
|
|
487
|
+
* @generated from field: repeated v1.TriggerWorkflowRequest workflows = 1;
|
|
488
|
+
*/
|
|
489
|
+
workflows: TriggerWorkflowRequest[];
|
|
490
|
+
};
|
|
491
|
+
/**
|
|
492
|
+
* Describes the message BulkTriggerWorkflowRequest.
|
|
493
|
+
* Use `create(BulkTriggerWorkflowRequestSchema)` to create a new message.
|
|
494
|
+
*/
|
|
495
|
+
export declare const BulkTriggerWorkflowRequestSchema: GenMessage<BulkTriggerWorkflowRequest>;
|
|
496
|
+
/**
|
|
497
|
+
* @generated from message BulkTriggerWorkflowResponse
|
|
498
|
+
*/
|
|
499
|
+
export type BulkTriggerWorkflowResponse = Message<"BulkTriggerWorkflowResponse"> & {
|
|
500
|
+
/**
|
|
501
|
+
* @generated from field: repeated string workflow_run_ids = 1;
|
|
502
|
+
*/
|
|
503
|
+
workflowRunIds: string[];
|
|
504
|
+
};
|
|
505
|
+
/**
|
|
506
|
+
* Describes the message BulkTriggerWorkflowResponse.
|
|
507
|
+
* Use `create(BulkTriggerWorkflowResponseSchema)` to create a new message.
|
|
508
|
+
*/
|
|
509
|
+
export declare const BulkTriggerWorkflowResponseSchema: GenMessage<BulkTriggerWorkflowResponse>;
|
|
510
|
+
/**
|
|
511
|
+
* @generated from message TriggerWorkflowResponse
|
|
512
|
+
*/
|
|
513
|
+
export type TriggerWorkflowResponse = Message<"TriggerWorkflowResponse"> & {
|
|
514
|
+
/**
|
|
515
|
+
* @generated from field: string workflow_run_id = 1;
|
|
516
|
+
*/
|
|
517
|
+
workflowRunId: string;
|
|
518
|
+
};
|
|
519
|
+
/**
|
|
520
|
+
* Describes the message TriggerWorkflowResponse.
|
|
521
|
+
* Use `create(TriggerWorkflowResponseSchema)` to create a new message.
|
|
522
|
+
*/
|
|
523
|
+
export declare const TriggerWorkflowResponseSchema: GenMessage<TriggerWorkflowResponse>;
|
|
524
|
+
/**
|
|
525
|
+
* @generated from message PutRateLimitRequest
|
|
526
|
+
*/
|
|
527
|
+
export type PutRateLimitRequest = Message<"PutRateLimitRequest"> & {
|
|
528
|
+
/**
|
|
529
|
+
* (required) the global key for the rate limit
|
|
530
|
+
*
|
|
531
|
+
* @generated from field: string key = 1;
|
|
532
|
+
*/
|
|
533
|
+
key: string;
|
|
534
|
+
/**
|
|
535
|
+
* (required) the max limit for the rate limit (per unit of time)
|
|
536
|
+
*
|
|
537
|
+
* @generated from field: int32 limit = 2;
|
|
538
|
+
*/
|
|
539
|
+
limit: number;
|
|
540
|
+
/**
|
|
541
|
+
* (required) the duration of time for the rate limit (second|minute|hour)
|
|
542
|
+
*
|
|
543
|
+
* @generated from field: RateLimitDuration duration = 3;
|
|
544
|
+
*/
|
|
545
|
+
duration: RateLimitDuration;
|
|
546
|
+
};
|
|
547
|
+
/**
|
|
548
|
+
* Describes the message PutRateLimitRequest.
|
|
549
|
+
* Use `create(PutRateLimitRequestSchema)` to create a new message.
|
|
550
|
+
*/
|
|
551
|
+
export declare const PutRateLimitRequestSchema: GenMessage<PutRateLimitRequest>;
|
|
552
|
+
/**
|
|
553
|
+
* @generated from message PutRateLimitResponse
|
|
554
|
+
*/
|
|
555
|
+
export type PutRateLimitResponse = Message<"PutRateLimitResponse"> & {};
|
|
556
|
+
/**
|
|
557
|
+
* Describes the message PutRateLimitResponse.
|
|
558
|
+
* Use `create(PutRateLimitResponseSchema)` to create a new message.
|
|
559
|
+
*/
|
|
560
|
+
export declare const PutRateLimitResponseSchema: GenMessage<PutRateLimitResponse>;
|
|
561
|
+
/**
|
|
562
|
+
* @generated from enum StickyStrategy
|
|
563
|
+
*/
|
|
564
|
+
export declare enum StickyStrategy {
|
|
565
|
+
/**
|
|
566
|
+
* @generated from enum value: SOFT = 0;
|
|
567
|
+
*/
|
|
568
|
+
SOFT = 0,
|
|
569
|
+
/**
|
|
570
|
+
* @generated from enum value: HARD = 1;
|
|
571
|
+
*/
|
|
572
|
+
HARD = 1
|
|
573
|
+
}
|
|
574
|
+
/**
|
|
575
|
+
* Describes the enum StickyStrategy.
|
|
576
|
+
*/
|
|
577
|
+
export declare const StickyStrategySchema: GenEnum<StickyStrategy>;
|
|
578
|
+
/**
|
|
579
|
+
* @generated from enum WorkflowKind
|
|
580
|
+
*/
|
|
581
|
+
export declare enum WorkflowKind {
|
|
582
|
+
/**
|
|
583
|
+
* @generated from enum value: FUNCTION = 0;
|
|
584
|
+
*/
|
|
585
|
+
FUNCTION = 0,
|
|
586
|
+
/**
|
|
587
|
+
* @generated from enum value: DURABLE = 1;
|
|
588
|
+
*/
|
|
589
|
+
DURABLE = 1,
|
|
590
|
+
/**
|
|
591
|
+
* @generated from enum value: DAG = 2;
|
|
592
|
+
*/
|
|
593
|
+
DAG = 2
|
|
594
|
+
}
|
|
595
|
+
/**
|
|
596
|
+
* Describes the enum WorkflowKind.
|
|
597
|
+
*/
|
|
598
|
+
export declare const WorkflowKindSchema: GenEnum<WorkflowKind>;
|
|
599
|
+
/**
|
|
600
|
+
* @generated from enum ConcurrencyLimitStrategy
|
|
601
|
+
*/
|
|
602
|
+
export declare enum ConcurrencyLimitStrategy {
|
|
603
|
+
/**
|
|
604
|
+
* @generated from enum value: CANCEL_IN_PROGRESS = 0;
|
|
605
|
+
*/
|
|
606
|
+
CANCEL_IN_PROGRESS = 0,
|
|
607
|
+
/**
|
|
608
|
+
* deprecated
|
|
609
|
+
*
|
|
610
|
+
* @generated from enum value: DROP_NEWEST = 1;
|
|
611
|
+
*/
|
|
612
|
+
DROP_NEWEST = 1,
|
|
613
|
+
/**
|
|
614
|
+
* deprecated
|
|
615
|
+
*
|
|
616
|
+
* @generated from enum value: QUEUE_NEWEST = 2;
|
|
617
|
+
*/
|
|
618
|
+
QUEUE_NEWEST = 2,
|
|
619
|
+
/**
|
|
620
|
+
* @generated from enum value: GROUP_ROUND_ROBIN = 3;
|
|
621
|
+
*/
|
|
622
|
+
GROUP_ROUND_ROBIN = 3,
|
|
623
|
+
/**
|
|
624
|
+
* @generated from enum value: CANCEL_NEWEST = 4;
|
|
625
|
+
*/
|
|
626
|
+
CANCEL_NEWEST = 4
|
|
627
|
+
}
|
|
628
|
+
/**
|
|
629
|
+
* Describes the enum ConcurrencyLimitStrategy.
|
|
630
|
+
*/
|
|
631
|
+
export declare const ConcurrencyLimitStrategySchema: GenEnum<ConcurrencyLimitStrategy>;
|
|
632
|
+
/**
|
|
633
|
+
* @generated from enum RateLimitDuration
|
|
634
|
+
*/
|
|
635
|
+
export declare enum RateLimitDuration {
|
|
636
|
+
/**
|
|
637
|
+
* @generated from enum value: SECOND = 0;
|
|
638
|
+
*/
|
|
639
|
+
SECOND = 0,
|
|
640
|
+
/**
|
|
641
|
+
* @generated from enum value: MINUTE = 1;
|
|
642
|
+
*/
|
|
643
|
+
MINUTE = 1,
|
|
644
|
+
/**
|
|
645
|
+
* @generated from enum value: HOUR = 2;
|
|
646
|
+
*/
|
|
647
|
+
HOUR = 2,
|
|
648
|
+
/**
|
|
649
|
+
* @generated from enum value: DAY = 3;
|
|
650
|
+
*/
|
|
651
|
+
DAY = 3,
|
|
652
|
+
/**
|
|
653
|
+
* @generated from enum value: WEEK = 4;
|
|
654
|
+
*/
|
|
655
|
+
WEEK = 4,
|
|
656
|
+
/**
|
|
657
|
+
* @generated from enum value: MONTH = 5;
|
|
658
|
+
*/
|
|
659
|
+
MONTH = 5,
|
|
660
|
+
/**
|
|
661
|
+
* @generated from enum value: YEAR = 6;
|
|
662
|
+
*/
|
|
663
|
+
YEAR = 6
|
|
664
|
+
}
|
|
665
|
+
/**
|
|
666
|
+
* Describes the enum RateLimitDuration.
|
|
667
|
+
*/
|
|
668
|
+
export declare const RateLimitDurationSchema: GenEnum<RateLimitDuration>;
|
|
669
|
+
/**
|
|
670
|
+
* WorkflowService represents a set of RPCs for managing workflows.
|
|
671
|
+
*
|
|
672
|
+
* @generated from service WorkflowService
|
|
673
|
+
*/
|
|
674
|
+
export declare const WorkflowService: GenService<{
|
|
675
|
+
/**
|
|
676
|
+
* @generated from rpc WorkflowService.PutWorkflow
|
|
677
|
+
*/
|
|
678
|
+
putWorkflow: {
|
|
679
|
+
methodKind: "unary";
|
|
680
|
+
input: typeof PutWorkflowRequestSchema;
|
|
681
|
+
output: typeof WorkflowVersionSchema;
|
|
682
|
+
};
|
|
683
|
+
/**
|
|
684
|
+
* @generated from rpc WorkflowService.ScheduleWorkflow
|
|
685
|
+
*/
|
|
686
|
+
scheduleWorkflow: {
|
|
687
|
+
methodKind: "unary";
|
|
688
|
+
input: typeof ScheduleWorkflowRequestSchema;
|
|
689
|
+
output: typeof WorkflowVersionSchema;
|
|
690
|
+
};
|
|
691
|
+
/**
|
|
692
|
+
* @generated from rpc WorkflowService.TriggerWorkflow
|
|
693
|
+
*/
|
|
694
|
+
triggerWorkflow: {
|
|
695
|
+
methodKind: "unary";
|
|
696
|
+
input: typeof TriggerWorkflowRequestSchema;
|
|
697
|
+
output: typeof TriggerWorkflowResponseSchema;
|
|
698
|
+
};
|
|
699
|
+
/**
|
|
700
|
+
* @generated from rpc WorkflowService.BulkTriggerWorkflow
|
|
701
|
+
*/
|
|
702
|
+
bulkTriggerWorkflow: {
|
|
703
|
+
methodKind: "unary";
|
|
704
|
+
input: typeof BulkTriggerWorkflowRequestSchema;
|
|
705
|
+
output: typeof BulkTriggerWorkflowResponseSchema;
|
|
706
|
+
};
|
|
707
|
+
/**
|
|
708
|
+
* @generated from rpc WorkflowService.PutRateLimit
|
|
709
|
+
*/
|
|
710
|
+
putRateLimit: {
|
|
711
|
+
methodKind: "unary";
|
|
712
|
+
input: typeof PutRateLimitRequestSchema;
|
|
713
|
+
output: typeof PutRateLimitResponseSchema;
|
|
714
|
+
};
|
|
715
|
+
}>;
|