@gravity-rail/sdk 0.34.1 → 0.36.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/{chat-interaction-SVa5dCEM.d.cts → chat-interaction-Ck1oMOr5.d.ts} +63 -3
- package/dist/{chat-interaction-cAFv3O2a.d.ts → chat-interaction-DqQu8Ad1.d.cts} +63 -3
- package/dist/{chunk-F3DHHYCJ.js → chunk-R3C63RZJ.js} +24 -1
- package/dist/chunk-R3C63RZJ.js.map +1 -0
- package/dist/helpers.d.cts +3 -3
- package/dist/helpers.d.ts +3 -3
- package/dist/index.cjs +23 -0
- 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 +1 -1
- package/dist/internal.cjs +23 -0
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +37 -6
- package/dist/internal.d.ts +37 -6
- package/dist/internal.js +1 -1
- package/dist/internal.js.map +1 -1
- package/dist/{revision-state-DY4l_agA.d.cts → revision-state-Tn2V0-zt.d.cts} +2 -2
- package/dist/{revision-state-DS8Uf2P2.d.ts → revision-state-V5RIhte0.d.ts} +2 -2
- package/dist/schemas.d.cts +2 -2
- package/dist/schemas.d.ts +2 -2
- package/dist/{tasks-Co5om-p9.d.cts → tasks-BH_i_pVb.d.cts} +2 -0
- package/dist/{tasks-Co5om-p9.d.ts → tasks-BH_i_pVb.d.ts} +2 -0
- package/package.json +1 -1
- package/dist/chunk-F3DHHYCJ.js.map +0 -1
|
@@ -7521,6 +7521,12 @@ var ToolkitsApi = class extends BaseApiClient {
|
|
|
7521
7521
|
|
|
7522
7522
|
// src/api/journeys.ts
|
|
7523
7523
|
var JourneysApi = class extends BaseApiClient {
|
|
7524
|
+
async putJourneyDraft(wid, journeyId, data) {
|
|
7525
|
+
return this.fetch(`w/${wid}/journeys/${journeyId}/draft`, {
|
|
7526
|
+
method: "PUT",
|
|
7527
|
+
body: JSON.stringify(data)
|
|
7528
|
+
});
|
|
7529
|
+
}
|
|
7524
7530
|
/**
|
|
7525
7531
|
* List journeys, optionally including archived, paginated.
|
|
7526
7532
|
*
|
|
@@ -7610,6 +7616,13 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
7610
7616
|
async getJourneyFilterOptions(wid) {
|
|
7611
7617
|
return this.fetch(`w/${wid}/journeys/filter-options`);
|
|
7612
7618
|
}
|
|
7619
|
+
/** Copy a supported legacy definition into a separate draft V2 Journey. */
|
|
7620
|
+
async cloneJourneyAsV2(wid, id) {
|
|
7621
|
+
return this.fetch(`w/${wid}/journeys/${id}/clone-v2`, {
|
|
7622
|
+
method: "POST",
|
|
7623
|
+
body: JSON.stringify({})
|
|
7624
|
+
});
|
|
7625
|
+
}
|
|
7613
7626
|
/** Create a new journey. Returns the READ projection (`JourneyRead`). */
|
|
7614
7627
|
async createJourney(wid, data) {
|
|
7615
7628
|
return this.fetch(`w/${wid}/journeys`, {
|
|
@@ -10807,6 +10820,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
10807
10820
|
"createFolder",
|
|
10808
10821
|
"createGoal",
|
|
10809
10822
|
"createInbox",
|
|
10823
|
+
"cloneJourneyAsV2",
|
|
10810
10824
|
"createJourney",
|
|
10811
10825
|
"createJourneyNote",
|
|
10812
10826
|
"createMcpServer",
|
|
@@ -11400,6 +11414,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
11400
11414
|
"previewWorkspaceImportZip",
|
|
11401
11415
|
"provisionClientWorkspace",
|
|
11402
11416
|
"publishWorkflowRevision",
|
|
11417
|
+
"putJourneyDraft",
|
|
11403
11418
|
"putJourneyV2Definition",
|
|
11404
11419
|
"rateMessage",
|
|
11405
11420
|
"getChatFeedback",
|
|
@@ -12610,6 +12625,8 @@ function bindOrgMethods(target, org) {
|
|
|
12610
12625
|
target.enableOrgDomainSite = org.enableOrgDomainSite.bind(org);
|
|
12611
12626
|
target.getOrgDomainSite = org.getOrgDomainSite.bind(org);
|
|
12612
12627
|
target.preflightOrgDomainSite = org.preflightOrgDomainSite.bind(org);
|
|
12628
|
+
target.createOrgDomainSiteChildHost = org.createOrgDomainSiteChildHost.bind(org);
|
|
12629
|
+
target.listOrgDomainSiteChildHosts = org.listOrgDomainSiteChildHosts.bind(org);
|
|
12613
12630
|
target.verifyOrgDomainSite = org.verifyOrgDomainSite.bind(org);
|
|
12614
12631
|
target.disableOrgDomainSite = org.disableOrgDomainSite.bind(org);
|
|
12615
12632
|
target.getBusinessProfile = org.getBusinessProfile.bind(org);
|
|
@@ -12652,10 +12669,12 @@ function bindJourneysMethods(target, journeys) {
|
|
|
12652
12669
|
target.getJourneys = journeys.getJourneys.bind(journeys);
|
|
12653
12670
|
target.getJourney = journeys.getJourney.bind(journeys);
|
|
12654
12671
|
target.getJourneyAuthoring = journeys.getJourneyAuthoring.bind(journeys);
|
|
12672
|
+
target.putJourneyDraft = journeys.putJourneyDraft.bind(journeys);
|
|
12655
12673
|
target.putJourneyV2Definition = journeys.putJourneyV2Definition.bind(journeys);
|
|
12656
12674
|
target.getJourneyV2Validation = journeys.getJourneyV2Validation.bind(journeys);
|
|
12657
12675
|
target.getJourneyFilterOptions = journeys.getJourneyFilterOptions.bind(journeys);
|
|
12658
12676
|
target.getJourneyHealth = journeys.getJourneyHealth.bind(journeys);
|
|
12677
|
+
target.cloneJourneyAsV2 = journeys.cloneJourneyAsV2.bind(journeys);
|
|
12659
12678
|
target.createJourney = journeys.createJourney.bind(journeys);
|
|
12660
12679
|
target.updateJourney = journeys.updateJourney.bind(journeys);
|
|
12661
12680
|
target.archiveJourney = journeys.archiveJourney.bind(journeys);
|
|
@@ -13079,10 +13098,12 @@ var GravityRailClient = class {
|
|
|
13079
13098
|
getJourneys;
|
|
13080
13099
|
getJourney;
|
|
13081
13100
|
getJourneyAuthoring;
|
|
13101
|
+
putJourneyDraft;
|
|
13082
13102
|
putJourneyV2Definition;
|
|
13083
13103
|
getJourneyV2Validation;
|
|
13084
13104
|
getJourneyFilterOptions;
|
|
13085
13105
|
getJourneyHealth;
|
|
13106
|
+
cloneJourneyAsV2;
|
|
13086
13107
|
createJourney;
|
|
13087
13108
|
updateJourney;
|
|
13088
13109
|
archiveJourney;
|
|
@@ -13227,6 +13248,8 @@ var GravityRailClient = class {
|
|
|
13227
13248
|
enableOrgDomainSite;
|
|
13228
13249
|
getOrgDomainSite;
|
|
13229
13250
|
preflightOrgDomainSite;
|
|
13251
|
+
createOrgDomainSiteChildHost;
|
|
13252
|
+
listOrgDomainSiteChildHosts;
|
|
13230
13253
|
verifyOrgDomainSite;
|
|
13231
13254
|
disableOrgDomainSite;
|
|
13232
13255
|
getBusinessProfile;
|
|
@@ -15626,4 +15649,4 @@ export {
|
|
|
15626
15649
|
SCOPE_PRESETS,
|
|
15627
15650
|
getRevisionState
|
|
15628
15651
|
};
|
|
15629
|
-
//# sourceMappingURL=chunk-
|
|
15652
|
+
//# sourceMappingURL=chunk-R3C63RZJ.js.map
|