@proteos/sdk 0.57.0 → 0.58.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/{chunk-2EB3P4AR.cjs → chunk-25PD6TYH.cjs} +4 -3
- package/dist/chunk-25PD6TYH.cjs.map +1 -0
- package/dist/{chunk-U3FT5KAH.js → chunk-OOOTPEJK.js} +4 -3
- package/dist/chunk-OOOTPEJK.js.map +1 -0
- package/dist/index.cjs +279 -119
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +615 -3
- package/dist/index.d.ts +615 -3
- package/dist/index.js +162 -2
- package/dist/index.js.map +1 -1
- package/dist/meta/index.cjs +89 -89
- package/dist/meta/index.d.cts +1 -1
- package/dist/meta/index.d.ts +1 -1
- package/dist/meta/index.js +1 -1
- package/dist/{types-mC4i_Wk3.d.cts → types-DQmqR_G8.d.cts} +8 -0
- package/dist/{types-mC4i_Wk3.d.ts → types-DQmqR_G8.d.ts} +8 -0
- package/package.json +1 -1
- package/src/auth/platform-entities.ts +6 -0
- package/src/conversation/index.ts +286 -0
- package/src/conversation/types.ts +580 -0
- package/src/index.ts +36 -0
- package/src/meta/types.ts +6 -0
- package/dist/chunk-2EB3P4AR.cjs.map +0 -1
- package/dist/chunk-U3FT5KAH.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AuditFieldsSchema, FileRefSchema, PrincipalRefSchema, AttributeSchema, UserRefSchema, PageIterator } from './chunk-
|
|
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-
|
|
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
|
|
|
@@ -984,6 +984,12 @@ var PLATFORM_ENTITIES = [
|
|
|
984
984
|
{ slug: "channel-events", name: "Channel Events" },
|
|
985
985
|
// Conversation briefs: guidance prepared ahead of a conversation (call, meeting) with a contact.
|
|
986
986
|
{ slug: "conversation-briefs", name: "Conversation Briefs" },
|
|
987
|
+
// Conversation intelligence: the typed questions asked of conversations
|
|
988
|
+
// (definitions), where/when they are evaluated (sets), and the observations
|
|
989
|
+
// they produce incl. their evaluation history (tags).
|
|
990
|
+
{ slug: "conversation-tag-definitions", name: "Conversation Tag Definitions" },
|
|
991
|
+
{ slug: "conversation-tag-sets", name: "Conversation Tag Sets" },
|
|
992
|
+
{ slug: "conversation-tags", name: "Conversation Tags" },
|
|
987
993
|
// Connectors (connector-service). `connections` above is shared; this is the
|
|
988
994
|
// manifest catalog.
|
|
989
995
|
{ slug: "connectors", name: "Connectors" },
|
|
@@ -1663,6 +1669,12 @@ var ConversationClient = class {
|
|
|
1663
1669
|
glossaryTerms;
|
|
1664
1670
|
/** Conversation taxonomy: the types the pre-summary classifier assigns. */
|
|
1665
1671
|
conversationTypes;
|
|
1672
|
+
/** Conversation intelligence: WHAT to look for — typed questions asked of conversations. */
|
|
1673
|
+
conversationTagDefinitions;
|
|
1674
|
+
/** Conversation intelligence: WHERE and WHEN definitions are evaluated. */
|
|
1675
|
+
conversationTagSets;
|
|
1676
|
+
/** Conversation intelligence: the observations produced + their evaluation history. */
|
|
1677
|
+
conversationTags;
|
|
1666
1678
|
/** Generic audience taxonomy; membership lives on the contact. */
|
|
1667
1679
|
contactGroups;
|
|
1668
1680
|
/** Tone-of-voice synthesis: per-user setups + the generated profiles. */
|
|
@@ -1689,6 +1701,9 @@ var ConversationClient = class {
|
|
|
1689
1701
|
this.channelEvents = new ChannelEventServiceImpl(client);
|
|
1690
1702
|
this.glossaryTerms = new GlossaryTermServiceImpl(client);
|
|
1691
1703
|
this.conversationTypes = new ConversationTypeServiceImpl(client);
|
|
1704
|
+
this.conversationTagDefinitions = new ConversationTagDefinitionServiceImpl(client);
|
|
1705
|
+
this.conversationTagSets = new ConversationTagSetServiceImpl(client);
|
|
1706
|
+
this.conversationTags = new ConversationTagServiceImpl(client);
|
|
1692
1707
|
this.contactGroups = new ContactGroupServiceImpl(client);
|
|
1693
1708
|
this.toneProfiles = new ToneProfileServiceImpl(client);
|
|
1694
1709
|
this.transcriptions = new TranscriptionServiceImpl(client);
|
|
@@ -2228,6 +2243,151 @@ var ConversationTypeServiceImpl = class {
|
|
|
2228
2243
|
);
|
|
2229
2244
|
}
|
|
2230
2245
|
};
|
|
2246
|
+
var ConversationTagDefinitionServiceImpl = class {
|
|
2247
|
+
constructor(client) {
|
|
2248
|
+
this.client = client;
|
|
2249
|
+
}
|
|
2250
|
+
client;
|
|
2251
|
+
list(query = {}) {
|
|
2252
|
+
return this.client.requestWithQuery(
|
|
2253
|
+
"GET",
|
|
2254
|
+
`${CONVERSATION_BASE_PATH}/conversation-tag-definitions`,
|
|
2255
|
+
query
|
|
2256
|
+
);
|
|
2257
|
+
}
|
|
2258
|
+
get(key) {
|
|
2259
|
+
return this.client.request(
|
|
2260
|
+
"GET",
|
|
2261
|
+
`${CONVERSATION_BASE_PATH}/conversation-tag-definitions/${encodeURIComponent(key)}`
|
|
2262
|
+
);
|
|
2263
|
+
}
|
|
2264
|
+
create(request) {
|
|
2265
|
+
return this.client.request(
|
|
2266
|
+
"POST",
|
|
2267
|
+
`${CONVERSATION_BASE_PATH}/conversation-tag-definitions`,
|
|
2268
|
+
request
|
|
2269
|
+
);
|
|
2270
|
+
}
|
|
2271
|
+
update(key, request) {
|
|
2272
|
+
return this.client.request(
|
|
2273
|
+
"PATCH",
|
|
2274
|
+
`${CONVERSATION_BASE_PATH}/conversation-tag-definitions/${encodeURIComponent(key)}`,
|
|
2275
|
+
request
|
|
2276
|
+
);
|
|
2277
|
+
}
|
|
2278
|
+
upsert(key, request) {
|
|
2279
|
+
return this.client.request(
|
|
2280
|
+
"PUT",
|
|
2281
|
+
`${CONVERSATION_BASE_PATH}/conversation-tag-definitions/${encodeURIComponent(key)}`,
|
|
2282
|
+
{ ...request, key }
|
|
2283
|
+
);
|
|
2284
|
+
}
|
|
2285
|
+
async delete(key) {
|
|
2286
|
+
await this.client.request(
|
|
2287
|
+
"DELETE",
|
|
2288
|
+
`${CONVERSATION_BASE_PATH}/conversation-tag-definitions/${encodeURIComponent(key)}`
|
|
2289
|
+
);
|
|
2290
|
+
}
|
|
2291
|
+
};
|
|
2292
|
+
var ConversationTagSetServiceImpl = class {
|
|
2293
|
+
constructor(client) {
|
|
2294
|
+
this.client = client;
|
|
2295
|
+
}
|
|
2296
|
+
client;
|
|
2297
|
+
list(query = {}) {
|
|
2298
|
+
return this.client.requestWithQuery(
|
|
2299
|
+
"GET",
|
|
2300
|
+
`${CONVERSATION_BASE_PATH}/conversation-tag-sets`,
|
|
2301
|
+
query
|
|
2302
|
+
);
|
|
2303
|
+
}
|
|
2304
|
+
get(key) {
|
|
2305
|
+
return this.client.request(
|
|
2306
|
+
"GET",
|
|
2307
|
+
`${CONVERSATION_BASE_PATH}/conversation-tag-sets/${encodeURIComponent(key)}`
|
|
2308
|
+
);
|
|
2309
|
+
}
|
|
2310
|
+
create(request) {
|
|
2311
|
+
return this.client.request("POST", `${CONVERSATION_BASE_PATH}/conversation-tag-sets`, request);
|
|
2312
|
+
}
|
|
2313
|
+
update(key, request) {
|
|
2314
|
+
return this.client.request(
|
|
2315
|
+
"PATCH",
|
|
2316
|
+
`${CONVERSATION_BASE_PATH}/conversation-tag-sets/${encodeURIComponent(key)}`,
|
|
2317
|
+
request
|
|
2318
|
+
);
|
|
2319
|
+
}
|
|
2320
|
+
upsert(key, request) {
|
|
2321
|
+
return this.client.request(
|
|
2322
|
+
"PUT",
|
|
2323
|
+
`${CONVERSATION_BASE_PATH}/conversation-tag-sets/${encodeURIComponent(key)}`,
|
|
2324
|
+
{ ...request, key }
|
|
2325
|
+
);
|
|
2326
|
+
}
|
|
2327
|
+
async delete(key) {
|
|
2328
|
+
await this.client.request(
|
|
2329
|
+
"DELETE",
|
|
2330
|
+
`${CONVERSATION_BASE_PATH}/conversation-tag-sets/${encodeURIComponent(key)}`
|
|
2331
|
+
);
|
|
2332
|
+
}
|
|
2333
|
+
};
|
|
2334
|
+
var ConversationTagServiceImpl = class {
|
|
2335
|
+
constructor(client) {
|
|
2336
|
+
this.client = client;
|
|
2337
|
+
}
|
|
2338
|
+
client;
|
|
2339
|
+
listByConversation(conversationId, query = {}) {
|
|
2340
|
+
return this.client.requestWithQuery(
|
|
2341
|
+
"GET",
|
|
2342
|
+
`${CONVERSATION_BASE_PATH}/conversations/${encodeURIComponent(conversationId)}/tags`,
|
|
2343
|
+
query
|
|
2344
|
+
);
|
|
2345
|
+
}
|
|
2346
|
+
create(conversationId, request) {
|
|
2347
|
+
return this.client.request(
|
|
2348
|
+
"POST",
|
|
2349
|
+
`${CONVERSATION_BASE_PATH}/conversations/${encodeURIComponent(conversationId)}/tags`,
|
|
2350
|
+
request
|
|
2351
|
+
);
|
|
2352
|
+
}
|
|
2353
|
+
evaluate(conversationId, request = {}) {
|
|
2354
|
+
return this.client.request(
|
|
2355
|
+
"POST",
|
|
2356
|
+
`${CONVERSATION_BASE_PATH}/conversations/${encodeURIComponent(conversationId)}/tags/evaluate`,
|
|
2357
|
+
request
|
|
2358
|
+
);
|
|
2359
|
+
}
|
|
2360
|
+
listEvaluations(conversationId, query = {}) {
|
|
2361
|
+
return this.client.requestWithQuery(
|
|
2362
|
+
"GET",
|
|
2363
|
+
`${CONVERSATION_BASE_PATH}/conversations/${encodeURIComponent(conversationId)}/tag-evaluations`,
|
|
2364
|
+
query
|
|
2365
|
+
);
|
|
2366
|
+
}
|
|
2367
|
+
update(id, request) {
|
|
2368
|
+
return this.client.request(
|
|
2369
|
+
"PATCH",
|
|
2370
|
+
`${CONVERSATION_BASE_PATH}/conversation-tags/${encodeURIComponent(id)}`,
|
|
2371
|
+
request
|
|
2372
|
+
);
|
|
2373
|
+
}
|
|
2374
|
+
async delete(id) {
|
|
2375
|
+
await this.client.request(
|
|
2376
|
+
"DELETE",
|
|
2377
|
+
`${CONVERSATION_BASE_PATH}/conversation-tags/${encodeURIComponent(id)}`
|
|
2378
|
+
);
|
|
2379
|
+
}
|
|
2380
|
+
list(query = {}) {
|
|
2381
|
+
return this.client.requestWithQuery("GET", `${CONVERSATION_BASE_PATH}/conversation-tags`, query);
|
|
2382
|
+
}
|
|
2383
|
+
counts(query = {}) {
|
|
2384
|
+
return this.client.requestWithQuery(
|
|
2385
|
+
"GET",
|
|
2386
|
+
`${CONVERSATION_BASE_PATH}/conversation-tags/counts`,
|
|
2387
|
+
query
|
|
2388
|
+
);
|
|
2389
|
+
}
|
|
2390
|
+
};
|
|
2231
2391
|
var ContactGroupServiceImpl = class {
|
|
2232
2392
|
constructor(client) {
|
|
2233
2393
|
this.client = client;
|