@oursprivacy/platform-sdk 1.55.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.
- package/CHANGELOG.md +14 -0
- package/client.d.mts +15 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +15 -6
- package/client.d.ts.map +1 -1
- package/client.js +9 -0
- package/client.js.map +1 -1
- package/client.mjs +9 -0
- package/client.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs.map +1 -1
- package/package.json +4 -2
- package/resources/consent-settings.d.mts +90 -1
- package/resources/consent-settings.d.mts.map +1 -1
- package/resources/consent-settings.d.ts +90 -1
- package/resources/consent-settings.d.ts.map +1 -1
- package/resources/consent-settings.js +13 -0
- package/resources/consent-settings.js.map +1 -1
- package/resources/consent-settings.mjs +13 -0
- package/resources/consent-settings.mjs.map +1 -1
- package/resources/custom-domains.d.mts +10 -4
- package/resources/custom-domains.d.mts.map +1 -1
- package/resources/custom-domains.d.ts +10 -4
- package/resources/custom-domains.d.ts.map +1 -1
- package/resources/custom-domains.js +3 -2
- package/resources/custom-domains.js.map +1 -1
- package/resources/custom-domains.mjs +3 -2
- package/resources/custom-domains.mjs.map +1 -1
- package/resources/dashboards.d.mts +4737 -0
- package/resources/dashboards.d.mts.map +1 -0
- package/resources/dashboards.d.ts +4737 -0
- package/resources/dashboards.d.ts.map +1 -0
- package/resources/dashboards.js +124 -0
- package/resources/dashboards.js.map +1 -0
- package/resources/dashboards.mjs +120 -0
- package/resources/dashboards.mjs.map +1 -0
- package/resources/data-governance.d.mts +19 -26
- package/resources/data-governance.d.mts.map +1 -1
- package/resources/data-governance.d.ts +19 -26
- package/resources/data-governance.d.ts.map +1 -1
- package/resources/data-governance.js +14 -13
- package/resources/data-governance.js.map +1 -1
- package/resources/data-governance.mjs +14 -13
- package/resources/data-governance.mjs.map +1 -1
- package/resources/destinations.d.mts +46 -11
- package/resources/destinations.d.mts.map +1 -1
- package/resources/destinations.d.ts +46 -11
- package/resources/destinations.d.ts.map +1 -1
- package/resources/experiment-settings.d.mts +84 -24
- package/resources/experiment-settings.d.mts.map +1 -1
- package/resources/experiment-settings.d.ts +84 -24
- package/resources/experiment-settings.d.ts.map +1 -1
- package/resources/experiment-settings.js +9 -4
- package/resources/experiment-settings.js.map +1 -1
- package/resources/experiment-settings.mjs +9 -4
- package/resources/experiment-settings.mjs.map +1 -1
- package/resources/funnels.d.mts +64 -7
- package/resources/funnels.d.mts.map +1 -1
- package/resources/funnels.d.ts +64 -7
- package/resources/funnels.d.ts.map +1 -1
- package/resources/funnels.js +2 -1
- package/resources/funnels.js.map +1 -1
- package/resources/funnels.mjs +2 -1
- package/resources/funnels.mjs.map +1 -1
- package/resources/index.d.mts +6 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +6 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -0
- package/resources/index.mjs.map +1 -1
- package/resources/insights.d.mts +1152 -0
- package/resources/insights.d.mts.map +1 -0
- package/resources/insights.d.ts +1152 -0
- package/resources/insights.d.ts.map +1 -0
- package/resources/insights.js +81 -0
- package/resources/insights.js.map +1 -0
- package/resources/insights.mjs +77 -0
- package/resources/insights.mjs.map +1 -0
- package/resources/journey-flows.d.mts +214 -17
- package/resources/journey-flows.d.mts.map +1 -1
- package/resources/journey-flows.d.ts +214 -17
- package/resources/journey-flows.d.ts.map +1 -1
- package/resources/journey-flows.js +17 -13
- package/resources/journey-flows.js.map +1 -1
- package/resources/journey-flows.mjs +17 -13
- package/resources/journey-flows.mjs.map +1 -1
- package/resources/replay-settings.d.mts +72 -42
- package/resources/replay-settings.d.mts.map +1 -1
- package/resources/replay-settings.d.ts +72 -42
- package/resources/replay-settings.d.ts.map +1 -1
- package/resources/replay-settings.js +12 -7
- package/resources/replay-settings.js.map +1 -1
- package/resources/replay-settings.mjs +12 -7
- package/resources/replay-settings.mjs.map +1 -1
- package/resources/report-branding.d.mts +157 -0
- package/resources/report-branding.d.mts.map +1 -0
- package/resources/report-branding.d.ts +157 -0
- package/resources/report-branding.d.ts.map +1 -0
- package/resources/report-branding.js +39 -0
- package/resources/report-branding.js.map +1 -0
- package/resources/report-branding.mjs +35 -0
- package/resources/report-branding.mjs.map +1 -0
- package/resources/tag-manager-triggers.d.mts +46 -4
- package/resources/tag-manager-triggers.d.mts.map +1 -1
- package/resources/tag-manager-triggers.d.ts +46 -4
- package/resources/tag-manager-triggers.d.ts.map +1 -1
- package/resources/tag-manager-triggers.js +6 -4
- package/resources/tag-manager-triggers.js.map +1 -1
- package/resources/tag-manager-triggers.mjs +6 -4
- package/resources/tag-manager-triggers.mjs.map +1 -1
- package/resources/tag-manager-variables.d.mts +25 -13
- package/resources/tag-manager-variables.d.mts.map +1 -1
- package/resources/tag-manager-variables.d.ts +25 -13
- package/resources/tag-manager-variables.d.ts.map +1 -1
- package/resources/tag-manager-variables.js +9 -4
- package/resources/tag-manager-variables.js.map +1 -1
- package/resources/tag-manager-variables.mjs +9 -4
- package/resources/tag-manager-variables.mjs.map +1 -1
- package/resources/tag-managers.d.mts +17 -1
- package/resources/tag-managers.d.mts.map +1 -1
- package/resources/tag-managers.d.ts +17 -1
- package/resources/tag-managers.d.ts.map +1 -1
- package/resources/tag-managers.js +10 -0
- package/resources/tag-managers.js.map +1 -1
- package/resources/tag-managers.mjs +10 -0
- package/resources/tag-managers.mjs.map +1 -1
- package/resources/test-events.d.mts +28 -13
- package/resources/test-events.d.mts.map +1 -1
- package/resources/test-events.d.ts +28 -13
- package/resources/test-events.d.ts.map +1 -1
- package/resources/versions.d.mts +607 -139
- package/resources/versions.d.mts.map +1 -1
- package/resources/versions.d.ts +607 -139
- package/resources/versions.d.ts.map +1 -1
- package/resources/versions.js +2 -0
- package/resources/versions.js.map +1 -1
- package/resources/versions.mjs +2 -0
- package/resources/versions.mjs.map +1 -1
- package/resources/web-analytics.d.mts +91 -39
- package/resources/web-analytics.d.mts.map +1 -1
- package/resources/web-analytics.d.ts +91 -39
- package/resources/web-analytics.d.ts.map +1 -1
- package/resources/web-analytics.js +11 -0
- package/resources/web-analytics.js.map +1 -1
- package/resources/web-analytics.mjs +11 -0
- package/resources/web-analytics.mjs.map +1 -1
- package/resources/web-scanners.d.mts +3 -2
- package/resources/web-scanners.d.mts.map +1 -1
- package/resources/web-scanners.d.ts +3 -2
- package/resources/web-scanners.d.ts.map +1 -1
- package/resources/web-scanners.js +3 -2
- package/resources/web-scanners.js.map +1 -1
- package/resources/web-scanners.mjs +3 -2
- package/resources/web-scanners.mjs.map +1 -1
- package/src/client.ts +118 -3
- package/src/internal/utils/log.ts +1 -3
- package/src/resources/consent-settings.ts +117 -0
- package/src/resources/custom-domains.ts +14 -4
- package/src/resources/dashboards.ts +8757 -0
- package/src/resources/data-governance.ts +19 -26
- package/src/resources/destinations.ts +50 -6
- package/src/resources/experiment-settings.ts +84 -24
- package/src/resources/funnels.ts +64 -7
- package/src/resources/index.ts +54 -0
- package/src/resources/insights.ts +1976 -0
- package/src/resources/journey-flows.ts +214 -17
- package/src/resources/replay-settings.ts +77 -42
- package/src/resources/report-branding.ts +207 -0
- package/src/resources/tag-manager-triggers.ts +55 -4
- package/src/resources/tag-manager-variables.ts +25 -13
- package/src/resources/tag-managers.ts +21 -0
- package/src/resources/test-events.ts +30 -13
- package/src/resources/versions.ts +777 -139
- package/src/resources/web-analytics.ts +137 -38
- package/src/resources/web-scanners.ts +3 -2
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -8,14 +8,13 @@ import { path } from '../internal/utils/path';
|
|
|
8
8
|
|
|
9
9
|
export class DataGovernance extends APIResource {
|
|
10
10
|
/**
|
|
11
|
-
* List
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
* OAuth user permission: globalDispatch:list
|
|
11
|
+
* List data-governance records as { entities, pagination }. Supports limit and
|
|
12
|
+
* cursor; pass pagination.nextCursor to retrieve the next page. Records are
|
|
13
|
+
* ordered newest first, with stable id ordering for equal creation times. Each
|
|
14
|
+
* account currently has at most one record, so entities is empty or contains one
|
|
15
|
+
* record. Categories stop dispatch to their destinationIds when their logic
|
|
16
|
+
* matches. Requires API-key scope or current OAuth user permission:
|
|
17
|
+
* globalDispatch:list
|
|
19
18
|
*/
|
|
20
19
|
list(
|
|
21
20
|
query: DataGovernanceListParams | null | undefined = {},
|
|
@@ -42,10 +41,11 @@ export class DataGovernance extends APIResource {
|
|
|
42
41
|
|
|
43
42
|
/**
|
|
44
43
|
* Fetch the data-governance record by id, including its categories (logic,
|
|
45
|
-
* destinations, priority). Returns 404 when
|
|
46
|
-
* scope or current OAuth user permission:
|
|
44
|
+
* destinations, priority). Returns the same 404 when the record is missing or
|
|
45
|
+
* inaccessible. Requires API-key scope or current OAuth user permission:
|
|
46
|
+
* globalDispatch:find
|
|
47
47
|
*/
|
|
48
|
-
retrieve(id: string, options?: RequestOptions): APIPromise<DataGovernanceRetrieveResponse
|
|
48
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<DataGovernanceRetrieveResponse> {
|
|
49
49
|
return this._client.get(path`/rest/v1/data-governance/${id}`, options);
|
|
50
50
|
}
|
|
51
51
|
|
|
@@ -74,9 +74,10 @@ export class DataGovernance extends APIResource {
|
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
|
-
* Delete the data-governance record.
|
|
78
|
-
* to
|
|
79
|
-
* reinstate governance.
|
|
77
|
+
* Delete the data-governance record from the draft. Publish a version for inbound
|
|
78
|
+
* events to flow through without category-level gating. Create a new record with
|
|
79
|
+
* POST to reinstate governance. Returns the same 404 when the record is missing or
|
|
80
|
+
* inaccessible. Requires API-key scope or current OAuth user permission:
|
|
80
81
|
* globalDispatch:delete
|
|
81
82
|
*/
|
|
82
83
|
delete(id: string, options?: RequestOptions): APIPromise<DataGovernanceDeleteResponse> {
|
|
@@ -104,9 +105,7 @@ export interface DataGovernanceListResponse {
|
|
|
104
105
|
isEnabled: boolean;
|
|
105
106
|
|
|
106
107
|
/**
|
|
107
|
-
* Discriminator for
|
|
108
|
-
* The underlying storage discriminator is "globalDispatchCenter" — REST translates
|
|
109
|
-
* it on the way out.
|
|
108
|
+
* Discriminator for this resource. Always "dataGovernance".
|
|
110
109
|
*/
|
|
111
110
|
kind: string;
|
|
112
111
|
|
|
@@ -305,9 +304,7 @@ export interface DataGovernanceCreateResponse {
|
|
|
305
304
|
isEnabled: boolean;
|
|
306
305
|
|
|
307
306
|
/**
|
|
308
|
-
* Discriminator for
|
|
309
|
-
* The underlying storage discriminator is "globalDispatchCenter" — REST translates
|
|
310
|
-
* it on the way out.
|
|
307
|
+
* Discriminator for this resource. Always "dataGovernance".
|
|
311
308
|
*/
|
|
312
309
|
kind: string;
|
|
313
310
|
|
|
@@ -506,9 +503,7 @@ export interface DataGovernanceRetrieveResponse {
|
|
|
506
503
|
isEnabled: boolean;
|
|
507
504
|
|
|
508
505
|
/**
|
|
509
|
-
* Discriminator for
|
|
510
|
-
* The underlying storage discriminator is "globalDispatchCenter" — REST translates
|
|
511
|
-
* it on the way out.
|
|
506
|
+
* Discriminator for this resource. Always "dataGovernance".
|
|
512
507
|
*/
|
|
513
508
|
kind: string;
|
|
514
509
|
|
|
@@ -707,9 +702,7 @@ export interface DataGovernanceUpdateResponse {
|
|
|
707
702
|
isEnabled: boolean;
|
|
708
703
|
|
|
709
704
|
/**
|
|
710
|
-
* Discriminator for
|
|
711
|
-
* The underlying storage discriminator is "globalDispatchCenter" — REST translates
|
|
712
|
-
* it on the way out.
|
|
705
|
+
* Discriminator for this resource. Always "dataGovernance".
|
|
713
706
|
*/
|
|
714
707
|
kind: string;
|
|
715
708
|
|
|
@@ -181,6 +181,7 @@ export interface DestinationListResponse {
|
|
|
181
181
|
| 'TatariCAPI'
|
|
182
182
|
| 'TheTradeDesk'
|
|
183
183
|
| 'TikTok'
|
|
184
|
+
| 'Trybe'
|
|
184
185
|
| 'UniversalAds'
|
|
185
186
|
| 'VWO'
|
|
186
187
|
| 'Viant'
|
|
@@ -304,6 +305,7 @@ export interface DestinationCreateResponse {
|
|
|
304
305
|
| 'TatariCAPI'
|
|
305
306
|
| 'TheTradeDesk'
|
|
306
307
|
| 'TikTok'
|
|
308
|
+
| 'Trybe'
|
|
307
309
|
| 'UniversalAds'
|
|
308
310
|
| 'VWO'
|
|
309
311
|
| 'Viant'
|
|
@@ -427,6 +429,7 @@ export interface DestinationRetrieveResponse {
|
|
|
427
429
|
| 'TatariCAPI'
|
|
428
430
|
| 'TheTradeDesk'
|
|
429
431
|
| 'TikTok'
|
|
432
|
+
| 'Trybe'
|
|
430
433
|
| 'UniversalAds'
|
|
431
434
|
| 'VWO'
|
|
432
435
|
| 'Viant'
|
|
@@ -550,6 +553,7 @@ export interface DestinationUpdateResponse {
|
|
|
550
553
|
| 'TatariCAPI'
|
|
551
554
|
| 'TheTradeDesk'
|
|
552
555
|
| 'TikTok'
|
|
556
|
+
| 'Trybe'
|
|
553
557
|
| 'UniversalAds'
|
|
554
558
|
| 'VWO'
|
|
555
559
|
| 'Viant'
|
|
@@ -666,7 +670,8 @@ export namespace DestinationTypesResponse {
|
|
|
666
670
|
| 'Rokt'
|
|
667
671
|
| 'Fullstory'
|
|
668
672
|
| 'GravityCAPI'
|
|
669
|
-
| 'LeadSquared'
|
|
673
|
+
| 'LeadSquared'
|
|
674
|
+
| 'Trybe';
|
|
670
675
|
|
|
671
676
|
capabilities: Entity.Capabilities;
|
|
672
677
|
|
|
@@ -911,6 +916,7 @@ export interface DestinationListParams extends CursorParams {
|
|
|
911
916
|
| 'TatariCAPI'
|
|
912
917
|
| 'TheTradeDesk'
|
|
913
918
|
| 'TikTok'
|
|
919
|
+
| 'Trybe'
|
|
914
920
|
| 'UniversalAds'
|
|
915
921
|
| 'VWO'
|
|
916
922
|
| 'Viant'
|
|
@@ -927,7 +933,8 @@ export interface DestinationListParams extends CursorParams {
|
|
|
927
933
|
|
|
928
934
|
export interface DestinationCreateParams {
|
|
929
935
|
/**
|
|
930
|
-
* Event-dispatch destination type to create.
|
|
936
|
+
* Event-dispatch destination type to create. Discover valid types and their
|
|
937
|
+
* settings via GET /rest/v1/destinations/types. Warehouse, cloud-storage, and
|
|
931
938
|
* audience-sync destination types may appear on read responses but are not
|
|
932
939
|
* creatable through POST. Audience destinations receive audience membership from
|
|
933
940
|
* Audience Builder on a daily schedule and are configured in the dashboard.
|
|
@@ -1014,31 +1021,68 @@ export interface DestinationCreateParams {
|
|
|
1014
1021
|
| 'Rokt'
|
|
1015
1022
|
| 'Fullstory'
|
|
1016
1023
|
| 'GravityCAPI'
|
|
1017
|
-
| 'LeadSquared'
|
|
1024
|
+
| 'LeadSquared'
|
|
1025
|
+
| 'Trybe';
|
|
1026
|
+
|
|
1027
|
+
/**
|
|
1028
|
+
* Restrict dispatch to these source IDs. Omit on create or send `null` to accept
|
|
1029
|
+
* every source. Unknown or other-account source IDs are dropped and duplicates are
|
|
1030
|
+
* removed. An empty list, including one left after filtering, receives events from
|
|
1031
|
+
* no source.
|
|
1032
|
+
*/
|
|
1033
|
+
limitedToSourceIds?: Array<string> | null;
|
|
1018
1034
|
|
|
1035
|
+
/**
|
|
1036
|
+
* Human-readable label shown in dashboards. Defaults to the type name when
|
|
1037
|
+
* omitted.
|
|
1038
|
+
*/
|
|
1019
1039
|
name?: string | null;
|
|
1020
1040
|
|
|
1021
1041
|
/**
|
|
1022
1042
|
* Per-type configuration keys and values. Call GET /rest/v1/destinations/types to
|
|
1023
|
-
*
|
|
1043
|
+
* discover valid keys. On PATCH, omitted keys are preserved and `null` clears a
|
|
1044
|
+
* specific setting.
|
|
1024
1045
|
*/
|
|
1025
1046
|
settings?: { [key: string]: string | null | number | boolean } | null;
|
|
1047
|
+
|
|
1048
|
+
/**
|
|
1049
|
+
* Initial status. Omit or send `null` for `Enabled`; send `Disabled` to create
|
|
1050
|
+
* paused.
|
|
1051
|
+
*/
|
|
1052
|
+
status?: 'Enabled' | 'Disabled' | null;
|
|
1026
1053
|
}
|
|
1027
1054
|
|
|
1028
1055
|
export interface DestinationUpdateParams {
|
|
1056
|
+
/**
|
|
1057
|
+
* Optional salt used when hashing PII fields before dispatch.
|
|
1058
|
+
*/
|
|
1029
1059
|
hashingSalt?: string | null;
|
|
1030
1060
|
|
|
1061
|
+
/**
|
|
1062
|
+
* Restrict dispatch to these source IDs. Omit on create or send `null` to accept
|
|
1063
|
+
* every source. Unknown or other-account source IDs are dropped and duplicates are
|
|
1064
|
+
* removed. An empty list, including one left after filtering, receives events from
|
|
1065
|
+
* no source.
|
|
1066
|
+
*/
|
|
1031
1067
|
limitedToSourceIds?: Array<string> | null;
|
|
1032
1068
|
|
|
1069
|
+
/**
|
|
1070
|
+
* Updated human-readable label.
|
|
1071
|
+
*/
|
|
1033
1072
|
name?: string | null;
|
|
1034
1073
|
|
|
1035
1074
|
/**
|
|
1036
1075
|
* Per-type configuration keys and values. Call GET /rest/v1/destinations/types to
|
|
1037
|
-
*
|
|
1076
|
+
* discover valid keys. On PATCH, omitted keys are preserved and `null` clears a
|
|
1077
|
+
* specific setting.
|
|
1038
1078
|
*/
|
|
1039
1079
|
settings?: { [key: string]: string | null | number | boolean } | null;
|
|
1040
1080
|
|
|
1041
|
-
|
|
1081
|
+
/**
|
|
1082
|
+
* Set `Enabled` to resume dispatch or `Disabled` to pause. Omit or send `null` to
|
|
1083
|
+
* keep the current status.
|
|
1084
|
+
*/
|
|
1085
|
+
status?: 'Enabled' | 'Disabled' | null;
|
|
1042
1086
|
}
|
|
1043
1087
|
|
|
1044
1088
|
export declare namespace Destinations {
|
|
@@ -40,14 +40,19 @@ export class ExperimentSettings extends APIResource {
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
|
-
* Find
|
|
44
|
-
*
|
|
45
|
-
*
|
|
43
|
+
* Find an experiment settings record by ID, including its cookie name, public
|
|
44
|
+
* pixel token, and domain allowlist. Discover the ID with GET
|
|
45
|
+
* /rest/v1/experiment-settings. Returns 404 when the record is unavailable to this
|
|
46
|
+
* account; returns 403 when Experimentation is disabled for an otherwise
|
|
47
|
+
* authorized record. Requires API-key scope or current OAuth user permission:
|
|
48
|
+
* experimentSettings:find
|
|
46
49
|
*
|
|
47
50
|
* @example
|
|
48
51
|
* ```ts
|
|
49
52
|
* const experimentSetting =
|
|
50
|
-
* await client.experimentSettings.retrieve(
|
|
53
|
+
* await client.experimentSettings.retrieve(
|
|
54
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
55
|
+
* );
|
|
51
56
|
* ```
|
|
52
57
|
*/
|
|
53
58
|
retrieve(id: string, options?: RequestOptions): APIPromise<ExperimentSettingRetrieveResponse> {
|
|
@@ -110,6 +115,9 @@ export namespace ExperimentSettingListResponse {
|
|
|
110
115
|
*/
|
|
111
116
|
accountId: string;
|
|
112
117
|
|
|
118
|
+
/**
|
|
119
|
+
* ISO 8601 timestamp when this settings record was created.
|
|
120
|
+
*/
|
|
113
121
|
createdAt: string;
|
|
114
122
|
|
|
115
123
|
/**
|
|
@@ -118,8 +126,8 @@ export namespace ExperimentSettingListResponse {
|
|
|
118
126
|
name: string;
|
|
119
127
|
|
|
120
128
|
/**
|
|
121
|
-
*
|
|
122
|
-
*
|
|
129
|
+
* Public pixel token used by the experiments runtime. Use the settings id, rather
|
|
130
|
+
* than this token, when creating an experiment.
|
|
123
131
|
*/
|
|
124
132
|
pixel: string;
|
|
125
133
|
|
|
@@ -128,18 +136,26 @@ export namespace ExperimentSettingListResponse {
|
|
|
128
136
|
*/
|
|
129
137
|
cookieName?: string | null;
|
|
130
138
|
|
|
139
|
+
/**
|
|
140
|
+
* User who created this settings record.
|
|
141
|
+
*/
|
|
131
142
|
createdByUserId?: string | null;
|
|
132
143
|
|
|
144
|
+
/**
|
|
145
|
+
* ISO 8601 timestamp when this settings record was last updated.
|
|
146
|
+
*/
|
|
133
147
|
updatedAt?: string | null;
|
|
134
148
|
|
|
149
|
+
/**
|
|
150
|
+
* User who last updated this settings record.
|
|
151
|
+
*/
|
|
135
152
|
updatedByUserId?: string | null;
|
|
136
153
|
|
|
137
154
|
/**
|
|
138
155
|
* Limits which domains can load your experiments. When set, experiments using this
|
|
139
156
|
* settings record are only served on these domains; the SDK refuses to load
|
|
140
157
|
* anywhere else and your experiments never run on those hosts. Separate from
|
|
141
|
-
* source
|
|
142
|
-
* CDP.
|
|
158
|
+
* source whitelistDomains, which limits which domains can send events to the CDP.
|
|
143
159
|
*/
|
|
144
160
|
whitelistDomains?: Array<string> | null;
|
|
145
161
|
}
|
|
@@ -156,6 +172,9 @@ export interface ExperimentSettingCreateResponse {
|
|
|
156
172
|
*/
|
|
157
173
|
accountId: string;
|
|
158
174
|
|
|
175
|
+
/**
|
|
176
|
+
* ISO 8601 timestamp when this settings record was created.
|
|
177
|
+
*/
|
|
159
178
|
createdAt: string;
|
|
160
179
|
|
|
161
180
|
/**
|
|
@@ -164,8 +183,8 @@ export interface ExperimentSettingCreateResponse {
|
|
|
164
183
|
name: string;
|
|
165
184
|
|
|
166
185
|
/**
|
|
167
|
-
*
|
|
168
|
-
*
|
|
186
|
+
* Public pixel token used by the experiments runtime. Use the settings id, rather
|
|
187
|
+
* than this token, when creating an experiment.
|
|
169
188
|
*/
|
|
170
189
|
pixel: string;
|
|
171
190
|
|
|
@@ -174,18 +193,26 @@ export interface ExperimentSettingCreateResponse {
|
|
|
174
193
|
*/
|
|
175
194
|
cookieName?: string | null;
|
|
176
195
|
|
|
196
|
+
/**
|
|
197
|
+
* User who created this settings record.
|
|
198
|
+
*/
|
|
177
199
|
createdByUserId?: string | null;
|
|
178
200
|
|
|
201
|
+
/**
|
|
202
|
+
* ISO 8601 timestamp when this settings record was last updated.
|
|
203
|
+
*/
|
|
179
204
|
updatedAt?: string | null;
|
|
180
205
|
|
|
206
|
+
/**
|
|
207
|
+
* User who last updated this settings record.
|
|
208
|
+
*/
|
|
181
209
|
updatedByUserId?: string | null;
|
|
182
210
|
|
|
183
211
|
/**
|
|
184
212
|
* Limits which domains can load your experiments. When set, experiments using this
|
|
185
213
|
* settings record are only served on these domains; the SDK refuses to load
|
|
186
214
|
* anywhere else and your experiments never run on those hosts. Separate from
|
|
187
|
-
* source
|
|
188
|
-
* CDP.
|
|
215
|
+
* source whitelistDomains, which limits which domains can send events to the CDP.
|
|
189
216
|
*/
|
|
190
217
|
whitelistDomains?: Array<string> | null;
|
|
191
218
|
}
|
|
@@ -201,6 +228,9 @@ export interface ExperimentSettingRetrieveResponse {
|
|
|
201
228
|
*/
|
|
202
229
|
accountId: string;
|
|
203
230
|
|
|
231
|
+
/**
|
|
232
|
+
* ISO 8601 timestamp when this settings record was created.
|
|
233
|
+
*/
|
|
204
234
|
createdAt: string;
|
|
205
235
|
|
|
206
236
|
/**
|
|
@@ -209,8 +239,8 @@ export interface ExperimentSettingRetrieveResponse {
|
|
|
209
239
|
name: string;
|
|
210
240
|
|
|
211
241
|
/**
|
|
212
|
-
*
|
|
213
|
-
*
|
|
242
|
+
* Public pixel token used by the experiments runtime. Use the settings id, rather
|
|
243
|
+
* than this token, when creating an experiment.
|
|
214
244
|
*/
|
|
215
245
|
pixel: string;
|
|
216
246
|
|
|
@@ -219,18 +249,26 @@ export interface ExperimentSettingRetrieveResponse {
|
|
|
219
249
|
*/
|
|
220
250
|
cookieName?: string | null;
|
|
221
251
|
|
|
252
|
+
/**
|
|
253
|
+
* User who created this settings record.
|
|
254
|
+
*/
|
|
222
255
|
createdByUserId?: string | null;
|
|
223
256
|
|
|
257
|
+
/**
|
|
258
|
+
* ISO 8601 timestamp when this settings record was last updated.
|
|
259
|
+
*/
|
|
224
260
|
updatedAt?: string | null;
|
|
225
261
|
|
|
262
|
+
/**
|
|
263
|
+
* User who last updated this settings record.
|
|
264
|
+
*/
|
|
226
265
|
updatedByUserId?: string | null;
|
|
227
266
|
|
|
228
267
|
/**
|
|
229
268
|
* Limits which domains can load your experiments. When set, experiments using this
|
|
230
269
|
* settings record are only served on these domains; the SDK refuses to load
|
|
231
270
|
* anywhere else and your experiments never run on those hosts. Separate from
|
|
232
|
-
* source
|
|
233
|
-
* CDP.
|
|
271
|
+
* source whitelistDomains, which limits which domains can send events to the CDP.
|
|
234
272
|
*/
|
|
235
273
|
whitelistDomains?: Array<string> | null;
|
|
236
274
|
}
|
|
@@ -246,6 +284,9 @@ export interface ExperimentSettingUpdateResponse {
|
|
|
246
284
|
*/
|
|
247
285
|
accountId: string;
|
|
248
286
|
|
|
287
|
+
/**
|
|
288
|
+
* ISO 8601 timestamp when this settings record was created.
|
|
289
|
+
*/
|
|
249
290
|
createdAt: string;
|
|
250
291
|
|
|
251
292
|
/**
|
|
@@ -254,8 +295,8 @@ export interface ExperimentSettingUpdateResponse {
|
|
|
254
295
|
name: string;
|
|
255
296
|
|
|
256
297
|
/**
|
|
257
|
-
*
|
|
258
|
-
*
|
|
298
|
+
* Public pixel token used by the experiments runtime. Use the settings id, rather
|
|
299
|
+
* than this token, when creating an experiment.
|
|
259
300
|
*/
|
|
260
301
|
pixel: string;
|
|
261
302
|
|
|
@@ -264,18 +305,26 @@ export interface ExperimentSettingUpdateResponse {
|
|
|
264
305
|
*/
|
|
265
306
|
cookieName?: string | null;
|
|
266
307
|
|
|
308
|
+
/**
|
|
309
|
+
* User who created this settings record.
|
|
310
|
+
*/
|
|
267
311
|
createdByUserId?: string | null;
|
|
268
312
|
|
|
313
|
+
/**
|
|
314
|
+
* ISO 8601 timestamp when this settings record was last updated.
|
|
315
|
+
*/
|
|
269
316
|
updatedAt?: string | null;
|
|
270
317
|
|
|
318
|
+
/**
|
|
319
|
+
* User who last updated this settings record.
|
|
320
|
+
*/
|
|
271
321
|
updatedByUserId?: string | null;
|
|
272
322
|
|
|
273
323
|
/**
|
|
274
324
|
* Limits which domains can load your experiments. When set, experiments using this
|
|
275
325
|
* settings record are only served on these domains; the SDK refuses to load
|
|
276
326
|
* anywhere else and your experiments never run on those hosts. Separate from
|
|
277
|
-
* source
|
|
278
|
-
* CDP.
|
|
327
|
+
* source whitelistDomains, which limits which domains can send events to the CDP.
|
|
279
328
|
*/
|
|
280
329
|
whitelistDomains?: Array<string> | null;
|
|
281
330
|
}
|
|
@@ -291,6 +340,9 @@ export interface ExperimentSettingDeleteResponse {
|
|
|
291
340
|
*/
|
|
292
341
|
accountId: string;
|
|
293
342
|
|
|
343
|
+
/**
|
|
344
|
+
* ISO 8601 timestamp when this settings record was created.
|
|
345
|
+
*/
|
|
294
346
|
createdAt: string;
|
|
295
347
|
|
|
296
348
|
/**
|
|
@@ -299,8 +351,8 @@ export interface ExperimentSettingDeleteResponse {
|
|
|
299
351
|
name: string;
|
|
300
352
|
|
|
301
353
|
/**
|
|
302
|
-
*
|
|
303
|
-
*
|
|
354
|
+
* Public pixel token used by the experiments runtime. Use the settings id, rather
|
|
355
|
+
* than this token, when creating an experiment.
|
|
304
356
|
*/
|
|
305
357
|
pixel: string;
|
|
306
358
|
|
|
@@ -309,18 +361,26 @@ export interface ExperimentSettingDeleteResponse {
|
|
|
309
361
|
*/
|
|
310
362
|
cookieName?: string | null;
|
|
311
363
|
|
|
364
|
+
/**
|
|
365
|
+
* User who created this settings record.
|
|
366
|
+
*/
|
|
312
367
|
createdByUserId?: string | null;
|
|
313
368
|
|
|
369
|
+
/**
|
|
370
|
+
* ISO 8601 timestamp when this settings record was last updated.
|
|
371
|
+
*/
|
|
314
372
|
updatedAt?: string | null;
|
|
315
373
|
|
|
374
|
+
/**
|
|
375
|
+
* User who last updated this settings record.
|
|
376
|
+
*/
|
|
316
377
|
updatedByUserId?: string | null;
|
|
317
378
|
|
|
318
379
|
/**
|
|
319
380
|
* Limits which domains can load your experiments. When set, experiments using this
|
|
320
381
|
* settings record are only served on these domains; the SDK refuses to load
|
|
321
382
|
* anywhere else and your experiments never run on those hosts. Separate from
|
|
322
|
-
* source
|
|
323
|
-
* CDP.
|
|
383
|
+
* source whitelistDomains, which limits which domains can send events to the CDP.
|
|
324
384
|
*/
|
|
325
385
|
whitelistDomains?: Array<string> | null;
|
|
326
386
|
}
|
package/src/resources/funnels.ts
CHANGED
|
@@ -57,7 +57,8 @@ export class Funnels extends APIResource {
|
|
|
57
57
|
/**
|
|
58
58
|
* Duplicate a funnel configuration in the same account. The copy keeps the
|
|
59
59
|
* canonical definition, receives a new ID, and is named `Copy of …`. Requires
|
|
60
|
-
* API-key scope or current OAuth user permission: web-analytics:write
|
|
60
|
+
* API-key scope or current OAuth user permission: web-analytics:write,
|
|
61
|
+
* web-analytics:view
|
|
61
62
|
*/
|
|
62
63
|
duplicate(id: string, options?: RequestOptions): APIPromise<FunnelDuplicateResponse> {
|
|
63
64
|
return this._client.post(path`/rest/v1/funnels/${id}/duplicate`, options);
|
|
@@ -118,6 +119,9 @@ export namespace FunnelListResponse {
|
|
|
118
119
|
|
|
119
120
|
updatedAt: string;
|
|
120
121
|
|
|
122
|
+
/**
|
|
123
|
+
* Optional description; null clears it.
|
|
124
|
+
*/
|
|
121
125
|
description?: string | null;
|
|
122
126
|
|
|
123
127
|
reportDateRange?: Entity.ReportDateRange | null;
|
|
@@ -342,6 +346,9 @@ export interface FunnelCreateResponse {
|
|
|
342
346
|
|
|
343
347
|
updatedAt: string;
|
|
344
348
|
|
|
349
|
+
/**
|
|
350
|
+
* Optional description; null clears it.
|
|
351
|
+
*/
|
|
345
352
|
description?: string | null;
|
|
346
353
|
|
|
347
354
|
reportDateRange?: FunnelCreateResponse.ReportDateRange | null;
|
|
@@ -568,6 +575,9 @@ export interface FunnelRetrieveResponse {
|
|
|
568
575
|
|
|
569
576
|
updatedAt: string;
|
|
570
577
|
|
|
578
|
+
/**
|
|
579
|
+
* Optional description; null clears it.
|
|
580
|
+
*/
|
|
571
581
|
description?: string | null;
|
|
572
582
|
|
|
573
583
|
reportDateRange?: FunnelRetrieveResponse.ReportDateRange | null;
|
|
@@ -791,6 +801,9 @@ export interface FunnelUpdateResponse {
|
|
|
791
801
|
|
|
792
802
|
updatedAt: string;
|
|
793
803
|
|
|
804
|
+
/**
|
|
805
|
+
* Optional description; null clears it.
|
|
806
|
+
*/
|
|
794
807
|
description?: string | null;
|
|
795
808
|
|
|
796
809
|
reportDateRange?: FunnelUpdateResponse.ReportDateRange | null;
|
|
@@ -1020,6 +1033,9 @@ export interface FunnelDuplicateResponse {
|
|
|
1020
1033
|
|
|
1021
1034
|
updatedAt: string;
|
|
1022
1035
|
|
|
1036
|
+
/**
|
|
1037
|
+
* Optional description; null clears it.
|
|
1038
|
+
*/
|
|
1023
1039
|
description?: string | null;
|
|
1024
1040
|
|
|
1025
1041
|
reportDateRange?: FunnelDuplicateResponse.ReportDateRange | null;
|
|
@@ -1233,7 +1249,8 @@ export interface FunnelResultsResponse {
|
|
|
1233
1249
|
engine: string;
|
|
1234
1250
|
|
|
1235
1251
|
/**
|
|
1236
|
-
*
|
|
1252
|
+
* Ratio of last-step to first-step volume as a percentage. Event-counting ratios
|
|
1253
|
+
* may exceed 100%.
|
|
1237
1254
|
*/
|
|
1238
1255
|
overallConversionRate: number;
|
|
1239
1256
|
|
|
@@ -1242,8 +1259,8 @@ export interface FunnelResultsResponse {
|
|
|
1242
1259
|
semanticVersion: 1;
|
|
1243
1260
|
|
|
1244
1261
|
/**
|
|
1245
|
-
*
|
|
1246
|
-
*
|
|
1262
|
+
* Data quality limitations affecting these results. Source completeness and
|
|
1263
|
+
* conflicting event corrections may be unverified.
|
|
1247
1264
|
*/
|
|
1248
1265
|
sourceLimitations: Array<
|
|
1249
1266
|
'equal-load-conflicts-unverified' | 'cross-key-corrections-unverified' | 'source-completeness-unverified'
|
|
@@ -1257,7 +1274,8 @@ export interface FunnelResultsResponse {
|
|
|
1257
1274
|
steps: Array<FunnelResultsResponse.Step>;
|
|
1258
1275
|
|
|
1259
1276
|
/**
|
|
1260
|
-
*
|
|
1277
|
+
* First-step volume using the saved counting method: unique people, sessions, or
|
|
1278
|
+
* events.
|
|
1261
1279
|
*/
|
|
1262
1280
|
totalVisitors: number;
|
|
1263
1281
|
|
|
@@ -1293,29 +1311,49 @@ export namespace FunnelResultsResponse {
|
|
|
1293
1311
|
export interface Step {
|
|
1294
1312
|
conversionCount: number;
|
|
1295
1313
|
|
|
1314
|
+
/**
|
|
1315
|
+
* Step ratio as a percentage. Event-counting ratios may exceed 100%.
|
|
1316
|
+
*/
|
|
1296
1317
|
conversionRate: number;
|
|
1297
1318
|
|
|
1319
|
+
/**
|
|
1320
|
+
* Drop-off percentage for participant counting; zero when the previous step volume
|
|
1321
|
+
* is zero. Not a participant loss measure for event counting.
|
|
1322
|
+
*/
|
|
1298
1323
|
dropOffRate: number;
|
|
1299
1324
|
|
|
1300
1325
|
dropOffSessionIds: Array<string>;
|
|
1301
1326
|
|
|
1302
1327
|
dropOffVisitorIds: Array<string>;
|
|
1303
1328
|
|
|
1329
|
+
/**
|
|
1330
|
+
* Ratio to first-step volume as a percentage. Event-counting ratios may exceed
|
|
1331
|
+
* 100%.
|
|
1332
|
+
*/
|
|
1304
1333
|
overallConversionRate: number;
|
|
1305
1334
|
|
|
1306
1335
|
sessionIds: Array<string>;
|
|
1307
1336
|
|
|
1308
1337
|
stepNumber: number;
|
|
1309
1338
|
|
|
1339
|
+
/**
|
|
1340
|
+
* Step volume using the saved counting method: unique people, sessions, or events.
|
|
1341
|
+
*/
|
|
1310
1342
|
visitorCount: number;
|
|
1311
1343
|
|
|
1312
1344
|
visitorIds: Array<string>;
|
|
1313
1345
|
|
|
1346
|
+
/**
|
|
1347
|
+
* Average incoming hop time from the previous step to this step, in seconds.
|
|
1348
|
+
*/
|
|
1314
1349
|
avgTimeToNextStep?: number | null;
|
|
1315
1350
|
}
|
|
1316
1351
|
}
|
|
1317
1352
|
|
|
1318
1353
|
export interface FunnelCreateParams {
|
|
1354
|
+
/**
|
|
1355
|
+
* Display name for the saved funnel.
|
|
1356
|
+
*/
|
|
1319
1357
|
name: string;
|
|
1320
1358
|
|
|
1321
1359
|
/**
|
|
@@ -1323,8 +1361,15 @@ export interface FunnelCreateParams {
|
|
|
1323
1361
|
*/
|
|
1324
1362
|
queryDefinition: FunnelCreateParams.QueryDefinition;
|
|
1325
1363
|
|
|
1364
|
+
/**
|
|
1365
|
+
* Optional description; null clears it.
|
|
1366
|
+
*/
|
|
1326
1367
|
description?: string | null;
|
|
1327
1368
|
|
|
1369
|
+
/**
|
|
1370
|
+
* Whether funnel monitoring is enabled. Requires notifications to be enabled for
|
|
1371
|
+
* this account.
|
|
1372
|
+
*/
|
|
1328
1373
|
watched?: boolean | null;
|
|
1329
1374
|
}
|
|
1330
1375
|
|
|
@@ -1523,8 +1568,14 @@ export namespace FunnelCreateParams {
|
|
|
1523
1568
|
}
|
|
1524
1569
|
|
|
1525
1570
|
export interface FunnelUpdateParams {
|
|
1571
|
+
/**
|
|
1572
|
+
* Optional description; null clears it.
|
|
1573
|
+
*/
|
|
1526
1574
|
description?: string | null;
|
|
1527
1575
|
|
|
1576
|
+
/**
|
|
1577
|
+
* Display name for the saved funnel.
|
|
1578
|
+
*/
|
|
1528
1579
|
name?: string;
|
|
1529
1580
|
|
|
1530
1581
|
/**
|
|
@@ -1532,6 +1583,10 @@ export interface FunnelUpdateParams {
|
|
|
1532
1583
|
*/
|
|
1533
1584
|
queryDefinition?: FunnelUpdateParams.QueryDefinition;
|
|
1534
1585
|
|
|
1586
|
+
/**
|
|
1587
|
+
* Whether funnel monitoring is enabled. Requires notifications to be enabled for
|
|
1588
|
+
* this account.
|
|
1589
|
+
*/
|
|
1535
1590
|
watched?: boolean | null;
|
|
1536
1591
|
}
|
|
1537
1592
|
|
|
@@ -1745,8 +1800,10 @@ export interface FunnelResultsParams {
|
|
|
1745
1800
|
to: string;
|
|
1746
1801
|
|
|
1747
1802
|
/**
|
|
1748
|
-
*
|
|
1749
|
-
*
|
|
1803
|
+
* Use the saved funnel response's updatedAt from GET /funnels/{id} (MCP:
|
|
1804
|
+
* get_funnel.updatedAt) to require that definition revision. Results return the
|
|
1805
|
+
* same revision as definitionUpdatedAt. Returns a conflict if the funnel has
|
|
1806
|
+
* changed; omit to use the latest saved definition.
|
|
1750
1807
|
*/
|
|
1751
1808
|
expectedDefinitionUpdatedAt?: string;
|
|
1752
1809
|
}
|