@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.
- package/CHANGELOG.md +7 -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 +7 -7
- package/resources/destinations.d.mts.map +1 -1
- package/resources/destinations.d.ts +7 -7
- 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 +3 -2
- package/resources/replay-settings.d.mts.map +1 -1
- package/resources/replay-settings.d.ts +3 -2
- package/resources/replay-settings.d.ts.map +1 -1
- package/resources/replay-settings.js +3 -2
- package/resources/replay-settings.js.map +1 -1
- package/resources/replay-settings.mjs +3 -2
- 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 +18 -13
- package/resources/test-events.d.mts.map +1 -1
- package/resources/test-events.d.ts +18 -13
- package/resources/test-events.d.ts.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 +9 -2
- 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 +3 -2
- 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 +18 -13
- 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
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import { APIPromise } from '../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../internal/request-options';
|
|
6
|
+
|
|
7
|
+
export class ReportBranding extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Get the organization logo shown on Dashboards and Dashboard PDFs. Returns {
|
|
10
|
+
* logo: null } when no logo is set. Pass includeDataUrl=false to omit the image
|
|
11
|
+
* data and read only its format, dimensions, size, and update time. Requires
|
|
12
|
+
* Analytics Suite access. Requires API-key scope or current OAuth user permission:
|
|
13
|
+
* web-analytics:view
|
|
14
|
+
*/
|
|
15
|
+
retrieve(
|
|
16
|
+
query: ReportBrandingRetrieveParams | null | undefined = {},
|
|
17
|
+
options?: RequestOptions,
|
|
18
|
+
): APIPromise<ReportBrandingRetrieveResponse> {
|
|
19
|
+
return this._client.get('/rest/v1/report-branding/logo', { query, ...options });
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Replace the organization logo used on Dashboards and Dashboard PDFs. Send
|
|
24
|
+
* contentType and base64 data for a PNG, JPEG, or WebP image of at most 524288
|
|
25
|
+
* bytes and 4096 pixels in each dimension. The bytes must match contentType; SVG
|
|
26
|
+
* is not accepted, so rasterize vector logos first. Requires Analytics Suite
|
|
27
|
+
* access and organization:manage-report-branding. Requires API-key scope or
|
|
28
|
+
* current OAuth user permission: organization:manage-report-branding
|
|
29
|
+
*/
|
|
30
|
+
replace(
|
|
31
|
+
body: ReportBrandingReplaceParams,
|
|
32
|
+
options?: RequestOptions,
|
|
33
|
+
): APIPromise<ReportBrandingReplaceResponse> {
|
|
34
|
+
return this._client.put('/rest/v1/report-branding/logo', { body, ...options });
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Remove the organization logo from Dashboards and Dashboard PDFs. Succeeds when
|
|
39
|
+
* no logo is set. Requires Analytics Suite access and
|
|
40
|
+
* organization:manage-report-branding. Requires API-key scope or current OAuth
|
|
41
|
+
* user permission: organization:manage-report-branding
|
|
42
|
+
*/
|
|
43
|
+
delete(options?: RequestOptions): APIPromise<ReportBrandingDeleteResponse> {
|
|
44
|
+
return this._client.delete('/rest/v1/report-branding/logo', options);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export interface ReportBrandingRetrieveResponse {
|
|
49
|
+
/**
|
|
50
|
+
* Organization logo shown on Dashboards and Dashboard PDFs, or null when none is
|
|
51
|
+
* set.
|
|
52
|
+
*/
|
|
53
|
+
logo: ReportBrandingRetrieveResponse.Logo | null;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export namespace ReportBrandingRetrieveResponse {
|
|
57
|
+
/**
|
|
58
|
+
* Organization logo shown on Dashboards and Dashboard PDFs, or null when none is
|
|
59
|
+
* set.
|
|
60
|
+
*/
|
|
61
|
+
export interface Logo {
|
|
62
|
+
/**
|
|
63
|
+
* Decoded image size in bytes.
|
|
64
|
+
*/
|
|
65
|
+
byteSize: number;
|
|
66
|
+
|
|
67
|
+
contentType: 'image/png' | 'image/jpeg' | 'image/webp';
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Image height in pixels.
|
|
71
|
+
*/
|
|
72
|
+
height: number;
|
|
73
|
+
|
|
74
|
+
updatedAt: string;
|
|
75
|
+
|
|
76
|
+
updatedByUserId: string;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Image width in pixels.
|
|
80
|
+
*/
|
|
81
|
+
width: number;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* data: URL containing the base64 image. Returned by GET unless includeDataUrl is
|
|
85
|
+
* false; omitted from write responses.
|
|
86
|
+
*/
|
|
87
|
+
dataUrl?: string;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export interface ReportBrandingReplaceResponse {
|
|
92
|
+
/**
|
|
93
|
+
* Organization logo shown on Dashboards and Dashboard PDFs, or null when none is
|
|
94
|
+
* set.
|
|
95
|
+
*/
|
|
96
|
+
logo: ReportBrandingReplaceResponse.Logo | null;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export namespace ReportBrandingReplaceResponse {
|
|
100
|
+
/**
|
|
101
|
+
* Organization logo shown on Dashboards and Dashboard PDFs, or null when none is
|
|
102
|
+
* set.
|
|
103
|
+
*/
|
|
104
|
+
export interface Logo {
|
|
105
|
+
/**
|
|
106
|
+
* Decoded image size in bytes.
|
|
107
|
+
*/
|
|
108
|
+
byteSize: number;
|
|
109
|
+
|
|
110
|
+
contentType: 'image/png' | 'image/jpeg' | 'image/webp';
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Image height in pixels.
|
|
114
|
+
*/
|
|
115
|
+
height: number;
|
|
116
|
+
|
|
117
|
+
updatedAt: string;
|
|
118
|
+
|
|
119
|
+
updatedByUserId: string;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Image width in pixels.
|
|
123
|
+
*/
|
|
124
|
+
width: number;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* data: URL containing the base64 image. Returned by GET unless includeDataUrl is
|
|
128
|
+
* false; omitted from write responses.
|
|
129
|
+
*/
|
|
130
|
+
dataUrl?: string;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export interface ReportBrandingDeleteResponse {
|
|
135
|
+
/**
|
|
136
|
+
* Organization logo shown on Dashboards and Dashboard PDFs, or null when none is
|
|
137
|
+
* set.
|
|
138
|
+
*/
|
|
139
|
+
logo: ReportBrandingDeleteResponse.Logo | null;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export namespace ReportBrandingDeleteResponse {
|
|
143
|
+
/**
|
|
144
|
+
* Organization logo shown on Dashboards and Dashboard PDFs, or null when none is
|
|
145
|
+
* set.
|
|
146
|
+
*/
|
|
147
|
+
export interface Logo {
|
|
148
|
+
/**
|
|
149
|
+
* Decoded image size in bytes.
|
|
150
|
+
*/
|
|
151
|
+
byteSize: number;
|
|
152
|
+
|
|
153
|
+
contentType: 'image/png' | 'image/jpeg' | 'image/webp';
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Image height in pixels.
|
|
157
|
+
*/
|
|
158
|
+
height: number;
|
|
159
|
+
|
|
160
|
+
updatedAt: string;
|
|
161
|
+
|
|
162
|
+
updatedByUserId: string;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* Image width in pixels.
|
|
166
|
+
*/
|
|
167
|
+
width: number;
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* data: URL containing the base64 image. Returned by GET unless includeDataUrl is
|
|
171
|
+
* false; omitted from write responses.
|
|
172
|
+
*/
|
|
173
|
+
dataUrl?: string;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export interface ReportBrandingRetrieveParams {
|
|
178
|
+
/**
|
|
179
|
+
* Whether to return the image as logo.dataUrl. Defaults to true; pass false to
|
|
180
|
+
* read only the logo metadata.
|
|
181
|
+
*/
|
|
182
|
+
includeDataUrl?: boolean;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
export interface ReportBrandingReplaceParams {
|
|
186
|
+
/**
|
|
187
|
+
* Image format: image/png, image/jpeg, or image/webp. SVG is not accepted;
|
|
188
|
+
* rasterize vector logos first. Must match the uploaded bytes.
|
|
189
|
+
*/
|
|
190
|
+
contentType: 'image/png' | 'image/jpeg' | 'image/webp';
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* Standard base64 image bytes without a data: prefix. At most 524288 decoded bytes
|
|
194
|
+
* and 4096 pixels in each dimension.
|
|
195
|
+
*/
|
|
196
|
+
data: string;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
export declare namespace ReportBranding {
|
|
200
|
+
export {
|
|
201
|
+
type ReportBrandingRetrieveResponse as ReportBrandingRetrieveResponse,
|
|
202
|
+
type ReportBrandingReplaceResponse as ReportBrandingReplaceResponse,
|
|
203
|
+
type ReportBrandingDeleteResponse as ReportBrandingDeleteResponse,
|
|
204
|
+
type ReportBrandingRetrieveParams as ReportBrandingRetrieveParams,
|
|
205
|
+
type ReportBrandingReplaceParams as ReportBrandingReplaceParams,
|
|
206
|
+
};
|
|
207
|
+
}
|
|
@@ -70,10 +70,12 @@ export class TagManagerTriggers extends APIResource {
|
|
|
70
70
|
/**
|
|
71
71
|
* Lists every trigger template the platform supports — what `type` discriminator
|
|
72
72
|
* to send on create/patch, and the shape of the type-specific `parameters`
|
|
73
|
-
* payload.
|
|
74
|
-
*
|
|
75
|
-
*
|
|
76
|
-
*
|
|
73
|
+
* payload. Also returns `conditionOperators` (`id`, `name`, `takesExpected`) and
|
|
74
|
+
* `builtInVariables` (`name`, `reference`, `description`, `category`). Use an
|
|
75
|
+
* operator `id` for `comparison` and an exact built-in `reference` such as
|
|
76
|
+
* `{{Page Path}}` for `actual`; built-ins need no variable creation.
|
|
77
|
+
* Account-agnostic: the response is the same for every API key. Requires API-key
|
|
78
|
+
* scope or current OAuth user permission: tagManagers:find
|
|
77
79
|
*/
|
|
78
80
|
types(options?: RequestOptions): APIPromise<TagManagerTriggerTypesResponse> {
|
|
79
81
|
return this._client.get('/rest/v1/tag-manager-triggers/types', options);
|
|
@@ -269,10 +271,59 @@ export interface TagManagerTriggerDeleteResponse {
|
|
|
269
271
|
}
|
|
270
272
|
|
|
271
273
|
export interface TagManagerTriggerTypesResponse {
|
|
274
|
+
/**
|
|
275
|
+
* Built-in variables available to tags, triggers, and variables.
|
|
276
|
+
*/
|
|
277
|
+
builtInVariables: Array<TagManagerTriggerTypesResponse.BuiltInVariable>;
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* Supported comparisons for trigger conditions.
|
|
281
|
+
*/
|
|
282
|
+
conditionOperators: Array<TagManagerTriggerTypesResponse.ConditionOperator>;
|
|
283
|
+
|
|
272
284
|
entities: Array<TagManagerTriggerTypesResponse.Entity>;
|
|
273
285
|
}
|
|
274
286
|
|
|
275
287
|
export namespace TagManagerTriggerTypesResponse {
|
|
288
|
+
export interface BuiltInVariable {
|
|
289
|
+
/**
|
|
290
|
+
* Variable group, or null when uncategorized.
|
|
291
|
+
*/
|
|
292
|
+
category: string | null;
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* Value supplied by this built-in variable.
|
|
296
|
+
*/
|
|
297
|
+
description: string;
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* Case-sensitive built-in variable name. No variable creation is needed.
|
|
301
|
+
*/
|
|
302
|
+
name: string;
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* Reference to use in conditions and template parameters, such as {{Page Path}}.
|
|
306
|
+
*/
|
|
307
|
+
reference: string;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
export interface ConditionOperator {
|
|
311
|
+
/**
|
|
312
|
+
* Exact comparison value for trigger conditions.
|
|
313
|
+
*/
|
|
314
|
+
id: string;
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* Display name of the comparison.
|
|
318
|
+
*/
|
|
319
|
+
name: string;
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* Whether this operator compares actual against an expected value.
|
|
323
|
+
*/
|
|
324
|
+
takesExpected: boolean;
|
|
325
|
+
}
|
|
326
|
+
|
|
276
327
|
export interface Entity {
|
|
277
328
|
/**
|
|
278
329
|
* Type discriminator — pass this as `type` on create/patch.
|
|
@@ -38,8 +38,10 @@ export class TagManagerVariables extends APIResource {
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
/**
|
|
41
|
-
*
|
|
42
|
-
*
|
|
41
|
+
* Fetch one variable by id, including its type-specific `parameters`,
|
|
42
|
+
* `defaultValue`, `lookUpTable`, and read-only `folderId`. A missing id and an id
|
|
43
|
+
* this credential cannot access return the same 404. Requires API-key scope or
|
|
44
|
+
* current OAuth user permission: tagManagers:find
|
|
43
45
|
*/
|
|
44
46
|
retrieve(id: string, options?: RequestOptions): APIPromise<TagManagerVariableRetrieveResponse> {
|
|
45
47
|
return this._client.get(path`/rest/v1/tag-manager-variables/${id}`, options);
|
|
@@ -61,8 +63,11 @@ export class TagManagerVariables extends APIResource {
|
|
|
61
63
|
}
|
|
62
64
|
|
|
63
65
|
/**
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
+
* Permanently delete a variable and return `{ id, deleted }`. Tags and triggers
|
|
67
|
+
* that reference it by name stop resolving it; use PATCH with `enabled: false` to
|
|
68
|
+
* pause it instead. A missing id and an id this credential cannot access return
|
|
69
|
+
* the same 404. Requires API-key scope or current OAuth user permission:
|
|
70
|
+
* tagManagers:update
|
|
66
71
|
*/
|
|
67
72
|
delete(id: string, options?: RequestOptions): APIPromise<TagManagerVariableDeleteResponse> {
|
|
68
73
|
return this._client.delete(path`/rest/v1/tag-manager-variables/${id}`, options);
|
|
@@ -121,8 +126,8 @@ export interface TagManagerVariableListResponse {
|
|
|
121
126
|
enabled?: boolean | null;
|
|
122
127
|
|
|
123
128
|
/**
|
|
124
|
-
* Folder this variable belongs to.
|
|
125
|
-
*
|
|
129
|
+
* Folder this variable belongs to. Read-only here; assign or remove folder
|
|
130
|
+
* membership with `POST /tag-manager-asset-folders`.
|
|
126
131
|
*/
|
|
127
132
|
folderId?: string | null;
|
|
128
133
|
|
|
@@ -178,8 +183,8 @@ export interface TagManagerVariableCreateResponse {
|
|
|
178
183
|
enabled?: boolean | null;
|
|
179
184
|
|
|
180
185
|
/**
|
|
181
|
-
* Folder this variable belongs to.
|
|
182
|
-
*
|
|
186
|
+
* Folder this variable belongs to. Read-only here; assign or remove folder
|
|
187
|
+
* membership with `POST /tag-manager-asset-folders`.
|
|
183
188
|
*/
|
|
184
189
|
folderId?: string | null;
|
|
185
190
|
|
|
@@ -235,8 +240,8 @@ export interface TagManagerVariableRetrieveResponse {
|
|
|
235
240
|
enabled?: boolean | null;
|
|
236
241
|
|
|
237
242
|
/**
|
|
238
|
-
* Folder this variable belongs to.
|
|
239
|
-
*
|
|
243
|
+
* Folder this variable belongs to. Read-only here; assign or remove folder
|
|
244
|
+
* membership with `POST /tag-manager-asset-folders`.
|
|
240
245
|
*/
|
|
241
246
|
folderId?: string | null;
|
|
242
247
|
|
|
@@ -292,8 +297,8 @@ export interface TagManagerVariableUpdateResponse {
|
|
|
292
297
|
enabled?: boolean | null;
|
|
293
298
|
|
|
294
299
|
/**
|
|
295
|
-
* Folder this variable belongs to.
|
|
296
|
-
*
|
|
300
|
+
* Folder this variable belongs to. Read-only here; assign or remove folder
|
|
301
|
+
* membership with `POST /tag-manager-asset-folders`.
|
|
297
302
|
*/
|
|
298
303
|
folderId?: string | null;
|
|
299
304
|
|
|
@@ -312,8 +317,14 @@ export interface TagManagerVariableUpdateResponse {
|
|
|
312
317
|
}
|
|
313
318
|
|
|
314
319
|
export interface TagManagerVariableDeleteResponse {
|
|
320
|
+
/**
|
|
321
|
+
* The id of the variable that was deleted.
|
|
322
|
+
*/
|
|
315
323
|
id: string;
|
|
316
324
|
|
|
325
|
+
/**
|
|
326
|
+
* True when the variable was deleted.
|
|
327
|
+
*/
|
|
317
328
|
deleted: boolean;
|
|
318
329
|
}
|
|
319
330
|
|
|
@@ -422,7 +433,8 @@ export namespace TagManagerVariableTypesResponse {
|
|
|
422
433
|
|
|
423
434
|
export interface TagManagerVariableListParams extends CursorParams {
|
|
424
435
|
/**
|
|
425
|
-
* Parent tag manager whose variables should be returned.
|
|
436
|
+
* Parent tag manager whose variables should be returned. Variables are always
|
|
437
|
+
* scoped to one tag manager; discover ids with `GET /tag-managers`.
|
|
426
438
|
*/
|
|
427
439
|
tagManagerId: string;
|
|
428
440
|
}
|
|
@@ -6,6 +6,17 @@ import { RequestOptions } from '../internal/request-options';
|
|
|
6
6
|
import { path } from '../internal/utils/path';
|
|
7
7
|
|
|
8
8
|
export class TagManagers extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Return the HTML to install this tag manager in the page head. Uses its public
|
|
11
|
+
* pixel and the first ready custom domain, or the default CDN. Find the container
|
|
12
|
+
* with GET /rest/v1/tag-managers. Publish its configuration before expecting tags
|
|
13
|
+
* to run. Returns 404 for an unavailable container. Requires API-key scope or
|
|
14
|
+
* current OAuth user permission: tagManagers:find
|
|
15
|
+
*/
|
|
16
|
+
installSnippet(id: string, options?: RequestOptions): APIPromise<TagManagerInstallSnippetResponse> {
|
|
17
|
+
return this._client.get(path`/rest/v1/tag-managers/${id}/install-snippet`, options);
|
|
18
|
+
}
|
|
19
|
+
|
|
9
20
|
/**
|
|
10
21
|
* Create a one-hour link to preview this container’s unpublished tags on your
|
|
11
22
|
* website. Requires permission to view the tag manager. Requires API-key scope or
|
|
@@ -77,6 +88,15 @@ export class TagManagers extends APIResource {
|
|
|
77
88
|
}
|
|
78
89
|
}
|
|
79
90
|
|
|
91
|
+
export interface TagManagerInstallSnippetResponse {
|
|
92
|
+
/**
|
|
93
|
+
* Paste-ready HTML for the page head: main.js followed by tag-manager-init with
|
|
94
|
+
* this container’s public pixel. Uses the first ready custom domain, or the
|
|
95
|
+
* default CDN. Publish the container before expecting tags to run.
|
|
96
|
+
*/
|
|
97
|
+
installScript: string;
|
|
98
|
+
}
|
|
99
|
+
|
|
80
100
|
export interface TagManagerPreviewResponse {
|
|
81
101
|
expiresAt: string;
|
|
82
102
|
|
|
@@ -291,6 +311,7 @@ export interface TagManagerUpdateParams {
|
|
|
291
311
|
|
|
292
312
|
export declare namespace TagManagers {
|
|
293
313
|
export {
|
|
314
|
+
type TagManagerInstallSnippetResponse as TagManagerInstallSnippetResponse,
|
|
294
315
|
type TagManagerPreviewResponse as TagManagerPreviewResponse,
|
|
295
316
|
type TagManagerListResponse as TagManagerListResponse,
|
|
296
317
|
type TagManagerCreateResponse as TagManagerCreateResponse,
|
|
@@ -312,12 +312,12 @@ export namespace TestEventCreateParams {
|
|
|
312
312
|
_ef_transaction_id?: string | null;
|
|
313
313
|
|
|
314
314
|
/**
|
|
315
|
-
* The
|
|
315
|
+
* The total time in milliseconds this tab has been visible since the page loaded
|
|
316
316
|
*/
|
|
317
317
|
activeDuration?: number | null;
|
|
318
318
|
|
|
319
319
|
/**
|
|
320
|
-
* The ad id
|
|
320
|
+
* The ad id detected in the session. This is set by the web sdk automatically.
|
|
321
321
|
*/
|
|
322
322
|
ad_id?: string | null;
|
|
323
323
|
|
|
@@ -327,8 +327,7 @@ export namespace TestEventCreateParams {
|
|
|
327
327
|
admitad_uid?: string | null;
|
|
328
328
|
|
|
329
329
|
/**
|
|
330
|
-
* The adset id
|
|
331
|
-
* automatically.
|
|
330
|
+
* The adset id detected in the session. This is set by the web sdk automatically.
|
|
332
331
|
*/
|
|
333
332
|
adset_id?: string | null;
|
|
334
333
|
|
|
@@ -359,7 +358,7 @@ export namespace TestEventCreateParams {
|
|
|
359
358
|
beeswax_auction_id?: string | null;
|
|
360
359
|
|
|
361
360
|
/**
|
|
362
|
-
* The language of the browser. Ex: en-
|
|
361
|
+
* The language of the browser, lowercased. Ex: en-us
|
|
363
362
|
*/
|
|
364
363
|
browser_language?: string | null;
|
|
365
364
|
|
|
@@ -374,7 +373,7 @@ export namespace TestEventCreateParams {
|
|
|
374
373
|
browser_version?: string | null;
|
|
375
374
|
|
|
376
375
|
/**
|
|
377
|
-
* The campaign id
|
|
376
|
+
* The campaign id detected in the session. This is set by the web sdk
|
|
378
377
|
* automatically.
|
|
379
378
|
*/
|
|
380
379
|
campaign_id?: string | null;
|
|
@@ -390,7 +389,7 @@ export namespace TestEventCreateParams {
|
|
|
390
389
|
clid?: string | null;
|
|
391
390
|
|
|
392
391
|
/**
|
|
393
|
-
* The architecture of the CPU. Ex:
|
|
392
|
+
* The architecture of the CPU. Ex: amd64
|
|
394
393
|
*/
|
|
395
394
|
cpu_architecture?: string | null;
|
|
396
395
|
|
|
@@ -405,7 +404,7 @@ export namespace TestEventCreateParams {
|
|
|
405
404
|
dclid?: string | null;
|
|
406
405
|
|
|
407
406
|
/**
|
|
408
|
-
* The model of the device. Ex: iPhone
|
|
407
|
+
* The model of the device. Ex: iPhone
|
|
409
408
|
*/
|
|
410
409
|
device_model?: string | null;
|
|
411
410
|
|
|
@@ -420,12 +419,14 @@ export namespace TestEventCreateParams {
|
|
|
420
419
|
device_vendor?: string | null;
|
|
421
420
|
|
|
422
421
|
/**
|
|
423
|
-
* The time in milliseconds since the
|
|
422
|
+
* The time in milliseconds since the previous event on this page, or since the web
|
|
423
|
+
* SDK loaded for the first event. Restarts when a hidden tab becomes visible
|
|
424
|
+
* again.
|
|
424
425
|
*/
|
|
425
426
|
duration?: number | null;
|
|
426
427
|
|
|
427
428
|
/**
|
|
428
|
-
* The
|
|
429
|
+
* The browser's encoding. Ex: UTF-8
|
|
429
430
|
*/
|
|
430
431
|
encoding?: string | null;
|
|
431
432
|
|
|
@@ -592,7 +593,7 @@ export namespace TestEventCreateParams {
|
|
|
592
593
|
rdt_cid?: string | null;
|
|
593
594
|
|
|
594
595
|
/**
|
|
595
|
-
* The time
|
|
596
|
+
* The time an Ours server received the event, in ISO 8601 UTC
|
|
596
597
|
*/
|
|
597
598
|
received_at?: string | null;
|
|
598
599
|
|
|
@@ -612,7 +613,7 @@ export namespace TestEventCreateParams {
|
|
|
612
613
|
sacid?: string | null;
|
|
613
614
|
|
|
614
615
|
/**
|
|
615
|
-
* The
|
|
616
|
+
* The Snapchat Click ID. Ex: sccid123
|
|
616
617
|
*/
|
|
617
618
|
sccid?: string | null;
|
|
618
619
|
|
|
@@ -637,6 +638,9 @@ export namespace TestEventCreateParams {
|
|
|
637
638
|
*/
|
|
638
639
|
sid?: string | null;
|
|
639
640
|
|
|
641
|
+
/**
|
|
642
|
+
* The screen resolution as width x height in pixels. Ex: 1920x1080
|
|
643
|
+
*/
|
|
640
644
|
sr?: string | null;
|
|
641
645
|
|
|
642
646
|
/**
|
|
@@ -662,7 +666,8 @@ export namespace TestEventCreateParams {
|
|
|
662
666
|
twclid?: string | null;
|
|
663
667
|
|
|
664
668
|
/**
|
|
665
|
-
*
|
|
669
|
+
* The browser brands and full versions from User-Agent Client Hints, as
|
|
670
|
+
* brand;version pairs separated by |.
|
|
666
671
|
*/
|
|
667
672
|
uafvl?: string | null;
|
|
668
673
|
|