@hatchet-dev/typescript-sdk 1.0.0-alpha1 → 1.0.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 +15 -20
- package/clients/admin/admin-client.js +21 -17
- package/clients/hatchet-client/hatchet-client.d.ts +5 -4
- package/clients/hatchet-client/hatchet-client.js +6 -4
- package/clients/listeners/durable-listener/durable-listener-client.d.ts +25 -0
- package/clients/listeners/durable-listener/durable-listener-client.js +30 -0
- package/clients/listeners/durable-listener/pooled-durable-listener-client.d.ts +43 -0
- package/clients/listeners/durable-listener/pooled-durable-listener-client.js +241 -0
- package/clients/{listener/listener-client.d.ts → listeners/run-listener/child-listener-client.d.ts} +8 -8
- package/clients/{listener/listener-client.js → listeners/run-listener/child-listener-client.js} +8 -19
- package/clients/{listener/child-listener-client.d.ts → listeners/run-listener/pooled-child-listener-client.d.ts} +5 -5
- package/clients/{listener/child-listener-client.js → listeners/run-listener/pooled-child-listener-client.js} +5 -5
- package/clients/rest/generated/Api.d.ts +49 -2
- package/clients/rest/generated/Api.js +30 -0
- package/clients/rest/generated/data-contracts.d.ts +88 -82
- package/clients/rest/generated/data-contracts.js +8 -1
- package/clients/worker/worker.d.ts +5 -1
- package/clients/worker/worker.js +173 -2
- package/examples/affinity-workers.js +5 -1
- package/examples/api.js +1 -1
- package/examples/bulk-fanout-worker.js +1 -1
- package/examples/byo-logger.js +4 -0
- package/examples/concurrency/cancel-in-progress/concurrency-event.js +2 -2
- package/examples/concurrency/group-round-robin/concurrency-event.js +1 -1
- package/examples/crons/programatic-crons.js +4 -4
- package/examples/dag-worker.js +0 -1
- package/examples/example-event.js +2 -2
- package/examples/logger.js +2 -0
- package/examples/on-failure.js +1 -1
- package/examples/rate-limit/events.js +3 -3
- package/examples/scheduled-runs/programatic-schedules.js +4 -4
- package/examples/sticky-worker-with-check.js +2 -2
- package/examples/sticky-worker.js +5 -0
- package/index.d.ts +1 -3
- package/index.js +1 -3
- package/package.json +2 -2
- package/protoc/dispatcher/dispatcher.d.ts +2 -0
- package/protoc/dispatcher/dispatcher.js +1 -1
- package/protoc/events/events.js +1 -1
- package/protoc/google/protobuf/timestamp.js +1 -1
- package/protoc/v1/dispatcher.d.ts +77 -0
- package/protoc/v1/dispatcher.js +341 -0
- package/protoc/v1/shared/condition.d.ts +59 -0
- package/protoc/v1/shared/condition.js +549 -0
- package/protoc/v1/workflows.d.ts +263 -0
- package/protoc/v1/workflows.js +1823 -0
- package/protoc/workflows/workflows.js +1 -1
- package/step.d.ts +173 -47
- package/step.js +208 -64
- package/util/sleep.d.ts +7 -0
- package/util/sleep.js +7 -0
- package/util/workflow-run-ref.d.ts +8 -2
- package/util/workflow-run-ref.js +13 -0
- package/v1/client/client.d.ts +125 -7
- package/v1/client/client.interface.d.ts +9 -1
- package/v1/client/client.js +148 -17
- package/v1/client/duration.d.ts +7 -0
- package/v1/client/duration.js +2 -0
- package/v1/client/features/index.d.ts +5 -0
- package/v1/client/features/index.js +21 -0
- package/v1/client/features/metrics.d.ts +14 -0
- package/v1/client/features/metrics.js +45 -0
- package/v1/client/features/ratelimits.d.ts +20 -0
- package/v1/client/features/ratelimits.js +40 -0
- package/v1/client/features/runs.d.ts +15 -0
- package/v1/client/features/runs.js +60 -0
- package/v1/client/features/workers.d.ts +14 -0
- package/v1/client/features/workers.js +56 -0
- package/v1/client/features/workflows.d.ts +17 -0
- package/v1/client/features/workflows.js +93 -0
- package/v1/client/worker.d.ts +25 -15
- package/v1/client/worker.js +76 -47
- package/v1/conditions/base.d.ts +18 -0
- package/v1/conditions/base.js +18 -0
- package/v1/conditions/index.d.ts +31 -0
- package/v1/conditions/index.js +91 -0
- package/v1/conditions/parent-condition.d.ts +40 -0
- package/v1/conditions/parent-condition.js +36 -0
- package/v1/conditions/sleep-condition.d.ts +47 -0
- package/v1/conditions/sleep-condition.js +38 -0
- package/v1/conditions/transformer.d.ts +5 -0
- package/v1/conditions/transformer.js +52 -0
- package/v1/conditions/user-event-condition.d.ts +50 -0
- package/v1/conditions/user-event-condition.js +39 -0
- package/v1/declaration.d.ts +309 -0
- package/v1/declaration.js +296 -0
- package/v1/examples/child_workflows/worker.js +2 -2
- package/v1/examples/child_workflows/workflow.d.ts +2 -2
- package/v1/examples/child_workflows/workflow.js +5 -3
- package/v1/examples/concurrency-rr/load.js +2 -2
- package/v1/examples/concurrency-rr/worker.js +2 -2
- package/v1/examples/concurrency-rr/workflow.d.ts +1 -1
- package/v1/examples/concurrency-rr/workflow.js +2 -3
- package/v1/examples/dag/worker.js +2 -2
- package/v1/examples/dag/workflow.d.ts +1 -1
- package/v1/examples/dag/workflow.js +3 -3
- package/v1/examples/dag_match_condition/event.js +28 -0
- package/v1/examples/dag_match_condition/run.d.ts +1 -0
- package/v1/examples/dag_match_condition/run.js +25 -0
- package/v1/examples/dag_match_condition/worker.d.ts +1 -0
- package/{examples/playground.js → v1/examples/dag_match_condition/worker.js} +7 -22
- package/v1/examples/dag_match_condition/workflow.d.ts +11 -0
- package/v1/examples/dag_match_condition/workflow.js +41 -0
- package/v1/examples/deep/worker.js +2 -2
- package/v1/examples/deep/workflow.d.ts +6 -6
- package/v1/examples/deep/workflow.js +7 -7
- package/v1/examples/durable-sleep/event.d.ts +1 -0
- package/v1/examples/durable-sleep/event.js +28 -0
- package/v1/examples/durable-sleep/run.d.ts +1 -0
- package/v1/examples/durable-sleep/run.js +30 -0
- package/v1/examples/durable-sleep/worker.d.ts +1 -0
- package/v1/examples/durable-sleep/worker.js +24 -0
- package/v1/examples/durable-sleep/workflow.d.ts +1 -0
- package/v1/examples/durable-sleep/workflow.js +37 -0
- package/v1/examples/inferred-typing/run.d.ts +1 -0
- package/v1/examples/inferred-typing/run.js +41 -0
- package/v1/examples/inferred-typing/worker.d.ts +1 -0
- package/v1/examples/inferred-typing/worker.js +24 -0
- package/v1/examples/inferred-typing/workflow.d.ts +15 -0
- package/v1/examples/inferred-typing/workflow.js +44 -0
- package/v1/examples/landing_page/durable-excution.d.ts +3 -0
- package/v1/examples/landing_page/durable-excution.js +40 -0
- package/v1/examples/landing_page/event-signaling.d.ts +6 -0
- package/v1/examples/landing_page/event-signaling.js +16 -0
- package/v1/examples/landing_page/flow-control.d.ts +6 -0
- package/v1/examples/landing_page/flow-control.js +26 -0
- package/v1/examples/landing_page/queues.d.ts +3 -0
- package/v1/examples/landing_page/queues.js +33 -0
- package/v1/examples/landing_page/scheduling.d.ts +1 -0
- package/v1/examples/landing_page/scheduling.js +12 -0
- package/v1/examples/landing_page/task-routing.d.ts +6 -0
- package/v1/examples/landing_page/task-routing.js +25 -0
- package/v1/examples/legacy/run.js +2 -2
- package/v1/examples/legacy/worker.js +2 -2
- package/v1/examples/on_cron/worker.d.ts +1 -0
- package/v1/examples/on_cron/worker.js +24 -0
- package/v1/examples/on_cron/workflow.d.ts +10 -0
- package/v1/examples/on_cron/workflow.js +21 -0
- package/v1/examples/on_event/event.js +3 -2
- package/v1/examples/on_event/worker.js +2 -2
- package/v1/examples/on_event/workflow.d.ts +4 -4
- package/v1/examples/on_event/workflow.js +6 -3
- package/v1/examples/on_event copy/event.d.ts +1 -0
- package/v1/examples/on_event copy/event.js +26 -0
- package/v1/examples/on_event copy/worker.d.ts +1 -0
- package/v1/examples/on_event copy/worker.js +24 -0
- package/v1/examples/on_event copy/workflow.d.ts +16 -0
- package/v1/examples/on_event copy/workflow.js +35 -0
- package/v1/examples/on_failure/worker.js +2 -2
- package/v1/examples/on_failure/workflow.d.ts +1 -1
- package/v1/examples/on_failure/workflow.js +18 -8
- package/v1/examples/on_success/run.d.ts +1 -0
- package/v1/examples/on_success/run.js +31 -0
- package/v1/examples/on_success/worker.d.ts +1 -0
- package/v1/examples/on_success/worker.js +24 -0
- package/v1/examples/on_success/workflow.d.ts +4 -0
- package/v1/examples/on_success/workflow.js +59 -0
- package/v1/examples/retries/run.d.ts +1 -0
- package/v1/examples/retries/run.js +29 -0
- package/v1/examples/retries/worker.d.ts +1 -0
- package/v1/examples/retries/worker.js +24 -0
- package/v1/examples/retries/workflow.d.ts +5 -0
- package/v1/examples/retries/workflow.js +53 -0
- package/v1/examples/simple/client-run.d.ts +1 -0
- package/v1/examples/simple/client-run.js +16 -0
- package/v1/examples/simple/cron.js +6 -2
- package/v1/examples/simple/delay.js +2 -2
- package/v1/examples/simple/enqueue.d.ts +1 -0
- package/v1/examples/simple/enqueue.js +43 -0
- package/v1/examples/simple/run.js +8 -3
- package/v1/examples/simple/schedule.js +11 -5
- package/v1/examples/simple/stub-workflow.d.ts +9 -0
- package/v1/examples/simple/stub-workflow.js +17 -0
- package/v1/examples/simple/worker.js +7 -2
- package/v1/examples/simple/workflow.d.ts +4 -3
- package/v1/examples/simple/workflow.js +5 -5
- package/v1/examples/sticky/run.d.ts +1 -0
- package/v1/examples/sticky/run.js +29 -0
- package/v1/examples/sticky/worker.d.ts +1 -0
- package/v1/examples/sticky/worker.js +24 -0
- package/v1/examples/sticky/workflow.d.ts +7 -0
- package/v1/examples/sticky/workflow.js +32 -0
- package/v1/examples/with_timeouts/workflow.d.ts +9 -0
- package/v1/examples/with_timeouts/workflow.js +62 -0
- package/v1/index.d.ts +5 -0
- package/v1/index.js +20 -0
- package/v1/task.d.ts +144 -14
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/v1/workflow.d.ts +0 -158
- package/v1/workflow.js +0 -145
- /package/{examples/playground.d.ts → v1/examples/dag_match_condition/event.d.ts} +0 -0
- /package/v1/examples/{client.d.ts → hatchet-client.d.ts} +0 -0
- /package/v1/examples/{client.js → hatchet-client.js} +0 -0
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from '@bufbuild/protobuf/wire';
|
|
2
|
+
import { type CallContext, type CallOptions } from 'nice-grpc-common';
|
|
3
|
+
import { TaskConditions } from './shared/condition';
|
|
4
|
+
export declare const protobufPackage = "v1";
|
|
5
|
+
export declare enum StickyStrategy {
|
|
6
|
+
SOFT = 0,
|
|
7
|
+
HARD = 1,
|
|
8
|
+
UNRECOGNIZED = -1
|
|
9
|
+
}
|
|
10
|
+
export declare function stickyStrategyFromJSON(object: any): StickyStrategy;
|
|
11
|
+
export declare function stickyStrategyToJSON(object: StickyStrategy): string;
|
|
12
|
+
export declare enum RateLimitDuration {
|
|
13
|
+
SECOND = 0,
|
|
14
|
+
MINUTE = 1,
|
|
15
|
+
HOUR = 2,
|
|
16
|
+
DAY = 3,
|
|
17
|
+
WEEK = 4,
|
|
18
|
+
MONTH = 5,
|
|
19
|
+
YEAR = 6,
|
|
20
|
+
UNRECOGNIZED = -1
|
|
21
|
+
}
|
|
22
|
+
export declare function rateLimitDurationFromJSON(object: any): RateLimitDuration;
|
|
23
|
+
export declare function rateLimitDurationToJSON(object: RateLimitDuration): string;
|
|
24
|
+
export declare enum ConcurrencyLimitStrategy {
|
|
25
|
+
CANCEL_IN_PROGRESS = 0,
|
|
26
|
+
/** DROP_NEWEST - deprecated */
|
|
27
|
+
DROP_NEWEST = 1,
|
|
28
|
+
/** QUEUE_NEWEST - deprecated */
|
|
29
|
+
QUEUE_NEWEST = 2,
|
|
30
|
+
GROUP_ROUND_ROBIN = 3,
|
|
31
|
+
CANCEL_NEWEST = 4,
|
|
32
|
+
UNRECOGNIZED = -1
|
|
33
|
+
}
|
|
34
|
+
export declare function concurrencyLimitStrategyFromJSON(object: any): ConcurrencyLimitStrategy;
|
|
35
|
+
export declare function concurrencyLimitStrategyToJSON(object: ConcurrencyLimitStrategy): string;
|
|
36
|
+
export declare enum WorkerLabelComparator {
|
|
37
|
+
EQUAL = 0,
|
|
38
|
+
NOT_EQUAL = 1,
|
|
39
|
+
GREATER_THAN = 2,
|
|
40
|
+
GREATER_THAN_OR_EQUAL = 3,
|
|
41
|
+
LESS_THAN = 4,
|
|
42
|
+
LESS_THAN_OR_EQUAL = 5,
|
|
43
|
+
UNRECOGNIZED = -1
|
|
44
|
+
}
|
|
45
|
+
export declare function workerLabelComparatorFromJSON(object: any): WorkerLabelComparator;
|
|
46
|
+
export declare function workerLabelComparatorToJSON(object: WorkerLabelComparator): string;
|
|
47
|
+
export interface CancelTasksRequest {
|
|
48
|
+
/** a list of external UUIDs */
|
|
49
|
+
externalIds: string[];
|
|
50
|
+
filter?: TasksFilter | undefined;
|
|
51
|
+
}
|
|
52
|
+
export interface ReplayTasksRequest {
|
|
53
|
+
/** a list of external UUIDs */
|
|
54
|
+
externalIds: string[];
|
|
55
|
+
filter?: TasksFilter | undefined;
|
|
56
|
+
}
|
|
57
|
+
export interface TasksFilter {
|
|
58
|
+
statuses: string[];
|
|
59
|
+
since: Date | undefined;
|
|
60
|
+
until?: Date | undefined;
|
|
61
|
+
workflowIds: string[];
|
|
62
|
+
additionalMetadata: string[];
|
|
63
|
+
}
|
|
64
|
+
export interface CancelTasksResponse {
|
|
65
|
+
cancelledTasks: string[];
|
|
66
|
+
}
|
|
67
|
+
export interface ReplayTasksResponse {
|
|
68
|
+
replayedTasks: string[];
|
|
69
|
+
}
|
|
70
|
+
export interface TriggerWorkflowRunRequest {
|
|
71
|
+
workflowName: string;
|
|
72
|
+
input: Uint8Array;
|
|
73
|
+
additionalMetadata: Uint8Array;
|
|
74
|
+
}
|
|
75
|
+
export interface TriggerWorkflowRunResponse {
|
|
76
|
+
externalId: string;
|
|
77
|
+
}
|
|
78
|
+
/** CreateWorkflowVersionRequest represents options to create a workflow version. */
|
|
79
|
+
export interface CreateWorkflowVersionRequest {
|
|
80
|
+
/** (required) the workflow name */
|
|
81
|
+
name: string;
|
|
82
|
+
/** (optional) the workflow description */
|
|
83
|
+
description: string;
|
|
84
|
+
/** (optional) the workflow version */
|
|
85
|
+
version: string;
|
|
86
|
+
/** (optional) event triggers for the workflow */
|
|
87
|
+
eventTriggers: string[];
|
|
88
|
+
/** (optional) cron triggers for the workflow */
|
|
89
|
+
cronTriggers: string[];
|
|
90
|
+
/** (required) the workflow jobs */
|
|
91
|
+
tasks: CreateTaskOpts[];
|
|
92
|
+
/** (optional) the workflow concurrency options */
|
|
93
|
+
concurrency: Concurrency | undefined;
|
|
94
|
+
/** (optional) the input for the cron trigger */
|
|
95
|
+
cronInput?: string | undefined;
|
|
96
|
+
/** (optional) the job to run on failure */
|
|
97
|
+
onFailureTask?: CreateTaskOpts | undefined;
|
|
98
|
+
/** (optional) the sticky strategy for assigning steps to workers */
|
|
99
|
+
sticky?: StickyStrategy | undefined;
|
|
100
|
+
}
|
|
101
|
+
export interface Concurrency {
|
|
102
|
+
/** (required) the expression to use for concurrency */
|
|
103
|
+
expression: string;
|
|
104
|
+
/** (optional) the maximum number of concurrent workflow runs, default 1 */
|
|
105
|
+
maxRuns?: number | undefined;
|
|
106
|
+
/** (optional) the strategy to use when the concurrency limit is reached, default CANCEL_IN_PROGRESS */
|
|
107
|
+
limitStrategy?: ConcurrencyLimitStrategy | undefined;
|
|
108
|
+
}
|
|
109
|
+
export interface DesiredWorkerLabels {
|
|
110
|
+
/** value of the affinity */
|
|
111
|
+
strValue?: string | undefined;
|
|
112
|
+
intValue?: number | undefined;
|
|
113
|
+
/**
|
|
114
|
+
* (optional) Specifies whether the affinity setting is required.
|
|
115
|
+
* If required, the worker will not accept actions that do not have a truthy affinity setting.
|
|
116
|
+
*
|
|
117
|
+
* Defaults to false.
|
|
118
|
+
*/
|
|
119
|
+
required?: boolean | undefined;
|
|
120
|
+
/**
|
|
121
|
+
* (optional) Specifies the comparator for the affinity setting.
|
|
122
|
+
* If not set, the default is EQUAL.
|
|
123
|
+
*/
|
|
124
|
+
comparator?: WorkerLabelComparator | undefined;
|
|
125
|
+
/**
|
|
126
|
+
* (optional) Specifies the weight of the affinity setting.
|
|
127
|
+
* If not set, the default is 100.
|
|
128
|
+
*/
|
|
129
|
+
weight?: number | undefined;
|
|
130
|
+
}
|
|
131
|
+
/** CreateTaskOpts represents options to create a task. */
|
|
132
|
+
export interface CreateTaskOpts {
|
|
133
|
+
/** (required) the task name */
|
|
134
|
+
readableId: string;
|
|
135
|
+
/** (required) the task action id */
|
|
136
|
+
action: string;
|
|
137
|
+
/** (optional) the task timeout */
|
|
138
|
+
timeout: string;
|
|
139
|
+
/** (optional) the task inputs, assuming string representation of JSON */
|
|
140
|
+
inputs: string;
|
|
141
|
+
/** (optional) the task parents. if none are passed in, this is a root task */
|
|
142
|
+
parents: string[];
|
|
143
|
+
/** (optional) the number of retries for the step, default 0 */
|
|
144
|
+
retries: number;
|
|
145
|
+
/** (optional) the rate limits for the step */
|
|
146
|
+
rateLimits: CreateTaskRateLimit[];
|
|
147
|
+
/** (optional) the desired worker affinity state for the step */
|
|
148
|
+
workerLabels: {
|
|
149
|
+
[key: string]: DesiredWorkerLabels;
|
|
150
|
+
};
|
|
151
|
+
/** (optional) the retry backoff factor for the step */
|
|
152
|
+
backoffFactor?: number | undefined;
|
|
153
|
+
/** (optional) the maximum backoff time for the step */
|
|
154
|
+
backoffMaxSeconds?: number | undefined;
|
|
155
|
+
/** (optional) the task concurrency options */
|
|
156
|
+
concurrency: Concurrency[];
|
|
157
|
+
/** (optional) the task conditions for creating the task */
|
|
158
|
+
conditions?: TaskConditions | undefined;
|
|
159
|
+
/** (optional) the timeout for the schedule */
|
|
160
|
+
scheduleTimeout?: string | undefined;
|
|
161
|
+
}
|
|
162
|
+
export interface CreateTaskOpts_WorkerLabelsEntry {
|
|
163
|
+
key: string;
|
|
164
|
+
value: DesiredWorkerLabels | undefined;
|
|
165
|
+
}
|
|
166
|
+
export interface CreateTaskRateLimit {
|
|
167
|
+
/** (required) the key for the rate limit */
|
|
168
|
+
key: string;
|
|
169
|
+
/** (optional) the number of units this step consumes */
|
|
170
|
+
units?: number | undefined;
|
|
171
|
+
/** (optional) a CEL expression for determining the rate limit key */
|
|
172
|
+
keyExpr?: string | undefined;
|
|
173
|
+
/** (optional) a CEL expression for determining the number of units consumed */
|
|
174
|
+
unitsExpr?: string | undefined;
|
|
175
|
+
/** (optional) a CEL expression for determining the total amount of rate limit units */
|
|
176
|
+
limitValuesExpr?: string | undefined;
|
|
177
|
+
/** (optional) the default rate limit window to use for dynamic rate limits */
|
|
178
|
+
duration?: RateLimitDuration | undefined;
|
|
179
|
+
}
|
|
180
|
+
/** CreateWorkflowVersionResponse represents the response after creating a workflow version. */
|
|
181
|
+
export interface CreateWorkflowVersionResponse {
|
|
182
|
+
id: string;
|
|
183
|
+
workflowId: string;
|
|
184
|
+
}
|
|
185
|
+
export declare const CancelTasksRequest: MessageFns<CancelTasksRequest>;
|
|
186
|
+
export declare const ReplayTasksRequest: MessageFns<ReplayTasksRequest>;
|
|
187
|
+
export declare const TasksFilter: MessageFns<TasksFilter>;
|
|
188
|
+
export declare const CancelTasksResponse: MessageFns<CancelTasksResponse>;
|
|
189
|
+
export declare const ReplayTasksResponse: MessageFns<ReplayTasksResponse>;
|
|
190
|
+
export declare const TriggerWorkflowRunRequest: MessageFns<TriggerWorkflowRunRequest>;
|
|
191
|
+
export declare const TriggerWorkflowRunResponse: MessageFns<TriggerWorkflowRunResponse>;
|
|
192
|
+
export declare const CreateWorkflowVersionRequest: MessageFns<CreateWorkflowVersionRequest>;
|
|
193
|
+
export declare const Concurrency: MessageFns<Concurrency>;
|
|
194
|
+
export declare const DesiredWorkerLabels: MessageFns<DesiredWorkerLabels>;
|
|
195
|
+
export declare const CreateTaskOpts: MessageFns<CreateTaskOpts>;
|
|
196
|
+
export declare const CreateTaskOpts_WorkerLabelsEntry: MessageFns<CreateTaskOpts_WorkerLabelsEntry>;
|
|
197
|
+
export declare const CreateTaskRateLimit: MessageFns<CreateTaskRateLimit>;
|
|
198
|
+
export declare const CreateWorkflowVersionResponse: MessageFns<CreateWorkflowVersionResponse>;
|
|
199
|
+
/** AdminService represents a set of RPCs for admin management of tasks, workflows, etc. */
|
|
200
|
+
export type AdminServiceDefinition = typeof AdminServiceDefinition;
|
|
201
|
+
export declare const AdminServiceDefinition: {
|
|
202
|
+
readonly name: "AdminService";
|
|
203
|
+
readonly fullName: "v1.AdminService";
|
|
204
|
+
readonly methods: {
|
|
205
|
+
readonly putWorkflow: {
|
|
206
|
+
readonly name: "PutWorkflow";
|
|
207
|
+
readonly requestType: MessageFns<CreateWorkflowVersionRequest>;
|
|
208
|
+
readonly requestStream: false;
|
|
209
|
+
readonly responseType: MessageFns<CreateWorkflowVersionResponse>;
|
|
210
|
+
readonly responseStream: false;
|
|
211
|
+
readonly options: {};
|
|
212
|
+
};
|
|
213
|
+
readonly cancelTasks: {
|
|
214
|
+
readonly name: "CancelTasks";
|
|
215
|
+
readonly requestType: MessageFns<CancelTasksRequest>;
|
|
216
|
+
readonly requestStream: false;
|
|
217
|
+
readonly responseType: MessageFns<CancelTasksResponse>;
|
|
218
|
+
readonly responseStream: false;
|
|
219
|
+
readonly options: {};
|
|
220
|
+
};
|
|
221
|
+
readonly replayTasks: {
|
|
222
|
+
readonly name: "ReplayTasks";
|
|
223
|
+
readonly requestType: MessageFns<ReplayTasksRequest>;
|
|
224
|
+
readonly requestStream: false;
|
|
225
|
+
readonly responseType: MessageFns<ReplayTasksResponse>;
|
|
226
|
+
readonly responseStream: false;
|
|
227
|
+
readonly options: {};
|
|
228
|
+
};
|
|
229
|
+
readonly triggerWorkflowRun: {
|
|
230
|
+
readonly name: "TriggerWorkflowRun";
|
|
231
|
+
readonly requestType: MessageFns<TriggerWorkflowRunRequest>;
|
|
232
|
+
readonly requestStream: false;
|
|
233
|
+
readonly responseType: MessageFns<TriggerWorkflowRunResponse>;
|
|
234
|
+
readonly responseStream: false;
|
|
235
|
+
readonly options: {};
|
|
236
|
+
};
|
|
237
|
+
};
|
|
238
|
+
};
|
|
239
|
+
export interface AdminServiceImplementation<CallContextExt = {}> {
|
|
240
|
+
putWorkflow(request: CreateWorkflowVersionRequest, context: CallContext & CallContextExt): Promise<DeepPartial<CreateWorkflowVersionResponse>>;
|
|
241
|
+
cancelTasks(request: CancelTasksRequest, context: CallContext & CallContextExt): Promise<DeepPartial<CancelTasksResponse>>;
|
|
242
|
+
replayTasks(request: ReplayTasksRequest, context: CallContext & CallContextExt): Promise<DeepPartial<ReplayTasksResponse>>;
|
|
243
|
+
triggerWorkflowRun(request: TriggerWorkflowRunRequest, context: CallContext & CallContextExt): Promise<DeepPartial<TriggerWorkflowRunResponse>>;
|
|
244
|
+
}
|
|
245
|
+
export interface AdminServiceClient<CallOptionsExt = {}> {
|
|
246
|
+
putWorkflow(request: DeepPartial<CreateWorkflowVersionRequest>, options?: CallOptions & CallOptionsExt): Promise<CreateWorkflowVersionResponse>;
|
|
247
|
+
cancelTasks(request: DeepPartial<CancelTasksRequest>, options?: CallOptions & CallOptionsExt): Promise<CancelTasksResponse>;
|
|
248
|
+
replayTasks(request: DeepPartial<ReplayTasksRequest>, options?: CallOptions & CallOptionsExt): Promise<ReplayTasksResponse>;
|
|
249
|
+
triggerWorkflowRun(request: DeepPartial<TriggerWorkflowRunRequest>, options?: CallOptions & CallOptionsExt): Promise<TriggerWorkflowRunResponse>;
|
|
250
|
+
}
|
|
251
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
252
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
253
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
254
|
+
} : Partial<T>;
|
|
255
|
+
export interface MessageFns<T> {
|
|
256
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
257
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
258
|
+
fromJSON(object: any): T;
|
|
259
|
+
toJSON(message: T): unknown;
|
|
260
|
+
create(base?: DeepPartial<T>): T;
|
|
261
|
+
fromPartial(object: DeepPartial<T>): T;
|
|
262
|
+
}
|
|
263
|
+
export {};
|