@epilot/sdk 2.20.48 → 2.20.50

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.
Files changed (159) hide show
  1. package/definitions/chat.json +1092 -1
  2. package/definitions/journey-runtime.json +1 -1
  3. package/definitions/journey.json +356 -10
  4. package/definitions/pricing-runtime.json +1 -1
  5. package/definitions/pricing.json +949 -130
  6. package/dist/apis/access-token.cjs +6 -6
  7. package/dist/apis/access-token.js +1 -1
  8. package/dist/apis/address-suggestions.cjs +6 -6
  9. package/dist/apis/address-suggestions.js +1 -1
  10. package/dist/apis/address.cjs +6 -6
  11. package/dist/apis/address.js +1 -1
  12. package/dist/apis/ai-agents.cjs +6 -6
  13. package/dist/apis/ai-agents.js +1 -1
  14. package/dist/apis/app.cjs +6 -6
  15. package/dist/apis/app.js +1 -1
  16. package/dist/apis/audit-logs.cjs +6 -6
  17. package/dist/apis/audit-logs.js +1 -1
  18. package/dist/apis/automation.cjs +6 -6
  19. package/dist/apis/automation.js +1 -1
  20. package/dist/apis/billing.cjs +6 -6
  21. package/dist/apis/billing.js +1 -1
  22. package/dist/apis/blueprint-manifest.cjs +6 -6
  23. package/dist/apis/blueprint-manifest.js +1 -1
  24. package/dist/apis/calendar.cjs +6 -6
  25. package/dist/apis/calendar.js +1 -1
  26. package/dist/apis/chat.cjs +6 -6
  27. package/dist/apis/chat.d.cts +2 -2
  28. package/dist/apis/chat.d.ts +2 -2
  29. package/dist/apis/chat.js +1 -1
  30. package/dist/apis/configuration-hub.cjs +6 -6
  31. package/dist/apis/configuration-hub.js +1 -1
  32. package/dist/apis/consent.cjs +6 -6
  33. package/dist/apis/consent.js +1 -1
  34. package/dist/apis/customer-portal.cjs +6 -6
  35. package/dist/apis/customer-portal.js +1 -1
  36. package/dist/apis/dashboard.cjs +6 -6
  37. package/dist/apis/dashboard.js +1 -1
  38. package/dist/apis/data-governance.cjs +6 -6
  39. package/dist/apis/data-governance.js +1 -1
  40. package/dist/apis/deduplication.cjs +6 -6
  41. package/dist/apis/deduplication.js +1 -1
  42. package/dist/apis/design.cjs +6 -6
  43. package/dist/apis/design.js +1 -1
  44. package/dist/apis/document.cjs +6 -6
  45. package/dist/apis/document.js +1 -1
  46. package/dist/apis/email-settings.cjs +6 -6
  47. package/dist/apis/email-settings.js +1 -1
  48. package/dist/apis/email-template.cjs +6 -6
  49. package/dist/apis/email-template.js +1 -1
  50. package/dist/apis/entity-mapping.cjs +6 -6
  51. package/dist/apis/entity-mapping.js +1 -1
  52. package/dist/apis/entity.cjs +6 -6
  53. package/dist/apis/entity.js +1 -1
  54. package/dist/apis/environments.cjs +6 -6
  55. package/dist/apis/environments.js +1 -1
  56. package/dist/apis/event-catalog.cjs +6 -6
  57. package/dist/apis/event-catalog.js +1 -1
  58. package/dist/apis/file.cjs +6 -6
  59. package/dist/apis/file.js +1 -1
  60. package/dist/apis/iban.cjs +6 -6
  61. package/dist/apis/iban.js +1 -1
  62. package/dist/apis/identity.cjs +6 -6
  63. package/dist/apis/identity.js +1 -1
  64. package/dist/apis/integration-toolkit.cjs +6 -6
  65. package/dist/apis/integration-toolkit.js +1 -1
  66. package/dist/apis/journey.cjs +8 -8
  67. package/dist/apis/journey.d.cts +2 -2
  68. package/dist/apis/journey.d.ts +2 -2
  69. package/dist/apis/journey.js +2 -2
  70. package/dist/apis/kanban.cjs +6 -6
  71. package/dist/apis/kanban.js +1 -1
  72. package/dist/apis/message.cjs +6 -6
  73. package/dist/apis/message.js +1 -1
  74. package/dist/apis/metering.cjs +6 -6
  75. package/dist/apis/metering.js +1 -1
  76. package/dist/apis/notes.cjs +6 -6
  77. package/dist/apis/notes.js +1 -1
  78. package/dist/apis/notification.cjs +6 -6
  79. package/dist/apis/notification.js +1 -1
  80. package/dist/apis/organization.cjs +6 -6
  81. package/dist/apis/organization.js +1 -1
  82. package/dist/apis/partner-directory.cjs +6 -6
  83. package/dist/apis/partner-directory.js +1 -1
  84. package/dist/apis/permissions.cjs +6 -6
  85. package/dist/apis/permissions.js +1 -1
  86. package/dist/apis/pricing-tier.cjs +6 -6
  87. package/dist/apis/pricing-tier.js +1 -1
  88. package/dist/apis/pricing.cjs +8 -8
  89. package/dist/apis/pricing.d.cts +2 -2
  90. package/dist/apis/pricing.d.ts +2 -2
  91. package/dist/apis/pricing.js +2 -2
  92. package/dist/apis/purpose.cjs +6 -6
  93. package/dist/apis/purpose.js +1 -1
  94. package/dist/apis/query.cjs +6 -6
  95. package/dist/apis/query.js +1 -1
  96. package/dist/apis/sandbox.cjs +6 -6
  97. package/dist/apis/sandbox.js +1 -1
  98. package/dist/apis/sharing.cjs +6 -6
  99. package/dist/apis/sharing.js +1 -1
  100. package/dist/apis/snapshot.cjs +6 -6
  101. package/dist/apis/snapshot.js +1 -1
  102. package/dist/apis/submission.cjs +6 -6
  103. package/dist/apis/submission.js +1 -1
  104. package/dist/apis/target.cjs +6 -6
  105. package/dist/apis/target.js +1 -1
  106. package/dist/apis/targeting.cjs +6 -6
  107. package/dist/apis/targeting.js +1 -1
  108. package/dist/apis/template-variables.cjs +6 -6
  109. package/dist/apis/template-variables.js +1 -1
  110. package/dist/apis/user.cjs +6 -6
  111. package/dist/apis/user.js +1 -1
  112. package/dist/apis/validation-rules.cjs +6 -6
  113. package/dist/apis/validation-rules.js +1 -1
  114. package/dist/apis/webhooks.cjs +6 -6
  115. package/dist/apis/webhooks.js +1 -1
  116. package/dist/apis/workflow-definition.cjs +6 -6
  117. package/dist/apis/workflow-definition.js +1 -1
  118. package/dist/apis/workflow.cjs +6 -6
  119. package/dist/apis/workflow.js +1 -1
  120. package/dist/chat-J2QDZT3T.cjs +7 -0
  121. package/dist/chat-S2AFYBHH.js +7 -0
  122. package/dist/chat.d-C-X6oeNS.d.cts +10535 -0
  123. package/dist/chat.d-C-X6oeNS.d.ts +10535 -0
  124. package/dist/chunk-BU5DVOFF.cjs +14 -0
  125. package/dist/{chunk-SJS5S6Z5.js → chunk-I3ZZES76.js} +1 -1
  126. package/dist/{chunk-X7UJYAG5.cjs → chunk-QYHNZLHS.cjs} +1 -1
  127. package/dist/chunk-QZ3FPCEP.js +14 -0
  128. package/dist/{chunk-KP2RRRO5.cjs → chunk-TF4SGSFP.cjs} +5 -5
  129. package/dist/{chunk-UORN27QE.js → chunk-VMA2UKDS.js} +5 -5
  130. package/dist/index.cjs +12 -12
  131. package/dist/index.d.cts +3 -3
  132. package/dist/index.d.ts +3 -3
  133. package/dist/index.js +3 -3
  134. package/dist/journey-JDIVUY7T.cjs +7 -0
  135. package/dist/journey-PBOMOJ5G.js +7 -0
  136. package/dist/{journey-runtime-S5I3K4NH.js → journey-runtime-AQH7EG4C.js} +1 -1
  137. package/dist/{journey-runtime-BVSPJTYH.cjs → journey-runtime-KZUPV4XH.cjs} +2 -2
  138. package/dist/{journey.d-Dj93v-Lw.d.cts → journey.d-CMtM6U3Y.d.cts} +404 -15
  139. package/dist/{journey.d-Dj93v-Lw.d.ts → journey.d-CMtM6U3Y.d.ts} +404 -15
  140. package/dist/pricing-FYBJTHHN.js +7 -0
  141. package/dist/pricing-M2FG4LZ6.cjs +7 -0
  142. package/dist/{pricing-runtime-NMRZO6J4.cjs → pricing-runtime-PEAN7F5S.cjs} +2 -2
  143. package/dist/{pricing-runtime-MJAIO4AY.js → pricing-runtime-UDUM3AXP.js} +1 -1
  144. package/dist/{pricing.d-B3_8FPCM.d.cts → pricing.d-BMV5QoZ7.d.cts} +5039 -1447
  145. package/dist/{pricing.d-B3_8FPCM.d.ts → pricing.d-BMV5QoZ7.d.ts} +5039 -1447
  146. package/docs/chat.md +158 -0
  147. package/docs/journey.md +234 -36
  148. package/docs/pricing.md +940 -126
  149. package/package.json +1 -1
  150. package/dist/chat-6E3CPZZV.js +0 -7
  151. package/dist/chat-EGLWHHF5.cjs +0 -7
  152. package/dist/chat.d-BGPN5RIE.d.cts +0 -5319
  153. package/dist/chat.d-BGPN5RIE.d.ts +0 -5319
  154. package/dist/chunk-7Q3JW72Y.js +0 -14
  155. package/dist/chunk-QLWDOKGE.cjs +0 -14
  156. package/dist/journey-IVIBYU5V.js +0 -7
  157. package/dist/journey-ZN46FFPM.cjs +0 -7
  158. package/dist/pricing-JAICFDO5.cjs +0 -7
  159. package/dist/pricing-MYZSVSGK.js +0 -7
@@ -65,6 +65,24 @@ declare namespace Components {
65
65
  [name: string]: string;
66
66
  };
67
67
  }
68
+ /**
69
+ * A list of scalars, served under this service's own `List<Text>`,
70
+ * `List<Number>` or `List<Boolean>` token (ER-5455). Read by logic
71
+ * conditions; flattened to `items` by the journey runtime.
72
+ *
73
+ */
74
+ export interface EnvironmentScalarList {
75
+ itemType: "Text" | "Number" | "Boolean";
76
+ items: (string | number | boolean)[];
77
+ }
78
+ export interface ExternalValueError {
79
+ /**
80
+ * Absent for hook-level failures, when no result was produced.
81
+ */
82
+ result_id?: string;
83
+ code: string;
84
+ message?: string;
85
+ }
68
86
  export interface GenerateDocumentRequest {
69
87
  /**
70
88
  * Entity id for the template being used
@@ -196,6 +214,7 @@ declare namespace Components {
196
214
  showStepperLabels?: boolean | null;
197
215
  stepperType?: "numbers" | "progress bar";
198
216
  hideNextButton?: boolean | null;
217
+ guestVisible?: boolean | null;
199
218
  name: string;
200
219
  stepId?: string;
201
220
  schema: any;
@@ -255,7 +274,7 @@ declare namespace Components {
255
274
  */
256
275
  id?: string; // uuid
257
276
  /**
258
- * Indicates reference type (block or context parameter)
277
+ * Indicates reference type: block, context-parameter, datasource, global or environment (an organization environment variable, by key; ER-5455)
259
278
  */
260
279
  referenceType?: string;
261
280
  /**
@@ -418,6 +437,17 @@ declare namespace Components {
418
437
  * If false, third-party cookies are disabled to comply with GDPR regulations without asking for consent.
419
438
  */
420
439
  thirdPartyCookies?: boolean;
440
+ /**
441
+ * Per-journey opt-ins to beta features. One named boolean per feature (no free-form map), so a mistyped key is rejected with 400 and generated client types stay explicit. Additive: a feature is on when its key is true OR the organization-wide PostHog flag for that feature is on.
442
+ *
443
+ */
444
+ betaFeatures?: {
445
+ /**
446
+ * Opt this journey into the modern product presentation (product tiles and details modal). Effective when true OR the organization flag `journey-modern-products` is on.
447
+ *
448
+ */
449
+ modernProducts?: boolean;
450
+ };
421
451
  };
422
452
  validationRules?: /**
423
453
  * References to validation rules organized by blocks and fields.
@@ -445,6 +475,17 @@ declare namespace Components {
445
475
  * Manifest/Blueprint ID used to create/update the entity
446
476
  */
447
477
  _manifest?: string /* uuid */[];
478
+ /**
479
+ * Blueprint field-locking contract (server-managed). Carries the
480
+ * author plane (locks, default level) and the org plane (server-derived
481
+ * overlay). Public writes never persist client-supplied values — the
482
+ * stored contract is authoritative; it is written only by the
483
+ * Blueprints install pipeline.
484
+ *
485
+ */
486
+ blueprint_customization?: {
487
+ [name: string]: any;
488
+ };
448
489
  createdBy?: string;
449
490
  updatedBy?: string | null;
450
491
  /**
@@ -510,6 +551,7 @@ declare namespace Components {
510
551
  showStepperLabels?: boolean | null;
511
552
  stepperType?: "numbers" | "progress bar";
512
553
  hideNextButton?: boolean | null;
554
+ guestVisible?: boolean | null;
513
555
  name: string;
514
556
  stepId?: string;
515
557
  schema: any;
@@ -569,7 +611,7 @@ declare namespace Components {
569
611
  */
570
612
  id?: string; // uuid
571
613
  /**
572
- * Indicates reference type (block or context parameter)
614
+ * Indicates reference type: block, context-parameter, datasource, global or environment (an organization environment variable, by key; ER-5455)
573
615
  */
574
616
  referenceType?: string;
575
617
  /**
@@ -732,6 +774,17 @@ declare namespace Components {
732
774
  * If false, third-party cookies are disabled to comply with GDPR regulations without asking for consent.
733
775
  */
734
776
  thirdPartyCookies?: boolean;
777
+ /**
778
+ * Per-journey opt-ins to beta features. One named boolean per feature (no free-form map), so a mistyped key is rejected with 400 and generated client types stay explicit. Additive: a feature is on when its key is true OR the organization-wide PostHog flag for that feature is on.
779
+ *
780
+ */
781
+ betaFeatures?: {
782
+ /**
783
+ * Opt this journey into the modern product presentation (product tiles and details modal). Effective when true OR the organization flag `journey-modern-products` is on.
784
+ *
785
+ */
786
+ modernProducts?: boolean;
787
+ };
735
788
  };
736
789
  validationRules?: /**
737
790
  * References to validation rules organized by blocks and fields.
@@ -759,6 +812,17 @@ declare namespace Components {
759
812
  * Manifest/Blueprint ID used to create/update the entity
760
813
  */
761
814
  _manifest?: string /* uuid */[];
815
+ /**
816
+ * Blueprint field-locking contract (server-managed). Carries the
817
+ * author plane (locks, default level) and the org plane (server-derived
818
+ * overlay). Public writes never persist client-supplied values — the
819
+ * stored contract is authoritative; it is written only by the
820
+ * Blueprints install pipeline.
821
+ *
822
+ */
823
+ blueprint_customization?: {
824
+ [name: string]: any;
825
+ };
762
826
  createdBy?: string;
763
827
  updatedBy?: string | null;
764
828
  /**
@@ -779,6 +843,7 @@ declare namespace Components {
779
843
  showStepperLabels?: boolean | null;
780
844
  stepperType?: "numbers" | "progress bar";
781
845
  hideNextButton?: boolean | null;
846
+ guestVisible?: boolean | null;
782
847
  name: string;
783
848
  stepId?: string;
784
849
  schema: any;
@@ -838,7 +903,7 @@ declare namespace Components {
838
903
  */
839
904
  id?: string; // uuid
840
905
  /**
841
- * Indicates reference type (block or context parameter)
906
+ * Indicates reference type: block, context-parameter, datasource, global or environment (an organization environment variable, by key; ER-5455)
842
907
  */
843
908
  referenceType?: string;
844
909
  /**
@@ -992,6 +1057,17 @@ declare namespace Components {
992
1057
  mode?: "auto" | "local" | "remote" | "none";
993
1058
  supportedRevision?: number;
994
1059
  };
1060
+ /**
1061
+ * Per-journey opt-ins to beta features. One named boolean per feature (no free-form map), so a mistyped key is rejected with 400 and generated client types stay explicit. Additive: a feature is on when its key is true OR the organization-wide PostHog flag for that feature is on.
1062
+ *
1063
+ */
1064
+ betaFeatures?: {
1065
+ /**
1066
+ * Opt this journey into the modern product presentation (product tiles and details modal). Effective when true OR the organization flag `journey-modern-products` is on.
1067
+ *
1068
+ */
1069
+ modernProducts?: boolean;
1070
+ };
995
1071
  };
996
1072
  validationRules?: /**
997
1073
  * References to validation rules organized by blocks and fields.
@@ -1019,6 +1095,17 @@ declare namespace Components {
1019
1095
  * Manifest/Blueprint ID used to create/update the entity
1020
1096
  */
1021
1097
  _manifest?: string /* uuid */[];
1098
+ /**
1099
+ * Blueprint field-locking contract (server-managed). Carries the
1100
+ * author plane (locks, default level) and the org plane (server-derived
1101
+ * overlay). Public writes never persist client-supplied values — the
1102
+ * stored contract is authoritative; it is written only by the
1103
+ * Blueprints install pipeline.
1104
+ *
1105
+ */
1106
+ blueprint_customization?: {
1107
+ [name: string]: any;
1108
+ };
1022
1109
  }
1023
1110
  export interface JourneyEnvironmentResponse {
1024
1111
  items: {
@@ -1037,22 +1124,168 @@ declare namespace Components {
1037
1124
  datasourceId: string;
1038
1125
  code: "not_found" | "unsupported_type" | "not_set" | "invalid_value" | "incompatible_consumer";
1039
1126
  }[];
1127
+ /**
1128
+ * Values read by logic conditions, keyed by variable key.
1129
+ */
1130
+ variables?: {
1131
+ key: string;
1132
+ type: "Text" | "Number" | "Boolean" | "List<Text>" | "List<Number>" | "List<Boolean>";
1133
+ value: string | number | boolean | /**
1134
+ * A list of scalars, served under this service's own `List<Text>`,
1135
+ * `List<Number>` or `List<Boolean>` token (ER-5455). Read by logic
1136
+ * conditions; flattened to `items` by the journey runtime.
1137
+ *
1138
+ */
1139
+ EnvironmentScalarList;
1140
+ }[];
1141
+ /**
1142
+ * Logic-condition keys that did not resolve, keyed by variable key.
1143
+ */
1144
+ variableErrors?: {
1145
+ key: string;
1146
+ code: "not_found" | "unsupported_type" | "not_set" | "invalid_value";
1147
+ }[];
1040
1148
  }
1041
1149
  export interface JourneyEnvironmentVariablesResponse {
1042
1150
  items: {
1043
1151
  key: string;
1044
- type: "Map" | "List<Link>";
1045
- value: EnvironmentMap | /**
1152
+ type: "Text" | "Number" | "Boolean" | "Map" | "List<Link>" | "List<Text>" | "List<Number>" | "List<Boolean>";
1153
+ value: string | number | boolean | EnvironmentMap | /**
1046
1154
  * A list of links, served under this service's own `List<Link>` type
1047
1155
  * token. environments-api types the variable `List` and declares the
1048
1156
  * element type inside the value; journey-api composes the two so a
1049
1157
  * consumer needs only one discriminant.
1050
1158
  *
1051
1159
  */
1052
- EnvironmentLinkList;
1160
+ EnvironmentLinkList | /**
1161
+ * A list of scalars, served under this service's own `List<Text>`,
1162
+ * `List<Number>` or `List<Boolean>` token (ER-5455). Read by logic
1163
+ * conditions; flattened to `items` by the journey runtime.
1164
+ *
1165
+ */
1166
+ EnvironmentScalarList;
1053
1167
  description?: string;
1054
1168
  }[];
1055
1169
  }
1170
+ export interface JourneyExternalValuesRequest {
1171
+ /**
1172
+ * The External Values datasources to resolve. A datasource is named by the id the journey config declares; the app and hook it points at are read from that config, never from this request.
1173
+ */
1174
+ items: [
1175
+ {
1176
+ datasourceId: string;
1177
+ /**
1178
+ * Everything the hook reads, as one named map passed to it as `Context`: the validated value under `input`, plus each configured context binding under the name it was bound as.
1179
+ */
1180
+ context: {
1181
+ [name: string]: any;
1182
+ };
1183
+ },
1184
+ {
1185
+ datasourceId: string;
1186
+ /**
1187
+ * Everything the hook reads, as one named map passed to it as `Context`: the validated value under `input`, plus each configured context binding under the name it was bound as.
1188
+ */
1189
+ context: {
1190
+ [name: string]: any;
1191
+ };
1192
+ }?,
1193
+ {
1194
+ datasourceId: string;
1195
+ /**
1196
+ * Everything the hook reads, as one named map passed to it as `Context`: the validated value under `input`, plus each configured context binding under the name it was bound as.
1197
+ */
1198
+ context: {
1199
+ [name: string]: any;
1200
+ };
1201
+ }?,
1202
+ {
1203
+ datasourceId: string;
1204
+ /**
1205
+ * Everything the hook reads, as one named map passed to it as `Context`: the validated value under `input`, plus each configured context binding under the name it was bound as.
1206
+ */
1207
+ context: {
1208
+ [name: string]: any;
1209
+ };
1210
+ }?,
1211
+ {
1212
+ datasourceId: string;
1213
+ /**
1214
+ * Everything the hook reads, as one named map passed to it as `Context`: the validated value under `input`, plus each configured context binding under the name it was bound as.
1215
+ */
1216
+ context: {
1217
+ [name: string]: any;
1218
+ };
1219
+ }?,
1220
+ {
1221
+ datasourceId: string;
1222
+ /**
1223
+ * Everything the hook reads, as one named map passed to it as `Context`: the validated value under `input`, plus each configured context binding under the name it was bound as.
1224
+ */
1225
+ context: {
1226
+ [name: string]: any;
1227
+ };
1228
+ }?,
1229
+ {
1230
+ datasourceId: string;
1231
+ /**
1232
+ * Everything the hook reads, as one named map passed to it as `Context`: the validated value under `input`, plus each configured context binding under the name it was bound as.
1233
+ */
1234
+ context: {
1235
+ [name: string]: any;
1236
+ };
1237
+ }?,
1238
+ {
1239
+ datasourceId: string;
1240
+ /**
1241
+ * Everything the hook reads, as one named map passed to it as `Context`: the validated value under `input`, plus each configured context binding under the name it was bound as.
1242
+ */
1243
+ context: {
1244
+ [name: string]: any;
1245
+ };
1246
+ }?,
1247
+ {
1248
+ datasourceId: string;
1249
+ /**
1250
+ * Everything the hook reads, as one named map passed to it as `Context`: the validated value under `input`, plus each configured context binding under the name it was bound as.
1251
+ */
1252
+ context: {
1253
+ [name: string]: any;
1254
+ };
1255
+ }?,
1256
+ {
1257
+ datasourceId: string;
1258
+ /**
1259
+ * Everything the hook reads, as one named map passed to it as `Context`: the validated value under `input`, plus each configured context binding under the name it was bound as.
1260
+ */
1261
+ context: {
1262
+ [name: string]: any;
1263
+ };
1264
+ }?
1265
+ ];
1266
+ }
1267
+ export interface JourneyExternalValuesResponse {
1268
+ items: {
1269
+ datasourceId: string;
1270
+ /**
1271
+ * Successfully extracted and coerced results, keyed by `result_id` and narrowed to the results the journey declares.
1272
+ */
1273
+ values: {
1274
+ [name: string]: any;
1275
+ };
1276
+ errors?: ExternalValueError[];
1277
+ policy?: {
1278
+ on_unavailable?: "skip" | "block";
1279
+ };
1280
+ }[];
1281
+ /**
1282
+ * Datasources that produced no result at all.
1283
+ */
1284
+ errors: {
1285
+ datasourceId: string;
1286
+ code: "unknown_datasource" | "resolver_unavailable";
1287
+ }[];
1288
+ }
1056
1289
  export interface JourneyFeatureFlags {
1057
1290
  featureFlags?: {
1058
1291
  [name: string]: any;
@@ -1145,6 +1378,7 @@ declare namespace Components {
1145
1378
  showStepperLabels?: boolean | null;
1146
1379
  stepperType?: "numbers" | "progress bar";
1147
1380
  hideNextButton?: boolean | null;
1381
+ guestVisible?: boolean | null;
1148
1382
  name: string;
1149
1383
  stepId?: string;
1150
1384
  schema: any;
@@ -1204,7 +1438,7 @@ declare namespace Components {
1204
1438
  */
1205
1439
  id?: string; // uuid
1206
1440
  /**
1207
- * Indicates reference type (block or context parameter)
1441
+ * Indicates reference type: block, context-parameter, datasource, global or environment (an organization environment variable, by key; ER-5455)
1208
1442
  */
1209
1443
  referenceType?: string;
1210
1444
  /**
@@ -1367,6 +1601,17 @@ declare namespace Components {
1367
1601
  * If false, third-party cookies are disabled to comply with GDPR regulations without asking for consent.
1368
1602
  */
1369
1603
  thirdPartyCookies?: boolean;
1604
+ /**
1605
+ * Per-journey opt-ins to beta features. One named boolean per feature (no free-form map), so a mistyped key is rejected with 400 and generated client types stay explicit. Additive: a feature is on when its key is true OR the organization-wide PostHog flag for that feature is on.
1606
+ *
1607
+ */
1608
+ betaFeatures?: {
1609
+ /**
1610
+ * Opt this journey into the modern product presentation (product tiles and details modal). Effective when true OR the organization flag `journey-modern-products` is on.
1611
+ *
1612
+ */
1613
+ modernProducts?: boolean;
1614
+ };
1370
1615
  };
1371
1616
  validationRules?: /**
1372
1617
  * References to validation rules organized by blocks and fields.
@@ -1394,6 +1639,17 @@ declare namespace Components {
1394
1639
  * Manifest/Blueprint ID used to create/update the entity
1395
1640
  */
1396
1641
  _manifest?: string /* uuid */[];
1642
+ /**
1643
+ * Blueprint field-locking contract (server-managed). Carries the
1644
+ * author plane (locks, default level) and the org plane (server-derived
1645
+ * overlay). Public writes never persist client-supplied values — the
1646
+ * stored contract is authoritative; it is written only by the
1647
+ * Blueprints install pipeline.
1648
+ *
1649
+ */
1650
+ blueprint_customization?: {
1651
+ [name: string]: any;
1652
+ };
1397
1653
  createdBy?: string;
1398
1654
  updatedBy?: string | null;
1399
1655
  /**
@@ -1453,6 +1709,7 @@ declare namespace Components {
1453
1709
  showStepperLabels?: boolean | null;
1454
1710
  stepperType?: "numbers" | "progress bar";
1455
1711
  hideNextButton?: boolean | null;
1712
+ guestVisible?: boolean | null;
1456
1713
  name: string;
1457
1714
  stepId?: string;
1458
1715
  schema: any;
@@ -1512,7 +1769,7 @@ declare namespace Components {
1512
1769
  */
1513
1770
  id?: string; // uuid
1514
1771
  /**
1515
- * Indicates reference type (block or context parameter)
1772
+ * Indicates reference type: block, context-parameter, datasource, global or environment (an organization environment variable, by key; ER-5455)
1516
1773
  */
1517
1774
  referenceType?: string;
1518
1775
  /**
@@ -1675,6 +1932,17 @@ declare namespace Components {
1675
1932
  * If false, third-party cookies are disabled to comply with GDPR regulations without asking for consent.
1676
1933
  */
1677
1934
  thirdPartyCookies?: boolean;
1935
+ /**
1936
+ * Per-journey opt-ins to beta features. One named boolean per feature (no free-form map), so a mistyped key is rejected with 400 and generated client types stay explicit. Additive: a feature is on when its key is true OR the organization-wide PostHog flag for that feature is on.
1937
+ *
1938
+ */
1939
+ betaFeatures?: {
1940
+ /**
1941
+ * Opt this journey into the modern product presentation (product tiles and details modal). Effective when true OR the organization flag `journey-modern-products` is on.
1942
+ *
1943
+ */
1944
+ modernProducts?: boolean;
1945
+ };
1678
1946
  };
1679
1947
  validationRules?: /**
1680
1948
  * References to validation rules organized by blocks and fields.
@@ -1702,6 +1970,17 @@ declare namespace Components {
1702
1970
  * Manifest/Blueprint ID used to create/update the entity
1703
1971
  */
1704
1972
  _manifest?: string /* uuid */[];
1973
+ /**
1974
+ * Blueprint field-locking contract (server-managed). Carries the
1975
+ * author plane (locks, default level) and the org plane (server-derived
1976
+ * overlay). Public writes never persist client-supplied values — the
1977
+ * stored contract is authoritative; it is written only by the
1978
+ * Blueprints install pipeline.
1979
+ *
1980
+ */
1981
+ blueprint_customization?: {
1982
+ [name: string]: any;
1983
+ };
1705
1984
  createdBy?: string;
1706
1985
  updatedBy?: string | null;
1707
1986
  /**
@@ -2353,6 +2632,7 @@ declare namespace Paths {
2353
2632
  showStepperLabels?: boolean | null;
2354
2633
  stepperType?: "numbers" | "progress bar";
2355
2634
  hideNextButton?: boolean | null;
2635
+ guestVisible?: boolean | null;
2356
2636
  name: string;
2357
2637
  stepId?: string;
2358
2638
  schema: any;
@@ -2412,7 +2692,7 @@ declare namespace Paths {
2412
2692
  */
2413
2693
  id?: string; // uuid
2414
2694
  /**
2415
- * Indicates reference type (block or context parameter)
2695
+ * Indicates reference type: block, context-parameter, datasource, global or environment (an organization environment variable, by key; ER-5455)
2416
2696
  */
2417
2697
  referenceType?: string;
2418
2698
  /**
@@ -2578,6 +2858,17 @@ declare namespace Paths {
2578
2858
  * If false, third-party cookies are disabled to comply with GDPR regulations without asking for consent.
2579
2859
  */
2580
2860
  thirdPartyCookies?: boolean;
2861
+ /**
2862
+ * Per-journey opt-ins to beta features. One named boolean per feature (no free-form map), so a mistyped key is rejected with 400 and generated client types stay explicit. Additive: a feature is on when its key is true OR the organization-wide PostHog flag for that feature is on.
2863
+ *
2864
+ */
2865
+ betaFeatures?: {
2866
+ /**
2867
+ * Opt this journey into the modern product presentation (product tiles and details modal). Effective when true OR the organization flag `journey-modern-products` is on.
2868
+ *
2869
+ */
2870
+ modernProducts?: boolean;
2871
+ };
2581
2872
  };
2582
2873
  validationRules?: /**
2583
2874
  * References to validation rules organized by blocks and fields.
@@ -2605,6 +2896,17 @@ declare namespace Paths {
2605
2896
  * Manifest/Blueprint ID used to create/update the entity
2606
2897
  */
2607
2898
  _manifest?: string /* uuid */[];
2899
+ /**
2900
+ * Blueprint field-locking contract (server-managed). Carries the
2901
+ * author plane (locks, default level) and the org plane (server-derived
2902
+ * overlay). Public writes never persist client-supplied values — the
2903
+ * stored contract is authoritative; it is written only by the
2904
+ * Blueprints install pipeline.
2905
+ *
2906
+ */
2907
+ blueprint_customization?: {
2908
+ [name: string]: any;
2909
+ };
2608
2910
  createdBy?: string;
2609
2911
  updatedBy?: string | null;
2610
2912
  /**
@@ -2787,6 +3089,7 @@ declare namespace Paths {
2787
3089
  showStepperLabels?: boolean | null;
2788
3090
  stepperType?: "numbers" | "progress bar";
2789
3091
  hideNextButton?: boolean | null;
3092
+ guestVisible?: boolean | null;
2790
3093
  name: string;
2791
3094
  stepId?: string;
2792
3095
  schema: any;
@@ -2846,7 +3149,7 @@ declare namespace Paths {
2846
3149
  */
2847
3150
  id?: string; // uuid
2848
3151
  /**
2849
- * Indicates reference type (block or context parameter)
3152
+ * Indicates reference type: block, context-parameter, datasource, global or environment (an organization environment variable, by key; ER-5455)
2850
3153
  */
2851
3154
  referenceType?: string;
2852
3155
  /**
@@ -3003,6 +3306,17 @@ declare namespace Paths {
3003
3306
  mode?: "auto" | "local" | "remote" | "none";
3004
3307
  supportedRevision?: number;
3005
3308
  };
3309
+ /**
3310
+ * Per-journey opt-ins to beta features. One named boolean per feature (no free-form map), so a mistyped key is rejected with 400 and generated client types stay explicit. Additive: a feature is on when its key is true OR the organization-wide PostHog flag for that feature is on.
3311
+ *
3312
+ */
3313
+ betaFeatures?: {
3314
+ /**
3315
+ * Opt this journey into the modern product presentation (product tiles and details modal). Effective when true OR the organization flag `journey-modern-products` is on.
3316
+ *
3317
+ */
3318
+ modernProducts?: boolean;
3319
+ };
3006
3320
  };
3007
3321
  validationRules?: /**
3008
3322
  * References to validation rules organized by blocks and fields.
@@ -3030,6 +3344,17 @@ declare namespace Paths {
3030
3344
  * Manifest/Blueprint ID used to create/update the entity
3031
3345
  */
3032
3346
  _manifest?: string /* uuid */[];
3347
+ /**
3348
+ * Blueprint field-locking contract (server-managed). Carries the
3349
+ * author plane (locks, default level) and the org plane (server-derived
3350
+ * overlay). Public writes never persist client-supplied values — the
3351
+ * stored contract is authoritative; it is written only by the
3352
+ * Blueprints install pipeline.
3353
+ *
3354
+ */
3355
+ blueprint_customization?: {
3356
+ [name: string]: any;
3357
+ };
3033
3358
  }
3034
3359
  }
3035
3360
  }
@@ -3233,6 +3558,22 @@ declare namespace Paths {
3233
3558
  Parameters.Id /* uuid */;
3234
3559
  }
3235
3560
  }
3561
+ namespace ResolveJourneyExternalValues {
3562
+ namespace Parameters {
3563
+ export type Id = string; // uuid
3564
+ }
3565
+ export interface PathParameters {
3566
+ id: Parameters.Id /* uuid */;
3567
+ }
3568
+ export type RequestBody = Components.Schemas.JourneyExternalValuesRequest;
3569
+ namespace Responses {
3570
+ export type $200 = Components.Schemas.JourneyExternalValuesResponse;
3571
+ export interface $400 {
3572
+ }
3573
+ export interface $403 {
3574
+ }
3575
+ }
3576
+ }
3236
3577
  namespace SearchJourneys {
3237
3578
  export type RequestBody = Components.Schemas.SearchJourneysQueryRequest;
3238
3579
  namespace Responses {
@@ -3367,17 +3708,38 @@ interface OperationMethods {
3367
3708
  /**
3368
3709
  * getJourneyEnvironment - getJourneyEnvironment
3369
3710
  *
3370
- * Resolve the environment variables referenced by this journey. Only browser-safe value types are returned.
3711
+ * Resolve the environment variables referenced by this journey: the environment-backed datasources declared in its steps, whether they source a block's options or supply the value an attached validation rule compares against, answered per datasource id; and the variables its logic conditions read, keyed by variable key (`variables` / `variableErrors`). Only browser-safe value types are returned; validation-rule values additionally exclude `Map`. Accepts either the public journey access token bound to this journey, or the caller's own portal (ECP) or epilot user token. A PRIVATE journey is served only to a portal or user token permitted to view it, the same rule getJourney applies.
3371
3712
  */
3372
3713
  'getJourneyEnvironment'(
3373
3714
  parameters?: Parameters<Paths.GetJourneyEnvironment.PathParameters> | null,
3374
3715
  data?: any,
3375
3716
  config?: AxiosRequestConfig
3376
3717
  ): OperationResponse<Paths.GetJourneyEnvironment.Responses.$200>
3718
+ /**
3719
+ * resolveJourneyExternalValues - resolveJourneyExternalValues
3720
+ *
3721
+ * Resolve the External Values hooks this journey's validation rules compare against.
3722
+ *
3723
+ * The journey runtime never calls external-values-api itself. A request names a datasource
3724
+ * id declared by the saved journey config; the app and hook it resolves are read from that
3725
+ * config, so a visitor cannot aim an installed app's integration at an arbitrary hook.
3726
+ *
3727
+ * Requires a portal token: a hook call reaches the organization's third-party system, so it
3728
+ * stays behind the identified-customer boundary. Public journeys skip these conditions.
3729
+ *
3730
+ * Answers 200 whenever the request itself was valid, including when a hook failed — per
3731
+ * datasource, so one unreachable system never fails the rules that did resolve.
3732
+ *
3733
+ */
3734
+ 'resolveJourneyExternalValues'(
3735
+ parameters?: Parameters<Paths.ResolveJourneyExternalValues.PathParameters> | null,
3736
+ data?: Paths.ResolveJourneyExternalValues.RequestBody,
3737
+ config?: AxiosRequestConfig
3738
+ ): OperationResponse<Paths.ResolveJourneyExternalValues.Responses.$200>
3377
3739
  /**
3378
3740
  * getJourneyEnvironmentVariables - getJourneyEnvironmentVariables
3379
3741
  *
3380
- * List the organization's environment variables that a journey block may use as an options source. Only Map variables that currently hold a valid value are returned. Intended for the journey builder's authoring UI; requires a journey authoring token, not an environments token.
3742
+ * List the organization's client-safe environment variables a journey may use: Map and List<Link> as an options source; Text, Number, Boolean and lists of them in logic conditions. Only variables that currently hold a valid value are returned. Intended for the journey builder's authoring UI; requires a journey authoring token, not an environments token.
3381
3743
  */
3382
3744
  'getJourneyEnvironmentVariables'(
3383
3745
  parameters?: Parameters<UnknownParamsObject> | null,
@@ -3641,7 +4003,7 @@ interface PathsDictionary {
3641
4003
  /**
3642
4004
  * getJourneyEnvironment - getJourneyEnvironment
3643
4005
  *
3644
- * Resolve the environment variables referenced by this journey. Only browser-safe value types are returned.
4006
+ * Resolve the environment variables referenced by this journey: the environment-backed datasources declared in its steps, whether they source a block's options or supply the value an attached validation rule compares against, answered per datasource id; and the variables its logic conditions read, keyed by variable key (`variables` / `variableErrors`). Only browser-safe value types are returned; validation-rule values additionally exclude `Map`. Accepts either the public journey access token bound to this journey, or the caller's own portal (ECP) or epilot user token. A PRIVATE journey is served only to a portal or user token permitted to view it, the same rule getJourney applies.
3645
4007
  */
3646
4008
  'get'(
3647
4009
  parameters?: Parameters<Paths.GetJourneyEnvironment.PathParameters> | null,
@@ -3649,11 +4011,34 @@ interface PathsDictionary {
3649
4011
  config?: AxiosRequestConfig
3650
4012
  ): OperationResponse<Paths.GetJourneyEnvironment.Responses.$200>
3651
4013
  }
4014
+ ['/v1/journey/configuration/{id}/external-values']: {
4015
+ /**
4016
+ * resolveJourneyExternalValues - resolveJourneyExternalValues
4017
+ *
4018
+ * Resolve the External Values hooks this journey's validation rules compare against.
4019
+ *
4020
+ * The journey runtime never calls external-values-api itself. A request names a datasource
4021
+ * id declared by the saved journey config; the app and hook it resolves are read from that
4022
+ * config, so a visitor cannot aim an installed app's integration at an arbitrary hook.
4023
+ *
4024
+ * Requires a portal token: a hook call reaches the organization's third-party system, so it
4025
+ * stays behind the identified-customer boundary. Public journeys skip these conditions.
4026
+ *
4027
+ * Answers 200 whenever the request itself was valid, including when a hook failed — per
4028
+ * datasource, so one unreachable system never fails the rules that did resolve.
4029
+ *
4030
+ */
4031
+ 'post'(
4032
+ parameters?: Parameters<Paths.ResolveJourneyExternalValues.PathParameters> | null,
4033
+ data?: Paths.ResolveJourneyExternalValues.RequestBody,
4034
+ config?: AxiosRequestConfig
4035
+ ): OperationResponse<Paths.ResolveJourneyExternalValues.Responses.$200>
4036
+ }
3652
4037
  ['/v1/journey/environment-variables']: {
3653
4038
  /**
3654
4039
  * getJourneyEnvironmentVariables - getJourneyEnvironmentVariables
3655
4040
  *
3656
- * List the organization's environment variables that a journey block may use as an options source. Only Map variables that currently hold a valid value are returned. Intended for the journey builder's authoring UI; requires a journey authoring token, not an environments token.
4041
+ * List the organization's client-safe environment variables a journey may use: Map and List<Link> as an options source; Text, Number, Boolean and lists of them in logic conditions. Only variables that currently hold a valid value are returned. Intended for the journey builder's authoring UI; requires a journey authoring token, not an environments token.
3657
4042
  */
3658
4043
  'get'(
3659
4044
  parameters?: Parameters<UnknownParamsObject> | null,
@@ -3828,6 +4213,8 @@ type EnvironmentLink = Components.Schemas.EnvironmentLink;
3828
4213
  type EnvironmentLinkList = Components.Schemas.EnvironmentLinkList;
3829
4214
  type EnvironmentMap = Components.Schemas.EnvironmentMap;
3830
4215
  type EnvironmentMapEntry = Components.Schemas.EnvironmentMapEntry;
4216
+ type EnvironmentScalarList = Components.Schemas.EnvironmentScalarList;
4217
+ type ExternalValueError = Components.Schemas.ExternalValueError;
3831
4218
  type GenerateDocumentRequest = Components.Schemas.GenerateDocumentRequest;
3832
4219
  type GenerateDocumentResponse = Components.Schemas.GenerateDocumentResponse;
3833
4220
  type GetJourneysResponse = Components.Schemas.GetJourneysResponse;
@@ -3839,6 +4226,8 @@ type JourneyCreationRequest = Components.Schemas.JourneyCreationRequest;
3839
4226
  type JourneyCreationRequestV2 = Components.Schemas.JourneyCreationRequestV2;
3840
4227
  type JourneyEnvironmentResponse = Components.Schemas.JourneyEnvironmentResponse;
3841
4228
  type JourneyEnvironmentVariablesResponse = Components.Schemas.JourneyEnvironmentVariablesResponse;
4229
+ type JourneyExternalValuesRequest = Components.Schemas.JourneyExternalValuesRequest;
4230
+ type JourneyExternalValuesResponse = Components.Schemas.JourneyExternalValuesResponse;
3842
4231
  type JourneyFeatureFlags = Components.Schemas.JourneyFeatureFlags;
3843
4232
  type JourneyProductsResponse = Components.Schemas.JourneyProductsResponse;
3844
4233
  type JourneyPublishState = Components.Schemas.JourneyPublishState;
@@ -3861,4 +4250,4 @@ type SearchJourneysResponse = Components.Schemas.SearchJourneysResponse;
3861
4250
  type TemplateSettings = Components.Schemas.TemplateSettings;
3862
4251
  type ValidationRuleRef = Components.Schemas.ValidationRuleRef;
3863
4252
 
3864
- export { type PatchUpdateJourneyRequest as A, type ButtonOption as B, type Client as C, type PublishResult as D, type EnvironmentLink as E, type PublishRevisionRequest as F, type GenerateDocumentRequest as G, type SearchJourneysQueryRequest as H, type SearchJourneysResponse as I, type Journey as J, type OperationMethods as O, Paths as P, type RuleRef as R, type S3Reference as S, type TemplateSettings as T, type ValidationRuleRef as V, Components as a, type PathsDictionary as b, type EnvironmentLinkList as c, type EnvironmentMap as d, type EnvironmentMapEntry as e, type GenerateDocumentResponse as f, type GetJourneysResponse as g, GetSettingsForJourney as h, type JourneyActivationGuarantee as i, type JourneyAuditInfo as j, type JourneyCreationRequest as k, type JourneyCreationRequestV2 as l, type JourneyEnvironmentResponse as m, type JourneyEnvironmentVariablesResponse as n, type JourneyFeatureFlags as o, type JourneyProductsResponse as p, type JourneyPublishState as q, type JourneyResponse as r, type JourneyRevision as s, type JourneyRevisionConflict as t, type JourneyRevisionList as u, type JourneyRevisionRequest as v, type JourneyRevisionSummary as w, type JourneyServedRevision as x, type JourneyValidationError as y, type JourneyValidationResponse as z };
4253
+ export { type JourneyRevisionSummary as A, type ButtonOption as B, type Client as C, type JourneyServedRevision as D, type EnvironmentLink as E, type JourneyValidationError as F, type GenerateDocumentRequest as G, type JourneyValidationResponse as H, type PatchUpdateJourneyRequest as I, type Journey as J, type PublishResult as K, type PublishRevisionRequest as L, type SearchJourneysQueryRequest as M, type SearchJourneysResponse as N, type OperationMethods as O, Paths as P, type RuleRef as R, type S3Reference as S, type TemplateSettings as T, type ValidationRuleRef as V, Components as a, type PathsDictionary as b, type EnvironmentLinkList as c, type EnvironmentMap as d, type EnvironmentMapEntry as e, type EnvironmentScalarList as f, type ExternalValueError as g, type GenerateDocumentResponse as h, type GetJourneysResponse as i, GetSettingsForJourney as j, type JourneyActivationGuarantee as k, type JourneyAuditInfo as l, type JourneyCreationRequest as m, type JourneyCreationRequestV2 as n, type JourneyEnvironmentResponse as o, type JourneyEnvironmentVariablesResponse as p, type JourneyExternalValuesRequest as q, type JourneyExternalValuesResponse as r, type JourneyFeatureFlags as s, type JourneyProductsResponse as t, type JourneyPublishState as u, type JourneyResponse as v, type JourneyRevision as w, type JourneyRevisionConflict as x, type JourneyRevisionList as y, type JourneyRevisionRequest as z };