@gitbook/api 0.88.1 → 0.90.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
@@ -782,6 +782,33 @@ paths:
782
782
  schema:
783
783
  $ref: "#/components/schemas/InviteUsersAndTeams"
784
784
  "/spaces/{spaceId}/permissions/teams/{teamId}":
785
+ patch:
786
+ operationId: updateTeamPermissionInSpace
787
+ summary: Update a team's permission in a space
788
+ tags:
789
+ - spaces
790
+ security:
791
+ - user: []
792
+ parameters:
793
+ - $ref: "#/components/parameters/spaceId"
794
+ - $ref: "#/components/parameters/teamId"
795
+ requestBody:
796
+ required: true
797
+ content:
798
+ application/json:
799
+ schema:
800
+ type: object
801
+ properties:
802
+ role:
803
+ $ref: "#/components/schemas/MemberRoleOrGuest"
804
+ responses:
805
+ "204":
806
+ description: Team permission was updated
807
+ "404":
808
+ description: No team found with the given ID
809
+ $ref: "#/components/responses/NotFoundError"
810
+ default:
811
+ $ref: "#/components/responses/UnexpectedError"
785
812
  delete:
786
813
  operationId: removeTeamFromSpace
787
814
  summary: Remove a team from a space
@@ -803,6 +830,129 @@ paths:
803
830
  $ref: "#/components/responses/NotFoundError"
804
831
  default:
805
832
  $ref: "#/components/responses/UnexpectedError"
833
+ "/spaces/{spaceId}/permissions/users":
834
+ get:
835
+ operationId: listUserPermissionsInSpace
836
+ summary: List permissions for users in a space.
837
+ tags:
838
+ - permissions
839
+ - spaces
840
+ security:
841
+ - user: []
842
+ parameters:
843
+ - $ref: "#/components/parameters/spaceId"
844
+ - $ref: "#/components/parameters/listPage"
845
+ - $ref: "#/components/parameters/listLimit"
846
+ responses:
847
+ "200":
848
+ description: Listing of users who have been added to a space.
849
+ content:
850
+ application/json:
851
+ schema:
852
+ allOf:
853
+ - $ref: "#/components/schemas/List"
854
+ - type: object
855
+ required:
856
+ - items
857
+ properties:
858
+ items:
859
+ type: array
860
+ items:
861
+ $ref: "#/components/schemas/UserContentPermission"
862
+ "404":
863
+ description: No space was found with the given Id
864
+ $ref: "#/components/responses/NotFoundError"
865
+ default:
866
+ $ref: "#/components/responses/UnexpectedError"
867
+ "/spaces/{spaceId}/permissions/users/{userId}":
868
+ patch:
869
+ operationId: updateUserPermissionInSpace
870
+ summary: Update a user's permission a space
871
+ tags:
872
+ - spaces
873
+ security:
874
+ - user: []
875
+ parameters:
876
+ - $ref: "#/components/parameters/spaceId"
877
+ - $ref: "#/components/parameters/userId"
878
+ requestBody:
879
+ required: true
880
+ content:
881
+ application/json:
882
+ schema:
883
+ type: object
884
+ properties:
885
+ role:
886
+ $ref: "#/components/schemas/MemberRoleOrGuest"
887
+ responses:
888
+ "204":
889
+ description: User permission was updated
890
+ "404":
891
+ description: No user found with the given ID
892
+ $ref: "#/components/responses/NotFoundError"
893
+ default:
894
+ $ref: "#/components/responses/UnexpectedError"
895
+ delete:
896
+ operationId: removeUserFromSpace
897
+ summary: Remove a user from a space
898
+ tags:
899
+ - spaces
900
+ security:
901
+ - user: []
902
+ parameters:
903
+ - $ref: "#/components/parameters/spaceId"
904
+ - $ref: "#/components/parameters/userId"
905
+ responses:
906
+ "205":
907
+ description: The user has been removed from the space
908
+ "404":
909
+ description: No user found with the given ID
910
+ $ref: "#/components/responses/NotFoundError"
911
+ default:
912
+ $ref: "#/components/responses/UnexpectedError"
913
+ "/spaces/{spaceId}/permissions/teams":
914
+ get:
915
+ operationId: listTeamPermissionsInSpace
916
+ summary: List permissions for teams in a space.
917
+ tags:
918
+ - permissions
919
+ - spaces
920
+ security:
921
+ - user: []
922
+ parameters:
923
+ - $ref: "#/components/parameters/spaceId"
924
+ - $ref: "#/components/parameters/listPage"
925
+ - $ref: "#/components/parameters/listLimit"
926
+ responses:
927
+ "200":
928
+ description: Listing of teams who have been added to a space.
929
+ content:
930
+ application/json:
931
+ schema:
932
+ allOf:
933
+ - $ref: "#/components/schemas/List"
934
+ - type: object
935
+ required:
936
+ - items
937
+ properties:
938
+ items:
939
+ type: array
940
+ items:
941
+ type: object
942
+ description: Permission of a team in a space.
943
+ properties:
944
+ permission:
945
+ $ref: "#/components/schemas/MemberRole"
946
+ team:
947
+ $ref: "#/components/schemas/OrganizationTeam"
948
+ required:
949
+ - permission
950
+ - team
951
+ "404":
952
+ description: No space was found with the given Id
953
+ $ref: "#/components/responses/NotFoundError"
954
+ default:
955
+ $ref: "#/components/responses/UnexpectedError"
806
956
  "/spaces/{spaceId}/content":
807
957
  get:
808
958
  operationId: getCurrentRevision
@@ -3270,27 +3420,22 @@ paths:
3270
3420
  application/json:
3271
3421
  schema:
3272
3422
  $ref: "#/components/schemas/InviteUsersAndTeams"
3273
- "/collections/{collectionId}/permissions/aggregate":
3423
+ "/collections/{collectionId}/permissions/teams":
3274
3424
  get:
3275
- operationId: listPermissionsAggregateInCollection
3276
- summary: List permissions for all users in a collection.
3425
+ operationId: listTeamPermissionsInCollection
3426
+ summary: List permissions for teams in a collection.
3277
3427
  tags:
3278
3428
  - permissions
3279
- - spaces
3429
+ - collections
3280
3430
  security:
3281
3431
  - user: []
3282
3432
  parameters:
3283
3433
  - $ref: "#/components/parameters/collectionId"
3284
3434
  - $ref: "#/components/parameters/listPage"
3285
3435
  - $ref: "#/components/parameters/listLimit"
3286
- - name: role
3287
- in: query
3288
- description: If defined, only members with this role will be returned.
3289
- schema:
3290
- $ref: "#/components/schemas/MemberRole"
3291
3436
  responses:
3292
3437
  "200":
3293
- description: Listing of users who can access the collections.
3438
+ description: Listing of teams who have been added to a collection.
3294
3439
  content:
3295
3440
  application/json:
3296
3441
  schema:
@@ -3303,39 +3448,80 @@ paths:
3303
3448
  items:
3304
3449
  type: array
3305
3450
  items:
3306
- $ref: "#/components/schemas/UserContentPermission"
3451
+ type: object
3452
+ description: Permission of a team in a content.
3453
+ properties:
3454
+ permission:
3455
+ $ref: "#/components/schemas/MemberRole"
3456
+ team:
3457
+ $ref: "#/components/schemas/OrganizationTeam"
3458
+ required:
3459
+ - permission
3460
+ - team
3307
3461
  default:
3308
3462
  $ref: "#/components/responses/UnexpectedError"
3309
- /integrations:
3463
+ "/collections/{collectionId}/permissions/teams/{teamId}":
3464
+ patch:
3465
+ operationId: updateTeamPermissionInCollection
3466
+ summary: Update a team's permission a collection
3467
+ tags:
3468
+ - collections
3469
+ security:
3470
+ - user: []
3471
+ parameters:
3472
+ - $ref: "#/components/parameters/collectionId"
3473
+ - $ref: "#/components/parameters/teamId"
3474
+ requestBody:
3475
+ required: true
3476
+ content:
3477
+ application/json:
3478
+ schema:
3479
+ type: object
3480
+ properties:
3481
+ role:
3482
+ $ref: "#/components/schemas/MemberRoleOrGuest"
3483
+ responses:
3484
+ "204":
3485
+ description: Team permission was updated
3486
+ "404":
3487
+ description: No team found with the given ID
3488
+ $ref: "#/components/responses/NotFoundError"
3489
+ default:
3490
+ $ref: "#/components/responses/UnexpectedError"
3491
+ delete:
3492
+ operationId: removeTeamFromCollection
3493
+ summary: Remove a team from a collection
3494
+ tags:
3495
+ - collections
3496
+ security:
3497
+ - user: []
3498
+ parameters:
3499
+ - $ref: "#/components/parameters/collectionId"
3500
+ - $ref: "#/components/parameters/teamId"
3501
+ responses:
3502
+ "205":
3503
+ description: The team has been removed from the collection
3504
+ "404":
3505
+ description: No team found with the given ID
3506
+ $ref: "#/components/responses/NotFoundError"
3507
+ default:
3508
+ $ref: "#/components/responses/UnexpectedError"
3509
+ "/collections/{collectionId}/permissions/users":
3310
3510
  get:
3311
- operationId: listIntegrations
3312
- summary: List all public integrations
3511
+ operationId: listUserPermissionsInCollection
3512
+ summary: List permissions for users in a collection.
3313
3513
  tags:
3314
- - integrations
3514
+ - permissions
3515
+ - collections
3516
+ security:
3517
+ - user: []
3315
3518
  parameters:
3519
+ - $ref: "#/components/parameters/collectionId"
3316
3520
  - $ref: "#/components/parameters/listPage"
3317
3521
  - $ref: "#/components/parameters/listLimit"
3318
- - $ref: "#/components/parameters/integrationSearchQuery"
3319
- - name: category
3320
- in: query
3321
- description: Filter the integrations by category
3322
- schema:
3323
- $ref: "#/components/schemas/IntegrationCategory"
3324
- - name: blockDomain
3325
- in: query
3326
- description: Filter the integrations by block's domains
3327
- schema:
3328
- type: string
3329
- pattern: ^[a-zA-Z0-9-_.]+$
3330
- maxLength: 100
3331
- - name: blocks
3332
- in: query
3333
- description: If true, returns only integrations with blocks. If false, returns only integrations without blocks.
3334
- schema:
3335
- type: boolean
3336
3522
  responses:
3337
3523
  "200":
3338
- description: Paginated list of integrations
3524
+ description: Listing of users who have been added to a collection.
3339
3525
  content:
3340
3526
  application/json:
3341
3527
  schema:
@@ -3348,44 +3534,174 @@ paths:
3348
3534
  items:
3349
3535
  type: array
3350
3536
  items:
3351
- $ref: "#/components/schemas/Integration"
3537
+ $ref: "#/components/schemas/UserContentPermission"
3538
+ "404":
3539
+ description: No space found with the given Id
3540
+ $ref: "#/components/responses/NotFoundError"
3352
3541
  default:
3353
3542
  $ref: "#/components/responses/UnexpectedError"
3354
- "/integrations/{integrationName}":
3355
- get:
3356
- operationId: getIntegrationByName
3357
- summary: Get a specific integration by its name
3543
+ "/collections/{collectionId}/permissions/users/{userId}":
3544
+ patch:
3545
+ operationId: updateUserPermissionInCollection
3546
+ summary: Update a user's permission a collection
3358
3547
  tags:
3359
- - integrations
3548
+ - collections
3549
+ security:
3550
+ - user: []
3360
3551
  parameters:
3361
- - $ref: "#/components/parameters/integrationName"
3552
+ - $ref: "#/components/parameters/collectionId"
3553
+ - $ref: "#/components/parameters/userId"
3554
+ requestBody:
3555
+ required: true
3556
+ content:
3557
+ application/json:
3558
+ schema:
3559
+ type: object
3560
+ properties:
3561
+ role:
3562
+ $ref: "#/components/schemas/MemberRoleOrGuest"
3362
3563
  responses:
3363
- "200":
3364
- description: Integration
3365
- content:
3366
- application/json:
3367
- schema:
3368
- $ref: "#/components/schemas/Integration"
3564
+ "204":
3565
+ description: User permission was updated
3369
3566
  "404":
3370
- description: No matching integration found for given name
3567
+ description: No user found with the given ID
3371
3568
  $ref: "#/components/responses/NotFoundError"
3372
3569
  default:
3373
3570
  $ref: "#/components/responses/UnexpectedError"
3374
- post:
3375
- operationId: publishIntegration
3376
- summary: Publish an integration
3571
+ delete:
3572
+ operationId: removeUserFromCollection
3573
+ summary: Remove a user from a collection
3377
3574
  tags:
3378
- - integrations
3575
+ - collections
3379
3576
  security:
3380
3577
  - user: []
3381
3578
  parameters:
3382
- - $ref: "#/components/parameters/integrationName"
3579
+ - $ref: "#/components/parameters/collectionId"
3580
+ - $ref: "#/components/parameters/userId"
3383
3581
  responses:
3384
- "200":
3385
- description: OK
3386
- content:
3387
- application/json:
3388
- schema:
3582
+ "205":
3583
+ description: The user has been removed from the collection
3584
+ "404":
3585
+ description: No user found with the given ID
3586
+ $ref: "#/components/responses/NotFoundError"
3587
+ default:
3588
+ $ref: "#/components/responses/UnexpectedError"
3589
+ "/collections/{collectionId}/permissions/aggregate":
3590
+ get:
3591
+ operationId: listPermissionsAggregateInCollection
3592
+ summary: List permissions for all users in a collection.
3593
+ tags:
3594
+ - permissions
3595
+ - spaces
3596
+ security:
3597
+ - user: []
3598
+ parameters:
3599
+ - $ref: "#/components/parameters/collectionId"
3600
+ - $ref: "#/components/parameters/listPage"
3601
+ - $ref: "#/components/parameters/listLimit"
3602
+ - name: role
3603
+ in: query
3604
+ description: If defined, only members with this role will be returned.
3605
+ schema:
3606
+ $ref: "#/components/schemas/MemberRole"
3607
+ responses:
3608
+ "200":
3609
+ description: Listing of users who can access the collections.
3610
+ content:
3611
+ application/json:
3612
+ schema:
3613
+ allOf:
3614
+ - $ref: "#/components/schemas/List"
3615
+ - type: object
3616
+ required:
3617
+ - items
3618
+ properties:
3619
+ items:
3620
+ type: array
3621
+ items:
3622
+ $ref: "#/components/schemas/UserContentPermission"
3623
+ default:
3624
+ $ref: "#/components/responses/UnexpectedError"
3625
+ /integrations:
3626
+ get:
3627
+ operationId: listIntegrations
3628
+ summary: List all public integrations
3629
+ tags:
3630
+ - integrations
3631
+ parameters:
3632
+ - $ref: "#/components/parameters/listPage"
3633
+ - $ref: "#/components/parameters/listLimit"
3634
+ - $ref: "#/components/parameters/integrationSearchQuery"
3635
+ - name: category
3636
+ in: query
3637
+ description: Filter the integrations by category
3638
+ schema:
3639
+ $ref: "#/components/schemas/IntegrationCategory"
3640
+ - name: blockDomain
3641
+ in: query
3642
+ description: Filter the integrations by block's domains
3643
+ schema:
3644
+ type: string
3645
+ pattern: ^[a-zA-Z0-9-_.]+$
3646
+ maxLength: 100
3647
+ - name: blocks
3648
+ in: query
3649
+ description: If true, returns only integrations with blocks. If false, returns only integrations without blocks.
3650
+ schema:
3651
+ type: boolean
3652
+ responses:
3653
+ "200":
3654
+ description: Paginated list of integrations
3655
+ content:
3656
+ application/json:
3657
+ schema:
3658
+ allOf:
3659
+ - $ref: "#/components/schemas/List"
3660
+ - type: object
3661
+ required:
3662
+ - items
3663
+ properties:
3664
+ items:
3665
+ type: array
3666
+ items:
3667
+ $ref: "#/components/schemas/Integration"
3668
+ default:
3669
+ $ref: "#/components/responses/UnexpectedError"
3670
+ "/integrations/{integrationName}":
3671
+ get:
3672
+ operationId: getIntegrationByName
3673
+ summary: Get a specific integration by its name
3674
+ tags:
3675
+ - integrations
3676
+ parameters:
3677
+ - $ref: "#/components/parameters/integrationName"
3678
+ responses:
3679
+ "200":
3680
+ description: Integration
3681
+ content:
3682
+ application/json:
3683
+ schema:
3684
+ $ref: "#/components/schemas/Integration"
3685
+ "404":
3686
+ description: No matching integration found for given name
3687
+ $ref: "#/components/responses/NotFoundError"
3688
+ default:
3689
+ $ref: "#/components/responses/UnexpectedError"
3690
+ post:
3691
+ operationId: publishIntegration
3692
+ summary: Publish an integration
3693
+ tags:
3694
+ - integrations
3695
+ security:
3696
+ - user: []
3697
+ parameters:
3698
+ - $ref: "#/components/parameters/integrationName"
3699
+ responses:
3700
+ "200":
3701
+ description: OK
3702
+ content:
3703
+ application/json:
3704
+ schema:
3389
3705
  $ref: "#/components/schemas/Integration"
3390
3706
  "404":
3391
3707
  description: Organization could not be found for the given hostname
@@ -4993,6 +5309,162 @@ paths:
4993
5309
  application/json:
4994
5310
  schema:
4995
5311
  $ref: "#/components/schemas/UpgradeOrganizationBilling"
5312
+ "/orgs/{organizationId}/billing/migrate":
5313
+ post:
5314
+ operationId: migrateOrganizationPlan
5315
+ summary: Migrate an organization's legacy billing plan to new pricing
5316
+ tags:
5317
+ - organizations
5318
+ security:
5319
+ - user-internal: []
5320
+ parameters:
5321
+ - $ref: "#/components/parameters/organizationId"
5322
+ requestBody:
5323
+ required: true
5324
+ content:
5325
+ application/json:
5326
+ schema:
5327
+ type: object
5328
+ properties:
5329
+ interval:
5330
+ description: The desired billing interval
5331
+ $ref: "#/components/schemas/BillingInterval"
5332
+ product:
5333
+ type: string
5334
+ description: The new product to upgrade to
5335
+ enum:
5336
+ - free_2024
5337
+ - plus_2024
5338
+ - pro_2024
5339
+ changes:
5340
+ type: object
5341
+ description: Changes to apply to the organization and its sites before upgrading
5342
+ minProperties: 1
5343
+ properties:
5344
+ removeMembers:
5345
+ description: A list of member identifiers to be removed
5346
+ type: array
5347
+ items:
5348
+ type: string
5349
+ updateSiteTypes:
5350
+ description: A list of site type updates to be applied before upgrading. If a site is not present in this list, it'll be upgraded to whichever type matches its features and its published status will be unchanged.
5351
+ type: array
5352
+ items:
5353
+ type: object
5354
+ properties:
5355
+ id:
5356
+ description: The site identifier
5357
+ type: string
5358
+ type:
5359
+ description: The new site type
5360
+ type: string
5361
+ enum:
5362
+ - basic
5363
+ - premium
5364
+ - ultimate
5365
+ required:
5366
+ - id
5367
+ - type
5368
+ required:
5369
+ - product
5370
+ - interval
5371
+ responses:
5372
+ "205":
5373
+ description: Organization migrated to new pricing
5374
+ default:
5375
+ $ref: "#/components/responses/UnexpectedError"
5376
+ get:
5377
+ operationId: previewMigrateOrganizationPlan
5378
+ summary: Preview a migration of an organization to new pricing.
5379
+ tags:
5380
+ - organizations
5381
+ security:
5382
+ - user-internal: []
5383
+ parameters:
5384
+ - $ref: "#/components/parameters/organizationId"
5385
+ - name: interval
5386
+ in: query
5387
+ required: true
5388
+ description: The desired billing interval
5389
+ schema:
5390
+ $ref: "#/components/schemas/BillingInterval"
5391
+ - name: product
5392
+ in: query
5393
+ required: true
5394
+ description: The new product to upgrade to
5395
+ schema:
5396
+ type: string
5397
+ enum:
5398
+ - free_2024
5399
+ - plus_2024
5400
+ - pro_2024
5401
+ - name: removedMembersCount
5402
+ in: query
5403
+ required: true
5404
+ description: How many members have been deselected by the user
5405
+ schema:
5406
+ type: number
5407
+ responses:
5408
+ "200":
5409
+ description: OK
5410
+ content:
5411
+ application/json:
5412
+ schema:
5413
+ type: object
5414
+ properties:
5415
+ totals:
5416
+ type: object
5417
+ properties:
5418
+ members:
5419
+ description: Count of all members
5420
+ type: number
5421
+ premiumSites:
5422
+ description: Count of all premium sites
5423
+ type: number
5424
+ ultimateSites:
5425
+ description: Count of all ultimate sites
5426
+ type: number
5427
+ required:
5428
+ - members
5429
+ - premiumSites
5430
+ - ultimateSites
5431
+ invoice:
5432
+ $ref: "#/components/schemas/BillingInvoicePreview"
5433
+ required:
5434
+ - totals
5435
+ default:
5436
+ $ref: "#/components/responses/UnexpectedError"
5437
+ "/orgs/{organizationId}/billing/migrate/sites":
5438
+ get:
5439
+ operationId: listSitesToMigrate
5440
+ summary: Lists all legacy sites of an org and computes their new type and contributing features
5441
+ tags:
5442
+ - organizations
5443
+ - sites
5444
+ security:
5445
+ - user-internal: []
5446
+ parameters:
5447
+ - $ref: "#/components/parameters/organizationId"
5448
+ - $ref: "#/components/parameters/listPage"
5449
+ - $ref: "#/components/parameters/listLimit"
5450
+ responses:
5451
+ "200":
5452
+ description: OK
5453
+ content:
5454
+ application/json:
5455
+ schema:
5456
+ allOf:
5457
+ - $ref: "#/components/schemas/List"
5458
+ - type: object
5459
+ required:
5460
+ - items
5461
+ properties:
5462
+ items:
5463
+ type: array
5464
+ items:
5465
+ $ref: "#/components/schemas/SiteToMigrate"
5466
+ default:
5467
+ $ref: "#/components/responses/UnexpectedError"
4996
5468
  "/orgs/{organizationId}/billing/portal":
4997
5469
  get:
4998
5470
  operationId: getOrganizationBillingPortal
@@ -7248,10 +7720,10 @@ paths:
7248
7720
  $ref: "#/components/schemas/SiteSpace"
7249
7721
  default:
7250
7722
  $ref: "#/components/responses/UnexpectedError"
7251
- "/orgs/{organizationId}/sites/{siteId}/sections":
7723
+ "/orgs/{organizationId}/sites/{siteId}/section-groups":
7252
7724
  post:
7253
- operationId: addSectionToSite
7254
- summary: Add a section to a site in an organization
7725
+ operationId: addSectionGroupToSite
7726
+ summary: Add a section group to a site in an organization
7255
7727
  tags:
7256
7728
  - sites
7257
7729
  security:
@@ -7266,32 +7738,33 @@ paths:
7266
7738
  schema:
7267
7739
  type: object
7268
7740
  properties:
7269
- spaceId:
7270
- type: string
7271
- description: ID of the space to be added to the section as a site space variant
7272
7741
  title:
7273
- type: string
7274
- description: Title of the section
7275
- maxLength: 64
7742
+ $ref: "#/components/schemas/SiteSectionGroupTitle"
7743
+ sections:
7744
+ type: array
7745
+ items:
7746
+ type: string
7747
+ description: IDs of the sections to be added to the section group
7276
7748
  required:
7277
- - spaceId
7749
+ - title
7278
7750
  responses:
7279
7751
  "201":
7280
- description: Section added to the site
7752
+ description: Section group added to the site
7281
7753
  headers:
7282
7754
  Location:
7283
- description: API URL for the newly created site-section relationship
7755
+ description: API URL for the newly created site-section-group relationship
7284
7756
  schema:
7285
7757
  type: string
7286
7758
  content:
7287
7759
  application/json:
7288
7760
  schema:
7289
- $ref: "#/components/schemas/SiteSection"
7761
+ $ref: "#/components/schemas/SiteSectionGroup"
7290
7762
  default:
7291
7763
  $ref: "#/components/responses/UnexpectedError"
7292
- get:
7293
- operationId: listSiteSections
7294
- summary: List all the site sections under a site in an organization
7764
+ "/orgs/{organizationId}/sites/{siteId}/section-groups/{siteSectionGroupId}":
7765
+ patch:
7766
+ operationId: updateSiteSectionGroupById
7767
+ summary: Update a section group on a site in an organization
7295
7768
  tags:
7296
7769
  - sites
7297
7770
  security:
@@ -7299,21 +7772,114 @@ paths:
7299
7772
  parameters:
7300
7773
  - $ref: "#/components/parameters/organizationId"
7301
7774
  - $ref: "#/components/parameters/siteId"
7302
- - $ref: "#/components/parameters/siteShareKey"
7303
- - $ref: "#/components/parameters/listPage"
7304
- - $ref: "#/components/parameters/listLimit"
7305
- responses:
7306
- "200":
7307
- description: OK
7308
- content:
7309
- application/json:
7310
- schema:
7311
- allOf:
7312
- - $ref: "#/components/schemas/List"
7313
- - type: object
7314
- required:
7315
- - items
7316
- properties:
7775
+ - $ref: "#/components/parameters/siteSectionGroupId"
7776
+ requestBody:
7777
+ required: true
7778
+ content:
7779
+ application/json:
7780
+ schema:
7781
+ type: object
7782
+ properties:
7783
+ title:
7784
+ $ref: "#/components/schemas/SiteSectionGroupTitle"
7785
+ icon:
7786
+ oneOf:
7787
+ - $ref: "#/components/schemas/Icon"
7788
+ - type: string
7789
+ nullable: true
7790
+ enum:
7791
+ - null
7792
+ responses:
7793
+ "200":
7794
+ description: OK
7795
+ content:
7796
+ application/json:
7797
+ schema:
7798
+ $ref: "#/components/schemas/SiteSectionGroup"
7799
+ default:
7800
+ $ref: "#/components/responses/UnexpectedError"
7801
+ delete:
7802
+ operationId: deleteSiteSectionGroupById
7803
+ summary: Delete a section group on a site in an organization
7804
+ tags:
7805
+ - sites
7806
+ security:
7807
+ - user: []
7808
+ parameters:
7809
+ - $ref: "#/components/parameters/organizationId"
7810
+ - $ref: "#/components/parameters/siteId"
7811
+ - $ref: "#/components/parameters/siteSectionGroupId"
7812
+ responses:
7813
+ "205":
7814
+ description: Site section group has been deleted
7815
+ default:
7816
+ $ref: "#/components/responses/UnexpectedError"
7817
+ "/orgs/{organizationId}/sites/{siteId}/sections":
7818
+ post:
7819
+ operationId: addSectionToSite
7820
+ summary: Add a section to a site in an organization
7821
+ tags:
7822
+ - sites
7823
+ security:
7824
+ - user: []
7825
+ parameters:
7826
+ - $ref: "#/components/parameters/organizationId"
7827
+ - $ref: "#/components/parameters/siteId"
7828
+ requestBody:
7829
+ required: true
7830
+ content:
7831
+ application/json:
7832
+ schema:
7833
+ type: object
7834
+ properties:
7835
+ spaceId:
7836
+ type: string
7837
+ description: ID of the space to be added to the section as a site space variant
7838
+ title:
7839
+ type: string
7840
+ description: Title of the section
7841
+ maxLength: 64
7842
+ required:
7843
+ - spaceId
7844
+ responses:
7845
+ "201":
7846
+ description: Section added to the site
7847
+ headers:
7848
+ Location:
7849
+ description: API URL for the newly created site-section relationship
7850
+ schema:
7851
+ type: string
7852
+ content:
7853
+ application/json:
7854
+ schema:
7855
+ $ref: "#/components/schemas/SiteSection"
7856
+ default:
7857
+ $ref: "#/components/responses/UnexpectedError"
7858
+ get:
7859
+ operationId: listSiteSections
7860
+ summary: List all the site sections under a site in an organization
7861
+ tags:
7862
+ - sites
7863
+ security:
7864
+ - user: []
7865
+ parameters:
7866
+ - $ref: "#/components/parameters/organizationId"
7867
+ - $ref: "#/components/parameters/siteId"
7868
+ - $ref: "#/components/parameters/siteShareKey"
7869
+ - $ref: "#/components/parameters/listPage"
7870
+ - $ref: "#/components/parameters/listLimit"
7871
+ responses:
7872
+ "200":
7873
+ description: OK
7874
+ content:
7875
+ application/json:
7876
+ schema:
7877
+ allOf:
7878
+ - $ref: "#/components/schemas/List"
7879
+ - type: object
7880
+ required:
7881
+ - items
7882
+ properties:
7317
7883
  items:
7318
7884
  type: array
7319
7885
  items:
@@ -7515,6 +8081,24 @@ paths:
7515
8081
  $ref: "#/components/schemas/SearchAIAnswerStream"
7516
8082
  default:
7517
8083
  $ref: "#/components/responses/UnexpectedError"
8084
+ "/orgs/{organizationId}/sites/{siteId}/ask/questions":
8085
+ get:
8086
+ operationId: streamRecommendedQuestionsInSite
8087
+ summary: Stream a list of questions that can be asked in a site.
8088
+ security:
8089
+ - user: []
8090
+ parameters:
8091
+ - $ref: "#/components/parameters/organizationId"
8092
+ - $ref: "#/components/parameters/siteId"
8093
+ responses:
8094
+ "200":
8095
+ description: OK
8096
+ content:
8097
+ text/event-stream:
8098
+ schema:
8099
+ $ref: "#/components/schemas/SearchAIRecommendedQuestionStream"
8100
+ default:
8101
+ $ref: "#/components/responses/UnexpectedError"
7518
8102
  "/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}":
7519
8103
  patch:
7520
8104
  operationId: updateSiteSpaceById
@@ -8176,6 +8760,31 @@ paths:
8176
8760
  application/json:
8177
8761
  schema:
8178
8762
  $ref: "#/components/schemas/SiteInsightsQueryEventsAggregation"
8763
+ "/orgs/{organizationId}/sites/{siteId}/insights/visitor-segments":
8764
+ get:
8765
+ operationId: listSiteVisitorSegments
8766
+ summary: List visitor segments in a site.
8767
+ tags:
8768
+ - sites
8769
+ parameters:
8770
+ - $ref: "#/components/parameters/organizationId"
8771
+ - $ref: "#/components/parameters/siteId"
8772
+ responses:
8773
+ "200":
8774
+ description: List of visitor segments in the site.
8775
+ content:
8776
+ application/json:
8777
+ schema:
8778
+ allOf:
8779
+ - $ref: "#/components/schemas/List"
8780
+ - type: object
8781
+ required:
8782
+ - items
8783
+ properties:
8784
+ items:
8785
+ type: array
8786
+ items:
8787
+ $ref: "#/components/schemas/SiteInsightsVisitorSegment"
8179
8788
  "/orgs/{organizationId}/sites/{siteId}/insights/ads":
8180
8789
  get:
8181
8790
  operationId: getAdsInsightsForSiteById
@@ -8593,6 +9202,17 @@ paths:
8593
9202
  - $ref: "#/components/parameters/listPage"
8594
9203
  - $ref: "#/components/parameters/listLimit"
8595
9204
  - $ref: "#/components/parameters/xGitBookPartnerKey"
9205
+ - name: status
9206
+ in: query
9207
+ description: Filter sites by their ads review status
9208
+ required: false
9209
+ schema:
9210
+ type: string
9211
+ default: in-review
9212
+ enum:
9213
+ - in-review
9214
+ - live
9215
+ - rejected
8596
9216
  responses:
8597
9217
  "200":
8598
9218
  description: OK
@@ -8608,21 +9228,54 @@ paths:
8608
9228
  items:
8609
9229
  type: array
8610
9230
  items:
8611
- type: object
8612
- required:
8613
- - id
8614
- - url
8615
- - email
8616
- - topic
8617
- properties:
8618
- id:
8619
- type: string
8620
- url:
8621
- type: string
8622
- email:
8623
- type: string
8624
- topic:
8625
- $ref: "#/components/schemas/SiteAdsTopic"
9231
+ allOf:
9232
+ - type: object
9233
+ required:
9234
+ - id
9235
+ - url
9236
+ - email
9237
+ - topic
9238
+ properties:
9239
+ id:
9240
+ type: string
9241
+ url:
9242
+ type: string
9243
+ email:
9244
+ type: string
9245
+ topic:
9246
+ $ref: "#/components/schemas/SiteAdsTopic"
9247
+ - oneOf:
9248
+ - type: object
9249
+ required:
9250
+ - status
9251
+ properties:
9252
+ status:
9253
+ type: string
9254
+ enum:
9255
+ - in-review
9256
+ - type: object
9257
+ required:
9258
+ - status
9259
+ - zoneId
9260
+ properties:
9261
+ status:
9262
+ type: string
9263
+ enum:
9264
+ - live
9265
+ zoneId:
9266
+ type: string
9267
+ description: The ad network zone ID
9268
+ - type: object
9269
+ required:
9270
+ - status
9271
+ properties:
9272
+ status:
9273
+ type: string
9274
+ enum:
9275
+ - rejected
9276
+ reason:
9277
+ type: string
9278
+ description: Reason for the rejection
8626
9279
  default:
8627
9280
  $ref: "#/components/responses/UnexpectedError"
8628
9281
  "/ads/sites/{siteId}":
@@ -9122,6 +9775,13 @@ components:
9122
9775
  schema:
9123
9776
  type: boolean
9124
9777
  default: false
9778
+ siteSectionGroupId:
9779
+ name: siteSectionGroupId
9780
+ in: path
9781
+ required: true
9782
+ description: The unique id of the site group
9783
+ schema:
9784
+ type: string
9125
9785
  siteSectionId:
9126
9786
  name: siteSectionId
9127
9787
  in: path
@@ -12365,6 +13025,51 @@ components:
12365
13025
  - users
12366
13026
  required:
12367
13027
  - role
13028
+ UserContentPermission:
13029
+ type: object
13030
+ description: Permission of a user in a content.
13031
+ properties:
13032
+ permission:
13033
+ $ref: "#/components/schemas/MemberRole"
13034
+ user:
13035
+ $ref: "#/components/schemas/User"
13036
+ required:
13037
+ - permission
13038
+ - user
13039
+ OrganizationTeamTitle:
13040
+ type: string
13041
+ description: Title of the team
13042
+ minLength: 1
13043
+ maxLength: 64
13044
+ OrganizationTeam:
13045
+ type: object
13046
+ properties:
13047
+ object:
13048
+ type: string
13049
+ description: Type of Object, always equals to "team"
13050
+ enum:
13051
+ - team
13052
+ id:
13053
+ type: string
13054
+ description: Unique identifier for the team.
13055
+ title:
13056
+ $ref: "#/components/schemas/OrganizationTeamTitle"
13057
+ members:
13058
+ type: integer
13059
+ description: Count of members in this team.
13060
+ spaces:
13061
+ type: number
13062
+ description: Count of spaces this team has access to.
13063
+ createdAt:
13064
+ description: Date at which the team was created.
13065
+ $ref: "#/components/schemas/Timestamp"
13066
+ required:
13067
+ - object
13068
+ - id
13069
+ - title
13070
+ - members
13071
+ - spaces
13072
+ - createdAt
12368
13073
  RevisionPageGroup:
12369
13074
  allOf:
12370
13075
  - $ref: "#/components/schemas/RevisionPageBase"
@@ -12721,6 +13426,7 @@ components:
12721
13426
  properties:
12722
13427
  url:
12723
13428
  type: string
13429
+ format: uri
12724
13430
  description: URL of the content to import.
12725
13431
  source:
12726
13432
  $ref: "#/components/schemas/ImportContentSource"
@@ -14702,17 +15408,6 @@ components:
14702
15408
  description: Reactions to remove from the comment.
14703
15409
  items:
14704
15410
  type: string
14705
- UserContentPermission:
14706
- type: object
14707
- description: Permission of a user in a content.
14708
- properties:
14709
- permission:
14710
- $ref: "#/components/schemas/MemberRole"
14711
- user:
14712
- $ref: "#/components/schemas/User"
14713
- required:
14714
- - permission
14715
- - user
14716
15411
  Color:
14717
15412
  type: string
14718
15413
  pattern: ^#(?:[0-9a-fA-F]{3}){1,2}$
@@ -17227,6 +17922,9 @@ components:
17227
17922
  condition:
17228
17923
  description: Conditional expression used to evaluate whether the site section should be shown to the site's visitor.
17229
17924
  $ref: "#/components/schemas/Condition"
17925
+ sectionGroup:
17926
+ type: string
17927
+ description: ID of the section group the section belongs to in the site
17230
17928
  siteSpaces:
17231
17929
  type: array
17232
17930
  items:
@@ -17383,40 +18081,6 @@ components:
17383
18081
  required:
17384
18082
  - permission
17385
18083
  - space
17386
- OrganizationTeamTitle:
17387
- type: string
17388
- description: Title of the team
17389
- minLength: 1
17390
- maxLength: 64
17391
- OrganizationTeam:
17392
- type: object
17393
- properties:
17394
- object:
17395
- type: string
17396
- description: Type of Object, always equals to "team"
17397
- enum:
17398
- - team
17399
- id:
17400
- type: string
17401
- description: Unique identifier for the team.
17402
- title:
17403
- $ref: "#/components/schemas/OrganizationTeamTitle"
17404
- members:
17405
- type: integer
17406
- description: Count of members in this team.
17407
- spaces:
17408
- type: number
17409
- description: Count of spaces this team has access to.
17410
- createdAt:
17411
- description: Date at which the team was created.
17412
- $ref: "#/components/schemas/Timestamp"
17413
- required:
17414
- - object
17415
- - id
17416
- - title
17417
- - members
17418
- - spaces
17419
- - createdAt
17420
18084
  TeamMemberRole:
17421
18085
  type: string
17422
18086
  description: |
@@ -17738,14 +18402,55 @@ components:
17738
18402
  - interval_changed
17739
18403
  required:
17740
18404
  - result
17741
- BillingPortal:
18405
+ SiteToMigrateFeature:
18406
+ type: string
18407
+ description: These are all the features we check to determine the new pricing site type.
18408
+ enum:
18409
+ - sections
18410
+ - visitor-auth
18411
+ - redirects
18412
+ - custom-hostname
18413
+ - AI-search
18414
+ - PDF-export
18415
+ - page-ratings
18416
+ - custom-logo
18417
+ - custom-theme-preset
18418
+ - custom-fonts
18419
+ - custom-icons
18420
+ - custom-footer-logo
18421
+ - custom-footer-copyright
18422
+ - custom-footer-links
18423
+ - unlisted
18424
+ - share-links
18425
+ SiteToMigrate:
17742
18426
  type: object
17743
18427
  properties:
17744
- url:
18428
+ object:
17745
18429
  type: string
17746
- description: URL to the billing portal for an organization
18430
+ enum:
18431
+ - site-to-migrate
18432
+ site:
18433
+ $ref: "#/components/schemas/Site"
18434
+ newType:
18435
+ description: The new type of the site
18436
+ $ref: "#/components/schemas/SiteType"
18437
+ features:
18438
+ type: array
18439
+ items:
18440
+ $ref: "#/components/schemas/SiteToMigrateFeature"
17747
18441
  required:
17748
- - url
18442
+ - object
18443
+ - site
18444
+ - newType
18445
+ - features
18446
+ BillingPortal:
18447
+ type: object
18448
+ properties:
18449
+ url:
18450
+ type: string
18451
+ description: URL to the billing portal for an organization
18452
+ required:
18453
+ - url
17749
18454
  CreateSpace:
17750
18455
  type: object
17751
18456
  properties:
@@ -18286,6 +18991,19 @@ components:
18286
18991
  required:
18287
18992
  - type
18288
18993
  - plan
18994
+ CustomizationTheme:
18995
+ type: string
18996
+ description: |
18997
+ The theme to apply to the site. Supercedes the old header preset themes.
18998
+ - `clean`: Modern theme featuring translucency and minimally-styled elements.
18999
+ - `muted`: Sophisticated theme with decreased contrast between elements.
19000
+ - `bold`: High-impact theme with prominent colors and strong contrasts.
19001
+ - `gradient`: Trendy theme featuring colorful gradients and splashes of color.
19002
+ enum:
19003
+ - clean
19004
+ - muted
19005
+ - bold
19006
+ - gradient
18289
19007
  CustomizationTint:
18290
19008
  type: object
18291
19009
  properties:
@@ -18328,6 +19046,8 @@ components:
18328
19046
  styling:
18329
19047
  type: object
18330
19048
  properties:
19049
+ theme:
19050
+ $ref: "#/components/schemas/CustomizationTheme"
18331
19051
  primaryColor:
18332
19052
  $ref: "#/components/schemas/CustomizationThemedColor"
18333
19053
  tint:
@@ -18415,6 +19135,8 @@ components:
18415
19135
  required:
18416
19136
  - groups
18417
19137
  themes:
19138
+ description: |
19139
+ Customization options for the dark/light theme modes.
18418
19140
  type: object
18419
19141
  properties:
18420
19142
  default:
@@ -18628,6 +19350,36 @@ components:
18628
19350
  type: string
18629
19351
  format: uri
18630
19352
  description: A fallback URL that will be used if authentication fails.
19353
+ SiteSectionGroupTitle:
19354
+ type: string
19355
+ description: Title of the site section group
19356
+ minLength: 1
19357
+ maxLength: 100
19358
+ SiteSectionGroup:
19359
+ type: object
19360
+ properties:
19361
+ object:
19362
+ type: string
19363
+ description: The object type, which is always "site-section-group"
19364
+ enum:
19365
+ - site-section-group
19366
+ id:
19367
+ type: string
19368
+ description: Unique identifier of the site section group
19369
+ title:
19370
+ $ref: "#/components/schemas/SiteSectionGroupTitle"
19371
+ sections:
19372
+ type: array
19373
+ description: List of site section ids that are members of the group
19374
+ items:
19375
+ $ref: "#/components/schemas/SiteSection"
19376
+ icon:
19377
+ $ref: "#/components/schemas/Icon"
19378
+ required:
19379
+ - object
19380
+ - id
19381
+ - title
19382
+ - sections
18631
19383
  SiteSearchScope:
18632
19384
  oneOf:
18633
19385
  - type: object
@@ -19002,6 +19754,30 @@ components:
19002
19754
  required:
19003
19755
  - type
19004
19756
  - feedback
19757
+ SiteInsightsEventPagePostFeedbackComment:
19758
+ allOf:
19759
+ - $ref: "#/components/schemas/SiteInsightsEventBase"
19760
+ - type: object
19761
+ properties:
19762
+ type:
19763
+ type: string
19764
+ enum:
19765
+ - page_post_feedback_comment
19766
+ feedback:
19767
+ type: object
19768
+ properties:
19769
+ rating:
19770
+ $ref: "#/components/schemas/PageFeedbackRating"
19771
+ comment:
19772
+ type: string
19773
+ minLength: 1
19774
+ maxLength: 512
19775
+ required:
19776
+ - rating
19777
+ - comment
19778
+ required:
19779
+ - type
19780
+ - feedback
19005
19781
  SiteInsightsEventAskQuestion:
19006
19782
  allOf:
19007
19783
  - $ref: "#/components/schemas/SiteInsightsEventBase"
@@ -19074,6 +19850,72 @@ components:
19074
19850
  required:
19075
19851
  - type
19076
19852
  - operation
19853
+ SiteInsightsTrademarkPlacement:
19854
+ type: string
19855
+ enum:
19856
+ - sidebar
19857
+ - ad
19858
+ - footer
19859
+ - pdf
19860
+ SiteInsightsEventTrademarkClick:
19861
+ allOf:
19862
+ - $ref: "#/components/schemas/SiteInsightsEventBase"
19863
+ - type: object
19864
+ properties:
19865
+ type:
19866
+ type: string
19867
+ enum:
19868
+ - trademark_click
19869
+ placement:
19870
+ $ref: "#/components/schemas/SiteInsightsTrademarkPlacement"
19871
+ required:
19872
+ - type
19873
+ - placement
19874
+ SiteInsightsAdPlacement:
19875
+ type: string
19876
+ enum:
19877
+ - aside
19878
+ SiteInsightsAd:
19879
+ type: object
19880
+ properties:
19881
+ domain:
19882
+ type: string
19883
+ zoneId:
19884
+ type: string
19885
+ placement:
19886
+ $ref: "#/components/schemas/SiteInsightsAdPlacement"
19887
+ required:
19888
+ - domain
19889
+ - zoneId
19890
+ - placement
19891
+ SiteInsightsEventAdClick:
19892
+ allOf:
19893
+ - $ref: "#/components/schemas/SiteInsightsEventBase"
19894
+ - type: object
19895
+ properties:
19896
+ type:
19897
+ type: string
19898
+ enum:
19899
+ - ad_click
19900
+ ad:
19901
+ $ref: "#/components/schemas/SiteInsightsAd"
19902
+ required:
19903
+ - type
19904
+ - ad
19905
+ SiteInsightsEventAdDisplay:
19906
+ allOf:
19907
+ - $ref: "#/components/schemas/SiteInsightsEventBase"
19908
+ - type: object
19909
+ properties:
19910
+ type:
19911
+ type: string
19912
+ enum:
19913
+ - ad_display
19914
+ ad:
19915
+ $ref: "#/components/schemas/SiteInsightsAd"
19916
+ required:
19917
+ - type
19918
+ - ad
19077
19919
  SiteInsightsEvent:
19078
19920
  oneOf:
19079
19921
  - $ref: "#/components/schemas/SiteInsightsEventPageView"
@@ -19081,440 +19923,392 @@ components:
19081
19923
  - $ref: "#/components/schemas/SiteInsightsEventSearchTypeQuery"
19082
19924
  - $ref: "#/components/schemas/SiteInsightsEventSearchOpenResult"
19083
19925
  - $ref: "#/components/schemas/SiteInsightsEventPagePostFeedback"
19926
+ - $ref: "#/components/schemas/SiteInsightsEventPagePostFeedbackComment"
19084
19927
  - $ref: "#/components/schemas/SiteInsightsEventAskQuestion"
19085
19928
  - $ref: "#/components/schemas/SiteInsightsEventLinkClick"
19086
19929
  - $ref: "#/components/schemas/SiteInsightsEventAPIClientOpen"
19087
19930
  - $ref: "#/components/schemas/SiteInsightsEventAPIClientRequest"
19088
- SiteInsightsEventType:
19089
- type: string
19090
- enum:
19091
- - page_view
19092
- - search_open
19093
- - search_type_query
19094
- - search_open_result
19095
- - page_post_feedback
19096
- - ask_question
19097
- - link_click
19098
- - api_client_open
19099
- - api_client_request
19100
- SiteInsightsVisitorBrowser:
19101
- type: string
19102
- enum:
19103
- - chrome
19104
- - firefox
19105
- - safari
19106
- - edge
19107
- - ie
19108
- - opera
19109
- - unknown
19110
- SiteInsightsVisitorDevice:
19111
- type: string
19112
- enum:
19113
- - desktop
19114
- - tablet
19115
- - mobile
19116
- - unknown
19117
- SiteInsightsVisitorOS:
19118
- type: string
19119
- enum:
19120
- - windows
19121
- - macos
19122
- - linux
19123
- - android
19124
- - ios
19125
- - unknown
19126
- SiteInsightsVisitorBot:
19127
- type: string
19128
- nullable: true
19129
- enum:
19130
- - unknown
19131
- - googlebot
19132
- - bingbot
19133
- - duckduckbot
19134
- - facebookbot
19135
- - applebot
19136
- - chatgpt
19137
- - anthropic
19138
- SiteInsightsQueryEventsValues:
19931
+ - $ref: "#/components/schemas/SiteInsightsEventTrademarkClick"
19932
+ - $ref: "#/components/schemas/SiteInsightsEventAdClick"
19933
+ - $ref: "#/components/schemas/SiteInsightsEventAdDisplay"
19934
+ SiteInsightsQueryDateTimeColumn:
19935
+ type: object
19936
+ required:
19937
+ - column
19938
+ properties:
19939
+ column:
19940
+ type: string
19941
+ enum:
19942
+ - datetime
19943
+ interval:
19944
+ type: string
19945
+ enum:
19946
+ - hour
19947
+ - day
19948
+ - week
19949
+ - month
19950
+ SiteInsightsQueryEventsColumn:
19139
19951
  oneOf:
19952
+ - $ref: "#/components/schemas/SiteInsightsQueryDateTimeColumn"
19140
19953
  - type: object
19141
19954
  required:
19142
19955
  - column
19143
- - values
19144
19956
  properties:
19145
19957
  column:
19146
19958
  type: string
19147
19959
  enum:
19148
- - datetime
19149
- values:
19150
- type: array
19151
- items:
19152
- $ref: "#/components/schemas/Timestamp"
19960
+ - eventType
19153
19961
  - type: object
19154
19962
  required:
19155
19963
  - column
19156
- - values
19157
19964
  properties:
19158
19965
  column:
19159
19966
  type: string
19160
19967
  enum:
19161
19968
  - eventsCount
19162
- values:
19163
- type: array
19164
- items:
19165
- type: number
19166
19969
  - type: object
19167
19970
  required:
19168
19971
  - column
19169
- - values
19170
19972
  properties:
19171
19973
  column:
19172
19974
  type: string
19173
19975
  enum:
19174
19976
  - sessionsCount
19175
- values:
19176
- type: array
19177
- items:
19178
- type: number
19179
19977
  - type: object
19180
19978
  required:
19181
19979
  - column
19182
- - values
19183
19980
  properties:
19184
19981
  column:
19185
19982
  type: string
19186
19983
  enum:
19187
19984
  - visitorsCount
19188
- values:
19189
- type: array
19190
- items:
19191
- type: number
19192
19985
  - type: object
19193
19986
  required:
19194
19987
  - column
19195
- - values
19196
19988
  properties:
19197
19989
  column:
19198
19990
  type: string
19199
19991
  enum:
19200
- - eventType
19201
- values:
19202
- type: array
19203
- items:
19204
- $ref: "#/components/schemas/SiteInsightsEventType"
19992
+ - siteSection
19205
19993
  - type: object
19206
19994
  required:
19207
19995
  - column
19208
- - claim
19209
- - values
19210
19996
  properties:
19211
19997
  column:
19212
19998
  type: string
19213
19999
  enum:
19214
- - visitorClaim
19215
- claim:
20000
+ - siteSpace
20001
+ - type: object
20002
+ required:
20003
+ - column
20004
+ properties:
20005
+ column:
19216
20006
  type: string
19217
- values:
19218
- type: array
19219
- items:
19220
- type: string
20007
+ enum:
20008
+ - siteShareKey
19221
20009
  - type: object
19222
20010
  required:
19223
20011
  - column
19224
- - values
19225
20012
  properties:
19226
20013
  column:
19227
20014
  type: string
19228
20015
  enum:
19229
- - visitorClaimProperty
19230
- values:
19231
- type: array
19232
- items:
19233
- type: string
20016
+ - page
19234
20017
  - type: object
19235
20018
  required:
19236
20019
  - column
19237
- - values
19238
20020
  properties:
19239
20021
  column:
19240
20022
  type: string
19241
20023
  enum:
19242
- - visitorBrowser
19243
- values:
19244
- type: array
19245
- items:
19246
- $ref: "#/components/schemas/SiteInsightsVisitorBrowser"
20024
+ - visitorGeoCountry
19247
20025
  - type: object
19248
20026
  required:
19249
20027
  - column
19250
- - values
19251
20028
  properties:
19252
20029
  column:
19253
20030
  type: string
19254
20031
  enum:
19255
- - visitorDevice
19256
- values:
19257
- type: array
19258
- items:
19259
- $ref: "#/components/schemas/SiteInsightsVisitorDevice"
20032
+ - visitorGeoPoint
20033
+ precision:
20034
+ type: integer
20035
+ minimum: 0
20036
+ maximum: 15
19260
20037
  - type: object
19261
20038
  required:
19262
20039
  - column
19263
- - values
19264
20040
  properties:
19265
20041
  column:
19266
20042
  type: string
19267
20043
  enum:
19268
- - visitorOS
19269
- values:
19270
- type: array
19271
- items:
19272
- $ref: "#/components/schemas/SiteInsightsVisitorOS"
20044
+ - visitorDevice
19273
20045
  - type: object
19274
20046
  required:
19275
20047
  - column
19276
- - values
19277
20048
  properties:
19278
20049
  column:
19279
20050
  type: string
19280
20051
  enum:
19281
- - visitorBot
19282
- values:
19283
- type: array
19284
- items:
19285
- $ref: "#/components/schemas/SiteInsightsVisitorBot"
20052
+ - visitorBrowser
19286
20053
  - type: object
19287
20054
  required:
19288
20055
  - column
19289
- - values
19290
20056
  properties:
19291
20057
  column:
19292
20058
  type: string
19293
20059
  enum:
19294
- - eventLinkTargetValue
19295
- values:
19296
- type: array
19297
- items:
19298
- $ref: "#/components/schemas/ContentRef"
20060
+ - visitorOS
19299
20061
  - type: object
19300
20062
  required:
19301
20063
  - column
19302
- - values
19303
20064
  properties:
19304
20065
  column:
19305
20066
  type: string
19306
20067
  enum:
19307
- - eventLinkTargetKind
19308
- values:
19309
- type: array
19310
- items:
19311
- type: string
19312
- enum:
19313
- - url
19314
- - page
19315
- - file
19316
- - anchor
19317
- - space
19318
- - collection
19319
- - user
19320
- - reusable-content
20068
+ - visitorBot
20069
+ - type: object
20070
+ required:
20071
+ - column
20072
+ properties:
20073
+ column:
20074
+ type: string
20075
+ enum:
20076
+ - visitorLanguage
20077
+ - type: object
20078
+ required:
20079
+ - column
20080
+ properties:
20081
+ column:
20082
+ type: string
20083
+ enum:
20084
+ - eventLinkTargetValue
20085
+ - type: object
20086
+ required:
20087
+ - column
20088
+ properties:
20089
+ column:
20090
+ type: string
20091
+ enum:
20092
+ - eventLinkTargetKind
20093
+ - type: object
20094
+ required:
20095
+ - column
20096
+ properties:
20097
+ column:
20098
+ type: string
20099
+ enum:
20100
+ - eventLinkTargetDomain
19321
20101
  - type: object
19322
20102
  required:
19323
20103
  - column
19324
- - values
19325
20104
  properties:
19326
20105
  column:
19327
20106
  type: string
19328
20107
  enum:
19329
20108
  - eventLinkPosition
19330
- values:
19331
- type: array
19332
- items:
19333
- $ref: "#/components/schemas/SiteInsightsLinkPosition"
19334
20109
  - type: object
19335
20110
  required:
19336
20111
  - column
19337
- - values
19338
20112
  properties:
19339
20113
  column:
19340
20114
  type: string
19341
20115
  enum:
19342
- - siteSection
19343
- values:
19344
- type: array
19345
- items:
19346
- type: string
19347
- nullable: true
20116
+ - eventAPIOperationPath
19348
20117
  - type: object
19349
20118
  required:
19350
20119
  - column
19351
- - values
19352
20120
  properties:
19353
20121
  column:
19354
20122
  type: string
19355
20123
  enum:
19356
- - siteSpace
19357
- values:
19358
- type: array
19359
- items:
19360
- type: string
19361
- nullable: true
20124
+ - eventAPIOperationMethod
19362
20125
  - type: object
19363
20126
  required:
19364
20127
  - column
19365
- - values
19366
20128
  properties:
19367
20129
  column:
19368
20130
  type: string
19369
20131
  enum:
19370
- - siteShareKey
19371
- values:
19372
- type: array
19373
- items:
19374
- type: string
19375
- nullable: true
20132
+ - eventSearchQuery
19376
20133
  - type: object
19377
20134
  required:
19378
20135
  - column
19379
- - values
19380
20136
  properties:
19381
20137
  column:
19382
20138
  type: string
19383
20139
  enum:
19384
- - page
19385
- values:
19386
- type: array
19387
- items:
19388
- type: object
19389
- required:
19390
- - page
19391
- - space
19392
- properties:
19393
- page:
19394
- type: string
19395
- nullable: true
19396
- space:
19397
- type: string
20140
+ - eventPageFeedbackRating
19398
20141
  - type: object
19399
20142
  required:
19400
20143
  - column
19401
- - values
19402
20144
  properties:
19403
20145
  column:
19404
20146
  type: string
19405
20147
  enum:
19406
- - visitorGeoCountry
19407
- values:
19408
- type: array
19409
- items:
19410
- type: string
19411
- nullable: true
20148
+ - eventPageFeedbackComment
19412
20149
  - type: object
19413
20150
  required:
19414
20151
  - column
19415
- - values
19416
20152
  properties:
19417
20153
  column:
19418
20154
  type: string
19419
20155
  enum:
19420
- - visitorLanguage
19421
- values:
19422
- type: array
19423
- items:
19424
- type: string
19425
- nullable: true
20156
+ - pageFeedbackRating
19426
20157
  - type: object
19427
20158
  required:
19428
20159
  - column
19429
- - values
19430
20160
  properties:
19431
20161
  column:
19432
20162
  type: string
19433
20163
  enum:
19434
- - eventLinkTargetDomain
19435
- values:
19436
- type: array
19437
- items:
19438
- type: string
19439
- nullable: true
20164
+ - referrer
19440
20165
  - type: object
19441
20166
  required:
19442
20167
  - column
19443
- - values
19444
20168
  properties:
19445
20169
  column:
19446
20170
  type: string
19447
20171
  enum:
19448
- - eventAPIOperationPath
19449
- values:
19450
- type: array
19451
- items:
19452
- type: string
19453
- nullable: true
20172
+ - referrerDomain
19454
20173
  - type: object
19455
20174
  required:
19456
20175
  - column
19457
- - values
19458
20176
  properties:
19459
20177
  column:
19460
20178
  type: string
19461
20179
  enum:
19462
- - eventAPIOperationMethod
19463
- values:
19464
- type: array
19465
- items:
19466
- type: string
19467
- nullable: true
20180
+ - utmSource
19468
20181
  - type: object
19469
20182
  required:
19470
20183
  - column
19471
- - values
19472
20184
  properties:
19473
20185
  column:
19474
20186
  type: string
19475
20187
  enum:
19476
- - eventSearchQuery
19477
- values:
19478
- type: array
19479
- items:
19480
- type: string
20188
+ - utmMedium
19481
20189
  - type: object
19482
20190
  required:
19483
20191
  - column
19484
- - values
19485
20192
  properties:
19486
20193
  column:
19487
20194
  type: string
19488
20195
  enum:
19489
- - pageFeedbackRating
19490
- values:
19491
- type: array
19492
- items:
19493
- type: object
19494
- required:
19495
- - ok
19496
- - good
19497
- - bad
19498
- properties:
19499
- ok:
19500
- type: number
19501
- good:
19502
- type: number
19503
- bad:
19504
- type: number
20196
+ - utmCampaign
19505
20197
  - type: object
19506
20198
  required:
19507
20199
  - column
19508
- - values
19509
20200
  properties:
19510
20201
  column:
19511
20202
  type: string
19512
20203
  enum:
19513
- - referrer
19514
- values:
19515
- type: array
19516
- items:
19517
- type: string
20204
+ - utmTerm
20205
+ - type: object
20206
+ required:
20207
+ - column
20208
+ properties:
20209
+ column:
20210
+ type: string
20211
+ enum:
20212
+ - utmContent
20213
+ - type: object
20214
+ required:
20215
+ - column
20216
+ properties:
20217
+ column:
20218
+ type: string
20219
+ enum:
20220
+ - visitorClaimProperty
20221
+ - type: object
20222
+ required:
20223
+ - column
20224
+ - claim
20225
+ properties:
20226
+ column:
20227
+ type: string
20228
+ enum:
20229
+ - visitorClaim
20230
+ claim:
20231
+ type: string
20232
+ - type: object
20233
+ required:
20234
+ - column
20235
+ properties:
20236
+ column:
20237
+ type: string
20238
+ enum:
20239
+ - eventAdDomain
20240
+ - type: object
20241
+ required:
20242
+ - column
20243
+ properties:
20244
+ column:
20245
+ type: string
20246
+ enum:
20247
+ - eventAdPlacement
20248
+ - type: object
20249
+ required:
20250
+ - column
20251
+ properties:
20252
+ column:
20253
+ type: string
20254
+ enum:
20255
+ - eventTrademarkPlacement
20256
+ SiteInsightsEventType:
20257
+ type: string
20258
+ enum:
20259
+ - page_view
20260
+ - search_open
20261
+ - search_type_query
20262
+ - search_open_result
20263
+ - page_post_feedback
20264
+ - page_post_feedback_comment
20265
+ - ask_question
20266
+ - link_click
20267
+ - api_client_open
20268
+ - api_client_request
20269
+ - ad_click
20270
+ - ad_display
20271
+ - trademark_click
20272
+ SiteInsightsVisitorBrowser:
20273
+ type: string
20274
+ enum:
20275
+ - chrome
20276
+ - firefox
20277
+ - safari
20278
+ - edge
20279
+ - ie
20280
+ - opera
20281
+ - unknown
20282
+ SiteInsightsVisitorDevice:
20283
+ type: string
20284
+ enum:
20285
+ - desktop
20286
+ - tablet
20287
+ - mobile
20288
+ - unknown
20289
+ SiteInsightsVisitorOS:
20290
+ type: string
20291
+ enum:
20292
+ - windows
20293
+ - macos
20294
+ - linux
20295
+ - android
20296
+ - ios
20297
+ - unknown
20298
+ SiteInsightsVisitorBot:
20299
+ type: string
20300
+ nullable: true
20301
+ enum:
20302
+ - unknown
20303
+ - googlebot
20304
+ - bingbot
20305
+ - duckduckbot
20306
+ - facebookbot
20307
+ - applebot
20308
+ - chatgpt
20309
+ - anthropic
20310
+ SiteInsightsQueryEventsValues:
20311
+ oneOf:
19518
20312
  - type: object
19519
20313
  required:
19520
20314
  - column
@@ -19523,11 +20317,11 @@ components:
19523
20317
  column:
19524
20318
  type: string
19525
20319
  enum:
19526
- - referrerDomain
20320
+ - datetime
19527
20321
  values:
19528
20322
  type: array
19529
20323
  items:
19530
- type: string
20324
+ $ref: "#/components/schemas/Timestamp"
19531
20325
  - type: object
19532
20326
  required:
19533
20327
  - column
@@ -19536,11 +20330,11 @@ components:
19536
20330
  column:
19537
20331
  type: string
19538
20332
  enum:
19539
- - utmSource
20333
+ - eventsCount
19540
20334
  values:
19541
20335
  type: array
19542
20336
  items:
19543
- type: string
20337
+ type: number
19544
20338
  - type: object
19545
20339
  required:
19546
20340
  - column
@@ -19549,11 +20343,11 @@ components:
19549
20343
  column:
19550
20344
  type: string
19551
20345
  enum:
19552
- - utmMedium
20346
+ - sessionsCount
19553
20347
  values:
19554
20348
  type: array
19555
20349
  items:
19556
- type: string
20350
+ type: number
19557
20351
  - type: object
19558
20352
  required:
19559
20353
  - column
@@ -19562,11 +20356,11 @@ components:
19562
20356
  column:
19563
20357
  type: string
19564
20358
  enum:
19565
- - utmCampaign
20359
+ - visitorsCount
19566
20360
  values:
19567
20361
  type: array
19568
20362
  items:
19569
- type: string
20363
+ type: number
19570
20364
  - type: object
19571
20365
  required:
19572
20366
  - column
@@ -19575,310 +20369,513 @@ components:
19575
20369
  column:
19576
20370
  type: string
19577
20371
  enum:
19578
- - utmTerm
20372
+ - eventType
19579
20373
  values:
19580
20374
  type: array
19581
20375
  items:
19582
- type: string
20376
+ $ref: "#/components/schemas/SiteInsightsEventType"
19583
20377
  - type: object
19584
20378
  required:
19585
20379
  - column
20380
+ - claim
19586
20381
  - values
19587
20382
  properties:
19588
20383
  column:
19589
20384
  type: string
19590
20385
  enum:
19591
- - utmContent
20386
+ - visitorClaim
20387
+ claim:
20388
+ type: string
19592
20389
  values:
19593
20390
  type: array
19594
20391
  items:
19595
20392
  type: string
19596
- SiteInsightsQueryOperator:
19597
- type: string
19598
- enum:
19599
- - in
19600
- - notIn
19601
- - greaterThan
19602
- - greaterThanOrEqual
19603
- - lessThan
19604
- - lessThanOrEqual
19605
- SiteInsightsQueryEventsFilter:
19606
- allOf:
19607
- - $ref: "#/components/schemas/SiteInsightsQueryEventsValues"
19608
- - type: object
19609
- properties:
19610
- operator:
19611
- $ref: "#/components/schemas/SiteInsightsQueryOperator"
19612
- SiteInsightsQueryDateTimeColumn:
19613
- type: object
19614
- required:
19615
- - column
19616
- properties:
19617
- column:
19618
- type: string
19619
- enum:
19620
- - datetime
19621
- interval:
19622
- type: string
19623
- enum:
19624
- - hour
19625
- - day
19626
- - week
19627
- - month
19628
- SiteInsightsQueryEventsColumn:
19629
- oneOf:
19630
- - $ref: "#/components/schemas/SiteInsightsQueryDateTimeColumn"
19631
20393
  - type: object
19632
20394
  required:
19633
20395
  - column
20396
+ - values
19634
20397
  properties:
19635
20398
  column:
19636
20399
  type: string
19637
20400
  enum:
19638
- - eventType
20401
+ - visitorClaimProperty
20402
+ values:
20403
+ type: array
20404
+ items:
20405
+ type: string
19639
20406
  - type: object
19640
20407
  required:
19641
20408
  - column
20409
+ - values
19642
20410
  properties:
19643
20411
  column:
19644
20412
  type: string
19645
20413
  enum:
19646
- - eventsCount
20414
+ - visitorBrowser
20415
+ values:
20416
+ type: array
20417
+ items:
20418
+ $ref: "#/components/schemas/SiteInsightsVisitorBrowser"
19647
20419
  - type: object
19648
20420
  required:
19649
20421
  - column
20422
+ - values
19650
20423
  properties:
19651
20424
  column:
19652
20425
  type: string
19653
20426
  enum:
19654
- - sessionsCount
20427
+ - visitorDevice
20428
+ values:
20429
+ type: array
20430
+ items:
20431
+ $ref: "#/components/schemas/SiteInsightsVisitorDevice"
19655
20432
  - type: object
19656
20433
  required:
19657
20434
  - column
20435
+ - values
19658
20436
  properties:
19659
20437
  column:
19660
20438
  type: string
19661
20439
  enum:
19662
- - visitorsCount
20440
+ - visitorOS
20441
+ values:
20442
+ type: array
20443
+ items:
20444
+ $ref: "#/components/schemas/SiteInsightsVisitorOS"
19663
20445
  - type: object
19664
20446
  required:
19665
20447
  - column
20448
+ - values
19666
20449
  properties:
19667
20450
  column:
19668
20451
  type: string
19669
20452
  enum:
19670
- - siteSection
20453
+ - visitorBot
20454
+ values:
20455
+ type: array
20456
+ items:
20457
+ $ref: "#/components/schemas/SiteInsightsVisitorBot"
19671
20458
  - type: object
19672
20459
  required:
19673
20460
  - column
20461
+ - values
19674
20462
  properties:
19675
20463
  column:
19676
20464
  type: string
19677
20465
  enum:
19678
- - siteSpace
20466
+ - eventLinkTargetValue
20467
+ values:
20468
+ type: array
20469
+ items:
20470
+ $ref: "#/components/schemas/ContentRef"
19679
20471
  - type: object
19680
20472
  required:
19681
20473
  - column
20474
+ - values
19682
20475
  properties:
19683
20476
  column:
19684
20477
  type: string
19685
20478
  enum:
19686
- - siteShareKey
20479
+ - eventLinkTargetKind
20480
+ values:
20481
+ type: array
20482
+ items:
20483
+ type: string
20484
+ enum:
20485
+ - url
20486
+ - page
20487
+ - file
20488
+ - anchor
20489
+ - space
20490
+ - collection
20491
+ - user
20492
+ - reusable-content
19687
20493
  - type: object
19688
20494
  required:
19689
20495
  - column
20496
+ - values
19690
20497
  properties:
19691
20498
  column:
19692
20499
  type: string
19693
20500
  enum:
19694
- - page
20501
+ - eventLinkPosition
20502
+ values:
20503
+ type: array
20504
+ items:
20505
+ $ref: "#/components/schemas/SiteInsightsLinkPosition"
19695
20506
  - type: object
19696
20507
  required:
19697
20508
  - column
20509
+ - values
19698
20510
  properties:
19699
20511
  column:
19700
20512
  type: string
19701
20513
  enum:
19702
- - visitorGeoCountry
20514
+ - siteSection
20515
+ values:
20516
+ type: array
20517
+ items:
20518
+ type: string
20519
+ nullable: true
19703
20520
  - type: object
19704
20521
  required:
19705
20522
  - column
20523
+ - values
19706
20524
  properties:
19707
20525
  column:
19708
20526
  type: string
19709
20527
  enum:
19710
- - visitorDevice
20528
+ - siteSpace
20529
+ values:
20530
+ type: array
20531
+ items:
20532
+ type: string
20533
+ nullable: true
19711
20534
  - type: object
19712
20535
  required:
19713
20536
  - column
20537
+ - values
19714
20538
  properties:
19715
20539
  column:
19716
20540
  type: string
19717
20541
  enum:
19718
- - visitorBrowser
20542
+ - siteShareKey
20543
+ values:
20544
+ type: array
20545
+ items:
20546
+ type: string
20547
+ nullable: true
19719
20548
  - type: object
19720
20549
  required:
19721
20550
  - column
20551
+ - values
19722
20552
  properties:
19723
20553
  column:
19724
20554
  type: string
19725
20555
  enum:
19726
- - visitorOS
20556
+ - page
20557
+ values:
20558
+ type: array
20559
+ items:
20560
+ oneOf:
20561
+ - type: string
20562
+ nullable: true
20563
+ enum:
20564
+ - null
20565
+ - type: object
20566
+ required:
20567
+ - page
20568
+ - space
20569
+ properties:
20570
+ page:
20571
+ type: string
20572
+ nullable: true
20573
+ space:
20574
+ type: string
19727
20575
  - type: object
19728
20576
  required:
19729
20577
  - column
20578
+ - values
19730
20579
  properties:
19731
20580
  column:
19732
20581
  type: string
19733
20582
  enum:
19734
- - visitorBot
20583
+ - visitorGeoCountry
20584
+ values:
20585
+ type: array
20586
+ items:
20587
+ type: string
20588
+ nullable: true
19735
20589
  - type: object
19736
20590
  required:
19737
20591
  - column
20592
+ - values
19738
20593
  properties:
19739
20594
  column:
19740
20595
  type: string
19741
20596
  enum:
19742
- - visitorLanguage
20597
+ - visitorGeoPoint
20598
+ values:
20599
+ type: array
20600
+ items:
20601
+ type: object
20602
+ nullable: true
20603
+ required:
20604
+ - latitude
20605
+ - longitude
20606
+ - h3
20607
+ properties:
20608
+ latitude:
20609
+ type: number
20610
+ longitude:
20611
+ type: number
20612
+ h3:
20613
+ type: string
19743
20614
  - type: object
19744
20615
  required:
19745
20616
  - column
20617
+ - values
19746
20618
  properties:
19747
20619
  column:
19748
20620
  type: string
19749
20621
  enum:
19750
- - eventLinkTargetValue
20622
+ - visitorLanguage
20623
+ values:
20624
+ type: array
20625
+ items:
20626
+ type: string
20627
+ nullable: true
19751
20628
  - type: object
19752
20629
  required:
19753
20630
  - column
20631
+ - values
19754
20632
  properties:
19755
20633
  column:
19756
20634
  type: string
19757
20635
  enum:
19758
- - eventLinkTargetKind
20636
+ - eventLinkTargetDomain
20637
+ values:
20638
+ type: array
20639
+ items:
20640
+ type: string
20641
+ nullable: true
19759
20642
  - type: object
19760
20643
  required:
19761
20644
  - column
20645
+ - values
19762
20646
  properties:
19763
20647
  column:
19764
20648
  type: string
19765
20649
  enum:
19766
- - eventLinkTargetDomain
20650
+ - eventAPIOperationPath
20651
+ values:
20652
+ type: array
20653
+ items:
20654
+ type: string
20655
+ nullable: true
19767
20656
  - type: object
19768
20657
  required:
19769
20658
  - column
20659
+ - values
19770
20660
  properties:
19771
20661
  column:
19772
20662
  type: string
19773
20663
  enum:
19774
- - eventLinkPosition
20664
+ - eventAPIOperationMethod
20665
+ values:
20666
+ type: array
20667
+ items:
20668
+ type: string
20669
+ nullable: true
19775
20670
  - type: object
19776
20671
  required:
19777
20672
  - column
20673
+ - values
19778
20674
  properties:
19779
20675
  column:
19780
20676
  type: string
19781
20677
  enum:
19782
- - eventAPIOperationPath
20678
+ - eventSearchQuery
20679
+ values:
20680
+ type: array
20681
+ items:
20682
+ type: string
19783
20683
  - type: object
19784
20684
  required:
19785
20685
  - column
20686
+ - values
19786
20687
  properties:
19787
20688
  column:
19788
20689
  type: string
19789
20690
  enum:
19790
- - eventAPIOperationMethod
20691
+ - pageFeedbackRating
20692
+ values:
20693
+ type: array
20694
+ items:
20695
+ type: object
20696
+ required:
20697
+ - ok
20698
+ - good
20699
+ - bad
20700
+ properties:
20701
+ ok:
20702
+ type: number
20703
+ good:
20704
+ type: number
20705
+ bad:
20706
+ type: number
19791
20707
  - type: object
19792
20708
  required:
19793
20709
  - column
20710
+ - values
19794
20711
  properties:
19795
20712
  column:
19796
20713
  type: string
19797
20714
  enum:
19798
- - eventSearchQuery
20715
+ - eventPageFeedbackRating
20716
+ values:
20717
+ type: array
20718
+ items:
20719
+ $ref: "#/components/schemas/PageFeedbackRating"
19799
20720
  - type: object
19800
20721
  required:
19801
20722
  - column
20723
+ - values
19802
20724
  properties:
19803
20725
  column:
19804
20726
  type: string
19805
20727
  enum:
19806
- - pageFeedbackRating
20728
+ - eventPageFeedbackComment
20729
+ values:
20730
+ type: array
20731
+ items:
20732
+ type: string
19807
20733
  - type: object
19808
20734
  required:
19809
20735
  - column
20736
+ - values
19810
20737
  properties:
19811
20738
  column:
19812
20739
  type: string
19813
20740
  enum:
19814
20741
  - referrer
20742
+ values:
20743
+ type: array
20744
+ items:
20745
+ type: string
19815
20746
  - type: object
19816
20747
  required:
19817
20748
  - column
20749
+ - values
19818
20750
  properties:
19819
20751
  column:
19820
20752
  type: string
19821
20753
  enum:
19822
20754
  - referrerDomain
20755
+ values:
20756
+ type: array
20757
+ items:
20758
+ type: string
19823
20759
  - type: object
19824
20760
  required:
19825
20761
  - column
20762
+ - values
19826
20763
  properties:
19827
20764
  column:
19828
20765
  type: string
19829
20766
  enum:
19830
20767
  - utmSource
20768
+ values:
20769
+ type: array
20770
+ items:
20771
+ type: string
19831
20772
  - type: object
19832
20773
  required:
19833
20774
  - column
20775
+ - values
19834
20776
  properties:
19835
20777
  column:
19836
20778
  type: string
19837
20779
  enum:
19838
20780
  - utmMedium
20781
+ values:
20782
+ type: array
20783
+ items:
20784
+ type: string
19839
20785
  - type: object
19840
20786
  required:
19841
20787
  - column
20788
+ - values
19842
20789
  properties:
19843
20790
  column:
19844
20791
  type: string
19845
20792
  enum:
19846
20793
  - utmCampaign
20794
+ values:
20795
+ type: array
20796
+ items:
20797
+ type: string
19847
20798
  - type: object
19848
20799
  required:
19849
20800
  - column
20801
+ - values
19850
20802
  properties:
19851
20803
  column:
19852
20804
  type: string
19853
20805
  enum:
19854
20806
  - utmTerm
20807
+ values:
20808
+ type: array
20809
+ items:
20810
+ type: string
19855
20811
  - type: object
19856
20812
  required:
19857
20813
  - column
20814
+ - values
19858
20815
  properties:
19859
20816
  column:
19860
20817
  type: string
19861
20818
  enum:
19862
20819
  - utmContent
20820
+ values:
20821
+ type: array
20822
+ items:
20823
+ type: string
19863
20824
  - type: object
19864
20825
  required:
19865
20826
  - column
20827
+ - values
19866
20828
  properties:
19867
20829
  column:
19868
20830
  type: string
19869
20831
  enum:
19870
- - visitorClaimProperty
20832
+ - eventAdDomain
20833
+ values:
20834
+ type: array
20835
+ items:
20836
+ type: string
19871
20837
  - type: object
19872
20838
  required:
19873
20839
  - column
19874
- - claim
20840
+ - values
19875
20841
  properties:
19876
20842
  column:
19877
20843
  type: string
19878
20844
  enum:
19879
- - visitorClaim
19880
- claim:
20845
+ - eventAdPlacement
20846
+ values:
20847
+ type: array
20848
+ items:
20849
+ $ref: "#/components/schemas/SiteInsightsAdPlacement"
20850
+ - type: object
20851
+ required:
20852
+ - column
20853
+ - values
20854
+ properties:
20855
+ column:
19881
20856
  type: string
20857
+ enum:
20858
+ - eventTrademarkPlacement
20859
+ values:
20860
+ type: array
20861
+ items:
20862
+ $ref: "#/components/schemas/SiteInsightsTrademarkPlacement"
20863
+ SiteInsightsQueryOperator:
20864
+ type: string
20865
+ enum:
20866
+ - in
20867
+ - notIn
20868
+ - greaterThan
20869
+ - greaterThanOrEqual
20870
+ - lessThan
20871
+ - lessThanOrEqual
20872
+ SiteInsightsQueryEventsFilter:
20873
+ allOf:
20874
+ - $ref: "#/components/schemas/SiteInsightsQueryEventsValues"
20875
+ - type: object
20876
+ properties:
20877
+ operator:
20878
+ $ref: "#/components/schemas/SiteInsightsQueryOperator"
19882
20879
  SiteInsightsQueryRange:
19883
20880
  type: string
19884
20881
  enum:
@@ -19890,16 +20887,18 @@ components:
19890
20887
  SiteInsightsQueryEventsAggregation:
19891
20888
  type: object
19892
20889
  required:
19893
- - groupBy
19894
20890
  - range
19895
20891
  properties:
20892
+ select:
20893
+ type: array
20894
+ items:
20895
+ $ref: "#/components/schemas/SiteInsightsQueryEventsColumn"
19896
20896
  where:
19897
20897
  type: array
19898
20898
  items:
19899
20899
  $ref: "#/components/schemas/SiteInsightsQueryEventsFilter"
19900
20900
  groupBy:
19901
20901
  type: array
19902
- minItems: 1
19903
20902
  items:
19904
20903
  $ref: "#/components/schemas/SiteInsightsQueryEventsColumn"
19905
20904
  order:
@@ -19917,6 +20916,11 @@ components:
19917
20916
  - desc
19918
20917
  range:
19919
20918
  $ref: "#/components/schemas/SiteInsightsQueryRange"
20919
+ limit:
20920
+ type: integer
20921
+ default: 1000
20922
+ minimum: 1
20923
+ maximum: 1000
19920
20924
  SiteInsightsQueryEventsAggregationResult:
19921
20925
  type: object
19922
20926
  required:
@@ -19926,6 +20930,30 @@ components:
19926
20930
  type: array
19927
20931
  items:
19928
20932
  $ref: "#/components/schemas/SiteInsightsQueryEventsValues"
20933
+ SiteInsightsVisitorSegment:
20934
+ type: object
20935
+ description: A segment of visitors with the same characteristics.
20936
+ properties:
20937
+ title:
20938
+ type: string
20939
+ description: The title of the visitor profile.
20940
+ claims:
20941
+ $ref: "#/components/schemas/PlainObject"
20942
+ events:
20943
+ type: number
20944
+ description: The number of events for this visitor profile.
20945
+ visitors:
20946
+ type: number
20947
+ description: The number of visitors for this visitor profile.
20948
+ sessions:
20949
+ type: number
20950
+ description: The number of sessions for this visitor profile.
20951
+ required:
20952
+ - title
20953
+ - claims
20954
+ - events
20955
+ - visitors
20956
+ - sessions
19929
20957
  InsightsInterval:
19930
20958
  type: string
19931
20959
  description: The interval for grouping the results