@proteos/sdk 0.49.0 → 0.51.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-TDG5QFZ5.js';
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-TDG5QFZ5.js';
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 {
@@ -531,11 +567,18 @@ var ProteosError = class extends Error {
531
567
  httpStatus;
532
568
  /** API error code (e.g., 'not_found', 'unauthorized') */
533
569
  code;
534
- constructor(message, httpStatus, code) {
570
+ /**
571
+ * Optional machine-readable payload beside the message — e.g. a denied send's
572
+ * `earliest_allowed_at` / `rule_id`, the offending `contact_id`. Absent on
573
+ * most errors.
574
+ */
575
+ details;
576
+ constructor(message, httpStatus, code, details) {
535
577
  super(message);
536
578
  this.name = "ProteosError";
537
579
  this.httpStatus = httpStatus;
538
580
  this.code = code;
581
+ this.details = details;
539
582
  const v8Capture = Error.captureStackTrace;
540
583
  if (v8Capture) v8Capture(this, this.constructor);
541
584
  }
@@ -584,6 +627,7 @@ async function parseErrorResponse(response) {
584
627
  const httpStatus = response.status;
585
628
  let code = getDefaultErrorCode(httpStatus);
586
629
  let message = "Unknown error";
630
+ let details;
587
631
  try {
588
632
  const body = await response.text();
589
633
  try {
@@ -596,13 +640,16 @@ async function parseErrorResponse(response) {
596
640
  } else {
597
641
  message = body || `HTTP ${httpStatus}`;
598
642
  }
643
+ if (json.details && typeof json.details === "object") {
644
+ details = json.details;
645
+ }
599
646
  } catch {
600
647
  message = body.trim() || `HTTP ${httpStatus}`;
601
648
  }
602
649
  } catch {
603
650
  message = `HTTP ${httpStatus}`;
604
651
  }
605
- return new ProteosError(message, httpStatus, code);
652
+ return new ProteosError(message, httpStatus, code, details);
606
653
  }
607
654
 
608
655
  // src/auth/shares.ts
@@ -712,6 +759,25 @@ var TeamServiceImpl = class {
712
759
  }
713
760
  };
714
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
+
715
781
  // src/auth/user-role-assignments.ts
716
782
  var USER_ROLE_ASSIGNMENTS_BASE_PATH = "/accounts/v1/user-role-assignments";
717
783
  var UserRoleAssignmentServiceImpl = class {
@@ -766,6 +832,19 @@ var UserServiceImpl = class {
766
832
  async unassignRole(userId, roleSlug) {
767
833
  await this.client.request("DELETE", `${USERS_BASE_PATH}/${userId}/roles/${roleSlug}`);
768
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
+ }
769
848
  async listApiKeys(userId) {
770
849
  const response = await this.client.request(
771
850
  "GET",
@@ -805,12 +884,18 @@ var PLATFORM_ENTITIES = [
805
884
  // who is in it are different decisions, and membership is what moves access.
806
885
  { slug: "teams", name: "Teams" },
807
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" },
808
891
  // The share audit trail — a distinct grant from the resources it references.
809
892
  // Schema / content (metadata-service)
810
893
  { slug: "entities", name: "Entities" },
811
894
  { slug: "pages", name: "Pages" },
812
895
  { slug: "menu-configurations", name: "Menu Configurations" },
813
896
  { slug: "apps", name: "Apps" },
897
+ // Typed (app × profile) binding rows: home, menu, agents, record pages.
898
+ { slug: "app-configurations", name: "App Configurations" },
814
899
  { slug: "components", name: "Components" },
815
900
  { slug: "lists", name: "Lists" },
816
901
  { slug: "list-views", name: "List Views" },
@@ -866,6 +951,17 @@ var PLATFORM_ENTITIES = [
866
951
  { slug: "contact-groups", name: "Contact Groups" },
867
952
  // Tone-of-voice synthesis: per-user setups + generated instruction profiles.
868
953
  { slug: "tone-profiles", name: "Tone Profiles" },
954
+ // Outbound send constraints (windows, connection limits, frequency caps) +
955
+ // their preset catalog.
956
+ { slug: "sending-rules", name: "Sending Rules" },
957
+ // The channel_action ledger: acts through a connection that are neither a
958
+ // message nor a reaction (LinkedIn invitations, profile visits, InMail).
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" },
869
965
  // Connectors (connector-service). `connections` above is shared; this is the
870
966
  // manifest catalog.
871
967
  { slug: "connectors", name: "Connectors" }
@@ -908,6 +1004,21 @@ AuditFieldsSchema.extend({
908
1004
  expires_at: z.string().nullable(),
909
1005
  last_used_at: z.string().nullable()
910
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
+ });
911
1022
  var RoleSchema = AuditFieldsSchema.extend({
912
1023
  slug: z.string(),
913
1024
  name: z.string(),
@@ -959,6 +1070,14 @@ var AccountClient = class {
959
1070
  * role" in one request).
960
1071
  */
961
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;
962
1081
  /**
963
1082
  * Service for managing organizations.
964
1083
  */
@@ -986,6 +1105,8 @@ var AccountClient = class {
986
1105
  this.users = new UserServiceImpl(client);
987
1106
  this.roles = new RoleServiceImpl(client);
988
1107
  this.userRoleAssignments = new UserRoleAssignmentServiceImpl(client);
1108
+ this.profiles = new ProfileServiceImpl(client);
1109
+ this.userProfileAssignments = new UserProfileAssignmentServiceImpl(client);
989
1110
  this.organizations = new OrganizationServiceImpl(client);
990
1111
  this.teams = new TeamServiceImpl(client);
991
1112
  this.shares = new ShareServiceImpl(client);
@@ -1500,6 +1621,14 @@ var ConversationClient = class {
1500
1621
  agentListeners;
1501
1622
  /** Ingest-time filter rules (drop-with-audit) + their event trail. */
1502
1623
  conversationFilters;
1624
+ /** Outbound send constraints: windows, connection limits, frequency caps + presets. */
1625
+ sendingRules;
1626
+ /**
1627
+ * Channel actions: acts performed through a connection that are neither a
1628
+ * message nor a reaction — LinkedIn invitations, profile visits, InMail.
1629
+ */
1630
+ channelActions;
1631
+ channelEvents;
1503
1632
  /** Per-org glossary: custom vocabulary that boosts transcription accuracy. */
1504
1633
  glossaryTerms;
1505
1634
  /** Conversation taxonomy: the types the pre-summary classifier assigns. */
@@ -1516,6 +1645,8 @@ var ConversationClient = class {
1516
1645
  /** Realtime speech-to-text (dictation) — moved here from agent-service. */
1517
1646
  voice;
1518
1647
  calls;
1648
+ /** Conversation briefs: guidance prepared ahead of a conversation (call, meeting) with a contact. */
1649
+ conversationBriefs;
1519
1650
  constructor(client) {
1520
1651
  this.connections = new ConnectionServiceImpl(client);
1521
1652
  this.conversations = new ConversationServiceImpl(client);
@@ -1523,6 +1654,9 @@ var ConversationClient = class {
1523
1654
  this.messages = new MessageServiceImpl(client);
1524
1655
  this.agentListeners = new AgentListenerServiceImpl(client);
1525
1656
  this.conversationFilters = new ConversationFilterServiceImpl(client);
1657
+ this.sendingRules = new SendingRuleServiceImpl(client);
1658
+ this.channelActions = new ChannelActionServiceImpl(client);
1659
+ this.channelEvents = new ChannelEventServiceImpl(client);
1526
1660
  this.glossaryTerms = new GlossaryTermServiceImpl(client);
1527
1661
  this.conversationTypes = new ConversationTypeServiceImpl(client);
1528
1662
  this.contactGroups = new ContactGroupServiceImpl(client);
@@ -1532,6 +1666,7 @@ var ConversationClient = class {
1532
1666
  this.meetings = new MeetingServiceImpl(client);
1533
1667
  this.voice = new VoiceServiceImpl(client);
1534
1668
  this.calls = new CallServiceImpl(client);
1669
+ this.conversationBriefs = new ConversationBriefServiceImpl(client);
1535
1670
  }
1536
1671
  };
1537
1672
  var MeetingServiceImpl = class {
@@ -1614,6 +1749,67 @@ var ConnectionServiceImpl = class {
1614
1749
  query
1615
1750
  );
1616
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
+ }
1617
1813
  };
1618
1814
  var ContactServiceImpl = class {
1619
1815
  constructor(client) {
@@ -1804,6 +2000,13 @@ var MessageServiceImpl = class {
1804
2000
  send(request) {
1805
2001
  return this.client.request("POST", `${CONVERSATION_BASE_PATH}/messages/send`, request);
1806
2002
  }
2003
+ checkSendEligibility(request) {
2004
+ return this.client.request(
2005
+ "POST",
2006
+ `${CONVERSATION_BASE_PATH}/messages/send-eligibility`,
2007
+ request
2008
+ );
2009
+ }
1807
2010
  draft(request) {
1808
2011
  return this.client.request("POST", `${CONVERSATION_BASE_PATH}/messages/draft`, request);
1809
2012
  }
@@ -2183,6 +2386,151 @@ var CallServiceImpl = class {
2183
2386
  );
2184
2387
  }
2185
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
+ };
2437
+ var SendingRuleServiceImpl = class {
2438
+ constructor(client) {
2439
+ this.client = client;
2440
+ }
2441
+ client;
2442
+ list(query = {}) {
2443
+ return this.client.requestWithQuery("GET", `${CONVERSATION_BASE_PATH}/sending-rules`, query);
2444
+ }
2445
+ get(id) {
2446
+ return this.client.request(
2447
+ "GET",
2448
+ `${CONVERSATION_BASE_PATH}/sending-rules/${encodeURIComponent(id)}`
2449
+ );
2450
+ }
2451
+ create(request) {
2452
+ return this.client.request("POST", `${CONVERSATION_BASE_PATH}/sending-rules`, request);
2453
+ }
2454
+ update(id, request) {
2455
+ return this.client.request(
2456
+ "PATCH",
2457
+ `${CONVERSATION_BASE_PATH}/sending-rules/${encodeURIComponent(id)}`,
2458
+ request
2459
+ );
2460
+ }
2461
+ async delete(id) {
2462
+ await this.client.request(
2463
+ "DELETE",
2464
+ `${CONVERSATION_BASE_PATH}/sending-rules/${encodeURIComponent(id)}`
2465
+ );
2466
+ }
2467
+ listPresets(query = {}) {
2468
+ return this.client.requestWithQuery(
2469
+ "GET",
2470
+ `${CONVERSATION_BASE_PATH}/sending-rules/presets`,
2471
+ query
2472
+ );
2473
+ }
2474
+ applyPreset(request) {
2475
+ return this.client.request(
2476
+ "POST",
2477
+ `${CONVERSATION_BASE_PATH}/sending-rules/apply-preset`,
2478
+ request
2479
+ );
2480
+ }
2481
+ };
2482
+ var ChannelActionServiceImpl = class {
2483
+ constructor(client) {
2484
+ this.client = client;
2485
+ }
2486
+ client;
2487
+ list(query = {}) {
2488
+ return this.client.requestWithQuery("GET", `${CONVERSATION_BASE_PATH}/channel-actions`, query);
2489
+ }
2490
+ get(id) {
2491
+ return this.client.request(
2492
+ "GET",
2493
+ `${CONVERSATION_BASE_PATH}/channel-actions/${encodeURIComponent(id)}`
2494
+ );
2495
+ }
2496
+ perform(request) {
2497
+ return this.client.request("POST", `${CONVERSATION_BASE_PATH}/channel-actions`, request);
2498
+ }
2499
+ cancel(id) {
2500
+ return this.client.request(
2501
+ "POST",
2502
+ `${CONVERSATION_BASE_PATH}/channel-actions/${encodeURIComponent(id)}/cancel`
2503
+ );
2504
+ }
2505
+ respond(id, request) {
2506
+ return this.client.request(
2507
+ "POST",
2508
+ `${CONVERSATION_BASE_PATH}/channel-actions/${encodeURIComponent(id)}/respond`,
2509
+ request
2510
+ );
2511
+ }
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
+ };
2186
2534
 
2187
2535
  // src/data/queries.ts
2188
2536
  var QUERY_BASE_PATH = "/data/v1/query";
@@ -3088,6 +3436,6 @@ var WorkflowClient = class {
3088
3436
  }
3089
3437
  };
3090
3438
 
3091
- 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 };
3092
3440
  //# sourceMappingURL=index.js.map
3093
3441
  //# sourceMappingURL=index.js.map