@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.
- package/dist/{agent_standing_job-DVHim0Te.d.ts → agent_standing_job-CaD7wjGr.d.cts} +20 -263
- package/dist/{agent_standing_job-8aO5bEFa.d.cts → agent_standing_job-DMLbDOjP.d.ts} +20 -263
- package/dist/{chat-interaction-B_d8hxyU.d.cts → chat-interaction-_mKOHRYc.d.cts} +498 -32
- package/dist/{chat-interaction-D5I0hKyc.d.ts → chat-interaction-exmrd2jl.d.ts} +498 -32
- package/dist/{chunk-T26HRHRS.js → chunk-IIIRXFKG.js} +3 -2
- package/dist/chunk-IIIRXFKG.js.map +1 -0
- package/dist/{chunk-M77YVSBD.js → chunk-MVWCWWRQ.js} +38 -14
- package/dist/chunk-MVWCWWRQ.js.map +1 -0
- package/dist/helpers.d.cts +2 -2
- package/dist/helpers.d.ts +2 -2
- package/dist/index.cjs +40 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -6
- package/dist/index.d.ts +7 -6
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/internal.cjs +62 -14
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +435 -175
- package/dist/internal.d.ts +435 -175
- package/dist/internal.js +24 -2
- package/dist/internal.js.map +1 -1
- package/dist/{member-import-Dy-kcTfi.d.cts → member-import-4VSE3yYo.d.cts} +1 -1
- package/dist/{member-import-BFicp3ce.d.ts → member-import-BQDFoSyf.d.ts} +1 -1
- package/dist/realtime.cjs +6 -0
- package/dist/realtime.cjs.map +1 -1
- package/dist/realtime.js +6 -0
- package/dist/realtime.js.map +1 -1
- package/dist/schemas.cjs +20 -3
- package/dist/schemas.cjs.map +1 -1
- package/dist/schemas.d.cts +23 -17
- package/dist/schemas.d.ts +23 -17
- package/dist/schemas.js +21 -4
- package/dist/schemas.js.map +1 -1
- package/dist/{tasks-DW2dTbAJ.d.ts → tasks-2LhXIwL8.d.ts} +16 -8
- package/dist/{tasks-DHvGDkhw.d.cts → tasks-BTURuIlD.d.cts} +16 -8
- package/package.json +1 -1
- package/dist/chunk-M77YVSBD.js.map +0 -1
- package/dist/chunk-T26HRHRS.js.map +0 -1
package/dist/internal.cjs
CHANGED
|
@@ -37,6 +37,7 @@ __export(internal_exports, {
|
|
|
37
37
|
ActivityOpenItemOrder: () => ActivityOpenItemOrder,
|
|
38
38
|
ActivityOutcome: () => ActivityOutcome,
|
|
39
39
|
ActivityWindowBasis: () => ActivityWindowBasis,
|
|
40
|
+
AdminRoomMessageDeliveryReason: () => AdminRoomMessageDeliveryReason,
|
|
40
41
|
AgentTasksApi: () => AgentTasksApi,
|
|
41
42
|
AgentsApi: () => AgentsApi,
|
|
42
43
|
AiConnectorPolicy: () => AiConnectorPolicy,
|
|
@@ -2483,7 +2484,8 @@ var ChatMuteReason = {
|
|
|
2483
2484
|
working: "working",
|
|
2484
2485
|
waiting_on_person: "waiting_on_person",
|
|
2485
2486
|
resolved_elsewhere: "resolved_elsewhere",
|
|
2486
|
-
not_mine: "not_mine"
|
|
2487
|
+
not_mine: "not_mine",
|
|
2488
|
+
no_response_needed: "no_response_needed"
|
|
2487
2489
|
};
|
|
2488
2490
|
|
|
2489
2491
|
// src/types/generated/assignment_task_transition.ts
|
|
@@ -6037,6 +6039,19 @@ var CallsApi = class extends BaseApiClient {
|
|
|
6037
6039
|
`w/${wid}/recordings/chat/${chatId}/message-timing${params.toString() ? `?${params.toString()}` : ""}`
|
|
6038
6040
|
);
|
|
6039
6041
|
}
|
|
6042
|
+
/**
|
|
6043
|
+
* A coarse loudness overview of the chat's playable call recording, for
|
|
6044
|
+
* drawing a player before any audio is fetched: the playable duration and
|
|
6045
|
+
* one value in `[0, 1]` per half second (at most 512). It describes the
|
|
6046
|
+
* recording `audio.wav` serves and is 404 exactly when that is. Reading it
|
|
6047
|
+
* fetches no audio.
|
|
6048
|
+
*/
|
|
6049
|
+
async getRecordingWaveform(wid, chatId, options = {}) {
|
|
6050
|
+
return this.fetch(
|
|
6051
|
+
`w/${wid}/recordings/chat/${chatId}/waveform`,
|
|
6052
|
+
options.signal ? { signal: options.signal } : void 0
|
|
6053
|
+
);
|
|
6054
|
+
}
|
|
6040
6055
|
/**
|
|
6041
6056
|
* Staff-only discovery of retained edge-stream capture for a chat:
|
|
6042
6057
|
* whether any is retained, its aggregate coverage status, the interval it
|
|
@@ -6225,6 +6240,10 @@ var ChatsApi = class extends BaseApiClient {
|
|
|
6225
6240
|
async getChat(wid, id) {
|
|
6226
6241
|
return this.fetch(`w/${wid}/chats/${id}`);
|
|
6227
6242
|
}
|
|
6243
|
+
/** Get the current viewer's attention state for a Chat. */
|
|
6244
|
+
async getChatAttention(wid, id) {
|
|
6245
|
+
return this.fetch(`w/${wid}/chats/${id}/attention`);
|
|
6246
|
+
}
|
|
6228
6247
|
/**
|
|
6229
6248
|
* Get a single chat by UUID.
|
|
6230
6249
|
*
|
|
@@ -6464,10 +6483,10 @@ var ChatsApi = class extends BaseApiClient {
|
|
|
6464
6483
|
});
|
|
6465
6484
|
}
|
|
6466
6485
|
/** Update the mute status of a chat. */
|
|
6467
|
-
async updateChatMute(wid, id, muted, muteReason, muteExpiresOnInbound) {
|
|
6486
|
+
async updateChatMute(wid, id, muted, muteReason, muteExpiresOnInbound, dismissInboundMessageId) {
|
|
6468
6487
|
return this.fetch(`w/${wid}/chats/${id}/mute`, {
|
|
6469
6488
|
method: "PUT",
|
|
6470
|
-
body: JSON.stringify({ muted, muteReason, muteExpiresOnInbound })
|
|
6489
|
+
body: JSON.stringify({ muted, muteReason, muteExpiresOnInbound, dismissInboundMessageId })
|
|
6471
6490
|
});
|
|
6472
6491
|
}
|
|
6473
6492
|
/** Generate an AI summary for a chat, optionally updating its labels. */
|
|
@@ -6972,15 +6991,15 @@ var DataTypesApi = class extends BaseApiClient {
|
|
|
6972
6991
|
return this.fetch(`w/${wid}/data-types${queryString ? `?${queryString}` : ""}`);
|
|
6973
6992
|
}
|
|
6974
6993
|
/** Get a single data type by numeric ID, or by UUID when a UUID string is supplied. */
|
|
6975
|
-
async getDataType(wid, id) {
|
|
6994
|
+
async getDataType(wid, id, init) {
|
|
6976
6995
|
if (typeof id === "string" && isUuid(id)) {
|
|
6977
|
-
return this.getDataTypeByUuid(wid, id);
|
|
6996
|
+
return this.getDataTypeByUuid(wid, id, init);
|
|
6978
6997
|
}
|
|
6979
|
-
return this.fetch(`w/${wid}/data-types/${id}
|
|
6998
|
+
return this.fetch(`w/${wid}/data-types/${id}`, init);
|
|
6980
6999
|
}
|
|
6981
7000
|
/** Get a single data type by UUID. */
|
|
6982
|
-
async getDataTypeByUuid(wid, uuid) {
|
|
6983
|
-
return this.fetch(`w/${wid}/data-types/${uuid}
|
|
7001
|
+
async getDataTypeByUuid(wid, uuid, init) {
|
|
7002
|
+
return this.fetch(`w/${wid}/data-types/${uuid}`, init);
|
|
6984
7003
|
}
|
|
6985
7004
|
/** Get a single data type by its slug. */
|
|
6986
7005
|
async getDataTypeBySlug(wid, slug) {
|
|
@@ -7046,7 +7065,8 @@ var DataTypesApi = class extends BaseApiClient {
|
|
|
7046
7065
|
if (options?.page) params.append("page", options.page.toString());
|
|
7047
7066
|
if (options?.pageSize) params.append("page_size", options.pageSize.toString());
|
|
7048
7067
|
return this.fetch(
|
|
7049
|
-
`w/${wid}/data-types/${dataTypeId}/records${params?.toString() ? `?${params.toString()}` : ""}
|
|
7068
|
+
`w/${wid}/data-types/${dataTypeId}/records${params?.toString() ? `?${params.toString()}` : ""}`,
|
|
7069
|
+
options?.signal ? { signal: options.signal } : void 0
|
|
7050
7070
|
);
|
|
7051
7071
|
}
|
|
7052
7072
|
/**
|
|
@@ -7118,8 +7138,8 @@ var DataTypesApi = class extends BaseApiClient {
|
|
|
7118
7138
|
return this.fetch(`w/${wid}/data-record-filters/${filterId}/count`);
|
|
7119
7139
|
}
|
|
7120
7140
|
/** Get a single data record by ID. */
|
|
7121
|
-
async getDataRecord(wid, recordId) {
|
|
7122
|
-
return this.fetch(`w/${wid}/data-types/records/${recordId}
|
|
7141
|
+
async getDataRecord(wid, recordId, init) {
|
|
7142
|
+
return this.fetch(`w/${wid}/data-types/records/${recordId}`, init);
|
|
7123
7143
|
}
|
|
7124
7144
|
/**
|
|
7125
7145
|
* Get a single data record by UUID.
|
|
@@ -10983,7 +11003,7 @@ var OrgApi = class extends BaseApiClient {
|
|
|
10983
11003
|
});
|
|
10984
11004
|
}
|
|
10985
11005
|
/**
|
|
10986
|
-
* Mint
|
|
11006
|
+
* Mint an organization-bound Inference API key. The secret is returned once.
|
|
10987
11007
|
* Requires `org:admin`.
|
|
10988
11008
|
*/
|
|
10989
11009
|
async createOrgInferenceApiKey(orgIdOrUuid, data) {
|
|
@@ -12838,10 +12858,10 @@ var QueriesApi = class extends BaseApiClient {
|
|
|
12838
12858
|
});
|
|
12839
12859
|
}
|
|
12840
12860
|
/** Execute a query (rows / count / aggregate). */
|
|
12841
|
-
async runQuery(wid, query2, mode) {
|
|
12861
|
+
async runQuery(wid, query2, mode, options) {
|
|
12842
12862
|
return this.fetch(`w/${wid}/queries/run`, {
|
|
12843
12863
|
method: "POST",
|
|
12844
|
-
body: JSON.stringify({ query: query2, mode })
|
|
12864
|
+
body: JSON.stringify({ query: query2, mode, sourceFaxId: options?.sourceFaxId })
|
|
12845
12865
|
});
|
|
12846
12866
|
}
|
|
12847
12867
|
};
|
|
@@ -17167,6 +17187,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
17167
17187
|
"getCelContext",
|
|
17168
17188
|
"getCharlestonTestDeliveryRecipients",
|
|
17169
17189
|
"getChat",
|
|
17190
|
+
"getChatAttention",
|
|
17170
17191
|
"getChatByUuid",
|
|
17171
17192
|
"getChatAssignmentTasks",
|
|
17172
17193
|
"getChatBrowserLiveView",
|
|
@@ -17445,6 +17466,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
17445
17466
|
"getPublicProducts",
|
|
17446
17467
|
"getQualification",
|
|
17447
17468
|
"getQualifications",
|
|
17469
|
+
"getRecordingWaveform",
|
|
17448
17470
|
"getResellerWorkspaces",
|
|
17449
17471
|
"getRoutine",
|
|
17450
17472
|
"getRoutineConfigEvents",
|
|
@@ -17930,6 +17952,7 @@ function bindChatsMethods(target, chats) {
|
|
|
17930
17952
|
target.transitionChatInteractionSession = chats.transitionChatInteractionSession.bind(chats);
|
|
17931
17953
|
target.getChats = chats.getChats.bind(chats);
|
|
17932
17954
|
target.getChat = chats.getChat.bind(chats);
|
|
17955
|
+
target.getChatAttention = chats.getChatAttention.bind(chats);
|
|
17933
17956
|
target.getChatByUuid = chats.getChatByUuid.bind(chats);
|
|
17934
17957
|
target.saveChatBrowserStorage = chats.saveChatBrowserStorage.bind(chats);
|
|
17935
17958
|
target.clearChatBrowserStorage = chats.clearChatBrowserStorage.bind(chats);
|
|
@@ -17994,6 +18017,7 @@ function bindCallsMethods(target, calls, cel) {
|
|
|
17994
18017
|
target.getPhoneCalls = calls.getPhoneCalls.bind(calls);
|
|
17995
18018
|
target.getPhoneCallByUuid = calls.getPhoneCallByUuid.bind(calls);
|
|
17996
18019
|
target.getMessageTiming = calls.getMessageTiming.bind(calls);
|
|
18020
|
+
target.getRecordingWaveform = calls.getRecordingWaveform.bind(calls);
|
|
17997
18021
|
target.getEdgeCaptureInfo = calls.getEdgeCaptureInfo.bind(calls);
|
|
17998
18022
|
target.getCallRecordingDownloadUrl = calls.getCallRecordingDownloadUrl.bind(calls);
|
|
17999
18023
|
target.getCelContext = cel.getCelContext.bind(cel);
|
|
@@ -19342,6 +19366,7 @@ var GravityRailClient = class {
|
|
|
19342
19366
|
chat;
|
|
19343
19367
|
getChats;
|
|
19344
19368
|
getChat;
|
|
19369
|
+
getChatAttention;
|
|
19345
19370
|
getChatByUuid;
|
|
19346
19371
|
saveChatBrowserStorage;
|
|
19347
19372
|
clearChatBrowserStorage;
|
|
@@ -19405,6 +19430,7 @@ var GravityRailClient = class {
|
|
|
19405
19430
|
getPhoneCalls;
|
|
19406
19431
|
getPhoneCallByUuid;
|
|
19407
19432
|
getMessageTiming;
|
|
19433
|
+
getRecordingWaveform;
|
|
19408
19434
|
getEdgeCaptureInfo;
|
|
19409
19435
|
getCallRecordingDownloadUrl;
|
|
19410
19436
|
getCelContext;
|
|
@@ -20959,6 +20985,27 @@ function pathDraftToStorage(draft, original) {
|
|
|
20959
20985
|
...draft.selectionPriority === initial.selectionPriority ? {} : { order: draft.selectionPriority }
|
|
20960
20986
|
};
|
|
20961
20987
|
}
|
|
20988
|
+
|
|
20989
|
+
// src/types/generated/agent_admin_chat.ts
|
|
20990
|
+
var AdminRoomMessageDeliveryReason = {
|
|
20991
|
+
authority_refused: "authority_refused",
|
|
20992
|
+
payload_invalid: "payload_invalid",
|
|
20993
|
+
unsupported_provider: "unsupported_provider",
|
|
20994
|
+
identity_unlinked: "identity_unlinked",
|
|
20995
|
+
already_linked: "already_linked",
|
|
20996
|
+
scope_refused: "scope_refused",
|
|
20997
|
+
delivery_unavailable: "delivery_unavailable",
|
|
20998
|
+
source_unavailable: "source_unavailable",
|
|
20999
|
+
room_unavailable: "room_unavailable",
|
|
21000
|
+
audience_changed: "audience_changed",
|
|
21001
|
+
token_denied: "token_denied",
|
|
21002
|
+
provider_rejected: "provider_rejected",
|
|
21003
|
+
send_not_started: "send_not_started",
|
|
21004
|
+
acceptance_unknown: "acceptance_unknown",
|
|
21005
|
+
expired: "expired",
|
|
21006
|
+
destination_unapproved: "destination_unapproved",
|
|
21007
|
+
root_unreconciled: "root_unreconciled"
|
|
21008
|
+
};
|
|
20962
21009
|
// Annotate the CommonJS export names for ESM import in node:
|
|
20963
21010
|
0 && (module.exports = {
|
|
20964
21011
|
AGENT_NOTE_ORIGINS,
|
|
@@ -20978,6 +21025,7 @@ function pathDraftToStorage(draft, original) {
|
|
|
20978
21025
|
ActivityOpenItemOrder,
|
|
20979
21026
|
ActivityOutcome,
|
|
20980
21027
|
ActivityWindowBasis,
|
|
21028
|
+
AdminRoomMessageDeliveryReason,
|
|
20981
21029
|
AgentTasksApi,
|
|
20982
21030
|
AgentsApi,
|
|
20983
21031
|
AiConnectorPolicy,
|