@gravity-rail/sdk 0.35.0 → 0.36.1
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/{chat-interaction-BheWK1UA.d.ts → chat-interaction-CbkSPz3m.d.cts} +114 -70
- package/dist/{chat-interaction-FU7DSyol.d.cts → chat-interaction-DqjEfj7G.d.ts} +114 -70
- package/dist/{chunk-3OQ6HJ3I.js → chunk-R6S5RXW5.js} +43 -18
- package/dist/chunk-R6S5RXW5.js.map +1 -0
- package/dist/helpers.d.cts +3 -3
- package/dist/helpers.d.ts +3 -3
- package/dist/index.cjs +43 -20
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +3 -7
- package/dist/index.js.map +1 -1
- package/dist/internal.cjs +43 -20
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +61 -6
- package/dist/internal.d.ts +61 -6
- package/dist/internal.js +3 -7
- package/dist/internal.js.map +1 -1
- package/dist/{revision-state--lDViDBo.d.ts → revision-state-92LHz1jQ.d.ts} +3 -3
- package/dist/{revision-state-BcaFclxY.d.cts → revision-state-CSQ7J3ZU.d.cts} +3 -3
- package/dist/schemas.d.cts +2 -2
- package/dist/schemas.d.ts +2 -2
- package/dist/{tasks-BH_i_pVb.d.cts → tasks-CrF1qC4G.d.cts} +13 -6
- package/dist/{tasks-BH_i_pVb.d.ts → tasks-CrF1qC4G.d.ts} +13 -6
- package/package.json +1 -1
- package/dist/chunk-3OQ6HJ3I.js.map +0 -1
|
@@ -4506,6 +4506,18 @@ var MembersApi = class extends BaseApiClient {
|
|
|
4506
4506
|
{ method: "DELETE" }
|
|
4507
4507
|
);
|
|
4508
4508
|
}
|
|
4509
|
+
async listContactPermissions(wid, params) {
|
|
4510
|
+
return this.fetch(`w/${wid}/contact-permissions/history`, {
|
|
4511
|
+
method: "POST",
|
|
4512
|
+
body: JSON.stringify(params)
|
|
4513
|
+
});
|
|
4514
|
+
}
|
|
4515
|
+
async createContactPermission(wid, body) {
|
|
4516
|
+
return this.fetch(`w/${wid}/contact-permissions`, {
|
|
4517
|
+
method: "POST",
|
|
4518
|
+
body: JSON.stringify(body)
|
|
4519
|
+
});
|
|
4520
|
+
}
|
|
4509
4521
|
};
|
|
4510
4522
|
|
|
4511
4523
|
// src/api/monday.ts
|
|
@@ -7521,6 +7533,12 @@ var ToolkitsApi = class extends BaseApiClient {
|
|
|
7521
7533
|
|
|
7522
7534
|
// src/api/journeys.ts
|
|
7523
7535
|
var JourneysApi = class extends BaseApiClient {
|
|
7536
|
+
async putJourneyDraft(wid, journeyId, data) {
|
|
7537
|
+
return this.fetch(`w/${wid}/journeys/${journeyId}/draft`, {
|
|
7538
|
+
method: "PUT",
|
|
7539
|
+
body: JSON.stringify(data)
|
|
7540
|
+
});
|
|
7541
|
+
}
|
|
7524
7542
|
/**
|
|
7525
7543
|
* List journeys, optionally including archived, paginated.
|
|
7526
7544
|
*
|
|
@@ -7610,6 +7628,13 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
7610
7628
|
async getJourneyFilterOptions(wid) {
|
|
7611
7629
|
return this.fetch(`w/${wid}/journeys/filter-options`);
|
|
7612
7630
|
}
|
|
7631
|
+
/** Copy a supported legacy definition into a separate draft V2 Journey. */
|
|
7632
|
+
async cloneJourneyAsV2(wid, id) {
|
|
7633
|
+
return this.fetch(`w/${wid}/journeys/${id}/clone-v2`, {
|
|
7634
|
+
method: "POST",
|
|
7635
|
+
body: JSON.stringify({})
|
|
7636
|
+
});
|
|
7637
|
+
}
|
|
7613
7638
|
/** Create a new journey. Returns the READ projection (`JourneyRead`). */
|
|
7614
7639
|
async createJourney(wid, data) {
|
|
7615
7640
|
return this.fetch(`w/${wid}/journeys`, {
|
|
@@ -8495,6 +8520,7 @@ var EventRuleEventType = /* @__PURE__ */ ((EventRuleEventType2) => {
|
|
|
8495
8520
|
EventRuleEventType2["DATA_RECORD_CHANGED"] = "data_record:changed";
|
|
8496
8521
|
EventRuleEventType2["CHAT_CREATED"] = "chat:created";
|
|
8497
8522
|
EventRuleEventType2["CHAT_SUMMARY"] = "chat:summary";
|
|
8523
|
+
EventRuleEventType2["MESSAGE_CREATED"] = "message:created";
|
|
8498
8524
|
EventRuleEventType2["CHAT_CALLBACK"] = "chat:callback";
|
|
8499
8525
|
EventRuleEventType2["MEMBER_UPDATED"] = "member:updated";
|
|
8500
8526
|
EventRuleEventType2["ROUTINE_TRIGGERED"] = "routine:triggered";
|
|
@@ -8695,7 +8721,6 @@ var ModelProvider = {
|
|
|
8695
8721
|
google: "google",
|
|
8696
8722
|
anthropic: "anthropic",
|
|
8697
8723
|
aws: "aws",
|
|
8698
|
-
elevenlabs: "elevenlabs",
|
|
8699
8724
|
deepgram: "deepgram",
|
|
8700
8725
|
xai: "xai",
|
|
8701
8726
|
fireworks: "fireworks",
|
|
@@ -8721,9 +8746,7 @@ var STT_MODEL_DEEPGRAM_FLUX = "deepgram:stt:flux-general-en";
|
|
|
8721
8746
|
var STT_MODEL_DEEPGRAM_FLUX_SELFHOST = "deepgram:stt:flux-general-en:selfhost";
|
|
8722
8747
|
var STT_MODEL_DEEPGRAM_FLUX_MULTI = "deepgram:stt:flux-general-multi";
|
|
8723
8748
|
var STT_MODEL_DEEPGRAM_FLUX_MULTI_SELFHOST = "deepgram:stt:flux-general-multi:selfhost";
|
|
8724
|
-
var
|
|
8725
|
-
var TTS_MODEL_ELEVENLABS_TURBO = "elevenlabs:tts:eleven_turbo_v2_5";
|
|
8726
|
-
var TTS_MODEL_ELEVENLABS_MULTILINGUAL = "elevenlabs:tts:eleven_multilingual_v2";
|
|
8749
|
+
var TTS_MODEL_XAI_V1 = "xai:tts:v1";
|
|
8727
8750
|
var TTS_MODEL_DEEPGRAM_AURA_2 = "deepgram:tts:aura-2";
|
|
8728
8751
|
var TTS_MODEL_AWS_POLLY_GENERATIVE = "aws:tts:polly-generative";
|
|
8729
8752
|
var TTS_MODEL_AWS_POLLY_NEURAL = "aws:tts:polly-neural";
|
|
@@ -10790,6 +10813,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
10790
10813
|
"createChatLabel",
|
|
10791
10814
|
"createClientWorkspace",
|
|
10792
10815
|
"createConnection",
|
|
10816
|
+
"createContactPermission",
|
|
10793
10817
|
"createCustomTool",
|
|
10794
10818
|
"createCustomToolkit",
|
|
10795
10819
|
"createDashboard",
|
|
@@ -10807,6 +10831,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
10807
10831
|
"createFolder",
|
|
10808
10832
|
"createGoal",
|
|
10809
10833
|
"createInbox",
|
|
10834
|
+
"cloneJourneyAsV2",
|
|
10810
10835
|
"createJourney",
|
|
10811
10836
|
"createJourneyNote",
|
|
10812
10837
|
"createMcpServer",
|
|
@@ -11354,6 +11379,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
11354
11379
|
"listConfluencePages",
|
|
11355
11380
|
"listConfluenceSpaces",
|
|
11356
11381
|
"listConnectionMemberFieldKeys",
|
|
11382
|
+
"listContactPermissions",
|
|
11357
11383
|
"rollbackSiteSource",
|
|
11358
11384
|
"rotateDocumoFaxCredentials",
|
|
11359
11385
|
"runQuery",
|
|
@@ -11400,6 +11426,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
11400
11426
|
"previewWorkspaceImportZip",
|
|
11401
11427
|
"provisionClientWorkspace",
|
|
11402
11428
|
"publishWorkflowRevision",
|
|
11429
|
+
"putJourneyDraft",
|
|
11403
11430
|
"putJourneyV2Definition",
|
|
11404
11431
|
"rateMessage",
|
|
11405
11432
|
"getChatFeedback",
|
|
@@ -11881,6 +11908,8 @@ function bindMembersMethods(target, members) {
|
|
|
11881
11908
|
target.getMemberRelationships = members.getMemberRelationships.bind(members);
|
|
11882
11909
|
target.createMemberRelationship = members.createMemberRelationship.bind(members);
|
|
11883
11910
|
target.archiveMemberRelationship = members.archiveMemberRelationship.bind(members);
|
|
11911
|
+
target.listContactPermissions = members.listContactPermissions.bind(members);
|
|
11912
|
+
target.createContactPermission = members.createContactPermission.bind(members);
|
|
11884
11913
|
}
|
|
11885
11914
|
|
|
11886
11915
|
// src/client/bindings/workspaces.ts
|
|
@@ -12654,10 +12683,12 @@ function bindJourneysMethods(target, journeys) {
|
|
|
12654
12683
|
target.getJourneys = journeys.getJourneys.bind(journeys);
|
|
12655
12684
|
target.getJourney = journeys.getJourney.bind(journeys);
|
|
12656
12685
|
target.getJourneyAuthoring = journeys.getJourneyAuthoring.bind(journeys);
|
|
12686
|
+
target.putJourneyDraft = journeys.putJourneyDraft.bind(journeys);
|
|
12657
12687
|
target.putJourneyV2Definition = journeys.putJourneyV2Definition.bind(journeys);
|
|
12658
12688
|
target.getJourneyV2Validation = journeys.getJourneyV2Validation.bind(journeys);
|
|
12659
12689
|
target.getJourneyFilterOptions = journeys.getJourneyFilterOptions.bind(journeys);
|
|
12660
12690
|
target.getJourneyHealth = journeys.getJourneyHealth.bind(journeys);
|
|
12691
|
+
target.cloneJourneyAsV2 = journeys.cloneJourneyAsV2.bind(journeys);
|
|
12661
12692
|
target.createJourney = journeys.createJourney.bind(journeys);
|
|
12662
12693
|
target.updateJourney = journeys.updateJourney.bind(journeys);
|
|
12663
12694
|
target.archiveJourney = journeys.archiveJourney.bind(journeys);
|
|
@@ -12982,6 +13013,8 @@ var GravityRailClient = class {
|
|
|
12982
13013
|
getMemberRelationships;
|
|
12983
13014
|
createMemberRelationship;
|
|
12984
13015
|
archiveMemberRelationship;
|
|
13016
|
+
listContactPermissions;
|
|
13017
|
+
createContactPermission;
|
|
12985
13018
|
// Agent Tasks API (operator-facing async sub-agent inspection/cancel)
|
|
12986
13019
|
getAgentTasks;
|
|
12987
13020
|
getAgentTask;
|
|
@@ -13081,10 +13114,12 @@ var GravityRailClient = class {
|
|
|
13081
13114
|
getJourneys;
|
|
13082
13115
|
getJourney;
|
|
13083
13116
|
getJourneyAuthoring;
|
|
13117
|
+
putJourneyDraft;
|
|
13084
13118
|
putJourneyV2Definition;
|
|
13085
13119
|
getJourneyV2Validation;
|
|
13086
13120
|
getJourneyFilterOptions;
|
|
13087
13121
|
getJourneyHealth;
|
|
13122
|
+
cloneJourneyAsV2;
|
|
13088
13123
|
createJourney;
|
|
13089
13124
|
updateJourney;
|
|
13090
13125
|
archiveJourney;
|
|
@@ -14102,7 +14137,6 @@ var AbilityTypeSlugs = {
|
|
|
14102
14137
|
SEND_WHATSAPP: "communication:send_whatsapp",
|
|
14103
14138
|
MEMBER_ACCESS: "communication:member_access",
|
|
14104
14139
|
AUDIO_PLAYBACK: "communication:audio_playback",
|
|
14105
|
-
IMAGE_DISPLAY: "communication:image_display",
|
|
14106
14140
|
// Oversight
|
|
14107
14141
|
SUPERVISOR: "oversight:supervisor",
|
|
14108
14142
|
SUPERVISOR_ACTIONS: "oversight:supervisor_actions",
|
|
@@ -14132,14 +14166,7 @@ function getTTSProvider(ttsModel) {
|
|
|
14132
14166
|
if (!ttsModel || ttsModel === "native") return ttsModel ?? null;
|
|
14133
14167
|
return ttsModel.split(":")[0] ?? null;
|
|
14134
14168
|
}
|
|
14135
|
-
var TTS_PREVIEW_PROVIDERS = [
|
|
14136
|
-
"openai",
|
|
14137
|
-
"elevenlabs",
|
|
14138
|
-
"google",
|
|
14139
|
-
"aws",
|
|
14140
|
-
"deepgram",
|
|
14141
|
-
"xai"
|
|
14142
|
-
];
|
|
14169
|
+
var TTS_PREVIEW_PROVIDERS = ["openai", "google", "aws", "deepgram", "xai"];
|
|
14143
14170
|
function getVoiceModelId(entity) {
|
|
14144
14171
|
const config = entity.realtimeModelConfig;
|
|
14145
14172
|
return config?.voiceModel ?? null;
|
|
@@ -14521,7 +14548,7 @@ var DEFAULT_AGENT_REALTIME_MODEL_CONFIG = {
|
|
|
14521
14548
|
voiceModel: "xai:voice:cosmo"
|
|
14522
14549
|
};
|
|
14523
14550
|
var DEFAULT_VOICE_INFERENCE_MODEL = "openai:chat:gpt-5.6-luna";
|
|
14524
|
-
var DEFAULT_CUSTOM_VOICE_MODEL = "
|
|
14551
|
+
var DEFAULT_CUSTOM_VOICE_MODEL = "xai:voice:lux";
|
|
14525
14552
|
|
|
14526
14553
|
// src/types/resource-metadata.ts
|
|
14527
14554
|
var RESOURCE_METADATA = {
|
|
@@ -15470,9 +15497,7 @@ export {
|
|
|
15470
15497
|
STT_MODEL_DEEPGRAM_FLUX_SELFHOST,
|
|
15471
15498
|
STT_MODEL_DEEPGRAM_FLUX_MULTI,
|
|
15472
15499
|
STT_MODEL_DEEPGRAM_FLUX_MULTI_SELFHOST,
|
|
15473
|
-
|
|
15474
|
-
TTS_MODEL_ELEVENLABS_TURBO,
|
|
15475
|
-
TTS_MODEL_ELEVENLABS_MULTILINGUAL,
|
|
15500
|
+
TTS_MODEL_XAI_V1,
|
|
15476
15501
|
TTS_MODEL_DEEPGRAM_AURA_2,
|
|
15477
15502
|
TTS_MODEL_AWS_POLLY_GENERATIVE,
|
|
15478
15503
|
TTS_MODEL_AWS_POLLY_NEURAL,
|
|
@@ -15630,4 +15655,4 @@ export {
|
|
|
15630
15655
|
SCOPE_PRESETS,
|
|
15631
15656
|
getRevisionState
|
|
15632
15657
|
};
|
|
15633
|
-
//# sourceMappingURL=chunk-
|
|
15658
|
+
//# sourceMappingURL=chunk-R6S5RXW5.js.map
|