@kb-labs/workflow-contracts 2.100.0 → 2.101.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/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { E as ExpressionContext, W as WorkflowInvocationSpec } from './rest-api-DSEa7gcW.js';
2
- export { A as ApprovalReviewItem, a as ApprovalReviewItemSchema, b as ArtifactMergeConfig, c as ArtifactMergeConfigSchema, d as ArtifactMergeSource, e as ArtifactMergeSourceSchema, f as ArtifactMergeStrategy, g as ArtifactMergeStrategySchema, C as ConcurrencyGroup, h as ConcurrencyGroupSchema, i as CreateRunInput, j as CronInfo, k as CronInfoSchema, l as CronListResponse, m as CronListResponseSchema, n as CronRegistrationRequest, D as DashboardStatsResponse, o as DashboardStatsResponseSchema, p as ExecutionResult, q as ExecutionResultSchema, r as ExecutionTarget, s as ExecutionTargetSchema, F as FileLintResult, I as IWorkflowEngine, t as IdempotencyKey, u as IdempotencyKeySchema, v as IsolationProfile, w as IsolationProfileSchema, J as JobArtifactsSchema, x as JobCancelResponse, y as JobCancelResponseSchema, z as JobConcurrencySchema, B as JobHooks, G as JobHooksSchema, H as JobListFilter, K as JobListResponse, L as JobListResponseSchema, M as JobLogsResponse, N as JobLogsResponseSchema, O as JobRun, P as JobRunSchema, Q as JobSpec, R as JobSpecSchema, S as JobStateSchema, T as JobStatusInfo, U as JobStatusInfoSchema, V as JobStatusSchema, X as JobStepInfo, Y as JobStepInfoSchema, Z as JobStepsResponse, _ as JobStepsResponseSchema, $ as JobSubmissionRequest, a0 as JobSubmissionResponse, a1 as ListRunsFilter, a2 as Phase, a3 as PhaseSchema, a4 as ResultError, a5 as ResultErrorSchema, a6 as ResultMetrics, a7 as ResultMetricsSchema, a8 as RetryModeSchema, a9 as RetryPolicy, aa as RetryPolicySchema, ab as RunMetadata, ac as RunMetadataSchema, ad as RunSchema, ae as RunStateSchema, af as RunTrigger, ag as RunTriggerSchema, ah as StepArtifact, ai as StepArtifactSchema, aj as StepProgress, ak as StepProgressSchema, al as StepRun, am as StepRunErrorSchema, an as StepRunSchema, ao as StepSpec, ap as StepSpecSchema, aq as StepStateSchema, ar as TenantIdSchema, as as TimeoutSchema, at as WorkflowInfo, au as WorkflowInfoSchema, av as WorkflowInputField, aw as WorkflowInputFieldSchema, ax as WorkflowListResponse, ay as WorkflowListResponseSchema, az as WorkflowLogEvent, aA as WorkflowRerunRequest, aB as WorkflowRerunRequestSchema, aC as WorkflowRestartRequest, aD as WorkflowRestartRequestSchema, aE as WorkflowRestartResponse, aF as WorkflowRun, aG as WorkflowRunHistoryResponse, aH as WorkflowRunHistoryResponseSchema, aI as WorkflowRunInfo, aJ as WorkflowRunInfoSchema, aK as WorkflowRunRequest, aL as WorkflowRunRequestSchema, aM as WorkflowSpec, aN as WorkflowSpecSchema, aO as WorkflowTriggerSchema, aP as WorkflowValidationResult } from './rest-api-DSEa7gcW.js';
1
+ import { E as ExpressionContext, W as WorkflowInvocationSpec } from './rest-api-C7Qdk5Wo.js';
2
+ export { A as ApprovalReviewItem, a as ApprovalReviewItemSchema, b as ArtifactMergeConfig, c as ArtifactMergeConfigSchema, d as ArtifactMergeSource, e as ArtifactMergeSourceSchema, f as ArtifactMergeStrategy, g as ArtifactMergeStrategySchema, C as ConcurrencyGroup, h as ConcurrencyGroupSchema, i as CreateRunInput, j as CronInfo, k as CronInfoSchema, l as CronListResponse, m as CronListResponseSchema, n as CronRegistrationRequest, D as DashboardStatsResponse, o as DashboardStatsResponseSchema, p as ExecutionResult, q as ExecutionResultSchema, r as ExecutionTarget, s as ExecutionTargetSchema, F as FileLintResult, I as IWorkflowEngine, t as IdempotencyKey, u as IdempotencyKeySchema, v as IsolationProfile, w as IsolationProfileSchema, J as JobArtifactsSchema, x as JobCancelResponse, y as JobCancelResponseSchema, z as JobConcurrencySchema, B as JobHooks, G as JobHooksSchema, H as JobListFilter, K as JobListResponse, L as JobListResponseSchema, M as JobLogsResponse, N as JobLogsResponseSchema, O as JobRun, P as JobRunSchema, Q as JobSpec, R as JobSpecSchema, S as JobStateSchema, T as JobStatusInfo, U as JobStatusInfoSchema, V as JobStatusSchema, X as JobStepInfo, Y as JobStepInfoSchema, Z as JobStepsResponse, _ as JobStepsResponseSchema, $ as JobSubmissionRequest, a0 as JobSubmissionResponse, a1 as ListRunsFilter, a2 as Phase, a3 as PhaseSchema, a4 as ResultError, a5 as ResultErrorSchema, a6 as ResultMetrics, a7 as ResultMetricsSchema, a8 as RetryModeSchema, a9 as RetryPolicy, aa as RetryPolicySchema, ab as RunMetadata, ac as RunMetadataSchema, ad as RunSchema, ae as RunStateSchema, af as RunTrigger, ag as RunTriggerSchema, ah as StepArtifact, ai as StepArtifactSchema, aj as StepProgress, ak as StepProgressSchema, al as StepRun, am as StepRunErrorSchema, an as StepRunSchema, ao as StepSpec, ap as StepSpecSchema, aq as StepStateSchema, ar as TenantIdSchema, as as TimeoutSchema, at as WorkflowInfo, au as WorkflowInfoSchema, av as WorkflowInputField, aw as WorkflowInputFieldSchema, ax as WorkflowListResponse, ay as WorkflowListResponseSchema, az as WorkflowLogEvent, aA as WorkflowRerunRequest, aB as WorkflowRerunRequestSchema, aC as WorkflowRestartRequest, aD as WorkflowRestartRequestSchema, aE as WorkflowRestartResponse, aF as WorkflowRun, aG as WorkflowRunHistoryResponse, aH as WorkflowRunHistoryResponseSchema, aI as WorkflowRunInfo, aJ as WorkflowRunInfoSchema, aK as WorkflowRunRequest, aL as WorkflowRunRequestSchema, aM as WorkflowSpec, aN as WorkflowSpecSchema, aO as WorkflowTriggerSchema, aP as WorkflowValidationResult } from './rest-api-C7Qdk5Wo.js';
3
3
  import * as _kb_labs_shared_command_kit from '@kb-labs/shared-command-kit';
4
4
  import { z } from 'zod';
5
5
  import '@kb-labs/workflow-constants';
@@ -215,20 +215,20 @@ declare const PluginCronJobSchema: z.ZodObject<{
215
215
  id: string;
216
216
  priority: "high" | "normal" | "low";
217
217
  schedule: string;
218
- enabled: boolean;
219
218
  handler: string;
219
+ enabled: boolean;
220
220
  timezone?: string | undefined;
221
- input?: Record<string, unknown> | undefined;
222
221
  metadata?: Record<string, unknown> | undefined;
222
+ input?: Record<string, unknown> | undefined;
223
223
  }, {
224
224
  id: string;
225
225
  schedule: string;
226
226
  handler: string;
227
227
  priority?: "high" | "normal" | "low" | undefined;
228
228
  timezone?: string | undefined;
229
- enabled?: boolean | undefined;
230
- input?: Record<string, unknown> | undefined;
231
229
  metadata?: Record<string, unknown> | undefined;
230
+ input?: Record<string, unknown> | undefined;
231
+ enabled?: boolean | undefined;
232
232
  }>;
233
233
  type PluginCronJob = z.infer<typeof PluginCronJobSchema>;
234
234
  /**
@@ -246,24 +246,24 @@ declare const UserCronJobSchema: z.ZodObject<{
246
246
  jobs: z.ZodRecord<z.ZodString, z.ZodAny>;
247
247
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
248
248
  }, "strip", z.ZodTypeAny, {
249
+ name: string;
249
250
  priority: "high" | "normal" | "low";
250
- jobs: Record<string, any>;
251
251
  schedule: string;
252
+ jobs: Record<string, any>;
252
253
  enabled: boolean;
253
- name: string;
254
254
  autoStart: boolean;
255
- timezone?: string | undefined;
256
255
  env?: Record<string, string> | undefined;
256
+ timezone?: string | undefined;
257
257
  metadata?: Record<string, unknown> | undefined;
258
258
  }, {
259
- jobs: Record<string, any>;
260
- schedule: string;
261
259
  name: string;
260
+ schedule: string;
261
+ jobs: Record<string, any>;
262
+ env?: Record<string, string> | undefined;
262
263
  priority?: "high" | "normal" | "low" | undefined;
263
264
  timezone?: string | undefined;
264
- enabled?: boolean | undefined;
265
- env?: Record<string, string> | undefined;
266
265
  metadata?: Record<string, unknown> | undefined;
266
+ enabled?: boolean | undefined;
267
267
  autoStart?: boolean | undefined;
268
268
  }>;
269
269
  type UserCronJob = z.infer<typeof UserCronJobSchema>;
@@ -308,7 +308,7 @@ declare const CronExecutionSchema: z.ZodObject<{
308
308
  stack?: string | undefined;
309
309
  }>>;
310
310
  }, "strip", z.ZodTypeAny, {
311
- status: "pending" | "running" | "failed" | "success";
311
+ status: "running" | "success" | "failed" | "pending";
312
312
  runId: string;
313
313
  cronJobId: string;
314
314
  scheduledAt: string;
@@ -319,7 +319,7 @@ declare const CronExecutionSchema: z.ZodObject<{
319
319
  stack?: string | undefined;
320
320
  } | undefined;
321
321
  }, {
322
- status: "pending" | "running" | "failed" | "success";
322
+ status: "running" | "success" | "failed" | "pending";
323
323
  runId: string;
324
324
  cronJobId: string;
325
325
  scheduledAt: string;