@flowrunner/cli 0.1.11 → 0.1.12-dev.2

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 (34) hide show
  1. package/ai-docs/instructions/service-code-format/01-service-structure.md +1 -0
  2. package/ai-docs/instructions/service-code-format/06-oauth2.md +20 -1
  3. package/ai-docs/instructions/service-code-format/09-realtime-triggers.md +104 -5
  4. package/ai-docs/instructions/service-code-format/11-output-model.md +1 -1
  5. package/ai-docs/instructions/service-code-format/13-runtime-contracts.md +6 -3
  6. package/dist/cli.js +149 -10410
  7. package/dist/cli.js.map +4 -4
  8. package/dist/index.js +142 -10379
  9. package/dist/index.js.map +4 -4
  10. package/dist/types/flow-extension-runner/src/v2/model/model-types.d.ts +1 -1
  11. package/dist/types/flow-extension-runner/src/v2/realtime-triggers/trigger-method.d.ts +12 -2
  12. package/dist/types/flow-extension-runner/src/v2/realtime-triggers/types.d.ts +11 -2
  13. package/dist/types/flow-extension-runner/src/v2/types.d.ts +5 -0
  14. package/dist/types/shared/src/scheme/flowrunner/custom-elements.d.ts +8 -8
  15. package/dist/types/shared/src/scheme/shared-extensions/base.d.ts +1 -1
  16. package/dist/types/shared/src/scheme/shared-extensions/custom-extensions.d.ts +8 -8
  17. package/dist/types/shared/src/scheme/shared-extensions/extension.d.ts +8 -8
  18. package/dist/types/shared/src/scheme/shared-extensions/resolve.d.ts +6 -6
  19. package/dist/types/shared/src/scheme/shared-extensions/search.d.ts +4 -4
  20. package/dist/types/shared/src/scheme/shared-extensions/service-info.d.ts +1 -1
  21. package/package.json +4 -1
  22. package/runtime/index.js +120 -10367
  23. package/runtime/index.js.map +4 -4
  24. package/runtime/types/flow-extension-runner/src/v2/model/model-types.d.ts +1 -1
  25. package/runtime/types/flow-extension-runner/src/v2/realtime-triggers/trigger-method.d.ts +12 -2
  26. package/runtime/types/flow-extension-runner/src/v2/realtime-triggers/types.d.ts +11 -2
  27. package/runtime/types/flow-extension-runner/src/v2/types.d.ts +5 -0
  28. package/runtime/types/shared/src/scheme/flowrunner/custom-elements.d.ts +8 -8
  29. package/runtime/types/shared/src/scheme/shared-extensions/base.d.ts +1 -1
  30. package/runtime/types/shared/src/scheme/shared-extensions/custom-extensions.d.ts +8 -8
  31. package/runtime/types/shared/src/scheme/shared-extensions/extension.d.ts +8 -8
  32. package/runtime/types/shared/src/scheme/shared-extensions/resolve.d.ts +6 -6
  33. package/runtime/types/shared/src/scheme/shared-extensions/search.d.ts +4 -4
  34. package/runtime/types/shared/src/scheme/shared-extensions/service-info.d.ts +1 -1
@@ -58,7 +58,7 @@ export interface SharedExtensionMethod {
58
58
  paramsSchema?: ParamsSchemaJSON | null;
59
59
  }
60
60
  export interface SharedExtensionServiceInfo {
61
- serviceClassName: string;
61
+ serviceClassName?: string;
62
62
  integrationName: string;
63
63
  integrationIcon: string | null;
64
64
  description?: string | null;
@@ -6,7 +6,7 @@ import type { SharedExtensionMethod } from '../model/model-types';
6
6
  import { MethodParams } from '../params';
7
7
  import { ResultSpec } from '../result';
8
8
  import type { ProviderPayload } from '../types';
9
- import type { RealtimeTriggerProps } from './types';
9
+ import type { RealtimeInstance, RealtimeTriggerProps } from './types';
10
10
  export declare class RealtimeTriggerMethod extends ExtensionMethod implements LoaderOwner {
11
11
  private readonly props;
12
12
  readonly params: MethodParams;
@@ -21,6 +21,16 @@ export declare class RealtimeTriggerMethod extends ExtensionMethod implements Lo
21
21
  providerEventNames(params?: Record<string, unknown>): string[];
22
22
  claims(providerEventName: string): boolean;
23
23
  extendEventData(requestBody: ProviderPayload, providerEventData: ProviderPayload): Record<string, unknown> | undefined;
24
+ /**
25
+ * Whether `extendMatchData` should run before these instances are matched. Only when something will READ its
26
+ * result — otherwise the API call is pure cost, paid on every event:
27
+ * - no instances, or no `match` → nothing to decide (with no `match` every instance fires);
28
+ * - declarative `match`, and no instance fills any of its params → every instance matches regardless,
29
+ * since an empty param means "any". This is the v1 rule: read the resource only when a flow filters.
30
+ * A predicate `match` is opaque, so the hook runs and receives the instances to make that call itself.
31
+ */
32
+ needsMatchData(instances: RealtimeInstance[]): boolean;
33
+ extendMatchData(providerEventData: ProviderPayload, instances: RealtimeInstance[], ctx: ExecutionContext, webhookData?: ProviderPayload): Promise<Record<string, unknown> | void> | Record<string, unknown> | void;
24
34
  /**
25
35
  * Whether one CONFIGURED INSTANCE of this trigger cares about an event. Declarative form: type-coerced
26
36
  * equality per filled param, where an empty param means "any" — that is what lets a user leave a filter
@@ -30,7 +40,7 @@ export declare class RealtimeTriggerMethod extends ExtensionMethod implements Lo
30
40
  * subscription registered (a tenant id, a resource the webhook was scoped to) has nowhere else to get it.
31
41
  * Returning a new document is not a thing this seam can do; only subscribe/refresh/unsubscribe persist.
32
42
  */
33
- matches(params: Record<string, unknown>, providerEventData: ProviderPayload, webhookData?: ProviderPayload): boolean;
43
+ matches(params: Record<string, unknown>, providerEventData: ProviderPayload, webhookData?: ProviderPayload): Promise<boolean>;
34
44
  extendResult(providerEventData: ProviderPayload, ctx: ExecutionContext, webhookData?: ProviderPayload): Promise<unknown> | unknown;
35
45
  hasExtendResult(): boolean;
36
46
  toModel(): SharedExtensionMethod;
@@ -66,7 +66,7 @@ export interface RealtimeSetupProps<TShape extends ExtensionShape = AnyShape> {
66
66
  verify?: RealtimeVerify<TShape>;
67
67
  handshake?: (bag: InboundBag<TShape> & {
68
68
  requestBody: ProviderPayload;
69
- }) => HandshakeResult | void | Promise<HandshakeResult | void>;
69
+ }) => HandshakeResult | boolean | void | Promise<HandshakeResult | boolean | void>;
70
70
  subscribe: (bag: HandlerBag<TShape> & {
71
71
  callbackUrl: string;
72
72
  triggers: RealtimeSubTrigger[];
@@ -116,11 +116,16 @@ export interface RealtimeTriggerProps<TShape extends ExtensionShape = AnyShape,
116
116
  requestBody: ProviderPayload;
117
117
  providerEventData: ProviderPayload;
118
118
  }) => Record<string, unknown>;
119
+ extendMatchData?: (bag: HandlerBag<TShape> & {
120
+ providerEventData: ProviderPayload;
121
+ webhookData: ProviderPayload;
122
+ instances: RealtimeInstance<Infer<TParams>>[];
123
+ }) => Record<string, unknown> | void | Promise<Record<string, unknown> | void>;
119
124
  match?: Record<string, string> | ((bag: {
120
125
  params: Infer<TParams>;
121
126
  providerEventData: ProviderPayload;
122
127
  webhookData: ProviderPayload;
123
- }) => boolean);
128
+ }) => boolean | Promise<boolean>);
124
129
  extendResult?: (bag: HandlerBag<TShape> & {
125
130
  providerEventData: ProviderPayload;
126
131
  webhookData: ProviderPayload;
@@ -129,6 +134,10 @@ export interface RealtimeTriggerProps<TShape extends ExtensionShape = AnyShape,
129
134
  logo?: string;
130
135
  appearanceColors?: [string, string];
131
136
  }
137
+ export interface RealtimeInstance<TParams = Record<string, unknown>> {
138
+ id: string;
139
+ params: TParams;
140
+ }
132
141
  export interface RealtimeInvocation {
133
142
  callbackUrl?: string;
134
143
  events?: {
@@ -46,6 +46,11 @@ export interface ExtensionProps<TConfigSchema extends AnySchema = AnySchema, TCo
46
46
  logo: string;
47
47
  appearanceColors?: [string, string];
48
48
  usesFileStorage?: boolean;
49
+ /**
50
+ * @deprecated Shared extensions migrated from v1 only, and will be removed: the v1 service class name
51
+ * (`GeminiAIService`). Flows, configs and OAuth connections saved against the v1 service still reference it.
52
+ */
53
+ serviceClassName?: string;
49
54
  configItems?: TConfigSchema;
50
55
  initContext?: (bag: {
51
56
  config: Infer<TConfigSchema>;
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  export declare const CustomElementServiceInfoSchema: z.ZodObject<{
3
- serviceClassName: z.ZodString;
3
+ serviceClassName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4
4
  integrationName: z.ZodString;
5
5
  integrationIcon: z.ZodNullable<z.ZodString>;
6
6
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -30,7 +30,7 @@ export declare const CustomElementServiceInfoSchema: z.ZodObject<{
30
30
  serviceId: z.ZodString;
31
31
  newServiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
32
  legacyServiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
- serviceName: z.ZodString;
33
+ serviceName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
34
  oauthConnectionsGroupId: z.ZodString;
35
35
  legacyOauthConnectionsGroupId: z.ZodString;
36
36
  runnerVersion: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
@@ -88,7 +88,7 @@ export declare const CustomElementMethodSchema: z.ZodObject<{
88
88
  }, z.core.$strip>;
89
89
  export declare const CustomElementsBundleSchema: z.ZodObject<{
90
90
  serviceInfo: z.ZodObject<{
91
- serviceClassName: z.ZodString;
91
+ serviceClassName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
92
92
  integrationName: z.ZodString;
93
93
  integrationIcon: z.ZodNullable<z.ZodString>;
94
94
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -118,7 +118,7 @@ export declare const CustomElementsBundleSchema: z.ZodObject<{
118
118
  serviceId: z.ZodString;
119
119
  newServiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
120
120
  legacyServiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
121
- serviceName: z.ZodString;
121
+ serviceName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
122
122
  oauthConnectionsGroupId: z.ZodString;
123
123
  legacyOauthConnectionsGroupId: z.ZodString;
124
124
  runnerVersion: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
@@ -178,7 +178,7 @@ export declare const CustomElementsBundleSchema: z.ZodObject<{
178
178
  export declare const SharedExtensionsElementsSchema: z.ZodObject<{
179
179
  services: z.ZodArray<z.ZodObject<{
180
180
  serviceInfo: z.ZodObject<{
181
- serviceClassName: z.ZodString;
181
+ serviceClassName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
182
182
  integrationName: z.ZodString;
183
183
  integrationIcon: z.ZodNullable<z.ZodString>;
184
184
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -208,7 +208,7 @@ export declare const SharedExtensionsElementsSchema: z.ZodObject<{
208
208
  serviceId: z.ZodString;
209
209
  newServiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
210
210
  legacyServiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
211
- serviceName: z.ZodString;
211
+ serviceName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
212
212
  oauthConnectionsGroupId: z.ZodString;
213
213
  legacyOauthConnectionsGroupId: z.ZodString;
214
214
  runnerVersion: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
@@ -301,7 +301,7 @@ export declare const CustomElementMethodWithServiceInfoSchema: z.ZodObject<{
301
301
  fields: z.ZodArray<z.ZodType<import("../shared-extensions/params-schema").ParamsSchemaField, unknown, z.core.$ZodTypeInternals<import("../shared-extensions/params-schema").ParamsSchemaField, unknown>>>;
302
302
  }, z.core.$loose>>>;
303
303
  serviceInfo: z.ZodObject<{
304
- serviceClassName: z.ZodString;
304
+ serviceClassName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
305
305
  integrationName: z.ZodString;
306
306
  integrationIcon: z.ZodNullable<z.ZodString>;
307
307
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -331,7 +331,7 @@ export declare const CustomElementMethodWithServiceInfoSchema: z.ZodObject<{
331
331
  serviceId: z.ZodString;
332
332
  newServiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
333
333
  legacyServiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
334
- serviceName: z.ZodString;
334
+ serviceName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
335
335
  oauthConnectionsGroupId: z.ZodString;
336
336
  legacyOauthConnectionsGroupId: z.ZodString;
337
337
  runnerVersion: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
@@ -12,7 +12,7 @@ export declare const BaseInstalledExtensionDTOSchema: z.ZodObject<{
12
12
  createdAt: z.ZodCoercedDate<unknown>;
13
13
  updatedAt: z.ZodCoercedDate<unknown>;
14
14
  serviceInfo: z.ZodObject<{
15
- serviceClassName: z.ZodString;
15
+ serviceClassName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
16
  integrationName: z.ZodString;
17
17
  integrationIcon: z.ZodNullable<z.ZodString>;
18
18
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -12,7 +12,7 @@ export declare const CustomExtensionDTOSchema: z.ZodObject<{
12
12
  createdAt: z.ZodCoercedDate<unknown>;
13
13
  updatedAt: z.ZodCoercedDate<unknown>;
14
14
  serviceInfo: z.ZodObject<{
15
- serviceClassName: z.ZodString;
15
+ serviceClassName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
16
  integrationName: z.ZodString;
17
17
  integrationIcon: z.ZodNullable<z.ZodString>;
18
18
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -93,7 +93,7 @@ export declare const CustomExtensionVersionDetailSchema: z.ZodObject<{
93
93
  serviceName: z.ZodString;
94
94
  sourceHash: z.ZodString;
95
95
  serviceInfo: z.ZodObject<{
96
- serviceClassName: z.ZodString;
96
+ serviceClassName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
97
97
  integrationName: z.ZodString;
98
98
  integrationIcon: z.ZodNullable<z.ZodString>;
99
99
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -233,7 +233,7 @@ export declare const CustomExtensionDeployServiceSchema: z.ZodObject<{
233
233
  serviceId: z.ZodString;
234
234
  serviceFilePath: z.ZodString;
235
235
  serviceInfo: z.ZodObject<{
236
- serviceClassName: z.ZodString;
236
+ serviceClassName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
237
237
  integrationName: z.ZodString;
238
238
  integrationIcon: z.ZodNullable<z.ZodString>;
239
239
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -306,7 +306,7 @@ export declare const CustomExtensionDeployDefinitionSchema: z.ZodObject<{
306
306
  serviceId: z.ZodString;
307
307
  serviceFilePath: z.ZodString;
308
308
  serviceInfo: z.ZodObject<{
309
- serviceClassName: z.ZodString;
309
+ serviceClassName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
310
310
  integrationName: z.ZodString;
311
311
  integrationIcon: z.ZodNullable<z.ZodString>;
312
312
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -424,7 +424,7 @@ export declare const CustomExtensionElementsFullSchema: z.ZodObject<{
424
424
  unchanged: z.ZodLiteral<false>;
425
425
  services: z.ZodArray<z.ZodObject<{
426
426
  serviceInfo: z.ZodObject<{
427
- serviceClassName: z.ZodString;
427
+ serviceClassName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
428
428
  integrationName: z.ZodString;
429
429
  integrationIcon: z.ZodNullable<z.ZodString>;
430
430
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -454,7 +454,7 @@ export declare const CustomExtensionElementsFullSchema: z.ZodObject<{
454
454
  serviceId: z.ZodString;
455
455
  newServiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
456
456
  legacyServiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
457
- serviceName: z.ZodString;
457
+ serviceName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
458
458
  oauthConnectionsGroupId: z.ZodString;
459
459
  legacyOauthConnectionsGroupId: z.ZodString;
460
460
  runnerVersion: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
@@ -521,7 +521,7 @@ export declare const CustomExtensionElementsSchema: z.ZodDiscriminatedUnion<[z.Z
521
521
  unchanged: z.ZodLiteral<false>;
522
522
  services: z.ZodArray<z.ZodObject<{
523
523
  serviceInfo: z.ZodObject<{
524
- serviceClassName: z.ZodString;
524
+ serviceClassName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
525
525
  integrationName: z.ZodString;
526
526
  integrationIcon: z.ZodNullable<z.ZodString>;
527
527
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -551,7 +551,7 @@ export declare const CustomExtensionElementsSchema: z.ZodDiscriminatedUnion<[z.Z
551
551
  serviceId: z.ZodString;
552
552
  newServiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
553
553
  legacyServiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
554
- serviceName: z.ZodString;
554
+ serviceName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
555
555
  oauthConnectionsGroupId: z.ZodString;
556
556
  legacyOauthConnectionsGroupId: z.ZodString;
557
557
  runnerVersion: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
@@ -20,7 +20,7 @@ export declare const InstalledSharedExtensionDTOSchema: z.ZodObject<{
20
20
  createdAt: z.ZodCoercedDate<unknown>;
21
21
  updatedAt: z.ZodCoercedDate<unknown>;
22
22
  serviceInfo: z.ZodObject<{
23
- serviceClassName: z.ZodString;
23
+ serviceClassName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
24
  integrationName: z.ZodString;
25
25
  integrationIcon: z.ZodNullable<z.ZodString>;
26
26
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -68,7 +68,7 @@ export declare const InstalledSharedExtensionDTOSchema: z.ZodObject<{
68
68
  fields: z.ZodArray<z.ZodType<import("./params-schema").ParamsSchemaField, unknown, z.core.$ZodTypeInternals<import("./params-schema").ParamsSchemaField, unknown>>>;
69
69
  }, z.core.$loose>>>;
70
70
  status: z.ZodLiteral<"installed">;
71
- legacyServiceId: z.ZodString;
71
+ legacyServiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
72
72
  sharedConfigDescriptions: z.ZodArray<z.ZodObject<{
73
73
  shared: z.ZodBoolean;
74
74
  name: z.ZodString;
@@ -115,7 +115,7 @@ export declare const MissingFSSharedExtensionDTOSchema: z.ZodObject<{
115
115
  createdAt: z.ZodCoercedDate<unknown>;
116
116
  updatedAt: z.ZodCoercedDate<unknown>;
117
117
  serviceInfo: z.ZodObject<{
118
- serviceClassName: z.ZodString;
118
+ serviceClassName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
119
119
  integrationName: z.ZodString;
120
120
  integrationIcon: z.ZodNullable<z.ZodString>;
121
121
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -162,7 +162,7 @@ export declare const MissingFSSharedExtensionDTOSchema: z.ZodObject<{
162
162
  v: z.ZodNumber;
163
163
  fields: z.ZodArray<z.ZodType<import("./params-schema").ParamsSchemaField, unknown, z.core.$ZodTypeInternals<import("./params-schema").ParamsSchemaField, unknown>>>;
164
164
  }, z.core.$loose>>>;
165
- legacyServiceId: z.ZodString;
165
+ legacyServiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
166
166
  sharedConfigDescriptions: z.ZodArray<z.ZodObject<{
167
167
  shared: z.ZodBoolean;
168
168
  name: z.ZodString;
@@ -220,7 +220,7 @@ export declare const AnySharedExtensionVersionSchema: z.ZodDiscriminatedUnion<[z
220
220
  createdAt: z.ZodCoercedDate<unknown>;
221
221
  updatedAt: z.ZodCoercedDate<unknown>;
222
222
  serviceInfo: z.ZodObject<{
223
- serviceClassName: z.ZodString;
223
+ serviceClassName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
224
224
  integrationName: z.ZodString;
225
225
  integrationIcon: z.ZodNullable<z.ZodString>;
226
226
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -268,7 +268,7 @@ export declare const AnySharedExtensionVersionSchema: z.ZodDiscriminatedUnion<[z
268
268
  fields: z.ZodArray<z.ZodType<import("./params-schema").ParamsSchemaField, unknown, z.core.$ZodTypeInternals<import("./params-schema").ParamsSchemaField, unknown>>>;
269
269
  }, z.core.$loose>>>;
270
270
  status: z.ZodLiteral<"installed">;
271
- legacyServiceId: z.ZodString;
271
+ legacyServiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
272
272
  sharedConfigDescriptions: z.ZodArray<z.ZodObject<{
273
273
  shared: z.ZodBoolean;
274
274
  name: z.ZodString;
@@ -314,7 +314,7 @@ export declare const AnySharedExtensionVersionSchema: z.ZodDiscriminatedUnion<[z
314
314
  createdAt: z.ZodCoercedDate<unknown>;
315
315
  updatedAt: z.ZodCoercedDate<unknown>;
316
316
  serviceInfo: z.ZodObject<{
317
- serviceClassName: z.ZodString;
317
+ serviceClassName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
318
318
  integrationName: z.ZodString;
319
319
  integrationIcon: z.ZodNullable<z.ZodString>;
320
320
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -361,7 +361,7 @@ export declare const AnySharedExtensionVersionSchema: z.ZodDiscriminatedUnion<[z
361
361
  v: z.ZodNumber;
362
362
  fields: z.ZodArray<z.ZodType<import("./params-schema").ParamsSchemaField, unknown, z.core.$ZodTypeInternals<import("./params-schema").ParamsSchemaField, unknown>>>;
363
363
  }, z.core.$loose>>>;
364
- legacyServiceId: z.ZodString;
364
+ legacyServiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
365
365
  sharedConfigDescriptions: z.ZodArray<z.ZodObject<{
366
366
  shared: z.ZodBoolean;
367
367
  name: z.ZodString;
@@ -31,7 +31,7 @@ export declare const ExtensionResolveUpdatedSchema: z.ZodObject<{
31
31
  sourceHash: z.ZodString;
32
32
  elementsBundle: z.ZodObject<{
33
33
  serviceInfo: z.ZodObject<{
34
- serviceClassName: z.ZodString;
34
+ serviceClassName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
35
  integrationName: z.ZodString;
36
36
  integrationIcon: z.ZodNullable<z.ZodString>;
37
37
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -61,7 +61,7 @@ export declare const ExtensionResolveUpdatedSchema: z.ZodObject<{
61
61
  serviceId: z.ZodString;
62
62
  newServiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
63
63
  legacyServiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
64
- serviceName: z.ZodString;
64
+ serviceName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
65
65
  oauthConnectionsGroupId: z.ZodString;
66
66
  legacyOauthConnectionsGroupId: z.ZodString;
67
67
  runnerVersion: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
@@ -147,7 +147,7 @@ export declare const ExtensionResolveResultItemSchema: z.ZodDiscriminatedUnion<[
147
147
  sourceHash: z.ZodString;
148
148
  elementsBundle: z.ZodObject<{
149
149
  serviceInfo: z.ZodObject<{
150
- serviceClassName: z.ZodString;
150
+ serviceClassName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
151
151
  integrationName: z.ZodString;
152
152
  integrationIcon: z.ZodNullable<z.ZodString>;
153
153
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -177,7 +177,7 @@ export declare const ExtensionResolveResultItemSchema: z.ZodDiscriminatedUnion<[
177
177
  serviceId: z.ZodString;
178
178
  newServiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
179
179
  legacyServiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
180
- serviceName: z.ZodString;
180
+ serviceName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
181
181
  oauthConnectionsGroupId: z.ZodString;
182
182
  legacyOauthConnectionsGroupId: z.ZodString;
183
183
  runnerVersion: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
@@ -262,7 +262,7 @@ export declare const ExtensionResolveResponseSchema: z.ZodArray<z.ZodDiscriminat
262
262
  sourceHash: z.ZodString;
263
263
  elementsBundle: z.ZodObject<{
264
264
  serviceInfo: z.ZodObject<{
265
- serviceClassName: z.ZodString;
265
+ serviceClassName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
266
266
  integrationName: z.ZodString;
267
267
  integrationIcon: z.ZodNullable<z.ZodString>;
268
268
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -292,7 +292,7 @@ export declare const ExtensionResolveResponseSchema: z.ZodArray<z.ZodDiscriminat
292
292
  serviceId: z.ZodString;
293
293
  newServiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
294
294
  legacyServiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
295
- serviceName: z.ZodString;
295
+ serviceName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
296
296
  oauthConnectionsGroupId: z.ZodString;
297
297
  legacyOauthConnectionsGroupId: z.ZodString;
298
298
  runnerVersion: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
@@ -40,7 +40,7 @@ export declare const SharedExtensionSearchResultMethodSchema: z.ZodObject<{
40
40
  fields: z.ZodArray<z.ZodType<import("./params-schema").ParamsSchemaField, unknown, z.core.$ZodTypeInternals<import("./params-schema").ParamsSchemaField, unknown>>>;
41
41
  }, z.core.$loose>>>;
42
42
  serviceInfo: z.ZodObject<{
43
- serviceClassName: z.ZodString;
43
+ serviceClassName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
44
44
  integrationName: z.ZodString;
45
45
  integrationIcon: z.ZodNullable<z.ZodString>;
46
46
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -70,7 +70,7 @@ export declare const SharedExtensionSearchResultMethodSchema: z.ZodObject<{
70
70
  serviceId: z.ZodString;
71
71
  newServiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
72
72
  legacyServiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
73
- serviceName: z.ZodString;
73
+ serviceName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
74
74
  oauthConnectionsGroupId: z.ZodString;
75
75
  legacyOauthConnectionsGroupId: z.ZodString;
76
76
  runnerVersion: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
@@ -138,7 +138,7 @@ export declare const SearchSharedExtensionsResponseSchema: z.ZodObject<{
138
138
  fields: z.ZodArray<z.ZodType<import("./params-schema").ParamsSchemaField, unknown, z.core.$ZodTypeInternals<import("./params-schema").ParamsSchemaField, unknown>>>;
139
139
  }, z.core.$loose>>>;
140
140
  serviceInfo: z.ZodObject<{
141
- serviceClassName: z.ZodString;
141
+ serviceClassName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
142
142
  integrationName: z.ZodString;
143
143
  integrationIcon: z.ZodNullable<z.ZodString>;
144
144
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -168,7 +168,7 @@ export declare const SearchSharedExtensionsResponseSchema: z.ZodObject<{
168
168
  serviceId: z.ZodString;
169
169
  newServiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
170
170
  legacyServiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
171
- serviceName: z.ZodString;
171
+ serviceName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
172
172
  oauthConnectionsGroupId: z.ZodString;
173
173
  legacyOauthConnectionsGroupId: z.ZodString;
174
174
  runnerVersion: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  export declare const ParsedFlowExtensionServiceInfoSchema: z.ZodObject<{
3
- serviceClassName: z.ZodString;
3
+ serviceClassName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4
4
  integrationName: z.ZodString;
5
5
  integrationIcon: z.ZodNullable<z.ZodString>;
6
6
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowrunner/cli",
3
- "version": "0.1.11",
3
+ "version": "0.1.12-dev.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -37,7 +37,9 @@
37
37
  "adm-zip": "^0.6.1",
38
38
  "archiver": "^7.0.0",
39
39
  "commander": "^12.0.0",
40
+ "form-data": "^4.0.0",
40
41
  "jsdoc": "^4.0.0",
42
+ "node-fetch": "^2.7.0",
41
43
  "requizzle": "^0.2.4",
42
44
  "zod": "^4.6.2"
43
45
  },
@@ -47,6 +49,7 @@
47
49
  "@flowrunner/jsdoc-parser": "*",
48
50
  "@types/adm-zip": "^0.5.7",
49
51
  "@types/archiver": "^6.0.0",
52
+ "@types/node-fetch": "^2.6.0",
50
53
  "esbuild": "^0.28.2",
51
54
  "nock": "^14.0.17",
52
55
  "query-string": "^7.1.3",