@proteos/sdk 0.20.5 → 0.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { A as AuditFields, L as ListOptions, a as Attribute, U as UserRef$2, P as PageIterator, b as ListResult, c as ProteosClient, F as FileRef } from './types-BNsjfU8N.cjs';
2
- export { d as App, e as AppSchema, f as AppService, g as AttributeSchema, h as AttributeType, i as AuditFieldsSchema, C as ClientOptions, j as Column, k as ColumnSchema, l as ComparisonOperator, m as Component, n as ComponentSchema, o as ComponentService, p as CreateAppRequest, q as CreateComponentRequest, r as CreateEntityRequest, s as CreateListRequest, t as CreateListViewRequest, u as CreateMenuConfigurationRequest, v as CreatePageRequest, w as CreateVariableRequest, x as CurrencyAttributeMeta, y as CurrencyAttributeMetaSchema, z as CurrencySymbolSide, B as CurrencyValue, D as DEFAULT_OPTIONS, E as DEFAULT_PAGE_SIZE, G as DONE, H as DeployModuleRequest, I as Done, J as Entity, K as EntitySchema, M as EntityService, N as EntityWithSchema, O as EntityWithSchemaSchema, Q as FileAttributeMeta, R as FileRefSchema, S as FilterElement, T as FilterElementSchema, V as FilterGroup, W as FilterGroupSchema, X as List, Y as ListAppsOptions, Z as ListComponentsOptions, _ as ListEntitiesOptions, $ as ListFn, a0 as ListListViewsOptions, a1 as ListListsOptions, a2 as ListMenuConfigurationsOptions, a3 as ListModulesOptions, a4 as ListPagesOptions, a5 as ListSchema, a6 as ListService, a7 as ListVariablesOptions, a8 as ListView, a9 as ListViewSchema, aa as ListViewService, ab as LogicalOperator, ac as MenuConfiguration, ad as MenuConfigurationSchema, ae as MenuConfigurationService, af as MenuItem, ag as MenuItemSchema, ah as MenuItemType, ai as MetaClient, aj as MetaListOptions, ak as Module, al as ModuleSchema, am as ModuleService, an as ModuleStatus, ao as OnDeleteAction, ap as OnDeleteActionSchema, aq as PLATFORM_ATTRIBUTE_NAMES, ar as PLATFORM_USER_ID, as as Page, at as PageAction, au as PageActionSchema, av as PageLayout, aw as PageLayoutSchema, ax as PageSchema, ay as PageService, az as RelationAttributeMeta, aA as RelationAttributeMetaSchema, aB as RequestOptions, aC as ResolvedClientOptions, aD as ResponseMeta, aE as ResponseMetaSchema, aF as SortConfig, aG as SortConfigSchema, aH as SortDirection, aI as Timestamps, aJ as TokenProvider, aK as UpdateAppRequest, aL as UpdateComponentRequest, aM as UpdateEntityRequest, aN as UpdateListRequest, aO as UpdateListViewRequest, aP as UpdateMenuConfigurationRequest, aQ as UpdatePageRequest, aR as UpdateVariableRequest, aS as UserRefSchema, aT as UserType, aU as Variable, aV as VariableSchema, aW as VariableService, aX as allCurrencyCodes, aY as createIterator, aZ as createListResultSchema, a_ as currencyLabel, a$ as currencySymbol, b0 as currencySymbolSide, b1 as formatAmount, b2 as formatMoney, b3 as isPlatformAttributeName, b4 as localeNumberSeparators, b5 as parseAmount, b6 as parseCurrencyMeta, b7 as parseFileMeta, b8 as parseRelationMeta, b9 as platformAttributes, ba as resolveOptions } from './types-BNsjfU8N.cjs';
1
+ import { A as AuditFields, L as ListOptions, a as Attribute, U as UserRef$2, P as PageIterator, b as ListResult, c as ProteosClient, F as FileRef, d as PublicAccessOperation } from './types-DT29DVEj.cjs';
2
+ export { e as App, f as AppSchema, g as AppService, h as AttributeSchema, i as AttributeType, j as AuditFieldsSchema, C as ClientOptions, k as Column, l as ColumnSchema, m as ComparisonOperator, n as Component, o as ComponentSchema, p as ComponentService, q as CreateAppRequest, r as CreateComponentRequest, s as CreateDesignReferenceRequest, t as CreateEntityRequest, u as CreateListRequest, v as CreateListViewRequest, w as CreateMenuConfigurationRequest, x as CreatePageRequest, y as CreateVariableRequest, z as CurrencyAttributeMeta, B as CurrencyAttributeMetaSchema, D as CurrencySymbolSide, E as CurrencyValue, G as DEFAULT_OPTIONS, H as DEFAULT_PAGE_SIZE, I as DONE, J as DeployModuleRequest, K as DesignReference, M as DesignReferenceContent, N as DesignReferenceSchema, O as DesignReferenceService, Q as Done, R as Entity, S as EntitySchema, T as EntityService, V as EntityWithSchema, W as EntityWithSchemaSchema, X as FileAttributeMeta, Y as FileRefSchema, Z as FilterElement, _ as FilterElementSchema, $ as FilterGroup, a0 as FilterGroupSchema, a1 as List, a2 as ListAppsOptions, a3 as ListComponentsOptions, a4 as ListDesignReferencesOptions, a5 as ListEntitiesOptions, a6 as ListFn, a7 as ListListViewsOptions, a8 as ListListsOptions, a9 as ListMenuConfigurationsOptions, aa as ListModulesOptions, ab as ListPagesOptions, ac as ListSchema, ad as ListService, ae as ListVariablesOptions, af as ListView, ag as ListViewSchema, ah as ListViewService, ai as LogicalOperator, aj as MenuConfiguration, ak as MenuConfigurationSchema, al as MenuConfigurationService, am as MenuItem, an as MenuItemSchema, ao as MenuItemType, ap as MetaClient, aq as MetaListOptions, ar as Module, as as ModuleSchema, at as ModuleService, au as ModuleStatus, av as OnDeleteAction, aw as OnDeleteActionSchema, ax as PLATFORM_ATTRIBUTE_NAMES, ay as PLATFORM_USER_ID, az as Page, aA as PageAction, aB as PageActionSchema, aC as PageLayout, aD as PageLayoutSchema, aE as PageSchema, aF as PageService, aG as PageType, aH as PublicPageComponent, aI as PublicPageResponse, aJ as RelationAttributeMeta, aK as RelationAttributeMetaSchema, aL as RequestOptions, aM as ResolvedClientOptions, aN as ResponseMeta, aO as ResponseMetaSchema, aP as SortConfig, aQ as SortConfigSchema, aR as SortDirection, aS as Timestamps, aT as TokenProvider, aU as UpdateAppRequest, aV as UpdateComponentRequest, aW as UpdateDesignReferenceRequest, aX as UpdateEntityRequest, aY as UpdateListRequest, aZ as UpdateListViewRequest, a_ as UpdateMenuConfigurationRequest, a$ as UpdatePageRequest, b0 as UpdateVariableRequest, b1 as UserRefSchema, b2 as UserType, b3 as Variable, b4 as VariableSchema, b5 as VariableService, b6 as allCurrencyCodes, b7 as createIterator, b8 as createListResultSchema, b9 as currencyLabel, ba as currencySymbol, bb as currencySymbolSide, bc as formatAmount, bd as formatMoney, be as isPlatformAttributeName, bf as localeNumberSeparators, bg as parseAmount, bh as parseCurrencyMeta, bi as parseFileMeta, bj as parseRelationMeta, bk as platformAttributes, bl as resolveOptions } from './types-DT29DVEj.cjs';
3
3
  import { z } from 'zod';
4
4
 
5
5
  /**
@@ -1763,6 +1763,177 @@ declare class AccountClient {
1763
1763
  constructor(client: ProteosClient);
1764
1764
  }
1765
1765
 
1766
+ /** Connection lifecycle status. */
1767
+ type ConnectionStatus$1 = 'pending' | 'active' | 'error' | 'revoked';
1768
+ /** org-wide integration vs a single user's grant. */
1769
+ type ConnectionScope$1 = 'org' | 'user';
1770
+ /** How a connector authenticates. */
1771
+ type CredentialKind = 'oauth' | 'api_key' | 'basic' | 'bot_token';
1772
+ interface UserRef$1 {
1773
+ type: string;
1774
+ id: string;
1775
+ }
1776
+ /**
1777
+ * One callable operation a connector exposes (get_event, update_event, …).
1778
+ * Params/Returns use the platform attribute language — the same shape actions
1779
+ * use — so pickers and validation work identically for pre-built and custom
1780
+ * connectors.
1781
+ */
1782
+ interface ConnectorMethod {
1783
+ key: string;
1784
+ title: string;
1785
+ description?: string;
1786
+ access: 'read' | 'write';
1787
+ /** function-service action implementing this method (custom connectors only). */
1788
+ action_slug?: string;
1789
+ params: Attribute[];
1790
+ returns: Attribute[];
1791
+ }
1792
+ /**
1793
+ * The provider config of an oauth connector. Carries no secrets — the OAuth
1794
+ * APP credentials are org VARIABLES referenced by the two *_variable_key
1795
+ * fields (app credentials are variables, tokens are connections).
1796
+ */
1797
+ interface ConnectorOAuthConfig {
1798
+ auth_url: string;
1799
+ token_url: string;
1800
+ scopes: string[];
1801
+ is_pkce_enabled?: boolean;
1802
+ client_id_variable_key: string;
1803
+ client_secret_variable_key: string;
1804
+ }
1805
+ /** A connector TYPE (google-calendar, a customer's vertex-tax, …). */
1806
+ interface Connector {
1807
+ key: string;
1808
+ org_id: string;
1809
+ title: string;
1810
+ description?: string;
1811
+ icon?: string;
1812
+ credential_kind: CredentialKind;
1813
+ oauth?: ConnectorOAuthConfig;
1814
+ /**
1815
+ * COMPUTED: the broker's per-environment OAuth callback — register it as an
1816
+ * authorized redirect URI on the provider app.
1817
+ */
1818
+ oauth_redirect_uri?: string;
1819
+ config_schema?: Attribute[];
1820
+ methods: ConnectorMethod[];
1821
+ origin: 'pre_built' | 'custom';
1822
+ module_slug?: string;
1823
+ status: 'active' | 'inactive';
1824
+ }
1825
+ /**
1826
+ * One configured integration instance. `Connection` collides with the
1827
+ * conversation module's export, so connector types are prefixed
1828
+ * `ConnectorConnection`.
1829
+ */
1830
+ interface ConnectorConnection {
1831
+ id: string;
1832
+ org_id: string;
1833
+ connector_key: string;
1834
+ display_name: string;
1835
+ scope: ConnectionScope$1;
1836
+ owner?: UserRef$1;
1837
+ external_account_id: string;
1838
+ settings: Record<string, unknown>;
1839
+ status: ConnectionStatus$1;
1840
+ status_detail?: string;
1841
+ created_at: string;
1842
+ updated_at: string;
1843
+ }
1844
+ interface WriteCredentialsRequest {
1845
+ kind: CredentialKind;
1846
+ api_key?: string;
1847
+ username?: string;
1848
+ password?: string;
1849
+ bot_token?: string;
1850
+ }
1851
+ interface CreateConnectorConnectionRequest {
1852
+ connector_key: string;
1853
+ display_name: string;
1854
+ scope: ConnectionScope$1;
1855
+ settings?: Record<string, unknown>;
1856
+ credentials?: WriteCredentialsRequest;
1857
+ }
1858
+ interface UpdateConnectorConnectionRequest {
1859
+ display_name?: string;
1860
+ settings?: Record<string, unknown>;
1861
+ credentials?: WriteCredentialsRequest;
1862
+ }
1863
+ interface InstallConnectorConnectionResponse {
1864
+ authorization_url: string;
1865
+ }
1866
+ interface ConnectionTokenResponse {
1867
+ kind: CredentialKind;
1868
+ access_token?: string;
1869
+ expires_at?: string;
1870
+ api_key?: string;
1871
+ username?: string;
1872
+ password?: string;
1873
+ bot_token?: string;
1874
+ }
1875
+ interface ListConnectorsQuery {
1876
+ page?: number;
1877
+ page_size?: number;
1878
+ status?: string;
1879
+ }
1880
+ interface ListConnectorConnectionsQuery {
1881
+ page?: number;
1882
+ page_size?: number;
1883
+ connector_key?: string;
1884
+ scope?: ConnectionScope$1;
1885
+ status?: ConnectionStatus$1;
1886
+ }
1887
+ interface ListResponse$1<T> {
1888
+ data: T[];
1889
+ meta: {
1890
+ pagination: {
1891
+ page: number;
1892
+ page_size: number;
1893
+ };
1894
+ items_total: number;
1895
+ pages_total: number;
1896
+ };
1897
+ }
1898
+
1899
+ /**
1900
+ * Facade for connector-service: the connector manifest catalog and
1901
+ * connections (install flow, token release, connector-method invocation).
1902
+ *
1903
+ * ```ts
1904
+ * const connector = new ConnectorClient(client)
1905
+ * const catalog = await connector.connectors.list()
1906
+ * const { authorization_url } = await connector.connections.install(id)
1907
+ * const events = await connector.connections.invokeMethod(id, 'list_events', {})
1908
+ * ```
1909
+ */
1910
+ declare class ConnectorClient {
1911
+ readonly connectors: ConnectorCatalogService;
1912
+ readonly connections: ConnectorConnectionService;
1913
+ constructor(client: ProteosClient);
1914
+ }
1915
+ /** The connector manifest catalog (pre-built + org-custom). */
1916
+ interface ConnectorCatalogService {
1917
+ list(query?: ListConnectorsQuery): Promise<ListResponse$1<Connector>>;
1918
+ get(key: string): Promise<Connector>;
1919
+ /** A connector's callable methods (sugar over get().methods). */
1920
+ listMethods(key: string): Promise<ConnectorMethod[]>;
1921
+ }
1922
+ /** Configured integration instances + method invocation. */
1923
+ interface ConnectorConnectionService {
1924
+ list(query?: ListConnectorConnectionsQuery): Promise<ListResponse$1<ConnectorConnection>>;
1925
+ get(id: string): Promise<ConnectorConnection>;
1926
+ create(request: CreateConnectorConnectionRequest): Promise<ConnectorConnection>;
1927
+ update(id: string, request: UpdateConnectorConnectionRequest): Promise<ConnectorConnection>;
1928
+ delete(id: string): Promise<void>;
1929
+ /** Begin the OAuth install flow; open the returned URL in a popup. */
1930
+ install(id: string): Promise<InstallConnectorConnectionResponse>;
1931
+ /** Release the connection's usable token material (requires connections write). */
1932
+ token(id: string): Promise<ConnectionTokenResponse>;
1933
+ /** Invoke a connector method; returns the unwrapped result. */
1934
+ invokeMethod<T = unknown>(id: string, method: string, params?: unknown): Promise<T>;
1935
+ }
1936
+
1766
1937
  /** One normalized transcription update streamed back from the server. */
1767
1938
  interface TranscriptResult {
1768
1939
  /** The recognized text for this segment. */
@@ -1864,11 +2035,11 @@ type ConnectorKey = 'slack' | 'gmail' | 'echo' | 'unipile-whatsapp' | 'unipile-l
1864
2035
  type ConnectorProvider = 'native' | 'unipile' | 'ava';
1865
2036
  type MessageDirection = 'inbound' | 'outbound';
1866
2037
  type MessageStatus = 'received' | 'pending' | 'sent' | 'failed';
1867
- type ConnectionScope$1 = 'org' | 'user';
1868
- type ConnectionStatus$1 = 'pending' | 'active' | 'error' | 'revoked';
2038
+ type ConnectionScope = 'org' | 'user';
2039
+ type ConnectionStatus = 'pending' | 'active' | 'error' | 'revoked';
1869
2040
  type ConversationStatus = 'active' | 'ended' | 'archived';
1870
2041
  type AgentListenerTriggerType = 'always' | 'mention' | 'channel' | 'keyword';
1871
- interface UserRef$1 {
2042
+ interface UserRef {
1872
2043
  type: string;
1873
2044
  id: string;
1874
2045
  }
@@ -1881,7 +2052,7 @@ interface ParticipantRef {
1881
2052
  name: string;
1882
2053
  email?: string;
1883
2054
  /** Resolved platform identity (email match); absent when unresolved. */
1884
- platform_user?: UserRef$1;
2055
+ platform_user?: UserRef;
1885
2056
  }
1886
2057
  /**
1887
2058
  * One member of a conversation's roster — everyone in the thread, INCLUDING the
@@ -1952,13 +2123,13 @@ interface Connection {
1952
2123
  connector_key: ConnectorKey;
1953
2124
  channel: Channel;
1954
2125
  name: string;
1955
- scope: ConnectionScope$1;
2126
+ scope: ConnectionScope;
1956
2127
  /** Set only when scope=user (the connecting user); absent for org-wide. */
1957
- owner?: UserRef$1;
2128
+ owner?: UserRef;
1958
2129
  external_workspace_id: string;
1959
2130
  credentials: ConnectionCredentials;
1960
2131
  settings: Record<string, unknown>;
1961
- status: ConnectionStatus$1;
2132
+ status: ConnectionStatus;
1962
2133
  /** Computed on read: the connector implements the reaction capability. */
1963
2134
  supports_reactions: boolean;
1964
2135
  /** The capability descriptor; absent when unsupported. */
@@ -1970,9 +2141,9 @@ interface Connection {
1970
2141
  */
1971
2142
  provider?: ConnectorProvider;
1972
2143
  created_at: string;
1973
- created_by: UserRef$1;
2144
+ created_by: UserRef;
1974
2145
  updated_at: string;
1975
- updated_by: UserRef$1;
2146
+ updated_by: UserRef;
1976
2147
  }
1977
2148
  interface Conversation {
1978
2149
  id: string;
@@ -2026,9 +2197,9 @@ interface Conversation {
2026
2197
  */
2027
2198
  is_unread: boolean;
2028
2199
  created_at: string;
2029
- created_by: UserRef$1;
2200
+ created_by: UserRef;
2030
2201
  updated_at: string;
2031
- updated_by: UserRef$1;
2202
+ updated_by: UserRef;
2032
2203
  }
2033
2204
  /**
2034
2205
  * Compact snapshot of one message riding on conversation reads
@@ -2065,7 +2236,7 @@ interface Attachment {
2065
2236
  content_id?: string;
2066
2237
  is_inline: boolean;
2067
2238
  created_at: string;
2068
- created_by: UserRef$1;
2239
+ created_by: UserRef;
2069
2240
  }
2070
2241
  /** Aggregated reactions on a message: one entry per emoji (native token). */
2071
2242
  interface Reaction {
@@ -2102,9 +2273,9 @@ interface Message {
2102
2273
  metadata: Record<string, unknown>;
2103
2274
  error: string;
2104
2275
  created_at: string;
2105
- created_by: UserRef$1;
2276
+ created_by: UserRef;
2106
2277
  updated_at: string;
2107
- updated_by: UserRef$1;
2278
+ updated_by: UserRef;
2108
2279
  }
2109
2280
  /**
2110
2281
  * Per-trigger configuration, discriminated by the sibling trigger_type: channel
@@ -2131,7 +2302,7 @@ interface AgentListener {
2131
2302
  */
2132
2303
  wake_phrase?: string;
2133
2304
  /** The user the dispatcher acts as when driving the agent. */
2134
- acting_user: UserRef$1;
2305
+ acting_user: UserRef;
2135
2306
  is_enabled: boolean;
2136
2307
  /**
2137
2308
  * How the agent's reply reaches the conversation. `true` (default) ⇒ the
@@ -2142,14 +2313,14 @@ interface AgentListener {
2142
2313
  is_auto_forward_agent_replies_enabled: boolean;
2143
2314
  priority: number;
2144
2315
  created_at: string;
2145
- created_by: UserRef$1;
2316
+ created_by: UserRef;
2146
2317
  updated_at: string;
2147
- updated_by: UserRef$1;
2318
+ updated_by: UserRef;
2148
2319
  }
2149
2320
  interface CreateConnectionRequest {
2150
2321
  connector_key: ConnectorKey;
2151
2322
  name: string;
2152
- scope: ConnectionScope$1;
2323
+ scope: ConnectionScope;
2153
2324
  settings?: Record<string, unknown>;
2154
2325
  }
2155
2326
  interface UpdateConnectionRequest {
@@ -2245,9 +2416,9 @@ interface GlossaryTerm {
2245
2416
  definition?: string;
2246
2417
  priority?: number;
2247
2418
  created_at: string;
2248
- created_by: UserRef$1;
2419
+ created_by: UserRef;
2249
2420
  updated_at: string;
2250
- updated_by: UserRef$1;
2421
+ updated_by: UserRef;
2251
2422
  }
2252
2423
  interface CreateGlossaryTermRequest {
2253
2424
  term: string;
@@ -2323,14 +2494,14 @@ interface Participant {
2323
2494
  name: string;
2324
2495
  email?: string;
2325
2496
  /** Resolved platform identity (email match); absent when unresolved. */
2326
- platform_user?: UserRef$1;
2497
+ platform_user?: UserRef;
2327
2498
  metadata: Record<string, unknown>;
2328
2499
  source: ParticipantSource;
2329
2500
  last_seen_at: string;
2330
2501
  created_at: string;
2331
- created_by: UserRef$1;
2502
+ created_by: UserRef;
2332
2503
  updated_at: string;
2333
- updated_by: UserRef$1;
2504
+ updated_by: UserRef;
2334
2505
  }
2335
2506
  /** An addressable VENUE on a connection (Slack channel; later meeting rooms). */
2336
2507
  interface Room {
@@ -2345,9 +2516,9 @@ interface Room {
2345
2516
  source: RoomSource;
2346
2517
  last_seen_at: string;
2347
2518
  created_at: string;
2348
- created_by: UserRef$1;
2519
+ created_by: UserRef;
2349
2520
  updated_at: string;
2350
- updated_by: UserRef$1;
2521
+ updated_by: UserRef;
2351
2522
  }
2352
2523
  interface ListParticipantsQuery extends PaginationQuery {
2353
2524
  /** Free-text needle matched against display name + external id. */
@@ -2363,7 +2534,7 @@ interface ResponseMeta {
2363
2534
  items_total: number;
2364
2535
  pages_total: number;
2365
2536
  }
2366
- interface ListResponse$1<T> {
2537
+ interface ListResponse<T> {
2367
2538
  meta: ResponseMeta;
2368
2539
  data: T[];
2369
2540
  }
@@ -2393,9 +2564,9 @@ interface Transcription {
2393
2564
  conversation_id: string;
2394
2565
  error: string;
2395
2566
  created_at: string;
2396
- created_by: UserRef$1;
2567
+ created_by: UserRef;
2397
2568
  updated_at: string;
2398
- updated_by: UserRef$1;
2569
+ updated_by: UserRef;
2399
2570
  }
2400
2571
  interface CreateTranscriptionRequest {
2401
2572
  file_id: string;
@@ -2473,7 +2644,7 @@ interface MeetingService {
2473
2644
  }
2474
2645
  /** Configured integration instances (Slack workspace, Gmail grant, …). */
2475
2646
  interface ConnectionService {
2476
- list(query?: ListConnectionsQuery): Promise<ListResponse$1<Connection>>;
2647
+ list(query?: ListConnectionsQuery): Promise<ListResponse<Connection>>;
2477
2648
  get(id: string): Promise<Connection>;
2478
2649
  create(request: CreateConnectionRequest): Promise<Connection>;
2479
2650
  update(id: string, request: UpdateConnectionRequest): Promise<Connection>;
@@ -2481,13 +2652,13 @@ interface ConnectionService {
2481
2652
  /** Begin the connector's install flow; open the returned URL in a popup. */
2482
2653
  install(id: string): Promise<InstallConnectionResponse>;
2483
2654
  /** Search a connection's known PEOPLE (workspace members, correspondents) for the compose picker. */
2484
- listParticipants(connectionId: string, query?: ListParticipantsQuery): Promise<ListResponse$1<Participant>>;
2655
+ listParticipants(connectionId: string, query?: ListParticipantsQuery): Promise<ListResponse<Participant>>;
2485
2656
  /** Search a connection's addressable VENUES (Slack channels) for the compose picker. */
2486
- listRooms(connectionId: string, query?: ListRoomsQuery): Promise<ListResponse$1<Room>>;
2657
+ listRooms(connectionId: string, query?: ListRoomsQuery): Promise<ListResponse<Room>>;
2487
2658
  }
2488
2659
  /** Conversation threads across every channel (inbox order: last_message_at). */
2489
2660
  interface ConversationService {
2490
- list(query?: ListConversationsQuery): Promise<ListResponse$1<Conversation>>;
2661
+ list(query?: ListConversationsQuery): Promise<ListResponse<Conversation>>;
2491
2662
  get(id: string): Promise<Conversation>;
2492
2663
  end(id: string): Promise<Conversation>;
2493
2664
  /** Upsert the requesting user's read marker to now (open a conversation). */
@@ -2499,7 +2670,7 @@ interface ConversationService {
2499
2670
  }
2500
2671
  /** Messages within a conversation (ordered by occurred_at) + outbound send + reactions. */
2501
2672
  interface MessageService {
2502
- listByConversation(conversationId: string, query?: ListMessagesQuery): Promise<ListResponse$1<Message>>;
2673
+ listByConversation(conversationId: string, query?: ListMessagesQuery): Promise<ListResponse<Message>>;
2503
2674
  send(request: SendMessageRequest): Promise<Message>;
2504
2675
  /** Aggregated reactions on one message (also rides on Message.reactions). */
2505
2676
  getReactions(messageId: string): Promise<Reaction[]>;
@@ -2513,7 +2684,7 @@ interface MessageService {
2513
2684
  }
2514
2685
  /** Rules binding inbound messages to agents. */
2515
2686
  interface AgentListenerService {
2516
- list(query?: ListAgentListenersQuery): Promise<ListResponse$1<AgentListener>>;
2687
+ list(query?: ListAgentListenersQuery): Promise<ListResponse<AgentListener>>;
2517
2688
  get(id: string): Promise<AgentListener>;
2518
2689
  create(request: CreateAgentListenerRequest): Promise<AgentListener>;
2519
2690
  update(id: string, request: UpdateAgentListenerRequest): Promise<AgentListener>;
@@ -2526,7 +2697,7 @@ interface AgentListenerService {
2526
2697
  * decides the top 100 sent when an org stores more than the provider's cap.
2527
2698
  */
2528
2699
  interface GlossaryTermService {
2529
- list(query?: ListGlossaryTermsQuery): Promise<ListResponse$1<GlossaryTerm>>;
2700
+ list(query?: ListGlossaryTermsQuery): Promise<ListResponse<GlossaryTerm>>;
2530
2701
  get(id: string): Promise<GlossaryTerm>;
2531
2702
  create(request: CreateGlossaryTermRequest): Promise<GlossaryTerm>;
2532
2703
  update(id: string, request: UpdateGlossaryTermRequest): Promise<GlossaryTerm>;
@@ -2540,183 +2711,12 @@ interface TranscriptionService {
2540
2711
  * status is `completed` (or `failed`), then `materialize`.
2541
2712
  */
2542
2713
  createFromFile(request: CreateTranscriptionRequest): Promise<Transcription>;
2543
- list(query?: ListTranscriptionsQuery): Promise<ListResponse$1<Transcription>>;
2714
+ list(query?: ListTranscriptionsQuery): Promise<ListResponse<Transcription>>;
2544
2715
  get(id: string): Promise<Transcription>;
2545
2716
  /** Turns a completed transcription into an adhoc/meeting conversation. */
2546
2717
  materialize(id: string, request?: MaterializeTranscriptionRequest): Promise<Conversation>;
2547
2718
  }
2548
2719
 
2549
- /** Connection lifecycle status. */
2550
- type ConnectionStatus = 'pending' | 'active' | 'error' | 'revoked';
2551
- /** org-wide integration vs a single user's grant. */
2552
- type ConnectionScope = 'org' | 'user';
2553
- /** How a connector authenticates. */
2554
- type CredentialKind = 'oauth' | 'api_key' | 'basic' | 'bot_token';
2555
- interface UserRef {
2556
- type: string;
2557
- id: string;
2558
- }
2559
- /**
2560
- * One callable operation a connector exposes (get_event, update_event, …).
2561
- * Params/Returns use the platform attribute language — the same shape actions
2562
- * use — so pickers and validation work identically for pre-built and custom
2563
- * connectors.
2564
- */
2565
- interface ConnectorMethod {
2566
- key: string;
2567
- title: string;
2568
- description?: string;
2569
- access: 'read' | 'write';
2570
- /** function-service action implementing this method (custom connectors only). */
2571
- action_slug?: string;
2572
- params: Attribute[];
2573
- returns: Attribute[];
2574
- }
2575
- /**
2576
- * The provider config of an oauth connector. Carries no secrets — the OAuth
2577
- * APP credentials are org VARIABLES referenced by the two *_variable_key
2578
- * fields (app credentials are variables, tokens are connections).
2579
- */
2580
- interface ConnectorOAuthConfig {
2581
- auth_url: string;
2582
- token_url: string;
2583
- scopes: string[];
2584
- is_pkce_enabled?: boolean;
2585
- client_id_variable_key: string;
2586
- client_secret_variable_key: string;
2587
- }
2588
- /** A connector TYPE (google-calendar, a customer's vertex-tax, …). */
2589
- interface Connector {
2590
- key: string;
2591
- org_id: string;
2592
- title: string;
2593
- description?: string;
2594
- icon?: string;
2595
- credential_kind: CredentialKind;
2596
- oauth?: ConnectorOAuthConfig;
2597
- /**
2598
- * COMPUTED: the broker's per-environment OAuth callback — register it as an
2599
- * authorized redirect URI on the provider app.
2600
- */
2601
- oauth_redirect_uri?: string;
2602
- config_schema?: Attribute[];
2603
- methods: ConnectorMethod[];
2604
- origin: 'pre_built' | 'custom';
2605
- module_slug?: string;
2606
- status: 'active' | 'inactive';
2607
- }
2608
- /**
2609
- * One configured integration instance. `Connection` collides with the
2610
- * conversation module's export, so connector types are prefixed
2611
- * `ConnectorConnection`.
2612
- */
2613
- interface ConnectorConnection {
2614
- id: string;
2615
- org_id: string;
2616
- connector_key: string;
2617
- display_name: string;
2618
- scope: ConnectionScope;
2619
- owner?: UserRef;
2620
- external_account_id: string;
2621
- settings: Record<string, unknown>;
2622
- status: ConnectionStatus;
2623
- status_detail?: string;
2624
- created_at: string;
2625
- updated_at: string;
2626
- }
2627
- interface WriteCredentialsRequest {
2628
- kind: CredentialKind;
2629
- api_key?: string;
2630
- username?: string;
2631
- password?: string;
2632
- bot_token?: string;
2633
- }
2634
- interface CreateConnectorConnectionRequest {
2635
- connector_key: string;
2636
- display_name: string;
2637
- scope: ConnectionScope;
2638
- settings?: Record<string, unknown>;
2639
- credentials?: WriteCredentialsRequest;
2640
- }
2641
- interface UpdateConnectorConnectionRequest {
2642
- display_name?: string;
2643
- settings?: Record<string, unknown>;
2644
- credentials?: WriteCredentialsRequest;
2645
- }
2646
- interface InstallConnectorConnectionResponse {
2647
- authorization_url: string;
2648
- }
2649
- interface ConnectionTokenResponse {
2650
- kind: CredentialKind;
2651
- access_token?: string;
2652
- expires_at?: string;
2653
- api_key?: string;
2654
- username?: string;
2655
- password?: string;
2656
- bot_token?: string;
2657
- }
2658
- interface ListConnectorsQuery {
2659
- page?: number;
2660
- page_size?: number;
2661
- status?: string;
2662
- }
2663
- interface ListConnectorConnectionsQuery {
2664
- page?: number;
2665
- page_size?: number;
2666
- connector_key?: string;
2667
- scope?: ConnectionScope;
2668
- status?: ConnectionStatus;
2669
- }
2670
- interface ListResponse<T> {
2671
- data: T[];
2672
- meta: {
2673
- pagination: {
2674
- page: number;
2675
- page_size: number;
2676
- };
2677
- items_total: number;
2678
- pages_total: number;
2679
- };
2680
- }
2681
-
2682
- /**
2683
- * Facade for connector-service: the connector manifest catalog and
2684
- * connections (install flow, token release, connector-method invocation).
2685
- *
2686
- * ```ts
2687
- * const connector = new ConnectorClient(client)
2688
- * const catalog = await connector.connectors.list()
2689
- * const { authorization_url } = await connector.connections.install(id)
2690
- * const events = await connector.connections.invokeMethod(id, 'list_events', {})
2691
- * ```
2692
- */
2693
- declare class ConnectorClient {
2694
- readonly connectors: ConnectorCatalogService;
2695
- readonly connections: ConnectorConnectionService;
2696
- constructor(client: ProteosClient);
2697
- }
2698
- /** The connector manifest catalog (pre-built + org-custom). */
2699
- interface ConnectorCatalogService {
2700
- list(query?: ListConnectorsQuery): Promise<ListResponse<Connector>>;
2701
- get(key: string): Promise<Connector>;
2702
- /** A connector's callable methods (sugar over get().methods). */
2703
- listMethods(key: string): Promise<ConnectorMethod[]>;
2704
- }
2705
- /** Configured integration instances + method invocation. */
2706
- interface ConnectorConnectionService {
2707
- list(query?: ListConnectorConnectionsQuery): Promise<ListResponse<ConnectorConnection>>;
2708
- get(id: string): Promise<ConnectorConnection>;
2709
- create(request: CreateConnectorConnectionRequest): Promise<ConnectorConnection>;
2710
- update(id: string, request: UpdateConnectorConnectionRequest): Promise<ConnectorConnection>;
2711
- delete(id: string): Promise<void>;
2712
- /** Begin the OAuth install flow; open the returned URL in a popup. */
2713
- install(id: string): Promise<InstallConnectorConnectionResponse>;
2714
- /** Release the connection's usable token material (requires connections write). */
2715
- token(id: string): Promise<ConnectionTokenResponse>;
2716
- /** Invoke a connector method; returns the unwrapped result. */
2717
- invokeMethod<T = unknown>(id: string, method: string, params?: unknown): Promise<T>;
2718
- }
2719
-
2720
2720
  /**
2721
2721
  * A single row from a query result. Keys match the result-set columns
2722
2722
  * (camelCase, with `id`/`created_at`/`updated_at` reserved). The data-service
@@ -2960,6 +2960,23 @@ interface RecordService {
2960
2960
  * flows) can render per-row feedback.
2961
2961
  */
2962
2962
  batchUpsert(entitySlug: string, transactions: BatchUpsertTransaction[]): Promise<BatchUpsertRecordsResponse>;
2963
+ /**
2964
+ * Lists records of a public-read entity through the UNAUTHENTICATED
2965
+ * public endpoint (no Authorization header) as an async iterator. A
2966
+ * non-public or missing entity 404s identically.
2967
+ */
2968
+ listPublic(orgId: string, entitySlug: string, options?: ListRecordsOptions): PageIterator<RecordData, ListRecordsOptions>;
2969
+ /**
2970
+ * Fetches a single page of records through the unauthenticated public
2971
+ * endpoint. Same filter grammar and pagination as `listPage`.
2972
+ */
2973
+ listPublicPage(orgId: string, entitySlug: string, options?: ListRecordsOptions): Promise<ListResult<RecordData>>;
2974
+ /**
2975
+ * Gets a single record of a public-read entity through the
2976
+ * unauthenticated public endpoint. Knowledge-text values stay unenriched
2977
+ * (bare refs) on this path.
2978
+ */
2979
+ getPublic(orgId: string, entitySlug: string, id: string): Promise<RecordData>;
2963
2980
  }
2964
2981
 
2965
2982
  /**
@@ -3432,6 +3449,16 @@ interface ActionService {
3432
3449
  * timeouts (504, `TIMEOUT`), traps (500, `TRAP`), or other failure kinds.
3433
3450
  */
3434
3451
  invokeGlobal(slug: string, params: Record<string, unknown>): Promise<unknown>;
3452
+ /**
3453
+ * Invokes a PUBLIC (`is_public`) global action without authentication — no
3454
+ * Authorization header is sent. This is the only data path available to
3455
+ * components on a public page. The action runs server-side as its creator
3456
+ * (org + user injected via a machine token); non-public actions 404.
3457
+ *
3458
+ * @param orgId - Org id (public routes carry the org in the path — there is
3459
+ * no token to scope from)
3460
+ */
3461
+ invokePublic(orgId: string, slug: string, params: Record<string, unknown>): Promise<unknown>;
3435
3462
  /**
3436
3463
  * Invokes an entity-scoped action against a specific record. Returns the
3437
3464
  * unwrapped `result` payload.
@@ -4569,6 +4596,12 @@ interface StorageFile {
4569
4596
  is_deleted: boolean;
4570
4597
  is_persisted: boolean;
4571
4598
  is_locked: boolean;
4599
+ /**
4600
+ * Operations the file is exposed for on the unauthenticated public surface.
4601
+ * Only `["read"]` is honored (download via the public route). Empty =
4602
+ * private (default).
4603
+ */
4604
+ public_access: PublicAccessOperation[];
4572
4605
  created_at: string;
4573
4606
  updated_at: string;
4574
4607
  }
@@ -4579,6 +4612,8 @@ interface StorageFile {
4579
4612
  interface CreateFileMetadata {
4580
4613
  name: string;
4581
4614
  content_type?: string;
4615
+ /** See {@link StorageFile.public_access}. Only `["read"]` accepted today. */
4616
+ public_access?: PublicAccessOperation[];
4582
4617
  }
4583
4618
  /**
4584
4619
  * Lifecycle of a version's parsed content. A parse is asynchronous: the row is
@@ -4679,6 +4714,17 @@ interface FileService {
4679
4714
  * {@link FileService.createDownloadUrl} for browser click-to-download.
4680
4715
  */
4681
4716
  download(id: string): Promise<Blob>;
4717
+ /**
4718
+ * Downloads the current version of a public-read file through the
4719
+ * UNAUTHENTICATED public endpoint (no Authorization header). A non-public
4720
+ * or missing file 404s identically.
4721
+ */
4722
+ downloadPublic(orgId: string, id: string): Promise<Blob>;
4723
+ /**
4724
+ * Builds the unauthenticated public download URL for a public-read
4725
+ * file — usable directly as an <img src> / <a href> on public pages.
4726
+ */
4727
+ publicDownloadUrl(orgId: string, id: string): string;
4682
4728
  }
4683
4729
 
4684
4730
  /**
@@ -5341,4 +5387,4 @@ declare class WorkflowClient {
5341
5387
  constructor(client: ProteosClient);
5342
5388
  }
5343
5389
 
5344
- 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$1 as ConnectionScope, type ConnectionService, type ConnectionStatus$1 as ConnectionStatus, type Connector, ConnectorClient, type ConnectorConnection, type ConnectionScope as ConnectorConnectionScope, type ConnectionStatus 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$1 as 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 };
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 };