@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.yaml CHANGED
@@ -8170,6 +8170,28 @@ paths:
8170
8170
  $ref: "#/components/schemas/SiteInsightsEvent"
8171
8171
  required:
8172
8172
  - events
8173
+ "/orgs/{organizationId}/sites/{siteId}/insights/events/aggregate":
8174
+ post:
8175
+ operationId: aggregateSiteEvents
8176
+ summary: Query and aggregate events in a site.
8177
+ tags:
8178
+ - sites
8179
+ parameters:
8180
+ - $ref: "#/components/parameters/organizationId"
8181
+ - $ref: "#/components/parameters/siteId"
8182
+ responses:
8183
+ "200":
8184
+ description: Aggregated events in the site.
8185
+ content:
8186
+ application/json:
8187
+ schema:
8188
+ $ref: "#/components/schemas/SiteInsightsQueryEventsAggregationResult"
8189
+ requestBody:
8190
+ required: true
8191
+ content:
8192
+ application/json:
8193
+ schema:
8194
+ $ref: "#/components/schemas/SiteInsightsQueryEventsAggregation"
8173
8195
  "/orgs/{organizationId}/sites/{siteId}/insights/ads":
8174
8196
  get:
8175
8197
  operationId: getAdsInsightsForSiteById
@@ -10160,6 +10182,12 @@ components:
10160
10182
  - center
10161
10183
  - right
10162
10184
  - left
10185
+ verticalAlignment:
10186
+ type: string
10187
+ enum:
10188
+ - top
10189
+ - middle
10190
+ - bottom
10163
10191
  required:
10164
10192
  - type
10165
10193
  - textAlignment
@@ -18985,6 +19013,13 @@ components:
18985
19013
  required:
18986
19014
  - type
18987
19015
  - query
19016
+ SiteInsightsLinkPosition:
19017
+ type: string
19018
+ enum:
19019
+ - header
19020
+ - footer
19021
+ - sidebar
19022
+ - content
18988
19023
  SiteInsightsEventLinkClick:
18989
19024
  allOf:
18990
19025
  - $ref: "#/components/schemas/SiteInsightsEventBase"
@@ -19000,12 +19035,7 @@ components:
19000
19035
  target:
19001
19036
  $ref: "#/components/schemas/ContentRef"
19002
19037
  position:
19003
- type: string
19004
- enum:
19005
- - header
19006
- - footer
19007
- - sidebar
19008
- - content
19038
+ $ref: "#/components/schemas/SiteInsightsLinkPosition"
19009
19039
  required:
19010
19040
  - target
19011
19041
  - position
@@ -19051,6 +19081,847 @@ components:
19051
19081
  - $ref: "#/components/schemas/SiteInsightsEventLinkClick"
19052
19082
  - $ref: "#/components/schemas/SiteInsightsEventAPIClientOpen"
19053
19083
  - $ref: "#/components/schemas/SiteInsightsEventAPIClientRequest"
19084
+ SiteInsightsEventType:
19085
+ type: string
19086
+ enum:
19087
+ - page_view
19088
+ - search_open
19089
+ - search_type_query
19090
+ - search_open_result
19091
+ - page_post_feedback
19092
+ - ask_question
19093
+ - link_click
19094
+ - api_client_open
19095
+ - api_client_request
19096
+ SiteInsightsVisitorBrowser:
19097
+ type: string
19098
+ enum:
19099
+ - chrome
19100
+ - firefox
19101
+ - safari
19102
+ - edge
19103
+ - ie
19104
+ - opera
19105
+ - unknown
19106
+ SiteInsightsVisitorDevice:
19107
+ type: string
19108
+ enum:
19109
+ - desktop
19110
+ - tablet
19111
+ - mobile
19112
+ - unknown
19113
+ SiteInsightsVisitorOS:
19114
+ type: string
19115
+ enum:
19116
+ - windows
19117
+ - macos
19118
+ - linux
19119
+ - android
19120
+ - ios
19121
+ - unknown
19122
+ SiteInsightsVisitorBot:
19123
+ type: string
19124
+ nullable: true
19125
+ enum:
19126
+ - unknown
19127
+ - googlebot
19128
+ - bingbot
19129
+ - duckduckbot
19130
+ - facebookbot
19131
+ - applebot
19132
+ - chatgpt
19133
+ - anthropic
19134
+ SiteInsightsQueryEventsValues:
19135
+ oneOf:
19136
+ - type: object
19137
+ required:
19138
+ - column
19139
+ - values
19140
+ properties:
19141
+ column:
19142
+ type: string
19143
+ enum:
19144
+ - datetime
19145
+ values:
19146
+ type: array
19147
+ items:
19148
+ $ref: "#/components/schemas/Timestamp"
19149
+ - type: object
19150
+ required:
19151
+ - column
19152
+ - values
19153
+ properties:
19154
+ column:
19155
+ type: string
19156
+ enum:
19157
+ - eventsCount
19158
+ values:
19159
+ type: array
19160
+ items:
19161
+ type: number
19162
+ - type: object
19163
+ required:
19164
+ - column
19165
+ - values
19166
+ properties:
19167
+ column:
19168
+ type: string
19169
+ enum:
19170
+ - sessionsCount
19171
+ values:
19172
+ type: array
19173
+ items:
19174
+ type: number
19175
+ - type: object
19176
+ required:
19177
+ - column
19178
+ - values
19179
+ properties:
19180
+ column:
19181
+ type: string
19182
+ enum:
19183
+ - visitorsCount
19184
+ values:
19185
+ type: array
19186
+ items:
19187
+ type: number
19188
+ - type: object
19189
+ required:
19190
+ - column
19191
+ - values
19192
+ properties:
19193
+ column:
19194
+ type: string
19195
+ enum:
19196
+ - eventType
19197
+ values:
19198
+ type: array
19199
+ items:
19200
+ $ref: "#/components/schemas/SiteInsightsEventType"
19201
+ - type: object
19202
+ required:
19203
+ - column
19204
+ - claim
19205
+ - values
19206
+ properties:
19207
+ column:
19208
+ type: string
19209
+ enum:
19210
+ - visitorClaim
19211
+ claim:
19212
+ type: string
19213
+ values:
19214
+ type: array
19215
+ items:
19216
+ type: string
19217
+ - type: object
19218
+ required:
19219
+ - column
19220
+ - values
19221
+ properties:
19222
+ column:
19223
+ type: string
19224
+ enum:
19225
+ - visitorClaimProperty
19226
+ values:
19227
+ type: array
19228
+ items:
19229
+ type: string
19230
+ - type: object
19231
+ required:
19232
+ - column
19233
+ - values
19234
+ properties:
19235
+ column:
19236
+ type: string
19237
+ enum:
19238
+ - visitorBrowser
19239
+ values:
19240
+ type: array
19241
+ items:
19242
+ $ref: "#/components/schemas/SiteInsightsVisitorBrowser"
19243
+ - type: object
19244
+ required:
19245
+ - column
19246
+ - values
19247
+ properties:
19248
+ column:
19249
+ type: string
19250
+ enum:
19251
+ - visitorDevice
19252
+ values:
19253
+ type: array
19254
+ items:
19255
+ $ref: "#/components/schemas/SiteInsightsVisitorDevice"
19256
+ - type: object
19257
+ required:
19258
+ - column
19259
+ - values
19260
+ properties:
19261
+ column:
19262
+ type: string
19263
+ enum:
19264
+ - visitorOS
19265
+ values:
19266
+ type: array
19267
+ items:
19268
+ $ref: "#/components/schemas/SiteInsightsVisitorOS"
19269
+ - type: object
19270
+ required:
19271
+ - column
19272
+ - values
19273
+ properties:
19274
+ column:
19275
+ type: string
19276
+ enum:
19277
+ - visitorBot
19278
+ values:
19279
+ type: array
19280
+ items:
19281
+ $ref: "#/components/schemas/SiteInsightsVisitorBot"
19282
+ - type: object
19283
+ required:
19284
+ - column
19285
+ - values
19286
+ properties:
19287
+ column:
19288
+ type: string
19289
+ enum:
19290
+ - eventLinkTargetValue
19291
+ values:
19292
+ type: array
19293
+ items:
19294
+ $ref: "#/components/schemas/ContentRef"
19295
+ - type: object
19296
+ required:
19297
+ - column
19298
+ - values
19299
+ properties:
19300
+ column:
19301
+ type: string
19302
+ enum:
19303
+ - eventLinkTargetKind
19304
+ values:
19305
+ type: array
19306
+ items:
19307
+ type: string
19308
+ enum:
19309
+ - url
19310
+ - page
19311
+ - file
19312
+ - anchor
19313
+ - space
19314
+ - collection
19315
+ - user
19316
+ - reusable-content
19317
+ - type: object
19318
+ required:
19319
+ - column
19320
+ - values
19321
+ properties:
19322
+ column:
19323
+ type: string
19324
+ enum:
19325
+ - eventLinkPosition
19326
+ values:
19327
+ type: array
19328
+ items:
19329
+ $ref: "#/components/schemas/SiteInsightsLinkPosition"
19330
+ - type: object
19331
+ required:
19332
+ - column
19333
+ - values
19334
+ properties:
19335
+ column:
19336
+ type: string
19337
+ enum:
19338
+ - siteSection
19339
+ values:
19340
+ type: array
19341
+ items:
19342
+ type: string
19343
+ nullable: true
19344
+ - type: object
19345
+ required:
19346
+ - column
19347
+ - values
19348
+ properties:
19349
+ column:
19350
+ type: string
19351
+ enum:
19352
+ - siteSpace
19353
+ values:
19354
+ type: array
19355
+ items:
19356
+ type: string
19357
+ nullable: true
19358
+ - type: object
19359
+ required:
19360
+ - column
19361
+ - values
19362
+ properties:
19363
+ column:
19364
+ type: string
19365
+ enum:
19366
+ - siteShareKey
19367
+ values:
19368
+ type: array
19369
+ items:
19370
+ type: string
19371
+ nullable: true
19372
+ - type: object
19373
+ required:
19374
+ - column
19375
+ - values
19376
+ properties:
19377
+ column:
19378
+ type: string
19379
+ enum:
19380
+ - page
19381
+ values:
19382
+ type: array
19383
+ items:
19384
+ type: object
19385
+ required:
19386
+ - page
19387
+ - space
19388
+ properties:
19389
+ page:
19390
+ type: string
19391
+ nullable: true
19392
+ space:
19393
+ type: string
19394
+ - type: object
19395
+ required:
19396
+ - column
19397
+ - values
19398
+ properties:
19399
+ column:
19400
+ type: string
19401
+ enum:
19402
+ - visitorGeoCountry
19403
+ values:
19404
+ type: array
19405
+ items:
19406
+ type: string
19407
+ nullable: true
19408
+ - type: object
19409
+ required:
19410
+ - column
19411
+ - values
19412
+ properties:
19413
+ column:
19414
+ type: string
19415
+ enum:
19416
+ - visitorLanguage
19417
+ values:
19418
+ type: array
19419
+ items:
19420
+ type: string
19421
+ nullable: true
19422
+ - type: object
19423
+ required:
19424
+ - column
19425
+ - values
19426
+ properties:
19427
+ column:
19428
+ type: string
19429
+ enum:
19430
+ - eventLinkTargetDomain
19431
+ values:
19432
+ type: array
19433
+ items:
19434
+ type: string
19435
+ nullable: true
19436
+ - type: object
19437
+ required:
19438
+ - column
19439
+ - values
19440
+ properties:
19441
+ column:
19442
+ type: string
19443
+ enum:
19444
+ - eventAPIOperationPath
19445
+ values:
19446
+ type: array
19447
+ items:
19448
+ type: string
19449
+ nullable: true
19450
+ - type: object
19451
+ required:
19452
+ - column
19453
+ - values
19454
+ properties:
19455
+ column:
19456
+ type: string
19457
+ enum:
19458
+ - eventAPIOperationMethod
19459
+ values:
19460
+ type: array
19461
+ items:
19462
+ type: string
19463
+ nullable: true
19464
+ - type: object
19465
+ required:
19466
+ - column
19467
+ - values
19468
+ properties:
19469
+ column:
19470
+ type: string
19471
+ enum:
19472
+ - eventSearchQuery
19473
+ values:
19474
+ type: array
19475
+ items:
19476
+ type: string
19477
+ - type: object
19478
+ required:
19479
+ - column
19480
+ - values
19481
+ properties:
19482
+ column:
19483
+ type: string
19484
+ enum:
19485
+ - pageFeedbackRating
19486
+ values:
19487
+ type: array
19488
+ items:
19489
+ type: object
19490
+ required:
19491
+ - ok
19492
+ - good
19493
+ - bad
19494
+ properties:
19495
+ ok:
19496
+ type: number
19497
+ good:
19498
+ type: number
19499
+ bad:
19500
+ type: number
19501
+ - type: object
19502
+ required:
19503
+ - column
19504
+ - values
19505
+ properties:
19506
+ column:
19507
+ type: string
19508
+ enum:
19509
+ - referrer
19510
+ values:
19511
+ type: array
19512
+ items:
19513
+ type: string
19514
+ - type: object
19515
+ required:
19516
+ - column
19517
+ - values
19518
+ properties:
19519
+ column:
19520
+ type: string
19521
+ enum:
19522
+ - referrerDomain
19523
+ values:
19524
+ type: array
19525
+ items:
19526
+ type: string
19527
+ - type: object
19528
+ required:
19529
+ - column
19530
+ - values
19531
+ properties:
19532
+ column:
19533
+ type: string
19534
+ enum:
19535
+ - utmSource
19536
+ values:
19537
+ type: array
19538
+ items:
19539
+ type: string
19540
+ - type: object
19541
+ required:
19542
+ - column
19543
+ - values
19544
+ properties:
19545
+ column:
19546
+ type: string
19547
+ enum:
19548
+ - utmMedium
19549
+ values:
19550
+ type: array
19551
+ items:
19552
+ type: string
19553
+ - type: object
19554
+ required:
19555
+ - column
19556
+ - values
19557
+ properties:
19558
+ column:
19559
+ type: string
19560
+ enum:
19561
+ - utmCampaign
19562
+ values:
19563
+ type: array
19564
+ items:
19565
+ type: string
19566
+ - type: object
19567
+ required:
19568
+ - column
19569
+ - values
19570
+ properties:
19571
+ column:
19572
+ type: string
19573
+ enum:
19574
+ - utmTerm
19575
+ values:
19576
+ type: array
19577
+ items:
19578
+ type: string
19579
+ - type: object
19580
+ required:
19581
+ - column
19582
+ - values
19583
+ properties:
19584
+ column:
19585
+ type: string
19586
+ enum:
19587
+ - utmContent
19588
+ values:
19589
+ type: array
19590
+ items:
19591
+ type: string
19592
+ SiteInsightsQueryOperator:
19593
+ type: string
19594
+ enum:
19595
+ - in
19596
+ - notIn
19597
+ - greaterThan
19598
+ - greaterThanOrEqual
19599
+ - lessThan
19600
+ - lessThanOrEqual
19601
+ SiteInsightsQueryEventsFilter:
19602
+ allOf:
19603
+ - $ref: "#/components/schemas/SiteInsightsQueryEventsValues"
19604
+ - type: object
19605
+ properties:
19606
+ operator:
19607
+ $ref: "#/components/schemas/SiteInsightsQueryOperator"
19608
+ SiteInsightsQueryDateTimeColumn:
19609
+ type: object
19610
+ required:
19611
+ - column
19612
+ properties:
19613
+ column:
19614
+ type: string
19615
+ enum:
19616
+ - datetime
19617
+ interval:
19618
+ type: string
19619
+ enum:
19620
+ - hour
19621
+ - day
19622
+ - week
19623
+ - month
19624
+ SiteInsightsQueryEventsColumn:
19625
+ oneOf:
19626
+ - $ref: "#/components/schemas/SiteInsightsQueryDateTimeColumn"
19627
+ - type: object
19628
+ required:
19629
+ - column
19630
+ properties:
19631
+ column:
19632
+ type: string
19633
+ enum:
19634
+ - eventType
19635
+ - type: object
19636
+ required:
19637
+ - column
19638
+ properties:
19639
+ column:
19640
+ type: string
19641
+ enum:
19642
+ - eventsCount
19643
+ - type: object
19644
+ required:
19645
+ - column
19646
+ properties:
19647
+ column:
19648
+ type: string
19649
+ enum:
19650
+ - sessionsCount
19651
+ - type: object
19652
+ required:
19653
+ - column
19654
+ properties:
19655
+ column:
19656
+ type: string
19657
+ enum:
19658
+ - visitorsCount
19659
+ - type: object
19660
+ required:
19661
+ - column
19662
+ properties:
19663
+ column:
19664
+ type: string
19665
+ enum:
19666
+ - siteSection
19667
+ - type: object
19668
+ required:
19669
+ - column
19670
+ properties:
19671
+ column:
19672
+ type: string
19673
+ enum:
19674
+ - siteSpace
19675
+ - type: object
19676
+ required:
19677
+ - column
19678
+ properties:
19679
+ column:
19680
+ type: string
19681
+ enum:
19682
+ - siteShareKey
19683
+ - type: object
19684
+ required:
19685
+ - column
19686
+ properties:
19687
+ column:
19688
+ type: string
19689
+ enum:
19690
+ - page
19691
+ - type: object
19692
+ required:
19693
+ - column
19694
+ properties:
19695
+ column:
19696
+ type: string
19697
+ enum:
19698
+ - visitorGeoCountry
19699
+ - type: object
19700
+ required:
19701
+ - column
19702
+ properties:
19703
+ column:
19704
+ type: string
19705
+ enum:
19706
+ - visitorDevice
19707
+ - type: object
19708
+ required:
19709
+ - column
19710
+ properties:
19711
+ column:
19712
+ type: string
19713
+ enum:
19714
+ - visitorBrowser
19715
+ - type: object
19716
+ required:
19717
+ - column
19718
+ properties:
19719
+ column:
19720
+ type: string
19721
+ enum:
19722
+ - visitorOS
19723
+ - type: object
19724
+ required:
19725
+ - column
19726
+ properties:
19727
+ column:
19728
+ type: string
19729
+ enum:
19730
+ - visitorBot
19731
+ - type: object
19732
+ required:
19733
+ - column
19734
+ properties:
19735
+ column:
19736
+ type: string
19737
+ enum:
19738
+ - visitorLanguage
19739
+ - type: object
19740
+ required:
19741
+ - column
19742
+ properties:
19743
+ column:
19744
+ type: string
19745
+ enum:
19746
+ - eventLinkTargetValue
19747
+ - type: object
19748
+ required:
19749
+ - column
19750
+ properties:
19751
+ column:
19752
+ type: string
19753
+ enum:
19754
+ - eventLinkTargetKind
19755
+ - type: object
19756
+ required:
19757
+ - column
19758
+ properties:
19759
+ column:
19760
+ type: string
19761
+ enum:
19762
+ - eventLinkTargetDomain
19763
+ - type: object
19764
+ required:
19765
+ - column
19766
+ properties:
19767
+ column:
19768
+ type: string
19769
+ enum:
19770
+ - eventLinkPosition
19771
+ - type: object
19772
+ required:
19773
+ - column
19774
+ properties:
19775
+ column:
19776
+ type: string
19777
+ enum:
19778
+ - eventAPIOperationPath
19779
+ - type: object
19780
+ required:
19781
+ - column
19782
+ properties:
19783
+ column:
19784
+ type: string
19785
+ enum:
19786
+ - eventAPIOperationMethod
19787
+ - type: object
19788
+ required:
19789
+ - column
19790
+ properties:
19791
+ column:
19792
+ type: string
19793
+ enum:
19794
+ - eventSearchQuery
19795
+ - type: object
19796
+ required:
19797
+ - column
19798
+ properties:
19799
+ column:
19800
+ type: string
19801
+ enum:
19802
+ - pageFeedbackRating
19803
+ - type: object
19804
+ required:
19805
+ - column
19806
+ properties:
19807
+ column:
19808
+ type: string
19809
+ enum:
19810
+ - referrer
19811
+ - type: object
19812
+ required:
19813
+ - column
19814
+ properties:
19815
+ column:
19816
+ type: string
19817
+ enum:
19818
+ - referrerDomain
19819
+ - type: object
19820
+ required:
19821
+ - column
19822
+ properties:
19823
+ column:
19824
+ type: string
19825
+ enum:
19826
+ - utmSource
19827
+ - type: object
19828
+ required:
19829
+ - column
19830
+ properties:
19831
+ column:
19832
+ type: string
19833
+ enum:
19834
+ - utmMedium
19835
+ - type: object
19836
+ required:
19837
+ - column
19838
+ properties:
19839
+ column:
19840
+ type: string
19841
+ enum:
19842
+ - utmCampaign
19843
+ - type: object
19844
+ required:
19845
+ - column
19846
+ properties:
19847
+ column:
19848
+ type: string
19849
+ enum:
19850
+ - utmTerm
19851
+ - type: object
19852
+ required:
19853
+ - column
19854
+ properties:
19855
+ column:
19856
+ type: string
19857
+ enum:
19858
+ - utmContent
19859
+ - type: object
19860
+ required:
19861
+ - column
19862
+ properties:
19863
+ column:
19864
+ type: string
19865
+ enum:
19866
+ - visitorClaimProperty
19867
+ - type: object
19868
+ required:
19869
+ - column
19870
+ - claim
19871
+ properties:
19872
+ column:
19873
+ type: string
19874
+ enum:
19875
+ - visitorClaim
19876
+ claim:
19877
+ type: string
19878
+ SiteInsightsQueryRange:
19879
+ type: string
19880
+ enum:
19881
+ - lastYear
19882
+ - last3Months
19883
+ - last30Days
19884
+ - last7Days
19885
+ - last24Hours
19886
+ SiteInsightsQueryEventsAggregation:
19887
+ type: object
19888
+ required:
19889
+ - groupBy
19890
+ - range
19891
+ properties:
19892
+ where:
19893
+ type: array
19894
+ items:
19895
+ $ref: "#/components/schemas/SiteInsightsQueryEventsFilter"
19896
+ groupBy:
19897
+ type: array
19898
+ minItems: 1
19899
+ items:
19900
+ $ref: "#/components/schemas/SiteInsightsQueryEventsColumn"
19901
+ order:
19902
+ type: object
19903
+ required:
19904
+ - by
19905
+ - direction
19906
+ properties:
19907
+ by:
19908
+ $ref: "#/components/schemas/SiteInsightsQueryEventsColumn"
19909
+ direction:
19910
+ type: string
19911
+ enum:
19912
+ - asc
19913
+ - desc
19914
+ range:
19915
+ $ref: "#/components/schemas/SiteInsightsQueryRange"
19916
+ SiteInsightsQueryEventsAggregationResult:
19917
+ type: object
19918
+ required:
19919
+ - columns
19920
+ properties:
19921
+ columns:
19922
+ type: array
19923
+ items:
19924
+ $ref: "#/components/schemas/SiteInsightsQueryEventsValues"
19054
19925
  InsightsInterval:
19055
19926
  type: string
19056
19927
  description: The interval for grouping the results