@gravity-rail/sdk 6.1.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-D60O007y.d.cts → agent_standing_job-CnfyOUHF.d.ts} +20 -219
- package/dist/{agent_standing_job-DbKkPDyY.d.ts → agent_standing_job-DMtlKqoo.d.cts} +20 -219
- package/dist/{chat-interaction-CCdK_MtC.d.ts → chat-interaction-DTbOs4jH.d.ts} +691 -71
- package/dist/{chat-interaction-rktAADW0.d.cts → chat-interaction-KOe9pGEM.d.cts} +691 -71
- package/dist/{chunk-VFOWHCQ7.js → chunk-FWDDHKTM.js} +67 -13
- package/dist/chunk-FWDDHKTM.js.map +1 -0
- package/dist/{chunk-P2MSMMMJ.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 +67 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -48
- package/dist/index.d.ts +7 -48
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/internal.cjs +89 -12
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +380 -175
- package/dist/internal.d.ts +380 -175
- package/dist/internal.js +24 -2
- package/dist/internal.js.map +1 -1
- package/dist/{member-import-Bk2nh1YU.d.cts → member-import-4VSE3yYo.d.cts} +1 -1
- package/dist/{member-import-CybXt3PK.d.ts → member-import-BQDFoSyf.d.ts} +1 -1
- package/dist/schemas.cjs +1 -0
- package/dist/schemas.cjs.map +1 -1
- package/dist/schemas.d.cts +21 -18
- package/dist/schemas.d.ts +21 -18
- package/dist/schemas.js +2 -1
- package/dist/schemas.js.map +1 -1
- package/dist/{tasks-CGiE1y_T.d.ts → tasks-2LhXIwL8.d.ts} +73 -39
- package/dist/{tasks-DChznvPX.d.cts → tasks-BTURuIlD.d.cts} +73 -39
- package/package.json +1 -1
- package/dist/chunk-P2MSMMMJ.js.map +0 -1
- package/dist/chunk-VFOWHCQ7.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,
|
|
@@ -707,6 +708,7 @@ var EventRuleObjectType = /* @__PURE__ */ ((EventRuleObjectType2) => {
|
|
|
707
708
|
EventRuleObjectType2["CALL"] = "call";
|
|
708
709
|
EventRuleObjectType2["VOICEMAIL"] = "voicemail";
|
|
709
710
|
EventRuleObjectType2["FAX"] = "fax";
|
|
711
|
+
EventRuleObjectType2["FOLDER"] = "folder";
|
|
710
712
|
return EventRuleObjectType2;
|
|
711
713
|
})(EventRuleObjectType || {});
|
|
712
714
|
var EventRuleEventType = /* @__PURE__ */ ((EventRuleEventType2) => {
|
|
@@ -743,11 +745,16 @@ var EventRuleEventType = /* @__PURE__ */ ((EventRuleEventType2) => {
|
|
|
743
745
|
EventRuleEventType2["CALL_SUMMARY"] = "call:summary";
|
|
744
746
|
EventRuleEventType2["VOICEMAIL_RECEIVED"] = "voicemail:received";
|
|
745
747
|
EventRuleEventType2["FAX_RECEIVED"] = "fax:received";
|
|
748
|
+
EventRuleEventType2["FILE_CREATED"] = "file:created";
|
|
749
|
+
EventRuleEventType2["FILE_UPDATED"] = "file:updated";
|
|
750
|
+
EventRuleEventType2["FILE_MOVED"] = "file:moved";
|
|
751
|
+
EventRuleEventType2["FILE_DELETED"] = "file:deleted";
|
|
746
752
|
return EventRuleEventType2;
|
|
747
753
|
})(EventRuleEventType || {});
|
|
748
754
|
var EventRuleActionType = /* @__PURE__ */ ((EventRuleActionType2) => {
|
|
749
755
|
EventRuleActionType2["MEMBER_NOTIFY_ACTION"] = "member:notify";
|
|
750
756
|
EventRuleActionType2["MEMBER_LABEL_ACTION"] = "member:label";
|
|
757
|
+
EventRuleActionType2["FILE_LABEL_ACTION"] = "file:label";
|
|
751
758
|
EventRuleActionType2["MEMBER_UPSERT"] = "member:upsert";
|
|
752
759
|
EventRuleActionType2["SWITCH_TASK_ACTION"] = "task:switch";
|
|
753
760
|
EventRuleActionType2["ASSISTANT_MESSAGE"] = "assistant:message";
|
|
@@ -6031,6 +6038,19 @@ var CallsApi = class extends BaseApiClient {
|
|
|
6031
6038
|
`w/${wid}/recordings/chat/${chatId}/message-timing${params.toString() ? `?${params.toString()}` : ""}`
|
|
6032
6039
|
);
|
|
6033
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
|
+
}
|
|
6034
6054
|
/**
|
|
6035
6055
|
* Staff-only discovery of retained edge-stream capture for a chat:
|
|
6036
6056
|
* whether any is retained, its aggregate coverage status, the interval it
|
|
@@ -7019,6 +7039,13 @@ var DataTypesApi = class extends BaseApiClient {
|
|
|
7019
7039
|
body: JSON.stringify(data)
|
|
7020
7040
|
});
|
|
7021
7041
|
}
|
|
7042
|
+
/** Record that a care console billing CSV was downloaded, for the export audit trail. */
|
|
7043
|
+
async recordCcmBillingExport(wid, data) {
|
|
7044
|
+
await this.fetch(`w/${wid}/ccm/billing-exports`, {
|
|
7045
|
+
method: "POST",
|
|
7046
|
+
body: JSON.stringify(data)
|
|
7047
|
+
});
|
|
7048
|
+
}
|
|
7022
7049
|
/** List data records for a data type with optional filtering and pagination. */
|
|
7023
7050
|
async getDataRecords(wid, dataTypeId, options) {
|
|
7024
7051
|
const params = new URLSearchParams();
|
|
@@ -7578,14 +7605,12 @@ var TeamsAppsApi = class extends BaseApiClient {
|
|
|
7578
7605
|
);
|
|
7579
7606
|
}
|
|
7580
7607
|
/**
|
|
7581
|
-
*
|
|
7582
|
-
*
|
|
7583
|
-
*
|
|
7608
|
+
* The organization Bot Teams connection that delivers this workspace's
|
|
7609
|
+
* notifications, the connections it may choose, and the caller's own
|
|
7610
|
+
* readiness. Reads only; nothing is sent to Microsoft.
|
|
7584
7611
|
*/
|
|
7585
|
-
async
|
|
7586
|
-
return this.fetch(
|
|
7587
|
-
`w/${wid}/app-connections/teams/apps/${appId}/notification-destinations`
|
|
7588
|
-
);
|
|
7612
|
+
async getTeamsNotificationDelivery(wid) {
|
|
7613
|
+
return this.fetch(`w/${wid}/notification-delivery/teams`);
|
|
7589
7614
|
}
|
|
7590
7615
|
async getTeamsAppAccounts(wid, appId, options = {}) {
|
|
7591
7616
|
const params = new URLSearchParams();
|
|
@@ -7629,6 +7654,7 @@ var EventsApi = class extends BaseApiClient {
|
|
|
7629
7654
|
searchParams.append("workflowRevisionId", params.workflowRevisionId.toString());
|
|
7630
7655
|
if (params.journeyStepId)
|
|
7631
7656
|
searchParams.append("journeyStepId", params.journeyStepId.toString());
|
|
7657
|
+
if (params.folderId != null) searchParams.append("folderId", params.folderId.toString());
|
|
7632
7658
|
if (params.includeDisabled) searchParams.append("includeDisabled", "true");
|
|
7633
7659
|
return this.fetch(`w/${wid}/event-rules/search?${searchParams.toString()}`);
|
|
7634
7660
|
}
|
|
@@ -10956,6 +10982,30 @@ var OrgApi = class extends BaseApiClient {
|
|
|
10956
10982
|
method: "DELETE"
|
|
10957
10983
|
});
|
|
10958
10984
|
}
|
|
10985
|
+
/**
|
|
10986
|
+
* Read the organization's Inference API page: base URL, models, harness
|
|
10987
|
+
* snippets, credit posture and usage. Requires `org:admin`.
|
|
10988
|
+
*/
|
|
10989
|
+
async getOrgInferenceApi(orgIdOrUuid) {
|
|
10990
|
+
return this.fetch(`o/${orgIdOrUuid}/inference-api`);
|
|
10991
|
+
}
|
|
10992
|
+
/** Set the Inference API credit mode. Requires `org:admin`. */
|
|
10993
|
+
async updateOrgInferenceApi(orgIdOrUuid, data) {
|
|
10994
|
+
return this.fetch(`o/${orgIdOrUuid}/inference-api`, {
|
|
10995
|
+
method: "PUT",
|
|
10996
|
+
body: JSON.stringify(data)
|
|
10997
|
+
});
|
|
10998
|
+
}
|
|
10999
|
+
/**
|
|
11000
|
+
* Mint an organization-bound Inference API key. The secret is returned once.
|
|
11001
|
+
* Requires `org:admin`.
|
|
11002
|
+
*/
|
|
11003
|
+
async createOrgInferenceApiKey(orgIdOrUuid, data) {
|
|
11004
|
+
return this.fetch(`o/${orgIdOrUuid}/inference-api/keys`, {
|
|
11005
|
+
method: "POST",
|
|
11006
|
+
body: JSON.stringify(data)
|
|
11007
|
+
});
|
|
11008
|
+
}
|
|
10959
11009
|
/** Current Organization billing access and billable subscription. */
|
|
10960
11010
|
async getOrgBillingAccess(orgIdOrUuid) {
|
|
10961
11011
|
return this.fetch(`o/${orgIdOrUuid}/billing-access`);
|
|
@@ -12802,10 +12852,10 @@ var QueriesApi = class extends BaseApiClient {
|
|
|
12802
12852
|
});
|
|
12803
12853
|
}
|
|
12804
12854
|
/** Execute a query (rows / count / aggregate). */
|
|
12805
|
-
async runQuery(wid, query2, mode) {
|
|
12855
|
+
async runQuery(wid, query2, mode, options) {
|
|
12806
12856
|
return this.fetch(`w/${wid}/queries/run`, {
|
|
12807
12857
|
method: "POST",
|
|
12808
|
-
body: JSON.stringify({ query: query2, mode })
|
|
12858
|
+
body: JSON.stringify({ query: query2, mode, sourceFaxId: options?.sourceFaxId })
|
|
12809
12859
|
});
|
|
12810
12860
|
}
|
|
12811
12861
|
};
|
|
@@ -17409,6 +17459,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
17409
17459
|
"getPublicProducts",
|
|
17410
17460
|
"getQualification",
|
|
17411
17461
|
"getQualifications",
|
|
17462
|
+
"getRecordingWaveform",
|
|
17412
17463
|
"getResellerWorkspaces",
|
|
17413
17464
|
"getRoutine",
|
|
17414
17465
|
"getRoutineConfigEvents",
|
|
@@ -17456,7 +17507,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
17456
17507
|
"getTeamsApps",
|
|
17457
17508
|
"getTeamsConversations",
|
|
17458
17509
|
"getTeamsInstallations",
|
|
17459
|
-
"
|
|
17510
|
+
"getTeamsNotificationDelivery",
|
|
17460
17511
|
"getTemplateContext",
|
|
17461
17512
|
"getChatTestRun",
|
|
17462
17513
|
"getTestChatRun",
|
|
@@ -17958,6 +18009,7 @@ function bindCallsMethods(target, calls, cel) {
|
|
|
17958
18009
|
target.getPhoneCalls = calls.getPhoneCalls.bind(calls);
|
|
17959
18010
|
target.getPhoneCallByUuid = calls.getPhoneCallByUuid.bind(calls);
|
|
17960
18011
|
target.getMessageTiming = calls.getMessageTiming.bind(calls);
|
|
18012
|
+
target.getRecordingWaveform = calls.getRecordingWaveform.bind(calls);
|
|
17961
18013
|
target.getEdgeCaptureInfo = calls.getEdgeCaptureInfo.bind(calls);
|
|
17962
18014
|
target.getCallRecordingDownloadUrl = calls.getCallRecordingDownloadUrl.bind(calls);
|
|
17963
18015
|
target.getCelContext = cel.getCelContext.bind(cel);
|
|
@@ -18038,6 +18090,7 @@ function bindDataTypesMethods(target, dataTypes) {
|
|
|
18038
18090
|
target.unarchiveDataType = dataTypes.unarchiveDataType.bind(dataTypes);
|
|
18039
18091
|
target.cloneDataType = dataTypes.cloneDataType.bind(dataTypes);
|
|
18040
18092
|
target.getDataRecords = dataTypes.getDataRecords.bind(dataTypes);
|
|
18093
|
+
target.recordCcmBillingExport = dataTypes.recordCcmBillingExport.bind(dataTypes);
|
|
18041
18094
|
target.getWorkspaceValuesRecord = dataTypes.getWorkspaceValuesRecord.bind(dataTypes);
|
|
18042
18095
|
target.listAnonymousFormSubmissions = dataTypes.listAnonymousFormSubmissions.bind(dataTypes);
|
|
18043
18096
|
target.getAnonymousFormSubmission = dataTypes.getAnonymousFormSubmission.bind(dataTypes);
|
|
@@ -18768,7 +18821,7 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
|
|
|
18768
18821
|
target.getTeamsConversations = teamsApps.getTeamsConversations.bind(teamsApps);
|
|
18769
18822
|
target.getTeamsInstallations = teamsApps.getTeamsInstallations.bind(teamsApps);
|
|
18770
18823
|
target.getTeamsAppAccounts = teamsApps.getTeamsAppAccounts.bind(teamsApps);
|
|
18771
|
-
target.
|
|
18824
|
+
target.getTeamsNotificationDelivery = teamsApps.getTeamsNotificationDelivery.bind(teamsApps);
|
|
18772
18825
|
target.getFhirConnections = fhirConnections.getFhirConnections.bind(fhirConnections);
|
|
18773
18826
|
target.getFhirConnection = fhirConnections.getFhirConnection.bind(fhirConnections);
|
|
18774
18827
|
target.getFhirConnectionByUuid = fhirConnections.getFhirConnectionByUuid.bind(fhirConnections);
|
|
@@ -19368,6 +19421,7 @@ var GravityRailClient = class {
|
|
|
19368
19421
|
getPhoneCalls;
|
|
19369
19422
|
getPhoneCallByUuid;
|
|
19370
19423
|
getMessageTiming;
|
|
19424
|
+
getRecordingWaveform;
|
|
19371
19425
|
getEdgeCaptureInfo;
|
|
19372
19426
|
getCallRecordingDownloadUrl;
|
|
19373
19427
|
getCelContext;
|
|
@@ -19387,6 +19441,7 @@ var GravityRailClient = class {
|
|
|
19387
19441
|
unarchiveDataType;
|
|
19388
19442
|
cloneDataType;
|
|
19389
19443
|
getDataRecords;
|
|
19444
|
+
recordCcmBillingExport;
|
|
19390
19445
|
getWorkspaceValuesRecord;
|
|
19391
19446
|
listAnonymousFormSubmissions;
|
|
19392
19447
|
getAnonymousFormSubmission;
|
|
@@ -20371,7 +20426,7 @@ var GravityRailClient = class {
|
|
|
20371
20426
|
getTeamsConversations;
|
|
20372
20427
|
getTeamsInstallations;
|
|
20373
20428
|
getTeamsAppAccounts;
|
|
20374
|
-
|
|
20429
|
+
getTeamsNotificationDelivery;
|
|
20375
20430
|
// FHIR Connections API
|
|
20376
20431
|
getFhirConnections;
|
|
20377
20432
|
getFhirConnection;
|
|
@@ -20921,6 +20976,27 @@ function pathDraftToStorage(draft, original) {
|
|
|
20921
20976
|
...draft.selectionPriority === initial.selectionPriority ? {} : { order: draft.selectionPriority }
|
|
20922
20977
|
};
|
|
20923
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
|
+
};
|
|
20924
21000
|
// Annotate the CommonJS export names for ESM import in node:
|
|
20925
21001
|
0 && (module.exports = {
|
|
20926
21002
|
AGENT_NOTE_ORIGINS,
|
|
@@ -20940,6 +21016,7 @@ function pathDraftToStorage(draft, original) {
|
|
|
20940
21016
|
ActivityOpenItemOrder,
|
|
20941
21017
|
ActivityOutcome,
|
|
20942
21018
|
ActivityWindowBasis,
|
|
21019
|
+
AdminRoomMessageDeliveryReason,
|
|
20943
21020
|
AgentTasksApi,
|
|
20944
21021
|
AgentsApi,
|
|
20945
21022
|
AiConnectorPolicy,
|