@gravity-rail/sdk 0.35.0 → 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.
@@ -1,5 +1,5 @@
1
- import { fr as GravityRailClient } from './chat-interaction-FU7DSyol.cjs';
2
- export { bM as ChatInteractionController } from './chat-interaction-FU7DSyol.cjs';
1
+ import { fr as GravityRailClient } from './chat-interaction-DqQu8Ad1.cjs';
2
+ export { bM as ChatInteractionController } from './chat-interaction-DqQu8Ad1.cjs';
3
3
  import { c8 as WorkspaceMemberResponse, aT as DataRecordResponse } from './tasks-BH_i_pVb.cjs';
4
4
  import 'zod';
5
5
 
package/dist/helpers.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { fr as GravityRailClient } from './chat-interaction-BheWK1UA.js';
2
- export { bM as ChatInteractionController } from './chat-interaction-BheWK1UA.js';
1
+ import { fr as GravityRailClient } from './chat-interaction-Ck1oMOr5.js';
2
+ export { bM as ChatInteractionController } from './chat-interaction-Ck1oMOr5.js';
3
3
  import { c8 as WorkspaceMemberResponse, aT as DataRecordResponse } from './tasks-BH_i_pVb.js';
4
4
  import 'zod';
5
5
 
package/dist/index.cjs CHANGED
@@ -8988,6 +8988,12 @@ var TrackedLinksApi = class extends BaseApiClient {
8988
8988
 
8989
8989
  // src/api/journeys.ts
8990
8990
  var JourneysApi = class extends BaseApiClient {
8991
+ async putJourneyDraft(wid, journeyId, data) {
8992
+ return this.fetch(`w/${wid}/journeys/${journeyId}/draft`, {
8993
+ method: "PUT",
8994
+ body: JSON.stringify(data)
8995
+ });
8996
+ }
8991
8997
  /**
8992
8998
  * List journeys, optionally including archived, paginated.
8993
8999
  *
@@ -9077,6 +9083,13 @@ var JourneysApi = class extends BaseApiClient {
9077
9083
  async getJourneyFilterOptions(wid) {
9078
9084
  return this.fetch(`w/${wid}/journeys/filter-options`);
9079
9085
  }
9086
+ /** Copy a supported legacy definition into a separate draft V2 Journey. */
9087
+ async cloneJourneyAsV2(wid, id) {
9088
+ return this.fetch(`w/${wid}/journeys/${id}/clone-v2`, {
9089
+ method: "POST",
9090
+ body: JSON.stringify({})
9091
+ });
9092
+ }
9080
9093
  /** Create a new journey. Returns the READ projection (`JourneyRead`). */
9081
9094
  async createJourney(wid, data) {
9082
9095
  return this.fetch(`w/${wid}/journeys`, {
@@ -11554,6 +11567,7 @@ var WORKSPACE_METHOD_NAMES = [
11554
11567
  "createFolder",
11555
11568
  "createGoal",
11556
11569
  "createInbox",
11570
+ "cloneJourneyAsV2",
11557
11571
  "createJourney",
11558
11572
  "createJourneyNote",
11559
11573
  "createMcpServer",
@@ -12147,6 +12161,7 @@ var WORKSPACE_METHOD_NAMES = [
12147
12161
  "previewWorkspaceImportZip",
12148
12162
  "provisionClientWorkspace",
12149
12163
  "publishWorkflowRevision",
12164
+ "putJourneyDraft",
12150
12165
  "putJourneyV2Definition",
12151
12166
  "rateMessage",
12152
12167
  "getChatFeedback",
@@ -13401,10 +13416,12 @@ function bindJourneysMethods(target, journeys) {
13401
13416
  target.getJourneys = journeys.getJourneys.bind(journeys);
13402
13417
  target.getJourney = journeys.getJourney.bind(journeys);
13403
13418
  target.getJourneyAuthoring = journeys.getJourneyAuthoring.bind(journeys);
13419
+ target.putJourneyDraft = journeys.putJourneyDraft.bind(journeys);
13404
13420
  target.putJourneyV2Definition = journeys.putJourneyV2Definition.bind(journeys);
13405
13421
  target.getJourneyV2Validation = journeys.getJourneyV2Validation.bind(journeys);
13406
13422
  target.getJourneyFilterOptions = journeys.getJourneyFilterOptions.bind(journeys);
13407
13423
  target.getJourneyHealth = journeys.getJourneyHealth.bind(journeys);
13424
+ target.cloneJourneyAsV2 = journeys.cloneJourneyAsV2.bind(journeys);
13408
13425
  target.createJourney = journeys.createJourney.bind(journeys);
13409
13426
  target.updateJourney = journeys.updateJourney.bind(journeys);
13410
13427
  target.archiveJourney = journeys.archiveJourney.bind(journeys);
@@ -13828,10 +13845,12 @@ var GravityRailClient = class {
13828
13845
  getJourneys;
13829
13846
  getJourney;
13830
13847
  getJourneyAuthoring;
13848
+ putJourneyDraft;
13831
13849
  putJourneyV2Definition;
13832
13850
  getJourneyV2Validation;
13833
13851
  getJourneyFilterOptions;
13834
13852
  getJourneyHealth;
13853
+ cloneJourneyAsV2;
13835
13854
  createJourney;
13836
13855
  updateJourney;
13837
13856
  archiveJourney;