@powerhousedao/pieces-framework 6.2.3-dev.44 → 6.2.3-dev.45

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 CHANGED
@@ -1,6 +1,7 @@
1
- import { A as WebhookRenewStrategy, C as LATEST_CONTEXT_VERSION, D as ITrigger, E as DEDUPE_KEY_PROPERTY, F as OutputSchemaField, I as LocalesEnum, L as PieceCategory, M as createTrigger, N as FieldFormat, O as Trigger, P as OutputSchema, S as ContextVersion, T as backwardCompatabilityContextUtils, _ as PropertyGroup, a as createAction, b as TriggerBase, c as AiMetadata, d as PieceBase, f as PieceMetadata, g as PiecePackageInformation, h as PieceMetadataSummary, i as IAction, j as WebhookResponse, k as WebhookRenewConfiguration, l as Audience, m as PieceMetadataModelSummary, n as ActionRunner, o as ActionBase, p as PieceMetadataModel, r as ErrorHandlingOptionsParam, s as ActionClassification, t as Action, u as I18nForPiece, v as PropertyGroupDisplay, w as MINIMUM_SUPPORTED_RELEASE_AFTER_LATEST_CONTEXT_VERSION, x as isReadOnlyClassification, y as READ_ONLY_CLASSIFICATIONS } from "./action-DBiux4NX.js";
2
- import { $ as ArraySubProps, $t as SecretTextConnectionValue, A as TriggerHookContext, At as ApFile, B as Property, Bt as MarkdownVariant, C as StepContext, Ct as StaticMultiSelectDropdownProperty, D as StoreScope, Dt as LongTextProperty, E as Store, Et as SecretTextProperty, F as PiecePropValueSchema, Ft as Cursor, G as DynamicProp, Gt as WebhookHandshakeStrategy, H as CustomPropertyCodeFunctionParams, Ht as TriggerStrategy, I as PieceProperty, It as SeekPage, J as DateRangePreset, Jt as BasicAuthConnectionValue, K as DynamicProperties, Kt as AppConnectionType, L as PiecePropertyMap, Lt as apId, M as isPieceServerContextError, Mt as FileProperty, N as ExecutePropsResult, Nt as PropertyType, O as TagsManager, Ot as ShortTextProperty, P as InputPropertyMap, Pt as PopulatedFlowSummary, Q as ArrayProperty, Qt as OAuth2GrantType, R as StaticPropsValue, Rt as EventPayload, S as SetScheduleRequest, St as StaticDropdownProperty, T as StopHookParams, Tt as DropdownState, U as RichTextProperty, V as CustomProperty, Vt as ExecutionType, W as ObjectProperty, Wt as WebhookHandshakeConfiguration, X as DateRangeValue, Xt as NoAuthConnectionValue, Y as DateRangeProperty, Yt as CustomAuthConnectionValue, Z as dateRangeUtils, Zt as OAuth2ConnectionValueWithApp, _ as PropertyContext, _t as BasicAuthPropertyValue, a as ConnectionsManager, at as ExtractPieceAuthPropertyTypeForMethods, b as RunContext, bt as OAuth2PropertyValue, c as CreateWaitpointResult, ct as getAuthPropertyForValue, d as ListFlowsContextParams, dt as CustomAuthProperty, et as DateTimeProperty, f as OnStartContext, ft as CustomAuthProps, g as PieceServerContextError, gt as BasicAuthProperty, h as PauseHookParams, ht as NumberProperty, i as BaseContext, it as DEFAULT_CONNECTION_DISPLAY_NAME, j as WaitForWaitpointHook, jt as ApStreamingFile, k as TestOrRunHookContext, kt as BasePropertySchema, l as FilesService, lt as OIDCAuthProps, m as PauseHook, mt as CheckboxProperty, n as AppConnectionValueForAuthProperty, nt as DropdownProperty, o as CreateWaitpointHook, ot as PieceAuth, p as OutputContext, pt as CustomAuthRefresh, q as DynamicPropsValue, qt as AppConnectionValue, r as AuthValidationServerContext, rt as MultiSelectDropdownProperty, s as CreateWaitpointParams, st as PieceAuthProperty, t as ActionContext, tt as JsonProperty, u as FlowsContext, ut as OIDCProperty, v as RespondHook, vt as OAuth2AuthorizationMethod, w as StopHook, wt as DropdownOption, x as ServerContext, xt as OAuth2Props, y as RespondHookParams, yt as OAuth2Property, z as InputProperty, zt as ParseEventResponse } from "./index-C3LKS__W.js";
1
+ import { A as WebhookRenewStrategy, C as LATEST_CONTEXT_VERSION, D as ITrigger, E as DEDUPE_KEY_PROPERTY, F as OutputSchemaField, I as LocalesEnum, L as PieceCategory, M as createTrigger$1, N as FieldFormat, O as Trigger, P as OutputSchema, S as ContextVersion, T as backwardCompatabilityContextUtils, _ as PropertyGroup, a as createAction$1, b as TriggerBase, c as AiMetadata, d as PieceBase, f as PieceMetadata, g as PiecePackageInformation, h as PieceMetadataSummary, i as IAction, j as WebhookResponse, k as WebhookRenewConfiguration, l as Audience, m as PieceMetadataModelSummary, n as ActionRunner, o as ActionBase, p as PieceMetadataModel, r as ErrorHandlingOptionsParam, s as ActionClassification, t as Action, u as I18nForPiece, v as PropertyGroupDisplay, w as MINIMUM_SUPPORTED_RELEASE_AFTER_LATEST_CONTEXT_VERSION, x as isReadOnlyClassification, y as READ_ONLY_CLASSIFICATIONS } from "./action-DbfLL3TS.js";
2
+ import { $ as ArraySubProps, $t as NoAuthConnectionValue, A as TriggerHookContext, At as LongTextProperty, B as Property$1, Bt as apId, C as StepContext, Ct as OAuth2Props, D as StoreScope, Dt as DropdownOption, E as Store, Et as StaticMultiSelectDropdownProperty, F as PiecePropValueSchema, Ft as FileProperty, G as DynamicProp, Gt as TriggerStrategy, H as CustomPropertyCodeFunctionParams, Ht as ParseEventResponse, I as PieceProperty, It as PropertyType, J as DateRangePreset, Jt as WebhookHandshakeStrategy, K as DynamicProperties, L as PiecePropertyMap, Lt as PopulatedFlowSummary, M as isPieceServerContextError, Mt as BasePropertySchema, N as ExecutePropsResult, Nt as ApFile, O as TagsManager, Ot as DropdownState, P as InputPropertyMap, Pt as ApStreamingFile, Q as ArrayProperty, Qt as CustomAuthConnectionValue, R as StaticPropsValue, Rt as Cursor, S as SetScheduleRequest, St as OAuth2PropertyValue, T as StopHookParams, Tt as StaticDropdownProperty, U as RichTextProperty, Ut as MarkdownVariant, V as CustomProperty, Vt as EventPayload, W as ObjectProperty, Wt as ExecutionType, X as DateRangeValue, Xt as AppConnectionValue, Y as DateRangeProperty, Yt as AppConnectionType, Z as dateRangeUtils, Zt as BasicAuthConnectionValue, _ as PropertyContext$1, _t as NumberProperty, a as ConnectionsManager, at as DEFAULT_CONNECTION_DISPLAY_NAME, b as RunContext, bt as OAuth2AuthorizationMethod, c as CreateWaitpointResult, ct as PieceAuthProperty, d as ListFlowsContextParams, dt as OIDCProperty, en as OAuth2ConnectionValueWithApp, et as DateTimeProperty, f as OnStartContext, ft as CustomAuthProperty, g as PieceServerContextError, gt as CheckboxProperty, h as PauseHookParams, ht as MarkDownProperty, i as BaseContext, it as MultiSelectDropdownProperty, j as WaitForWaitpointHook, jt as ShortTextProperty, k as TestOrRunHookContext, kt as SecretTextProperty, l as FilesService, lt as getAuthPropertyForValue, m as PauseHook, mt as CustomAuthRefresh, n as AppConnectionValueForAuthProperty, nn as SecretTextConnectionValue, nt as JsonProperty, o as CreateWaitpointHook, ot as ExtractPieceAuthPropertyTypeForMethods, p as OutputContext, pt as CustomAuthProps, q as DynamicPropsValue, qt as WebhookHandshakeConfiguration, r as AuthValidationServerContext, rt as DropdownProperty, s as CreateWaitpointParams, st as PieceAuth, t as ActionContext, tn as OAuth2GrantType, tt as ColorProperty, u as FlowsContext, ut as OIDCAuthProps, v as RespondHook, vt as BasicAuthProperty, w as StopHook, wt as StaticDropdownDisplay, x as ServerContext, xt as OAuth2Property, y as RespondHookParams, yt as BasicAuthPropertyValue, z as InputProperty, zt as SeekPage } from "./index-BDW8II8k.js";
3
3
  import * as z from "zod/mini";
4
+ import { IReactorClient } from "@powerhousedao/reactor";
4
5
  //#region upstream/core-utils/lib/utils.d.ts
5
6
  export declare function isString(str: unknown): str is string;
6
7
  export declare function isNil<T>(value: T | null | undefined): value is null | undefined;
@@ -1076,73 +1077,232 @@ export declare function createMockPollingTriggerContext<Props extends InputPrope
1076
1077
  onSetSchedule?: (schedule: SetScheduleRequest) => void;
1077
1078
  }): TriggerHookContext<undefined, Props, TriggerStrategy.POLLING>;
1078
1079
  //#endregion
1079
- //#region src/powerhouse/reactor.d.ts
1080
- interface ReactorDocumentSummary {
1081
- documentId: string;
1082
- documentType: string;
1083
- name: string;
1084
- slug?: string;
1085
- state?: unknown;
1086
- }
1087
- interface ReactorActionInput {
1088
- type: string;
1089
- input?: unknown;
1090
- scope?: string;
1091
- }
1092
- interface ReactorModelSummary {
1093
- documentType: string;
1094
- name: string;
1095
- }
1096
- interface ReactorModelActionSchema {
1097
- type: string;
1098
- module: string;
1099
- inputSchema: string | null;
1100
- }
1101
- interface ReactorModelDetail extends ReactorModelSummary {
1102
- stateSchema: string | null;
1103
- actions: ReactorModelActionSchema[];
1104
- }
1105
- interface ReactorFindInput {
1106
- documentType?: string;
1107
- parentId?: string;
1108
- limit?: number;
1109
- match?: {
1110
- path: string;
1111
- value: string;
1112
- };
1113
- withState?: boolean;
1114
- }
1115
- interface ReactorCreateInput {
1116
- documentType: string;
1117
- name?: string;
1118
- parentId?: string;
1119
- }
1120
- interface ReactorExecuteInput {
1121
- documentId: string;
1122
- branch?: string;
1123
- actions: ReactorActionInput[];
1124
- }
1125
- interface ReactorService {
1126
- models(): Promise<ReactorModelSummary[]>;
1127
- model(documentType: string): Promise<ReactorModelDetail>;
1128
- get(input: {
1129
- documentId: string;
1130
- branch?: string;
1131
- }): Promise<ReactorDocumentSummary>;
1132
- find(input: ReactorFindInput): Promise<ReactorDocumentSummary[]>;
1133
- create(input: ReactorCreateInput): Promise<ReactorDocumentSummary>;
1134
- execute(input: ReactorExecuteInput): Promise<ReactorDocumentSummary>;
1135
- }
1080
+ //#region src/powerhouse/reactor-client.d.ts
1081
+ type RequireReactor = "read" | "write";
1082
+ type ReactorDeclaration = RequireReactor | false;
1083
+ type ReadMethods = "get" | "resolveIdOrSlug" | "find" | "getOperations" | "getOutgoingRelationships" | "getIncomingRelationships" | "getOutgoingRelationshipEdges" | "getIncomingRelationshipEdges" | "getDocumentModelModules" | "getDocumentModelModule" | "getDocumentModelModuleForDocument";
1084
+ type WriteMethods = "create" | "createEmpty" | "execute" | "deleteDocument";
1085
+ type RefusedMethods = "createDocumentInDrive" | "executeBatch" | "rename" | "setPreferredEditor" | "addRelationship" | "updateRelationship" | "removeRelationship" | "moveRelationship" | "upgradeDocument" | "deleteDocuments" | "executeAsync" | "createAsync" | "createEmptyAsync" | "getJobStatus" | "waitForJob" | "subscribe" | "loadBatch" | "evaluateActions" | "isDocumentIdTaken" | "isServed" | "getCreateSignaturePolicy" | "getCreateProtocolVersions" | "drives";
1086
+ type ReactorReadClient = Pick<IReactorClient, ReadMethods>;
1087
+ type ReactorClient = Pick<IReactorClient, ReadMethods | WriteMethods>;
1088
+ type ReactorClientFor<R extends RequireReactor> = R extends "write" ? ReactorClient : ReactorReadClient;
1089
+ type ReactorContext<R extends ReactorDeclaration | undefined> = [R] extends [RequireReactor] ? {
1090
+ reactor: ReactorClientFor<R>;
1091
+ } : unknown;
1136
1092
  //#endregion
1137
- //#region src/powerhouse/context.d.ts
1093
+ //#region src/powerhouse/create.d.ts
1094
+ type AnyPieceAuth$1 = PieceAuthProperty | PieceAuthProperty[] | undefined;
1095
+ type WithReactorHook<F, R extends ReactorDeclaration | undefined> = F extends ((ctx: infer C) => infer Out) ? (ctx: C & ReactorContext<R>) => Out : F;
1096
+ type WithReactorHooks<Params, Hooks extends PropertyKey, R extends ReactorDeclaration | undefined> = { [K in keyof Params]: K extends Hooks ? WithReactorHook<Params[K], R> : Params[K]; } & {
1097
+ requireReactor?: R;
1098
+ };
1099
+ type UpstreamActionParams<PieceAuth extends AnyPieceAuth$1, ActionProps extends InputPropertyMap> = Parameters<typeof createAction$1<PieceAuth, ActionProps>>[0];
1100
+ type CreateActionParams<PieceAuth extends AnyPieceAuth$1, ActionProps extends InputPropertyMap, R extends ReactorDeclaration | undefined> = WithReactorHooks<UpstreamActionParams<PieceAuth, ActionProps>, "run" | "test", R>;
1101
+ type Declared<T, R extends ReactorDeclaration | undefined> = T & {
1102
+ readonly requireReactor?: Exclude<R, false>;
1103
+ };
1104
+ export declare function createAction<PieceAuth extends AnyPieceAuth$1 = PieceAuthProperty, ActionProps extends InputPropertyMap = any, R extends ReactorDeclaration | undefined = undefined>(params: CreateActionParams<PieceAuth, ActionProps, R>): Declared<ReturnType<typeof createAction$1<PieceAuth, ActionProps>>, R>;
1105
+ type UpstreamTriggerParams<TS extends TriggerStrategy, PieceAuth extends AnyPieceAuth$1, TriggerProps extends InputPropertyMap> = Parameters<typeof createTrigger$1<TS, PieceAuth, TriggerProps>>[0];
1106
+ type TriggerHooks = "onEnable" | "onDisable" | "run" | "test" | "onStart" | "onHandshake" | "onRenew";
1107
+ type StrategyParams<S extends TriggerStrategy, TS extends TriggerStrategy, PieceAuth extends AnyPieceAuth$1, TriggerProps extends InputPropertyMap, R extends ReactorDeclaration | undefined> = Omit<WithReactorHooks<UpstreamTriggerParams<S, PieceAuth, TriggerProps>, TriggerHooks, R>, "type"> & {
1108
+ type: TS;
1109
+ };
1110
+ type CreateTriggerParams<TS extends TriggerStrategy, PieceAuth extends AnyPieceAuth$1, TriggerProps extends InputPropertyMap, R extends ReactorDeclaration | undefined> = TS extends TriggerStrategy.WEBHOOK ? StrategyParams<TriggerStrategy.WEBHOOK, TS, PieceAuth, TriggerProps, R> : TS extends TriggerStrategy.POLLING ? StrategyParams<TriggerStrategy.POLLING, TS, PieceAuth, TriggerProps, R> : TS extends TriggerStrategy.APP_WEBHOOK ? StrategyParams<TriggerStrategy.APP_WEBHOOK, TS, PieceAuth, TriggerProps, R> : StrategyParams<TriggerStrategy.MANUAL, TS, PieceAuth, TriggerProps, R>;
1111
+ export declare function createTrigger<TS extends TriggerStrategy, PieceAuth extends AnyPieceAuth$1, TriggerProps extends InputPropertyMap, R extends ReactorDeclaration | undefined = undefined>(params: CreateTriggerParams<TS, PieceAuth, TriggerProps, R>): Declared<ReturnType<typeof createTrigger$1<TS, PieceAuth, TriggerProps>>, R>;
1112
+ //#endregion
1113
+ //#region src/powerhouse/property.d.ts
1138
1114
  type AnyPieceAuth = PieceAuthProperty | PieceAuthProperty[] | undefined;
1139
- type WithReactor<C> = C & {
1140
- reactor: ReactorService;
1115
+ export type PropertyContext = PropertyContext$1 & {
1116
+ reactor?: ReactorReadClient;
1141
1117
  };
1142
- type PowerhouseActionContext<Auth extends AnyPieceAuth = undefined, Props extends InputPropertyMap = InputPropertyMap> = WithReactor<ActionContext<Auth, Props>>;
1143
- type PowerhousePropertyContext = WithReactor<PropertyContext>;
1144
- type PowerhouseTriggerHookContext<Auth extends AnyPieceAuth, Props extends InputPropertyMap, S extends TriggerStrategy> = WithReactor<TriggerHookContext<Auth, Props, S>>;
1145
- export declare function reactorOf(ctx: unknown): ReactorService;
1118
+ type WithReactorResolver<F> = F extends ((values: infer V, ctx: PropertyContext$1) => infer Out) ? (values: V, ctx: PropertyContext) => Out : F;
1119
+ type WithReactorResolvers<Params, Key extends PropertyKey> = { [K in keyof Params]: K extends Key ? WithReactorResolver<Params[K]> : Params[K]; };
1120
+ type DropdownParams<T, R extends boolean, A extends AnyPieceAuth> = Parameters<typeof Property$1.Dropdown<T, R, A>>[0];
1121
+ type MultiSelectDropdownParams<T, R extends boolean, A extends AnyPieceAuth> = Parameters<typeof Property$1.MultiSelectDropdown<T, R, A>>[0];
1122
+ type DynamicPropertiesParams<R extends boolean, A extends AnyPieceAuth> = Parameters<typeof Property$1.DynamicProperties<R, A>>[0];
1123
+ export declare const Property: {
1124
+ ShortText<R extends boolean>(request: {
1125
+ displayName: string;
1126
+ description?: string | undefined;
1127
+ advanced?: boolean | undefined;
1128
+ width?: "full" | "half" | undefined;
1129
+ icon?: string | undefined;
1130
+ placeholder?: string | undefined;
1131
+ required: R;
1132
+ defaultValue?: string | undefined;
1133
+ }): R extends true ? ShortTextProperty<true> : ShortTextProperty<false>;
1134
+ Checkbox<R extends boolean>(request: {
1135
+ displayName: string;
1136
+ description?: string | undefined;
1137
+ advanced?: boolean | undefined;
1138
+ width?: "full" | "half" | undefined;
1139
+ icon?: string | undefined;
1140
+ placeholder?: string | undefined;
1141
+ required: R;
1142
+ defaultValue?: boolean | undefined;
1143
+ reveals?: string[];
1144
+ }): R extends true ? CheckboxProperty<true> : CheckboxProperty<false>;
1145
+ LongText<R extends boolean>(request: {
1146
+ displayName: string;
1147
+ description?: string | undefined;
1148
+ advanced?: boolean | undefined;
1149
+ width?: "full" | "half" | undefined;
1150
+ icon?: string | undefined;
1151
+ placeholder?: string | undefined;
1152
+ required: R;
1153
+ defaultValue?: string | undefined;
1154
+ }): R extends true ? LongTextProperty<true> : LongTextProperty<false>;
1155
+ RichText<R extends boolean>(request: {
1156
+ displayName: string;
1157
+ description?: string | undefined;
1158
+ advanced?: boolean | undefined;
1159
+ width?: "full" | "half" | undefined;
1160
+ icon?: string | undefined;
1161
+ placeholder?: string | undefined;
1162
+ required: R;
1163
+ defaultValue?: string | undefined;
1164
+ formatProperty?: string;
1165
+ }): R extends true ? RichTextProperty<true> : RichTextProperty<false>;
1166
+ MarkDown(request: {
1167
+ value: string;
1168
+ variant?: MarkdownVariant;
1169
+ }): MarkDownProperty;
1170
+ Number<R extends boolean>(request: {
1171
+ displayName: string;
1172
+ description?: string | undefined;
1173
+ advanced?: boolean | undefined;
1174
+ width?: "full" | "half" | undefined;
1175
+ icon?: string | undefined;
1176
+ placeholder?: string | undefined;
1177
+ required: R;
1178
+ defaultValue?: number | undefined;
1179
+ display?: "stepper";
1180
+ min?: number;
1181
+ max?: number;
1182
+ step?: number;
1183
+ }): R extends true ? NumberProperty<true> : NumberProperty<false>;
1184
+ Json<R extends boolean>(request: {
1185
+ displayName: string;
1186
+ description?: string | undefined;
1187
+ advanced?: boolean | undefined;
1188
+ width?: "full" | "half" | undefined;
1189
+ icon?: string | undefined;
1190
+ placeholder?: string | undefined;
1191
+ required: R;
1192
+ defaultValue?: object | undefined;
1193
+ }): R extends true ? JsonProperty<true> : JsonProperty<false>;
1194
+ Array<R extends boolean>(request: {
1195
+ displayName: string;
1196
+ description?: string | undefined;
1197
+ advanced?: boolean | undefined;
1198
+ width?: "full" | "half" | undefined;
1199
+ icon?: string | undefined;
1200
+ placeholder?: string | undefined;
1201
+ required: R;
1202
+ defaultValue?: unknown[] | undefined;
1203
+ properties?: ArraySubProps<R> | undefined;
1204
+ }): R extends true ? ArrayProperty<true> : ArrayProperty<false>;
1205
+ Object<R extends boolean>(request: {
1206
+ displayName: string;
1207
+ description?: string | undefined;
1208
+ advanced?: boolean | undefined;
1209
+ width?: "full" | "half" | undefined;
1210
+ icon?: string | undefined;
1211
+ placeholder?: string | undefined;
1212
+ required: R;
1213
+ defaultValue?: unknown;
1214
+ }): R extends true ? ObjectProperty<true> : ObjectProperty<false>;
1215
+ StaticDropdown<T, R extends boolean = boolean>(request: {
1216
+ displayName: string;
1217
+ description?: string | undefined;
1218
+ advanced?: boolean | undefined;
1219
+ width?: "full" | "half" | undefined;
1220
+ icon?: string | undefined;
1221
+ placeholder?: string | undefined;
1222
+ required: R;
1223
+ defaultValue?: unknown;
1224
+ options: DropdownState<T>;
1225
+ display?: StaticDropdownDisplay;
1226
+ }): R extends true ? StaticDropdownProperty<T, true> : StaticDropdownProperty<T, false>;
1227
+ StaticMultiSelectDropdown<T, R extends boolean = boolean>(request: {
1228
+ displayName: string;
1229
+ description?: string | undefined;
1230
+ advanced?: boolean | undefined;
1231
+ width?: "full" | "half" | undefined;
1232
+ icon?: string | undefined;
1233
+ placeholder?: string | undefined;
1234
+ required: R;
1235
+ defaultValue?: unknown[] | undefined;
1236
+ options: DropdownState<T>;
1237
+ }): R extends true ? StaticMultiSelectDropdownProperty<T, true> : StaticMultiSelectDropdownProperty<T, false>;
1238
+ DateTime<R extends boolean>(request: {
1239
+ displayName: string;
1240
+ description?: string | undefined;
1241
+ advanced?: boolean | undefined;
1242
+ width?: "full" | "half" | undefined;
1243
+ icon?: string | undefined;
1244
+ placeholder?: string | undefined;
1245
+ required: R;
1246
+ defaultValue?: string | undefined;
1247
+ }): R extends true ? DateTimeProperty<true> : DateTimeProperty<false>;
1248
+ DateRange<R extends boolean>(request: {
1249
+ displayName: string;
1250
+ description?: string | undefined;
1251
+ advanced?: boolean | undefined;
1252
+ width?: "full" | "half" | undefined;
1253
+ icon?: string | undefined;
1254
+ placeholder?: string | undefined;
1255
+ required: R;
1256
+ defaultValue?: object | undefined;
1257
+ display?: "dropdown";
1258
+ }): R extends true ? DateRangeProperty<true> : DateRangeProperty<false>;
1259
+ File<R extends boolean, S extends boolean = false>(request: {
1260
+ streaming?: S | undefined;
1261
+ displayName: string;
1262
+ description?: string | undefined;
1263
+ advanced?: boolean | undefined;
1264
+ width?: "full" | "half" | undefined;
1265
+ icon?: string | undefined;
1266
+ placeholder?: string | undefined;
1267
+ required: R;
1268
+ defaultValue?: ApFile | undefined;
1269
+ }): FileProperty<R extends true ? true : false, S extends true ? true : false>;
1270
+ Custom<R extends boolean>(request: Omit<{
1271
+ displayName: string;
1272
+ description?: string | undefined;
1273
+ advanced?: boolean | undefined;
1274
+ width?: "full" | "half" | undefined;
1275
+ icon?: string | undefined;
1276
+ placeholder?: string | undefined;
1277
+ required: R;
1278
+ defaultValue?: unknown;
1279
+ code: string;
1280
+ }, "code"> & {
1281
+ code: (ctx: CustomPropertyCodeFunctionParams) => (() => void) | void;
1282
+ }): R extends true ? CustomProperty<true> : CustomProperty<false>;
1283
+ Color<R extends boolean>(request: {
1284
+ displayName: string;
1285
+ description?: string | undefined;
1286
+ advanced?: boolean | undefined;
1287
+ width?: "full" | "half" | undefined;
1288
+ icon?: string | undefined;
1289
+ placeholder?: string | undefined;
1290
+ required: R;
1291
+ defaultValue?: string | undefined;
1292
+ }): R extends true ? ColorProperty<true> : ColorProperty<false>;
1293
+ Dropdown<T, R extends boolean = boolean, A extends AnyPieceAuth = undefined>(request: WithReactorResolvers<DropdownParams<T, R, A>, "options">): ReturnType<typeof Property$1.Dropdown<T, R, A>>;
1294
+ MultiSelectDropdown<T, R extends boolean = boolean, A extends AnyPieceAuth = undefined>(request: WithReactorResolvers<MultiSelectDropdownParams<T, R, A>, "options">): ReturnType<typeof Property$1.MultiSelectDropdown<T, R, A>>;
1295
+ DynamicProperties<R extends boolean = boolean, A extends AnyPieceAuth = undefined>(request: WithReactorResolvers<DynamicPropertiesParams<R, A>, "props">): ReturnType<typeof Property$1.DynamicProperties<R, A>>;
1296
+ };
1297
+ //#endregion
1298
+ //#region src/powerhouse/errors.d.ts
1299
+ export declare const ReactorJobPendingError = "ReactorJobPendingError";
1300
+ export declare const ReactorJobFailedError = "ReactorJobFailedError";
1301
+ export declare const ReactorActionsFailedError = "ReactorActionsFailedError";
1302
+ export declare const ReactorAccessDeniedError = "ReactorAccessDeniedError";
1303
+ export declare const ReactorRequestClosedError = "ReactorRequestClosedError";
1304
+ export declare const DocumentModelUnavailableError = "DocumentModelUnavailableError";
1305
+ type ReactorErrorName = typeof ReactorJobPendingError | typeof ReactorJobFailedError | typeof ReactorActionsFailedError | typeof ReactorAccessDeniedError | typeof ReactorRequestClosedError | typeof DocumentModelUnavailableError;
1146
1306
  //#endregion
1147
1307
  //#region src/powerhouse/package-piece.d.ts
1148
1308
  interface PackagePiece {
@@ -1151,6 +1311,6 @@ interface PackagePiece {
1151
1311
  entry?: string;
1152
1312
  }
1153
1313
  //#endregion
1154
- export { Action, ActionBase, ActionClassification, ActionContext, ActionRunner, type AgentProviderModel, type AgentResult, AiMetadata, ApFile, type ApStreamingFile, AppConnectionType, type AppConnectionValue, AppConnectionValueForAuthProperty, ArrayProperty, ArraySubProps, Audience, AuthValidationServerContext, BaseContext, BasePropertySchema, type BasicAuthConnectionValue, BasicAuthProperty, BasicAuthPropertyValue, CheckboxProperty, ConnectionsManager, ContextVersion, CreateWaitpointHook, CreateWaitpointParams, CreateWaitpointResult, type CustomAuthConnectionValue, CustomAuthProperty, CustomAuthProps, CustomAuthRefresh, CustomProperty, type CustomPropertyCodeFunctionParams, DEDUPE_KEY_PROPERTY, DEFAULT_CONNECTION_DISPLAY_NAME, DateRangePreset, DateRangeProperty, DateRangeValue, DateTimeProperty, DropdownOption, DropdownProperty, DropdownState, DynamicProp, DynamicProperties, DynamicPropsValue, ErrorHandlingOptionsParam, ExecutePropsResult, type ExecuteToolResponse, ExecutionType, type ExtractPieceAuthPropertyTypeForMethods, type FieldFormat, FileProperty, FilesService, FlowsContext, I18nForPiece, IAction, ITrigger, InputProperty, InputPropertyMap, JsonProperty, LATEST_CONTEXT_VERSION, ListFlowsContextParams, LongTextProperty, MINIMUM_SUPPORTED_RELEASE_AFTER_LATEST_CONTEXT_VERSION, MarkdownVariant, MultiSelectDropdownProperty, type NoAuthConnectionValue, NumberProperty, OAuth2AuthorizationMethod, type OAuth2ConnectionValueWithApp, OAuth2GrantType, OAuth2Property, OAuth2PropertyValue, OAuth2Props, OIDCAuthProps, OIDCProperty, ObjectProperty, OnStartContext, OutputContext, type OutputSchema, type OutputSchemaField, type PackagePiece, PauseHook, PauseHookParams, PieceAuth, PieceAuthProperty, PieceBase, PieceCategory, PieceMetadata, PieceMetadataModel, PieceMetadataModelSummary, PieceMetadataSummary, PiecePackageInformation, PiecePropValueSchema, PieceProperty, PiecePropertyMap, PieceServerContextError, type PopulatedFlow, type PopulatedFlowSummary, type PowerhouseActionContext, type PowerhousePropertyContext, type PowerhouseTriggerHookContext, Property, PropertyContext, PropertyGroup, PropertyGroupDisplay, PropertyType, READ_ONLY_CLASSIFICATIONS, type ReactorActionInput, type ReactorCreateInput, type ReactorDocumentSummary, type ReactorExecuteInput, type ReactorFindInput, type ReactorModelActionSchema, type ReactorModelDetail, type ReactorModelSummary, type ReactorService, RespondHook, RespondHookParams, RichTextProperty, RunContext, type SecretTextConnectionValue, SecretTextProperty, SeekPage, ServerContext, SetScheduleRequest, ShortTextProperty, StaticDropdownProperty, StaticMultiSelectDropdownProperty, StaticPropsValue, StepContext, StopHook, StopHookParams, Store, StoreScope, TagsManager, TestOrRunHookContext, type ToolCallBase, Trigger, TriggerBase, TriggerHookContext, TriggerStrategy, WaitForWaitpointHook, type WebhookHandshakeConfiguration, WebhookHandshakeStrategy, WebhookRenewConfiguration, WebhookRenewStrategy, WebhookResponse, type WithReactor, apId, backwardCompatabilityContextUtils, createAction, createTrigger, dateRangeUtils, getAuthPropertyForValue, isPieceServerContextError, isReadOnlyClassification };
1314
+ export { Action, ActionBase, ActionClassification, ActionContext, ActionRunner, type AgentProviderModel, type AgentResult, AiMetadata, ApFile, type ApStreamingFile, AppConnectionType, type AppConnectionValue, AppConnectionValueForAuthProperty, ArrayProperty, ArraySubProps, Audience, AuthValidationServerContext, BaseContext, BasePropertySchema, type BasicAuthConnectionValue, BasicAuthProperty, BasicAuthPropertyValue, CheckboxProperty, ConnectionsManager, ContextVersion, type CreateActionParams, type CreateTriggerParams, CreateWaitpointHook, CreateWaitpointParams, CreateWaitpointResult, type CustomAuthConnectionValue, CustomAuthProperty, CustomAuthProps, CustomAuthRefresh, CustomProperty, type CustomPropertyCodeFunctionParams, DEDUPE_KEY_PROPERTY, DEFAULT_CONNECTION_DISPLAY_NAME, DateRangePreset, DateRangeProperty, DateRangeValue, DateTimeProperty, type Declared, DropdownOption, DropdownProperty, DropdownState, DynamicProp, DynamicProperties, DynamicPropsValue, ErrorHandlingOptionsParam, ExecutePropsResult, type ExecuteToolResponse, ExecutionType, type ExtractPieceAuthPropertyTypeForMethods, type FieldFormat, FileProperty, FilesService, FlowsContext, I18nForPiece, IAction, ITrigger, InputProperty, InputPropertyMap, JsonProperty, LATEST_CONTEXT_VERSION, ListFlowsContextParams, LongTextProperty, MINIMUM_SUPPORTED_RELEASE_AFTER_LATEST_CONTEXT_VERSION, MarkdownVariant, MultiSelectDropdownProperty, type NoAuthConnectionValue, NumberProperty, OAuth2AuthorizationMethod, type OAuth2ConnectionValueWithApp, OAuth2GrantType, OAuth2Property, OAuth2PropertyValue, OAuth2Props, OIDCAuthProps, OIDCProperty, ObjectProperty, OnStartContext, OutputContext, type OutputSchema, type OutputSchemaField, type PackagePiece, PauseHook, PauseHookParams, PieceAuth, PieceAuthProperty, PieceBase, PieceCategory, PieceMetadata, PieceMetadataModel, PieceMetadataModelSummary, PieceMetadataSummary, PiecePackageInformation, PiecePropValueSchema, PieceProperty, PiecePropertyMap, PieceServerContextError, type PopulatedFlow, type PopulatedFlowSummary, PropertyGroup, PropertyGroupDisplay, PropertyType, READ_ONLY_CLASSIFICATIONS, type ReactorClient, type ReactorClientFor, type ReactorContext, type ReactorDeclaration, type ReactorErrorName, type ReactorReadClient, type ReadMethods, type RefusedMethods, type RequireReactor, RespondHook, RespondHookParams, RichTextProperty, RunContext, type SecretTextConnectionValue, SecretTextProperty, SeekPage, ServerContext, SetScheduleRequest, ShortTextProperty, StaticDropdownProperty, StaticMultiSelectDropdownProperty, StaticPropsValue, StepContext, StopHook, StopHookParams, Store, StoreScope, TagsManager, TestOrRunHookContext, type ToolCallBase, Trigger, TriggerBase, TriggerHookContext, TriggerStrategy, WaitForWaitpointHook, type WebhookHandshakeConfiguration, WebhookHandshakeStrategy, WebhookRenewConfiguration, WebhookRenewStrategy, WebhookResponse, type WriteMethods, apId, backwardCompatabilityContextUtils, dateRangeUtils, getAuthPropertyForValue, isPieceServerContextError, isReadOnlyClassification };
1155
1315
  export {};
1156
1316
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../upstream/core-utils/lib/utils.ts","../upstream/core-utils/lib/object-utils.ts","../upstream/core-utils/lib/assertions.ts","../upstream/core-utils/lib/try-catch.ts","../upstream/core-utils/lib/permission.ts","../upstream/core-piece-types/lib/agents.ts","../upstream/core-piece-types/lib/ai-providers.ts","../upstream/core-piece-types/lib/forms.ts","../upstream/core-piece-types/lib/tables.ts","../upstream/core-piece-types/lib/flow-contracts.ts","../upstream/core-piece-types/lib/mcp-piece.ts","../upstream/core-piece-types/lib/engine-tools.ts","../upstream/framework/lib/property/util.ts","../upstream/framework/lib/piece.ts","../upstream/framework/lib/i18n.ts","../upstream/framework/lib/test/index.ts","../src/powerhouse/reactor.ts","../src/powerhouse/context.ts","../src/powerhouse/package-piece.ts"],"mappings":";;;;wBAIgB,SAAS,eAAe;wBA0BxB,MAAM,GACpB,OAAO,uBACN;wBAuEa,UAAU;wBAgBV,QAAQ,GAAG,OAAO;wBAgBlB,UAAU;wBASV,UAAU;wBAcV,OAAO,UAAU,yBAC/B,QAAQ,GACR,YAAY,OAAO,QAAQ,IAAI,WAAW,g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,SAAS;IACT;;;KAIC,kCAAkC,KACrC;EAGA,UAAU;EACV,OAAO;;;;qBC9II;EACX,iBAAiB,UAAU,4BAA4B,oBAAkB,QAC/D,qBAAqB,OAC5B;;EAwBH,iBAAc,4BAEX,QAAQ;EAmBX;;KA8FG,qBACH,UAAU,4BAA4B;EAEtC,OAAO;EACP,SAAS;EACT;;;;wBCpJc,wBACd,cAAc,kBACd;EACA,YAAY,iBAAiB;IAC3B,yBAAyB;wBAoEb,gCACd,cAAc,kBACd;EACA,YAAY,iBAAiB;EAC7B,iBAAiB,UAAU;IACzB,8BAA8B,OAAO,gBAAgB;;;UCpFxC;EACf;EACA;EACA;EACA;EAEA;;UAIe;EACf;EACA;EACA;;UAGe;EACf;EACA;;UAGe;EACf;EACA;EACA;;UAGe,2BAA2B;EAC1C;EACA,SAAS;;UAGM;EACf;EACA;EAEA;EAEA;IAAU;IAAc;;EAExB;;UAGe;EACf;EACA;EAEA;;UAGe;EACf;EACA;EACA,SAAS;;UAGM;EACf,UAAU,QAAQ;EAClB,MAAM,uBAAuB,QAAQ;EACrC,IAAI;IACF;IACA;MACE,QAAQ;EACZ,KAAK,OAAO,mBAAmB,QAAQ;EACvC,OAAO,OAAO,qBAAqB,QAAQ;EAC3C,QAAQ,OAAO,sBAAsB,QAAQ;;;;KC3D1C,eAAe,oBAAoB;KAI5B,YAAY,KAAK;EAAM,SAAS;;KAEhC,wBACV,aAAa,0BACb,cAAc,mBAAmB,oBAC/B,YAAY,cAAc,MAAM;KAExB,4BAA4B,YAAY;KAExC,6BACV,aAAa,cACb,cAAc,kBACd,UAAU,mBACR,YAAY,mBAAmB,MAAM,OAAO;wBAGhC,UAAU,eAAe;;;UC5BxB;EACf;EAGA;EACA"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../upstream/core-utils/lib/utils.ts","../upstream/core-utils/lib/object-utils.ts","../upstream/core-utils/lib/assertions.ts","../upstream/core-utils/lib/try-catch.ts","../upstream/core-utils/lib/permission.ts","../upstream/core-piece-types/lib/agents.ts","../upstream/core-piece-types/lib/ai-providers.ts","../upstream/core-piece-types/lib/forms.ts","../upstream/core-piece-types/lib/tables.ts","../upstream/core-piece-types/lib/flow-contracts.ts","../upstream/core-piece-types/lib/mcp-piece.ts","../upstream/core-piece-types/lib/engine-tools.ts","../upstream/framework/lib/property/util.ts","../upstream/framework/lib/piece.ts","../upstream/framework/lib/i18n.ts","../upstream/framework/lib/test/index.ts","../src/powerhouse/reactor-client.ts","../src/powerhouse/create.ts","../src/powerhouse/property.ts","../src/powerhouse/errors.ts","../src/powerhouse/package-piece.ts"],"mappings":";;;;;wBAIgB,SAAS,eAAe;wBA0BxB,MAAM,GACpB,OAAO,uBACN;wBAuEa,UAAU;wBAgBV,QAAQ,GAAG,OAAO;wBAgBlB,UAAU;wBASV,UAAU;wBAcV,OAAO,UAAU,yBAC/B,QAAQ,GACR,YAAY,OAAO,QAAQ,IAAI,WAAW,gBACzC,QAAQ;wBASK,MAAM,GAAG,SAAS,KAAK,eAAY;wBAwBnC,OAAO,GAAG,OAAO,MAAM;;;qBC5J1B,kBAAmB,GAAC,aACpB,OACJ,yBACN,eAAe;;;wBC5BF,yBAAyB,GACvC,OAAO,sBACP,4BACS,SAAS;qBAiBP,iBAAkB,GAAC,OAAS,kBAAgB,SAAS;;;KC9B7D,QAAQ;EACX,MAAM;EACN;;KAGG,QAAQ;EACX;EACA,OAAO;;KAGG,OAAO,GAAG,IAAI,SAAS,QAAQ,KAAK,QAAQ;wBAGlC,SAAS,GAAG,IAAI,OACpC,UAAU,QAAQ,KACjB,QAAQ,OAAO,GAAG;;;oBCgCT;EACV;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;;qBC7DW;oBAED;EACV;EACA;EACA;EACA;;aAGU;EACV;EACA;EACA;;oBAGU;EACV;EACA;;oBAGU;EACV;EACA;EACA;;oBAGU;EACV;EACA;EACA;EACA;;oBAGU;EACV;EACA;EACA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,oBAAoB,KAAK,YAC5B,cAAc,GACd,KAAK,4BACI,QACN,QAAQ,GAAG,KAAK,oBAAoB,MACrC;KAEC,qBAAqB,QAAQ,YAAY,kBAC3C,WAAW,SAAS,UAAU,MAC3B,oBAAoB,OAAO,MAC3B,OAAO;KAGR,eAAe,GAAG,mBAAmB,UAAU,gBAAgB,kBAC3D,WAAiB,SAAS,GAAG,GAAG;KAEpC,0BACH,GACA,mBACA,UAAU,gBACR,kBAAkB,WAAiB,oBAAoB,GAAG,GAAG;KAC5D,wBACH,mBACA,UAAU,gBACR,kBAAkB,WAAiB,kBAAkB,GAAG;qBAE/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEF,SAAA,GAAG,6BAA6B,UAAU,0BAAY,SACpD,qBAAqB,eAAe,GAAG,GAAG,iBAClD,kBAAkB,WAAiB,SAAS,GAAG,GAAG;EAMnD,oBAAA,GACA,6BACA,UAAU,0BAAY,SAEb,qBACP,0BAA0B,GAAG,GAAG,iBAGjC,kBAAkB,WAAiB,oBAAoB,GAAG,GAAG;EAM9D,kBAAA,6BACA,UAAU,0BAAY,SAEb,qBAAqB,wBAAwB,GAAG,eACxD,kBAAkB,WAAiB,kBAAkB,GAAG;;;;qBClEhD;qBAEA;qBAEA;qBAEA;qBAEA;qBAEA;KAED,0BACD,gCACA,+BACA,mCACA,kCACA,mCACA;;;UCpBM;EACf;EAGA;EACA"}
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as ErrorHandlingOptionsParam, a as ObjectProperty, c as DynamicProp, d as ArrayProperty, f as ArraySubProps, g as MultiSelectDropdownProperty, h as DropdownProperty, i as RichTextProperty, l as DynamicProperties, m as JsonProperty, n as Property, o as assertNotNullOrUndefined, p as DateTimeProperty, r as CustomProperty, s as isNotUndefined, t as InputProperty, u as DynamicPropsValue, v as IAction, y as createAction } from "./input-BHkj_oP5.js";
1
+ import { _ as ErrorHandlingOptionsParam, a as ObjectProperty, c as DynamicProp, d as ArrayProperty, f as ArraySubProps, g as MultiSelectDropdownProperty, h as DropdownProperty, i as RichTextProperty, l as DynamicProperties, m as JsonProperty, n as Property$1, o as assertNotNullOrUndefined, p as DateTimeProperty, r as CustomProperty, s as isNotUndefined, t as InputProperty, u as DynamicPropsValue, v as IAction, y as createAction$1 } from "./input-BHkj_oP5.js";
2
2
  import { A as PropertyType, C as CheckboxProperty, D as DropdownState, E as DropdownOption, O as LongTextProperty, S as NumberProperty, T as StaticMultiSelectDropdownProperty, _ as DateRangeProperty, a as chunk, b as ApFile, c as isNil, f as pickBy, g as DateRangePreset, h as MarkdownVariant, i as camelCase, j as BasePropertySchema, k as ShortTextProperty, l as isString, m as unique, n as tryCatch, p as startCase, s as isEmpty, u as kebabCase, v as DateRangeValue, w as StaticDropdownProperty, x as FileProperty, y as dateRangeUtils } from "./markdown-property-DMfHjEiL.js";
3
3
  import { _ as TriggerStrategy, a as OAuth2AuthorizationMethod, b as AppConnectionType, c as OAuth2Props, d as SecretTextProperty, f as BasicAuthProperty, g as AUTHENTICATION_PROPERTY_NAME, h as spreadIfDefined, i as getAuthPropertyForValue, l as OIDCProperty, n as PieceAuth, o as OAuth2Property, p as BasicAuthPropertyValue, r as PieceAuthProperty, s as OAuth2PropertyValue, t as DEFAULT_CONNECTION_DISPLAY_NAME, u as CustomAuthProperty, v as TriggerTestStrategy, x as OAuth2GrantType, y as WebhookHandshakeStrategy } from "./authentication-o-4CdAPR.js";
4
4
  import * as z from "zod/mini";
@@ -1143,7 +1143,7 @@ var ITrigger = class {
1143
1143
  this.propertyGroups = propertyGroups;
1144
1144
  }
1145
1145
  };
1146
- const createTrigger = (params) => {
1146
+ const createTrigger$1 = (params) => {
1147
1147
  switch (params.type) {
1148
1148
  case "WEBHOOK": return new ITrigger(params.name, params.displayName, params.description, params.requireAuth ?? true, params.props, params.type, params.handshakeConfiguration ?? { strategy: "NONE" }, params.onHandshake ?? (async () => ({ status: 200 })), params.renewConfiguration ?? { strategy: "NONE" }, params.onRenew ?? (async () => Promise.resolve()), params.onEnable, params.onDisable, params.onStart ?? (async () => Promise.resolve()), params.run, params.test ?? (() => Promise.resolve([params.sampleData])), params.sampleData, params.test ? "TEST_FUNCTION" : "SIMULATION", params.outputSchema, params.aiMetadata, params.classification, params.propertyGroups);
1149
1149
  case "POLLING": return new ITrigger(params.name, params.displayName, params.description, params.requireAuth ?? true, params.props, params.type, { strategy: "NONE" }, async () => ({ status: 200 }), { strategy: "NONE" }, async () => Promise.resolve(), params.onEnable, params.onDisable, params.onStart ?? (async () => Promise.resolve()), params.run, params.test ?? (() => Promise.resolve([params.sampleData])), params.sampleData, "TEST_FUNCTION", params.outputSchema, params.aiMetadata, params.classification, params.propertyGroups);
@@ -1587,13 +1587,45 @@ function createMockPollingTriggerContext(params) {
1587
1587
  }
1588
1588
 
1589
1589
  //#endregion
1590
- //#region src/powerhouse/context.ts
1591
- function reactorOf(ctx) {
1592
- const reactor = ctx !== null && typeof ctx === "object" ? ctx.reactor : void 0;
1593
- if (!reactor) throw new Error("ctx.reactor is not available: this piece is not running on a Powerhouse reactor");
1594
- return reactor;
1590
+ //#region src/powerhouse/create.ts
1591
+ function createAction(params) {
1592
+ const { requireReactor, ...rest } = params;
1593
+ return withDeclaration(createAction$1(rest), requireReactor);
1595
1594
  }
1595
+ function createTrigger(params) {
1596
+ const { requireReactor, ...rest } = params;
1597
+ return withDeclaration(createTrigger$1(rest), requireReactor);
1598
+ }
1599
+ function withDeclaration(block, requireReactor) {
1600
+ if (requireReactor === void 0 || requireReactor === false) return block;
1601
+ if (requireReactor !== "read" && requireReactor !== "write") throw new Error(`requireReactor must be "read", "write" or false, got ${JSON.stringify(requireReactor)}`);
1602
+ return Object.assign(block, { requireReactor });
1603
+ }
1604
+
1605
+ //#endregion
1606
+ //#region src/powerhouse/property.ts
1607
+ const Property = {
1608
+ ...Property$1,
1609
+ Dropdown(request) {
1610
+ return Property$1.Dropdown(request);
1611
+ },
1612
+ MultiSelectDropdown(request) {
1613
+ return Property$1.MultiSelectDropdown(request);
1614
+ },
1615
+ DynamicProperties(request) {
1616
+ return Property$1.DynamicProperties(request);
1617
+ }
1618
+ };
1619
+
1620
+ //#endregion
1621
+ //#region src/powerhouse/errors.ts
1622
+ const ReactorJobPendingError = "ReactorJobPendingError";
1623
+ const ReactorJobFailedError = "ReactorJobFailedError";
1624
+ const ReactorActionsFailedError = "ReactorActionsFailedError";
1625
+ const ReactorAccessDeniedError = "ReactorAccessDeniedError";
1626
+ const ReactorRequestClosedError = "ReactorRequestClosedError";
1627
+ const DocumentModelUnavailableError = "DocumentModelUnavailableError";
1596
1628
 
1597
1629
  //#endregion
1598
- export { ACTIVEPIECES_CHAT_TIERS, AGENT_STEP_TEST_TIMEOUT_MS, AGENT_STEP_TIMEOUT_MS, AIProviderModel, AIProviderName, AIProviderWithoutSensitiveData, AI_PROVIDER_CAPABILITIES, ActionBase, ActionClassification, AgentFlowTool, AgentKnowledgeBaseTool, AgentMcpTool, AgentOutputField, AgentOutputFieldType, AgentPieceProps, AgentStepBlock, AgentTaskStatus, AgentTool, AgentToolType, AiMetadata, ApFile, AppConnectionType, ArrayProperty, ArraySubProps, Audience, AzureProviderConfig, BaseAIProviderAuthConfig, BasePropertySchema, BasicAuthProperty, BasicAuthPropertyValue, BedrockProviderAuthConfig, BedrockProviderConfig, ChatFormResponse, CheckboxProperty, CloudflareGatewayProviderConfig, ContentBlockType, ContextVersion, CreateRecordsRequest, CreateTableWebhookRequest, CustomAuthProperty, CustomProperty, DEDUPE_KEY_PROPERTY, DEFAULT_CHAT_TIER_ID, DEFAULT_CONNECTION_DISPLAY_NAME, DateRangePreset, DateRangeProperty, DateRangeValue, DateTimeProperty, DropdownOption, DropdownProperty, DropdownState, DynamicProp, DynamicProperties, DynamicPropsValue, ErrorHandlingOptionsParam, ExecutionToolStatus, ExecutionType, ExportTableResponse, FAIL_PARENT_ON_FAILURE_HEADER, Field, FieldType, FileProperty, FileResponseInterface, Filter, FilterOperator, FlowStatus, FlowTriggerType, GetProviderConfigResponse, HumanInputFormResult, HumanInputFormResultTypes, IAction, ITrigger, InputProperty, InputPropertyMap, JsonProperty, KnowledgeBaseSourceType, LATEST_CONTEXT_VERSION, ListRecordsRequest, ListTablesRequest, LongTextProperty, MINIMUM_SUPPORTED_RELEASE_AFTER_LATEST_CONTEXT_VERSION, MarkdownContentBlock, MarkdownVariant, McpAuthConfig, McpAuthType, McpProperty, McpPropertyType, McpProtocol, McpTrigger, MultiSelectDropdownProperty, NumberProperty, OAuth2AuthorizationMethod, OAuth2GrantType, OAuth2Property, OAuth2PropertyValue, OAuth2Props, OIDCProperty, OPENAI_COMPATIBLE_VENDOR_BASE_URLS, ObjectProperty, OpenAICompatibleProviderConfig, OpenAiCompatibleVendorConfig, PARENT_RUN_ID_HEADER, Piece, PieceAuth, PieceAuthProperty, PieceBase, PieceCategory, PieceMetadata, PieceMetadataModel, PieceMetadataModelSummary, PieceMetadataSummary, PiecePackageInformation, PieceProperty, PiecePropertyMap, PieceServerContextError, PopulatedRecord, Project, ProjectAIProvider, Property, PropertyGroup, PropertyGroupDisplay, PropertyType, RAW_PAYLOAD_HEADER, READ_ONLY_CLASSIFICATIONS, RichTextProperty, SecretTextProperty, SeekPage, ShortTextProperty, StaticDropdownEmptyOption, StaticDropdownProperty, StaticMultiSelectDropdownProperty, StopResponse, StoreScope, TASK_COMPLETION_TOOL_NAME, Table, TableWebhookEventType, ToolCallContentBlock, ToolCallStatus, ToolCallType, TriggerBase, TriggerStrategy, USE_DRAFT_QUERY_PARAM_NAME, UpdateRecordRequest, VertexProviderAuthConfig, VertexProviderConfig, WebhookHandshakeStrategy, WebhookRenewConfiguration, WebhookRenewStrategy, apId, assertNotNullOrUndefined, backwardCompatabilityContextUtils, buildAuthHeaders, camelCase, chunk, createAction, createKeyForFormInput, createMockActionContext, createMockPollingTriggerContext, createPiece, createTrigger, dateRangeUtils, getAuthPropertyForValue, getEffectiveProviderAndModel, isEmpty, isNil, isNotUndefined, isPieceServerContextError, isReadOnlyClassification, isString, kebabCase, mcpToolNameUtils, normalizeToolOutputToExecuteResponse, pickBy, piecePropertiesUtils, pieceTranslation, reactorOf, splitCloudflareGatewayModelId, spreadIfDefined, startCase, tryCatch, unique };
1630
+ export { ACTIVEPIECES_CHAT_TIERS, AGENT_STEP_TEST_TIMEOUT_MS, AGENT_STEP_TIMEOUT_MS, AIProviderModel, AIProviderName, AIProviderWithoutSensitiveData, AI_PROVIDER_CAPABILITIES, ActionBase, ActionClassification, AgentFlowTool, AgentKnowledgeBaseTool, AgentMcpTool, AgentOutputField, AgentOutputFieldType, AgentPieceProps, AgentStepBlock, AgentTaskStatus, AgentTool, AgentToolType, AiMetadata, ApFile, AppConnectionType, ArrayProperty, ArraySubProps, Audience, AzureProviderConfig, BaseAIProviderAuthConfig, BasePropertySchema, BasicAuthProperty, BasicAuthPropertyValue, BedrockProviderAuthConfig, BedrockProviderConfig, ChatFormResponse, CheckboxProperty, CloudflareGatewayProviderConfig, ContentBlockType, ContextVersion, CreateRecordsRequest, CreateTableWebhookRequest, CustomAuthProperty, CustomProperty, DEDUPE_KEY_PROPERTY, DEFAULT_CHAT_TIER_ID, DEFAULT_CONNECTION_DISPLAY_NAME, DateRangePreset, DateRangeProperty, DateRangeValue, DateTimeProperty, DocumentModelUnavailableError, DropdownOption, DropdownProperty, DropdownState, DynamicProp, DynamicProperties, DynamicPropsValue, ErrorHandlingOptionsParam, ExecutionToolStatus, ExecutionType, ExportTableResponse, FAIL_PARENT_ON_FAILURE_HEADER, Field, FieldType, FileProperty, FileResponseInterface, Filter, FilterOperator, FlowStatus, FlowTriggerType, GetProviderConfigResponse, HumanInputFormResult, HumanInputFormResultTypes, IAction, ITrigger, InputProperty, InputPropertyMap, JsonProperty, KnowledgeBaseSourceType, LATEST_CONTEXT_VERSION, ListRecordsRequest, ListTablesRequest, LongTextProperty, MINIMUM_SUPPORTED_RELEASE_AFTER_LATEST_CONTEXT_VERSION, MarkdownContentBlock, MarkdownVariant, McpAuthConfig, McpAuthType, McpProperty, McpPropertyType, McpProtocol, McpTrigger, MultiSelectDropdownProperty, NumberProperty, OAuth2AuthorizationMethod, OAuth2GrantType, OAuth2Property, OAuth2PropertyValue, OAuth2Props, OIDCProperty, OPENAI_COMPATIBLE_VENDOR_BASE_URLS, ObjectProperty, OpenAICompatibleProviderConfig, OpenAiCompatibleVendorConfig, PARENT_RUN_ID_HEADER, Piece, PieceAuth, PieceAuthProperty, PieceBase, PieceCategory, PieceMetadata, PieceMetadataModel, PieceMetadataModelSummary, PieceMetadataSummary, PiecePackageInformation, PieceProperty, PiecePropertyMap, PieceServerContextError, PopulatedRecord, Project, ProjectAIProvider, Property, PropertyGroup, PropertyGroupDisplay, PropertyType, RAW_PAYLOAD_HEADER, READ_ONLY_CLASSIFICATIONS, ReactorAccessDeniedError, ReactorActionsFailedError, ReactorJobFailedError, ReactorJobPendingError, ReactorRequestClosedError, RichTextProperty, SecretTextProperty, SeekPage, ShortTextProperty, StaticDropdownEmptyOption, StaticDropdownProperty, StaticMultiSelectDropdownProperty, StopResponse, StoreScope, TASK_COMPLETION_TOOL_NAME, Table, TableWebhookEventType, ToolCallContentBlock, ToolCallStatus, ToolCallType, TriggerBase, TriggerStrategy, USE_DRAFT_QUERY_PARAM_NAME, UpdateRecordRequest, VertexProviderAuthConfig, VertexProviderConfig, WebhookHandshakeStrategy, WebhookRenewConfiguration, WebhookRenewStrategy, apId, assertNotNullOrUndefined, backwardCompatabilityContextUtils, buildAuthHeaders, camelCase, chunk, createAction, createKeyForFormInput, createMockActionContext, createMockPollingTriggerContext, createPiece, createTrigger, dateRangeUtils, getAuthPropertyForValue, getEffectiveProviderAndModel, isEmpty, isNil, isNotUndefined, isPieceServerContextError, isReadOnlyClassification, isString, kebabCase, mcpToolNameUtils, normalizeToolOutputToExecuteResponse, pickBy, piecePropertiesUtils, pieceTranslation, splitCloudflareGatewayModelId, spreadIfDefined, startCase, tryCatch, unique };
1599
1631
  //# sourceMappingURL=index.js.map