@oomol-lab/open-flow 0.1.0-beta.60 → 0.1.0-beta.61

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.
@@ -30,6 +30,7 @@ export declare const controlErrorCode: {
30
30
  readonly publicationConflict: 'publication.conflict';
31
31
  readonly publicationNotFound: 'publication.not-found';
32
32
  readonly publicationUnsupported: 'publication.unsupported';
33
+ readonly resourceNotFound: 'resource.not-found';
33
34
  readonly publishOperationNotFound: 'publication.operation-not-found';
34
35
  readonly routeNotFound: 'route.not-found';
35
36
  readonly runConflict: 'run.conflict';
@@ -141,6 +142,9 @@ export declare const controlErrorMetadata: {
141
142
  readonly "publication.unsupported": {
142
143
  readonly status: 409;
143
144
  };
145
+ readonly "resource.not-found": {
146
+ readonly status: 404;
147
+ };
144
148
  readonly "publication.operation-not-found": {
145
149
  readonly status: 404;
146
150
  };
@@ -1,4 +1,7 @@
1
1
  import type { AuthoringRead, AuthoringSearch, AuthoringRequest, AuthoringType } from './authoringSchema.js';
2
+ import type { PublicationResources, PublicationResourceDetail } from './publicationResources.js';
3
+ export { publicationResources } from './publicationResources.js';
4
+ export type { PublicationResource, PublicationResources, PublicationResourceDetail } from './publicationResources.js';
2
5
  import type { ProviderIconAppearance } from './providerIconSprite.js';
3
6
  export { providerIconAppearance } from './providerIconSprite.js';
4
7
  export type { ProviderIconAppearance, ProviderIconSprite, ProviderIconSpriteCatalog } from './providerIconSprite.js';
@@ -78,6 +81,24 @@ export interface FlowPage {
78
81
  readonly total?: number;
79
82
  readonly version: 1;
80
83
  }
84
+ export interface VariableReference {
85
+ readonly flowId: string;
86
+ readonly flowName: string;
87
+ readonly draft: boolean;
88
+ readonly live: {
89
+ readonly publicationId: string;
90
+ readonly enabled: boolean;
91
+ } | null;
92
+ }
93
+ export interface VariableReferences {
94
+ readonly version: 1;
95
+ readonly references: readonly VariableReference[];
96
+ readonly unknown: readonly {
97
+ readonly flowId: string;
98
+ readonly flowName: string;
99
+ readonly scope: 'draft' | 'live';
100
+ }[];
101
+ }
81
102
  export interface Variable {
82
103
  readonly name: string;
83
104
  readonly updatedAt: string;
@@ -104,7 +125,6 @@ export interface TriggerBinding {
104
125
  readonly health: 'failed' | 'healthy' | 'initializing' | 'needs_reauth' | 'suspended';
105
126
  readonly kind: 'error' | 'cron' | 'integration' | 'poll' | 'webhook';
106
127
  readonly lastErrorCode?: string;
107
- readonly operatorState: 'active' | 'paused';
108
128
  readonly runtimeVersion: number;
109
129
  readonly triggerNodeId: string;
110
130
  readonly updatedAt: string;
@@ -464,12 +484,12 @@ export declare function decodeRunEvent(value: unknown): {
464
484
  readonly sequence: number;
465
485
  readonly kind: "run.queued";
466
486
  readonly payload: {
487
+ nodeId?: undefined;
467
488
  readonly flowId?: undefined;
468
489
  readonly scopeId?: undefined;
469
490
  readonly progress?: undefined;
470
491
  readonly waitIds?: undefined;
471
492
  readonly expiresAt?: undefined;
472
- readonly nodeId?: undefined;
473
493
  readonly waitingSince?: undefined;
474
494
  readonly action?: undefined;
475
495
  readonly comment?: undefined;
@@ -482,13 +502,13 @@ export declare function decodeRunEvent(value: unknown): {
482
502
  readonly sequence: number;
483
503
  readonly kind: "run.started";
484
504
  readonly payload: {
505
+ nodeId?: undefined;
485
506
  readonly flowId: string;
486
507
  readonly scopeId: string;
487
508
  readonly parentScopeId?: string | undefined;
488
509
  readonly progress?: undefined;
489
510
  readonly waitIds?: undefined;
490
511
  readonly expiresAt?: undefined;
491
- readonly nodeId?: undefined;
492
512
  readonly waitingSince?: undefined;
493
513
  readonly action?: undefined;
494
514
  readonly comment?: undefined;
@@ -501,12 +521,12 @@ export declare function decodeRunEvent(value: unknown): {
501
521
  readonly sequence: number;
502
522
  readonly kind: "run.progress";
503
523
  readonly payload: {
524
+ nodeId?: undefined;
504
525
  readonly flowId: string;
505
526
  readonly scopeId: string;
506
527
  readonly progress: number;
507
528
  readonly waitIds?: undefined;
508
529
  readonly expiresAt?: undefined;
509
- readonly nodeId?: undefined;
510
530
  readonly waitingSince?: undefined;
511
531
  readonly action?: undefined;
512
532
  readonly comment?: undefined;
@@ -519,12 +539,12 @@ export declare function decodeRunEvent(value: unknown): {
519
539
  readonly sequence: number;
520
540
  readonly kind: "run.waiting";
521
541
  readonly payload: {
542
+ nodeId?: undefined;
522
543
  readonly flowId?: undefined;
523
544
  readonly scopeId?: undefined;
524
545
  readonly progress?: undefined;
525
546
  readonly waitIds: string[];
526
547
  readonly expiresAt?: undefined;
527
- readonly nodeId?: undefined;
528
548
  readonly waitingSince?: undefined;
529
549
  readonly action?: undefined;
530
550
  readonly comment?: undefined;
@@ -555,12 +575,12 @@ export declare function decodeRunEvent(value: unknown): {
555
575
  readonly sequence: number;
556
576
  readonly kind: "run.resolved";
557
577
  readonly payload: {
578
+ nodeId?: undefined;
558
579
  readonly flowId?: undefined;
559
580
  readonly scopeId?: undefined;
560
581
  readonly progress?: undefined;
561
582
  readonly waitIds?: undefined;
562
583
  readonly expiresAt?: undefined;
563
- readonly nodeId?: undefined;
564
584
  readonly waitingSince?: undefined;
565
585
  readonly action: "approve" | "continue" | "reject";
566
586
  readonly comment: string | null;
@@ -573,12 +593,12 @@ export declare function decodeRunEvent(value: unknown): {
573
593
  readonly sequence: number;
574
594
  readonly kind: "run.canceled" | "run.completed" | "run.failed" | "run.indeterminate";
575
595
  readonly payload: {
596
+ nodeId?: undefined;
576
597
  readonly flowId?: undefined;
577
598
  readonly scopeId?: undefined;
578
599
  readonly progress?: undefined;
579
600
  readonly waitIds?: undefined;
580
601
  readonly expiresAt?: undefined;
581
- readonly nodeId?: undefined;
582
602
  readonly waitingSince?: undefined;
583
603
  readonly action?: undefined;
584
604
  readonly comment?: undefined;
@@ -758,6 +778,7 @@ export declare class ControlClient {
758
778
  readonly variables: readonly Variable[];
759
779
  readonly version: 1;
760
780
  }>;
781
+ getVariableReferences(name: string, signal?: AbortSignal): Promise<VariableReferences>;
761
782
  getVariable(name: string): Promise<Variable>;
762
783
  putVariable(name: string, value: string): Promise<Variable>;
763
784
  deleteVariable(name: string): Promise<void>;
@@ -780,8 +801,6 @@ export declare class ControlClient {
780
801
  readonly cursor?: string;
781
802
  readonly limit?: number;
782
803
  }): Promise<TriggerActivityPage>;
783
- pauseFlowTrigger(flowId: string, triggerNodeId: string): Promise<TriggerBinding>;
784
- resumeFlowTrigger(flowId: string, triggerNodeId: string): Promise<TriggerBinding>;
785
804
  testFlowPollTrigger(flowId: string, triggerNodeId: string): Promise<PollTriggerTestResult>;
786
805
  getEditor(flowId: string): Promise<{
787
806
  readonly flow: Flow;
@@ -889,6 +908,8 @@ export declare class ControlClient {
889
908
  repairDraft(flowId: string, expectedRevisionId: string, changeId?: string): Promise<DraftChange>;
890
909
  checkFlow(flowId: string, revisionId: string): Promise<FlowCheck>;
891
910
  getLive(flowId: string, signal?: AbortSignal): Promise<Live>;
911
+ listPublicationResources(flowId: string, publicationId?: string): Promise<PublicationResources>;
912
+ getPublicationResource(flowId: string, resourceId: string, publicationId?: string): Promise<PublicationResourceDetail>;
892
913
  listPublications(flowId: string, options?: {
893
914
  readonly cursor?: string;
894
915
  readonly includeTotal?: boolean;