@gravity-rail/sdk 7.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.
Files changed (39) hide show
  1. package/dist/{agent_standing_job-DVHim0Te.d.ts → agent_standing_job-CaD7wjGr.d.cts} +20 -263
  2. package/dist/{agent_standing_job-8aO5bEFa.d.cts → agent_standing_job-DMLbDOjP.d.ts} +20 -263
  3. package/dist/{chat-interaction-B_d8hxyU.d.cts → chat-interaction-_mKOHRYc.d.cts} +498 -32
  4. package/dist/{chat-interaction-D5I0hKyc.d.ts → chat-interaction-exmrd2jl.d.ts} +498 -32
  5. package/dist/{chunk-T26HRHRS.js → chunk-IIIRXFKG.js} +3 -2
  6. package/dist/chunk-IIIRXFKG.js.map +1 -0
  7. package/dist/{chunk-M77YVSBD.js → chunk-MVWCWWRQ.js} +38 -14
  8. package/dist/chunk-MVWCWWRQ.js.map +1 -0
  9. package/dist/helpers.d.cts +2 -2
  10. package/dist/helpers.d.ts +2 -2
  11. package/dist/index.cjs +40 -14
  12. package/dist/index.cjs.map +1 -1
  13. package/dist/index.d.cts +7 -6
  14. package/dist/index.d.ts +7 -6
  15. package/dist/index.js +3 -2
  16. package/dist/index.js.map +1 -1
  17. package/dist/internal.cjs +62 -14
  18. package/dist/internal.cjs.map +1 -1
  19. package/dist/internal.d.cts +435 -175
  20. package/dist/internal.d.ts +435 -175
  21. package/dist/internal.js +24 -2
  22. package/dist/internal.js.map +1 -1
  23. package/dist/{member-import-Dy-kcTfi.d.cts → member-import-4VSE3yYo.d.cts} +1 -1
  24. package/dist/{member-import-BFicp3ce.d.ts → member-import-BQDFoSyf.d.ts} +1 -1
  25. package/dist/realtime.cjs +6 -0
  26. package/dist/realtime.cjs.map +1 -1
  27. package/dist/realtime.js +6 -0
  28. package/dist/realtime.js.map +1 -1
  29. package/dist/schemas.cjs +20 -3
  30. package/dist/schemas.cjs.map +1 -1
  31. package/dist/schemas.d.cts +23 -17
  32. package/dist/schemas.d.ts +23 -17
  33. package/dist/schemas.js +21 -4
  34. package/dist/schemas.js.map +1 -1
  35. package/dist/{tasks-DW2dTbAJ.d.ts → tasks-2LhXIwL8.d.ts} +16 -8
  36. package/dist/{tasks-DHvGDkhw.d.cts → tasks-BTURuIlD.d.cts} +16 -8
  37. package/package.json +1 -1
  38. package/dist/chunk-M77YVSBD.js.map +0 -1
  39. package/dist/chunk-T26HRHRS.js.map +0 -1
@@ -1,7 +1,7 @@
1
1
  import { GravityRailClient } from './index.cjs';
2
- export { C as ChatInteractionController } from './chat-interaction-B_d8hxyU.cjs';
2
+ export { C as ChatInteractionController } from './chat-interaction-_mKOHRYc.cjs';
3
3
  import { WorkspaceMemberResponse, DataRecordResponse } from './index.cjs';
4
- export { t as toSafeMemberImportPreview, a as toSafeMemberImportSummary } from './member-import-Dy-kcTfi.cjs';
4
+ export { t as toSafeMemberImportPreview, a as toSafeMemberImportSummary } from './member-import-4VSE3yYo.cjs';
5
5
  import './account-DLwJWX9b.cjs';
6
6
  import 'zod';
7
7
 
package/dist/helpers.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { GravityRailClient } from './index.js';
2
- export { C as ChatInteractionController } from './chat-interaction-D5I0hKyc.js';
2
+ export { C as ChatInteractionController } from './chat-interaction-exmrd2jl.js';
3
3
  import { WorkspaceMemberResponse, DataRecordResponse } from './index.js';
4
- export { t as toSafeMemberImportPreview, a as toSafeMemberImportSummary } from './member-import-BFicp3ce.js';
4
+ export { t as toSafeMemberImportPreview, a as toSafeMemberImportSummary } from './member-import-BQDFoSyf.js';
5
5
  import './account-DLwJWX9b.js';
6
6
  import 'zod';
7
7
 
package/dist/index.cjs CHANGED
@@ -2583,6 +2583,19 @@ var CallsApi = class extends BaseApiClient {
2583
2583
  `w/${wid}/recordings/chat/${chatId}/message-timing${params.toString() ? `?${params.toString()}` : ""}`
2584
2584
  );
2585
2585
  }
2586
+ /**
2587
+ * A coarse loudness overview of the chat's playable call recording, for
2588
+ * drawing a player before any audio is fetched: the playable duration and
2589
+ * one value in `[0, 1]` per half second (at most 512). It describes the
2590
+ * recording `audio.wav` serves and is 404 exactly when that is. Reading it
2591
+ * fetches no audio.
2592
+ */
2593
+ async getRecordingWaveform(wid, chatId, options = {}) {
2594
+ return this.fetch(
2595
+ `w/${wid}/recordings/chat/${chatId}/waveform`,
2596
+ options.signal ? { signal: options.signal } : void 0
2597
+ );
2598
+ }
2586
2599
  /**
2587
2600
  * Staff-only discovery of retained edge-stream capture for a chat:
2588
2601
  * whether any is retained, its aggregate coverage status, the interval it
@@ -2771,6 +2784,10 @@ var ChatsApi = class extends BaseApiClient {
2771
2784
  async getChat(wid, id) {
2772
2785
  return this.fetch(`w/${wid}/chats/${id}`);
2773
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
+ }
2774
2791
  /**
2775
2792
  * Get a single chat by UUID.
2776
2793
  *
@@ -3010,10 +3027,10 @@ var ChatsApi = class extends BaseApiClient {
3010
3027
  });
3011
3028
  }
3012
3029
  /** Update the mute status of a chat. */
3013
- async updateChatMute(wid, id, muted, muteReason, muteExpiresOnInbound) {
3030
+ async updateChatMute(wid, id, muted, muteReason, muteExpiresOnInbound, dismissInboundMessageId) {
3014
3031
  return this.fetch(`w/${wid}/chats/${id}/mute`, {
3015
3032
  method: "PUT",
3016
- body: JSON.stringify({ muted, muteReason, muteExpiresOnInbound })
3033
+ body: JSON.stringify({ muted, muteReason, muteExpiresOnInbound, dismissInboundMessageId })
3017
3034
  });
3018
3035
  }
3019
3036
  /** Generate an AI summary for a chat, optionally updating its labels. */
@@ -3518,15 +3535,15 @@ var DataTypesApi = class extends BaseApiClient {
3518
3535
  return this.fetch(`w/${wid}/data-types${queryString ? `?${queryString}` : ""}`);
3519
3536
  }
3520
3537
  /** Get a single data type by numeric ID, or by UUID when a UUID string is supplied. */
3521
- async getDataType(wid, id) {
3538
+ async getDataType(wid, id, init) {
3522
3539
  if (typeof id === "string" && isUuid(id)) {
3523
- return this.getDataTypeByUuid(wid, id);
3540
+ return this.getDataTypeByUuid(wid, id, init);
3524
3541
  }
3525
- return this.fetch(`w/${wid}/data-types/${id}`);
3542
+ return this.fetch(`w/${wid}/data-types/${id}`, init);
3526
3543
  }
3527
3544
  /** Get a single data type by UUID. */
3528
- async getDataTypeByUuid(wid, uuid) {
3529
- return this.fetch(`w/${wid}/data-types/${uuid}`);
3545
+ async getDataTypeByUuid(wid, uuid, init) {
3546
+ return this.fetch(`w/${wid}/data-types/${uuid}`, init);
3530
3547
  }
3531
3548
  /** Get a single data type by its slug. */
3532
3549
  async getDataTypeBySlug(wid, slug) {
@@ -3592,7 +3609,8 @@ var DataTypesApi = class extends BaseApiClient {
3592
3609
  if (options?.page) params.append("page", options.page.toString());
3593
3610
  if (options?.pageSize) params.append("page_size", options.pageSize.toString());
3594
3611
  return this.fetch(
3595
- `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
3596
3614
  );
3597
3615
  }
3598
3616
  /**
@@ -3664,8 +3682,8 @@ var DataTypesApi = class extends BaseApiClient {
3664
3682
  return this.fetch(`w/${wid}/data-record-filters/${filterId}/count`);
3665
3683
  }
3666
3684
  /** Get a single data record by ID. */
3667
- async getDataRecord(wid, recordId) {
3668
- 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);
3669
3687
  }
3670
3688
  /**
3671
3689
  * Get a single data record by UUID.
@@ -7551,7 +7569,7 @@ var OrgApi = class extends BaseApiClient {
7551
7569
  });
7552
7570
  }
7553
7571
  /**
7554
- * Mint a workspace-bound Inference API key. The secret is returned once.
7572
+ * Mint an organization-bound Inference API key. The secret is returned once.
7555
7573
  * Requires `org:admin`.
7556
7574
  */
7557
7575
  async createOrgInferenceApiKey(orgIdOrUuid, data) {
@@ -9406,10 +9424,10 @@ var QueriesApi = class extends BaseApiClient {
9406
9424
  });
9407
9425
  }
9408
9426
  /** Execute a query (rows / count / aggregate). */
9409
- async runQuery(wid, query2, mode) {
9427
+ async runQuery(wid, query2, mode, options) {
9410
9428
  return this.fetch(`w/${wid}/queries/run`, {
9411
9429
  method: "POST",
9412
- body: JSON.stringify({ query: query2, mode })
9430
+ body: JSON.stringify({ query: query2, mode, sourceFaxId: options?.sourceFaxId })
9413
9431
  });
9414
9432
  }
9415
9433
  };
@@ -15370,6 +15388,7 @@ var WORKSPACE_METHOD_NAMES = [
15370
15388
  "getCelContext",
15371
15389
  "getCharlestonTestDeliveryRecipients",
15372
15390
  "getChat",
15391
+ "getChatAttention",
15373
15392
  "getChatByUuid",
15374
15393
  "getChatAssignmentTasks",
15375
15394
  "getChatBrowserLiveView",
@@ -15648,6 +15667,7 @@ var WORKSPACE_METHOD_NAMES = [
15648
15667
  "getPublicProducts",
15649
15668
  "getQualification",
15650
15669
  "getQualifications",
15670
+ "getRecordingWaveform",
15651
15671
  "getResellerWorkspaces",
15652
15672
  "getRoutine",
15653
15673
  "getRoutineConfigEvents",
@@ -16133,6 +16153,7 @@ function bindChatsMethods(target, chats) {
16133
16153
  target.transitionChatInteractionSession = chats.transitionChatInteractionSession.bind(chats);
16134
16154
  target.getChats = chats.getChats.bind(chats);
16135
16155
  target.getChat = chats.getChat.bind(chats);
16156
+ target.getChatAttention = chats.getChatAttention.bind(chats);
16136
16157
  target.getChatByUuid = chats.getChatByUuid.bind(chats);
16137
16158
  target.saveChatBrowserStorage = chats.saveChatBrowserStorage.bind(chats);
16138
16159
  target.clearChatBrowserStorage = chats.clearChatBrowserStorage.bind(chats);
@@ -16197,6 +16218,7 @@ function bindCallsMethods(target, calls, cel) {
16197
16218
  target.getPhoneCalls = calls.getPhoneCalls.bind(calls);
16198
16219
  target.getPhoneCallByUuid = calls.getPhoneCallByUuid.bind(calls);
16199
16220
  target.getMessageTiming = calls.getMessageTiming.bind(calls);
16221
+ target.getRecordingWaveform = calls.getRecordingWaveform.bind(calls);
16200
16222
  target.getEdgeCaptureInfo = calls.getEdgeCaptureInfo.bind(calls);
16201
16223
  target.getCallRecordingDownloadUrl = calls.getCallRecordingDownloadUrl.bind(calls);
16202
16224
  target.getCelContext = cel.getCelContext.bind(cel);
@@ -17545,6 +17567,7 @@ var GravityRailClient = class {
17545
17567
  chat;
17546
17568
  getChats;
17547
17569
  getChat;
17570
+ getChatAttention;
17548
17571
  getChatByUuid;
17549
17572
  saveChatBrowserStorage;
17550
17573
  clearChatBrowserStorage;
@@ -17608,6 +17631,7 @@ var GravityRailClient = class {
17608
17631
  getPhoneCalls;
17609
17632
  getPhoneCallByUuid;
17610
17633
  getMessageTiming;
17634
+ getRecordingWaveform;
17611
17635
  getEdgeCaptureInfo;
17612
17636
  getCallRecordingDownloadUrl;
17613
17637
  getCelContext;
@@ -21335,7 +21359,8 @@ var ChatMuteReason = {
21335
21359
  working: "working",
21336
21360
  waiting_on_person: "waiting_on_person",
21337
21361
  resolved_elsewhere: "resolved_elsewhere",
21338
- not_mine: "not_mine"
21362
+ not_mine: "not_mine",
21363
+ no_response_needed: "no_response_needed"
21339
21364
  };
21340
21365
 
21341
21366
  // src/types/generated/assignment_task_transition.ts
@@ -21952,6 +21977,7 @@ var ActivityEventType = {
21952
21977
  presencewent_offline: "presence.went_offline",
21953
21978
  operator_groupmember_added: "operator_group.member_added",
21954
21979
  operator_groupmember_removed: "operator_group.member_removed",
21980
+ operatorinteraction_declined: "operator.interaction_declined",
21955
21981
  voicemailreceived: "voicemail.received",
21956
21982
  voicemailtranscribed: "voicemail.transcribed",
21957
21983
  voicemaillistened: "voicemail.listened",