@oursprivacy/platform-sdk 1.56.0 → 1.57.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.
Files changed (175) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/client.d.mts +15 -6
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +15 -6
  5. package/client.d.ts.map +1 -1
  6. package/client.js +9 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +9 -0
  9. package/client.mjs.map +1 -1
  10. package/internal/utils/log.d.mts.map +1 -1
  11. package/internal/utils/log.d.ts.map +1 -1
  12. package/internal/utils/log.js.map +1 -1
  13. package/internal/utils/log.mjs.map +1 -1
  14. package/package.json +4 -2
  15. package/resources/consent-settings.d.mts +90 -1
  16. package/resources/consent-settings.d.mts.map +1 -1
  17. package/resources/consent-settings.d.ts +90 -1
  18. package/resources/consent-settings.d.ts.map +1 -1
  19. package/resources/consent-settings.js +13 -0
  20. package/resources/consent-settings.js.map +1 -1
  21. package/resources/consent-settings.mjs +13 -0
  22. package/resources/consent-settings.mjs.map +1 -1
  23. package/resources/custom-domains.d.mts +10 -4
  24. package/resources/custom-domains.d.mts.map +1 -1
  25. package/resources/custom-domains.d.ts +10 -4
  26. package/resources/custom-domains.d.ts.map +1 -1
  27. package/resources/custom-domains.js +3 -2
  28. package/resources/custom-domains.js.map +1 -1
  29. package/resources/custom-domains.mjs +3 -2
  30. package/resources/custom-domains.mjs.map +1 -1
  31. package/resources/dashboards.d.mts +4737 -0
  32. package/resources/dashboards.d.mts.map +1 -0
  33. package/resources/dashboards.d.ts +4737 -0
  34. package/resources/dashboards.d.ts.map +1 -0
  35. package/resources/dashboards.js +124 -0
  36. package/resources/dashboards.js.map +1 -0
  37. package/resources/dashboards.mjs +120 -0
  38. package/resources/dashboards.mjs.map +1 -0
  39. package/resources/data-governance.d.mts +19 -26
  40. package/resources/data-governance.d.mts.map +1 -1
  41. package/resources/data-governance.d.ts +19 -26
  42. package/resources/data-governance.d.ts.map +1 -1
  43. package/resources/data-governance.js +14 -13
  44. package/resources/data-governance.js.map +1 -1
  45. package/resources/data-governance.mjs +14 -13
  46. package/resources/data-governance.mjs.map +1 -1
  47. package/resources/destinations.d.mts +7 -7
  48. package/resources/destinations.d.mts.map +1 -1
  49. package/resources/destinations.d.ts +7 -7
  50. package/resources/destinations.d.ts.map +1 -1
  51. package/resources/experiment-settings.d.mts +84 -24
  52. package/resources/experiment-settings.d.mts.map +1 -1
  53. package/resources/experiment-settings.d.ts +84 -24
  54. package/resources/experiment-settings.d.ts.map +1 -1
  55. package/resources/experiment-settings.js +9 -4
  56. package/resources/experiment-settings.js.map +1 -1
  57. package/resources/experiment-settings.mjs +9 -4
  58. package/resources/experiment-settings.mjs.map +1 -1
  59. package/resources/funnels.d.mts +64 -7
  60. package/resources/funnels.d.mts.map +1 -1
  61. package/resources/funnels.d.ts +64 -7
  62. package/resources/funnels.d.ts.map +1 -1
  63. package/resources/funnels.js +2 -1
  64. package/resources/funnels.js.map +1 -1
  65. package/resources/funnels.mjs +2 -1
  66. package/resources/funnels.mjs.map +1 -1
  67. package/resources/index.d.mts +6 -3
  68. package/resources/index.d.mts.map +1 -1
  69. package/resources/index.d.ts +6 -3
  70. package/resources/index.d.ts.map +1 -1
  71. package/resources/index.js +7 -1
  72. package/resources/index.js.map +1 -1
  73. package/resources/index.mjs +3 -0
  74. package/resources/index.mjs.map +1 -1
  75. package/resources/insights.d.mts +1152 -0
  76. package/resources/insights.d.mts.map +1 -0
  77. package/resources/insights.d.ts +1152 -0
  78. package/resources/insights.d.ts.map +1 -0
  79. package/resources/insights.js +81 -0
  80. package/resources/insights.js.map +1 -0
  81. package/resources/insights.mjs +77 -0
  82. package/resources/insights.mjs.map +1 -0
  83. package/resources/journey-flows.d.mts +214 -17
  84. package/resources/journey-flows.d.mts.map +1 -1
  85. package/resources/journey-flows.d.ts +214 -17
  86. package/resources/journey-flows.d.ts.map +1 -1
  87. package/resources/journey-flows.js +17 -13
  88. package/resources/journey-flows.js.map +1 -1
  89. package/resources/journey-flows.mjs +17 -13
  90. package/resources/journey-flows.mjs.map +1 -1
  91. package/resources/replay-settings.d.mts +3 -2
  92. package/resources/replay-settings.d.mts.map +1 -1
  93. package/resources/replay-settings.d.ts +3 -2
  94. package/resources/replay-settings.d.ts.map +1 -1
  95. package/resources/replay-settings.js +3 -2
  96. package/resources/replay-settings.js.map +1 -1
  97. package/resources/replay-settings.mjs +3 -2
  98. package/resources/replay-settings.mjs.map +1 -1
  99. package/resources/report-branding.d.mts +157 -0
  100. package/resources/report-branding.d.mts.map +1 -0
  101. package/resources/report-branding.d.ts +157 -0
  102. package/resources/report-branding.d.ts.map +1 -0
  103. package/resources/report-branding.js +39 -0
  104. package/resources/report-branding.js.map +1 -0
  105. package/resources/report-branding.mjs +35 -0
  106. package/resources/report-branding.mjs.map +1 -0
  107. package/resources/tag-manager-triggers.d.mts +46 -4
  108. package/resources/tag-manager-triggers.d.mts.map +1 -1
  109. package/resources/tag-manager-triggers.d.ts +46 -4
  110. package/resources/tag-manager-triggers.d.ts.map +1 -1
  111. package/resources/tag-manager-triggers.js +6 -4
  112. package/resources/tag-manager-triggers.js.map +1 -1
  113. package/resources/tag-manager-triggers.mjs +6 -4
  114. package/resources/tag-manager-triggers.mjs.map +1 -1
  115. package/resources/tag-manager-variables.d.mts +25 -13
  116. package/resources/tag-manager-variables.d.mts.map +1 -1
  117. package/resources/tag-manager-variables.d.ts +25 -13
  118. package/resources/tag-manager-variables.d.ts.map +1 -1
  119. package/resources/tag-manager-variables.js +9 -4
  120. package/resources/tag-manager-variables.js.map +1 -1
  121. package/resources/tag-manager-variables.mjs +9 -4
  122. package/resources/tag-manager-variables.mjs.map +1 -1
  123. package/resources/tag-managers.d.mts +17 -1
  124. package/resources/tag-managers.d.mts.map +1 -1
  125. package/resources/tag-managers.d.ts +17 -1
  126. package/resources/tag-managers.d.ts.map +1 -1
  127. package/resources/tag-managers.js +10 -0
  128. package/resources/tag-managers.js.map +1 -1
  129. package/resources/tag-managers.mjs +10 -0
  130. package/resources/tag-managers.mjs.map +1 -1
  131. package/resources/test-events.d.mts +18 -13
  132. package/resources/test-events.d.mts.map +1 -1
  133. package/resources/test-events.d.ts +18 -13
  134. package/resources/test-events.d.ts.map +1 -1
  135. package/resources/web-analytics.d.mts +91 -39
  136. package/resources/web-analytics.d.mts.map +1 -1
  137. package/resources/web-analytics.d.ts +91 -39
  138. package/resources/web-analytics.d.ts.map +1 -1
  139. package/resources/web-analytics.js +11 -0
  140. package/resources/web-analytics.js.map +1 -1
  141. package/resources/web-analytics.mjs +11 -0
  142. package/resources/web-analytics.mjs.map +1 -1
  143. package/resources/web-scanners.d.mts +3 -2
  144. package/resources/web-scanners.d.mts.map +1 -1
  145. package/resources/web-scanners.d.ts +3 -2
  146. package/resources/web-scanners.d.ts.map +1 -1
  147. package/resources/web-scanners.js +3 -2
  148. package/resources/web-scanners.js.map +1 -1
  149. package/resources/web-scanners.mjs +3 -2
  150. package/resources/web-scanners.mjs.map +1 -1
  151. package/src/client.ts +118 -3
  152. package/src/internal/utils/log.ts +1 -3
  153. package/src/resources/consent-settings.ts +117 -0
  154. package/src/resources/custom-domains.ts +14 -4
  155. package/src/resources/dashboards.ts +8757 -0
  156. package/src/resources/data-governance.ts +19 -26
  157. package/src/resources/destinations.ts +9 -2
  158. package/src/resources/experiment-settings.ts +84 -24
  159. package/src/resources/funnels.ts +64 -7
  160. package/src/resources/index.ts +54 -0
  161. package/src/resources/insights.ts +1976 -0
  162. package/src/resources/journey-flows.ts +214 -17
  163. package/src/resources/replay-settings.ts +3 -2
  164. package/src/resources/report-branding.ts +207 -0
  165. package/src/resources/tag-manager-triggers.ts +55 -4
  166. package/src/resources/tag-manager-variables.ts +25 -13
  167. package/src/resources/tag-managers.ts +21 -0
  168. package/src/resources/test-events.ts +18 -13
  169. package/src/resources/web-analytics.ts +137 -38
  170. package/src/resources/web-scanners.ts +3 -2
  171. package/src/version.ts +1 -1
  172. package/version.d.mts +1 -1
  173. package/version.d.ts +1 -1
  174. package/version.js +1 -1
  175. package/version.mjs +1 -1
@@ -23,10 +23,10 @@ export class JourneyFlows extends APIResource {
23
23
  }
24
24
 
25
25
  /**
26
- * Save a validated Journey Flow configuration. Source ownership, UTC scope,
27
- * bounded entry dates, and compiler-supported semantics are enforced by the
28
- * GraphQL domain path. Requires API-key scope or current OAuth user permission:
29
- * web-analytics:write
26
+ * Save a validated Journey Flow configuration. Source ownership, UTC dates, and
27
+ * supported journey settings are validated before saving. Reports selecting
28
+ * specific sources also require source:view permission. Requires API-key scope or
29
+ * current OAuth user permission: web-analytics:write
30
30
  */
31
31
  create(body: JourneyFlowCreateParams, options?: RequestOptions): APIPromise<JourneyFlowCreateResponse> {
32
32
  return this._client.post('/rest/v1/journey-flows', { body, ...options });
@@ -44,8 +44,9 @@ export class JourneyFlows extends APIResource {
44
44
  /**
45
45
  * Partially update a Journey Flow using expectedRevision for optimistic
46
46
  * concurrency. Omitted top-level fields remain unchanged; nested values replace
47
- * the complete nested value. Requires API-key scope or current OAuth user
48
- * permission: web-analytics:write
47
+ * the complete nested value. Reports selecting specific sources also require
48
+ * source:view permission. Requires API-key scope or current OAuth user permission:
49
+ * web-analytics:write
49
50
  */
50
51
  update(
51
52
  id: string,
@@ -82,9 +83,11 @@ export class JourneyFlows extends APIResource {
82
83
  }
83
84
 
84
85
  /**
85
- * Compute a saved Journey Flow result on demand. Requires expectedRevision and
86
- * permits an optional complete report context override. Requires API-key scope or
87
- * current OAuth user permission: web-analytics:view
86
+ * Compute a saved Journey Flow result. Pass refresh=true to recompute instead of
87
+ * serving a cached result for identical inputs. Requires expectedRevision and
88
+ * permits an optional complete report context override. Reports selecting specific
89
+ * sources also require source:view permission. Requires API-key scope or current
90
+ * OAuth user permission: web-analytics:view
88
91
  */
89
92
  results(
90
93
  id: string,
@@ -98,8 +101,9 @@ export class JourneyFlows extends APIResource {
98
101
  * Export the saved Journey Flow as CSV with its effective scope, exact aggregate
99
102
  * counts, timing, graph and bounded Top Paths. Requires expectedRevision; display
100
103
  * limits and omitted path weight are included. The response contains the CSV
101
- * content and filename. Visitor and session samples are not included. Requires
102
- * API-key scope or current OAuth user permission: web-analytics:view
104
+ * content and filename. Visitor and session samples are not included. Reports
105
+ * selecting specific sources also require source:view permission. Requires API-key
106
+ * scope or current OAuth user permission: web-analytics:view
103
107
  */
104
108
  export(
105
109
  id: string,
@@ -112,8 +116,8 @@ export class JourneyFlows extends APIResource {
112
116
  /**
113
117
  * Compute a bounded preview from a serialized Journey Flow definition, report
114
118
  * context, and view. Use GraphQL when the serialized input exceeds the HTTP URL
115
- * budget. Requires API-key scope or current OAuth user permission:
116
- * web-analytics:view
119
+ * budget. Reports selecting specific sources also require source:view permission.
120
+ * Requires API-key scope or current OAuth user permission: web-analytics:view
117
121
  */
118
122
  preview(query: JourneyFlowPreviewParams, options?: RequestOptions): APIPromise<JourneyFlowPreviewResponse> {
119
123
  return this._client.get('/rest/v1/journey-flows/preview', { query, ...options });
@@ -129,10 +133,18 @@ export interface JourneyFlowListResponse {
129
133
 
130
134
  createdByUserId: string;
131
135
 
136
+ /**
137
+ * Version 1 Journey Flow definition with anchors, event or page matchers,
138
+ * counting, scope, and exploration settings. Selecting specific sourceIds also
139
+ * requires source:view permission.
140
+ */
132
141
  definition: JourneyFlowListResponse.Definition;
133
142
 
134
143
  name: string;
135
144
 
145
+ /**
146
+ * Complete UTC date range and comparisons for this Journey Flow.
147
+ */
136
148
  reportContext: JourneyFlowListResponse.ReportContext;
137
149
 
138
150
  revision: string;
@@ -141,12 +153,24 @@ export interface JourneyFlowListResponse {
141
153
 
142
154
  updatedByUserId: string;
143
155
 
156
+ /**
157
+ * Complete visualization settings. Supplied view replaces the saved value on
158
+ * PATCH.
159
+ */
144
160
  view: JourneyFlowListResponse.View;
145
161
 
162
+ /**
163
+ * Optional description; null clears it.
164
+ */
146
165
  description?: string | null;
147
166
  }
148
167
 
149
168
  export namespace JourneyFlowListResponse {
169
+ /**
170
+ * Version 1 Journey Flow definition with anchors, event or page matchers,
171
+ * counting, scope, and exploration settings. Selecting specific sourceIds also
172
+ * requires source:view permission.
173
+ */
150
174
  export interface Definition {
151
175
  anchors: Array<Definition.Anchor>;
152
176
 
@@ -1176,6 +1200,9 @@ export namespace JourneyFlowListResponse {
1176
1200
  }
1177
1201
  }
1178
1202
 
1203
+ /**
1204
+ * Complete UTC date range and comparisons for this Journey Flow.
1205
+ */
1179
1206
  export interface ReportContext {
1180
1207
  dateRange: ReportContext.DateRange;
1181
1208
 
@@ -1316,6 +1343,10 @@ export namespace JourneyFlowListResponse {
1316
1343
  }
1317
1344
  }
1318
1345
 
1346
+ /**
1347
+ * Complete visualization settings. Supplied view replaces the saved value on
1348
+ * PATCH.
1349
+ */
1319
1350
  export interface View {
1320
1351
  showDropOff?: boolean;
1321
1352
 
@@ -1336,10 +1367,18 @@ export interface JourneyFlowCreateResponse {
1336
1367
 
1337
1368
  createdByUserId: string;
1338
1369
 
1370
+ /**
1371
+ * Version 1 Journey Flow definition with anchors, event or page matchers,
1372
+ * counting, scope, and exploration settings. Selecting specific sourceIds also
1373
+ * requires source:view permission.
1374
+ */
1339
1375
  definition: JourneyFlowCreateResponse.Definition;
1340
1376
 
1341
1377
  name: string;
1342
1378
 
1379
+ /**
1380
+ * Complete UTC date range and comparisons for this Journey Flow.
1381
+ */
1343
1382
  reportContext: JourneyFlowCreateResponse.ReportContext;
1344
1383
 
1345
1384
  revision: string;
@@ -1348,12 +1387,24 @@ export interface JourneyFlowCreateResponse {
1348
1387
 
1349
1388
  updatedByUserId: string;
1350
1389
 
1390
+ /**
1391
+ * Complete visualization settings. Supplied view replaces the saved value on
1392
+ * PATCH.
1393
+ */
1351
1394
  view: JourneyFlowCreateResponse.View;
1352
1395
 
1396
+ /**
1397
+ * Optional description; null clears it.
1398
+ */
1353
1399
  description?: string | null;
1354
1400
  }
1355
1401
 
1356
1402
  export namespace JourneyFlowCreateResponse {
1403
+ /**
1404
+ * Version 1 Journey Flow definition with anchors, event or page matchers,
1405
+ * counting, scope, and exploration settings. Selecting specific sourceIds also
1406
+ * requires source:view permission.
1407
+ */
1357
1408
  export interface Definition {
1358
1409
  anchors: Array<Definition.Anchor>;
1359
1410
 
@@ -2383,6 +2434,9 @@ export namespace JourneyFlowCreateResponse {
2383
2434
  }
2384
2435
  }
2385
2436
 
2437
+ /**
2438
+ * Complete UTC date range and comparisons for this Journey Flow.
2439
+ */
2386
2440
  export interface ReportContext {
2387
2441
  dateRange: ReportContext.DateRange;
2388
2442
 
@@ -2523,6 +2577,10 @@ export namespace JourneyFlowCreateResponse {
2523
2577
  }
2524
2578
  }
2525
2579
 
2580
+ /**
2581
+ * Complete visualization settings. Supplied view replaces the saved value on
2582
+ * PATCH.
2583
+ */
2526
2584
  export interface View {
2527
2585
  showDropOff?: boolean;
2528
2586
 
@@ -2543,10 +2601,18 @@ export interface JourneyFlowRetrieveResponse {
2543
2601
 
2544
2602
  createdByUserId: string;
2545
2603
 
2604
+ /**
2605
+ * Version 1 Journey Flow definition with anchors, event or page matchers,
2606
+ * counting, scope, and exploration settings. Selecting specific sourceIds also
2607
+ * requires source:view permission.
2608
+ */
2546
2609
  definition: JourneyFlowRetrieveResponse.Definition;
2547
2610
 
2548
2611
  name: string;
2549
2612
 
2613
+ /**
2614
+ * Complete UTC date range and comparisons for this Journey Flow.
2615
+ */
2550
2616
  reportContext: JourneyFlowRetrieveResponse.ReportContext;
2551
2617
 
2552
2618
  revision: string;
@@ -2555,12 +2621,24 @@ export interface JourneyFlowRetrieveResponse {
2555
2621
 
2556
2622
  updatedByUserId: string;
2557
2623
 
2624
+ /**
2625
+ * Complete visualization settings. Supplied view replaces the saved value on
2626
+ * PATCH.
2627
+ */
2558
2628
  view: JourneyFlowRetrieveResponse.View;
2559
2629
 
2630
+ /**
2631
+ * Optional description; null clears it.
2632
+ */
2560
2633
  description?: string | null;
2561
2634
  }
2562
2635
 
2563
2636
  export namespace JourneyFlowRetrieveResponse {
2637
+ /**
2638
+ * Version 1 Journey Flow definition with anchors, event or page matchers,
2639
+ * counting, scope, and exploration settings. Selecting specific sourceIds also
2640
+ * requires source:view permission.
2641
+ */
2564
2642
  export interface Definition {
2565
2643
  anchors: Array<Definition.Anchor>;
2566
2644
 
@@ -3590,6 +3668,9 @@ export namespace JourneyFlowRetrieveResponse {
3590
3668
  }
3591
3669
  }
3592
3670
 
3671
+ /**
3672
+ * Complete UTC date range and comparisons for this Journey Flow.
3673
+ */
3593
3674
  export interface ReportContext {
3594
3675
  dateRange: ReportContext.DateRange;
3595
3676
 
@@ -3730,6 +3811,10 @@ export namespace JourneyFlowRetrieveResponse {
3730
3811
  }
3731
3812
  }
3732
3813
 
3814
+ /**
3815
+ * Complete visualization settings. Supplied view replaces the saved value on
3816
+ * PATCH.
3817
+ */
3733
3818
  export interface View {
3734
3819
  showDropOff?: boolean;
3735
3820
 
@@ -3750,10 +3835,18 @@ export interface JourneyFlowUpdateResponse {
3750
3835
 
3751
3836
  createdByUserId: string;
3752
3837
 
3838
+ /**
3839
+ * Version 1 Journey Flow definition with anchors, event or page matchers,
3840
+ * counting, scope, and exploration settings. Selecting specific sourceIds also
3841
+ * requires source:view permission.
3842
+ */
3753
3843
  definition: JourneyFlowUpdateResponse.Definition;
3754
3844
 
3755
3845
  name: string;
3756
3846
 
3847
+ /**
3848
+ * Complete UTC date range and comparisons for this Journey Flow.
3849
+ */
3757
3850
  reportContext: JourneyFlowUpdateResponse.ReportContext;
3758
3851
 
3759
3852
  revision: string;
@@ -3762,12 +3855,24 @@ export interface JourneyFlowUpdateResponse {
3762
3855
 
3763
3856
  updatedByUserId: string;
3764
3857
 
3858
+ /**
3859
+ * Complete visualization settings. Supplied view replaces the saved value on
3860
+ * PATCH.
3861
+ */
3765
3862
  view: JourneyFlowUpdateResponse.View;
3766
3863
 
3864
+ /**
3865
+ * Optional description; null clears it.
3866
+ */
3767
3867
  description?: string | null;
3768
3868
  }
3769
3869
 
3770
3870
  export namespace JourneyFlowUpdateResponse {
3871
+ /**
3872
+ * Version 1 Journey Flow definition with anchors, event or page matchers,
3873
+ * counting, scope, and exploration settings. Selecting specific sourceIds also
3874
+ * requires source:view permission.
3875
+ */
3771
3876
  export interface Definition {
3772
3877
  anchors: Array<Definition.Anchor>;
3773
3878
 
@@ -4797,6 +4902,9 @@ export namespace JourneyFlowUpdateResponse {
4797
4902
  }
4798
4903
  }
4799
4904
 
4905
+ /**
4906
+ * Complete UTC date range and comparisons for this Journey Flow.
4907
+ */
4800
4908
  export interface ReportContext {
4801
4909
  dateRange: ReportContext.DateRange;
4802
4910
 
@@ -4937,6 +5045,10 @@ export namespace JourneyFlowUpdateResponse {
4937
5045
  }
4938
5046
  }
4939
5047
 
5048
+ /**
5049
+ * Complete visualization settings. Supplied view replaces the saved value on
5050
+ * PATCH.
5051
+ */
4940
5052
  export interface View {
4941
5053
  showDropOff?: boolean;
4942
5054
 
@@ -7005,22 +7117,48 @@ export namespace JourneyFlowPreviewResponse {
7005
7117
  }
7006
7118
 
7007
7119
  export interface JourneyFlowListParams extends CursorParams {
7120
+ /**
7121
+ * Case-insensitive search in the name and description.
7122
+ */
7008
7123
  search?: string;
7009
7124
  }
7010
7125
 
7011
7126
  export interface JourneyFlowCreateParams {
7127
+ /**
7128
+ * Version 1 Journey Flow definition with anchors, event or page matchers,
7129
+ * counting, scope, and exploration settings. Selecting specific sourceIds also
7130
+ * requires source:view permission.
7131
+ */
7012
7132
  definition: JourneyFlowCreateParams.Definition;
7013
7133
 
7134
+ /**
7135
+ * Display name for the saved Journey Flow.
7136
+ */
7014
7137
  name: string;
7015
7138
 
7139
+ /**
7140
+ * Complete UTC date range and comparisons for this Journey Flow.
7141
+ */
7016
7142
  reportContext: JourneyFlowCreateParams.ReportContext;
7017
7143
 
7144
+ /**
7145
+ * Complete visualization settings. Supplied view replaces the saved value on
7146
+ * PATCH.
7147
+ */
7018
7148
  view: JourneyFlowCreateParams.View;
7019
7149
 
7150
+ /**
7151
+ * Optional description; null clears it.
7152
+ */
7020
7153
  description?: string | null;
7021
7154
  }
7022
7155
 
7023
7156
  export namespace JourneyFlowCreateParams {
7157
+ /**
7158
+ * Version 1 Journey Flow definition with anchors, event or page matchers,
7159
+ * counting, scope, and exploration settings. Selecting specific sourceIds also
7160
+ * requires source:view permission.
7161
+ */
7024
7162
  export interface Definition {
7025
7163
  anchors: Array<Definition.Anchor>;
7026
7164
 
@@ -8050,6 +8188,9 @@ export namespace JourneyFlowCreateParams {
8050
8188
  }
8051
8189
  }
8052
8190
 
8191
+ /**
8192
+ * Complete UTC date range and comparisons for this Journey Flow.
8193
+ */
8053
8194
  export interface ReportContext {
8054
8195
  dateRange: ReportContext.DateRange;
8055
8196
 
@@ -8190,6 +8331,10 @@ export namespace JourneyFlowCreateParams {
8190
8331
  }
8191
8332
  }
8192
8333
 
8334
+ /**
8335
+ * Complete visualization settings. Supplied view replaces the saved value on
8336
+ * PATCH.
8337
+ */
8193
8338
  export interface View {
8194
8339
  showDropOff?: boolean;
8195
8340
 
@@ -8204,20 +8349,47 @@ export namespace JourneyFlowCreateParams {
8204
8349
  }
8205
8350
 
8206
8351
  export interface JourneyFlowUpdateParams {
8352
+ /**
8353
+ * Revision returned by get/list or the last write. A stale revision returns 409;
8354
+ * reload before retrying.
8355
+ */
8207
8356
  expectedRevision: string;
8208
8357
 
8358
+ /**
8359
+ * Version 1 Journey Flow definition with anchors, event or page matchers,
8360
+ * counting, scope, and exploration settings. Selecting specific sourceIds also
8361
+ * requires source:view permission.
8362
+ */
8209
8363
  definition?: JourneyFlowUpdateParams.Definition;
8210
8364
 
8365
+ /**
8366
+ * Optional description; null clears it.
8367
+ */
8211
8368
  description?: string | null;
8212
8369
 
8370
+ /**
8371
+ * Display name for the saved Journey Flow.
8372
+ */
8213
8373
  name?: string;
8214
8374
 
8375
+ /**
8376
+ * Complete UTC date range and comparisons for this Journey Flow.
8377
+ */
8215
8378
  reportContext?: JourneyFlowUpdateParams.ReportContext;
8216
8379
 
8380
+ /**
8381
+ * Complete visualization settings. Supplied view replaces the saved value on
8382
+ * PATCH.
8383
+ */
8217
8384
  view?: JourneyFlowUpdateParams.View;
8218
8385
  }
8219
8386
 
8220
8387
  export namespace JourneyFlowUpdateParams {
8388
+ /**
8389
+ * Version 1 Journey Flow definition with anchors, event or page matchers,
8390
+ * counting, scope, and exploration settings. Selecting specific sourceIds also
8391
+ * requires source:view permission.
8392
+ */
8221
8393
  export interface Definition {
8222
8394
  anchors: Array<Definition.Anchor>;
8223
8395
 
@@ -9247,6 +9419,9 @@ export namespace JourneyFlowUpdateParams {
9247
9419
  }
9248
9420
  }
9249
9421
 
9422
+ /**
9423
+ * Complete UTC date range and comparisons for this Journey Flow.
9424
+ */
9250
9425
  export interface ReportContext {
9251
9426
  dateRange: ReportContext.DateRange;
9252
9427
 
@@ -9387,6 +9562,10 @@ export namespace JourneyFlowUpdateParams {
9387
9562
  }
9388
9563
  }
9389
9564
 
9565
+ /**
9566
+ * Complete visualization settings. Supplied view replaces the saved value on
9567
+ * PATCH.
9568
+ */
9390
9569
  export interface View {
9391
9570
  showDropOff?: boolean;
9392
9571
 
@@ -9401,35 +9580,53 @@ export namespace JourneyFlowUpdateParams {
9401
9580
  }
9402
9581
 
9403
9582
  export interface JourneyFlowDeleteParams {
9583
+ /**
9584
+ * Revision returned by get/list or the last write. A stale revision returns 409;
9585
+ * reload before retrying.
9586
+ */
9404
9587
  expectedRevision: string;
9405
9588
  }
9406
9589
 
9407
9590
  export interface JourneyFlowResultsParams {
9591
+ /**
9592
+ * Revision returned by get/list or the last write. A stale revision returns 409;
9593
+ * reload before retrying.
9594
+ */
9408
9595
  expectedRevision: string;
9409
9596
 
9597
+ /**
9598
+ * Recompute instead of serving a cached result for identical inputs.
9599
+ */
9410
9600
  refresh?: boolean;
9411
9601
 
9412
9602
  /**
9413
- * Optional JSON-encoded complete report context override.
9603
+ * Complete report context override; JSON-encoded in the REST query string.
9414
9604
  */
9415
9605
  reportContextOverride?: string;
9416
9606
  }
9417
9607
 
9418
9608
  export interface JourneyFlowExportParams {
9609
+ /**
9610
+ * Revision returned by get/list or the last write. A stale revision returns 409;
9611
+ * reload before retrying.
9612
+ */
9419
9613
  expectedRevision: string;
9420
9614
 
9615
+ /**
9616
+ * Recompute instead of serving a cached result for identical inputs.
9617
+ */
9421
9618
  refresh?: boolean;
9422
9619
 
9423
9620
  /**
9424
- * Optional JSON-encoded complete report context override.
9621
+ * Complete report context override; JSON-encoded in the REST query string.
9425
9622
  */
9426
9623
  reportContextOverride?: string;
9427
9624
  }
9428
9625
 
9429
9626
  export interface JourneyFlowPreviewParams {
9430
9627
  /**
9431
- * JSON-encoded Journey Flow preview input. Use GraphQL when this exceeds the URL
9432
- * budget.
9628
+ * Object with required definition, reportContext, and view, plus optional refresh.
9629
+ * JSON-encode input in the REST query string; maximum 16384 bytes.
9433
9630
  */
9434
9631
  input: string;
9435
9632
  }
@@ -62,8 +62,9 @@ export class ReplaySettings extends APIResource {
62
62
 
63
63
  /**
64
64
  * Delete the replay configuration from the draft. Publish with `POST /versions`
65
- * for capture to stop on all whitelisted domains. Requires API-key scope or
66
- * current OAuth user permission: replaySettings:delete
65
+ * for capture to stop on all whitelisted domains. Returns the same HTTP 404 when
66
+ * the configuration is missing or inaccessible. Requires API-key scope or current
67
+ * OAuth user permission: replaySettings:delete
67
68
  */
68
69
  delete(id: string, options?: RequestOptions): APIPromise<ReplaySettingDeleteResponse> {
69
70
  return this._client.delete(path`/rest/v1/replay-settings/${id}`, options);