@proteos/sdk 0.33.0 → 0.34.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.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { A as AuditFields, L as ListOptions, a as Attribute, U as UserRef$2, P as PageIterator, b as ListResult, c as ProteosClient, F as FileRef, d as PublicAccessOperation } from './types-v9RkMuKf.cjs';
2
- export { e as App, f as AppSchema, g as AppService, h as AttributeSchema, i as AttributeType, j as AuditFieldsSchema, C as ClientOptions, k as Column, l as ColumnSchema, m as ComparisonOperator, n as Component, o as ComponentSchema, p as ComponentService, q as CreateAppRequest, r as CreateComponentRequest, s as CreateDesignReferenceRequest, t as CreateEntityRequest, u as CreateListRequest, v as CreateListViewRequest, w as CreateMenuConfigurationRequest, x as CreatePageRequest, y as CreateVariableRequest, z as CurrencyAttributeMeta, B as CurrencyAttributeMetaSchema, D as CurrencySymbolSide, E as CurrencyValue, G as DEFAULT_OPTIONS, H as DEFAULT_PAGE_SIZE, I as DONE, J as DeployModuleRequest, K as DesignReference, M as DesignReferenceContent, N as DesignReferenceSchema, O as DesignReferenceService, Q as Done, R as Entity, S as EntitySchema, T as EntityService, V as EntityWithSchema, W as EntityWithSchemaSchema, X as FileAttributeMeta, Y as FileRefSchema, Z as FilterElement, _ as FilterElementSchema, $ as FilterGroup, a0 as FilterGroupSchema, a1 as List, a2 as ListAppsOptions, a3 as ListComponentsOptions, a4 as ListDesignReferencesOptions, a5 as ListEntitiesOptions, a6 as ListFn, a7 as ListListViewsOptions, a8 as ListListsOptions, a9 as ListMenuConfigurationsOptions, aa as ListModulesOptions, ab as ListPagesOptions, ac as ListSchema, ad as ListService, ae as ListVariablesOptions, af as ListView, ag as ListViewSchema, ah as ListViewService, ai as LogicalOperator, aj as MenuConfiguration, ak as MenuConfigurationSchema, al as MenuConfigurationService, am as MenuItem, an as MenuItemSchema, ao as MenuItemType, ap as MetaClient, aq as MetaListOptions, ar as Module, as as ModuleSchema, at as ModuleService, au as ModuleStatus, av as OnDeleteAction, aw as OnDeleteActionSchema, ax as PLATFORM_ATTRIBUTE_NAMES, ay as PLATFORM_USER_ID, az as Page, aA as PageAction, aB as PageActionSchema, aC as PageLayout, aD as PageLayoutSchema, aE as PageSchema, aF as PageService, aG as PageType, aH as PublicPageComponent, aI as PublicPageResponse, aJ as RelationAttributeMeta, aK as RelationAttributeMetaSchema, aL as RequestOptions, aM as ResolvedClientOptions, aN as ResponseMeta, aO as ResponseMetaSchema, aP as SortConfig, aQ as SortConfigSchema, aR as SortDirection, aS as Timestamps, aT as TokenProvider, aU as UpdateAppRequest, aV as UpdateComponentRequest, aW as UpdateDesignReferenceRequest, aX as UpdateEntityRequest, aY as UpdateListRequest, aZ as UpdateListViewRequest, a_ as UpdateMenuConfigurationRequest, a$ as UpdatePageRequest, b0 as UpdateVariableRequest, b1 as UserRefSchema, b2 as UserType, b3 as Variable, b4 as VariableSchema, b5 as VariableService, b6 as allCurrencyCodes, b7 as createIterator, b8 as createListResultSchema, b9 as currencyLabel, ba as currencySymbol, bb as currencySymbolSide, bc as formatAmount, bd as formatMoney, be as isPlatformAttributeName, bf as localeNumberSeparators, bg as parseAmount, bh as parseCurrencyMeta, bi as parseFileMeta, bj as parseRelationMeta, bk as platformAttributes, bl as resolveOptions } from './types-v9RkMuKf.cjs';
1
+ import { A as AuditFields, L as ListOptions, a as Attribute, U as UserRef$2, P as PageIterator, b as ListResult, c as ProteosClient, F as FileRef, d as PublicAccessOperation } from './types-CiCNPrXT.cjs';
2
+ export { e as App, f as AppSchema, g as AppService, h as ArrayAttributeMeta, i as AttributeSchema, j as AttributeType, k as AuditFieldsSchema, C as ClientOptions, l as Column, m as ColumnSchema, n as ComparisonOperator, o as Component, p as ComponentSchema, q as ComponentService, r as CreateAppRequest, s as CreateComponentRequest, t as CreateDesignReferenceRequest, u as CreateEntityRequest, v as CreateListRequest, w as CreateListViewRequest, x as CreateMenuConfigurationRequest, y as CreatePageRequest, z as CreateVariableRequest, B as CurrencyAttributeMeta, D as CurrencyAttributeMetaSchema, E as CurrencySymbolSide, G as CurrencyValue, H as DEFAULT_OPTIONS, I as DEFAULT_PAGE_SIZE, J as DONE, K as DeployModuleRequest, M as DesignReference, N as DesignReferenceContent, O as DesignReferenceSchema, Q as DesignReferenceService, R as Done, S as Entity, T as EntitySchema, V as EntityService, W as EntityWithSchema, X as EntityWithSchemaSchema, Y as EnumAttributeMeta, Z as EnumValue, _ as FileAttributeMeta, $ as FileRefSchema, a0 as FilterElement, a1 as FilterElementSchema, a2 as FilterGroup, a3 as FilterGroupSchema, a4 as List, a5 as ListAppsOptions, a6 as ListComponentsOptions, a7 as ListDesignReferencesOptions, a8 as ListEntitiesOptions, a9 as ListFn, aa as ListListViewsOptions, ab as ListListsOptions, ac as ListMenuConfigurationsOptions, ad as ListModulesOptions, ae as ListPagesOptions, af as ListSchema, ag as ListService, ah as ListVariablesOptions, ai as ListView, aj as ListViewSchema, ak as ListViewService, al as LogicalOperator, am as MenuConfiguration, an as MenuConfigurationSchema, ao as MenuConfigurationService, ap as MenuItem, aq as MenuItemSchema, ar as MenuItemType, as as MetaClient, at as MetaListOptions, au as Module, av as ModuleSchema, aw as ModuleService, ax as ModuleStatus, ay as OnDeleteAction, az as OnDeleteActionSchema, aA as PLATFORM_ATTRIBUTE_NAMES, aB as PLATFORM_USER_ID, aC as Page, aD as PageAction, aE as PageActionSchema, aF as PageLayout, aG as PageLayoutSchema, aH as PageSchema, aI as PageService, aJ as PageType, aK as PublicPageComponent, aL as PublicPageResponse, aM as RelationAttributeMeta, aN as RelationAttributeMetaSchema, aO as RequestOptions, aP as ResolvedClientOptions, aQ as ResponseMeta, aR as ResponseMetaSchema, aS as SortConfig, aT as SortConfigSchema, aU as SortDirection, aV as Timestamps, aW as TokenProvider, aX as UpdateAppRequest, aY as UpdateComponentRequest, aZ as UpdateDesignReferenceRequest, a_ as UpdateEntityRequest, a$ as UpdateListRequest, b0 as UpdateListViewRequest, b1 as UpdateMenuConfigurationRequest, b2 as UpdatePageRequest, b3 as UpdateVariableRequest, b4 as UserRefSchema, b5 as UserType, b6 as Variable, b7 as VariableSchema, b8 as VariableService, b9 as allCurrencyCodes, ba as createIterator, bb as createListResultSchema, bc as currencyLabel, bd as currencySymbol, be as currencySymbolSide, bf as formatAmount, bg as formatMoney, bh as isPlatformAttributeName, bi as localeNumberSeparators, bj as parseAmount, bk as parseCurrencyMeta, bl as parseFileMeta, bm as parseRelationMeta, bn as platformAttributes, bo as resolveOptions } from './types-CiCNPrXT.cjs';
3
3
  import { z } from 'zod';
4
4
 
5
5
  /**
@@ -2149,6 +2149,17 @@ interface ReactionCapability {
2149
2149
  /** 0 = unbounded (Slack); 1 = single-slot (a new reaction replaces the old). */
2150
2150
  max_per_actor: number;
2151
2151
  }
2152
+ /** How far back a historical backfill ("sync all") reaches. */
2153
+ type ConnectionSyncRange = '30d' | '90d' | '365d' | 'all';
2154
+ /**
2155
+ * Lifecycle of a historical backfill, carried as settings.sync_status.
2156
+ * Absent key = 'none' (never synced). 'in_progress' is claimed before the
2157
+ * trigger request returns — poll get(id) until it flips to done/failed.
2158
+ */
2159
+ type ConnectionSyncStatus = 'none' | 'in_progress' | 'done' | 'failed';
2160
+ interface SyncConnectionRequest {
2161
+ range: ConnectionSyncRange;
2162
+ }
2152
2163
  interface Connection {
2153
2164
  id: string;
2154
2165
  org_id: string;
@@ -2160,6 +2171,11 @@ interface Connection {
2160
2171
  owner?: UserRef;
2161
2172
  external_account_id: string;
2162
2173
  credentials: ConnectionCredentials;
2174
+ /**
2175
+ * Connector-shaped configuration + state. A historical backfill writes the
2176
+ * sync_* keys here: sync_status (ConnectionSyncStatus), sync_range,
2177
+ * sync_started_at, sync_completed_at, sync_synced_count, sync_error.
2178
+ */
2163
2179
  settings: Record<string, unknown>;
2164
2180
  status: ConnectionStatus;
2165
2181
  /** Computed on read: the connector implements the reaction capability. */
@@ -3044,6 +3060,15 @@ interface ConnectionService {
3044
3060
  delete(id: string): Promise<void>;
3045
3061
  /** Begin the connector's install flow; open the returned URL in a popup. */
3046
3062
  install(id: string): Promise<InstallConnectionResponse>;
3063
+ /**
3064
+ * Trigger a historical backfill ("sync all") on an email connection: the
3065
+ * server fetches provider mail in the chosen range and ingests it through
3066
+ * the normal pipeline (conversation filters, dedupe, agent listeners).
3067
+ * Returns 202 with the connection already showing
3068
+ * settings.sync_status='in_progress' — poll get(id) until it flips to
3069
+ * done/failed. A running sync answers 409 (sync_already_running).
3070
+ */
3071
+ sync(id: string, request: SyncConnectionRequest): Promise<Connection>;
3047
3072
  /** Search the contact addresses this connection can reach (org-deduped) for the compose picker. */
3048
3073
  listContactAddresses(connectionId: string, query?: ListContactAddressesQuery): Promise<ListResponse<ContactAddress>>;
3049
3074
  /** Search a connection's addressable VENUES (Slack channels) for the compose picker. */
@@ -5524,6 +5549,35 @@ interface AgentActionParams {
5524
5549
  output_schema?: Attribute[];
5525
5550
  is_output_required?: boolean;
5526
5551
  }
5552
+ /**
5553
+ * Where a model call's optional system instruction comes from. Empty/absent
5554
+ * defaults to `none`.
5555
+ */
5556
+ type SystemSource = 'none' | 'manual' | 'prompt';
5557
+ /**
5558
+ * Flat, descriptor-driven parameters of the `proteos-nodes-core.model-call`
5559
+ * node: one stateless LLM call per input item. The prompt and the optional
5560
+ * system instruction are independently sourced — typed inline (`manual`,
5561
+ * Liquid-resolved per item) or resolved verbatim from a reusable Prompt by key
5562
+ * (`prompt`). With `has_structured_output`, `output_schema` declares the
5563
+ * reply's shape as platform attributes: generation is schema-constrained
5564
+ * (forced tool) AND the node validates the returned JSON, failing the item
5565
+ * after one automatic repair attempt.
5566
+ */
5567
+ interface ModelCallParams {
5568
+ /** Empty resolves to the platform default model. */
5569
+ model_id?: string;
5570
+ temperature?: number;
5571
+ max_tokens?: number;
5572
+ prompt_source?: KickoffSource;
5573
+ prompt_text?: string;
5574
+ prompt_key?: string;
5575
+ system_source?: SystemSource;
5576
+ system_text?: string;
5577
+ system_prompt_key?: string;
5578
+ has_structured_output?: boolean;
5579
+ output_schema?: Attribute[];
5580
+ }
5527
5581
  interface Workflow extends AuditFields {
5528
5582
  org_id: string;
5529
5583
  key: string;
@@ -5632,7 +5686,7 @@ interface WorkflowVersion {
5632
5686
  * node-execution-only: the node never ran because no items reached it).
5633
5687
  */
5634
5688
  type ExecutionStatus = 'pending' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'skipped';
5635
- type TriggerKind = 'schedule' | 'manual' | 'webhook' | 'event' | 'message' | 'workflow';
5689
+ type TriggerKind = 'schedule' | 'manual' | 'webhook' | 'event' | 'message' | 'connector' | 'platform_event' | 'workflow';
5636
5690
  /**
5637
5691
  * Why and how an execution fired. Flat, kind-discriminated: `kind` selects
5638
5692
  * which optional fields are meaningful. `payload` carries the trigger's data
@@ -5847,4 +5901,4 @@ declare class WorkflowClient {
5847
5901
  constructor(client: ProteosClient);
5848
5902
  }
5849
5903
 
5850
- export { AccountClient, type Action, type ActionBinding, ActionSchema, type ActionScope, ActionScopeSchema, type ActionService, type AddressFilterConfig, type Agent, type AgentActionParams, type AgentArtifactsPayload, AgentClient, type AgentListener, type AgentListenerService, type AgentListenerTriggerType, type AgentMessagePayload, type AgentResourceListOptions, type AgentService, type AllFilterConfig, type ApiErrorResponse, type AppendEventRequest, type AssignPermissionRequest, type AssignRoleRequest, type AttachContactAddressRequest, type Attachment, Attribute, AuditFields, type AuthListOptions, type AutomatedFilterConfig, type AutomatedSignal, type BatchTransactionError, BatchTransactionErrorSchema, type BatchTransactionStatus, type BatchUpsertRecordsResponse, BatchUpsertRecordsResponseSchema, type BatchUpsertTransaction, type BatchUpsertTransactionResult, BatchUpsertTransactionResultSchema, BatchUpsertTransactionSchema, type BinaryRef, type BlockContactRequest, type Channel, type ClientEventType, type ClientToolSchema, type Connection, type ConnectionCredentials, type ConnectionEndpoint, type ConnectionScope, type ConnectionService, type ConnectionStatus, type Connector, ConnectorClient, type ConnectorConnection, type ConnectionScope$1 as ConnectorConnectionScope, type ConnectionStatus$1 as ConnectorConnectionStatus, type ConnectionTokenResponse as ConnectorConnectionTokenResponse, type CredentialKind as ConnectorCredentialKind, type ConnectorKey, type ConnectorMethod, type ConnectorProvider, type ConsentStatus, type ConsumerGroup, type Contact, type ContactAddress, type ContactAddressKind, type ContactAddressSource, type ContactErasureRequest, type ContactMergeProposal, type ContactRef, type ContactService, type ContactSource, type ContactStatus, type ContentBlock$1 as ContentBlock, type ContentMatch, type ContentResponse, type ContextCompactedPayload, type Conversation, ConversationClient, type ConversationFilter, type ConversationFilterAction, type ConversationFilterConfig, type ConversationFilterEvent, type ConversationFilterService, type ConversationFilterType, type ConversationParticipant, type ConversationService, type ConversationStatus, type ConversationSummaryStatus, type CreateAgentListenerRequest, type CreateAgentRequest, type CreateConnectionRequest, type CreateConnectorConnectionRequest, type CreateConversationFilterRequest, type CreateFileMetadata, type CreateGlossaryTermRequest, type CreateLabelRequest, type CreateLinkRequest, type CreateMcpServerRequest, type CreateNodeRequest, type CreateOrganizationRequest, type CreatePromptRequest, type CreateRecordLinkRequest, type CreateRoleRequest, type CreateSessionRequest, type CreateToolRequest, type CreateUserRequest, type CreateWorkflowRequest, type CredentialSpec, type CronTriggerParams, DEFAULT_PORT, DataClient, type DependentAgent, type DependentSyncResult, type DispatchMeetingBotRequest, type DisplayOptions, type DomainFilterConfig, ERROR_PORT, type EditContentRequest, type EditContentResponse, type EmptyPayload, type ErasureRequestStatus, ErrorCode, type ErrorCodeType, type ErrorPayload, type EventTriggerParams, type EventType, type EventVerb, EventsClient, type ExecutionError, type ExecutionStatus, type ExecutionTriggerContext, type FileBlock, FileRef, type FileService, type FileVersionContent, type FilterMatchOn, FunctionsClient, type GetExecutionDetailResponse, type GetGraphOptions, type GetNodeExecutionItemsOptions, type GetNodeExecutionItemsResponse, type GetNodeTypesResponse, type GlossaryTerm, type GlossaryTermService, type GraphService, type InlineLinkRequest, type InstallConnectionResponse, type InstallConnectorConnectionResponse, type InternalConversationsFilterConfig, type InvokeActionResponse, type InvokeNodeMethodRequest, type InvokeNodeMethodResponse, type Item, type KickoffSource, type KickoffType, KnowledgeClient, type KnowledgeGraph, type KnowledgeGraphLink, type KnowledgeGraphNode, type KnowledgeLabel, KnowledgeLabelSchema, type KnowledgeLink, KnowledgeLinkSchema, type KnowledgeNode, type KnowledgeNodeLabel, KnowledgeNodeLabelSchema, type KnowledgeNodeMetadata, KnowledgeNodeMetadataSchema, KnowledgeNodeSchema, type KnowledgeNodeSearchResult, KnowledgeNodeSearchResultSchema, type KnowledgeRecordLink, KnowledgeRecordLinkSchema, type LabelService, type LinkService, type LinkType, type ListActionsOptions, type ListAgentListenersQuery, type ListAgentsOptions, type ListConnectionsQuery, type ListConnectorConnectionsQuery, type ListConnectorsQuery, type ListContactAddressesQuery, type ListContactMergeProposalsQuery, type ListContactsQuery, type ListConversationFilterEventsQuery, type ListConversationFiltersQuery, type ListConversationsQuery, type ListEventsOptions, type ListExecutionsOptions, type ListGlossaryTermsQuery, type ListLabelsOptions, type ListLinksOptions, type ListMcpServersOptions, type ListMessagesQuery, type ListNodesOptions, ListOptions, type ListOrganizationsOptions, type ListPromptsOptions, type ListRecordLinksOptions, type ListRecordsOptions, type ListResponse, ListResult, type ListRolePermissionsOptions, type ListRolesOptions, type ListRoomsQuery, type ListSessionsOptions, type ListSkillsOptions, type ListToolsOptions, type ListUserRoleAssignmentsOptions, type ListUsersOptions, type ListWorkflowsOptions, type ManualTriggerParams, type MatchMode, type McpBinding, type McpConnectionState, type McpConnectionStatus, type McpServer, type McpServerAuth, type McpServerOAuth, type McpServerService, type McpToolSummary, type MeService, type MeetingService, type MergeContactsRequest, type MergeProposalStatus, type Message, type ContentBlock as MessageContentBlock, type MessageDirection, type MessagePreview, type MessageRecipient, type MessageService, type MessageStatus, type MessageTriggerParams, type ModelConfig, type ModelRequestEndPayload, type ModelRequestStartPayload, type ModelUsage, type NeighborDirection, type NeighborEdge, type NeighborNode, type NeighborsOptions, type NodeContentMatches, type NodeDescriptor, type NodeExecution, type NodeGroup, type NodeMethodOption, type NodeNeighborhood, NodeNeighborhoodSchema, type NodeOutline, type NodePosition, type NodeProperty, type NodeRetryPolicy, type NodeRuntime, type NodeService, type NodeStatus, type NodeType, type NodeTypeKey, type NodeTypeService, type NodeTypeStatus, type OnErrorPolicy, type Organization, OrganizationSchema, type OrganizationService, type OutlineHeading, type OutlineRequest, type OutlineResponse, PLATFORM_ENTITIES, PLATFORM_ENTITY_SLUGS, PageIterator, type PairedItem, type ParseStatus, type Permission, type PermissionEventSource, type PermissionEventType, type PlatformEntity, type PlatformEvent, type PortSpec, type Prompt, type PromptService, type PromptVersion, type PropertyOption, type PropertyType, ProteosClient, ProteosError, PublicAccessOperation, type PublishEventRequest, type QueryExecuteMeta, type QueryExecuteResponse, type QueryObject, type QueryRow, type QueryService, type QueryValidateMeta, type QueryValidateResponse, type QueryValue, type Reaction, type ReactionCapability, type ReactionOption, type ReactionSetKind, type ReasoningPayload, type RecipientKind, type RecipientRole, type RecordData, type RecordLinkService, type RecordPermissionEventRequest, type RecordService, type RedriveResult, type ResultBlock, type Role, type RoleBasedFilterConfig, type RoleEntityPermission, RoleEntityPermissionSchema, RoleSchema, type RoleService, type Room, type RunWorkflowRequest, type SearchContentRequest, type SearchContentResponse, type SearchNodesRequest, type SendMessageRequest, type SendRecipient, type Session, type SessionEvent, type SessionEventEnvelope, type SessionEventsOptions, type SessionIdlePayload, type SessionService, type SessionStatus, type SessionStreamOptions, type SessionUpdatedPayload, type Skill, type SkillBundle, type SkillService, type SkillVersion, type StartMcpOAuthResponse, type StopReason, StorageClient, type StorageFile, type StorageFileVersion, type TailOptions, type TestNodeCandidate, type TestNodeInputSource, type TestNodeRequest, type TestNodeResponse, type TextBlock, type Tool, type ToolBinding, type ToolConfirmationPayload, type ToolKind, type ToolResultPayload, type ToolService, type ToolUsePayload, type Topic, type TopicKind, type TopicService, type TranscribeStreamOptions, type TranscriptResult, type TriggerKind, type Turn, type UnreadCounts, type UpdateAgentListenerRequest, type UpdateAgentRequest, type UpdateConnectionRequest, type UpdateConnectorConnectionRequest, type UpdateContactRequest, type UpdateConversationFilterRequest, type UpdateDraftRequest, type UpdateFileMetadata, type UpdateGlossaryTermRequest, type UpdateLabelRequest, type UpdateLinkRequest, type UpdateMcpServerRequest, type UpdateNodeRequest, type UpdateOrganizationRequest, type UpdatePromptRequest, type UpdateRoleRequest, type UpdateToolRequest, type UpdateUserRequest, type UpdateWorkflowRequest, type User, type UserMessagePayload, UserRef$2 as UserRef, type UserRoleAssignment, UserRoleAssignmentSchema, UserSchema, type UserService, type VoiceService, type VoiceTranscriptionStream, type WebhookTriggerParams, type Workflow, WorkflowClient, type WorkflowConnection, type WorkflowExecution, type WorkflowGraph, type WorkflowNode, type WorkflowNodeType, type WorkflowStatus, type WorkflowVersion, type WorkflowVersionAuthor, type WorkflowVersionSummary, type WriteContentResponse, type WriteCredentialsRequest, buildUrl, getDefaultErrorCode, isBadRequest, isConflict, isForbidden, isNotFound, isPlatformEntity, isProteosError, isUnauthorized, parseErrorResponse, toQueryParams, toQueryString };
5904
+ export { AccountClient, type Action, type ActionBinding, ActionSchema, type ActionScope, ActionScopeSchema, type ActionService, type AddressFilterConfig, type Agent, type AgentActionParams, type AgentArtifactsPayload, AgentClient, type AgentListener, type AgentListenerService, type AgentListenerTriggerType, type AgentMessagePayload, type AgentResourceListOptions, type AgentService, type AllFilterConfig, type ApiErrorResponse, type AppendEventRequest, type AssignPermissionRequest, type AssignRoleRequest, type AttachContactAddressRequest, type Attachment, Attribute, AuditFields, type AuthListOptions, type AutomatedFilterConfig, type AutomatedSignal, type BatchTransactionError, BatchTransactionErrorSchema, type BatchTransactionStatus, type BatchUpsertRecordsResponse, BatchUpsertRecordsResponseSchema, type BatchUpsertTransaction, type BatchUpsertTransactionResult, BatchUpsertTransactionResultSchema, BatchUpsertTransactionSchema, type BinaryRef, type BlockContactRequest, type Channel, type ClientEventType, type ClientToolSchema, type Connection, type ConnectionCredentials, type ConnectionEndpoint, type ConnectionScope, type ConnectionService, type ConnectionStatus, type 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 CreateAgentListenerRequest, type CreateAgentRequest, type CreateConnectionRequest, type CreateConnectorConnectionRequest, type CreateConversationFilterRequest, type CreateFileMetadata, type CreateGlossaryTermRequest, type CreateLabelRequest, type CreateLinkRequest, type CreateMcpServerRequest, type CreateNodeRequest, type CreateOrganizationRequest, type CreatePromptRequest, type CreateRecordLinkRequest, type CreateRoleRequest, type CreateSessionRequest, type CreateToolRequest, type CreateUserRequest, type CreateWorkflowRequest, type CredentialSpec, type CronTriggerParams, DEFAULT_PORT, DataClient, type DependentAgent, type DependentSyncResult, type DispatchMeetingBotRequest, type DisplayOptions, type DomainFilterConfig, ERROR_PORT, type EditContentRequest, type EditContentResponse, type EmptyPayload, type ErasureRequestStatus, ErrorCode, type ErrorCodeType, type ErrorPayload, type EventTriggerParams, type EventType, type EventVerb, EventsClient, type ExecutionError, type ExecutionStatus, type ExecutionTriggerContext, type FileBlock, FileRef, type FileService, type FileVersionContent, type FilterMatchOn, FunctionsClient, type GetExecutionDetailResponse, type GetGraphOptions, type GetNodeExecutionItemsOptions, type GetNodeExecutionItemsResponse, type GetNodeTypesResponse, type GlossaryTerm, type GlossaryTermService, type GraphService, type InlineLinkRequest, type InstallConnectionResponse, type InstallConnectorConnectionResponse, type InternalConversationsFilterConfig, type InvokeActionResponse, type InvokeNodeMethodRequest, type InvokeNodeMethodResponse, type Item, type KickoffSource, type KickoffType, KnowledgeClient, type KnowledgeGraph, type KnowledgeGraphLink, type KnowledgeGraphNode, type KnowledgeLabel, KnowledgeLabelSchema, type KnowledgeLink, KnowledgeLinkSchema, type KnowledgeNode, type KnowledgeNodeLabel, KnowledgeNodeLabelSchema, type KnowledgeNodeMetadata, KnowledgeNodeMetadataSchema, KnowledgeNodeSchema, type KnowledgeNodeSearchResult, KnowledgeNodeSearchResultSchema, type KnowledgeRecordLink, KnowledgeRecordLinkSchema, type LabelService, type LinkService, type LinkType, type ListActionsOptions, type ListAgentListenersQuery, type ListAgentsOptions, type ListConnectionsQuery, type ListConnectorConnectionsQuery, type ListConnectorsQuery, type ListContactAddressesQuery, type ListContactMergeProposalsQuery, type ListContactsQuery, type ListConversationFilterEventsQuery, type ListConversationFiltersQuery, type ListConversationsQuery, type ListEventsOptions, type ListExecutionsOptions, type ListGlossaryTermsQuery, type ListLabelsOptions, type ListLinksOptions, type ListMcpServersOptions, type ListMessagesQuery, type ListNodesOptions, ListOptions, type ListOrganizationsOptions, type ListPromptsOptions, type ListRecordLinksOptions, type ListRecordsOptions, type ListResponse, ListResult, type ListRolePermissionsOptions, type ListRolesOptions, type ListRoomsQuery, type ListSessionsOptions, type ListSkillsOptions, type ListToolsOptions, type ListUserRoleAssignmentsOptions, type ListUsersOptions, type ListWorkflowsOptions, type ManualTriggerParams, type MatchMode, type McpBinding, type McpConnectionState, type McpConnectionStatus, type McpServer, type McpServerAuth, type McpServerOAuth, type McpServerService, type McpToolSummary, type MeService, type MeetingService, type MergeContactsRequest, type MergeProposalStatus, type Message, type ContentBlock as MessageContentBlock, type MessageDirection, type MessagePreview, type MessageRecipient, type MessageService, type MessageStatus, type MessageTriggerParams, type ModelCallParams, type ModelConfig, type ModelRequestEndPayload, type ModelRequestStartPayload, type ModelUsage, type NeighborDirection, type NeighborEdge, type NeighborNode, type NeighborsOptions, type NodeContentMatches, type NodeDescriptor, type NodeExecution, type NodeGroup, type NodeMethodOption, type NodeNeighborhood, NodeNeighborhoodSchema, type NodeOutline, type NodePosition, type NodeProperty, type NodeRetryPolicy, type NodeRuntime, type NodeService, type NodeStatus, type NodeType, type NodeTypeKey, type NodeTypeService, type NodeTypeStatus, type OnErrorPolicy, type Organization, OrganizationSchema, type OrganizationService, type OutlineHeading, type OutlineRequest, type OutlineResponse, PLATFORM_ENTITIES, PLATFORM_ENTITY_SLUGS, PageIterator, type PairedItem, type ParseStatus, type Permission, type PermissionEventSource, type PermissionEventType, type PlatformEntity, type PlatformEvent, type PortSpec, type Prompt, type PromptService, type PromptVersion, type PropertyOption, type PropertyType, ProteosClient, ProteosError, PublicAccessOperation, type PublishEventRequest, type QueryExecuteMeta, type QueryExecuteResponse, type QueryObject, type QueryRow, type QueryService, type QueryValidateMeta, type QueryValidateResponse, type QueryValue, type Reaction, type ReactionCapability, type ReactionOption, type ReactionSetKind, type ReasoningPayload, type RecipientKind, type RecipientRole, type RecordData, type RecordLinkService, type RecordPermissionEventRequest, type RecordService, type RedriveResult, type ResultBlock, type Role, type RoleBasedFilterConfig, type RoleEntityPermission, RoleEntityPermissionSchema, RoleSchema, type RoleService, type Room, type RunWorkflowRequest, type SearchContentRequest, type SearchContentResponse, type SearchNodesRequest, type SendMessageRequest, type SendRecipient, type Session, type SessionEvent, type SessionEventEnvelope, type SessionEventsOptions, type SessionIdlePayload, type SessionService, type SessionStatus, type SessionStreamOptions, type SessionUpdatedPayload, type Skill, type SkillBundle, type SkillService, type SkillVersion, type StartMcpOAuthResponse, type StopReason, StorageClient, type StorageFile, type StorageFileVersion, type SyncConnectionRequest, type SystemSource, type TailOptions, type TestNodeCandidate, type TestNodeInputSource, type TestNodeRequest, type TestNodeResponse, type TextBlock, type Tool, type ToolBinding, type ToolConfirmationPayload, type ToolKind, type ToolResultPayload, type ToolService, type ToolUsePayload, type Topic, type TopicKind, type TopicService, type TranscribeStreamOptions, type TranscriptResult, type TriggerKind, type Turn, type UnreadCounts, type UpdateAgentListenerRequest, type UpdateAgentRequest, type UpdateConnectionRequest, type UpdateConnectorConnectionRequest, type UpdateContactRequest, type UpdateConversationFilterRequest, type UpdateDraftRequest, type UpdateFileMetadata, type UpdateGlossaryTermRequest, type UpdateLabelRequest, type UpdateLinkRequest, type UpdateMcpServerRequest, type UpdateNodeRequest, type UpdateOrganizationRequest, type UpdatePromptRequest, type UpdateRoleRequest, type UpdateToolRequest, type UpdateUserRequest, type UpdateWorkflowRequest, type User, type UserMessagePayload, UserRef$2 as UserRef, type UserRoleAssignment, UserRoleAssignmentSchema, UserSchema, type UserService, type VoiceService, type VoiceTranscriptionStream, type WebhookTriggerParams, type Workflow, WorkflowClient, type WorkflowConnection, type WorkflowExecution, type WorkflowGraph, type WorkflowNode, type WorkflowNodeType, type WorkflowStatus, type WorkflowVersion, type WorkflowVersionAuthor, type WorkflowVersionSummary, type WriteContentResponse, type WriteCredentialsRequest, buildUrl, getDefaultErrorCode, isBadRequest, isConflict, isForbidden, isNotFound, isPlatformEntity, isProteosError, isUnauthorized, parseErrorResponse, toQueryParams, toQueryString };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { A as AuditFields, L as ListOptions, a as Attribute, U as UserRef$2, P as PageIterator, b as ListResult, c as ProteosClient, F as FileRef, d as PublicAccessOperation } from './types-v9RkMuKf.js';
2
- export { e as App, f as AppSchema, g as AppService, h as AttributeSchema, i as AttributeType, j as AuditFieldsSchema, C as ClientOptions, k as Column, l as ColumnSchema, m as ComparisonOperator, n as Component, o as ComponentSchema, p as ComponentService, q as CreateAppRequest, r as CreateComponentRequest, s as CreateDesignReferenceRequest, t as CreateEntityRequest, u as CreateListRequest, v as CreateListViewRequest, w as CreateMenuConfigurationRequest, x as CreatePageRequest, y as CreateVariableRequest, z as CurrencyAttributeMeta, B as CurrencyAttributeMetaSchema, D as CurrencySymbolSide, E as CurrencyValue, G as DEFAULT_OPTIONS, H as DEFAULT_PAGE_SIZE, I as DONE, J as DeployModuleRequest, K as DesignReference, M as DesignReferenceContent, N as DesignReferenceSchema, O as DesignReferenceService, Q as Done, R as Entity, S as EntitySchema, T as EntityService, V as EntityWithSchema, W as EntityWithSchemaSchema, X as FileAttributeMeta, Y as FileRefSchema, Z as FilterElement, _ as FilterElementSchema, $ as FilterGroup, a0 as FilterGroupSchema, a1 as List, a2 as ListAppsOptions, a3 as ListComponentsOptions, a4 as ListDesignReferencesOptions, a5 as ListEntitiesOptions, a6 as ListFn, a7 as ListListViewsOptions, a8 as ListListsOptions, a9 as ListMenuConfigurationsOptions, aa as ListModulesOptions, ab as ListPagesOptions, ac as ListSchema, ad as ListService, ae as ListVariablesOptions, af as ListView, ag as ListViewSchema, ah as ListViewService, ai as LogicalOperator, aj as MenuConfiguration, ak as MenuConfigurationSchema, al as MenuConfigurationService, am as MenuItem, an as MenuItemSchema, ao as MenuItemType, ap as MetaClient, aq as MetaListOptions, ar as Module, as as ModuleSchema, at as ModuleService, au as ModuleStatus, av as OnDeleteAction, aw as OnDeleteActionSchema, ax as PLATFORM_ATTRIBUTE_NAMES, ay as PLATFORM_USER_ID, az as Page, aA as PageAction, aB as PageActionSchema, aC as PageLayout, aD as PageLayoutSchema, aE as PageSchema, aF as PageService, aG as PageType, aH as PublicPageComponent, aI as PublicPageResponse, aJ as RelationAttributeMeta, aK as RelationAttributeMetaSchema, aL as RequestOptions, aM as ResolvedClientOptions, aN as ResponseMeta, aO as ResponseMetaSchema, aP as SortConfig, aQ as SortConfigSchema, aR as SortDirection, aS as Timestamps, aT as TokenProvider, aU as UpdateAppRequest, aV as UpdateComponentRequest, aW as UpdateDesignReferenceRequest, aX as UpdateEntityRequest, aY as UpdateListRequest, aZ as UpdateListViewRequest, a_ as UpdateMenuConfigurationRequest, a$ as UpdatePageRequest, b0 as UpdateVariableRequest, b1 as UserRefSchema, b2 as UserType, b3 as Variable, b4 as VariableSchema, b5 as VariableService, b6 as allCurrencyCodes, b7 as createIterator, b8 as createListResultSchema, b9 as currencyLabel, ba as currencySymbol, bb as currencySymbolSide, bc as formatAmount, bd as formatMoney, be as isPlatformAttributeName, bf as localeNumberSeparators, bg as parseAmount, bh as parseCurrencyMeta, bi as parseFileMeta, bj as parseRelationMeta, bk as platformAttributes, bl as resolveOptions } from './types-v9RkMuKf.js';
1
+ import { A as AuditFields, L as ListOptions, a as Attribute, U as UserRef$2, P as PageIterator, b as ListResult, c as ProteosClient, F as FileRef, d as PublicAccessOperation } from './types-CiCNPrXT.js';
2
+ export { e as App, f as AppSchema, g as AppService, h as ArrayAttributeMeta, i as AttributeSchema, j as AttributeType, k as AuditFieldsSchema, C as ClientOptions, l as Column, m as ColumnSchema, n as ComparisonOperator, o as Component, p as ComponentSchema, q as ComponentService, r as CreateAppRequest, s as CreateComponentRequest, t as CreateDesignReferenceRequest, u as CreateEntityRequest, v as CreateListRequest, w as CreateListViewRequest, x as CreateMenuConfigurationRequest, y as CreatePageRequest, z as CreateVariableRequest, B as CurrencyAttributeMeta, D as CurrencyAttributeMetaSchema, E as CurrencySymbolSide, G as CurrencyValue, H as DEFAULT_OPTIONS, I as DEFAULT_PAGE_SIZE, J as DONE, K as DeployModuleRequest, M as DesignReference, N as DesignReferenceContent, O as DesignReferenceSchema, Q as DesignReferenceService, R as Done, S as Entity, T as EntitySchema, V as EntityService, W as EntityWithSchema, X as EntityWithSchemaSchema, Y as EnumAttributeMeta, Z as EnumValue, _ as FileAttributeMeta, $ as FileRefSchema, a0 as FilterElement, a1 as FilterElementSchema, a2 as FilterGroup, a3 as FilterGroupSchema, a4 as List, a5 as ListAppsOptions, a6 as ListComponentsOptions, a7 as ListDesignReferencesOptions, a8 as ListEntitiesOptions, a9 as ListFn, aa as ListListViewsOptions, ab as ListListsOptions, ac as ListMenuConfigurationsOptions, ad as ListModulesOptions, ae as ListPagesOptions, af as ListSchema, ag as ListService, ah as ListVariablesOptions, ai as ListView, aj as ListViewSchema, ak as ListViewService, al as LogicalOperator, am as MenuConfiguration, an as MenuConfigurationSchema, ao as MenuConfigurationService, ap as MenuItem, aq as MenuItemSchema, ar as MenuItemType, as as MetaClient, at as MetaListOptions, au as Module, av as ModuleSchema, aw as ModuleService, ax as ModuleStatus, ay as OnDeleteAction, az as OnDeleteActionSchema, aA as PLATFORM_ATTRIBUTE_NAMES, aB as PLATFORM_USER_ID, aC as Page, aD as PageAction, aE as PageActionSchema, aF as PageLayout, aG as PageLayoutSchema, aH as PageSchema, aI as PageService, aJ as PageType, aK as PublicPageComponent, aL as PublicPageResponse, aM as RelationAttributeMeta, aN as RelationAttributeMetaSchema, aO as RequestOptions, aP as ResolvedClientOptions, aQ as ResponseMeta, aR as ResponseMetaSchema, aS as SortConfig, aT as SortConfigSchema, aU as SortDirection, aV as Timestamps, aW as TokenProvider, aX as UpdateAppRequest, aY as UpdateComponentRequest, aZ as UpdateDesignReferenceRequest, a_ as UpdateEntityRequest, a$ as UpdateListRequest, b0 as UpdateListViewRequest, b1 as UpdateMenuConfigurationRequest, b2 as UpdatePageRequest, b3 as UpdateVariableRequest, b4 as UserRefSchema, b5 as UserType, b6 as Variable, b7 as VariableSchema, b8 as VariableService, b9 as allCurrencyCodes, ba as createIterator, bb as createListResultSchema, bc as currencyLabel, bd as currencySymbol, be as currencySymbolSide, bf as formatAmount, bg as formatMoney, bh as isPlatformAttributeName, bi as localeNumberSeparators, bj as parseAmount, bk as parseCurrencyMeta, bl as parseFileMeta, bm as parseRelationMeta, bn as platformAttributes, bo as resolveOptions } from './types-CiCNPrXT.js';
3
3
  import { z } from 'zod';
4
4
 
5
5
  /**
@@ -2149,6 +2149,17 @@ interface ReactionCapability {
2149
2149
  /** 0 = unbounded (Slack); 1 = single-slot (a new reaction replaces the old). */
2150
2150
  max_per_actor: number;
2151
2151
  }
2152
+ /** How far back a historical backfill ("sync all") reaches. */
2153
+ type ConnectionSyncRange = '30d' | '90d' | '365d' | 'all';
2154
+ /**
2155
+ * Lifecycle of a historical backfill, carried as settings.sync_status.
2156
+ * Absent key = 'none' (never synced). 'in_progress' is claimed before the
2157
+ * trigger request returns — poll get(id) until it flips to done/failed.
2158
+ */
2159
+ type ConnectionSyncStatus = 'none' | 'in_progress' | 'done' | 'failed';
2160
+ interface SyncConnectionRequest {
2161
+ range: ConnectionSyncRange;
2162
+ }
2152
2163
  interface Connection {
2153
2164
  id: string;
2154
2165
  org_id: string;
@@ -2160,6 +2171,11 @@ interface Connection {
2160
2171
  owner?: UserRef;
2161
2172
  external_account_id: string;
2162
2173
  credentials: ConnectionCredentials;
2174
+ /**
2175
+ * Connector-shaped configuration + state. A historical backfill writes the
2176
+ * sync_* keys here: sync_status (ConnectionSyncStatus), sync_range,
2177
+ * sync_started_at, sync_completed_at, sync_synced_count, sync_error.
2178
+ */
2163
2179
  settings: Record<string, unknown>;
2164
2180
  status: ConnectionStatus;
2165
2181
  /** Computed on read: the connector implements the reaction capability. */
@@ -3044,6 +3060,15 @@ interface ConnectionService {
3044
3060
  delete(id: string): Promise<void>;
3045
3061
  /** Begin the connector's install flow; open the returned URL in a popup. */
3046
3062
  install(id: string): Promise<InstallConnectionResponse>;
3063
+ /**
3064
+ * Trigger a historical backfill ("sync all") on an email connection: the
3065
+ * server fetches provider mail in the chosen range and ingests it through
3066
+ * the normal pipeline (conversation filters, dedupe, agent listeners).
3067
+ * Returns 202 with the connection already showing
3068
+ * settings.sync_status='in_progress' — poll get(id) until it flips to
3069
+ * done/failed. A running sync answers 409 (sync_already_running).
3070
+ */
3071
+ sync(id: string, request: SyncConnectionRequest): Promise<Connection>;
3047
3072
  /** Search the contact addresses this connection can reach (org-deduped) for the compose picker. */
3048
3073
  listContactAddresses(connectionId: string, query?: ListContactAddressesQuery): Promise<ListResponse<ContactAddress>>;
3049
3074
  /** Search a connection's addressable VENUES (Slack channels) for the compose picker. */
@@ -5524,6 +5549,35 @@ interface AgentActionParams {
5524
5549
  output_schema?: Attribute[];
5525
5550
  is_output_required?: boolean;
5526
5551
  }
5552
+ /**
5553
+ * Where a model call's optional system instruction comes from. Empty/absent
5554
+ * defaults to `none`.
5555
+ */
5556
+ type SystemSource = 'none' | 'manual' | 'prompt';
5557
+ /**
5558
+ * Flat, descriptor-driven parameters of the `proteos-nodes-core.model-call`
5559
+ * node: one stateless LLM call per input item. The prompt and the optional
5560
+ * system instruction are independently sourced — typed inline (`manual`,
5561
+ * Liquid-resolved per item) or resolved verbatim from a reusable Prompt by key
5562
+ * (`prompt`). With `has_structured_output`, `output_schema` declares the
5563
+ * reply's shape as platform attributes: generation is schema-constrained
5564
+ * (forced tool) AND the node validates the returned JSON, failing the item
5565
+ * after one automatic repair attempt.
5566
+ */
5567
+ interface ModelCallParams {
5568
+ /** Empty resolves to the platform default model. */
5569
+ model_id?: string;
5570
+ temperature?: number;
5571
+ max_tokens?: number;
5572
+ prompt_source?: KickoffSource;
5573
+ prompt_text?: string;
5574
+ prompt_key?: string;
5575
+ system_source?: SystemSource;
5576
+ system_text?: string;
5577
+ system_prompt_key?: string;
5578
+ has_structured_output?: boolean;
5579
+ output_schema?: Attribute[];
5580
+ }
5527
5581
  interface Workflow extends AuditFields {
5528
5582
  org_id: string;
5529
5583
  key: string;
@@ -5632,7 +5686,7 @@ interface WorkflowVersion {
5632
5686
  * node-execution-only: the node never ran because no items reached it).
5633
5687
  */
5634
5688
  type ExecutionStatus = 'pending' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'skipped';
5635
- type TriggerKind = 'schedule' | 'manual' | 'webhook' | 'event' | 'message' | 'workflow';
5689
+ type TriggerKind = 'schedule' | 'manual' | 'webhook' | 'event' | 'message' | 'connector' | 'platform_event' | 'workflow';
5636
5690
  /**
5637
5691
  * Why and how an execution fired. Flat, kind-discriminated: `kind` selects
5638
5692
  * which optional fields are meaningful. `payload` carries the trigger's data
@@ -5847,4 +5901,4 @@ declare class WorkflowClient {
5847
5901
  constructor(client: ProteosClient);
5848
5902
  }
5849
5903
 
5850
- export { AccountClient, type Action, type ActionBinding, ActionSchema, type ActionScope, ActionScopeSchema, type ActionService, type AddressFilterConfig, type Agent, type AgentActionParams, type AgentArtifactsPayload, AgentClient, type AgentListener, type AgentListenerService, type AgentListenerTriggerType, type AgentMessagePayload, type AgentResourceListOptions, type AgentService, type AllFilterConfig, type ApiErrorResponse, type AppendEventRequest, type AssignPermissionRequest, type AssignRoleRequest, type AttachContactAddressRequest, type Attachment, Attribute, AuditFields, type AuthListOptions, type AutomatedFilterConfig, type AutomatedSignal, type BatchTransactionError, BatchTransactionErrorSchema, type BatchTransactionStatus, type BatchUpsertRecordsResponse, BatchUpsertRecordsResponseSchema, type BatchUpsertTransaction, type BatchUpsertTransactionResult, BatchUpsertTransactionResultSchema, BatchUpsertTransactionSchema, type BinaryRef, type BlockContactRequest, type Channel, type ClientEventType, type ClientToolSchema, type Connection, type ConnectionCredentials, type ConnectionEndpoint, type ConnectionScope, type ConnectionService, type ConnectionStatus, type Connector, ConnectorClient, type ConnectorConnection, type ConnectionScope$1 as ConnectorConnectionScope, type ConnectionStatus$1 as ConnectorConnectionStatus, type ConnectionTokenResponse as ConnectorConnectionTokenResponse, type CredentialKind as ConnectorCredentialKind, type ConnectorKey, type ConnectorMethod, type ConnectorProvider, type ConsentStatus, type ConsumerGroup, type Contact, type ContactAddress, type ContactAddressKind, type ContactAddressSource, type ContactErasureRequest, type ContactMergeProposal, type ContactRef, type ContactService, type ContactSource, type ContactStatus, type ContentBlock$1 as ContentBlock, type ContentMatch, type ContentResponse, type ContextCompactedPayload, type Conversation, ConversationClient, type ConversationFilter, type ConversationFilterAction, type ConversationFilterConfig, type ConversationFilterEvent, type ConversationFilterService, type ConversationFilterType, type ConversationParticipant, type ConversationService, type ConversationStatus, type ConversationSummaryStatus, type CreateAgentListenerRequest, type CreateAgentRequest, type CreateConnectionRequest, type CreateConnectorConnectionRequest, type CreateConversationFilterRequest, type CreateFileMetadata, type CreateGlossaryTermRequest, type CreateLabelRequest, type CreateLinkRequest, type CreateMcpServerRequest, type CreateNodeRequest, type CreateOrganizationRequest, type CreatePromptRequest, type CreateRecordLinkRequest, type CreateRoleRequest, type CreateSessionRequest, type CreateToolRequest, type CreateUserRequest, type CreateWorkflowRequest, type CredentialSpec, type CronTriggerParams, DEFAULT_PORT, DataClient, type DependentAgent, type DependentSyncResult, type DispatchMeetingBotRequest, type DisplayOptions, type DomainFilterConfig, ERROR_PORT, type EditContentRequest, type EditContentResponse, type EmptyPayload, type ErasureRequestStatus, ErrorCode, type ErrorCodeType, type ErrorPayload, type EventTriggerParams, type EventType, type EventVerb, EventsClient, type ExecutionError, type ExecutionStatus, type ExecutionTriggerContext, type FileBlock, FileRef, type FileService, type FileVersionContent, type FilterMatchOn, FunctionsClient, type GetExecutionDetailResponse, type GetGraphOptions, type GetNodeExecutionItemsOptions, type GetNodeExecutionItemsResponse, type GetNodeTypesResponse, type GlossaryTerm, type GlossaryTermService, type GraphService, type InlineLinkRequest, type InstallConnectionResponse, type InstallConnectorConnectionResponse, type InternalConversationsFilterConfig, type InvokeActionResponse, type InvokeNodeMethodRequest, type InvokeNodeMethodResponse, type Item, type KickoffSource, type KickoffType, KnowledgeClient, type KnowledgeGraph, type KnowledgeGraphLink, type KnowledgeGraphNode, type KnowledgeLabel, KnowledgeLabelSchema, type KnowledgeLink, KnowledgeLinkSchema, type KnowledgeNode, type KnowledgeNodeLabel, KnowledgeNodeLabelSchema, type KnowledgeNodeMetadata, KnowledgeNodeMetadataSchema, KnowledgeNodeSchema, type KnowledgeNodeSearchResult, KnowledgeNodeSearchResultSchema, type KnowledgeRecordLink, KnowledgeRecordLinkSchema, type LabelService, type LinkService, type LinkType, type ListActionsOptions, type ListAgentListenersQuery, type ListAgentsOptions, type ListConnectionsQuery, type ListConnectorConnectionsQuery, type ListConnectorsQuery, type ListContactAddressesQuery, type ListContactMergeProposalsQuery, type ListContactsQuery, type ListConversationFilterEventsQuery, type ListConversationFiltersQuery, type ListConversationsQuery, type ListEventsOptions, type ListExecutionsOptions, type ListGlossaryTermsQuery, type ListLabelsOptions, type ListLinksOptions, type ListMcpServersOptions, type ListMessagesQuery, type ListNodesOptions, ListOptions, type ListOrganizationsOptions, type ListPromptsOptions, type ListRecordLinksOptions, type ListRecordsOptions, type ListResponse, ListResult, type ListRolePermissionsOptions, type ListRolesOptions, type ListRoomsQuery, type ListSessionsOptions, type ListSkillsOptions, type ListToolsOptions, type ListUserRoleAssignmentsOptions, type ListUsersOptions, type ListWorkflowsOptions, type ManualTriggerParams, type MatchMode, type McpBinding, type McpConnectionState, type McpConnectionStatus, type McpServer, type McpServerAuth, type McpServerOAuth, type McpServerService, type McpToolSummary, type MeService, type MeetingService, type MergeContactsRequest, type MergeProposalStatus, type Message, type ContentBlock as MessageContentBlock, type MessageDirection, type MessagePreview, type MessageRecipient, type MessageService, type MessageStatus, type MessageTriggerParams, type ModelConfig, type ModelRequestEndPayload, type ModelRequestStartPayload, type ModelUsage, type NeighborDirection, type NeighborEdge, type NeighborNode, type NeighborsOptions, type NodeContentMatches, type NodeDescriptor, type NodeExecution, type NodeGroup, type NodeMethodOption, type NodeNeighborhood, NodeNeighborhoodSchema, type NodeOutline, type NodePosition, type NodeProperty, type NodeRetryPolicy, type NodeRuntime, type NodeService, type NodeStatus, type NodeType, type NodeTypeKey, type NodeTypeService, type NodeTypeStatus, type OnErrorPolicy, type Organization, OrganizationSchema, type OrganizationService, type OutlineHeading, type OutlineRequest, type OutlineResponse, PLATFORM_ENTITIES, PLATFORM_ENTITY_SLUGS, PageIterator, type PairedItem, type ParseStatus, type Permission, type PermissionEventSource, type PermissionEventType, type PlatformEntity, type PlatformEvent, type PortSpec, type Prompt, type PromptService, type PromptVersion, type PropertyOption, type PropertyType, ProteosClient, ProteosError, PublicAccessOperation, type PublishEventRequest, type QueryExecuteMeta, type QueryExecuteResponse, type QueryObject, type QueryRow, type QueryService, type QueryValidateMeta, type QueryValidateResponse, type QueryValue, type Reaction, type ReactionCapability, type ReactionOption, type ReactionSetKind, type ReasoningPayload, type RecipientKind, type RecipientRole, type RecordData, type RecordLinkService, type RecordPermissionEventRequest, type RecordService, type RedriveResult, type ResultBlock, type Role, type RoleBasedFilterConfig, type RoleEntityPermission, RoleEntityPermissionSchema, RoleSchema, type RoleService, type Room, type RunWorkflowRequest, type SearchContentRequest, type SearchContentResponse, type SearchNodesRequest, type SendMessageRequest, type SendRecipient, type Session, type SessionEvent, type SessionEventEnvelope, type SessionEventsOptions, type SessionIdlePayload, type SessionService, type SessionStatus, type SessionStreamOptions, type SessionUpdatedPayload, type Skill, type SkillBundle, type SkillService, type SkillVersion, type StartMcpOAuthResponse, type StopReason, StorageClient, type StorageFile, type StorageFileVersion, type TailOptions, type TestNodeCandidate, type TestNodeInputSource, type TestNodeRequest, type TestNodeResponse, type TextBlock, type Tool, type ToolBinding, type ToolConfirmationPayload, type ToolKind, type ToolResultPayload, type ToolService, type ToolUsePayload, type Topic, type TopicKind, type TopicService, type TranscribeStreamOptions, type TranscriptResult, type TriggerKind, type Turn, type UnreadCounts, type UpdateAgentListenerRequest, type UpdateAgentRequest, type UpdateConnectionRequest, type UpdateConnectorConnectionRequest, type UpdateContactRequest, type UpdateConversationFilterRequest, type UpdateDraftRequest, type UpdateFileMetadata, type UpdateGlossaryTermRequest, type UpdateLabelRequest, type UpdateLinkRequest, type UpdateMcpServerRequest, type UpdateNodeRequest, type UpdateOrganizationRequest, type UpdatePromptRequest, type UpdateRoleRequest, type UpdateToolRequest, type UpdateUserRequest, type UpdateWorkflowRequest, type User, type UserMessagePayload, UserRef$2 as UserRef, type UserRoleAssignment, UserRoleAssignmentSchema, UserSchema, type UserService, type VoiceService, type VoiceTranscriptionStream, type WebhookTriggerParams, type Workflow, WorkflowClient, type WorkflowConnection, type WorkflowExecution, type WorkflowGraph, type WorkflowNode, type WorkflowNodeType, type WorkflowStatus, type WorkflowVersion, type WorkflowVersionAuthor, type WorkflowVersionSummary, type WriteContentResponse, type WriteCredentialsRequest, buildUrl, getDefaultErrorCode, isBadRequest, isConflict, isForbidden, isNotFound, isPlatformEntity, isProteosError, isUnauthorized, parseErrorResponse, toQueryParams, toQueryString };
5904
+ export { AccountClient, type Action, type ActionBinding, ActionSchema, type ActionScope, ActionScopeSchema, type ActionService, type AddressFilterConfig, type Agent, type AgentActionParams, type AgentArtifactsPayload, AgentClient, type AgentListener, type AgentListenerService, type AgentListenerTriggerType, type AgentMessagePayload, type AgentResourceListOptions, type AgentService, type AllFilterConfig, type ApiErrorResponse, type AppendEventRequest, type AssignPermissionRequest, type AssignRoleRequest, type AttachContactAddressRequest, type Attachment, Attribute, AuditFields, type AuthListOptions, type AutomatedFilterConfig, type AutomatedSignal, type BatchTransactionError, BatchTransactionErrorSchema, type BatchTransactionStatus, type BatchUpsertRecordsResponse, BatchUpsertRecordsResponseSchema, type BatchUpsertTransaction, type BatchUpsertTransactionResult, BatchUpsertTransactionResultSchema, BatchUpsertTransactionSchema, type BinaryRef, type BlockContactRequest, type Channel, type ClientEventType, type ClientToolSchema, type Connection, type ConnectionCredentials, type ConnectionEndpoint, type ConnectionScope, type ConnectionService, type ConnectionStatus, type 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 CreateAgentListenerRequest, type CreateAgentRequest, type CreateConnectionRequest, type CreateConnectorConnectionRequest, type CreateConversationFilterRequest, type CreateFileMetadata, type CreateGlossaryTermRequest, type CreateLabelRequest, type CreateLinkRequest, type CreateMcpServerRequest, type CreateNodeRequest, type CreateOrganizationRequest, type CreatePromptRequest, type CreateRecordLinkRequest, type CreateRoleRequest, type CreateSessionRequest, type CreateToolRequest, type CreateUserRequest, type CreateWorkflowRequest, type CredentialSpec, type CronTriggerParams, DEFAULT_PORT, DataClient, type DependentAgent, type DependentSyncResult, type DispatchMeetingBotRequest, type DisplayOptions, type DomainFilterConfig, ERROR_PORT, type EditContentRequest, type EditContentResponse, type EmptyPayload, type ErasureRequestStatus, ErrorCode, type ErrorCodeType, type ErrorPayload, type EventTriggerParams, type EventType, type EventVerb, EventsClient, type ExecutionError, type ExecutionStatus, type ExecutionTriggerContext, type FileBlock, FileRef, type FileService, type FileVersionContent, type FilterMatchOn, FunctionsClient, type GetExecutionDetailResponse, type GetGraphOptions, type GetNodeExecutionItemsOptions, type GetNodeExecutionItemsResponse, type GetNodeTypesResponse, type GlossaryTerm, type GlossaryTermService, type GraphService, type InlineLinkRequest, type InstallConnectionResponse, type InstallConnectorConnectionResponse, type InternalConversationsFilterConfig, type InvokeActionResponse, type InvokeNodeMethodRequest, type InvokeNodeMethodResponse, type Item, type KickoffSource, type KickoffType, KnowledgeClient, type KnowledgeGraph, type KnowledgeGraphLink, type KnowledgeGraphNode, type KnowledgeLabel, KnowledgeLabelSchema, type KnowledgeLink, KnowledgeLinkSchema, type KnowledgeNode, type KnowledgeNodeLabel, KnowledgeNodeLabelSchema, type KnowledgeNodeMetadata, KnowledgeNodeMetadataSchema, KnowledgeNodeSchema, type KnowledgeNodeSearchResult, KnowledgeNodeSearchResultSchema, type KnowledgeRecordLink, KnowledgeRecordLinkSchema, type LabelService, type LinkService, type LinkType, type ListActionsOptions, type ListAgentListenersQuery, type ListAgentsOptions, type ListConnectionsQuery, type ListConnectorConnectionsQuery, type ListConnectorsQuery, type ListContactAddressesQuery, type ListContactMergeProposalsQuery, type ListContactsQuery, type ListConversationFilterEventsQuery, type ListConversationFiltersQuery, type ListConversationsQuery, type ListEventsOptions, type ListExecutionsOptions, type ListGlossaryTermsQuery, type ListLabelsOptions, type ListLinksOptions, type ListMcpServersOptions, type ListMessagesQuery, type ListNodesOptions, ListOptions, type ListOrganizationsOptions, type ListPromptsOptions, type ListRecordLinksOptions, type ListRecordsOptions, type ListResponse, ListResult, type ListRolePermissionsOptions, type ListRolesOptions, type ListRoomsQuery, type ListSessionsOptions, type ListSkillsOptions, type ListToolsOptions, type ListUserRoleAssignmentsOptions, type ListUsersOptions, type ListWorkflowsOptions, type ManualTriggerParams, type MatchMode, type McpBinding, type McpConnectionState, type McpConnectionStatus, type McpServer, type McpServerAuth, type McpServerOAuth, type McpServerService, type McpToolSummary, type MeService, type MeetingService, type MergeContactsRequest, type MergeProposalStatus, type Message, type ContentBlock as MessageContentBlock, type MessageDirection, type MessagePreview, type MessageRecipient, type MessageService, type MessageStatus, type MessageTriggerParams, type ModelCallParams, type ModelConfig, type ModelRequestEndPayload, type ModelRequestStartPayload, type ModelUsage, type NeighborDirection, type NeighborEdge, type NeighborNode, type NeighborsOptions, type NodeContentMatches, type NodeDescriptor, type NodeExecution, type NodeGroup, type NodeMethodOption, type NodeNeighborhood, NodeNeighborhoodSchema, type NodeOutline, type NodePosition, type NodeProperty, type NodeRetryPolicy, type NodeRuntime, type NodeService, type NodeStatus, type NodeType, type NodeTypeKey, type NodeTypeService, type NodeTypeStatus, type OnErrorPolicy, type Organization, OrganizationSchema, type OrganizationService, type OutlineHeading, type OutlineRequest, type OutlineResponse, PLATFORM_ENTITIES, PLATFORM_ENTITY_SLUGS, PageIterator, type PairedItem, type ParseStatus, type Permission, type PermissionEventSource, type PermissionEventType, type PlatformEntity, type PlatformEvent, type PortSpec, type Prompt, type PromptService, type PromptVersion, type PropertyOption, type PropertyType, ProteosClient, ProteosError, PublicAccessOperation, type PublishEventRequest, type QueryExecuteMeta, type QueryExecuteResponse, type QueryObject, type QueryRow, type QueryService, type QueryValidateMeta, type QueryValidateResponse, type QueryValue, type Reaction, type ReactionCapability, type ReactionOption, type ReactionSetKind, type ReasoningPayload, type RecipientKind, type RecipientRole, type RecordData, type RecordLinkService, type RecordPermissionEventRequest, type RecordService, type RedriveResult, type ResultBlock, type Role, type RoleBasedFilterConfig, type RoleEntityPermission, RoleEntityPermissionSchema, RoleSchema, type RoleService, type Room, type RunWorkflowRequest, type SearchContentRequest, type SearchContentResponse, type SearchNodesRequest, type SendMessageRequest, type SendRecipient, type Session, type SessionEvent, type SessionEventEnvelope, type SessionEventsOptions, type SessionIdlePayload, type SessionService, type SessionStatus, type SessionStreamOptions, type SessionUpdatedPayload, type Skill, type SkillBundle, type SkillService, type SkillVersion, type StartMcpOAuthResponse, type StopReason, StorageClient, type StorageFile, type StorageFileVersion, type SyncConnectionRequest, type SystemSource, type TailOptions, type TestNodeCandidate, type TestNodeInputSource, type TestNodeRequest, type TestNodeResponse, type TextBlock, type Tool, type ToolBinding, type ToolConfirmationPayload, type ToolKind, type ToolResultPayload, type ToolService, type ToolUsePayload, type Topic, type TopicKind, type TopicService, type TranscribeStreamOptions, type TranscriptResult, type TriggerKind, type Turn, type UnreadCounts, type UpdateAgentListenerRequest, type UpdateAgentRequest, type UpdateConnectionRequest, type UpdateConnectorConnectionRequest, type UpdateContactRequest, type UpdateConversationFilterRequest, type UpdateDraftRequest, type UpdateFileMetadata, type UpdateGlossaryTermRequest, type UpdateLabelRequest, type UpdateLinkRequest, type UpdateMcpServerRequest, type UpdateNodeRequest, type UpdateOrganizationRequest, type UpdatePromptRequest, type UpdateRoleRequest, type UpdateToolRequest, type UpdateUserRequest, type UpdateWorkflowRequest, type User, type UserMessagePayload, UserRef$2 as UserRef, type UserRoleAssignment, UserRoleAssignmentSchema, UserSchema, type UserService, type VoiceService, type VoiceTranscriptionStream, type WebhookTriggerParams, type Workflow, WorkflowClient, type WorkflowConnection, type WorkflowExecution, type WorkflowGraph, type WorkflowNode, type WorkflowNodeType, type WorkflowStatus, type WorkflowVersion, type WorkflowVersionAuthor, type WorkflowVersionSummary, type WriteContentResponse, type WriteCredentialsRequest, buildUrl, getDefaultErrorCode, isBadRequest, isConflict, isForbidden, isNotFound, isPlatformEntity, isProteosError, isUnauthorized, parseErrorResponse, toQueryParams, toQueryString };
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { AuditFieldsSchema, AttributeSchema, UserRefSchema, PageIterator } from './chunk-JWLTUYS7.js';
2
- export { AppSchema, AttributeSchema, AuditFieldsSchema, ColumnSchema, ComponentSchema, CurrencyAttributeMetaSchema, DEFAULT_PAGE_SIZE, DONE, DesignReferenceSchema, EntitySchema, EntityWithSchemaSchema, FileRefSchema, FilterElementSchema, FilterGroupSchema, ListSchema, ListViewSchema, MenuConfigurationSchema, MenuItemSchema, MenuItemType, MetaClient, ModuleSchema, OnDeleteActionSchema, PLATFORM_ATTRIBUTE_NAMES, PLATFORM_USER_ID, PageActionSchema, PageIterator, PageLayoutSchema, PageSchema, RelationAttributeMetaSchema, ResponseMetaSchema, SortConfigSchema, UserRefSchema, VariableSchema, allCurrencyCodes, createIterator, createListResultSchema, currencyLabel, currencySymbol, currencySymbolSide, formatAmount, formatMoney, isPlatformAttributeName, localeNumberSeparators, parseAmount, parseCurrencyMeta, parseFileMeta, parseRelationMeta, platformAttributes } from './chunk-JWLTUYS7.js';
1
+ import { AuditFieldsSchema, AttributeSchema, UserRefSchema, PageIterator } from './chunk-Y2TJBWC5.js';
2
+ export { AppSchema, AttributeSchema, AuditFieldsSchema, ColumnSchema, ComponentSchema, CurrencyAttributeMetaSchema, DEFAULT_PAGE_SIZE, DONE, DesignReferenceSchema, EntitySchema, EntityWithSchemaSchema, FileRefSchema, FilterElementSchema, FilterGroupSchema, ListSchema, ListViewSchema, MenuConfigurationSchema, MenuItemSchema, MenuItemType, MetaClient, ModuleSchema, OnDeleteActionSchema, PLATFORM_ATTRIBUTE_NAMES, PLATFORM_USER_ID, PageActionSchema, PageIterator, PageLayoutSchema, PageSchema, RelationAttributeMetaSchema, ResponseMetaSchema, SortConfigSchema, UserRefSchema, VariableSchema, allCurrencyCodes, createIterator, createListResultSchema, currencyLabel, currencySymbol, currencySymbolSide, formatAmount, formatMoney, isPlatformAttributeName, localeNumberSeparators, parseAmount, parseCurrencyMeta, parseFileMeta, parseRelationMeta, platformAttributes } from './chunk-Y2TJBWC5.js';
3
3
  import { z } from 'zod';
4
4
  import { fetchEventSource } from '@microsoft/fetch-event-source';
5
5
 
@@ -1344,6 +1344,13 @@ var ConnectionServiceImpl = class {
1344
1344
  `${CONVERSATION_BASE_PATH}/connections/${encodeURIComponent(id)}/install`
1345
1345
  );
1346
1346
  }
1347
+ sync(id, request) {
1348
+ return this.client.request(
1349
+ "POST",
1350
+ `${CONVERSATION_BASE_PATH}/connections/${encodeURIComponent(id)}/sync`,
1351
+ request
1352
+ );
1353
+ }
1347
1354
  listContactAddresses(connectionId, query = {}) {
1348
1355
  return this.client.requestWithQuery(
1349
1356
  "GET",