@oomol-lab/open-flow 0.1.0-beta.70 → 0.1.0-beta.71
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/browser/{FlowCanvas-CqtUDPGj.js → FlowCanvas-Dtf8_cQp.js} +31 -31
- package/dist/browser/{createResourceDialog-BAHYW9yu.js → createResourceDialog-BWJkjiOO.js} +2 -2
- package/dist/browser/{dialog-DcGOzUP2.js → dialog-CUy_fwx9.js} +4586 -4586
- package/dist/browser/{exportSvg-Dv5Qgrq7.js → exportSvg-BOoy7-Db.js} +1 -1
- package/dist/browser/flow-authoring.js +9467 -9467
- package/dist/browser/flow-change.d.ts +2 -14
- package/dist/browser/flow-change.js +23 -21
- package/dist/browser/{flowChanges-CYyehKer.js → flowChanges-9Ir2rdLx.js} +5731 -5637
- package/dist/browser/{flowWorkspace-qYUZPJHR.js → flowWorkspace-LvZ6HuMM.js} +4 -4
- package/dist/browser/preview.js +5278 -5182
- package/dist/browser/workbench.js +1576 -1461
- package/dist/browser/{workbenchSelect-D8_vP2p5.js → workbenchSelect-C3e4J93X.js} +1 -1
- package/dist/command/index.js +22 -22
- package/dist/common/connector-proxy.d.ts +4 -1
- package/dist/common/control-api-conformance.js +23 -21
- package/dist/common/control-api.js +3454 -3452
- package/dist/common/control-requests.js +2032 -2032
- package/dist/common/decision.js +29 -6403
- package/dist/common/event-source-definition.d.ts +45 -0
- package/dist/common/event-source.d.ts +200 -1
- package/dist/common/event-source.js +22 -1
- package/dist/common/flow-schema.d.ts +2 -1
- package/dist/common/flow-schemaKeywords.d.ts +15 -0
- package/dist/common/flow-semantics.js +9797 -9795
- package/dist/common/integration-trigger.js +53 -6517
- package/dist/common/mcp.js +3389 -3389
- package/dist/common/openapi.js +29 -6493
- package/dist/common/poll-trigger.js +29 -6517
- package/dist/common/provider-triggers.js +6 -65
- package/dist/common/webhook-trigger.js +5 -6449
- package/dist/common/workflow.js +31 -916
- package/package.json +1 -1
|
@@ -55,3 +55,48 @@ export type SourceOperation = {
|
|
|
55
55
|
};
|
|
56
56
|
export declare class SourceIdentityError extends Error {
|
|
57
57
|
}
|
|
58
|
+
export interface SourceReference {
|
|
59
|
+
readonly applicationId: string;
|
|
60
|
+
readonly sourceId: string;
|
|
61
|
+
}
|
|
62
|
+
export type SourceReferenceOperation = {
|
|
63
|
+
readonly deploymentId: string;
|
|
64
|
+
} & ({
|
|
65
|
+
readonly action: 'route';
|
|
66
|
+
readonly applicationId: string;
|
|
67
|
+
readonly headers: Readonly<Record<string, string>>;
|
|
68
|
+
readonly rawBody: string;
|
|
69
|
+
} | {
|
|
70
|
+
readonly action: 'create';
|
|
71
|
+
readonly requestKey: string;
|
|
72
|
+
readonly input: Readonly<Record<string, JsonValue>>;
|
|
73
|
+
} | {
|
|
74
|
+
readonly action: 'get';
|
|
75
|
+
readonly reference: SourceReference;
|
|
76
|
+
} | {
|
|
77
|
+
readonly action: 'delete';
|
|
78
|
+
readonly reference: SourceReference | {
|
|
79
|
+
readonly appId?: string;
|
|
80
|
+
readonly requestKey: string;
|
|
81
|
+
};
|
|
82
|
+
} | {
|
|
83
|
+
readonly action: 'update';
|
|
84
|
+
readonly reference: SourceReference;
|
|
85
|
+
readonly expectedRevision: number;
|
|
86
|
+
readonly input: Readonly<Record<string, JsonValue>>;
|
|
87
|
+
} | {
|
|
88
|
+
readonly action: 'prepare';
|
|
89
|
+
readonly reference: SourceReference;
|
|
90
|
+
readonly config: Readonly<Record<string, JsonValue>>;
|
|
91
|
+
readonly endpointUrl?: string;
|
|
92
|
+
} | {
|
|
93
|
+
readonly action: 'resource';
|
|
94
|
+
readonly reference: SourceReference;
|
|
95
|
+
readonly key: string;
|
|
96
|
+
readonly active: boolean;
|
|
97
|
+
} | ({
|
|
98
|
+
readonly action: 'receive';
|
|
99
|
+
readonly reference: SourceReference;
|
|
100
|
+
} & Omit<Extract<SourceOperation, {
|
|
101
|
+
action: 'receive';
|
|
102
|
+
}>, 'source' | 'action'>));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { EventSourceDefinition, SourceConfiguration } from './event-source-definition.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { eventSourceViewSchema } from './event-sources.js';
|
|
4
|
-
export type { EventSourceDefinition, SourceConfiguration, SourceEvent, SourceSubscription, SourceOperation } from './event-source-definition.js';
|
|
4
|
+
export type { EventSourceDefinition, SourceConfiguration, SourceEvent, SourceSubscription, SourceOperation, SourceReference, SourceReferenceOperation, } from './event-source-definition.js';
|
|
5
5
|
export { SourceIdentityError } from './event-source-definition.js';
|
|
6
6
|
export declare function eventSourceDefinition(kind: string): EventSourceDefinition;
|
|
7
7
|
export declare const sourceConfigurationSchema: z.ZodObject<{
|
|
@@ -62,3 +62,202 @@ export declare const sourceReceiptSchema: z.ZodObject<{
|
|
|
62
62
|
export type SourceResult = z.infer<typeof sourceResultSchema>;
|
|
63
63
|
export type PreparedSource = z.infer<typeof preparedSourceSchema>;
|
|
64
64
|
export type SourceReceipt = z.infer<typeof sourceReceiptSchema>;
|
|
65
|
+
export declare const sourceReferenceSchema: z.ZodObject<{
|
|
66
|
+
applicationId: z.ZodString;
|
|
67
|
+
sourceId: z.ZodString;
|
|
68
|
+
}, z.core.$strip>;
|
|
69
|
+
export declare const sourceReferenceSnapshotSchema: z.ZodObject<{
|
|
70
|
+
view: z.ZodObject<{
|
|
71
|
+
appId: z.ZodNullable<z.ZodString>;
|
|
72
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
73
|
+
installationId: z.ZodOptional<z.ZodString>;
|
|
74
|
+
organizationId: z.ZodOptional<z.ZodString>;
|
|
75
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
76
|
+
projectKey: z.ZodOptional<z.ZodString>;
|
|
77
|
+
subscriptionStatus: z.ZodOptional<z.ZodEnum<{
|
|
78
|
+
error: "error";
|
|
79
|
+
idle: "idle";
|
|
80
|
+
pending: "pending";
|
|
81
|
+
ready: "ready";
|
|
82
|
+
}>>;
|
|
83
|
+
lastError: z.ZodOptional<z.ZodString>;
|
|
84
|
+
signingSecretConfigured: z.ZodOptional<z.ZodBoolean>;
|
|
85
|
+
manageSubscriptions: z.ZodNullable<z.ZodBoolean>;
|
|
86
|
+
verificationTokenConfigured: z.ZodNullable<z.ZodBoolean>;
|
|
87
|
+
encryptKeyConfigured: z.ZodNullable<z.ZodBoolean>;
|
|
88
|
+
verifiedAt: z.ZodNullable<z.ZodString>;
|
|
89
|
+
}, z.core.$strip>;
|
|
90
|
+
ready: z.ZodBoolean;
|
|
91
|
+
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
92
|
+
reference: z.ZodObject<{
|
|
93
|
+
applicationId: z.ZodString;
|
|
94
|
+
sourceId: z.ZodString;
|
|
95
|
+
}, z.core.$strip>;
|
|
96
|
+
revision: z.ZodNumber;
|
|
97
|
+
eventTypes: z.ZodArray<z.ZodString>;
|
|
98
|
+
}, z.core.$strip>;
|
|
99
|
+
export declare const sourceReferenceResultSchema: z.ZodObject<{
|
|
100
|
+
source: z.ZodObject<{
|
|
101
|
+
view: z.ZodObject<{
|
|
102
|
+
appId: z.ZodNullable<z.ZodString>;
|
|
103
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
104
|
+
installationId: z.ZodOptional<z.ZodString>;
|
|
105
|
+
organizationId: z.ZodOptional<z.ZodString>;
|
|
106
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
107
|
+
projectKey: z.ZodOptional<z.ZodString>;
|
|
108
|
+
subscriptionStatus: z.ZodOptional<z.ZodEnum<{
|
|
109
|
+
error: "error";
|
|
110
|
+
idle: "idle";
|
|
111
|
+
pending: "pending";
|
|
112
|
+
ready: "ready";
|
|
113
|
+
}>>;
|
|
114
|
+
lastError: z.ZodOptional<z.ZodString>;
|
|
115
|
+
signingSecretConfigured: z.ZodOptional<z.ZodBoolean>;
|
|
116
|
+
manageSubscriptions: z.ZodNullable<z.ZodBoolean>;
|
|
117
|
+
verificationTokenConfigured: z.ZodNullable<z.ZodBoolean>;
|
|
118
|
+
encryptKeyConfigured: z.ZodNullable<z.ZodBoolean>;
|
|
119
|
+
verifiedAt: z.ZodNullable<z.ZodString>;
|
|
120
|
+
}, z.core.$strip>;
|
|
121
|
+
ready: z.ZodBoolean;
|
|
122
|
+
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
123
|
+
reference: z.ZodObject<{
|
|
124
|
+
applicationId: z.ZodString;
|
|
125
|
+
sourceId: z.ZodString;
|
|
126
|
+
}, z.core.$strip>;
|
|
127
|
+
revision: z.ZodNumber;
|
|
128
|
+
eventTypes: z.ZodArray<z.ZodString>;
|
|
129
|
+
}, z.core.$strip>;
|
|
130
|
+
}, z.core.$strip>;
|
|
131
|
+
export declare const sourceReferenceDeleteResultSchema: z.ZodObject<{
|
|
132
|
+
deleted: z.ZodLiteral<true>;
|
|
133
|
+
}, z.core.$strip>;
|
|
134
|
+
export declare const sourceReferenceResourceResultSchema: z.ZodObject<{
|
|
135
|
+
source: z.ZodObject<{
|
|
136
|
+
view: z.ZodObject<{
|
|
137
|
+
appId: z.ZodNullable<z.ZodString>;
|
|
138
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
139
|
+
installationId: z.ZodOptional<z.ZodString>;
|
|
140
|
+
organizationId: z.ZodOptional<z.ZodString>;
|
|
141
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
142
|
+
projectKey: z.ZodOptional<z.ZodString>;
|
|
143
|
+
subscriptionStatus: z.ZodOptional<z.ZodEnum<{
|
|
144
|
+
error: "error";
|
|
145
|
+
idle: "idle";
|
|
146
|
+
pending: "pending";
|
|
147
|
+
ready: "ready";
|
|
148
|
+
}>>;
|
|
149
|
+
lastError: z.ZodOptional<z.ZodString>;
|
|
150
|
+
signingSecretConfigured: z.ZodOptional<z.ZodBoolean>;
|
|
151
|
+
manageSubscriptions: z.ZodNullable<z.ZodBoolean>;
|
|
152
|
+
verificationTokenConfigured: z.ZodNullable<z.ZodBoolean>;
|
|
153
|
+
encryptKeyConfigured: z.ZodNullable<z.ZodBoolean>;
|
|
154
|
+
verifiedAt: z.ZodNullable<z.ZodString>;
|
|
155
|
+
}, z.core.$strip>;
|
|
156
|
+
ready: z.ZodBoolean;
|
|
157
|
+
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
158
|
+
reference: z.ZodObject<{
|
|
159
|
+
applicationId: z.ZodString;
|
|
160
|
+
sourceId: z.ZodString;
|
|
161
|
+
}, z.core.$strip>;
|
|
162
|
+
revision: z.ZodNumber;
|
|
163
|
+
eventTypes: z.ZodArray<z.ZodString>;
|
|
164
|
+
}, z.core.$strip>;
|
|
165
|
+
outcome: z.ZodEnum<{
|
|
166
|
+
pending: "pending";
|
|
167
|
+
ready: "ready";
|
|
168
|
+
}>;
|
|
169
|
+
}, z.core.$strip>;
|
|
170
|
+
export declare const sourceReferenceRouteResultSchema: z.ZodObject<{
|
|
171
|
+
references: z.ZodArray<z.ZodObject<{
|
|
172
|
+
applicationId: z.ZodString;
|
|
173
|
+
sourceId: z.ZodString;
|
|
174
|
+
}, z.core.$strip>>;
|
|
175
|
+
response: z.ZodOptional<z.ZodObject<{
|
|
176
|
+
status: z.ZodNumber;
|
|
177
|
+
body: z.ZodString;
|
|
178
|
+
headers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
179
|
+
}, z.core.$strip>>;
|
|
180
|
+
}, z.core.$strip>;
|
|
181
|
+
export declare const preparedSourceReferenceSchema: z.ZodObject<{
|
|
182
|
+
source: z.ZodObject<{
|
|
183
|
+
view: z.ZodObject<{
|
|
184
|
+
appId: z.ZodNullable<z.ZodString>;
|
|
185
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
186
|
+
installationId: z.ZodOptional<z.ZodString>;
|
|
187
|
+
organizationId: z.ZodOptional<z.ZodString>;
|
|
188
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
189
|
+
projectKey: z.ZodOptional<z.ZodString>;
|
|
190
|
+
subscriptionStatus: z.ZodOptional<z.ZodEnum<{
|
|
191
|
+
error: "error";
|
|
192
|
+
idle: "idle";
|
|
193
|
+
pending: "pending";
|
|
194
|
+
ready: "ready";
|
|
195
|
+
}>>;
|
|
196
|
+
lastError: z.ZodOptional<z.ZodString>;
|
|
197
|
+
signingSecretConfigured: z.ZodOptional<z.ZodBoolean>;
|
|
198
|
+
manageSubscriptions: z.ZodNullable<z.ZodBoolean>;
|
|
199
|
+
verificationTokenConfigured: z.ZodNullable<z.ZodBoolean>;
|
|
200
|
+
encryptKeyConfigured: z.ZodNullable<z.ZodBoolean>;
|
|
201
|
+
verifiedAt: z.ZodNullable<z.ZodString>;
|
|
202
|
+
}, z.core.$strip>;
|
|
203
|
+
ready: z.ZodBoolean;
|
|
204
|
+
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
205
|
+
reference: z.ZodObject<{
|
|
206
|
+
applicationId: z.ZodString;
|
|
207
|
+
sourceId: z.ZodString;
|
|
208
|
+
}, z.core.$strip>;
|
|
209
|
+
revision: z.ZodNumber;
|
|
210
|
+
eventTypes: z.ZodArray<z.ZodString>;
|
|
211
|
+
}, z.core.$strip>;
|
|
212
|
+
subscriptions: z.ZodArray<z.ZodObject<{
|
|
213
|
+
key: z.ZodString;
|
|
214
|
+
}, z.core.$strip>>;
|
|
215
|
+
}, z.core.$strip>;
|
|
216
|
+
export declare const sourceReferenceReceiptSchema: z.ZodObject<{
|
|
217
|
+
response: z.ZodOptional<z.ZodObject<{
|
|
218
|
+
status: z.ZodNumber;
|
|
219
|
+
body: z.ZodString;
|
|
220
|
+
headers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
221
|
+
}, z.core.$strip>>;
|
|
222
|
+
event: z.ZodOptional<z.ZodObject<{
|
|
223
|
+
id: z.ZodString;
|
|
224
|
+
type: z.ZodString;
|
|
225
|
+
payload: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
226
|
+
matches: z.ZodArray<z.ZodString>;
|
|
227
|
+
ordering: z.ZodOptional<z.ZodObject<{
|
|
228
|
+
key: z.ZodString;
|
|
229
|
+
version: z.ZodNumber;
|
|
230
|
+
}, z.core.$strip>>;
|
|
231
|
+
}, z.core.$strip>>;
|
|
232
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
233
|
+
view: z.ZodObject<{
|
|
234
|
+
appId: z.ZodNullable<z.ZodString>;
|
|
235
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
236
|
+
installationId: z.ZodOptional<z.ZodString>;
|
|
237
|
+
organizationId: z.ZodOptional<z.ZodString>;
|
|
238
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
239
|
+
projectKey: z.ZodOptional<z.ZodString>;
|
|
240
|
+
subscriptionStatus: z.ZodOptional<z.ZodEnum<{
|
|
241
|
+
error: "error";
|
|
242
|
+
idle: "idle";
|
|
243
|
+
pending: "pending";
|
|
244
|
+
ready: "ready";
|
|
245
|
+
}>>;
|
|
246
|
+
lastError: z.ZodOptional<z.ZodString>;
|
|
247
|
+
signingSecretConfigured: z.ZodOptional<z.ZodBoolean>;
|
|
248
|
+
manageSubscriptions: z.ZodNullable<z.ZodBoolean>;
|
|
249
|
+
verificationTokenConfigured: z.ZodNullable<z.ZodBoolean>;
|
|
250
|
+
encryptKeyConfigured: z.ZodNullable<z.ZodBoolean>;
|
|
251
|
+
verifiedAt: z.ZodNullable<z.ZodString>;
|
|
252
|
+
}, z.core.$strip>;
|
|
253
|
+
ready: z.ZodBoolean;
|
|
254
|
+
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
255
|
+
reference: z.ZodObject<{
|
|
256
|
+
applicationId: z.ZodString;
|
|
257
|
+
sourceId: z.ZodString;
|
|
258
|
+
}, z.core.$strip>;
|
|
259
|
+
revision: z.ZodNumber;
|
|
260
|
+
eventTypes: z.ZodArray<z.ZodString>;
|
|
261
|
+
}, z.core.$strip>>;
|
|
262
|
+
}, z.core.$strip>;
|
|
263
|
+
export type SourceReferenceSnapshot = z.infer<typeof sourceReferenceSnapshotSchema>;
|
|
@@ -5768,5 +5768,26 @@ var sourceReceiptSchema = object({
|
|
|
5768
5768
|
}).optional()
|
|
5769
5769
|
}).optional()
|
|
5770
5770
|
}).refine((value) => value.response == null !== (value.event == null));
|
|
5771
|
+
var sourceReferenceSchema = object({
|
|
5772
|
+
applicationId: string().min(1),
|
|
5773
|
+
sourceId: string().min(1)
|
|
5774
|
+
});
|
|
5775
|
+
var sourceReferenceSnapshotSchema = projectionSchema.extend({
|
|
5776
|
+
reference: sourceReferenceSchema,
|
|
5777
|
+
revision: number().int().positive(),
|
|
5778
|
+
eventTypes: array(string())
|
|
5779
|
+
});
|
|
5780
|
+
var sourceReferenceResultSchema = object({ source: sourceReferenceSnapshotSchema });
|
|
5781
|
+
var sourceReferenceDeleteResultSchema = object({ deleted: literal(true) });
|
|
5782
|
+
var sourceReferenceResourceResultSchema = sourceReferenceResultSchema.extend({ outcome: _enum(["ready", "pending"]) });
|
|
5783
|
+
var sourceReferenceRouteResultSchema = object({
|
|
5784
|
+
references: array(sourceReferenceSchema),
|
|
5785
|
+
response: sourceReceiptSchema.shape.response
|
|
5786
|
+
});
|
|
5787
|
+
var preparedSourceReferenceSchema = sourceReferenceResultSchema.extend({ subscriptions: array(object({ key: string() })) });
|
|
5788
|
+
var sourceReferenceReceiptSchema = object({
|
|
5789
|
+
...sourceReceiptSchema.shape,
|
|
5790
|
+
source: sourceReferenceSnapshotSchema.optional()
|
|
5791
|
+
}).refine((value) => value.response == null !== (value.event == null));
|
|
5771
5792
|
//#endregion
|
|
5772
|
-
export { SourceIdentityError, eventSourceDefinition, preparedSourceSchema, sourceConfigurationSchema, sourceReady, sourceReceiptSchema, sourceResultSchema, sourceView };
|
|
5793
|
+
export { SourceIdentityError, eventSourceDefinition, preparedSourceReferenceSchema, preparedSourceSchema, sourceConfigurationSchema, sourceReady, sourceReceiptSchema, sourceReferenceDeleteResultSchema, sourceReferenceReceiptSchema, sourceReferenceResourceResultSchema, sourceReferenceResultSchema, sourceReferenceRouteResultSchema, sourceReferenceSchema, sourceReferenceSnapshotSchema, sourceResultSchema, sourceView };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { JsonValue, PortDefinition
|
|
1
|
+
import type { JsonValue, PortDefinition } from '../index.js';
|
|
2
|
+
import type { SchemaMismatch } from './flow-schemaKeywords.js';
|
|
2
3
|
export declare function schemaObject(schema: JsonValue): Readonly<Record<string, JsonValue>> | undefined;
|
|
3
4
|
export declare function schemaList(value: JsonValue | undefined): readonly JsonValue[] | undefined;
|
|
4
5
|
export declare function matchesSchema(value: JsonValue, schema: JsonValue): boolean;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { JsonValue } from '../index.js';
|
|
2
|
+
export type SchemaKeyword = 'const' | 'enum' | 'exclusiveMaximum' | 'exclusiveMinimum' | 'maximum' | 'maxItems' | 'maxLength' | 'maxProperties' | 'minimum' | 'minItems' | 'minLength' | 'minProperties' | 'multipleOf' | 'pattern' | 'required' | 'type';
|
|
3
|
+
export type SchemaMismatch = {
|
|
4
|
+
readonly kind: 'artifact' | 'binary' | 'nullable';
|
|
5
|
+
} | {
|
|
6
|
+
readonly kind: 'keyword';
|
|
7
|
+
readonly keyword: SchemaKeyword;
|
|
8
|
+
readonly path: readonly (string | number)[];
|
|
9
|
+
readonly source: JsonValue | undefined;
|
|
10
|
+
readonly target: JsonValue | undefined;
|
|
11
|
+
} | {
|
|
12
|
+
readonly kind: 'schema';
|
|
13
|
+
readonly path?: readonly (string | number)[];
|
|
14
|
+
};
|
|
15
|
+
export declare function isSchemaKeyword(value: string): value is SchemaKeyword;
|