@gitbook/api 0.85.0 → 0.87.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/spec/openapi.json CHANGED
@@ -14627,6 +14627,45 @@
14627
14627
  }
14628
14628
  }
14629
14629
  },
14630
+ "/orgs/{organizationId}/sites/{siteId}/insights/events/aggregate": {
14631
+ "post": {
14632
+ "operationId": "aggregateSiteEvents",
14633
+ "summary": "Query and aggregate events in a site.",
14634
+ "tags": [
14635
+ "sites"
14636
+ ],
14637
+ "parameters": [
14638
+ {
14639
+ "$ref": "#/components/parameters/organizationId"
14640
+ },
14641
+ {
14642
+ "$ref": "#/components/parameters/siteId"
14643
+ }
14644
+ ],
14645
+ "responses": {
14646
+ "200": {
14647
+ "description": "Aggregated events in the site.",
14648
+ "content": {
14649
+ "application/json": {
14650
+ "schema": {
14651
+ "$ref": "#/components/schemas/SiteInsightsQueryEventsAggregationResult"
14652
+ }
14653
+ }
14654
+ }
14655
+ }
14656
+ },
14657
+ "requestBody": {
14658
+ "required": true,
14659
+ "content": {
14660
+ "application/json": {
14661
+ "schema": {
14662
+ "$ref": "#/components/schemas/SiteInsightsQueryEventsAggregation"
14663
+ }
14664
+ }
14665
+ }
14666
+ }
14667
+ }
14668
+ },
14630
14669
  "/orgs/{organizationId}/sites/{siteId}/insights/ads": {
14631
14670
  "get": {
14632
14671
  "operationId": "getAdsInsightsForSiteById",
@@ -17711,6 +17750,14 @@
17711
17750
  "right",
17712
17751
  "left"
17713
17752
  ]
17753
+ },
17754
+ "verticalAlignment": {
17755
+ "type": "string",
17756
+ "enum": [
17757
+ "top",
17758
+ "middle",
17759
+ "bottom"
17760
+ ]
17714
17761
  }
17715
17762
  },
17716
17763
  "required": [
@@ -31044,6 +31091,15 @@
31044
31091
  }
31045
31092
  ]
31046
31093
  },
31094
+ "SiteInsightsLinkPosition": {
31095
+ "type": "string",
31096
+ "enum": [
31097
+ "header",
31098
+ "footer",
31099
+ "sidebar",
31100
+ "content"
31101
+ ]
31102
+ },
31047
31103
  "SiteInsightsEventLinkClick": {
31048
31104
  "allOf": [
31049
31105
  {
@@ -31065,13 +31121,7 @@
31065
31121
  "$ref": "#/components/schemas/ContentRef"
31066
31122
  },
31067
31123
  "position": {
31068
- "type": "string",
31069
- "enum": [
31070
- "header",
31071
- "footer",
31072
- "sidebar",
31073
- "content"
31074
- ]
31124
+ "$ref": "#/components/schemas/SiteInsightsLinkPosition"
31075
31125
  }
31076
31126
  },
31077
31127
  "required": [
@@ -31168,6 +31218,1355 @@
31168
31218
  }
31169
31219
  ]
31170
31220
  },
31221
+ "SiteInsightsEventType": {
31222
+ "type": "string",
31223
+ "enum": [
31224
+ "page_view",
31225
+ "search_open",
31226
+ "search_type_query",
31227
+ "search_open_result",
31228
+ "page_post_feedback",
31229
+ "ask_question",
31230
+ "link_click",
31231
+ "api_client_open",
31232
+ "api_client_request"
31233
+ ]
31234
+ },
31235
+ "SiteInsightsVisitorBrowser": {
31236
+ "type": "string",
31237
+ "enum": [
31238
+ "chrome",
31239
+ "firefox",
31240
+ "safari",
31241
+ "edge",
31242
+ "ie",
31243
+ "opera",
31244
+ "unknown"
31245
+ ]
31246
+ },
31247
+ "SiteInsightsVisitorDevice": {
31248
+ "type": "string",
31249
+ "enum": [
31250
+ "desktop",
31251
+ "tablet",
31252
+ "mobile",
31253
+ "unknown"
31254
+ ]
31255
+ },
31256
+ "SiteInsightsVisitorOS": {
31257
+ "type": "string",
31258
+ "enum": [
31259
+ "windows",
31260
+ "macos",
31261
+ "linux",
31262
+ "android",
31263
+ "ios",
31264
+ "unknown"
31265
+ ]
31266
+ },
31267
+ "SiteInsightsVisitorBot": {
31268
+ "type": "string",
31269
+ "nullable": true,
31270
+ "enum": [
31271
+ "unknown",
31272
+ "googlebot",
31273
+ "bingbot",
31274
+ "duckduckbot",
31275
+ "facebookbot",
31276
+ "applebot",
31277
+ "chatgpt",
31278
+ "anthropic"
31279
+ ]
31280
+ },
31281
+ "SiteInsightsQueryEventsValues": {
31282
+ "oneOf": [
31283
+ {
31284
+ "type": "object",
31285
+ "required": [
31286
+ "column",
31287
+ "values"
31288
+ ],
31289
+ "properties": {
31290
+ "column": {
31291
+ "type": "string",
31292
+ "enum": [
31293
+ "datetime"
31294
+ ]
31295
+ },
31296
+ "values": {
31297
+ "type": "array",
31298
+ "items": {
31299
+ "$ref": "#/components/schemas/Timestamp"
31300
+ }
31301
+ }
31302
+ }
31303
+ },
31304
+ {
31305
+ "type": "object",
31306
+ "required": [
31307
+ "column",
31308
+ "values"
31309
+ ],
31310
+ "properties": {
31311
+ "column": {
31312
+ "type": "string",
31313
+ "enum": [
31314
+ "eventsCount"
31315
+ ]
31316
+ },
31317
+ "values": {
31318
+ "type": "array",
31319
+ "items": {
31320
+ "type": "number"
31321
+ }
31322
+ }
31323
+ }
31324
+ },
31325
+ {
31326
+ "type": "object",
31327
+ "required": [
31328
+ "column",
31329
+ "values"
31330
+ ],
31331
+ "properties": {
31332
+ "column": {
31333
+ "type": "string",
31334
+ "enum": [
31335
+ "sessionsCount"
31336
+ ]
31337
+ },
31338
+ "values": {
31339
+ "type": "array",
31340
+ "items": {
31341
+ "type": "number"
31342
+ }
31343
+ }
31344
+ }
31345
+ },
31346
+ {
31347
+ "type": "object",
31348
+ "required": [
31349
+ "column",
31350
+ "values"
31351
+ ],
31352
+ "properties": {
31353
+ "column": {
31354
+ "type": "string",
31355
+ "enum": [
31356
+ "visitorsCount"
31357
+ ]
31358
+ },
31359
+ "values": {
31360
+ "type": "array",
31361
+ "items": {
31362
+ "type": "number"
31363
+ }
31364
+ }
31365
+ }
31366
+ },
31367
+ {
31368
+ "type": "object",
31369
+ "required": [
31370
+ "column",
31371
+ "values"
31372
+ ],
31373
+ "properties": {
31374
+ "column": {
31375
+ "type": "string",
31376
+ "enum": [
31377
+ "eventType"
31378
+ ]
31379
+ },
31380
+ "values": {
31381
+ "type": "array",
31382
+ "items": {
31383
+ "$ref": "#/components/schemas/SiteInsightsEventType"
31384
+ }
31385
+ }
31386
+ }
31387
+ },
31388
+ {
31389
+ "type": "object",
31390
+ "required": [
31391
+ "column",
31392
+ "claim",
31393
+ "values"
31394
+ ],
31395
+ "properties": {
31396
+ "column": {
31397
+ "type": "string",
31398
+ "enum": [
31399
+ "visitorClaim"
31400
+ ]
31401
+ },
31402
+ "claim": {
31403
+ "type": "string"
31404
+ },
31405
+ "values": {
31406
+ "type": "array",
31407
+ "items": {
31408
+ "type": "string"
31409
+ }
31410
+ }
31411
+ }
31412
+ },
31413
+ {
31414
+ "type": "object",
31415
+ "required": [
31416
+ "column",
31417
+ "values"
31418
+ ],
31419
+ "properties": {
31420
+ "column": {
31421
+ "type": "string",
31422
+ "enum": [
31423
+ "visitorClaimProperty"
31424
+ ]
31425
+ },
31426
+ "values": {
31427
+ "type": "array",
31428
+ "items": {
31429
+ "type": "string"
31430
+ }
31431
+ }
31432
+ }
31433
+ },
31434
+ {
31435
+ "type": "object",
31436
+ "required": [
31437
+ "column",
31438
+ "values"
31439
+ ],
31440
+ "properties": {
31441
+ "column": {
31442
+ "type": "string",
31443
+ "enum": [
31444
+ "visitorBrowser"
31445
+ ]
31446
+ },
31447
+ "values": {
31448
+ "type": "array",
31449
+ "items": {
31450
+ "$ref": "#/components/schemas/SiteInsightsVisitorBrowser"
31451
+ }
31452
+ }
31453
+ }
31454
+ },
31455
+ {
31456
+ "type": "object",
31457
+ "required": [
31458
+ "column",
31459
+ "values"
31460
+ ],
31461
+ "properties": {
31462
+ "column": {
31463
+ "type": "string",
31464
+ "enum": [
31465
+ "visitorDevice"
31466
+ ]
31467
+ },
31468
+ "values": {
31469
+ "type": "array",
31470
+ "items": {
31471
+ "$ref": "#/components/schemas/SiteInsightsVisitorDevice"
31472
+ }
31473
+ }
31474
+ }
31475
+ },
31476
+ {
31477
+ "type": "object",
31478
+ "required": [
31479
+ "column",
31480
+ "values"
31481
+ ],
31482
+ "properties": {
31483
+ "column": {
31484
+ "type": "string",
31485
+ "enum": [
31486
+ "visitorOS"
31487
+ ]
31488
+ },
31489
+ "values": {
31490
+ "type": "array",
31491
+ "items": {
31492
+ "$ref": "#/components/schemas/SiteInsightsVisitorOS"
31493
+ }
31494
+ }
31495
+ }
31496
+ },
31497
+ {
31498
+ "type": "object",
31499
+ "required": [
31500
+ "column",
31501
+ "values"
31502
+ ],
31503
+ "properties": {
31504
+ "column": {
31505
+ "type": "string",
31506
+ "enum": [
31507
+ "visitorBot"
31508
+ ]
31509
+ },
31510
+ "values": {
31511
+ "type": "array",
31512
+ "items": {
31513
+ "$ref": "#/components/schemas/SiteInsightsVisitorBot"
31514
+ }
31515
+ }
31516
+ }
31517
+ },
31518
+ {
31519
+ "type": "object",
31520
+ "required": [
31521
+ "column",
31522
+ "values"
31523
+ ],
31524
+ "properties": {
31525
+ "column": {
31526
+ "type": "string",
31527
+ "enum": [
31528
+ "eventLinkTargetValue"
31529
+ ]
31530
+ },
31531
+ "values": {
31532
+ "type": "array",
31533
+ "items": {
31534
+ "$ref": "#/components/schemas/ContentRef"
31535
+ }
31536
+ }
31537
+ }
31538
+ },
31539
+ {
31540
+ "type": "object",
31541
+ "required": [
31542
+ "column",
31543
+ "values"
31544
+ ],
31545
+ "properties": {
31546
+ "column": {
31547
+ "type": "string",
31548
+ "enum": [
31549
+ "eventLinkTargetKind"
31550
+ ]
31551
+ },
31552
+ "values": {
31553
+ "type": "array",
31554
+ "items": {
31555
+ "type": "string",
31556
+ "enum": [
31557
+ "url",
31558
+ "page",
31559
+ "file",
31560
+ "anchor",
31561
+ "space",
31562
+ "collection",
31563
+ "user",
31564
+ "reusable-content"
31565
+ ]
31566
+ }
31567
+ }
31568
+ }
31569
+ },
31570
+ {
31571
+ "type": "object",
31572
+ "required": [
31573
+ "column",
31574
+ "values"
31575
+ ],
31576
+ "properties": {
31577
+ "column": {
31578
+ "type": "string",
31579
+ "enum": [
31580
+ "eventLinkPosition"
31581
+ ]
31582
+ },
31583
+ "values": {
31584
+ "type": "array",
31585
+ "items": {
31586
+ "$ref": "#/components/schemas/SiteInsightsLinkPosition"
31587
+ }
31588
+ }
31589
+ }
31590
+ },
31591
+ {
31592
+ "type": "object",
31593
+ "required": [
31594
+ "column",
31595
+ "values"
31596
+ ],
31597
+ "properties": {
31598
+ "column": {
31599
+ "type": "string",
31600
+ "enum": [
31601
+ "siteSection"
31602
+ ]
31603
+ },
31604
+ "values": {
31605
+ "type": "array",
31606
+ "items": {
31607
+ "type": "string",
31608
+ "nullable": true
31609
+ }
31610
+ }
31611
+ }
31612
+ },
31613
+ {
31614
+ "type": "object",
31615
+ "required": [
31616
+ "column",
31617
+ "values"
31618
+ ],
31619
+ "properties": {
31620
+ "column": {
31621
+ "type": "string",
31622
+ "enum": [
31623
+ "siteSpace"
31624
+ ]
31625
+ },
31626
+ "values": {
31627
+ "type": "array",
31628
+ "items": {
31629
+ "type": "string",
31630
+ "nullable": true
31631
+ }
31632
+ }
31633
+ }
31634
+ },
31635
+ {
31636
+ "type": "object",
31637
+ "required": [
31638
+ "column",
31639
+ "values"
31640
+ ],
31641
+ "properties": {
31642
+ "column": {
31643
+ "type": "string",
31644
+ "enum": [
31645
+ "siteShareKey"
31646
+ ]
31647
+ },
31648
+ "values": {
31649
+ "type": "array",
31650
+ "items": {
31651
+ "type": "string",
31652
+ "nullable": true
31653
+ }
31654
+ }
31655
+ }
31656
+ },
31657
+ {
31658
+ "type": "object",
31659
+ "required": [
31660
+ "column",
31661
+ "values"
31662
+ ],
31663
+ "properties": {
31664
+ "column": {
31665
+ "type": "string",
31666
+ "enum": [
31667
+ "page"
31668
+ ]
31669
+ },
31670
+ "values": {
31671
+ "type": "array",
31672
+ "items": {
31673
+ "type": "object",
31674
+ "required": [
31675
+ "page",
31676
+ "space"
31677
+ ],
31678
+ "properties": {
31679
+ "page": {
31680
+ "type": "string",
31681
+ "nullable": true
31682
+ },
31683
+ "space": {
31684
+ "type": "string"
31685
+ }
31686
+ }
31687
+ }
31688
+ }
31689
+ }
31690
+ },
31691
+ {
31692
+ "type": "object",
31693
+ "required": [
31694
+ "column",
31695
+ "values"
31696
+ ],
31697
+ "properties": {
31698
+ "column": {
31699
+ "type": "string",
31700
+ "enum": [
31701
+ "visitorGeoCountry"
31702
+ ]
31703
+ },
31704
+ "values": {
31705
+ "type": "array",
31706
+ "items": {
31707
+ "type": "string",
31708
+ "nullable": true
31709
+ }
31710
+ }
31711
+ }
31712
+ },
31713
+ {
31714
+ "type": "object",
31715
+ "required": [
31716
+ "column",
31717
+ "values"
31718
+ ],
31719
+ "properties": {
31720
+ "column": {
31721
+ "type": "string",
31722
+ "enum": [
31723
+ "visitorLanguage"
31724
+ ]
31725
+ },
31726
+ "values": {
31727
+ "type": "array",
31728
+ "items": {
31729
+ "type": "string",
31730
+ "nullable": true
31731
+ }
31732
+ }
31733
+ }
31734
+ },
31735
+ {
31736
+ "type": "object",
31737
+ "required": [
31738
+ "column",
31739
+ "values"
31740
+ ],
31741
+ "properties": {
31742
+ "column": {
31743
+ "type": "string",
31744
+ "enum": [
31745
+ "eventLinkTargetDomain"
31746
+ ]
31747
+ },
31748
+ "values": {
31749
+ "type": "array",
31750
+ "items": {
31751
+ "type": "string",
31752
+ "nullable": true
31753
+ }
31754
+ }
31755
+ }
31756
+ },
31757
+ {
31758
+ "type": "object",
31759
+ "required": [
31760
+ "column",
31761
+ "values"
31762
+ ],
31763
+ "properties": {
31764
+ "column": {
31765
+ "type": "string",
31766
+ "enum": [
31767
+ "eventAPIOperationPath"
31768
+ ]
31769
+ },
31770
+ "values": {
31771
+ "type": "array",
31772
+ "items": {
31773
+ "type": "string",
31774
+ "nullable": true
31775
+ }
31776
+ }
31777
+ }
31778
+ },
31779
+ {
31780
+ "type": "object",
31781
+ "required": [
31782
+ "column",
31783
+ "values"
31784
+ ],
31785
+ "properties": {
31786
+ "column": {
31787
+ "type": "string",
31788
+ "enum": [
31789
+ "eventAPIOperationMethod"
31790
+ ]
31791
+ },
31792
+ "values": {
31793
+ "type": "array",
31794
+ "items": {
31795
+ "type": "string",
31796
+ "nullable": true
31797
+ }
31798
+ }
31799
+ }
31800
+ },
31801
+ {
31802
+ "type": "object",
31803
+ "required": [
31804
+ "column",
31805
+ "values"
31806
+ ],
31807
+ "properties": {
31808
+ "column": {
31809
+ "type": "string",
31810
+ "enum": [
31811
+ "eventSearchQuery"
31812
+ ]
31813
+ },
31814
+ "values": {
31815
+ "type": "array",
31816
+ "items": {
31817
+ "type": "string"
31818
+ }
31819
+ }
31820
+ }
31821
+ },
31822
+ {
31823
+ "type": "object",
31824
+ "required": [
31825
+ "column",
31826
+ "values"
31827
+ ],
31828
+ "properties": {
31829
+ "column": {
31830
+ "type": "string",
31831
+ "enum": [
31832
+ "pageFeedbackRating"
31833
+ ]
31834
+ },
31835
+ "values": {
31836
+ "type": "array",
31837
+ "items": {
31838
+ "type": "object",
31839
+ "required": [
31840
+ "ok",
31841
+ "good",
31842
+ "bad"
31843
+ ],
31844
+ "properties": {
31845
+ "ok": {
31846
+ "type": "number"
31847
+ },
31848
+ "good": {
31849
+ "type": "number"
31850
+ },
31851
+ "bad": {
31852
+ "type": "number"
31853
+ }
31854
+ }
31855
+ }
31856
+ }
31857
+ }
31858
+ },
31859
+ {
31860
+ "type": "object",
31861
+ "required": [
31862
+ "column",
31863
+ "values"
31864
+ ],
31865
+ "properties": {
31866
+ "column": {
31867
+ "type": "string",
31868
+ "enum": [
31869
+ "referrer"
31870
+ ]
31871
+ },
31872
+ "values": {
31873
+ "type": "array",
31874
+ "items": {
31875
+ "type": "string"
31876
+ }
31877
+ }
31878
+ }
31879
+ },
31880
+ {
31881
+ "type": "object",
31882
+ "required": [
31883
+ "column",
31884
+ "values"
31885
+ ],
31886
+ "properties": {
31887
+ "column": {
31888
+ "type": "string",
31889
+ "enum": [
31890
+ "referrerDomain"
31891
+ ]
31892
+ },
31893
+ "values": {
31894
+ "type": "array",
31895
+ "items": {
31896
+ "type": "string"
31897
+ }
31898
+ }
31899
+ }
31900
+ },
31901
+ {
31902
+ "type": "object",
31903
+ "required": [
31904
+ "column",
31905
+ "values"
31906
+ ],
31907
+ "properties": {
31908
+ "column": {
31909
+ "type": "string",
31910
+ "enum": [
31911
+ "utmSource"
31912
+ ]
31913
+ },
31914
+ "values": {
31915
+ "type": "array",
31916
+ "items": {
31917
+ "type": "string"
31918
+ }
31919
+ }
31920
+ }
31921
+ },
31922
+ {
31923
+ "type": "object",
31924
+ "required": [
31925
+ "column",
31926
+ "values"
31927
+ ],
31928
+ "properties": {
31929
+ "column": {
31930
+ "type": "string",
31931
+ "enum": [
31932
+ "utmMedium"
31933
+ ]
31934
+ },
31935
+ "values": {
31936
+ "type": "array",
31937
+ "items": {
31938
+ "type": "string"
31939
+ }
31940
+ }
31941
+ }
31942
+ },
31943
+ {
31944
+ "type": "object",
31945
+ "required": [
31946
+ "column",
31947
+ "values"
31948
+ ],
31949
+ "properties": {
31950
+ "column": {
31951
+ "type": "string",
31952
+ "enum": [
31953
+ "utmCampaign"
31954
+ ]
31955
+ },
31956
+ "values": {
31957
+ "type": "array",
31958
+ "items": {
31959
+ "type": "string"
31960
+ }
31961
+ }
31962
+ }
31963
+ },
31964
+ {
31965
+ "type": "object",
31966
+ "required": [
31967
+ "column",
31968
+ "values"
31969
+ ],
31970
+ "properties": {
31971
+ "column": {
31972
+ "type": "string",
31973
+ "enum": [
31974
+ "utmTerm"
31975
+ ]
31976
+ },
31977
+ "values": {
31978
+ "type": "array",
31979
+ "items": {
31980
+ "type": "string"
31981
+ }
31982
+ }
31983
+ }
31984
+ },
31985
+ {
31986
+ "type": "object",
31987
+ "required": [
31988
+ "column",
31989
+ "values"
31990
+ ],
31991
+ "properties": {
31992
+ "column": {
31993
+ "type": "string",
31994
+ "enum": [
31995
+ "utmContent"
31996
+ ]
31997
+ },
31998
+ "values": {
31999
+ "type": "array",
32000
+ "items": {
32001
+ "type": "string"
32002
+ }
32003
+ }
32004
+ }
32005
+ }
32006
+ ]
32007
+ },
32008
+ "SiteInsightsQueryOperator": {
32009
+ "type": "string",
32010
+ "enum": [
32011
+ "in",
32012
+ "notIn",
32013
+ "greaterThan",
32014
+ "greaterThanOrEqual",
32015
+ "lessThan",
32016
+ "lessThanOrEqual"
32017
+ ]
32018
+ },
32019
+ "SiteInsightsQueryEventsFilter": {
32020
+ "allOf": [
32021
+ {
32022
+ "$ref": "#/components/schemas/SiteInsightsQueryEventsValues"
32023
+ },
32024
+ {
32025
+ "type": "object",
32026
+ "properties": {
32027
+ "operator": {
32028
+ "$ref": "#/components/schemas/SiteInsightsQueryOperator"
32029
+ }
32030
+ }
32031
+ }
32032
+ ]
32033
+ },
32034
+ "SiteInsightsQueryDateTimeColumn": {
32035
+ "type": "object",
32036
+ "required": [
32037
+ "column"
32038
+ ],
32039
+ "properties": {
32040
+ "column": {
32041
+ "type": "string",
32042
+ "enum": [
32043
+ "datetime"
32044
+ ]
32045
+ },
32046
+ "interval": {
32047
+ "type": "string",
32048
+ "enum": [
32049
+ "hour",
32050
+ "day",
32051
+ "week",
32052
+ "month"
32053
+ ]
32054
+ }
32055
+ }
32056
+ },
32057
+ "SiteInsightsQueryEventsColumn": {
32058
+ "oneOf": [
32059
+ {
32060
+ "$ref": "#/components/schemas/SiteInsightsQueryDateTimeColumn"
32061
+ },
32062
+ {
32063
+ "type": "object",
32064
+ "required": [
32065
+ "column"
32066
+ ],
32067
+ "properties": {
32068
+ "column": {
32069
+ "type": "string",
32070
+ "enum": [
32071
+ "eventType"
32072
+ ]
32073
+ }
32074
+ }
32075
+ },
32076
+ {
32077
+ "type": "object",
32078
+ "required": [
32079
+ "column"
32080
+ ],
32081
+ "properties": {
32082
+ "column": {
32083
+ "type": "string",
32084
+ "enum": [
32085
+ "eventsCount"
32086
+ ]
32087
+ }
32088
+ }
32089
+ },
32090
+ {
32091
+ "type": "object",
32092
+ "required": [
32093
+ "column"
32094
+ ],
32095
+ "properties": {
32096
+ "column": {
32097
+ "type": "string",
32098
+ "enum": [
32099
+ "sessionsCount"
32100
+ ]
32101
+ }
32102
+ }
32103
+ },
32104
+ {
32105
+ "type": "object",
32106
+ "required": [
32107
+ "column"
32108
+ ],
32109
+ "properties": {
32110
+ "column": {
32111
+ "type": "string",
32112
+ "enum": [
32113
+ "visitorsCount"
32114
+ ]
32115
+ }
32116
+ }
32117
+ },
32118
+ {
32119
+ "type": "object",
32120
+ "required": [
32121
+ "column"
32122
+ ],
32123
+ "properties": {
32124
+ "column": {
32125
+ "type": "string",
32126
+ "enum": [
32127
+ "siteSection"
32128
+ ]
32129
+ }
32130
+ }
32131
+ },
32132
+ {
32133
+ "type": "object",
32134
+ "required": [
32135
+ "column"
32136
+ ],
32137
+ "properties": {
32138
+ "column": {
32139
+ "type": "string",
32140
+ "enum": [
32141
+ "siteSpace"
32142
+ ]
32143
+ }
32144
+ }
32145
+ },
32146
+ {
32147
+ "type": "object",
32148
+ "required": [
32149
+ "column"
32150
+ ],
32151
+ "properties": {
32152
+ "column": {
32153
+ "type": "string",
32154
+ "enum": [
32155
+ "siteShareKey"
32156
+ ]
32157
+ }
32158
+ }
32159
+ },
32160
+ {
32161
+ "type": "object",
32162
+ "required": [
32163
+ "column"
32164
+ ],
32165
+ "properties": {
32166
+ "column": {
32167
+ "type": "string",
32168
+ "enum": [
32169
+ "page"
32170
+ ]
32171
+ }
32172
+ }
32173
+ },
32174
+ {
32175
+ "type": "object",
32176
+ "required": [
32177
+ "column"
32178
+ ],
32179
+ "properties": {
32180
+ "column": {
32181
+ "type": "string",
32182
+ "enum": [
32183
+ "visitorGeoCountry"
32184
+ ]
32185
+ }
32186
+ }
32187
+ },
32188
+ {
32189
+ "type": "object",
32190
+ "required": [
32191
+ "column"
32192
+ ],
32193
+ "properties": {
32194
+ "column": {
32195
+ "type": "string",
32196
+ "enum": [
32197
+ "visitorDevice"
32198
+ ]
32199
+ }
32200
+ }
32201
+ },
32202
+ {
32203
+ "type": "object",
32204
+ "required": [
32205
+ "column"
32206
+ ],
32207
+ "properties": {
32208
+ "column": {
32209
+ "type": "string",
32210
+ "enum": [
32211
+ "visitorBrowser"
32212
+ ]
32213
+ }
32214
+ }
32215
+ },
32216
+ {
32217
+ "type": "object",
32218
+ "required": [
32219
+ "column"
32220
+ ],
32221
+ "properties": {
32222
+ "column": {
32223
+ "type": "string",
32224
+ "enum": [
32225
+ "visitorOS"
32226
+ ]
32227
+ }
32228
+ }
32229
+ },
32230
+ {
32231
+ "type": "object",
32232
+ "required": [
32233
+ "column"
32234
+ ],
32235
+ "properties": {
32236
+ "column": {
32237
+ "type": "string",
32238
+ "enum": [
32239
+ "visitorBot"
32240
+ ]
32241
+ }
32242
+ }
32243
+ },
32244
+ {
32245
+ "type": "object",
32246
+ "required": [
32247
+ "column"
32248
+ ],
32249
+ "properties": {
32250
+ "column": {
32251
+ "type": "string",
32252
+ "enum": [
32253
+ "visitorLanguage"
32254
+ ]
32255
+ }
32256
+ }
32257
+ },
32258
+ {
32259
+ "type": "object",
32260
+ "required": [
32261
+ "column"
32262
+ ],
32263
+ "properties": {
32264
+ "column": {
32265
+ "type": "string",
32266
+ "enum": [
32267
+ "eventLinkTargetValue"
32268
+ ]
32269
+ }
32270
+ }
32271
+ },
32272
+ {
32273
+ "type": "object",
32274
+ "required": [
32275
+ "column"
32276
+ ],
32277
+ "properties": {
32278
+ "column": {
32279
+ "type": "string",
32280
+ "enum": [
32281
+ "eventLinkTargetKind"
32282
+ ]
32283
+ }
32284
+ }
32285
+ },
32286
+ {
32287
+ "type": "object",
32288
+ "required": [
32289
+ "column"
32290
+ ],
32291
+ "properties": {
32292
+ "column": {
32293
+ "type": "string",
32294
+ "enum": [
32295
+ "eventLinkTargetDomain"
32296
+ ]
32297
+ }
32298
+ }
32299
+ },
32300
+ {
32301
+ "type": "object",
32302
+ "required": [
32303
+ "column"
32304
+ ],
32305
+ "properties": {
32306
+ "column": {
32307
+ "type": "string",
32308
+ "enum": [
32309
+ "eventLinkPosition"
32310
+ ]
32311
+ }
32312
+ }
32313
+ },
32314
+ {
32315
+ "type": "object",
32316
+ "required": [
32317
+ "column"
32318
+ ],
32319
+ "properties": {
32320
+ "column": {
32321
+ "type": "string",
32322
+ "enum": [
32323
+ "eventAPIOperationPath"
32324
+ ]
32325
+ }
32326
+ }
32327
+ },
32328
+ {
32329
+ "type": "object",
32330
+ "required": [
32331
+ "column"
32332
+ ],
32333
+ "properties": {
32334
+ "column": {
32335
+ "type": "string",
32336
+ "enum": [
32337
+ "eventAPIOperationMethod"
32338
+ ]
32339
+ }
32340
+ }
32341
+ },
32342
+ {
32343
+ "type": "object",
32344
+ "required": [
32345
+ "column"
32346
+ ],
32347
+ "properties": {
32348
+ "column": {
32349
+ "type": "string",
32350
+ "enum": [
32351
+ "eventSearchQuery"
32352
+ ]
32353
+ }
32354
+ }
32355
+ },
32356
+ {
32357
+ "type": "object",
32358
+ "required": [
32359
+ "column"
32360
+ ],
32361
+ "properties": {
32362
+ "column": {
32363
+ "type": "string",
32364
+ "enum": [
32365
+ "pageFeedbackRating"
32366
+ ]
32367
+ }
32368
+ }
32369
+ },
32370
+ {
32371
+ "type": "object",
32372
+ "required": [
32373
+ "column"
32374
+ ],
32375
+ "properties": {
32376
+ "column": {
32377
+ "type": "string",
32378
+ "enum": [
32379
+ "referrer"
32380
+ ]
32381
+ }
32382
+ }
32383
+ },
32384
+ {
32385
+ "type": "object",
32386
+ "required": [
32387
+ "column"
32388
+ ],
32389
+ "properties": {
32390
+ "column": {
32391
+ "type": "string",
32392
+ "enum": [
32393
+ "referrerDomain"
32394
+ ]
32395
+ }
32396
+ }
32397
+ },
32398
+ {
32399
+ "type": "object",
32400
+ "required": [
32401
+ "column"
32402
+ ],
32403
+ "properties": {
32404
+ "column": {
32405
+ "type": "string",
32406
+ "enum": [
32407
+ "utmSource"
32408
+ ]
32409
+ }
32410
+ }
32411
+ },
32412
+ {
32413
+ "type": "object",
32414
+ "required": [
32415
+ "column"
32416
+ ],
32417
+ "properties": {
32418
+ "column": {
32419
+ "type": "string",
32420
+ "enum": [
32421
+ "utmMedium"
32422
+ ]
32423
+ }
32424
+ }
32425
+ },
32426
+ {
32427
+ "type": "object",
32428
+ "required": [
32429
+ "column"
32430
+ ],
32431
+ "properties": {
32432
+ "column": {
32433
+ "type": "string",
32434
+ "enum": [
32435
+ "utmCampaign"
32436
+ ]
32437
+ }
32438
+ }
32439
+ },
32440
+ {
32441
+ "type": "object",
32442
+ "required": [
32443
+ "column"
32444
+ ],
32445
+ "properties": {
32446
+ "column": {
32447
+ "type": "string",
32448
+ "enum": [
32449
+ "utmTerm"
32450
+ ]
32451
+ }
32452
+ }
32453
+ },
32454
+ {
32455
+ "type": "object",
32456
+ "required": [
32457
+ "column"
32458
+ ],
32459
+ "properties": {
32460
+ "column": {
32461
+ "type": "string",
32462
+ "enum": [
32463
+ "utmContent"
32464
+ ]
32465
+ }
32466
+ }
32467
+ },
32468
+ {
32469
+ "type": "object",
32470
+ "required": [
32471
+ "column"
32472
+ ],
32473
+ "properties": {
32474
+ "column": {
32475
+ "type": "string",
32476
+ "enum": [
32477
+ "visitorClaimProperty"
32478
+ ]
32479
+ }
32480
+ }
32481
+ },
32482
+ {
32483
+ "type": "object",
32484
+ "required": [
32485
+ "column",
32486
+ "claim"
32487
+ ],
32488
+ "properties": {
32489
+ "column": {
32490
+ "type": "string",
32491
+ "enum": [
32492
+ "visitorClaim"
32493
+ ]
32494
+ },
32495
+ "claim": {
32496
+ "type": "string"
32497
+ }
32498
+ }
32499
+ }
32500
+ ]
32501
+ },
32502
+ "SiteInsightsQueryRange": {
32503
+ "type": "string",
32504
+ "enum": [
32505
+ "lastYear",
32506
+ "last3Months",
32507
+ "last30Days",
32508
+ "last7Days",
32509
+ "last24Hours"
32510
+ ]
32511
+ },
32512
+ "SiteInsightsQueryEventsAggregation": {
32513
+ "type": "object",
32514
+ "required": [
32515
+ "groupBy",
32516
+ "range"
32517
+ ],
32518
+ "properties": {
32519
+ "where": {
32520
+ "type": "array",
32521
+ "items": {
32522
+ "$ref": "#/components/schemas/SiteInsightsQueryEventsFilter"
32523
+ }
32524
+ },
32525
+ "groupBy": {
32526
+ "type": "array",
32527
+ "minItems": 1,
32528
+ "items": {
32529
+ "$ref": "#/components/schemas/SiteInsightsQueryEventsColumn"
32530
+ }
32531
+ },
32532
+ "order": {
32533
+ "type": "object",
32534
+ "required": [
32535
+ "by",
32536
+ "direction"
32537
+ ],
32538
+ "properties": {
32539
+ "by": {
32540
+ "$ref": "#/components/schemas/SiteInsightsQueryEventsColumn"
32541
+ },
32542
+ "direction": {
32543
+ "type": "string",
32544
+ "enum": [
32545
+ "asc",
32546
+ "desc"
32547
+ ]
32548
+ }
32549
+ }
32550
+ },
32551
+ "range": {
32552
+ "$ref": "#/components/schemas/SiteInsightsQueryRange"
32553
+ }
32554
+ }
32555
+ },
32556
+ "SiteInsightsQueryEventsAggregationResult": {
32557
+ "type": "object",
32558
+ "required": [
32559
+ "columns"
32560
+ ],
32561
+ "properties": {
32562
+ "columns": {
32563
+ "type": "array",
32564
+ "items": {
32565
+ "$ref": "#/components/schemas/SiteInsightsQueryEventsValues"
32566
+ }
32567
+ }
32568
+ }
32569
+ },
31171
32570
  "InsightsInterval": {
31172
32571
  "type": "string",
31173
32572
  "description": "The interval for grouping the results",