@gravity-rail/sdk 7.0.0 → 8.0.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-CnfyOUHF.d.ts} +20 -263
- package/dist/{agent_standing_job-8aO5bEFa.d.cts → agent_standing_job-DMtlKqoo.d.cts} +20 -263
- package/dist/{chat-interaction-B_d8hxyU.d.cts → chat-interaction-DTbOs4jH.d.ts} +375 -26
- package/dist/{chat-interaction-D5I0hKyc.d.ts → chat-interaction-KOe9pGEM.d.cts} +375 -26
- package/dist/{chunk-M77YVSBD.js → chunk-FWDDHKTM.js} +20 -4
- package/dist/chunk-FWDDHKTM.js.map +1 -0
- package/dist/{chunk-T26HRHRS.js → chunk-RKIR4UNS.js} +1 -1
- package/dist/chunk-RKIR4UNS.js.map +1 -0
- package/dist/helpers.d.cts +2 -2
- package/dist/helpers.d.ts +2 -2
- package/dist/index.cjs +20 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/internal.cjs +42 -3
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +362 -175
- package/dist/internal.d.ts +362 -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/schemas.cjs.map +1 -1
- package/dist/schemas.d.cts +18 -18
- package/dist/schemas.d.ts +18 -18
- package/dist/schemas.js +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,
|
|
@@ -6037,6 +6038,19 @@ var CallsApi = class extends BaseApiClient {
|
|
|
6037
6038
|
`w/${wid}/recordings/chat/${chatId}/message-timing${params.toString() ? `?${params.toString()}` : ""}`
|
|
6038
6039
|
);
|
|
6039
6040
|
}
|
|
6041
|
+
/**
|
|
6042
|
+
* A coarse loudness overview of the chat's playable call recording, for
|
|
6043
|
+
* drawing a player before any audio is fetched: the playable duration and
|
|
6044
|
+
* one value in `[0, 1]` per half second (at most 512). It describes the
|
|
6045
|
+
* recording `audio.wav` serves and is 404 exactly when that is. Reading it
|
|
6046
|
+
* fetches no audio.
|
|
6047
|
+
*/
|
|
6048
|
+
async getRecordingWaveform(wid, chatId, options = {}) {
|
|
6049
|
+
return this.fetch(
|
|
6050
|
+
`w/${wid}/recordings/chat/${chatId}/waveform`,
|
|
6051
|
+
options.signal ? { signal: options.signal } : void 0
|
|
6052
|
+
);
|
|
6053
|
+
}
|
|
6040
6054
|
/**
|
|
6041
6055
|
* Staff-only discovery of retained edge-stream capture for a chat:
|
|
6042
6056
|
* whether any is retained, its aggregate coverage status, the interval it
|
|
@@ -10983,7 +10997,7 @@ var OrgApi = class extends BaseApiClient {
|
|
|
10983
10997
|
});
|
|
10984
10998
|
}
|
|
10985
10999
|
/**
|
|
10986
|
-
* Mint
|
|
11000
|
+
* Mint an organization-bound Inference API key. The secret is returned once.
|
|
10987
11001
|
* Requires `org:admin`.
|
|
10988
11002
|
*/
|
|
10989
11003
|
async createOrgInferenceApiKey(orgIdOrUuid, data) {
|
|
@@ -12838,10 +12852,10 @@ var QueriesApi = class extends BaseApiClient {
|
|
|
12838
12852
|
});
|
|
12839
12853
|
}
|
|
12840
12854
|
/** Execute a query (rows / count / aggregate). */
|
|
12841
|
-
async runQuery(wid, query2, mode) {
|
|
12855
|
+
async runQuery(wid, query2, mode, options) {
|
|
12842
12856
|
return this.fetch(`w/${wid}/queries/run`, {
|
|
12843
12857
|
method: "POST",
|
|
12844
|
-
body: JSON.stringify({ query: query2, mode })
|
|
12858
|
+
body: JSON.stringify({ query: query2, mode, sourceFaxId: options?.sourceFaxId })
|
|
12845
12859
|
});
|
|
12846
12860
|
}
|
|
12847
12861
|
};
|
|
@@ -17445,6 +17459,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
17445
17459
|
"getPublicProducts",
|
|
17446
17460
|
"getQualification",
|
|
17447
17461
|
"getQualifications",
|
|
17462
|
+
"getRecordingWaveform",
|
|
17448
17463
|
"getResellerWorkspaces",
|
|
17449
17464
|
"getRoutine",
|
|
17450
17465
|
"getRoutineConfigEvents",
|
|
@@ -17994,6 +18009,7 @@ function bindCallsMethods(target, calls, cel) {
|
|
|
17994
18009
|
target.getPhoneCalls = calls.getPhoneCalls.bind(calls);
|
|
17995
18010
|
target.getPhoneCallByUuid = calls.getPhoneCallByUuid.bind(calls);
|
|
17996
18011
|
target.getMessageTiming = calls.getMessageTiming.bind(calls);
|
|
18012
|
+
target.getRecordingWaveform = calls.getRecordingWaveform.bind(calls);
|
|
17997
18013
|
target.getEdgeCaptureInfo = calls.getEdgeCaptureInfo.bind(calls);
|
|
17998
18014
|
target.getCallRecordingDownloadUrl = calls.getCallRecordingDownloadUrl.bind(calls);
|
|
17999
18015
|
target.getCelContext = cel.getCelContext.bind(cel);
|
|
@@ -19405,6 +19421,7 @@ var GravityRailClient = class {
|
|
|
19405
19421
|
getPhoneCalls;
|
|
19406
19422
|
getPhoneCallByUuid;
|
|
19407
19423
|
getMessageTiming;
|
|
19424
|
+
getRecordingWaveform;
|
|
19408
19425
|
getEdgeCaptureInfo;
|
|
19409
19426
|
getCallRecordingDownloadUrl;
|
|
19410
19427
|
getCelContext;
|
|
@@ -20959,6 +20976,27 @@ function pathDraftToStorage(draft, original) {
|
|
|
20959
20976
|
...draft.selectionPriority === initial.selectionPriority ? {} : { order: draft.selectionPriority }
|
|
20960
20977
|
};
|
|
20961
20978
|
}
|
|
20979
|
+
|
|
20980
|
+
// src/types/generated/agent_admin_chat.ts
|
|
20981
|
+
var AdminRoomMessageDeliveryReason = {
|
|
20982
|
+
authority_refused: "authority_refused",
|
|
20983
|
+
payload_invalid: "payload_invalid",
|
|
20984
|
+
unsupported_provider: "unsupported_provider",
|
|
20985
|
+
identity_unlinked: "identity_unlinked",
|
|
20986
|
+
already_linked: "already_linked",
|
|
20987
|
+
scope_refused: "scope_refused",
|
|
20988
|
+
delivery_unavailable: "delivery_unavailable",
|
|
20989
|
+
source_unavailable: "source_unavailable",
|
|
20990
|
+
room_unavailable: "room_unavailable",
|
|
20991
|
+
audience_changed: "audience_changed",
|
|
20992
|
+
token_denied: "token_denied",
|
|
20993
|
+
provider_rejected: "provider_rejected",
|
|
20994
|
+
send_not_started: "send_not_started",
|
|
20995
|
+
acceptance_unknown: "acceptance_unknown",
|
|
20996
|
+
expired: "expired",
|
|
20997
|
+
destination_unapproved: "destination_unapproved",
|
|
20998
|
+
root_unreconciled: "root_unreconciled"
|
|
20999
|
+
};
|
|
20962
21000
|
// Annotate the CommonJS export names for ESM import in node:
|
|
20963
21001
|
0 && (module.exports = {
|
|
20964
21002
|
AGENT_NOTE_ORIGINS,
|
|
@@ -20978,6 +21016,7 @@ function pathDraftToStorage(draft, original) {
|
|
|
20978
21016
|
ActivityOpenItemOrder,
|
|
20979
21017
|
ActivityOutcome,
|
|
20980
21018
|
ActivityWindowBasis,
|
|
21019
|
+
AdminRoomMessageDeliveryReason,
|
|
20981
21020
|
AgentTasksApi,
|
|
20982
21021
|
AgentsApi,
|
|
20983
21022
|
AiConnectorPolicy,
|