@dev-ecosystem/core 0.1.0 → 0.2.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 +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/schemas/index.d.ts +424 -4
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +1 -1
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/workflow.schema.json +287 -0
- package/dist/schemas/workflow.schema.zod.d.ts +866 -2
- package/dist/schemas/workflow.schema.zod.d.ts.map +1 -1
- package/dist/schemas/workflow.schema.zod.js +249 -0
- package/dist/schemas/workflow.schema.zod.js.map +1 -1
- package/dist/types/adapter.types.d.ts +292 -0
- package/dist/types/adapter.types.d.ts.map +1 -1
- package/dist/types/adapter.types.js +213 -1
- package/dist/types/adapter.types.js.map +1 -1
- package/dist/types/global.types.d.ts +12 -0
- package/dist/types/global.types.d.ts.map +1 -1
- package/dist/types/global.types.js +14 -1
- package/dist/types/global.types.js.map +1 -1
- package/dist/types/workflow.enums.d.ts +275 -0
- package/dist/types/workflow.enums.d.ts.map +1 -0
- package/dist/types/workflow.enums.js +317 -0
- package/dist/types/workflow.enums.js.map +1 -0
- package/dist/types/{workflow.types.d.ts → workflow.interfaces.d.ts} +242 -152
- package/dist/types/workflow.interfaces.d.ts.map +1 -0
- package/dist/types/workflow.interfaces.js +19 -0
- package/dist/types/workflow.interfaces.js.map +1 -0
- package/dist/types/workflow.type.d.ts +141 -0
- package/dist/types/workflow.type.d.ts.map +1 -0
- package/dist/types/workflow.type.js +6 -0
- package/dist/types/workflow.type.js.map +1 -0
- package/package.json +13 -2
- package/dist/types/workflow.types.d.ts.map +0 -1
- package/dist/types/workflow.types.js +0 -90
- package/dist/types/workflow.types.js.map +0 -1
|
@@ -1,83 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Orbyt Workflow Type Definitions
|
|
3
3
|
*
|
|
4
|
-
* Comprehensive TypeScript
|
|
5
|
-
* These
|
|
4
|
+
* Comprehensive TypeScript interfaces for Orbyt workflows.
|
|
5
|
+
* These interfaces define the structure of workflow definitions across the ecosystem.
|
|
6
6
|
*
|
|
7
7
|
* Key Principles:
|
|
8
8
|
* - Domain-agnostic: works for any workflow type
|
|
9
9
|
* - Explicit over implicit: no `any` unless truly dynamic
|
|
10
|
-
* - Documented: every
|
|
10
|
+
* - Documented: every interface has clear purpose
|
|
11
11
|
* - Versioned: includes v1 and future-reserved fields
|
|
12
|
+
*
|
|
13
|
+
* Note: Enums are in workflow.enums.ts, type aliases are in workflow.type-aliases.ts
|
|
12
14
|
*/
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
*/
|
|
16
|
-
export declare enum WorkflowKind {
|
|
17
|
-
/** Standard workflow - default execution model */
|
|
18
|
-
Workflow = "workflow",
|
|
19
|
-
/** Pipeline - emphasizes data flow */
|
|
20
|
-
Pipeline = "pipeline",
|
|
21
|
-
/** Job - emphasizes scheduled/batch execution */
|
|
22
|
-
Job = "job",
|
|
23
|
-
/** Playbook - emphasizes operational procedures */
|
|
24
|
-
Playbook = "playbook",
|
|
25
|
-
/** Automation - emphasizes event-driven execution */
|
|
26
|
-
Automation = "automation"
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Trigger types for workflow execution
|
|
30
|
-
*/
|
|
31
|
-
export declare enum TriggerType {
|
|
32
|
-
/** Manually invoked by user */
|
|
33
|
-
Manual = "manual",
|
|
34
|
-
/** Scheduled via cron expression */
|
|
35
|
-
Cron = "cron",
|
|
36
|
-
/** Event-driven execution */
|
|
37
|
-
Event = "event",
|
|
38
|
-
/** HTTP webhook trigger */
|
|
39
|
-
Webhook = "webhook"
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Failure handling policy
|
|
43
|
-
*/
|
|
44
|
-
export declare enum FailurePolicy {
|
|
45
|
-
/** Stop entire workflow on first failure */
|
|
46
|
-
Stop = "stop",
|
|
47
|
-
/** Continue with remaining steps */
|
|
48
|
-
Continue = "continue",
|
|
49
|
-
/** Isolate failure to step only */
|
|
50
|
-
Isolate = "isolate"
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Retry backoff strategy
|
|
54
|
-
*/
|
|
55
|
-
export declare enum BackoffStrategy {
|
|
56
|
-
/** Fixed delay between retries */
|
|
57
|
-
Linear = "linear",
|
|
58
|
-
/** Exponentially increasing delay */
|
|
59
|
-
Exponential = "exponential"
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Sandbox enforcement level
|
|
63
|
-
*/
|
|
64
|
-
export declare enum SandboxLevel {
|
|
65
|
-
/** No sandboxing */
|
|
66
|
-
None = "none",
|
|
67
|
-
/** Basic permission checks */
|
|
68
|
-
Basic = "basic",
|
|
69
|
-
/** Strict isolation and permissions */
|
|
70
|
-
Strict = "strict"
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Execution environment
|
|
74
|
-
*/
|
|
75
|
-
export declare enum ExecutionEnvironment {
|
|
76
|
-
Local = "local",
|
|
77
|
-
Dev = "dev",
|
|
78
|
-
Staging = "staging",
|
|
79
|
-
Prod = "prod"
|
|
80
|
-
}
|
|
15
|
+
import type { WorkflowKind, TriggerType, FailurePolicy, BackoffStrategy, SandboxLevel, ExecutionEnvironment, WorkflowSourceType, ExecutionMode, IsolationLevel, ExecutionPriority, TelemetryLevel, AccountingUnit, FailureAction, TimeoutAction, RollbackStrategy, UsageScope, UsageCategory, ProductIdentifier, CostHint, LogsLevel, MetricsLevel, StepFailureAction, StrategyType, TraceLevel } from './workflow.enums.js';
|
|
16
|
+
import type { InputType, TimeoutSpec, StepOutputMapping, StepCondition, V1Field, FutureField, OutputsSchema, WorkflowTrigger, WorkflowInputs } from './workflow.type.js';
|
|
81
17
|
/**
|
|
82
18
|
* Workflow metadata for identification and organization.
|
|
83
19
|
* Never used for execution logic.
|
|
@@ -99,6 +35,10 @@ export interface WorkflowMetadata {
|
|
|
99
35
|
createdAt?: string;
|
|
100
36
|
/** ISO 8601 last update timestamp */
|
|
101
37
|
updatedAt?: string;
|
|
38
|
+
/** V1 field marker */
|
|
39
|
+
v1?: V1Field;
|
|
40
|
+
/** Future field marker */
|
|
41
|
+
future?: FutureField;
|
|
102
42
|
/** Allow additional metadata fields */
|
|
103
43
|
[key: string]: any;
|
|
104
44
|
}
|
|
@@ -167,12 +107,6 @@ export interface WebhookTrigger extends BaseTrigger {
|
|
|
167
107
|
/** Optional filtering conditions */
|
|
168
108
|
filters?: Record<string, any>;
|
|
169
109
|
}
|
|
170
|
-
/**
|
|
171
|
-
* Union of all trigger types
|
|
172
|
-
*
|
|
173
|
-
* @category Triggers
|
|
174
|
-
*/
|
|
175
|
-
export type WorkflowTrigger = ManualTrigger | CronTrigger | EventTrigger | WebhookTrigger;
|
|
176
110
|
/**
|
|
177
111
|
* External secret references.
|
|
178
112
|
* Values are NEVER stored inline - only references to secret providers.
|
|
@@ -187,12 +121,6 @@ export interface WorkflowSecrets {
|
|
|
187
121
|
/** Map of logical names to provider-specific paths */
|
|
188
122
|
keys: Record<string, string>;
|
|
189
123
|
}
|
|
190
|
-
/**
|
|
191
|
-
* Input parameter data types
|
|
192
|
-
*
|
|
193
|
-
* @category Inputs
|
|
194
|
-
*/
|
|
195
|
-
export type InputType = 'string' | 'number' | 'boolean' | 'array' | 'object';
|
|
196
124
|
/**
|
|
197
125
|
* Definition of a single input parameter
|
|
198
126
|
*
|
|
@@ -208,12 +136,6 @@ export interface WorkflowInputDefinition {
|
|
|
208
136
|
/** Human-readable description */
|
|
209
137
|
description?: string;
|
|
210
138
|
}
|
|
211
|
-
/**
|
|
212
|
-
* Runtime parameters for workflow reusability
|
|
213
|
-
*
|
|
214
|
-
* @category Inputs
|
|
215
|
-
*/
|
|
216
|
-
export type WorkflowInputs = Record<string, WorkflowInputDefinition>;
|
|
217
139
|
/**
|
|
218
140
|
* Runtime environment context (read-only for steps)
|
|
219
141
|
*
|
|
@@ -242,12 +164,6 @@ export interface WorkflowRetryConfig {
|
|
|
242
164
|
/** Initial delay in milliseconds */
|
|
243
165
|
delay?: number;
|
|
244
166
|
}
|
|
245
|
-
/**
|
|
246
|
-
* Timeout specification (e.g., "30s", "5m", "1h")
|
|
247
|
-
*
|
|
248
|
-
* @category Execution
|
|
249
|
-
*/
|
|
250
|
-
export type TimeoutSpec = string;
|
|
251
167
|
/**
|
|
252
168
|
* Default settings applied to all steps
|
|
253
169
|
*
|
|
@@ -332,18 +248,43 @@ export interface WorkflowResources {
|
|
|
332
248
|
[key: string]: any;
|
|
333
249
|
}
|
|
334
250
|
/**
|
|
335
|
-
*
|
|
336
|
-
*
|
|
337
|
-
*
|
|
338
|
-
|
|
339
|
-
|
|
251
|
+
* Workflow-level usage tracking configuration
|
|
252
|
+
* Engine counts, bridges transport, website displays
|
|
253
|
+
*
|
|
254
|
+
* @category Usage
|
|
255
|
+
* @status production-ready - minimal, final
|
|
256
|
+
*/
|
|
257
|
+
export interface WorkflowUsage {
|
|
258
|
+
/** Enable usage tracking for this workflow */
|
|
259
|
+
track?: boolean;
|
|
260
|
+
/** Aggregation scope */
|
|
261
|
+
scope?: UsageScope | string;
|
|
262
|
+
/** Usage category for billing */
|
|
263
|
+
category?: UsageCategory | string;
|
|
264
|
+
/** Whether this workflow is billable */
|
|
265
|
+
billable?: boolean;
|
|
266
|
+
/** Product/component identifier */
|
|
267
|
+
product?: ProductIdentifier | string;
|
|
268
|
+
/** Tags for analytics */
|
|
269
|
+
tags?: string[];
|
|
270
|
+
}
|
|
340
271
|
/**
|
|
341
|
-
*
|
|
342
|
-
*
|
|
343
|
-
*
|
|
344
|
-
* @category
|
|
345
|
-
|
|
346
|
-
|
|
272
|
+
* Step-level usage tracking override
|
|
273
|
+
* Allows per-step billing customization
|
|
274
|
+
*
|
|
275
|
+
* @category Usage
|
|
276
|
+
* @status production-ready - minimal, final
|
|
277
|
+
*/
|
|
278
|
+
export interface StepUsage {
|
|
279
|
+
/** Override workflow billable setting */
|
|
280
|
+
billable?: boolean;
|
|
281
|
+
/** Billing unit (e.g., 'request', 'execution', 'second') */
|
|
282
|
+
unit?: string;
|
|
283
|
+
/** Cost multiplier (default: 1) */
|
|
284
|
+
weight?: number;
|
|
285
|
+
/** Cost estimation hint for billing */
|
|
286
|
+
costHint?: CostHint;
|
|
287
|
+
}
|
|
347
288
|
/**
|
|
348
289
|
* Individual workflow step definition
|
|
349
290
|
*
|
|
@@ -393,6 +334,12 @@ export interface WorkflowStepDefinition {
|
|
|
393
334
|
outputs?: StepOutputMapping;
|
|
394
335
|
/** Environment variables for this step */
|
|
395
336
|
env?: Record<string, string>;
|
|
337
|
+
/** Usage tracking override (future: per-step billing) */
|
|
338
|
+
usage?: StepUsage;
|
|
339
|
+
/** Output schema (future: validation) */
|
|
340
|
+
outputsSchema?: OutputsSchema;
|
|
341
|
+
/** Step-level rollback logic (future: compensation) */
|
|
342
|
+
rollback?: StepRollback;
|
|
396
343
|
}
|
|
397
344
|
/**
|
|
398
345
|
* Core workflow execution definition
|
|
@@ -416,6 +363,172 @@ export interface WorkflowLifecycleHooks {
|
|
|
416
363
|
/** Steps to always run (cleanup) */
|
|
417
364
|
always?: any[];
|
|
418
365
|
}
|
|
366
|
+
/**
|
|
367
|
+
* Workflow source information
|
|
368
|
+
*
|
|
369
|
+
* @category Identity
|
|
370
|
+
* @status future
|
|
371
|
+
*/
|
|
372
|
+
export interface WorkflowSource {
|
|
373
|
+
/** Source type */
|
|
374
|
+
type: WorkflowSourceType;
|
|
375
|
+
/** Source reference (e.g., marketplace URL, file path) */
|
|
376
|
+
ref?: string;
|
|
377
|
+
}
|
|
378
|
+
/**
|
|
379
|
+
* Workflow identity and lineage tracking
|
|
380
|
+
*
|
|
381
|
+
* @category Identity
|
|
382
|
+
* @status future - reserved for traceability
|
|
383
|
+
*/
|
|
384
|
+
export interface WorkflowIdentity {
|
|
385
|
+
/** Unique workflow identifier */
|
|
386
|
+
workflowId?: string;
|
|
387
|
+
/** Parent workflow ID (if forked) */
|
|
388
|
+
parentWorkflow?: string;
|
|
389
|
+
/** Workflow source information */
|
|
390
|
+
source?: WorkflowSource;
|
|
391
|
+
}
|
|
392
|
+
/**
|
|
393
|
+
* Execution strategy and runtime configuration
|
|
394
|
+
*
|
|
395
|
+
* @category Execution
|
|
396
|
+
* @status future - reserved for multi-environment support
|
|
397
|
+
*/
|
|
398
|
+
export interface ExecutionStrategy {
|
|
399
|
+
/** Execution mode */
|
|
400
|
+
mode?: ExecutionMode;
|
|
401
|
+
/** Isolation level */
|
|
402
|
+
isolation?: IsolationLevel;
|
|
403
|
+
/** Execution priority */
|
|
404
|
+
priority?: ExecutionPriority;
|
|
405
|
+
/** Strategy type for execution */
|
|
406
|
+
strategyType?: StrategyType;
|
|
407
|
+
}
|
|
408
|
+
/**
|
|
409
|
+
* Schema definition for outputs
|
|
410
|
+
*
|
|
411
|
+
* @category Contracts
|
|
412
|
+
* @status future - reserved for compile-time validation
|
|
413
|
+
*/
|
|
414
|
+
export interface OutputSchema {
|
|
415
|
+
/** Data type */
|
|
416
|
+
type: 'string' | 'number' | 'boolean' | 'array' | 'object';
|
|
417
|
+
/** Whether output is required */
|
|
418
|
+
required?: boolean;
|
|
419
|
+
/** Output description */
|
|
420
|
+
description?: string;
|
|
421
|
+
}
|
|
422
|
+
/**
|
|
423
|
+
* Telemetry and observability controls
|
|
424
|
+
*
|
|
425
|
+
* @category Observability
|
|
426
|
+
* @status future - reserved for privacy controls
|
|
427
|
+
*/
|
|
428
|
+
export interface TelemetryConfig {
|
|
429
|
+
/** Enable telemetry */
|
|
430
|
+
enabled?: boolean;
|
|
431
|
+
/** Telemetry level */
|
|
432
|
+
level?: TelemetryLevel;
|
|
433
|
+
/** Logs verbosity level */
|
|
434
|
+
logs?: LogsLevel;
|
|
435
|
+
/** Metrics collection level */
|
|
436
|
+
metrics?: MetricsLevel;
|
|
437
|
+
/** Trace collection level */
|
|
438
|
+
trace?: TraceLevel;
|
|
439
|
+
/** Fields to redact from logs */
|
|
440
|
+
redact?: string[];
|
|
441
|
+
}
|
|
442
|
+
/**
|
|
443
|
+
* Cost and usage accounting
|
|
444
|
+
*
|
|
445
|
+
* @category Accounting
|
|
446
|
+
* @status future - reserved for monetization
|
|
447
|
+
*/
|
|
448
|
+
export interface AccountingConfig {
|
|
449
|
+
/** Whether execution is billable */
|
|
450
|
+
billable?: boolean;
|
|
451
|
+
/** Billing unit */
|
|
452
|
+
unit?: AccountingUnit;
|
|
453
|
+
/** Custom tags for accounting */
|
|
454
|
+
tags?: Record<string, string>;
|
|
455
|
+
}
|
|
456
|
+
/**
|
|
457
|
+
* Engine version constraints
|
|
458
|
+
*
|
|
459
|
+
* @category Compatibility
|
|
460
|
+
* @status future - reserved for version management
|
|
461
|
+
*/
|
|
462
|
+
export interface EngineCompatibility {
|
|
463
|
+
/** Minimum engine version */
|
|
464
|
+
min?: string;
|
|
465
|
+
/** Maximum engine version */
|
|
466
|
+
max?: string;
|
|
467
|
+
}
|
|
468
|
+
/**
|
|
469
|
+
* Version compatibility and constraints
|
|
470
|
+
*
|
|
471
|
+
* @category Compatibility
|
|
472
|
+
* @status future - reserved for safe upgrades
|
|
473
|
+
*/
|
|
474
|
+
export interface CompatibilityConfig {
|
|
475
|
+
/** Engine version requirements */
|
|
476
|
+
engine?: EngineCompatibility;
|
|
477
|
+
/** Required adapter versions */
|
|
478
|
+
adapters?: Record<string, string>;
|
|
479
|
+
}
|
|
480
|
+
/**
|
|
481
|
+
* Advanced failure handling semantics
|
|
482
|
+
*
|
|
483
|
+
* @category Execution
|
|
484
|
+
* @status future - reserved for complex workflows
|
|
485
|
+
*/
|
|
486
|
+
export interface FailureSemantics {
|
|
487
|
+
/** Action on step failure */
|
|
488
|
+
onStepFailure?: FailureAction;
|
|
489
|
+
/** Step-specific failure action */
|
|
490
|
+
stepAction?: StepFailureAction;
|
|
491
|
+
/** Action on timeout */
|
|
492
|
+
onTimeout?: TimeoutAction;
|
|
493
|
+
}
|
|
494
|
+
/**
|
|
495
|
+
* Step-level rollback configuration
|
|
496
|
+
*
|
|
497
|
+
* @category Execution
|
|
498
|
+
* @status future - reserved for compensation logic
|
|
499
|
+
*/
|
|
500
|
+
export interface StepRollback {
|
|
501
|
+
/** Action for rollback */
|
|
502
|
+
uses: string;
|
|
503
|
+
/** Input parameters for rollback */
|
|
504
|
+
with?: Record<string, any>;
|
|
505
|
+
}
|
|
506
|
+
/**
|
|
507
|
+
* Workflow-level rollback configuration
|
|
508
|
+
*
|
|
509
|
+
* @category Execution
|
|
510
|
+
* @status future - reserved for transactional workflows
|
|
511
|
+
*/
|
|
512
|
+
export interface RollbackConfig {
|
|
513
|
+
/** Enable rollback */
|
|
514
|
+
enabled?: boolean;
|
|
515
|
+
/** Rollback strategy */
|
|
516
|
+
strategy?: RollbackStrategy;
|
|
517
|
+
}
|
|
518
|
+
/**
|
|
519
|
+
* Governance and team metadata
|
|
520
|
+
*
|
|
521
|
+
* @category Governance
|
|
522
|
+
* @status future - reserved for enterprise features
|
|
523
|
+
*/
|
|
524
|
+
export interface GovernanceConfig {
|
|
525
|
+
/** Required reviewers */
|
|
526
|
+
reviewers?: string[];
|
|
527
|
+
/** Whether approval is required before execution */
|
|
528
|
+
approvalRequired?: boolean;
|
|
529
|
+
/** Additional governance metadata */
|
|
530
|
+
[key: string]: any;
|
|
531
|
+
}
|
|
419
532
|
/**
|
|
420
533
|
* Complete Orbyt workflow definition
|
|
421
534
|
*
|
|
@@ -454,50 +567,27 @@ export interface WorkflowDefinition {
|
|
|
454
567
|
outputs?: Record<string, string>;
|
|
455
568
|
/** Lifecycle hooks (future) */
|
|
456
569
|
on?: WorkflowLifecycleHooks;
|
|
570
|
+
/** Usage tracking configuration */
|
|
571
|
+
usage?: WorkflowUsage;
|
|
572
|
+
/** Workflow identity & lineage (future: traceability) */
|
|
573
|
+
identity?: WorkflowIdentity;
|
|
574
|
+
/** Execution strategy (future: multi-environment) */
|
|
575
|
+
execution?: ExecutionStrategy;
|
|
576
|
+
/** Output schema (future: validation) */
|
|
577
|
+
outputsSchema?: OutputsSchema;
|
|
578
|
+
/** Telemetry controls (future: privacy) */
|
|
579
|
+
telemetry?: TelemetryConfig;
|
|
580
|
+
/** Cost accounting (future: monetization) */
|
|
581
|
+
accounting?: AccountingConfig;
|
|
582
|
+
/** Version compatibility (future: safe upgrades) */
|
|
583
|
+
compatibility?: CompatibilityConfig;
|
|
584
|
+
/** Failure semantics (future: advanced error handling) */
|
|
585
|
+
failurePolicy?: FailureSemantics;
|
|
586
|
+
/** Rollback config (future: transactional workflows) */
|
|
587
|
+
rollback?: RollbackConfig;
|
|
588
|
+
/** Governance metadata (future: enterprise) */
|
|
589
|
+
governance?: GovernanceConfig;
|
|
457
590
|
}
|
|
458
|
-
|
|
459
|
-
*
|
|
460
|
-
|
|
461
|
-
*
|
|
462
|
-
* Namespaces:
|
|
463
|
-
* - inputs.*
|
|
464
|
-
* - secrets.*
|
|
465
|
-
* - steps.*.outputs.*
|
|
466
|
-
* - context.*
|
|
467
|
-
* - env.*
|
|
468
|
-
*
|
|
469
|
-
* @category Variables
|
|
470
|
-
*/
|
|
471
|
-
export type VariableReference = string;
|
|
472
|
-
/**
|
|
473
|
-
* Action reference pattern
|
|
474
|
-
* Format: namespace.action or namespace.domain.action
|
|
475
|
-
*
|
|
476
|
-
* Examples:
|
|
477
|
-
* - mediaproc.image.resize
|
|
478
|
-
* - cli.exec
|
|
479
|
-
* - http.request
|
|
480
|
-
*
|
|
481
|
-
* @category Actions
|
|
482
|
-
*/
|
|
483
|
-
export type ActionReference = string;
|
|
484
|
-
/**
|
|
485
|
-
* Secret reference pattern
|
|
486
|
-
* Format: provider:path
|
|
487
|
-
*
|
|
488
|
-
* Examples:
|
|
489
|
-
* - vaulta:mediaproc/api/key
|
|
490
|
-
* - aws-secrets:prod/db/password
|
|
491
|
-
*
|
|
492
|
-
* @category Secrets
|
|
493
|
-
*/
|
|
494
|
-
export type SecretReference = string;
|
|
495
|
-
/**
|
|
496
|
-
* Marks fields that are implemented in v1
|
|
497
|
-
*/
|
|
498
|
-
export type V1Field = unknown;
|
|
499
|
-
/**
|
|
500
|
-
* Marks fields that are reserved for future versions
|
|
501
|
-
*/
|
|
502
|
-
export type FutureField = unknown;
|
|
503
|
-
//# sourceMappingURL=workflow.types.d.ts.map
|
|
591
|
+
export * from './workflow.enums.js';
|
|
592
|
+
export * from './workflow.type.js';
|
|
593
|
+
//# sourceMappingURL=workflow.interfaces.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow.interfaces.d.ts","sourceRoot":"","sources":["../../src/types/workflow.interfaces.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAMH,OAAO,KAAK,EACV,YAAY,EACZ,WAAW,EACX,aAAa,EACb,eAAe,EACf,YAAY,EACZ,oBAAoB,EACpB,kBAAkB,EAClB,aAAa,EACb,cAAc,EACd,iBAAiB,EACjB,cAAc,EACd,cAAc,EACd,aAAa,EACb,aAAa,EACb,gBAAgB,EAChB,UAAU,EACV,aAAa,EACb,iBAAiB,EACjB,QAAQ,EACR,SAAS,EACT,YAAY,EACZ,iBAAiB,EACjB,YAAY,EACZ,UAAU,EACX,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EACV,SAAS,EACT,WAAW,EACX,iBAAiB,EACjB,aAAa,EACb,OAAO,EACP,WAAW,EACX,aAAa,EACb,eAAe,EACf,cAAc,EACf,MAAM,oBAAoB,CAAC;AAM5B;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB;IAC/B,mCAAmC;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,+CAA+C;IAC/C,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,yCAAyC;IACzC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAEhB,+BAA+B;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,oDAAoD;IACpD,OAAO,CAAC,EAAE,MAAM,CAA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3B,WAAW,CAAC,EAAE,mBAAmB,CAAC;IAElC,oCAAoC;IACpC,SAAS,CAAC,EAAE,iBAAiB,CAAC;IAI9B,gDAAgD;IAChD,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAEjC,+BAA+B;IAC/B,EAAE,CAAC,EAAE,sBAAsB,CAAC;IAE5B,mCAAmC;IACnC,KAAK,CAAC,EAAE,aAAa,CAAC;IAItB,yDAAyD;IACzD,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAE5B,qDAAqD;IACrD,SAAS,CAAC,EAAE,iBAAiB,CAAC;IAE9B,yCAAyC;IACzC,aAAa,CAAC,EAAE,aAAa,CAAC;IAE9B,2CAA2C;IAC3C,SAAS,CAAC,EAAE,eAAe,CAAC;IAE5B,6CAA6C;IAC7C,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAE9B,oDAAoD;IACpD,aAAa,CAAC,EAAE,mBAAmB,CAAC;IAEpC,0DAA0D;IAC1D,aAAa,CAAC,EAAE,gBAAgB,CAAC;IAEjC,wDAAwD;IACxD,QAAQ,CAAC,EAAE,cAAc,CAAC;IAE1B,+CAA+C;IAC/C,UAAU,CAAC,EAAE,gBAAgB,CAAC;CAC/B;AAKD,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Orbyt Workflow Type Definitions
|
|
3
|
+
*
|
|
4
|
+
* Comprehensive TypeScript interfaces for Orbyt workflows.
|
|
5
|
+
* These interfaces define the structure of workflow definitions across the ecosystem.
|
|
6
|
+
*
|
|
7
|
+
* Key Principles:
|
|
8
|
+
* - Domain-agnostic: works for any workflow type
|
|
9
|
+
* - Explicit over implicit: no `any` unless truly dynamic
|
|
10
|
+
* - Documented: every interface has clear purpose
|
|
11
|
+
* - Versioned: includes v1 and future-reserved fields
|
|
12
|
+
*
|
|
13
|
+
* Note: Enums are in workflow.enums.ts, type aliases are in workflow.type-aliases.ts
|
|
14
|
+
*/
|
|
15
|
+
// VariableReference, ActionReference, SecretReference are imported from workflow.type-aliases.ts
|
|
16
|
+
// V1Field and FutureField markers are imported from workflow.type-aliases.ts
|
|
17
|
+
export * from './workflow.enums.js';
|
|
18
|
+
export * from './workflow.type.js';
|
|
19
|
+
//# sourceMappingURL=workflow.interfaces.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow.interfaces.js","sourceRoot":"","sources":["../../src/types/workflow.interfaces.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAy2BH,iGAAiG;AACjG,6EAA6E;AAE7E,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Simple type aliases for workflow schemas
|
|
3
|
+
* @module workflow.type-aliases
|
|
4
|
+
*/
|
|
5
|
+
import type { CronTrigger, EventTrigger, ManualTrigger, OutputSchema, WebhookTrigger, WorkflowInputDefinition } from "./workflow.interfaces";
|
|
6
|
+
/**
|
|
7
|
+
* Scalar and complex input types for workflow variables
|
|
8
|
+
*/
|
|
9
|
+
export type InputType = 'string' | 'number' | 'boolean' | 'array' | 'object' | 'secret';
|
|
10
|
+
/**
|
|
11
|
+
* Timeout specification - ISO 8601 duration or numeric seconds
|
|
12
|
+
*/
|
|
13
|
+
export type TimeoutSpec = string | number;
|
|
14
|
+
/**
|
|
15
|
+
* Mapping of step outputs to workflow variables - key = target var, value = source path
|
|
16
|
+
*/
|
|
17
|
+
export type StepOutputMapping = Record<string, string>;
|
|
18
|
+
/**
|
|
19
|
+
* Step execution condition - expression string
|
|
20
|
+
* Supports $inputs.*, $secrets.*, $steps.*.outputs.*, $context.*
|
|
21
|
+
*/
|
|
22
|
+
export type StepCondition = string;
|
|
23
|
+
/**
|
|
24
|
+
* Runtime variable reference - used for ${variable} interpolation
|
|
25
|
+
* @example "${inputs.name}", "${context.workspace}"
|
|
26
|
+
*/
|
|
27
|
+
export type VariableReference = string;
|
|
28
|
+
/**
|
|
29
|
+
* Reference to a step or action - used for step dependencies
|
|
30
|
+
* @example "build", "test", "deploy"
|
|
31
|
+
*/
|
|
32
|
+
export type ActionReference = string;
|
|
33
|
+
/**
|
|
34
|
+
* Secret reference for secure data - used for ${secrets.*} interpolation
|
|
35
|
+
* @example "${secrets.apiKey}", "${secrets.dbPassword}"
|
|
36
|
+
*/
|
|
37
|
+
export type SecretReference = string;
|
|
38
|
+
/**
|
|
39
|
+
* Marker for V1 fields - used for tracking schema evolution
|
|
40
|
+
*/
|
|
41
|
+
export type V1Field = true;
|
|
42
|
+
/**
|
|
43
|
+
* Marker for future fields - reserved for upcoming features
|
|
44
|
+
*/
|
|
45
|
+
export type FutureField = true;
|
|
46
|
+
/**
|
|
47
|
+
* Workflow version string
|
|
48
|
+
*/
|
|
49
|
+
export type WorkflowVersion = string;
|
|
50
|
+
/**
|
|
51
|
+
* Retry policy identifier
|
|
52
|
+
*/
|
|
53
|
+
export type RetryPolicy = string;
|
|
54
|
+
/**
|
|
55
|
+
* Caching strategy identifier
|
|
56
|
+
*/
|
|
57
|
+
export type CacheStrategy = string;
|
|
58
|
+
/**
|
|
59
|
+
* Resource constraint specification
|
|
60
|
+
*/
|
|
61
|
+
export type ResourceConstraints = Record<string, any>;
|
|
62
|
+
/**
|
|
63
|
+
* Environment variable definitions
|
|
64
|
+
*/
|
|
65
|
+
export type EnvironmentVariables = Record<string, string>;
|
|
66
|
+
/**
|
|
67
|
+
* Metadata key-value pairs
|
|
68
|
+
*/
|
|
69
|
+
export type Metadata = Record<string, any>;
|
|
70
|
+
/**
|
|
71
|
+
* Tags for categorization
|
|
72
|
+
*/
|
|
73
|
+
export type Tags = string[];
|
|
74
|
+
/**
|
|
75
|
+
* Permission scope identifier
|
|
76
|
+
*/
|
|
77
|
+
export type PermissionScope = string;
|
|
78
|
+
/**
|
|
79
|
+
* Audit log entry structure
|
|
80
|
+
*/
|
|
81
|
+
export type AuditLogEntry = Record<string, any>;
|
|
82
|
+
/**
|
|
83
|
+
* Execution context data
|
|
84
|
+
*/
|
|
85
|
+
export type ExecutionContext = Record<string, any>;
|
|
86
|
+
/**
|
|
87
|
+
* Step dependencies array
|
|
88
|
+
*/
|
|
89
|
+
export type StepDependencies = string[];
|
|
90
|
+
/**
|
|
91
|
+
* Transformation function definition
|
|
92
|
+
*/
|
|
93
|
+
export type TransformFunction = string;
|
|
94
|
+
/**
|
|
95
|
+
* Validation rule definition
|
|
96
|
+
*/
|
|
97
|
+
export type ValidationRule = Record<string, any>;
|
|
98
|
+
/**
|
|
99
|
+
* Notification configuration
|
|
100
|
+
*/
|
|
101
|
+
export type NotificationConfig = Record<string, any>;
|
|
102
|
+
/**
|
|
103
|
+
* Webhook payload structure
|
|
104
|
+
*/
|
|
105
|
+
export type WebhookPayload = Record<string, any>;
|
|
106
|
+
/**
|
|
107
|
+
* Schedule configuration
|
|
108
|
+
*/
|
|
109
|
+
export type ScheduleConfig = Record<string, any>;
|
|
110
|
+
/**
|
|
111
|
+
* Filter expression string
|
|
112
|
+
*/
|
|
113
|
+
export type FilterExpression = string;
|
|
114
|
+
/**
|
|
115
|
+
* Aggregation configuration
|
|
116
|
+
*/
|
|
117
|
+
export type AggregationConfig = Record<string, any>;
|
|
118
|
+
/**
|
|
119
|
+
* Parallel execution configuration
|
|
120
|
+
*/
|
|
121
|
+
export type ParallelConfig = Record<string, any>;
|
|
122
|
+
/**
|
|
123
|
+
* Union of all trigger types (override type alias with proper definition)
|
|
124
|
+
*
|
|
125
|
+
* @category Triggers
|
|
126
|
+
*/
|
|
127
|
+
export type WorkflowTrigger = ManualTrigger | CronTrigger | EventTrigger | WebhookTrigger;
|
|
128
|
+
/**
|
|
129
|
+
* Runtime parameters for workflow reusability (override type alias with proper definition)
|
|
130
|
+
*
|
|
131
|
+
* @category Inputs
|
|
132
|
+
*/
|
|
133
|
+
export type WorkflowInputs = Record<string, WorkflowInputDefinition>;
|
|
134
|
+
/**
|
|
135
|
+
* Output schema mapping (override type alias with proper definition)
|
|
136
|
+
*
|
|
137
|
+
* @category Contracts
|
|
138
|
+
* @status future - reserved for type safety
|
|
139
|
+
*/
|
|
140
|
+
export type OutputsSchema = Record<string, OutputSchema>;
|
|
141
|
+
//# sourceMappingURL=workflow.type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow.type.d.ts","sourceRoot":"","sources":["../../src/types/workflow.type.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAE7I;;GAEG;AACH,MAAM,MAAM,SAAS,GACjB,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,OAAO,GACP,QAAQ,GACR,QAAQ,CAAC;AAEb;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,MAAM,CAAC;AAE1C;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEvD;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC;AAEnC;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC;AAEvC;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC;AAErC;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC;AAErC;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG,IAAI,CAAC;AAE3B;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC;AAE/B;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC;AAErC;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC;AAEjC;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,CAA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AG,CAAC,CAAC;AAEjD;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG,aAAa,GAAG,WAAW,GAAG,YAAY,GAAG,cAAc,CAAC;AAE1F;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,uBAAuB,CAAC,CAAC;AAErE;;;;;GAKG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow.type.js","sourceRoot":"","sources":["../../src/types/workflow.type.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
|
package/package.json
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dev-ecosystem/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Core utilities and libraries for the Dev Ecosystem.",
|
|
5
5
|
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": "./dist/index.js",
|
|
11
|
+
"types": "./dist/index.d.ts"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
6
14
|
"scripts": {
|
|
7
15
|
"build": "rm -rf dist && tsc",
|
|
8
16
|
"clean": "rm -rf dist"
|
|
@@ -26,5 +34,8 @@
|
|
|
26
34
|
"license": "MIT",
|
|
27
35
|
"engines": {
|
|
28
36
|
"node": ">=22.0.0"
|
|
37
|
+
},
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"zod": "^4.3.6"
|
|
29
40
|
}
|
|
30
|
-
}
|
|
41
|
+
}
|