@proteos/sdk 0.31.0 → 0.32.1
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-Y5RY27JB.js → chunk-JWLTUYS7.js} +4 -3
- package/dist/chunk-JWLTUYS7.js.map +1 -0
- package/dist/{chunk-3SWQRVZX.cjs → chunk-NZI4N4SK.cjs} +4 -3
- package/dist/chunk-NZI4N4SK.cjs.map +1 -0
- package/dist/index.cjs +276 -109
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +198 -86
- package/dist/index.d.ts +198 -86
- package/dist/index.js +194 -27
- 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-BguERkVI.d.cts → types-v9RkMuKf.d.cts} +6 -0
- package/dist/{types-BguERkVI.d.ts → types-v9RkMuKf.d.ts} +6 -0
- package/package.json +3 -3
- package/src/agent/index.ts +2 -0
- package/src/agent/mcp-servers.ts +28 -0
- package/src/agent/prompts.ts +28 -0
- package/src/agent/skills.ts +33 -1
- package/src/agent/tools.ts +34 -1
- package/src/agent/types.ts +20 -0
- package/src/conversation/index.ts +217 -58
- package/src/conversation/types.ts +40 -2
- package/src/index.ts +42 -39
- package/src/meta/layout/elements.ts +7 -0
- package/dist/chunk-3SWQRVZX.cjs.map +0 -1
- package/dist/chunk-Y5RY27JB.js.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 AttributeSchema, i as AttributeType, j as AuditFieldsSchema, C as ClientOptions, k as Column, l as ColumnSchema, m as ComparisonOperator, n as Component, o as ComponentSchema, p as ComponentService, q as CreateAppRequest, r as CreateComponentRequest, s as CreateDesignReferenceRequest, t as CreateEntityRequest, u as CreateListRequest, v as CreateListViewRequest, w as CreateMenuConfigurationRequest, x as CreatePageRequest, y as CreateVariableRequest, z as CurrencyAttributeMeta, B as CurrencyAttributeMetaSchema, D as CurrencySymbolSide, E as CurrencyValue, G as DEFAULT_OPTIONS, H as DEFAULT_PAGE_SIZE, I as DONE, J as DeployModuleRequest, K as DesignReference, M as DesignReferenceContent, N as DesignReferenceSchema, O as DesignReferenceService, Q as Done, R as Entity, S as EntitySchema, T as EntityService, V as EntityWithSchema, W as EntityWithSchemaSchema, X as FileAttributeMeta, Y as FileRefSchema, Z as FilterElement, _ as FilterElementSchema, $ as FilterGroup, a0 as FilterGroupSchema, a1 as List, a2 as ListAppsOptions, a3 as ListComponentsOptions, a4 as ListDesignReferencesOptions, a5 as ListEntitiesOptions, a6 as ListFn, a7 as ListListViewsOptions, a8 as ListListsOptions, a9 as ListMenuConfigurationsOptions, aa as ListModulesOptions, ab as ListPagesOptions, ac as ListSchema, ad as ListService, ae as ListVariablesOptions, af as ListView, ag as ListViewSchema, ah as ListViewService, ai as LogicalOperator, aj as MenuConfiguration, ak as MenuConfigurationSchema, al as MenuConfigurationService, am as MenuItem, an as MenuItemSchema, ao as MenuItemType, ap as MetaClient, aq as MetaListOptions, ar as Module, as as ModuleSchema, at as ModuleService, au as ModuleStatus, av as OnDeleteAction, aw as OnDeleteActionSchema, ax as PLATFORM_ATTRIBUTE_NAMES, ay as PLATFORM_USER_ID, az as Page, aA as PageAction, aB as PageActionSchema, aC as PageLayout, aD as PageLayoutSchema, aE as PageSchema, aF as PageService, aG as PageType, aH as PublicPageComponent, aI as PublicPageResponse, aJ as RelationAttributeMeta, aK as RelationAttributeMetaSchema, aL as RequestOptions, aM as ResolvedClientOptions, aN as ResponseMeta, aO as ResponseMetaSchema, aP as SortConfig, aQ as SortConfigSchema, aR as SortDirection, aS as Timestamps, aT as TokenProvider, aU as UpdateAppRequest, aV as UpdateComponentRequest, aW as UpdateDesignReferenceRequest, aX as UpdateEntityRequest, aY as UpdateListRequest, aZ as UpdateListViewRequest, a_ as UpdateMenuConfigurationRequest, a$ as UpdatePageRequest, b0 as UpdateVariableRequest, b1 as UserRefSchema, b2 as UserType, b3 as Variable, b4 as VariableSchema, b5 as VariableService, b6 as allCurrencyCodes, b7 as createIterator, b8 as createListResultSchema, b9 as currencyLabel, ba as currencySymbol, bb as currencySymbolSide, bc as formatAmount, bd as formatMoney, be as isPlatformAttributeName, bf as localeNumberSeparators, bg as parseAmount, bh as parseCurrencyMeta, bi as parseFileMeta, bj as parseRelationMeta, bk as platformAttributes, bl as resolveOptions } from './types-
|
|
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-v9RkMuKf.cjs';
|
|
2
|
+
export { e as App, f as AppSchema, g as AppService, h as AttributeSchema, i as AttributeType, j as AuditFieldsSchema, C as ClientOptions, k as Column, l as ColumnSchema, m as ComparisonOperator, n as Component, o as ComponentSchema, p as ComponentService, q as CreateAppRequest, r as CreateComponentRequest, s as CreateDesignReferenceRequest, t as CreateEntityRequest, u as CreateListRequest, v as CreateListViewRequest, w as CreateMenuConfigurationRequest, x as CreatePageRequest, y as CreateVariableRequest, z as CurrencyAttributeMeta, B as CurrencyAttributeMetaSchema, D as CurrencySymbolSide, E as CurrencyValue, G as DEFAULT_OPTIONS, H as DEFAULT_PAGE_SIZE, I as DONE, J as DeployModuleRequest, K as DesignReference, M as DesignReferenceContent, N as DesignReferenceSchema, O as DesignReferenceService, Q as Done, R as Entity, S as EntitySchema, T as EntityService, V as EntityWithSchema, W as EntityWithSchemaSchema, X as FileAttributeMeta, Y as FileRefSchema, Z as FilterElement, _ as FilterElementSchema, $ as FilterGroup, a0 as FilterGroupSchema, a1 as List, a2 as ListAppsOptions, a3 as ListComponentsOptions, a4 as ListDesignReferencesOptions, a5 as ListEntitiesOptions, a6 as ListFn, a7 as ListListViewsOptions, a8 as ListListsOptions, a9 as ListMenuConfigurationsOptions, aa as ListModulesOptions, ab as ListPagesOptions, ac as ListSchema, ad as ListService, ae as ListVariablesOptions, af as ListView, ag as ListViewSchema, ah as ListViewService, ai as LogicalOperator, aj as MenuConfiguration, ak as MenuConfigurationSchema, al as MenuConfigurationService, am as MenuItem, an as MenuItemSchema, ao as MenuItemType, ap as MetaClient, aq as MetaListOptions, ar as Module, as as ModuleSchema, at as ModuleService, au as ModuleStatus, av as OnDeleteAction, aw as OnDeleteActionSchema, ax as PLATFORM_ATTRIBUTE_NAMES, ay as PLATFORM_USER_ID, az as Page, aA as PageAction, aB as PageActionSchema, aC as PageLayout, aD as PageLayoutSchema, aE as PageSchema, aF as PageService, aG as PageType, aH as PublicPageComponent, aI as PublicPageResponse, aJ as RelationAttributeMeta, aK as RelationAttributeMetaSchema, aL as RequestOptions, aM as ResolvedClientOptions, aN as ResponseMeta, aO as ResponseMetaSchema, aP as SortConfig, aQ as SortConfigSchema, aR as SortDirection, aS as Timestamps, aT as TokenProvider, aU as UpdateAppRequest, aV as UpdateComponentRequest, aW as UpdateDesignReferenceRequest, aX as UpdateEntityRequest, aY as UpdateListRequest, aZ as UpdateListViewRequest, a_ as UpdateMenuConfigurationRequest, a$ as UpdatePageRequest, b0 as UpdateVariableRequest, b1 as UserRefSchema, b2 as UserType, b3 as Variable, b4 as VariableSchema, b5 as VariableService, b6 as allCurrencyCodes, b7 as createIterator, b8 as createListResultSchema, b9 as currencyLabel, ba as currencySymbol, bb as currencySymbolSide, bc as formatAmount, bd as formatMoney, be as isPlatformAttributeName, bf as localeNumberSeparators, bg as parseAmount, bh as parseCurrencyMeta, bi as parseFileMeta, bj as parseRelationMeta, bk as platformAttributes, bl as resolveOptions } from './types-v9RkMuKf.cjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -304,6 +304,24 @@ interface UpdateMcpServerRequest {
|
|
|
304
304
|
auth?: McpServerAuth;
|
|
305
305
|
}
|
|
306
306
|
type ListMcpServersOptions = AgentResourceListOptions;
|
|
307
|
+
/**
|
|
308
|
+
* One agent referencing a resource (MCP server / prompt / tool / skill), with its
|
|
309
|
+
* provider-sync staleness: `is_stale` means the resource changed after the agent's
|
|
310
|
+
* last successful sync (or the agent was never synced), so the runtime still runs
|
|
311
|
+
* the agent against the resource's previous configuration.
|
|
312
|
+
*/
|
|
313
|
+
interface DependentAgent {
|
|
314
|
+
agent_key: string;
|
|
315
|
+
name: string;
|
|
316
|
+
is_stale: boolean;
|
|
317
|
+
last_synced_at: string | null;
|
|
318
|
+
}
|
|
319
|
+
/** Outcome of re-syncing one stale dependent agent. */
|
|
320
|
+
interface DependentSyncResult {
|
|
321
|
+
agent_key: string;
|
|
322
|
+
status: 'synced' | 'failed';
|
|
323
|
+
error?: string;
|
|
324
|
+
}
|
|
307
325
|
|
|
308
326
|
/**
|
|
309
327
|
* Service for managing Agents — configured personas (system prompt + model
|
|
@@ -351,6 +369,16 @@ interface McpServerService {
|
|
|
351
369
|
startOAuth(key: string): Promise<StartMcpOAuthResponse>;
|
|
352
370
|
/** Drops a server's stored OAuth tokens. @throws {ProteosError} 400/404. */
|
|
353
371
|
disconnectOAuth(key: string): Promise<void>;
|
|
372
|
+
/**
|
|
373
|
+
* Lists the agents referencing this MCP server, each stamped stale when the MCP server
|
|
374
|
+
* changed after the agent's last successful runtime sync. @throws {ProteosError} 404.
|
|
375
|
+
*/
|
|
376
|
+
listDependents(key: string): Promise<DependentAgent[]>;
|
|
377
|
+
/**
|
|
378
|
+
* Re-syncs every STALE dependent agent onto the runtime (the one-click "update
|
|
379
|
+
* dependent agents" action). Returns a per-agent result. @throws {ProteosError} 404.
|
|
380
|
+
*/
|
|
381
|
+
syncDependents(key: string): Promise<DependentSyncResult[]>;
|
|
354
382
|
}
|
|
355
383
|
|
|
356
384
|
/**
|
|
@@ -375,6 +403,16 @@ interface PromptService {
|
|
|
375
403
|
listVersions(key: string): Promise<PromptVersion[]>;
|
|
376
404
|
/** Gets a specific immutable version by number. @throws {ProteosError} 404. */
|
|
377
405
|
getVersion(key: string, number: number): Promise<PromptVersion>;
|
|
406
|
+
/**
|
|
407
|
+
* Lists the agents referencing this prompt, each stamped stale when the prompt
|
|
408
|
+
* changed after the agent's last successful runtime sync. @throws {ProteosError} 404.
|
|
409
|
+
*/
|
|
410
|
+
listDependents(key: string): Promise<DependentAgent[]>;
|
|
411
|
+
/**
|
|
412
|
+
* Re-syncs every STALE dependent agent onto the runtime (the one-click "update
|
|
413
|
+
* dependent agents" action). Returns a per-agent result. @throws {ProteosError} 404.
|
|
414
|
+
*/
|
|
415
|
+
syncDependents(key: string): Promise<DependentSyncResult[]>;
|
|
378
416
|
}
|
|
379
417
|
|
|
380
418
|
/**
|
|
@@ -814,6 +852,16 @@ interface SkillService {
|
|
|
814
852
|
listVersions(key: string): Promise<SkillVersion[]>;
|
|
815
853
|
/** Gets a specific immutable version by number. @throws {ProteosError} 404. */
|
|
816
854
|
getVersion(key: string, number: number): Promise<SkillVersion>;
|
|
855
|
+
/**
|
|
856
|
+
* Lists the agents referencing this skill, each stamped stale when the skill
|
|
857
|
+
* changed after the agent's last successful runtime sync. @throws {ProteosError} 404.
|
|
858
|
+
*/
|
|
859
|
+
listDependents(key: string): Promise<DependentAgent[]>;
|
|
860
|
+
/**
|
|
861
|
+
* Re-syncs every STALE dependent agent onto the runtime (the one-click "update
|
|
862
|
+
* dependent agents" action). Returns a per-agent result. @throws {ProteosError} 404.
|
|
863
|
+
*/
|
|
864
|
+
syncDependents(key: string): Promise<DependentSyncResult[]>;
|
|
817
865
|
}
|
|
818
866
|
|
|
819
867
|
/**
|
|
@@ -833,6 +881,16 @@ interface ToolService {
|
|
|
833
881
|
update(key: string, request: UpdateToolRequest): Promise<Tool>;
|
|
834
882
|
/** Deletes a tool. @throws {ProteosError} 404. */
|
|
835
883
|
delete(key: string): Promise<void>;
|
|
884
|
+
/**
|
|
885
|
+
* Lists the agents referencing this tool, each stamped stale when the tool
|
|
886
|
+
* changed after the agent's last successful runtime sync. @throws {ProteosError} 404.
|
|
887
|
+
*/
|
|
888
|
+
listDependents(key: string): Promise<DependentAgent[]>;
|
|
889
|
+
/**
|
|
890
|
+
* Re-syncs every STALE dependent agent onto the runtime (the one-click "update
|
|
891
|
+
* dependent agents" action). Returns a per-agent result. @throws {ProteosError} 404.
|
|
892
|
+
*/
|
|
893
|
+
syncDependents(key: string): Promise<DependentSyncResult[]>;
|
|
836
894
|
}
|
|
837
895
|
|
|
838
896
|
/**
|
|
@@ -1934,76 +1992,6 @@ interface ConnectorConnectionService {
|
|
|
1934
1992
|
invokeMethod<T = unknown>(id: string, method: string, params?: unknown): Promise<T>;
|
|
1935
1993
|
}
|
|
1936
1994
|
|
|
1937
|
-
/** One normalized transcription update streamed back from the server. */
|
|
1938
|
-
interface TranscriptResult {
|
|
1939
|
-
/** The recognized text for this segment. */
|
|
1940
|
-
transcript: string;
|
|
1941
|
-
/** True once this segment is final and will not change. */
|
|
1942
|
-
is_final: boolean;
|
|
1943
|
-
/** True when the server detected end-of-speech (a natural pause). */
|
|
1944
|
-
speech_final: boolean;
|
|
1945
|
-
/** Recognition confidence, 0–1. */
|
|
1946
|
-
confidence: number;
|
|
1947
|
-
}
|
|
1948
|
-
/** Options for opening a live transcription stream. */
|
|
1949
|
-
interface TranscribeStreamOptions {
|
|
1950
|
-
/** BCP-47 language code (e.g. `en`, `de`). Defaults to the server's default. */
|
|
1951
|
-
language?: string;
|
|
1952
|
-
/** Stream interim (non-final) results as audio arrives. Defaults to `true`. */
|
|
1953
|
-
interimResults?: boolean;
|
|
1954
|
-
/** Add punctuation to results. Defaults to `true`. */
|
|
1955
|
-
punctuate?: boolean;
|
|
1956
|
-
/** Format entities (numbers, dates…) in results. Defaults to `true`. */
|
|
1957
|
-
smartFormat?: boolean;
|
|
1958
|
-
/**
|
|
1959
|
-
* Raw audio encoding (e.g. `linear16`). Omit for containerized audio
|
|
1960
|
-
* (WebM/Opus from MediaRecorder), which the server auto-detects.
|
|
1961
|
-
*/
|
|
1962
|
-
encoding?: string;
|
|
1963
|
-
/** Sample rate in Hz. Required only when `encoding` is set. */
|
|
1964
|
-
sampleRate?: number;
|
|
1965
|
-
/** Called for each transcription result. */
|
|
1966
|
-
onResult: (result: TranscriptResult) => void;
|
|
1967
|
-
/** Called if the stream errors. */
|
|
1968
|
-
onError?: (error: Event) => void;
|
|
1969
|
-
/** Called when the stream closes (either side). */
|
|
1970
|
-
onClose?: () => void;
|
|
1971
|
-
}
|
|
1972
|
-
/** A live transcription session: push audio in, results arrive via `onResult`. */
|
|
1973
|
-
interface VoiceTranscriptionStream {
|
|
1974
|
-
/** Forward one audio chunk (binary) to the server. */
|
|
1975
|
-
sendAudio(chunk: Blob | ArrayBufferView | ArrayBuffer): void;
|
|
1976
|
-
/** Ask the server to flush pending results without closing the stream. */
|
|
1977
|
-
finalize(): void;
|
|
1978
|
-
/** Close the stream. */
|
|
1979
|
-
close(): void;
|
|
1980
|
-
}
|
|
1981
|
-
/**
|
|
1982
|
-
* Service for realtime speech-to-text on conversation-service.
|
|
1983
|
-
*
|
|
1984
|
-
* Transcription is a WebSocket: open a stream, push audio chunks, and receive
|
|
1985
|
-
* {@link TranscriptResult}s. The transcription provider is a server-side concern
|
|
1986
|
-
* and is not exposed here.
|
|
1987
|
-
*
|
|
1988
|
-
* @example
|
|
1989
|
-
* ```ts
|
|
1990
|
-
* const stream = await agent.voice.transcribeStream({
|
|
1991
|
-
* onResult: (r) => console.log(r.transcript, r.is_final),
|
|
1992
|
-
* });
|
|
1993
|
-
* recorder.ondataavailable = (e) => stream.sendAudio(e.data);
|
|
1994
|
-
* // …later: stream.finalize(); stream.close();
|
|
1995
|
-
* ```
|
|
1996
|
-
*/
|
|
1997
|
-
interface VoiceService {
|
|
1998
|
-
/**
|
|
1999
|
-
* Opens a live transcription stream and resolves once it is connected.
|
|
2000
|
-
*
|
|
2001
|
-
* @param options - Stream configuration and result/lifecycle callbacks
|
|
2002
|
-
* @returns A handle to push audio and control the stream
|
|
2003
|
-
*/
|
|
2004
|
-
transcribeStream(options: TranscribeStreamOptions): Promise<VoiceTranscriptionStream>;
|
|
2005
|
-
}
|
|
2006
|
-
|
|
2007
1995
|
/**
|
|
2008
1996
|
* Wire types for conversation-service (/conversations/v1) — hand-maintained
|
|
2009
1997
|
* mirror of packages/go/model/conversation (snake_case, Is-prefixed booleans).
|
|
@@ -2034,10 +2022,18 @@ type ConnectorKey = 'slack' | 'gmail' | 'echo' | 'unipile-whatsapp' | 'unipile-l
|
|
|
2034
2022
|
*/
|
|
2035
2023
|
type ConnectorProvider = 'native' | 'unipile' | 'ava';
|
|
2036
2024
|
type MessageDirection = 'inbound' | 'outbound';
|
|
2037
|
-
|
|
2025
|
+
/**
|
|
2026
|
+
* Delivery state. `draft` = agent-prepared, awaiting human review (a human
|
|
2027
|
+
* sends it → pending → sent/failed, or rejects it → `rejected`, terminal).
|
|
2028
|
+
*/
|
|
2029
|
+
type MessageStatus = 'received' | 'pending' | 'sent' | 'failed' | 'draft' | 'rejected';
|
|
2038
2030
|
type ConnectionScope = 'org' | 'user';
|
|
2039
2031
|
type ConnectionStatus = 'pending' | 'active' | 'error' | 'revoked';
|
|
2040
|
-
|
|
2032
|
+
/**
|
|
2033
|
+
* `draft` marks a conversation minted BY a draft message (originate-mode
|
|
2034
|
+
* drafting) — hidden from the default list until the first successful send.
|
|
2035
|
+
*/
|
|
2036
|
+
type ConversationStatus = 'active' | 'ended' | 'archived' | 'draft';
|
|
2041
2037
|
type AgentListenerTriggerType = 'always' | 'mention' | 'channel' | 'keyword';
|
|
2042
2038
|
interface UserRef {
|
|
2043
2039
|
type: string;
|
|
@@ -2265,6 +2261,11 @@ interface Message {
|
|
|
2265
2261
|
recipients?: MessageRecipient[];
|
|
2266
2262
|
content: ContentBlock[];
|
|
2267
2263
|
status: MessageStatus;
|
|
2264
|
+
/**
|
|
2265
|
+
* The message this one was targeted at (thread-mode send/draft anchor);
|
|
2266
|
+
* absent for everything else.
|
|
2267
|
+
*/
|
|
2268
|
+
reply_to_message_id?: string;
|
|
2268
2269
|
occurred_at: string;
|
|
2269
2270
|
/** Read-time projection; absent/empty on channels without reactions. */
|
|
2270
2271
|
reactions?: Reaction[];
|
|
@@ -2375,6 +2376,30 @@ interface SendMessageRequest {
|
|
|
2375
2376
|
*/
|
|
2376
2377
|
attachments?: FileRef[];
|
|
2377
2378
|
}
|
|
2379
|
+
/**
|
|
2380
|
+
* Edits a status=draft message — full replacement of the editable surface
|
|
2381
|
+
* (PUT semantics; always send the complete state, including attachments you
|
|
2382
|
+
* want to keep). The addressing MODE is immutable. `subject` applies only
|
|
2383
|
+
* while the draft's conversation is itself status=draft (originate drafts) —
|
|
2384
|
+
* replies derive their subject from the thread.
|
|
2385
|
+
*
|
|
2386
|
+
* Recipient groups are PRESENCE-based: a group that is present (including an
|
|
2387
|
+
* explicit empty `[]` — a clear) replaces the stored recipients from exactly
|
|
2388
|
+
* the provided groups; omitting all three keeps the stored recipients. On any
|
|
2389
|
+
* recipient edit, send all three groups.
|
|
2390
|
+
*/
|
|
2391
|
+
interface UpdateDraftRequest {
|
|
2392
|
+
to?: SendRecipient[];
|
|
2393
|
+
/** Email only. */
|
|
2394
|
+
cc?: SendRecipient[];
|
|
2395
|
+
/** Email only. */
|
|
2396
|
+
bcc?: SendRecipient[];
|
|
2397
|
+
subject?: string;
|
|
2398
|
+
/** May be empty when attachments are present. */
|
|
2399
|
+
content: ContentBlock[];
|
|
2400
|
+
/** The complete attachment set to keep (omitting one removes its row). */
|
|
2401
|
+
attachments?: FileRef[];
|
|
2402
|
+
}
|
|
2378
2403
|
interface CreateAgentListenerRequest {
|
|
2379
2404
|
connection_id?: string;
|
|
2380
2405
|
conversation_id?: string;
|
|
@@ -2844,6 +2869,76 @@ interface DispatchMeetingBotRequest {
|
|
|
2844
2869
|
language?: string;
|
|
2845
2870
|
}
|
|
2846
2871
|
|
|
2872
|
+
/** One normalized transcription update streamed back from the server. */
|
|
2873
|
+
interface TranscriptResult {
|
|
2874
|
+
/** The recognized text for this segment. */
|
|
2875
|
+
transcript: string;
|
|
2876
|
+
/** True once this segment is final and will not change. */
|
|
2877
|
+
is_final: boolean;
|
|
2878
|
+
/** True when the server detected end-of-speech (a natural pause). */
|
|
2879
|
+
speech_final: boolean;
|
|
2880
|
+
/** Recognition confidence, 0–1. */
|
|
2881
|
+
confidence: number;
|
|
2882
|
+
}
|
|
2883
|
+
/** Options for opening a live transcription stream. */
|
|
2884
|
+
interface TranscribeStreamOptions {
|
|
2885
|
+
/** BCP-47 language code (e.g. `en`, `de`). Defaults to the server's default. */
|
|
2886
|
+
language?: string;
|
|
2887
|
+
/** Stream interim (non-final) results as audio arrives. Defaults to `true`. */
|
|
2888
|
+
interimResults?: boolean;
|
|
2889
|
+
/** Add punctuation to results. Defaults to `true`. */
|
|
2890
|
+
punctuate?: boolean;
|
|
2891
|
+
/** Format entities (numbers, dates…) in results. Defaults to `true`. */
|
|
2892
|
+
smartFormat?: boolean;
|
|
2893
|
+
/**
|
|
2894
|
+
* Raw audio encoding (e.g. `linear16`). Omit for containerized audio
|
|
2895
|
+
* (WebM/Opus from MediaRecorder), which the server auto-detects.
|
|
2896
|
+
*/
|
|
2897
|
+
encoding?: string;
|
|
2898
|
+
/** Sample rate in Hz. Required only when `encoding` is set. */
|
|
2899
|
+
sampleRate?: number;
|
|
2900
|
+
/** Called for each transcription result. */
|
|
2901
|
+
onResult: (result: TranscriptResult) => void;
|
|
2902
|
+
/** Called if the stream errors. */
|
|
2903
|
+
onError?: (error: Event) => void;
|
|
2904
|
+
/** Called when the stream closes (either side). */
|
|
2905
|
+
onClose?: () => void;
|
|
2906
|
+
}
|
|
2907
|
+
/** A live transcription session: push audio in, results arrive via `onResult`. */
|
|
2908
|
+
interface VoiceTranscriptionStream {
|
|
2909
|
+
/** Forward one audio chunk (binary) to the server. */
|
|
2910
|
+
sendAudio(chunk: Blob | ArrayBufferView | ArrayBuffer): void;
|
|
2911
|
+
/** Ask the server to flush pending results without closing the stream. */
|
|
2912
|
+
finalize(): void;
|
|
2913
|
+
/** Close the stream. */
|
|
2914
|
+
close(): void;
|
|
2915
|
+
}
|
|
2916
|
+
/**
|
|
2917
|
+
* Service for realtime speech-to-text on conversation-service.
|
|
2918
|
+
*
|
|
2919
|
+
* Transcription is a WebSocket: open a stream, push audio chunks, and receive
|
|
2920
|
+
* {@link TranscriptResult}s. The transcription provider is a server-side concern
|
|
2921
|
+
* and is not exposed here.
|
|
2922
|
+
*
|
|
2923
|
+
* @example
|
|
2924
|
+
* ```ts
|
|
2925
|
+
* const stream = await agent.voice.transcribeStream({
|
|
2926
|
+
* onResult: (r) => console.log(r.transcript, r.is_final),
|
|
2927
|
+
* });
|
|
2928
|
+
* recorder.ondataavailable = (e) => stream.sendAudio(e.data);
|
|
2929
|
+
* // …later: stream.finalize(); stream.close();
|
|
2930
|
+
* ```
|
|
2931
|
+
*/
|
|
2932
|
+
interface VoiceService {
|
|
2933
|
+
/**
|
|
2934
|
+
* Opens a live transcription stream and resolves once it is connected.
|
|
2935
|
+
*
|
|
2936
|
+
* @param options - Stream configuration and result/lifecycle callbacks
|
|
2937
|
+
* @returns A handle to push audio and control the stream
|
|
2938
|
+
*/
|
|
2939
|
+
transcribeStream(options: TranscribeStreamOptions): Promise<VoiceTranscriptionStream>;
|
|
2940
|
+
}
|
|
2941
|
+
|
|
2847
2942
|
/**
|
|
2848
2943
|
* Facade for conversation-service: connections (channel-connector instances),
|
|
2849
2944
|
* conversations + messages (THE platform Message), and agent listeners.
|
|
@@ -2936,10 +3031,27 @@ interface ConversationService {
|
|
|
2936
3031
|
/** Unread-conversation counts for the requesting user (envelope + badges). */
|
|
2937
3032
|
unreadCounts(): Promise<UnreadCounts>;
|
|
2938
3033
|
}
|
|
2939
|
-
/** Messages within a conversation (ordered by occurred_at) + outbound send + reactions. */
|
|
3034
|
+
/** Messages within a conversation (ordered by occurred_at) + outbound send + drafts + reactions. */
|
|
2940
3035
|
interface MessageService {
|
|
2941
3036
|
listByConversation(conversationId: string, query?: ListMessagesQuery): Promise<ListResponse<Message>>;
|
|
3037
|
+
/** One message with its read-time projections (reactions, attachments). */
|
|
3038
|
+
get(messageId: string): Promise<Message>;
|
|
2942
3039
|
send(request: SendMessageRequest): Promise<Message>;
|
|
3040
|
+
/**
|
|
3041
|
+
* Store an outbound message for human review (status=draft) — same request
|
|
3042
|
+
* shape as send, nothing reaches the connector until sendDraft. Originate
|
|
3043
|
+
* mode mints a hidden status=draft conversation.
|
|
3044
|
+
*/
|
|
3045
|
+
draft(request: SendMessageRequest): Promise<Message>;
|
|
3046
|
+
/**
|
|
3047
|
+
* Replace a draft's editable surface (full state, PUT semantics). 409
|
|
3048
|
+
* `draft_not_editable` once the draft was sent or rejected.
|
|
3049
|
+
*/
|
|
3050
|
+
updateDraft(messageId: string, request: UpdateDraftRequest): Promise<Message>;
|
|
3051
|
+
/** Deliver a draft (draft → pending → sent/failed). 409 on a lost race. */
|
|
3052
|
+
sendDraft(messageId: string): Promise<Message>;
|
|
3053
|
+
/** Decline a draft (draft → rejected, terminal). 409 on a lost race. */
|
|
3054
|
+
rejectDraft(messageId: string): Promise<Message>;
|
|
2943
3055
|
/** Aggregated reactions on one message (also rides on Message.reactions). */
|
|
2944
3056
|
getReactions(messageId: string): Promise<Reaction[]>;
|
|
2945
3057
|
/**
|
|
@@ -4219,7 +4331,7 @@ declare const KnowledgeNodeMetadataSchema: z.ZodObject<{
|
|
|
4219
4331
|
}>;
|
|
4220
4332
|
}, "strip", z.ZodTypeAny, {
|
|
4221
4333
|
type: "file" | "markdown" | "url";
|
|
4222
|
-
status: "
|
|
4334
|
+
status: "draft" | "archived" | "published";
|
|
4223
4335
|
id: string;
|
|
4224
4336
|
created_at: string;
|
|
4225
4337
|
updated_at: string;
|
|
@@ -4242,7 +4354,7 @@ declare const KnowledgeNodeMetadataSchema: z.ZodObject<{
|
|
|
4242
4354
|
valid_until?: string | null | undefined;
|
|
4243
4355
|
}, {
|
|
4244
4356
|
type: "file" | "markdown" | "url";
|
|
4245
|
-
status: "
|
|
4357
|
+
status: "draft" | "archived" | "published";
|
|
4246
4358
|
id: string;
|
|
4247
4359
|
created_at: string;
|
|
4248
4360
|
updated_at: string;
|
|
@@ -4304,7 +4416,7 @@ declare const KnowledgeNodeSchema: z.ZodObject<{
|
|
|
4304
4416
|
content: z.ZodString;
|
|
4305
4417
|
}, "strip", z.ZodTypeAny, {
|
|
4306
4418
|
type: "file" | "markdown" | "url";
|
|
4307
|
-
status: "
|
|
4419
|
+
status: "draft" | "archived" | "published";
|
|
4308
4420
|
id: string;
|
|
4309
4421
|
created_at: string;
|
|
4310
4422
|
updated_at: string;
|
|
@@ -4328,7 +4440,7 @@ declare const KnowledgeNodeSchema: z.ZodObject<{
|
|
|
4328
4440
|
valid_until?: string | null | undefined;
|
|
4329
4441
|
}, {
|
|
4330
4442
|
type: "file" | "markdown" | "url";
|
|
4331
|
-
status: "
|
|
4443
|
+
status: "draft" | "archived" | "published";
|
|
4332
4444
|
id: string;
|
|
4333
4445
|
created_at: string;
|
|
4334
4446
|
updated_at: string;
|
|
@@ -4391,7 +4503,7 @@ declare const KnowledgeNodeSearchResultSchema: z.ZodObject<{
|
|
|
4391
4503
|
score: z.ZodNumber;
|
|
4392
4504
|
}, "strip", z.ZodTypeAny, {
|
|
4393
4505
|
type: "file" | "markdown" | "url";
|
|
4394
|
-
status: "
|
|
4506
|
+
status: "draft" | "archived" | "published";
|
|
4395
4507
|
id: string;
|
|
4396
4508
|
created_at: string;
|
|
4397
4509
|
updated_at: string;
|
|
@@ -4415,7 +4527,7 @@ declare const KnowledgeNodeSearchResultSchema: z.ZodObject<{
|
|
|
4415
4527
|
valid_until?: string | null | undefined;
|
|
4416
4528
|
}, {
|
|
4417
4529
|
type: "file" | "markdown" | "url";
|
|
4418
|
-
status: "
|
|
4530
|
+
status: "draft" | "archived" | "published";
|
|
4419
4531
|
id: string;
|
|
4420
4532
|
created_at: string;
|
|
4421
4533
|
updated_at: string;
|
|
@@ -4654,13 +4766,13 @@ declare const NodeNeighborhoodSchema: z.ZodObject<{
|
|
|
4654
4766
|
distance: z.ZodNumber;
|
|
4655
4767
|
}, "strip", z.ZodTypeAny, {
|
|
4656
4768
|
type: "file" | "markdown" | "url";
|
|
4657
|
-
status: "
|
|
4769
|
+
status: "draft" | "archived" | "published";
|
|
4658
4770
|
id: string;
|
|
4659
4771
|
title: string;
|
|
4660
4772
|
distance: number;
|
|
4661
4773
|
}, {
|
|
4662
4774
|
type: "file" | "markdown" | "url";
|
|
4663
|
-
status: "
|
|
4775
|
+
status: "draft" | "archived" | "published";
|
|
4664
4776
|
id: string;
|
|
4665
4777
|
title: string;
|
|
4666
4778
|
distance: number;
|
|
@@ -4684,7 +4796,7 @@ declare const NodeNeighborhoodSchema: z.ZodObject<{
|
|
|
4684
4796
|
}, "strip", z.ZodTypeAny, {
|
|
4685
4797
|
nodes: {
|
|
4686
4798
|
type: "file" | "markdown" | "url";
|
|
4687
|
-
status: "
|
|
4799
|
+
status: "draft" | "archived" | "published";
|
|
4688
4800
|
id: string;
|
|
4689
4801
|
title: string;
|
|
4690
4802
|
distance: number;
|
|
@@ -4698,7 +4810,7 @@ declare const NodeNeighborhoodSchema: z.ZodObject<{
|
|
|
4698
4810
|
}, {
|
|
4699
4811
|
nodes: {
|
|
4700
4812
|
type: "file" | "markdown" | "url";
|
|
4701
|
-
status: "
|
|
4813
|
+
status: "draft" | "archived" | "published";
|
|
4702
4814
|
id: string;
|
|
4703
4815
|
title: string;
|
|
4704
4816
|
distance: number;
|
|
@@ -5693,4 +5805,4 @@ declare class WorkflowClient {
|
|
|
5693
5805
|
constructor(client: ProteosClient);
|
|
5694
5806
|
}
|
|
5695
5807
|
|
|
5696
|
-
export { AccountClient, type Action, type ActionBinding, ActionSchema, type ActionScope, ActionScopeSchema, type ActionService, type AddressFilterConfig, type Agent, type AgentActionParams, type AgentArtifactsPayload, AgentClient, type AgentKickoff, 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 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 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 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 MessageKickoff, type MessagePreview, type MessageRecipient, type MessageService, type MessageStatus, type MessageTriggerParams, 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 OutcomeKickoff, type OutcomeRubric, 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 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 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 WorkflowContentBlock, 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 };
|
|
5808
|
+
export { AccountClient, type Action, type ActionBinding, ActionSchema, type ActionScope, ActionScopeSchema, type ActionService, type AddressFilterConfig, type Agent, type AgentActionParams, type AgentArtifactsPayload, AgentClient, type AgentKickoff, 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 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 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 MessageKickoff, type MessagePreview, type MessageRecipient, type MessageService, type MessageStatus, type MessageTriggerParams, 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 OutcomeKickoff, type OutcomeRubric, 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 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 WorkflowContentBlock, 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 };
|