@proteos/sdk 0.28.0 → 0.29.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +31 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +110 -1
- package/dist/index.d.ts +110 -1
- package/dist/index.js +31 -0
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/conversation/index.ts +55 -0
- package/src/conversation/types.ts +120 -0
- package/src/index.ts +18 -0
package/dist/index.d.cts
CHANGED
|
@@ -2503,6 +2503,100 @@ interface ListAgentListenersQuery extends PaginationQuery {
|
|
|
2503
2503
|
agent_key?: string;
|
|
2504
2504
|
is_enabled?: boolean;
|
|
2505
2505
|
}
|
|
2506
|
+
/**
|
|
2507
|
+
* Conversation filters: ingest-time rules that drop matching inbound messages
|
|
2508
|
+
* BEFORE persistence (no message, no contact — only a content-free audit
|
|
2509
|
+
* event). Scope-first evaluation: connection-scoped rules are final when one
|
|
2510
|
+
* matches; global rules apply otherwise. Specificity within a scope:
|
|
2511
|
+
* address > domain > role_based > automated > internal_conversations > all,
|
|
2512
|
+
* allow beats block within a class.
|
|
2513
|
+
*/
|
|
2514
|
+
type ConversationFilterType = 'address' | 'domain' | 'role_based' | 'automated' | 'internal_conversations' | 'all';
|
|
2515
|
+
type ConversationFilterAction = 'block' | 'allow';
|
|
2516
|
+
/** Which side of the message address/domain rules test (default: sender). */
|
|
2517
|
+
type FilterMatchOn = 'sender' | 'any_participant';
|
|
2518
|
+
/** Deterministic machine-mail header signals the automated filter matches. */
|
|
2519
|
+
type AutomatedSignal = 'auto_submitted' | 'bulk' | 'mailing_list' | 'bounce' | 'auto_response_suppress';
|
|
2520
|
+
/** Exact canonical address (lowercased email / E.164 phone / provider id), any channel kind. */
|
|
2521
|
+
interface AddressFilterConfig {
|
|
2522
|
+
kind: ContactAddressKind;
|
|
2523
|
+
value: string;
|
|
2524
|
+
match_on?: FilterMatchOn;
|
|
2525
|
+
}
|
|
2526
|
+
/** Equals on the parsed email domain (lowercase, no leading '@'). */
|
|
2527
|
+
interface DomainFilterConfig {
|
|
2528
|
+
domain: string;
|
|
2529
|
+
match_on?: FilterMatchOn;
|
|
2530
|
+
}
|
|
2531
|
+
/** Sender local-part is a role mailbox; empty prefixes = the built-in set. Email-only. */
|
|
2532
|
+
interface RoleBasedFilterConfig {
|
|
2533
|
+
prefixes?: string[];
|
|
2534
|
+
}
|
|
2535
|
+
/** Header-signal machine-mail detection; empty signals = all. Email-only. */
|
|
2536
|
+
interface AutomatedFilterConfig {
|
|
2537
|
+
signals?: AutomatedSignal[];
|
|
2538
|
+
}
|
|
2539
|
+
/** Drops only when sender AND every recipient are on these domains. Always block. */
|
|
2540
|
+
interface InternalConversationsFilterConfig {
|
|
2541
|
+
domains: string[];
|
|
2542
|
+
}
|
|
2543
|
+
/** Matches every message (empty config) — the scope-control primitive. */
|
|
2544
|
+
type AllFilterConfig = Record<string, never>;
|
|
2545
|
+
type ConversationFilterConfig = AddressFilterConfig | DomainFilterConfig | RoleBasedFilterConfig | AutomatedFilterConfig | InternalConversationsFilterConfig | AllFilterConfig;
|
|
2546
|
+
interface ConversationFilter {
|
|
2547
|
+
id: string;
|
|
2548
|
+
org_id: string;
|
|
2549
|
+
/** Empty = global (org-wide); set = scoped to that connection. */
|
|
2550
|
+
connection_id: string;
|
|
2551
|
+
filter_type: ConversationFilterType;
|
|
2552
|
+
action: ConversationFilterAction;
|
|
2553
|
+
filter_config?: ConversationFilterConfig;
|
|
2554
|
+
is_enabled: boolean;
|
|
2555
|
+
/** Read-only rollup: messages this rule dropped in the last 30 days. */
|
|
2556
|
+
recent_event_count?: number;
|
|
2557
|
+
created_at: string;
|
|
2558
|
+
created_by: UserRef;
|
|
2559
|
+
updated_at: string;
|
|
2560
|
+
updated_by: UserRef;
|
|
2561
|
+
}
|
|
2562
|
+
/** One drop-audit entry (content-free: routing/identity facts only). */
|
|
2563
|
+
interface ConversationFilterEvent {
|
|
2564
|
+
id: string;
|
|
2565
|
+
org_id: string;
|
|
2566
|
+
connection_id: string;
|
|
2567
|
+
conversation_filter_id: string;
|
|
2568
|
+
filter_type: ConversationFilterType;
|
|
2569
|
+
reason: string;
|
|
2570
|
+
sender_kind?: ContactAddressKind;
|
|
2571
|
+
sender_value?: string;
|
|
2572
|
+
external_message_id?: string;
|
|
2573
|
+
occurred_at: string;
|
|
2574
|
+
}
|
|
2575
|
+
interface CreateConversationFilterRequest {
|
|
2576
|
+
connection_id?: string;
|
|
2577
|
+
filter_type: ConversationFilterType;
|
|
2578
|
+
action: ConversationFilterAction;
|
|
2579
|
+
filter_config?: Record<string, unknown>;
|
|
2580
|
+
is_enabled?: boolean;
|
|
2581
|
+
/** Opts past the own-domain guard (self_domain_block). */
|
|
2582
|
+
is_self_domain_acknowledged?: boolean;
|
|
2583
|
+
}
|
|
2584
|
+
interface UpdateConversationFilterRequest {
|
|
2585
|
+
/** filter_type and filter_config must be sent together. */
|
|
2586
|
+
filter_type?: ConversationFilterType;
|
|
2587
|
+
action?: ConversationFilterAction;
|
|
2588
|
+
filter_config?: Record<string, unknown>;
|
|
2589
|
+
is_enabled?: boolean;
|
|
2590
|
+
is_self_domain_acknowledged?: boolean;
|
|
2591
|
+
}
|
|
2592
|
+
interface ListConversationFiltersQuery extends PaginationQuery {
|
|
2593
|
+
/** Omit = all; '' = global-only; an id = that connection's rules. */
|
|
2594
|
+
connection_id?: string;
|
|
2595
|
+
filter_type?: ConversationFilterType;
|
|
2596
|
+
action?: ConversationFilterAction;
|
|
2597
|
+
is_enabled?: boolean;
|
|
2598
|
+
}
|
|
2599
|
+
type ListConversationFilterEventsQuery = PaginationQuery;
|
|
2506
2600
|
/**
|
|
2507
2601
|
* Discriminates a send target: a person's contact address or a venue. The
|
|
2508
2602
|
* server also accepts the legacy 'participant' value as an alias for
|
|
@@ -2767,6 +2861,8 @@ declare class ConversationClient {
|
|
|
2767
2861
|
readonly contacts: ContactService;
|
|
2768
2862
|
readonly messages: MessageService;
|
|
2769
2863
|
readonly agentListeners: AgentListenerService;
|
|
2864
|
+
/** Ingest-time filter rules (drop-with-audit) + their event trail. */
|
|
2865
|
+
readonly conversationFilters: ConversationFilterService;
|
|
2770
2866
|
/** Per-org glossary: custom vocabulary that boosts transcription accuracy. */
|
|
2771
2867
|
readonly glossaryTerms: GlossaryTermService;
|
|
2772
2868
|
readonly transcriptions: TranscriptionService;
|
|
@@ -2862,6 +2958,19 @@ interface AgentListenerService {
|
|
|
2862
2958
|
update(id: string, request: UpdateAgentListenerRequest): Promise<AgentListener>;
|
|
2863
2959
|
delete(id: string): Promise<void>;
|
|
2864
2960
|
}
|
|
2961
|
+
/**
|
|
2962
|
+
* Ingest-time conversation filters: block/allow rules that drop matching
|
|
2963
|
+
* inbound messages before persistence, scoped globally or per connection.
|
|
2964
|
+
* listEvents pages a rule's drop-audit trail (who got dropped, when, why).
|
|
2965
|
+
*/
|
|
2966
|
+
interface ConversationFilterService {
|
|
2967
|
+
list(query?: ListConversationFiltersQuery): Promise<ListResponse<ConversationFilter>>;
|
|
2968
|
+
get(id: string): Promise<ConversationFilter>;
|
|
2969
|
+
create(request: CreateConversationFilterRequest): Promise<ConversationFilter>;
|
|
2970
|
+
update(id: string, request: UpdateConversationFilterRequest): Promise<ConversationFilter>;
|
|
2971
|
+
delete(id: string): Promise<void>;
|
|
2972
|
+
listEvents(id: string, query?: ListConversationFilterEventsQuery): Promise<ListResponse<ConversationFilterEvent>>;
|
|
2973
|
+
}
|
|
2865
2974
|
/**
|
|
2866
2975
|
* Per-org glossary: custom-vocabulary terms that boost transcription accuracy.
|
|
2867
2976
|
* A term feeds the transcription provider's keyterm prompting; `priority` ranks
|
|
@@ -5584,4 +5693,4 @@ declare class WorkflowClient {
|
|
|
5584
5693
|
constructor(client: ProteosClient);
|
|
5585
5694
|
}
|
|
5586
5695
|
|
|
5587
|
-
export { AccountClient, type Action, type ActionBinding, ActionSchema, type ActionScope, ActionScopeSchema, type ActionService, type Agent, type AgentActionParams, type AgentArtifactsPayload, AgentClient, type AgentKickoff, type AgentListener, type AgentListenerService, type AgentListenerTriggerType, type AgentMessagePayload, type AgentResourceListOptions, type AgentService, type ApiErrorResponse, type AppendEventRequest, type AssignPermissionRequest, type AssignRoleRequest, type AttachContactAddressRequest, type Attachment, Attribute, AuditFields, type AuthListOptions, 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 ConversationParticipant, type ConversationService, type ConversationStatus, type CreateAgentListenerRequest, type CreateAgentRequest, type CreateConnectionRequest, type CreateConnectorConnectionRequest, type CreateFileMetadata, type CreateGlossaryTermRequest, type CreateLabelRequest, type CreateLinkRequest, type CreateMcpServerRequest, type CreateNodeRequest, type CreateOrganizationRequest, type CreatePromptRequest, type CreateRecordLinkRequest, type CreateRoleRequest, type CreateSessionRequest, type CreateToolRequest, type CreateUserRequest, type CreateWorkflowRequest, type CredentialSpec, type CronTriggerParams, DEFAULT_PORT, DataClient, type DispatchMeetingBotRequest, type DisplayOptions, 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, FunctionsClient, type GetExecutionDetailResponse, type GetGraphOptions, type GetNodeExecutionItemsOptions, type GetNodeExecutionItemsResponse, type GetNodeTypesResponse, type GlossaryTerm, type GlossaryTermService, type GraphService, type InlineLinkRequest, type InstallConnectionResponse, type InstallConnectorConnectionResponse, 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 ListConversationsQuery, type ListEventsOptions, type ListExecutionsOptions, type ListGlossaryTermsQuery, type ListLabelsOptions, type ListLinksOptions, type ListMcpServersOptions, type ListMessagesQuery, type ListNodesOptions, ListOptions, type ListOrganizationsOptions, type ListPromptsOptions, type ListRecordLinksOptions, type ListRecordsOptions, type ListResponse, ListResult, type ListRolePermissionsOptions, type ListRolesOptions, type ListRoomsQuery, type ListSessionsOptions, type ListSkillsOptions, type ListToolsOptions, type ListUserRoleAssignmentsOptions, type ListUsersOptions, type ListWorkflowsOptions, type ManualTriggerParams, type MatchMode, type McpBinding, type McpConnectionState, type McpConnectionStatus, type McpServer, type McpServerAuth, type McpServerOAuth, type McpServerService, type McpToolSummary, type MeService, type MeetingService, type MergeContactsRequest, type MergeProposalStatus, type Message, type ContentBlock as MessageContentBlock, type MessageDirection, type MessageKickoff, type MessagePreview, type MessageRecipient, type MessageService, type MessageStatus, type MessageTriggerParams, type ModelConfig, type ModelRequestEndPayload, type ModelRequestStartPayload, type ModelUsage, type NeighborDirection, type NeighborEdge, type NeighborNode, type NeighborsOptions, type NodeContentMatches, type NodeDescriptor, type NodeExecution, type NodeGroup, type NodeMethodOption, type NodeNeighborhood, NodeNeighborhoodSchema, type NodeOutline, type NodePosition, type NodeProperty, type NodeRetryPolicy, type NodeRuntime, type NodeService, type NodeStatus, type NodeType, type NodeTypeKey, type NodeTypeService, type NodeTypeStatus, type OnErrorPolicy, type Organization, OrganizationSchema, type OrganizationService, type OutcomeKickoff, type OutcomeRubric, type OutlineHeading, type OutlineRequest, type OutlineResponse, PLATFORM_ENTITIES, PLATFORM_ENTITY_SLUGS, PageIterator, type PairedItem, type ParseStatus, type Permission, type PermissionEventSource, type PermissionEventType, type PlatformEntity, type PlatformEvent, type PortSpec, type Prompt, type PromptService, type PromptVersion, type PropertyOption, type PropertyType, ProteosClient, ProteosError, PublicAccessOperation, type PublishEventRequest, type QueryExecuteMeta, type QueryExecuteResponse, type QueryObject, type QueryRow, type QueryService, type QueryValidateMeta, type QueryValidateResponse, type QueryValue, type Reaction, type ReactionCapability, type ReactionOption, type ReactionSetKind, type ReasoningPayload, type RecipientKind, type RecipientRole, type RecordData, type RecordLinkService, type RecordPermissionEventRequest, type RecordService, type RedriveResult, type ResultBlock, type Role, type 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 UpdateFileMetadata, type UpdateGlossaryTermRequest, type UpdateLabelRequest, type UpdateLinkRequest, type UpdateMcpServerRequest, type UpdateNodeRequest, type UpdateOrganizationRequest, type UpdatePromptRequest, type UpdateRoleRequest, type UpdateToolRequest, type UpdateUserRequest, type UpdateWorkflowRequest, type User, type UserMessagePayload, UserRef$2 as UserRef, type UserRoleAssignment, UserRoleAssignmentSchema, UserSchema, type UserService, type VoiceService, type VoiceTranscriptionStream, type WebhookTriggerParams, type Workflow, WorkflowClient, type WorkflowConnection, type WorkflowContentBlock, type WorkflowExecution, type WorkflowGraph, type WorkflowNode, type WorkflowNodeType, type WorkflowStatus, type WorkflowVersion, type WorkflowVersionAuthor, type WorkflowVersionSummary, type WriteContentResponse, type WriteCredentialsRequest, buildUrl, getDefaultErrorCode, isBadRequest, isConflict, isForbidden, isNotFound, isPlatformEntity, isProteosError, isUnauthorized, parseErrorResponse, toQueryParams, toQueryString };
|
|
5696
|
+
export { AccountClient, type Action, type ActionBinding, ActionSchema, type ActionScope, ActionScopeSchema, type ActionService, type AddressFilterConfig, type Agent, type AgentActionParams, type AgentArtifactsPayload, AgentClient, type AgentKickoff, type AgentListener, type AgentListenerService, type AgentListenerTriggerType, type AgentMessagePayload, type AgentResourceListOptions, type AgentService, type AllFilterConfig, type ApiErrorResponse, type AppendEventRequest, type AssignPermissionRequest, type AssignRoleRequest, type AttachContactAddressRequest, type Attachment, Attribute, AuditFields, type AuthListOptions, type AutomatedFilterConfig, type AutomatedSignal, type BatchTransactionError, BatchTransactionErrorSchema, type BatchTransactionStatus, type BatchUpsertRecordsResponse, BatchUpsertRecordsResponseSchema, type BatchUpsertTransaction, type BatchUpsertTransactionResult, BatchUpsertTransactionResultSchema, BatchUpsertTransactionSchema, type BinaryRef, type BlockContactRequest, type Channel, type ClientEventType, type ClientToolSchema, type Connection, type ConnectionCredentials, type ConnectionEndpoint, type ConnectionScope, type ConnectionService, type ConnectionStatus, type Connector, ConnectorClient, type ConnectorConnection, type ConnectionScope$1 as ConnectorConnectionScope, type ConnectionStatus$1 as ConnectorConnectionStatus, type ConnectionTokenResponse as ConnectorConnectionTokenResponse, type CredentialKind as ConnectorCredentialKind, type ConnectorKey, type ConnectorMethod, type ConnectorProvider, type ConsentStatus, type ConsumerGroup, type Contact, type ContactAddress, type ContactAddressKind, type ContactAddressSource, type ContactErasureRequest, type ContactMergeProposal, type ContactRef, type ContactService, type ContactSource, type ContactStatus, type ContentBlock$1 as ContentBlock, type ContentMatch, type ContentResponse, type ContextCompactedPayload, type Conversation, ConversationClient, type ConversationFilter, type ConversationFilterAction, type ConversationFilterConfig, type ConversationFilterEvent, type ConversationFilterService, type ConversationFilterType, type ConversationParticipant, type ConversationService, type ConversationStatus, type CreateAgentListenerRequest, type CreateAgentRequest, type CreateConnectionRequest, type CreateConnectorConnectionRequest, type CreateConversationFilterRequest, type CreateFileMetadata, type CreateGlossaryTermRequest, type CreateLabelRequest, type CreateLinkRequest, type CreateMcpServerRequest, type CreateNodeRequest, type CreateOrganizationRequest, type CreatePromptRequest, type CreateRecordLinkRequest, type CreateRoleRequest, type CreateSessionRequest, type CreateToolRequest, type CreateUserRequest, type CreateWorkflowRequest, type CredentialSpec, type CronTriggerParams, DEFAULT_PORT, DataClient, type DispatchMeetingBotRequest, type DisplayOptions, type DomainFilterConfig, ERROR_PORT, type EditContentRequest, type EditContentResponse, type EmptyPayload, type ErasureRequestStatus, ErrorCode, type ErrorCodeType, type ErrorPayload, type EventTriggerParams, type EventType, type EventVerb, EventsClient, type ExecutionError, type ExecutionStatus, type ExecutionTriggerContext, type FileBlock, FileRef, type FileService, type FileVersionContent, type FilterMatchOn, FunctionsClient, type GetExecutionDetailResponse, type GetGraphOptions, type GetNodeExecutionItemsOptions, type GetNodeExecutionItemsResponse, type GetNodeTypesResponse, type GlossaryTerm, type GlossaryTermService, type GraphService, type InlineLinkRequest, type InstallConnectionResponse, type InstallConnectorConnectionResponse, type InternalConversationsFilterConfig, type InvokeActionResponse, type InvokeNodeMethodRequest, type InvokeNodeMethodResponse, type Item, type KickoffSource, type KickoffType, KnowledgeClient, type KnowledgeGraph, type KnowledgeGraphLink, type KnowledgeGraphNode, type KnowledgeLabel, KnowledgeLabelSchema, type KnowledgeLink, KnowledgeLinkSchema, type KnowledgeNode, type KnowledgeNodeLabel, KnowledgeNodeLabelSchema, type KnowledgeNodeMetadata, KnowledgeNodeMetadataSchema, KnowledgeNodeSchema, type KnowledgeNodeSearchResult, KnowledgeNodeSearchResultSchema, type KnowledgeRecordLink, KnowledgeRecordLinkSchema, type LabelService, type LinkService, type LinkType, type ListActionsOptions, type ListAgentListenersQuery, type ListAgentsOptions, type ListConnectionsQuery, type ListConnectorConnectionsQuery, type ListConnectorsQuery, type ListContactAddressesQuery, type ListContactMergeProposalsQuery, type ListContactsQuery, type ListConversationFilterEventsQuery, type ListConversationFiltersQuery, type ListConversationsQuery, type ListEventsOptions, type ListExecutionsOptions, type ListGlossaryTermsQuery, type ListLabelsOptions, type ListLinksOptions, type ListMcpServersOptions, type ListMessagesQuery, type ListNodesOptions, ListOptions, type ListOrganizationsOptions, type ListPromptsOptions, type ListRecordLinksOptions, type ListRecordsOptions, type ListResponse, ListResult, type ListRolePermissionsOptions, type ListRolesOptions, type ListRoomsQuery, type ListSessionsOptions, type ListSkillsOptions, type ListToolsOptions, type ListUserRoleAssignmentsOptions, type ListUsersOptions, type ListWorkflowsOptions, type ManualTriggerParams, type MatchMode, type McpBinding, type McpConnectionState, type McpConnectionStatus, type McpServer, type McpServerAuth, type McpServerOAuth, type McpServerService, type McpToolSummary, type MeService, type MeetingService, type MergeContactsRequest, type MergeProposalStatus, type Message, type ContentBlock as MessageContentBlock, type MessageDirection, type MessageKickoff, type MessagePreview, type MessageRecipient, type MessageService, type MessageStatus, type MessageTriggerParams, type ModelConfig, type ModelRequestEndPayload, type ModelRequestStartPayload, type ModelUsage, type NeighborDirection, type NeighborEdge, type NeighborNode, type NeighborsOptions, type NodeContentMatches, type NodeDescriptor, type NodeExecution, type NodeGroup, type NodeMethodOption, type NodeNeighborhood, NodeNeighborhoodSchema, type NodeOutline, type NodePosition, type NodeProperty, type NodeRetryPolicy, type NodeRuntime, type NodeService, type NodeStatus, type NodeType, type NodeTypeKey, type NodeTypeService, type NodeTypeStatus, type OnErrorPolicy, type Organization, OrganizationSchema, type OrganizationService, type OutcomeKickoff, type OutcomeRubric, type OutlineHeading, type OutlineRequest, type OutlineResponse, PLATFORM_ENTITIES, PLATFORM_ENTITY_SLUGS, PageIterator, type PairedItem, type ParseStatus, type Permission, type PermissionEventSource, type PermissionEventType, type PlatformEntity, type PlatformEvent, type PortSpec, type Prompt, type PromptService, type PromptVersion, type PropertyOption, type PropertyType, ProteosClient, ProteosError, PublicAccessOperation, type PublishEventRequest, type QueryExecuteMeta, type QueryExecuteResponse, type QueryObject, type QueryRow, type QueryService, type QueryValidateMeta, type QueryValidateResponse, type QueryValue, type Reaction, type ReactionCapability, type ReactionOption, type ReactionSetKind, type ReasoningPayload, type RecipientKind, type RecipientRole, type RecordData, type RecordLinkService, type RecordPermissionEventRequest, type RecordService, type RedriveResult, type ResultBlock, type Role, type RoleBasedFilterConfig, type RoleEntityPermission, RoleEntityPermissionSchema, RoleSchema, type RoleService, type Room, type RunWorkflowRequest, type SearchContentRequest, type SearchContentResponse, type SearchNodesRequest, type SendMessageRequest, type SendRecipient, type Session, type SessionEvent, type SessionEventEnvelope, type SessionEventsOptions, type SessionIdlePayload, type SessionService, type SessionStatus, type SessionStreamOptions, type SessionUpdatedPayload, type Skill, type SkillBundle, type SkillService, type SkillVersion, type StartMcpOAuthResponse, type StopReason, StorageClient, type StorageFile, type StorageFileVersion, type TailOptions, type TestNodeCandidate, type TestNodeInputSource, type TestNodeRequest, type TestNodeResponse, type TextBlock, type Tool, type ToolBinding, type ToolConfirmationPayload, type ToolKind, type ToolResultPayload, type ToolService, type ToolUsePayload, type Topic, type TopicKind, type TopicService, type TranscribeStreamOptions, type TranscriptResult, type TriggerKind, type Turn, type UnreadCounts, type UpdateAgentListenerRequest, type UpdateAgentRequest, type UpdateConnectionRequest, type UpdateConnectorConnectionRequest, type UpdateContactRequest, type UpdateConversationFilterRequest, type UpdateFileMetadata, type UpdateGlossaryTermRequest, type UpdateLabelRequest, type UpdateLinkRequest, type UpdateMcpServerRequest, type UpdateNodeRequest, type UpdateOrganizationRequest, type UpdatePromptRequest, type UpdateRoleRequest, type UpdateToolRequest, type UpdateUserRequest, type UpdateWorkflowRequest, type User, type UserMessagePayload, UserRef$2 as UserRef, type UserRoleAssignment, UserRoleAssignmentSchema, UserSchema, type UserService, type VoiceService, type VoiceTranscriptionStream, type WebhookTriggerParams, type Workflow, WorkflowClient, type WorkflowConnection, type WorkflowContentBlock, type WorkflowExecution, type WorkflowGraph, type WorkflowNode, type WorkflowNodeType, type WorkflowStatus, type WorkflowVersion, type WorkflowVersionAuthor, type WorkflowVersionSummary, type WriteContentResponse, type WriteCredentialsRequest, buildUrl, getDefaultErrorCode, isBadRequest, isConflict, isForbidden, isNotFound, isPlatformEntity, isProteosError, isUnauthorized, parseErrorResponse, toQueryParams, toQueryString };
|
package/dist/index.d.ts
CHANGED
|
@@ -2503,6 +2503,100 @@ interface ListAgentListenersQuery extends PaginationQuery {
|
|
|
2503
2503
|
agent_key?: string;
|
|
2504
2504
|
is_enabled?: boolean;
|
|
2505
2505
|
}
|
|
2506
|
+
/**
|
|
2507
|
+
* Conversation filters: ingest-time rules that drop matching inbound messages
|
|
2508
|
+
* BEFORE persistence (no message, no contact — only a content-free audit
|
|
2509
|
+
* event). Scope-first evaluation: connection-scoped rules are final when one
|
|
2510
|
+
* matches; global rules apply otherwise. Specificity within a scope:
|
|
2511
|
+
* address > domain > role_based > automated > internal_conversations > all,
|
|
2512
|
+
* allow beats block within a class.
|
|
2513
|
+
*/
|
|
2514
|
+
type ConversationFilterType = 'address' | 'domain' | 'role_based' | 'automated' | 'internal_conversations' | 'all';
|
|
2515
|
+
type ConversationFilterAction = 'block' | 'allow';
|
|
2516
|
+
/** Which side of the message address/domain rules test (default: sender). */
|
|
2517
|
+
type FilterMatchOn = 'sender' | 'any_participant';
|
|
2518
|
+
/** Deterministic machine-mail header signals the automated filter matches. */
|
|
2519
|
+
type AutomatedSignal = 'auto_submitted' | 'bulk' | 'mailing_list' | 'bounce' | 'auto_response_suppress';
|
|
2520
|
+
/** Exact canonical address (lowercased email / E.164 phone / provider id), any channel kind. */
|
|
2521
|
+
interface AddressFilterConfig {
|
|
2522
|
+
kind: ContactAddressKind;
|
|
2523
|
+
value: string;
|
|
2524
|
+
match_on?: FilterMatchOn;
|
|
2525
|
+
}
|
|
2526
|
+
/** Equals on the parsed email domain (lowercase, no leading '@'). */
|
|
2527
|
+
interface DomainFilterConfig {
|
|
2528
|
+
domain: string;
|
|
2529
|
+
match_on?: FilterMatchOn;
|
|
2530
|
+
}
|
|
2531
|
+
/** Sender local-part is a role mailbox; empty prefixes = the built-in set. Email-only. */
|
|
2532
|
+
interface RoleBasedFilterConfig {
|
|
2533
|
+
prefixes?: string[];
|
|
2534
|
+
}
|
|
2535
|
+
/** Header-signal machine-mail detection; empty signals = all. Email-only. */
|
|
2536
|
+
interface AutomatedFilterConfig {
|
|
2537
|
+
signals?: AutomatedSignal[];
|
|
2538
|
+
}
|
|
2539
|
+
/** Drops only when sender AND every recipient are on these domains. Always block. */
|
|
2540
|
+
interface InternalConversationsFilterConfig {
|
|
2541
|
+
domains: string[];
|
|
2542
|
+
}
|
|
2543
|
+
/** Matches every message (empty config) — the scope-control primitive. */
|
|
2544
|
+
type AllFilterConfig = Record<string, never>;
|
|
2545
|
+
type ConversationFilterConfig = AddressFilterConfig | DomainFilterConfig | RoleBasedFilterConfig | AutomatedFilterConfig | InternalConversationsFilterConfig | AllFilterConfig;
|
|
2546
|
+
interface ConversationFilter {
|
|
2547
|
+
id: string;
|
|
2548
|
+
org_id: string;
|
|
2549
|
+
/** Empty = global (org-wide); set = scoped to that connection. */
|
|
2550
|
+
connection_id: string;
|
|
2551
|
+
filter_type: ConversationFilterType;
|
|
2552
|
+
action: ConversationFilterAction;
|
|
2553
|
+
filter_config?: ConversationFilterConfig;
|
|
2554
|
+
is_enabled: boolean;
|
|
2555
|
+
/** Read-only rollup: messages this rule dropped in the last 30 days. */
|
|
2556
|
+
recent_event_count?: number;
|
|
2557
|
+
created_at: string;
|
|
2558
|
+
created_by: UserRef;
|
|
2559
|
+
updated_at: string;
|
|
2560
|
+
updated_by: UserRef;
|
|
2561
|
+
}
|
|
2562
|
+
/** One drop-audit entry (content-free: routing/identity facts only). */
|
|
2563
|
+
interface ConversationFilterEvent {
|
|
2564
|
+
id: string;
|
|
2565
|
+
org_id: string;
|
|
2566
|
+
connection_id: string;
|
|
2567
|
+
conversation_filter_id: string;
|
|
2568
|
+
filter_type: ConversationFilterType;
|
|
2569
|
+
reason: string;
|
|
2570
|
+
sender_kind?: ContactAddressKind;
|
|
2571
|
+
sender_value?: string;
|
|
2572
|
+
external_message_id?: string;
|
|
2573
|
+
occurred_at: string;
|
|
2574
|
+
}
|
|
2575
|
+
interface CreateConversationFilterRequest {
|
|
2576
|
+
connection_id?: string;
|
|
2577
|
+
filter_type: ConversationFilterType;
|
|
2578
|
+
action: ConversationFilterAction;
|
|
2579
|
+
filter_config?: Record<string, unknown>;
|
|
2580
|
+
is_enabled?: boolean;
|
|
2581
|
+
/** Opts past the own-domain guard (self_domain_block). */
|
|
2582
|
+
is_self_domain_acknowledged?: boolean;
|
|
2583
|
+
}
|
|
2584
|
+
interface UpdateConversationFilterRequest {
|
|
2585
|
+
/** filter_type and filter_config must be sent together. */
|
|
2586
|
+
filter_type?: ConversationFilterType;
|
|
2587
|
+
action?: ConversationFilterAction;
|
|
2588
|
+
filter_config?: Record<string, unknown>;
|
|
2589
|
+
is_enabled?: boolean;
|
|
2590
|
+
is_self_domain_acknowledged?: boolean;
|
|
2591
|
+
}
|
|
2592
|
+
interface ListConversationFiltersQuery extends PaginationQuery {
|
|
2593
|
+
/** Omit = all; '' = global-only; an id = that connection's rules. */
|
|
2594
|
+
connection_id?: string;
|
|
2595
|
+
filter_type?: ConversationFilterType;
|
|
2596
|
+
action?: ConversationFilterAction;
|
|
2597
|
+
is_enabled?: boolean;
|
|
2598
|
+
}
|
|
2599
|
+
type ListConversationFilterEventsQuery = PaginationQuery;
|
|
2506
2600
|
/**
|
|
2507
2601
|
* Discriminates a send target: a person's contact address or a venue. The
|
|
2508
2602
|
* server also accepts the legacy 'participant' value as an alias for
|
|
@@ -2767,6 +2861,8 @@ declare class ConversationClient {
|
|
|
2767
2861
|
readonly contacts: ContactService;
|
|
2768
2862
|
readonly messages: MessageService;
|
|
2769
2863
|
readonly agentListeners: AgentListenerService;
|
|
2864
|
+
/** Ingest-time filter rules (drop-with-audit) + their event trail. */
|
|
2865
|
+
readonly conversationFilters: ConversationFilterService;
|
|
2770
2866
|
/** Per-org glossary: custom vocabulary that boosts transcription accuracy. */
|
|
2771
2867
|
readonly glossaryTerms: GlossaryTermService;
|
|
2772
2868
|
readonly transcriptions: TranscriptionService;
|
|
@@ -2862,6 +2958,19 @@ interface AgentListenerService {
|
|
|
2862
2958
|
update(id: string, request: UpdateAgentListenerRequest): Promise<AgentListener>;
|
|
2863
2959
|
delete(id: string): Promise<void>;
|
|
2864
2960
|
}
|
|
2961
|
+
/**
|
|
2962
|
+
* Ingest-time conversation filters: block/allow rules that drop matching
|
|
2963
|
+
* inbound messages before persistence, scoped globally or per connection.
|
|
2964
|
+
* listEvents pages a rule's drop-audit trail (who got dropped, when, why).
|
|
2965
|
+
*/
|
|
2966
|
+
interface ConversationFilterService {
|
|
2967
|
+
list(query?: ListConversationFiltersQuery): Promise<ListResponse<ConversationFilter>>;
|
|
2968
|
+
get(id: string): Promise<ConversationFilter>;
|
|
2969
|
+
create(request: CreateConversationFilterRequest): Promise<ConversationFilter>;
|
|
2970
|
+
update(id: string, request: UpdateConversationFilterRequest): Promise<ConversationFilter>;
|
|
2971
|
+
delete(id: string): Promise<void>;
|
|
2972
|
+
listEvents(id: string, query?: ListConversationFilterEventsQuery): Promise<ListResponse<ConversationFilterEvent>>;
|
|
2973
|
+
}
|
|
2865
2974
|
/**
|
|
2866
2975
|
* Per-org glossary: custom-vocabulary terms that boost transcription accuracy.
|
|
2867
2976
|
* A term feeds the transcription provider's keyterm prompting; `priority` ranks
|
|
@@ -5584,4 +5693,4 @@ declare class WorkflowClient {
|
|
|
5584
5693
|
constructor(client: ProteosClient);
|
|
5585
5694
|
}
|
|
5586
5695
|
|
|
5587
|
-
export { AccountClient, type Action, type ActionBinding, ActionSchema, type ActionScope, ActionScopeSchema, type ActionService, type Agent, type AgentActionParams, type AgentArtifactsPayload, AgentClient, type AgentKickoff, type AgentListener, type AgentListenerService, type AgentListenerTriggerType, type AgentMessagePayload, type AgentResourceListOptions, type AgentService, type ApiErrorResponse, type AppendEventRequest, type AssignPermissionRequest, type AssignRoleRequest, type AttachContactAddressRequest, type Attachment, Attribute, AuditFields, type AuthListOptions, 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 ConversationParticipant, type ConversationService, type ConversationStatus, type CreateAgentListenerRequest, type CreateAgentRequest, type CreateConnectionRequest, type CreateConnectorConnectionRequest, type CreateFileMetadata, type CreateGlossaryTermRequest, type CreateLabelRequest, type CreateLinkRequest, type CreateMcpServerRequest, type CreateNodeRequest, type CreateOrganizationRequest, type CreatePromptRequest, type CreateRecordLinkRequest, type CreateRoleRequest, type CreateSessionRequest, type CreateToolRequest, type CreateUserRequest, type CreateWorkflowRequest, type CredentialSpec, type CronTriggerParams, DEFAULT_PORT, DataClient, type DispatchMeetingBotRequest, type DisplayOptions, 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, FunctionsClient, type GetExecutionDetailResponse, type GetGraphOptions, type GetNodeExecutionItemsOptions, type GetNodeExecutionItemsResponse, type GetNodeTypesResponse, type GlossaryTerm, type GlossaryTermService, type GraphService, type InlineLinkRequest, type InstallConnectionResponse, type InstallConnectorConnectionResponse, 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 ListConversationsQuery, type ListEventsOptions, type ListExecutionsOptions, type ListGlossaryTermsQuery, type ListLabelsOptions, type ListLinksOptions, type ListMcpServersOptions, type ListMessagesQuery, type ListNodesOptions, ListOptions, type ListOrganizationsOptions, type ListPromptsOptions, type ListRecordLinksOptions, type ListRecordsOptions, type ListResponse, ListResult, type ListRolePermissionsOptions, type ListRolesOptions, type ListRoomsQuery, type ListSessionsOptions, type ListSkillsOptions, type ListToolsOptions, type ListUserRoleAssignmentsOptions, type ListUsersOptions, type ListWorkflowsOptions, type ManualTriggerParams, type MatchMode, type McpBinding, type McpConnectionState, type McpConnectionStatus, type McpServer, type McpServerAuth, type McpServerOAuth, type McpServerService, type McpToolSummary, type MeService, type MeetingService, type MergeContactsRequest, type MergeProposalStatus, type Message, type ContentBlock as MessageContentBlock, type MessageDirection, type MessageKickoff, type MessagePreview, type MessageRecipient, type MessageService, type MessageStatus, type MessageTriggerParams, type ModelConfig, type ModelRequestEndPayload, type ModelRequestStartPayload, type ModelUsage, type NeighborDirection, type NeighborEdge, type NeighborNode, type NeighborsOptions, type NodeContentMatches, type NodeDescriptor, type NodeExecution, type NodeGroup, type NodeMethodOption, type NodeNeighborhood, NodeNeighborhoodSchema, type NodeOutline, type NodePosition, type NodeProperty, type NodeRetryPolicy, type NodeRuntime, type NodeService, type NodeStatus, type NodeType, type NodeTypeKey, type NodeTypeService, type NodeTypeStatus, type OnErrorPolicy, type Organization, OrganizationSchema, type OrganizationService, type OutcomeKickoff, type OutcomeRubric, type OutlineHeading, type OutlineRequest, type OutlineResponse, PLATFORM_ENTITIES, PLATFORM_ENTITY_SLUGS, PageIterator, type PairedItem, type ParseStatus, type Permission, type PermissionEventSource, type PermissionEventType, type PlatformEntity, type PlatformEvent, type PortSpec, type Prompt, type PromptService, type PromptVersion, type PropertyOption, type PropertyType, ProteosClient, ProteosError, PublicAccessOperation, type PublishEventRequest, type QueryExecuteMeta, type QueryExecuteResponse, type QueryObject, type QueryRow, type QueryService, type QueryValidateMeta, type QueryValidateResponse, type QueryValue, type Reaction, type ReactionCapability, type ReactionOption, type ReactionSetKind, type ReasoningPayload, type RecipientKind, type RecipientRole, type RecordData, type RecordLinkService, type RecordPermissionEventRequest, type RecordService, type RedriveResult, type ResultBlock, type Role, type 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 UpdateFileMetadata, type UpdateGlossaryTermRequest, type UpdateLabelRequest, type UpdateLinkRequest, type UpdateMcpServerRequest, type UpdateNodeRequest, type UpdateOrganizationRequest, type UpdatePromptRequest, type UpdateRoleRequest, type UpdateToolRequest, type UpdateUserRequest, type UpdateWorkflowRequest, type User, type UserMessagePayload, UserRef$2 as UserRef, type UserRoleAssignment, UserRoleAssignmentSchema, UserSchema, type UserService, type VoiceService, type VoiceTranscriptionStream, type WebhookTriggerParams, type Workflow, WorkflowClient, type WorkflowConnection, type WorkflowContentBlock, type WorkflowExecution, type WorkflowGraph, type WorkflowNode, type WorkflowNodeType, type WorkflowStatus, type WorkflowVersion, type WorkflowVersionAuthor, type WorkflowVersionSummary, type WriteContentResponse, type WriteCredentialsRequest, buildUrl, getDefaultErrorCode, isBadRequest, isConflict, isForbidden, isNotFound, isPlatformEntity, isProteosError, isUnauthorized, parseErrorResponse, toQueryParams, toQueryString };
|
|
5696
|
+
export { AccountClient, type Action, type ActionBinding, ActionSchema, type ActionScope, ActionScopeSchema, type ActionService, type AddressFilterConfig, type Agent, type AgentActionParams, type AgentArtifactsPayload, AgentClient, type AgentKickoff, type AgentListener, type AgentListenerService, type AgentListenerTriggerType, type AgentMessagePayload, type AgentResourceListOptions, type AgentService, type AllFilterConfig, type ApiErrorResponse, type AppendEventRequest, type AssignPermissionRequest, type AssignRoleRequest, type AttachContactAddressRequest, type Attachment, Attribute, AuditFields, type AuthListOptions, type AutomatedFilterConfig, type AutomatedSignal, type BatchTransactionError, BatchTransactionErrorSchema, type BatchTransactionStatus, type BatchUpsertRecordsResponse, BatchUpsertRecordsResponseSchema, type BatchUpsertTransaction, type BatchUpsertTransactionResult, BatchUpsertTransactionResultSchema, BatchUpsertTransactionSchema, type BinaryRef, type BlockContactRequest, type Channel, type ClientEventType, type ClientToolSchema, type Connection, type ConnectionCredentials, type ConnectionEndpoint, type ConnectionScope, type ConnectionService, type ConnectionStatus, type Connector, ConnectorClient, type ConnectorConnection, type ConnectionScope$1 as ConnectorConnectionScope, type ConnectionStatus$1 as ConnectorConnectionStatus, type ConnectionTokenResponse as ConnectorConnectionTokenResponse, type CredentialKind as ConnectorCredentialKind, type ConnectorKey, type ConnectorMethod, type ConnectorProvider, type ConsentStatus, type ConsumerGroup, type Contact, type ContactAddress, type ContactAddressKind, type ContactAddressSource, type ContactErasureRequest, type ContactMergeProposal, type ContactRef, type ContactService, type ContactSource, type ContactStatus, type ContentBlock$1 as ContentBlock, type ContentMatch, type ContentResponse, type ContextCompactedPayload, type Conversation, ConversationClient, type ConversationFilter, type ConversationFilterAction, type ConversationFilterConfig, type ConversationFilterEvent, type ConversationFilterService, type ConversationFilterType, type ConversationParticipant, type ConversationService, type ConversationStatus, type CreateAgentListenerRequest, type CreateAgentRequest, type CreateConnectionRequest, type CreateConnectorConnectionRequest, type CreateConversationFilterRequest, type CreateFileMetadata, type CreateGlossaryTermRequest, type CreateLabelRequest, type CreateLinkRequest, type CreateMcpServerRequest, type CreateNodeRequest, type CreateOrganizationRequest, type CreatePromptRequest, type CreateRecordLinkRequest, type CreateRoleRequest, type CreateSessionRequest, type CreateToolRequest, type CreateUserRequest, type CreateWorkflowRequest, type CredentialSpec, type CronTriggerParams, DEFAULT_PORT, DataClient, type DispatchMeetingBotRequest, type DisplayOptions, type DomainFilterConfig, ERROR_PORT, type EditContentRequest, type EditContentResponse, type EmptyPayload, type ErasureRequestStatus, ErrorCode, type ErrorCodeType, type ErrorPayload, type EventTriggerParams, type EventType, type EventVerb, EventsClient, type ExecutionError, type ExecutionStatus, type ExecutionTriggerContext, type FileBlock, FileRef, type FileService, type FileVersionContent, type FilterMatchOn, FunctionsClient, type GetExecutionDetailResponse, type GetGraphOptions, type GetNodeExecutionItemsOptions, type GetNodeExecutionItemsResponse, type GetNodeTypesResponse, type GlossaryTerm, type GlossaryTermService, type GraphService, type InlineLinkRequest, type InstallConnectionResponse, type InstallConnectorConnectionResponse, type InternalConversationsFilterConfig, type InvokeActionResponse, type InvokeNodeMethodRequest, type InvokeNodeMethodResponse, type Item, type KickoffSource, type KickoffType, KnowledgeClient, type KnowledgeGraph, type KnowledgeGraphLink, type KnowledgeGraphNode, type KnowledgeLabel, KnowledgeLabelSchema, type KnowledgeLink, KnowledgeLinkSchema, type KnowledgeNode, type KnowledgeNodeLabel, KnowledgeNodeLabelSchema, type KnowledgeNodeMetadata, KnowledgeNodeMetadataSchema, KnowledgeNodeSchema, type KnowledgeNodeSearchResult, KnowledgeNodeSearchResultSchema, type KnowledgeRecordLink, KnowledgeRecordLinkSchema, type LabelService, type LinkService, type LinkType, type ListActionsOptions, type ListAgentListenersQuery, type ListAgentsOptions, type ListConnectionsQuery, type ListConnectorConnectionsQuery, type ListConnectorsQuery, type ListContactAddressesQuery, type ListContactMergeProposalsQuery, type ListContactsQuery, type ListConversationFilterEventsQuery, type ListConversationFiltersQuery, type ListConversationsQuery, type ListEventsOptions, type ListExecutionsOptions, type ListGlossaryTermsQuery, type ListLabelsOptions, type ListLinksOptions, type ListMcpServersOptions, type ListMessagesQuery, type ListNodesOptions, ListOptions, type ListOrganizationsOptions, type ListPromptsOptions, type ListRecordLinksOptions, type ListRecordsOptions, type ListResponse, ListResult, type ListRolePermissionsOptions, type ListRolesOptions, type ListRoomsQuery, type ListSessionsOptions, type ListSkillsOptions, type ListToolsOptions, type ListUserRoleAssignmentsOptions, type ListUsersOptions, type ListWorkflowsOptions, type ManualTriggerParams, type MatchMode, type McpBinding, type McpConnectionState, type McpConnectionStatus, type McpServer, type McpServerAuth, type McpServerOAuth, type McpServerService, type McpToolSummary, type MeService, type MeetingService, type MergeContactsRequest, type MergeProposalStatus, type Message, type ContentBlock as MessageContentBlock, type MessageDirection, type MessageKickoff, type MessagePreview, type MessageRecipient, type MessageService, type MessageStatus, type MessageTriggerParams, type ModelConfig, type ModelRequestEndPayload, type ModelRequestStartPayload, type ModelUsage, type NeighborDirection, type NeighborEdge, type NeighborNode, type NeighborsOptions, type NodeContentMatches, type NodeDescriptor, type NodeExecution, type NodeGroup, type NodeMethodOption, type NodeNeighborhood, NodeNeighborhoodSchema, type NodeOutline, type NodePosition, type NodeProperty, type NodeRetryPolicy, type NodeRuntime, type NodeService, type NodeStatus, type NodeType, type NodeTypeKey, type NodeTypeService, type NodeTypeStatus, type OnErrorPolicy, type Organization, OrganizationSchema, type OrganizationService, type OutcomeKickoff, type OutcomeRubric, type OutlineHeading, type OutlineRequest, type OutlineResponse, PLATFORM_ENTITIES, PLATFORM_ENTITY_SLUGS, PageIterator, type PairedItem, type ParseStatus, type Permission, type PermissionEventSource, type PermissionEventType, type PlatformEntity, type PlatformEvent, type PortSpec, type Prompt, type PromptService, type PromptVersion, type PropertyOption, type PropertyType, ProteosClient, ProteosError, PublicAccessOperation, type PublishEventRequest, type QueryExecuteMeta, type QueryExecuteResponse, type QueryObject, type QueryRow, type QueryService, type QueryValidateMeta, type QueryValidateResponse, type QueryValue, type Reaction, type ReactionCapability, type ReactionOption, type ReactionSetKind, type ReasoningPayload, type RecipientKind, type RecipientRole, type RecordData, type RecordLinkService, type RecordPermissionEventRequest, type RecordService, type RedriveResult, type ResultBlock, type Role, type RoleBasedFilterConfig, type RoleEntityPermission, RoleEntityPermissionSchema, RoleSchema, type RoleService, type Room, type RunWorkflowRequest, type SearchContentRequest, type SearchContentResponse, type SearchNodesRequest, type SendMessageRequest, type SendRecipient, type Session, type SessionEvent, type SessionEventEnvelope, type SessionEventsOptions, type SessionIdlePayload, type SessionService, type SessionStatus, type SessionStreamOptions, type SessionUpdatedPayload, type Skill, type SkillBundle, type SkillService, type SkillVersion, type StartMcpOAuthResponse, type StopReason, StorageClient, type StorageFile, type StorageFileVersion, type TailOptions, type TestNodeCandidate, type TestNodeInputSource, type TestNodeRequest, type TestNodeResponse, type TextBlock, type Tool, type ToolBinding, type ToolConfirmationPayload, type ToolKind, type ToolResultPayload, type ToolService, type ToolUsePayload, type Topic, type TopicKind, type TopicService, type TranscribeStreamOptions, type TranscriptResult, type TriggerKind, type Turn, type UnreadCounts, type UpdateAgentListenerRequest, type UpdateAgentRequest, type UpdateConnectionRequest, type UpdateConnectorConnectionRequest, type UpdateContactRequest, type UpdateConversationFilterRequest, type UpdateFileMetadata, type UpdateGlossaryTermRequest, type UpdateLabelRequest, type UpdateLinkRequest, type UpdateMcpServerRequest, type UpdateNodeRequest, type UpdateOrganizationRequest, type UpdatePromptRequest, type UpdateRoleRequest, type UpdateToolRequest, type UpdateUserRequest, type UpdateWorkflowRequest, type User, type UserMessagePayload, UserRef$2 as UserRef, type UserRoleAssignment, UserRoleAssignmentSchema, UserSchema, type UserService, type VoiceService, type VoiceTranscriptionStream, type WebhookTriggerParams, type Workflow, WorkflowClient, type WorkflowConnection, type WorkflowContentBlock, type WorkflowExecution, type WorkflowGraph, type WorkflowNode, type WorkflowNodeType, type WorkflowStatus, type WorkflowVersion, type WorkflowVersionAuthor, type WorkflowVersionSummary, type WriteContentResponse, type WriteCredentialsRequest, buildUrl, getDefaultErrorCode, isBadRequest, isConflict, isForbidden, isNotFound, isPlatformEntity, isProteosError, isUnauthorized, parseErrorResponse, toQueryParams, toQueryString };
|
package/dist/index.js
CHANGED
|
@@ -1209,6 +1209,8 @@ var ConversationClient = class {
|
|
|
1209
1209
|
contacts;
|
|
1210
1210
|
messages;
|
|
1211
1211
|
agentListeners;
|
|
1212
|
+
/** Ingest-time filter rules (drop-with-audit) + their event trail. */
|
|
1213
|
+
conversationFilters;
|
|
1212
1214
|
/** Per-org glossary: custom vocabulary that boosts transcription accuracy. */
|
|
1213
1215
|
glossaryTerms;
|
|
1214
1216
|
transcriptions;
|
|
@@ -1222,6 +1224,7 @@ var ConversationClient = class {
|
|
|
1222
1224
|
this.contacts = new ContactServiceImpl(client);
|
|
1223
1225
|
this.messages = new MessageServiceImpl(client);
|
|
1224
1226
|
this.agentListeners = new AgentListenerServiceImpl(client);
|
|
1227
|
+
this.conversationFilters = new ConversationFilterServiceImpl(client);
|
|
1225
1228
|
this.glossaryTerms = new GlossaryTermServiceImpl(client);
|
|
1226
1229
|
this.transcriptions = new TranscriptionServiceImpl(client);
|
|
1227
1230
|
this.meetings = new MeetingServiceImpl(client);
|
|
@@ -1450,6 +1453,34 @@ var AgentListenerServiceImpl = class {
|
|
|
1450
1453
|
await this.client.request("DELETE", `${CONVERSATION_BASE_PATH}/agent-listeners/${encodeURIComponent(id)}`);
|
|
1451
1454
|
}
|
|
1452
1455
|
};
|
|
1456
|
+
var ConversationFilterServiceImpl = class {
|
|
1457
|
+
constructor(client) {
|
|
1458
|
+
this.client = client;
|
|
1459
|
+
}
|
|
1460
|
+
client;
|
|
1461
|
+
list(query = {}) {
|
|
1462
|
+
return this.client.requestWithQuery("GET", `${CONVERSATION_BASE_PATH}/conversation-filters`, query);
|
|
1463
|
+
}
|
|
1464
|
+
get(id) {
|
|
1465
|
+
return this.client.request("GET", `${CONVERSATION_BASE_PATH}/conversation-filters/${encodeURIComponent(id)}`);
|
|
1466
|
+
}
|
|
1467
|
+
create(request) {
|
|
1468
|
+
return this.client.request("POST", `${CONVERSATION_BASE_PATH}/conversation-filters`, request);
|
|
1469
|
+
}
|
|
1470
|
+
update(id, request) {
|
|
1471
|
+
return this.client.request("PATCH", `${CONVERSATION_BASE_PATH}/conversation-filters/${encodeURIComponent(id)}`, request);
|
|
1472
|
+
}
|
|
1473
|
+
async delete(id) {
|
|
1474
|
+
await this.client.request("DELETE", `${CONVERSATION_BASE_PATH}/conversation-filters/${encodeURIComponent(id)}`);
|
|
1475
|
+
}
|
|
1476
|
+
listEvents(id, query = {}) {
|
|
1477
|
+
return this.client.requestWithQuery(
|
|
1478
|
+
"GET",
|
|
1479
|
+
`${CONVERSATION_BASE_PATH}/conversation-filters/${encodeURIComponent(id)}/events`,
|
|
1480
|
+
query
|
|
1481
|
+
);
|
|
1482
|
+
}
|
|
1483
|
+
};
|
|
1453
1484
|
var GlossaryTermServiceImpl = class {
|
|
1454
1485
|
constructor(client) {
|
|
1455
1486
|
this.client = client;
|