@proteos/sdk 0.32.1 → 0.34.0
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/{chunk-NZI4N4SK.cjs → chunk-HVO3UMFS.cjs} +12 -2
- package/dist/chunk-HVO3UMFS.cjs.map +1 -0
- package/dist/{chunk-JWLTUYS7.js → chunk-Y2TJBWC5.js} +12 -2
- package/dist/chunk-Y2TJBWC5.js.map +1 -0
- package/dist/index.cjs +91 -84
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +137 -41
- package/dist/index.d.ts +137 -41
- package/dist/index.js +9 -2
- package/dist/index.js.map +1 -1
- package/dist/meta/index.cjs +53 -53
- package/dist/meta/index.d.cts +1 -1
- package/dist/meta/index.d.ts +1 -1
- package/dist/meta/index.js +1 -1
- package/dist/{types-v9RkMuKf.d.cts → types-CiCNPrXT.d.cts} +35 -2
- package/dist/{types-v9RkMuKf.d.ts → types-CiCNPrXT.d.ts} +35 -2
- package/package.json +1 -1
- package/src/connector/types.ts +23 -1
- package/src/conversation/index.ts +29 -4
- package/src/conversation/types.ts +39 -0
- package/src/index.ts +10 -5
- package/src/meta/layout/elements.ts +35 -0
- package/src/meta/layout/index.ts +1 -0
- package/src/meta/types.ts +6 -0
- package/src/workflow/index.ts +2 -5
- package/src/workflow/types.ts +76 -33
- package/dist/chunk-JWLTUYS7.js.map +0 -1
- package/dist/chunk-NZI4N4SK.cjs.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as AuditFields, L as ListOptions, a as Attribute, U as UserRef$2, P as PageIterator, b as ListResult, c as ProteosClient, F as FileRef, d as PublicAccessOperation } from './types-
|
|
2
|
-
export { e as App, f as AppSchema, g as AppService, h as
|
|
1
|
+
import { A as AuditFields, L as ListOptions, a as Attribute, U as UserRef$2, P as PageIterator, b as ListResult, c as ProteosClient, F as FileRef, d as PublicAccessOperation } from './types-CiCNPrXT.cjs';
|
|
2
|
+
export { e as App, f as AppSchema, g as AppService, h as ArrayAttributeMeta, i as AttributeSchema, j as AttributeType, k as AuditFieldsSchema, C as ClientOptions, l as Column, m as ColumnSchema, n as ComparisonOperator, o as Component, p as ComponentSchema, q as ComponentService, r as CreateAppRequest, s as CreateComponentRequest, t as CreateDesignReferenceRequest, u as CreateEntityRequest, v as CreateListRequest, w as CreateListViewRequest, x as CreateMenuConfigurationRequest, y as CreatePageRequest, z as CreateVariableRequest, B as CurrencyAttributeMeta, D as CurrencyAttributeMetaSchema, E as CurrencySymbolSide, G as CurrencyValue, H as DEFAULT_OPTIONS, I as DEFAULT_PAGE_SIZE, J as DONE, K as DeployModuleRequest, M as DesignReference, N as DesignReferenceContent, O as DesignReferenceSchema, Q as DesignReferenceService, R as Done, S as Entity, T as EntitySchema, V as EntityService, W as EntityWithSchema, X as EntityWithSchemaSchema, Y as EnumAttributeMeta, Z as EnumValue, _ as FileAttributeMeta, $ as FileRefSchema, a0 as FilterElement, a1 as FilterElementSchema, a2 as FilterGroup, a3 as FilterGroupSchema, a4 as List, a5 as ListAppsOptions, a6 as ListComponentsOptions, a7 as ListDesignReferencesOptions, a8 as ListEntitiesOptions, a9 as ListFn, aa as ListListViewsOptions, ab as ListListsOptions, ac as ListMenuConfigurationsOptions, ad as ListModulesOptions, ae as ListPagesOptions, af as ListSchema, ag as ListService, ah as ListVariablesOptions, ai as ListView, aj as ListViewSchema, ak as ListViewService, al as LogicalOperator, am as MenuConfiguration, an as MenuConfigurationSchema, ao as MenuConfigurationService, ap as MenuItem, aq as MenuItemSchema, ar as MenuItemType, as as MetaClient, at as MetaListOptions, au as Module, av as ModuleSchema, aw as ModuleService, ax as ModuleStatus, ay as OnDeleteAction, az as OnDeleteActionSchema, aA as PLATFORM_ATTRIBUTE_NAMES, aB as PLATFORM_USER_ID, aC as Page, aD as PageAction, aE as PageActionSchema, aF as PageLayout, aG as PageLayoutSchema, aH as PageSchema, aI as PageService, aJ as PageType, aK as PublicPageComponent, aL as PublicPageResponse, aM as RelationAttributeMeta, aN as RelationAttributeMetaSchema, aO as RequestOptions, aP as ResolvedClientOptions, aQ as ResponseMeta, aR as ResponseMetaSchema, aS as SortConfig, aT as SortConfigSchema, aU as SortDirection, aV as Timestamps, aW as TokenProvider, aX as UpdateAppRequest, aY as UpdateComponentRequest, aZ as UpdateDesignReferenceRequest, a_ as UpdateEntityRequest, a$ as UpdateListRequest, b0 as UpdateListViewRequest, b1 as UpdateMenuConfigurationRequest, b2 as UpdatePageRequest, b3 as UpdateVariableRequest, b4 as UserRefSchema, b5 as UserType, b6 as Variable, b7 as VariableSchema, b8 as VariableService, b9 as allCurrencyCodes, ba as createIterator, bb as createListResultSchema, bc as currencyLabel, bd as currencySymbol, be as currencySymbolSide, bf as formatAmount, bg as formatMoney, bh as isPlatformAttributeName, bi as localeNumberSeparators, bj as parseAmount, bk as parseCurrencyMeta, bl as parseFileMeta, bm as parseRelationMeta, bn as platformAttributes, bo as resolveOptions } from './types-CiCNPrXT.cjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1826,7 +1826,7 @@ type ConnectionStatus$1 = 'pending' | 'active' | 'error' | 'revoked';
|
|
|
1826
1826
|
/** org-wide integration vs a single user's grant. */
|
|
1827
1827
|
type ConnectionScope$1 = 'org' | 'user';
|
|
1828
1828
|
/** How a connector authenticates. */
|
|
1829
|
-
type CredentialKind = 'oauth' | 'api_key' | 'basic' | 'bot_token';
|
|
1829
|
+
type CredentialKind = 'oauth' | 'api_key' | 'basic' | 'bot_token' | 'service_account';
|
|
1830
1830
|
interface UserRef$1 {
|
|
1831
1831
|
type: string;
|
|
1832
1832
|
id: string;
|
|
@@ -1860,6 +1860,16 @@ interface ConnectorOAuthConfig {
|
|
|
1860
1860
|
client_id_variable_key: string;
|
|
1861
1861
|
client_secret_variable_key: string;
|
|
1862
1862
|
}
|
|
1863
|
+
/**
|
|
1864
|
+
* The service-account wiring of a connector supporting the service_account
|
|
1865
|
+
* kind. Like the OAuth app credentials, the SA key is an org VARIABLE —
|
|
1866
|
+
* key_variable_key names the default; a connection may reference its own via
|
|
1867
|
+
* settings.service_account_key_variable.
|
|
1868
|
+
*/
|
|
1869
|
+
interface ConnectorServiceAccountConfig {
|
|
1870
|
+
key_variable_key: string;
|
|
1871
|
+
scopes: string[];
|
|
1872
|
+
}
|
|
1863
1873
|
/** A connector TYPE (google-calendar, a customer's vertex-tax, …). */
|
|
1864
1874
|
interface Connector {
|
|
1865
1875
|
key: string;
|
|
@@ -1868,12 +1878,21 @@ interface Connector {
|
|
|
1868
1878
|
description?: string;
|
|
1869
1879
|
icon?: string;
|
|
1870
1880
|
credential_kind: CredentialKind;
|
|
1881
|
+
/** Every kind a connection may use; absent/empty = exactly [credential_kind]. */
|
|
1882
|
+
supported_credential_kinds?: CredentialKind[];
|
|
1871
1883
|
oauth?: ConnectorOAuthConfig;
|
|
1884
|
+
service_account?: ConnectorServiceAccountConfig;
|
|
1872
1885
|
/**
|
|
1873
1886
|
* COMPUTED: the broker's per-environment OAuth callback — register it as an
|
|
1874
1887
|
* authorized redirect URI on the provider app.
|
|
1875
1888
|
*/
|
|
1876
1889
|
oauth_redirect_uri?: string;
|
|
1890
|
+
/**
|
|
1891
|
+
* COMPUTED: the environment ships platform-default OAuth app credentials
|
|
1892
|
+
* for this connector, so the connect wizard can skip collecting them.
|
|
1893
|
+
* Org variables always override the default.
|
|
1894
|
+
*/
|
|
1895
|
+
has_default_app_credentials?: boolean;
|
|
1877
1896
|
config_schema?: Attribute[];
|
|
1878
1897
|
methods: ConnectorMethod[];
|
|
1879
1898
|
origin: 'pre_built' | 'custom';
|
|
@@ -1893,6 +1912,11 @@ interface ConnectorConnection {
|
|
|
1893
1912
|
scope: ConnectionScope$1;
|
|
1894
1913
|
owner?: UserRef$1;
|
|
1895
1914
|
external_account_id: string;
|
|
1915
|
+
/** Redacted {kind, data} credential envelope — secrets are masked; use kind to tell how the connection authenticates. */
|
|
1916
|
+
credentials?: {
|
|
1917
|
+
kind: CredentialKind;
|
|
1918
|
+
data?: Record<string, unknown>;
|
|
1919
|
+
};
|
|
1896
1920
|
settings: Record<string, unknown>;
|
|
1897
1921
|
status: ConnectionStatus$1;
|
|
1898
1922
|
status_detail?: string;
|
|
@@ -2013,7 +2037,7 @@ type Channel = 'slack' | 'email' | 'linkedin' | 'sms' | 'teams-chat' | 'telegram
|
|
|
2013
2037
|
* meeting-bot family: adhoc-meeting dispatches by meeting URL; the calendar
|
|
2014
2038
|
* keys auto-join through a user's connected calendar.
|
|
2015
2039
|
*/
|
|
2016
|
-
type ConnectorKey = 'slack' | 'gmail' | 'echo' | 'unipile-whatsapp' | 'unipile-linkedin' | 'unipile-telegram' | 'unipile-instagram' | 'unipile-messenger' | 'unipile-x' | 'adhoc-meeting' | 'google-calendar-meeting' | 'microsoft-calendar-meeting';
|
|
2040
|
+
type ConnectorKey = 'slack' | 'gmail' | 'outlook' | 'echo' | 'unipile-whatsapp' | 'unipile-linkedin' | 'unipile-telegram' | 'unipile-instagram' | 'unipile-messenger' | 'unipile-x' | 'adhoc-meeting' | 'google-calendar-meeting' | 'microsoft-calendar-meeting';
|
|
2017
2041
|
/**
|
|
2018
2042
|
* Who operates the integration mechanics behind a connector: Proteos' own
|
|
2019
2043
|
* integration (native), an account aggregated through Unipile (unipile), or
|
|
@@ -2034,6 +2058,15 @@ type ConnectionStatus = 'pending' | 'active' | 'error' | 'revoked';
|
|
|
2034
2058
|
* drafting) — hidden from the default list until the first successful send.
|
|
2035
2059
|
*/
|
|
2036
2060
|
type ConversationStatus = 'active' | 'ended' | 'archived' | 'draft';
|
|
2061
|
+
/**
|
|
2062
|
+
* Generation lifecycle of a conversation's `summary`. `none` is the resting
|
|
2063
|
+
* default — no summary exists and none is being produced, the state of every
|
|
2064
|
+
* conversation that is not a transcript-backed meeting. `processing` is claimed
|
|
2065
|
+
* for the duration of one generation run (automatic at transcript attach, or a
|
|
2066
|
+
* manual `meetings.summarize()`), so any client can render "Summarizing…"
|
|
2067
|
+
* without having started the run itself.
|
|
2068
|
+
*/
|
|
2069
|
+
type ConversationSummaryStatus = 'none' | 'processing' | 'completed' | 'failed';
|
|
2037
2070
|
type AgentListenerTriggerType = 'always' | 'mention' | 'channel' | 'keyword';
|
|
2038
2071
|
interface UserRef {
|
|
2039
2072
|
type: string;
|
|
@@ -2116,6 +2149,17 @@ interface ReactionCapability {
|
|
|
2116
2149
|
/** 0 = unbounded (Slack); 1 = single-slot (a new reaction replaces the old). */
|
|
2117
2150
|
max_per_actor: number;
|
|
2118
2151
|
}
|
|
2152
|
+
/** How far back a historical backfill ("sync all") reaches. */
|
|
2153
|
+
type ConnectionSyncRange = '30d' | '90d' | '365d' | 'all';
|
|
2154
|
+
/**
|
|
2155
|
+
* Lifecycle of a historical backfill, carried as settings.sync_status.
|
|
2156
|
+
* Absent key = 'none' (never synced). 'in_progress' is claimed before the
|
|
2157
|
+
* trigger request returns — poll get(id) until it flips to done/failed.
|
|
2158
|
+
*/
|
|
2159
|
+
type ConnectionSyncStatus = 'none' | 'in_progress' | 'done' | 'failed';
|
|
2160
|
+
interface SyncConnectionRequest {
|
|
2161
|
+
range: ConnectionSyncRange;
|
|
2162
|
+
}
|
|
2119
2163
|
interface Connection {
|
|
2120
2164
|
id: string;
|
|
2121
2165
|
org_id: string;
|
|
@@ -2127,6 +2171,11 @@ interface Connection {
|
|
|
2127
2171
|
owner?: UserRef;
|
|
2128
2172
|
external_account_id: string;
|
|
2129
2173
|
credentials: ConnectionCredentials;
|
|
2174
|
+
/**
|
|
2175
|
+
* Connector-shaped configuration + state. A historical backfill writes the
|
|
2176
|
+
* sync_* keys here: sync_status (ConnectionSyncStatus), sync_range,
|
|
2177
|
+
* sync_started_at, sync_completed_at, sync_synced_count, sync_error.
|
|
2178
|
+
*/
|
|
2130
2179
|
settings: Record<string, unknown>;
|
|
2131
2180
|
status: ConnectionStatus;
|
|
2132
2181
|
/** Computed on read: the connector implements the reaction capability. */
|
|
@@ -2156,6 +2205,16 @@ interface Conversation {
|
|
|
2156
2205
|
* conversations, editable via update(). Absent when no summary exists.
|
|
2157
2206
|
*/
|
|
2158
2207
|
summary?: string;
|
|
2208
|
+
/**
|
|
2209
|
+
* Generation lifecycle of `summary`. Poll `conversations.get(id)` while this
|
|
2210
|
+
* reads `processing` to pick up the finished summary.
|
|
2211
|
+
*/
|
|
2212
|
+
summary_status: ConversationSummaryStatus;
|
|
2213
|
+
/**
|
|
2214
|
+
* When the current `processing` run was claimed; absent otherwise. Bounds the
|
|
2215
|
+
* claim server-side and gives clients an elapsed time to show.
|
|
2216
|
+
*/
|
|
2217
|
+
summary_started_at?: string;
|
|
2159
2218
|
status: ConversationStatus;
|
|
2160
2219
|
/**
|
|
2161
2220
|
* Room directory row a room-borne thread (Slack channel conversation) lives
|
|
@@ -2978,10 +3037,17 @@ interface MeetingService {
|
|
|
2978
3037
|
/** Make the bot leave the meeting and end the conversation (by conversation id). */
|
|
2979
3038
|
remove(conversationId: string): Promise<Conversation>;
|
|
2980
3039
|
/**
|
|
2981
|
-
*
|
|
2982
|
-
* transcript, overwriting any existing one
|
|
2983
|
-
*
|
|
2984
|
-
* conversation
|
|
3040
|
+
* START regenerating this meeting conversation's markdown summary from its
|
|
3041
|
+
* stored transcript, overwriting any existing one when it lands. Generation
|
|
3042
|
+
* runs server-side beyond this request, so the promise resolves as soon as the
|
|
3043
|
+
* conversation is CLAIMED — with `summary_status: 'processing'` and the OLD
|
|
3044
|
+
* `summary` still attached. Poll `conversations.get(id)` until
|
|
3045
|
+
* `summary_status` is `completed` (or `failed`) to read the new one.
|
|
3046
|
+
*
|
|
3047
|
+
* Rejects with `no_transcript` when the conversation has no completed
|
|
3048
|
+
* transcript to summarize, `summarization_unavailable` when the environment
|
|
3049
|
+
* has no generator configured, and `summary_in_progress` when a generation is
|
|
3050
|
+
* already running for this conversation.
|
|
2985
3051
|
*/
|
|
2986
3052
|
summarize(conversationId: string): Promise<Conversation>;
|
|
2987
3053
|
}
|
|
@@ -2994,6 +3060,15 @@ interface ConnectionService {
|
|
|
2994
3060
|
delete(id: string): Promise<void>;
|
|
2995
3061
|
/** Begin the connector's install flow; open the returned URL in a popup. */
|
|
2996
3062
|
install(id: string): Promise<InstallConnectionResponse>;
|
|
3063
|
+
/**
|
|
3064
|
+
* Trigger a historical backfill ("sync all") on an email connection: the
|
|
3065
|
+
* server fetches provider mail in the chosen range and ingests it through
|
|
3066
|
+
* the normal pipeline (conversation filters, dedupe, agent listeners).
|
|
3067
|
+
* Returns 202 with the connection already showing
|
|
3068
|
+
* settings.sync_status='in_progress' — poll get(id) until it flips to
|
|
3069
|
+
* done/failed. A running sync answers 409 (sync_already_running).
|
|
3070
|
+
*/
|
|
3071
|
+
sync(id: string, request: SyncConnectionRequest): Promise<Connection>;
|
|
2997
3072
|
/** Search the contact addresses this connection can reach (org-deduped) for the compose picker. */
|
|
2998
3073
|
listContactAddresses(connectionId: string, query?: ListContactAddressesQuery): Promise<ListResponse<ContactAddress>>;
|
|
2999
3074
|
/** Search a connection's addressable VENUES (Slack channels) for the compose picker. */
|
|
@@ -5281,7 +5356,9 @@ type NodeRuntime = 'go' | 'wasm' | 'intrinsic';
|
|
|
5281
5356
|
/** Coarse catalog grouping of a node type. */
|
|
5282
5357
|
type NodeGroup = 'trigger' | 'action' | 'transform' | 'flow';
|
|
5283
5358
|
/** Control type of one descriptor property (n8n INodeProperties paradigm). */
|
|
5284
|
-
type PropertyType = 'string' | 'number' | 'boolean' | 'options' | 'multi_options' | 'json' | 'date_time' | 'color' | 'notice' | 'hidden' | 'collection' | 'fixed_collection' | 'credentials_select' | 'button'
|
|
5359
|
+
type PropertyType = 'string' | 'number' | 'boolean' | 'options' | 'multi_options' | 'json' | 'date_time' | 'color' | 'notice' | 'hidden' | 'collection' | 'fixed_collection' | 'credentials_select' | 'button'
|
|
5360
|
+
/** Edits a platform attribute list (`Attribute[]`) via the shared attribute schema builder. */
|
|
5361
|
+
| 'attribute_schema' | 'resource_locator' | 'resource_mapper' | 'filter' | 'assignment_collection';
|
|
5285
5362
|
/**
|
|
5286
5363
|
* One named input or output port. Port keys are stable identifiers referenced
|
|
5287
5364
|
* by connections (never indexes).
|
|
@@ -5442,45 +5519,64 @@ interface MessageTriggerParams {
|
|
|
5442
5519
|
}
|
|
5443
5520
|
type KickoffType = 'message' | 'outcome';
|
|
5444
5521
|
/**
|
|
5445
|
-
* Where a kickoff draws its instruction text from: typed inline
|
|
5446
|
-
* resolved from a reusable agent-service Prompt by key
|
|
5522
|
+
* Where a kickoff slot draws its instruction text from: typed inline
|
|
5523
|
+
* (`manual`) or resolved from a reusable agent-service Prompt by key
|
|
5524
|
+
* (`prompt`) at run time.
|
|
5447
5525
|
*/
|
|
5448
5526
|
type KickoffSource = 'manual' | 'prompt';
|
|
5449
|
-
|
|
5450
|
-
|
|
5451
|
-
|
|
5452
|
-
|
|
5453
|
-
|
|
5454
|
-
|
|
5455
|
-
|
|
5456
|
-
|
|
5457
|
-
|
|
5458
|
-
|
|
5459
|
-
|
|
5460
|
-
|
|
5461
|
-
|
|
5462
|
-
type: 'text' | 'file';
|
|
5463
|
-
content?: string;
|
|
5464
|
-
file_id?: string;
|
|
5465
|
-
}
|
|
5466
|
-
interface OutcomeKickoff {
|
|
5467
|
-
/** Description and rubric are independently sourced (manual vs prompt). */
|
|
5527
|
+
/**
|
|
5528
|
+
* Flat, descriptor-driven parameters of the `action.agent` node (gated by
|
|
5529
|
+
* display_options on `kickoff_type` / `*_source`). `output_schema` declares
|
|
5530
|
+
* the node's structured output as platform attributes — the agent records it
|
|
5531
|
+
* via the session-scoped `set_output` tool; `is_output_required` fails the
|
|
5532
|
+
* node when the agent finishes without setting it.
|
|
5533
|
+
*/
|
|
5534
|
+
interface AgentActionParams {
|
|
5535
|
+
agent_key: string;
|
|
5536
|
+
kickoff_type: KickoffType;
|
|
5537
|
+
message_source?: KickoffSource;
|
|
5538
|
+
message_text?: string;
|
|
5539
|
+
message_prompt_key?: string;
|
|
5468
5540
|
description_source?: KickoffSource;
|
|
5469
5541
|
description?: string;
|
|
5470
5542
|
description_prompt_key?: string;
|
|
5471
5543
|
rubric_source?: KickoffSource;
|
|
5472
|
-
|
|
5544
|
+
rubric_type?: 'text' | 'file';
|
|
5545
|
+
rubric_content?: string;
|
|
5546
|
+
rubric_file_id?: string;
|
|
5473
5547
|
rubric_prompt_key?: string;
|
|
5474
5548
|
max_iterations?: number;
|
|
5549
|
+
output_schema?: Attribute[];
|
|
5550
|
+
is_output_required?: boolean;
|
|
5475
5551
|
}
|
|
5476
|
-
|
|
5477
|
-
|
|
5478
|
-
|
|
5479
|
-
|
|
5480
|
-
|
|
5481
|
-
|
|
5482
|
-
|
|
5483
|
-
|
|
5552
|
+
/**
|
|
5553
|
+
* Where a model call's optional system instruction comes from. Empty/absent
|
|
5554
|
+
* defaults to `none`.
|
|
5555
|
+
*/
|
|
5556
|
+
type SystemSource = 'none' | 'manual' | 'prompt';
|
|
5557
|
+
/**
|
|
5558
|
+
* Flat, descriptor-driven parameters of the `proteos-nodes-core.model-call`
|
|
5559
|
+
* node: one stateless LLM call per input item. The prompt and the optional
|
|
5560
|
+
* system instruction are independently sourced — typed inline (`manual`,
|
|
5561
|
+
* Liquid-resolved per item) or resolved verbatim from a reusable Prompt by key
|
|
5562
|
+
* (`prompt`). With `has_structured_output`, `output_schema` declares the
|
|
5563
|
+
* reply's shape as platform attributes: generation is schema-constrained
|
|
5564
|
+
* (forced tool) AND the node validates the returned JSON, failing the item
|
|
5565
|
+
* after one automatic repair attempt.
|
|
5566
|
+
*/
|
|
5567
|
+
interface ModelCallParams {
|
|
5568
|
+
/** Empty resolves to the platform default model. */
|
|
5569
|
+
model_id?: string;
|
|
5570
|
+
temperature?: number;
|
|
5571
|
+
max_tokens?: number;
|
|
5572
|
+
prompt_source?: KickoffSource;
|
|
5573
|
+
prompt_text?: string;
|
|
5574
|
+
prompt_key?: string;
|
|
5575
|
+
system_source?: SystemSource;
|
|
5576
|
+
system_text?: string;
|
|
5577
|
+
system_prompt_key?: string;
|
|
5578
|
+
has_structured_output?: boolean;
|
|
5579
|
+
output_schema?: Attribute[];
|
|
5484
5580
|
}
|
|
5485
5581
|
interface Workflow extends AuditFields {
|
|
5486
5582
|
org_id: string;
|
|
@@ -5590,7 +5686,7 @@ interface WorkflowVersion {
|
|
|
5590
5686
|
* node-execution-only: the node never ran because no items reached it).
|
|
5591
5687
|
*/
|
|
5592
5688
|
type ExecutionStatus = 'pending' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'skipped';
|
|
5593
|
-
type TriggerKind = 'schedule' | 'manual' | 'webhook' | 'event' | 'message' | 'workflow';
|
|
5689
|
+
type TriggerKind = 'schedule' | 'manual' | 'webhook' | 'event' | 'message' | 'connector' | 'platform_event' | 'workflow';
|
|
5594
5690
|
/**
|
|
5595
5691
|
* Why and how an execution fired. Flat, kind-discriminated: `kind` selects
|
|
5596
5692
|
* which optional fields are meaningful. `payload` carries the trigger's data
|
|
@@ -5805,4 +5901,4 @@ declare class WorkflowClient {
|
|
|
5805
5901
|
constructor(client: ProteosClient);
|
|
5806
5902
|
}
|
|
5807
5903
|
|
|
5808
|
-
export { AccountClient, type Action, type ActionBinding, ActionSchema, type ActionScope, ActionScopeSchema, type ActionService, type AddressFilterConfig, type Agent, type AgentActionParams, type AgentArtifactsPayload, AgentClient, type
|
|
5904
|
+
export { AccountClient, type Action, type ActionBinding, ActionSchema, type ActionScope, ActionScopeSchema, type ActionService, type AddressFilterConfig, type Agent, type AgentActionParams, type AgentArtifactsPayload, AgentClient, type AgentListener, type AgentListenerService, type AgentListenerTriggerType, type AgentMessagePayload, type AgentResourceListOptions, type AgentService, type AllFilterConfig, type ApiErrorResponse, type AppendEventRequest, type AssignPermissionRequest, type AssignRoleRequest, type AttachContactAddressRequest, type Attachment, Attribute, AuditFields, type AuthListOptions, type AutomatedFilterConfig, type AutomatedSignal, type BatchTransactionError, BatchTransactionErrorSchema, type BatchTransactionStatus, type BatchUpsertRecordsResponse, BatchUpsertRecordsResponseSchema, type BatchUpsertTransaction, type BatchUpsertTransactionResult, BatchUpsertTransactionResultSchema, BatchUpsertTransactionSchema, type BinaryRef, type BlockContactRequest, type Channel, type ClientEventType, type ClientToolSchema, type Connection, type ConnectionCredentials, type ConnectionEndpoint, type ConnectionScope, type ConnectionService, type ConnectionStatus, type ConnectionSyncRange, type ConnectionSyncStatus, type Connector, ConnectorClient, type ConnectorConnection, type ConnectionScope$1 as ConnectorConnectionScope, type ConnectionStatus$1 as ConnectorConnectionStatus, type ConnectionTokenResponse as ConnectorConnectionTokenResponse, type CredentialKind as ConnectorCredentialKind, type ConnectorKey, type ConnectorMethod, type ConnectorProvider, type ConsentStatus, type ConsumerGroup, type Contact, type ContactAddress, type ContactAddressKind, type ContactAddressSource, type ContactErasureRequest, type ContactMergeProposal, type ContactRef, type ContactService, type ContactSource, type ContactStatus, type ContentBlock$1 as ContentBlock, type ContentMatch, type ContentResponse, type ContextCompactedPayload, type Conversation, ConversationClient, type ConversationFilter, type ConversationFilterAction, type ConversationFilterConfig, type ConversationFilterEvent, type ConversationFilterService, type ConversationFilterType, type ConversationParticipant, type ConversationService, type ConversationStatus, type ConversationSummaryStatus, type CreateAgentListenerRequest, type CreateAgentRequest, type CreateConnectionRequest, type CreateConnectorConnectionRequest, type CreateConversationFilterRequest, type CreateFileMetadata, type CreateGlossaryTermRequest, type CreateLabelRequest, type CreateLinkRequest, type CreateMcpServerRequest, type CreateNodeRequest, type CreateOrganizationRequest, type CreatePromptRequest, type CreateRecordLinkRequest, type CreateRoleRequest, type CreateSessionRequest, type CreateToolRequest, type CreateUserRequest, type CreateWorkflowRequest, type CredentialSpec, type CronTriggerParams, DEFAULT_PORT, DataClient, type DependentAgent, type DependentSyncResult, type DispatchMeetingBotRequest, type DisplayOptions, type DomainFilterConfig, ERROR_PORT, type EditContentRequest, type EditContentResponse, type EmptyPayload, type ErasureRequestStatus, ErrorCode, type ErrorCodeType, type ErrorPayload, type EventTriggerParams, type EventType, type EventVerb, EventsClient, type ExecutionError, type ExecutionStatus, type ExecutionTriggerContext, type FileBlock, FileRef, type FileService, type FileVersionContent, type FilterMatchOn, FunctionsClient, type GetExecutionDetailResponse, type GetGraphOptions, type GetNodeExecutionItemsOptions, type GetNodeExecutionItemsResponse, type GetNodeTypesResponse, type GlossaryTerm, type GlossaryTermService, type GraphService, type InlineLinkRequest, type InstallConnectionResponse, type InstallConnectorConnectionResponse, type InternalConversationsFilterConfig, type InvokeActionResponse, type InvokeNodeMethodRequest, type InvokeNodeMethodResponse, type Item, type KickoffSource, type KickoffType, KnowledgeClient, type KnowledgeGraph, type KnowledgeGraphLink, type KnowledgeGraphNode, type KnowledgeLabel, KnowledgeLabelSchema, type KnowledgeLink, KnowledgeLinkSchema, type KnowledgeNode, type KnowledgeNodeLabel, KnowledgeNodeLabelSchema, type KnowledgeNodeMetadata, KnowledgeNodeMetadataSchema, KnowledgeNodeSchema, type KnowledgeNodeSearchResult, KnowledgeNodeSearchResultSchema, type KnowledgeRecordLink, KnowledgeRecordLinkSchema, type LabelService, type LinkService, type LinkType, type ListActionsOptions, type ListAgentListenersQuery, type ListAgentsOptions, type ListConnectionsQuery, type ListConnectorConnectionsQuery, type ListConnectorsQuery, type ListContactAddressesQuery, type ListContactMergeProposalsQuery, type ListContactsQuery, type ListConversationFilterEventsQuery, type ListConversationFiltersQuery, type ListConversationsQuery, type ListEventsOptions, type ListExecutionsOptions, type ListGlossaryTermsQuery, type ListLabelsOptions, type ListLinksOptions, type ListMcpServersOptions, type ListMessagesQuery, type ListNodesOptions, ListOptions, type ListOrganizationsOptions, type ListPromptsOptions, type ListRecordLinksOptions, type ListRecordsOptions, type ListResponse, ListResult, type ListRolePermissionsOptions, type ListRolesOptions, type ListRoomsQuery, type ListSessionsOptions, type ListSkillsOptions, type ListToolsOptions, type ListUserRoleAssignmentsOptions, type ListUsersOptions, type ListWorkflowsOptions, type ManualTriggerParams, type MatchMode, type McpBinding, type McpConnectionState, type McpConnectionStatus, type McpServer, type McpServerAuth, type McpServerOAuth, type McpServerService, type McpToolSummary, type MeService, type MeetingService, type MergeContactsRequest, type MergeProposalStatus, type Message, type ContentBlock as MessageContentBlock, type MessageDirection, type MessagePreview, type MessageRecipient, type MessageService, type MessageStatus, type MessageTriggerParams, type ModelCallParams, type ModelConfig, type ModelRequestEndPayload, type ModelRequestStartPayload, type ModelUsage, type NeighborDirection, type NeighborEdge, type NeighborNode, type NeighborsOptions, type NodeContentMatches, type NodeDescriptor, type NodeExecution, type NodeGroup, type NodeMethodOption, type NodeNeighborhood, NodeNeighborhoodSchema, type NodeOutline, type NodePosition, type NodeProperty, type NodeRetryPolicy, type NodeRuntime, type NodeService, type NodeStatus, type NodeType, type NodeTypeKey, type NodeTypeService, type NodeTypeStatus, type OnErrorPolicy, type Organization, OrganizationSchema, type OrganizationService, type OutlineHeading, type OutlineRequest, type OutlineResponse, PLATFORM_ENTITIES, PLATFORM_ENTITY_SLUGS, PageIterator, type PairedItem, type ParseStatus, type Permission, type PermissionEventSource, type PermissionEventType, type PlatformEntity, type PlatformEvent, type PortSpec, type Prompt, type PromptService, type PromptVersion, type PropertyOption, type PropertyType, ProteosClient, ProteosError, PublicAccessOperation, type PublishEventRequest, type QueryExecuteMeta, type QueryExecuteResponse, type QueryObject, type QueryRow, type QueryService, type QueryValidateMeta, type QueryValidateResponse, type QueryValue, type Reaction, type ReactionCapability, type ReactionOption, type ReactionSetKind, type ReasoningPayload, type RecipientKind, type RecipientRole, type RecordData, type RecordLinkService, type RecordPermissionEventRequest, type RecordService, type RedriveResult, type ResultBlock, type Role, type RoleBasedFilterConfig, type RoleEntityPermission, RoleEntityPermissionSchema, RoleSchema, type RoleService, type Room, type RunWorkflowRequest, type SearchContentRequest, type SearchContentResponse, type SearchNodesRequest, type SendMessageRequest, type SendRecipient, type Session, type SessionEvent, type SessionEventEnvelope, type SessionEventsOptions, type SessionIdlePayload, type SessionService, type SessionStatus, type SessionStreamOptions, type SessionUpdatedPayload, type Skill, type SkillBundle, type SkillService, type SkillVersion, type StartMcpOAuthResponse, type StopReason, StorageClient, type StorageFile, type StorageFileVersion, type SyncConnectionRequest, type SystemSource, type TailOptions, type TestNodeCandidate, type TestNodeInputSource, type TestNodeRequest, type TestNodeResponse, type TextBlock, type Tool, type ToolBinding, type ToolConfirmationPayload, type ToolKind, type ToolResultPayload, type ToolService, type ToolUsePayload, type Topic, type TopicKind, type TopicService, type TranscribeStreamOptions, type TranscriptResult, type TriggerKind, type Turn, type UnreadCounts, type UpdateAgentListenerRequest, type UpdateAgentRequest, type UpdateConnectionRequest, type UpdateConnectorConnectionRequest, type UpdateContactRequest, type UpdateConversationFilterRequest, type UpdateDraftRequest, type UpdateFileMetadata, type UpdateGlossaryTermRequest, type UpdateLabelRequest, type UpdateLinkRequest, type UpdateMcpServerRequest, type UpdateNodeRequest, type UpdateOrganizationRequest, type UpdatePromptRequest, type UpdateRoleRequest, type UpdateToolRequest, type UpdateUserRequest, type UpdateWorkflowRequest, type User, type UserMessagePayload, UserRef$2 as UserRef, type UserRoleAssignment, UserRoleAssignmentSchema, UserSchema, type UserService, type VoiceService, type VoiceTranscriptionStream, type WebhookTriggerParams, type Workflow, WorkflowClient, type WorkflowConnection, type WorkflowExecution, type WorkflowGraph, type WorkflowNode, type WorkflowNodeType, type WorkflowStatus, type WorkflowVersion, type WorkflowVersionAuthor, type WorkflowVersionSummary, type WriteContentResponse, type WriteCredentialsRequest, buildUrl, getDefaultErrorCode, isBadRequest, isConflict, isForbidden, isNotFound, isPlatformEntity, isProteosError, isUnauthorized, parseErrorResponse, toQueryParams, toQueryString };
|