@gitbook/api 0.84.0 → 0.86.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",
@@ -19124,7 +19163,25 @@
19124
19163
  "nodes"
19125
19164
  ]
19126
19165
  },
19127
- "DocumentBlockSwagger": {
19166
+ "OpenAPIOperationPointer": {
19167
+ "type": "object",
19168
+ "description": "Pointer to an operation in the OpenAPI spec.",
19169
+ "properties": {
19170
+ "path": {
19171
+ "type": "string",
19172
+ "description": "Path of the operation in the OpenAPI spec."
19173
+ },
19174
+ "method": {
19175
+ "type": "string",
19176
+ "description": "HTTP method of the operation in the OpenAPI spec."
19177
+ }
19178
+ },
19179
+ "required": [
19180
+ "path",
19181
+ "method"
19182
+ ]
19183
+ },
19184
+ "DocumentBlockOpenAPI": {
19128
19185
  "type": "object",
19129
19186
  "properties": {
19130
19187
  "object": {
@@ -19143,33 +19200,32 @@
19143
19200
  "type": "string"
19144
19201
  },
19145
19202
  "data": {
19146
- "type": "object",
19147
- "properties": {
19148
- "ref": {
19149
- "oneOf": [
19150
- {
19151
- "$ref": "#/components/schemas/ContentRefFile"
19203
+ "allOf": [
19204
+ {
19205
+ "$ref": "#/components/schemas/OpenAPIOperationPointer"
19206
+ },
19207
+ {
19208
+ "type": "object",
19209
+ "properties": {
19210
+ "ref": {
19211
+ "oneOf": [
19212
+ {
19213
+ "$ref": "#/components/schemas/ContentRefFile"
19214
+ }
19215
+ ]
19216
+ },
19217
+ "expanded": {
19218
+ "type": "boolean",
19219
+ "description": "If true, the block is opened by default."
19220
+ },
19221
+ "fullWidth": {
19222
+ "type": "boolean"
19152
19223
  }
19224
+ },
19225
+ "required": [
19226
+ "ref"
19153
19227
  ]
19154
- },
19155
- "path": {
19156
- "type": "string",
19157
- "description": "Path of the operation in the OpenAPI spec."
19158
- },
19159
- "method": {
19160
- "type": "string",
19161
- "description": "HTTP method of the operation in the OpenAPI spec."
19162
- },
19163
- "expanded": {
19164
- "type": "boolean",
19165
- "description": "If true, the block is opened by default."
19166
- },
19167
- "fullWidth": {
19168
- "type": "boolean"
19169
19228
  }
19170
- },
19171
- "required": [
19172
- "ref"
19173
19229
  ]
19174
19230
  },
19175
19231
  "isVoid": {
@@ -19402,7 +19458,7 @@
19402
19458
  "$ref": "#/components/schemas/DocumentBlockTable"
19403
19459
  },
19404
19460
  {
19405
- "$ref": "#/components/schemas/DocumentBlockSwagger"
19461
+ "$ref": "#/components/schemas/DocumentBlockOpenAPI"
19406
19462
  },
19407
19463
  {
19408
19464
  "$ref": "#/components/schemas/DocumentBlockContentRef"
@@ -30758,19 +30814,25 @@
30758
30814
  "description": "Language of the visitor.\nhttps://developer.mozilla.org/en-US/docs/Web/API/Navigator/language\n"
30759
30815
  },
30760
30816
  "referrer": {
30761
- "description": "Referrer of the sesion",
30817
+ "description": "Referrer of the session",
30762
30818
  "oneOf": [
30763
30819
  {
30764
30820
  "type": "string",
30765
30821
  "nullable": true,
30766
30822
  "enum": [
30767
- null
30823
+ null,
30824
+ ""
30768
30825
  ]
30769
30826
  },
30770
30827
  {
30771
30828
  "$ref": "#/components/schemas/URL"
30772
30829
  }
30773
30830
  ]
30831
+ },
30832
+ "visitorAuthToken": {
30833
+ "type": "string",
30834
+ "nullable": true,
30835
+ "description": "Authentication token of the visitor.\nThis is used to identify the visitor with adaptive content.\n"
30774
30836
  }
30775
30837
  },
30776
30838
  "required": [
@@ -31021,6 +31083,102 @@
31021
31083
  }
31022
31084
  ]
31023
31085
  },
31086
+ "SiteInsightsLinkPosition": {
31087
+ "type": "string",
31088
+ "enum": [
31089
+ "header",
31090
+ "footer",
31091
+ "sidebar",
31092
+ "content"
31093
+ ]
31094
+ },
31095
+ "SiteInsightsEventLinkClick": {
31096
+ "allOf": [
31097
+ {
31098
+ "$ref": "#/components/schemas/SiteInsightsEventBase"
31099
+ },
31100
+ {
31101
+ "type": "object",
31102
+ "properties": {
31103
+ "type": {
31104
+ "type": "string",
31105
+ "enum": [
31106
+ "link_click"
31107
+ ]
31108
+ },
31109
+ "link": {
31110
+ "type": "object",
31111
+ "properties": {
31112
+ "target": {
31113
+ "$ref": "#/components/schemas/ContentRef"
31114
+ },
31115
+ "position": {
31116
+ "$ref": "#/components/schemas/SiteInsightsLinkPosition"
31117
+ }
31118
+ },
31119
+ "required": [
31120
+ "target",
31121
+ "position"
31122
+ ]
31123
+ }
31124
+ },
31125
+ "required": [
31126
+ "type",
31127
+ "link"
31128
+ ]
31129
+ }
31130
+ ]
31131
+ },
31132
+ "SiteInsightsEventAPIClientOpen": {
31133
+ "allOf": [
31134
+ {
31135
+ "$ref": "#/components/schemas/SiteInsightsEventBase"
31136
+ },
31137
+ {
31138
+ "type": "object",
31139
+ "properties": {
31140
+ "type": {
31141
+ "type": "string",
31142
+ "enum": [
31143
+ "api_client_open"
31144
+ ]
31145
+ },
31146
+ "operation": {
31147
+ "$ref": "#/components/schemas/OpenAPIOperationPointer"
31148
+ }
31149
+ },
31150
+ "required": [
31151
+ "type",
31152
+ "operation"
31153
+ ]
31154
+ }
31155
+ ]
31156
+ },
31157
+ "SiteInsightsEventAPIClientRequest": {
31158
+ "allOf": [
31159
+ {
31160
+ "$ref": "#/components/schemas/SiteInsightsEventBase"
31161
+ },
31162
+ {
31163
+ "type": "object",
31164
+ "properties": {
31165
+ "type": {
31166
+ "type": "string",
31167
+ "enum": [
31168
+ "api_client_request"
31169
+ ]
31170
+ },
31171
+ "operation": {
31172
+ "$ref": "#/components/schemas/OpenAPIOperationPointer"
31173
+ }
31174
+ },
31175
+ "required": [
31176
+ "type",
31177
+ "operation"
31178
+ ]
31179
+ }
31180
+ ]
31181
+ },
31024
31182
  "SiteInsightsEvent": {
31025
31183
  "oneOf": [
31026
31184
  {
@@ -31040,9 +31198,1367 @@
31040
31198
  },
31041
31199
  {
31042
31200
  "$ref": "#/components/schemas/SiteInsightsEventAskQuestion"
31201
+ },
31202
+ {
31203
+ "$ref": "#/components/schemas/SiteInsightsEventLinkClick"
31204
+ },
31205
+ {
31206
+ "$ref": "#/components/schemas/SiteInsightsEventAPIClientOpen"
31207
+ },
31208
+ {
31209
+ "$ref": "#/components/schemas/SiteInsightsEventAPIClientRequest"
31043
31210
  }
31044
31211
  ]
31045
31212
  },
31213
+ "SiteInsightsEventType": {
31214
+ "type": "string",
31215
+ "enum": [
31216
+ "page_view",
31217
+ "search_open",
31218
+ "search_type_query",
31219
+ "search_open_result",
31220
+ "page_post_feedback",
31221
+ "ask_question",
31222
+ "link_click",
31223
+ "api_client_open",
31224
+ "api_client_request"
31225
+ ]
31226
+ },
31227
+ "SiteInsightsVisitorBrowser": {
31228
+ "type": "string",
31229
+ "enum": [
31230
+ "chrome",
31231
+ "firefox",
31232
+ "safari",
31233
+ "edge",
31234
+ "ie",
31235
+ "opera",
31236
+ "unknown"
31237
+ ]
31238
+ },
31239
+ "SiteInsightsVisitorDevice": {
31240
+ "type": "string",
31241
+ "enum": [
31242
+ "desktop",
31243
+ "tablet",
31244
+ "mobile",
31245
+ "unknown"
31246
+ ]
31247
+ },
31248
+ "SiteInsightsVisitorOS": {
31249
+ "type": "string",
31250
+ "enum": [
31251
+ "windows",
31252
+ "macos",
31253
+ "linux",
31254
+ "android",
31255
+ "ios",
31256
+ "unknown"
31257
+ ]
31258
+ },
31259
+ "SiteInsightsVisitorBot": {
31260
+ "type": "string",
31261
+ "nullable": true,
31262
+ "enum": [
31263
+ "unknown",
31264
+ "googlebot",
31265
+ "bingbot",
31266
+ "duckduckbot",
31267
+ "facebookbot",
31268
+ "applebot",
31269
+ "chatgpt",
31270
+ "anthropic"
31271
+ ]
31272
+ },
31273
+ "SiteInsightsQueryEventsValues": {
31274
+ "oneOf": [
31275
+ {
31276
+ "type": "object",
31277
+ "required": [
31278
+ "column",
31279
+ "values"
31280
+ ],
31281
+ "properties": {
31282
+ "column": {
31283
+ "type": "string",
31284
+ "enum": [
31285
+ "datetime"
31286
+ ]
31287
+ },
31288
+ "values": {
31289
+ "type": "array",
31290
+ "items": {
31291
+ "$ref": "#/components/schemas/Timestamp"
31292
+ }
31293
+ }
31294
+ }
31295
+ },
31296
+ {
31297
+ "type": "object",
31298
+ "required": [
31299
+ "column",
31300
+ "values"
31301
+ ],
31302
+ "properties": {
31303
+ "column": {
31304
+ "type": "string",
31305
+ "enum": [
31306
+ "eventsCount"
31307
+ ]
31308
+ },
31309
+ "values": {
31310
+ "type": "array",
31311
+ "items": {
31312
+ "type": "number"
31313
+ }
31314
+ }
31315
+ }
31316
+ },
31317
+ {
31318
+ "type": "object",
31319
+ "required": [
31320
+ "column",
31321
+ "values"
31322
+ ],
31323
+ "properties": {
31324
+ "column": {
31325
+ "type": "string",
31326
+ "enum": [
31327
+ "sessionsCount"
31328
+ ]
31329
+ },
31330
+ "values": {
31331
+ "type": "array",
31332
+ "items": {
31333
+ "type": "number"
31334
+ }
31335
+ }
31336
+ }
31337
+ },
31338
+ {
31339
+ "type": "object",
31340
+ "required": [
31341
+ "column",
31342
+ "values"
31343
+ ],
31344
+ "properties": {
31345
+ "column": {
31346
+ "type": "string",
31347
+ "enum": [
31348
+ "visitorsCount"
31349
+ ]
31350
+ },
31351
+ "values": {
31352
+ "type": "array",
31353
+ "items": {
31354
+ "type": "number"
31355
+ }
31356
+ }
31357
+ }
31358
+ },
31359
+ {
31360
+ "type": "object",
31361
+ "required": [
31362
+ "column",
31363
+ "values"
31364
+ ],
31365
+ "properties": {
31366
+ "column": {
31367
+ "type": "string",
31368
+ "enum": [
31369
+ "eventType"
31370
+ ]
31371
+ },
31372
+ "values": {
31373
+ "type": "array",
31374
+ "items": {
31375
+ "$ref": "#/components/schemas/SiteInsightsEventType"
31376
+ }
31377
+ }
31378
+ }
31379
+ },
31380
+ {
31381
+ "type": "object",
31382
+ "required": [
31383
+ "column",
31384
+ "claim",
31385
+ "values"
31386
+ ],
31387
+ "properties": {
31388
+ "column": {
31389
+ "type": "string",
31390
+ "enum": [
31391
+ "visitorClaim"
31392
+ ]
31393
+ },
31394
+ "claim": {
31395
+ "type": "string"
31396
+ },
31397
+ "values": {
31398
+ "type": "array",
31399
+ "items": {
31400
+ "type": "string"
31401
+ }
31402
+ }
31403
+ }
31404
+ },
31405
+ {
31406
+ "type": "object",
31407
+ "required": [
31408
+ "column",
31409
+ "values"
31410
+ ],
31411
+ "properties": {
31412
+ "column": {
31413
+ "type": "string",
31414
+ "enum": [
31415
+ "visitorClaimProperty"
31416
+ ]
31417
+ },
31418
+ "values": {
31419
+ "type": "array",
31420
+ "items": {
31421
+ "type": "string"
31422
+ }
31423
+ }
31424
+ }
31425
+ },
31426
+ {
31427
+ "type": "object",
31428
+ "required": [
31429
+ "column",
31430
+ "values"
31431
+ ],
31432
+ "properties": {
31433
+ "column": {
31434
+ "type": "string",
31435
+ "enum": [
31436
+ "visitorBrowser"
31437
+ ]
31438
+ },
31439
+ "values": {
31440
+ "type": "array",
31441
+ "items": {
31442
+ "$ref": "#/components/schemas/SiteInsightsVisitorBrowser"
31443
+ }
31444
+ }
31445
+ }
31446
+ },
31447
+ {
31448
+ "type": "object",
31449
+ "required": [
31450
+ "column",
31451
+ "values"
31452
+ ],
31453
+ "properties": {
31454
+ "column": {
31455
+ "type": "string",
31456
+ "enum": [
31457
+ "visitorDevice"
31458
+ ]
31459
+ },
31460
+ "values": {
31461
+ "type": "array",
31462
+ "items": {
31463
+ "$ref": "#/components/schemas/SiteInsightsVisitorDevice"
31464
+ }
31465
+ }
31466
+ }
31467
+ },
31468
+ {
31469
+ "type": "object",
31470
+ "required": [
31471
+ "column",
31472
+ "values"
31473
+ ],
31474
+ "properties": {
31475
+ "column": {
31476
+ "type": "string",
31477
+ "enum": [
31478
+ "visitorOS"
31479
+ ]
31480
+ },
31481
+ "values": {
31482
+ "type": "array",
31483
+ "items": {
31484
+ "$ref": "#/components/schemas/SiteInsightsVisitorOS"
31485
+ }
31486
+ }
31487
+ }
31488
+ },
31489
+ {
31490
+ "type": "object",
31491
+ "required": [
31492
+ "column",
31493
+ "values"
31494
+ ],
31495
+ "properties": {
31496
+ "column": {
31497
+ "type": "string",
31498
+ "enum": [
31499
+ "visitorBot"
31500
+ ]
31501
+ },
31502
+ "values": {
31503
+ "type": "array",
31504
+ "items": {
31505
+ "$ref": "#/components/schemas/SiteInsightsVisitorBot"
31506
+ }
31507
+ }
31508
+ }
31509
+ },
31510
+ {
31511
+ "type": "object",
31512
+ "required": [
31513
+ "column",
31514
+ "values"
31515
+ ],
31516
+ "properties": {
31517
+ "column": {
31518
+ "type": "string",
31519
+ "enum": [
31520
+ "eventLinkTargetValue"
31521
+ ]
31522
+ },
31523
+ "values": {
31524
+ "type": "array",
31525
+ "items": {
31526
+ "$ref": "#/components/schemas/ContentRef"
31527
+ }
31528
+ }
31529
+ }
31530
+ },
31531
+ {
31532
+ "type": "object",
31533
+ "required": [
31534
+ "column",
31535
+ "values"
31536
+ ],
31537
+ "properties": {
31538
+ "column": {
31539
+ "type": "string",
31540
+ "enum": [
31541
+ "eventLinkTargetKind"
31542
+ ]
31543
+ },
31544
+ "values": {
31545
+ "type": "array",
31546
+ "items": {
31547
+ "type": "string",
31548
+ "enum": [
31549
+ "url",
31550
+ "page",
31551
+ "file",
31552
+ "anchor",
31553
+ "space",
31554
+ "collection",
31555
+ "user",
31556
+ "reusable-content"
31557
+ ]
31558
+ }
31559
+ }
31560
+ }
31561
+ },
31562
+ {
31563
+ "type": "object",
31564
+ "required": [
31565
+ "column",
31566
+ "values"
31567
+ ],
31568
+ "properties": {
31569
+ "column": {
31570
+ "type": "string",
31571
+ "enum": [
31572
+ "eventLinkPosition"
31573
+ ]
31574
+ },
31575
+ "values": {
31576
+ "type": "array",
31577
+ "items": {
31578
+ "$ref": "#/components/schemas/SiteInsightsLinkPosition"
31579
+ }
31580
+ }
31581
+ }
31582
+ },
31583
+ {
31584
+ "type": "object",
31585
+ "required": [
31586
+ "column",
31587
+ "values"
31588
+ ],
31589
+ "properties": {
31590
+ "column": {
31591
+ "type": "string",
31592
+ "enum": [
31593
+ "siteSection"
31594
+ ]
31595
+ },
31596
+ "values": {
31597
+ "type": "array",
31598
+ "items": {
31599
+ "type": "string",
31600
+ "nullable": true
31601
+ }
31602
+ }
31603
+ }
31604
+ },
31605
+ {
31606
+ "type": "object",
31607
+ "required": [
31608
+ "column",
31609
+ "values"
31610
+ ],
31611
+ "properties": {
31612
+ "column": {
31613
+ "type": "string",
31614
+ "enum": [
31615
+ "siteSpace"
31616
+ ]
31617
+ },
31618
+ "values": {
31619
+ "type": "array",
31620
+ "items": {
31621
+ "type": "string",
31622
+ "nullable": true
31623
+ }
31624
+ }
31625
+ }
31626
+ },
31627
+ {
31628
+ "type": "object",
31629
+ "required": [
31630
+ "column",
31631
+ "values"
31632
+ ],
31633
+ "properties": {
31634
+ "column": {
31635
+ "type": "string",
31636
+ "enum": [
31637
+ "siteShareKey"
31638
+ ]
31639
+ },
31640
+ "values": {
31641
+ "type": "array",
31642
+ "items": {
31643
+ "type": "string",
31644
+ "nullable": true
31645
+ }
31646
+ }
31647
+ }
31648
+ },
31649
+ {
31650
+ "type": "object",
31651
+ "required": [
31652
+ "column",
31653
+ "values"
31654
+ ],
31655
+ "properties": {
31656
+ "column": {
31657
+ "type": "string",
31658
+ "enum": [
31659
+ "page"
31660
+ ]
31661
+ },
31662
+ "values": {
31663
+ "type": "array",
31664
+ "items": {
31665
+ "type": "object",
31666
+ "required": [
31667
+ "page",
31668
+ "space"
31669
+ ],
31670
+ "properties": {
31671
+ "page": {
31672
+ "type": "string",
31673
+ "nullable": true
31674
+ },
31675
+ "space": {
31676
+ "type": "string"
31677
+ }
31678
+ }
31679
+ }
31680
+ }
31681
+ }
31682
+ },
31683
+ {
31684
+ "type": "object",
31685
+ "required": [
31686
+ "column",
31687
+ "values"
31688
+ ],
31689
+ "properties": {
31690
+ "column": {
31691
+ "type": "string",
31692
+ "enum": [
31693
+ "visitorGeoCountry"
31694
+ ]
31695
+ },
31696
+ "values": {
31697
+ "type": "array",
31698
+ "items": {
31699
+ "type": "string",
31700
+ "nullable": true
31701
+ }
31702
+ }
31703
+ }
31704
+ },
31705
+ {
31706
+ "type": "object",
31707
+ "required": [
31708
+ "column",
31709
+ "values"
31710
+ ],
31711
+ "properties": {
31712
+ "column": {
31713
+ "type": "string",
31714
+ "enum": [
31715
+ "visitorLanguage"
31716
+ ]
31717
+ },
31718
+ "values": {
31719
+ "type": "array",
31720
+ "items": {
31721
+ "type": "string",
31722
+ "nullable": true
31723
+ }
31724
+ }
31725
+ }
31726
+ },
31727
+ {
31728
+ "type": "object",
31729
+ "required": [
31730
+ "column",
31731
+ "values"
31732
+ ],
31733
+ "properties": {
31734
+ "column": {
31735
+ "type": "string",
31736
+ "enum": [
31737
+ "eventLinkTargetDomain"
31738
+ ]
31739
+ },
31740
+ "values": {
31741
+ "type": "array",
31742
+ "items": {
31743
+ "type": "string",
31744
+ "nullable": true
31745
+ }
31746
+ }
31747
+ }
31748
+ },
31749
+ {
31750
+ "type": "object",
31751
+ "required": [
31752
+ "column",
31753
+ "values"
31754
+ ],
31755
+ "properties": {
31756
+ "column": {
31757
+ "type": "string",
31758
+ "enum": [
31759
+ "eventAPIOperationPath"
31760
+ ]
31761
+ },
31762
+ "values": {
31763
+ "type": "array",
31764
+ "items": {
31765
+ "type": "string",
31766
+ "nullable": true
31767
+ }
31768
+ }
31769
+ }
31770
+ },
31771
+ {
31772
+ "type": "object",
31773
+ "required": [
31774
+ "column",
31775
+ "values"
31776
+ ],
31777
+ "properties": {
31778
+ "column": {
31779
+ "type": "string",
31780
+ "enum": [
31781
+ "eventAPIOperationMethod"
31782
+ ]
31783
+ },
31784
+ "values": {
31785
+ "type": "array",
31786
+ "items": {
31787
+ "type": "string",
31788
+ "nullable": true
31789
+ }
31790
+ }
31791
+ }
31792
+ },
31793
+ {
31794
+ "type": "object",
31795
+ "required": [
31796
+ "column",
31797
+ "values"
31798
+ ],
31799
+ "properties": {
31800
+ "column": {
31801
+ "type": "string",
31802
+ "enum": [
31803
+ "eventSearchQuery"
31804
+ ]
31805
+ },
31806
+ "values": {
31807
+ "type": "array",
31808
+ "items": {
31809
+ "type": "string"
31810
+ }
31811
+ }
31812
+ }
31813
+ },
31814
+ {
31815
+ "type": "object",
31816
+ "required": [
31817
+ "column",
31818
+ "values"
31819
+ ],
31820
+ "properties": {
31821
+ "column": {
31822
+ "type": "string",
31823
+ "enum": [
31824
+ "pageFeedbackRating"
31825
+ ]
31826
+ },
31827
+ "values": {
31828
+ "type": "array",
31829
+ "items": {
31830
+ "type": "object",
31831
+ "required": [
31832
+ "ok",
31833
+ "good",
31834
+ "bad"
31835
+ ],
31836
+ "properties": {
31837
+ "ok": {
31838
+ "type": "number"
31839
+ },
31840
+ "good": {
31841
+ "type": "number"
31842
+ },
31843
+ "bad": {
31844
+ "type": "number"
31845
+ }
31846
+ }
31847
+ }
31848
+ }
31849
+ }
31850
+ },
31851
+ {
31852
+ "type": "object",
31853
+ "required": [
31854
+ "column",
31855
+ "values"
31856
+ ],
31857
+ "properties": {
31858
+ "column": {
31859
+ "type": "string",
31860
+ "enum": [
31861
+ "referrer"
31862
+ ]
31863
+ },
31864
+ "values": {
31865
+ "type": "array",
31866
+ "items": {
31867
+ "type": "string"
31868
+ }
31869
+ }
31870
+ }
31871
+ },
31872
+ {
31873
+ "type": "object",
31874
+ "required": [
31875
+ "column",
31876
+ "values"
31877
+ ],
31878
+ "properties": {
31879
+ "column": {
31880
+ "type": "string",
31881
+ "enum": [
31882
+ "referrerDomain"
31883
+ ]
31884
+ },
31885
+ "values": {
31886
+ "type": "array",
31887
+ "items": {
31888
+ "type": "string"
31889
+ }
31890
+ }
31891
+ }
31892
+ },
31893
+ {
31894
+ "type": "object",
31895
+ "required": [
31896
+ "column",
31897
+ "values"
31898
+ ],
31899
+ "properties": {
31900
+ "column": {
31901
+ "type": "string",
31902
+ "enum": [
31903
+ "utmSource"
31904
+ ]
31905
+ },
31906
+ "values": {
31907
+ "type": "array",
31908
+ "items": {
31909
+ "type": "string"
31910
+ }
31911
+ }
31912
+ }
31913
+ },
31914
+ {
31915
+ "type": "object",
31916
+ "required": [
31917
+ "column",
31918
+ "values"
31919
+ ],
31920
+ "properties": {
31921
+ "column": {
31922
+ "type": "string",
31923
+ "enum": [
31924
+ "utmMedium"
31925
+ ]
31926
+ },
31927
+ "values": {
31928
+ "type": "array",
31929
+ "items": {
31930
+ "type": "string"
31931
+ }
31932
+ }
31933
+ }
31934
+ },
31935
+ {
31936
+ "type": "object",
31937
+ "required": [
31938
+ "column",
31939
+ "values"
31940
+ ],
31941
+ "properties": {
31942
+ "column": {
31943
+ "type": "string",
31944
+ "enum": [
31945
+ "utmCampaign"
31946
+ ]
31947
+ },
31948
+ "values": {
31949
+ "type": "array",
31950
+ "items": {
31951
+ "type": "string"
31952
+ }
31953
+ }
31954
+ }
31955
+ },
31956
+ {
31957
+ "type": "object",
31958
+ "required": [
31959
+ "column",
31960
+ "values"
31961
+ ],
31962
+ "properties": {
31963
+ "column": {
31964
+ "type": "string",
31965
+ "enum": [
31966
+ "utmTerm"
31967
+ ]
31968
+ },
31969
+ "values": {
31970
+ "type": "array",
31971
+ "items": {
31972
+ "type": "string"
31973
+ }
31974
+ }
31975
+ }
31976
+ },
31977
+ {
31978
+ "type": "object",
31979
+ "required": [
31980
+ "column",
31981
+ "values"
31982
+ ],
31983
+ "properties": {
31984
+ "column": {
31985
+ "type": "string",
31986
+ "enum": [
31987
+ "utmContent"
31988
+ ]
31989
+ },
31990
+ "values": {
31991
+ "type": "array",
31992
+ "items": {
31993
+ "type": "string"
31994
+ }
31995
+ }
31996
+ }
31997
+ }
31998
+ ]
31999
+ },
32000
+ "SiteInsightsQueryOperator": {
32001
+ "type": "string",
32002
+ "enum": [
32003
+ "in",
32004
+ "notIn",
32005
+ "greaterThan",
32006
+ "greaterThanOrEqual",
32007
+ "lessThan",
32008
+ "lessThanOrEqual"
32009
+ ]
32010
+ },
32011
+ "SiteInsightsQueryEventsFilter": {
32012
+ "allOf": [
32013
+ {
32014
+ "$ref": "#/components/schemas/SiteInsightsQueryEventsValues"
32015
+ },
32016
+ {
32017
+ "type": "object",
32018
+ "properties": {
32019
+ "operator": {
32020
+ "$ref": "#/components/schemas/SiteInsightsQueryOperator"
32021
+ }
32022
+ }
32023
+ }
32024
+ ]
32025
+ },
32026
+ "SiteInsightsQueryDateTimeColumn": {
32027
+ "type": "object",
32028
+ "required": [
32029
+ "column"
32030
+ ],
32031
+ "properties": {
32032
+ "column": {
32033
+ "type": "string",
32034
+ "enum": [
32035
+ "datetime"
32036
+ ]
32037
+ },
32038
+ "interval": {
32039
+ "type": "string",
32040
+ "enum": [
32041
+ "hour",
32042
+ "day",
32043
+ "week",
32044
+ "month"
32045
+ ]
32046
+ }
32047
+ }
32048
+ },
32049
+ "SiteInsightsQueryEventsColumn": {
32050
+ "oneOf": [
32051
+ {
32052
+ "$ref": "#/components/schemas/SiteInsightsQueryDateTimeColumn"
32053
+ },
32054
+ {
32055
+ "type": "object",
32056
+ "required": [
32057
+ "column"
32058
+ ],
32059
+ "properties": {
32060
+ "column": {
32061
+ "type": "string",
32062
+ "enum": [
32063
+ "eventType"
32064
+ ]
32065
+ }
32066
+ }
32067
+ },
32068
+ {
32069
+ "type": "object",
32070
+ "required": [
32071
+ "column"
32072
+ ],
32073
+ "properties": {
32074
+ "column": {
32075
+ "type": "string",
32076
+ "enum": [
32077
+ "eventsCount"
32078
+ ]
32079
+ }
32080
+ }
32081
+ },
32082
+ {
32083
+ "type": "object",
32084
+ "required": [
32085
+ "column"
32086
+ ],
32087
+ "properties": {
32088
+ "column": {
32089
+ "type": "string",
32090
+ "enum": [
32091
+ "sessionsCount"
32092
+ ]
32093
+ }
32094
+ }
32095
+ },
32096
+ {
32097
+ "type": "object",
32098
+ "required": [
32099
+ "column"
32100
+ ],
32101
+ "properties": {
32102
+ "column": {
32103
+ "type": "string",
32104
+ "enum": [
32105
+ "visitorsCount"
32106
+ ]
32107
+ }
32108
+ }
32109
+ },
32110
+ {
32111
+ "type": "object",
32112
+ "required": [
32113
+ "column"
32114
+ ],
32115
+ "properties": {
32116
+ "column": {
32117
+ "type": "string",
32118
+ "enum": [
32119
+ "siteSection"
32120
+ ]
32121
+ }
32122
+ }
32123
+ },
32124
+ {
32125
+ "type": "object",
32126
+ "required": [
32127
+ "column"
32128
+ ],
32129
+ "properties": {
32130
+ "column": {
32131
+ "type": "string",
32132
+ "enum": [
32133
+ "siteSpace"
32134
+ ]
32135
+ }
32136
+ }
32137
+ },
32138
+ {
32139
+ "type": "object",
32140
+ "required": [
32141
+ "column"
32142
+ ],
32143
+ "properties": {
32144
+ "column": {
32145
+ "type": "string",
32146
+ "enum": [
32147
+ "siteShareKey"
32148
+ ]
32149
+ }
32150
+ }
32151
+ },
32152
+ {
32153
+ "type": "object",
32154
+ "required": [
32155
+ "column"
32156
+ ],
32157
+ "properties": {
32158
+ "column": {
32159
+ "type": "string",
32160
+ "enum": [
32161
+ "page"
32162
+ ]
32163
+ }
32164
+ }
32165
+ },
32166
+ {
32167
+ "type": "object",
32168
+ "required": [
32169
+ "column"
32170
+ ],
32171
+ "properties": {
32172
+ "column": {
32173
+ "type": "string",
32174
+ "enum": [
32175
+ "visitorGeoCountry"
32176
+ ]
32177
+ }
32178
+ }
32179
+ },
32180
+ {
32181
+ "type": "object",
32182
+ "required": [
32183
+ "column"
32184
+ ],
32185
+ "properties": {
32186
+ "column": {
32187
+ "type": "string",
32188
+ "enum": [
32189
+ "visitorDevice"
32190
+ ]
32191
+ }
32192
+ }
32193
+ },
32194
+ {
32195
+ "type": "object",
32196
+ "required": [
32197
+ "column"
32198
+ ],
32199
+ "properties": {
32200
+ "column": {
32201
+ "type": "string",
32202
+ "enum": [
32203
+ "visitorBrowser"
32204
+ ]
32205
+ }
32206
+ }
32207
+ },
32208
+ {
32209
+ "type": "object",
32210
+ "required": [
32211
+ "column"
32212
+ ],
32213
+ "properties": {
32214
+ "column": {
32215
+ "type": "string",
32216
+ "enum": [
32217
+ "visitorOS"
32218
+ ]
32219
+ }
32220
+ }
32221
+ },
32222
+ {
32223
+ "type": "object",
32224
+ "required": [
32225
+ "column"
32226
+ ],
32227
+ "properties": {
32228
+ "column": {
32229
+ "type": "string",
32230
+ "enum": [
32231
+ "visitorBot"
32232
+ ]
32233
+ }
32234
+ }
32235
+ },
32236
+ {
32237
+ "type": "object",
32238
+ "required": [
32239
+ "column"
32240
+ ],
32241
+ "properties": {
32242
+ "column": {
32243
+ "type": "string",
32244
+ "enum": [
32245
+ "visitorLanguage"
32246
+ ]
32247
+ }
32248
+ }
32249
+ },
32250
+ {
32251
+ "type": "object",
32252
+ "required": [
32253
+ "column"
32254
+ ],
32255
+ "properties": {
32256
+ "column": {
32257
+ "type": "string",
32258
+ "enum": [
32259
+ "eventLinkTargetValue"
32260
+ ]
32261
+ }
32262
+ }
32263
+ },
32264
+ {
32265
+ "type": "object",
32266
+ "required": [
32267
+ "column"
32268
+ ],
32269
+ "properties": {
32270
+ "column": {
32271
+ "type": "string",
32272
+ "enum": [
32273
+ "eventLinkTargetKind"
32274
+ ]
32275
+ }
32276
+ }
32277
+ },
32278
+ {
32279
+ "type": "object",
32280
+ "required": [
32281
+ "column"
32282
+ ],
32283
+ "properties": {
32284
+ "column": {
32285
+ "type": "string",
32286
+ "enum": [
32287
+ "eventLinkTargetDomain"
32288
+ ]
32289
+ }
32290
+ }
32291
+ },
32292
+ {
32293
+ "type": "object",
32294
+ "required": [
32295
+ "column"
32296
+ ],
32297
+ "properties": {
32298
+ "column": {
32299
+ "type": "string",
32300
+ "enum": [
32301
+ "eventLinkPosition"
32302
+ ]
32303
+ }
32304
+ }
32305
+ },
32306
+ {
32307
+ "type": "object",
32308
+ "required": [
32309
+ "column"
32310
+ ],
32311
+ "properties": {
32312
+ "column": {
32313
+ "type": "string",
32314
+ "enum": [
32315
+ "eventAPIOperationPath"
32316
+ ]
32317
+ }
32318
+ }
32319
+ },
32320
+ {
32321
+ "type": "object",
32322
+ "required": [
32323
+ "column"
32324
+ ],
32325
+ "properties": {
32326
+ "column": {
32327
+ "type": "string",
32328
+ "enum": [
32329
+ "eventAPIOperationMethod"
32330
+ ]
32331
+ }
32332
+ }
32333
+ },
32334
+ {
32335
+ "type": "object",
32336
+ "required": [
32337
+ "column"
32338
+ ],
32339
+ "properties": {
32340
+ "column": {
32341
+ "type": "string",
32342
+ "enum": [
32343
+ "eventSearchQuery"
32344
+ ]
32345
+ }
32346
+ }
32347
+ },
32348
+ {
32349
+ "type": "object",
32350
+ "required": [
32351
+ "column"
32352
+ ],
32353
+ "properties": {
32354
+ "column": {
32355
+ "type": "string",
32356
+ "enum": [
32357
+ "pageFeedbackRating"
32358
+ ]
32359
+ }
32360
+ }
32361
+ },
32362
+ {
32363
+ "type": "object",
32364
+ "required": [
32365
+ "column"
32366
+ ],
32367
+ "properties": {
32368
+ "column": {
32369
+ "type": "string",
32370
+ "enum": [
32371
+ "referrer"
32372
+ ]
32373
+ }
32374
+ }
32375
+ },
32376
+ {
32377
+ "type": "object",
32378
+ "required": [
32379
+ "column"
32380
+ ],
32381
+ "properties": {
32382
+ "column": {
32383
+ "type": "string",
32384
+ "enum": [
32385
+ "referrerDomain"
32386
+ ]
32387
+ }
32388
+ }
32389
+ },
32390
+ {
32391
+ "type": "object",
32392
+ "required": [
32393
+ "column"
32394
+ ],
32395
+ "properties": {
32396
+ "column": {
32397
+ "type": "string",
32398
+ "enum": [
32399
+ "utmSource"
32400
+ ]
32401
+ }
32402
+ }
32403
+ },
32404
+ {
32405
+ "type": "object",
32406
+ "required": [
32407
+ "column"
32408
+ ],
32409
+ "properties": {
32410
+ "column": {
32411
+ "type": "string",
32412
+ "enum": [
32413
+ "utmMedium"
32414
+ ]
32415
+ }
32416
+ }
32417
+ },
32418
+ {
32419
+ "type": "object",
32420
+ "required": [
32421
+ "column"
32422
+ ],
32423
+ "properties": {
32424
+ "column": {
32425
+ "type": "string",
32426
+ "enum": [
32427
+ "utmCampaign"
32428
+ ]
32429
+ }
32430
+ }
32431
+ },
32432
+ {
32433
+ "type": "object",
32434
+ "required": [
32435
+ "column"
32436
+ ],
32437
+ "properties": {
32438
+ "column": {
32439
+ "type": "string",
32440
+ "enum": [
32441
+ "utmTerm"
32442
+ ]
32443
+ }
32444
+ }
32445
+ },
32446
+ {
32447
+ "type": "object",
32448
+ "required": [
32449
+ "column"
32450
+ ],
32451
+ "properties": {
32452
+ "column": {
32453
+ "type": "string",
32454
+ "enum": [
32455
+ "utmContent"
32456
+ ]
32457
+ }
32458
+ }
32459
+ },
32460
+ {
32461
+ "type": "object",
32462
+ "required": [
32463
+ "column"
32464
+ ],
32465
+ "properties": {
32466
+ "column": {
32467
+ "type": "string",
32468
+ "enum": [
32469
+ "visitorClaimProperty"
32470
+ ]
32471
+ }
32472
+ }
32473
+ },
32474
+ {
32475
+ "type": "object",
32476
+ "required": [
32477
+ "column",
32478
+ "claim"
32479
+ ],
32480
+ "properties": {
32481
+ "column": {
32482
+ "type": "string",
32483
+ "enum": [
32484
+ "visitorClaim"
32485
+ ]
32486
+ },
32487
+ "claim": {
32488
+ "type": "string"
32489
+ }
32490
+ }
32491
+ }
32492
+ ]
32493
+ },
32494
+ "SiteInsightsQueryRange": {
32495
+ "type": "string",
32496
+ "enum": [
32497
+ "lastYear",
32498
+ "last3Months",
32499
+ "last30Days",
32500
+ "last7Days",
32501
+ "last24Hours"
32502
+ ]
32503
+ },
32504
+ "SiteInsightsQueryEventsAggregation": {
32505
+ "type": "object",
32506
+ "required": [
32507
+ "groupBy",
32508
+ "range"
32509
+ ],
32510
+ "properties": {
32511
+ "where": {
32512
+ "type": "array",
32513
+ "items": {
32514
+ "$ref": "#/components/schemas/SiteInsightsQueryEventsFilter"
32515
+ }
32516
+ },
32517
+ "groupBy": {
32518
+ "type": "array",
32519
+ "minItems": 1,
32520
+ "items": {
32521
+ "$ref": "#/components/schemas/SiteInsightsQueryEventsColumn"
32522
+ }
32523
+ },
32524
+ "order": {
32525
+ "type": "object",
32526
+ "required": [
32527
+ "by",
32528
+ "direction"
32529
+ ],
32530
+ "properties": {
32531
+ "by": {
32532
+ "$ref": "#/components/schemas/SiteInsightsQueryEventsColumn"
32533
+ },
32534
+ "direction": {
32535
+ "type": "string",
32536
+ "enum": [
32537
+ "asc",
32538
+ "desc"
32539
+ ]
32540
+ }
32541
+ }
32542
+ },
32543
+ "range": {
32544
+ "$ref": "#/components/schemas/SiteInsightsQueryRange"
32545
+ }
32546
+ }
32547
+ },
32548
+ "SiteInsightsQueryEventsAggregationResult": {
32549
+ "type": "object",
32550
+ "required": [
32551
+ "columns"
32552
+ ],
32553
+ "properties": {
32554
+ "columns": {
32555
+ "type": "array",
32556
+ "items": {
32557
+ "$ref": "#/components/schemas/SiteInsightsQueryEventsValues"
32558
+ }
32559
+ }
32560
+ }
32561
+ },
31046
32562
  "InsightsInterval": {
31047
32563
  "type": "string",
31048
32564
  "description": "The interval for grouping the results",
@@ -32066,7 +33582,7 @@
32066
33582
  "$ref": "#/components/schemas/DocumentBlockTable"
32067
33583
  },
32068
33584
  {
32069
- "$ref": "#/components/schemas/DocumentBlockSwagger"
33585
+ "$ref": "#/components/schemas/DocumentBlockOpenAPI"
32070
33586
  },
32071
33587
  {
32072
33588
  "$ref": "#/components/schemas/DocumentBlockContentRef"