@powerhousedao/pieces-framework 6.2.3-dev.80 → 6.2.3-dev.81

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,7 +1,8 @@
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-DlYHJrZw.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-C1fMWjxn.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-CmHctrqT.js";
2
+ import { $ as ArrayProperty, $t as BasicAuthConnectionValue, A as TriggerHookContext, At as SecretTextProperty, B as InputProperty, Bt as SeekPage, C as StepContext, Ct as OAuth2PropertyValue, D as StoreScope, Dt as StaticMultiSelectDropdownProperty, E as Store, Et as StaticDropdownProperty, F as InputPropertyMap, Ft as ApStreamingFile, G as ObjectProperty, Gt as MarkdownVariant, H as CustomProperty, Ht as EventPayload, I as PiecePropValueSchema, It as FileProperty, J as DynamicPropsValue, K as DynamicProp, Kt as ExecutionType, L as PieceProperty, Lt as PropertyType, M as WaitForWaitpointHook, Mt as ShortTextProperty, N as isPieceServerContextError, Nt as BasePropertySchema, O as TagsManager, Ot as DropdownOption, P as ExecutePropsResult, Pt as ApFile, Q as dateRangeUtils, Qt as AppConnectionValue, R as PiecePropertyMap, Rt as PopulatedFlowSummary, S as SetScheduleRequest, St as OAuth2Property, T as StopHookParams, Tt as StaticDropdownDisplay, U as CustomPropertyCodeFunctionParams, Ut as ParseEventResponse, V as Property$1, Vt as apId, W as RichTextProperty, Wt as ResumePayload, X as DateRangeProperty, Xt as WebhookHandshakeStrategy, Y as DateRangePreset, Yt as WebhookHandshakeConfiguration, Z as DateRangeValue, Zt as AppConnectionType, _ as PropertyContext$1, _t as CheckboxProperty, a as ConnectionsManager, at as MultiSelectDropdownProperty, b as RunContext, bt as BasicAuthPropertyValue, c as CreateWaitpointResult, ct as PieceAuth, d as ListFlowsContextParams, dt as OIDCAuthProps, en as CustomAuthConnectionValue, et as ArraySubProps, f as OnStartContext, ft as OIDCProperty, g as PieceServerContextError, gt as MarkDownProperty, h as PauseHookParams, ht as CustomAuthRefresh, i as BaseContext, in as SecretTextConnectionValue, it as DropdownProperty, j as UploadedFile, jt as LongTextProperty, k as TestOrRunHookContext, kt as DropdownState, l as FilesService, lt as PieceAuthProperty, m as PauseHook, mt as CustomAuthProps, n as AppConnectionValueForAuthProperty, nn as OAuth2ConnectionValueWithApp, nt as ColorProperty, o as CreateWaitpointHook, ot as DEFAULT_CONNECTION_DISPLAY_NAME, p as OutputContext, pt as CustomAuthProperty, q as DynamicProperties, qt as TriggerStrategy, r as AuthValidationServerContext, rn as OAuth2GrantType, rt as JsonProperty, s as CreateWaitpointParams, st as ExtractPieceAuthPropertyTypeForMethods, t as ActionContext, tn as NoAuthConnectionValue, tt as DateTimeProperty, u as FlowsContext, ut as getAuthPropertyForValue, v as RespondHook, vt as NumberProperty, w as StopHook, wt as OAuth2Props, x as ServerContext, xt as OAuth2AuthorizationMethod, y as RespondHookParams, yt as BasicAuthProperty, z as StaticPropsValue, zt as Cursor } from "./index-DABWPk4W.js";
3
3
  import * as z from "zod/mini";
4
- import { IDriveClient, IReactorClient } from "@powerhousedao/reactor";
4
+ import { IDriveClient, IDriveWriteClient, IReactorClient, IReactorWriteClient, JobInfo } from "@powerhousedao/reactor";
5
+ import { Action as Action$1 } from "@powerhousedao/shared/document-model";
5
6
  //#region upstream/core-utils/lib/utils.d.ts
6
7
  export declare function isString(str: unknown): str is string;
7
8
  export declare function isNil<T>(value: T | null | undefined): value is null | undefined;
@@ -53,6 +54,16 @@ export declare enum AIProviderName {
53
54
  MOONSHOT = "moonshot"
54
55
  }
55
56
  //#endregion
57
+ //#region upstream/core-utils/lib/ai-step.d.ts
58
+ export declare enum AiStepAction {
59
+ ASK_AI = "ASK_AI",
60
+ SUMMARIZE_TEXT = "SUMMARIZE_TEXT",
61
+ CLASSIFY_TEXT = "CLASSIFY_TEXT",
62
+ EXTRACT_STRUCTURED_DATA = "EXTRACT_STRUCTURED_DATA",
63
+ GENERATE_IMAGE = "GENERATE_IMAGE",
64
+ ROUTE = "ROUTE"
65
+ }
66
+ //#endregion
56
67
  //#region upstream/core-piece-types/lib/agents.d.ts
57
68
  export declare const TASK_COMPLETION_TOOL_NAME = "updateTaskStatus";
58
69
  export declare enum AgentToolType {
@@ -413,6 +424,7 @@ export type VertexProviderAuthConfig = z.infer<typeof VertexProviderAuthConfig>;
413
424
  export declare const BedrockProviderAuthConfig: z.ZodMiniObject<{
414
425
  accessKeyId: z.ZodMiniString<string>;
415
426
  secretAccessKey: z.ZodMiniString<string>;
427
+ sessionToken: z.ZodMiniOptional<z.ZodMiniString<string>>;
416
428
  }, z.core.$strip>;
417
429
  export type BedrockProviderAuthConfig = z.infer<typeof BedrockProviderAuthConfig>;
418
430
  export declare const OpenAICompatibleProviderConfig: z.ZodMiniObject<{
@@ -583,6 +595,7 @@ export declare const GetProviderConfigResponse: z.ZodMiniObject<{
583
595
  }, z.core.$strip>, z.ZodMiniObject<{
584
596
  accessKeyId: z.ZodMiniString<string>;
585
597
  secretAccessKey: z.ZodMiniString<string>;
598
+ sessionToken: z.ZodMiniOptional<z.ZodMiniString<string>>;
586
599
  }, z.core.$strip>, z.ZodMiniObject<{
587
600
  serviceAccountJson: z.ZodMiniString<string>;
588
601
  }, z.core.$strip>, z.ZodMiniObject<{
@@ -618,23 +631,33 @@ export declare const ACTIVEPIECES_CHAT_TIERS: readonly [{
618
631
  readonly modelId: "anthropic/claude-haiku-4.5";
619
632
  readonly nativeModelId: "claude-haiku-4-5";
620
633
  readonly thinkingBudget: 5000;
621
- readonly creditWeight: 2;
622
634
  }, {
623
635
  readonly id: "smart";
624
636
  readonly label: "Expert";
625
637
  readonly modelId: "anthropic/claude-sonnet-4.6";
626
638
  readonly nativeModelId: "claude-sonnet-4-6";
627
639
  readonly thinkingBudget: 10000;
628
- readonly creditWeight: 10;
629
640
  }, {
630
641
  readonly id: "premium";
631
642
  readonly label: "Heavy";
632
643
  readonly modelId: "anthropic/claude-opus-4.8";
633
644
  readonly nativeModelId: "claude-opus-4-7";
634
645
  readonly thinkingBudget: 20000;
635
- readonly creditWeight: 20;
636
646
  }];
637
647
  export declare const DEFAULT_CHAT_TIER_ID: "smart";
648
+ export declare const ACTIVEPIECES_IMAGE_TIERS: readonly [{
649
+ readonly id: "fast";
650
+ readonly label: "Fast";
651
+ readonly modelId: "google/gemini-3.1-flash-lite-image";
652
+ }, {
653
+ readonly id: "smart";
654
+ readonly label: "Expert";
655
+ readonly modelId: "google/gemini-3.1-flash-image";
656
+ }, {
657
+ readonly id: "premium";
658
+ readonly label: "Heavy";
659
+ readonly modelId: "google/gemini-3-pro-image";
660
+ }];
638
661
  export declare const AI_PROVIDER_CAPABILITIES: Record<AIProviderName, AIProviderCapabilities>;
639
662
  type AIWebSearchMode = "native" | "plugin";
640
663
  type OpenAiCompatibleVendor = AIProviderName.XAI | AIProviderName.DEEPSEEK | AIProviderName.ZAI | AIProviderName.QWEN | AIProviderName.MINIMAX | AIProviderName.MOONSHOT;
@@ -1073,6 +1096,10 @@ type TranslatePieceParams<T extends PieceMetadataModelSummary | PieceMetadataMod
1073
1096
  //#region upstream/framework/lib/test/index.d.ts
1074
1097
  export declare function createMockActionContext<Props extends InputPropertyMap>(params: {
1075
1098
  propsValue: StaticPropsValue<Props>;
1099
+ resumePayload?: ResumePayload;
1100
+ canPause?: boolean;
1101
+ onCreateWaitpoint?: (waitpoint: CreateWaitpointParams) => void;
1102
+ onWaitForWaitpoint?: (waitpointId: string) => void;
1076
1103
  }): ActionContext<undefined, Props>;
1077
1104
  export declare function createMockPollingTriggerContext<Props extends InputPropertyMap>(params: {
1078
1105
  propsValue: StaticPropsValue<Props>;
@@ -1084,7 +1111,10 @@ type RequireReactor = "read" | "write";
1084
1111
  type ReactorDeclaration = RequireReactor | false;
1085
1112
  type ReadMethods = "get" | "resolveIdOrSlug" | "find" | "getOperations" | "getOutgoingRelationships" | "getIncomingRelationships" | "getOutgoingRelationshipEdges" | "getIncomingRelationshipEdges" | "getDocumentModelModules" | "getDocumentModelModule" | "getDocumentModelModuleForDocument";
1086
1113
  type WriteMethods = "newDocument" | "create" | "createEmpty" | "execute" | "executeAsync" | "deleteDocument";
1087
- type RefusedMethods = "createDocumentInDrive" | "executeBatch" | "rename" | "setPreferredEditor" | "addRelationship" | "updateRelationship" | "removeRelationship" | "moveRelationship" | "upgradeDocument" | "deleteDocuments" | "createAsync" | "createEmptyAsync" | "getJobStatus" | "waitForJob" | "subscribe" | "loadBatch" | "evaluateActions" | "isDocumentIdTaken" | "isServed" | "getCreateSignaturePolicy" | "getCreateProtocolVersions" | "read" | "write" | "getMany";
1114
+ type RefusedMethods = "createDocumentInDrive" | "executeBatch" | "rename" | "setPreferredEditor" | "addRelationship" | "updateRelationship" | "removeRelationship" | "moveRelationship" | "upgradeDocument" | "deleteDocuments" | "createAsync" | "createEmptyAsync" | "getJobStatus" | "waitForJob" | "subscribe" | "loadBatch" | "evaluateActions" | "isDocumentIdTaken" | "isServed" | "getCreateSignaturePolicy" | "getCreateProtocolVersions" | "read" | "getMany";
1115
+ type WriteHalfMethods = "create" | "createEmpty" | "execute" | "deleteDocument";
1116
+ type DriveWriteHalfMethods = "addFile" | "addFolder";
1117
+ type RefusedWriteHalfMethods = "isDocumentIdTaken" | "describe" | "evaluateActions" | "upgradeDocument" | "executeBatch" | "rename" | "setPreferredEditor" | "addRelationship" | "updateRelationship" | "removeRelationship" | "moveRelationship" | "deleteDocuments" | "loadBatch";
1088
1118
  type DriveReadMethods = "getNode" | "listNodes";
1089
1119
  type DriveWriteMethods = "addFile" | "addFolder";
1090
1120
  type RefusedDriveMethods = "create" | "removeNode" | "renameNode" | "moveNode" | "copyNode" | "setPreferredEditorOnNode";
@@ -1114,8 +1144,12 @@ interface IndexQueryMethods {
1114
1144
  type ReactorReadClient = Pick<IReactorClient, ReadMethods> & IndexQueryMethods & {
1115
1145
  readonly drives: Pick<IDriveClient, DriveReadMethods>;
1116
1146
  };
1147
+ type ReactorWriteClient = Pick<IReactorWriteClient, WriteHalfMethods> & {
1148
+ readonly drives: Pick<IDriveWriteClient, DriveWriteHalfMethods>;
1149
+ };
1117
1150
  type ReactorClient = Pick<IReactorClient, ReadMethods | WriteMethods> & IndexQueryMethods & {
1118
1151
  readonly drives: Pick<IDriveClient, DriveReadMethods | DriveWriteMethods>;
1152
+ readonly write: ReactorWriteClient;
1119
1153
  };
1120
1154
  type ReactorClientFor<R extends RequireReactor> = R extends "write" ? ReactorClient : ReactorReadClient;
1121
1155
  type ReactorContext<R extends ReactorDeclaration | undefined> = [R] extends [RequireReactor] ? {
@@ -1129,11 +1163,22 @@ type WithReactorHooks<Params, Hooks extends PropertyKey, R extends ReactorDeclar
1129
1163
  requireReactor?: R;
1130
1164
  };
1131
1165
  type UpstreamActionParams<PieceAuth extends AnyPieceAuth$1, ActionProps extends InputPropertyMap> = Parameters<typeof createAction$1<PieceAuth, ActionProps>>[0];
1132
- type CreateActionParams<PieceAuth extends AnyPieceAuth$1, ActionProps extends InputPropertyMap, R extends ReactorDeclaration | undefined> = WithReactorHooks<UpstreamActionParams<PieceAuth, ActionProps>, "run" | "test", R>;
1166
+ interface ActionRetryDefault {
1167
+ maxAttempts: number;
1168
+ backoff?: "FIXED" | "EXPONENTIAL";
1169
+ initialDelaySeconds?: number;
1170
+ maxDelaySeconds?: number;
1171
+ retryOn?: string[];
1172
+ }
1173
+ interface ActionDefaults {
1174
+ defaultTimeoutSeconds?: number;
1175
+ defaultRetry?: ActionRetryDefault;
1176
+ }
1177
+ type CreateActionParams<PieceAuth extends AnyPieceAuth$1, ActionProps extends InputPropertyMap, R extends ReactorDeclaration | undefined> = WithReactorHooks<UpstreamActionParams<PieceAuth, ActionProps>, "run" | "test", R> & ActionDefaults;
1133
1178
  type Declared<T, R extends ReactorDeclaration | undefined> = T & {
1134
1179
  readonly requireReactor?: Exclude<R, false>;
1135
1180
  };
1136
- 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>;
1181
+ 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> & Readonly<ActionDefaults>;
1137
1182
  type UpstreamTriggerParams<TS extends TriggerStrategy, PieceAuth extends AnyPieceAuth$1, TriggerProps extends InputPropertyMap> = Parameters<typeof createTrigger$1<TS, PieceAuth, TriggerProps>>[0];
1138
1183
  type TriggerHooks = "onEnable" | "onDisable" | "run" | "test" | "onStart" | "onHandshake" | "onRenew";
1139
1184
  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"> & {
@@ -1335,6 +1380,9 @@ export declare const ReactorAccessDeniedError = "ReactorAccessDeniedError";
1335
1380
  export declare const ReactorRequestClosedError = "ReactorRequestClosedError";
1336
1381
  export declare const DocumentModelUnavailableError = "DocumentModelUnavailableError";
1337
1382
  type ReactorErrorName = typeof ReactorJobPendingError | typeof ReactorJobFailedError | typeof ReactorActionsFailedError | typeof ReactorAccessDeniedError | typeof ReactorRequestClosedError | typeof DocumentModelUnavailableError;
1383
+ export declare const DENIED_ACTION_INDEXES = "denied action indexes: ";
1384
+ export declare function deniedActionIndexes(error: unknown): number[] | undefined;
1385
+ export declare function assertActionsApplied(job: Pick<JobInfo, "result">, actions?: readonly Pick<Action$1, "id" | "type">[]): void;
1338
1386
  //#endregion
1339
1387
  //#region src/powerhouse/package-piece.d.ts
1340
1388
  interface PackagePiece {
@@ -1343,6 +1391,6 @@ interface PackagePiece {
1343
1391
  entry?: string;
1344
1392
  }
1345
1393
  //#endregion
1346
- 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, type DriveReadMethods, type DriveWriteMethods, DropdownOption, DropdownProperty, DropdownState, DynamicProp, DynamicProperties, DynamicPropsValue, ErrorHandlingOptionsParam, ExecutePropsResult, type ExecuteToolResponse, ExecutionType, type ExtractPieceAuthPropertyTypeForMethods, type FieldFormat, FileProperty, FilesService, FlowsContext, I18nForPiece, IAction, ITrigger, type IndexQueryMethods, type IndexQueryRequest, type IndexQueryResult, 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 RefusedDriveMethods, 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 };
1394
+ export { Action, ActionBase, ActionClassification, ActionContext, type ActionDefaults, type ActionRetryDefault, 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, type DriveReadMethods, type DriveWriteHalfMethods, type DriveWriteMethods, DropdownOption, DropdownProperty, DropdownState, DynamicProp, DynamicProperties, DynamicPropsValue, ErrorHandlingOptionsParam, ExecutePropsResult, type ExecuteToolResponse, ExecutionType, type ExtractPieceAuthPropertyTypeForMethods, type FieldFormat, FileProperty, FilesService, FlowsContext, I18nForPiece, IAction, ITrigger, type IndexQueryMethods, type IndexQueryRequest, type IndexQueryResult, 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 ReactorWriteClient, type ReadMethods, type RefusedDriveMethods, type RefusedMethods, type RefusedWriteHalfMethods, 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, UploadedFile, WaitForWaitpointHook, type WebhookHandshakeConfiguration, WebhookHandshakeStrategy, WebhookRenewConfiguration, WebhookRenewStrategy, WebhookResponse, type WriteHalfMethods, type WriteMethods, apId, backwardCompatabilityContextUtils, dateRangeUtils, getAuthPropertyForValue, isPieceServerContextError, isReadOnlyClassification };
1347
1395
  export {};
1348
1396
  //# 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-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,y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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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"}
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-utils/lib/ai-step.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,QA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N,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;;;;qBChEhD;qBAEA;qBAEA;qBAEA;qBAEA;qBAEA;KAED,0BACD,gCACA,+BACA,mCACA,kCACA,mCACA;qBAIE;wBAEG,oBAAoB;wBAkBpB,qBACd,KAAK,KAAK,oBACV,mBAAmB,KAAK;;;UChDT;EACf;EAGA;EACA"}
package/dist/index.js CHANGED
@@ -92,6 +92,7 @@ function NullableEnum(enumObj) {
92
92
  return z.optional(z.nullable(z.enum(enumObj)));
93
93
  }
94
94
  const OptionalBooleanFromQuery = z.pipe(z.transform((val) => val === "true" || val === true ? true : val === "false" || val === false ? false : void 0), z.optional(z.boolean()));
95
+ const OptionalIsoDateTimeQuery = z.optional(z.iso.datetime({ offset: true }).check(z.refine((val) => val.slice(0, 4) !== "0000")));
95
96
  const OptionalArrayFromQuery = (schema) => z.pipe(z.transform((val) => Array.isArray(val) ? val : val !== void 0 ? [val] : void 0), z.optional(z.array(schema)));
96
97
 
97
98
  //#endregion
@@ -141,6 +142,18 @@ let AIProviderName = /* @__PURE__ */ function(AIProviderName) {
141
142
  return AIProviderName;
142
143
  }({});
143
144
 
145
+ //#endregion
146
+ //#region upstream/core-utils/lib/ai-step.ts
147
+ let AiStepAction = /* @__PURE__ */ function(AiStepAction) {
148
+ AiStepAction["ASK_AI"] = "ASK_AI";
149
+ AiStepAction["SUMMARIZE_TEXT"] = "SUMMARIZE_TEXT";
150
+ AiStepAction["CLASSIFY_TEXT"] = "CLASSIFY_TEXT";
151
+ AiStepAction["EXTRACT_STRUCTURED_DATA"] = "EXTRACT_STRUCTURED_DATA";
152
+ AiStepAction["GENERATE_IMAGE"] = "GENERATE_IMAGE";
153
+ AiStepAction["ROUTE"] = "ROUTE";
154
+ return AiStepAction;
155
+ }({});
156
+
144
157
  //#endregion
145
158
  //#region upstream/core-piece-types/lib/agents.ts
146
159
  const TASK_COMPLETION_TOOL_NAME = "updateTaskStatus";
@@ -428,7 +441,8 @@ const MistralProviderAuthConfig = BaseAIProviderAuthConfig;
428
441
  const VertexProviderAuthConfig = z.object({ serviceAccountJson: z.string().check(z.minLength(1)) });
429
442
  const BedrockProviderAuthConfig = z.object({
430
443
  accessKeyId: z.string().check(z.minLength(1)),
431
- secretAccessKey: z.string().check(z.minLength(1))
444
+ secretAccessKey: z.string().check(z.minLength(1)),
445
+ sessionToken: z.optional(z.string())
432
446
  });
433
447
  const AnthropicProviderConfig = z.object({});
434
448
  const ActivePiecesProviderConfig = z.object({});
@@ -674,27 +688,41 @@ const ACTIVEPIECES_CHAT_TIERS = [
674
688
  label: "Fast",
675
689
  modelId: "anthropic/claude-haiku-4.5",
676
690
  nativeModelId: "claude-haiku-4-5",
677
- thinkingBudget: 5e3,
678
- creditWeight: 2
691
+ thinkingBudget: 5e3
679
692
  },
680
693
  {
681
694
  id: "smart",
682
695
  label: "Expert",
683
696
  modelId: "anthropic/claude-sonnet-4.6",
684
697
  nativeModelId: "claude-sonnet-4-6",
685
- thinkingBudget: 1e4,
686
- creditWeight: 10
698
+ thinkingBudget: 1e4
687
699
  },
688
700
  {
689
701
  id: "premium",
690
702
  label: "Heavy",
691
703
  modelId: "anthropic/claude-opus-4.8",
692
704
  nativeModelId: "claude-opus-4-7",
693
- thinkingBudget: 2e4,
694
- creditWeight: 20
705
+ thinkingBudget: 2e4
695
706
  }
696
707
  ];
697
708
  const DEFAULT_CHAT_TIER_ID = "smart";
709
+ const ACTIVEPIECES_IMAGE_TIERS = [
710
+ {
711
+ id: "fast",
712
+ label: "Fast",
713
+ modelId: "google/gemini-3.1-flash-lite-image"
714
+ },
715
+ {
716
+ id: "smart",
717
+ label: "Expert",
718
+ modelId: "google/gemini-3.1-flash-image"
719
+ },
720
+ {
721
+ id: "premium",
722
+ label: "Heavy",
723
+ modelId: "google/gemini-3-pro-image"
724
+ }
725
+ ];
698
726
  const AI_PROVIDER_CAPABILITIES = {
699
727
  ["openai"]: buildProviderCapabilities("openai"),
700
728
  ["anthropic"]: buildProviderCapabilities("anthropic"),
@@ -1534,7 +1562,8 @@ const readLocaleFile = async (locale, pieceOutputPath) => {
1534
1562
  //#region upstream/framework/lib/test/index.ts
1535
1563
  function createMockActionContext(params) {
1536
1564
  return {
1537
- executionType: "BEGIN",
1565
+ executionType: params.resumePayload ? "RESUME" : "BEGIN",
1566
+ resumePayload: params.resumePayload,
1538
1567
  auth: void 0,
1539
1568
  propsValue: params.propsValue,
1540
1569
  store: {
@@ -1549,14 +1578,32 @@ function createMockActionContext(params) {
1549
1578
  publicUrl: "http://localhost:4200",
1550
1579
  token: "test-token"
1551
1580
  },
1552
- files: { write: async () => "test-file-url" },
1581
+ files: {
1582
+ write: async () => "test-file-url",
1583
+ upload: async () => ({
1584
+ id: "test-file-id",
1585
+ url: "test-file-url"
1586
+ })
1587
+ },
1553
1588
  output: { update: async () => {} },
1554
1589
  agent: { tools: async () => ({}) },
1555
1590
  run: {
1556
1591
  id: "test-run-id",
1592
+ canPause: params.canPause ?? true,
1557
1593
  stop: () => {},
1558
1594
  pause: () => {},
1559
- respond: () => {}
1595
+ respond: () => {},
1596
+ createWaitpoint: async (waitpoint) => {
1597
+ params.onCreateWaitpoint?.(waitpoint);
1598
+ return {
1599
+ id: "test-waitpoint-id",
1600
+ resumeUrl: "http://localhost:3000/resume",
1601
+ buildResumeUrl: () => "http://localhost:3000/resume"
1602
+ };
1603
+ },
1604
+ waitForWaitpoint: (waitpointId) => {
1605
+ params.onWaitForWaitpoint?.(waitpointId);
1606
+ }
1560
1607
  },
1561
1608
  project: {
1562
1609
  id: "test-project-id",
@@ -1589,8 +1636,23 @@ function createMockPollingTriggerContext(params) {
1589
1636
  //#endregion
1590
1637
  //#region src/powerhouse/create.ts
1591
1638
  function createAction(params) {
1592
- const { requireReactor, ...rest } = params;
1593
- return withDeclaration(createAction$1(rest), requireReactor);
1639
+ const { requireReactor, defaultTimeoutSeconds, defaultRetry, ...rest } = params;
1640
+ return withDefaults(withDeclaration(createAction$1(rest), requireReactor), {
1641
+ defaultTimeoutSeconds,
1642
+ defaultRetry
1643
+ });
1644
+ }
1645
+ function withDefaults(action, { defaultTimeoutSeconds, defaultRetry }) {
1646
+ if (defaultTimeoutSeconds !== void 0) {
1647
+ if (!Number.isFinite(defaultTimeoutSeconds) || defaultTimeoutSeconds <= 0) throw new Error(`defaultTimeoutSeconds must be a positive number, got ${JSON.stringify(defaultTimeoutSeconds)}`);
1648
+ Object.assign(action, { defaultTimeoutSeconds });
1649
+ }
1650
+ if (defaultRetry !== void 0) {
1651
+ const attempts = defaultRetry.maxAttempts;
1652
+ if (!Number.isInteger(attempts) || attempts < 1) throw new Error(`defaultRetry.maxAttempts must be a positive integer, got ${JSON.stringify(attempts)}`);
1653
+ Object.assign(action, { defaultRetry });
1654
+ }
1655
+ return action;
1594
1656
  }
1595
1657
  function createTrigger(params) {
1596
1658
  const { requireReactor, ...rest } = params;
@@ -1625,7 +1687,38 @@ const ReactorActionsFailedError = "ReactorActionsFailedError";
1625
1687
  const ReactorAccessDeniedError = "ReactorAccessDeniedError";
1626
1688
  const ReactorRequestClosedError = "ReactorRequestClosedError";
1627
1689
  const DocumentModelUnavailableError = "DocumentModelUnavailableError";
1690
+ const DENIED_ACTION_INDEXES = "denied action indexes: ";
1691
+ function deniedActionIndexes(error) {
1692
+ const { name, message } = error ?? {};
1693
+ if (name !== "ReactorAccessDeniedError" || typeof message !== "string") return;
1694
+ const at = message.lastIndexOf(DENIED_ACTION_INDEXES);
1695
+ if (at < 0) return void 0;
1696
+ const match = /^\[(\d+(?:,\d+)*)\]$/.exec(message.slice(at + 23));
1697
+ return match ? match[1].split(",").map(Number) : void 0;
1698
+ }
1699
+ function assertActionsApplied(job, actions) {
1700
+ const outcomes = job.result?.actions ?? [];
1701
+ const byId = new Map(outcomes.map((outcome) => [outcome.actionId, outcome]));
1702
+ const failed = (actions?.map((action) => ({
1703
+ id: action.id,
1704
+ label: action.type
1705
+ })) ?? outcomes.map(({ actionId }) => ({
1706
+ id: actionId,
1707
+ label: actionId
1708
+ }))).flatMap(({ id, label }) => {
1709
+ const outcome = byId.get(id);
1710
+ if (!outcome) return [`Action ${label} produced no operation`];
1711
+ if (outcome.kind === "reducer-error") return [`Action ${label} failed: ${outcome.message}`];
1712
+ if (outcome.kind === "denied") return [`Action ${label} was denied: ${outcome.reason}`];
1713
+ return [];
1714
+ });
1715
+ if (failed.length > 0) {
1716
+ const error = new Error(failed.join("; "));
1717
+ error.name = ReactorActionsFailedError;
1718
+ throw error;
1719
+ }
1720
+ }
1628
1721
 
1629
1722
  //#endregion
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 };
1723
+ export { ACTIVEPIECES_CHAT_TIERS, ACTIVEPIECES_IMAGE_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, AiStepAction, 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, DENIED_ACTION_INDEXES, 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, assertActionsApplied, assertNotNullOrUndefined, backwardCompatabilityContextUtils, buildAuthHeaders, camelCase, chunk, createAction, createKeyForFormInput, createMockActionContext, createMockPollingTriggerContext, createPiece, createTrigger, dateRangeUtils, deniedActionIndexes, getAuthPropertyForValue, getEffectiveProviderAndModel, isEmpty, isNil, isNotUndefined, isPieceServerContextError, isReadOnlyClassification, isString, kebabCase, mcpToolNameUtils, normalizeToolOutputToExecuteResponse, pickBy, piecePropertiesUtils, pieceTranslation, splitCloudflareGatewayModelId, spreadIfDefined, startCase, tryCatch, unique };
1631
1724
  //# sourceMappingURL=index.js.map