|
8 | 8 | * @module |
9 | 9 | */ |
10 | 10 |
|
| 11 | +import { ComponentApi } from "../../../src/client/types.js"; |
11 | 12 | import type * as admin from "../admin.js"; |
12 | 13 | import type * as example from "../example.js"; |
13 | 14 | import type * as transcription from "../transcription.js"; |
@@ -43,199 +44,7 @@ export declare const internal: FilterApi< |
43 | 44 | >; |
44 | 45 |
|
45 | 46 | export declare const components: { |
46 | | - workflow: { |
47 | | - journal: { |
48 | | - load: FunctionReference< |
49 | | - "query", |
50 | | - "internal", |
51 | | - { workflowId: string }, |
52 | | - { |
53 | | - journalEntries: Array<{ |
54 | | - _creationTime: number; |
55 | | - _id: string; |
56 | | - step: { |
57 | | - args: any; |
58 | | - argsSize: number; |
59 | | - completedAt?: number; |
60 | | - functionType: "query" | "mutation" | "action"; |
61 | | - handle: string; |
62 | | - inProgress: boolean; |
63 | | - name: string; |
64 | | - runResult?: |
65 | | - | { kind: "success"; returnValue: any } |
66 | | - | { error: string; kind: "failed" } |
67 | | - | { kind: "canceled" }; |
68 | | - startedAt: number; |
69 | | - workId?: string; |
70 | | - }; |
71 | | - stepNumber: number; |
72 | | - workflowId: string; |
73 | | - }>; |
74 | | - logLevel: "DEBUG" | "TRACE" | "INFO" | "REPORT" | "WARN" | "ERROR"; |
75 | | - ok: boolean; |
76 | | - workflow: { |
77 | | - _creationTime: number; |
78 | | - _id: string; |
79 | | - args: any; |
80 | | - generationNumber: number; |
81 | | - logLevel?: any; |
82 | | - name?: string; |
83 | | - onComplete?: { context?: any; fnHandle: string }; |
84 | | - runResult?: |
85 | | - | { kind: "success"; returnValue: any } |
86 | | - | { error: string; kind: "failed" } |
87 | | - | { kind: "canceled" }; |
88 | | - startedAt?: any; |
89 | | - state?: any; |
90 | | - workflowHandle: string; |
91 | | - }; |
92 | | - } |
93 | | - >; |
94 | | - startSteps: FunctionReference< |
95 | | - "mutation", |
96 | | - "internal", |
97 | | - { |
98 | | - generationNumber: number; |
99 | | - steps: Array<{ |
100 | | - retry?: |
101 | | - | boolean |
102 | | - | { base: number; initialBackoffMs: number; maxAttempts: number }; |
103 | | - schedulerOptions?: { runAt?: number } | { runAfter?: number }; |
104 | | - step: { |
105 | | - args: any; |
106 | | - argsSize: number; |
107 | | - completedAt?: number; |
108 | | - functionType: "query" | "mutation" | "action"; |
109 | | - handle: string; |
110 | | - inProgress: boolean; |
111 | | - name: string; |
112 | | - runResult?: |
113 | | - | { kind: "success"; returnValue: any } |
114 | | - | { error: string; kind: "failed" } |
115 | | - | { kind: "canceled" }; |
116 | | - startedAt: number; |
117 | | - workId?: string; |
118 | | - }; |
119 | | - }>; |
120 | | - workflowId: string; |
121 | | - workpoolOptions?: { |
122 | | - defaultRetryBehavior?: { |
123 | | - base: number; |
124 | | - initialBackoffMs: number; |
125 | | - maxAttempts: number; |
126 | | - }; |
127 | | - logLevel?: "DEBUG" | "TRACE" | "INFO" | "REPORT" | "WARN" | "ERROR"; |
128 | | - maxParallelism?: number; |
129 | | - retryActionsByDefault?: boolean; |
130 | | - }; |
131 | | - }, |
132 | | - Array<{ |
133 | | - _creationTime: number; |
134 | | - _id: string; |
135 | | - step: { |
136 | | - args: any; |
137 | | - argsSize: number; |
138 | | - completedAt?: number; |
139 | | - functionType: "query" | "mutation" | "action"; |
140 | | - handle: string; |
141 | | - inProgress: boolean; |
142 | | - name: string; |
143 | | - runResult?: |
144 | | - | { kind: "success"; returnValue: any } |
145 | | - | { error: string; kind: "failed" } |
146 | | - | { kind: "canceled" }; |
147 | | - startedAt: number; |
148 | | - workId?: string; |
149 | | - }; |
150 | | - stepNumber: number; |
151 | | - workflowId: string; |
152 | | - }> |
153 | | - >; |
154 | | - }; |
155 | | - workflow: { |
156 | | - cancel: FunctionReference< |
157 | | - "mutation", |
158 | | - "internal", |
159 | | - { workflowId: string }, |
160 | | - null |
161 | | - >; |
162 | | - cleanup: FunctionReference< |
163 | | - "mutation", |
164 | | - "internal", |
165 | | - { workflowId: string }, |
166 | | - boolean |
167 | | - >; |
168 | | - complete: FunctionReference< |
169 | | - "mutation", |
170 | | - "internal", |
171 | | - { |
172 | | - generationNumber: number; |
173 | | - runResult: |
174 | | - | { kind: "success"; returnValue: any } |
175 | | - | { error: string; kind: "failed" } |
176 | | - | { kind: "canceled" }; |
177 | | - workflowId: string; |
178 | | - }, |
179 | | - null |
180 | | - >; |
181 | | - create: FunctionReference< |
182 | | - "mutation", |
183 | | - "internal", |
184 | | - { |
185 | | - maxParallelism?: number; |
186 | | - onComplete?: { context?: any; fnHandle: string }; |
187 | | - startAsync?: boolean; |
188 | | - workflowArgs: any; |
189 | | - workflowHandle: string; |
190 | | - workflowName: string; |
191 | | - }, |
192 | | - string |
193 | | - >; |
194 | | - getStatus: FunctionReference< |
195 | | - "query", |
196 | | - "internal", |
197 | | - { workflowId: string }, |
198 | | - { |
199 | | - inProgress: Array<{ |
200 | | - _creationTime: number; |
201 | | - _id: string; |
202 | | - step: { |
203 | | - args: any; |
204 | | - argsSize: number; |
205 | | - completedAt?: number; |
206 | | - functionType: "query" | "mutation" | "action"; |
207 | | - handle: string; |
208 | | - inProgress: boolean; |
209 | | - name: string; |
210 | | - runResult?: |
211 | | - | { kind: "success"; returnValue: any } |
212 | | - | { error: string; kind: "failed" } |
213 | | - | { kind: "canceled" }; |
214 | | - startedAt: number; |
215 | | - workId?: string; |
216 | | - }; |
217 | | - stepNumber: number; |
218 | | - workflowId: string; |
219 | | - }>; |
220 | | - logLevel: "DEBUG" | "TRACE" | "INFO" | "REPORT" | "WARN" | "ERROR"; |
221 | | - workflow: { |
222 | | - _creationTime: number; |
223 | | - _id: string; |
224 | | - args: any; |
225 | | - generationNumber: number; |
226 | | - logLevel?: any; |
227 | | - name?: string; |
228 | | - onComplete?: { context?: any; fnHandle: string }; |
229 | | - runResult?: |
230 | | - | { kind: "success"; returnValue: any } |
231 | | - | { error: string; kind: "failed" } |
232 | | - | { kind: "canceled" }; |
233 | | - startedAt?: any; |
234 | | - state?: any; |
235 | | - workflowHandle: string; |
236 | | - }; |
237 | | - } |
238 | | - >; |
239 | | - }; |
240 | | - }; |
| 47 | + workflow: ComponentApi< |
| 48 | + typeof import("../../../src/component/_generated/api.js").api |
| 49 | + >; |
241 | 50 | }; |
0 commit comments