@proteos/sdk 0.31.0 → 0.32.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.ts CHANGED
@@ -1934,76 +1934,6 @@ interface ConnectorConnectionService {
1934
1934
  invokeMethod<T = unknown>(id: string, method: string, params?: unknown): Promise<T>;
1935
1935
  }
1936
1936
 
1937
- /** One normalized transcription update streamed back from the server. */
1938
- interface TranscriptResult {
1939
- /** The recognized text for this segment. */
1940
- transcript: string;
1941
- /** True once this segment is final and will not change. */
1942
- is_final: boolean;
1943
- /** True when the server detected end-of-speech (a natural pause). */
1944
- speech_final: boolean;
1945
- /** Recognition confidence, 0–1. */
1946
- confidence: number;
1947
- }
1948
- /** Options for opening a live transcription stream. */
1949
- interface TranscribeStreamOptions {
1950
- /** BCP-47 language code (e.g. `en`, `de`). Defaults to the server's default. */
1951
- language?: string;
1952
- /** Stream interim (non-final) results as audio arrives. Defaults to `true`. */
1953
- interimResults?: boolean;
1954
- /** Add punctuation to results. Defaults to `true`. */
1955
- punctuate?: boolean;
1956
- /** Format entities (numbers, dates…) in results. Defaults to `true`. */
1957
- smartFormat?: boolean;
1958
- /**
1959
- * Raw audio encoding (e.g. `linear16`). Omit for containerized audio
1960
- * (WebM/Opus from MediaRecorder), which the server auto-detects.
1961
- */
1962
- encoding?: string;
1963
- /** Sample rate in Hz. Required only when `encoding` is set. */
1964
- sampleRate?: number;
1965
- /** Called for each transcription result. */
1966
- onResult: (result: TranscriptResult) => void;
1967
- /** Called if the stream errors. */
1968
- onError?: (error: Event) => void;
1969
- /** Called when the stream closes (either side). */
1970
- onClose?: () => void;
1971
- }
1972
- /** A live transcription session: push audio in, results arrive via `onResult`. */
1973
- interface VoiceTranscriptionStream {
1974
- /** Forward one audio chunk (binary) to the server. */
1975
- sendAudio(chunk: Blob | ArrayBufferView | ArrayBuffer): void;
1976
- /** Ask the server to flush pending results without closing the stream. */
1977
- finalize(): void;
1978
- /** Close the stream. */
1979
- close(): void;
1980
- }
1981
- /**
1982
- * Service for realtime speech-to-text on conversation-service.
1983
- *
1984
- * Transcription is a WebSocket: open a stream, push audio chunks, and receive
1985
- * {@link TranscriptResult}s. The transcription provider is a server-side concern
1986
- * and is not exposed here.
1987
- *
1988
- * @example
1989
- * ```ts
1990
- * const stream = await agent.voice.transcribeStream({
1991
- * onResult: (r) => console.log(r.transcript, r.is_final),
1992
- * });
1993
- * recorder.ondataavailable = (e) => stream.sendAudio(e.data);
1994
- * // …later: stream.finalize(); stream.close();
1995
- * ```
1996
- */
1997
- interface VoiceService {
1998
- /**
1999
- * Opens a live transcription stream and resolves once it is connected.
2000
- *
2001
- * @param options - Stream configuration and result/lifecycle callbacks
2002
- * @returns A handle to push audio and control the stream
2003
- */
2004
- transcribeStream(options: TranscribeStreamOptions): Promise<VoiceTranscriptionStream>;
2005
- }
2006
-
2007
1937
  /**
2008
1938
  * Wire types for conversation-service (/conversations/v1) — hand-maintained
2009
1939
  * mirror of packages/go/model/conversation (snake_case, Is-prefixed booleans).
@@ -2034,10 +1964,18 @@ type ConnectorKey = 'slack' | 'gmail' | 'echo' | 'unipile-whatsapp' | 'unipile-l
2034
1964
  */
2035
1965
  type ConnectorProvider = 'native' | 'unipile' | 'ava';
2036
1966
  type MessageDirection = 'inbound' | 'outbound';
2037
- type MessageStatus = 'received' | 'pending' | 'sent' | 'failed';
1967
+ /**
1968
+ * Delivery state. `draft` = agent-prepared, awaiting human review (a human
1969
+ * sends it → pending → sent/failed, or rejects it → `rejected`, terminal).
1970
+ */
1971
+ type MessageStatus = 'received' | 'pending' | 'sent' | 'failed' | 'draft' | 'rejected';
2038
1972
  type ConnectionScope = 'org' | 'user';
2039
1973
  type ConnectionStatus = 'pending' | 'active' | 'error' | 'revoked';
2040
- type ConversationStatus = 'active' | 'ended' | 'archived';
1974
+ /**
1975
+ * `draft` marks a conversation minted BY a draft message (originate-mode
1976
+ * drafting) — hidden from the default list until the first successful send.
1977
+ */
1978
+ type ConversationStatus = 'active' | 'ended' | 'archived' | 'draft';
2041
1979
  type AgentListenerTriggerType = 'always' | 'mention' | 'channel' | 'keyword';
2042
1980
  interface UserRef {
2043
1981
  type: string;
@@ -2265,6 +2203,11 @@ interface Message {
2265
2203
  recipients?: MessageRecipient[];
2266
2204
  content: ContentBlock[];
2267
2205
  status: MessageStatus;
2206
+ /**
2207
+ * The message this one was targeted at (thread-mode send/draft anchor);
2208
+ * absent for everything else.
2209
+ */
2210
+ reply_to_message_id?: string;
2268
2211
  occurred_at: string;
2269
2212
  /** Read-time projection; absent/empty on channels without reactions. */
2270
2213
  reactions?: Reaction[];
@@ -2375,6 +2318,30 @@ interface SendMessageRequest {
2375
2318
  */
2376
2319
  attachments?: FileRef[];
2377
2320
  }
2321
+ /**
2322
+ * Edits a status=draft message — full replacement of the editable surface
2323
+ * (PUT semantics; always send the complete state, including attachments you
2324
+ * want to keep). The addressing MODE is immutable. `subject` applies only
2325
+ * while the draft's conversation is itself status=draft (originate drafts) —
2326
+ * replies derive their subject from the thread.
2327
+ *
2328
+ * Recipient groups are PRESENCE-based: a group that is present (including an
2329
+ * explicit empty `[]` — a clear) replaces the stored recipients from exactly
2330
+ * the provided groups; omitting all three keeps the stored recipients. On any
2331
+ * recipient edit, send all three groups.
2332
+ */
2333
+ interface UpdateDraftRequest {
2334
+ to?: SendRecipient[];
2335
+ /** Email only. */
2336
+ cc?: SendRecipient[];
2337
+ /** Email only. */
2338
+ bcc?: SendRecipient[];
2339
+ subject?: string;
2340
+ /** May be empty when attachments are present. */
2341
+ content: ContentBlock[];
2342
+ /** The complete attachment set to keep (omitting one removes its row). */
2343
+ attachments?: FileRef[];
2344
+ }
2378
2345
  interface CreateAgentListenerRequest {
2379
2346
  connection_id?: string;
2380
2347
  conversation_id?: string;
@@ -2844,6 +2811,76 @@ interface DispatchMeetingBotRequest {
2844
2811
  language?: string;
2845
2812
  }
2846
2813
 
2814
+ /** One normalized transcription update streamed back from the server. */
2815
+ interface TranscriptResult {
2816
+ /** The recognized text for this segment. */
2817
+ transcript: string;
2818
+ /** True once this segment is final and will not change. */
2819
+ is_final: boolean;
2820
+ /** True when the server detected end-of-speech (a natural pause). */
2821
+ speech_final: boolean;
2822
+ /** Recognition confidence, 0–1. */
2823
+ confidence: number;
2824
+ }
2825
+ /** Options for opening a live transcription stream. */
2826
+ interface TranscribeStreamOptions {
2827
+ /** BCP-47 language code (e.g. `en`, `de`). Defaults to the server's default. */
2828
+ language?: string;
2829
+ /** Stream interim (non-final) results as audio arrives. Defaults to `true`. */
2830
+ interimResults?: boolean;
2831
+ /** Add punctuation to results. Defaults to `true`. */
2832
+ punctuate?: boolean;
2833
+ /** Format entities (numbers, dates…) in results. Defaults to `true`. */
2834
+ smartFormat?: boolean;
2835
+ /**
2836
+ * Raw audio encoding (e.g. `linear16`). Omit for containerized audio
2837
+ * (WebM/Opus from MediaRecorder), which the server auto-detects.
2838
+ */
2839
+ encoding?: string;
2840
+ /** Sample rate in Hz. Required only when `encoding` is set. */
2841
+ sampleRate?: number;
2842
+ /** Called for each transcription result. */
2843
+ onResult: (result: TranscriptResult) => void;
2844
+ /** Called if the stream errors. */
2845
+ onError?: (error: Event) => void;
2846
+ /** Called when the stream closes (either side). */
2847
+ onClose?: () => void;
2848
+ }
2849
+ /** A live transcription session: push audio in, results arrive via `onResult`. */
2850
+ interface VoiceTranscriptionStream {
2851
+ /** Forward one audio chunk (binary) to the server. */
2852
+ sendAudio(chunk: Blob | ArrayBufferView | ArrayBuffer): void;
2853
+ /** Ask the server to flush pending results without closing the stream. */
2854
+ finalize(): void;
2855
+ /** Close the stream. */
2856
+ close(): void;
2857
+ }
2858
+ /**
2859
+ * Service for realtime speech-to-text on conversation-service.
2860
+ *
2861
+ * Transcription is a WebSocket: open a stream, push audio chunks, and receive
2862
+ * {@link TranscriptResult}s. The transcription provider is a server-side concern
2863
+ * and is not exposed here.
2864
+ *
2865
+ * @example
2866
+ * ```ts
2867
+ * const stream = await agent.voice.transcribeStream({
2868
+ * onResult: (r) => console.log(r.transcript, r.is_final),
2869
+ * });
2870
+ * recorder.ondataavailable = (e) => stream.sendAudio(e.data);
2871
+ * // …later: stream.finalize(); stream.close();
2872
+ * ```
2873
+ */
2874
+ interface VoiceService {
2875
+ /**
2876
+ * Opens a live transcription stream and resolves once it is connected.
2877
+ *
2878
+ * @param options - Stream configuration and result/lifecycle callbacks
2879
+ * @returns A handle to push audio and control the stream
2880
+ */
2881
+ transcribeStream(options: TranscribeStreamOptions): Promise<VoiceTranscriptionStream>;
2882
+ }
2883
+
2847
2884
  /**
2848
2885
  * Facade for conversation-service: connections (channel-connector instances),
2849
2886
  * conversations + messages (THE platform Message), and agent listeners.
@@ -2936,10 +2973,27 @@ interface ConversationService {
2936
2973
  /** Unread-conversation counts for the requesting user (envelope + badges). */
2937
2974
  unreadCounts(): Promise<UnreadCounts>;
2938
2975
  }
2939
- /** Messages within a conversation (ordered by occurred_at) + outbound send + reactions. */
2976
+ /** Messages within a conversation (ordered by occurred_at) + outbound send + drafts + reactions. */
2940
2977
  interface MessageService {
2941
2978
  listByConversation(conversationId: string, query?: ListMessagesQuery): Promise<ListResponse<Message>>;
2979
+ /** One message with its read-time projections (reactions, attachments). */
2980
+ get(messageId: string): Promise<Message>;
2942
2981
  send(request: SendMessageRequest): Promise<Message>;
2982
+ /**
2983
+ * Store an outbound message for human review (status=draft) — same request
2984
+ * shape as send, nothing reaches the connector until sendDraft. Originate
2985
+ * mode mints a hidden status=draft conversation.
2986
+ */
2987
+ draft(request: SendMessageRequest): Promise<Message>;
2988
+ /**
2989
+ * Replace a draft's editable surface (full state, PUT semantics). 409
2990
+ * `draft_not_editable` once the draft was sent or rejected.
2991
+ */
2992
+ updateDraft(messageId: string, request: UpdateDraftRequest): Promise<Message>;
2993
+ /** Deliver a draft (draft → pending → sent/failed). 409 on a lost race. */
2994
+ sendDraft(messageId: string): Promise<Message>;
2995
+ /** Decline a draft (draft → rejected, terminal). 409 on a lost race. */
2996
+ rejectDraft(messageId: string): Promise<Message>;
2943
2997
  /** Aggregated reactions on one message (also rides on Message.reactions). */
2944
2998
  getReactions(messageId: string): Promise<Reaction[]>;
2945
2999
  /**
@@ -4219,7 +4273,7 @@ declare const KnowledgeNodeMetadataSchema: z.ZodObject<{
4219
4273
  }>;
4220
4274
  }, "strip", z.ZodTypeAny, {
4221
4275
  type: "file" | "markdown" | "url";
4222
- status: "archived" | "draft" | "published";
4276
+ status: "draft" | "archived" | "published";
4223
4277
  id: string;
4224
4278
  created_at: string;
4225
4279
  updated_at: string;
@@ -4242,7 +4296,7 @@ declare const KnowledgeNodeMetadataSchema: z.ZodObject<{
4242
4296
  valid_until?: string | null | undefined;
4243
4297
  }, {
4244
4298
  type: "file" | "markdown" | "url";
4245
- status: "archived" | "draft" | "published";
4299
+ status: "draft" | "archived" | "published";
4246
4300
  id: string;
4247
4301
  created_at: string;
4248
4302
  updated_at: string;
@@ -4304,7 +4358,7 @@ declare const KnowledgeNodeSchema: z.ZodObject<{
4304
4358
  content: z.ZodString;
4305
4359
  }, "strip", z.ZodTypeAny, {
4306
4360
  type: "file" | "markdown" | "url";
4307
- status: "archived" | "draft" | "published";
4361
+ status: "draft" | "archived" | "published";
4308
4362
  id: string;
4309
4363
  created_at: string;
4310
4364
  updated_at: string;
@@ -4328,7 +4382,7 @@ declare const KnowledgeNodeSchema: z.ZodObject<{
4328
4382
  valid_until?: string | null | undefined;
4329
4383
  }, {
4330
4384
  type: "file" | "markdown" | "url";
4331
- status: "archived" | "draft" | "published";
4385
+ status: "draft" | "archived" | "published";
4332
4386
  id: string;
4333
4387
  created_at: string;
4334
4388
  updated_at: string;
@@ -4391,7 +4445,7 @@ declare const KnowledgeNodeSearchResultSchema: z.ZodObject<{
4391
4445
  score: z.ZodNumber;
4392
4446
  }, "strip", z.ZodTypeAny, {
4393
4447
  type: "file" | "markdown" | "url";
4394
- status: "archived" | "draft" | "published";
4448
+ status: "draft" | "archived" | "published";
4395
4449
  id: string;
4396
4450
  created_at: string;
4397
4451
  updated_at: string;
@@ -4415,7 +4469,7 @@ declare const KnowledgeNodeSearchResultSchema: z.ZodObject<{
4415
4469
  valid_until?: string | null | undefined;
4416
4470
  }, {
4417
4471
  type: "file" | "markdown" | "url";
4418
- status: "archived" | "draft" | "published";
4472
+ status: "draft" | "archived" | "published";
4419
4473
  id: string;
4420
4474
  created_at: string;
4421
4475
  updated_at: string;
@@ -4654,13 +4708,13 @@ declare const NodeNeighborhoodSchema: z.ZodObject<{
4654
4708
  distance: z.ZodNumber;
4655
4709
  }, "strip", z.ZodTypeAny, {
4656
4710
  type: "file" | "markdown" | "url";
4657
- status: "archived" | "draft" | "published";
4711
+ status: "draft" | "archived" | "published";
4658
4712
  id: string;
4659
4713
  title: string;
4660
4714
  distance: number;
4661
4715
  }, {
4662
4716
  type: "file" | "markdown" | "url";
4663
- status: "archived" | "draft" | "published";
4717
+ status: "draft" | "archived" | "published";
4664
4718
  id: string;
4665
4719
  title: string;
4666
4720
  distance: number;
@@ -4684,7 +4738,7 @@ declare const NodeNeighborhoodSchema: z.ZodObject<{
4684
4738
  }, "strip", z.ZodTypeAny, {
4685
4739
  nodes: {
4686
4740
  type: "file" | "markdown" | "url";
4687
- status: "archived" | "draft" | "published";
4741
+ status: "draft" | "archived" | "published";
4688
4742
  id: string;
4689
4743
  title: string;
4690
4744
  distance: number;
@@ -4698,7 +4752,7 @@ declare const NodeNeighborhoodSchema: z.ZodObject<{
4698
4752
  }, {
4699
4753
  nodes: {
4700
4754
  type: "file" | "markdown" | "url";
4701
- status: "archived" | "draft" | "published";
4755
+ status: "draft" | "archived" | "published";
4702
4756
  id: string;
4703
4757
  title: string;
4704
4758
  distance: number;
@@ -5693,4 +5747,4 @@ declare class WorkflowClient {
5693
5747
  constructor(client: ProteosClient);
5694
5748
  }
5695
5749
 
5696
- export { AccountClient, type Action, type ActionBinding, ActionSchema, type ActionScope, ActionScopeSchema, type ActionService, type AddressFilterConfig, type Agent, type AgentActionParams, type AgentArtifactsPayload, AgentClient, type AgentKickoff, type AgentListener, type AgentListenerService, type AgentListenerTriggerType, type AgentMessagePayload, type AgentResourceListOptions, type AgentService, type AllFilterConfig, type ApiErrorResponse, type AppendEventRequest, type AssignPermissionRequest, type AssignRoleRequest, type AttachContactAddressRequest, type Attachment, Attribute, AuditFields, type AuthListOptions, type AutomatedFilterConfig, type AutomatedSignal, type BatchTransactionError, BatchTransactionErrorSchema, type BatchTransactionStatus, type BatchUpsertRecordsResponse, BatchUpsertRecordsResponseSchema, type BatchUpsertTransaction, type BatchUpsertTransactionResult, BatchUpsertTransactionResultSchema, BatchUpsertTransactionSchema, type BinaryRef, type BlockContactRequest, type Channel, type ClientEventType, type ClientToolSchema, type Connection, type ConnectionCredentials, type ConnectionEndpoint, type ConnectionScope, type ConnectionService, type ConnectionStatus, type Connector, ConnectorClient, type ConnectorConnection, type ConnectionScope$1 as ConnectorConnectionScope, type ConnectionStatus$1 as ConnectorConnectionStatus, type ConnectionTokenResponse as ConnectorConnectionTokenResponse, type CredentialKind as ConnectorCredentialKind, type ConnectorKey, type ConnectorMethod, type ConnectorProvider, type ConsentStatus, type ConsumerGroup, type Contact, type ContactAddress, type ContactAddressKind, type ContactAddressSource, type ContactErasureRequest, type ContactMergeProposal, type ContactRef, type ContactService, type ContactSource, type ContactStatus, type ContentBlock$1 as ContentBlock, type ContentMatch, type ContentResponse, type ContextCompactedPayload, type Conversation, ConversationClient, type ConversationFilter, type ConversationFilterAction, type ConversationFilterConfig, type ConversationFilterEvent, type ConversationFilterService, type ConversationFilterType, type ConversationParticipant, type ConversationService, type ConversationStatus, type CreateAgentListenerRequest, type CreateAgentRequest, type CreateConnectionRequest, type CreateConnectorConnectionRequest, type CreateConversationFilterRequest, type CreateFileMetadata, type CreateGlossaryTermRequest, type CreateLabelRequest, type CreateLinkRequest, type CreateMcpServerRequest, type CreateNodeRequest, type CreateOrganizationRequest, type CreatePromptRequest, type CreateRecordLinkRequest, type CreateRoleRequest, type CreateSessionRequest, type CreateToolRequest, type CreateUserRequest, type CreateWorkflowRequest, type CredentialSpec, type CronTriggerParams, DEFAULT_PORT, DataClient, type DispatchMeetingBotRequest, type DisplayOptions, type DomainFilterConfig, ERROR_PORT, type EditContentRequest, type EditContentResponse, type EmptyPayload, type ErasureRequestStatus, ErrorCode, type ErrorCodeType, type ErrorPayload, type EventTriggerParams, type EventType, type EventVerb, EventsClient, type ExecutionError, type ExecutionStatus, type ExecutionTriggerContext, type FileBlock, FileRef, type FileService, type FileVersionContent, type FilterMatchOn, FunctionsClient, type GetExecutionDetailResponse, type GetGraphOptions, type GetNodeExecutionItemsOptions, type GetNodeExecutionItemsResponse, type GetNodeTypesResponse, type GlossaryTerm, type GlossaryTermService, type GraphService, type InlineLinkRequest, type InstallConnectionResponse, type InstallConnectorConnectionResponse, type InternalConversationsFilterConfig, type InvokeActionResponse, type InvokeNodeMethodRequest, type InvokeNodeMethodResponse, type Item, type KickoffSource, type KickoffType, KnowledgeClient, type KnowledgeGraph, type KnowledgeGraphLink, type KnowledgeGraphNode, type KnowledgeLabel, KnowledgeLabelSchema, type KnowledgeLink, KnowledgeLinkSchema, type KnowledgeNode, type KnowledgeNodeLabel, KnowledgeNodeLabelSchema, type KnowledgeNodeMetadata, KnowledgeNodeMetadataSchema, KnowledgeNodeSchema, type KnowledgeNodeSearchResult, KnowledgeNodeSearchResultSchema, type KnowledgeRecordLink, KnowledgeRecordLinkSchema, type LabelService, type LinkService, type LinkType, type ListActionsOptions, type ListAgentListenersQuery, type ListAgentsOptions, type ListConnectionsQuery, type ListConnectorConnectionsQuery, type ListConnectorsQuery, type ListContactAddressesQuery, type ListContactMergeProposalsQuery, type ListContactsQuery, type ListConversationFilterEventsQuery, type ListConversationFiltersQuery, type ListConversationsQuery, type ListEventsOptions, type ListExecutionsOptions, type ListGlossaryTermsQuery, type ListLabelsOptions, type ListLinksOptions, type ListMcpServersOptions, type ListMessagesQuery, type ListNodesOptions, ListOptions, type ListOrganizationsOptions, type ListPromptsOptions, type ListRecordLinksOptions, type ListRecordsOptions, type ListResponse, ListResult, type ListRolePermissionsOptions, type ListRolesOptions, type ListRoomsQuery, type ListSessionsOptions, type ListSkillsOptions, type ListToolsOptions, type ListUserRoleAssignmentsOptions, type ListUsersOptions, type ListWorkflowsOptions, type ManualTriggerParams, type MatchMode, type McpBinding, type McpConnectionState, type McpConnectionStatus, type McpServer, type McpServerAuth, type McpServerOAuth, type McpServerService, type McpToolSummary, type MeService, type MeetingService, type MergeContactsRequest, type MergeProposalStatus, type Message, type ContentBlock as MessageContentBlock, type MessageDirection, type MessageKickoff, type MessagePreview, type MessageRecipient, type MessageService, type MessageStatus, type MessageTriggerParams, type ModelConfig, type ModelRequestEndPayload, type ModelRequestStartPayload, type ModelUsage, type NeighborDirection, type NeighborEdge, type NeighborNode, type NeighborsOptions, type NodeContentMatches, type NodeDescriptor, type NodeExecution, type NodeGroup, type NodeMethodOption, type NodeNeighborhood, NodeNeighborhoodSchema, type NodeOutline, type NodePosition, type NodeProperty, type NodeRetryPolicy, type NodeRuntime, type NodeService, type NodeStatus, type NodeType, type NodeTypeKey, type NodeTypeService, type NodeTypeStatus, type OnErrorPolicy, type Organization, OrganizationSchema, type OrganizationService, type OutcomeKickoff, type OutcomeRubric, type OutlineHeading, type OutlineRequest, type OutlineResponse, PLATFORM_ENTITIES, PLATFORM_ENTITY_SLUGS, PageIterator, type PairedItem, type ParseStatus, type Permission, type PermissionEventSource, type PermissionEventType, type PlatformEntity, type PlatformEvent, type PortSpec, type Prompt, type PromptService, type PromptVersion, type PropertyOption, type PropertyType, ProteosClient, ProteosError, PublicAccessOperation, type PublishEventRequest, type QueryExecuteMeta, type QueryExecuteResponse, type QueryObject, type QueryRow, type QueryService, type QueryValidateMeta, type QueryValidateResponse, type QueryValue, type Reaction, type ReactionCapability, type ReactionOption, type ReactionSetKind, type ReasoningPayload, type RecipientKind, type RecipientRole, type RecordData, type RecordLinkService, type RecordPermissionEventRequest, type RecordService, type RedriveResult, type ResultBlock, type Role, type RoleBasedFilterConfig, type RoleEntityPermission, RoleEntityPermissionSchema, RoleSchema, type RoleService, type Room, type RunWorkflowRequest, type SearchContentRequest, type SearchContentResponse, type SearchNodesRequest, type SendMessageRequest, type SendRecipient, type Session, type SessionEvent, type SessionEventEnvelope, type SessionEventsOptions, type SessionIdlePayload, type SessionService, type SessionStatus, type SessionStreamOptions, type SessionUpdatedPayload, type Skill, type SkillBundle, type SkillService, type SkillVersion, type StartMcpOAuthResponse, type StopReason, StorageClient, type StorageFile, type StorageFileVersion, type TailOptions, type TestNodeCandidate, type TestNodeInputSource, type TestNodeRequest, type TestNodeResponse, type TextBlock, type Tool, type ToolBinding, type ToolConfirmationPayload, type ToolKind, type ToolResultPayload, type ToolService, type ToolUsePayload, type Topic, type TopicKind, type TopicService, type TranscribeStreamOptions, type TranscriptResult, type TriggerKind, type Turn, type UnreadCounts, type UpdateAgentListenerRequest, type UpdateAgentRequest, type UpdateConnectionRequest, type UpdateConnectorConnectionRequest, type UpdateContactRequest, type UpdateConversationFilterRequest, type UpdateFileMetadata, type UpdateGlossaryTermRequest, type UpdateLabelRequest, type UpdateLinkRequest, type UpdateMcpServerRequest, type UpdateNodeRequest, type UpdateOrganizationRequest, type UpdatePromptRequest, type UpdateRoleRequest, type UpdateToolRequest, type UpdateUserRequest, type UpdateWorkflowRequest, type User, type UserMessagePayload, UserRef$2 as UserRef, type UserRoleAssignment, UserRoleAssignmentSchema, UserSchema, type UserService, type VoiceService, type VoiceTranscriptionStream, type WebhookTriggerParams, type Workflow, WorkflowClient, type WorkflowConnection, type WorkflowContentBlock, type WorkflowExecution, type WorkflowGraph, type WorkflowNode, type WorkflowNodeType, type WorkflowStatus, type WorkflowVersion, type WorkflowVersionAuthor, type WorkflowVersionSummary, type WriteContentResponse, type WriteCredentialsRequest, buildUrl, getDefaultErrorCode, isBadRequest, isConflict, isForbidden, isNotFound, isPlatformEntity, isProteosError, isUnauthorized, parseErrorResponse, toQueryParams, toQueryString };
5750
+ export { AccountClient, type Action, type ActionBinding, ActionSchema, type ActionScope, ActionScopeSchema, type ActionService, type AddressFilterConfig, type Agent, type AgentActionParams, type AgentArtifactsPayload, AgentClient, type AgentKickoff, type AgentListener, type AgentListenerService, type AgentListenerTriggerType, type AgentMessagePayload, type AgentResourceListOptions, type AgentService, type AllFilterConfig, type ApiErrorResponse, type AppendEventRequest, type AssignPermissionRequest, type AssignRoleRequest, type AttachContactAddressRequest, type Attachment, Attribute, AuditFields, type AuthListOptions, type AutomatedFilterConfig, type AutomatedSignal, type BatchTransactionError, BatchTransactionErrorSchema, type BatchTransactionStatus, type BatchUpsertRecordsResponse, BatchUpsertRecordsResponseSchema, type BatchUpsertTransaction, type BatchUpsertTransactionResult, BatchUpsertTransactionResultSchema, BatchUpsertTransactionSchema, type BinaryRef, type BlockContactRequest, type Channel, type ClientEventType, type ClientToolSchema, type Connection, type ConnectionCredentials, type ConnectionEndpoint, type ConnectionScope, type ConnectionService, type ConnectionStatus, type Connector, ConnectorClient, type ConnectorConnection, type ConnectionScope$1 as ConnectorConnectionScope, type ConnectionStatus$1 as ConnectorConnectionStatus, type ConnectionTokenResponse as ConnectorConnectionTokenResponse, type CredentialKind as ConnectorCredentialKind, type ConnectorKey, type ConnectorMethod, type ConnectorProvider, type ConsentStatus, type ConsumerGroup, type Contact, type ContactAddress, type ContactAddressKind, type ContactAddressSource, type ContactErasureRequest, type ContactMergeProposal, type ContactRef, type ContactService, type ContactSource, type ContactStatus, type ContentBlock$1 as ContentBlock, type ContentMatch, type ContentResponse, type ContextCompactedPayload, type Conversation, ConversationClient, type ConversationFilter, type ConversationFilterAction, type ConversationFilterConfig, type ConversationFilterEvent, type ConversationFilterService, type ConversationFilterType, type ConversationParticipant, type ConversationService, type ConversationStatus, type CreateAgentListenerRequest, type CreateAgentRequest, type CreateConnectionRequest, type CreateConnectorConnectionRequest, type CreateConversationFilterRequest, type CreateFileMetadata, type CreateGlossaryTermRequest, type CreateLabelRequest, type CreateLinkRequest, type CreateMcpServerRequest, type CreateNodeRequest, type CreateOrganizationRequest, type CreatePromptRequest, type CreateRecordLinkRequest, type CreateRoleRequest, type CreateSessionRequest, type CreateToolRequest, type CreateUserRequest, type CreateWorkflowRequest, type CredentialSpec, type CronTriggerParams, DEFAULT_PORT, DataClient, type DispatchMeetingBotRequest, type DisplayOptions, type DomainFilterConfig, ERROR_PORT, type EditContentRequest, type EditContentResponse, type EmptyPayload, type ErasureRequestStatus, ErrorCode, type ErrorCodeType, type ErrorPayload, type EventTriggerParams, type EventType, type EventVerb, EventsClient, type ExecutionError, type ExecutionStatus, type ExecutionTriggerContext, type FileBlock, FileRef, type FileService, type FileVersionContent, type FilterMatchOn, FunctionsClient, type GetExecutionDetailResponse, type GetGraphOptions, type GetNodeExecutionItemsOptions, type GetNodeExecutionItemsResponse, type GetNodeTypesResponse, type GlossaryTerm, type GlossaryTermService, type GraphService, type InlineLinkRequest, type InstallConnectionResponse, type InstallConnectorConnectionResponse, type InternalConversationsFilterConfig, type InvokeActionResponse, type InvokeNodeMethodRequest, type InvokeNodeMethodResponse, type Item, type KickoffSource, type KickoffType, KnowledgeClient, type KnowledgeGraph, type KnowledgeGraphLink, type KnowledgeGraphNode, type KnowledgeLabel, KnowledgeLabelSchema, type KnowledgeLink, KnowledgeLinkSchema, type KnowledgeNode, type KnowledgeNodeLabel, KnowledgeNodeLabelSchema, type KnowledgeNodeMetadata, KnowledgeNodeMetadataSchema, KnowledgeNodeSchema, type KnowledgeNodeSearchResult, KnowledgeNodeSearchResultSchema, type KnowledgeRecordLink, KnowledgeRecordLinkSchema, type LabelService, type LinkService, type LinkType, type ListActionsOptions, type ListAgentListenersQuery, type ListAgentsOptions, type ListConnectionsQuery, type ListConnectorConnectionsQuery, type ListConnectorsQuery, type ListContactAddressesQuery, type ListContactMergeProposalsQuery, type ListContactsQuery, type ListConversationFilterEventsQuery, type ListConversationFiltersQuery, type ListConversationsQuery, type ListEventsOptions, type ListExecutionsOptions, type ListGlossaryTermsQuery, type ListLabelsOptions, type ListLinksOptions, type ListMcpServersOptions, type ListMessagesQuery, type ListNodesOptions, ListOptions, type ListOrganizationsOptions, type ListPromptsOptions, type ListRecordLinksOptions, type ListRecordsOptions, type ListResponse, ListResult, type ListRolePermissionsOptions, type ListRolesOptions, type ListRoomsQuery, type ListSessionsOptions, type ListSkillsOptions, type ListToolsOptions, type ListUserRoleAssignmentsOptions, type ListUsersOptions, type ListWorkflowsOptions, type ManualTriggerParams, type MatchMode, type McpBinding, type McpConnectionState, type McpConnectionStatus, type McpServer, type McpServerAuth, type McpServerOAuth, type McpServerService, type McpToolSummary, type MeService, type MeetingService, type MergeContactsRequest, type MergeProposalStatus, type Message, type ContentBlock as MessageContentBlock, type MessageDirection, type MessageKickoff, type MessagePreview, type MessageRecipient, type MessageService, type MessageStatus, type MessageTriggerParams, type ModelConfig, type ModelRequestEndPayload, type ModelRequestStartPayload, type ModelUsage, type NeighborDirection, type NeighborEdge, type NeighborNode, type NeighborsOptions, type NodeContentMatches, type NodeDescriptor, type NodeExecution, type NodeGroup, type NodeMethodOption, type NodeNeighborhood, NodeNeighborhoodSchema, type NodeOutline, type NodePosition, type NodeProperty, type NodeRetryPolicy, type NodeRuntime, type NodeService, type NodeStatus, type NodeType, type NodeTypeKey, type NodeTypeService, type NodeTypeStatus, type OnErrorPolicy, type Organization, OrganizationSchema, type OrganizationService, type OutcomeKickoff, type OutcomeRubric, type OutlineHeading, type OutlineRequest, type OutlineResponse, PLATFORM_ENTITIES, PLATFORM_ENTITY_SLUGS, PageIterator, type PairedItem, type ParseStatus, type Permission, type PermissionEventSource, type PermissionEventType, type PlatformEntity, type PlatformEvent, type PortSpec, type Prompt, type PromptService, type PromptVersion, type PropertyOption, type PropertyType, ProteosClient, ProteosError, PublicAccessOperation, type PublishEventRequest, type QueryExecuteMeta, type QueryExecuteResponse, type QueryObject, type QueryRow, type QueryService, type QueryValidateMeta, type QueryValidateResponse, type QueryValue, type Reaction, type ReactionCapability, type ReactionOption, type ReactionSetKind, type ReasoningPayload, type RecipientKind, type RecipientRole, type RecordData, type RecordLinkService, type RecordPermissionEventRequest, type RecordService, type RedriveResult, type ResultBlock, type Role, type RoleBasedFilterConfig, type RoleEntityPermission, RoleEntityPermissionSchema, RoleSchema, type RoleService, type Room, type RunWorkflowRequest, type SearchContentRequest, type SearchContentResponse, type SearchNodesRequest, type SendMessageRequest, type SendRecipient, type Session, type SessionEvent, type SessionEventEnvelope, type SessionEventsOptions, type SessionIdlePayload, type SessionService, type SessionStatus, type SessionStreamOptions, type SessionUpdatedPayload, type Skill, type SkillBundle, type SkillService, type SkillVersion, type StartMcpOAuthResponse, type StopReason, StorageClient, type StorageFile, type StorageFileVersion, type TailOptions, type TestNodeCandidate, type TestNodeInputSource, type TestNodeRequest, type TestNodeResponse, type TextBlock, type Tool, type ToolBinding, type ToolConfirmationPayload, type ToolKind, type ToolResultPayload, type ToolService, type ToolUsePayload, type Topic, type TopicKind, type TopicService, type TranscribeStreamOptions, type TranscriptResult, type TriggerKind, type Turn, type UnreadCounts, type UpdateAgentListenerRequest, type UpdateAgentRequest, type UpdateConnectionRequest, type UpdateConnectorConnectionRequest, type UpdateContactRequest, type UpdateConversationFilterRequest, type 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 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
@@ -1240,10 +1240,16 @@ var MeetingServiceImpl = class {
1240
1240
  return this.client.request("POST", `${CONVERSATION_BASE_PATH}/meetings`, request);
1241
1241
  }
1242
1242
  remove(conversationId) {
1243
- return this.client.request("DELETE", `${CONVERSATION_BASE_PATH}/meetings/${encodeURIComponent(conversationId)}`);
1243
+ return this.client.request(
1244
+ "DELETE",
1245
+ `${CONVERSATION_BASE_PATH}/meetings/${encodeURIComponent(conversationId)}`
1246
+ );
1244
1247
  }
1245
1248
  summarize(conversationId) {
1246
- return this.client.request("POST", `${CONVERSATION_BASE_PATH}/meetings/${encodeURIComponent(conversationId)}/summarize`);
1249
+ return this.client.request(
1250
+ "POST",
1251
+ `${CONVERSATION_BASE_PATH}/meetings/${encodeURIComponent(conversationId)}/summarize`
1252
+ );
1247
1253
  }
1248
1254
  };
1249
1255
  var ConnectionServiceImpl = class {
@@ -1255,19 +1261,32 @@ var ConnectionServiceImpl = class {
1255
1261
  return this.client.requestWithQuery("GET", `${CONVERSATION_BASE_PATH}/connections`, query);
1256
1262
  }
1257
1263
  get(id) {
1258
- return this.client.request("GET", `${CONVERSATION_BASE_PATH}/connections/${encodeURIComponent(id)}`);
1264
+ return this.client.request(
1265
+ "GET",
1266
+ `${CONVERSATION_BASE_PATH}/connections/${encodeURIComponent(id)}`
1267
+ );
1259
1268
  }
1260
1269
  create(request) {
1261
1270
  return this.client.request("POST", `${CONVERSATION_BASE_PATH}/connections`, request);
1262
1271
  }
1263
1272
  update(id, request) {
1264
- return this.client.request("PATCH", `${CONVERSATION_BASE_PATH}/connections/${encodeURIComponent(id)}`, request);
1273
+ return this.client.request(
1274
+ "PATCH",
1275
+ `${CONVERSATION_BASE_PATH}/connections/${encodeURIComponent(id)}`,
1276
+ request
1277
+ );
1265
1278
  }
1266
1279
  async delete(id) {
1267
- await this.client.request("DELETE", `${CONVERSATION_BASE_PATH}/connections/${encodeURIComponent(id)}`);
1280
+ await this.client.request(
1281
+ "DELETE",
1282
+ `${CONVERSATION_BASE_PATH}/connections/${encodeURIComponent(id)}`
1283
+ );
1268
1284
  }
1269
1285
  install(id) {
1270
- return this.client.request("POST", `${CONVERSATION_BASE_PATH}/connections/${encodeURIComponent(id)}/install`);
1286
+ return this.client.request(
1287
+ "POST",
1288
+ `${CONVERSATION_BASE_PATH}/connections/${encodeURIComponent(id)}/install`
1289
+ );
1271
1290
  }
1272
1291
  listContactAddresses(connectionId, query = {}) {
1273
1292
  return this.client.requestWithQuery(
@@ -1293,10 +1312,17 @@ var ContactServiceImpl = class {
1293
1312
  return this.client.requestWithQuery("GET", `${CONVERSATION_BASE_PATH}/contacts`, query);
1294
1313
  }
1295
1314
  get(id) {
1296
- return this.client.request("GET", `${CONVERSATION_BASE_PATH}/contacts/${encodeURIComponent(id)}`);
1315
+ return this.client.request(
1316
+ "GET",
1317
+ `${CONVERSATION_BASE_PATH}/contacts/${encodeURIComponent(id)}`
1318
+ );
1297
1319
  }
1298
1320
  update(id, request) {
1299
- return this.client.request("PATCH", `${CONVERSATION_BASE_PATH}/contacts/${encodeURIComponent(id)}`, request);
1321
+ return this.client.request(
1322
+ "PATCH",
1323
+ `${CONVERSATION_BASE_PATH}/contacts/${encodeURIComponent(id)}`,
1324
+ request
1325
+ );
1300
1326
  }
1301
1327
  attachAddress(contactId, request) {
1302
1328
  return this.client.request(
@@ -1352,7 +1378,11 @@ var ContactServiceImpl = class {
1352
1378
  );
1353
1379
  }
1354
1380
  listMergeProposals(query = {}) {
1355
- return this.client.requestWithQuery("GET", `${CONVERSATION_BASE_PATH}/contact-merge-proposals`, query);
1381
+ return this.client.requestWithQuery(
1382
+ "GET",
1383
+ `${CONVERSATION_BASE_PATH}/contact-merge-proposals`,
1384
+ query
1385
+ );
1356
1386
  }
1357
1387
  approveMergeProposal(proposalId) {
1358
1388
  return this.client.request(
@@ -1376,19 +1406,35 @@ var ConversationServiceImpl = class {
1376
1406
  return this.client.requestWithQuery("GET", `${CONVERSATION_BASE_PATH}/conversations`, query);
1377
1407
  }
1378
1408
  get(id) {
1379
- return this.client.request("GET", `${CONVERSATION_BASE_PATH}/conversations/${encodeURIComponent(id)}`);
1409
+ return this.client.request(
1410
+ "GET",
1411
+ `${CONVERSATION_BASE_PATH}/conversations/${encodeURIComponent(id)}`
1412
+ );
1380
1413
  }
1381
1414
  update(id, request) {
1382
- return this.client.request("PATCH", `${CONVERSATION_BASE_PATH}/conversations/${encodeURIComponent(id)}`, request);
1415
+ return this.client.request(
1416
+ "PATCH",
1417
+ `${CONVERSATION_BASE_PATH}/conversations/${encodeURIComponent(id)}`,
1418
+ request
1419
+ );
1383
1420
  }
1384
1421
  end(id) {
1385
- return this.client.request("POST", `${CONVERSATION_BASE_PATH}/conversations/${encodeURIComponent(id)}/end`);
1422
+ return this.client.request(
1423
+ "POST",
1424
+ `${CONVERSATION_BASE_PATH}/conversations/${encodeURIComponent(id)}/end`
1425
+ );
1386
1426
  }
1387
1427
  markRead(id) {
1388
- return this.client.request("POST", `${CONVERSATION_BASE_PATH}/conversations/${encodeURIComponent(id)}/read`);
1428
+ return this.client.request(
1429
+ "POST",
1430
+ `${CONVERSATION_BASE_PATH}/conversations/${encodeURIComponent(id)}/read`
1431
+ );
1389
1432
  }
1390
1433
  markUnread(id) {
1391
- return this.client.request("DELETE", `${CONVERSATION_BASE_PATH}/conversations/${encodeURIComponent(id)}/read`);
1434
+ return this.client.request(
1435
+ "DELETE",
1436
+ `${CONVERSATION_BASE_PATH}/conversations/${encodeURIComponent(id)}/read`
1437
+ );
1392
1438
  }
1393
1439
  unreadCounts() {
1394
1440
  return this.client.request("GET", `${CONVERSATION_BASE_PATH}/conversations/unread-counts`);
@@ -1406,9 +1452,37 @@ var MessageServiceImpl = class {
1406
1452
  query
1407
1453
  );
1408
1454
  }
1455
+ get(messageId) {
1456
+ return this.client.request(
1457
+ "GET",
1458
+ `${CONVERSATION_BASE_PATH}/messages/${encodeURIComponent(messageId)}`
1459
+ );
1460
+ }
1409
1461
  send(request) {
1410
1462
  return this.client.request("POST", `${CONVERSATION_BASE_PATH}/messages/send`, request);
1411
1463
  }
1464
+ draft(request) {
1465
+ return this.client.request("POST", `${CONVERSATION_BASE_PATH}/messages/draft`, request);
1466
+ }
1467
+ updateDraft(messageId, request) {
1468
+ return this.client.request(
1469
+ "PUT",
1470
+ `${CONVERSATION_BASE_PATH}/messages/${encodeURIComponent(messageId)}/draft`,
1471
+ request
1472
+ );
1473
+ }
1474
+ sendDraft(messageId) {
1475
+ return this.client.request(
1476
+ "POST",
1477
+ `${CONVERSATION_BASE_PATH}/messages/${encodeURIComponent(messageId)}/send`
1478
+ );
1479
+ }
1480
+ rejectDraft(messageId) {
1481
+ return this.client.request(
1482
+ "POST",
1483
+ `${CONVERSATION_BASE_PATH}/messages/${encodeURIComponent(messageId)}/reject`
1484
+ );
1485
+ }
1412
1486
  async getReactions(messageId) {
1413
1487
  const response = await this.client.request(
1414
1488
  "GET",
@@ -1441,16 +1515,26 @@ var AgentListenerServiceImpl = class {
1441
1515
  return this.client.requestWithQuery("GET", `${CONVERSATION_BASE_PATH}/agent-listeners`, query);
1442
1516
  }
1443
1517
  get(id) {
1444
- return this.client.request("GET", `${CONVERSATION_BASE_PATH}/agent-listeners/${encodeURIComponent(id)}`);
1518
+ return this.client.request(
1519
+ "GET",
1520
+ `${CONVERSATION_BASE_PATH}/agent-listeners/${encodeURIComponent(id)}`
1521
+ );
1445
1522
  }
1446
1523
  create(request) {
1447
1524
  return this.client.request("POST", `${CONVERSATION_BASE_PATH}/agent-listeners`, request);
1448
1525
  }
1449
1526
  update(id, request) {
1450
- return this.client.request("PATCH", `${CONVERSATION_BASE_PATH}/agent-listeners/${encodeURIComponent(id)}`, request);
1527
+ return this.client.request(
1528
+ "PATCH",
1529
+ `${CONVERSATION_BASE_PATH}/agent-listeners/${encodeURIComponent(id)}`,
1530
+ request
1531
+ );
1451
1532
  }
1452
1533
  async delete(id) {
1453
- await this.client.request("DELETE", `${CONVERSATION_BASE_PATH}/agent-listeners/${encodeURIComponent(id)}`);
1534
+ await this.client.request(
1535
+ "DELETE",
1536
+ `${CONVERSATION_BASE_PATH}/agent-listeners/${encodeURIComponent(id)}`
1537
+ );
1454
1538
  }
1455
1539
  };
1456
1540
  var ConversationFilterServiceImpl = class {
@@ -1459,19 +1543,33 @@ var ConversationFilterServiceImpl = class {
1459
1543
  }
1460
1544
  client;
1461
1545
  list(query = {}) {
1462
- return this.client.requestWithQuery("GET", `${CONVERSATION_BASE_PATH}/conversation-filters`, query);
1546
+ return this.client.requestWithQuery(
1547
+ "GET",
1548
+ `${CONVERSATION_BASE_PATH}/conversation-filters`,
1549
+ query
1550
+ );
1463
1551
  }
1464
1552
  get(id) {
1465
- return this.client.request("GET", `${CONVERSATION_BASE_PATH}/conversation-filters/${encodeURIComponent(id)}`);
1553
+ return this.client.request(
1554
+ "GET",
1555
+ `${CONVERSATION_BASE_PATH}/conversation-filters/${encodeURIComponent(id)}`
1556
+ );
1466
1557
  }
1467
1558
  create(request) {
1468
1559
  return this.client.request("POST", `${CONVERSATION_BASE_PATH}/conversation-filters`, request);
1469
1560
  }
1470
1561
  update(id, request) {
1471
- return this.client.request("PATCH", `${CONVERSATION_BASE_PATH}/conversation-filters/${encodeURIComponent(id)}`, request);
1562
+ return this.client.request(
1563
+ "PATCH",
1564
+ `${CONVERSATION_BASE_PATH}/conversation-filters/${encodeURIComponent(id)}`,
1565
+ request
1566
+ );
1472
1567
  }
1473
1568
  async delete(id) {
1474
- await this.client.request("DELETE", `${CONVERSATION_BASE_PATH}/conversation-filters/${encodeURIComponent(id)}`);
1569
+ await this.client.request(
1570
+ "DELETE",
1571
+ `${CONVERSATION_BASE_PATH}/conversation-filters/${encodeURIComponent(id)}`
1572
+ );
1475
1573
  }
1476
1574
  listEvents(id, query = {}) {
1477
1575
  return this.client.requestWithQuery(
@@ -1490,16 +1588,26 @@ var GlossaryTermServiceImpl = class {
1490
1588
  return this.client.requestWithQuery("GET", `${CONVERSATION_BASE_PATH}/glossary-terms`, query);
1491
1589
  }
1492
1590
  get(id) {
1493
- return this.client.request("GET", `${CONVERSATION_BASE_PATH}/glossary-terms/${encodeURIComponent(id)}`);
1591
+ return this.client.request(
1592
+ "GET",
1593
+ `${CONVERSATION_BASE_PATH}/glossary-terms/${encodeURIComponent(id)}`
1594
+ );
1494
1595
  }
1495
1596
  create(request) {
1496
1597
  return this.client.request("POST", `${CONVERSATION_BASE_PATH}/glossary-terms`, request);
1497
1598
  }
1498
1599
  update(id, request) {
1499
- return this.client.request("PATCH", `${CONVERSATION_BASE_PATH}/glossary-terms/${encodeURIComponent(id)}`, request);
1600
+ return this.client.request(
1601
+ "PATCH",
1602
+ `${CONVERSATION_BASE_PATH}/glossary-terms/${encodeURIComponent(id)}`,
1603
+ request
1604
+ );
1500
1605
  }
1501
1606
  async delete(id) {
1502
- await this.client.request("DELETE", `${CONVERSATION_BASE_PATH}/glossary-terms/${encodeURIComponent(id)}`);
1607
+ await this.client.request(
1608
+ "DELETE",
1609
+ `${CONVERSATION_BASE_PATH}/glossary-terms/${encodeURIComponent(id)}`
1610
+ );
1503
1611
  }
1504
1612
  };
1505
1613
  var TranscriptionServiceImpl = class {
@@ -1514,7 +1622,10 @@ var TranscriptionServiceImpl = class {
1514
1622
  return this.client.requestWithQuery("GET", `${CONVERSATION_BASE_PATH}/transcriptions`, query);
1515
1623
  }
1516
1624
  get(id) {
1517
- return this.client.request("GET", `${CONVERSATION_BASE_PATH}/transcriptions/${encodeURIComponent(id)}`);
1625
+ return this.client.request(
1626
+ "GET",
1627
+ `${CONVERSATION_BASE_PATH}/transcriptions/${encodeURIComponent(id)}`
1628
+ );
1518
1629
  }
1519
1630
  materialize(id, request = {}) {
1520
1631
  return this.client.request(