@gitbook/api 0.82.0 → 0.84.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/dist/client.d.ts +148 -7
- package/dist/index.cjs +18 -1
- package/dist/index.js +18 -1
- package/package.json +1 -1
- package/spec/openapi.json +498 -18
- package/spec/openapi.yaml +319 -14
package/spec/openapi.json
CHANGED
|
@@ -1304,7 +1304,7 @@
|
|
|
1304
1304
|
"/spaces/{spaceId}/permissions": {
|
|
1305
1305
|
"post": {
|
|
1306
1306
|
"operationId": "inviteToSpace",
|
|
1307
|
-
"summary": "Invite to a space
|
|
1307
|
+
"summary": "Invite to a space",
|
|
1308
1308
|
"tags": [
|
|
1309
1309
|
"spaces"
|
|
1310
1310
|
],
|
|
@@ -1323,7 +1323,7 @@
|
|
|
1323
1323
|
"description": "OK"
|
|
1324
1324
|
},
|
|
1325
1325
|
"404": {
|
|
1326
|
-
"description": "No team with the provided Id",
|
|
1326
|
+
"description": "No team or user with the provided Id",
|
|
1327
1327
|
"$ref": "#/components/responses/NotFoundError"
|
|
1328
1328
|
},
|
|
1329
1329
|
"default": {
|
|
@@ -1335,7 +1335,7 @@
|
|
|
1335
1335
|
"content": {
|
|
1336
1336
|
"application/json": {
|
|
1337
1337
|
"schema": {
|
|
1338
|
-
"$ref": "#/components/schemas/
|
|
1338
|
+
"$ref": "#/components/schemas/InviteUsersAndTeams"
|
|
1339
1339
|
}
|
|
1340
1340
|
}
|
|
1341
1341
|
}
|
|
@@ -5939,6 +5939,47 @@
|
|
|
5939
5939
|
}
|
|
5940
5940
|
}
|
|
5941
5941
|
},
|
|
5942
|
+
"/collections/{collectionId}/permissions": {
|
|
5943
|
+
"post": {
|
|
5944
|
+
"operationId": "inviteToCollection",
|
|
5945
|
+
"summary": "Invite to a collection",
|
|
5946
|
+
"tags": [
|
|
5947
|
+
"collections"
|
|
5948
|
+
],
|
|
5949
|
+
"security": [
|
|
5950
|
+
{
|
|
5951
|
+
"user": []
|
|
5952
|
+
}
|
|
5953
|
+
],
|
|
5954
|
+
"parameters": [
|
|
5955
|
+
{
|
|
5956
|
+
"$ref": "#/components/parameters/collectionId"
|
|
5957
|
+
}
|
|
5958
|
+
],
|
|
5959
|
+
"responses": {
|
|
5960
|
+
"204": {
|
|
5961
|
+
"description": "OK"
|
|
5962
|
+
},
|
|
5963
|
+
"404": {
|
|
5964
|
+
"description": "No team or user with the provided Id",
|
|
5965
|
+
"$ref": "#/components/responses/NotFoundError"
|
|
5966
|
+
},
|
|
5967
|
+
"default": {
|
|
5968
|
+
"$ref": "#/components/responses/UnexpectedError"
|
|
5969
|
+
}
|
|
5970
|
+
},
|
|
5971
|
+
"requestBody": {
|
|
5972
|
+
"required": true,
|
|
5973
|
+
"content": {
|
|
5974
|
+
"application/json": {
|
|
5975
|
+
"schema": {
|
|
5976
|
+
"$ref": "#/components/schemas/InviteUsersAndTeams"
|
|
5977
|
+
}
|
|
5978
|
+
}
|
|
5979
|
+
}
|
|
5980
|
+
}
|
|
5981
|
+
}
|
|
5982
|
+
},
|
|
5942
5983
|
"/collections/{collectionId}/permissions/aggregate": {
|
|
5943
5984
|
"get": {
|
|
5944
5985
|
"operationId": "listPermissionsAggregateInCollection",
|
|
@@ -7895,8 +7936,21 @@
|
|
|
7895
7936
|
}
|
|
7896
7937
|
],
|
|
7897
7938
|
"responses": {
|
|
7898
|
-
"
|
|
7899
|
-
"description": "Organization member has been updated."
|
|
7939
|
+
"200": {
|
|
7940
|
+
"description": "Organization member has been updated. Optionally returns a JWT token to attach to the user.",
|
|
7941
|
+
"content": {
|
|
7942
|
+
"application/json": {
|
|
7943
|
+
"schema": {
|
|
7944
|
+
"type": "object",
|
|
7945
|
+
"properties": {
|
|
7946
|
+
"gitbookVisitorClaims": {
|
|
7947
|
+
"description": "A JTW token containing the claims to attach to this user.",
|
|
7948
|
+
"type": "string"
|
|
7949
|
+
}
|
|
7950
|
+
}
|
|
7951
|
+
}
|
|
7952
|
+
}
|
|
7953
|
+
}
|
|
7900
7954
|
},
|
|
7901
7955
|
"default": {
|
|
7902
7956
|
"$ref": "#/components/responses/UnexpectedError"
|
|
@@ -11801,6 +11855,21 @@
|
|
|
11801
11855
|
"defaultSiteSection": {
|
|
11802
11856
|
"type": "string",
|
|
11803
11857
|
"description": "ID of the site-section to be used as the default."
|
|
11858
|
+
},
|
|
11859
|
+
"proxy": {
|
|
11860
|
+
"description": "Configure a proxy URL for a site. For example, you can use it to host the site on a subdirectory of your domain like `https://company.com/docs`.\nUse `null` to remove the proxy.\n",
|
|
11861
|
+
"oneOf": [
|
|
11862
|
+
{
|
|
11863
|
+
"$ref": "#/components/schemas/SiteProxy"
|
|
11864
|
+
},
|
|
11865
|
+
{
|
|
11866
|
+
"type": "string",
|
|
11867
|
+
"nullable": true,
|
|
11868
|
+
"enum": [
|
|
11869
|
+
null
|
|
11870
|
+
]
|
|
11871
|
+
}
|
|
11872
|
+
]
|
|
11804
11873
|
}
|
|
11805
11874
|
}
|
|
11806
11875
|
}
|
|
@@ -14478,6 +14547,7 @@
|
|
|
14478
14547
|
"operationId": "trackViewInSiteById",
|
|
14479
14548
|
"summary": "Track a page view in a site",
|
|
14480
14549
|
"description": "Track a page view in a site.",
|
|
14550
|
+
"deprecated": true,
|
|
14481
14551
|
"tags": [
|
|
14482
14552
|
"analytics",
|
|
14483
14553
|
"sites"
|
|
@@ -14510,6 +14580,53 @@
|
|
|
14510
14580
|
}
|
|
14511
14581
|
}
|
|
14512
14582
|
},
|
|
14583
|
+
"/orgs/{organizationId}/sites/{siteId}/insights/events": {
|
|
14584
|
+
"post": {
|
|
14585
|
+
"operationId": "trackEventsInSiteById",
|
|
14586
|
+
"summary": "Track events in a site.",
|
|
14587
|
+
"description": "Track events in a site.",
|
|
14588
|
+
"tags": [
|
|
14589
|
+
"sites"
|
|
14590
|
+
],
|
|
14591
|
+
"parameters": [
|
|
14592
|
+
{
|
|
14593
|
+
"$ref": "#/components/parameters/organizationId"
|
|
14594
|
+
},
|
|
14595
|
+
{
|
|
14596
|
+
"$ref": "#/components/parameters/siteId"
|
|
14597
|
+
}
|
|
14598
|
+
],
|
|
14599
|
+
"responses": {
|
|
14600
|
+
"204": {
|
|
14601
|
+
"description": "Events have been tracked."
|
|
14602
|
+
},
|
|
14603
|
+
"default": {
|
|
14604
|
+
"$ref": "#/components/responses/UnexpectedError"
|
|
14605
|
+
}
|
|
14606
|
+
},
|
|
14607
|
+
"requestBody": {
|
|
14608
|
+
"required": true,
|
|
14609
|
+
"content": {
|
|
14610
|
+
"application/json": {
|
|
14611
|
+
"schema": {
|
|
14612
|
+
"type": "object",
|
|
14613
|
+
"properties": {
|
|
14614
|
+
"events": {
|
|
14615
|
+
"type": "array",
|
|
14616
|
+
"items": {
|
|
14617
|
+
"$ref": "#/components/schemas/SiteInsightsEvent"
|
|
14618
|
+
}
|
|
14619
|
+
}
|
|
14620
|
+
},
|
|
14621
|
+
"required": [
|
|
14622
|
+
"events"
|
|
14623
|
+
]
|
|
14624
|
+
}
|
|
14625
|
+
}
|
|
14626
|
+
}
|
|
14627
|
+
}
|
|
14628
|
+
}
|
|
14629
|
+
},
|
|
14513
14630
|
"/orgs/{organizationId}/sites/{siteId}/insights/ads": {
|
|
14514
14631
|
"get": {
|
|
14515
14632
|
"operationId": "getAdsInsightsForSiteById",
|
|
@@ -15576,6 +15693,16 @@
|
|
|
15576
15693
|
"schema": {
|
|
15577
15694
|
"type": "string"
|
|
15578
15695
|
}
|
|
15696
|
+
},
|
|
15697
|
+
{
|
|
15698
|
+
"name": "redirectOnError",
|
|
15699
|
+
"in": "query",
|
|
15700
|
+
"required": false,
|
|
15701
|
+
"description": "When true redirects the user to the authentication/fallback URL if the visitor auth token is invalid",
|
|
15702
|
+
"schema": {
|
|
15703
|
+
"type": "boolean",
|
|
15704
|
+
"default": false
|
|
15705
|
+
}
|
|
15579
15706
|
}
|
|
15580
15707
|
],
|
|
15581
15708
|
"responses": {
|
|
@@ -20866,23 +20993,49 @@
|
|
|
20866
20993
|
"referrer"
|
|
20867
20994
|
]
|
|
20868
20995
|
},
|
|
20869
|
-
"
|
|
20996
|
+
"InviteUsersAndTeams": {
|
|
20870
20997
|
"type": "object",
|
|
20871
20998
|
"properties": {
|
|
20872
|
-
"teams": {
|
|
20873
|
-
"type": "array",
|
|
20874
|
-
"items": {
|
|
20875
|
-
"type": "string",
|
|
20876
|
-
"description": "The ID of the team to be invited"
|
|
20877
|
-
}
|
|
20878
|
-
},
|
|
20879
20999
|
"role": {
|
|
20880
|
-
"description": "Role to set
|
|
21000
|
+
"description": "Role to set.",
|
|
20881
21001
|
"$ref": "#/components/schemas/MemberRoleOrGuest"
|
|
20882
21002
|
}
|
|
20883
21003
|
},
|
|
21004
|
+
"anyOf": [
|
|
21005
|
+
{
|
|
21006
|
+
"type": "object",
|
|
21007
|
+
"properties": {
|
|
21008
|
+
"teams": {
|
|
21009
|
+
"type": "array",
|
|
21010
|
+
"minItems": 1,
|
|
21011
|
+
"items": {
|
|
21012
|
+
"type": "string",
|
|
21013
|
+
"description": "The ID of the team to be invited"
|
|
21014
|
+
}
|
|
21015
|
+
}
|
|
21016
|
+
},
|
|
21017
|
+
"required": [
|
|
21018
|
+
"teams"
|
|
21019
|
+
]
|
|
21020
|
+
},
|
|
21021
|
+
{
|
|
21022
|
+
"type": "object",
|
|
21023
|
+
"properties": {
|
|
21024
|
+
"users": {
|
|
21025
|
+
"type": "array",
|
|
21026
|
+
"minItems": 1,
|
|
21027
|
+
"items": {
|
|
21028
|
+
"type": "string",
|
|
21029
|
+
"description": "The ID of the user to be invited"
|
|
21030
|
+
}
|
|
21031
|
+
}
|
|
21032
|
+
},
|
|
21033
|
+
"required": [
|
|
21034
|
+
"users"
|
|
21035
|
+
]
|
|
21036
|
+
}
|
|
21037
|
+
],
|
|
20884
21038
|
"required": [
|
|
20885
|
-
"teams",
|
|
20886
21039
|
"role"
|
|
20887
21040
|
]
|
|
20888
21041
|
},
|
|
@@ -25645,8 +25798,7 @@
|
|
|
25645
25798
|
"type",
|
|
25646
25799
|
"visitor",
|
|
25647
25800
|
"url",
|
|
25648
|
-
"referrer"
|
|
25649
|
-
"spaceId"
|
|
25801
|
+
"referrer"
|
|
25650
25802
|
]
|
|
25651
25803
|
}
|
|
25652
25804
|
]
|
|
@@ -27821,7 +27973,8 @@
|
|
|
27821
27973
|
"SiteHostname": {
|
|
27822
27974
|
"type": "string",
|
|
27823
27975
|
"description": "Custom hostname for the site, for e.g. docs.mycompany.com",
|
|
27824
|
-
"pattern": "^([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?[.]){2,}[a-z0-9][a-z0-9-]{0,61}[a-z0-9]$"
|
|
27976
|
+
"pattern": "^([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?[.]){2,}[a-z0-9][a-z0-9-]{0,61}[a-z0-9]$",
|
|
27977
|
+
"maxLength": 512
|
|
27825
27978
|
},
|
|
27826
27979
|
"SiteBasename": {
|
|
27827
27980
|
"type": "string",
|
|
@@ -27829,6 +27982,12 @@
|
|
|
27829
27982
|
"minLength": 1,
|
|
27830
27983
|
"maxLength": 100
|
|
27831
27984
|
},
|
|
27985
|
+
"SiteProxy": {
|
|
27986
|
+
"type": "string",
|
|
27987
|
+
"description": "Proxy URL for the site, for e.g. company.com/docs or www.company.com/developer/docs etc.",
|
|
27988
|
+
"pattern": "^([\\w-]+\\.)*[\\w-]+\\.[a-zA-Z]{2,}(\\/[\\w-]+)+$",
|
|
27989
|
+
"maxLength": 512
|
|
27990
|
+
},
|
|
27832
27991
|
"SiteVisibility": {
|
|
27833
27992
|
"type": "string",
|
|
27834
27993
|
"description": "The visibility setting of the site determines the audience of the site.\n* `public`: Anyone can access the site, and the site is indexed by search engines.\n* `unlisted`: Anyone can access the site, and the site is not indexed by search engines\n* `share-link`: Anyone with a secret token in the url can access the site.\n* `visitor-auth`: Anyone authenticated through a JWT token can access the site.\n",
|
|
@@ -27964,6 +28123,9 @@
|
|
|
27964
28123
|
"basename": {
|
|
27965
28124
|
"$ref": "#/components/schemas/SiteBasename"
|
|
27966
28125
|
},
|
|
28126
|
+
"proxy": {
|
|
28127
|
+
"$ref": "#/components/schemas/SiteProxy"
|
|
28128
|
+
},
|
|
27967
28129
|
"visibility": {
|
|
27968
28130
|
"$ref": "#/components/schemas/SiteVisibility"
|
|
27969
28131
|
},
|
|
@@ -30563,6 +30725,324 @@
|
|
|
30563
30725
|
}
|
|
30564
30726
|
]
|
|
30565
30727
|
},
|
|
30728
|
+
"SiteInsightsEventSession": {
|
|
30729
|
+
"type": "object",
|
|
30730
|
+
"description": "Analytics info on the GitBook's site session.",
|
|
30731
|
+
"properties": {
|
|
30732
|
+
"visitorId": {
|
|
30733
|
+
"type": "string",
|
|
30734
|
+
"description": "GitBook's unique identifier of the visitor."
|
|
30735
|
+
},
|
|
30736
|
+
"sessionId": {
|
|
30737
|
+
"type": "string",
|
|
30738
|
+
"description": "GitBook's unique identifier of the visitor's session."
|
|
30739
|
+
},
|
|
30740
|
+
"cookies": {
|
|
30741
|
+
"type": "object",
|
|
30742
|
+
"description": "The visitors cookies.",
|
|
30743
|
+
"additionalProperties": {
|
|
30744
|
+
"type": "string"
|
|
30745
|
+
}
|
|
30746
|
+
},
|
|
30747
|
+
"ip": {
|
|
30748
|
+
"type": "string",
|
|
30749
|
+
"description": "IP address of the visitor.\nIf not defined, it'll default to the IP executing the request.\n"
|
|
30750
|
+
},
|
|
30751
|
+
"userAgent": {
|
|
30752
|
+
"type": "string",
|
|
30753
|
+
"description": "User-agent of the visitor.\nhttps://developer.mozilla.org/en-US/docs/Web/API/Navigator/userAgent\n"
|
|
30754
|
+
},
|
|
30755
|
+
"language": {
|
|
30756
|
+
"type": "string",
|
|
30757
|
+
"nullable": true,
|
|
30758
|
+
"description": "Language of the visitor.\nhttps://developer.mozilla.org/en-US/docs/Web/API/Navigator/language\n"
|
|
30759
|
+
},
|
|
30760
|
+
"referrer": {
|
|
30761
|
+
"description": "Referrer of the sesion",
|
|
30762
|
+
"oneOf": [
|
|
30763
|
+
{
|
|
30764
|
+
"type": "string",
|
|
30765
|
+
"nullable": true,
|
|
30766
|
+
"enum": [
|
|
30767
|
+
null
|
|
30768
|
+
]
|
|
30769
|
+
},
|
|
30770
|
+
{
|
|
30771
|
+
"$ref": "#/components/schemas/URL"
|
|
30772
|
+
}
|
|
30773
|
+
]
|
|
30774
|
+
}
|
|
30775
|
+
},
|
|
30776
|
+
"required": [
|
|
30777
|
+
"visitorId",
|
|
30778
|
+
"sessionId",
|
|
30779
|
+
"cookies",
|
|
30780
|
+
"userAgent",
|
|
30781
|
+
"language",
|
|
30782
|
+
"referrer"
|
|
30783
|
+
]
|
|
30784
|
+
},
|
|
30785
|
+
"SiteInsightsEventLocation": {
|
|
30786
|
+
"type": "object",
|
|
30787
|
+
"description": "Location of the event.",
|
|
30788
|
+
"properties": {
|
|
30789
|
+
"url": {
|
|
30790
|
+
"description": "URL of the location.",
|
|
30791
|
+
"$ref": "#/components/schemas/URL"
|
|
30792
|
+
},
|
|
30793
|
+
"siteSection": {
|
|
30794
|
+
"type": "string",
|
|
30795
|
+
"description": "ID of the concerned site section.",
|
|
30796
|
+
"nullable": true
|
|
30797
|
+
},
|
|
30798
|
+
"siteSpace": {
|
|
30799
|
+
"type": "string",
|
|
30800
|
+
"description": "ID of the concerned site space.",
|
|
30801
|
+
"nullable": true
|
|
30802
|
+
},
|
|
30803
|
+
"siteShareKey": {
|
|
30804
|
+
"type": "string",
|
|
30805
|
+
"description": "ID of the concerned site share key.",
|
|
30806
|
+
"nullable": true
|
|
30807
|
+
},
|
|
30808
|
+
"space": {
|
|
30809
|
+
"type": "string",
|
|
30810
|
+
"description": "ID of the concerned space.",
|
|
30811
|
+
"nullable": true
|
|
30812
|
+
},
|
|
30813
|
+
"revision": {
|
|
30814
|
+
"type": "string",
|
|
30815
|
+
"description": "ID of the concerned revision.",
|
|
30816
|
+
"nullable": true
|
|
30817
|
+
},
|
|
30818
|
+
"page": {
|
|
30819
|
+
"type": "string",
|
|
30820
|
+
"description": "ID of the concerned page.",
|
|
30821
|
+
"nullable": true
|
|
30822
|
+
}
|
|
30823
|
+
},
|
|
30824
|
+
"required": [
|
|
30825
|
+
"url",
|
|
30826
|
+
"siteSection",
|
|
30827
|
+
"siteSpace",
|
|
30828
|
+
"siteShareKey",
|
|
30829
|
+
"page",
|
|
30830
|
+
"space",
|
|
30831
|
+
"revision"
|
|
30832
|
+
]
|
|
30833
|
+
},
|
|
30834
|
+
"SiteInsightsEventBase": {
|
|
30835
|
+
"type": "object",
|
|
30836
|
+
"properties": {
|
|
30837
|
+
"session": {
|
|
30838
|
+
"$ref": "#/components/schemas/SiteInsightsEventSession"
|
|
30839
|
+
},
|
|
30840
|
+
"location": {
|
|
30841
|
+
"$ref": "#/components/schemas/SiteInsightsEventLocation"
|
|
30842
|
+
},
|
|
30843
|
+
"timestamp": {
|
|
30844
|
+
"description": "Optional timestamp of the event. If not provided, the current timestamp will be used.",
|
|
30845
|
+
"$ref": "#/components/schemas/Timestamp"
|
|
30846
|
+
}
|
|
30847
|
+
},
|
|
30848
|
+
"required": [
|
|
30849
|
+
"session",
|
|
30850
|
+
"location"
|
|
30851
|
+
]
|
|
30852
|
+
},
|
|
30853
|
+
"SiteInsightsEventPageView": {
|
|
30854
|
+
"allOf": [
|
|
30855
|
+
{
|
|
30856
|
+
"$ref": "#/components/schemas/SiteInsightsEventBase"
|
|
30857
|
+
},
|
|
30858
|
+
{
|
|
30859
|
+
"type": "object",
|
|
30860
|
+
"properties": {
|
|
30861
|
+
"type": {
|
|
30862
|
+
"type": "string",
|
|
30863
|
+
"enum": [
|
|
30864
|
+
"page_view"
|
|
30865
|
+
]
|
|
30866
|
+
}
|
|
30867
|
+
},
|
|
30868
|
+
"required": [
|
|
30869
|
+
"type"
|
|
30870
|
+
]
|
|
30871
|
+
}
|
|
30872
|
+
]
|
|
30873
|
+
},
|
|
30874
|
+
"SiteInsightsEventSearchOpen": {
|
|
30875
|
+
"allOf": [
|
|
30876
|
+
{
|
|
30877
|
+
"$ref": "#/components/schemas/SiteInsightsEventBase"
|
|
30878
|
+
},
|
|
30879
|
+
{
|
|
30880
|
+
"type": "object",
|
|
30881
|
+
"properties": {
|
|
30882
|
+
"type": {
|
|
30883
|
+
"type": "string",
|
|
30884
|
+
"enum": [
|
|
30885
|
+
"search_open"
|
|
30886
|
+
]
|
|
30887
|
+
}
|
|
30888
|
+
},
|
|
30889
|
+
"required": [
|
|
30890
|
+
"type"
|
|
30891
|
+
]
|
|
30892
|
+
}
|
|
30893
|
+
]
|
|
30894
|
+
},
|
|
30895
|
+
"SiteInsightsEventSearchTypeQuery": {
|
|
30896
|
+
"allOf": [
|
|
30897
|
+
{
|
|
30898
|
+
"$ref": "#/components/schemas/SiteInsightsEventBase"
|
|
30899
|
+
},
|
|
30900
|
+
{
|
|
30901
|
+
"type": "object",
|
|
30902
|
+
"properties": {
|
|
30903
|
+
"type": {
|
|
30904
|
+
"type": "string",
|
|
30905
|
+
"enum": [
|
|
30906
|
+
"search_type_query"
|
|
30907
|
+
]
|
|
30908
|
+
},
|
|
30909
|
+
"query": {
|
|
30910
|
+
"type": "string",
|
|
30911
|
+
"description": "Query of the search."
|
|
30912
|
+
}
|
|
30913
|
+
},
|
|
30914
|
+
"required": [
|
|
30915
|
+
"type",
|
|
30916
|
+
"query"
|
|
30917
|
+
]
|
|
30918
|
+
}
|
|
30919
|
+
]
|
|
30920
|
+
},
|
|
30921
|
+
"SiteInsightsEventSearchOpenResult": {
|
|
30922
|
+
"allOf": [
|
|
30923
|
+
{
|
|
30924
|
+
"$ref": "#/components/schemas/SiteInsightsEventBase"
|
|
30925
|
+
},
|
|
30926
|
+
{
|
|
30927
|
+
"type": "object",
|
|
30928
|
+
"properties": {
|
|
30929
|
+
"type": {
|
|
30930
|
+
"type": "string",
|
|
30931
|
+
"enum": [
|
|
30932
|
+
"search_open_result"
|
|
30933
|
+
]
|
|
30934
|
+
},
|
|
30935
|
+
"query": {
|
|
30936
|
+
"type": "string",
|
|
30937
|
+
"description": "Query of the search."
|
|
30938
|
+
},
|
|
30939
|
+
"result": {
|
|
30940
|
+
"type": "object",
|
|
30941
|
+
"properties": {
|
|
30942
|
+
"spaceId": {
|
|
30943
|
+
"type": "string",
|
|
30944
|
+
"description": "ID of the concerned space."
|
|
30945
|
+
},
|
|
30946
|
+
"pageId": {
|
|
30947
|
+
"type": "string",
|
|
30948
|
+
"description": "ID of the concerned page."
|
|
30949
|
+
}
|
|
30950
|
+
},
|
|
30951
|
+
"required": [
|
|
30952
|
+
"spaceId",
|
|
30953
|
+
"pageId"
|
|
30954
|
+
]
|
|
30955
|
+
}
|
|
30956
|
+
},
|
|
30957
|
+
"required": [
|
|
30958
|
+
"type",
|
|
30959
|
+
"query",
|
|
30960
|
+
"result"
|
|
30961
|
+
]
|
|
30962
|
+
}
|
|
30963
|
+
]
|
|
30964
|
+
},
|
|
30965
|
+
"SiteInsightsEventPagePostFeedback": {
|
|
30966
|
+
"allOf": [
|
|
30967
|
+
{
|
|
30968
|
+
"$ref": "#/components/schemas/SiteInsightsEventBase"
|
|
30969
|
+
},
|
|
30970
|
+
{
|
|
30971
|
+
"type": "object",
|
|
30972
|
+
"properties": {
|
|
30973
|
+
"type": {
|
|
30974
|
+
"type": "string",
|
|
30975
|
+
"enum": [
|
|
30976
|
+
"page_post_feedback"
|
|
30977
|
+
]
|
|
30978
|
+
},
|
|
30979
|
+
"feedback": {
|
|
30980
|
+
"type": "object",
|
|
30981
|
+
"properties": {
|
|
30982
|
+
"rating": {
|
|
30983
|
+
"$ref": "#/components/schemas/PageFeedbackRating"
|
|
30984
|
+
}
|
|
30985
|
+
},
|
|
30986
|
+
"required": [
|
|
30987
|
+
"rating"
|
|
30988
|
+
]
|
|
30989
|
+
}
|
|
30990
|
+
},
|
|
30991
|
+
"required": [
|
|
30992
|
+
"type",
|
|
30993
|
+
"feedback"
|
|
30994
|
+
]
|
|
30995
|
+
}
|
|
30996
|
+
]
|
|
30997
|
+
},
|
|
30998
|
+
"SiteInsightsEventAskQuestion": {
|
|
30999
|
+
"allOf": [
|
|
31000
|
+
{
|
|
31001
|
+
"$ref": "#/components/schemas/SiteInsightsEventBase"
|
|
31002
|
+
},
|
|
31003
|
+
{
|
|
31004
|
+
"type": "object",
|
|
31005
|
+
"properties": {
|
|
31006
|
+
"type": {
|
|
31007
|
+
"type": "string",
|
|
31008
|
+
"enum": [
|
|
31009
|
+
"ask_question"
|
|
31010
|
+
]
|
|
31011
|
+
},
|
|
31012
|
+
"query": {
|
|
31013
|
+
"type": "string",
|
|
31014
|
+
"description": "Question being asked."
|
|
31015
|
+
}
|
|
31016
|
+
},
|
|
31017
|
+
"required": [
|
|
31018
|
+
"type",
|
|
31019
|
+
"query"
|
|
31020
|
+
]
|
|
31021
|
+
}
|
|
31022
|
+
]
|
|
31023
|
+
},
|
|
31024
|
+
"SiteInsightsEvent": {
|
|
31025
|
+
"oneOf": [
|
|
31026
|
+
{
|
|
31027
|
+
"$ref": "#/components/schemas/SiteInsightsEventPageView"
|
|
31028
|
+
},
|
|
31029
|
+
{
|
|
31030
|
+
"$ref": "#/components/schemas/SiteInsightsEventSearchOpen"
|
|
31031
|
+
},
|
|
31032
|
+
{
|
|
31033
|
+
"$ref": "#/components/schemas/SiteInsightsEventSearchTypeQuery"
|
|
31034
|
+
},
|
|
31035
|
+
{
|
|
31036
|
+
"$ref": "#/components/schemas/SiteInsightsEventSearchOpenResult"
|
|
31037
|
+
},
|
|
31038
|
+
{
|
|
31039
|
+
"$ref": "#/components/schemas/SiteInsightsEventPagePostFeedback"
|
|
31040
|
+
},
|
|
31041
|
+
{
|
|
31042
|
+
"$ref": "#/components/schemas/SiteInsightsEventAskQuestion"
|
|
31043
|
+
}
|
|
31044
|
+
]
|
|
31045
|
+
},
|
|
30566
31046
|
"InsightsInterval": {
|
|
30567
31047
|
"type": "string",
|
|
30568
31048
|
"description": "The interval for grouping the results",
|