@proteos/sdk 0.57.1 → 0.59.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.js CHANGED
@@ -1,5 +1,5 @@
1
- import { AuditFieldsSchema, FileRefSchema, PrincipalRefSchema, AttributeSchema, UserRefSchema, PageIterator } from './chunk-U3FT5KAH.js';
2
- export { AppConfigurationSchema, AppHomeSchema, AppSchema, AttributeSchema, AuditFieldsSchema, CURRENT_USER, CURRENT_USER_DEFAULT, ColumnSchema, ComponentSchema, ContactAddressAttributeMetaSchema, CurrencyAttributeMetaSchema, DEFAULT_PAGE_SIZE, DONE, DesignReferenceSchema, EntityContactBindingSchema, EntityExtensionSchema, EntitySchema, EntityWithSchemaSchema, ExtensionPositionSchema, FileRefSchema, FilterElementSchema, FilterGroupSchema, ListExtensionColumnPlacementSchema, ListExtensionSchema, ListSchema, ListViewSchema, MENU_CONFIGURATION_EXTENSION_ANCHOR_ITEMS, MenuConfigurationExtensionPlacementSchema, MenuConfigurationExtensionPositionSchema, MenuConfigurationExtensionSchema, MenuConfigurationSchema, MenuItemSchema, MenuItemType, MetaClient, ModuleSchema, OnDeleteActionSchema, PAGE_EXTENSION_ANCHOR_MAIN, PAGE_EXTENSION_ANCHOR_SIDE_PANEL, PLATFORM_ATTRIBUTE_NAMES, PLATFORM_USER_ID, PageActionSchema, PageExtensionPlacementSchema, PageExtensionSchema, PageIterator, PageLayoutSchema, PageSchema, RelationAttributeMetaSchema, ResponseMetaSchema, SortConfigSchema, UserRefSchema, VariableSchema, acceptsCurrentUserDefault, allCurrencyCodes, createIterator, createListResultSchema, currencyLabel, currencySymbol, currencySymbolSide, formatAmount, formatMoney, isCurrentUser, isCurrentUserDefault, isPlatformAttributeName, localeNumberSeparators, parseAmount, parseContactAddressMeta, parseCurrencyMeta, parseFileMeta, parseRelationMeta, platformAttributes } from './chunk-U3FT5KAH.js';
1
+ import { AuditFieldsSchema, FileRefSchema, PrincipalRefSchema, AttributeSchema, UserRefSchema, PageIterator } from './chunk-OOOTPEJK.js';
2
+ export { AppConfigurationSchema, AppHomeSchema, AppSchema, AttributeSchema, AuditFieldsSchema, CURRENT_USER, CURRENT_USER_DEFAULT, ColumnSchema, ComponentSchema, ContactAddressAttributeMetaSchema, CurrencyAttributeMetaSchema, DEFAULT_PAGE_SIZE, DONE, DesignReferenceSchema, EntityContactBindingSchema, EntityExtensionSchema, EntitySchema, EntityWithSchemaSchema, ExtensionPositionSchema, FileRefSchema, FilterElementSchema, FilterGroupSchema, ListExtensionColumnPlacementSchema, ListExtensionSchema, ListSchema, ListViewSchema, MENU_CONFIGURATION_EXTENSION_ANCHOR_ITEMS, MenuConfigurationExtensionPlacementSchema, MenuConfigurationExtensionPositionSchema, MenuConfigurationExtensionSchema, MenuConfigurationSchema, MenuItemSchema, MenuItemType, MetaClient, ModuleSchema, OnDeleteActionSchema, PAGE_EXTENSION_ANCHOR_MAIN, PAGE_EXTENSION_ANCHOR_SIDE_PANEL, PLATFORM_ATTRIBUTE_NAMES, PLATFORM_USER_ID, PageActionSchema, PageExtensionPlacementSchema, PageExtensionSchema, PageIterator, PageLayoutSchema, PageSchema, RelationAttributeMetaSchema, ResponseMetaSchema, SortConfigSchema, UserRefSchema, VariableSchema, acceptsCurrentUserDefault, allCurrencyCodes, createIterator, createListResultSchema, currencyLabel, currencySymbol, currencySymbolSide, formatAmount, formatMoney, isCurrentUser, isCurrentUserDefault, isPlatformAttributeName, localeNumberSeparators, parseAmount, parseContactAddressMeta, parseCurrencyMeta, parseFileMeta, parseRelationMeta, platformAttributes } from './chunk-OOOTPEJK.js';
3
3
  import { z } from 'zod';
4
4
  import { fetchEventSource } from '@microsoft/fetch-event-source';
5
5
 
@@ -683,6 +683,7 @@ var PLATFORM_ENTITY_SERVICE = {
683
683
  tools: "/agents",
684
684
  toolsets: "/agents",
685
685
  "mcp-servers": "/agents",
686
+ "agent-sessions": "/agents",
686
687
  // Knowledge (knowledge-service)
687
688
  "knowledge-spaces": "/knowledge",
688
689
  "knowledge-nodes": "/knowledge",
@@ -690,7 +691,7 @@ var PLATFORM_ENTITY_SERVICE = {
690
691
  conversations: "/conversations",
691
692
  connections: "/conversations"
692
693
  };
693
- var SERVICES_WITH_SHARING = /* @__PURE__ */ new Set(["/data", "/knowledge"]);
694
+ var SERVICES_WITH_SHARING = /* @__PURE__ */ new Set(["/data", "/knowledge", "/agents", "/conversations"]);
694
695
  var DEFAULT_SERVICE = "/data";
695
696
  function shareRouteFor(entitySlug) {
696
697
  const service = PLATFORM_ENTITY_SERVICE[entitySlug] ?? DEFAULT_SERVICE;
@@ -962,6 +963,8 @@ var PLATFORM_ENTITIES = [
962
963
  { slug: "glossary-terms", name: "Glossary Terms" },
963
964
  // Mistranscribed terms proposed by the post-transcription review pass.
964
965
  { slug: "mistranscribed-terms", name: "Mistranscribed Terms" },
966
+ // Live speech-to-text (the dictation stream) — `read` opens a stream.
967
+ { slug: "voice", name: "Voice" },
965
968
  // The person-level identity layer (contacts + addresses + merges + consent +
966
969
  // erasure) — one grant governs the whole aggregate.
967
970
  { slug: "contacts", name: "Contacts" },
@@ -984,6 +987,12 @@ var PLATFORM_ENTITIES = [
984
987
  { slug: "channel-events", name: "Channel Events" },
985
988
  // Conversation briefs: guidance prepared ahead of a conversation (call, meeting) with a contact.
986
989
  { slug: "conversation-briefs", name: "Conversation Briefs" },
990
+ // Conversation intelligence: the typed questions asked of conversations
991
+ // (definitions), where/when they are evaluated (sets), and the observations
992
+ // they produce incl. their evaluation history (tags).
993
+ { slug: "conversation-tag-definitions", name: "Conversation Tag Definitions" },
994
+ { slug: "conversation-tag-sets", name: "Conversation Tag Sets" },
995
+ { slug: "conversation-tags", name: "Conversation Tags" },
987
996
  // Connectors (connector-service). `connections` above is shared; this is the
988
997
  // manifest catalog.
989
998
  { slug: "connectors", name: "Connectors" },
@@ -999,7 +1008,25 @@ var PLATFORM_ENTITIES = [
999
1008
  var PLATFORM_ENTITY_SLUGS = PLATFORM_ENTITIES.map(
1000
1009
  (entity) => entity.slug
1001
1010
  );
1002
- var SCOPED_PLATFORM_ENTITY_SLUGS = ["knowledge-nodes"];
1011
+ var SCOPED_PLATFORM_ENTITY_SLUGS = [
1012
+ "knowledge-nodes",
1013
+ // agent-service: sessions are owned by their starter; the six config
1014
+ // resources by their creator. Scoped lists + /agents/v1/shares.
1015
+ "agent-sessions",
1016
+ "agents",
1017
+ "prompts",
1018
+ "skills",
1019
+ "tools",
1020
+ "toolsets",
1021
+ "mcp-servers",
1022
+ // conversation-service: a connection is owned by its owner (user-scoped) or
1023
+ // open to the org through its org share (org-scoped); a conversation's rows
1024
+ // are stamped once at creation from its connection / parent and extended by
1025
+ // shares; messages inherit their conversation. /conversations/v1/shares.
1026
+ "connections",
1027
+ "conversations",
1028
+ "messages"
1029
+ ];
1003
1030
  function isPlatformEntity(slug) {
1004
1031
  return PLATFORM_ENTITY_SLUGS.includes(slug);
1005
1032
  }
@@ -1663,6 +1690,12 @@ var ConversationClient = class {
1663
1690
  glossaryTerms;
1664
1691
  /** Conversation taxonomy: the types the pre-summary classifier assigns. */
1665
1692
  conversationTypes;
1693
+ /** Conversation intelligence: WHAT to look for — typed questions asked of conversations. */
1694
+ conversationTagDefinitions;
1695
+ /** Conversation intelligence: WHERE and WHEN definitions are evaluated. */
1696
+ conversationTagSets;
1697
+ /** Conversation intelligence: the observations produced + their evaluation history. */
1698
+ conversationTags;
1666
1699
  /** Generic audience taxonomy; membership lives on the contact. */
1667
1700
  contactGroups;
1668
1701
  /** Tone-of-voice synthesis: per-user setups + the generated profiles. */
@@ -1689,6 +1722,9 @@ var ConversationClient = class {
1689
1722
  this.channelEvents = new ChannelEventServiceImpl(client);
1690
1723
  this.glossaryTerms = new GlossaryTermServiceImpl(client);
1691
1724
  this.conversationTypes = new ConversationTypeServiceImpl(client);
1725
+ this.conversationTagDefinitions = new ConversationTagDefinitionServiceImpl(client);
1726
+ this.conversationTagSets = new ConversationTagSetServiceImpl(client);
1727
+ this.conversationTags = new ConversationTagServiceImpl(client);
1692
1728
  this.contactGroups = new ContactGroupServiceImpl(client);
1693
1729
  this.toneProfiles = new ToneProfileServiceImpl(client);
1694
1730
  this.transcriptions = new TranscriptionServiceImpl(client);
@@ -2228,6 +2264,151 @@ var ConversationTypeServiceImpl = class {
2228
2264
  );
2229
2265
  }
2230
2266
  };
2267
+ var ConversationTagDefinitionServiceImpl = class {
2268
+ constructor(client) {
2269
+ this.client = client;
2270
+ }
2271
+ client;
2272
+ list(query = {}) {
2273
+ return this.client.requestWithQuery(
2274
+ "GET",
2275
+ `${CONVERSATION_BASE_PATH}/conversation-tag-definitions`,
2276
+ query
2277
+ );
2278
+ }
2279
+ get(key) {
2280
+ return this.client.request(
2281
+ "GET",
2282
+ `${CONVERSATION_BASE_PATH}/conversation-tag-definitions/${encodeURIComponent(key)}`
2283
+ );
2284
+ }
2285
+ create(request) {
2286
+ return this.client.request(
2287
+ "POST",
2288
+ `${CONVERSATION_BASE_PATH}/conversation-tag-definitions`,
2289
+ request
2290
+ );
2291
+ }
2292
+ update(key, request) {
2293
+ return this.client.request(
2294
+ "PATCH",
2295
+ `${CONVERSATION_BASE_PATH}/conversation-tag-definitions/${encodeURIComponent(key)}`,
2296
+ request
2297
+ );
2298
+ }
2299
+ upsert(key, request) {
2300
+ return this.client.request(
2301
+ "PUT",
2302
+ `${CONVERSATION_BASE_PATH}/conversation-tag-definitions/${encodeURIComponent(key)}`,
2303
+ { ...request, key }
2304
+ );
2305
+ }
2306
+ async delete(key) {
2307
+ await this.client.request(
2308
+ "DELETE",
2309
+ `${CONVERSATION_BASE_PATH}/conversation-tag-definitions/${encodeURIComponent(key)}`
2310
+ );
2311
+ }
2312
+ };
2313
+ var ConversationTagSetServiceImpl = class {
2314
+ constructor(client) {
2315
+ this.client = client;
2316
+ }
2317
+ client;
2318
+ list(query = {}) {
2319
+ return this.client.requestWithQuery(
2320
+ "GET",
2321
+ `${CONVERSATION_BASE_PATH}/conversation-tag-sets`,
2322
+ query
2323
+ );
2324
+ }
2325
+ get(key) {
2326
+ return this.client.request(
2327
+ "GET",
2328
+ `${CONVERSATION_BASE_PATH}/conversation-tag-sets/${encodeURIComponent(key)}`
2329
+ );
2330
+ }
2331
+ create(request) {
2332
+ return this.client.request("POST", `${CONVERSATION_BASE_PATH}/conversation-tag-sets`, request);
2333
+ }
2334
+ update(key, request) {
2335
+ return this.client.request(
2336
+ "PATCH",
2337
+ `${CONVERSATION_BASE_PATH}/conversation-tag-sets/${encodeURIComponent(key)}`,
2338
+ request
2339
+ );
2340
+ }
2341
+ upsert(key, request) {
2342
+ return this.client.request(
2343
+ "PUT",
2344
+ `${CONVERSATION_BASE_PATH}/conversation-tag-sets/${encodeURIComponent(key)}`,
2345
+ { ...request, key }
2346
+ );
2347
+ }
2348
+ async delete(key) {
2349
+ await this.client.request(
2350
+ "DELETE",
2351
+ `${CONVERSATION_BASE_PATH}/conversation-tag-sets/${encodeURIComponent(key)}`
2352
+ );
2353
+ }
2354
+ };
2355
+ var ConversationTagServiceImpl = class {
2356
+ constructor(client) {
2357
+ this.client = client;
2358
+ }
2359
+ client;
2360
+ listByConversation(conversationId, query = {}) {
2361
+ return this.client.requestWithQuery(
2362
+ "GET",
2363
+ `${CONVERSATION_BASE_PATH}/conversations/${encodeURIComponent(conversationId)}/tags`,
2364
+ query
2365
+ );
2366
+ }
2367
+ create(conversationId, request) {
2368
+ return this.client.request(
2369
+ "POST",
2370
+ `${CONVERSATION_BASE_PATH}/conversations/${encodeURIComponent(conversationId)}/tags`,
2371
+ request
2372
+ );
2373
+ }
2374
+ evaluate(conversationId, request = {}) {
2375
+ return this.client.request(
2376
+ "POST",
2377
+ `${CONVERSATION_BASE_PATH}/conversations/${encodeURIComponent(conversationId)}/tags/evaluate`,
2378
+ request
2379
+ );
2380
+ }
2381
+ listEvaluations(conversationId, query = {}) {
2382
+ return this.client.requestWithQuery(
2383
+ "GET",
2384
+ `${CONVERSATION_BASE_PATH}/conversations/${encodeURIComponent(conversationId)}/tag-evaluations`,
2385
+ query
2386
+ );
2387
+ }
2388
+ update(id, request) {
2389
+ return this.client.request(
2390
+ "PATCH",
2391
+ `${CONVERSATION_BASE_PATH}/conversation-tags/${encodeURIComponent(id)}`,
2392
+ request
2393
+ );
2394
+ }
2395
+ async delete(id) {
2396
+ await this.client.request(
2397
+ "DELETE",
2398
+ `${CONVERSATION_BASE_PATH}/conversation-tags/${encodeURIComponent(id)}`
2399
+ );
2400
+ }
2401
+ list(query = {}) {
2402
+ return this.client.requestWithQuery("GET", `${CONVERSATION_BASE_PATH}/conversation-tags`, query);
2403
+ }
2404
+ counts(query = {}) {
2405
+ return this.client.requestWithQuery(
2406
+ "GET",
2407
+ `${CONVERSATION_BASE_PATH}/conversation-tags/counts`,
2408
+ query
2409
+ );
2410
+ }
2411
+ };
2231
2412
  var ContactGroupServiceImpl = class {
2232
2413
  constructor(client) {
2233
2414
  this.client = client;