@oursprivacy/platform-sdk 1.49.0 → 1.51.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/package.json +1 -1
- package/resources/analytics.d.mts +62 -0
- package/resources/analytics.d.mts.map +1 -0
- package/resources/analytics.d.ts +62 -0
- package/resources/analytics.d.ts.map +1 -0
- package/resources/analytics.js +25 -0
- package/resources/analytics.js.map +1 -0
- package/resources/analytics.mjs +21 -0
- package/resources/analytics.mjs.map +1 -0
- package/resources/consent-settings.d.mts +9 -0
- package/resources/consent-settings.d.mts.map +1 -1
- package/resources/consent-settings.d.ts +9 -0
- package/resources/consent-settings.d.ts.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/experiments.d.mts +661 -35
- package/resources/experiments.d.mts.map +1 -1
- package/resources/experiments.d.ts +661 -35
- package/resources/experiments.d.ts.map +1 -1
- package/resources/experiments.js +27 -19
- package/resources/experiments.js.map +1 -1
- package/resources/experiments.mjs +27 -19
- package/resources/experiments.mjs.map +1 -1
- package/resources/funnels.d.mts +88 -980
- package/resources/funnels.d.mts.map +1 -1
- package/resources/funnels.d.ts +88 -980
- package/resources/funnels.d.ts.map +1 -1
- package/resources/funnels.js +24 -19
- package/resources/funnels.js.map +1 -1
- package/resources/funnels.mjs +24 -19
- 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/journey-flows.d.mts +4155 -0
- package/resources/journey-flows.d.mts.map +1 -0
- package/resources/journey-flows.d.ts +4155 -0
- package/resources/journey-flows.d.ts.map +1 -0
- package/resources/journey-flows.js +90 -0
- package/resources/journey-flows.js.map +1 -0
- package/resources/journey-flows.mjs +86 -0
- package/resources/journey-flows.mjs.map +1 -0
- package/resources/short-links.d.mts +40 -0
- package/resources/short-links.d.mts.map +1 -1
- package/resources/short-links.d.ts +40 -0
- package/resources/short-links.d.ts.map +1 -1
- package/resources/sources.d.mts +20 -0
- package/resources/sources.d.mts.map +1 -1
- package/resources/sources.d.ts +20 -0
- package/resources/sources.d.ts.map +1 -1
- package/resources/test-events.d.mts +203 -0
- package/resources/test-events.d.mts.map +1 -0
- package/resources/test-events.d.ts +203 -0
- package/resources/test-events.d.ts.map +1 -0
- package/resources/test-events.js +87 -0
- package/resources/test-events.js.map +1 -0
- package/resources/test-events.mjs +83 -0
- package/resources/test-events.mjs.map +1 -0
- package/resources/video-channels.d.mts +13 -0
- package/resources/video-channels.d.mts.map +1 -1
- package/resources/video-channels.d.ts +13 -0
- package/resources/video-channels.d.ts.map +1 -1
- package/resources/videos.d.mts +160 -2
- package/resources/videos.d.mts.map +1 -1
- package/resources/videos.d.ts +160 -2
- package/resources/videos.d.ts.map +1 -1
- package/resources/videos.js +32 -2
- package/resources/videos.js.map +1 -1
- package/resources/videos.mjs +32 -2
- package/resources/videos.mjs.map +1 -1
- package/resources/web-analytics.d.mts +9 -9
- package/resources/web-analytics.d.mts.map +1 -1
- package/resources/web-analytics.d.ts +9 -9
- package/resources/web-analytics.d.ts.map +1 -1
- package/resources/web-analytics.js +2 -2
- package/resources/web-analytics.js.map +1 -1
- package/resources/web-analytics.mjs +2 -2
- package/resources/web-analytics.mjs.map +1 -1
- package/resources/web-scanners.d.mts +156 -17
- package/resources/web-scanners.d.mts.map +1 -1
- package/resources/web-scanners.d.ts +156 -17
- package/resources/web-scanners.d.ts.map +1 -1
- package/resources/web-scanners.js +59 -14
- package/resources/web-scanners.js.map +1 -1
- package/resources/web-scanners.mjs +59 -14
- package/resources/web-scanners.mjs.map +1 -1
- package/src/client.ts +103 -4
- package/src/resources/analytics.ts +98 -0
- package/src/resources/consent-settings.ts +16 -0
- package/src/resources/destinations.ts +7 -0
- package/src/resources/experiments.ts +808 -35
- package/src/resources/funnels.ts +114 -1616
- package/src/resources/index.ts +47 -2
- package/src/resources/journey-flows.ts +8244 -0
- package/src/resources/short-links.ts +47 -0
- package/src/resources/sources.ts +24 -0
- package/src/resources/test-events.ts +286 -0
- package/src/resources/video-channels.ts +22 -0
- package/src/resources/videos.ts +279 -2
- package/src/resources/web-analytics.ts +13 -13
- package/src/resources/web-scanners.ts +247 -16
- 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
|
@@ -151,6 +151,13 @@ export interface ShortLinkListResponse {
|
|
|
151
151
|
|
|
152
152
|
createdAt: string;
|
|
153
153
|
|
|
154
|
+
/**
|
|
155
|
+
* Whether saved published design campaign tags are added to the destination when
|
|
156
|
+
* enabled. Existing destination UTMs stay unchanged. Defaults to true for new
|
|
157
|
+
* short links and false for existing links without a stored setting.
|
|
158
|
+
*/
|
|
159
|
+
forwardUtmToDestination: boolean;
|
|
160
|
+
|
|
154
161
|
status: 'Disabled' | 'Enabled';
|
|
155
162
|
|
|
156
163
|
/**
|
|
@@ -206,6 +213,13 @@ export interface ShortLinkCreateResponse {
|
|
|
206
213
|
|
|
207
214
|
createdAt: string;
|
|
208
215
|
|
|
216
|
+
/**
|
|
217
|
+
* Whether saved published design campaign tags are added to the destination when
|
|
218
|
+
* enabled. Existing destination UTMs stay unchanged. Defaults to true for new
|
|
219
|
+
* short links and false for existing links without a stored setting.
|
|
220
|
+
*/
|
|
221
|
+
forwardUtmToDestination: boolean;
|
|
222
|
+
|
|
209
223
|
status: 'Disabled' | 'Enabled';
|
|
210
224
|
|
|
211
225
|
/**
|
|
@@ -261,6 +275,13 @@ export interface ShortLinkRetrieveResponse {
|
|
|
261
275
|
|
|
262
276
|
createdAt: string;
|
|
263
277
|
|
|
278
|
+
/**
|
|
279
|
+
* Whether saved published design campaign tags are added to the destination when
|
|
280
|
+
* enabled. Existing destination UTMs stay unchanged. Defaults to true for new
|
|
281
|
+
* short links and false for existing links without a stored setting.
|
|
282
|
+
*/
|
|
283
|
+
forwardUtmToDestination: boolean;
|
|
284
|
+
|
|
264
285
|
status: 'Disabled' | 'Enabled';
|
|
265
286
|
|
|
266
287
|
/**
|
|
@@ -316,6 +337,13 @@ export interface ShortLinkUpdateResponse {
|
|
|
316
337
|
|
|
317
338
|
createdAt: string;
|
|
318
339
|
|
|
340
|
+
/**
|
|
341
|
+
* Whether saved published design campaign tags are added to the destination when
|
|
342
|
+
* enabled. Existing destination UTMs stay unchanged. Defaults to true for new
|
|
343
|
+
* short links and false for existing links without a stored setting.
|
|
344
|
+
*/
|
|
345
|
+
forwardUtmToDestination: boolean;
|
|
346
|
+
|
|
319
347
|
status: 'Disabled' | 'Enabled';
|
|
320
348
|
|
|
321
349
|
/**
|
|
@@ -375,6 +403,13 @@ export interface ShortLinkCloneResponse {
|
|
|
375
403
|
|
|
376
404
|
createdAt: string;
|
|
377
405
|
|
|
406
|
+
/**
|
|
407
|
+
* Whether saved published design campaign tags are added to the destination when
|
|
408
|
+
* enabled. Existing destination UTMs stay unchanged. Defaults to true for new
|
|
409
|
+
* short links and false for existing links without a stored setting.
|
|
410
|
+
*/
|
|
411
|
+
forwardUtmToDestination: boolean;
|
|
412
|
+
|
|
378
413
|
status: 'Disabled' | 'Enabled';
|
|
379
414
|
|
|
380
415
|
/**
|
|
@@ -491,6 +526,12 @@ export interface ShortLinkCreateParams {
|
|
|
491
526
|
*/
|
|
492
527
|
code?: string | null;
|
|
493
528
|
|
|
529
|
+
/**
|
|
530
|
+
* When enabled, add saved published design campaign tags to the destination after
|
|
531
|
+
* publishing. Defaults to true when omitted; null is rejected.
|
|
532
|
+
*/
|
|
533
|
+
forwardUtmToDestination?: boolean;
|
|
534
|
+
|
|
494
535
|
/**
|
|
495
536
|
* Human-readable name. Also sent as the tracked event name on every click/scan.
|
|
496
537
|
*/
|
|
@@ -515,6 +556,12 @@ export interface ShortLinkCreateParams {
|
|
|
515
556
|
export interface ShortLinkUpdateParams {
|
|
516
557
|
code?: string | null;
|
|
517
558
|
|
|
559
|
+
/**
|
|
560
|
+
* When enabled, add saved published design campaign tags to the destination after
|
|
561
|
+
* publishing. Omit to leave unchanged; null is rejected.
|
|
562
|
+
*/
|
|
563
|
+
forwardUtmToDestination?: boolean;
|
|
564
|
+
|
|
518
565
|
name?: string | null;
|
|
519
566
|
|
|
520
567
|
qr?: unknown | null;
|
package/src/resources/sources.ts
CHANGED
|
@@ -77,6 +77,12 @@ export interface SourceListResponse {
|
|
|
77
77
|
|
|
78
78
|
createdAt: string;
|
|
79
79
|
|
|
80
|
+
/**
|
|
81
|
+
* Whether published short-link campaign tags are forwarded to missing destination
|
|
82
|
+
* UTM keys. Existing sources default to false.
|
|
83
|
+
*/
|
|
84
|
+
forwardUtmToDestination: boolean;
|
|
85
|
+
|
|
80
86
|
status: 'Disabled' | 'Enabled';
|
|
81
87
|
|
|
82
88
|
type:
|
|
@@ -168,6 +174,12 @@ export interface SourceCreateResponse {
|
|
|
168
174
|
|
|
169
175
|
createdAt: string;
|
|
170
176
|
|
|
177
|
+
/**
|
|
178
|
+
* Whether published short-link campaign tags are forwarded to missing destination
|
|
179
|
+
* UTM keys. Existing sources default to false.
|
|
180
|
+
*/
|
|
181
|
+
forwardUtmToDestination: boolean;
|
|
182
|
+
|
|
171
183
|
status: 'Disabled' | 'Enabled';
|
|
172
184
|
|
|
173
185
|
type:
|
|
@@ -259,6 +271,12 @@ export interface SourceRetrieveResponse {
|
|
|
259
271
|
|
|
260
272
|
createdAt: string;
|
|
261
273
|
|
|
274
|
+
/**
|
|
275
|
+
* Whether published short-link campaign tags are forwarded to missing destination
|
|
276
|
+
* UTM keys. Existing sources default to false.
|
|
277
|
+
*/
|
|
278
|
+
forwardUtmToDestination: boolean;
|
|
279
|
+
|
|
262
280
|
status: 'Disabled' | 'Enabled';
|
|
263
281
|
|
|
264
282
|
type:
|
|
@@ -350,6 +368,12 @@ export interface SourceUpdateResponse {
|
|
|
350
368
|
|
|
351
369
|
createdAt: string;
|
|
352
370
|
|
|
371
|
+
/**
|
|
372
|
+
* Whether published short-link campaign tags are forwarded to missing destination
|
|
373
|
+
* UTM keys. Existing sources default to false.
|
|
374
|
+
*/
|
|
375
|
+
forwardUtmToDestination: boolean;
|
|
376
|
+
|
|
353
377
|
status: 'Disabled' | 'Enabled';
|
|
354
378
|
|
|
355
379
|
type:
|
|
@@ -0,0 +1,286 @@
|
|
|
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 { Cursor, type CursorParams, PagePromise } from '../core/pagination';
|
|
6
|
+
import { RequestOptions } from '../internal/request-options';
|
|
7
|
+
import { path } from '../internal/utils/path';
|
|
8
|
+
|
|
9
|
+
export class TestEvents extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* List browser, server, and synthetic events captured with debug mode during the
|
|
12
|
+
* last 48 hours, newest received first. Includes live-token events as well as
|
|
13
|
+
* synthetic test events; `isTestEvent` distinguishes them. Returns full event
|
|
14
|
+
* properties. Pass an entity id unchanged to the detail or dispatch endpoint. Use
|
|
15
|
+
* `limit` (default 25, maximum 100) and `cursor` to page through results. Requires
|
|
16
|
+
* scope: report:list-events
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```ts
|
|
20
|
+
* // Automatically fetches more pages as needed.
|
|
21
|
+
* for await (const testEventListResponse of client.testEvents.list()) {
|
|
22
|
+
* // ...
|
|
23
|
+
* }
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
list(
|
|
27
|
+
query: TestEventListParams | null | undefined = {},
|
|
28
|
+
options?: RequestOptions,
|
|
29
|
+
): PagePromise<TestEventListResponsesCursor, TestEventListResponse> {
|
|
30
|
+
return this._client.getAPIList('/rest/v1/test-events', Cursor<TestEventListResponse>, {
|
|
31
|
+
query,
|
|
32
|
+
...options,
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Send a test event through the same processing your production events go through,
|
|
38
|
+
* without delivering it to any destination. The response acknowledges acceptance
|
|
39
|
+
* for processing; it does not contain processing results. The event is captured in
|
|
40
|
+
* Recent Events. Use the returned `id` with
|
|
41
|
+
* `GET /rest/v1/test-events/{id}/dispatches` to retrieve recorded dispatches.
|
|
42
|
+
* Supply `visitorId` and `distinctId` to choose the identity yourself; otherwise
|
|
43
|
+
* they are generated and returned. Requires scope: test-event:create
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```ts
|
|
47
|
+
* const testEvent = await client.testEvents.create({
|
|
48
|
+
* eventName: 'Purchase',
|
|
49
|
+
* });
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
create(body: TestEventCreateParams, options?: RequestOptions): APIPromise<TestEventCreateResponse> {
|
|
53
|
+
return this._client.post('/rest/v1/test-events', { body, ...options });
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Retrieve one browser, server, or synthetic event captured in debug mode within
|
|
58
|
+
* the last 48 hours. Use an id returned by the create or list endpoint. Events
|
|
59
|
+
* that have not arrived, expired events, and events outside your account
|
|
60
|
+
* return 404. Requires scope: report:view-event
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* ```ts
|
|
64
|
+
* const testEvent = await client.testEvents.retrieve(
|
|
65
|
+
* 'a1b2c3d4:ck9x8y7z6w5v4u3t',
|
|
66
|
+
* );
|
|
67
|
+
* ```
|
|
68
|
+
*/
|
|
69
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<TestEventRetrieveResponse> {
|
|
70
|
+
return this._client.get(path`/rest/v1/test-events/${id}`, options);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Retrieve dispatches recorded for a debug-captured browser, server, or synthetic
|
|
75
|
+
* event. Use an id returned by the create or list endpoint. The entities array
|
|
76
|
+
* contains mapped payloads and recorded success or failure details. It is empty
|
|
77
|
+
* until dispatch records arrive, and may remain empty when no dispatch occurs.
|
|
78
|
+
* Results can grow as processing continues; this endpoint does not predict
|
|
79
|
+
* destinations or signal completion. Requires the report:view-dispatch scope.
|
|
80
|
+
* Requires scope: report:view-dispatch
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* ```ts
|
|
84
|
+
* const response = await client.testEvents.dispatches(
|
|
85
|
+
* 'a1b2c3d4:ck9x8y7z6w5v4u3t',
|
|
86
|
+
* );
|
|
87
|
+
* ```
|
|
88
|
+
*/
|
|
89
|
+
dispatches(id: string, options?: RequestOptions): APIPromise<TestEventDispatchesResponse> {
|
|
90
|
+
return this._client.get(path`/rest/v1/test-events/${id}/dispatches`, options);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export type TestEventListResponsesCursor = Cursor<TestEventListResponse>;
|
|
95
|
+
|
|
96
|
+
export interface TestEventListResponse {
|
|
97
|
+
id: string;
|
|
98
|
+
|
|
99
|
+
distinctId: string;
|
|
100
|
+
|
|
101
|
+
eventName: string;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Whether the event used a test token. Debug-captured live-token events have false
|
|
105
|
+
* here.
|
|
106
|
+
*/
|
|
107
|
+
isTestEvent: boolean;
|
|
108
|
+
|
|
109
|
+
time: string;
|
|
110
|
+
|
|
111
|
+
visitorId: string;
|
|
112
|
+
|
|
113
|
+
defaultProperties?: unknown | null;
|
|
114
|
+
|
|
115
|
+
eventProperties?: unknown | null;
|
|
116
|
+
|
|
117
|
+
rawData?: string | null;
|
|
118
|
+
|
|
119
|
+
requestContext?: unknown | null;
|
|
120
|
+
|
|
121
|
+
sourceId?: string | null;
|
|
122
|
+
|
|
123
|
+
sourceName?: string | null;
|
|
124
|
+
|
|
125
|
+
sourceType?: string | null;
|
|
126
|
+
|
|
127
|
+
userProperties?: unknown | null;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export interface TestEventCreateResponse {
|
|
131
|
+
/**
|
|
132
|
+
* Identifier to pass to the event detail or dispatch endpoint.
|
|
133
|
+
*/
|
|
134
|
+
id: string;
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* When the event was accepted for processing, as an ISO 8601 timestamp.
|
|
138
|
+
*/
|
|
139
|
+
acceptedAt: string;
|
|
140
|
+
|
|
141
|
+
distinctId: string;
|
|
142
|
+
|
|
143
|
+
eventName: string;
|
|
144
|
+
|
|
145
|
+
sourceId: string;
|
|
146
|
+
|
|
147
|
+
visitorId: string;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
export interface TestEventRetrieveResponse {
|
|
151
|
+
id: string;
|
|
152
|
+
|
|
153
|
+
distinctId: string;
|
|
154
|
+
|
|
155
|
+
eventName: string;
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Whether the event used a test token. Debug-captured live-token events have false
|
|
159
|
+
* here.
|
|
160
|
+
*/
|
|
161
|
+
isTestEvent: boolean;
|
|
162
|
+
|
|
163
|
+
time: string;
|
|
164
|
+
|
|
165
|
+
visitorId: string;
|
|
166
|
+
|
|
167
|
+
defaultProperties?: unknown | null;
|
|
168
|
+
|
|
169
|
+
eventProperties?: unknown | null;
|
|
170
|
+
|
|
171
|
+
rawData?: string | null;
|
|
172
|
+
|
|
173
|
+
requestContext?: unknown | null;
|
|
174
|
+
|
|
175
|
+
sourceId?: string | null;
|
|
176
|
+
|
|
177
|
+
sourceName?: string | null;
|
|
178
|
+
|
|
179
|
+
sourceType?: string | null;
|
|
180
|
+
|
|
181
|
+
userProperties?: unknown | null;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
export interface TestEventDispatchesResponse {
|
|
185
|
+
id: string;
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* Dispatches recorded so far. Empty until dispatches arrive; no predicted
|
|
189
|
+
* destinations or completion signal. Synthetic events are never delivered live.
|
|
190
|
+
*/
|
|
191
|
+
entities: Array<TestEventDispatchesResponse.Entity>;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
export namespace TestEventDispatchesResponse {
|
|
195
|
+
export interface Entity {
|
|
196
|
+
destinationId: string;
|
|
197
|
+
|
|
198
|
+
allowedEventId?: string | null;
|
|
199
|
+
|
|
200
|
+
allowedEventName?: string | null;
|
|
201
|
+
|
|
202
|
+
destinationName?: string | null;
|
|
203
|
+
|
|
204
|
+
destinationType?: string | null;
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* When the send was attempted, as an ISO 8601 timestamp.
|
|
208
|
+
*/
|
|
209
|
+
dispatchedAt?: string | null;
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* When the destination accepted the send, as an ISO 8601 timestamp.
|
|
213
|
+
*/
|
|
214
|
+
dispatchedSuccessAt?: string | null;
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* Failure detail when `success` is false.
|
|
218
|
+
*/
|
|
219
|
+
message?: string | null;
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* The mapped payload recorded for this dispatch.
|
|
223
|
+
*/
|
|
224
|
+
payload?: unknown | null;
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* Whether this send succeeded. Null while the attempt is still in flight.
|
|
228
|
+
*/
|
|
229
|
+
success?: boolean | null;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
export interface TestEventListParams extends CursorParams {}
|
|
234
|
+
|
|
235
|
+
export interface TestEventCreateParams {
|
|
236
|
+
/**
|
|
237
|
+
* Name of the event to send, matching an event name configured on this account.
|
|
238
|
+
*/
|
|
239
|
+
eventName: string;
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* Context properties normally collected automatically, such as page URL or
|
|
243
|
+
* referrer.
|
|
244
|
+
*/
|
|
245
|
+
defaultProperties?: unknown | null;
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* Event identity for this specific event. Generated when omitted. Letters,
|
|
249
|
+
* numbers, hyphens, and underscores only.
|
|
250
|
+
*/
|
|
251
|
+
distinctId?: string | null;
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* Event-level properties available to destination mappings.
|
|
255
|
+
*/
|
|
256
|
+
eventProperties?: unknown | null;
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* Source to attribute the event to. Defaults to the account's first enabled source
|
|
260
|
+
* that accepts events over the API.
|
|
261
|
+
*/
|
|
262
|
+
sourceId?: string | null;
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* Person-level properties available to destination mappings.
|
|
266
|
+
*/
|
|
267
|
+
userProperties?: unknown | null;
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* Visitor identity to send the event as. Generated when omitted. Letters, numbers,
|
|
271
|
+
* hyphens, and underscores only.
|
|
272
|
+
*/
|
|
273
|
+
visitorId?: string | null;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
export declare namespace TestEvents {
|
|
277
|
+
export {
|
|
278
|
+
type TestEventListResponse as TestEventListResponse,
|
|
279
|
+
type TestEventCreateResponse as TestEventCreateResponse,
|
|
280
|
+
type TestEventRetrieveResponse as TestEventRetrieveResponse,
|
|
281
|
+
type TestEventDispatchesResponse as TestEventDispatchesResponse,
|
|
282
|
+
type TestEventListResponsesCursor as TestEventListResponsesCursor,
|
|
283
|
+
type TestEventListParams as TestEventListParams,
|
|
284
|
+
type TestEventCreateParams as TestEventCreateParams,
|
|
285
|
+
};
|
|
286
|
+
}
|
|
@@ -231,6 +231,8 @@ export namespace VideoChannelMediaResponse {
|
|
|
231
231
|
|
|
232
232
|
accountId: string;
|
|
233
233
|
|
|
234
|
+
captionTracks: Array<Entity.CaptionTrack>;
|
|
235
|
+
|
|
234
236
|
createdAt: string;
|
|
235
237
|
|
|
236
238
|
type: 'Video';
|
|
@@ -249,10 +251,30 @@ export namespace VideoChannelMediaResponse {
|
|
|
249
251
|
|
|
250
252
|
name?: string | null;
|
|
251
253
|
|
|
254
|
+
sourceLanguageCode?: string | null;
|
|
255
|
+
|
|
252
256
|
updatedAt?: string | null;
|
|
253
257
|
|
|
254
258
|
width?: number | null;
|
|
255
259
|
}
|
|
260
|
+
|
|
261
|
+
export namespace Entity {
|
|
262
|
+
export interface CaptionTrack {
|
|
263
|
+
isMachineTranslated: boolean;
|
|
264
|
+
|
|
265
|
+
label: string;
|
|
266
|
+
|
|
267
|
+
languageCode: string;
|
|
268
|
+
|
|
269
|
+
origin: string;
|
|
270
|
+
|
|
271
|
+
status: string;
|
|
272
|
+
|
|
273
|
+
url: string;
|
|
274
|
+
|
|
275
|
+
humanEditedAt?: string | null;
|
|
276
|
+
}
|
|
277
|
+
}
|
|
256
278
|
}
|
|
257
279
|
|
|
258
280
|
export interface VideoChannelAssignMediaResponse {
|