@proteos/sdk 0.57.0 → 0.58.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-2EB3P4AR.cjs → chunk-25PD6TYH.cjs} +4 -3
- package/dist/chunk-25PD6TYH.cjs.map +1 -0
- package/dist/{chunk-U3FT5KAH.js → chunk-OOOTPEJK.js} +4 -3
- package/dist/chunk-OOOTPEJK.js.map +1 -0
- package/dist/index.cjs +279 -119
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +615 -3
- package/dist/index.d.ts +615 -3
- package/dist/index.js +162 -2
- package/dist/index.js.map +1 -1
- package/dist/meta/index.cjs +89 -89
- 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-mC4i_Wk3.d.cts → types-DQmqR_G8.d.cts} +8 -0
- package/dist/{types-mC4i_Wk3.d.ts → types-DQmqR_G8.d.ts} +8 -0
- package/package.json +1 -1
- package/src/auth/platform-entities.ts +6 -0
- package/src/conversation/index.ts +286 -0
- package/src/conversation/types.ts +580 -0
- package/src/index.ts +36 -0
- package/src/meta/types.ts +6 -0
- package/dist/chunk-2EB3P4AR.cjs.map +0 -1
- package/dist/chunk-U3FT5KAH.js.map +0 -1
package/dist/index.d.ts
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 PrincipalRef, R as ResponseMeta$1, e as PublicAccessOperation } from './types-
|
|
2
|
-
export { f as App, g as AppConfiguration, h as AppConfigurationSchema, i as AppConfigurationService, j as AppHome, k as AppHomeSchema, l as AppHomeType, m as AppSchema, n as AppService, o as ArrayAttributeMeta, p as AttributeAccessRule, q as AttributeRestrictions, r as AttributeSchema, s as AttributeType, t as AuditFieldsSchema, C as CURRENT_USER, u as CURRENT_USER_DEFAULT, v as ClientOptions, w as Column, x as ColumnSchema, y as ComparisonOperator, z as Component, B as ComponentSchema, D as ComponentService, E as ContactAddressAttributeKind, G as ContactAddressAttributeMeta, H as ContactAddressAttributeMetaSchema, I as ContactBindingDuplicatePolicy, J as CreateAppConfigurationRequest, K as CreateAppRequest, M as CreateComponentRequest, N as CreateDesignReferenceRequest, O as CreateEntityExtensionRequest, Q as CreateEntityRequest, S as CreateListExtensionRequest, T as CreateListRequest, V as CreateListViewRequest, W as CreateMenuConfigurationExtensionRequest, X as CreateMenuConfigurationRequest, Y as CreatePageExtensionRequest, Z as CreatePageRequest, _ as CreateVariableRequest, $ as CurrencyAttributeMeta, a0 as CurrencyAttributeMetaSchema, a1 as CurrencySymbolSide, a2 as CurrencyValue, a3 as CurrentUserDefault, a4 as DEFAULT_OPTIONS, a5 as DEFAULT_PAGE_SIZE, a6 as DONE, a7 as DeployModuleRequest, a8 as DesignReference, a9 as DesignReferenceContent, aa as DesignReferenceSchema, ab as DesignReferenceService, ac as Done, ad as Entity, ae as EntityContactBinding, af as EntityContactBindingSchema, ag as EntityExtension, ah as EntityExtensionSchema, ai as EntityExtensionService, aj as EntitySchema, ak as EntityService, al as EntityWithSchema, am as EntityWithSchemaSchema, an as EnumAttributeMeta, ao as EnumValue, ap as ExtensionPosition, aq as ExtensionPositionSchema, ar as FileAttributeMeta, as as FileRefSchema, at as FilterElement, au as FilterElementSchema, av as FilterGroup, aw as FilterGroupSchema, ax as List, ay as ListAppConfigurationsOptions, az as ListAppsOptions, aA as ListComponentsOptions, aB as ListDesignReferencesOptions, aC as ListEntitiesOptions, aD as ListEntityExtensionsOptions, aE as ListExtension, aF as ListExtensionColumnPlacement, aG as ListExtensionColumnPlacementSchema, aH as ListExtensionSchema, aI as ListExtensionService, aJ as ListFn, aK as ListListExtensionsOptions, aL as ListListViewsOptions, aM as ListListsOptions, aN as ListMenuConfigurationExtensionsOptions, aO as ListMenuConfigurationsOptions, aP as ListModulesOptions, aQ as ListPageExtensionsOptions, aR as ListPagesOptions, aS as ListSchema, aT as ListService, aU as ListVariablesOptions, aV as ListView, aW as ListViewSchema, aX as ListViewService, aY as LogicalOperator, aZ as MENU_CONFIGURATION_EXTENSION_ANCHOR_ITEMS, a_ as MenuConfiguration, a$ as MenuConfigurationExtension, b0 as MenuConfigurationExtensionPlacement, b1 as MenuConfigurationExtensionPlacementSchema, b2 as MenuConfigurationExtensionPosition, b3 as MenuConfigurationExtensionPositionSchema, b4 as MenuConfigurationExtensionSchema, b5 as MenuConfigurationExtensionService, b6 as MenuConfigurationSchema, b7 as MenuConfigurationService, b8 as MenuItem, b9 as MenuItemSchema, ba as MenuItemType, bb as MetaClient, bc as MetaListOptions, bd as Module, be as ModuleSchema, bf as ModuleService, bg as ModuleStatus, bh as OnDeleteAction, bi as OnDeleteActionSchema, bj as PAGE_EXTENSION_ANCHOR_MAIN, bk as PAGE_EXTENSION_ANCHOR_SIDE_PANEL, bl as PLATFORM_ATTRIBUTE_NAMES, bm as PLATFORM_USER_ID, bn as Page, bo as PageAction, bp as PageActionKind, bq as PageActionSchema, br as PageExtension, bs as PageExtensionPlacement, bt as PageExtensionPlacementSchema, bu as PageExtensionSchema, bv as PageExtensionService, bw as PageLayout, bx as PageLayoutSchema, by as PageSchema, bz as PageService, bA as PageType, bB as PublicPageComponent, bC as PublicPageResponse, bD as RelationAttributeMeta, bE as RelationAttributeMetaSchema, bF as RequestOptions, bG as ResolvedClientOptions, bH as ResponseMetaSchema, bI as SortConfig, bJ as SortConfigSchema, bK as SortDirection, bL as Timestamps, bM as TokenProvider, bN as UpdateAppConfigurationRequest, bO as UpdateAppRequest, bP as UpdateComponentRequest, bQ as UpdateDesignReferenceRequest, bR as UpdateEntityExtensionRequest, bS as UpdateEntityRequest, bT as UpdateListExtensionRequest, bU as UpdateListRequest, bV as UpdateListViewRequest, bW as UpdateMenuConfigurationExtensionRequest, bX as UpdateMenuConfigurationRequest, bY as UpdatePageExtensionRequest, bZ as UpdatePageRequest, b_ as UpdateVariableRequest, b$ as UserRefSchema, c0 as UserType, c1 as Variable, c2 as VariableSchema, c3 as VariableService, c4 as acceptsCurrentUserDefault, c5 as allCurrencyCodes, c6 as createIterator, c7 as createListResultSchema, c8 as currencyLabel, c9 as currencySymbol, ca as currencySymbolSide, cb as formatAmount, cc as formatMoney, cd as isCurrentUser, ce as isCurrentUserDefault, cf as isPlatformAttributeName, cg as localeNumberSeparators, ch as parseAmount, ci as parseContactAddressMeta, cj as parseCurrencyMeta, ck as parseFileMeta, cl as parseRelationMeta, cm as platformAttributes, cn 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 PrincipalRef, R as ResponseMeta$1, e as PublicAccessOperation } from './types-DQmqR_G8.js';
|
|
2
|
+
export { f as App, g as AppConfiguration, h as AppConfigurationSchema, i as AppConfigurationService, j as AppHome, k as AppHomeSchema, l as AppHomeType, m as AppSchema, n as AppService, o as ArrayAttributeMeta, p as AttributeAccessRule, q as AttributeRestrictions, r as AttributeSchema, s as AttributeType, t as AuditFieldsSchema, C as CURRENT_USER, u as CURRENT_USER_DEFAULT, v as ClientOptions, w as Column, x as ColumnSchema, y as ComparisonOperator, z as Component, B as ComponentSchema, D as ComponentService, E as ContactAddressAttributeKind, G as ContactAddressAttributeMeta, H as ContactAddressAttributeMetaSchema, I as ContactBindingDuplicatePolicy, J as CreateAppConfigurationRequest, K as CreateAppRequest, M as CreateComponentRequest, N as CreateDesignReferenceRequest, O as CreateEntityExtensionRequest, Q as CreateEntityRequest, S as CreateListExtensionRequest, T as CreateListRequest, V as CreateListViewRequest, W as CreateMenuConfigurationExtensionRequest, X as CreateMenuConfigurationRequest, Y as CreatePageExtensionRequest, Z as CreatePageRequest, _ as CreateVariableRequest, $ as CurrencyAttributeMeta, a0 as CurrencyAttributeMetaSchema, a1 as CurrencySymbolSide, a2 as CurrencyValue, a3 as CurrentUserDefault, a4 as DEFAULT_OPTIONS, a5 as DEFAULT_PAGE_SIZE, a6 as DONE, a7 as DeployModuleRequest, a8 as DesignReference, a9 as DesignReferenceContent, aa as DesignReferenceSchema, ab as DesignReferenceService, ac as Done, ad as Entity, ae as EntityContactBinding, af as EntityContactBindingSchema, ag as EntityExtension, ah as EntityExtensionSchema, ai as EntityExtensionService, aj as EntitySchema, ak as EntityService, al as EntityWithSchema, am as EntityWithSchemaSchema, an as EnumAttributeMeta, ao as EnumValue, ap as ExtensionPosition, aq as ExtensionPositionSchema, ar as FileAttributeMeta, as as FileRefSchema, at as FilterElement, au as FilterElementSchema, av as FilterGroup, aw as FilterGroupSchema, ax as List, ay as ListAppConfigurationsOptions, az as ListAppsOptions, aA as ListComponentsOptions, aB as ListDesignReferencesOptions, aC as ListEntitiesOptions, aD as ListEntityExtensionsOptions, aE as ListExtension, aF as ListExtensionColumnPlacement, aG as ListExtensionColumnPlacementSchema, aH as ListExtensionSchema, aI as ListExtensionService, aJ as ListFn, aK as ListListExtensionsOptions, aL as ListListViewsOptions, aM as ListListsOptions, aN as ListMenuConfigurationExtensionsOptions, aO as ListMenuConfigurationsOptions, aP as ListModulesOptions, aQ as ListPageExtensionsOptions, aR as ListPagesOptions, aS as ListSchema, aT as ListService, aU as ListVariablesOptions, aV as ListView, aW as ListViewSchema, aX as ListViewService, aY as LogicalOperator, aZ as MENU_CONFIGURATION_EXTENSION_ANCHOR_ITEMS, a_ as MenuConfiguration, a$ as MenuConfigurationExtension, b0 as MenuConfigurationExtensionPlacement, b1 as MenuConfigurationExtensionPlacementSchema, b2 as MenuConfigurationExtensionPosition, b3 as MenuConfigurationExtensionPositionSchema, b4 as MenuConfigurationExtensionSchema, b5 as MenuConfigurationExtensionService, b6 as MenuConfigurationSchema, b7 as MenuConfigurationService, b8 as MenuItem, b9 as MenuItemSchema, ba as MenuItemType, bb as MetaClient, bc as MetaListOptions, bd as Module, be as ModuleSchema, bf as ModuleService, bg as ModuleStatus, bh as OnDeleteAction, bi as OnDeleteActionSchema, bj as PAGE_EXTENSION_ANCHOR_MAIN, bk as PAGE_EXTENSION_ANCHOR_SIDE_PANEL, bl as PLATFORM_ATTRIBUTE_NAMES, bm as PLATFORM_USER_ID, bn as Page, bo as PageAction, bp as PageActionKind, bq as PageActionSchema, br as PageExtension, bs as PageExtensionPlacement, bt as PageExtensionPlacementSchema, bu as PageExtensionSchema, bv as PageExtensionService, bw as PageLayout, bx as PageLayoutSchema, by as PageSchema, bz as PageService, bA as PageType, bB as PublicPageComponent, bC as PublicPageResponse, bD as RelationAttributeMeta, bE as RelationAttributeMetaSchema, bF as RequestOptions, bG as ResolvedClientOptions, bH as ResponseMetaSchema, bI as SortConfig, bJ as SortConfigSchema, bK as SortDirection, bL as Timestamps, bM as TokenProvider, bN as UpdateAppConfigurationRequest, bO as UpdateAppRequest, bP as UpdateComponentRequest, bQ as UpdateDesignReferenceRequest, bR as UpdateEntityExtensionRequest, bS as UpdateEntityRequest, bT as UpdateListExtensionRequest, bU as UpdateListRequest, bV as UpdateListViewRequest, bW as UpdateMenuConfigurationExtensionRequest, bX as UpdateMenuConfigurationRequest, bY as UpdatePageExtensionRequest, bZ as UpdatePageRequest, b_ as UpdateVariableRequest, b$ as UserRefSchema, c0 as UserType, c1 as Variable, c2 as VariableSchema, c3 as VariableService, c4 as acceptsCurrentUserDefault, c5 as allCurrencyCodes, c6 as createIterator, c7 as createListResultSchema, c8 as currencyLabel, c9 as currencySymbol, ca as currencySymbolSide, cb as formatAmount, cc as formatMoney, cd as isCurrentUser, ce as isCurrentUserDefault, cf as isPlatformAttributeName, cg as localeNumberSeparators, ch as parseAmount, ci as parseContactAddressMeta, cj as parseCurrencyMeta, ck as parseFileMeta, cl as parseRelationMeta, cm as platformAttributes, cn as resolveOptions } from './types-DQmqR_G8.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -3702,6 +3702,541 @@ interface ListConversationTypesQuery extends PaginationQuery {
|
|
|
3702
3702
|
search?: string;
|
|
3703
3703
|
module_slug?: string;
|
|
3704
3704
|
}
|
|
3705
|
+
/**
|
|
3706
|
+
* Discriminates a tag definition's question (1:1 with the agent-service
|
|
3707
|
+
* decision question types): boolean ("is this present?"), choice ("which
|
|
3708
|
+
* one?"), score ("where on this ordered scale?").
|
|
3709
|
+
*/
|
|
3710
|
+
type ConversationTagQuestionType = 'boolean' | 'choice' | 'score';
|
|
3711
|
+
/**
|
|
3712
|
+
* What a tag anchors to: the whole conversation (one value per conversation),
|
|
3713
|
+
* one message (a verdict per message), or a span (character ranges inside a
|
|
3714
|
+
* message, or message-to-message ranges). `span` REQUIRES evaluator kind
|
|
3715
|
+
* `reason` — only a reasoning generation can localise verbatim quotes.
|
|
3716
|
+
*/
|
|
3717
|
+
type ConversationTagScope = 'conversation' | 'message' | 'span';
|
|
3718
|
+
/**
|
|
3719
|
+
* The model path a definition is judged by: `decide` (agent-service's
|
|
3720
|
+
* calibrated typed decision — probabilities, no prose, no localisation) or
|
|
3721
|
+
* `reason` (a schema-constrained generation that returns rationale + verbatim
|
|
3722
|
+
* anchors; required for span scope).
|
|
3723
|
+
*/
|
|
3724
|
+
type ConversationTagEvaluatorKind = 'decide' | 'reason';
|
|
3725
|
+
/**
|
|
3726
|
+
* WHY an evaluation ran: `realtime` (the debounced window after new messages),
|
|
3727
|
+
* `completion` (the conversation completed — final transcript + summary for
|
|
3728
|
+
* spoken media, End for the rest) or `manual` (`conversationTags.evaluate`).
|
|
3729
|
+
* A tag set's `evaluate_on` lists the automatic ones it subscribes to; manual
|
|
3730
|
+
* ignores it.
|
|
3731
|
+
*/
|
|
3732
|
+
type ConversationTagTrigger = 'realtime' | 'completion' | 'manual';
|
|
3733
|
+
/** Who produced a tag: the evaluator (`model`) or a person (`user`). */
|
|
3734
|
+
type ConversationTagSource = 'model' | 'user';
|
|
3735
|
+
/**
|
|
3736
|
+
* `pending` = a provisional realtime observation on a spoken-medium
|
|
3737
|
+
* conversation that is still live (a completion evaluation will replace it);
|
|
3738
|
+
* `active` = current; `dismissed` = a person rejected it — kept as feedback
|
|
3739
|
+
* and never re-created by a later evaluation.
|
|
3740
|
+
*/
|
|
3741
|
+
type ConversationTagStatus = 'pending' | 'active' | 'dismissed';
|
|
3742
|
+
/**
|
|
3743
|
+
* One evaluation's lifecycle: `pending` (a manual evaluation was accepted and
|
|
3744
|
+
* not yet started), `running`, `done`, `failed`.
|
|
3745
|
+
*/
|
|
3746
|
+
type ConversationTagEvaluationStatus = 'pending' | 'running' | 'done' | 'failed';
|
|
3747
|
+
/**
|
|
3748
|
+
* Spells out what makes a boolean question hold (`true`) or not (`false`)
|
|
3749
|
+
* when the boundary is subtle.
|
|
3750
|
+
*/
|
|
3751
|
+
interface BooleanTagCriteria {
|
|
3752
|
+
true: string;
|
|
3753
|
+
false: string;
|
|
3754
|
+
}
|
|
3755
|
+
/**
|
|
3756
|
+
* Populated per question type: boolean → `boolean` (optional, both
|
|
3757
|
+
* descriptions or neither), choice → `choice` (option key → description,
|
|
3758
|
+
* ≥ 2), score → `score` (ordered level descriptions, ≥ 2; the tag value is
|
|
3759
|
+
* the 0-based level index). Descriptions are handed to the evaluator
|
|
3760
|
+
* verbatim, so they should describe the observable content, not internal
|
|
3761
|
+
* process.
|
|
3762
|
+
*/
|
|
3763
|
+
interface ConversationTagCriteria {
|
|
3764
|
+
boolean?: BooleanTagCriteria;
|
|
3765
|
+
choice?: Record<string, string>;
|
|
3766
|
+
score?: string[];
|
|
3767
|
+
}
|
|
3768
|
+
/**
|
|
3769
|
+
* The decide-shaped question a definition asks over a conversation — the
|
|
3770
|
+
* same three types as the agent-service decision question, with criteria in
|
|
3771
|
+
* an explicit struct so manifests and SDKs need no tagged-union decoder.
|
|
3772
|
+
* `type` is immutable after create: tag values are typed by it.
|
|
3773
|
+
*/
|
|
3774
|
+
interface ConversationTagQuestion {
|
|
3775
|
+
type: ConversationTagQuestionType;
|
|
3776
|
+
instructions: string;
|
|
3777
|
+
/** Always on the wire; pass `{}` for a boolean question without descriptions. */
|
|
3778
|
+
criteria: ConversationTagCriteria;
|
|
3779
|
+
}
|
|
3780
|
+
/**
|
|
3781
|
+
* Makes a `reason` definition ask the cheap decide model first whether it
|
|
3782
|
+
* applies anywhere in the judged window (its own boolean question, one answer
|
|
3783
|
+
* per window); only a definition that passes (probability ≥ `min_probability`)
|
|
3784
|
+
* reaches the reasoning call, which is skipped entirely when nothing passes. A
|
|
3785
|
+
* screened-out definition's stale tags are still replaced. Boolean questions
|
|
3786
|
+
* only — choice and score always have an answer. Omitted = screening on with
|
|
3787
|
+
* the service default threshold (0.3, `CONVERSATION_TAG_SCREENING_MIN_PROBABILITY`);
|
|
3788
|
+
* `{ is_enabled: false }` turns it off. The service rejects `screening` on a
|
|
3789
|
+
* `decide` evaluator or on a choice/score question, and a `min_probability`
|
|
3790
|
+
* outside 0..1.
|
|
3791
|
+
*/
|
|
3792
|
+
interface ConversationTagScreening {
|
|
3793
|
+
is_enabled: boolean;
|
|
3794
|
+
/** Pass threshold in 0..1; absent = the service default. */
|
|
3795
|
+
min_probability?: number;
|
|
3796
|
+
}
|
|
3797
|
+
/**
|
|
3798
|
+
* Selects the model path. `model_id` is only meaningful for `reason` (absent =
|
|
3799
|
+
* the service default); `decide` always uses the service-wide decision model.
|
|
3800
|
+
* `screening` is only meaningful for `reason` with a boolean question; absent =
|
|
3801
|
+
* screening on with the service default threshold.
|
|
3802
|
+
*/
|
|
3803
|
+
interface ConversationTagEvaluator {
|
|
3804
|
+
kind: ConversationTagEvaluatorKind;
|
|
3805
|
+
model_id?: string;
|
|
3806
|
+
screening?: ConversationTagScreening;
|
|
3807
|
+
}
|
|
3808
|
+
/**
|
|
3809
|
+
* Describes WHAT to look for in a conversation: one typed question plus where
|
|
3810
|
+
* its answers anchor (`scope`) and which model path answers it (`evaluator`).
|
|
3811
|
+
* WHERE and WHEN a definition is evaluated is a ConversationTagSet's business
|
|
3812
|
+
* — a definition that no enabled set references is never evaluated. Keyed
|
|
3813
|
+
* (org_id, key) and module-deployable (conversation-tag-definitions/<key>.json),
|
|
3814
|
+
* like conversation types.
|
|
3815
|
+
*/
|
|
3816
|
+
interface ConversationTagDefinition {
|
|
3817
|
+
org_id: string;
|
|
3818
|
+
/** Immutable identity within the org — the value every tag carries as `definition_key`. */
|
|
3819
|
+
key: string;
|
|
3820
|
+
name: string;
|
|
3821
|
+
/** Free grouping for UIs ("content", "sentiment", "signal"). */
|
|
3822
|
+
group?: string;
|
|
3823
|
+
question: ConversationTagQuestion;
|
|
3824
|
+
/** `span` requires `evaluator.kind = 'reason'`. */
|
|
3825
|
+
scope: ConversationTagScope;
|
|
3826
|
+
evaluator: ConversationTagEvaluator;
|
|
3827
|
+
/**
|
|
3828
|
+
* Narrows message/span-scope judging to messages of these directions (e.g.
|
|
3829
|
+
* inbound only for customer sentiment); empty = all. Ignored for
|
|
3830
|
+
* conversation scope.
|
|
3831
|
+
*/
|
|
3832
|
+
directions: MessageDirection[];
|
|
3833
|
+
/**
|
|
3834
|
+
* Observations below it are dropped, for every question type — an absent
|
|
3835
|
+
* tag means "not determined", not "false".
|
|
3836
|
+
*/
|
|
3837
|
+
min_confidence: number;
|
|
3838
|
+
/** Optional UI hint (any CSS color token the client accepts). */
|
|
3839
|
+
color?: string;
|
|
3840
|
+
is_enabled: boolean;
|
|
3841
|
+
/** Module that deployed the definition; absent when not module-owned. */
|
|
3842
|
+
module_slug?: string;
|
|
3843
|
+
created_at: string;
|
|
3844
|
+
created_by: UserRef;
|
|
3845
|
+
updated_at: string;
|
|
3846
|
+
updated_by: UserRef;
|
|
3847
|
+
}
|
|
3848
|
+
/**
|
|
3849
|
+
* Describes WHERE and WHEN a group of tag definitions is evaluated. A
|
|
3850
|
+
* conversation matches a set when every NON-EMPTY selector contains it:
|
|
3851
|
+
* `channels`, `connection_ids`, `type_keys` (an empty conversation `type_key`
|
|
3852
|
+
* never matches a type-scoped set, so type-scoped sets only apply once a
|
|
3853
|
+
* conversation has been classified). At least one of those three must be
|
|
3854
|
+
* non-empty — tagging is opt-in, never org-wide by accident. `directions` is
|
|
3855
|
+
* a message-level filter on top (which messages arm / are judged), not a
|
|
3856
|
+
* conversation selector. Matched sets union their definition keys; timing
|
|
3857
|
+
* takes the minimum quiet window and max wait over the matched sets that
|
|
3858
|
+
* evaluate in realtime. Keyed (org_id, key) and module-deployable
|
|
3859
|
+
* (conversation-tag-sets/<key>.json).
|
|
3860
|
+
*/
|
|
3861
|
+
interface ConversationTagSet {
|
|
3862
|
+
org_id: string;
|
|
3863
|
+
key: string;
|
|
3864
|
+
name: string;
|
|
3865
|
+
/**
|
|
3866
|
+
* The definitions this set evaluates (≥ 1; each must exist in the org at
|
|
3867
|
+
* write time — a definition deleted later is skipped).
|
|
3868
|
+
*/
|
|
3869
|
+
definition_keys: string[];
|
|
3870
|
+
channels: Channel[];
|
|
3871
|
+
connection_ids: string[];
|
|
3872
|
+
type_keys: string[];
|
|
3873
|
+
/**
|
|
3874
|
+
* Narrows which NEW messages arm a realtime evaluation (and which messages a
|
|
3875
|
+
* completion evaluation judges for message/span scope): inbound only,
|
|
3876
|
+
* outbound only, or both when empty. A definition's own `directions`
|
|
3877
|
+
* narrows further.
|
|
3878
|
+
*/
|
|
3879
|
+
directions: MessageDirection[];
|
|
3880
|
+
/**
|
|
3881
|
+
* A non-empty subset of [realtime, completion]: realtime = the debounced
|
|
3882
|
+
* window after new messages arrive; completion = once the conversation
|
|
3883
|
+
* completed (final transcript + summary for spoken media, End for the
|
|
3884
|
+
* rest). Manual evaluations ignore it.
|
|
3885
|
+
*/
|
|
3886
|
+
evaluate_on: ConversationTagTrigger[];
|
|
3887
|
+
/** A realtime evaluation fires this long after the LAST new message (default 90, min 5). */
|
|
3888
|
+
quiet_window_seconds: number;
|
|
3889
|
+
/**
|
|
3890
|
+
* Bounds the wait since the FIRST unjudged message (default 600, ≥ quiet
|
|
3891
|
+
* window) so a busy stream is still tagged periodically.
|
|
3892
|
+
*/
|
|
3893
|
+
max_wait_seconds: number;
|
|
3894
|
+
is_enabled: boolean;
|
|
3895
|
+
/** Module that deployed the set; absent when not module-owned. */
|
|
3896
|
+
module_slug?: string;
|
|
3897
|
+
created_at: string;
|
|
3898
|
+
created_by: UserRef;
|
|
3899
|
+
updated_at: string;
|
|
3900
|
+
updated_by: UserRef;
|
|
3901
|
+
}
|
|
3902
|
+
/**
|
|
3903
|
+
* One observation a definition made on a conversation.
|
|
3904
|
+
*
|
|
3905
|
+
* Anchors encode the definition's scope: conversation scope = every anchor
|
|
3906
|
+
* field absent; message scope = `start_message_id === end_message_id` with no
|
|
3907
|
+
* offsets; span = offsets set (a span may cross messages, then start/end
|
|
3908
|
+
* message ids differ). Offsets are UNICODE CODE POINT indexes into the
|
|
3909
|
+
* message's first text content block, end exclusive — JS strings are UTF-16,
|
|
3910
|
+
* so convert (e.g. via `Array.from(text)` / code-point iteration) before
|
|
3911
|
+
* slicing. `quote` (and `end_quote` for a span that continues into a later
|
|
3912
|
+
* message) is the verbatim text at the anchor: the reason evaluator emits
|
|
3913
|
+
* quotes because a model cannot count characters, the service resolves them
|
|
3914
|
+
* to offsets, and afterwards the quote is the evidence that survives a message
|
|
3915
|
+
* row change (the final transcript swaps realtime message ids; a term
|
|
3916
|
+
* correction edits text) — a tag whose anchors no longer resolve still shows
|
|
3917
|
+
* its quote and can be re-anchored by search.
|
|
3918
|
+
*
|
|
3919
|
+
* `value` is normalized per question type: `"true"` for a boolean (false is
|
|
3920
|
+
* never stored), the option key for a choice, the 0-based level index AS A
|
|
3921
|
+
* STRING for a score. Status `pending` marks a provisional realtime
|
|
3922
|
+
* observation on a live spoken-medium conversation; a completion evaluation
|
|
3923
|
+
* replaces it. Dismissed tags are feedback: a later evaluation never
|
|
3924
|
+
* re-creates a tag matching a dismissed one on (definition_key, value,
|
|
3925
|
+
* start/end message).
|
|
3926
|
+
*/
|
|
3927
|
+
interface ConversationTag {
|
|
3928
|
+
id: string;
|
|
3929
|
+
org_id: string;
|
|
3930
|
+
conversation_id: string;
|
|
3931
|
+
/**
|
|
3932
|
+
* Denormalized from the conversation so org-wide lists and counts group by
|
|
3933
|
+
* channel without a join.
|
|
3934
|
+
*/
|
|
3935
|
+
channel: Channel;
|
|
3936
|
+
definition_key: string;
|
|
3937
|
+
/** `"true"` | choice option key | score level index as a string. */
|
|
3938
|
+
value: string;
|
|
3939
|
+
confidence: number;
|
|
3940
|
+
/**
|
|
3941
|
+
* The raw decide distribution (`{"true":p,"false":1-p}`, option → p, or
|
|
3942
|
+
* `{"levels":[…],"mean":x}`); a screened reason tag carries
|
|
3943
|
+
* `{"screening":p}` instead; absent for unscreened reason and user tags.
|
|
3944
|
+
*/
|
|
3945
|
+
probabilities?: Record<string, unknown>;
|
|
3946
|
+
/** The reason evaluator's one-line rationale; absent for decide. */
|
|
3947
|
+
why?: string;
|
|
3948
|
+
source: ConversationTagSource;
|
|
3949
|
+
status: ConversationTagStatus;
|
|
3950
|
+
/** Links a model tag to the evaluation that produced it. */
|
|
3951
|
+
evaluation_id?: string;
|
|
3952
|
+
start_message_id?: string;
|
|
3953
|
+
/** Unicode code-point index, inclusive. */
|
|
3954
|
+
start_offset?: number;
|
|
3955
|
+
end_message_id?: string;
|
|
3956
|
+
/** Unicode code-point index, exclusive. */
|
|
3957
|
+
end_offset?: number;
|
|
3958
|
+
start_occurred_at?: string;
|
|
3959
|
+
end_occurred_at?: string;
|
|
3960
|
+
quote?: string;
|
|
3961
|
+
end_quote?: string;
|
|
3962
|
+
/**
|
|
3963
|
+
* When the observed thing happened (the end message's `occurred_at`, else
|
|
3964
|
+
* the last message's) — the time-series axis.
|
|
3965
|
+
*/
|
|
3966
|
+
observed_at: string;
|
|
3967
|
+
created_at: string;
|
|
3968
|
+
created_by: UserRef;
|
|
3969
|
+
updated_at: string;
|
|
3970
|
+
updated_by: UserRef;
|
|
3971
|
+
}
|
|
3972
|
+
/**
|
|
3973
|
+
* One row of `conversationTags.counts`: the grouped columns that were
|
|
3974
|
+
* requested plus the count.
|
|
3975
|
+
*/
|
|
3976
|
+
interface ConversationTagCount {
|
|
3977
|
+
definition_key?: string;
|
|
3978
|
+
value?: string;
|
|
3979
|
+
channel?: Channel;
|
|
3980
|
+
count: number;
|
|
3981
|
+
}
|
|
3982
|
+
/**
|
|
3983
|
+
* The model spend of one evaluation, summed over its decide and generate
|
|
3984
|
+
* calls.
|
|
3985
|
+
*/
|
|
3986
|
+
interface ConversationTagUsage {
|
|
3987
|
+
input_tokens: number;
|
|
3988
|
+
output_tokens: number;
|
|
3989
|
+
request_count: number;
|
|
3990
|
+
}
|
|
3991
|
+
/**
|
|
3992
|
+
* One screening verdict of an evaluation: the decide probability that the
|
|
3993
|
+
* definition applies in the judged window and whether that passed the
|
|
3994
|
+
* threshold. `probability` is absent (and `error` set) when the screening
|
|
3995
|
+
* could not be asked — it then passes, fail-open.
|
|
3996
|
+
*/
|
|
3997
|
+
interface ConversationTagScreeningResult {
|
|
3998
|
+
definition_key: string;
|
|
3999
|
+
probability?: number;
|
|
4000
|
+
is_passed: boolean;
|
|
4001
|
+
error?: string;
|
|
4002
|
+
}
|
|
4003
|
+
/**
|
|
4004
|
+
* Records one time the tagger ran on a conversation: why (`trigger`), what it
|
|
4005
|
+
* judged (`definition_keys`, the message window), with which models, what it
|
|
4006
|
+
* cost, and how it ended. Model tags reference it through `evaluation_id`
|
|
4007
|
+
* (provenance), the UI polls it after a manual evaluate (202), and the latest
|
|
4008
|
+
* done realtime/completion evaluation's `window_end_occurred_at` is the
|
|
4009
|
+
* watermark the next realtime window starts after.
|
|
4010
|
+
*
|
|
4011
|
+
* Window = the messages JUDGED by this evaluation. realtime: everything after
|
|
4012
|
+
* the previous watermark (older messages ride along as context only);
|
|
4013
|
+
* completion/manual: all messages. Lifecycle: manual creates `pending` on the
|
|
4014
|
+
* 202 then flips to `running`; realtime/completion create `running` directly;
|
|
4015
|
+
* ends `done` or `failed`.
|
|
4016
|
+
*/
|
|
4017
|
+
interface ConversationTagEvaluation {
|
|
4018
|
+
id: string;
|
|
4019
|
+
org_id: string;
|
|
4020
|
+
conversation_id: string;
|
|
4021
|
+
trigger: ConversationTagTrigger;
|
|
4022
|
+
status: ConversationTagEvaluationStatus;
|
|
4023
|
+
definition_keys: string[];
|
|
4024
|
+
model_ids: string[];
|
|
4025
|
+
usage: ConversationTagUsage;
|
|
4026
|
+
/**
|
|
4027
|
+
* The rendered state exceeded the cap and older context (or, for a huge
|
|
4028
|
+
* window, the newest window messages — deferred to the next evaluation) was
|
|
4029
|
+
* dropped.
|
|
4030
|
+
*/
|
|
4031
|
+
is_truncated: boolean;
|
|
4032
|
+
window_start_occurred_at?: string;
|
|
4033
|
+
window_end_occurred_at?: string;
|
|
4034
|
+
window_message_ids: string[];
|
|
4035
|
+
/**
|
|
4036
|
+
* Every screened reason definition's verdict, so "why was nothing tagged"
|
|
4037
|
+
* is answerable and thresholds can be tuned. Empty when no definition was
|
|
4038
|
+
* screened.
|
|
4039
|
+
*/
|
|
4040
|
+
screenings: ConversationTagScreeningResult[];
|
|
4041
|
+
error?: string;
|
|
4042
|
+
started_at: string;
|
|
4043
|
+
finished_at?: string;
|
|
4044
|
+
created_at: string;
|
|
4045
|
+
created_by: UserRef;
|
|
4046
|
+
updated_at: string;
|
|
4047
|
+
updated_by: UserRef;
|
|
4048
|
+
}
|
|
4049
|
+
/**
|
|
4050
|
+
* The `conversation.tagged` event payload: the conversation, the evaluation
|
|
4051
|
+
* that landed, and every tag it produced (status pending or active — the
|
|
4052
|
+
* event header carries the status so a consumer can filter provisional
|
|
4053
|
+
* realtime observations without decoding).
|
|
4054
|
+
*/
|
|
4055
|
+
interface ConversationTaggedEvent {
|
|
4056
|
+
conversation: Conversation;
|
|
4057
|
+
evaluation: ConversationTagEvaluation;
|
|
4058
|
+
tags: ConversationTag[];
|
|
4059
|
+
}
|
|
4060
|
+
/**
|
|
4061
|
+
* Creates one tag definition. `key` is the immutable identity (kebab/snake,
|
|
4062
|
+
* like every platform key); `question` is the decide-shaped question the
|
|
4063
|
+
* evaluator answers; `scope` and `evaluator` say where answers anchor and
|
|
4064
|
+
* which model path answers (`span` requires `evaluator.kind = 'reason'`).
|
|
4065
|
+
* `is_enabled` omitted ⇒ true (manifests may omit it). `module_slug` is
|
|
4066
|
+
* stamped by `pro module deploy` — interactive callers leave it empty.
|
|
4067
|
+
*/
|
|
4068
|
+
interface CreateConversationTagDefinitionRequest {
|
|
4069
|
+
key: string;
|
|
4070
|
+
name?: string;
|
|
4071
|
+
group?: string;
|
|
4072
|
+
question: ConversationTagQuestion;
|
|
4073
|
+
scope: ConversationTagScope;
|
|
4074
|
+
evaluator: ConversationTagEvaluator;
|
|
4075
|
+
directions?: MessageDirection[];
|
|
4076
|
+
/** 0..1 */
|
|
4077
|
+
min_confidence?: number;
|
|
4078
|
+
color?: string;
|
|
4079
|
+
is_enabled?: boolean;
|
|
4080
|
+
module_slug?: string;
|
|
4081
|
+
}
|
|
4082
|
+
/**
|
|
4083
|
+
* Partial update — an omitted field leaves the stored value untouched.
|
|
4084
|
+
* `question`, when present, replaces the stored question wholesale but must
|
|
4085
|
+
* keep its `type` (400 `conversation_tag_question_type_immutable` otherwise).
|
|
4086
|
+
* `directions` replaces wholesale. `key` is immutable.
|
|
4087
|
+
*/
|
|
4088
|
+
interface UpdateConversationTagDefinitionRequest {
|
|
4089
|
+
name?: string;
|
|
4090
|
+
group?: string;
|
|
4091
|
+
question?: ConversationTagQuestion;
|
|
4092
|
+
scope?: ConversationTagScope;
|
|
4093
|
+
evaluator?: ConversationTagEvaluator;
|
|
4094
|
+
directions?: MessageDirection[];
|
|
4095
|
+
/** 0..1 */
|
|
4096
|
+
min_confidence?: number;
|
|
4097
|
+
color?: string;
|
|
4098
|
+
is_enabled?: boolean;
|
|
4099
|
+
}
|
|
4100
|
+
interface ListConversationTagDefinitionsQuery extends PaginationQuery {
|
|
4101
|
+
/** Definitions deployed by one module — the `pro module` remote-state discovery door. */
|
|
4102
|
+
module_slug?: string;
|
|
4103
|
+
/** Exact filter. */
|
|
4104
|
+
group?: string;
|
|
4105
|
+
/** Exact filter. */
|
|
4106
|
+
scope?: string;
|
|
4107
|
+
is_enabled?: boolean;
|
|
4108
|
+
/** Case-insensitive substring match on key or name. */
|
|
4109
|
+
search?: string;
|
|
4110
|
+
}
|
|
4111
|
+
/**
|
|
4112
|
+
* Creates one tag set: which definitions to evaluate (`definition_keys`, ≥ 1,
|
|
4113
|
+
* each must exist), for which conversations (at least one of `channels` /
|
|
4114
|
+
* `connection_ids` / `type_keys` non-empty; `directions` additionally limits
|
|
4115
|
+
* which messages arm/are judged — empty = both), when (`evaluate_on` ⊆
|
|
4116
|
+
* [realtime, completion], ≥ 1) and the realtime timing (omitted ⇒ defaults:
|
|
4117
|
+
* quiet 90s, max wait 600s). `is_enabled` omitted ⇒ true. `module_slug` is
|
|
4118
|
+
* stamped by `pro module deploy`.
|
|
4119
|
+
*/
|
|
4120
|
+
interface CreateConversationTagSetRequest {
|
|
4121
|
+
key: string;
|
|
4122
|
+
name?: string;
|
|
4123
|
+
definition_keys: string[];
|
|
4124
|
+
channels?: Channel[];
|
|
4125
|
+
connection_ids?: string[];
|
|
4126
|
+
type_keys?: string[];
|
|
4127
|
+
directions?: MessageDirection[];
|
|
4128
|
+
evaluate_on: ConversationTagTrigger[];
|
|
4129
|
+
quiet_window_seconds?: number;
|
|
4130
|
+
max_wait_seconds?: number;
|
|
4131
|
+
is_enabled?: boolean;
|
|
4132
|
+
module_slug?: string;
|
|
4133
|
+
}
|
|
4134
|
+
/**
|
|
4135
|
+
* Partial update — an omitted field leaves the stored value untouched; arrays
|
|
4136
|
+
* replace wholesale. `key` is immutable.
|
|
4137
|
+
*/
|
|
4138
|
+
interface UpdateConversationTagSetRequest {
|
|
4139
|
+
name?: string;
|
|
4140
|
+
definition_keys?: string[];
|
|
4141
|
+
channels?: Channel[];
|
|
4142
|
+
connection_ids?: string[];
|
|
4143
|
+
type_keys?: string[];
|
|
4144
|
+
directions?: MessageDirection[];
|
|
4145
|
+
evaluate_on?: ConversationTagTrigger[];
|
|
4146
|
+
quiet_window_seconds?: number;
|
|
4147
|
+
max_wait_seconds?: number;
|
|
4148
|
+
is_enabled?: boolean;
|
|
4149
|
+
}
|
|
4150
|
+
interface ListConversationTagSetsQuery extends PaginationQuery {
|
|
4151
|
+
/** Sets deployed by one module. */
|
|
4152
|
+
module_slug?: string;
|
|
4153
|
+
/** Sets that reference the definition. */
|
|
4154
|
+
definition_key?: string;
|
|
4155
|
+
is_enabled?: boolean;
|
|
4156
|
+
/** Case-insensitive substring match on key or name. */
|
|
4157
|
+
search?: string;
|
|
4158
|
+
}
|
|
4159
|
+
/**
|
|
4160
|
+
* The manual door (`conversationTags.create`): a person tags a conversation,
|
|
4161
|
+
* a message or a span. Anchors follow the definition's scope (conversation:
|
|
4162
|
+
* none; message: start == end message, no offsets; span: UNICODE CODE POINT
|
|
4163
|
+
* offsets into the message's first text block, end exclusive — convert from
|
|
4164
|
+
* UTF-16 indexes before sending). The service stamps `source = 'user'`,
|
|
4165
|
+
* confidence 1, and fills `quote` from the anchored text.
|
|
4166
|
+
*/
|
|
4167
|
+
interface CreateConversationTagRequest {
|
|
4168
|
+
definition_key: string;
|
|
4169
|
+
/** `"true"` | choice option key | score level index as a string. */
|
|
4170
|
+
value: string;
|
|
4171
|
+
why?: string;
|
|
4172
|
+
start_message_id?: string;
|
|
4173
|
+
/** Unicode code-point index, inclusive. */
|
|
4174
|
+
start_offset?: number;
|
|
4175
|
+
end_message_id?: string;
|
|
4176
|
+
/** Unicode code-point index, exclusive. */
|
|
4177
|
+
end_offset?: number;
|
|
4178
|
+
}
|
|
4179
|
+
/**
|
|
4180
|
+
* Flips a tag between `active` and `dismissed` (the feedback loop) and lets a
|
|
4181
|
+
* person annotate why.
|
|
4182
|
+
*/
|
|
4183
|
+
interface UpdateConversationTagRequest {
|
|
4184
|
+
status?: ConversationTagStatus;
|
|
4185
|
+
why?: string;
|
|
4186
|
+
}
|
|
4187
|
+
/**
|
|
4188
|
+
* Starts a manual evaluation (`conversationTags.evaluate`, 202). Omitted or
|
|
4189
|
+
* empty `definition_keys` = every definition the currently matching sets
|
|
4190
|
+
* reference (and every model tag on the conversation is replaced); a list
|
|
4191
|
+
* narrows both the questions and the replacement to those keys.
|
|
4192
|
+
*/
|
|
4193
|
+
interface EvaluateConversationTagsRequest {
|
|
4194
|
+
definition_keys?: string[];
|
|
4195
|
+
}
|
|
4196
|
+
/**
|
|
4197
|
+
* Serves both `conversationTags.listByConversation` (the service forces
|
|
4198
|
+
* `conversation_id` from the path) and the org-wide `conversationTags.list`.
|
|
4199
|
+
*/
|
|
4200
|
+
interface ListConversationTagsQuery extends PaginationQuery {
|
|
4201
|
+
conversation_id?: string;
|
|
4202
|
+
definition_key?: string;
|
|
4203
|
+
value?: string;
|
|
4204
|
+
channel?: string;
|
|
4205
|
+
source?: string;
|
|
4206
|
+
status?: string;
|
|
4207
|
+
/** Tags anchored on the message at either end. */
|
|
4208
|
+
message_id?: string;
|
|
4209
|
+
/** Tags on conversations whose roster contains the contact. */
|
|
4210
|
+
contact_id?: string;
|
|
4211
|
+
/** Lower bound on `observed_at` (inclusive), RFC 3339. */
|
|
4212
|
+
since?: string;
|
|
4213
|
+
/** Upper bound on `observed_at` (exclusive), RFC 3339. */
|
|
4214
|
+
until?: string;
|
|
4215
|
+
}
|
|
4216
|
+
/**
|
|
4217
|
+
* Groups active tags for dashboards. `group_by` is a COMMA-JOINED string
|
|
4218
|
+
* (`'definition_key,value'`) — not an array, because the query serializer
|
|
4219
|
+
* repeats array keys — whitelisted to definition_key, value, channel (order
|
|
4220
|
+
* kept).
|
|
4221
|
+
*/
|
|
4222
|
+
interface CountConversationTagsQuery {
|
|
4223
|
+
group_by?: string;
|
|
4224
|
+
definition_key?: string;
|
|
4225
|
+
channel?: string;
|
|
4226
|
+
source?: string;
|
|
4227
|
+
status?: string;
|
|
4228
|
+
/** Lower bound on `observed_at` (inclusive), RFC 3339. */
|
|
4229
|
+
since?: string;
|
|
4230
|
+
/** Upper bound on `observed_at` (exclusive), RFC 3339. */
|
|
4231
|
+
until?: string;
|
|
4232
|
+
}
|
|
4233
|
+
interface CountConversationTagsResponse {
|
|
4234
|
+
data: ConversationTagCount[];
|
|
4235
|
+
}
|
|
4236
|
+
interface ListConversationTagEvaluationsQuery extends PaginationQuery {
|
|
4237
|
+
trigger?: string;
|
|
4238
|
+
status?: string;
|
|
4239
|
+
}
|
|
3705
4240
|
/** Who assigned a contact's group membership. */
|
|
3706
4241
|
type ContactGroupSource = 'manual' | 'model';
|
|
3707
4242
|
/**
|
|
@@ -3901,6 +4436,13 @@ interface ListConversationsQuery extends PaginationQuery {
|
|
|
3901
4436
|
sender_address_id?: string;
|
|
3902
4437
|
/** Opt into the root/latest message projection on each row. */
|
|
3903
4438
|
include?: 'messages_summary';
|
|
4439
|
+
/**
|
|
4440
|
+
* Conversations carrying an ACTIVE conversation tag of this definition —
|
|
4441
|
+
* the "which conversations talk about billing" stream.
|
|
4442
|
+
*/
|
|
4443
|
+
tag_key?: string;
|
|
4444
|
+
/** With `tag_key`: only conversations whose tag has this value. */
|
|
4445
|
+
tag_value?: string;
|
|
3904
4446
|
}
|
|
3905
4447
|
/**
|
|
3906
4448
|
* User-editable surface of a conversation (PATCH); everything else is owned by
|
|
@@ -5149,6 +5691,12 @@ declare class ConversationClient {
|
|
|
5149
5691
|
readonly glossaryTerms: GlossaryTermService;
|
|
5150
5692
|
/** Conversation taxonomy: the types the pre-summary classifier assigns. */
|
|
5151
5693
|
readonly conversationTypes: ConversationTypeService;
|
|
5694
|
+
/** Conversation intelligence: WHAT to look for — typed questions asked of conversations. */
|
|
5695
|
+
readonly conversationTagDefinitions: ConversationTagDefinitionService;
|
|
5696
|
+
/** Conversation intelligence: WHERE and WHEN definitions are evaluated. */
|
|
5697
|
+
readonly conversationTagSets: ConversationTagSetService;
|
|
5698
|
+
/** Conversation intelligence: the observations produced + their evaluation history. */
|
|
5699
|
+
readonly conversationTags: ConversationTagService;
|
|
5152
5700
|
/** Generic audience taxonomy; membership lives on the contact. */
|
|
5153
5701
|
readonly contactGroups: ContactGroupService;
|
|
5154
5702
|
/** Tone-of-voice synthesis: per-user setups + the generated profiles. */
|
|
@@ -5389,6 +5937,70 @@ interface ConversationTypeService {
|
|
|
5389
5937
|
upsert(key: string, request: CreateConversationTypeRequest): Promise<ConversationType>;
|
|
5390
5938
|
delete(key: string): Promise<void>;
|
|
5391
5939
|
}
|
|
5940
|
+
/**
|
|
5941
|
+
* Conversation tag definitions: WHAT to look for in a conversation — one
|
|
5942
|
+
* typed question (boolean / choice / score) plus where its answers anchor
|
|
5943
|
+
* (`scope`) and which model path answers (`evaluator`). A definition is only
|
|
5944
|
+
* evaluated through the tag sets that reference it. Keyed by `key` (not id);
|
|
5945
|
+
* `upsert` is the idempotent module-deploy door.
|
|
5946
|
+
*/
|
|
5947
|
+
interface ConversationTagDefinitionService {
|
|
5948
|
+
list(query?: ListConversationTagDefinitionsQuery): Promise<ListResponse$1<ConversationTagDefinition>>;
|
|
5949
|
+
get(key: string): Promise<ConversationTagDefinition>;
|
|
5950
|
+
create(request: CreateConversationTagDefinitionRequest): Promise<ConversationTagDefinition>;
|
|
5951
|
+
update(key: string, request: UpdateConversationTagDefinitionRequest): Promise<ConversationTagDefinition>;
|
|
5952
|
+
/** Idempotent create-or-update by key (PUT) — what `pro module deploy` calls. */
|
|
5953
|
+
upsert(key: string, request: CreateConversationTagDefinitionRequest): Promise<ConversationTagDefinition>;
|
|
5954
|
+
delete(key: string): Promise<void>;
|
|
5955
|
+
}
|
|
5956
|
+
/**
|
|
5957
|
+
* Conversation tag sets: WHERE and WHEN a group of definitions is evaluated.
|
|
5958
|
+
* A set needs at least one conversation selector (`channels`,
|
|
5959
|
+
* `connection_ids`, `type_keys`) — tagging is opt-in, never org-wide by
|
|
5960
|
+
* accident — and `evaluate_on` is a non-empty subset of realtime|completion.
|
|
5961
|
+
* Keyed by `key` (not id); `upsert` is the idempotent module-deploy door.
|
|
5962
|
+
*/
|
|
5963
|
+
interface ConversationTagSetService {
|
|
5964
|
+
list(query?: ListConversationTagSetsQuery): Promise<ListResponse$1<ConversationTagSet>>;
|
|
5965
|
+
get(key: string): Promise<ConversationTagSet>;
|
|
5966
|
+
create(request: CreateConversationTagSetRequest): Promise<ConversationTagSet>;
|
|
5967
|
+
update(key: string, request: UpdateConversationTagSetRequest): Promise<ConversationTagSet>;
|
|
5968
|
+
/** Idempotent create-or-update by key (PUT) — what `pro module deploy` calls. */
|
|
5969
|
+
upsert(key: string, request: CreateConversationTagSetRequest): Promise<ConversationTagSet>;
|
|
5970
|
+
delete(key: string): Promise<void>;
|
|
5971
|
+
}
|
|
5972
|
+
/**
|
|
5973
|
+
* Conversation tags: the observations definitions make on conversations,
|
|
5974
|
+
* plus the evaluations that produced them. Per-conversation reads/writes
|
|
5975
|
+
* hang off the conversation; `update`/`delete` address a tag by id; `list`
|
|
5976
|
+
* and `counts` are the org-wide streams. Span offsets are UNICODE CODE POINT
|
|
5977
|
+
* indexes (end exclusive) — convert to/from UTF-16 before slicing JS strings.
|
|
5978
|
+
*/
|
|
5979
|
+
interface ConversationTagService {
|
|
5980
|
+
/** Tags on one conversation (pending, active and dismissed unless `status` filters). */
|
|
5981
|
+
listByConversation(conversationId: string, query?: ListConversationTagsQuery): Promise<ListResponse$1<ConversationTag>>;
|
|
5982
|
+
/** A person tags a conversation, a message or a span (source = user, confidence 1). */
|
|
5983
|
+
create(conversationId: string, request: CreateConversationTagRequest): Promise<ConversationTag>;
|
|
5984
|
+
/**
|
|
5985
|
+
* Start a manual evaluation (202). Resolves with the PENDING evaluation as
|
|
5986
|
+
* soon as it is accepted — the tagger runs server-side beyond this request.
|
|
5987
|
+
* Poll `listEvaluations(conversationId)` until that evaluation's status is
|
|
5988
|
+
* `done` | `failed`, then re-read the tags. 409
|
|
5989
|
+
* `conversation_tag_set_not_matched` when no enabled set matches the
|
|
5990
|
+
* conversation; 409 `conversation_tag_evaluation_in_progress` while another
|
|
5991
|
+
* evaluation is still running.
|
|
5992
|
+
*/
|
|
5993
|
+
evaluate(conversationId: string, request?: EvaluateConversationTagsRequest): Promise<ConversationTagEvaluation>;
|
|
5994
|
+
/** The evaluation history of one conversation (newest first by default). */
|
|
5995
|
+
listEvaluations(conversationId: string, query?: ListConversationTagEvaluationsQuery): Promise<ListResponse$1<ConversationTagEvaluation>>;
|
|
5996
|
+
/** Flip a tag between active and dismissed (the feedback loop) and/or annotate why. */
|
|
5997
|
+
update(id: string, request: UpdateConversationTagRequest): Promise<ConversationTag>;
|
|
5998
|
+
delete(id: string): Promise<void>;
|
|
5999
|
+
/** Org-wide tag stream (filter by definition, value, channel, contact, time window). */
|
|
6000
|
+
list(query?: ListConversationTagsQuery): Promise<ListResponse$1<ConversationTag>>;
|
|
6001
|
+
/** Grouped counts for dashboards — `group_by` is a comma-joined string. */
|
|
6002
|
+
counts(query?: CountConversationTagsQuery): Promise<CountConversationTagsResponse>;
|
|
6003
|
+
}
|
|
5392
6004
|
/**
|
|
5393
6005
|
* Contact groups: the generic org-shared audience taxonomy. Membership lives
|
|
5394
6006
|
* on the contact (`Contact.group_key`, one group per contact — assign via
|
|
@@ -9563,4 +10175,4 @@ declare class WorkflowClient {
|
|
|
9563
10175
|
constructor(client: ProteosClient);
|
|
9564
10176
|
}
|
|
9565
10177
|
|
|
9566
|
-
export { type AcceptMistranscribedTermRequest, AccountClient, type Action, type ActionBinding, ActionSchema, type ActionScope, ActionScopeSchema, type ActionService, type AddTeamMemberRequest, type AddressFilterConfig, type Agent, type AgentActionParams, type AgentArtifactsPayload, AgentClient, type AgentListener, type AgentListenerAcknowledgementConfig, type AgentListenerAcknowledgementType, type AgentListenerActingUserMode, type AgentListenerService, type AgentListenerTriggerType, type AgentMessagePayload, type AgentResourceListOptions, type AgentService, type AllFilterConfig, type ApiErrorResponse, type ApiKey, type AppendEventRequest, type ApplySendingLimitPresetRequest, type AssignPermissionRequest, type AssignRoleRequest, type Assignment, type AttachContactAddressRequest, type AttachConversationBriefRequest, type Attachment, Attribute, AuditFields, type AuthListOptions, type AuthoredTranscriptTurn, type AutomatedFilterConfig, type AutomatedSignal, type AvailabilityConstraint, type AvailabilityConstraintService, type AvailabilityKind, type BatchTransactionError, BatchTransactionErrorSchema, type BatchTransactionStatus, type BatchUpsertRecordsResponse, BatchUpsertRecordsResponseSchema, type BatchUpsertTransaction, type BatchUpsertTransactionResult, BatchUpsertTransactionResultSchema, BatchUpsertTransactionSchema, type BinaryRef, type BlockContactRequest, type BookSchedulingLinkRequest, type BookSchedulingLinkResponse, type BookingContact, type BooleanAnswer, type BooleanCriteria, type BooleanQuestion, type BounceClassification, type BounceKind, type Calendar, type CalendarAttendee, type CalendarAttendeeRequest, type CalendarConnection, type CalendarConnectionService, type CalendarConnectionStatus, type CalendarEvent, type CalendarEventService, type CalendarEventType, type CalendarEventTypeService, type CalendarEventsResponse, type CalendarProvider, type CalendarService, type CalendarSync, type CalendarSyncStatus, type CalendarVisibility, type CalendarWatch, type CallStatus, type CallTokenResponse, type CancelPublicCalendarEventRequest, type Channel, type ChannelAction, type ChannelActionCapability, type ChannelActionParams, type ChannelActionResponse, type ChannelActionService, type ChannelActionStatus, type ChannelActionTargetKind, type ChannelActionType, type ChannelEvent, type ChannelEventService, type ChannelEventType, type ChoiceAnswer, type ChoiceQuestion, type ClientEventType, type ClientToolSchema, type ConferencingProvider, type Connection, type ConnectionCredentials, type ConnectionEndpoint, type ConnectionScope, type ConnectionService, type ConnectionStatus, type ConnectionSyncRange, type ConnectionSyncStatus, type Connector, type ConnectorCatalogEntry, 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 ContactAddressKey, type ContactAddressKind, type ContactAddressSource, type ContactErasureRequest, type ContactGroup, type ContactGroupService, type ContactGroupSource, type ContactMergeProposal, type ContactRecordLink, type ContactRecordLinkSource, type ContactRef, type ContactService, type ContactSource, type ContactStatus, type ContentBlock$1 as ContentBlock, type ContentMatch, type ContentResponse, type ContextCompactedPayload, type Conversation, type ConversationBrief, type ConversationBriefService, type ConversationBriefStatus, 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 CreateApiKeyRequest, type CreateAvailabilityConstraintRequest, type CreateCalendarConnectionRequest, type CreateCalendarEventRequest, type CreateConnectionRequest, type CreateConnectorConnectionRequest, type CreateContactGroupRequest, type CreateContactRecordLinkRequest, type CreateContactRequest, type CreateConversationBriefRequest, type CreateConversationFilterRequest, type CreateConversationTypeRequest, type CreateFileMetadata, type CreateGlossaryTermRequest, type CreateLabelRequest, type CreateLinkRequest, type CreateMcpServerRequest, type CreateNodeRequest, type CreateOrganizationRequest, type CreateProfileRequest, type CreatePromptRequest, type CreateRecordLinkRequest, type CreateRoleRequest, type CreateSchedulingLinkRequest, type CreateSendingRuleRequest, type CreateSessionRequest, type CreateSpaceRequest, type CreateTeamRequest, type CreateToneProfileSetupRequest, type CreateToolRequest, type CreateToolsetRequest, type CreateTranscriptionFromTextRequest, type CreateUserRequest, type CreateWorkflowRequest, type CreatedApiKey, type CredentialSpec, type CronTriggerParams, DEFAULT_PORT, DataClient, type DecideRequest, type DecisionAnswer, type DecisionAnswerFor, type DecisionQuestion, type DecisionQuestionType, type DecisionQuestions, type DecisionResult, type DependentAgent, type DependentSyncResult, type DispatchMeetingBotRequest, type DisplayOptions, type DomainFilterConfig, ERROR_PORT, type EditContentRequest, type EditContentResponse, type EmailDnsRecord, type EmailDomainStatus, type EmailEngagementQuality, type EmailHealth, type EmailHealthWindow, type EmailIp, type EmailProviderHealth, type EmailProviderStats, type EmailSender, type EmailSenderStatus, type EmailSuppression, type EmailSuppressionCounts, type EmailSuppressionKind, type EmptyPayload, type ErasureRequestStatus, ErrorCode, type ErrorCodeType, type ErrorPayload, type EventLocation, type EventSource, type EventStatus, type EventTransparency, type EventTriggerParams, type EventType, type EventVerb, type EventVisibility, type EventWriteStatus, EventsClient, type ExecutionError, type ExecutionStatus, type ExecutionTriggerContext, type FileBlock, FileRef, type FileService, type FileVersionContent, type FilterMatchOn, type FrequencyCapRuleConfig, FunctionsClient, type GenerateRequest, type GenerationResult, type GetConnectionHealthQuery, type GetExecutionDetailResponse, type GetGraphOptions, type GetNodeExecutionItemsOptions, type GetNodeExecutionItemsResponse, type GetNodeTypesResponse, type GetPublicSlotsQuery, type GetSlotsRequest, type GetSlotsResponse, type GlossaryTerm, type GlossaryTermService, type GraphService, type HostsRequest, type InlineLinkRequest, type InmailParams, type InstallConnectionResponse, type InstallConnectorConnectionResponse, type InternalConversationsFilterConfig, type InvitationParams, 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 KnowledgeSpace, type LabelService, type LimitRuleConfig, type LinkService, type LinkType, type ListActionsOptions, type ListAgentListenersQuery, type ListAgentsOptions, type ListAvailabilityConstraintsQuery, type ListCalendarConnectionsQuery, type ListCalendarEventTypesQuery, type ListCalendarEventsQuery, type ListCalendarsQuery, type ListChannelActionsQuery, type ListChannelEventsQuery, type ListConnectionsQuery, type ListConnectorConnectionsQuery, type ListConnectorsQuery, type ListContactAddressesQuery, type ListContactGroupsQuery, type ListContactMergeProposalsQuery, type ListContactRecordLinksQuery, type ListContactsQuery, type ListConversationBriefsQuery, 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 ListOrgUserRoleAssignmentsOptions, type ListOrganizationsOptions, type ListProfilesOptions, type ListPromptsOptions, type ListRecordDuplicatesQuery, type ListRecordLinksOptions, type ListRecordsOptions, type ListResponse$1 as ListResponse, ListResult, type ListRolePermissionsOptions, type ListRolesOptions, type ListRoomsQuery, type ListSchedulingLinksQuery, type ListSendingLimitPresetsQuery, type ListSendingRulesQuery, type ListSessionsOptions, type ListSkillsOptions, type ListSpacesOptions, type ListTeamMembersOptions, type ListTeamsOptions, type ListToneProfileSetupsQuery, type ListToneProfilesQuery, type ListToolsOptions, type ListToolsetsOptions, type ListUserProfileAssignmentsOptions, type ListUserRoleAssignmentsOptions, type ListUsersOptions, type ListWorkflowsOptions, type LocationKind, 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 MessageDelivery, type MessageDeliveryStatus, type MessageDirection, type MessagePreview, type MessageRecipient, type MessageService, type MessageStatus, type MessageTriggerParams, type MintCallTokenRequest, type MistranscribedTerm, type MistranscribedTermService, type MistranscribedTermStatus, type MistranscriptionSuggestionSource, type ModelCallParams, type ModelConfig, type ModelRequestEndPayload, type ModelRequestStartPayload, type ModelService, type ModelStopReason, 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 NotifyMode, type OnErrorPolicy, type Organization, OrganizationSchema, type OrganizationService, type OutlineHeading, type OutlineRequest, type OutlineResponse, PLATFORM_ENTITIES, PLATFORM_ENTITY_SLUGS, PageIterator, type PairedItem, type ParseStatus, type ParticipationStatus, type PerformChannelActionRequest, type Permission, type PermissionEventSource, type PermissionEventType, type PhoneNumber, type PhoneNumberRouting, type PhoneNumberStatus, type PlatformBinding, type PlatformEntity, type PlatformEvent, type PortSpec, type Profile, ProfileSchema, type ProfileService, type ProfileVisitParams, type Prompt, type PromptService, type PromptVersion, type PropertyOption, type PropertyType, ProteosClient, ProteosError, PublicAccessOperation, type PublicBookSchedulingLinkResponse, type PublicCalendarEvent, type PublicCalendarEventType, type PublicEventLocation, type PublicHost, type PublicSchedulingLink, type PublicSchedulingService, type PublishContactObservationsResponse, type PublishEventRequest, type PutCalendarEventTypeRequest, type PutSchedulingProfileRequest, type QueryBinding, 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 RecordDuplicate, type RecordDuplicateService, type RecordDuplicateSource, type RecordDuplicateStatus, type RecordLinkService, type RecordPermissionEventRequest, type RecordRef, type RecordService, type RecurrenceScope, type RedriveResult, type RescheduleHost, type ReschedulePublicCalendarEventRequest, type ResolveToneProfileQuery, type RespondCalendarEventRequest, type RespondChannelActionRequest, ResponseMeta$1 as ResponseMeta, type ResultBlock, type Role, type RoleBasedFilterConfig, type RoleEntityPermission, RoleEntityPermissionSchema, RoleSchema, type RoleService, type Room, type RoutingTarget, type RunWorkflowRequest, SCOPED_PLATFORM_ENTITY_SLUGS, SchedulingClient, type SchedulingLink, type SchedulingLinkService, type ListResponse as SchedulingListResponse, type SchedulingProfile, type SchedulingProfileService, type ScoreAnswer, type ScoreQuestion, type SearchContentRequest, type SearchContentResponse, type SearchNodesRequest, type SendEligibility, type SendEligibilityRequest, type SendMessageRequest, type SendRecipient, type SendingLimitPreset, type SendingPeriod, type SendingRule, type SendingRuleConfig, type SendingRuleService, type SendingRuleType, type Session, type SessionEvent, type SessionEventEnvelope, type SessionEventsOptions, type SessionIdlePayload, type SessionService, type SessionStatus, type SessionStreamOptions, type SessionUpdatedPayload, type SetDefaultSenderRequest, type SetProfileRequest, type SharePermission, type ShareRow, type ShareService, type Skill, type SkillBundle, type SkillService, type SkillVersion, type Slot, type SlotParameters, type SlotService, type SlotUnavailability, type SlotUnavailabilityReason, type SpaceService, type StartMcpOAuthResponse, type StopReason, StorageClient, type StorageFile, type StorageFileVersion, type StructuredText, type SyncConnectionRequest, type SystemSource, type TailOptions, type Team, type TeamMember, type TeamService, type TestNodeCandidate, type TestNodeInputSource, type TestNodeRequest, type TestNodeResponse, type TextBlock, type ToneProfile, type ToneProfileScope, type ToneProfileService, type ToneProfileSetup, type ToneProfileSetupStatus, type ToneProfileSource, type Tool, type ToolBinding, type ToolConfirmationPayload, type ToolKind, type ToolResultPayload, type ToolService, type ToolUsePayload, type Toolset, type ToolsetKind, type ToolsetService, type ToolsetToolSummary, type Topic, type TopicKind, type TopicService, type TranscribeStreamOptions, type TranscriptResult, type TranscriptTurn, type Transcription, type TranscriptionReviewStatus, type TranscriptionStatus, type TriggerKind, type Turn, UNASSIGNED_SPACE_SLUG, type UnreadCounts, type UpdateAgentListenerRequest, type UpdateAgentRequest, type UpdateAvailabilityConstraintRequest, type UpdateCalendarConnectionRequest, type UpdateCalendarEventRequest, type UpdateCalendarEventTypeRequest, type UpdateCalendarRequest, type UpdateCalendarSyncRequest, type UpdateConnectionRequest, type UpdateConnectorConnectionRequest, type UpdateContactGroupRequest, type UpdateContactRequest, type UpdateConversationBriefRequest, type UpdateConversationFilterRequest, type UpdateConversationTypeRequest, type UpdateDraftRequest, type UpdateFileMetadata, type UpdateGlossaryTermRequest, type UpdateLabelRequest, type UpdateLinkRequest, type UpdateMcpServerRequest, type UpdateMeRequest, type UpdateNodeRequest, type UpdateOrganizationRequest, type UpdatePhoneNumberRequest, type UpdateProfileRequest, type UpdatePromptRequest, type UpdateRoleRequest, type UpdateSchedulingLinkRequest, type UpdateSendingRuleRequest, type UpdateSpaceRequest, type UpdateTeamRequest, type UpdateToolRequest, type UpdateToolsetRequest, type UpdateUserRequest, type UpdateWorkflowRequest, type UpsertToneProfileRequest, type User, type UserMessagePayload, type UserProfileAssignment, UserProfileAssignmentSchema, type UserProfileAssignmentService, UserRef$2 as UserRef, type UserRoleAssignment, UserRoleAssignmentSchema, type UserRoleAssignmentService, UserSchema, type UserService, type VoiceService, type VoiceTranscriptionStream, type WarmupRuleConfig, type WebhookTriggerParams, type Weekday, type WindowDay, type WindowRuleConfig, 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, isShareable, isUnauthorized, parseErrorResponse, shareRouteFor, toQueryParams, toQueryString };
|
|
10178
|
+
export { type AcceptMistranscribedTermRequest, AccountClient, type Action, type ActionBinding, ActionSchema, type ActionScope, ActionScopeSchema, type ActionService, type AddTeamMemberRequest, type AddressFilterConfig, type Agent, type AgentActionParams, type AgentArtifactsPayload, AgentClient, type AgentListener, type AgentListenerAcknowledgementConfig, type AgentListenerAcknowledgementType, type AgentListenerActingUserMode, type AgentListenerService, type AgentListenerTriggerType, type AgentMessagePayload, type AgentResourceListOptions, type AgentService, type AllFilterConfig, type ApiErrorResponse, type ApiKey, type AppendEventRequest, type ApplySendingLimitPresetRequest, type AssignPermissionRequest, type AssignRoleRequest, type Assignment, type AttachContactAddressRequest, type AttachConversationBriefRequest, type Attachment, Attribute, AuditFields, type AuthListOptions, type AuthoredTranscriptTurn, type AutomatedFilterConfig, type AutomatedSignal, type AvailabilityConstraint, type AvailabilityConstraintService, type AvailabilityKind, type BatchTransactionError, BatchTransactionErrorSchema, type BatchTransactionStatus, type BatchUpsertRecordsResponse, BatchUpsertRecordsResponseSchema, type BatchUpsertTransaction, type BatchUpsertTransactionResult, BatchUpsertTransactionResultSchema, BatchUpsertTransactionSchema, type BinaryRef, type BlockContactRequest, type BookSchedulingLinkRequest, type BookSchedulingLinkResponse, type BookingContact, type BooleanAnswer, type BooleanCriteria, type BooleanQuestion, type BooleanTagCriteria, type BounceClassification, type BounceKind, type Calendar, type CalendarAttendee, type CalendarAttendeeRequest, type CalendarConnection, type CalendarConnectionService, type CalendarConnectionStatus, type CalendarEvent, type CalendarEventService, type CalendarEventType, type CalendarEventTypeService, type CalendarEventsResponse, type CalendarProvider, type CalendarService, type CalendarSync, type CalendarSyncStatus, type CalendarVisibility, type CalendarWatch, type CallStatus, type CallTokenResponse, type CancelPublicCalendarEventRequest, type Channel, type ChannelAction, type ChannelActionCapability, type ChannelActionParams, type ChannelActionResponse, type ChannelActionService, type ChannelActionStatus, type ChannelActionTargetKind, type ChannelActionType, type ChannelEvent, type ChannelEventService, type ChannelEventType, type ChoiceAnswer, type ChoiceQuestion, type ClientEventType, type ClientToolSchema, type ConferencingProvider, type Connection, type ConnectionCredentials, type ConnectionEndpoint, type ConnectionScope, type ConnectionService, type ConnectionStatus, type ConnectionSyncRange, type ConnectionSyncStatus, type Connector, type ConnectorCatalogEntry, 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 ContactAddressKey, type ContactAddressKind, type ContactAddressSource, type ContactErasureRequest, type ContactGroup, type ContactGroupService, type ContactGroupSource, type ContactMergeProposal, type ContactRecordLink, type ContactRecordLinkSource, type ContactRef, type ContactService, type ContactSource, type ContactStatus, type ContentBlock$1 as ContentBlock, type ContentMatch, type ContentResponse, type ContextCompactedPayload, type Conversation, type ConversationBrief, type ConversationBriefService, type ConversationBriefStatus, ConversationClient, type ConversationFilter, type ConversationFilterAction, type ConversationFilterConfig, type ConversationFilterEvent, type ConversationFilterService, type ConversationFilterType, type ConversationParticipant, type ConversationService, type ConversationStatus, type ConversationSummaryStatus, type ConversationTag, type ConversationTagCount, type ConversationTagCriteria, type ConversationTagDefinition, type ConversationTagDefinitionService, type ConversationTagEvaluation, type ConversationTagEvaluationStatus, type ConversationTagEvaluator, type ConversationTagEvaluatorKind, type ConversationTagQuestion, type ConversationTagQuestionType, type ConversationTagScope, type ConversationTagScreening, type ConversationTagScreeningResult, type ConversationTagService, type ConversationTagSet, type ConversationTagSetService, type ConversationTagSource, type ConversationTagStatus, type ConversationTagTrigger, type ConversationTagUsage, type ConversationTaggedEvent, type ConversationType, type ConversationTypeConfig, type ConversationTypeService, type CountConversationTagsQuery, type CountConversationTagsResponse, type CreateAgentListenerRequest, type CreateAgentRequest, type CreateApiKeyRequest, type CreateAvailabilityConstraintRequest, type CreateCalendarConnectionRequest, type CreateCalendarEventRequest, type CreateConnectionRequest, type CreateConnectorConnectionRequest, type CreateContactGroupRequest, type CreateContactRecordLinkRequest, type CreateContactRequest, type CreateConversationBriefRequest, type CreateConversationFilterRequest, type CreateConversationTagDefinitionRequest, type CreateConversationTagRequest, type CreateConversationTagSetRequest, type CreateConversationTypeRequest, type CreateFileMetadata, type CreateGlossaryTermRequest, type CreateLabelRequest, type CreateLinkRequest, type CreateMcpServerRequest, type CreateNodeRequest, type CreateOrganizationRequest, type CreateProfileRequest, type CreatePromptRequest, type CreateRecordLinkRequest, type CreateRoleRequest, type CreateSchedulingLinkRequest, type CreateSendingRuleRequest, type CreateSessionRequest, type CreateSpaceRequest, type CreateTeamRequest, type CreateToneProfileSetupRequest, type CreateToolRequest, type CreateToolsetRequest, type CreateTranscriptionFromTextRequest, type CreateUserRequest, type CreateWorkflowRequest, type CreatedApiKey, type CredentialSpec, type CronTriggerParams, DEFAULT_PORT, DataClient, type DecideRequest, type DecisionAnswer, type DecisionAnswerFor, type DecisionQuestion, type DecisionQuestionType, type DecisionQuestions, type DecisionResult, type DependentAgent, type DependentSyncResult, type DispatchMeetingBotRequest, type DisplayOptions, type DomainFilterConfig, ERROR_PORT, type EditContentRequest, type EditContentResponse, type EmailDnsRecord, type EmailDomainStatus, type EmailEngagementQuality, type EmailHealth, type EmailHealthWindow, type EmailIp, type EmailProviderHealth, type EmailProviderStats, type EmailSender, type EmailSenderStatus, type EmailSuppression, type EmailSuppressionCounts, type EmailSuppressionKind, type EmptyPayload, type ErasureRequestStatus, ErrorCode, type ErrorCodeType, type ErrorPayload, type EvaluateConversationTagsRequest, type EventLocation, type EventSource, type EventStatus, type EventTransparency, type EventTriggerParams, type EventType, type EventVerb, type EventVisibility, type EventWriteStatus, EventsClient, type ExecutionError, type ExecutionStatus, type ExecutionTriggerContext, type FileBlock, FileRef, type FileService, type FileVersionContent, type FilterMatchOn, type FrequencyCapRuleConfig, FunctionsClient, type GenerateRequest, type GenerationResult, type GetConnectionHealthQuery, type GetExecutionDetailResponse, type GetGraphOptions, type GetNodeExecutionItemsOptions, type GetNodeExecutionItemsResponse, type GetNodeTypesResponse, type GetPublicSlotsQuery, type GetSlotsRequest, type GetSlotsResponse, type GlossaryTerm, type GlossaryTermService, type GraphService, type HostsRequest, type InlineLinkRequest, type InmailParams, type InstallConnectionResponse, type InstallConnectorConnectionResponse, type InternalConversationsFilterConfig, type InvitationParams, 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 KnowledgeSpace, type LabelService, type LimitRuleConfig, type LinkService, type LinkType, type ListActionsOptions, type ListAgentListenersQuery, type ListAgentsOptions, type ListAvailabilityConstraintsQuery, type ListCalendarConnectionsQuery, type ListCalendarEventTypesQuery, type ListCalendarEventsQuery, type ListCalendarsQuery, type ListChannelActionsQuery, type ListChannelEventsQuery, type ListConnectionsQuery, type ListConnectorConnectionsQuery, type ListConnectorsQuery, type ListContactAddressesQuery, type ListContactGroupsQuery, type ListContactMergeProposalsQuery, type ListContactRecordLinksQuery, type ListContactsQuery, type ListConversationBriefsQuery, type ListConversationFilterEventsQuery, type ListConversationFiltersQuery, type ListConversationTagDefinitionsQuery, type ListConversationTagEvaluationsQuery, type ListConversationTagSetsQuery, type ListConversationTagsQuery, type ListConversationTypesQuery, type ListConversationsQuery, type ListEventsOptions, type ListExecutionsOptions, type ListGlossaryTermsQuery, type ListLabelsOptions, type ListLinksOptions, type ListMcpServersOptions, type ListMessagesQuery, type ListMistranscribedTermsQuery, type ListNodesOptions, ListOptions, type ListOrgUserRoleAssignmentsOptions, type ListOrganizationsOptions, type ListProfilesOptions, type ListPromptsOptions, type ListRecordDuplicatesQuery, type ListRecordLinksOptions, type ListRecordsOptions, type ListResponse$1 as ListResponse, ListResult, type ListRolePermissionsOptions, type ListRolesOptions, type ListRoomsQuery, type ListSchedulingLinksQuery, type ListSendingLimitPresetsQuery, type ListSendingRulesQuery, type ListSessionsOptions, type ListSkillsOptions, type ListSpacesOptions, type ListTeamMembersOptions, type ListTeamsOptions, type ListToneProfileSetupsQuery, type ListToneProfilesQuery, type ListToolsOptions, type ListToolsetsOptions, type ListUserProfileAssignmentsOptions, type ListUserRoleAssignmentsOptions, type ListUsersOptions, type ListWorkflowsOptions, type LocationKind, 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 MessageDelivery, type MessageDeliveryStatus, type MessageDirection, type MessagePreview, type MessageRecipient, type MessageService, type MessageStatus, type MessageTriggerParams, type MintCallTokenRequest, type MistranscribedTerm, type MistranscribedTermService, type MistranscribedTermStatus, type MistranscriptionSuggestionSource, type ModelCallParams, type ModelConfig, type ModelRequestEndPayload, type ModelRequestStartPayload, type ModelService, type ModelStopReason, 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 NotifyMode, type OnErrorPolicy, type Organization, OrganizationSchema, type OrganizationService, type OutlineHeading, type OutlineRequest, type OutlineResponse, PLATFORM_ENTITIES, PLATFORM_ENTITY_SLUGS, PageIterator, type PairedItem, type ParseStatus, type ParticipationStatus, type PerformChannelActionRequest, type Permission, type PermissionEventSource, type PermissionEventType, type PhoneNumber, type PhoneNumberRouting, type PhoneNumberStatus, type PlatformBinding, type PlatformEntity, type PlatformEvent, type PortSpec, type Profile, ProfileSchema, type ProfileService, type ProfileVisitParams, type Prompt, type PromptService, type PromptVersion, type PropertyOption, type PropertyType, ProteosClient, ProteosError, PublicAccessOperation, type PublicBookSchedulingLinkResponse, type PublicCalendarEvent, type PublicCalendarEventType, type PublicEventLocation, type PublicHost, type PublicSchedulingLink, type PublicSchedulingService, type PublishContactObservationsResponse, type PublishEventRequest, type PutCalendarEventTypeRequest, type PutSchedulingProfileRequest, type QueryBinding, 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 RecordDuplicate, type RecordDuplicateService, type RecordDuplicateSource, type RecordDuplicateStatus, type RecordLinkService, type RecordPermissionEventRequest, type RecordRef, type RecordService, type RecurrenceScope, type RedriveResult, type RescheduleHost, type ReschedulePublicCalendarEventRequest, type ResolveToneProfileQuery, type RespondCalendarEventRequest, type RespondChannelActionRequest, ResponseMeta$1 as ResponseMeta, type ResultBlock, type Role, type RoleBasedFilterConfig, type RoleEntityPermission, RoleEntityPermissionSchema, RoleSchema, type RoleService, type Room, type RoutingTarget, type RunWorkflowRequest, SCOPED_PLATFORM_ENTITY_SLUGS, SchedulingClient, type SchedulingLink, type SchedulingLinkService, type ListResponse as SchedulingListResponse, type SchedulingProfile, type SchedulingProfileService, type ScoreAnswer, type ScoreQuestion, type SearchContentRequest, type SearchContentResponse, type SearchNodesRequest, type SendEligibility, type SendEligibilityRequest, type SendMessageRequest, type SendRecipient, type SendingLimitPreset, type SendingPeriod, type SendingRule, type SendingRuleConfig, type SendingRuleService, type SendingRuleType, type Session, type SessionEvent, type SessionEventEnvelope, type SessionEventsOptions, type SessionIdlePayload, type SessionService, type SessionStatus, type SessionStreamOptions, type SessionUpdatedPayload, type SetDefaultSenderRequest, type SetProfileRequest, type SharePermission, type ShareRow, type ShareService, type Skill, type SkillBundle, type SkillService, type SkillVersion, type Slot, type SlotParameters, type SlotService, type SlotUnavailability, type SlotUnavailabilityReason, type SpaceService, type StartMcpOAuthResponse, type StopReason, StorageClient, type StorageFile, type StorageFileVersion, type StructuredText, type SyncConnectionRequest, type SystemSource, type TailOptions, type Team, type TeamMember, type TeamService, type TestNodeCandidate, type TestNodeInputSource, type TestNodeRequest, type TestNodeResponse, type TextBlock, type ToneProfile, type ToneProfileScope, type ToneProfileService, type ToneProfileSetup, type ToneProfileSetupStatus, type ToneProfileSource, type Tool, type ToolBinding, type ToolConfirmationPayload, type ToolKind, type ToolResultPayload, type ToolService, type ToolUsePayload, type Toolset, type ToolsetKind, type ToolsetService, type ToolsetToolSummary, type Topic, type TopicKind, type TopicService, type TranscribeStreamOptions, type TranscriptResult, type TranscriptTurn, type Transcription, type TranscriptionReviewStatus, type TranscriptionStatus, type TriggerKind, type Turn, UNASSIGNED_SPACE_SLUG, type UnreadCounts, type UpdateAgentListenerRequest, type UpdateAgentRequest, type UpdateAvailabilityConstraintRequest, type UpdateCalendarConnectionRequest, type UpdateCalendarEventRequest, type UpdateCalendarEventTypeRequest, type UpdateCalendarRequest, type UpdateCalendarSyncRequest, type UpdateConnectionRequest, type UpdateConnectorConnectionRequest, type UpdateContactGroupRequest, type UpdateContactRequest, type UpdateConversationBriefRequest, type UpdateConversationFilterRequest, type UpdateConversationTagDefinitionRequest, type UpdateConversationTagRequest, type UpdateConversationTagSetRequest, type UpdateConversationTypeRequest, type UpdateDraftRequest, type UpdateFileMetadata, type UpdateGlossaryTermRequest, type UpdateLabelRequest, type UpdateLinkRequest, type UpdateMcpServerRequest, type UpdateMeRequest, type UpdateNodeRequest, type UpdateOrganizationRequest, type UpdatePhoneNumberRequest, type UpdateProfileRequest, type UpdatePromptRequest, type UpdateRoleRequest, type UpdateSchedulingLinkRequest, type UpdateSendingRuleRequest, type UpdateSpaceRequest, type UpdateTeamRequest, type UpdateToolRequest, type UpdateToolsetRequest, type UpdateUserRequest, type UpdateWorkflowRequest, type UpsertToneProfileRequest, type User, type UserMessagePayload, type UserProfileAssignment, UserProfileAssignmentSchema, type UserProfileAssignmentService, UserRef$2 as UserRef, type UserRoleAssignment, UserRoleAssignmentSchema, type UserRoleAssignmentService, UserSchema, type UserService, type VoiceService, type VoiceTranscriptionStream, type WarmupRuleConfig, type WebhookTriggerParams, type Weekday, type WindowDay, type WindowRuleConfig, 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, isShareable, isUnauthorized, parseErrorResponse, shareRouteFor, toQueryParams, toQueryString };
|