@proteos/sdk 0.50.1 → 0.51.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-TDG5QFZ5.js → chunk-IRFFXJMB.js} +66 -4
- package/dist/chunk-IRFFXJMB.js.map +1 -0
- package/dist/{chunk-OD7GPJAW.cjs → chunk-RKFXHDVU.cjs} +67 -3
- package/dist/chunk-RKFXHDVU.cjs.map +1 -0
- package/dist/index.cjs +345 -96
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +714 -12
- package/dist/index.d.ts +714 -12
- package/dist/index.js +242 -3
- package/dist/index.js.map +1 -1
- package/dist/meta/index.cjs +65 -57
- 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-COxVBT4w.d.cts → types-C9flkAj-.d.cts} +208 -7
- package/dist/{types-COxVBT4w.d.ts → types-C9flkAj-.d.ts} +208 -7
- package/package.json +1 -1
- package/src/auth/index.ts +40 -11
- package/src/auth/me.ts +13 -1
- package/src/auth/platform-entities.ts +11 -0
- package/src/auth/profiles.ts +82 -0
- package/src/auth/types.ts +87 -0
- package/src/auth/user-profile-assignments.ts +41 -0
- package/src/auth/users.ts +37 -0
- package/src/conversation/index.ts +240 -1
- package/src/conversation/types.ts +444 -6
- package/src/index.ts +55 -0
- package/src/meta/app-configurations.ts +100 -0
- package/src/meta/index.ts +28 -10
- package/src/meta/types.ts +94 -4
- package/src/workflow/types.ts +11 -0
- package/dist/chunk-OD7GPJAW.cjs.map +0 -1
- package/dist/chunk-TDG5QFZ5.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 { AppSchema, AttributeSchema, AuditFieldsSchema, CURRENT_USER_DEFAULT, ColumnSchema, ComponentSchema, CurrencyAttributeMetaSchema, DEFAULT_PAGE_SIZE, DONE, DesignReferenceSchema, EntitySchema, EntityWithSchemaSchema, FileRefSchema, FilterElementSchema, FilterGroupSchema, ListSchema, ListViewSchema, MenuConfigurationSchema, MenuItemSchema, MenuItemType, MetaClient, ModuleSchema, OnDeleteActionSchema, PLATFORM_ATTRIBUTE_NAMES, PLATFORM_USER_ID, PageActionSchema, PageIterator, PageLayoutSchema, PageSchema, RelationAttributeMetaSchema, ResponseMetaSchema, SortConfigSchema, UserRefSchema, VariableSchema, acceptsCurrentUserDefault, allCurrencyCodes, createIterator, createListResultSchema, currencyLabel, currencySymbol, currencySymbolSide, formatAmount, formatMoney, isCurrentUserDefault, isPlatformAttributeName, localeNumberSeparators, parseAmount, parseCurrencyMeta, parseFileMeta, parseRelationMeta, platformAttributes } from './chunk-
|
|
1
|
+
import { AuditFieldsSchema, FileRefSchema, PrincipalRefSchema, AttributeSchema, UserRefSchema, PageIterator } from './chunk-IRFFXJMB.js';
|
|
2
|
+
export { AppConfigurationSchema, AppHomeSchema, AppSchema, AttributeSchema, AuditFieldsSchema, CURRENT_USER_DEFAULT, ColumnSchema, ComponentSchema, CurrencyAttributeMetaSchema, DEFAULT_PAGE_SIZE, DONE, DesignReferenceSchema, EntitySchema, EntityWithSchemaSchema, FileRefSchema, FilterElementSchema, FilterGroupSchema, ListSchema, ListViewSchema, MenuConfigurationSchema, MenuItemSchema, MenuItemType, MetaClient, ModuleSchema, OnDeleteActionSchema, PLATFORM_ATTRIBUTE_NAMES, PLATFORM_USER_ID, PageActionSchema, PageIterator, PageLayoutSchema, PageSchema, RelationAttributeMetaSchema, ResponseMetaSchema, SortConfigSchema, UserRefSchema, VariableSchema, acceptsCurrentUserDefault, allCurrencyCodes, createIterator, createListResultSchema, currencyLabel, currencySymbol, currencySymbolSide, formatAmount, formatMoney, isCurrentUserDefault, isPlatformAttributeName, localeNumberSeparators, parseAmount, parseCurrencyMeta, parseFileMeta, parseRelationMeta, platformAttributes } from './chunk-IRFFXJMB.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { fetchEventSource } from '@microsoft/fetch-event-source';
|
|
5
5
|
|
|
@@ -429,6 +429,9 @@ var MeServiceImpl = class {
|
|
|
429
429
|
);
|
|
430
430
|
return response.data;
|
|
431
431
|
}
|
|
432
|
+
async profile() {
|
|
433
|
+
return this.client.request("GET", `${ME_BASE_PATH}/profile`);
|
|
434
|
+
}
|
|
432
435
|
};
|
|
433
436
|
|
|
434
437
|
// src/auth/organizations.ts
|
|
@@ -462,6 +465,39 @@ var OrganizationServiceImpl = class {
|
|
|
462
465
|
}
|
|
463
466
|
};
|
|
464
467
|
|
|
468
|
+
// src/auth/profiles.ts
|
|
469
|
+
var PROFILES_BASE_PATH = "/accounts/v1/profiles";
|
|
470
|
+
var ProfileServiceImpl = class {
|
|
471
|
+
constructor(client) {
|
|
472
|
+
this.client = client;
|
|
473
|
+
}
|
|
474
|
+
client;
|
|
475
|
+
list(options = {}) {
|
|
476
|
+
return new PageIterator((opts) => this.listPage(opts), options);
|
|
477
|
+
}
|
|
478
|
+
async listPage(options = {}) {
|
|
479
|
+
return this.client.requestWithQuery("GET", PROFILES_BASE_PATH, options);
|
|
480
|
+
}
|
|
481
|
+
async get(slug) {
|
|
482
|
+
return this.client.request("GET", `${PROFILES_BASE_PATH}/${slug}`);
|
|
483
|
+
}
|
|
484
|
+
async create(request) {
|
|
485
|
+
return this.client.request("POST", PROFILES_BASE_PATH, request);
|
|
486
|
+
}
|
|
487
|
+
async upsert(slug, request) {
|
|
488
|
+
return this.client.request("PUT", `${PROFILES_BASE_PATH}/${slug}`, {
|
|
489
|
+
...request,
|
|
490
|
+
slug
|
|
491
|
+
});
|
|
492
|
+
}
|
|
493
|
+
async update(slug, request) {
|
|
494
|
+
return this.client.request("PATCH", `${PROFILES_BASE_PATH}/${slug}`, request);
|
|
495
|
+
}
|
|
496
|
+
async delete(slug) {
|
|
497
|
+
await this.client.request("DELETE", `${PROFILES_BASE_PATH}/${slug}`);
|
|
498
|
+
}
|
|
499
|
+
};
|
|
500
|
+
|
|
465
501
|
// src/auth/roles.ts
|
|
466
502
|
var ROLES_BASE_PATH = "/accounts/v1/roles";
|
|
467
503
|
var RoleServiceImpl = class {
|
|
@@ -723,6 +759,25 @@ var TeamServiceImpl = class {
|
|
|
723
759
|
}
|
|
724
760
|
};
|
|
725
761
|
|
|
762
|
+
// src/auth/user-profile-assignments.ts
|
|
763
|
+
var USER_PROFILE_ASSIGNMENTS_BASE_PATH = "/accounts/v1/user-profile-assignments";
|
|
764
|
+
var UserProfileAssignmentServiceImpl = class {
|
|
765
|
+
constructor(client) {
|
|
766
|
+
this.client = client;
|
|
767
|
+
}
|
|
768
|
+
client;
|
|
769
|
+
list(options = {}) {
|
|
770
|
+
return new PageIterator((opts) => this.listPage(opts), options);
|
|
771
|
+
}
|
|
772
|
+
async listPage(options = {}) {
|
|
773
|
+
return this.client.requestWithQuery(
|
|
774
|
+
"GET",
|
|
775
|
+
USER_PROFILE_ASSIGNMENTS_BASE_PATH,
|
|
776
|
+
options
|
|
777
|
+
);
|
|
778
|
+
}
|
|
779
|
+
};
|
|
780
|
+
|
|
726
781
|
// src/auth/user-role-assignments.ts
|
|
727
782
|
var USER_ROLE_ASSIGNMENTS_BASE_PATH = "/accounts/v1/user-role-assignments";
|
|
728
783
|
var UserRoleAssignmentServiceImpl = class {
|
|
@@ -777,6 +832,19 @@ var UserServiceImpl = class {
|
|
|
777
832
|
async unassignRole(userId, roleSlug) {
|
|
778
833
|
await this.client.request("DELETE", `${USERS_BASE_PATH}/${userId}/roles/${roleSlug}`);
|
|
779
834
|
}
|
|
835
|
+
async getProfile(userId) {
|
|
836
|
+
return this.client.request("GET", `${USERS_BASE_PATH}/${userId}/profile`);
|
|
837
|
+
}
|
|
838
|
+
async setProfile(userId, request) {
|
|
839
|
+
return this.client.request(
|
|
840
|
+
"PUT",
|
|
841
|
+
`${USERS_BASE_PATH}/${userId}/profile`,
|
|
842
|
+
request
|
|
843
|
+
);
|
|
844
|
+
}
|
|
845
|
+
async clearProfile(userId) {
|
|
846
|
+
await this.client.request("DELETE", `${USERS_BASE_PATH}/${userId}/profile`);
|
|
847
|
+
}
|
|
780
848
|
async listApiKeys(userId) {
|
|
781
849
|
const response = await this.client.request(
|
|
782
850
|
"GET",
|
|
@@ -816,12 +884,18 @@ var PLATFORM_ENTITIES = [
|
|
|
816
884
|
// who is in it are different decisions, and membership is what moves access.
|
|
817
885
|
{ slug: "teams", name: "Teams" },
|
|
818
886
|
{ slug: "team-members", name: "Team Members" },
|
|
887
|
+
// Profiles are the org's user-types (UI defaults; app configurations key on
|
|
888
|
+
// them). ONE per user per org. Managing and assigning are separate grants.
|
|
889
|
+
{ slug: "profiles", name: "Profiles" },
|
|
890
|
+
{ slug: "user-profile-assignments", name: "User Profile Assignments" },
|
|
819
891
|
// The share audit trail — a distinct grant from the resources it references.
|
|
820
892
|
// Schema / content (metadata-service)
|
|
821
893
|
{ slug: "entities", name: "Entities" },
|
|
822
894
|
{ slug: "pages", name: "Pages" },
|
|
823
895
|
{ slug: "menu-configurations", name: "Menu Configurations" },
|
|
824
896
|
{ slug: "apps", name: "Apps" },
|
|
897
|
+
// Typed (app × profile) binding rows: home, menu, agents, record pages.
|
|
898
|
+
{ slug: "app-configurations", name: "App Configurations" },
|
|
825
899
|
{ slug: "components", name: "Components" },
|
|
826
900
|
{ slug: "lists", name: "Lists" },
|
|
827
901
|
{ slug: "list-views", name: "List Views" },
|
|
@@ -883,6 +957,11 @@ var PLATFORM_ENTITIES = [
|
|
|
883
957
|
// The channel_action ledger: acts through a connection that are neither a
|
|
884
958
|
// message nor a reaction (LinkedIn invitations, profile visits, InMail).
|
|
885
959
|
{ slug: "channel-actions", name: "Channel Actions" },
|
|
960
|
+
// The channel_event ledger: provider-observed delivery / engagement events
|
|
961
|
+
// about outbound messages (delivered, bounced, opened, unsubscribed).
|
|
962
|
+
{ slug: "channel-events", name: "Channel Events" },
|
|
963
|
+
// Conversation briefs: guidance prepared ahead of a conversation (call, meeting) with a contact.
|
|
964
|
+
{ slug: "conversation-briefs", name: "Conversation Briefs" },
|
|
886
965
|
// Connectors (connector-service). `connections` above is shared; this is the
|
|
887
966
|
// manifest catalog.
|
|
888
967
|
{ slug: "connectors", name: "Connectors" }
|
|
@@ -925,6 +1004,21 @@ AuditFieldsSchema.extend({
|
|
|
925
1004
|
expires_at: z.string().nullable(),
|
|
926
1005
|
last_used_at: z.string().nullable()
|
|
927
1006
|
});
|
|
1007
|
+
var ProfileSchema = AuditFieldsSchema.extend({
|
|
1008
|
+
slug: z.string(),
|
|
1009
|
+
name: z.string(),
|
|
1010
|
+
org_id: z.string(),
|
|
1011
|
+
description: z.string(),
|
|
1012
|
+
module_slug: z.string(),
|
|
1013
|
+
default_app_slug: z.string(),
|
|
1014
|
+
app_slugs: z.array(z.string())
|
|
1015
|
+
});
|
|
1016
|
+
var UserProfileAssignmentSchema = AuditFieldsSchema.extend({
|
|
1017
|
+
id: z.string(),
|
|
1018
|
+
user_id: z.string(),
|
|
1019
|
+
profile_slug: z.string(),
|
|
1020
|
+
org_id: z.string()
|
|
1021
|
+
});
|
|
928
1022
|
var RoleSchema = AuditFieldsSchema.extend({
|
|
929
1023
|
slug: z.string(),
|
|
930
1024
|
name: z.string(),
|
|
@@ -976,6 +1070,14 @@ var AccountClient = class {
|
|
|
976
1070
|
* role" in one request).
|
|
977
1071
|
*/
|
|
978
1072
|
userRoleAssignments;
|
|
1073
|
+
/**
|
|
1074
|
+
* Service for managing profiles (the org's user-types, one per user).
|
|
1075
|
+
*/
|
|
1076
|
+
profiles;
|
|
1077
|
+
/**
|
|
1078
|
+
* Service for the org-wide user-profile-assignment listing.
|
|
1079
|
+
*/
|
|
1080
|
+
userProfileAssignments;
|
|
979
1081
|
/**
|
|
980
1082
|
* Service for managing organizations.
|
|
981
1083
|
*/
|
|
@@ -1003,6 +1105,8 @@ var AccountClient = class {
|
|
|
1003
1105
|
this.users = new UserServiceImpl(client);
|
|
1004
1106
|
this.roles = new RoleServiceImpl(client);
|
|
1005
1107
|
this.userRoleAssignments = new UserRoleAssignmentServiceImpl(client);
|
|
1108
|
+
this.profiles = new ProfileServiceImpl(client);
|
|
1109
|
+
this.userProfileAssignments = new UserProfileAssignmentServiceImpl(client);
|
|
1006
1110
|
this.organizations = new OrganizationServiceImpl(client);
|
|
1007
1111
|
this.teams = new TeamServiceImpl(client);
|
|
1008
1112
|
this.shares = new ShareServiceImpl(client);
|
|
@@ -1524,6 +1628,7 @@ var ConversationClient = class {
|
|
|
1524
1628
|
* message nor a reaction — LinkedIn invitations, profile visits, InMail.
|
|
1525
1629
|
*/
|
|
1526
1630
|
channelActions;
|
|
1631
|
+
channelEvents;
|
|
1527
1632
|
/** Per-org glossary: custom vocabulary that boosts transcription accuracy. */
|
|
1528
1633
|
glossaryTerms;
|
|
1529
1634
|
/** Conversation taxonomy: the types the pre-summary classifier assigns. */
|
|
@@ -1540,6 +1645,8 @@ var ConversationClient = class {
|
|
|
1540
1645
|
/** Realtime speech-to-text (dictation) — moved here from agent-service. */
|
|
1541
1646
|
voice;
|
|
1542
1647
|
calls;
|
|
1648
|
+
/** Conversation briefs: guidance prepared ahead of a conversation (call, meeting) with a contact. */
|
|
1649
|
+
conversationBriefs;
|
|
1543
1650
|
constructor(client) {
|
|
1544
1651
|
this.connections = new ConnectionServiceImpl(client);
|
|
1545
1652
|
this.conversations = new ConversationServiceImpl(client);
|
|
@@ -1549,6 +1656,7 @@ var ConversationClient = class {
|
|
|
1549
1656
|
this.conversationFilters = new ConversationFilterServiceImpl(client);
|
|
1550
1657
|
this.sendingRules = new SendingRuleServiceImpl(client);
|
|
1551
1658
|
this.channelActions = new ChannelActionServiceImpl(client);
|
|
1659
|
+
this.channelEvents = new ChannelEventServiceImpl(client);
|
|
1552
1660
|
this.glossaryTerms = new GlossaryTermServiceImpl(client);
|
|
1553
1661
|
this.conversationTypes = new ConversationTypeServiceImpl(client);
|
|
1554
1662
|
this.contactGroups = new ContactGroupServiceImpl(client);
|
|
@@ -1558,6 +1666,7 @@ var ConversationClient = class {
|
|
|
1558
1666
|
this.meetings = new MeetingServiceImpl(client);
|
|
1559
1667
|
this.voice = new VoiceServiceImpl(client);
|
|
1560
1668
|
this.calls = new CallServiceImpl(client);
|
|
1669
|
+
this.conversationBriefs = new ConversationBriefServiceImpl(client);
|
|
1561
1670
|
}
|
|
1562
1671
|
};
|
|
1563
1672
|
var MeetingServiceImpl = class {
|
|
@@ -1640,6 +1749,67 @@ var ConnectionServiceImpl = class {
|
|
|
1640
1749
|
query
|
|
1641
1750
|
);
|
|
1642
1751
|
}
|
|
1752
|
+
getHealth(connectionId, query = {}) {
|
|
1753
|
+
return this.client.requestWithQuery(
|
|
1754
|
+
"GET",
|
|
1755
|
+
`${CONVERSATION_BASE_PATH}/connections/${encodeURIComponent(connectionId)}/health`,
|
|
1756
|
+
query
|
|
1757
|
+
);
|
|
1758
|
+
}
|
|
1759
|
+
validateDomain(connectionId) {
|
|
1760
|
+
return this.client.request(
|
|
1761
|
+
"POST",
|
|
1762
|
+
`${CONVERSATION_BASE_PATH}/connections/${encodeURIComponent(connectionId)}/domain/validate`
|
|
1763
|
+
);
|
|
1764
|
+
}
|
|
1765
|
+
resendSenderVerification(connectionId) {
|
|
1766
|
+
return this.client.request(
|
|
1767
|
+
"POST",
|
|
1768
|
+
`${CONVERSATION_BASE_PATH}/connections/${encodeURIComponent(connectionId)}/sender/verify`
|
|
1769
|
+
);
|
|
1770
|
+
}
|
|
1771
|
+
async listSuppressions(connectionId, kind) {
|
|
1772
|
+
const response = await this.client.requestWithQuery(
|
|
1773
|
+
"GET",
|
|
1774
|
+
`${CONVERSATION_BASE_PATH}/connections/${encodeURIComponent(connectionId)}/suppressions`,
|
|
1775
|
+
{ kind }
|
|
1776
|
+
);
|
|
1777
|
+
return response.data;
|
|
1778
|
+
}
|
|
1779
|
+
removeSuppression(connectionId, kind, email) {
|
|
1780
|
+
return this.client.request(
|
|
1781
|
+
"DELETE",
|
|
1782
|
+
`${CONVERSATION_BASE_PATH}/connections/${encodeURIComponent(connectionId)}/suppressions/${encodeURIComponent(kind)}/${encodeURIComponent(email)}`
|
|
1783
|
+
);
|
|
1784
|
+
}
|
|
1785
|
+
setIpWarmup(connectionId, ip, isEnabled) {
|
|
1786
|
+
return this.client.request(
|
|
1787
|
+
isEnabled ? "POST" : "DELETE",
|
|
1788
|
+
`${CONVERSATION_BASE_PATH}/connections/${encodeURIComponent(connectionId)}/ip-warmup/${encodeURIComponent(ip)}`
|
|
1789
|
+
);
|
|
1790
|
+
}
|
|
1791
|
+
async listConnectors() {
|
|
1792
|
+
const response = await this.client.request(
|
|
1793
|
+
"GET",
|
|
1794
|
+
`${CONVERSATION_BASE_PATH}/connectors`
|
|
1795
|
+
);
|
|
1796
|
+
return response.data;
|
|
1797
|
+
}
|
|
1798
|
+
async listSenders(connectionId) {
|
|
1799
|
+
const response = await this.client.request(
|
|
1800
|
+
"GET",
|
|
1801
|
+
`${CONVERSATION_BASE_PATH}/connections/${encodeURIComponent(connectionId)}/senders`
|
|
1802
|
+
);
|
|
1803
|
+
return response.data;
|
|
1804
|
+
}
|
|
1805
|
+
async setDefaultSender(connectionId, request) {
|
|
1806
|
+
const response = await this.client.request(
|
|
1807
|
+
"PUT",
|
|
1808
|
+
`${CONVERSATION_BASE_PATH}/connections/${encodeURIComponent(connectionId)}/senders/default`,
|
|
1809
|
+
request
|
|
1810
|
+
);
|
|
1811
|
+
return response.data;
|
|
1812
|
+
}
|
|
1643
1813
|
};
|
|
1644
1814
|
var ContactServiceImpl = class {
|
|
1645
1815
|
constructor(client) {
|
|
@@ -2216,6 +2386,54 @@ var CallServiceImpl = class {
|
|
|
2216
2386
|
);
|
|
2217
2387
|
}
|
|
2218
2388
|
};
|
|
2389
|
+
var ConversationBriefServiceImpl = class {
|
|
2390
|
+
constructor(client) {
|
|
2391
|
+
this.client = client;
|
|
2392
|
+
}
|
|
2393
|
+
client;
|
|
2394
|
+
list(query = {}) {
|
|
2395
|
+
return this.client.requestWithQuery(
|
|
2396
|
+
"GET",
|
|
2397
|
+
`${CONVERSATION_BASE_PATH}/conversation-briefs`,
|
|
2398
|
+
query
|
|
2399
|
+
);
|
|
2400
|
+
}
|
|
2401
|
+
get(id) {
|
|
2402
|
+
return this.client.request(
|
|
2403
|
+
"GET",
|
|
2404
|
+
`${CONVERSATION_BASE_PATH}/conversation-briefs/${encodeURIComponent(id)}`
|
|
2405
|
+
);
|
|
2406
|
+
}
|
|
2407
|
+
create(request) {
|
|
2408
|
+
return this.client.request("POST", `${CONVERSATION_BASE_PATH}/conversation-briefs`, request);
|
|
2409
|
+
}
|
|
2410
|
+
update(id, request) {
|
|
2411
|
+
return this.client.request(
|
|
2412
|
+
"PATCH",
|
|
2413
|
+
`${CONVERSATION_BASE_PATH}/conversation-briefs/${encodeURIComponent(id)}`,
|
|
2414
|
+
request
|
|
2415
|
+
);
|
|
2416
|
+
}
|
|
2417
|
+
discard(id) {
|
|
2418
|
+
return this.client.request(
|
|
2419
|
+
"POST",
|
|
2420
|
+
`${CONVERSATION_BASE_PATH}/conversation-briefs/${encodeURIComponent(id)}/discard`
|
|
2421
|
+
);
|
|
2422
|
+
}
|
|
2423
|
+
attach(id, request) {
|
|
2424
|
+
return this.client.request(
|
|
2425
|
+
"POST",
|
|
2426
|
+
`${CONVERSATION_BASE_PATH}/conversation-briefs/${encodeURIComponent(id)}/attach`,
|
|
2427
|
+
request
|
|
2428
|
+
);
|
|
2429
|
+
}
|
|
2430
|
+
async delete(id) {
|
|
2431
|
+
await this.client.request(
|
|
2432
|
+
"DELETE",
|
|
2433
|
+
`${CONVERSATION_BASE_PATH}/conversation-briefs/${encodeURIComponent(id)}`
|
|
2434
|
+
);
|
|
2435
|
+
}
|
|
2436
|
+
};
|
|
2219
2437
|
var SendingRuleServiceImpl = class {
|
|
2220
2438
|
constructor(client) {
|
|
2221
2439
|
this.client = client;
|
|
@@ -2292,6 +2510,27 @@ var ChannelActionServiceImpl = class {
|
|
|
2292
2510
|
);
|
|
2293
2511
|
}
|
|
2294
2512
|
};
|
|
2513
|
+
var ChannelEventServiceImpl = class {
|
|
2514
|
+
constructor(client) {
|
|
2515
|
+
this.client = client;
|
|
2516
|
+
}
|
|
2517
|
+
client;
|
|
2518
|
+
list(query = {}) {
|
|
2519
|
+
return this.client.requestWithQuery("GET", `${CONVERSATION_BASE_PATH}/channel-events`, query);
|
|
2520
|
+
}
|
|
2521
|
+
get(id) {
|
|
2522
|
+
return this.client.request(
|
|
2523
|
+
"GET",
|
|
2524
|
+
`${CONVERSATION_BASE_PATH}/channel-events/${encodeURIComponent(id)}`
|
|
2525
|
+
);
|
|
2526
|
+
}
|
|
2527
|
+
listByMessage(messageId) {
|
|
2528
|
+
return this.client.request(
|
|
2529
|
+
"GET",
|
|
2530
|
+
`${CONVERSATION_BASE_PATH}/messages/${encodeURIComponent(messageId)}/events`
|
|
2531
|
+
);
|
|
2532
|
+
}
|
|
2533
|
+
};
|
|
2295
2534
|
|
|
2296
2535
|
// src/data/queries.ts
|
|
2297
2536
|
var QUERY_BASE_PATH = "/data/v1/query";
|
|
@@ -3197,6 +3436,6 @@ var WorkflowClient = class {
|
|
|
3197
3436
|
}
|
|
3198
3437
|
};
|
|
3199
3438
|
|
|
3200
|
-
export { AccountClient, ActionSchema, ActionScopeSchema, AgentClient, BatchTransactionErrorSchema, BatchUpsertRecordsResponseSchema, BatchUpsertTransactionResultSchema, BatchUpsertTransactionSchema, ConnectorClient, ConversationClient, DEFAULT_OPTIONS, DEFAULT_PORT, DataClient, ERROR_PORT, ErrorCode, EventsClient, FunctionsClient, KnowledgeClient, KnowledgeLabelSchema, KnowledgeLinkSchema, KnowledgeNodeLabelSchema, KnowledgeNodeMetadataSchema, KnowledgeNodeSchema, KnowledgeNodeSearchResultSchema, KnowledgeRecordLinkSchema, NodeNeighborhoodSchema, OrganizationSchema, PLATFORM_ENTITIES, PLATFORM_ENTITY_SLUGS, ProteosClient, ProteosError, RoleEntityPermissionSchema, RoleSchema, SCOPED_PLATFORM_ENTITY_SLUGS, StorageClient, UNASSIGNED_SPACE_SLUG, UserRoleAssignmentSchema, UserSchema, WorkflowClient, buildUrl, getDefaultErrorCode, isBadRequest, isConflict, isForbidden, isNotFound, isPlatformEntity, isProteosError, isShareable, isUnauthorized, parseErrorResponse, resolveOptions, shareRouteFor, toQueryParams, toQueryString };
|
|
3439
|
+
export { AccountClient, ActionSchema, ActionScopeSchema, AgentClient, BatchTransactionErrorSchema, BatchUpsertRecordsResponseSchema, BatchUpsertTransactionResultSchema, BatchUpsertTransactionSchema, ConnectorClient, ConversationClient, DEFAULT_OPTIONS, DEFAULT_PORT, DataClient, ERROR_PORT, ErrorCode, EventsClient, FunctionsClient, KnowledgeClient, KnowledgeLabelSchema, KnowledgeLinkSchema, KnowledgeNodeLabelSchema, KnowledgeNodeMetadataSchema, KnowledgeNodeSchema, KnowledgeNodeSearchResultSchema, KnowledgeRecordLinkSchema, NodeNeighborhoodSchema, OrganizationSchema, PLATFORM_ENTITIES, PLATFORM_ENTITY_SLUGS, ProfileSchema, ProteosClient, ProteosError, RoleEntityPermissionSchema, RoleSchema, SCOPED_PLATFORM_ENTITY_SLUGS, StorageClient, UNASSIGNED_SPACE_SLUG, UserProfileAssignmentSchema, UserRoleAssignmentSchema, UserSchema, WorkflowClient, buildUrl, getDefaultErrorCode, isBadRequest, isConflict, isForbidden, isNotFound, isPlatformEntity, isProteosError, isShareable, isUnauthorized, parseErrorResponse, resolveOptions, shareRouteFor, toQueryParams, toQueryString };
|
|
3201
3440
|
//# sourceMappingURL=index.js.map
|
|
3202
3441
|
//# sourceMappingURL=index.js.map
|