@powerhousedao/pieces-framework 6.2.3-dev.24 → 6.2.3-dev.26
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/UPSTREAM.md +5 -5
- package/dist/{action--RmO83_Y.d.ts → action-BOq8m66H.d.ts} +6116 -6119
- package/dist/{action--RmO83_Y.d.ts.map → action-BOq8m66H.d.ts.map} +1 -1
- package/dist/{authentication-B7brX_It.js → authentication-o-4CdAPR.js} +20 -20
- package/dist/{authentication-B7brX_It.js.map → authentication-o-4CdAPR.js.map} +1 -1
- package/dist/common.d.ts +41 -77
- package/dist/common.d.ts.map +1 -1
- package/dist/common.js +64 -66
- package/dist/common.js.map +1 -1
- package/dist/host.d.ts +20 -23
- package/dist/host.d.ts.map +1 -1
- package/dist/host.js +32 -27
- package/dist/host.js.map +1 -1
- package/dist/{index-BW6GxXEN.d.ts → index-Ceki0QqC.d.ts} +957 -968
- package/dist/index-Ceki0QqC.d.ts.map +1 -0
- package/dist/index.d.ts +176 -175
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +181 -155
- package/dist/index.js.map +1 -1
- package/dist/{input-COuhC1I-.js → input-BHkj_oP5.js} +45 -32
- package/dist/{input-COuhC1I-.js.map → input-BHkj_oP5.js.map} +1 -1
- package/dist/{markdown-property-Df2l6_y_.js → markdown-property-DMfHjEiL.js} +13 -10
- package/dist/{markdown-property-Df2l6_y_.js.map → markdown-property-DMfHjEiL.js.map} +1 -1
- package/package.json +3 -7
- package/dist/index-BW6GxXEN.d.ts.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,24 +1,23 @@
|
|
|
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
|
|
2
|
-
import { $ as
|
|
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-BOq8m66H.js";
|
|
2
|
+
import { $ as ArraySubProps, 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 SecretTextConnectionValue, 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 OAuth2GrantType, _ 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-Ceki0QqC.js";
|
|
3
3
|
import * as z from "zod/mini";
|
|
4
|
-
|
|
5
4
|
//#region upstream/core-utils/lib/utils.d.ts
|
|
6
|
-
declare function isString(str: unknown): str is string;
|
|
7
|
-
declare function isNil<T>(value: T | null | undefined): value is null | undefined;
|
|
8
|
-
declare function kebabCase(str: string): string;
|
|
9
|
-
declare function isEmpty<T>(value: T | null | undefined): boolean;
|
|
10
|
-
declare function startCase(str: string): string;
|
|
11
|
-
declare function camelCase(str: string): string;
|
|
12
|
-
declare function pickBy<T extends Record<string, unknown>>(object: T, predicate: (value: T[keyof T], key: keyof T) => boolean): Partial<T>;
|
|
13
|
-
declare function chunk<T>(records: T[], size: number): T[][];
|
|
14
|
-
declare function unique<T>(array: T[]): T[];
|
|
5
|
+
export declare function isString(str: unknown): str is string;
|
|
6
|
+
export declare function isNil<T>(value: T | null | undefined): value is null | undefined;
|
|
7
|
+
export declare function kebabCase(str: string): string;
|
|
8
|
+
export declare function isEmpty<T>(value: T | null | undefined): boolean;
|
|
9
|
+
export declare function startCase(str: string): string;
|
|
10
|
+
export declare function camelCase(str: string): string;
|
|
11
|
+
export declare function pickBy<T extends Record<string, unknown>>(object: T, predicate: (value: T[keyof T], key: keyof T) => boolean): Partial<T>;
|
|
12
|
+
export declare function chunk<T>(records: T[], size: number): T[][];
|
|
13
|
+
export declare function unique<T>(array: T[]): T[];
|
|
15
14
|
//#endregion
|
|
16
15
|
//#region upstream/core-utils/lib/object-utils.d.ts
|
|
17
|
-
declare const spreadIfDefined: <T>(key: string, value: T | undefined | null) => Record<string, T>;
|
|
16
|
+
export declare const spreadIfDefined: <T>(key: string, value: T | undefined | null) => Record<string, T>;
|
|
18
17
|
//#endregion
|
|
19
18
|
//#region upstream/core-utils/lib/assertions.d.ts
|
|
20
|
-
declare function assertNotNullOrUndefined<T>(value: T | null | undefined, fieldName: string): asserts value is T;
|
|
21
|
-
declare const isNotUndefined: <T>(value: T | undefined) => value is T;
|
|
19
|
+
export declare function assertNotNullOrUndefined<T>(value: T | null | undefined, fieldName: string): asserts value is T;
|
|
20
|
+
export declare const isNotUndefined: <T>(value: T | undefined) => value is T;
|
|
22
21
|
//#endregion
|
|
23
22
|
//#region upstream/core-utils/lib/try-catch.d.ts
|
|
24
23
|
type Success<T> = {
|
|
@@ -30,10 +29,10 @@ type Failure<E> = {
|
|
|
30
29
|
error: E;
|
|
31
30
|
};
|
|
32
31
|
type Result<T, E = Error> = Success<T> | Failure<E>;
|
|
33
|
-
declare function tryCatch<T, E = Error>(fn: () => Promise<T>): Promise<Result<T, E>>;
|
|
32
|
+
export declare function tryCatch<T, E = Error>(fn: () => Promise<T>): Promise<Result<T, E>>;
|
|
34
33
|
//#endregion
|
|
35
34
|
//#region upstream/core-utils/lib/permission.d.ts
|
|
36
|
-
declare enum AIProviderName {
|
|
35
|
+
export declare enum AIProviderName {
|
|
37
36
|
OPENAI = "openai",
|
|
38
37
|
OPENROUTER = "openrouter",
|
|
39
38
|
ANTHROPIC = "anthropic",
|
|
@@ -54,8 +53,8 @@ declare enum AIProviderName {
|
|
|
54
53
|
}
|
|
55
54
|
//#endregion
|
|
56
55
|
//#region upstream/core-piece-types/lib/agents.d.ts
|
|
57
|
-
declare const TASK_COMPLETION_TOOL_NAME = "updateTaskStatus";
|
|
58
|
-
declare enum AgentToolType {
|
|
56
|
+
export declare const TASK_COMPLETION_TOOL_NAME = "updateTaskStatus";
|
|
57
|
+
export declare enum AgentToolType {
|
|
59
58
|
PIECE = "PIECE",
|
|
60
59
|
FLOW = "FLOW",
|
|
61
60
|
MCP = "MCP",
|
|
@@ -66,51 +65,51 @@ declare enum FieldControlMode {
|
|
|
66
65
|
CHOOSE_YOURSELF = "choose-yourself",
|
|
67
66
|
LEAVE_EMPTY = "leave-empty"
|
|
68
67
|
}
|
|
69
|
-
declare enum KnowledgeBaseSourceType {
|
|
68
|
+
export declare enum KnowledgeBaseSourceType {
|
|
70
69
|
FILE = "FILE",
|
|
71
70
|
TABLE = "TABLE"
|
|
72
71
|
}
|
|
73
|
-
declare enum McpProtocol {
|
|
72
|
+
export declare enum McpProtocol {
|
|
74
73
|
SSE = "sse",
|
|
75
74
|
STREAMABLE_HTTP = "streamable-http",
|
|
76
75
|
SIMPLE_HTTP = "http"
|
|
77
76
|
}
|
|
78
|
-
declare enum McpAuthType {
|
|
77
|
+
export declare enum McpAuthType {
|
|
79
78
|
NONE = "none",
|
|
80
79
|
ACCESS_TOKEN = "access_token",
|
|
81
80
|
API_KEY = "api_key",
|
|
82
81
|
HEADERS = "headers"
|
|
83
82
|
}
|
|
84
|
-
declare enum AgentOutputFieldType {
|
|
83
|
+
export declare enum AgentOutputFieldType {
|
|
85
84
|
TEXT = "text",
|
|
86
85
|
NUMBER = "number",
|
|
87
86
|
BOOLEAN = "boolean"
|
|
88
87
|
}
|
|
89
|
-
declare enum AgentTaskStatus {
|
|
88
|
+
export declare enum AgentTaskStatus {
|
|
90
89
|
COMPLETED = "COMPLETED",
|
|
91
90
|
FAILED = "FAILED",
|
|
92
91
|
IN_PROGRESS = "IN_PROGRESS"
|
|
93
92
|
}
|
|
94
|
-
declare enum ContentBlockType {
|
|
93
|
+
export declare enum ContentBlockType {
|
|
95
94
|
MARKDOWN = "MARKDOWN",
|
|
96
95
|
TOOL_CALL = "TOOL_CALL"
|
|
97
96
|
}
|
|
98
|
-
declare enum ToolCallStatus {
|
|
97
|
+
export declare enum ToolCallStatus {
|
|
99
98
|
IN_PROGRESS = "in-progress",
|
|
100
99
|
COMPLETED = "completed"
|
|
101
100
|
}
|
|
102
|
-
declare enum ExecutionToolStatus {
|
|
101
|
+
export declare enum ExecutionToolStatus {
|
|
103
102
|
SUCCESS = "SUCCESS",
|
|
104
103
|
FAILED = "FAILED"
|
|
105
104
|
}
|
|
106
|
-
declare enum ToolCallType {
|
|
105
|
+
export declare enum ToolCallType {
|
|
107
106
|
PIECE = "PIECE",
|
|
108
107
|
FLOW = "FLOW",
|
|
109
108
|
MCP = "MCP",
|
|
110
109
|
KNOWLEDGE_BASE = "KNOWLEDGE_BASE",
|
|
111
110
|
UNKNOWN = "UNKNOWN"
|
|
112
111
|
}
|
|
113
|
-
declare enum AgentPieceProps {
|
|
112
|
+
export declare enum AgentPieceProps {
|
|
114
113
|
AGENT_ID = "agentId",
|
|
115
114
|
AGENT_TOOLS = "agentTools",
|
|
116
115
|
STRUCTURED_OUTPUT = "structuredOutput",
|
|
@@ -120,7 +119,7 @@ declare enum AgentPieceProps {
|
|
|
120
119
|
WEB_SEARCH = "webSearch",
|
|
121
120
|
WEB_SEARCH_OPTIONS = "webSearchOptions"
|
|
122
121
|
}
|
|
123
|
-
declare const McpAuthConfig: z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
122
|
+
export declare const McpAuthConfig: z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
124
123
|
type: z.ZodMiniLiteral<McpAuthType.NONE>;
|
|
125
124
|
}, z.core.$strip>, z.ZodMiniObject<{
|
|
126
125
|
type: z.ZodMiniLiteral<McpAuthType.ACCESS_TOKEN>;
|
|
@@ -133,15 +132,15 @@ declare const McpAuthConfig: z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
|
133
132
|
type: z.ZodMiniLiteral<McpAuthType.HEADERS>;
|
|
134
133
|
headers: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
|
|
135
134
|
}, z.core.$strip>], "type">;
|
|
136
|
-
type McpAuthConfig = z.infer<typeof McpAuthConfig>;
|
|
137
|
-
declare const AgentFlowTool: z.ZodMiniObject<{
|
|
135
|
+
export type McpAuthConfig = z.infer<typeof McpAuthConfig>;
|
|
136
|
+
export declare const AgentFlowTool: z.ZodMiniObject<{
|
|
138
137
|
type: z.ZodMiniLiteral<AgentToolType.FLOW>;
|
|
139
138
|
toolName: z.ZodMiniString<string>;
|
|
140
139
|
externalFlowId: z.ZodMiniString<string>;
|
|
141
140
|
flowDisplayName: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
142
141
|
}, z.core.$strip>;
|
|
143
|
-
type AgentFlowTool = z.infer<typeof AgentFlowTool>;
|
|
144
|
-
declare const AgentMcpTool: z.ZodMiniObject<{
|
|
142
|
+
export type AgentFlowTool = z.infer<typeof AgentFlowTool>;
|
|
143
|
+
export declare const AgentMcpTool: z.ZodMiniObject<{
|
|
145
144
|
type: z.ZodMiniLiteral<AgentToolType.MCP>;
|
|
146
145
|
toolName: z.ZodMiniString<string>;
|
|
147
146
|
serverUrl: z.ZodMiniURL;
|
|
@@ -160,16 +159,16 @@ declare const AgentMcpTool: z.ZodMiniObject<{
|
|
|
160
159
|
headers: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
|
|
161
160
|
}, z.core.$strip>], "type">;
|
|
162
161
|
}, z.core.$strip>;
|
|
163
|
-
type AgentMcpTool = z.infer<typeof AgentMcpTool>;
|
|
164
|
-
declare const AgentKnowledgeBaseTool: z.ZodMiniObject<{
|
|
162
|
+
export type AgentMcpTool = z.infer<typeof AgentMcpTool>;
|
|
163
|
+
export declare const AgentKnowledgeBaseTool: z.ZodMiniObject<{
|
|
165
164
|
type: z.ZodMiniLiteral<AgentToolType.KNOWLEDGE_BASE>;
|
|
166
165
|
toolName: z.ZodMiniString<string>;
|
|
167
166
|
sourceType: z.ZodMiniEnum<typeof KnowledgeBaseSourceType>;
|
|
168
167
|
sourceId: z.ZodMiniString<string>;
|
|
169
168
|
sourceName: z.ZodMiniString<string>;
|
|
170
169
|
}, z.core.$strip>;
|
|
171
|
-
type AgentKnowledgeBaseTool = z.infer<typeof AgentKnowledgeBaseTool>;
|
|
172
|
-
declare const AgentTool: z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
170
|
+
export type AgentKnowledgeBaseTool = z.infer<typeof AgentKnowledgeBaseTool>;
|
|
171
|
+
export declare const AgentTool: z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
173
172
|
type: z.ZodMiniLiteral<AgentToolType.PIECE>;
|
|
174
173
|
toolName: z.ZodMiniString<string>;
|
|
175
174
|
pieceMetadata: z.ZodMiniObject<{
|
|
@@ -214,18 +213,18 @@ declare const AgentTool: z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
|
214
213
|
sourceId: z.ZodMiniString<string>;
|
|
215
214
|
sourceName: z.ZodMiniString<string>;
|
|
216
215
|
}, z.core.$strip>], "type">;
|
|
217
|
-
type AgentTool = z.infer<typeof AgentTool>;
|
|
218
|
-
declare const AgentOutputField: z.ZodMiniObject<{
|
|
216
|
+
export type AgentTool = z.infer<typeof AgentTool>;
|
|
217
|
+
export declare const AgentOutputField: z.ZodMiniObject<{
|
|
219
218
|
displayName: z.ZodMiniString<string>;
|
|
220
219
|
description: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
221
220
|
type: z.ZodMiniEnum<typeof AgentOutputFieldType>;
|
|
222
221
|
}, z.core.$strip>;
|
|
223
|
-
type AgentOutputField = z.infer<typeof AgentOutputField>;
|
|
224
|
-
declare const MarkdownContentBlock: z.ZodMiniObject<{
|
|
222
|
+
export type AgentOutputField = z.infer<typeof AgentOutputField>;
|
|
223
|
+
export declare const MarkdownContentBlock: z.ZodMiniObject<{
|
|
225
224
|
type: z.ZodMiniLiteral<ContentBlockType.MARKDOWN>;
|
|
226
225
|
markdown: z.ZodMiniString<string>;
|
|
227
226
|
}, z.core.$strip>;
|
|
228
|
-
type MarkdownContentBlock = z.infer<typeof MarkdownContentBlock>;
|
|
227
|
+
export type MarkdownContentBlock = z.infer<typeof MarkdownContentBlock>;
|
|
229
228
|
declare const toolCallBaseSchema: z.ZodMiniObject<{
|
|
230
229
|
type: z.ZodMiniLiteral<ContentBlockType.TOOL_CALL>;
|
|
231
230
|
input: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>>;
|
|
@@ -236,11 +235,20 @@ declare const toolCallBaseSchema: z.ZodMiniObject<{
|
|
|
236
235
|
startTime: z.ZodMiniString<string>;
|
|
237
236
|
endTime: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
238
237
|
}, z.core.$strip>;
|
|
239
|
-
declare const ToolCallContentBlock: z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
238
|
+
export declare const ToolCallContentBlock: z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
239
|
+
type: z.ZodMiniLiteral<ContentBlockType.TOOL_CALL>;
|
|
240
|
+
input: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>>;
|
|
241
|
+
output: z.ZodMiniOptional<z.ZodMiniUnknown>;
|
|
242
|
+
toolName: z.ZodMiniString<string>;
|
|
243
|
+
status: z.ZodMiniEnum<typeof ToolCallStatus>;
|
|
244
|
+
toolCallId: z.ZodMiniString<string>;
|
|
245
|
+
startTime: z.ZodMiniString<string>;
|
|
246
|
+
endTime: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
240
247
|
toolCallType: z.ZodMiniLiteral<ToolCallType.PIECE>;
|
|
241
248
|
pieceName: z.ZodMiniString<string>;
|
|
242
249
|
pieceVersion: z.ZodMiniString<string>;
|
|
243
250
|
actionName: z.ZodMiniString<string>;
|
|
251
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
244
252
|
type: z.ZodMiniLiteral<ContentBlockType.TOOL_CALL>;
|
|
245
253
|
input: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>>;
|
|
246
254
|
output: z.ZodMiniOptional<z.ZodMiniUnknown>;
|
|
@@ -249,10 +257,10 @@ declare const ToolCallContentBlock: z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject
|
|
|
249
257
|
toolCallId: z.ZodMiniString<string>;
|
|
250
258
|
startTime: z.ZodMiniString<string>;
|
|
251
259
|
endTime: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
252
|
-
}, z.core.$strip>, z.ZodMiniObject<{
|
|
253
260
|
toolCallType: z.ZodMiniLiteral<ToolCallType.FLOW>;
|
|
254
261
|
displayName: z.ZodMiniString<string>;
|
|
255
262
|
externalFlowId: z.ZodMiniString<string>;
|
|
263
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
256
264
|
type: z.ZodMiniLiteral<ContentBlockType.TOOL_CALL>;
|
|
257
265
|
input: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>>;
|
|
258
266
|
output: z.ZodMiniOptional<z.ZodMiniUnknown>;
|
|
@@ -261,10 +269,10 @@ declare const ToolCallContentBlock: z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject
|
|
|
261
269
|
toolCallId: z.ZodMiniString<string>;
|
|
262
270
|
startTime: z.ZodMiniString<string>;
|
|
263
271
|
endTime: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
264
|
-
}, z.core.$strip>, z.ZodMiniObject<{
|
|
265
272
|
toolCallType: z.ZodMiniLiteral<ToolCallType.MCP>;
|
|
266
273
|
displayName: z.ZodMiniString<string>;
|
|
267
274
|
serverUrl: z.ZodMiniString<string>;
|
|
275
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
268
276
|
type: z.ZodMiniLiteral<ContentBlockType.TOOL_CALL>;
|
|
269
277
|
input: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>>;
|
|
270
278
|
output: z.ZodMiniOptional<z.ZodMiniUnknown>;
|
|
@@ -273,10 +281,10 @@ declare const ToolCallContentBlock: z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject
|
|
|
273
281
|
toolCallId: z.ZodMiniString<string>;
|
|
274
282
|
startTime: z.ZodMiniString<string>;
|
|
275
283
|
endTime: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
276
|
-
}, z.core.$strip>, z.ZodMiniObject<{
|
|
277
284
|
toolCallType: z.ZodMiniLiteral<ToolCallType.KNOWLEDGE_BASE>;
|
|
278
285
|
displayName: z.ZodMiniString<string>;
|
|
279
286
|
sourceType: z.ZodMiniString<string>;
|
|
287
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
280
288
|
type: z.ZodMiniLiteral<ContentBlockType.TOOL_CALL>;
|
|
281
289
|
input: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>>;
|
|
282
290
|
output: z.ZodMiniOptional<z.ZodMiniUnknown>;
|
|
@@ -285,9 +293,14 @@ declare const ToolCallContentBlock: z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject
|
|
|
285
293
|
toolCallId: z.ZodMiniString<string>;
|
|
286
294
|
startTime: z.ZodMiniString<string>;
|
|
287
295
|
endTime: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
288
|
-
}, z.core.$strip>, z.ZodMiniObject<{
|
|
289
296
|
toolCallType: z.ZodMiniLiteral<ToolCallType.UNKNOWN>;
|
|
290
297
|
displayName: z.ZodMiniString<string>;
|
|
298
|
+
}, z.core.$strip>], "toolCallType">;
|
|
299
|
+
export type ToolCallContentBlock = z.infer<typeof ToolCallContentBlock>;
|
|
300
|
+
export declare const AgentStepBlock: z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
301
|
+
type: z.ZodMiniLiteral<ContentBlockType.MARKDOWN>;
|
|
302
|
+
markdown: z.ZodMiniString<string>;
|
|
303
|
+
}, z.core.$strip>, z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
291
304
|
type: z.ZodMiniLiteral<ContentBlockType.TOOL_CALL>;
|
|
292
305
|
input: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>>;
|
|
293
306
|
output: z.ZodMiniOptional<z.ZodMiniUnknown>;
|
|
@@ -296,16 +309,11 @@ declare const ToolCallContentBlock: z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject
|
|
|
296
309
|
toolCallId: z.ZodMiniString<string>;
|
|
297
310
|
startTime: z.ZodMiniString<string>;
|
|
298
311
|
endTime: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
299
|
-
}, z.core.$strip>], "toolCallType">;
|
|
300
|
-
type ToolCallContentBlock = z.infer<typeof ToolCallContentBlock>;
|
|
301
|
-
declare const AgentStepBlock: z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
302
|
-
type: z.ZodMiniLiteral<ContentBlockType.MARKDOWN>;
|
|
303
|
-
markdown: z.ZodMiniString<string>;
|
|
304
|
-
}, z.core.$strip>, z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
305
312
|
toolCallType: z.ZodMiniLiteral<ToolCallType.PIECE>;
|
|
306
313
|
pieceName: z.ZodMiniString<string>;
|
|
307
314
|
pieceVersion: z.ZodMiniString<string>;
|
|
308
315
|
actionName: z.ZodMiniString<string>;
|
|
316
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
309
317
|
type: z.ZodMiniLiteral<ContentBlockType.TOOL_CALL>;
|
|
310
318
|
input: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>>;
|
|
311
319
|
output: z.ZodMiniOptional<z.ZodMiniUnknown>;
|
|
@@ -314,10 +322,10 @@ declare const AgentStepBlock: z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
|
314
322
|
toolCallId: z.ZodMiniString<string>;
|
|
315
323
|
startTime: z.ZodMiniString<string>;
|
|
316
324
|
endTime: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
317
|
-
}, z.core.$strip>, z.ZodMiniObject<{
|
|
318
325
|
toolCallType: z.ZodMiniLiteral<ToolCallType.FLOW>;
|
|
319
326
|
displayName: z.ZodMiniString<string>;
|
|
320
327
|
externalFlowId: z.ZodMiniString<string>;
|
|
328
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
321
329
|
type: z.ZodMiniLiteral<ContentBlockType.TOOL_CALL>;
|
|
322
330
|
input: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>>;
|
|
323
331
|
output: z.ZodMiniOptional<z.ZodMiniUnknown>;
|
|
@@ -326,10 +334,10 @@ declare const AgentStepBlock: z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
|
326
334
|
toolCallId: z.ZodMiniString<string>;
|
|
327
335
|
startTime: z.ZodMiniString<string>;
|
|
328
336
|
endTime: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
329
|
-
}, z.core.$strip>, z.ZodMiniObject<{
|
|
330
337
|
toolCallType: z.ZodMiniLiteral<ToolCallType.MCP>;
|
|
331
338
|
displayName: z.ZodMiniString<string>;
|
|
332
339
|
serverUrl: z.ZodMiniString<string>;
|
|
340
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
333
341
|
type: z.ZodMiniLiteral<ContentBlockType.TOOL_CALL>;
|
|
334
342
|
input: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>>;
|
|
335
343
|
output: z.ZodMiniOptional<z.ZodMiniUnknown>;
|
|
@@ -338,10 +346,10 @@ declare const AgentStepBlock: z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
|
338
346
|
toolCallId: z.ZodMiniString<string>;
|
|
339
347
|
startTime: z.ZodMiniString<string>;
|
|
340
348
|
endTime: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
341
|
-
}, z.core.$strip>, z.ZodMiniObject<{
|
|
342
349
|
toolCallType: z.ZodMiniLiteral<ToolCallType.KNOWLEDGE_BASE>;
|
|
343
350
|
displayName: z.ZodMiniString<string>;
|
|
344
351
|
sourceType: z.ZodMiniString<string>;
|
|
352
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
345
353
|
type: z.ZodMiniLiteral<ContentBlockType.TOOL_CALL>;
|
|
346
354
|
input: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>>;
|
|
347
355
|
output: z.ZodMiniOptional<z.ZodMiniUnknown>;
|
|
@@ -350,33 +358,21 @@ declare const AgentStepBlock: z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
|
350
358
|
toolCallId: z.ZodMiniString<string>;
|
|
351
359
|
startTime: z.ZodMiniString<string>;
|
|
352
360
|
endTime: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
353
|
-
}, z.core.$strip>, z.ZodMiniObject<{
|
|
354
361
|
toolCallType: z.ZodMiniLiteral<ToolCallType.UNKNOWN>;
|
|
355
362
|
displayName: z.ZodMiniString<string>;
|
|
356
|
-
type: z.ZodMiniLiteral<ContentBlockType.TOOL_CALL>;
|
|
357
|
-
input: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>>;
|
|
358
|
-
output: z.ZodMiniOptional<z.ZodMiniUnknown>;
|
|
359
|
-
toolName: z.ZodMiniString<string>;
|
|
360
|
-
status: z.ZodMiniEnum<typeof ToolCallStatus>;
|
|
361
|
-
toolCallId: z.ZodMiniString<string>;
|
|
362
|
-
startTime: z.ZodMiniString<string>;
|
|
363
|
-
endTime: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
364
363
|
}, z.core.$strip>], "toolCallType">]>;
|
|
365
|
-
type AgentStepBlock = z.infer<typeof AgentStepBlock>;
|
|
366
|
-
declare function buildAuthHeaders(authConfig: McpAuthConfig): Record<string, string>;
|
|
364
|
+
export type AgentStepBlock = z.infer<typeof AgentStepBlock>;
|
|
365
|
+
export declare function buildAuthHeaders(authConfig: McpAuthConfig): Record<string, string>;
|
|
367
366
|
declare function createToolName(name: string): string;
|
|
368
367
|
declare function toValidToolName(name: string): string;
|
|
369
368
|
declare function suggestToolName(sourceName: string): string;
|
|
370
369
|
declare function isProviderSafeIdentifier(name: string): boolean;
|
|
371
|
-
declare function toProviderSafeIdentifier({
|
|
372
|
-
name,
|
|
373
|
-
fallback
|
|
374
|
-
}: {
|
|
370
|
+
declare function toProviderSafeIdentifier({ name, fallback }: {
|
|
375
371
|
name: string;
|
|
376
372
|
fallback: string;
|
|
377
373
|
}): string;
|
|
378
374
|
declare function createPieceToolName(pieceName: string, actionName: string): string;
|
|
379
|
-
declare const mcpToolNameUtils: {
|
|
375
|
+
export declare const mcpToolNameUtils: {
|
|
380
376
|
createToolName: typeof createToolName;
|
|
381
377
|
createPieceToolName: typeof createPieceToolName;
|
|
382
378
|
toValidToolName: typeof toValidToolName;
|
|
@@ -397,28 +393,28 @@ type AgentResult = {
|
|
|
397
393
|
structuredOutput?: unknown;
|
|
398
394
|
failure?: string;
|
|
399
395
|
};
|
|
400
|
-
declare const AGENT_STEP_TIMEOUT_MS: number;
|
|
401
|
-
declare const AGENT_STEP_TEST_TIMEOUT_MS: number;
|
|
396
|
+
export declare const AGENT_STEP_TIMEOUT_MS: number;
|
|
397
|
+
export declare const AGENT_STEP_TEST_TIMEOUT_MS: number;
|
|
402
398
|
//#endregion
|
|
403
399
|
//#region upstream/core-piece-types/lib/ai-providers.d.ts
|
|
404
400
|
declare enum AIProviderModelType {
|
|
405
401
|
IMAGE = "image",
|
|
406
402
|
TEXT = "text"
|
|
407
403
|
}
|
|
408
|
-
declare const BaseAIProviderAuthConfig: z.ZodMiniObject<{
|
|
404
|
+
export declare const BaseAIProviderAuthConfig: z.ZodMiniObject<{
|
|
409
405
|
apiKey: z.ZodMiniString<string>;
|
|
410
406
|
}, z.core.$strip>;
|
|
411
|
-
type BaseAIProviderAuthConfig = z.infer<typeof BaseAIProviderAuthConfig>;
|
|
412
|
-
declare const VertexProviderAuthConfig: z.ZodMiniObject<{
|
|
407
|
+
export type BaseAIProviderAuthConfig = z.infer<typeof BaseAIProviderAuthConfig>;
|
|
408
|
+
export declare const VertexProviderAuthConfig: z.ZodMiniObject<{
|
|
413
409
|
serviceAccountJson: z.ZodMiniString<string>;
|
|
414
410
|
}, z.core.$strip>;
|
|
415
|
-
type VertexProviderAuthConfig = z.infer<typeof VertexProviderAuthConfig>;
|
|
416
|
-
declare const BedrockProviderAuthConfig: z.ZodMiniObject<{
|
|
411
|
+
export type VertexProviderAuthConfig = z.infer<typeof VertexProviderAuthConfig>;
|
|
412
|
+
export declare const BedrockProviderAuthConfig: z.ZodMiniObject<{
|
|
417
413
|
accessKeyId: z.ZodMiniString<string>;
|
|
418
414
|
secretAccessKey: z.ZodMiniString<string>;
|
|
419
415
|
}, z.core.$strip>;
|
|
420
|
-
type BedrockProviderAuthConfig = z.infer<typeof BedrockProviderAuthConfig>;
|
|
421
|
-
declare const OpenAICompatibleProviderConfig: z.ZodMiniObject<{
|
|
416
|
+
export type BedrockProviderAuthConfig = z.infer<typeof BedrockProviderAuthConfig>;
|
|
417
|
+
export declare const OpenAICompatibleProviderConfig: z.ZodMiniObject<{
|
|
422
418
|
apiKeyHeader: z.ZodMiniString<string>;
|
|
423
419
|
baseUrl: z.ZodMiniString<string>;
|
|
424
420
|
models: z.ZodMiniArray<z.ZodMiniObject<{
|
|
@@ -432,8 +428,8 @@ declare const OpenAICompatibleProviderConfig: z.ZodMiniObject<{
|
|
|
432
428
|
responses: "responses";
|
|
433
429
|
}>>;
|
|
434
430
|
}, z.core.$strip>;
|
|
435
|
-
type OpenAICompatibleProviderConfig = z.infer<typeof OpenAICompatibleProviderConfig>;
|
|
436
|
-
declare const CloudflareGatewayProviderConfig: z.ZodMiniObject<{
|
|
431
|
+
export type OpenAICompatibleProviderConfig = z.infer<typeof OpenAICompatibleProviderConfig>;
|
|
432
|
+
export declare const CloudflareGatewayProviderConfig: z.ZodMiniObject<{
|
|
437
433
|
accountId: z.ZodMiniString<string>;
|
|
438
434
|
gatewayId: z.ZodMiniString<string>;
|
|
439
435
|
models: z.ZodMiniArray<z.ZodMiniObject<{
|
|
@@ -444,17 +440,17 @@ declare const CloudflareGatewayProviderConfig: z.ZodMiniObject<{
|
|
|
444
440
|
vertexProject: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
445
441
|
vertexRegion: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
446
442
|
}, z.core.$strip>;
|
|
447
|
-
type CloudflareGatewayProviderConfig = z.infer<typeof CloudflareGatewayProviderConfig>;
|
|
448
|
-
declare const AzureProviderConfig: z.ZodMiniObject<{
|
|
443
|
+
export type CloudflareGatewayProviderConfig = z.infer<typeof CloudflareGatewayProviderConfig>;
|
|
444
|
+
export declare const AzureProviderConfig: z.ZodMiniObject<{
|
|
449
445
|
resourceName: z.ZodMiniString<string>;
|
|
450
446
|
apiVersion: z.ZodMiniPipe<z.ZodMiniTransform<unknown, unknown>, z.ZodMiniOptional<z.ZodMiniString<string>>>;
|
|
451
447
|
}, z.core.$strip>;
|
|
452
|
-
type AzureProviderConfig = z.infer<typeof AzureProviderConfig>;
|
|
453
|
-
declare const BedrockProviderConfig: z.ZodMiniObject<{
|
|
448
|
+
export type AzureProviderConfig = z.infer<typeof AzureProviderConfig>;
|
|
449
|
+
export declare const BedrockProviderConfig: z.ZodMiniObject<{
|
|
454
450
|
region: z.ZodMiniString<string>;
|
|
455
451
|
}, z.core.$strip>;
|
|
456
|
-
type BedrockProviderConfig = z.infer<typeof BedrockProviderConfig>;
|
|
457
|
-
declare const VertexProviderConfig: z.ZodMiniObject<{
|
|
452
|
+
export type BedrockProviderConfig = z.infer<typeof BedrockProviderConfig>;
|
|
453
|
+
export declare const VertexProviderConfig: z.ZodMiniObject<{
|
|
458
454
|
project: z.ZodMiniString<string>;
|
|
459
455
|
region: z.ZodMiniString<string>;
|
|
460
456
|
models: z.ZodMiniArray<z.ZodMiniObject<{
|
|
@@ -463,16 +459,16 @@ declare const VertexProviderConfig: z.ZodMiniObject<{
|
|
|
463
459
|
modelType: z.ZodMiniEnum<typeof AIProviderModelType>;
|
|
464
460
|
}, z.core.$strip>>;
|
|
465
461
|
}, z.core.$strip>;
|
|
466
|
-
type VertexProviderConfig = z.infer<typeof VertexProviderConfig>;
|
|
467
|
-
declare const OpenAiCompatibleVendorConfig: z.ZodMiniObject<{}, z.core.$strip>;
|
|
468
|
-
type OpenAiCompatibleVendorConfig = z.infer<typeof OpenAiCompatibleVendorConfig>;
|
|
469
|
-
declare const AIProviderModel: z.ZodMiniObject<{
|
|
462
|
+
export type VertexProviderConfig = z.infer<typeof VertexProviderConfig>;
|
|
463
|
+
export declare const OpenAiCompatibleVendorConfig: z.ZodMiniObject<{}, z.core.$strip>;
|
|
464
|
+
export type OpenAiCompatibleVendorConfig = z.infer<typeof OpenAiCompatibleVendorConfig>;
|
|
465
|
+
export declare const AIProviderModel: z.ZodMiniObject<{
|
|
470
466
|
id: z.ZodMiniString<string>;
|
|
471
467
|
name: z.ZodMiniString<string>;
|
|
472
468
|
type: z.ZodMiniEnum<typeof AIProviderModelType>;
|
|
473
469
|
}, z.core.$strip>;
|
|
474
|
-
type AIProviderModel = z.infer<typeof AIProviderModel>;
|
|
475
|
-
declare const AIProviderWithoutSensitiveData: z.ZodMiniObject<{
|
|
470
|
+
export type AIProviderModel = z.infer<typeof AIProviderModel>;
|
|
471
|
+
export declare const AIProviderWithoutSensitiveData: z.ZodMiniObject<{
|
|
476
472
|
id: z.ZodMiniString<string>;
|
|
477
473
|
name: z.ZodMiniString<string>;
|
|
478
474
|
provider: z.ZodMiniEnum<typeof AIProviderName>;
|
|
@@ -515,8 +511,8 @@ declare const AIProviderWithoutSensitiveData: z.ZodMiniObject<{
|
|
|
515
511
|
}, z.core.$strip>, z.ZodMiniObject<{}, z.core.$strip>, z.ZodMiniObject<{}, z.core.$strip>, z.ZodMiniObject<{}, z.core.$strip>, z.ZodMiniObject<{}, z.core.$strip>, z.ZodMiniObject<{}, z.core.$strip>, z.ZodMiniObject<{}, z.core.$strip>, z.ZodMiniObject<{}, z.core.$strip>]>;
|
|
516
512
|
enabledForChat: z.ZodMiniBoolean<boolean>;
|
|
517
513
|
}, z.core.$strip>;
|
|
518
|
-
type AIProviderWithoutSensitiveData = z.infer<typeof AIProviderWithoutSensitiveData>;
|
|
519
|
-
declare const ProjectAIProvider: z.ZodMiniObject<{
|
|
514
|
+
export type AIProviderWithoutSensitiveData = z.infer<typeof AIProviderWithoutSensitiveData>;
|
|
515
|
+
export declare const ProjectAIProvider: z.ZodMiniObject<{
|
|
520
516
|
provider: z.ZodMiniEnum<typeof AIProviderName>;
|
|
521
517
|
name: z.ZodMiniString<string>;
|
|
522
518
|
enabledForChat: z.ZodMiniBoolean<boolean>;
|
|
@@ -525,8 +521,8 @@ declare const ProjectAIProvider: z.ZodMiniObject<{
|
|
|
525
521
|
name: z.ZodMiniString<string>;
|
|
526
522
|
}, z.core.$strip>>;
|
|
527
523
|
}, z.core.$strip>;
|
|
528
|
-
type ProjectAIProvider = z.infer<typeof ProjectAIProvider>;
|
|
529
|
-
declare const GetProviderConfigResponse: z.ZodMiniObject<{
|
|
524
|
+
export type ProjectAIProvider = z.infer<typeof ProjectAIProvider>;
|
|
525
|
+
export declare const GetProviderConfigResponse: z.ZodMiniObject<{
|
|
530
526
|
provider: z.ZodMiniEnum<typeof AIProviderName>;
|
|
531
527
|
configId: z.ZodMiniString<string>;
|
|
532
528
|
config: z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
@@ -593,8 +589,8 @@ declare const GetProviderConfigResponse: z.ZodMiniObject<{
|
|
|
593
589
|
}, z.core.$strip>]>;
|
|
594
590
|
platformId: z.ZodMiniString<string>;
|
|
595
591
|
}, z.core.$strip>;
|
|
596
|
-
type GetProviderConfigResponse = z.infer<typeof GetProviderConfigResponse>;
|
|
597
|
-
declare function splitCloudflareGatewayModelId(modelId: string): {
|
|
592
|
+
export type GetProviderConfigResponse = z.infer<typeof GetProviderConfigResponse>;
|
|
593
|
+
export declare function splitCloudflareGatewayModelId(modelId: string): {
|
|
598
594
|
provider: "google-vertex-ai";
|
|
599
595
|
publisher: string;
|
|
600
596
|
model: string;
|
|
@@ -607,18 +603,15 @@ declare function splitCloudflareGatewayModelId(modelId: string): {
|
|
|
607
603
|
model: string;
|
|
608
604
|
publisher: undefined;
|
|
609
605
|
};
|
|
610
|
-
declare function getEffectiveProviderAndModel({
|
|
611
|
-
provider,
|
|
612
|
-
model
|
|
613
|
-
}: {
|
|
606
|
+
export declare function getEffectiveProviderAndModel({ provider, model }: {
|
|
614
607
|
provider: string | undefined;
|
|
615
608
|
model: string | undefined;
|
|
616
609
|
}): {
|
|
617
610
|
provider: string | undefined;
|
|
618
611
|
model: string | undefined;
|
|
619
612
|
};
|
|
620
|
-
declare const OPENAI_COMPATIBLE_VENDOR_BASE_URLS: Record<OpenAiCompatibleVendor, string>;
|
|
621
|
-
declare const ACTIVEPIECES_CHAT_TIERS: readonly [{
|
|
613
|
+
export declare const OPENAI_COMPATIBLE_VENDOR_BASE_URLS: Record<OpenAiCompatibleVendor, string>;
|
|
614
|
+
export declare const ACTIVEPIECES_CHAT_TIERS: readonly [{
|
|
622
615
|
readonly id: "fast";
|
|
623
616
|
readonly label: "Fast";
|
|
624
617
|
readonly modelId: "anthropic/claude-haiku-4.5";
|
|
@@ -640,8 +633,8 @@ declare const ACTIVEPIECES_CHAT_TIERS: readonly [{
|
|
|
640
633
|
readonly thinkingBudget: 20000;
|
|
641
634
|
readonly creditWeight: 20;
|
|
642
635
|
}];
|
|
643
|
-
declare const DEFAULT_CHAT_TIER_ID: "smart";
|
|
644
|
-
declare const AI_PROVIDER_CAPABILITIES: Record<AIProviderName, AIProviderCapabilities>;
|
|
636
|
+
export declare const DEFAULT_CHAT_TIER_ID: "smart";
|
|
637
|
+
export declare const AI_PROVIDER_CAPABILITIES: Record<AIProviderName, AIProviderCapabilities>;
|
|
645
638
|
type AIWebSearchMode = "native" | "plugin";
|
|
646
639
|
type OpenAiCompatibleVendor = AIProviderName.XAI | AIProviderName.DEEPSEEK | AIProviderName.ZAI | AIProviderName.QWEN | AIProviderName.MINIMAX | AIProviderName.MOONSHOT;
|
|
647
640
|
type AIProviderCapabilities = {
|
|
@@ -654,7 +647,7 @@ type AIProviderCapabilities = {
|
|
|
654
647
|
};
|
|
655
648
|
//#endregion
|
|
656
649
|
//#region upstream/core-piece-types/lib/forms.d.ts
|
|
657
|
-
declare const FileResponseInterface: z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
650
|
+
export declare const FileResponseInterface: z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
658
651
|
base64Url: z.ZodMiniString<string>;
|
|
659
652
|
fileName: z.ZodMiniString<string>;
|
|
660
653
|
extension: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
@@ -663,13 +656,13 @@ declare const FileResponseInterface: z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
|
663
656
|
url: z.ZodMiniString<string>;
|
|
664
657
|
fileName: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
665
658
|
}, z.core.$strip>]>;
|
|
666
|
-
type FileResponseInterface = z.infer<typeof FileResponseInterface>;
|
|
667
|
-
declare enum HumanInputFormResultTypes {
|
|
659
|
+
export type FileResponseInterface = z.infer<typeof FileResponseInterface>;
|
|
660
|
+
export declare enum HumanInputFormResultTypes {
|
|
668
661
|
FILE = "file",
|
|
669
662
|
MARKDOWN = "markdown"
|
|
670
663
|
}
|
|
671
|
-
declare function createKeyForFormInput(displayName: string): string;
|
|
672
|
-
declare const HumanInputFormResult: z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
664
|
+
export declare function createKeyForFormInput(displayName: string): string;
|
|
665
|
+
export declare const HumanInputFormResult: z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
673
666
|
type: z.ZodMiniLiteral<HumanInputFormResultTypes.FILE>;
|
|
674
667
|
value: z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
675
668
|
base64Url: z.ZodMiniString<string>;
|
|
@@ -693,16 +686,16 @@ declare const HumanInputFormResult: z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
|
693
686
|
fileName: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
694
687
|
}, z.core.$strip>]>>>;
|
|
695
688
|
}, z.core.$strip>]>;
|
|
696
|
-
type HumanInputFormResult = z.infer<typeof HumanInputFormResult>;
|
|
697
|
-
declare const ChatFormResponse: z.ZodMiniObject<{
|
|
689
|
+
export type HumanInputFormResult = z.infer<typeof HumanInputFormResult>;
|
|
690
|
+
export declare const ChatFormResponse: z.ZodMiniObject<{
|
|
698
691
|
sessionId: z.ZodMiniString<string>;
|
|
699
692
|
message: z.ZodMiniString<string>;
|
|
700
693
|
files: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
701
694
|
}, z.core.$strip>;
|
|
702
|
-
type ChatFormResponse = z.infer<typeof ChatFormResponse>;
|
|
695
|
+
export type ChatFormResponse = z.infer<typeof ChatFormResponse>;
|
|
703
696
|
//#endregion
|
|
704
697
|
//#region upstream/core-piece-types/lib/tables.d.ts
|
|
705
|
-
declare enum FieldType {
|
|
698
|
+
export declare enum FieldType {
|
|
706
699
|
TEXT = "TEXT",
|
|
707
700
|
NUMBER = "NUMBER",
|
|
708
701
|
DATE = "DATE",
|
|
@@ -717,12 +710,12 @@ declare enum TableAutomationStatus {
|
|
|
717
710
|
ENABLED = "ENABLED",
|
|
718
711
|
DISABLED = "DISABLED"
|
|
719
712
|
}
|
|
720
|
-
declare enum TableWebhookEventType {
|
|
713
|
+
export declare enum TableWebhookEventType {
|
|
721
714
|
RECORD_CREATED = "RECORD_CREATED",
|
|
722
715
|
RECORD_UPDATED = "RECORD_UPDATED",
|
|
723
716
|
RECORD_DELETED = "RECORD_DELETED"
|
|
724
717
|
}
|
|
725
|
-
declare enum FilterOperator {
|
|
718
|
+
export declare enum FilterOperator {
|
|
726
719
|
EQ = "eq",
|
|
727
720
|
NEQ = "neq",
|
|
728
721
|
GT = "gt",
|
|
@@ -733,7 +726,10 @@ declare enum FilterOperator {
|
|
|
733
726
|
EXISTS = "exists",
|
|
734
727
|
NOT_EXISTS = "not_exists"
|
|
735
728
|
}
|
|
736
|
-
declare const Field: z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
729
|
+
export declare const Field: z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
730
|
+
id: z.ZodMiniString<string>;
|
|
731
|
+
created: z.ZodMiniPipe<z.ZodMiniTransform<unknown, unknown>, z.ZodMiniString<string>>;
|
|
732
|
+
updated: z.ZodMiniPipe<z.ZodMiniTransform<unknown, unknown>, z.ZodMiniString<string>>;
|
|
737
733
|
name: z.ZodMiniString<string>;
|
|
738
734
|
externalId: z.ZodMiniString<string>;
|
|
739
735
|
type: z.ZodMiniLiteral<FieldType.STATIC_DROPDOWN>;
|
|
@@ -744,33 +740,33 @@ declare const Field: z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
|
744
740
|
value: z.ZodMiniString<string>;
|
|
745
741
|
}, z.core.$strip>>;
|
|
746
742
|
}, z.core.$strip>;
|
|
743
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
747
744
|
id: z.ZodMiniString<string>;
|
|
748
745
|
created: z.ZodMiniPipe<z.ZodMiniTransform<unknown, unknown>, z.ZodMiniString<string>>;
|
|
749
746
|
updated: z.ZodMiniPipe<z.ZodMiniTransform<unknown, unknown>, z.ZodMiniString<string>>;
|
|
750
|
-
}, z.core.$strip>, z.ZodMiniObject<{
|
|
751
747
|
name: z.ZodMiniString<string>;
|
|
752
748
|
externalId: z.ZodMiniString<string>;
|
|
753
749
|
type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<FieldType.TEXT>, z.ZodMiniLiteral<FieldType.NUMBER>, z.ZodMiniLiteral<FieldType.DATE>, z.ZodMiniLiteral<FieldType.DATETIME>]>;
|
|
754
750
|
tableId: z.ZodMiniString<string>;
|
|
755
751
|
projectId: z.ZodMiniString<string>;
|
|
752
|
+
}, z.core.$strip>]>;
|
|
753
|
+
export type Field = z.infer<typeof Field>;
|
|
754
|
+
export declare const Table: z.ZodMiniObject<{
|
|
756
755
|
id: z.ZodMiniString<string>;
|
|
757
756
|
created: z.ZodMiniPipe<z.ZodMiniTransform<unknown, unknown>, z.ZodMiniString<string>>;
|
|
758
757
|
updated: z.ZodMiniPipe<z.ZodMiniTransform<unknown, unknown>, z.ZodMiniString<string>>;
|
|
759
|
-
}, z.core.$strip>]>;
|
|
760
|
-
type Field = z.infer<typeof Field>;
|
|
761
|
-
declare const Table: z.ZodMiniObject<{
|
|
762
758
|
name: z.ZodMiniString<string>;
|
|
763
759
|
folderId: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
764
760
|
projectId: z.ZodMiniString<string>;
|
|
765
761
|
externalId: z.ZodMiniString<string>;
|
|
766
762
|
status: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniEnum<typeof TableAutomationStatus>>>;
|
|
767
763
|
trigger: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniEnum<typeof TableAutomationTrigger>>>;
|
|
764
|
+
}, z.core.$strip>;
|
|
765
|
+
export type Table = z.infer<typeof Table>;
|
|
766
|
+
export declare const PopulatedRecord: z.ZodMiniObject<{
|
|
768
767
|
id: z.ZodMiniString<string>;
|
|
769
768
|
created: z.ZodMiniPipe<z.ZodMiniTransform<unknown, unknown>, z.ZodMiniString<string>>;
|
|
770
769
|
updated: z.ZodMiniPipe<z.ZodMiniTransform<unknown, unknown>, z.ZodMiniString<string>>;
|
|
771
|
-
}, z.core.$strip>;
|
|
772
|
-
type Table = z.infer<typeof Table>;
|
|
773
|
-
declare const PopulatedRecord: z.ZodMiniObject<{
|
|
774
770
|
tableId: z.ZodMiniString<string>;
|
|
775
771
|
projectId: z.ZodMiniString<string>;
|
|
776
772
|
cells: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
@@ -779,18 +775,15 @@ declare const PopulatedRecord: z.ZodMiniObject<{
|
|
|
779
775
|
value: z.ZodMiniUnknown;
|
|
780
776
|
fieldName: z.ZodMiniString<string>;
|
|
781
777
|
}, z.core.$strip>>;
|
|
782
|
-
id: z.ZodMiniString<string>;
|
|
783
|
-
created: z.ZodMiniPipe<z.ZodMiniTransform<unknown, unknown>, z.ZodMiniString<string>>;
|
|
784
|
-
updated: z.ZodMiniPipe<z.ZodMiniTransform<unknown, unknown>, z.ZodMiniString<string>>;
|
|
785
778
|
}, z.core.$strip>;
|
|
786
|
-
type PopulatedRecord = z.infer<typeof PopulatedRecord>;
|
|
787
|
-
declare const CreateTableWebhookRequest: z.ZodMiniObject<{
|
|
779
|
+
export type PopulatedRecord = z.infer<typeof PopulatedRecord>;
|
|
780
|
+
export declare const CreateTableWebhookRequest: z.ZodMiniObject<{
|
|
788
781
|
events: z.ZodMiniArray<z.ZodMiniEnum<typeof TableWebhookEventType>>;
|
|
789
782
|
webhookUrl: z.ZodMiniString<string>;
|
|
790
783
|
flowId: z.ZodMiniString<string>;
|
|
791
784
|
}, z.core.$strip>;
|
|
792
|
-
type CreateTableWebhookRequest = z.infer<typeof CreateTableWebhookRequest>;
|
|
793
|
-
declare const ExportTableResponse: z.ZodMiniObject<{
|
|
785
|
+
export type CreateTableWebhookRequest = z.infer<typeof CreateTableWebhookRequest>;
|
|
786
|
+
export declare const ExportTableResponse: z.ZodMiniObject<{
|
|
794
787
|
fields: z.ZodMiniArray<z.ZodMiniObject<{
|
|
795
788
|
id: z.ZodMiniString<string>;
|
|
796
789
|
name: z.ZodMiniString<string>;
|
|
@@ -798,8 +791,8 @@ declare const ExportTableResponse: z.ZodMiniObject<{
|
|
|
798
791
|
rows: z.ZodMiniArray<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
799
792
|
name: z.ZodMiniString<string>;
|
|
800
793
|
}, z.core.$strip>;
|
|
801
|
-
type ExportTableResponse = z.infer<typeof ExportTableResponse>;
|
|
802
|
-
declare const ListTablesRequest: z.ZodMiniObject<{
|
|
794
|
+
export type ExportTableResponse = z.infer<typeof ExportTableResponse>;
|
|
795
|
+
export declare const ListTablesRequest: z.ZodMiniObject<{
|
|
803
796
|
projectId: z.ZodMiniString<string>;
|
|
804
797
|
limit: z.ZodMiniOptional<z.ZodMiniNumber<unknown>>;
|
|
805
798
|
cursor: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
@@ -808,16 +801,16 @@ declare const ListTablesRequest: z.ZodMiniObject<{
|
|
|
808
801
|
folderId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
809
802
|
folderIds: z.ZodMiniPipe<z.ZodMiniTransform<any[] | undefined, unknown>, z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>>;
|
|
810
803
|
}, z.core.$strip>;
|
|
811
|
-
type ListTablesRequest = z.infer<typeof ListTablesRequest>;
|
|
812
|
-
declare const CreateRecordsRequest: z.ZodMiniObject<{
|
|
804
|
+
export type ListTablesRequest = z.infer<typeof ListTablesRequest>;
|
|
805
|
+
export declare const CreateRecordsRequest: z.ZodMiniObject<{
|
|
813
806
|
records: z.ZodMiniArray<z.ZodMiniArray<z.ZodMiniObject<{
|
|
814
807
|
fieldId: z.ZodMiniString<string>;
|
|
815
808
|
value: z.ZodMiniPipe<z.ZodMiniTransform<string | null | undefined, unknown>, z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
816
809
|
}, z.core.$strip>>>;
|
|
817
810
|
tableId: z.ZodMiniString<string>;
|
|
818
811
|
}, z.core.$strip>;
|
|
819
|
-
type CreateRecordsRequest = z.infer<typeof CreateRecordsRequest>;
|
|
820
|
-
declare const UpdateRecordRequest: z.ZodMiniObject<{
|
|
812
|
+
export type CreateRecordsRequest = z.infer<typeof CreateRecordsRequest>;
|
|
813
|
+
export declare const UpdateRecordRequest: z.ZodMiniObject<{
|
|
821
814
|
cells: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
822
815
|
fieldId: z.ZodMiniString<string>;
|
|
823
816
|
value: z.ZodMiniPipe<z.ZodMiniTransform<string | null | undefined, unknown>, z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
@@ -825,8 +818,8 @@ declare const UpdateRecordRequest: z.ZodMiniObject<{
|
|
|
825
818
|
tableId: z.ZodMiniString<string>;
|
|
826
819
|
agentUpdate: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
827
820
|
}, z.core.$strip>;
|
|
828
|
-
type UpdateRecordRequest = z.infer<typeof UpdateRecordRequest>;
|
|
829
|
-
declare const Filter: z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
821
|
+
export type UpdateRecordRequest = z.infer<typeof UpdateRecordRequest>;
|
|
822
|
+
export declare const Filter: z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
830
823
|
fieldId: z.ZodMiniString<string>;
|
|
831
824
|
operator: z.ZodMiniLiteral<FilterOperator.EQ>;
|
|
832
825
|
value: z.ZodMiniString<string>;
|
|
@@ -861,8 +854,8 @@ declare const Filter: z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
|
861
854
|
fieldId: z.ZodMiniString<string>;
|
|
862
855
|
operator: z.ZodMiniLiteral<FilterOperator.NOT_EXISTS>;
|
|
863
856
|
}, z.core.$strip>], "operator">;
|
|
864
|
-
type Filter = z.infer<typeof Filter>;
|
|
865
|
-
declare const ListRecordsRequest: z.ZodMiniObject<{
|
|
857
|
+
export type Filter = z.infer<typeof Filter>;
|
|
858
|
+
export declare const ListRecordsRequest: z.ZodMiniObject<{
|
|
866
859
|
tableId: z.ZodMiniString<string>;
|
|
867
860
|
limit: z.ZodMiniOptional<z.ZodMiniNumber<unknown>>;
|
|
868
861
|
cursor: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
@@ -902,44 +895,44 @@ declare const ListRecordsRequest: z.ZodMiniObject<{
|
|
|
902
895
|
operator: z.ZodMiniLiteral<FilterOperator.NOT_EXISTS>;
|
|
903
896
|
}, z.core.$strip>], "operator">>>>;
|
|
904
897
|
}, z.core.$strip>;
|
|
905
|
-
declare const StaticDropdownEmptyOption: {
|
|
898
|
+
export declare const StaticDropdownEmptyOption: {
|
|
906
899
|
label: string;
|
|
907
900
|
value: string;
|
|
908
901
|
};
|
|
909
|
-
type ListRecordsRequest = Omit<z.infer<typeof ListRecordsRequest>, "cursor"> & {
|
|
902
|
+
export type ListRecordsRequest = Omit<z.infer<typeof ListRecordsRequest>, "cursor"> & {
|
|
910
903
|
cursor: Cursor | undefined;
|
|
911
904
|
};
|
|
912
905
|
//#endregion
|
|
913
906
|
//#region upstream/core-piece-types/lib/flow-contracts.d.ts
|
|
914
|
-
declare enum FlowStatus {
|
|
907
|
+
export declare enum FlowStatus {
|
|
915
908
|
ENABLED = "ENABLED",
|
|
916
909
|
DISABLED = "DISABLED"
|
|
917
910
|
}
|
|
918
|
-
declare enum FlowTriggerType {
|
|
911
|
+
export declare enum FlowTriggerType {
|
|
919
912
|
EMPTY = "EMPTY",
|
|
920
913
|
PIECE = "PIECE_TRIGGER"
|
|
921
914
|
}
|
|
922
|
-
declare const StopResponse: z.ZodMiniObject<{
|
|
915
|
+
export declare const StopResponse: z.ZodMiniObject<{
|
|
923
916
|
status: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
924
917
|
body: z.ZodMiniOptional<z.ZodMiniUnknown>;
|
|
925
918
|
headers: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
926
919
|
}, z.core.$strip>;
|
|
927
|
-
type StopResponse = z.infer<typeof StopResponse>;
|
|
928
|
-
declare const Project: z.ZodMiniObject<{
|
|
920
|
+
export type StopResponse = z.infer<typeof StopResponse>;
|
|
921
|
+
export declare const Project: z.ZodMiniObject<{
|
|
922
|
+
id: z.ZodMiniString<string>;
|
|
923
|
+
created: z.ZodMiniPipe<z.ZodMiniTransform<unknown, unknown>, z.ZodMiniString<string>>;
|
|
924
|
+
updated: z.ZodMiniPipe<z.ZodMiniTransform<unknown, unknown>, z.ZodMiniString<string>>;
|
|
929
925
|
deleted: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTransform<unknown, unknown>, z.ZodMiniString<string>>>>;
|
|
930
926
|
ownerId: z.ZodMiniString<string>;
|
|
931
927
|
displayName: z.ZodMiniString<string>;
|
|
932
928
|
platformId: z.ZodMiniString<string>;
|
|
933
929
|
externalId: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
934
|
-
id: z.ZodMiniString<string>;
|
|
935
|
-
created: z.ZodMiniPipe<z.ZodMiniTransform<unknown, unknown>, z.ZodMiniString<string>>;
|
|
936
|
-
updated: z.ZodMiniPipe<z.ZodMiniTransform<unknown, unknown>, z.ZodMiniString<string>>;
|
|
937
930
|
}, z.core.$strip>;
|
|
938
|
-
type Project = z.infer<typeof Project>;
|
|
939
|
-
declare const USE_DRAFT_QUERY_PARAM_NAME = "useDraft";
|
|
940
|
-
declare const PARENT_RUN_ID_HEADER = "ap-parent-run-id";
|
|
941
|
-
declare const FAIL_PARENT_ON_FAILURE_HEADER = "ap-fail-parent-on-failure";
|
|
942
|
-
declare const RAW_PAYLOAD_HEADER = "ap-raw-payload";
|
|
931
|
+
export type Project = z.infer<typeof Project>;
|
|
932
|
+
export declare const USE_DRAFT_QUERY_PARAM_NAME = "useDraft";
|
|
933
|
+
export declare const PARENT_RUN_ID_HEADER = "ap-parent-run-id";
|
|
934
|
+
export declare const FAIL_PARENT_ON_FAILURE_HEADER = "ap-fail-parent-on-failure";
|
|
935
|
+
export declare const RAW_PAYLOAD_HEADER = "ap-raw-payload";
|
|
943
936
|
type PopulatedFlow = {
|
|
944
937
|
id: string;
|
|
945
938
|
externalId?: string;
|
|
@@ -959,7 +952,7 @@ type PopulatedFlow = {
|
|
|
959
952
|
};
|
|
960
953
|
//#endregion
|
|
961
954
|
//#region upstream/core-piece-types/lib/mcp-piece.d.ts
|
|
962
|
-
declare enum McpPropertyType {
|
|
955
|
+
export declare enum McpPropertyType {
|
|
963
956
|
TEXT = "Text",
|
|
964
957
|
BOOLEAN = "Boolean",
|
|
965
958
|
DATE = "Date",
|
|
@@ -967,14 +960,14 @@ declare enum McpPropertyType {
|
|
|
967
960
|
ARRAY = "Array",
|
|
968
961
|
OBJECT = "Object"
|
|
969
962
|
}
|
|
970
|
-
declare const McpProperty: z.ZodMiniObject<{
|
|
963
|
+
export declare const McpProperty: z.ZodMiniObject<{
|
|
971
964
|
name: z.ZodMiniString<string>;
|
|
972
965
|
description: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
973
966
|
type: z.ZodMiniString<string>;
|
|
974
967
|
required: z.ZodMiniBoolean<boolean>;
|
|
975
968
|
}, z.core.$strip>;
|
|
976
|
-
type McpProperty = z.infer<typeof McpProperty>;
|
|
977
|
-
declare const McpTrigger: z.ZodMiniObject<{
|
|
969
|
+
export type McpProperty = z.infer<typeof McpProperty>;
|
|
970
|
+
export declare const McpTrigger: z.ZodMiniObject<{
|
|
978
971
|
pieceName: z.ZodMiniString<string>;
|
|
979
972
|
triggerName: z.ZodMiniString<string>;
|
|
980
973
|
input: z.ZodMiniObject<{
|
|
@@ -989,7 +982,7 @@ declare const McpTrigger: z.ZodMiniObject<{
|
|
|
989
982
|
returnsResponse: z.ZodMiniBoolean<boolean>;
|
|
990
983
|
}, z.core.$strip>;
|
|
991
984
|
}, z.core.$strip>;
|
|
992
|
-
type McpTrigger = z.infer<typeof McpTrigger>;
|
|
985
|
+
export type McpTrigger = z.infer<typeof McpTrigger>;
|
|
993
986
|
//#endregion
|
|
994
987
|
//#region upstream/core-piece-types/lib/engine-tools.d.ts
|
|
995
988
|
type ExecuteToolResponse = {
|
|
@@ -998,10 +991,16 @@ type ExecuteToolResponse = {
|
|
|
998
991
|
resolvedInput: Record<string, unknown>;
|
|
999
992
|
errorMessage?: unknown;
|
|
1000
993
|
};
|
|
1001
|
-
declare function normalizeToolOutputToExecuteResponse(raw: unknown): ExecuteToolResponse;
|
|
994
|
+
export declare function normalizeToolOutputToExecuteResponse(raw: unknown): ExecuteToolResponse;
|
|
995
|
+
//#endregion
|
|
996
|
+
//#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>;
|
|
998
|
+
export declare const piecePropertiesUtils: {
|
|
999
|
+
buildSchema: typeof buildSchema;
|
|
1000
|
+
};
|
|
1002
1001
|
//#endregion
|
|
1003
1002
|
//#region upstream/framework/lib/piece.d.ts
|
|
1004
|
-
declare class Piece<PieceAuth extends PieceAuthProperty | PieceAuthProperty[] | undefined = PieceAuthProperty> implements Omit<PieceBase, "version" | "name"> {
|
|
1003
|
+
export declare class Piece<PieceAuth extends PieceAuthProperty | PieceAuthProperty[] | undefined = PieceAuthProperty> implements Omit<PieceBase, "version" | "name"> {
|
|
1005
1004
|
readonly displayName: string;
|
|
1006
1005
|
readonly logoUrl: string;
|
|
1007
1006
|
readonly authors: string[];
|
|
@@ -1024,7 +1023,7 @@ declare class Piece<PieceAuth extends PieceAuthProperty | PieceAuthProperty[] |
|
|
|
1024
1023
|
actions(): Record<string, Action>;
|
|
1025
1024
|
triggers(): Record<string, Trigger>;
|
|
1026
1025
|
}
|
|
1027
|
-
declare const createPiece: <PieceAuth extends PieceAuthProperty | PieceAuthProperty[] | undefined>(params: CreatePieceParams<PieceAuth>) => Piece<PieceAuth>;
|
|
1026
|
+
export declare const createPiece: <PieceAuth extends PieceAuthProperty | PieceAuthProperty[] | undefined>(params: CreatePieceParams<PieceAuth>) => Piece<PieceAuth>;
|
|
1028
1027
|
type CreatePieceParams<PieceAuth extends PieceAuthProperty | PieceAuthProperty[] | undefined = undefined> = {
|
|
1029
1028
|
displayName: string;
|
|
1030
1029
|
logoUrl: string;
|
|
@@ -1056,8 +1055,9 @@ type BackwardCompatiblePieceMetadata = Omit<PieceMetadata, "name" | "version" |
|
|
|
1056
1055
|
};
|
|
1057
1056
|
//#endregion
|
|
1058
1057
|
//#region upstream/framework/lib/i18n.d.ts
|
|
1059
|
-
declare const pieceTranslation: {
|
|
1060
|
-
translatePiece: <T extends PieceMetadataModelSummary | PieceMetadataModel>(params: TranslatePieceParams<T>) => T;
|
|
1058
|
+
export declare const pieceTranslation: {
|
|
1059
|
+
translatePiece: <T extends PieceMetadataModelSummary | PieceMetadataModel>(params: TranslatePieceParams<T>) => T;
|
|
1060
|
+
/**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
1061
|
initializeI18n: (pieceOutputPath: string) => Promise<I18nForPiece | undefined>;
|
|
1062
1062
|
pathsToValuesToTranslate: string[];
|
|
1063
1063
|
};
|
|
@@ -1068,10 +1068,10 @@ type TranslatePieceParams<T extends PieceMetadataModelSummary | PieceMetadataMod
|
|
|
1068
1068
|
};
|
|
1069
1069
|
//#endregion
|
|
1070
1070
|
//#region upstream/framework/lib/test/index.d.ts
|
|
1071
|
-
declare function createMockActionContext<Props extends InputPropertyMap>(params: {
|
|
1071
|
+
export declare function createMockActionContext<Props extends InputPropertyMap>(params: {
|
|
1072
1072
|
propsValue: StaticPropsValue<Props>;
|
|
1073
1073
|
}): ActionContext<undefined, Props>;
|
|
1074
|
-
declare function createMockPollingTriggerContext<Props extends InputPropertyMap>(params: {
|
|
1074
|
+
export declare function createMockPollingTriggerContext<Props extends InputPropertyMap>(params: {
|
|
1075
1075
|
propsValue: StaticPropsValue<Props>;
|
|
1076
1076
|
onSetSchedule?: (schedule: SetScheduleRequest) => void;
|
|
1077
1077
|
}): TriggerHookContext<undefined, Props, TriggerStrategy.POLLING>;
|
|
@@ -1142,7 +1142,7 @@ type WithReactor<C> = C & {
|
|
|
1142
1142
|
type PowerhouseActionContext<Auth extends AnyPieceAuth = undefined, Props extends InputPropertyMap = InputPropertyMap> = WithReactor<ActionContext<Auth, Props>>;
|
|
1143
1143
|
type PowerhousePropertyContext = WithReactor<PropertyContext>;
|
|
1144
1144
|
type PowerhouseTriggerHookContext<Auth extends AnyPieceAuth, Props extends InputPropertyMap, S extends TriggerStrategy> = WithReactor<TriggerHookContext<Auth, Props, S>>;
|
|
1145
|
-
declare function reactorOf(ctx: unknown): ReactorService;
|
|
1145
|
+
export declare function reactorOf(ctx: unknown): ReactorService;
|
|
1146
1146
|
//#endregion
|
|
1147
1147
|
//#region src/powerhouse/package-piece.d.ts
|
|
1148
1148
|
interface PackagePiece {
|
|
@@ -1152,5 +1152,6 @@ interface PackagePiece {
|
|
|
1152
1152
|
entry?: string;
|
|
1153
1153
|
}
|
|
1154
1154
|
//#endregion
|
|
1155
|
-
export {
|
|
1155
|
+
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, 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 };
|
|
1156
|
+
export {};
|
|
1156
1157
|
//# sourceMappingURL=index.d.ts.map
|