@powerhousedao/pieces-framework 6.2.3 → 6.3.0-dev.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,6 +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, 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-C-O5Jgbl.js";
2
+ import { $ as ArrayProperty, $t as AppConnectionValue, A as TriggerHookContext, At as DropdownState, B as InputProperty, Bt as Cursor, C as StepContext, Ct as OAuth2Property, D as StoreScope, Dt as StaticDropdownProperty, E as Store, Et as StaticDropdownDisplay, F as InputPropertyMap, Ft as ApFile, G as ObjectProperty, Gt as ResumePayload, H as CustomProperty, Ht as apId, I as PiecePropValueSchema, It as ApStreamingFile, J as DynamicPropsValue, Jt as TriggerStrategy, K as DynamicProp, Kt as MarkdownVariant, L as PieceProperty, Lt as FileProperty, M as WaitForWaitpointHook, Mt as LongTextProperty, N as isPieceServerContextError, Nt as ShortTextProperty, O as TagsManager, Ot as StaticMultiSelectDropdownProperty, P as ExecutePropsResult, Pt as BasePropertySchema, Q as dateRangeUtils, Qt as AppConnectionType, R as PiecePropertyMap, Rt as PropertyType, S as SetScheduleRequest, St as OAuth2Discovery, T as StopHookParams, Tt as OAuth2Props, U as CustomPropertyCodeFunctionParams, Ut as EventPayload, V as Property$1, Vt as SeekPage, W as RichTextProperty, Wt as ParseEventResponse, X as DateRangeProperty, Xt as WebhookHandshakeConfiguration, Y as DateRangePreset, Z as DateRangeValue, Zt as WebhookHandshakeStrategy, _ as PropertyContext$1, _t as CheckboxProperty, a as ConnectionsManager, an as SecretTextConnectionValue, at as MultiSelectDropdownProperty, b as RunContext, bt as BasicAuthPropertyValue, c as CreateWaitpointResult, ct as PieceAuth, d as ListFlowsContextParams, dt as OIDCAuthProps, en as BasicAuthConnectionValue, 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 OAuth2GrantType, it as DropdownProperty, j as UploadedFile, jt as SecretTextProperty, k as TestOrRunHookContext, kt as DropdownOption, l as FilesService, lt as PieceAuthProperty, m as PauseHook, mt as CustomAuthProps, n as AppConnectionValueForAuthProperty, nn as NoAuthConnectionValue, nt as ColorProperty, o as CreateWaitpointHook, ot as DEFAULT_CONNECTION_DISPLAY_NAME, p as OutputContext, pt as CustomAuthProperty, q as DynamicProperties, qt as ExecutionType, r as AuthValidationServerContext, rn as OAuth2ConnectionValueWithApp, rt as JsonProperty, s as CreateWaitpointParams, st as ExtractPieceAuthPropertyTypeForMethods, t as ActionContext, tn as CustomAuthConnectionValue, tt as DateTimeProperty, u as FlowsContext, ut as getAuthPropertyForValue, v as RespondHook, vt as NumberProperty, w as StopHook, wt as OAuth2PropertyValue, x as ServerContext, xt as OAuth2AuthorizationMethod, y as RespondHookParams, yt as BasicAuthProperty, z as StaticPropsValue, zt as PopulatedFlowSummary } from "./index-DZ0aWCvr.js";
3
3
  import * as z from "zod/mini";
4
+ import { IDriveClient, IDriveWriteClient, IReactorClient, IReactorWriteClient, JobInfo } from "@powerhousedao/reactor";
5
+ import { Action as Action$1 } from "@powerhousedao/shared/document-model";
4
6
  //#region upstream/core-utils/lib/utils.d.ts
5
7
  export declare function isString(str: unknown): str is string;
6
8
  export declare function isNil<T>(value: T | null | undefined): value is null | undefined;
@@ -52,6 +54,19 @@ export declare enum AIProviderName {
52
54
  MOONSHOT = "moonshot"
53
55
  }
54
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
67
+ //#region upstream/core-utils/lib/http-header-utils.d.ts
68
+ export declare function sanitizeHttpHeaders(headers: Record<string, string> | undefined): Record<string, string>;
69
+ //#endregion
55
70
  //#region upstream/core-piece-types/lib/agents.d.ts
56
71
  export declare const TASK_COMPLETION_TOOL_NAME = "updateTaskStatus";
57
72
  export declare enum AgentToolType {
@@ -385,6 +400,8 @@ type AgentProviderModel = {
385
400
  provider: AIProviderName;
386
401
  model: string;
387
402
  configId?: string;
403
+ } | {
404
+ modelTierId: string;
388
405
  };
389
406
  type AgentResult = {
390
407
  prompt: string;
@@ -412,6 +429,7 @@ export type VertexProviderAuthConfig = z.infer<typeof VertexProviderAuthConfig>;
412
429
  export declare const BedrockProviderAuthConfig: z.ZodMiniObject<{
413
430
  accessKeyId: z.ZodMiniString<string>;
414
431
  secretAccessKey: z.ZodMiniString<string>;
432
+ sessionToken: z.ZodMiniOptional<z.ZodMiniString<string>>;
415
433
  }, z.core.$strip>;
416
434
  export type BedrockProviderAuthConfig = z.infer<typeof BedrockProviderAuthConfig>;
417
435
  export declare const OpenAICompatibleProviderConfig: z.ZodMiniObject<{
@@ -582,6 +600,7 @@ export declare const GetProviderConfigResponse: z.ZodMiniObject<{
582
600
  }, z.core.$strip>, z.ZodMiniObject<{
583
601
  accessKeyId: z.ZodMiniString<string>;
584
602
  secretAccessKey: z.ZodMiniString<string>;
603
+ sessionToken: z.ZodMiniOptional<z.ZodMiniString<string>>;
585
604
  }, z.core.$strip>, z.ZodMiniObject<{
586
605
  serviceAccountJson: z.ZodMiniString<string>;
587
606
  }, z.core.$strip>, z.ZodMiniObject<{
@@ -610,6 +629,31 @@ export declare function getEffectiveProviderAndModel({ provider, model }: {
610
629
  provider: string | undefined;
611
630
  model: string | undefined;
612
631
  };
632
+ declare function getCuratedChatModels({ provider }: {
633
+ provider: AIProviderName;
634
+ }): {
635
+ id: string;
636
+ label: string;
637
+ }[] | undefined;
638
+ declare function runnableChatModelIds({ provider }: {
639
+ provider: AIProviderName;
640
+ }): string[];
641
+ declare function canDisableReasoning({ modelId }: {
642
+ modelId: string;
643
+ }): boolean;
644
+ declare function managedChatModelIds(): string[];
645
+ declare function isManagedChatModelId({ modelId }: {
646
+ modelId: string;
647
+ }): boolean;
648
+ declare function isCuratedChatModelId({ modelId }: {
649
+ modelId: string;
650
+ }): boolean;
651
+ declare function isChatModelId({ modelId }: {
652
+ modelId: string;
653
+ }): boolean;
654
+ declare function getMaxContextTokens({ provider }: {
655
+ provider: AIProviderName | undefined;
656
+ }): number;
613
657
  export declare const OPENAI_COMPATIBLE_VENDOR_BASE_URLS: Record<OpenAiCompatibleVendor, string>;
614
658
  export declare const ACTIVEPIECES_CHAT_TIERS: readonly [{
615
659
  readonly id: "fast";
@@ -617,32 +661,54 @@ export declare const ACTIVEPIECES_CHAT_TIERS: readonly [{
617
661
  readonly modelId: "anthropic/claude-haiku-4.5";
618
662
  readonly nativeModelId: "claude-haiku-4-5";
619
663
  readonly thinkingBudget: 5000;
620
- readonly creditWeight: 2;
621
664
  }, {
622
665
  readonly id: "smart";
623
666
  readonly label: "Expert";
624
667
  readonly modelId: "anthropic/claude-sonnet-4.6";
625
668
  readonly nativeModelId: "claude-sonnet-4-6";
626
669
  readonly thinkingBudget: 10000;
627
- readonly creditWeight: 10;
628
670
  }, {
629
671
  readonly id: "premium";
630
672
  readonly label: "Heavy";
631
673
  readonly modelId: "anthropic/claude-opus-4.8";
632
674
  readonly nativeModelId: "claude-opus-4-7";
633
675
  readonly thinkingBudget: 20000;
634
- readonly creditWeight: 20;
635
676
  }];
636
677
  export declare const DEFAULT_CHAT_TIER_ID: "smart";
678
+ export declare const ACTIVEPIECES_IMAGE_TIERS: readonly [{
679
+ readonly id: "fast";
680
+ readonly label: "Fast";
681
+ readonly modelId: "google/gemini-3.1-flash-lite-image";
682
+ }, {
683
+ readonly id: "smart";
684
+ readonly label: "Expert";
685
+ readonly modelId: "google/gemini-3.1-flash-image";
686
+ }, {
687
+ readonly id: "premium";
688
+ readonly label: "Heavy";
689
+ readonly modelId: "google/gemini-3-pro-image";
690
+ }];
637
691
  export declare const AI_PROVIDER_CAPABILITIES: Record<AIProviderName, AIProviderCapabilities>;
692
+ export declare const aiProviderUtils: {
693
+ getMaxContextTokens: typeof getMaxContextTokens;
694
+ getCuratedChatModels: typeof getCuratedChatModels;
695
+ runnableChatModelIds: typeof runnableChatModelIds;
696
+ isCuratedChatModelId: typeof isCuratedChatModelId;
697
+ managedChatModelIds: typeof managedChatModelIds;
698
+ isManagedChatModelId: typeof isManagedChatModelId;
699
+ canDisableReasoning: typeof canDisableReasoning;
700
+ isChatModelId: typeof isChatModelId;
701
+ };
638
702
  type AIWebSearchMode = "native" | "plugin";
639
703
  type OpenAiCompatibleVendor = AIProviderName.XAI | AIProviderName.DEEPSEEK | AIProviderName.ZAI | AIProviderName.QWEN | AIProviderName.MINIMAX | AIProviderName.MOONSHOT;
640
704
  type AIProviderCapabilities = {
641
705
  chatModels?: readonly string[] | undefined;
642
706
  maxContextTokens: number;
707
+ embeddingModels: readonly string[];
643
708
  defaultEmbeddingModel: string | undefined;
644
709
  supportsEmbedding: boolean;
645
710
  supportsImageGeneration: boolean;
711
+ defaultImageModel: string | undefined;
646
712
  webSearch: AIWebSearchMode | undefined;
647
713
  };
648
714
  //#endregion
@@ -994,7 +1060,9 @@ type ExecuteToolResponse = {
994
1060
  export declare function normalizeToolOutputToExecuteResponse(raw: unknown): ExecuteToolResponse;
995
1061
  //#endregion
996
1062
  //#region upstream/framework/lib/property/util.d.ts
997
- declare function buildSchema(props: PiecePropertyMap, auth: PieceAuthProperty | PieceAuthProperty[] | undefined, requireAuth?: boolean | undefined): z.ZodMiniObject<Record<string, z.ZodMiniType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>, z.core.$strip>;
1063
+ declare function buildSchema(props: PiecePropertyMap, auth: PieceAuthProperty | PieceAuthProperty[] | undefined, requireAuth?: boolean | undefined): z.ZodMiniObject<{
1064
+ [x: string]: z.ZodMiniType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
1065
+ }, z.core.$strip>;
998
1066
  export declare const piecePropertiesUtils: {
999
1067
  buildSchema: typeof buildSchema;
1000
1068
  };
@@ -1056,7 +1124,8 @@ type BackwardCompatiblePieceMetadata = Omit<PieceMetadata, "name" | "version" |
1056
1124
  //#endregion
1057
1125
  //#region upstream/framework/lib/i18n.d.ts
1058
1126
  export declare const pieceTranslation: {
1059
- translatePiece: <T extends PieceMetadataModelSummary | PieceMetadataModel>(params: TranslatePieceParams<T>) => T;
1127
+ translatePiece: <T extends PieceMetadataModelSummary | PieceMetadataModel>({ piece, locale }: TranslatePieceParams<T>) => T;
1128
+ pathsToTranslate: (categories?: PieceCategory[]) => string[];
1060
1129
  /**Gets the piece metadata regardles of piece location (node_modules or dist), wasn't included inside piece.metadata() for backwards compatibility issues (if an old ap version installs a new piece it would fail)*/
1061
1130
  initializeI18n: (pieceOutputPath: string) => Promise<I18nForPiece | undefined>;
1062
1131
  pathsToValuesToTranslate: string[];
@@ -1064,85 +1133,298 @@ export declare const pieceTranslation: {
1064
1133
  type TranslatePieceParams<T extends PieceMetadataModelSummary | PieceMetadataModel> = {
1065
1134
  piece: T;
1066
1135
  locale?: LocalesEnum;
1067
- mutate?: boolean;
1068
1136
  };
1069
1137
  //#endregion
1070
1138
  //#region upstream/framework/lib/test/index.d.ts
1071
1139
  export declare function createMockActionContext<Props extends InputPropertyMap>(params: {
1072
1140
  propsValue: StaticPropsValue<Props>;
1141
+ resumePayload?: ResumePayload;
1142
+ canPause?: boolean;
1143
+ onCreateWaitpoint?: (waitpoint: CreateWaitpointParams) => void;
1144
+ onWaitForWaitpoint?: (waitpointId: string) => void;
1073
1145
  }): ActionContext<undefined, Props>;
1074
1146
  export declare function createMockPollingTriggerContext<Props extends InputPropertyMap>(params: {
1075
1147
  propsValue: StaticPropsValue<Props>;
1076
1148
  onSetSchedule?: (schedule: SetScheduleRequest) => void;
1077
1149
  }): TriggerHookContext<undefined, Props, TriggerStrategy.POLLING>;
1078
1150
  //#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;
1151
+ //#region src/powerhouse/reactor-client.d.ts
1152
+ type RequireReactor = "read" | "write";
1153
+ type ReactorDeclaration = RequireReactor | false;
1154
+ type ReadMethods = "get" | "resolveIdOrSlug" | "find" | "getOperations" | "getOutgoingRelationships" | "getIncomingRelationships" | "getOutgoingRelationshipEdges" | "getIncomingRelationshipEdges" | "getDocumentModelModules" | "getDocumentModelModule" | "getDocumentModelModuleForDocument";
1155
+ type WriteMethods = "newDocument" | "create" | "createEmpty" | "execute" | "executeAsync" | "deleteDocument";
1156
+ type RefusedMethods = "createDocumentInDrive" | "executeBatch" | "rename" | "setPreferredEditor" | "addRelationship" | "updateRelationship" | "removeRelationship" | "moveRelationship" | "upgradeDocument" | "deleteDocuments" | "createAsync" | "createEmptyAsync" | "getJobStatus" | "waitForJob" | "subscribe" | "loadBatch" | "evaluateActions" | "isDocumentIdTaken" | "isServed" | "getCreateSignaturePolicy" | "getCreateProtocolVersions" | "undo" | "redo" | "undoRedoTargets" | "undoRedoAvailability" | "read" | "getMany";
1157
+ type WriteHalfMethods = "create" | "createEmpty" | "execute" | "deleteDocument";
1158
+ type DriveWriteHalfMethods = "addFile" | "addFolder";
1159
+ type RefusedWriteHalfMethods = "isDocumentIdTaken" | "describe" | "evaluateActions" | "upgradeDocument" | "executeBatch" | "rename" | "setPreferredEditor" | "addRelationship" | "updateRelationship" | "removeRelationship" | "moveRelationship" | "deleteDocuments" | "loadBatch" | "undo" | "redo" | "undoRedoTargets" | "undoRedoAvailability";
1160
+ type DriveReadMethods = "getNode" | "listNodes";
1161
+ type DriveWriteMethods = "addFile" | "addFolder";
1162
+ type RefusedDriveMethods = "create" | "removeNode" | "renameNode" | "moveNode" | "copyNode" | "setPreferredEditorOnNode";
1163
+ /**
1164
+ * A read of a read-model index (a custom subgraph such as a key index),
1165
+ * answered in the host process as the run's user: the index's own access
1166
+ * declarations decide what the user sees, exactly as over HTTP, and no
1167
+ * credential or URL reaches the piece.
1168
+ */
1169
+ interface IndexQueryRequest {
1170
+ /** The subgraph's name, as registered on the host (`key-index`). */
1171
+ subgraph: string;
1172
+ /** A GraphQL query document; mutations are refused. */
1173
+ query: string;
1174
+ variables?: Record<string, unknown>;
1086
1175
  }
1087
- interface ReactorActionInput {
1088
- type: string;
1089
- input?: unknown;
1090
- scope?: string;
1176
+ interface IndexQueryResult {
1177
+ data?: Record<string, unknown> | null;
1178
+ errors?: {
1179
+ message: string;
1180
+ }[];
1091
1181
  }
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;
1182
+ /** The read-model query a piece with reactor access may run. */
1183
+ interface IndexQueryMethods {
1184
+ query(request: IndexQueryRequest, signal?: AbortSignal): Promise<IndexQueryResult>;
1114
1185
  }
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[];
1186
+ type ReactorReadClient = Pick<IReactorClient, ReadMethods> & IndexQueryMethods & {
1187
+ readonly drives: Pick<IDriveClient, DriveReadMethods>;
1188
+ };
1189
+ type ReactorWriteClient = Pick<IReactorWriteClient, WriteHalfMethods> & {
1190
+ readonly drives: Pick<IDriveWriteClient, DriveWriteHalfMethods>;
1191
+ };
1192
+ type ReactorClient = Pick<IReactorClient, ReadMethods | WriteMethods> & IndexQueryMethods & {
1193
+ readonly drives: Pick<IDriveClient, DriveReadMethods | DriveWriteMethods>;
1194
+ readonly write: ReactorWriteClient;
1195
+ };
1196
+ type ReactorClientFor<R extends RequireReactor> = R extends "write" ? ReactorClient : ReactorReadClient;
1197
+ type ReactorContext<R extends ReactorDeclaration | undefined> = [R] extends [RequireReactor] ? {
1198
+ reactor: ReactorClientFor<R>;
1199
+ } : unknown;
1200
+ //#endregion
1201
+ //#region src/powerhouse/create.d.ts
1202
+ type AnyPieceAuth$1 = PieceAuthProperty | PieceAuthProperty[] | undefined;
1203
+ type WithReactorHook<F, R extends ReactorDeclaration | undefined> = F extends ((ctx: infer C) => infer Out) ? (ctx: C & ReactorContext<R>) => Out : F;
1204
+ type WithReactorHooks<Params, Hooks extends PropertyKey, R extends ReactorDeclaration | undefined> = { [K in keyof Params]: K extends Hooks ? WithReactorHook<Params[K], R> : Params[K]; } & {
1205
+ requireReactor?: R;
1206
+ };
1207
+ type UpstreamActionParams<PieceAuth extends AnyPieceAuth$1, ActionProps extends InputPropertyMap> = Parameters<typeof createAction$1<PieceAuth, ActionProps>>[0];
1208
+ interface ActionRetryDefault {
1209
+ maxAttempts: number;
1210
+ backoff?: "FIXED" | "EXPONENTIAL";
1211
+ initialDelaySeconds?: number;
1212
+ maxDelaySeconds?: number;
1213
+ retryOn?: string[];
1124
1214
  }
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>;
1215
+ interface ActionDefaults {
1216
+ defaultTimeoutSeconds?: number;
1217
+ defaultRetry?: ActionRetryDefault;
1135
1218
  }
1219
+ type CreateActionParams<PieceAuth extends AnyPieceAuth$1, ActionProps extends InputPropertyMap, R extends ReactorDeclaration | undefined> = WithReactorHooks<UpstreamActionParams<PieceAuth, ActionProps>, "run" | "test", R> & ActionDefaults;
1220
+ type Declared<T, R extends ReactorDeclaration | undefined> = T & {
1221
+ readonly requireReactor?: Exclude<R, false>;
1222
+ };
1223
+ 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>;
1224
+ type UpstreamTriggerParams<TS extends TriggerStrategy, PieceAuth extends AnyPieceAuth$1, TriggerProps extends InputPropertyMap> = Parameters<typeof createTrigger$1<TS, PieceAuth, TriggerProps>>[0];
1225
+ type TriggerHooks = "onEnable" | "onDisable" | "run" | "test" | "onStart" | "onHandshake" | "onRenew";
1226
+ 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"> & {
1227
+ type: TS;
1228
+ };
1229
+ 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>;
1230
+ 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>;
1136
1231
  //#endregion
1137
- //#region src/powerhouse/context.d.ts
1232
+ //#region src/powerhouse/property.d.ts
1138
1233
  type AnyPieceAuth = PieceAuthProperty | PieceAuthProperty[] | undefined;
1139
- type WithReactor<C> = C & {
1140
- reactor: ReactorService;
1234
+ export type PropertyContext = PropertyContext$1 & {
1235
+ reactor?: ReactorReadClient;
1236
+ };
1237
+ type WithReactorResolver<F> = F extends ((values: infer V, ctx: PropertyContext$1) => infer Out) ? (values: V, ctx: PropertyContext) => Out : F;
1238
+ type WithReactorResolvers<Params, Key extends PropertyKey> = { [K in keyof Params]: K extends Key ? WithReactorResolver<Params[K]> : Params[K]; };
1239
+ type DropdownParams<T, R extends boolean, A extends AnyPieceAuth> = Parameters<typeof Property$1.Dropdown<T, R, A>>[0];
1240
+ type MultiSelectDropdownParams<T, R extends boolean, A extends AnyPieceAuth> = Parameters<typeof Property$1.MultiSelectDropdown<T, R, A>>[0];
1241
+ type DynamicPropertiesParams<R extends boolean, A extends AnyPieceAuth> = Parameters<typeof Property$1.DynamicProperties<R, A>>[0];
1242
+ export declare const Property: {
1243
+ ShortText<R extends boolean>(request: {
1244
+ displayName: string;
1245
+ description?: string | undefined;
1246
+ advanced?: boolean | undefined;
1247
+ width?: "full" | "half" | undefined;
1248
+ icon?: string | undefined;
1249
+ placeholder?: string | undefined;
1250
+ required: R;
1251
+ defaultValue?: string | undefined;
1252
+ }): R extends true ? ShortTextProperty<true> : ShortTextProperty<false>;
1253
+ Checkbox<R extends boolean>(request: {
1254
+ displayName: string;
1255
+ description?: string | undefined;
1256
+ advanced?: boolean | undefined;
1257
+ width?: "full" | "half" | undefined;
1258
+ icon?: string | undefined;
1259
+ placeholder?: string | undefined;
1260
+ required: R;
1261
+ defaultValue?: boolean | undefined;
1262
+ reveals?: string[];
1263
+ }): R extends true ? CheckboxProperty<true> : CheckboxProperty<false>;
1264
+ LongText<R extends boolean>(request: {
1265
+ displayName: string;
1266
+ description?: string | undefined;
1267
+ advanced?: boolean | undefined;
1268
+ width?: "full" | "half" | undefined;
1269
+ icon?: string | undefined;
1270
+ placeholder?: string | undefined;
1271
+ required: R;
1272
+ defaultValue?: string | undefined;
1273
+ }): R extends true ? LongTextProperty<true> : LongTextProperty<false>;
1274
+ RichText<R extends boolean>(request: {
1275
+ displayName: string;
1276
+ description?: string | undefined;
1277
+ advanced?: boolean | undefined;
1278
+ width?: "full" | "half" | undefined;
1279
+ icon?: string | undefined;
1280
+ placeholder?: string | undefined;
1281
+ required: R;
1282
+ defaultValue?: string | undefined;
1283
+ formatProperty?: string;
1284
+ }): R extends true ? RichTextProperty<true> : RichTextProperty<false>;
1285
+ MarkDown(request: {
1286
+ value: string;
1287
+ variant?: MarkdownVariant;
1288
+ }): MarkDownProperty;
1289
+ Number<R extends boolean>(request: {
1290
+ displayName: string;
1291
+ description?: string | undefined;
1292
+ advanced?: boolean | undefined;
1293
+ width?: "full" | "half" | undefined;
1294
+ icon?: string | undefined;
1295
+ placeholder?: string | undefined;
1296
+ required: R;
1297
+ defaultValue?: number | undefined;
1298
+ display?: "stepper";
1299
+ min?: number;
1300
+ max?: number;
1301
+ step?: number;
1302
+ }): R extends true ? NumberProperty<true> : NumberProperty<false>;
1303
+ Json<R extends boolean>(request: {
1304
+ displayName: string;
1305
+ description?: string | undefined;
1306
+ advanced?: boolean | undefined;
1307
+ width?: "full" | "half" | undefined;
1308
+ icon?: string | undefined;
1309
+ placeholder?: string | undefined;
1310
+ required: R;
1311
+ defaultValue?: object | undefined;
1312
+ }): R extends true ? JsonProperty<true> : JsonProperty<false>;
1313
+ Array<R extends boolean>(request: {
1314
+ displayName: string;
1315
+ description?: string | undefined;
1316
+ advanced?: boolean | undefined;
1317
+ width?: "full" | "half" | undefined;
1318
+ icon?: string | undefined;
1319
+ placeholder?: string | undefined;
1320
+ required: R;
1321
+ defaultValue?: unknown[] | undefined;
1322
+ properties?: ArraySubProps<R> | undefined;
1323
+ }): R extends true ? ArrayProperty<true> : ArrayProperty<false>;
1324
+ Object<R extends boolean>(request: {
1325
+ displayName: string;
1326
+ description?: string | undefined;
1327
+ advanced?: boolean | undefined;
1328
+ width?: "full" | "half" | undefined;
1329
+ icon?: string | undefined;
1330
+ placeholder?: string | undefined;
1331
+ required: R;
1332
+ defaultValue?: unknown;
1333
+ }): R extends true ? ObjectProperty<true> : ObjectProperty<false>;
1334
+ StaticDropdown<T, R extends boolean = boolean>(request: {
1335
+ displayName: string;
1336
+ description?: string | undefined;
1337
+ advanced?: boolean | undefined;
1338
+ width?: "full" | "half" | undefined;
1339
+ icon?: string | undefined;
1340
+ placeholder?: string | undefined;
1341
+ required: R;
1342
+ defaultValue?: unknown;
1343
+ options: DropdownState<T>;
1344
+ display?: StaticDropdownDisplay;
1345
+ }): R extends true ? StaticDropdownProperty<T, true> : StaticDropdownProperty<T, false>;
1346
+ StaticMultiSelectDropdown<T, R extends boolean = boolean>(request: {
1347
+ displayName: string;
1348
+ description?: string | undefined;
1349
+ advanced?: boolean | undefined;
1350
+ width?: "full" | "half" | undefined;
1351
+ icon?: string | undefined;
1352
+ placeholder?: string | undefined;
1353
+ required: R;
1354
+ defaultValue?: unknown[] | undefined;
1355
+ options: DropdownState<T>;
1356
+ }): R extends true ? StaticMultiSelectDropdownProperty<T, true> : StaticMultiSelectDropdownProperty<T, false>;
1357
+ DateTime<R extends boolean>(request: {
1358
+ displayName: string;
1359
+ description?: string | undefined;
1360
+ advanced?: boolean | undefined;
1361
+ width?: "full" | "half" | undefined;
1362
+ icon?: string | undefined;
1363
+ placeholder?: string | undefined;
1364
+ required: R;
1365
+ defaultValue?: string | undefined;
1366
+ }): R extends true ? DateTimeProperty<true> : DateTimeProperty<false>;
1367
+ DateRange<R extends boolean>(request: {
1368
+ displayName: string;
1369
+ description?: string | undefined;
1370
+ advanced?: boolean | undefined;
1371
+ width?: "full" | "half" | undefined;
1372
+ icon?: string | undefined;
1373
+ placeholder?: string | undefined;
1374
+ required: R;
1375
+ defaultValue?: object | undefined;
1376
+ display?: "dropdown";
1377
+ }): R extends true ? DateRangeProperty<true> : DateRangeProperty<false>;
1378
+ File<R extends boolean, S extends boolean = false>(request: {
1379
+ streaming?: S | undefined;
1380
+ displayName: string;
1381
+ description?: string | undefined;
1382
+ advanced?: boolean | undefined;
1383
+ width?: "full" | "half" | undefined;
1384
+ icon?: string | undefined;
1385
+ placeholder?: string | undefined;
1386
+ required: R;
1387
+ defaultValue?: ApFile | undefined;
1388
+ }): FileProperty<R extends true ? true : false, S extends true ? true : false>;
1389
+ Custom<R extends boolean>(request: Omit<{
1390
+ displayName: string;
1391
+ description?: string | undefined;
1392
+ advanced?: boolean | undefined;
1393
+ width?: "full" | "half" | undefined;
1394
+ icon?: string | undefined;
1395
+ placeholder?: string | undefined;
1396
+ required: R;
1397
+ defaultValue?: unknown;
1398
+ code: string;
1399
+ }, "code"> & {
1400
+ code: (ctx: CustomPropertyCodeFunctionParams) => (() => void) | void;
1401
+ }): R extends true ? CustomProperty<true> : CustomProperty<false>;
1402
+ Color<R extends boolean>(request: {
1403
+ displayName: string;
1404
+ description?: string | undefined;
1405
+ advanced?: boolean | undefined;
1406
+ width?: "full" | "half" | undefined;
1407
+ icon?: string | undefined;
1408
+ placeholder?: string | undefined;
1409
+ required: R;
1410
+ defaultValue?: string | undefined;
1411
+ }): R extends true ? ColorProperty<true> : ColorProperty<false>;
1412
+ 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>>;
1413
+ 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>>;
1414
+ DynamicProperties<R extends boolean = boolean, A extends AnyPieceAuth = undefined>(request: WithReactorResolvers<DynamicPropertiesParams<R, A>, "props">): ReturnType<typeof Property$1.DynamicProperties<R, A>>;
1141
1415
  };
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;
1416
+ //#endregion
1417
+ //#region src/powerhouse/errors.d.ts
1418
+ export declare const ReactorJobPendingError = "ReactorJobPendingError";
1419
+ export declare const ReactorJobFailedError = "ReactorJobFailedError";
1420
+ export declare const ReactorActionsFailedError = "ReactorActionsFailedError";
1421
+ export declare const ReactorAccessDeniedError = "ReactorAccessDeniedError";
1422
+ export declare const ReactorRequestClosedError = "ReactorRequestClosedError";
1423
+ export declare const DocumentModelUnavailableError = "DocumentModelUnavailableError";
1424
+ type ReactorErrorName = typeof ReactorJobPendingError | typeof ReactorJobFailedError | typeof ReactorActionsFailedError | typeof ReactorAccessDeniedError | typeof ReactorRequestClosedError | typeof DocumentModelUnavailableError;
1425
+ export declare const DENIED_ACTION_INDEXES = "denied action indexes: ";
1426
+ export declare function deniedActionIndexes(error: unknown): number[] | undefined;
1427
+ export declare function assertActionsApplied(job: Pick<JobInfo, "result">, actions?: readonly Pick<Action$1, "id" | "type">[]): void;
1146
1428
  //#endregion
1147
1429
  //#region src/powerhouse/package-piece.d.ts
1148
1430
  interface PackagePiece {
@@ -1151,6 +1433,6 @@ interface PackagePiece {
1151
1433
  entry?: string;
1152
1434
  }
1153
1435
  //#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 };
1436
+ 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, OAuth2Discovery, 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 };
1155
1437
  export {};
1156
1438
  //# 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,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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BAoEb,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-utils/lib/ai-step.ts","../upstream/core-utils/lib/http-header-utils.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;;;;oBCjEU;EACV;EACA;EACA;EACA;EACA;EACA;;;;wBCDc,oBACd,SAAS,qCACR;;;qBCHU;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;;oBAGU;EACV;EACA;EACA;;oBAGU;EACV;EACA;;oBAGU;EACV;EACA;;oBAGU;EACV;EACA;;oBAGU;EACV;EACA;EACA;EACA;EACA;;oBAGU;EACV;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;qBAoDW,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