@ogcio/analytics-sdk 0.0.1-beta.4 → 0.1.0-beta.5

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 (33) hide show
  1. package/dist/base/base-client.d.ts +1 -1
  2. package/dist/base/base-client.d.ts.map +1 -1
  3. package/dist/base/base-client.js +3 -0
  4. package/dist/base/base-client.js.map +1 -1
  5. package/dist/index.d.ts +245 -362
  6. package/dist/index.d.ts.map +1 -1
  7. package/dist/index.js +275 -73
  8. package/dist/index.js.map +1 -1
  9. package/dist/matomo/helpers.d.ts.map +1 -1
  10. package/dist/matomo/helpers.js +18 -20
  11. package/dist/matomo/helpers.js.map +1 -1
  12. package/dist/schema.d.ts +551 -158
  13. package/dist/schema.d.ts.map +1 -1
  14. package/dist/support-files/auth/index.d.ts.map +1 -1
  15. package/dist/support-files/auth/index.js +3 -0
  16. package/dist/support-files/auth/index.js.map +1 -1
  17. package/dist/support-files/building-blocks-sdk.d.ts +1 -1
  18. package/dist/support-files/building-blocks-sdk.d.ts.map +1 -1
  19. package/dist/support-files/building-blocks-sdk.js +2 -0
  20. package/dist/support-files/building-blocks-sdk.js.map +1 -1
  21. package/dist/tests/testUtils/api.mock.handlers.d.ts +2 -0
  22. package/dist/tests/testUtils/api.mock.handlers.d.ts.map +1 -0
  23. package/dist/tests/testUtils/api.mock.handlers.js +41 -0
  24. package/dist/tests/testUtils/api.mock.handlers.js.map +1 -0
  25. package/dist/tests/testUtils/setup.mock.d.ts +17 -0
  26. package/dist/tests/testUtils/setup.mock.d.ts.map +1 -0
  27. package/dist/tests/testUtils/setup.mock.js +82 -0
  28. package/dist/tests/testUtils/setup.mock.js.map +1 -0
  29. package/dist/tests/testUtils/wait-request.d.ts +2 -0
  30. package/dist/tests/testUtils/wait-request.d.ts.map +1 -0
  31. package/dist/tests/testUtils/wait-request.js +2 -0
  32. package/dist/tests/testUtils/wait-request.js.map +1 -0
  33. package/package.json +2 -1
package/dist/schema.d.ts CHANGED
@@ -28,47 +28,78 @@ export interface paths {
28
28
  content: {
29
29
  "application/json": {
30
30
  data: {
31
+ siteIds: number[] & number[];
31
32
  /** @description The tracker url of the website */
32
- tracker_url: string;
33
+ trackerUrl: string;
33
34
  /** @description Set cookieless if you want to track without cookies (GDPR compliance) */
34
35
  cookieless: boolean;
35
36
  /** @description Bypass adblockers using custom tracker url */
36
- bypass_adblockers: boolean;
37
+ bypassAdblockers: boolean;
37
38
  /** @description Whether to track page views automatically when the JavaScript tracking code loads */
38
- track_page_view: boolean;
39
+ trackPageView: boolean;
39
40
  /** @description Whether to enable automatic tracking of outlinks and downloads */
40
- link_tracking: boolean;
41
+ linkTracking: boolean;
41
42
  /** @description Set the heart beat timer (in seconds) to track how much time users spend on pages */
42
- heart_beat_timer: number;
43
+ heartBeatTimer: number;
43
44
  /** @description Whether to detect browser features like cookies, Java, Flash for visitor segmentation */
44
- browser_feature_detection: boolean;
45
+ browserFeatureDetection: boolean;
45
46
  /** @description Whether to track bots and spiders. Default is false. */
46
- track_bots: boolean;
47
- custom_dimensions: {
48
- [key: string]: string;
49
- } & {
50
- [key: string]: string;
51
- };
47
+ trackBots: boolean;
52
48
  /**
53
49
  * Format: uuid
54
- * @description The UUID of the website config
50
+ * @description Optional UUID for the website config. If not provided, a new UUID7 will be generated.
55
51
  */
56
52
  id: string;
57
53
  /** @description The name of the website config */
58
54
  name: string;
59
55
  /** @description The domain of the website config */
60
56
  domain: string;
61
- site_ids: number[];
62
57
  /** @description The organization ID of the website config, used for multi-tenant support adopting the org-id of logto */
63
- organization_id: string;
58
+ organizationId: string;
64
59
  /** @description The creation date of the website config */
65
- created_at: string;
60
+ createdAt: string;
66
61
  /** @description The update date of the website config */
67
- updated_at: string;
62
+ updatedAt: string;
63
+ /**
64
+ * @description Custom dimensions example: { 'dimension1': 'value1', 'dimension2': 'value2' }
65
+ * @example {
66
+ * "dimension1": "value1",
67
+ * "dimension2": "value2"
68
+ * }
69
+ */
70
+ customDimensions: {
71
+ [key: string]: string;
72
+ };
68
73
  }[];
69
74
  };
70
75
  };
71
76
  };
77
+ /** @description Default Response */
78
+ "4XX": {
79
+ headers: {
80
+ [name: string]: unknown;
81
+ };
82
+ content: {
83
+ "application/json": {
84
+ code: string;
85
+ detail: string;
86
+ name: string;
87
+ };
88
+ };
89
+ };
90
+ /** @description Default Response */
91
+ "5XX": {
92
+ headers: {
93
+ [name: string]: unknown;
94
+ };
95
+ content: {
96
+ "application/json": {
97
+ code: string;
98
+ detail: string;
99
+ name: string;
100
+ };
101
+ };
102
+ };
72
103
  };
73
104
  };
74
105
  put?: never;
@@ -85,37 +116,33 @@ export interface paths {
85
116
  requestBody: {
86
117
  content: {
87
118
  "application/json": {
88
- /** @description The tracker url of the website */
89
- tracker_url: string;
90
- /** @description Set cookieless if you want to track without cookies (GDPR compliance) */
119
+ siteIds: number[] & (number[] & number[]);
120
+ trackerUrl: string;
91
121
  cookieless: boolean;
92
- /** @description Bypass adblockers using custom tracker url */
93
- bypass_adblockers: boolean;
94
- /** @description Whether to track page views automatically when the JavaScript tracking code loads */
95
- track_page_view: boolean;
96
- /** @description Whether to enable automatic tracking of outlinks and downloads */
97
- link_tracking: boolean;
98
- /** @description Set the heart beat timer (in seconds) to track how much time users spend on pages */
99
- heart_beat_timer: number;
100
- /** @description Whether to detect browser features like cookies, Java, Flash for visitor segmentation */
101
- browser_feature_detection: boolean;
102
- /** @description Whether to track bots and spiders. Default is false. */
103
- track_bots: boolean;
104
- custom_dimensions: {
105
- [key: string]: string;
106
- } & {
107
- [key: string]: string;
108
- };
122
+ bypassAdblockers: boolean;
123
+ trackPageView: boolean;
124
+ linkTracking: boolean;
125
+ heartBeatTimer: number;
126
+ browserFeatureDetection: boolean;
127
+ trackBots: boolean;
109
128
  /** @description The name of the website config */
110
129
  name: string;
111
130
  /** @description The domain of the website config */
112
131
  domain: string;
113
- site_ids: number[];
114
132
  /**
115
- * Format: uuid
116
- * @description Optional UUID for the website config. If not provided, a new UUID7 will be generated.
133
+ * @description Custom dimensions example: { 'dimension1': 'value1', 'dimension2': 'value2' }
134
+ * @example {
135
+ * "dimension1": "value1",
136
+ * "dimension2": "value2"
137
+ * }
117
138
  */
139
+ customDimensions: {
140
+ [key: string]: string;
141
+ };
142
+ /** Format: uuid */
118
143
  id?: string;
144
+ /** @description The organization ID of the website config, used for multi-tenant support adopting the org-id of logto */
145
+ organizationId?: string;
119
146
  };
120
147
  };
121
148
  };
@@ -128,47 +155,78 @@ export interface paths {
128
155
  content: {
129
156
  "application/json": {
130
157
  data: {
158
+ siteIds: number[] & number[];
131
159
  /** @description The tracker url of the website */
132
- tracker_url: string;
160
+ trackerUrl: string;
133
161
  /** @description Set cookieless if you want to track without cookies (GDPR compliance) */
134
162
  cookieless: boolean;
135
163
  /** @description Bypass adblockers using custom tracker url */
136
- bypass_adblockers: boolean;
164
+ bypassAdblockers: boolean;
137
165
  /** @description Whether to track page views automatically when the JavaScript tracking code loads */
138
- track_page_view: boolean;
166
+ trackPageView: boolean;
139
167
  /** @description Whether to enable automatic tracking of outlinks and downloads */
140
- link_tracking: boolean;
168
+ linkTracking: boolean;
141
169
  /** @description Set the heart beat timer (in seconds) to track how much time users spend on pages */
142
- heart_beat_timer: number;
170
+ heartBeatTimer: number;
143
171
  /** @description Whether to detect browser features like cookies, Java, Flash for visitor segmentation */
144
- browser_feature_detection: boolean;
172
+ browserFeatureDetection: boolean;
145
173
  /** @description Whether to track bots and spiders. Default is false. */
146
- track_bots: boolean;
147
- custom_dimensions: {
148
- [key: string]: string;
149
- } & {
150
- [key: string]: string;
151
- };
174
+ trackBots: boolean;
152
175
  /**
153
176
  * Format: uuid
154
- * @description The UUID of the website config
177
+ * @description Optional UUID for the website config. If not provided, a new UUID7 will be generated.
155
178
  */
156
179
  id: string;
157
180
  /** @description The name of the website config */
158
181
  name: string;
159
182
  /** @description The domain of the website config */
160
183
  domain: string;
161
- site_ids: number[];
162
184
  /** @description The organization ID of the website config, used for multi-tenant support adopting the org-id of logto */
163
- organization_id: string;
185
+ organizationId: string;
164
186
  /** @description The creation date of the website config */
165
- created_at: string;
187
+ createdAt: string;
166
188
  /** @description The update date of the website config */
167
- updated_at: string;
189
+ updatedAt: string;
190
+ /**
191
+ * @description Custom dimensions example: { 'dimension1': 'value1', 'dimension2': 'value2' }
192
+ * @example {
193
+ * "dimension1": "value1",
194
+ * "dimension2": "value2"
195
+ * }
196
+ */
197
+ customDimensions: {
198
+ [key: string]: string;
199
+ };
168
200
  };
169
201
  };
170
202
  };
171
203
  };
204
+ /** @description Default Response */
205
+ "4XX": {
206
+ headers: {
207
+ [name: string]: unknown;
208
+ };
209
+ content: {
210
+ "application/json": {
211
+ code: string;
212
+ detail: string;
213
+ name: string;
214
+ };
215
+ };
216
+ };
217
+ /** @description Default Response */
218
+ "5XX": {
219
+ headers: {
220
+ [name: string]: unknown;
221
+ };
222
+ content: {
223
+ "application/json": {
224
+ code: string;
225
+ detail: string;
226
+ name: string;
227
+ };
228
+ };
229
+ };
172
230
  };
173
231
  };
174
232
  delete?: never;
@@ -189,7 +247,7 @@ export interface paths {
189
247
  parameters: {
190
248
  query?: {
191
249
  /** @description Organization ID is only required when the user is not logged in, otherwise the organization ID is retrieved from the user data. */
192
- org_id?: string;
250
+ orgId?: string;
193
251
  };
194
252
  header?: never;
195
253
  path: {
@@ -208,47 +266,78 @@ export interface paths {
208
266
  content: {
209
267
  "application/json": {
210
268
  data: {
269
+ siteIds: number[] & number[];
211
270
  /** @description The tracker url of the website */
212
- tracker_url: string;
271
+ trackerUrl: string;
213
272
  /** @description Set cookieless if you want to track without cookies (GDPR compliance) */
214
273
  cookieless: boolean;
215
274
  /** @description Bypass adblockers using custom tracker url */
216
- bypass_adblockers: boolean;
275
+ bypassAdblockers: boolean;
217
276
  /** @description Whether to track page views automatically when the JavaScript tracking code loads */
218
- track_page_view: boolean;
277
+ trackPageView: boolean;
219
278
  /** @description Whether to enable automatic tracking of outlinks and downloads */
220
- link_tracking: boolean;
279
+ linkTracking: boolean;
221
280
  /** @description Set the heart beat timer (in seconds) to track how much time users spend on pages */
222
- heart_beat_timer: number;
281
+ heartBeatTimer: number;
223
282
  /** @description Whether to detect browser features like cookies, Java, Flash for visitor segmentation */
224
- browser_feature_detection: boolean;
283
+ browserFeatureDetection: boolean;
225
284
  /** @description Whether to track bots and spiders. Default is false. */
226
- track_bots: boolean;
227
- custom_dimensions: {
228
- [key: string]: string;
229
- } & {
230
- [key: string]: string;
231
- };
285
+ trackBots: boolean;
232
286
  /**
233
287
  * Format: uuid
234
- * @description The UUID of the website config
288
+ * @description Optional UUID for the website config. If not provided, a new UUID7 will be generated.
235
289
  */
236
290
  id: string;
237
291
  /** @description The name of the website config */
238
292
  name: string;
239
293
  /** @description The domain of the website config */
240
294
  domain: string;
241
- site_ids: number[];
242
295
  /** @description The organization ID of the website config, used for multi-tenant support adopting the org-id of logto */
243
- organization_id: string;
296
+ organizationId: string;
244
297
  /** @description The creation date of the website config */
245
- created_at: string;
298
+ createdAt: string;
246
299
  /** @description The update date of the website config */
247
- updated_at: string;
300
+ updatedAt: string;
301
+ /**
302
+ * @description Custom dimensions example: { 'dimension1': 'value1', 'dimension2': 'value2' }
303
+ * @example {
304
+ * "dimension1": "value1",
305
+ * "dimension2": "value2"
306
+ * }
307
+ */
308
+ customDimensions: {
309
+ [key: string]: string;
310
+ };
248
311
  };
249
312
  };
250
313
  };
251
314
  };
315
+ /** @description Default Response */
316
+ "4XX": {
317
+ headers: {
318
+ [name: string]: unknown;
319
+ };
320
+ content: {
321
+ "application/json": {
322
+ code: string;
323
+ detail: string;
324
+ name: string;
325
+ };
326
+ };
327
+ };
328
+ /** @description Default Response */
329
+ "5XX": {
330
+ headers: {
331
+ [name: string]: unknown;
332
+ };
333
+ content: {
334
+ "application/json": {
335
+ code: string;
336
+ detail: string;
337
+ name: string;
338
+ };
339
+ };
340
+ };
252
341
  };
253
342
  };
254
343
  put?: never;
@@ -272,32 +361,31 @@ export interface paths {
272
361
  requestBody?: {
273
362
  content: {
274
363
  "application/json": {
275
- /** @description The tracker url of the website */
276
- tracker_url?: string;
277
- /** @description Set cookieless if you want to track without cookies (GDPR compliance) */
364
+ siteIds?: number[] & (number[] & number[]);
365
+ trackerUrl?: string;
278
366
  cookieless?: boolean;
279
- /** @description Bypass adblockers using custom tracker url */
280
- bypass_adblockers?: boolean;
281
- /** @description Whether to track page views automatically when the JavaScript tracking code loads */
282
- track_page_view?: boolean;
283
- /** @description Whether to enable automatic tracking of outlinks and downloads */
284
- link_tracking?: boolean;
285
- /** @description Set the heart beat timer (in seconds) to track how much time users spend on pages */
286
- heart_beat_timer?: number;
287
- /** @description Whether to detect browser features like cookies, Java, Flash for visitor segmentation */
288
- browser_feature_detection?: boolean;
289
- /** @description Whether to track bots and spiders. Default is false. */
290
- track_bots?: boolean;
291
- custom_dimensions?: {
292
- [key: string]: string;
293
- } & {
294
- [key: string]: string;
295
- };
367
+ bypassAdblockers?: boolean;
368
+ trackPageView?: boolean;
369
+ linkTracking?: boolean;
370
+ heartBeatTimer?: number;
371
+ browserFeatureDetection?: boolean;
372
+ trackBots?: boolean;
296
373
  /** @description The name of the website config */
297
374
  name?: string;
298
375
  /** @description The domain of the website config */
299
376
  domain?: string;
300
- site_ids?: number[];
377
+ /**
378
+ * @description Custom dimensions example: { 'dimension1': 'value1', 'dimension2': 'value2' }
379
+ * @example {
380
+ * "dimension1": "value1",
381
+ * "dimension2": "value2"
382
+ * }
383
+ */
384
+ customDimensions?: {
385
+ [key: string]: string;
386
+ };
387
+ /** @description The organization ID of the website config, used for multi-tenant support adopting the org-id of logto */
388
+ organizationId?: string;
301
389
  };
302
390
  };
303
391
  };
@@ -310,52 +398,78 @@ export interface paths {
310
398
  content: {
311
399
  "application/json": {
312
400
  data: {
401
+ siteIds: number[] & number[];
313
402
  /** @description The tracker url of the website */
314
- tracker_url: string;
403
+ trackerUrl: string;
315
404
  /** @description Set cookieless if you want to track without cookies (GDPR compliance) */
316
405
  cookieless: boolean;
317
406
  /** @description Bypass adblockers using custom tracker url */
318
- bypass_adblockers: boolean;
407
+ bypassAdblockers: boolean;
319
408
  /** @description Whether to track page views automatically when the JavaScript tracking code loads */
320
- track_page_view: boolean;
409
+ trackPageView: boolean;
321
410
  /** @description Whether to enable automatic tracking of outlinks and downloads */
322
- link_tracking: boolean;
411
+ linkTracking: boolean;
323
412
  /** @description Set the heart beat timer (in seconds) to track how much time users spend on pages */
324
- heart_beat_timer: number;
413
+ heartBeatTimer: number;
325
414
  /** @description Whether to detect browser features like cookies, Java, Flash for visitor segmentation */
326
- browser_feature_detection: boolean;
415
+ browserFeatureDetection: boolean;
327
416
  /** @description Whether to track bots and spiders. Default is false. */
328
- track_bots: boolean;
329
- /**
330
- * @description Custom dimensions example: { 'dimension1': 'value1', 'dimension2': 'value2' }
331
- * @example {
332
- * "dimension1": "value1",
333
- * "dimension2": "value2"
334
- * }
335
- */
336
- custom_dimensions?: {
337
- [key: string]: string;
338
- };
417
+ trackBots: boolean;
339
418
  /**
340
419
  * Format: uuid
341
- * @description The UUID of the website config
420
+ * @description Optional UUID for the website config. If not provided, a new UUID7 will be generated.
342
421
  */
343
422
  id: string;
344
423
  /** @description The name of the website config */
345
424
  name: string;
346
425
  /** @description The domain of the website config */
347
426
  domain: string;
348
- site_ids: number[];
349
427
  /** @description The organization ID of the website config, used for multi-tenant support adopting the org-id of logto */
350
- organization_id: string;
428
+ organizationId: string;
351
429
  /** @description The creation date of the website config */
352
- created_at: string;
430
+ createdAt: string;
353
431
  /** @description The update date of the website config */
354
- updated_at: string;
432
+ updatedAt: string;
433
+ /**
434
+ * @description Custom dimensions example: { 'dimension1': 'value1', 'dimension2': 'value2' }
435
+ * @example {
436
+ * "dimension1": "value1",
437
+ * "dimension2": "value2"
438
+ * }
439
+ */
440
+ customDimensions: {
441
+ [key: string]: string;
442
+ };
355
443
  };
356
444
  };
357
445
  };
358
446
  };
447
+ /** @description Default Response */
448
+ "4XX": {
449
+ headers: {
450
+ [name: string]: unknown;
451
+ };
452
+ content: {
453
+ "application/json": {
454
+ code: string;
455
+ detail: string;
456
+ name: string;
457
+ };
458
+ };
459
+ };
460
+ /** @description Default Response */
461
+ "5XX": {
462
+ headers: {
463
+ [name: string]: unknown;
464
+ };
465
+ content: {
466
+ "application/json": {
467
+ code: string;
468
+ detail: string;
469
+ name: string;
470
+ };
471
+ };
472
+ };
359
473
  };
360
474
  };
361
475
  trace?: never;
@@ -371,25 +485,25 @@ export interface paths {
371
485
  get: {
372
486
  parameters: {
373
487
  query?: {
374
- site_ids?: number[];
488
+ siteIds?: number[];
375
489
  /** @description The tracker url of the website */
376
- tracker_url?: string;
490
+ trackerUrl?: string;
377
491
  /** @description Set cookieless if you want to track without cookies (GDPR compliance) */
378
492
  cookieless?: boolean;
379
493
  /** @description Bypass adblockers using custom tracker url */
380
- bypass_adblockers?: boolean;
494
+ bypassAdblockers?: boolean;
381
495
  /** @description Whether to track page views automatically when the JavaScript tracking code loads */
382
- track_page_view?: boolean;
496
+ trackPageView?: boolean;
383
497
  /** @description Whether to enable automatic tracking of outlinks and downloads */
384
- link_tracking?: boolean;
498
+ linkTracking?: boolean;
385
499
  /** @description Set the heart beat timer (in seconds) to track how much time users spend on pages */
386
- heart_beat_timer?: number;
500
+ heartBeatTimer?: number;
387
501
  /** @description Whether to detect browser features like cookies, Java, Flash for visitor segmentation */
388
- browser_feature_detection?: boolean;
502
+ browserFeatureDetection?: boolean;
389
503
  /** @description Whether to track bots and spiders. Default is false. */
390
- track_bots?: boolean;
504
+ trackBots?: boolean;
391
505
  /** @description The custom user ID to track */
392
- user_id?: string;
506
+ userId?: string;
393
507
  };
394
508
  header?: never;
395
509
  path: {
@@ -408,11 +522,38 @@ export interface paths {
408
522
  content: {
409
523
  "application/json": {
410
524
  data: {
525
+ /** @description The javascript tracking code, available when generating tracking code with params ?code=true */
411
526
  script: string;
412
527
  };
413
528
  };
414
529
  };
415
530
  };
531
+ /** @description Default Response */
532
+ "4XX": {
533
+ headers: {
534
+ [name: string]: unknown;
535
+ };
536
+ content: {
537
+ "application/json": {
538
+ code: string;
539
+ detail: string;
540
+ name: string;
541
+ };
542
+ };
543
+ };
544
+ /** @description Default Response */
545
+ "5XX": {
546
+ headers: {
547
+ [name: string]: unknown;
548
+ };
549
+ content: {
550
+ "application/json": {
551
+ code: string;
552
+ detail: string;
553
+ name: string;
554
+ };
555
+ };
556
+ };
416
557
  };
417
558
  };
418
559
  put?: never;
@@ -471,7 +612,7 @@ export interface paths {
471
612
  */
472
613
  value?: number;
473
614
  };
474
- metadata?: {
615
+ metadataOverride?: {
475
616
  /** @description The URL of the page */
476
617
  url?: string;
477
618
  /** @description The user agent of the user */
@@ -498,7 +639,7 @@ export interface paths {
498
639
  };
499
640
  };
500
641
  /** @description Array of site IDs, if not provided, the tracking will be applied to all the website's site_ids */
501
- site_ids?: number[];
642
+ siteIds?: number[];
502
643
  };
503
644
  };
504
645
  };
@@ -510,7 +651,49 @@ export interface paths {
510
651
  };
511
652
  content: {
512
653
  "application/json": {
513
- data: unknown;
654
+ data: {
655
+ /** @description The javascript tracking code, available when generating tracking code with params ?code=true */
656
+ script: string;
657
+ };
658
+ };
659
+ };
660
+ };
661
+ /** @description Default Response */
662
+ 201: {
663
+ headers: {
664
+ [name: string]: unknown;
665
+ };
666
+ content: {
667
+ "application/json": {
668
+ data: {
669
+ [key: string]: unknown;
670
+ };
671
+ };
672
+ };
673
+ };
674
+ /** @description Default Response */
675
+ "4XX": {
676
+ headers: {
677
+ [name: string]: unknown;
678
+ };
679
+ content: {
680
+ "application/json": {
681
+ code: string;
682
+ detail: string;
683
+ name: string;
684
+ };
685
+ };
686
+ };
687
+ /** @description Default Response */
688
+ "5XX": {
689
+ headers: {
690
+ [name: string]: unknown;
691
+ };
692
+ content: {
693
+ "application/json": {
694
+ code: string;
695
+ detail: string;
696
+ name: string;
514
697
  };
515
698
  };
516
699
  };
@@ -549,10 +732,10 @@ export interface paths {
549
732
  content: {
550
733
  "application/json": {
551
734
  event: {
552
- /** @description Custom title for the page view, overrides the default title of the page. */
553
- action_name: string;
735
+ /** @description The title of the page */
736
+ title: string;
554
737
  };
555
- metadata?: {
738
+ metadataOverride?: {
556
739
  /** @description The URL of the page */
557
740
  url?: string;
558
741
  /** @description The user agent of the user */
@@ -579,7 +762,7 @@ export interface paths {
579
762
  };
580
763
  };
581
764
  /** @description Array of site IDs, if not provided, the tracking will be applied to all the website's site_ids */
582
- site_ids?: number[];
765
+ siteIds?: number[];
583
766
  };
584
767
  };
585
768
  };
@@ -591,7 +774,49 @@ export interface paths {
591
774
  };
592
775
  content: {
593
776
  "application/json": {
594
- data: unknown;
777
+ data: {
778
+ /** @description The javascript tracking code, available when generating tracking code with params ?code=true */
779
+ script: string;
780
+ };
781
+ };
782
+ };
783
+ };
784
+ /** @description Default Response */
785
+ 201: {
786
+ headers: {
787
+ [name: string]: unknown;
788
+ };
789
+ content: {
790
+ "application/json": {
791
+ data: {
792
+ [key: string]: unknown;
793
+ };
794
+ };
795
+ };
796
+ };
797
+ /** @description Default Response */
798
+ "4XX": {
799
+ headers: {
800
+ [name: string]: unknown;
801
+ };
802
+ content: {
803
+ "application/json": {
804
+ code: string;
805
+ detail: string;
806
+ name: string;
807
+ };
808
+ };
809
+ };
810
+ /** @description Default Response */
811
+ "5XX": {
812
+ headers: {
813
+ [name: string]: unknown;
814
+ };
815
+ content: {
816
+ "application/json": {
817
+ code: string;
818
+ detail: string;
819
+ name: string;
595
820
  };
596
821
  };
597
822
  };
@@ -631,13 +856,13 @@ export interface paths {
631
856
  "application/json": {
632
857
  event: {
633
858
  /** @description The search keyword,When specified, the request will not be tracked as a normal pageview but will instead be tracked as a Site Search request. */
634
- search_keyword: string;
859
+ query: string;
635
860
  /** @description when search is specified, you can optionally specify a search category with this parameter. */
636
- search_category?: string;
637
- /** @description when search is specified, we also recommend setting the search_count to the number of search results displayed on the results page. When keywords are tracked with &search_count=0 they will appear in the 'No Result Search Keyword' report. */
638
- search_count?: number;
861
+ category?: string;
862
+ /** @description when search is specified, we also recommend setting count to the number of search results displayed on the results page. When keywords are tracked with &search_count=0 they will appear in the 'No Result Search Keyword' report. */
863
+ count?: number;
639
864
  };
640
- metadata?: {
865
+ metadataOverride?: {
641
866
  /** @description The URL of the page */
642
867
  url?: string;
643
868
  /** @description The user agent of the user */
@@ -664,7 +889,7 @@ export interface paths {
664
889
  };
665
890
  };
666
891
  /** @description Array of site IDs, if not provided, the tracking will be applied to all the website's site_ids */
667
- site_ids?: number[];
892
+ siteIds?: number[];
668
893
  };
669
894
  };
670
895
  };
@@ -676,7 +901,49 @@ export interface paths {
676
901
  };
677
902
  content: {
678
903
  "application/json": {
679
- data: unknown;
904
+ data: {
905
+ /** @description The javascript tracking code, available when generating tracking code with params ?code=true */
906
+ script: string;
907
+ };
908
+ };
909
+ };
910
+ };
911
+ /** @description Default Response */
912
+ 201: {
913
+ headers: {
914
+ [name: string]: unknown;
915
+ };
916
+ content: {
917
+ "application/json": {
918
+ data: {
919
+ [key: string]: unknown;
920
+ };
921
+ };
922
+ };
923
+ };
924
+ /** @description Default Response */
925
+ "4XX": {
926
+ headers: {
927
+ [name: string]: unknown;
928
+ };
929
+ content: {
930
+ "application/json": {
931
+ code: string;
932
+ detail: string;
933
+ name: string;
934
+ };
935
+ };
936
+ };
937
+ /** @description Default Response */
938
+ "5XX": {
939
+ headers: {
940
+ [name: string]: unknown;
941
+ };
942
+ content: {
943
+ "application/json": {
944
+ code: string;
945
+ detail: string;
946
+ name: string;
680
947
  };
681
948
  };
682
949
  };
@@ -720,7 +987,7 @@ export interface paths {
720
987
  /** @description The URL of the link */
721
988
  link: string;
722
989
  };
723
- metadata?: {
990
+ metadataOverride?: {
724
991
  /** @description The URL of the page */
725
992
  url?: string;
726
993
  /** @description The user agent of the user */
@@ -747,7 +1014,7 @@ export interface paths {
747
1014
  };
748
1015
  };
749
1016
  /** @description Array of site IDs, if not provided, the tracking will be applied to all the website's site_ids */
750
- site_ids?: number[];
1017
+ siteIds?: number[];
751
1018
  };
752
1019
  };
753
1020
  };
@@ -759,7 +1026,49 @@ export interface paths {
759
1026
  };
760
1027
  content: {
761
1028
  "application/json": {
762
- data: unknown;
1029
+ data: {
1030
+ /** @description The javascript tracking code, available when generating tracking code with params ?code=true */
1031
+ script: string;
1032
+ };
1033
+ };
1034
+ };
1035
+ };
1036
+ /** @description Default Response */
1037
+ 201: {
1038
+ headers: {
1039
+ [name: string]: unknown;
1040
+ };
1041
+ content: {
1042
+ "application/json": {
1043
+ data: {
1044
+ [key: string]: unknown;
1045
+ };
1046
+ };
1047
+ };
1048
+ };
1049
+ /** @description Default Response */
1050
+ "4XX": {
1051
+ headers: {
1052
+ [name: string]: unknown;
1053
+ };
1054
+ content: {
1055
+ "application/json": {
1056
+ code: string;
1057
+ detail: string;
1058
+ name: string;
1059
+ };
1060
+ };
1061
+ };
1062
+ /** @description Default Response */
1063
+ "5XX": {
1064
+ headers: {
1065
+ [name: string]: unknown;
1066
+ };
1067
+ content: {
1068
+ "application/json": {
1069
+ code: string;
1070
+ detail: string;
1071
+ name: string;
763
1072
  };
764
1073
  };
765
1074
  };
@@ -799,13 +1108,13 @@ export interface paths {
799
1108
  "application/json": {
800
1109
  event: {
801
1110
  /** @description The name of the content block */
802
- content_name: string;
1111
+ name: string;
803
1112
  /** @description The piece of the content that was displayed (e.g. link to an image) */
804
- content_piece: string;
1113
+ piece: string;
805
1114
  /** @description The target of the content leads to (e.g. URL of some external website) */
806
- content_target: string;
1115
+ target: string;
807
1116
  };
808
- metadata?: {
1117
+ metadataOverride?: {
809
1118
  /** @description The URL of the page */
810
1119
  url?: string;
811
1120
  /** @description The user agent of the user */
@@ -832,7 +1141,7 @@ export interface paths {
832
1141
  };
833
1142
  };
834
1143
  /** @description Array of site IDs, if not provided, the tracking will be applied to all the website's site_ids */
835
- site_ids?: number[];
1144
+ siteIds?: number[];
836
1145
  };
837
1146
  };
838
1147
  };
@@ -844,7 +1153,49 @@ export interface paths {
844
1153
  };
845
1154
  content: {
846
1155
  "application/json": {
847
- data: unknown;
1156
+ data: {
1157
+ /** @description The javascript tracking code, available when generating tracking code with params ?code=true */
1158
+ script: string;
1159
+ };
1160
+ };
1161
+ };
1162
+ };
1163
+ /** @description Default Response */
1164
+ 201: {
1165
+ headers: {
1166
+ [name: string]: unknown;
1167
+ };
1168
+ content: {
1169
+ "application/json": {
1170
+ data: {
1171
+ [key: string]: unknown;
1172
+ };
1173
+ };
1174
+ };
1175
+ };
1176
+ /** @description Default Response */
1177
+ "4XX": {
1178
+ headers: {
1179
+ [name: string]: unknown;
1180
+ };
1181
+ content: {
1182
+ "application/json": {
1183
+ code: string;
1184
+ detail: string;
1185
+ name: string;
1186
+ };
1187
+ };
1188
+ };
1189
+ /** @description Default Response */
1190
+ "5XX": {
1191
+ headers: {
1192
+ [name: string]: unknown;
1193
+ };
1194
+ content: {
1195
+ "application/json": {
1196
+ code: string;
1197
+ detail: string;
1198
+ name: string;
848
1199
  };
849
1200
  };
850
1201
  };
@@ -884,15 +1235,15 @@ export interface paths {
884
1235
  "application/json": {
885
1236
  event: {
886
1237
  /** @description The name of the content block */
887
- content_name: string;
1238
+ name: string;
888
1239
  /** @description The piece of the content that was displayed (e.g. link to an image) */
889
- content_piece: string;
1240
+ piece: string;
890
1241
  /** @description The target of the content leads to (e.g. URL of some external website) */
891
- content_target: string;
1242
+ target: string;
892
1243
  /** @description The interaction of the content, example: 'click' */
893
- content_interaction: string;
1244
+ interaction: string;
894
1245
  };
895
- metadata?: {
1246
+ metadataOverride?: {
896
1247
  /** @description The URL of the page */
897
1248
  url?: string;
898
1249
  /** @description The user agent of the user */
@@ -919,7 +1270,7 @@ export interface paths {
919
1270
  };
920
1271
  };
921
1272
  /** @description Array of site IDs, if not provided, the tracking will be applied to all the website's site_ids */
922
- site_ids?: number[];
1273
+ siteIds?: number[];
923
1274
  };
924
1275
  };
925
1276
  };
@@ -931,7 +1282,49 @@ export interface paths {
931
1282
  };
932
1283
  content: {
933
1284
  "application/json": {
934
- data: unknown;
1285
+ data: {
1286
+ /** @description The javascript tracking code, available when generating tracking code with params ?code=true */
1287
+ script: string;
1288
+ };
1289
+ };
1290
+ };
1291
+ };
1292
+ /** @description Default Response */
1293
+ 201: {
1294
+ headers: {
1295
+ [name: string]: unknown;
1296
+ };
1297
+ content: {
1298
+ "application/json": {
1299
+ data: {
1300
+ [key: string]: unknown;
1301
+ };
1302
+ };
1303
+ };
1304
+ };
1305
+ /** @description Default Response */
1306
+ "4XX": {
1307
+ headers: {
1308
+ [name: string]: unknown;
1309
+ };
1310
+ content: {
1311
+ "application/json": {
1312
+ code: string;
1313
+ detail: string;
1314
+ name: string;
1315
+ };
1316
+ };
1317
+ };
1318
+ /** @description Default Response */
1319
+ "5XX": {
1320
+ headers: {
1321
+ [name: string]: unknown;
1322
+ };
1323
+ content: {
1324
+ "application/json": {
1325
+ code: string;
1326
+ detail: string;
1327
+ name: string;
935
1328
  };
936
1329
  };
937
1330
  };