@proteos/sdk 0.39.0 → 0.40.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/index.cjs +10 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +78 -15
- package/dist/index.d.ts +78 -15
- package/dist/index.js +10 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/agent/index.ts +1 -0
- package/src/agent/session-types.ts +9 -2
- package/src/agent/types.ts +15 -2
- package/src/conversation/index.ts +24 -3
- package/src/conversation/types.ts +45 -6
- package/src/index.ts +1 -0
package/dist/index.d.cts
CHANGED
|
@@ -182,8 +182,10 @@ type ListSkillsOptions = AgentResourceListOptions;
|
|
|
182
182
|
* - `client` is a host-provided builtin and carries no binding.
|
|
183
183
|
* - `platform` binds to one tool of the platform MCP server (mcp-service),
|
|
184
184
|
* executed server-side as the acting user.
|
|
185
|
+
* - `query` stores a SQL query with declared params, executed server-side
|
|
186
|
+
* against data-service as the acting user.
|
|
185
187
|
*/
|
|
186
|
-
type ToolKind = 'action' | 'mcp' | 'client' | 'platform';
|
|
188
|
+
type ToolKind = 'action' | 'mcp' | 'client' | 'platform' | 'query';
|
|
187
189
|
/** Binds to a function-service Action by its key (kind=action). */
|
|
188
190
|
interface ActionBinding {
|
|
189
191
|
action_key: string;
|
|
@@ -201,8 +203,18 @@ interface PlatformBinding {
|
|
|
201
203
|
toolset: string;
|
|
202
204
|
tool_name: string;
|
|
203
205
|
}
|
|
206
|
+
/**
|
|
207
|
+
* Stores a SELECT-only SQL query (data-service dialect) whose `{{param}}`
|
|
208
|
+
* placeholders are filled from the declared `params` at execution time
|
|
209
|
+
* (kind=query). Params are scalar attribute definitions (string, number,
|
|
210
|
+
* integer, boolean, datetime, enum); they generate the tool's input schema.
|
|
211
|
+
*/
|
|
212
|
+
interface QueryBinding {
|
|
213
|
+
sql: string;
|
|
214
|
+
params?: Attribute[];
|
|
215
|
+
}
|
|
204
216
|
/** Kind-discriminated binding payload. `kind=client` carries no binding. */
|
|
205
|
-
type ToolBinding = ActionBinding | McpBinding | PlatformBinding;
|
|
217
|
+
type ToolBinding = ActionBinding | McpBinding | PlatformBinding | QueryBinding;
|
|
206
218
|
/**
|
|
207
219
|
* A thin registry entry over one of three binding sources. `key` is the wire
|
|
208
220
|
* name the model calls (`tool_use.name`) and what `Agent.tools` lists.
|
|
@@ -639,8 +651,15 @@ interface StopReason {
|
|
|
639
651
|
type: string;
|
|
640
652
|
}
|
|
641
653
|
/**
|
|
642
|
-
*
|
|
643
|
-
*
|
|
654
|
+
* Ends a turn — published once per turn by the server, not an echo of the upstream
|
|
655
|
+
* provider's session status (which flips idle/running once per server-side tool
|
|
656
|
+
* round, mid-turn).
|
|
657
|
+
*
|
|
658
|
+
* `event_ids` is set only with `stop_reason.type: 'user_action_required'`, and lists
|
|
659
|
+
* the tool_use events still OUTSTANDING — the ones a client must answer. Tools the
|
|
660
|
+
* server executes itself are resolved before this event exists, so seeing this event
|
|
661
|
+
* at all means the turn cannot continue without you: answer each id with a
|
|
662
|
+
* `user.tool_result`.
|
|
644
663
|
*/
|
|
645
664
|
interface SessionIdlePayload {
|
|
646
665
|
stop_reason: StopReason;
|
|
@@ -2761,6 +2780,16 @@ interface ListConnectionsQuery extends PaginationQuery {
|
|
|
2761
2780
|
scope?: string;
|
|
2762
2781
|
status?: string;
|
|
2763
2782
|
}
|
|
2783
|
+
/**
|
|
2784
|
+
* The delete's escape hatch. A connection delete makes the connector release
|
|
2785
|
+
* its provider-side registration first and refuses with a 502
|
|
2786
|
+
* `connector_uninstall_failed` when that fails — the row is the only handle on
|
|
2787
|
+
* that state. `is_forced` drops the row anyway, leaving the provider-side
|
|
2788
|
+
* leftovers as a manual cleanup.
|
|
2789
|
+
*/
|
|
2790
|
+
interface DeleteConnectionQuery {
|
|
2791
|
+
is_forced?: boolean;
|
|
2792
|
+
}
|
|
2764
2793
|
interface ListConversationsQuery extends PaginationQuery {
|
|
2765
2794
|
channel?: string;
|
|
2766
2795
|
status?: string;
|
|
@@ -2810,14 +2839,26 @@ interface ListAgentListenersQuery extends PaginationQuery {
|
|
|
2810
2839
|
is_enabled?: boolean;
|
|
2811
2840
|
}
|
|
2812
2841
|
/**
|
|
2813
|
-
* Conversation filters:
|
|
2814
|
-
*
|
|
2815
|
-
*
|
|
2816
|
-
*
|
|
2817
|
-
*
|
|
2818
|
-
*
|
|
2819
|
-
|
|
2820
|
-
|
|
2842
|
+
* Conversation filters: rules that drop matching inbound messages BEFORE
|
|
2843
|
+
* persistence (no message, no contact — only a content-free audit event) and,
|
|
2844
|
+
* on meeting calendar connections, gate whether the meeting bot is scheduled
|
|
2845
|
+
* at all (pre-join enforcement of the same rules — earliest possible point).
|
|
2846
|
+
* Scope-first evaluation: connection-scoped rules are final when one matches;
|
|
2847
|
+
* global rules apply otherwise. Specificity within a scope:
|
|
2848
|
+
* address > domain > title_keyword > role_based > automated >
|
|
2849
|
+
* self_originated > internal_participant > internal_conversations > all,
|
|
2850
|
+
* allow beats block within a class; an allow match is a final keep, which is
|
|
2851
|
+
* the auto-join composition mechanism (e.g. "organized by me" = a
|
|
2852
|
+
* connection-scoped all-block plus a self_originated allow).
|
|
2853
|
+
*
|
|
2854
|
+
* Channel matrix: address/self_originated/all act on every channel;
|
|
2855
|
+
* domain/title_keyword/internal_participant/internal_conversations act on
|
|
2856
|
+
* email + meeting connections; role_based/automated are email-only. A
|
|
2857
|
+
* connection-scoped rule of a type inert on that connection's channel is
|
|
2858
|
+
* rejected (invalid_filter_config); global rules are unrestricted and stay
|
|
2859
|
+
* inert where their facts are missing.
|
|
2860
|
+
*/
|
|
2861
|
+
type ConversationFilterType = 'address' | 'domain' | 'title_keyword' | 'role_based' | 'automated' | 'self_originated' | 'internal_participant' | 'internal_conversations' | 'all';
|
|
2821
2862
|
type ConversationFilterAction = 'block' | 'allow';
|
|
2822
2863
|
/** Which side of the message address/domain rules test (default: sender). */
|
|
2823
2864
|
type FilterMatchOn = 'sender' | 'any_participant';
|
|
@@ -2842,13 +2883,23 @@ interface RoleBasedFilterConfig {
|
|
|
2842
2883
|
interface AutomatedFilterConfig {
|
|
2843
2884
|
signals?: AutomatedSignal[];
|
|
2844
2885
|
}
|
|
2886
|
+
/** Title/subject contains any keyword (case-insensitive substring; stored lowercased). */
|
|
2887
|
+
interface TitleKeywordFilterConfig {
|
|
2888
|
+
keywords: string[];
|
|
2889
|
+
}
|
|
2890
|
+
/** Conversation originates from the connection owner (meeting organizer / self sender). Empty config. */
|
|
2891
|
+
type SelfOriginatedFilterConfig = Record<string, never>;
|
|
2892
|
+
/** ≥1 participant OTHER than the connection self is on one of these domains (any-internal). */
|
|
2893
|
+
interface InternalParticipantFilterConfig {
|
|
2894
|
+
domains: string[];
|
|
2895
|
+
}
|
|
2845
2896
|
/** Drops only when sender AND every recipient are on these domains. Always block. */
|
|
2846
2897
|
interface InternalConversationsFilterConfig {
|
|
2847
2898
|
domains: string[];
|
|
2848
2899
|
}
|
|
2849
2900
|
/** Matches every message (empty config) — the scope-control primitive. */
|
|
2850
2901
|
type AllFilterConfig = Record<string, never>;
|
|
2851
|
-
type ConversationFilterConfig = AddressFilterConfig | DomainFilterConfig | RoleBasedFilterConfig | AutomatedFilterConfig | InternalConversationsFilterConfig | AllFilterConfig;
|
|
2902
|
+
type ConversationFilterConfig = AddressFilterConfig | DomainFilterConfig | TitleKeywordFilterConfig | RoleBasedFilterConfig | AutomatedFilterConfig | SelfOriginatedFilterConfig | InternalParticipantFilterConfig | InternalConversationsFilterConfig | AllFilterConfig;
|
|
2852
2903
|
interface ConversationFilter {
|
|
2853
2904
|
id: string;
|
|
2854
2905
|
org_id: string;
|
|
@@ -3354,7 +3405,14 @@ interface ConnectionService {
|
|
|
3354
3405
|
get(id: string): Promise<Connection>;
|
|
3355
3406
|
create(request: CreateConnectionRequest): Promise<Connection>;
|
|
3356
3407
|
update(id: string, request: UpdateConnectionRequest): Promise<Connection>;
|
|
3357
|
-
|
|
3408
|
+
/**
|
|
3409
|
+
* Delete a connection. The connector first releases its provider-side
|
|
3410
|
+
* registration (a Recall calendar and the OAuth grant behind it); when that
|
|
3411
|
+
* fails the delete is refused with a `connector_uninstall_failed` 502 rather
|
|
3412
|
+
* than orphaning it. Pass `{ is_forced: true }` to drop the row anyway and
|
|
3413
|
+
* clean up at the provider by hand.
|
|
3414
|
+
*/
|
|
3415
|
+
delete(id: string, query?: DeleteConnectionQuery): Promise<void>;
|
|
3358
3416
|
/** Begin the connector's install flow; open the returned URL in a popup. */
|
|
3359
3417
|
install(id: string): Promise<InstallConnectionResponse>;
|
|
3360
3418
|
/**
|
|
@@ -3396,6 +3454,11 @@ interface ConversationService {
|
|
|
3396
3454
|
/** Patch the user-editable surface (subject, summary, status, metadata). */
|
|
3397
3455
|
update(id: string, request: UpdateConversationRequest): Promise<Conversation>;
|
|
3398
3456
|
end(id: string): Promise<Conversation>;
|
|
3457
|
+
/**
|
|
3458
|
+
* Hard-delete the conversation, its thread children, and every dependent
|
|
3459
|
+
* row (messages, attachments, read markers, transcriptions). Irreversible.
|
|
3460
|
+
*/
|
|
3461
|
+
delete(id: string): Promise<void>;
|
|
3399
3462
|
/** Upsert the requesting user's read marker to now (open a conversation). */
|
|
3400
3463
|
markRead(id: string): Promise<void>;
|
|
3401
3464
|
/** Remove the marker — the conversation reads as unread again. */
|
|
@@ -6241,4 +6304,4 @@ declare class WorkflowClient {
|
|
|
6241
6304
|
constructor(client: ProteosClient);
|
|
6242
6305
|
}
|
|
6243
6306
|
|
|
6244
|
-
export { type AcceptMistranscribedTermRequest, AccountClient, type Action, type ActionBinding, ActionSchema, type ActionScope, ActionScopeSchema, type ActionService, type AddressFilterConfig, type Agent, type AgentActionParams, type AgentArtifactsPayload, AgentClient, type AgentListener, type AgentListenerAcknowledgementConfig, type AgentListenerAcknowledgementType, type AgentListenerActingUserMode, type AgentListenerService, type AgentListenerTriggerType, type AgentMessagePayload, type AgentResourceListOptions, type AgentService, type AllFilterConfig, type ApiErrorResponse, type AppendEventRequest, type AssignPermissionRequest, type AssignRoleRequest, type AttachContactAddressRequest, type Attachment, Attribute, AuditFields, type AuthListOptions, type AutomatedFilterConfig, type AutomatedSignal, type BatchTransactionError, BatchTransactionErrorSchema, type BatchTransactionStatus, type BatchUpsertRecordsResponse, BatchUpsertRecordsResponseSchema, type BatchUpsertTransaction, type BatchUpsertTransactionResult, BatchUpsertTransactionResultSchema, BatchUpsertTransactionSchema, type BinaryRef, type BlockContactRequest, type Channel, type ClientEventType, type ClientToolSchema, type Connection, type ConnectionCredentials, type ConnectionEndpoint, type ConnectionScope, type ConnectionService, type ConnectionStatus, type ConnectionSyncRange, type ConnectionSyncStatus, type Connector, ConnectorClient, type ConnectorConnection, type ConnectionScope$1 as ConnectorConnectionScope, type ConnectionStatus$1 as ConnectorConnectionStatus, type ConnectionTokenResponse as ConnectorConnectionTokenResponse, type CredentialKind as ConnectorCredentialKind, type ConnectorKey, type ConnectorMethod, type ConnectorProvider, type ConsentStatus, type ConsumerGroup, type Contact, type ContactAddress, type ContactAddressKind, type ContactAddressSource, type ContactErasureRequest, type ContactMergeProposal, type ContactRef, type ContactService, type ContactSource, type ContactStatus, type ContentBlock$1 as ContentBlock, type ContentMatch, type ContentResponse, type ContextCompactedPayload, type Conversation, ConversationClient, type ConversationFilter, type ConversationFilterAction, type ConversationFilterConfig, type ConversationFilterEvent, type ConversationFilterService, type ConversationFilterType, type ConversationParticipant, type ConversationService, type ConversationStatus, type ConversationSummaryStatus, type ConversationType, type ConversationTypeConfig, type ConversationTypeService, type CreateAgentListenerRequest, type CreateAgentRequest, type CreateConnectionRequest, type CreateConnectorConnectionRequest, type CreateConversationFilterRequest, type CreateConversationTypeRequest, type CreateFileMetadata, type CreateGlossaryTermRequest, type CreateLabelRequest, type CreateLinkRequest, type CreateMcpServerRequest, type CreateNodeRequest, type CreateOrganizationRequest, type CreatePromptRequest, type CreateRecordLinkRequest, type CreateRoleRequest, type CreateSessionRequest, type CreateToolRequest, type CreateToolsetRequest, type CreateUserRequest, type CreateWorkflowRequest, type CredentialSpec, type CronTriggerParams, DEFAULT_PORT, DataClient, type DependentAgent, type DependentSyncResult, type DispatchMeetingBotRequest, type DisplayOptions, type DomainFilterConfig, ERROR_PORT, type EditContentRequest, type EditContentResponse, type EmptyPayload, type ErasureRequestStatus, ErrorCode, type ErrorCodeType, type ErrorPayload, type EventTriggerParams, type EventType, type EventVerb, EventsClient, type ExecutionError, type ExecutionStatus, type ExecutionTriggerContext, type FileBlock, FileRef, type FileService, type FileVersionContent, type FilterMatchOn, FunctionsClient, type GetExecutionDetailResponse, type GetGraphOptions, type GetNodeExecutionItemsOptions, type GetNodeExecutionItemsResponse, type GetNodeTypesResponse, type GlossaryTerm, type GlossaryTermService, type GraphService, type InlineLinkRequest, type InstallConnectionResponse, type InstallConnectorConnectionResponse, type InternalConversationsFilterConfig, type InvokeActionResponse, type InvokeNodeMethodRequest, type InvokeNodeMethodResponse, type Item, type KickoffSource, type KickoffType, KnowledgeClient, type KnowledgeGraph, type KnowledgeGraphLink, type KnowledgeGraphNode, type KnowledgeLabel, KnowledgeLabelSchema, type KnowledgeLink, KnowledgeLinkSchema, type KnowledgeNode, type KnowledgeNodeLabel, KnowledgeNodeLabelSchema, type KnowledgeNodeMetadata, KnowledgeNodeMetadataSchema, KnowledgeNodeSchema, type KnowledgeNodeSearchResult, KnowledgeNodeSearchResultSchema, type KnowledgeRecordLink, KnowledgeRecordLinkSchema, type LabelService, type LinkService, type LinkType, type ListActionsOptions, type ListAgentListenersQuery, type ListAgentsOptions, type ListConnectionsQuery, type ListConnectorConnectionsQuery, type ListConnectorsQuery, type ListContactAddressesQuery, type ListContactMergeProposalsQuery, type ListContactsQuery, type ListConversationFilterEventsQuery, type ListConversationFiltersQuery, type ListConversationTypesQuery, type ListConversationsQuery, type ListEventsOptions, type ListExecutionsOptions, type ListGlossaryTermsQuery, type ListLabelsOptions, type ListLinksOptions, type ListMcpServersOptions, type ListMessagesQuery, type ListMistranscribedTermsQuery, type ListNodesOptions, ListOptions, type ListOrganizationsOptions, type ListPromptsOptions, type ListRecordLinksOptions, type ListRecordsOptions, type ListResponse, ListResult, type ListRolePermissionsOptions, type ListRolesOptions, type ListRoomsQuery, type ListSessionsOptions, type ListSkillsOptions, type ListToolsOptions, type ListToolsetsOptions, type ListUserRoleAssignmentsOptions, type ListUsersOptions, type ListWorkflowsOptions, type ManualTriggerParams, type MatchMode, type McpBinding, type McpConnectionState, type McpConnectionStatus, type McpServer, type McpServerAuth, type McpServerOAuth, type McpServerService, type McpToolSummary, type MeService, type MeetingService, type MergeContactsRequest, type MergeProposalStatus, type Message, type ContentBlock as MessageContentBlock, type MessageDirection, type MessagePreview, type MessageRecipient, type MessageService, type MessageStatus, type MessageTriggerParams, type MistranscribedTerm, type MistranscribedTermService, type MistranscribedTermStatus, type MistranscriptionSuggestionSource, type ModelCallParams, type ModelConfig, type ModelRequestEndPayload, type ModelRequestStartPayload, type ModelUsage, type NeighborDirection, type NeighborEdge, type NeighborNode, type NeighborsOptions, type NodeContentMatches, type NodeDescriptor, type NodeExecution, type NodeGroup, type NodeMethodOption, type NodeNeighborhood, NodeNeighborhoodSchema, type NodeOutline, type NodePosition, type NodeProperty, type NodeRetryPolicy, type NodeRuntime, type NodeService, type NodeStatus, type NodeType, type NodeTypeKey, type NodeTypeService, type NodeTypeStatus, type OnErrorPolicy, type Organization, OrganizationSchema, type OrganizationService, type OutlineHeading, type OutlineRequest, type OutlineResponse, PLATFORM_ENTITIES, PLATFORM_ENTITY_SLUGS, PageIterator, type PairedItem, type ParseStatus, type Permission, type PermissionEventSource, type PermissionEventType, type PlatformBinding, type PlatformEntity, type PlatformEvent, type PortSpec, type Prompt, type PromptService, type PromptVersion, type PropertyOption, type PropertyType, ProteosClient, ProteosError, PublicAccessOperation, type PublishEventRequest, type QueryExecuteMeta, type QueryExecuteResponse, type QueryObject, type QueryRow, type QueryService, type QueryValidateMeta, type QueryValidateResponse, type QueryValue, type Reaction, type ReactionCapability, type ReactionOption, type ReactionSetKind, type ReasoningPayload, type RecipientKind, type RecipientRole, type RecordData, type RecordLinkService, type RecordPermissionEventRequest, type RecordService, type RedriveResult, type ResultBlock, type Role, type RoleBasedFilterConfig, type RoleEntityPermission, RoleEntityPermissionSchema, RoleSchema, type RoleService, type Room, type RunWorkflowRequest, type SearchContentRequest, type SearchContentResponse, type SearchNodesRequest, type SendMessageRequest, type SendRecipient, type Session, type SessionEvent, type SessionEventEnvelope, type SessionEventsOptions, type SessionIdlePayload, type SessionService, type SessionStatus, type SessionStreamOptions, type SessionUpdatedPayload, type Skill, type SkillBundle, type SkillService, type SkillVersion, type StartMcpOAuthResponse, type StopReason, StorageClient, type StorageFile, type StorageFileVersion, type SyncConnectionRequest, type SystemSource, type TailOptions, type TestNodeCandidate, type TestNodeInputSource, type TestNodeRequest, type TestNodeResponse, type TextBlock, type Tool, type ToolBinding, type ToolConfirmationPayload, type ToolKind, type ToolResultPayload, type ToolService, type ToolUsePayload, type 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, type UnreadCounts, type UpdateAgentListenerRequest, type UpdateAgentRequest, type UpdateConnectionRequest, type UpdateConnectorConnectionRequest, type UpdateContactRequest, type UpdateConversationFilterRequest, type UpdateConversationTypeRequest, type UpdateDraftRequest, type UpdateFileMetadata, type UpdateGlossaryTermRequest, type UpdateLabelRequest, type UpdateLinkRequest, type UpdateMcpServerRequest, type UpdateNodeRequest, type UpdateOrganizationRequest, type UpdatePromptRequest, type UpdateRoleRequest, type UpdateToolRequest, type UpdateToolsetRequest, type UpdateUserRequest, type UpdateWorkflowRequest, type User, type UserMessagePayload, UserRef$2 as UserRef, type UserRoleAssignment, UserRoleAssignmentSchema, UserSchema, type UserService, type VoiceService, type VoiceTranscriptionStream, type WebhookTriggerParams, type Workflow, WorkflowClient, type WorkflowConnection, type WorkflowExecution, type WorkflowGraph, type WorkflowNode, type WorkflowNodeType, type WorkflowStatus, type WorkflowVersion, type WorkflowVersionAuthor, type WorkflowVersionSummary, type WriteContentResponse, type WriteCredentialsRequest, buildUrl, getDefaultErrorCode, isBadRequest, isConflict, isForbidden, isNotFound, isPlatformEntity, isProteosError, isUnauthorized, parseErrorResponse, toQueryParams, toQueryString };
|
|
6307
|
+
export { type AcceptMistranscribedTermRequest, AccountClient, type Action, type ActionBinding, ActionSchema, type ActionScope, ActionScopeSchema, type ActionService, type AddressFilterConfig, type Agent, type AgentActionParams, type AgentArtifactsPayload, AgentClient, type AgentListener, type AgentListenerAcknowledgementConfig, type AgentListenerAcknowledgementType, type AgentListenerActingUserMode, type AgentListenerService, type AgentListenerTriggerType, type AgentMessagePayload, type AgentResourceListOptions, type AgentService, type AllFilterConfig, type ApiErrorResponse, type AppendEventRequest, type AssignPermissionRequest, type AssignRoleRequest, type AttachContactAddressRequest, type Attachment, Attribute, AuditFields, type AuthListOptions, type AutomatedFilterConfig, type AutomatedSignal, type BatchTransactionError, BatchTransactionErrorSchema, type BatchTransactionStatus, type BatchUpsertRecordsResponse, BatchUpsertRecordsResponseSchema, type BatchUpsertTransaction, type BatchUpsertTransactionResult, BatchUpsertTransactionResultSchema, BatchUpsertTransactionSchema, type BinaryRef, type BlockContactRequest, type Channel, type ClientEventType, type ClientToolSchema, type Connection, type ConnectionCredentials, type ConnectionEndpoint, type ConnectionScope, type ConnectionService, type ConnectionStatus, type ConnectionSyncRange, type ConnectionSyncStatus, type Connector, ConnectorClient, type ConnectorConnection, type ConnectionScope$1 as ConnectorConnectionScope, type ConnectionStatus$1 as ConnectorConnectionStatus, type ConnectionTokenResponse as ConnectorConnectionTokenResponse, type CredentialKind as ConnectorCredentialKind, type ConnectorKey, type ConnectorMethod, type ConnectorProvider, type ConsentStatus, type ConsumerGroup, type Contact, type ContactAddress, type ContactAddressKind, type ContactAddressSource, type ContactErasureRequest, type ContactMergeProposal, type ContactRef, type ContactService, type ContactSource, type ContactStatus, type ContentBlock$1 as ContentBlock, type ContentMatch, type ContentResponse, type ContextCompactedPayload, type Conversation, ConversationClient, type ConversationFilter, type ConversationFilterAction, type ConversationFilterConfig, type ConversationFilterEvent, type ConversationFilterService, type ConversationFilterType, type ConversationParticipant, type ConversationService, type ConversationStatus, type ConversationSummaryStatus, type ConversationType, type ConversationTypeConfig, type ConversationTypeService, type CreateAgentListenerRequest, type CreateAgentRequest, type CreateConnectionRequest, type CreateConnectorConnectionRequest, type CreateConversationFilterRequest, type CreateConversationTypeRequest, type CreateFileMetadata, type CreateGlossaryTermRequest, type CreateLabelRequest, type CreateLinkRequest, type CreateMcpServerRequest, type CreateNodeRequest, type CreateOrganizationRequest, type CreatePromptRequest, type CreateRecordLinkRequest, type CreateRoleRequest, type CreateSessionRequest, type CreateToolRequest, type CreateToolsetRequest, type CreateUserRequest, type CreateWorkflowRequest, type CredentialSpec, type CronTriggerParams, DEFAULT_PORT, DataClient, type DependentAgent, type DependentSyncResult, type DispatchMeetingBotRequest, type DisplayOptions, type DomainFilterConfig, ERROR_PORT, type EditContentRequest, type EditContentResponse, type EmptyPayload, type ErasureRequestStatus, ErrorCode, type ErrorCodeType, type ErrorPayload, type EventTriggerParams, type EventType, type EventVerb, EventsClient, type ExecutionError, type ExecutionStatus, type ExecutionTriggerContext, type FileBlock, FileRef, type FileService, type FileVersionContent, type FilterMatchOn, FunctionsClient, type GetExecutionDetailResponse, type GetGraphOptions, type GetNodeExecutionItemsOptions, type GetNodeExecutionItemsResponse, type GetNodeTypesResponse, type GlossaryTerm, type GlossaryTermService, type GraphService, type InlineLinkRequest, type InstallConnectionResponse, type InstallConnectorConnectionResponse, type InternalConversationsFilterConfig, type InvokeActionResponse, type InvokeNodeMethodRequest, type InvokeNodeMethodResponse, type Item, type KickoffSource, type KickoffType, KnowledgeClient, type KnowledgeGraph, type KnowledgeGraphLink, type KnowledgeGraphNode, type KnowledgeLabel, KnowledgeLabelSchema, type KnowledgeLink, KnowledgeLinkSchema, type KnowledgeNode, type KnowledgeNodeLabel, KnowledgeNodeLabelSchema, type KnowledgeNodeMetadata, KnowledgeNodeMetadataSchema, KnowledgeNodeSchema, type KnowledgeNodeSearchResult, KnowledgeNodeSearchResultSchema, type KnowledgeRecordLink, KnowledgeRecordLinkSchema, type LabelService, type LinkService, type LinkType, type ListActionsOptions, type ListAgentListenersQuery, type ListAgentsOptions, type ListConnectionsQuery, type ListConnectorConnectionsQuery, type ListConnectorsQuery, type ListContactAddressesQuery, type ListContactMergeProposalsQuery, type ListContactsQuery, type ListConversationFilterEventsQuery, type ListConversationFiltersQuery, type ListConversationTypesQuery, type ListConversationsQuery, type ListEventsOptions, type ListExecutionsOptions, type ListGlossaryTermsQuery, type ListLabelsOptions, type ListLinksOptions, type ListMcpServersOptions, type ListMessagesQuery, type ListMistranscribedTermsQuery, type ListNodesOptions, ListOptions, type ListOrganizationsOptions, type ListPromptsOptions, type ListRecordLinksOptions, type ListRecordsOptions, type ListResponse, ListResult, type ListRolePermissionsOptions, type ListRolesOptions, type ListRoomsQuery, type ListSessionsOptions, type ListSkillsOptions, type ListToolsOptions, type ListToolsetsOptions, type ListUserRoleAssignmentsOptions, type ListUsersOptions, type ListWorkflowsOptions, type ManualTriggerParams, type MatchMode, type McpBinding, type McpConnectionState, type McpConnectionStatus, type McpServer, type McpServerAuth, type McpServerOAuth, type McpServerService, type McpToolSummary, type MeService, type MeetingService, type MergeContactsRequest, type MergeProposalStatus, type Message, type ContentBlock as MessageContentBlock, type MessageDirection, type MessagePreview, type MessageRecipient, type MessageService, type MessageStatus, type MessageTriggerParams, type MistranscribedTerm, type MistranscribedTermService, type MistranscribedTermStatus, type MistranscriptionSuggestionSource, type ModelCallParams, type ModelConfig, type ModelRequestEndPayload, type ModelRequestStartPayload, type ModelUsage, type NeighborDirection, type NeighborEdge, type NeighborNode, type NeighborsOptions, type NodeContentMatches, type NodeDescriptor, type NodeExecution, type NodeGroup, type NodeMethodOption, type NodeNeighborhood, NodeNeighborhoodSchema, type NodeOutline, type NodePosition, type NodeProperty, type NodeRetryPolicy, type NodeRuntime, type NodeService, type NodeStatus, type NodeType, type NodeTypeKey, type NodeTypeService, type NodeTypeStatus, type OnErrorPolicy, type Organization, OrganizationSchema, type OrganizationService, type OutlineHeading, type OutlineRequest, type OutlineResponse, PLATFORM_ENTITIES, PLATFORM_ENTITY_SLUGS, PageIterator, type PairedItem, type ParseStatus, type Permission, type PermissionEventSource, type PermissionEventType, type PlatformBinding, type PlatformEntity, type PlatformEvent, type PortSpec, type Prompt, type PromptService, type PromptVersion, type PropertyOption, type PropertyType, ProteosClient, ProteosError, PublicAccessOperation, type PublishEventRequest, 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 RecordLinkService, type RecordPermissionEventRequest, type RecordService, type RedriveResult, type ResultBlock, type Role, type RoleBasedFilterConfig, type RoleEntityPermission, RoleEntityPermissionSchema, RoleSchema, type RoleService, type Room, type RunWorkflowRequest, type SearchContentRequest, type SearchContentResponse, type SearchNodesRequest, type SendMessageRequest, type SendRecipient, type Session, type SessionEvent, type SessionEventEnvelope, type SessionEventsOptions, type SessionIdlePayload, type SessionService, type SessionStatus, type SessionStreamOptions, type SessionUpdatedPayload, type Skill, type SkillBundle, type SkillService, type SkillVersion, type StartMcpOAuthResponse, type StopReason, StorageClient, type StorageFile, type StorageFileVersion, type SyncConnectionRequest, type SystemSource, type TailOptions, type TestNodeCandidate, type TestNodeInputSource, type TestNodeRequest, type TestNodeResponse, type TextBlock, type Tool, type ToolBinding, type ToolConfirmationPayload, type ToolKind, type ToolResultPayload, type ToolService, type ToolUsePayload, type 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, type UnreadCounts, type UpdateAgentListenerRequest, type UpdateAgentRequest, type UpdateConnectionRequest, type UpdateConnectorConnectionRequest, type UpdateContactRequest, type UpdateConversationFilterRequest, type UpdateConversationTypeRequest, type UpdateDraftRequest, type UpdateFileMetadata, type UpdateGlossaryTermRequest, type UpdateLabelRequest, type UpdateLinkRequest, type UpdateMcpServerRequest, type UpdateNodeRequest, type UpdateOrganizationRequest, type UpdatePromptRequest, type UpdateRoleRequest, type UpdateToolRequest, type UpdateToolsetRequest, type UpdateUserRequest, type UpdateWorkflowRequest, type User, type UserMessagePayload, UserRef$2 as UserRef, type UserRoleAssignment, UserRoleAssignmentSchema, UserSchema, type UserService, type VoiceService, type VoiceTranscriptionStream, type WebhookTriggerParams, type Workflow, WorkflowClient, type WorkflowConnection, type WorkflowExecution, type WorkflowGraph, type WorkflowNode, type WorkflowNodeType, type WorkflowStatus, type WorkflowVersion, type WorkflowVersionAuthor, type WorkflowVersionSummary, type WriteContentResponse, type WriteCredentialsRequest, buildUrl, getDefaultErrorCode, isBadRequest, isConflict, isForbidden, isNotFound, isPlatformEntity, isProteosError, isUnauthorized, parseErrorResponse, toQueryParams, toQueryString };
|
package/dist/index.d.ts
CHANGED
|
@@ -182,8 +182,10 @@ type ListSkillsOptions = AgentResourceListOptions;
|
|
|
182
182
|
* - `client` is a host-provided builtin and carries no binding.
|
|
183
183
|
* - `platform` binds to one tool of the platform MCP server (mcp-service),
|
|
184
184
|
* executed server-side as the acting user.
|
|
185
|
+
* - `query` stores a SQL query with declared params, executed server-side
|
|
186
|
+
* against data-service as the acting user.
|
|
185
187
|
*/
|
|
186
|
-
type ToolKind = 'action' | 'mcp' | 'client' | 'platform';
|
|
188
|
+
type ToolKind = 'action' | 'mcp' | 'client' | 'platform' | 'query';
|
|
187
189
|
/** Binds to a function-service Action by its key (kind=action). */
|
|
188
190
|
interface ActionBinding {
|
|
189
191
|
action_key: string;
|
|
@@ -201,8 +203,18 @@ interface PlatformBinding {
|
|
|
201
203
|
toolset: string;
|
|
202
204
|
tool_name: string;
|
|
203
205
|
}
|
|
206
|
+
/**
|
|
207
|
+
* Stores a SELECT-only SQL query (data-service dialect) whose `{{param}}`
|
|
208
|
+
* placeholders are filled from the declared `params` at execution time
|
|
209
|
+
* (kind=query). Params are scalar attribute definitions (string, number,
|
|
210
|
+
* integer, boolean, datetime, enum); they generate the tool's input schema.
|
|
211
|
+
*/
|
|
212
|
+
interface QueryBinding {
|
|
213
|
+
sql: string;
|
|
214
|
+
params?: Attribute[];
|
|
215
|
+
}
|
|
204
216
|
/** Kind-discriminated binding payload. `kind=client` carries no binding. */
|
|
205
|
-
type ToolBinding = ActionBinding | McpBinding | PlatformBinding;
|
|
217
|
+
type ToolBinding = ActionBinding | McpBinding | PlatformBinding | QueryBinding;
|
|
206
218
|
/**
|
|
207
219
|
* A thin registry entry over one of three binding sources. `key` is the wire
|
|
208
220
|
* name the model calls (`tool_use.name`) and what `Agent.tools` lists.
|
|
@@ -639,8 +651,15 @@ interface StopReason {
|
|
|
639
651
|
type: string;
|
|
640
652
|
}
|
|
641
653
|
/**
|
|
642
|
-
*
|
|
643
|
-
*
|
|
654
|
+
* Ends a turn — published once per turn by the server, not an echo of the upstream
|
|
655
|
+
* provider's session status (which flips idle/running once per server-side tool
|
|
656
|
+
* round, mid-turn).
|
|
657
|
+
*
|
|
658
|
+
* `event_ids` is set only with `stop_reason.type: 'user_action_required'`, and lists
|
|
659
|
+
* the tool_use events still OUTSTANDING — the ones a client must answer. Tools the
|
|
660
|
+
* server executes itself are resolved before this event exists, so seeing this event
|
|
661
|
+
* at all means the turn cannot continue without you: answer each id with a
|
|
662
|
+
* `user.tool_result`.
|
|
644
663
|
*/
|
|
645
664
|
interface SessionIdlePayload {
|
|
646
665
|
stop_reason: StopReason;
|
|
@@ -2761,6 +2780,16 @@ interface ListConnectionsQuery extends PaginationQuery {
|
|
|
2761
2780
|
scope?: string;
|
|
2762
2781
|
status?: string;
|
|
2763
2782
|
}
|
|
2783
|
+
/**
|
|
2784
|
+
* The delete's escape hatch. A connection delete makes the connector release
|
|
2785
|
+
* its provider-side registration first and refuses with a 502
|
|
2786
|
+
* `connector_uninstall_failed` when that fails — the row is the only handle on
|
|
2787
|
+
* that state. `is_forced` drops the row anyway, leaving the provider-side
|
|
2788
|
+
* leftovers as a manual cleanup.
|
|
2789
|
+
*/
|
|
2790
|
+
interface DeleteConnectionQuery {
|
|
2791
|
+
is_forced?: boolean;
|
|
2792
|
+
}
|
|
2764
2793
|
interface ListConversationsQuery extends PaginationQuery {
|
|
2765
2794
|
channel?: string;
|
|
2766
2795
|
status?: string;
|
|
@@ -2810,14 +2839,26 @@ interface ListAgentListenersQuery extends PaginationQuery {
|
|
|
2810
2839
|
is_enabled?: boolean;
|
|
2811
2840
|
}
|
|
2812
2841
|
/**
|
|
2813
|
-
* Conversation filters:
|
|
2814
|
-
*
|
|
2815
|
-
*
|
|
2816
|
-
*
|
|
2817
|
-
*
|
|
2818
|
-
*
|
|
2819
|
-
|
|
2820
|
-
|
|
2842
|
+
* Conversation filters: rules that drop matching inbound messages BEFORE
|
|
2843
|
+
* persistence (no message, no contact — only a content-free audit event) and,
|
|
2844
|
+
* on meeting calendar connections, gate whether the meeting bot is scheduled
|
|
2845
|
+
* at all (pre-join enforcement of the same rules — earliest possible point).
|
|
2846
|
+
* Scope-first evaluation: connection-scoped rules are final when one matches;
|
|
2847
|
+
* global rules apply otherwise. Specificity within a scope:
|
|
2848
|
+
* address > domain > title_keyword > role_based > automated >
|
|
2849
|
+
* self_originated > internal_participant > internal_conversations > all,
|
|
2850
|
+
* allow beats block within a class; an allow match is a final keep, which is
|
|
2851
|
+
* the auto-join composition mechanism (e.g. "organized by me" = a
|
|
2852
|
+
* connection-scoped all-block plus a self_originated allow).
|
|
2853
|
+
*
|
|
2854
|
+
* Channel matrix: address/self_originated/all act on every channel;
|
|
2855
|
+
* domain/title_keyword/internal_participant/internal_conversations act on
|
|
2856
|
+
* email + meeting connections; role_based/automated are email-only. A
|
|
2857
|
+
* connection-scoped rule of a type inert on that connection's channel is
|
|
2858
|
+
* rejected (invalid_filter_config); global rules are unrestricted and stay
|
|
2859
|
+
* inert where their facts are missing.
|
|
2860
|
+
*/
|
|
2861
|
+
type ConversationFilterType = 'address' | 'domain' | 'title_keyword' | 'role_based' | 'automated' | 'self_originated' | 'internal_participant' | 'internal_conversations' | 'all';
|
|
2821
2862
|
type ConversationFilterAction = 'block' | 'allow';
|
|
2822
2863
|
/** Which side of the message address/domain rules test (default: sender). */
|
|
2823
2864
|
type FilterMatchOn = 'sender' | 'any_participant';
|
|
@@ -2842,13 +2883,23 @@ interface RoleBasedFilterConfig {
|
|
|
2842
2883
|
interface AutomatedFilterConfig {
|
|
2843
2884
|
signals?: AutomatedSignal[];
|
|
2844
2885
|
}
|
|
2886
|
+
/** Title/subject contains any keyword (case-insensitive substring; stored lowercased). */
|
|
2887
|
+
interface TitleKeywordFilterConfig {
|
|
2888
|
+
keywords: string[];
|
|
2889
|
+
}
|
|
2890
|
+
/** Conversation originates from the connection owner (meeting organizer / self sender). Empty config. */
|
|
2891
|
+
type SelfOriginatedFilterConfig = Record<string, never>;
|
|
2892
|
+
/** ≥1 participant OTHER than the connection self is on one of these domains (any-internal). */
|
|
2893
|
+
interface InternalParticipantFilterConfig {
|
|
2894
|
+
domains: string[];
|
|
2895
|
+
}
|
|
2845
2896
|
/** Drops only when sender AND every recipient are on these domains. Always block. */
|
|
2846
2897
|
interface InternalConversationsFilterConfig {
|
|
2847
2898
|
domains: string[];
|
|
2848
2899
|
}
|
|
2849
2900
|
/** Matches every message (empty config) — the scope-control primitive. */
|
|
2850
2901
|
type AllFilterConfig = Record<string, never>;
|
|
2851
|
-
type ConversationFilterConfig = AddressFilterConfig | DomainFilterConfig | RoleBasedFilterConfig | AutomatedFilterConfig | InternalConversationsFilterConfig | AllFilterConfig;
|
|
2902
|
+
type ConversationFilterConfig = AddressFilterConfig | DomainFilterConfig | TitleKeywordFilterConfig | RoleBasedFilterConfig | AutomatedFilterConfig | SelfOriginatedFilterConfig | InternalParticipantFilterConfig | InternalConversationsFilterConfig | AllFilterConfig;
|
|
2852
2903
|
interface ConversationFilter {
|
|
2853
2904
|
id: string;
|
|
2854
2905
|
org_id: string;
|
|
@@ -3354,7 +3405,14 @@ interface ConnectionService {
|
|
|
3354
3405
|
get(id: string): Promise<Connection>;
|
|
3355
3406
|
create(request: CreateConnectionRequest): Promise<Connection>;
|
|
3356
3407
|
update(id: string, request: UpdateConnectionRequest): Promise<Connection>;
|
|
3357
|
-
|
|
3408
|
+
/**
|
|
3409
|
+
* Delete a connection. The connector first releases its provider-side
|
|
3410
|
+
* registration (a Recall calendar and the OAuth grant behind it); when that
|
|
3411
|
+
* fails the delete is refused with a `connector_uninstall_failed` 502 rather
|
|
3412
|
+
* than orphaning it. Pass `{ is_forced: true }` to drop the row anyway and
|
|
3413
|
+
* clean up at the provider by hand.
|
|
3414
|
+
*/
|
|
3415
|
+
delete(id: string, query?: DeleteConnectionQuery): Promise<void>;
|
|
3358
3416
|
/** Begin the connector's install flow; open the returned URL in a popup. */
|
|
3359
3417
|
install(id: string): Promise<InstallConnectionResponse>;
|
|
3360
3418
|
/**
|
|
@@ -3396,6 +3454,11 @@ interface ConversationService {
|
|
|
3396
3454
|
/** Patch the user-editable surface (subject, summary, status, metadata). */
|
|
3397
3455
|
update(id: string, request: UpdateConversationRequest): Promise<Conversation>;
|
|
3398
3456
|
end(id: string): Promise<Conversation>;
|
|
3457
|
+
/**
|
|
3458
|
+
* Hard-delete the conversation, its thread children, and every dependent
|
|
3459
|
+
* row (messages, attachments, read markers, transcriptions). Irreversible.
|
|
3460
|
+
*/
|
|
3461
|
+
delete(id: string): Promise<void>;
|
|
3399
3462
|
/** Upsert the requesting user's read marker to now (open a conversation). */
|
|
3400
3463
|
markRead(id: string): Promise<void>;
|
|
3401
3464
|
/** Remove the marker — the conversation reads as unread again. */
|
|
@@ -6241,4 +6304,4 @@ declare class WorkflowClient {
|
|
|
6241
6304
|
constructor(client: ProteosClient);
|
|
6242
6305
|
}
|
|
6243
6306
|
|
|
6244
|
-
export { type AcceptMistranscribedTermRequest, AccountClient, type Action, type ActionBinding, ActionSchema, type ActionScope, ActionScopeSchema, type ActionService, type AddressFilterConfig, type Agent, type AgentActionParams, type AgentArtifactsPayload, AgentClient, type AgentListener, type AgentListenerAcknowledgementConfig, type AgentListenerAcknowledgementType, type AgentListenerActingUserMode, type AgentListenerService, type AgentListenerTriggerType, type AgentMessagePayload, type AgentResourceListOptions, type AgentService, type AllFilterConfig, type ApiErrorResponse, type AppendEventRequest, type AssignPermissionRequest, type AssignRoleRequest, type AttachContactAddressRequest, type Attachment, Attribute, AuditFields, type AuthListOptions, type AutomatedFilterConfig, type AutomatedSignal, type BatchTransactionError, BatchTransactionErrorSchema, type BatchTransactionStatus, type BatchUpsertRecordsResponse, BatchUpsertRecordsResponseSchema, type BatchUpsertTransaction, type BatchUpsertTransactionResult, BatchUpsertTransactionResultSchema, BatchUpsertTransactionSchema, type BinaryRef, type BlockContactRequest, type Channel, type ClientEventType, type ClientToolSchema, type Connection, type ConnectionCredentials, type ConnectionEndpoint, type ConnectionScope, type ConnectionService, type ConnectionStatus, type ConnectionSyncRange, type ConnectionSyncStatus, type Connector, ConnectorClient, type ConnectorConnection, type ConnectionScope$1 as ConnectorConnectionScope, type ConnectionStatus$1 as ConnectorConnectionStatus, type ConnectionTokenResponse as ConnectorConnectionTokenResponse, type CredentialKind as ConnectorCredentialKind, type ConnectorKey, type ConnectorMethod, type ConnectorProvider, type ConsentStatus, type ConsumerGroup, type Contact, type ContactAddress, type ContactAddressKind, type ContactAddressSource, type ContactErasureRequest, type ContactMergeProposal, type ContactRef, type ContactService, type ContactSource, type ContactStatus, type ContentBlock$1 as ContentBlock, type ContentMatch, type ContentResponse, type ContextCompactedPayload, type Conversation, ConversationClient, type ConversationFilter, type ConversationFilterAction, type ConversationFilterConfig, type ConversationFilterEvent, type ConversationFilterService, type ConversationFilterType, type ConversationParticipant, type ConversationService, type ConversationStatus, type ConversationSummaryStatus, type ConversationType, type ConversationTypeConfig, type ConversationTypeService, type CreateAgentListenerRequest, type CreateAgentRequest, type CreateConnectionRequest, type CreateConnectorConnectionRequest, type CreateConversationFilterRequest, type CreateConversationTypeRequest, type CreateFileMetadata, type CreateGlossaryTermRequest, type CreateLabelRequest, type CreateLinkRequest, type CreateMcpServerRequest, type CreateNodeRequest, type CreateOrganizationRequest, type CreatePromptRequest, type CreateRecordLinkRequest, type CreateRoleRequest, type CreateSessionRequest, type CreateToolRequest, type CreateToolsetRequest, type CreateUserRequest, type CreateWorkflowRequest, type CredentialSpec, type CronTriggerParams, DEFAULT_PORT, DataClient, type DependentAgent, type DependentSyncResult, type DispatchMeetingBotRequest, type DisplayOptions, type DomainFilterConfig, ERROR_PORT, type EditContentRequest, type EditContentResponse, type EmptyPayload, type ErasureRequestStatus, ErrorCode, type ErrorCodeType, type ErrorPayload, type EventTriggerParams, type EventType, type EventVerb, EventsClient, type ExecutionError, type ExecutionStatus, type ExecutionTriggerContext, type FileBlock, FileRef, type FileService, type FileVersionContent, type FilterMatchOn, FunctionsClient, type GetExecutionDetailResponse, type GetGraphOptions, type GetNodeExecutionItemsOptions, type GetNodeExecutionItemsResponse, type GetNodeTypesResponse, type GlossaryTerm, type GlossaryTermService, type GraphService, type InlineLinkRequest, type InstallConnectionResponse, type InstallConnectorConnectionResponse, type InternalConversationsFilterConfig, type InvokeActionResponse, type InvokeNodeMethodRequest, type InvokeNodeMethodResponse, type Item, type KickoffSource, type KickoffType, KnowledgeClient, type KnowledgeGraph, type KnowledgeGraphLink, type KnowledgeGraphNode, type KnowledgeLabel, KnowledgeLabelSchema, type KnowledgeLink, KnowledgeLinkSchema, type KnowledgeNode, type KnowledgeNodeLabel, KnowledgeNodeLabelSchema, type KnowledgeNodeMetadata, KnowledgeNodeMetadataSchema, KnowledgeNodeSchema, type KnowledgeNodeSearchResult, KnowledgeNodeSearchResultSchema, type KnowledgeRecordLink, KnowledgeRecordLinkSchema, type LabelService, type LinkService, type LinkType, type ListActionsOptions, type ListAgentListenersQuery, type ListAgentsOptions, type ListConnectionsQuery, type ListConnectorConnectionsQuery, type ListConnectorsQuery, type ListContactAddressesQuery, type ListContactMergeProposalsQuery, type ListContactsQuery, type ListConversationFilterEventsQuery, type ListConversationFiltersQuery, type ListConversationTypesQuery, type ListConversationsQuery, type ListEventsOptions, type ListExecutionsOptions, type ListGlossaryTermsQuery, type ListLabelsOptions, type ListLinksOptions, type ListMcpServersOptions, type ListMessagesQuery, type ListMistranscribedTermsQuery, type ListNodesOptions, ListOptions, type ListOrganizationsOptions, type ListPromptsOptions, type ListRecordLinksOptions, type ListRecordsOptions, type ListResponse, ListResult, type ListRolePermissionsOptions, type ListRolesOptions, type ListRoomsQuery, type ListSessionsOptions, type ListSkillsOptions, type ListToolsOptions, type ListToolsetsOptions, type ListUserRoleAssignmentsOptions, type ListUsersOptions, type ListWorkflowsOptions, type ManualTriggerParams, type MatchMode, type McpBinding, type McpConnectionState, type McpConnectionStatus, type McpServer, type McpServerAuth, type McpServerOAuth, type McpServerService, type McpToolSummary, type MeService, type MeetingService, type MergeContactsRequest, type MergeProposalStatus, type Message, type ContentBlock as MessageContentBlock, type MessageDirection, type MessagePreview, type MessageRecipient, type MessageService, type MessageStatus, type MessageTriggerParams, type MistranscribedTerm, type MistranscribedTermService, type MistranscribedTermStatus, type MistranscriptionSuggestionSource, type ModelCallParams, type ModelConfig, type ModelRequestEndPayload, type ModelRequestStartPayload, type ModelUsage, type NeighborDirection, type NeighborEdge, type NeighborNode, type NeighborsOptions, type NodeContentMatches, type NodeDescriptor, type NodeExecution, type NodeGroup, type NodeMethodOption, type NodeNeighborhood, NodeNeighborhoodSchema, type NodeOutline, type NodePosition, type NodeProperty, type NodeRetryPolicy, type NodeRuntime, type NodeService, type NodeStatus, type NodeType, type NodeTypeKey, type NodeTypeService, type NodeTypeStatus, type OnErrorPolicy, type Organization, OrganizationSchema, type OrganizationService, type OutlineHeading, type OutlineRequest, type OutlineResponse, PLATFORM_ENTITIES, PLATFORM_ENTITY_SLUGS, PageIterator, type PairedItem, type ParseStatus, type Permission, type PermissionEventSource, type PermissionEventType, type PlatformBinding, type PlatformEntity, type PlatformEvent, type PortSpec, type Prompt, type PromptService, type PromptVersion, type PropertyOption, type PropertyType, ProteosClient, ProteosError, PublicAccessOperation, type PublishEventRequest, type QueryExecuteMeta, type QueryExecuteResponse, type QueryObject, type QueryRow, type QueryService, type QueryValidateMeta, type QueryValidateResponse, type QueryValue, type Reaction, type ReactionCapability, type ReactionOption, type ReactionSetKind, type ReasoningPayload, type RecipientKind, type RecipientRole, type RecordData, type RecordLinkService, type RecordPermissionEventRequest, type RecordService, type RedriveResult, type ResultBlock, type Role, type RoleBasedFilterConfig, type RoleEntityPermission, RoleEntityPermissionSchema, RoleSchema, type RoleService, type Room, type RunWorkflowRequest, type SearchContentRequest, type SearchContentResponse, type SearchNodesRequest, type SendMessageRequest, type SendRecipient, type Session, type SessionEvent, type SessionEventEnvelope, type SessionEventsOptions, type SessionIdlePayload, type SessionService, type SessionStatus, type SessionStreamOptions, type SessionUpdatedPayload, type Skill, type SkillBundle, type SkillService, type SkillVersion, type StartMcpOAuthResponse, type StopReason, StorageClient, type StorageFile, type StorageFileVersion, type SyncConnectionRequest, type SystemSource, type TailOptions, type TestNodeCandidate, type TestNodeInputSource, type TestNodeRequest, type TestNodeResponse, type TextBlock, type Tool, type ToolBinding, type ToolConfirmationPayload, type ToolKind, type ToolResultPayload, type ToolService, type ToolUsePayload, type 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, type UnreadCounts, type UpdateAgentListenerRequest, type UpdateAgentRequest, type UpdateConnectionRequest, type UpdateConnectorConnectionRequest, type UpdateContactRequest, type UpdateConversationFilterRequest, type UpdateConversationTypeRequest, type UpdateDraftRequest, type UpdateFileMetadata, type UpdateGlossaryTermRequest, type UpdateLabelRequest, type UpdateLinkRequest, type UpdateMcpServerRequest, type UpdateNodeRequest, type UpdateOrganizationRequest, type UpdatePromptRequest, type UpdateRoleRequest, type UpdateToolRequest, type UpdateToolsetRequest, type UpdateUserRequest, type UpdateWorkflowRequest, type User, type UserMessagePayload, UserRef$2 as UserRef, type UserRoleAssignment, UserRoleAssignmentSchema, UserSchema, type UserService, type VoiceService, type VoiceTranscriptionStream, type WebhookTriggerParams, type Workflow, WorkflowClient, type WorkflowConnection, type WorkflowExecution, type WorkflowGraph, type WorkflowNode, type WorkflowNodeType, type WorkflowStatus, type WorkflowVersion, type WorkflowVersionAuthor, type WorkflowVersionSummary, type WriteContentResponse, type WriteCredentialsRequest, buildUrl, getDefaultErrorCode, isBadRequest, isConflict, isForbidden, isNotFound, isPlatformEntity, isProteosError, isUnauthorized, parseErrorResponse, toQueryParams, toQueryString };
|
|
6307
|
+
export { type AcceptMistranscribedTermRequest, AccountClient, type Action, type ActionBinding, ActionSchema, type ActionScope, ActionScopeSchema, type ActionService, type AddressFilterConfig, type Agent, type AgentActionParams, type AgentArtifactsPayload, AgentClient, type AgentListener, type AgentListenerAcknowledgementConfig, type AgentListenerAcknowledgementType, type AgentListenerActingUserMode, type AgentListenerService, type AgentListenerTriggerType, type AgentMessagePayload, type AgentResourceListOptions, type AgentService, type AllFilterConfig, type ApiErrorResponse, type AppendEventRequest, type AssignPermissionRequest, type AssignRoleRequest, type AttachContactAddressRequest, type Attachment, Attribute, AuditFields, type AuthListOptions, type AutomatedFilterConfig, type AutomatedSignal, type BatchTransactionError, BatchTransactionErrorSchema, type BatchTransactionStatus, type BatchUpsertRecordsResponse, BatchUpsertRecordsResponseSchema, type BatchUpsertTransaction, type BatchUpsertTransactionResult, BatchUpsertTransactionResultSchema, BatchUpsertTransactionSchema, type BinaryRef, type BlockContactRequest, type Channel, type ClientEventType, type ClientToolSchema, type Connection, type ConnectionCredentials, type ConnectionEndpoint, type ConnectionScope, type ConnectionService, type ConnectionStatus, type ConnectionSyncRange, type ConnectionSyncStatus, type Connector, ConnectorClient, type ConnectorConnection, type ConnectionScope$1 as ConnectorConnectionScope, type ConnectionStatus$1 as ConnectorConnectionStatus, type ConnectionTokenResponse as ConnectorConnectionTokenResponse, type CredentialKind as ConnectorCredentialKind, type ConnectorKey, type ConnectorMethod, type ConnectorProvider, type ConsentStatus, type ConsumerGroup, type Contact, type ContactAddress, type ContactAddressKind, type ContactAddressSource, type ContactErasureRequest, type ContactMergeProposal, type ContactRef, type ContactService, type ContactSource, type ContactStatus, type ContentBlock$1 as ContentBlock, type ContentMatch, type ContentResponse, type ContextCompactedPayload, type Conversation, ConversationClient, type ConversationFilter, type ConversationFilterAction, type ConversationFilterConfig, type ConversationFilterEvent, type ConversationFilterService, type ConversationFilterType, type ConversationParticipant, type ConversationService, type ConversationStatus, type ConversationSummaryStatus, type ConversationType, type ConversationTypeConfig, type ConversationTypeService, type CreateAgentListenerRequest, type CreateAgentRequest, type CreateConnectionRequest, type CreateConnectorConnectionRequest, type CreateConversationFilterRequest, type CreateConversationTypeRequest, type CreateFileMetadata, type CreateGlossaryTermRequest, type CreateLabelRequest, type CreateLinkRequest, type CreateMcpServerRequest, type CreateNodeRequest, type CreateOrganizationRequest, type CreatePromptRequest, type CreateRecordLinkRequest, type CreateRoleRequest, type CreateSessionRequest, type CreateToolRequest, type CreateToolsetRequest, type CreateUserRequest, type CreateWorkflowRequest, type CredentialSpec, type CronTriggerParams, DEFAULT_PORT, DataClient, type DependentAgent, type DependentSyncResult, type DispatchMeetingBotRequest, type DisplayOptions, type DomainFilterConfig, ERROR_PORT, type EditContentRequest, type EditContentResponse, type EmptyPayload, type ErasureRequestStatus, ErrorCode, type ErrorCodeType, type ErrorPayload, type EventTriggerParams, type EventType, type EventVerb, EventsClient, type ExecutionError, type ExecutionStatus, type ExecutionTriggerContext, type FileBlock, FileRef, type FileService, type FileVersionContent, type FilterMatchOn, FunctionsClient, type GetExecutionDetailResponse, type GetGraphOptions, type GetNodeExecutionItemsOptions, type GetNodeExecutionItemsResponse, type GetNodeTypesResponse, type GlossaryTerm, type GlossaryTermService, type GraphService, type InlineLinkRequest, type InstallConnectionResponse, type InstallConnectorConnectionResponse, type InternalConversationsFilterConfig, type InvokeActionResponse, type InvokeNodeMethodRequest, type InvokeNodeMethodResponse, type Item, type KickoffSource, type KickoffType, KnowledgeClient, type KnowledgeGraph, type KnowledgeGraphLink, type KnowledgeGraphNode, type KnowledgeLabel, KnowledgeLabelSchema, type KnowledgeLink, KnowledgeLinkSchema, type KnowledgeNode, type KnowledgeNodeLabel, KnowledgeNodeLabelSchema, type KnowledgeNodeMetadata, KnowledgeNodeMetadataSchema, KnowledgeNodeSchema, type KnowledgeNodeSearchResult, KnowledgeNodeSearchResultSchema, type KnowledgeRecordLink, KnowledgeRecordLinkSchema, type LabelService, type LinkService, type LinkType, type ListActionsOptions, type ListAgentListenersQuery, type ListAgentsOptions, type ListConnectionsQuery, type ListConnectorConnectionsQuery, type ListConnectorsQuery, type ListContactAddressesQuery, type ListContactMergeProposalsQuery, type ListContactsQuery, type ListConversationFilterEventsQuery, type ListConversationFiltersQuery, type ListConversationTypesQuery, type ListConversationsQuery, type ListEventsOptions, type ListExecutionsOptions, type ListGlossaryTermsQuery, type ListLabelsOptions, type ListLinksOptions, type ListMcpServersOptions, type ListMessagesQuery, type ListMistranscribedTermsQuery, type ListNodesOptions, ListOptions, type ListOrganizationsOptions, type ListPromptsOptions, type ListRecordLinksOptions, type ListRecordsOptions, type ListResponse, ListResult, type ListRolePermissionsOptions, type ListRolesOptions, type ListRoomsQuery, type ListSessionsOptions, type ListSkillsOptions, type ListToolsOptions, type ListToolsetsOptions, type ListUserRoleAssignmentsOptions, type ListUsersOptions, type ListWorkflowsOptions, type ManualTriggerParams, type MatchMode, type McpBinding, type McpConnectionState, type McpConnectionStatus, type McpServer, type McpServerAuth, type McpServerOAuth, type McpServerService, type McpToolSummary, type MeService, type MeetingService, type MergeContactsRequest, type MergeProposalStatus, type Message, type ContentBlock as MessageContentBlock, type MessageDirection, type MessagePreview, type MessageRecipient, type MessageService, type MessageStatus, type MessageTriggerParams, type MistranscribedTerm, type MistranscribedTermService, type MistranscribedTermStatus, type MistranscriptionSuggestionSource, type ModelCallParams, type ModelConfig, type ModelRequestEndPayload, type ModelRequestStartPayload, type ModelUsage, type NeighborDirection, type NeighborEdge, type NeighborNode, type NeighborsOptions, type NodeContentMatches, type NodeDescriptor, type NodeExecution, type NodeGroup, type NodeMethodOption, type NodeNeighborhood, NodeNeighborhoodSchema, type NodeOutline, type NodePosition, type NodeProperty, type NodeRetryPolicy, type NodeRuntime, type NodeService, type NodeStatus, type NodeType, type NodeTypeKey, type NodeTypeService, type NodeTypeStatus, type OnErrorPolicy, type Organization, OrganizationSchema, type OrganizationService, type OutlineHeading, type OutlineRequest, type OutlineResponse, PLATFORM_ENTITIES, PLATFORM_ENTITY_SLUGS, PageIterator, type PairedItem, type ParseStatus, type Permission, type PermissionEventSource, type PermissionEventType, type PlatformBinding, type PlatformEntity, type PlatformEvent, type PortSpec, type Prompt, type PromptService, type PromptVersion, type PropertyOption, type PropertyType, ProteosClient, ProteosError, PublicAccessOperation, type PublishEventRequest, 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 RecordLinkService, type RecordPermissionEventRequest, type RecordService, type RedriveResult, type ResultBlock, type Role, type RoleBasedFilterConfig, type RoleEntityPermission, RoleEntityPermissionSchema, RoleSchema, type RoleService, type Room, type RunWorkflowRequest, type SearchContentRequest, type SearchContentResponse, type SearchNodesRequest, type SendMessageRequest, type SendRecipient, type Session, type SessionEvent, type SessionEventEnvelope, type SessionEventsOptions, type SessionIdlePayload, type SessionService, type SessionStatus, type SessionStreamOptions, type SessionUpdatedPayload, type Skill, type SkillBundle, type SkillService, type SkillVersion, type StartMcpOAuthResponse, type StopReason, StorageClient, type StorageFile, type StorageFileVersion, type SyncConnectionRequest, type SystemSource, type TailOptions, type TestNodeCandidate, type TestNodeInputSource, type TestNodeRequest, type TestNodeResponse, type TextBlock, type Tool, type ToolBinding, type ToolConfirmationPayload, type ToolKind, type ToolResultPayload, type ToolService, type ToolUsePayload, type 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, type UnreadCounts, type UpdateAgentListenerRequest, type UpdateAgentRequest, type UpdateConnectionRequest, type UpdateConnectorConnectionRequest, type UpdateContactRequest, type UpdateConversationFilterRequest, type UpdateConversationTypeRequest, type UpdateDraftRequest, type UpdateFileMetadata, type UpdateGlossaryTermRequest, type UpdateLabelRequest, type UpdateLinkRequest, type UpdateMcpServerRequest, type UpdateNodeRequest, type UpdateOrganizationRequest, type UpdatePromptRequest, type UpdateRoleRequest, type UpdateToolRequest, type UpdateToolsetRequest, type UpdateUserRequest, type UpdateWorkflowRequest, type User, type UserMessagePayload, UserRef$2 as UserRef, type UserRoleAssignment, UserRoleAssignmentSchema, UserSchema, type UserService, type VoiceService, type VoiceTranscriptionStream, type WebhookTriggerParams, type Workflow, WorkflowClient, type WorkflowConnection, type WorkflowExecution, type WorkflowGraph, type WorkflowNode, type WorkflowNodeType, type WorkflowStatus, type WorkflowVersion, type WorkflowVersionAuthor, type WorkflowVersionSummary, type WriteContentResponse, type WriteCredentialsRequest, buildUrl, getDefaultErrorCode, isBadRequest, isConflict, isForbidden, isNotFound, isPlatformEntity, isProteosError, isUnauthorized, parseErrorResponse, toQueryParams, toQueryString };
|
package/dist/index.js
CHANGED
|
@@ -1381,10 +1381,11 @@ var ConnectionServiceImpl = class {
|
|
|
1381
1381
|
request
|
|
1382
1382
|
);
|
|
1383
1383
|
}
|
|
1384
|
-
async delete(id) {
|
|
1385
|
-
await this.client.
|
|
1384
|
+
async delete(id, query = {}) {
|
|
1385
|
+
await this.client.requestWithQuery(
|
|
1386
1386
|
"DELETE",
|
|
1387
|
-
`${CONVERSATION_BASE_PATH}/connections/${encodeURIComponent(id)}
|
|
1387
|
+
`${CONVERSATION_BASE_PATH}/connections/${encodeURIComponent(id)}`,
|
|
1388
|
+
query
|
|
1388
1389
|
);
|
|
1389
1390
|
}
|
|
1390
1391
|
install(id) {
|
|
@@ -1536,6 +1537,12 @@ var ConversationServiceImpl = class {
|
|
|
1536
1537
|
`${CONVERSATION_BASE_PATH}/conversations/${encodeURIComponent(id)}/end`
|
|
1537
1538
|
);
|
|
1538
1539
|
}
|
|
1540
|
+
delete(id) {
|
|
1541
|
+
return this.client.request(
|
|
1542
|
+
"DELETE",
|
|
1543
|
+
`${CONVERSATION_BASE_PATH}/conversations/${encodeURIComponent(id)}`
|
|
1544
|
+
);
|
|
1545
|
+
}
|
|
1539
1546
|
markRead(id) {
|
|
1540
1547
|
return this.client.request(
|
|
1541
1548
|
"POST",
|