@gravity-rail/sdk 8.0.0 → 8.1.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.
@@ -1,5 +1,5 @@
1
1
  import { GravityRailClient } from './index.cjs';
2
- export { C as ChatInteractionController } from './chat-interaction-KOe9pGEM.cjs';
2
+ export { C as ChatInteractionController } from './chat-interaction-_mKOHRYc.cjs';
3
3
  import { WorkspaceMemberResponse, DataRecordResponse } from './index.cjs';
4
4
  export { t as toSafeMemberImportPreview, a as toSafeMemberImportSummary } from './member-import-4VSE3yYo.cjs';
5
5
  import './account-DLwJWX9b.cjs';
package/dist/helpers.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { GravityRailClient } from './index.js';
2
- export { C as ChatInteractionController } from './chat-interaction-DTbOs4jH.js';
2
+ export { C as ChatInteractionController } from './chat-interaction-exmrd2jl.js';
3
3
  import { WorkspaceMemberResponse, DataRecordResponse } from './index.js';
4
4
  export { t as toSafeMemberImportPreview, a as toSafeMemberImportSummary } from './member-import-BQDFoSyf.js';
5
5
  import './account-DLwJWX9b.js';
package/dist/index.cjs CHANGED
@@ -2784,6 +2784,10 @@ var ChatsApi = class extends BaseApiClient {
2784
2784
  async getChat(wid, id) {
2785
2785
  return this.fetch(`w/${wid}/chats/${id}`);
2786
2786
  }
2787
+ /** Get the current viewer's attention state for a Chat. */
2788
+ async getChatAttention(wid, id) {
2789
+ return this.fetch(`w/${wid}/chats/${id}/attention`);
2790
+ }
2787
2791
  /**
2788
2792
  * Get a single chat by UUID.
2789
2793
  *
@@ -3023,10 +3027,10 @@ var ChatsApi = class extends BaseApiClient {
3023
3027
  });
3024
3028
  }
3025
3029
  /** Update the mute status of a chat. */
3026
- async updateChatMute(wid, id, muted, muteReason, muteExpiresOnInbound) {
3030
+ async updateChatMute(wid, id, muted, muteReason, muteExpiresOnInbound, dismissInboundMessageId) {
3027
3031
  return this.fetch(`w/${wid}/chats/${id}/mute`, {
3028
3032
  method: "PUT",
3029
- body: JSON.stringify({ muted, muteReason, muteExpiresOnInbound })
3033
+ body: JSON.stringify({ muted, muteReason, muteExpiresOnInbound, dismissInboundMessageId })
3030
3034
  });
3031
3035
  }
3032
3036
  /** Generate an AI summary for a chat, optionally updating its labels. */
@@ -3531,15 +3535,15 @@ var DataTypesApi = class extends BaseApiClient {
3531
3535
  return this.fetch(`w/${wid}/data-types${queryString ? `?${queryString}` : ""}`);
3532
3536
  }
3533
3537
  /** Get a single data type by numeric ID, or by UUID when a UUID string is supplied. */
3534
- async getDataType(wid, id) {
3538
+ async getDataType(wid, id, init) {
3535
3539
  if (typeof id === "string" && isUuid(id)) {
3536
- return this.getDataTypeByUuid(wid, id);
3540
+ return this.getDataTypeByUuid(wid, id, init);
3537
3541
  }
3538
- return this.fetch(`w/${wid}/data-types/${id}`);
3542
+ return this.fetch(`w/${wid}/data-types/${id}`, init);
3539
3543
  }
3540
3544
  /** Get a single data type by UUID. */
3541
- async getDataTypeByUuid(wid, uuid) {
3542
- return this.fetch(`w/${wid}/data-types/${uuid}`);
3545
+ async getDataTypeByUuid(wid, uuid, init) {
3546
+ return this.fetch(`w/${wid}/data-types/${uuid}`, init);
3543
3547
  }
3544
3548
  /** Get a single data type by its slug. */
3545
3549
  async getDataTypeBySlug(wid, slug) {
@@ -3605,7 +3609,8 @@ var DataTypesApi = class extends BaseApiClient {
3605
3609
  if (options?.page) params.append("page", options.page.toString());
3606
3610
  if (options?.pageSize) params.append("page_size", options.pageSize.toString());
3607
3611
  return this.fetch(
3608
- `w/${wid}/data-types/${dataTypeId}/records${params?.toString() ? `?${params.toString()}` : ""}`
3612
+ `w/${wid}/data-types/${dataTypeId}/records${params?.toString() ? `?${params.toString()}` : ""}`,
3613
+ options?.signal ? { signal: options.signal } : void 0
3609
3614
  );
3610
3615
  }
3611
3616
  /**
@@ -3677,8 +3682,8 @@ var DataTypesApi = class extends BaseApiClient {
3677
3682
  return this.fetch(`w/${wid}/data-record-filters/${filterId}/count`);
3678
3683
  }
3679
3684
  /** Get a single data record by ID. */
3680
- async getDataRecord(wid, recordId) {
3681
- return this.fetch(`w/${wid}/data-types/records/${recordId}`);
3685
+ async getDataRecord(wid, recordId, init) {
3686
+ return this.fetch(`w/${wid}/data-types/records/${recordId}`, init);
3682
3687
  }
3683
3688
  /**
3684
3689
  * Get a single data record by UUID.
@@ -15383,6 +15388,7 @@ var WORKSPACE_METHOD_NAMES = [
15383
15388
  "getCelContext",
15384
15389
  "getCharlestonTestDeliveryRecipients",
15385
15390
  "getChat",
15391
+ "getChatAttention",
15386
15392
  "getChatByUuid",
15387
15393
  "getChatAssignmentTasks",
15388
15394
  "getChatBrowserLiveView",
@@ -16147,6 +16153,7 @@ function bindChatsMethods(target, chats) {
16147
16153
  target.transitionChatInteractionSession = chats.transitionChatInteractionSession.bind(chats);
16148
16154
  target.getChats = chats.getChats.bind(chats);
16149
16155
  target.getChat = chats.getChat.bind(chats);
16156
+ target.getChatAttention = chats.getChatAttention.bind(chats);
16150
16157
  target.getChatByUuid = chats.getChatByUuid.bind(chats);
16151
16158
  target.saveChatBrowserStorage = chats.saveChatBrowserStorage.bind(chats);
16152
16159
  target.clearChatBrowserStorage = chats.clearChatBrowserStorage.bind(chats);
@@ -17560,6 +17567,7 @@ var GravityRailClient = class {
17560
17567
  chat;
17561
17568
  getChats;
17562
17569
  getChat;
17570
+ getChatAttention;
17563
17571
  getChatByUuid;
17564
17572
  saveChatBrowserStorage;
17565
17573
  clearChatBrowserStorage;
@@ -21351,7 +21359,8 @@ var ChatMuteReason = {
21351
21359
  working: "working",
21352
21360
  waiting_on_person: "waiting_on_person",
21353
21361
  resolved_elsewhere: "resolved_elsewhere",
21354
- not_mine: "not_mine"
21362
+ not_mine: "not_mine",
21363
+ no_response_needed: "no_response_needed"
21355
21364
  };
21356
21365
 
21357
21366
  // src/types/generated/assignment_task_transition.ts