@proteos/sdk 0.24.0 → 0.25.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-V3U7U3IX.cjs → chunk-4TXXJ47A.cjs} +2 -2
- package/dist/{chunk-V3U7U3IX.cjs.map → chunk-4TXXJ47A.cjs.map} +1 -1
- package/dist/{chunk-NYIHV7ET.js → chunk-YMRMKSZL.js} +2 -2
- package/dist/{chunk-NYIHV7ET.js.map → chunk-YMRMKSZL.js.map} +1 -1
- package/dist/index.cjs +104 -86
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +54 -3
- package/dist/index.d.ts +54 -3
- package/dist/index.js +22 -4
- package/dist/index.js.map +1 -1
- package/dist/meta/index.cjs +53 -53
- package/dist/meta/index.d.cts +1 -1
- package/dist/meta/index.d.ts +1 -1
- package/dist/meta/index.js +1 -1
- package/package.json +1 -1
- package/src/conversation/index.ts +7 -0
- package/src/conversation/types.ts +31 -2
- package/src/index.ts +2 -0
- package/src/meta/index.ts +1 -0
- package/src/storage/files.ts +37 -3
- package/src/storage/index.ts +1 -0
- package/src/storage/types.ts +13 -0
package/dist/index.d.cts
CHANGED
|
@@ -2152,6 +2152,11 @@ interface Conversation {
|
|
|
2152
2152
|
channel: Channel;
|
|
2153
2153
|
external_conversation_id: string;
|
|
2154
2154
|
subject: string;
|
|
2155
|
+
/**
|
|
2156
|
+
* Markdown summary — auto-generated at transcript attach for meeting
|
|
2157
|
+
* conversations, editable via update(). Absent when no summary exists.
|
|
2158
|
+
*/
|
|
2159
|
+
summary?: string;
|
|
2155
2160
|
status: ConversationStatus;
|
|
2156
2161
|
/**
|
|
2157
2162
|
* Room directory row a room-borne thread (Slack channel conversation) lives
|
|
@@ -2452,15 +2457,38 @@ interface ListConversationsQuery extends PaginationQuery {
|
|
|
2452
2457
|
channel?: string;
|
|
2453
2458
|
status?: string;
|
|
2454
2459
|
connection_id?: string;
|
|
2455
|
-
/**
|
|
2460
|
+
/**
|
|
2461
|
+
* Conversations of one room (Slack channel) — the room stream. A
|
|
2462
|
+
* present-but-EMPTY string is meaningful: it filters to the room-LESS
|
|
2463
|
+
* conversations (DMs, email, meetings), used to resolve a DM's main. The
|
|
2464
|
+
* value is applied verbatim server-side (`room_id = ''`), so only omit the
|
|
2465
|
+
* key (not set it to `''`) to mean "any room".
|
|
2466
|
+
*/
|
|
2456
2467
|
room_id?: string;
|
|
2457
|
-
/**
|
|
2468
|
+
/**
|
|
2469
|
+
* Child conversations forked from one main conversation. A present-but-EMPTY
|
|
2470
|
+
* string filters to the MAINS (and DMs) — the conversations that are not
|
|
2471
|
+
* thread children (`parent_conversation_id = ''`); used to resolve a
|
|
2472
|
+
* channel's main conversation. Omit the key to mean "children and mains
|
|
2473
|
+
* alike".
|
|
2474
|
+
*/
|
|
2458
2475
|
parent_conversation_id?: string;
|
|
2459
2476
|
/** Threads whose roster contains this external party — the person stream. */
|
|
2460
2477
|
participant_external_id?: string;
|
|
2461
2478
|
/** Opt into the root/latest message projection on each row. */
|
|
2462
2479
|
include?: 'messages_summary';
|
|
2463
2480
|
}
|
|
2481
|
+
/**
|
|
2482
|
+
* User-editable surface of a conversation (PATCH); everything else is owned by
|
|
2483
|
+
* ingest.
|
|
2484
|
+
*/
|
|
2485
|
+
interface UpdateConversationRequest {
|
|
2486
|
+
subject?: string;
|
|
2487
|
+
/** Markdown summary (auto-generated for meetings, freely editable). */
|
|
2488
|
+
summary?: string;
|
|
2489
|
+
status?: ConversationStatus;
|
|
2490
|
+
metadata?: Record<string, unknown>;
|
|
2491
|
+
}
|
|
2464
2492
|
interface ListMessagesQuery extends PaginationQuery {
|
|
2465
2493
|
direction?: string;
|
|
2466
2494
|
status?: string;
|
|
@@ -2660,6 +2688,8 @@ interface ConnectionService {
|
|
|
2660
2688
|
interface ConversationService {
|
|
2661
2689
|
list(query?: ListConversationsQuery): Promise<ListResponse<Conversation>>;
|
|
2662
2690
|
get(id: string): Promise<Conversation>;
|
|
2691
|
+
/** Patch the user-editable surface (subject, summary, status, metadata). */
|
|
2692
|
+
update(id: string, request: UpdateConversationRequest): Promise<Conversation>;
|
|
2663
2693
|
end(id: string): Promise<Conversation>;
|
|
2664
2694
|
/** Upsert the requesting user's read marker to now (open a conversation). */
|
|
2665
2695
|
markRead(id: string): Promise<void>;
|
|
@@ -4615,6 +4645,18 @@ interface CreateFileMetadata {
|
|
|
4615
4645
|
/** See {@link StorageFile.public_access}. Only `["read"]` accepted today. */
|
|
4616
4646
|
public_access?: PublicAccessOperation[];
|
|
4617
4647
|
}
|
|
4648
|
+
/**
|
|
4649
|
+
* Metadata sent as the `metadata` multipart part of a file PATCH. Only the
|
|
4650
|
+
* fields present are changed; omitted fields stay untouched.
|
|
4651
|
+
*/
|
|
4652
|
+
interface UpdateFileMetadata {
|
|
4653
|
+
name?: string;
|
|
4654
|
+
/**
|
|
4655
|
+
* See {@link StorageFile.public_access}. Only `["read"]` accepted today;
|
|
4656
|
+
* `[]` revokes public access (back to private).
|
|
4657
|
+
*/
|
|
4658
|
+
public_access?: PublicAccessOperation[];
|
|
4659
|
+
}
|
|
4618
4660
|
/**
|
|
4619
4661
|
* Lifecycle of a version's parsed content. A parse is asynchronous: the row is
|
|
4620
4662
|
* created `processing`, then flips to `ready` (with content) or `failed` (with an
|
|
@@ -4658,10 +4700,13 @@ interface FileService {
|
|
|
4658
4700
|
* `FileRef { id, name }` it stores on the record from the result.
|
|
4659
4701
|
*
|
|
4660
4702
|
* `name` defaults to the `File`'s own name; `contentType` to its MIME type.
|
|
4703
|
+
* `publicAccess: ["read"]` exposes the file on the UNAUTHENTICATED public
|
|
4704
|
+
* download route; omit for a private file (the default).
|
|
4661
4705
|
*/
|
|
4662
4706
|
upload(file: File, options?: {
|
|
4663
4707
|
name?: string;
|
|
4664
4708
|
contentType?: string;
|
|
4709
|
+
publicAccess?: PublicAccessOperation[];
|
|
4665
4710
|
}): Promise<StorageFile>;
|
|
4666
4711
|
/**
|
|
4667
4712
|
* Creates a file's metadata only (no bytes) — the first step of the upload-URL
|
|
@@ -4669,6 +4714,12 @@ interface FileService {
|
|
|
4669
4714
|
* with {@link FileService.createUploadUrl} and PUT the bytes to it.
|
|
4670
4715
|
*/
|
|
4671
4716
|
create(metadata: CreateFileMetadata): Promise<StorageFile>;
|
|
4717
|
+
/**
|
|
4718
|
+
* Updates a file's metadata (name, `public_access`). Only the fields present
|
|
4719
|
+
* in `metadata` are changed. Setting `public_access: ["read"]` exposes the
|
|
4720
|
+
* file on the UNAUTHENTICATED public download route; `[]` revokes it.
|
|
4721
|
+
*/
|
|
4722
|
+
update(id: string, metadata: UpdateFileMetadata): Promise<StorageFile>;
|
|
4672
4723
|
/**
|
|
4673
4724
|
* Mints a short-lived upload URL for a file. The bytes are PUT directly to this URL
|
|
4674
4725
|
* (raw body, no auth) — keeping large files off the SDK/MCP path. Single-use, ~3 min.
|
|
@@ -5387,4 +5438,4 @@ declare class WorkflowClient {
|
|
|
5387
5438
|
constructor(client: ProteosClient);
|
|
5388
5439
|
}
|
|
5389
5440
|
|
|
5390
|
-
export { AccountClient, type Action, type ActionBinding, ActionSchema, type ActionScope, ActionScopeSchema, type ActionService, type Agent, type AgentActionParams, type AgentArtifactsPayload, AgentClient, type AgentKickoff, type AgentListener, type AgentListenerService, type AgentListenerTriggerType, type AgentMessagePayload, type AgentResourceListOptions, type AgentService, type ApiErrorResponse, type AppendEventRequest, type AssignPermissionRequest, type AssignRoleRequest, type Attachment, Attribute, AuditFields, type AuthListOptions, type BatchTransactionError, BatchTransactionErrorSchema, type BatchTransactionStatus, type BatchUpsertRecordsResponse, BatchUpsertRecordsResponseSchema, type BatchUpsertTransaction, type BatchUpsertTransactionResult, BatchUpsertTransactionResultSchema, BatchUpsertTransactionSchema, type BinaryRef, 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 ConsumerGroup, type ContentBlock$1 as ContentBlock, type ContentMatch, type ContentResponse, type ContextCompactedPayload, type Conversation, ConversationClient, type ConversationParticipant, type ConversationService, type ConversationStatus, type CreateAgentListenerRequest, type CreateAgentRequest, type CreateConnectionRequest, type CreateConnectorConnectionRequest, type CreateFileMetadata, type CreateGlossaryTermRequest, type CreateLabelRequest, type CreateLinkRequest, type CreateMcpServerRequest, type CreateNodeRequest, type CreateOrganizationRequest, type CreatePromptRequest, type CreateRecordLinkRequest, type CreateRoleRequest, type CreateSessionRequest, type CreateToolRequest, type CreateUserRequest, type CreateWorkflowRequest, type CredentialSpec, type CronTriggerParams, DEFAULT_PORT, DataClient, type DispatchMeetingBotRequest, type DisplayOptions, ERROR_PORT, type EditContentRequest, type EditContentResponse, type EmptyPayload, ErrorCode, type ErrorCodeType, type ErrorPayload, type EventTriggerParams, type EventType, type EventVerb, EventsClient, type ExecutionError, type ExecutionStatus, type ExecutionTriggerContext, type FileBlock, FileRef, type FileService, type FileVersionContent, FunctionsClient, type GetExecutionDetailResponse, type GetGraphOptions, type GetNodeExecutionItemsOptions, type GetNodeExecutionItemsResponse, type GetNodeTypesResponse, type GlossaryTerm, type GlossaryTermService, type GraphService, type InlineLinkRequest, type InstallConnectionResponse, type InstallConnectorConnectionResponse, type InvokeActionResponse, type InvokeNodeMethodRequest, type InvokeNodeMethodResponse, type Item, type KickoffSource, type KickoffType, KnowledgeClient, type KnowledgeGraph, type KnowledgeGraphLink, type KnowledgeGraphNode, type KnowledgeLabel, KnowledgeLabelSchema, type KnowledgeLink, KnowledgeLinkSchema, type KnowledgeNode, type KnowledgeNodeLabel, KnowledgeNodeLabelSchema, type KnowledgeNodeMetadata, KnowledgeNodeMetadataSchema, KnowledgeNodeSchema, type KnowledgeNodeSearchResult, KnowledgeNodeSearchResultSchema, type KnowledgeRecordLink, KnowledgeRecordLinkSchema, type LabelService, type LinkService, type LinkType, type ListActionsOptions, type ListAgentListenersQuery, type ListAgentsOptions, type ListConnectionsQuery, type ListConnectorConnectionsQuery, type ListConnectorsQuery, type ListConversationsQuery, type ListEventsOptions, type ListExecutionsOptions, type ListGlossaryTermsQuery, type ListLabelsOptions, type ListLinksOptions, type ListMcpServersOptions, type ListMessagesQuery, type ListNodesOptions, ListOptions, type ListOrganizationsOptions, type ListParticipantsQuery, 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 Message, type ContentBlock as MessageContentBlock, type MessageDirection, type MessageKickoff, type MessagePreview, type MessageRecipient, type MessageService, type MessageStatus, type MessageTriggerParams, type ModelConfig, type ModelRequestEndPayload, type ModelRequestStartPayload, type ModelUsage, type NeighborDirection, type NeighborEdge, type NeighborNode, type NeighborsOptions, type NodeContentMatches, type NodeDescriptor, type NodeExecution, type NodeGroup, type NodeMethodOption, type NodeNeighborhood, NodeNeighborhoodSchema, type NodeOutline, type NodePosition, type NodeProperty, type NodeRetryPolicy, type NodeRuntime, type NodeService, type NodeStatus, type NodeType, type NodeTypeKey, type NodeTypeService, type NodeTypeStatus, type OnErrorPolicy, type Organization, OrganizationSchema, type OrganizationService, type OutcomeKickoff, type OutcomeRubric, type OutlineHeading, type OutlineRequest, type OutlineResponse, PLATFORM_ENTITIES, PLATFORM_ENTITY_SLUGS, PageIterator, type PairedItem, type ParseStatus, type Participant, type ParticipantRef, type ParticipantSource, type Permission, type PlatformEntity, type PlatformEvent, type PortSpec, type Prompt, type PromptService, type PromptVersion, type PropertyOption, type PropertyType, ProteosClient, ProteosError, 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 RecordService, type RedriveResult, type ResultBlock, type Role, type RoleEntityPermission, RoleEntityPermissionSchema, RoleSchema, type RoleService, type Room, type RunWorkflowRequest, type SearchContentRequest, type SearchContentResponse, type SearchNodesRequest, type SendMessageRequest, type SendRecipient, type Session, type SessionEvent, type SessionEventEnvelope, type SessionEventsOptions, type SessionIdlePayload, type SessionService, type SessionStatus, type SessionStreamOptions, type SessionUpdatedPayload, type Skill, type SkillBundle, type SkillService, type SkillVersion, type StartMcpOAuthResponse, type StopReason, StorageClient, type StorageFile, type StorageFileVersion, type TailOptions, type TestNodeCandidate, type TestNodeInputSource, type TestNodeRequest, type TestNodeResponse, type TextBlock, type Tool, type ToolBinding, type ToolConfirmationPayload, type ToolKind, type ToolResultPayload, type ToolService, type ToolUsePayload, type Topic, type TopicKind, type TopicService, type TranscribeStreamOptions, type TranscriptResult, type TriggerKind, type Turn, type UnreadCounts, type UpdateAgentListenerRequest, type UpdateAgentRequest, type UpdateConnectionRequest, type UpdateConnectorConnectionRequest, type UpdateGlossaryTermRequest, type UpdateLabelRequest, type UpdateLinkRequest, type UpdateMcpServerRequest, type UpdateNodeRequest, type UpdateOrganizationRequest, type UpdatePromptRequest, type UpdateRoleRequest, type UpdateToolRequest, type UpdateUserRequest, type UpdateWorkflowRequest, type User, type UserMessagePayload, UserRef$2 as UserRef, type UserRoleAssignment, UserRoleAssignmentSchema, UserSchema, type UserService, type VoiceService, type VoiceTranscriptionStream, type WebhookTriggerParams, type Workflow, WorkflowClient, type WorkflowConnection, type WorkflowContentBlock, type WorkflowExecution, type WorkflowGraph, type WorkflowNode, type WorkflowNodeType, type WorkflowStatus, type WorkflowVersion, type WorkflowVersionAuthor, type WorkflowVersionSummary, type WriteContentResponse, type WriteCredentialsRequest, buildUrl, getDefaultErrorCode, isBadRequest, isConflict, isForbidden, isNotFound, isPlatformEntity, isProteosError, isUnauthorized, parseErrorResponse, toQueryParams, toQueryString };
|
|
5441
|
+
export { AccountClient, type Action, type ActionBinding, ActionSchema, type ActionScope, ActionScopeSchema, type ActionService, type Agent, type AgentActionParams, type AgentArtifactsPayload, AgentClient, type AgentKickoff, type AgentListener, type AgentListenerService, type AgentListenerTriggerType, type AgentMessagePayload, type AgentResourceListOptions, type AgentService, type ApiErrorResponse, type AppendEventRequest, type AssignPermissionRequest, type AssignRoleRequest, type Attachment, Attribute, AuditFields, type AuthListOptions, type BatchTransactionError, BatchTransactionErrorSchema, type BatchTransactionStatus, type BatchUpsertRecordsResponse, BatchUpsertRecordsResponseSchema, type BatchUpsertTransaction, type BatchUpsertTransactionResult, BatchUpsertTransactionResultSchema, BatchUpsertTransactionSchema, type BinaryRef, 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 ConsumerGroup, type ContentBlock$1 as ContentBlock, type ContentMatch, type ContentResponse, type ContextCompactedPayload, type Conversation, ConversationClient, type ConversationParticipant, type ConversationService, type ConversationStatus, type CreateAgentListenerRequest, type CreateAgentRequest, type CreateConnectionRequest, type CreateConnectorConnectionRequest, type CreateFileMetadata, type CreateGlossaryTermRequest, type CreateLabelRequest, type CreateLinkRequest, type CreateMcpServerRequest, type CreateNodeRequest, type CreateOrganizationRequest, type CreatePromptRequest, type CreateRecordLinkRequest, type CreateRoleRequest, type CreateSessionRequest, type CreateToolRequest, type CreateUserRequest, type CreateWorkflowRequest, type CredentialSpec, type CronTriggerParams, DEFAULT_PORT, DataClient, type DispatchMeetingBotRequest, type DisplayOptions, ERROR_PORT, type EditContentRequest, type EditContentResponse, type EmptyPayload, ErrorCode, type ErrorCodeType, type ErrorPayload, type EventTriggerParams, type EventType, type EventVerb, EventsClient, type ExecutionError, type ExecutionStatus, type ExecutionTriggerContext, type FileBlock, FileRef, type FileService, type FileVersionContent, FunctionsClient, type GetExecutionDetailResponse, type GetGraphOptions, type GetNodeExecutionItemsOptions, type GetNodeExecutionItemsResponse, type GetNodeTypesResponse, type GlossaryTerm, type GlossaryTermService, type GraphService, type InlineLinkRequest, type InstallConnectionResponse, type InstallConnectorConnectionResponse, type InvokeActionResponse, type InvokeNodeMethodRequest, type InvokeNodeMethodResponse, type Item, type KickoffSource, type KickoffType, KnowledgeClient, type KnowledgeGraph, type KnowledgeGraphLink, type KnowledgeGraphNode, type KnowledgeLabel, KnowledgeLabelSchema, type KnowledgeLink, KnowledgeLinkSchema, type KnowledgeNode, type KnowledgeNodeLabel, KnowledgeNodeLabelSchema, type KnowledgeNodeMetadata, KnowledgeNodeMetadataSchema, KnowledgeNodeSchema, type KnowledgeNodeSearchResult, KnowledgeNodeSearchResultSchema, type KnowledgeRecordLink, KnowledgeRecordLinkSchema, type LabelService, type LinkService, type LinkType, type ListActionsOptions, type ListAgentListenersQuery, type ListAgentsOptions, type ListConnectionsQuery, type ListConnectorConnectionsQuery, type ListConnectorsQuery, type ListConversationsQuery, type ListEventsOptions, type ListExecutionsOptions, type ListGlossaryTermsQuery, type ListLabelsOptions, type ListLinksOptions, type ListMcpServersOptions, type ListMessagesQuery, type ListNodesOptions, ListOptions, type ListOrganizationsOptions, type ListParticipantsQuery, 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 Message, type ContentBlock as MessageContentBlock, type MessageDirection, type MessageKickoff, type MessagePreview, type MessageRecipient, type MessageService, type MessageStatus, type MessageTriggerParams, type ModelConfig, type ModelRequestEndPayload, type ModelRequestStartPayload, type ModelUsage, type NeighborDirection, type NeighborEdge, type NeighborNode, type NeighborsOptions, type NodeContentMatches, type NodeDescriptor, type NodeExecution, type NodeGroup, type NodeMethodOption, type NodeNeighborhood, NodeNeighborhoodSchema, type NodeOutline, type NodePosition, type NodeProperty, type NodeRetryPolicy, type NodeRuntime, type NodeService, type NodeStatus, type NodeType, type NodeTypeKey, type NodeTypeService, type NodeTypeStatus, type OnErrorPolicy, type Organization, OrganizationSchema, type OrganizationService, type OutcomeKickoff, type OutcomeRubric, type OutlineHeading, type OutlineRequest, type OutlineResponse, PLATFORM_ENTITIES, PLATFORM_ENTITY_SLUGS, PageIterator, type PairedItem, type ParseStatus, type Participant, type ParticipantRef, type ParticipantSource, type Permission, 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 RecordService, type RedriveResult, type ResultBlock, type Role, type RoleEntityPermission, RoleEntityPermissionSchema, RoleSchema, type RoleService, type Room, type RunWorkflowRequest, type SearchContentRequest, type SearchContentResponse, type SearchNodesRequest, type SendMessageRequest, type SendRecipient, type Session, type SessionEvent, type SessionEventEnvelope, type SessionEventsOptions, type SessionIdlePayload, type SessionService, type SessionStatus, type SessionStreamOptions, type SessionUpdatedPayload, type Skill, type SkillBundle, type SkillService, type SkillVersion, type StartMcpOAuthResponse, type StopReason, StorageClient, type StorageFile, type StorageFileVersion, type TailOptions, type TestNodeCandidate, type TestNodeInputSource, type TestNodeRequest, type TestNodeResponse, type TextBlock, type Tool, type ToolBinding, type ToolConfirmationPayload, type ToolKind, type ToolResultPayload, type ToolService, type ToolUsePayload, type Topic, type TopicKind, type TopicService, type TranscribeStreamOptions, type TranscriptResult, type TriggerKind, type Turn, type UnreadCounts, type UpdateAgentListenerRequest, type UpdateAgentRequest, type UpdateConnectionRequest, type UpdateConnectorConnectionRequest, type UpdateFileMetadata, type UpdateGlossaryTermRequest, type UpdateLabelRequest, type UpdateLinkRequest, type UpdateMcpServerRequest, type UpdateNodeRequest, type UpdateOrganizationRequest, type UpdatePromptRequest, type UpdateRoleRequest, type UpdateToolRequest, type UpdateUserRequest, type UpdateWorkflowRequest, type User, type UserMessagePayload, UserRef$2 as UserRef, type UserRoleAssignment, UserRoleAssignmentSchema, UserSchema, type UserService, type VoiceService, type VoiceTranscriptionStream, type WebhookTriggerParams, type Workflow, WorkflowClient, type WorkflowConnection, type WorkflowContentBlock, type WorkflowExecution, type WorkflowGraph, type WorkflowNode, type WorkflowNodeType, type WorkflowStatus, type WorkflowVersion, type WorkflowVersionAuthor, type WorkflowVersionSummary, type WriteContentResponse, type WriteCredentialsRequest, buildUrl, getDefaultErrorCode, isBadRequest, isConflict, isForbidden, isNotFound, isPlatformEntity, isProteosError, isUnauthorized, parseErrorResponse, toQueryParams, toQueryString };
|
package/dist/index.d.ts
CHANGED
|
@@ -2152,6 +2152,11 @@ interface Conversation {
|
|
|
2152
2152
|
channel: Channel;
|
|
2153
2153
|
external_conversation_id: string;
|
|
2154
2154
|
subject: string;
|
|
2155
|
+
/**
|
|
2156
|
+
* Markdown summary — auto-generated at transcript attach for meeting
|
|
2157
|
+
* conversations, editable via update(). Absent when no summary exists.
|
|
2158
|
+
*/
|
|
2159
|
+
summary?: string;
|
|
2155
2160
|
status: ConversationStatus;
|
|
2156
2161
|
/**
|
|
2157
2162
|
* Room directory row a room-borne thread (Slack channel conversation) lives
|
|
@@ -2452,15 +2457,38 @@ interface ListConversationsQuery extends PaginationQuery {
|
|
|
2452
2457
|
channel?: string;
|
|
2453
2458
|
status?: string;
|
|
2454
2459
|
connection_id?: string;
|
|
2455
|
-
/**
|
|
2460
|
+
/**
|
|
2461
|
+
* Conversations of one room (Slack channel) — the room stream. A
|
|
2462
|
+
* present-but-EMPTY string is meaningful: it filters to the room-LESS
|
|
2463
|
+
* conversations (DMs, email, meetings), used to resolve a DM's main. The
|
|
2464
|
+
* value is applied verbatim server-side (`room_id = ''`), so only omit the
|
|
2465
|
+
* key (not set it to `''`) to mean "any room".
|
|
2466
|
+
*/
|
|
2456
2467
|
room_id?: string;
|
|
2457
|
-
/**
|
|
2468
|
+
/**
|
|
2469
|
+
* Child conversations forked from one main conversation. A present-but-EMPTY
|
|
2470
|
+
* string filters to the MAINS (and DMs) — the conversations that are not
|
|
2471
|
+
* thread children (`parent_conversation_id = ''`); used to resolve a
|
|
2472
|
+
* channel's main conversation. Omit the key to mean "children and mains
|
|
2473
|
+
* alike".
|
|
2474
|
+
*/
|
|
2458
2475
|
parent_conversation_id?: string;
|
|
2459
2476
|
/** Threads whose roster contains this external party — the person stream. */
|
|
2460
2477
|
participant_external_id?: string;
|
|
2461
2478
|
/** Opt into the root/latest message projection on each row. */
|
|
2462
2479
|
include?: 'messages_summary';
|
|
2463
2480
|
}
|
|
2481
|
+
/**
|
|
2482
|
+
* User-editable surface of a conversation (PATCH); everything else is owned by
|
|
2483
|
+
* ingest.
|
|
2484
|
+
*/
|
|
2485
|
+
interface UpdateConversationRequest {
|
|
2486
|
+
subject?: string;
|
|
2487
|
+
/** Markdown summary (auto-generated for meetings, freely editable). */
|
|
2488
|
+
summary?: string;
|
|
2489
|
+
status?: ConversationStatus;
|
|
2490
|
+
metadata?: Record<string, unknown>;
|
|
2491
|
+
}
|
|
2464
2492
|
interface ListMessagesQuery extends PaginationQuery {
|
|
2465
2493
|
direction?: string;
|
|
2466
2494
|
status?: string;
|
|
@@ -2660,6 +2688,8 @@ interface ConnectionService {
|
|
|
2660
2688
|
interface ConversationService {
|
|
2661
2689
|
list(query?: ListConversationsQuery): Promise<ListResponse<Conversation>>;
|
|
2662
2690
|
get(id: string): Promise<Conversation>;
|
|
2691
|
+
/** Patch the user-editable surface (subject, summary, status, metadata). */
|
|
2692
|
+
update(id: string, request: UpdateConversationRequest): Promise<Conversation>;
|
|
2663
2693
|
end(id: string): Promise<Conversation>;
|
|
2664
2694
|
/** Upsert the requesting user's read marker to now (open a conversation). */
|
|
2665
2695
|
markRead(id: string): Promise<void>;
|
|
@@ -4615,6 +4645,18 @@ interface CreateFileMetadata {
|
|
|
4615
4645
|
/** See {@link StorageFile.public_access}. Only `["read"]` accepted today. */
|
|
4616
4646
|
public_access?: PublicAccessOperation[];
|
|
4617
4647
|
}
|
|
4648
|
+
/**
|
|
4649
|
+
* Metadata sent as the `metadata` multipart part of a file PATCH. Only the
|
|
4650
|
+
* fields present are changed; omitted fields stay untouched.
|
|
4651
|
+
*/
|
|
4652
|
+
interface UpdateFileMetadata {
|
|
4653
|
+
name?: string;
|
|
4654
|
+
/**
|
|
4655
|
+
* See {@link StorageFile.public_access}. Only `["read"]` accepted today;
|
|
4656
|
+
* `[]` revokes public access (back to private).
|
|
4657
|
+
*/
|
|
4658
|
+
public_access?: PublicAccessOperation[];
|
|
4659
|
+
}
|
|
4618
4660
|
/**
|
|
4619
4661
|
* Lifecycle of a version's parsed content. A parse is asynchronous: the row is
|
|
4620
4662
|
* created `processing`, then flips to `ready` (with content) or `failed` (with an
|
|
@@ -4658,10 +4700,13 @@ interface FileService {
|
|
|
4658
4700
|
* `FileRef { id, name }` it stores on the record from the result.
|
|
4659
4701
|
*
|
|
4660
4702
|
* `name` defaults to the `File`'s own name; `contentType` to its MIME type.
|
|
4703
|
+
* `publicAccess: ["read"]` exposes the file on the UNAUTHENTICATED public
|
|
4704
|
+
* download route; omit for a private file (the default).
|
|
4661
4705
|
*/
|
|
4662
4706
|
upload(file: File, options?: {
|
|
4663
4707
|
name?: string;
|
|
4664
4708
|
contentType?: string;
|
|
4709
|
+
publicAccess?: PublicAccessOperation[];
|
|
4665
4710
|
}): Promise<StorageFile>;
|
|
4666
4711
|
/**
|
|
4667
4712
|
* Creates a file's metadata only (no bytes) — the first step of the upload-URL
|
|
@@ -4669,6 +4714,12 @@ interface FileService {
|
|
|
4669
4714
|
* with {@link FileService.createUploadUrl} and PUT the bytes to it.
|
|
4670
4715
|
*/
|
|
4671
4716
|
create(metadata: CreateFileMetadata): Promise<StorageFile>;
|
|
4717
|
+
/**
|
|
4718
|
+
* Updates a file's metadata (name, `public_access`). Only the fields present
|
|
4719
|
+
* in `metadata` are changed. Setting `public_access: ["read"]` exposes the
|
|
4720
|
+
* file on the UNAUTHENTICATED public download route; `[]` revokes it.
|
|
4721
|
+
*/
|
|
4722
|
+
update(id: string, metadata: UpdateFileMetadata): Promise<StorageFile>;
|
|
4672
4723
|
/**
|
|
4673
4724
|
* Mints a short-lived upload URL for a file. The bytes are PUT directly to this URL
|
|
4674
4725
|
* (raw body, no auth) — keeping large files off the SDK/MCP path. Single-use, ~3 min.
|
|
@@ -5387,4 +5438,4 @@ declare class WorkflowClient {
|
|
|
5387
5438
|
constructor(client: ProteosClient);
|
|
5388
5439
|
}
|
|
5389
5440
|
|
|
5390
|
-
export { AccountClient, type Action, type ActionBinding, ActionSchema, type ActionScope, ActionScopeSchema, type ActionService, type Agent, type AgentActionParams, type AgentArtifactsPayload, AgentClient, type AgentKickoff, type AgentListener, type AgentListenerService, type AgentListenerTriggerType, type AgentMessagePayload, type AgentResourceListOptions, type AgentService, type ApiErrorResponse, type AppendEventRequest, type AssignPermissionRequest, type AssignRoleRequest, type Attachment, Attribute, AuditFields, type AuthListOptions, type BatchTransactionError, BatchTransactionErrorSchema, type BatchTransactionStatus, type BatchUpsertRecordsResponse, BatchUpsertRecordsResponseSchema, type BatchUpsertTransaction, type BatchUpsertTransactionResult, BatchUpsertTransactionResultSchema, BatchUpsertTransactionSchema, type BinaryRef, 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 ConsumerGroup, type ContentBlock$1 as ContentBlock, type ContentMatch, type ContentResponse, type ContextCompactedPayload, type Conversation, ConversationClient, type ConversationParticipant, type ConversationService, type ConversationStatus, type CreateAgentListenerRequest, type CreateAgentRequest, type CreateConnectionRequest, type CreateConnectorConnectionRequest, type CreateFileMetadata, type CreateGlossaryTermRequest, type CreateLabelRequest, type CreateLinkRequest, type CreateMcpServerRequest, type CreateNodeRequest, type CreateOrganizationRequest, type CreatePromptRequest, type CreateRecordLinkRequest, type CreateRoleRequest, type CreateSessionRequest, type CreateToolRequest, type CreateUserRequest, type CreateWorkflowRequest, type CredentialSpec, type CronTriggerParams, DEFAULT_PORT, DataClient, type DispatchMeetingBotRequest, type DisplayOptions, ERROR_PORT, type EditContentRequest, type EditContentResponse, type EmptyPayload, ErrorCode, type ErrorCodeType, type ErrorPayload, type EventTriggerParams, type EventType, type EventVerb, EventsClient, type ExecutionError, type ExecutionStatus, type ExecutionTriggerContext, type FileBlock, FileRef, type FileService, type FileVersionContent, FunctionsClient, type GetExecutionDetailResponse, type GetGraphOptions, type GetNodeExecutionItemsOptions, type GetNodeExecutionItemsResponse, type GetNodeTypesResponse, type GlossaryTerm, type GlossaryTermService, type GraphService, type InlineLinkRequest, type InstallConnectionResponse, type InstallConnectorConnectionResponse, type InvokeActionResponse, type InvokeNodeMethodRequest, type InvokeNodeMethodResponse, type Item, type KickoffSource, type KickoffType, KnowledgeClient, type KnowledgeGraph, type KnowledgeGraphLink, type KnowledgeGraphNode, type KnowledgeLabel, KnowledgeLabelSchema, type KnowledgeLink, KnowledgeLinkSchema, type KnowledgeNode, type KnowledgeNodeLabel, KnowledgeNodeLabelSchema, type KnowledgeNodeMetadata, KnowledgeNodeMetadataSchema, KnowledgeNodeSchema, type KnowledgeNodeSearchResult, KnowledgeNodeSearchResultSchema, type KnowledgeRecordLink, KnowledgeRecordLinkSchema, type LabelService, type LinkService, type LinkType, type ListActionsOptions, type ListAgentListenersQuery, type ListAgentsOptions, type ListConnectionsQuery, type ListConnectorConnectionsQuery, type ListConnectorsQuery, type ListConversationsQuery, type ListEventsOptions, type ListExecutionsOptions, type ListGlossaryTermsQuery, type ListLabelsOptions, type ListLinksOptions, type ListMcpServersOptions, type ListMessagesQuery, type ListNodesOptions, ListOptions, type ListOrganizationsOptions, type ListParticipantsQuery, 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 Message, type ContentBlock as MessageContentBlock, type MessageDirection, type MessageKickoff, type MessagePreview, type MessageRecipient, type MessageService, type MessageStatus, type MessageTriggerParams, type ModelConfig, type ModelRequestEndPayload, type ModelRequestStartPayload, type ModelUsage, type NeighborDirection, type NeighborEdge, type NeighborNode, type NeighborsOptions, type NodeContentMatches, type NodeDescriptor, type NodeExecution, type NodeGroup, type NodeMethodOption, type NodeNeighborhood, NodeNeighborhoodSchema, type NodeOutline, type NodePosition, type NodeProperty, type NodeRetryPolicy, type NodeRuntime, type NodeService, type NodeStatus, type NodeType, type NodeTypeKey, type NodeTypeService, type NodeTypeStatus, type OnErrorPolicy, type Organization, OrganizationSchema, type OrganizationService, type OutcomeKickoff, type OutcomeRubric, type OutlineHeading, type OutlineRequest, type OutlineResponse, PLATFORM_ENTITIES, PLATFORM_ENTITY_SLUGS, PageIterator, type PairedItem, type ParseStatus, type Participant, type ParticipantRef, type ParticipantSource, type Permission, type PlatformEntity, type PlatformEvent, type PortSpec, type Prompt, type PromptService, type PromptVersion, type PropertyOption, type PropertyType, ProteosClient, ProteosError, 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 RecordService, type RedriveResult, type ResultBlock, type Role, type RoleEntityPermission, RoleEntityPermissionSchema, RoleSchema, type RoleService, type Room, type RunWorkflowRequest, type SearchContentRequest, type SearchContentResponse, type SearchNodesRequest, type SendMessageRequest, type SendRecipient, type Session, type SessionEvent, type SessionEventEnvelope, type SessionEventsOptions, type SessionIdlePayload, type SessionService, type SessionStatus, type SessionStreamOptions, type SessionUpdatedPayload, type Skill, type SkillBundle, type SkillService, type SkillVersion, type StartMcpOAuthResponse, type StopReason, StorageClient, type StorageFile, type StorageFileVersion, type TailOptions, type TestNodeCandidate, type TestNodeInputSource, type TestNodeRequest, type TestNodeResponse, type TextBlock, type Tool, type ToolBinding, type ToolConfirmationPayload, type ToolKind, type ToolResultPayload, type ToolService, type ToolUsePayload, type Topic, type TopicKind, type TopicService, type TranscribeStreamOptions, type TranscriptResult, type TriggerKind, type Turn, type UnreadCounts, type UpdateAgentListenerRequest, type UpdateAgentRequest, type UpdateConnectionRequest, type UpdateConnectorConnectionRequest, type UpdateGlossaryTermRequest, type UpdateLabelRequest, type UpdateLinkRequest, type UpdateMcpServerRequest, type UpdateNodeRequest, type UpdateOrganizationRequest, type UpdatePromptRequest, type UpdateRoleRequest, type UpdateToolRequest, type UpdateUserRequest, type UpdateWorkflowRequest, type User, type UserMessagePayload, UserRef$2 as UserRef, type UserRoleAssignment, UserRoleAssignmentSchema, UserSchema, type UserService, type VoiceService, type VoiceTranscriptionStream, type WebhookTriggerParams, type Workflow, WorkflowClient, type WorkflowConnection, type WorkflowContentBlock, type WorkflowExecution, type WorkflowGraph, type WorkflowNode, type WorkflowNodeType, type WorkflowStatus, type WorkflowVersion, type WorkflowVersionAuthor, type WorkflowVersionSummary, type WriteContentResponse, type WriteCredentialsRequest, buildUrl, getDefaultErrorCode, isBadRequest, isConflict, isForbidden, isNotFound, isPlatformEntity, isProteosError, isUnauthorized, parseErrorResponse, toQueryParams, toQueryString };
|
|
5441
|
+
export { AccountClient, type Action, type ActionBinding, ActionSchema, type ActionScope, ActionScopeSchema, type ActionService, type Agent, type AgentActionParams, type AgentArtifactsPayload, AgentClient, type AgentKickoff, type AgentListener, type AgentListenerService, type AgentListenerTriggerType, type AgentMessagePayload, type AgentResourceListOptions, type AgentService, type ApiErrorResponse, type AppendEventRequest, type AssignPermissionRequest, type AssignRoleRequest, type Attachment, Attribute, AuditFields, type AuthListOptions, type BatchTransactionError, BatchTransactionErrorSchema, type BatchTransactionStatus, type BatchUpsertRecordsResponse, BatchUpsertRecordsResponseSchema, type BatchUpsertTransaction, type BatchUpsertTransactionResult, BatchUpsertTransactionResultSchema, BatchUpsertTransactionSchema, type BinaryRef, 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 ConsumerGroup, type ContentBlock$1 as ContentBlock, type ContentMatch, type ContentResponse, type ContextCompactedPayload, type Conversation, ConversationClient, type ConversationParticipant, type ConversationService, type ConversationStatus, type CreateAgentListenerRequest, type CreateAgentRequest, type CreateConnectionRequest, type CreateConnectorConnectionRequest, type CreateFileMetadata, type CreateGlossaryTermRequest, type CreateLabelRequest, type CreateLinkRequest, type CreateMcpServerRequest, type CreateNodeRequest, type CreateOrganizationRequest, type CreatePromptRequest, type CreateRecordLinkRequest, type CreateRoleRequest, type CreateSessionRequest, type CreateToolRequest, type CreateUserRequest, type CreateWorkflowRequest, type CredentialSpec, type CronTriggerParams, DEFAULT_PORT, DataClient, type DispatchMeetingBotRequest, type DisplayOptions, ERROR_PORT, type EditContentRequest, type EditContentResponse, type EmptyPayload, ErrorCode, type ErrorCodeType, type ErrorPayload, type EventTriggerParams, type EventType, type EventVerb, EventsClient, type ExecutionError, type ExecutionStatus, type ExecutionTriggerContext, type FileBlock, FileRef, type FileService, type FileVersionContent, FunctionsClient, type GetExecutionDetailResponse, type GetGraphOptions, type GetNodeExecutionItemsOptions, type GetNodeExecutionItemsResponse, type GetNodeTypesResponse, type GlossaryTerm, type GlossaryTermService, type GraphService, type InlineLinkRequest, type InstallConnectionResponse, type InstallConnectorConnectionResponse, type InvokeActionResponse, type InvokeNodeMethodRequest, type InvokeNodeMethodResponse, type Item, type KickoffSource, type KickoffType, KnowledgeClient, type KnowledgeGraph, type KnowledgeGraphLink, type KnowledgeGraphNode, type KnowledgeLabel, KnowledgeLabelSchema, type KnowledgeLink, KnowledgeLinkSchema, type KnowledgeNode, type KnowledgeNodeLabel, KnowledgeNodeLabelSchema, type KnowledgeNodeMetadata, KnowledgeNodeMetadataSchema, KnowledgeNodeSchema, type KnowledgeNodeSearchResult, KnowledgeNodeSearchResultSchema, type KnowledgeRecordLink, KnowledgeRecordLinkSchema, type LabelService, type LinkService, type LinkType, type ListActionsOptions, type ListAgentListenersQuery, type ListAgentsOptions, type ListConnectionsQuery, type ListConnectorConnectionsQuery, type ListConnectorsQuery, type ListConversationsQuery, type ListEventsOptions, type ListExecutionsOptions, type ListGlossaryTermsQuery, type ListLabelsOptions, type ListLinksOptions, type ListMcpServersOptions, type ListMessagesQuery, type ListNodesOptions, ListOptions, type ListOrganizationsOptions, type ListParticipantsQuery, 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 Message, type ContentBlock as MessageContentBlock, type MessageDirection, type MessageKickoff, type MessagePreview, type MessageRecipient, type MessageService, type MessageStatus, type MessageTriggerParams, type ModelConfig, type ModelRequestEndPayload, type ModelRequestStartPayload, type ModelUsage, type NeighborDirection, type NeighborEdge, type NeighborNode, type NeighborsOptions, type NodeContentMatches, type NodeDescriptor, type NodeExecution, type NodeGroup, type NodeMethodOption, type NodeNeighborhood, NodeNeighborhoodSchema, type NodeOutline, type NodePosition, type NodeProperty, type NodeRetryPolicy, type NodeRuntime, type NodeService, type NodeStatus, type NodeType, type NodeTypeKey, type NodeTypeService, type NodeTypeStatus, type OnErrorPolicy, type Organization, OrganizationSchema, type OrganizationService, type OutcomeKickoff, type OutcomeRubric, type OutlineHeading, type OutlineRequest, type OutlineResponse, PLATFORM_ENTITIES, PLATFORM_ENTITY_SLUGS, PageIterator, type PairedItem, type ParseStatus, type Participant, type ParticipantRef, type ParticipantSource, type Permission, 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 RecordService, type RedriveResult, type ResultBlock, type Role, type RoleEntityPermission, RoleEntityPermissionSchema, RoleSchema, type RoleService, type Room, type RunWorkflowRequest, type SearchContentRequest, type SearchContentResponse, type SearchNodesRequest, type SendMessageRequest, type SendRecipient, type Session, type SessionEvent, type SessionEventEnvelope, type SessionEventsOptions, type SessionIdlePayload, type SessionService, type SessionStatus, type SessionStreamOptions, type SessionUpdatedPayload, type Skill, type SkillBundle, type SkillService, type SkillVersion, type StartMcpOAuthResponse, type StopReason, StorageClient, type StorageFile, type StorageFileVersion, type TailOptions, type TestNodeCandidate, type TestNodeInputSource, type TestNodeRequest, type TestNodeResponse, type TextBlock, type Tool, type ToolBinding, type ToolConfirmationPayload, type ToolKind, type ToolResultPayload, type ToolService, type ToolUsePayload, type Topic, type TopicKind, type TopicService, type TranscribeStreamOptions, type TranscriptResult, type TriggerKind, type Turn, type UnreadCounts, type UpdateAgentListenerRequest, type UpdateAgentRequest, type UpdateConnectionRequest, type UpdateConnectorConnectionRequest, type UpdateFileMetadata, type UpdateGlossaryTermRequest, type UpdateLabelRequest, type UpdateLinkRequest, type UpdateMcpServerRequest, type UpdateNodeRequest, type UpdateOrganizationRequest, type UpdatePromptRequest, type UpdateRoleRequest, type UpdateToolRequest, type UpdateUserRequest, type UpdateWorkflowRequest, type User, type UserMessagePayload, UserRef$2 as UserRef, type UserRoleAssignment, UserRoleAssignmentSchema, UserSchema, type UserService, type VoiceService, type VoiceTranscriptionStream, type WebhookTriggerParams, type Workflow, WorkflowClient, type WorkflowConnection, type WorkflowContentBlock, type WorkflowExecution, type WorkflowGraph, type WorkflowNode, type WorkflowNodeType, type WorkflowStatus, type WorkflowVersion, type WorkflowVersionAuthor, type WorkflowVersionSummary, type WriteContentResponse, type WriteCredentialsRequest, buildUrl, getDefaultErrorCode, isBadRequest, isConflict, isForbidden, isNotFound, isPlatformEntity, isProteosError, isUnauthorized, parseErrorResponse, toQueryParams, toQueryString };
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AuditFieldsSchema, AttributeSchema, UserRefSchema, PageIterator } from './chunk-
|
|
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-
|
|
1
|
+
import { AuditFieldsSchema, AttributeSchema, UserRefSchema, PageIterator } from './chunk-YMRMKSZL.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-YMRMKSZL.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { fetchEventSource } from '@microsoft/fetch-event-source';
|
|
5
5
|
|
|
@@ -1286,6 +1286,9 @@ var ConversationServiceImpl = class {
|
|
|
1286
1286
|
get(id) {
|
|
1287
1287
|
return this.client.request("GET", `${CONVERSATION_BASE_PATH}/conversations/${encodeURIComponent(id)}`);
|
|
1288
1288
|
}
|
|
1289
|
+
update(id, request) {
|
|
1290
|
+
return this.client.request("PATCH", `${CONVERSATION_BASE_PATH}/conversations/${encodeURIComponent(id)}`, request);
|
|
1291
|
+
}
|
|
1289
1292
|
end(id) {
|
|
1290
1293
|
return this.client.request("POST", `${CONVERSATION_BASE_PATH}/conversations/${encodeURIComponent(id)}/end`);
|
|
1291
1294
|
}
|
|
@@ -1983,7 +1986,8 @@ var FileServiceImpl = class {
|
|
|
1983
1986
|
async upload(file, options) {
|
|
1984
1987
|
const metadata = {
|
|
1985
1988
|
name: options?.name ?? file.name,
|
|
1986
|
-
content_type: options?.contentType ?? file.type ?? "application/octet-stream"
|
|
1989
|
+
content_type: options?.contentType ?? file.type ?? "application/octet-stream",
|
|
1990
|
+
...options?.publicAccess ? { public_access: options.publicAccess } : {}
|
|
1987
1991
|
};
|
|
1988
1992
|
const formData = new FormData();
|
|
1989
1993
|
formData.append("metadata", new Blob([JSON.stringify(metadata)], { type: "application/json" }));
|
|
@@ -2003,7 +2007,8 @@ var FileServiceImpl = class {
|
|
|
2003
2007
|
[
|
|
2004
2008
|
JSON.stringify({
|
|
2005
2009
|
name: metadata.name,
|
|
2006
|
-
content_type: metadata.content_type ?? "application/octet-stream"
|
|
2010
|
+
content_type: metadata.content_type ?? "application/octet-stream",
|
|
2011
|
+
...metadata.public_access ? { public_access: metadata.public_access } : {}
|
|
2007
2012
|
})
|
|
2008
2013
|
],
|
|
2009
2014
|
{ type: "application/json" }
|
|
@@ -2016,6 +2021,19 @@ var FileServiceImpl = class {
|
|
|
2016
2021
|
);
|
|
2017
2022
|
return response.data;
|
|
2018
2023
|
}
|
|
2024
|
+
async update(id, metadata) {
|
|
2025
|
+
const formData = new FormData();
|
|
2026
|
+
formData.append(
|
|
2027
|
+
"metadata",
|
|
2028
|
+
new Blob([JSON.stringify(metadata)], { type: "application/json" })
|
|
2029
|
+
);
|
|
2030
|
+
const response = await this.client.requestMultipart(
|
|
2031
|
+
"PATCH",
|
|
2032
|
+
`${FILES_BASE_PATH}/${id}`,
|
|
2033
|
+
formData
|
|
2034
|
+
);
|
|
2035
|
+
return response.data;
|
|
2036
|
+
}
|
|
2019
2037
|
async createUploadUrl(id) {
|
|
2020
2038
|
const response = await this.client.request(
|
|
2021
2039
|
"POST",
|