@gitbook/api 0.88.1 → 0.89.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
@@ -1380,6 +1380,40 @@
1380
1380
  }
1381
1381
  }
1382
1382
  },
1383
+ "/spaces/{spaceId}/permissions/users/{userId}": {
1384
+ "delete": {
1385
+ "operationId": "removeUserFromSpace",
1386
+ "summary": "Remove a user from a space",
1387
+ "tags": [
1388
+ "spaces"
1389
+ ],
1390
+ "security": [
1391
+ {
1392
+ "user": []
1393
+ }
1394
+ ],
1395
+ "parameters": [
1396
+ {
1397
+ "$ref": "#/components/parameters/spaceId"
1398
+ },
1399
+ {
1400
+ "$ref": "#/components/parameters/userId"
1401
+ }
1402
+ ],
1403
+ "responses": {
1404
+ "205": {
1405
+ "description": "The user has been removed from the space"
1406
+ },
1407
+ "404": {
1408
+ "description": "No user found with the given ID",
1409
+ "$ref": "#/components/responses/NotFoundError"
1410
+ },
1411
+ "default": {
1412
+ "$ref": "#/components/responses/UnexpectedError"
1413
+ }
1414
+ }
1415
+ }
1416
+ },
1383
1417
  "/spaces/{spaceId}/content": {
1384
1418
  "get": {
1385
1419
  "operationId": "getCurrentRevision",
@@ -5980,6 +6014,74 @@
5980
6014
  }
5981
6015
  }
5982
6016
  },
6017
+ "/collections/{collectionId}/permissions/teams/{teamId}": {
6018
+ "delete": {
6019
+ "operationId": "removeTeamFromCollection",
6020
+ "summary": "Remove a team from a collection",
6021
+ "tags": [
6022
+ "collections"
6023
+ ],
6024
+ "security": [
6025
+ {
6026
+ "user": []
6027
+ }
6028
+ ],
6029
+ "parameters": [
6030
+ {
6031
+ "$ref": "#/components/parameters/collectionId"
6032
+ },
6033
+ {
6034
+ "$ref": "#/components/parameters/teamId"
6035
+ }
6036
+ ],
6037
+ "responses": {
6038
+ "205": {
6039
+ "description": "The team has been removed from the collection"
6040
+ },
6041
+ "404": {
6042
+ "description": "No team found with the given ID",
6043
+ "$ref": "#/components/responses/NotFoundError"
6044
+ },
6045
+ "default": {
6046
+ "$ref": "#/components/responses/UnexpectedError"
6047
+ }
6048
+ }
6049
+ }
6050
+ },
6051
+ "/collections/{collectionId}/permissions/users/{userId}": {
6052
+ "delete": {
6053
+ "operationId": "removeUserFromCollection",
6054
+ "summary": "Remove a user from a collection",
6055
+ "tags": [
6056
+ "collections"
6057
+ ],
6058
+ "security": [
6059
+ {
6060
+ "user": []
6061
+ }
6062
+ ],
6063
+ "parameters": [
6064
+ {
6065
+ "$ref": "#/components/parameters/collectionId"
6066
+ },
6067
+ {
6068
+ "$ref": "#/components/parameters/userId"
6069
+ }
6070
+ ],
6071
+ "responses": {
6072
+ "205": {
6073
+ "description": "The user has been removed from the collection"
6074
+ },
6075
+ "404": {
6076
+ "description": "No user found with the given ID",
6077
+ "$ref": "#/components/responses/NotFoundError"
6078
+ },
6079
+ "default": {
6080
+ "$ref": "#/components/responses/UnexpectedError"
6081
+ }
6082
+ }
6083
+ }
6084
+ },
5983
6085
  "/collections/{collectionId}/permissions/aggregate": {
5984
6086
  "get": {
5985
6087
  "operationId": "listPermissionsAggregateInCollection",
@@ -9016,6 +9118,175 @@
9016
9118
  }
9017
9119
  }
9018
9120
  },
9121
+ "/orgs/{organizationId}/billing/migrate": {
9122
+ "post": {
9123
+ "operationId": "migrateOrganizationPlan",
9124
+ "summary": "Migrate an organization's legacy billing plan to new pricing",
9125
+ "tags": [
9126
+ "organizations"
9127
+ ],
9128
+ "security": [
9129
+ {
9130
+ "user-internal": []
9131
+ }
9132
+ ],
9133
+ "parameters": [
9134
+ {
9135
+ "$ref": "#/components/parameters/organizationId"
9136
+ },
9137
+ {
9138
+ "name": "interval",
9139
+ "in": "query",
9140
+ "required": true,
9141
+ "description": "The desired billing interval",
9142
+ "schema": {
9143
+ "$ref": "#/components/schemas/BillingInterval"
9144
+ }
9145
+ },
9146
+ {
9147
+ "name": "product",
9148
+ "in": "query",
9149
+ "required": true,
9150
+ "description": "The new product to upgrade to",
9151
+ "schema": {
9152
+ "type": "string",
9153
+ "enum": [
9154
+ "free_2024",
9155
+ "plus_2024",
9156
+ "pro_2024"
9157
+ ]
9158
+ }
9159
+ }
9160
+ ],
9161
+ "responses": {
9162
+ "205": {
9163
+ "description": "Organization migrated to new pricing"
9164
+ },
9165
+ "default": {
9166
+ "$ref": "#/components/responses/UnexpectedError"
9167
+ }
9168
+ }
9169
+ },
9170
+ "get": {
9171
+ "operationId": "previewMigrateOrganizationPlan",
9172
+ "summary": "Preview a migration of an organization to new pricing.",
9173
+ "tags": [
9174
+ "organizations"
9175
+ ],
9176
+ "security": [
9177
+ {
9178
+ "user-internal": []
9179
+ }
9180
+ ],
9181
+ "parameters": [
9182
+ {
9183
+ "$ref": "#/components/parameters/organizationId"
9184
+ },
9185
+ {
9186
+ "name": "interval",
9187
+ "in": "query",
9188
+ "required": true,
9189
+ "description": "The desired billing interval",
9190
+ "schema": {
9191
+ "$ref": "#/components/schemas/BillingInterval"
9192
+ }
9193
+ },
9194
+ {
9195
+ "name": "product",
9196
+ "in": "query",
9197
+ "required": true,
9198
+ "description": "The new product to upgrade to",
9199
+ "schema": {
9200
+ "type": "string",
9201
+ "enum": [
9202
+ "free_2024",
9203
+ "plus_2024",
9204
+ "pro_2024"
9205
+ ]
9206
+ }
9207
+ }
9208
+ ],
9209
+ "responses": {
9210
+ "200": {
9211
+ "description": "OK",
9212
+ "content": {
9213
+ "application/json": {
9214
+ "schema": {
9215
+ "type": "object",
9216
+ "properties": {
9217
+ "invoice": {
9218
+ "$ref": "#/components/schemas/BillingInvoicePreview"
9219
+ }
9220
+ }
9221
+ }
9222
+ }
9223
+ }
9224
+ },
9225
+ "default": {
9226
+ "$ref": "#/components/responses/UnexpectedError"
9227
+ }
9228
+ }
9229
+ }
9230
+ },
9231
+ "/orgs/{organizationId}/billing/migrate/sites": {
9232
+ "get": {
9233
+ "operationId": "listSitesToMigrate",
9234
+ "summary": "Lists all legacy sites of an org and computes their new type and contributing features",
9235
+ "tags": [
9236
+ "organizations",
9237
+ "sites"
9238
+ ],
9239
+ "security": [
9240
+ {
9241
+ "user-internal": []
9242
+ }
9243
+ ],
9244
+ "parameters": [
9245
+ {
9246
+ "$ref": "#/components/parameters/organizationId"
9247
+ },
9248
+ {
9249
+ "$ref": "#/components/parameters/listPage"
9250
+ },
9251
+ {
9252
+ "$ref": "#/components/parameters/listLimit"
9253
+ }
9254
+ ],
9255
+ "responses": {
9256
+ "200": {
9257
+ "description": "OK",
9258
+ "content": {
9259
+ "application/json": {
9260
+ "schema": {
9261
+ "allOf": [
9262
+ {
9263
+ "$ref": "#/components/schemas/List"
9264
+ },
9265
+ {
9266
+ "type": "object",
9267
+ "required": [
9268
+ "items"
9269
+ ],
9270
+ "properties": {
9271
+ "items": {
9272
+ "type": "array",
9273
+ "items": {
9274
+ "$ref": "#/components/schemas/SiteToMigrate"
9275
+ }
9276
+ }
9277
+ }
9278
+ }
9279
+ ]
9280
+ }
9281
+ }
9282
+ }
9283
+ },
9284
+ "default": {
9285
+ "$ref": "#/components/responses/UnexpectedError"
9286
+ }
9287
+ }
9288
+ }
9289
+ },
9019
9290
  "/orgs/{organizationId}/billing/portal": {
9020
9291
  "get": {
9021
9292
  "operationId": "getOrganizationBillingPortal",
@@ -12991,10 +13262,10 @@
12991
13262
  }
12992
13263
  }
12993
13264
  },
12994
- "/orgs/{organizationId}/sites/{siteId}/sections": {
13265
+ "/orgs/{organizationId}/sites/{siteId}/section-groups": {
12995
13266
  "post": {
12996
- "operationId": "addSectionToSite",
12997
- "summary": "Add a section to a site in an organization",
13267
+ "operationId": "addSectionGroupToSite",
13268
+ "summary": "Add a section group to a site in an organization",
12998
13269
  "tags": [
12999
13270
  "sites"
13000
13271
  ],
@@ -13018,18 +13289,19 @@
13018
13289
  "schema": {
13019
13290
  "type": "object",
13020
13291
  "properties": {
13021
- "spaceId": {
13022
- "type": "string",
13023
- "description": "ID of the space to be added to the section as a site space variant"
13024
- },
13025
13292
  "title": {
13026
- "type": "string",
13027
- "description": "Title of the section",
13028
- "maxLength": 64
13293
+ "$ref": "#/components/schemas/SiteSectionGroupTitle"
13294
+ },
13295
+ "sections": {
13296
+ "type": "array",
13297
+ "items": {
13298
+ "type": "string"
13299
+ },
13300
+ "description": "IDs of the sections to be added to the section group"
13029
13301
  }
13030
13302
  },
13031
13303
  "required": [
13032
- "spaceId"
13304
+ "title"
13033
13305
  ]
13034
13306
  }
13035
13307
  }
@@ -13037,10 +13309,10 @@
13037
13309
  },
13038
13310
  "responses": {
13039
13311
  "201": {
13040
- "description": "Section added to the site",
13312
+ "description": "Section group added to the site",
13041
13313
  "headers": {
13042
13314
  "Location": {
13043
- "description": "API URL for the newly created site-section relationship",
13315
+ "description": "API URL for the newly created site-section-group relationship",
13044
13316
  "schema": {
13045
13317
  "type": "string"
13046
13318
  }
@@ -13049,7 +13321,176 @@
13049
13321
  "content": {
13050
13322
  "application/json": {
13051
13323
  "schema": {
13052
- "$ref": "#/components/schemas/SiteSection"
13324
+ "$ref": "#/components/schemas/SiteSectionGroup"
13325
+ }
13326
+ }
13327
+ }
13328
+ },
13329
+ "default": {
13330
+ "$ref": "#/components/responses/UnexpectedError"
13331
+ }
13332
+ }
13333
+ }
13334
+ },
13335
+ "/orgs/{organizationId}/sites/{siteId}/section-groups/{siteSectionGroupId}": {
13336
+ "patch": {
13337
+ "operationId": "updateSiteSectionGroupById",
13338
+ "summary": "Update a section group on a site in an organization",
13339
+ "tags": [
13340
+ "sites"
13341
+ ],
13342
+ "security": [
13343
+ {
13344
+ "user": []
13345
+ }
13346
+ ],
13347
+ "parameters": [
13348
+ {
13349
+ "$ref": "#/components/parameters/organizationId"
13350
+ },
13351
+ {
13352
+ "$ref": "#/components/parameters/siteId"
13353
+ },
13354
+ {
13355
+ "$ref": "#/components/parameters/siteSectionGroupId"
13356
+ }
13357
+ ],
13358
+ "requestBody": {
13359
+ "required": true,
13360
+ "content": {
13361
+ "application/json": {
13362
+ "schema": {
13363
+ "type": "object",
13364
+ "properties": {
13365
+ "title": {
13366
+ "$ref": "#/components/schemas/SiteSectionGroupTitle"
13367
+ },
13368
+ "icon": {
13369
+ "oneOf": [
13370
+ {
13371
+ "$ref": "#/components/schemas/Icon"
13372
+ },
13373
+ {
13374
+ "type": "string",
13375
+ "nullable": true,
13376
+ "enum": [
13377
+ null
13378
+ ]
13379
+ }
13380
+ ]
13381
+ }
13382
+ }
13383
+ }
13384
+ }
13385
+ }
13386
+ },
13387
+ "responses": {
13388
+ "200": {
13389
+ "description": "OK",
13390
+ "content": {
13391
+ "application/json": {
13392
+ "schema": {
13393
+ "$ref": "#/components/schemas/SiteSectionGroup"
13394
+ }
13395
+ }
13396
+ }
13397
+ },
13398
+ "default": {
13399
+ "$ref": "#/components/responses/UnexpectedError"
13400
+ }
13401
+ }
13402
+ },
13403
+ "delete": {
13404
+ "operationId": "deleteSiteSectionGroupById",
13405
+ "summary": "Delete a section group on a site in an organization",
13406
+ "tags": [
13407
+ "sites"
13408
+ ],
13409
+ "security": [
13410
+ {
13411
+ "user": []
13412
+ }
13413
+ ],
13414
+ "parameters": [
13415
+ {
13416
+ "$ref": "#/components/parameters/organizationId"
13417
+ },
13418
+ {
13419
+ "$ref": "#/components/parameters/siteId"
13420
+ },
13421
+ {
13422
+ "$ref": "#/components/parameters/siteSectionGroupId"
13423
+ }
13424
+ ],
13425
+ "responses": {
13426
+ "205": {
13427
+ "description": "Site section group has been deleted"
13428
+ },
13429
+ "default": {
13430
+ "$ref": "#/components/responses/UnexpectedError"
13431
+ }
13432
+ }
13433
+ }
13434
+ },
13435
+ "/orgs/{organizationId}/sites/{siteId}/sections": {
13436
+ "post": {
13437
+ "operationId": "addSectionToSite",
13438
+ "summary": "Add a section to a site in an organization",
13439
+ "tags": [
13440
+ "sites"
13441
+ ],
13442
+ "security": [
13443
+ {
13444
+ "user": []
13445
+ }
13446
+ ],
13447
+ "parameters": [
13448
+ {
13449
+ "$ref": "#/components/parameters/organizationId"
13450
+ },
13451
+ {
13452
+ "$ref": "#/components/parameters/siteId"
13453
+ }
13454
+ ],
13455
+ "requestBody": {
13456
+ "required": true,
13457
+ "content": {
13458
+ "application/json": {
13459
+ "schema": {
13460
+ "type": "object",
13461
+ "properties": {
13462
+ "spaceId": {
13463
+ "type": "string",
13464
+ "description": "ID of the space to be added to the section as a site space variant"
13465
+ },
13466
+ "title": {
13467
+ "type": "string",
13468
+ "description": "Title of the section",
13469
+ "maxLength": 64
13470
+ }
13471
+ },
13472
+ "required": [
13473
+ "spaceId"
13474
+ ]
13475
+ }
13476
+ }
13477
+ }
13478
+ },
13479
+ "responses": {
13480
+ "201": {
13481
+ "description": "Section added to the site",
13482
+ "headers": {
13483
+ "Location": {
13484
+ "description": "API URL for the newly created site-section relationship",
13485
+ "schema": {
13486
+ "type": "string"
13487
+ }
13488
+ }
13489
+ },
13490
+ "content": {
13491
+ "application/json": {
13492
+ "schema": {
13493
+ "$ref": "#/components/schemas/SiteSection"
13053
13494
  }
13054
13495
  }
13055
13496
  }
@@ -15369,6 +15810,21 @@
15369
15810
  },
15370
15811
  {
15371
15812
  "$ref": "#/components/parameters/xGitBookPartnerKey"
15813
+ },
15814
+ {
15815
+ "name": "status",
15816
+ "in": "query",
15817
+ "description": "Filter sites by their ads review status",
15818
+ "required": false,
15819
+ "schema": {
15820
+ "type": "string",
15821
+ "default": "in-review",
15822
+ "enum": [
15823
+ "in-review",
15824
+ "live",
15825
+ "rejected"
15826
+ ]
15827
+ }
15372
15828
  }
15373
15829
  ],
15374
15830
  "responses": {
@@ -15390,27 +15846,86 @@
15390
15846
  "items": {
15391
15847
  "type": "array",
15392
15848
  "items": {
15393
- "type": "object",
15394
- "required": [
15395
- "id",
15396
- "url",
15397
- "email",
15398
- "topic"
15399
- ],
15400
- "properties": {
15401
- "id": {
15402
- "type": "string"
15403
- },
15404
- "url": {
15405
- "type": "string"
15406
- },
15407
- "email": {
15408
- "type": "string"
15849
+ "allOf": [
15850
+ {
15851
+ "type": "object",
15852
+ "required": [
15853
+ "id",
15854
+ "url",
15855
+ "email",
15856
+ "topic"
15857
+ ],
15858
+ "properties": {
15859
+ "id": {
15860
+ "type": "string"
15861
+ },
15862
+ "url": {
15863
+ "type": "string"
15864
+ },
15865
+ "email": {
15866
+ "type": "string"
15867
+ },
15868
+ "topic": {
15869
+ "$ref": "#/components/schemas/SiteAdsTopic"
15870
+ }
15871
+ }
15409
15872
  },
15410
- "topic": {
15411
- "$ref": "#/components/schemas/SiteAdsTopic"
15873
+ {
15874
+ "oneOf": [
15875
+ {
15876
+ "type": "object",
15877
+ "required": [
15878
+ "status"
15879
+ ],
15880
+ "properties": {
15881
+ "status": {
15882
+ "type": "string",
15883
+ "enum": [
15884
+ "in-review"
15885
+ ]
15886
+ }
15887
+ }
15888
+ },
15889
+ {
15890
+ "type": "object",
15891
+ "required": [
15892
+ "status",
15893
+ "zoneId"
15894
+ ],
15895
+ "properties": {
15896
+ "status": {
15897
+ "type": "string",
15898
+ "enum": [
15899
+ "live"
15900
+ ]
15901
+ },
15902
+ "zoneId": {
15903
+ "type": "string",
15904
+ "description": "The ad network zone ID"
15905
+ }
15906
+ }
15907
+ },
15908
+ {
15909
+ "type": "object",
15910
+ "required": [
15911
+ "status"
15912
+ ],
15913
+ "properties": {
15914
+ "status": {
15915
+ "type": "string",
15916
+ "enum": [
15917
+ "rejected"
15918
+ ]
15919
+ },
15920
+ "reason": {
15921
+ "type": "string",
15922
+ "description": "Reason for the rejection"
15923
+ }
15924
+ }
15925
+ }
15926
+ ]
15412
15927
  }
15413
- }
15928
+ ]
15414
15929
  }
15415
15930
  }
15416
15931
  }
@@ -16136,6 +16651,15 @@
16136
16651
  "default": false
16137
16652
  }
16138
16653
  },
16654
+ "siteSectionGroupId": {
16655
+ "name": "siteSectionGroupId",
16656
+ "in": "path",
16657
+ "required": true,
16658
+ "description": "The unique id of the site group",
16659
+ "schema": {
16660
+ "type": "string"
16661
+ }
16662
+ },
16139
16663
  "siteSectionId": {
16140
16664
  "name": "siteSectionId",
16141
16665
  "in": "path",
@@ -21645,6 +22169,7 @@
21645
22169
  "properties": {
21646
22170
  "url": {
21647
22171
  "type": "string",
22172
+ "format": "uri",
21648
22173
  "description": "URL of the content to import."
21649
22174
  },
21650
22175
  "source": {
@@ -28430,6 +28955,10 @@
28430
28955
  "description": "Conditional expression used to evaluate whether the site section should be shown to the site's visitor.",
28431
28956
  "$ref": "#/components/schemas/Condition"
28432
28957
  },
28958
+ "sectionGroup": {
28959
+ "type": "string",
28960
+ "description": "ID of the section group the section belongs to in the site"
28961
+ },
28433
28962
  "siteSpaces": {
28434
28963
  "type": "array",
28435
28964
  "items": {
@@ -29194,6 +29723,58 @@
29194
29723
  }
29195
29724
  ]
29196
29725
  },
29726
+ "SiteToMigrateFeature": {
29727
+ "type": "string",
29728
+ "description": "These are all the features we check to determine the new pricing site type.",
29729
+ "enum": [
29730
+ "sections",
29731
+ "visitor-auth",
29732
+ "redirects",
29733
+ "custom-hostname",
29734
+ "AI-search",
29735
+ "PDF-export",
29736
+ "page-ratings",
29737
+ "custom-logo",
29738
+ "custom-theme-preset",
29739
+ "custom-fonts",
29740
+ "custom-icons",
29741
+ "custom-footer-logo",
29742
+ "custom-footer-copyright",
29743
+ "custom-footer-links",
29744
+ "unlisted",
29745
+ "share-links"
29746
+ ]
29747
+ },
29748
+ "SiteToMigrate": {
29749
+ "type": "object",
29750
+ "properties": {
29751
+ "object": {
29752
+ "type": "string",
29753
+ "enum": [
29754
+ "site-to-migrate"
29755
+ ]
29756
+ },
29757
+ "site": {
29758
+ "$ref": "#/components/schemas/Site"
29759
+ },
29760
+ "newType": {
29761
+ "description": "The new type of the site",
29762
+ "$ref": "#/components/schemas/SiteType"
29763
+ },
29764
+ "features": {
29765
+ "type": "array",
29766
+ "items": {
29767
+ "$ref": "#/components/schemas/SiteToMigrateFeature"
29768
+ }
29769
+ }
29770
+ },
29771
+ "required": [
29772
+ "object",
29773
+ "site",
29774
+ "newType",
29775
+ "features"
29776
+ ]
29777
+ },
29197
29778
  "BillingPortal": {
29198
29779
  "type": "object",
29199
29780
  "properties": {
@@ -30521,6 +31102,47 @@
30521
31102
  }
30522
31103
  ]
30523
31104
  },
31105
+ "SiteSectionGroupTitle": {
31106
+ "type": "string",
31107
+ "description": "Title of the site section group",
31108
+ "minLength": 1,
31109
+ "maxLength": 100
31110
+ },
31111
+ "SiteSectionGroup": {
31112
+ "type": "object",
31113
+ "properties": {
31114
+ "object": {
31115
+ "type": "string",
31116
+ "description": "The object type, which is always \"site-section-group\"",
31117
+ "enum": [
31118
+ "site-section-group"
31119
+ ]
31120
+ },
31121
+ "id": {
31122
+ "type": "string",
31123
+ "description": "Unique identifier of the site section group"
31124
+ },
31125
+ "title": {
31126
+ "$ref": "#/components/schemas/SiteSectionGroupTitle"
31127
+ },
31128
+ "sections": {
31129
+ "type": "array",
31130
+ "description": "List of site section ids that are members of the group",
31131
+ "items": {
31132
+ "$ref": "#/components/schemas/SiteSection"
31133
+ }
31134
+ },
31135
+ "icon": {
31136
+ "$ref": "#/components/schemas/Icon"
31137
+ }
31138
+ },
31139
+ "required": [
31140
+ "object",
31141
+ "id",
31142
+ "title",
31143
+ "sections"
31144
+ ]
31145
+ },
30524
31146
  "SiteSearchScope": {
30525
31147
  "oneOf": [
30526
31148
  {
@@ -31076,6 +31698,45 @@
31076
31698
  }
31077
31699
  ]
31078
31700
  },
31701
+ "SiteInsightsEventPagePostFeedbackComment": {
31702
+ "allOf": [
31703
+ {
31704
+ "$ref": "#/components/schemas/SiteInsightsEventBase"
31705
+ },
31706
+ {
31707
+ "type": "object",
31708
+ "properties": {
31709
+ "type": {
31710
+ "type": "string",
31711
+ "enum": [
31712
+ "page_post_feedback_comment"
31713
+ ]
31714
+ },
31715
+ "feedback": {
31716
+ "type": "object",
31717
+ "properties": {
31718
+ "rating": {
31719
+ "$ref": "#/components/schemas/PageFeedbackRating"
31720
+ },
31721
+ "comment": {
31722
+ "type": "string",
31723
+ "minLength": 1,
31724
+ "maxLength": 512
31725
+ }
31726
+ },
31727
+ "required": [
31728
+ "rating",
31729
+ "comment"
31730
+ ]
31731
+ }
31732
+ },
31733
+ "required": [
31734
+ "type",
31735
+ "feedback"
31736
+ ]
31737
+ }
31738
+ ]
31739
+ },
31079
31740
  "SiteInsightsEventAskQuestion": {
31080
31741
  "allOf": [
31081
31742
  {
@@ -31198,6 +31859,114 @@
31198
31859
  }
31199
31860
  ]
31200
31861
  },
31862
+ "SiteInsightsTrademarkPlacement": {
31863
+ "type": "string",
31864
+ "enum": [
31865
+ "sidebar",
31866
+ "ad",
31867
+ "footer"
31868
+ ]
31869
+ },
31870
+ "SiteInsightsEventTrademarkClick": {
31871
+ "allOf": [
31872
+ {
31873
+ "$ref": "#/components/schemas/SiteInsightsEventBase"
31874
+ },
31875
+ {
31876
+ "type": "object",
31877
+ "properties": {
31878
+ "type": {
31879
+ "type": "string",
31880
+ "enum": [
31881
+ "trademark_click"
31882
+ ]
31883
+ },
31884
+ "placement": {
31885
+ "$ref": "#/components/schemas/SiteInsightsTrademarkPlacement"
31886
+ }
31887
+ },
31888
+ "required": [
31889
+ "type",
31890
+ "placement"
31891
+ ]
31892
+ }
31893
+ ]
31894
+ },
31895
+ "SiteInsightsAdPlacement": {
31896
+ "type": "string",
31897
+ "enum": [
31898
+ "aside"
31899
+ ]
31900
+ },
31901
+ "SiteInsightsAd": {
31902
+ "type": "object",
31903
+ "properties": {
31904
+ "domain": {
31905
+ "type": "string"
31906
+ },
31907
+ "zoneId": {
31908
+ "type": "string"
31909
+ },
31910
+ "placement": {
31911
+ "$ref": "#/components/schemas/SiteInsightsAdPlacement"
31912
+ }
31913
+ },
31914
+ "required": [
31915
+ "domain",
31916
+ "zoneId",
31917
+ "placement"
31918
+ ]
31919
+ },
31920
+ "SiteInsightsEventAdClick": {
31921
+ "allOf": [
31922
+ {
31923
+ "$ref": "#/components/schemas/SiteInsightsEventBase"
31924
+ },
31925
+ {
31926
+ "type": "object",
31927
+ "properties": {
31928
+ "type": {
31929
+ "type": "string",
31930
+ "enum": [
31931
+ "ad_click"
31932
+ ]
31933
+ },
31934
+ "ad": {
31935
+ "$ref": "#/components/schemas/SiteInsightsAd"
31936
+ }
31937
+ },
31938
+ "required": [
31939
+ "type",
31940
+ "ad"
31941
+ ]
31942
+ }
31943
+ ]
31944
+ },
31945
+ "SiteInsightsEventAdDisplay": {
31946
+ "allOf": [
31947
+ {
31948
+ "$ref": "#/components/schemas/SiteInsightsEventBase"
31949
+ },
31950
+ {
31951
+ "type": "object",
31952
+ "properties": {
31953
+ "type": {
31954
+ "type": "string",
31955
+ "enum": [
31956
+ "ad_display"
31957
+ ]
31958
+ },
31959
+ "ad": {
31960
+ "$ref": "#/components/schemas/SiteInsightsAd"
31961
+ }
31962
+ },
31963
+ "required": [
31964
+ "type",
31965
+ "ad"
31966
+ ]
31967
+ }
31968
+ ]
31969
+ },
31201
31970
  "SiteInsightsEvent": {
31202
31971
  "oneOf": [
31203
31972
  {
@@ -31215,6 +31984,9 @@
31215
31984
  {
31216
31985
  "$ref": "#/components/schemas/SiteInsightsEventPagePostFeedback"
31217
31986
  },
31987
+ {
31988
+ "$ref": "#/components/schemas/SiteInsightsEventPagePostFeedbackComment"
31989
+ },
31218
31990
  {
31219
31991
  "$ref": "#/components/schemas/SiteInsightsEventAskQuestion"
31220
31992
  },
@@ -31226,6 +31998,15 @@
31226
31998
  },
31227
31999
  {
31228
32000
  "$ref": "#/components/schemas/SiteInsightsEventAPIClientRequest"
32001
+ },
32002
+ {
32003
+ "$ref": "#/components/schemas/SiteInsightsEventTrademarkClick"
32004
+ },
32005
+ {
32006
+ "$ref": "#/components/schemas/SiteInsightsEventAdClick"
32007
+ },
32008
+ {
32009
+ "$ref": "#/components/schemas/SiteInsightsEventAdDisplay"
31229
32010
  }
31230
32011
  ]
31231
32012
  },
@@ -31237,10 +32018,14 @@
31237
32018
  "search_type_query",
31238
32019
  "search_open_result",
31239
32020
  "page_post_feedback",
32021
+ "page_post_feedback_comment",
31240
32022
  "ask_question",
31241
32023
  "link_click",
31242
32024
  "api_client_open",
31243
- "api_client_request"
32025
+ "api_client_request",
32026
+ "ad_click",
32027
+ "ad_display",
32028
+ "trademark_click"
31244
32029
  ]
31245
32030
  },
31246
32031
  "SiteInsightsVisitorBrowser": {
@@ -32013,6 +32798,69 @@
32013
32798
  }
32014
32799
  }
32015
32800
  }
32801
+ },
32802
+ {
32803
+ "type": "object",
32804
+ "required": [
32805
+ "column",
32806
+ "values"
32807
+ ],
32808
+ "properties": {
32809
+ "column": {
32810
+ "type": "string",
32811
+ "enum": [
32812
+ "eventAdDomain"
32813
+ ]
32814
+ },
32815
+ "values": {
32816
+ "type": "array",
32817
+ "items": {
32818
+ "type": "string"
32819
+ }
32820
+ }
32821
+ }
32822
+ },
32823
+ {
32824
+ "type": "object",
32825
+ "required": [
32826
+ "column",
32827
+ "values"
32828
+ ],
32829
+ "properties": {
32830
+ "column": {
32831
+ "type": "string",
32832
+ "enum": [
32833
+ "eventAdPlacement"
32834
+ ]
32835
+ },
32836
+ "values": {
32837
+ "type": "array",
32838
+ "items": {
32839
+ "$ref": "#/components/schemas/SiteInsightsAdPlacement"
32840
+ }
32841
+ }
32842
+ }
32843
+ },
32844
+ {
32845
+ "type": "object",
32846
+ "required": [
32847
+ "column",
32848
+ "values"
32849
+ ],
32850
+ "properties": {
32851
+ "column": {
32852
+ "type": "string",
32853
+ "enum": [
32854
+ "eventTrademarkPlacement"
32855
+ ]
32856
+ },
32857
+ "values": {
32858
+ "type": "array",
32859
+ "items": {
32860
+ "$ref": "#/components/schemas/SiteInsightsTrademarkPlacement"
32861
+ }
32862
+ }
32863
+ }
32016
32864
  }
32017
32865
  ]
32018
32866
  },
@@ -32507,6 +33355,48 @@
32507
33355
  "type": "string"
32508
33356
  }
32509
33357
  }
33358
+ },
33359
+ {
33360
+ "type": "object",
33361
+ "required": [
33362
+ "column"
33363
+ ],
33364
+ "properties": {
33365
+ "column": {
33366
+ "type": "string",
33367
+ "enum": [
33368
+ "eventAdDomain"
33369
+ ]
33370
+ }
33371
+ }
33372
+ },
33373
+ {
33374
+ "type": "object",
33375
+ "required": [
33376
+ "column"
33377
+ ],
33378
+ "properties": {
33379
+ "column": {
33380
+ "type": "string",
33381
+ "enum": [
33382
+ "eventAdPlacement"
33383
+ ]
33384
+ }
33385
+ }
33386
+ },
33387
+ {
33388
+ "type": "object",
33389
+ "required": [
33390
+ "column"
33391
+ ],
33392
+ "properties": {
33393
+ "column": {
33394
+ "type": "string",
33395
+ "enum": [
33396
+ "eventTrademarkPlacement"
33397
+ ]
33398
+ }
33399
+ }
32510
33400
  }
32511
33401
  ]
32512
33402
  },