@oomol-lab/open-flow 0.1.0-beta.55 → 0.1.0-beta.57

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.
Files changed (51) hide show
  1. package/README.md +1 -1
  2. package/dist/browser/{createResourceDialog-4H5_lZ6s.js → createResourceDialog-C23SBjYd.js} +2 -2
  3. package/dist/browser/flow-authoring-edge.d.ts +3 -3
  4. package/dist/browser/flow-authoring-node.d.ts +30 -46
  5. package/dist/browser/flow-authoring.js +9215 -21030
  6. package/dist/browser/flow-change-schema.d.ts +267 -1
  7. package/dist/browser/flow-change.d.ts +19 -104
  8. package/dist/browser/flow-change.js +154 -298
  9. package/dist/browser/{flowChanges-ZzG-f9cg.js → flowChanges-fBiAeTzR.js} +2347 -2216
  10. package/dist/browser/{flowWorkspace-ChpRaTMX.js → flowWorkspace-MqcEfg7T.js} +118 -293
  11. package/dist/browser/{icons-CdAB9wyS.js → icons-6oQ8Q9Wm.js} +4309 -4454
  12. package/dist/browser/lib-DrKav3HG.js +11403 -0
  13. package/dist/browser/preview.css +1 -1
  14. package/dist/browser/preview.js +9609 -9548
  15. package/dist/browser/ui-idTooltip.d.ts +11 -0
  16. package/dist/browser/ui.d.ts +5 -0
  17. package/dist/browser/ui.js +83 -1
  18. package/dist/browser/workbench.css +1 -1
  19. package/dist/browser/workbench.js +227 -417
  20. package/dist/browser/{workbenchSelect-BRZN4ish.js → workbenchSelect-DpLbIr29.js} +1 -1
  21. package/dist/common/authoring.d.ts +207 -0
  22. package/dist/common/authoringSchema.d.ts +1293 -0
  23. package/dist/common/control-api-conformance.js +1060 -623
  24. package/dist/common/control-api-errors.d.ts +2 -1
  25. package/dist/common/control-api.d.ts +87 -6
  26. package/dist/common/control-api.js +1058 -705
  27. package/dist/common/control-requests.d.ts +128 -0
  28. package/dist/common/control-requests.js +2913 -1145
  29. package/dist/common/decision.js +6337 -6371
  30. package/dist/common/flow-agent.d.ts +1 -1
  31. package/dist/common/flow-connectionUsage.d.ts +1 -2
  32. package/dist/common/flow-encoding.d.ts +2 -4
  33. package/dist/common/flow-encoding.js +131 -182
  34. package/dist/common/flow-graph.d.ts +10 -10
  35. package/dist/common/flow-semantics.d.ts +13 -9
  36. package/dist/common/flow-semantics.js +9051 -9232
  37. package/dist/common/flowInspection.d.ts +3 -21
  38. package/dist/common/integration-trigger.js +8653 -8687
  39. package/dist/common/lib-DrKav3HG.js +11403 -0
  40. package/dist/common/mcp.d.ts +120 -12
  41. package/dist/common/mcp.js +537 -188
  42. package/dist/common/openapi.js +6337 -6371
  43. package/dist/common/poll-trigger.js +8653 -8687
  44. package/dist/common/run-events.js +0 -1
  45. package/dist/common/scheduler.d.ts +3 -9
  46. package/dist/common/scheduler.js +128 -209
  47. package/dist/common/webhook-trigger.js +6337 -6371
  48. package/package.json +7 -1
  49. package/skills/open-flow/SKILL.md +32 -0
  50. package/skills/open-flow/references/flow-authoring.md +356 -0
  51. package/skills/open-flow/references/flow-n8n-conversion.md +196 -0
@@ -190,5 +190,6 @@ export declare const controlErrorMetadata: {
190
190
  export declare class ApiError extends Error {
191
191
  readonly code: string;
192
192
  readonly status: number;
193
- constructor(status: number, code: string, message: string);
193
+ readonly details?: Readonly<Record<string, unknown>>;
194
+ constructor(status: number, code: string, message: string, details?: Readonly<Record<string, unknown>>);
194
195
  }
@@ -1,3 +1,4 @@
1
+ import type { AuthoringRead, AuthoringSearch, AuthoringRequest, AuthoringType } from './authoringSchema.js';
1
2
  import type { ProviderIconAppearance } from './providerIconSprite.js';
2
3
  export { providerIconAppearance } from './providerIconSprite.js';
3
4
  export type { ProviderIconAppearance, ProviderIconSprite, ProviderIconSpriteCatalog } from './providerIconSprite.js';
@@ -19,6 +20,7 @@ import { decodeResultList, decodeResultRead } from './run-results.js';
19
20
  export { readResult, parseResultQuery, decodeResultList, decodeResultRead, type ResultCall, type ResultInfo, type ResultPage, type ResultQuery, } from './run-results.js';
20
21
  import type { RunStatus } from './run-lifecycle.js';
21
22
  import type { InputPortDefinition, JsonValue, PortDefinition, RevisionContent, TriggerKeySnapshot, WaitAction } from '../browser/flow-change.js';
23
+ import type { FlowResourceReferences } from './flow-semantics.js';
22
24
  export type { JsonValue, TriggerKeySnapshot, WaitAction } from '../browser/flow-change.js';
23
25
  export type { RunStatus } from './run-lifecycle.js';
24
26
  export { ApiError, controlErrorCode, controlErrorMetadata, type ControlErrorCode } from './control-api-errors.js';
@@ -31,6 +33,18 @@ export interface ErrorListener {
31
33
  readonly nodeName: string;
32
34
  readonly enabled: boolean;
33
35
  }
36
+ export interface FlowResources {
37
+ readonly draft: FlowResourceReferences | null;
38
+ readonly sharedAccess: {
39
+ readonly accessRevision: number;
40
+ readonly providerIds: readonly string[];
41
+ readonly bindings: readonly {
42
+ readonly providerId: string;
43
+ readonly connectionId: string | null;
44
+ readonly accessBindingId: string;
45
+ }[];
46
+ };
47
+ }
34
48
  export interface Flow {
35
49
  readonly live?: {
36
50
  readonly enabled: boolean;
@@ -39,6 +53,7 @@ export interface Flow {
39
53
  };
40
54
  readonly createdAt: string;
41
55
  readonly draftRevisionId: string;
56
+ readonly resourceReferences: FlowResources;
42
57
  readonly flowId: string;
43
58
  /** Connector Team scope used by the OOMOL resource cache. */
44
59
  readonly connectorTeamId?: string;
@@ -449,12 +464,12 @@ export declare function decodeRunEvent(value: unknown): {
449
464
  readonly sequence: number;
450
465
  readonly kind: "run.queued";
451
466
  readonly payload: {
452
- nodeId?: undefined;
453
467
  readonly flowId?: undefined;
454
468
  readonly scopeId?: undefined;
455
469
  readonly progress?: undefined;
456
470
  readonly waitIds?: undefined;
457
471
  readonly expiresAt?: undefined;
472
+ readonly nodeId?: undefined;
458
473
  readonly waitingSince?: undefined;
459
474
  readonly action?: undefined;
460
475
  readonly comment?: undefined;
@@ -467,13 +482,13 @@ export declare function decodeRunEvent(value: unknown): {
467
482
  readonly sequence: number;
468
483
  readonly kind: "run.started";
469
484
  readonly payload: {
470
- nodeId?: undefined;
471
485
  readonly flowId: string;
472
486
  readonly scopeId: string;
473
487
  readonly parentScopeId?: string | undefined;
474
488
  readonly progress?: undefined;
475
489
  readonly waitIds?: undefined;
476
490
  readonly expiresAt?: undefined;
491
+ readonly nodeId?: undefined;
477
492
  readonly waitingSince?: undefined;
478
493
  readonly action?: undefined;
479
494
  readonly comment?: undefined;
@@ -486,12 +501,12 @@ export declare function decodeRunEvent(value: unknown): {
486
501
  readonly sequence: number;
487
502
  readonly kind: "run.progress";
488
503
  readonly payload: {
489
- nodeId?: undefined;
490
504
  readonly flowId: string;
491
505
  readonly scopeId: string;
492
506
  readonly progress: number;
493
507
  readonly waitIds?: undefined;
494
508
  readonly expiresAt?: undefined;
509
+ readonly nodeId?: undefined;
495
510
  readonly waitingSince?: undefined;
496
511
  readonly action?: undefined;
497
512
  readonly comment?: undefined;
@@ -504,12 +519,12 @@ export declare function decodeRunEvent(value: unknown): {
504
519
  readonly sequence: number;
505
520
  readonly kind: "run.waiting";
506
521
  readonly payload: {
507
- nodeId?: undefined;
508
522
  readonly flowId?: undefined;
509
523
  readonly scopeId?: undefined;
510
524
  readonly progress?: undefined;
511
525
  readonly waitIds: string[];
512
526
  readonly expiresAt?: undefined;
527
+ readonly nodeId?: undefined;
513
528
  readonly waitingSince?: undefined;
514
529
  readonly action?: undefined;
515
530
  readonly comment?: undefined;
@@ -540,12 +555,12 @@ export declare function decodeRunEvent(value: unknown): {
540
555
  readonly sequence: number;
541
556
  readonly kind: "run.resolved";
542
557
  readonly payload: {
543
- nodeId?: undefined;
544
558
  readonly flowId?: undefined;
545
559
  readonly scopeId?: undefined;
546
560
  readonly progress?: undefined;
547
561
  readonly waitIds?: undefined;
548
562
  readonly expiresAt?: undefined;
563
+ readonly nodeId?: undefined;
549
564
  readonly waitingSince?: undefined;
550
565
  readonly action: "approve" | "continue" | "reject";
551
566
  readonly comment: string | null;
@@ -558,12 +573,12 @@ export declare function decodeRunEvent(value: unknown): {
558
573
  readonly sequence: number;
559
574
  readonly kind: "run.canceled" | "run.completed" | "run.failed" | "run.indeterminate";
560
575
  readonly payload: {
561
- nodeId?: undefined;
562
576
  readonly flowId?: undefined;
563
577
  readonly scopeId?: undefined;
564
578
  readonly progress?: undefined;
565
579
  readonly waitIds?: undefined;
566
580
  readonly expiresAt?: undefined;
581
+ readonly nodeId?: undefined;
567
582
  readonly waitingSince?: undefined;
568
583
  readonly action?: undefined;
569
584
  readonly comment?: undefined;
@@ -804,6 +819,72 @@ export declare class ControlClient {
804
819
  listAllConnectorConnections(signal?: AbortSignal, flowId?: string, fresh?: boolean): Promise<readonly ConnectorConnection[]>;
805
820
  listConnectorConnections(serviceId: string, signal?: AbortSignal, flowId?: string, fresh?: boolean): Promise<readonly ConnectorConnection[]>;
806
821
  createConnectorConnectionPage(serviceId: string, flowId?: string, teamId?: string): Promise<string>;
822
+ readAuthoring(flowId: string, query?: AuthoringRead): Promise<{
823
+ flowId: string;
824
+ revision: string;
825
+ data: {
826
+ nodes?: Record<string, import("zod").JSONType>[] | undefined;
827
+ edges?: import("zod").JSONType[] | undefined;
828
+ text?: Record<string, import("zod").JSONType> | undefined;
829
+ };
830
+ version: 1;
831
+ }>;
832
+ searchAuthoring(flowId: string, query: AuthoringSearch): Promise<{
833
+ flowId: string;
834
+ revision: string;
835
+ data: {
836
+ matches: {
837
+ node: string;
838
+ field: string;
839
+ line?: number | undefined;
840
+ excerpt: string;
841
+ }[];
842
+ total: number;
843
+ nextOffset?: number | undefined;
844
+ };
845
+ version: 1;
846
+ }>;
847
+ authoringSchema(flowId: string, query: {
848
+ type?: AuthoringType;
849
+ action?: string;
850
+ }): Promise<Readonly<Record<string, unknown>>>;
851
+ editAuthoring(flowId: string, request: AuthoringRequest): Promise<{
852
+ flowId: string;
853
+ saved: true;
854
+ revision: string;
855
+ nodes: Record<string, string>;
856
+ changes: {
857
+ index: number;
858
+ op: string;
859
+ node?: string | undefined;
860
+ }[];
861
+ validation: {
862
+ status: "invalid" | "unavailable" | "valid";
863
+ diagnostics?: {
864
+ code: string;
865
+ message: string;
866
+ nodes: string[];
867
+ field?: string | undefined;
868
+ line?: number | undefined;
869
+ column?: number | undefined;
870
+ }[] | undefined;
871
+ };
872
+ version: 1;
873
+ }>;
874
+ checkAuthoring(flowId: string, revisionId: string): Promise<{
875
+ flowId: string;
876
+ revisionId: string;
877
+ valid: boolean;
878
+ diagnostics: {
879
+ code: string;
880
+ message: string;
881
+ nodes: string[];
882
+ field?: string | undefined;
883
+ line?: number | undefined;
884
+ column?: number | undefined;
885
+ }[];
886
+ version: 1;
887
+ }>;
807
888
  changeDraft(flowId: string, expectedRevisionId: string, operations: readonly DraftOperation[], changeId?: string): Promise<DraftChange>;
808
889
  repairDraft(flowId: string, expectedRevisionId: string, changeId?: string): Promise<DraftChange>;
809
890
  checkFlow(flowId: string, revisionId: string): Promise<FlowCheck>;