@proteos/sdk 0.33.0 → 0.35.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 +188 -84
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +229 -4
- package/dist/index.d.ts +229 -4
- package/dist/index.js +106 -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/auth/platform-entities.ts +2 -0
- package/src/conversation/index.ts +172 -0
- package/src/conversation/types.ts +162 -0
- package/src/index.ts +25 -0
- 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 -0
- package/src/workflow/types.ts +56 -1
- 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
|
/**
|
|
@@ -2149,6 +2149,17 @@ interface ReactionCapability {
|
|
|
2149
2149
|
/** 0 = unbounded (Slack); 1 = single-slot (a new reaction replaces the old). */
|
|
2150
2150
|
max_per_actor: number;
|
|
2151
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
|
+
}
|
|
2152
2163
|
interface Connection {
|
|
2153
2164
|
id: string;
|
|
2154
2165
|
org_id: string;
|
|
@@ -2160,6 +2171,11 @@ interface Connection {
|
|
|
2160
2171
|
owner?: UserRef;
|
|
2161
2172
|
external_account_id: string;
|
|
2162
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
|
+
*/
|
|
2163
2179
|
settings: Record<string, unknown>;
|
|
2164
2180
|
status: ConnectionStatus;
|
|
2165
2181
|
/** Computed on read: the connector implements the reaction capability. */
|
|
@@ -2199,6 +2215,11 @@ interface Conversation {
|
|
|
2199
2215
|
* claim server-side and gives clients an elapsed time to show.
|
|
2200
2216
|
*/
|
|
2201
2217
|
summary_started_at?: string;
|
|
2218
|
+
/**
|
|
2219
|
+
* ConversationType key the pre-summary classifier assigned; absent when never
|
|
2220
|
+
* classified or no type matched.
|
|
2221
|
+
*/
|
|
2222
|
+
type_key?: string;
|
|
2202
2223
|
status: ConversationStatus;
|
|
2203
2224
|
/**
|
|
2204
2225
|
* Room directory row a room-borne thread (Slack channel conversation) lives
|
|
@@ -2512,6 +2533,56 @@ interface ListGlossaryTermsQuery extends PaginationQuery {
|
|
|
2512
2533
|
/** Case-insensitive substring match on the term text. */
|
|
2513
2534
|
search?: string;
|
|
2514
2535
|
}
|
|
2536
|
+
/** Optional per-type behavior configuration. */
|
|
2537
|
+
interface ConversationTypeConfig {
|
|
2538
|
+
/**
|
|
2539
|
+
* Agent-service prompt key whose CURRENT version body replaces the built-in
|
|
2540
|
+
* summary system prompt for conversations classified as this type. Absent ⇒
|
|
2541
|
+
* built-in prompt.
|
|
2542
|
+
*/
|
|
2543
|
+
summary_prompt_key?: string;
|
|
2544
|
+
}
|
|
2545
|
+
/**
|
|
2546
|
+
* A per-org conversation taxonomy entry. Before a meeting summary is
|
|
2547
|
+
* generated, a cheap classifier reads the transcript head plus every type's
|
|
2548
|
+
* `definition` and picks the matching `key` (or none); the result lands on
|
|
2549
|
+
* `Conversation.type_key` and `config.summary_prompt_key` may swap the summary
|
|
2550
|
+
* system prompt. Module-deployable (conversation-types/<key>.json).
|
|
2551
|
+
*/
|
|
2552
|
+
interface ConversationType {
|
|
2553
|
+
org_id: string;
|
|
2554
|
+
/** Immutable identity within the org — what the classifier answers with. */
|
|
2555
|
+
key: string;
|
|
2556
|
+
name?: string;
|
|
2557
|
+
/** When a conversation IS this type — injected verbatim into the classifier prompt. */
|
|
2558
|
+
definition: string;
|
|
2559
|
+
config: ConversationTypeConfig;
|
|
2560
|
+
/** Module that deployed the type; absent when not module-owned. */
|
|
2561
|
+
module_slug?: string;
|
|
2562
|
+
created_at: string;
|
|
2563
|
+
created_by: UserRef;
|
|
2564
|
+
updated_at: string;
|
|
2565
|
+
updated_by: UserRef;
|
|
2566
|
+
}
|
|
2567
|
+
interface CreateConversationTypeRequest {
|
|
2568
|
+
/** Lowercase kebab/snake/camel handle — no spaces. */
|
|
2569
|
+
key: string;
|
|
2570
|
+
name?: string;
|
|
2571
|
+
definition: string;
|
|
2572
|
+
config?: ConversationTypeConfig;
|
|
2573
|
+
module_slug?: string;
|
|
2574
|
+
}
|
|
2575
|
+
interface UpdateConversationTypeRequest {
|
|
2576
|
+
name?: string;
|
|
2577
|
+
definition?: string;
|
|
2578
|
+
/** Replaces the stored config wholesale; send `{}` to clear the prompt link. */
|
|
2579
|
+
config?: ConversationTypeConfig;
|
|
2580
|
+
}
|
|
2581
|
+
interface ListConversationTypesQuery extends PaginationQuery {
|
|
2582
|
+
/** Case-insensitive substring match on key or name. */
|
|
2583
|
+
search?: string;
|
|
2584
|
+
module_slug?: string;
|
|
2585
|
+
}
|
|
2515
2586
|
interface PaginationQuery {
|
|
2516
2587
|
page?: number;
|
|
2517
2588
|
page_size?: number;
|
|
@@ -2844,6 +2915,12 @@ interface ListResponse<T> {
|
|
|
2844
2915
|
data: T[];
|
|
2845
2916
|
}
|
|
2846
2917
|
type TranscriptionStatus = 'pending' | 'processing' | 'completed' | 'failed';
|
|
2918
|
+
/**
|
|
2919
|
+
* Post-transcription review lifecycle — the glossary-aware LLM pass that hunts
|
|
2920
|
+
* mistranscribed terms. `feedback_pending` means proposed mistranscribed terms
|
|
2921
|
+
* await human resolution; resolving the last one flips it to `completed`.
|
|
2922
|
+
*/
|
|
2923
|
+
type TranscriptionReviewStatus = 'open' | 'processing' | 'feedback_pending' | 'completed' | 'failed';
|
|
2847
2924
|
interface TranscriptTurn {
|
|
2848
2925
|
speaker: number;
|
|
2849
2926
|
speaker_label: string;
|
|
@@ -2859,6 +2936,8 @@ interface Transcription {
|
|
|
2859
2936
|
audio_file_id: string;
|
|
2860
2937
|
transcript_file_id: string;
|
|
2861
2938
|
status: TranscriptionStatus;
|
|
2939
|
+
review_status: TranscriptionReviewStatus;
|
|
2940
|
+
review_started_at?: string;
|
|
2862
2941
|
language: string;
|
|
2863
2942
|
duration_seconds: number;
|
|
2864
2943
|
model: string;
|
|
@@ -2879,6 +2958,17 @@ interface CreateTranscriptionRequest {
|
|
|
2879
2958
|
model?: string;
|
|
2880
2959
|
is_diarized?: boolean;
|
|
2881
2960
|
}
|
|
2961
|
+
/**
|
|
2962
|
+
* Edits a COMPLETED transcription in place. `turns`, when present, replace the
|
|
2963
|
+
* diarized turns wholesale; `speaker_labels` maps diarized speaker indexes
|
|
2964
|
+
* ("0", "1", …) to display labels and is applied across all turns. Editing
|
|
2965
|
+
* does NOT retro-update messages of an already-materialized conversation.
|
|
2966
|
+
*/
|
|
2967
|
+
interface UpdateTranscriptionRequest {
|
|
2968
|
+
turns?: TranscriptTurn[];
|
|
2969
|
+
speaker_labels?: Record<string, string>;
|
|
2970
|
+
language?: string;
|
|
2971
|
+
}
|
|
2882
2972
|
/** Channel defaults to adhoc; meeting is the only other allowed target. */
|
|
2883
2973
|
interface MaterializeTranscriptionRequest {
|
|
2884
2974
|
channel?: Channel;
|
|
@@ -2893,6 +2983,58 @@ interface ListTranscriptionsQuery extends PaginationQuery {
|
|
|
2893
2983
|
/** Narrow to the provider-side transcript identity. */
|
|
2894
2984
|
provider_request_id?: string;
|
|
2895
2985
|
}
|
|
2986
|
+
type MistranscribedTermStatus = 'auto_replaced' | 'proposed' | 'accepted' | 'rejected';
|
|
2987
|
+
type MistranscriptionSuggestionSource = 'glossary' | 'model';
|
|
2988
|
+
/**
|
|
2989
|
+
* One term the post-transcription review pass judged likely misheard. High-
|
|
2990
|
+
* confidence findings are auto-replaced; the rest await accept/reject. An
|
|
2991
|
+
* accepted row referencing the glossary term it became (glossary_term_id) is a
|
|
2992
|
+
* known "misheard → term" mapping future passes replace deterministically.
|
|
2993
|
+
*/
|
|
2994
|
+
interface MistranscribedTerm {
|
|
2995
|
+
id: string;
|
|
2996
|
+
org_id: string;
|
|
2997
|
+
transcription_id: string;
|
|
2998
|
+
conversation_id?: string;
|
|
2999
|
+
/** The text as transcribed. */
|
|
3000
|
+
term: string;
|
|
3001
|
+
context_snippet?: string;
|
|
3002
|
+
/** Indexes into the transcription's turns where the term occurs. */
|
|
3003
|
+
turn_indexes: number[];
|
|
3004
|
+
suggested_replacement?: string;
|
|
3005
|
+
suggestion_source?: MistranscriptionSuggestionSource;
|
|
3006
|
+
glossary_term_id?: string;
|
|
3007
|
+
/** Confidence (0..1) the term IS mistranscribed. */
|
|
3008
|
+
misheard_confidence: number;
|
|
3009
|
+
/** Confidence (0..1) the suggested replacement fits. */
|
|
3010
|
+
replacement_confidence: number;
|
|
3011
|
+
status: MistranscribedTermStatus;
|
|
3012
|
+
/** The text actually written into the transcript, once applied. */
|
|
3013
|
+
applied_replacement?: string;
|
|
3014
|
+
resolved_by?: UserRef;
|
|
3015
|
+
resolved_at?: string;
|
|
3016
|
+
created_at: string;
|
|
3017
|
+
created_by: UserRef;
|
|
3018
|
+
updated_at: string;
|
|
3019
|
+
updated_by: UserRef;
|
|
3020
|
+
}
|
|
3021
|
+
/**
|
|
3022
|
+
* Accepts a proposed finding: `replacement` overrides the reviewer's
|
|
3023
|
+
* suggestion when set; `create_glossary_term` promotes the applied replacement
|
|
3024
|
+
* into the org glossary and links the finding to it.
|
|
3025
|
+
*/
|
|
3026
|
+
interface AcceptMistranscribedTermRequest {
|
|
3027
|
+
replacement?: string;
|
|
3028
|
+
create_glossary_term?: {
|
|
3029
|
+
definition?: string;
|
|
3030
|
+
priority?: number;
|
|
3031
|
+
};
|
|
3032
|
+
}
|
|
3033
|
+
interface ListMistranscribedTermsQuery extends PaginationQuery {
|
|
3034
|
+
status?: MistranscribedTermStatus;
|
|
3035
|
+
transcription_id?: string;
|
|
3036
|
+
conversation_id?: string;
|
|
3037
|
+
}
|
|
2896
3038
|
/**
|
|
2897
3039
|
* Sends a meeting bot (Ava) into a meeting through an active meeting
|
|
2898
3040
|
* connection (adhoc-meeting). join_at schedules the bot ahead of time (ISO
|
|
@@ -3003,7 +3145,11 @@ declare class ConversationClient {
|
|
|
3003
3145
|
readonly conversationFilters: ConversationFilterService;
|
|
3004
3146
|
/** Per-org glossary: custom vocabulary that boosts transcription accuracy. */
|
|
3005
3147
|
readonly glossaryTerms: GlossaryTermService;
|
|
3148
|
+
/** Conversation taxonomy: the types the pre-summary classifier assigns. */
|
|
3149
|
+
readonly conversationTypes: ConversationTypeService;
|
|
3006
3150
|
readonly transcriptions: TranscriptionService;
|
|
3151
|
+
/** Review-pass findings: likely misheard terms awaiting accept/reject. */
|
|
3152
|
+
readonly mistranscribedTerms: MistranscribedTermService;
|
|
3007
3153
|
/** Meeting bots (Ava): dispatch into a meeting URL, remove from a meeting. */
|
|
3008
3154
|
readonly meetings: MeetingService;
|
|
3009
3155
|
/** Realtime speech-to-text (dictation) — moved here from agent-service. */
|
|
@@ -3044,6 +3190,15 @@ interface ConnectionService {
|
|
|
3044
3190
|
delete(id: string): Promise<void>;
|
|
3045
3191
|
/** Begin the connector's install flow; open the returned URL in a popup. */
|
|
3046
3192
|
install(id: string): Promise<InstallConnectionResponse>;
|
|
3193
|
+
/**
|
|
3194
|
+
* Trigger a historical backfill ("sync all") on an email connection: the
|
|
3195
|
+
* server fetches provider mail in the chosen range and ingests it through
|
|
3196
|
+
* the normal pipeline (conversation filters, dedupe, agent listeners).
|
|
3197
|
+
* Returns 202 with the connection already showing
|
|
3198
|
+
* settings.sync_status='in_progress' — poll get(id) until it flips to
|
|
3199
|
+
* done/failed. A running sync answers 409 (sync_already_running).
|
|
3200
|
+
*/
|
|
3201
|
+
sync(id: string, request: SyncConnectionRequest): Promise<Connection>;
|
|
3047
3202
|
/** Search the contact addresses this connection can reach (org-deduped) for the compose picker. */
|
|
3048
3203
|
listContactAddresses(connectionId: string, query?: ListContactAddressesQuery): Promise<ListResponse<ContactAddress>>;
|
|
3049
3204
|
/** Search a connection's addressable VENUES (Slack channels) for the compose picker. */
|
|
@@ -3146,6 +3301,23 @@ interface GlossaryTermService {
|
|
|
3146
3301
|
update(id: string, request: UpdateGlossaryTermRequest): Promise<GlossaryTerm>;
|
|
3147
3302
|
delete(id: string): Promise<void>;
|
|
3148
3303
|
}
|
|
3304
|
+
/**
|
|
3305
|
+
* The org's conversation taxonomy. Before a meeting summary is generated, a
|
|
3306
|
+
* cheap classifier reads the transcript head plus every type's `definition`
|
|
3307
|
+
* and picks the matching `key` — the result lands on `Conversation.type_key`,
|
|
3308
|
+
* and a type whose `config.summary_prompt_key` names an agent-service prompt
|
|
3309
|
+
* swaps the summary system prompt for that prompt's current body. Keyed by
|
|
3310
|
+
* `key` (not id); `upsert` is the idempotent module-deploy door.
|
|
3311
|
+
*/
|
|
3312
|
+
interface ConversationTypeService {
|
|
3313
|
+
list(query?: ListConversationTypesQuery): Promise<ListResponse<ConversationType>>;
|
|
3314
|
+
get(key: string): Promise<ConversationType>;
|
|
3315
|
+
create(request: CreateConversationTypeRequest): Promise<ConversationType>;
|
|
3316
|
+
update(key: string, request: UpdateConversationTypeRequest): Promise<ConversationType>;
|
|
3317
|
+
/** Idempotent create-or-update by key (PUT) — what `pro module deploy` calls. */
|
|
3318
|
+
upsert(key: string, request: CreateConversationTypeRequest): Promise<ConversationType>;
|
|
3319
|
+
delete(key: string): Promise<void>;
|
|
3320
|
+
}
|
|
3149
3321
|
/** Batch transcription of stored audio files + materialization. */
|
|
3150
3322
|
interface TranscriptionService {
|
|
3151
3323
|
/**
|
|
@@ -3156,9 +3328,33 @@ interface TranscriptionService {
|
|
|
3156
3328
|
createFromFile(request: CreateTranscriptionRequest): Promise<Transcription>;
|
|
3157
3329
|
list(query?: ListTranscriptionsQuery): Promise<ListResponse<Transcription>>;
|
|
3158
3330
|
get(id: string): Promise<Transcription>;
|
|
3331
|
+
/**
|
|
3332
|
+
* Edits a completed transcription (turn text, speaker labels, language).
|
|
3333
|
+
* Does NOT retro-update messages of an already-materialized conversation.
|
|
3334
|
+
*/
|
|
3335
|
+
update(id: string, request: UpdateTranscriptionRequest): Promise<Transcription>;
|
|
3336
|
+
/**
|
|
3337
|
+
* Kicks off the mistranscription review pass (glossary-aware LLM hunt for
|
|
3338
|
+
* misheard terms) — resolves immediately with review_status `processing`;
|
|
3339
|
+
* poll `get(id)` until it flips to feedback_pending/completed/failed.
|
|
3340
|
+
*/
|
|
3341
|
+
review(id: string): Promise<Transcription>;
|
|
3159
3342
|
/** Turns a completed transcription into an adhoc/meeting conversation. */
|
|
3160
3343
|
materialize(id: string, request?: MaterializeTranscriptionRequest): Promise<Conversation>;
|
|
3161
3344
|
}
|
|
3345
|
+
/**
|
|
3346
|
+
* Findings of the post-transcription review pass: terms likely misheard by the
|
|
3347
|
+
* transcription provider, awaiting accept/reject. Accepting applies the
|
|
3348
|
+
* replacement to the transcription's turns and (optionally) promotes it into
|
|
3349
|
+
* the glossary; resolving the last open finding flips the transcription's
|
|
3350
|
+
* review_status to completed.
|
|
3351
|
+
*/
|
|
3352
|
+
interface MistranscribedTermService {
|
|
3353
|
+
list(query?: ListMistranscribedTermsQuery): Promise<ListResponse<MistranscribedTerm>>;
|
|
3354
|
+
get(id: string): Promise<MistranscribedTerm>;
|
|
3355
|
+
accept(id: string, request?: AcceptMistranscribedTermRequest): Promise<MistranscribedTerm>;
|
|
3356
|
+
reject(id: string): Promise<MistranscribedTerm>;
|
|
3357
|
+
}
|
|
3162
3358
|
|
|
3163
3359
|
/**
|
|
3164
3360
|
* A single row from a query result. Keys match the result-set columns
|
|
@@ -5524,6 +5720,35 @@ interface AgentActionParams {
|
|
|
5524
5720
|
output_schema?: Attribute[];
|
|
5525
5721
|
is_output_required?: boolean;
|
|
5526
5722
|
}
|
|
5723
|
+
/**
|
|
5724
|
+
* Where a model call's optional system instruction comes from. Empty/absent
|
|
5725
|
+
* defaults to `none`.
|
|
5726
|
+
*/
|
|
5727
|
+
type SystemSource = 'none' | 'manual' | 'prompt';
|
|
5728
|
+
/**
|
|
5729
|
+
* Flat, descriptor-driven parameters of the `proteos-nodes-core.model-call`
|
|
5730
|
+
* node: one stateless LLM call per input item. The prompt and the optional
|
|
5731
|
+
* system instruction are independently sourced — typed inline (`manual`,
|
|
5732
|
+
* Liquid-resolved per item) or resolved verbatim from a reusable Prompt by key
|
|
5733
|
+
* (`prompt`). With `has_structured_output`, `output_schema` declares the
|
|
5734
|
+
* reply's shape as platform attributes: generation is schema-constrained
|
|
5735
|
+
* (forced tool) AND the node validates the returned JSON, failing the item
|
|
5736
|
+
* after one automatic repair attempt.
|
|
5737
|
+
*/
|
|
5738
|
+
interface ModelCallParams {
|
|
5739
|
+
/** Empty resolves to the platform default model. */
|
|
5740
|
+
model_id?: string;
|
|
5741
|
+
temperature?: number;
|
|
5742
|
+
max_tokens?: number;
|
|
5743
|
+
prompt_source?: KickoffSource;
|
|
5744
|
+
prompt_text?: string;
|
|
5745
|
+
prompt_key?: string;
|
|
5746
|
+
system_source?: SystemSource;
|
|
5747
|
+
system_text?: string;
|
|
5748
|
+
system_prompt_key?: string;
|
|
5749
|
+
has_structured_output?: boolean;
|
|
5750
|
+
output_schema?: Attribute[];
|
|
5751
|
+
}
|
|
5527
5752
|
interface Workflow extends AuditFields {
|
|
5528
5753
|
org_id: string;
|
|
5529
5754
|
key: string;
|
|
@@ -5632,7 +5857,7 @@ interface WorkflowVersion {
|
|
|
5632
5857
|
* node-execution-only: the node never ran because no items reached it).
|
|
5633
5858
|
*/
|
|
5634
5859
|
type ExecutionStatus = 'pending' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'skipped';
|
|
5635
|
-
type TriggerKind = 'schedule' | 'manual' | 'webhook' | 'event' | 'message' | 'workflow';
|
|
5860
|
+
type TriggerKind = 'schedule' | 'manual' | 'webhook' | 'event' | 'message' | 'connector' | 'platform_event' | 'workflow';
|
|
5636
5861
|
/**
|
|
5637
5862
|
* Why and how an execution fired. Flat, kind-discriminated: `kind` selects
|
|
5638
5863
|
* which optional fields are meaningful. `payload` carries the trigger's data
|
|
@@ -5847,4 +6072,4 @@ declare class WorkflowClient {
|
|
|
5847
6072
|
constructor(client: ProteosClient);
|
|
5848
6073
|
}
|
|
5849
6074
|
|
|
5850
|
-
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 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 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 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 };
|
|
6075
|
+
export { type AcceptMistranscribedTermRequest, 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 ConversationType, type ConversationTypeConfig, type ConversationTypeService, type CreateAgentListenerRequest, type CreateAgentRequest, type CreateConnectionRequest, type CreateConnectorConnectionRequest, type CreateConversationFilterRequest, type CreateConversationTypeRequest, 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 ListConversationTypesQuery, type ListConversationsQuery, type ListEventsOptions, type ListExecutionsOptions, type ListGlossaryTermsQuery, type ListLabelsOptions, type ListLinksOptions, type ListMcpServersOptions, type ListMessagesQuery, type ListMistranscribedTermsQuery, 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 MistranscribedTerm, type MistranscribedTermService, type MistranscribedTermStatus, type MistranscriptionSuggestionSource, 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 TranscriptTurn, type Transcription, type TranscriptionReviewStatus, type TranscriptionStatus, type TriggerKind, type Turn, type UnreadCounts, type UpdateAgentListenerRequest, type UpdateAgentRequest, type UpdateConnectionRequest, type UpdateConnectorConnectionRequest, type UpdateContactRequest, type UpdateConversationFilterRequest, type UpdateConversationTypeRequest, 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 };
|