@gitbook/api 0.173.0 → 0.174.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 +99 -69
- package/dist/constants.d.ts +3 -1
- package/dist/index.cjs +37 -17
- package/dist/index.js +33 -17
- package/package.json +1 -1
- package/spec/openapi.json +257 -104
- package/spec/openapi.yaml +173 -74
package/package.json
CHANGED
package/spec/openapi.json
CHANGED
|
@@ -897,69 +897,6 @@
|
|
|
897
897
|
}
|
|
898
898
|
}
|
|
899
899
|
},
|
|
900
|
-
"/spaces/{spaceId}/transfer": {
|
|
901
|
-
"post": {
|
|
902
|
-
"operationId": "transferSpace",
|
|
903
|
-
"summary": "Transfer a space",
|
|
904
|
-
"description": "Transfer a space to another organization, collection or both.",
|
|
905
|
-
"tags": [
|
|
906
|
-
"spaces"
|
|
907
|
-
],
|
|
908
|
-
"security": [
|
|
909
|
-
{
|
|
910
|
-
"user": []
|
|
911
|
-
}
|
|
912
|
-
],
|
|
913
|
-
"parameters": [
|
|
914
|
-
{
|
|
915
|
-
"$ref": "#/components/parameters/spaceId"
|
|
916
|
-
}
|
|
917
|
-
],
|
|
918
|
-
"requestBody": {
|
|
919
|
-
"required": true,
|
|
920
|
-
"content": {
|
|
921
|
-
"application/json": {
|
|
922
|
-
"schema": {
|
|
923
|
-
"type": "object",
|
|
924
|
-
"properties": {
|
|
925
|
-
"organization": {
|
|
926
|
-
"type": "string",
|
|
927
|
-
"description": "The unique id of the target organization"
|
|
928
|
-
}
|
|
929
|
-
},
|
|
930
|
-
"required": [
|
|
931
|
-
"organization"
|
|
932
|
-
]
|
|
933
|
-
}
|
|
934
|
-
}
|
|
935
|
-
}
|
|
936
|
-
},
|
|
937
|
-
"responses": {
|
|
938
|
-
"200": {
|
|
939
|
-
"description": "Space transferred",
|
|
940
|
-
"content": {
|
|
941
|
-
"application/json": {
|
|
942
|
-
"schema": {
|
|
943
|
-
"$ref": "#/components/schemas/Space"
|
|
944
|
-
}
|
|
945
|
-
}
|
|
946
|
-
}
|
|
947
|
-
},
|
|
948
|
-
"404": {
|
|
949
|
-
"description": "No matching Space found for given ID",
|
|
950
|
-
"$ref": "#/components/responses/NotFoundError"
|
|
951
|
-
},
|
|
952
|
-
"409": {
|
|
953
|
-
"description": "Transfer would not result in any update",
|
|
954
|
-
"$ref": "#/components/responses/ConflictError"
|
|
955
|
-
},
|
|
956
|
-
"412": {
|
|
957
|
-
"description": "The space cannot be moved.",
|
|
958
|
-
"$ref": "#/components/responses/PreconditionFailedError"
|
|
959
|
-
}
|
|
960
|
-
}
|
|
961
|
-
}
|
|
962
|
-
},
|
|
963
900
|
"/spaces/{spaceId}/embed": {
|
|
964
901
|
"get": {
|
|
965
902
|
"operationId": "getEmbedByUrlInSpace",
|
|
@@ -13178,7 +13115,7 @@
|
|
|
13178
13115
|
"$ref": "#/components/schemas/SiteSectionGroupTitle"
|
|
13179
13116
|
},
|
|
13180
13117
|
"localizedTitle": {
|
|
13181
|
-
"$ref": "#/components/schemas/
|
|
13118
|
+
"$ref": "#/components/schemas/LocalizedString128"
|
|
13182
13119
|
},
|
|
13183
13120
|
"icon": {
|
|
13184
13121
|
"oneOf": [
|
|
@@ -13528,7 +13465,7 @@
|
|
|
13528
13465
|
"$ref": "#/components/schemas/SiteSectionTitle"
|
|
13529
13466
|
},
|
|
13530
13467
|
"localizedTitle": {
|
|
13531
|
-
"$ref": "#/components/schemas/
|
|
13468
|
+
"$ref": "#/components/schemas/LocalizedString128"
|
|
13532
13469
|
},
|
|
13533
13470
|
"path": {
|
|
13534
13471
|
"$ref": "#/components/schemas/SiteSectionPath"
|
|
@@ -13573,7 +13510,7 @@
|
|
|
13573
13510
|
]
|
|
13574
13511
|
},
|
|
13575
13512
|
"localizedDescription": {
|
|
13576
|
-
"$ref": "#/components/schemas/
|
|
13513
|
+
"$ref": "#/components/schemas/LocalizedString256"
|
|
13577
13514
|
},
|
|
13578
13515
|
"siteSectionGroupId": {
|
|
13579
13516
|
"description": "ID of the section group to move the section into. Set to null to move the section to the root of the site.",
|
|
@@ -15208,12 +15145,26 @@
|
|
|
15208
15145
|
"$ref": "#/components/schemas/SiteQuestionType"
|
|
15209
15146
|
}
|
|
15210
15147
|
},
|
|
15148
|
+
{
|
|
15149
|
+
"name": "relevance",
|
|
15150
|
+
"in": "query",
|
|
15151
|
+
"description": "Filter questions by question relevance.",
|
|
15152
|
+
"schema": {
|
|
15153
|
+
"type": "array",
|
|
15154
|
+
"items": {
|
|
15155
|
+
"$ref": "#/components/schemas/SiteQuestionAnswerRelevance"
|
|
15156
|
+
}
|
|
15157
|
+
}
|
|
15158
|
+
},
|
|
15211
15159
|
{
|
|
15212
15160
|
"name": "answered",
|
|
15213
15161
|
"in": "query",
|
|
15214
15162
|
"description": "Filter questions by answer resolution.",
|
|
15215
15163
|
"schema": {
|
|
15216
|
-
"
|
|
15164
|
+
"type": "array",
|
|
15165
|
+
"items": {
|
|
15166
|
+
"$ref": "#/components/schemas/SiteQuestionAnswerResolution"
|
|
15167
|
+
}
|
|
15217
15168
|
}
|
|
15218
15169
|
},
|
|
15219
15170
|
{
|
|
@@ -15224,6 +15175,22 @@
|
|
|
15224
15175
|
"type": "string"
|
|
15225
15176
|
}
|
|
15226
15177
|
},
|
|
15178
|
+
{
|
|
15179
|
+
"$ref": "#/components/parameters/listOrder"
|
|
15180
|
+
},
|
|
15181
|
+
{
|
|
15182
|
+
"name": "sort",
|
|
15183
|
+
"in": "query",
|
|
15184
|
+
"description": "Sort questions by latest ask activity, answered rate, or positive feedback rate. If omitted, ordering stays on canonical question creation date to preserve current behavior.",
|
|
15185
|
+
"schema": {
|
|
15186
|
+
"type": "string",
|
|
15187
|
+
"enum": [
|
|
15188
|
+
"askedAt",
|
|
15189
|
+
"stats.answered",
|
|
15190
|
+
"stats.feedback"
|
|
15191
|
+
]
|
|
15192
|
+
}
|
|
15193
|
+
},
|
|
15227
15194
|
{
|
|
15228
15195
|
"$ref": "#/components/parameters/listPage"
|
|
15229
15196
|
},
|
|
@@ -15417,6 +15384,17 @@
|
|
|
15417
15384
|
"$ref": "#/components/schemas/SiteQuestionAnswerRelevance"
|
|
15418
15385
|
}
|
|
15419
15386
|
}
|
|
15387
|
+
},
|
|
15388
|
+
{
|
|
15389
|
+
"name": "answered",
|
|
15390
|
+
"in": "query",
|
|
15391
|
+
"description": "Filter stats by answer resolution.",
|
|
15392
|
+
"schema": {
|
|
15393
|
+
"type": "array",
|
|
15394
|
+
"items": {
|
|
15395
|
+
"$ref": "#/components/schemas/SiteQuestionAnswerResolution"
|
|
15396
|
+
}
|
|
15397
|
+
}
|
|
15420
15398
|
}
|
|
15421
15399
|
],
|
|
15422
15400
|
"responses": {
|
|
@@ -15886,7 +15864,7 @@
|
|
|
15886
15864
|
"description": "Localized titles for the site variant, keyed by locale. If not defined, the localized title will not be changed. If set to null, all localized titles will be removed.",
|
|
15887
15865
|
"oneOf": [
|
|
15888
15866
|
{
|
|
15889
|
-
"$ref": "#/components/schemas/
|
|
15867
|
+
"$ref": "#/components/schemas/LocalizedString128"
|
|
15890
15868
|
},
|
|
15891
15869
|
{
|
|
15892
15870
|
"type": "null"
|
|
@@ -18245,8 +18223,8 @@
|
|
|
18245
18223
|
{
|
|
18246
18224
|
"type": "object",
|
|
18247
18225
|
"properties": {
|
|
18248
|
-
"
|
|
18249
|
-
"$ref": "#/components/schemas/
|
|
18226
|
+
"role": {
|
|
18227
|
+
"$ref": "#/components/schemas/SiteChannelRole"
|
|
18250
18228
|
}
|
|
18251
18229
|
}
|
|
18252
18230
|
}
|
|
@@ -18305,6 +18283,63 @@
|
|
|
18305
18283
|
}
|
|
18306
18284
|
}
|
|
18307
18285
|
},
|
|
18286
|
+
"patch": {
|
|
18287
|
+
"operationId": "updateSiteChannelById",
|
|
18288
|
+
"summary": "Update a site channel",
|
|
18289
|
+
"tags": [
|
|
18290
|
+
"site-channels"
|
|
18291
|
+
],
|
|
18292
|
+
"security": [
|
|
18293
|
+
{
|
|
18294
|
+
"user": []
|
|
18295
|
+
}
|
|
18296
|
+
],
|
|
18297
|
+
"parameters": [
|
|
18298
|
+
{
|
|
18299
|
+
"$ref": "#/components/parameters/organizationId"
|
|
18300
|
+
},
|
|
18301
|
+
{
|
|
18302
|
+
"$ref": "#/components/parameters/siteId"
|
|
18303
|
+
},
|
|
18304
|
+
{
|
|
18305
|
+
"$ref": "#/components/parameters/siteChannelId"
|
|
18306
|
+
}
|
|
18307
|
+
],
|
|
18308
|
+
"requestBody": {
|
|
18309
|
+
"required": true,
|
|
18310
|
+
"content": {
|
|
18311
|
+
"application/json": {
|
|
18312
|
+
"schema": {
|
|
18313
|
+
"anyOf": [
|
|
18314
|
+
{
|
|
18315
|
+
"$ref": "#/components/schemas/SiteChannelSetup"
|
|
18316
|
+
},
|
|
18317
|
+
{
|
|
18318
|
+
"type": "object",
|
|
18319
|
+
"properties": {
|
|
18320
|
+
"role": {
|
|
18321
|
+
"$ref": "#/components/schemas/SiteChannelRole"
|
|
18322
|
+
}
|
|
18323
|
+
}
|
|
18324
|
+
}
|
|
18325
|
+
]
|
|
18326
|
+
}
|
|
18327
|
+
}
|
|
18328
|
+
}
|
|
18329
|
+
},
|
|
18330
|
+
"responses": {
|
|
18331
|
+
"200": {
|
|
18332
|
+
"description": "OK",
|
|
18333
|
+
"content": {
|
|
18334
|
+
"application/json": {
|
|
18335
|
+
"schema": {
|
|
18336
|
+
"$ref": "#/components/schemas/SiteChannel"
|
|
18337
|
+
}
|
|
18338
|
+
}
|
|
18339
|
+
}
|
|
18340
|
+
}
|
|
18341
|
+
}
|
|
18342
|
+
},
|
|
18308
18343
|
"delete": {
|
|
18309
18344
|
"operationId": "deleteSiteChannelById",
|
|
18310
18345
|
"summary": "Delete a site channel",
|
|
@@ -26666,6 +26701,28 @@
|
|
|
26666
26701
|
"type": "number",
|
|
26667
26702
|
"description": "Count of opened comments on the change request."
|
|
26668
26703
|
},
|
|
26704
|
+
"siteTopic": {
|
|
26705
|
+
"type": "object",
|
|
26706
|
+
"description": "Site context associated with the change request when it was created from a site topic or finding.",
|
|
26707
|
+
"properties": {
|
|
26708
|
+
"site": {
|
|
26709
|
+
"type": "string",
|
|
26710
|
+
"description": "ID of the site associated with the change request."
|
|
26711
|
+
},
|
|
26712
|
+
"topic": {
|
|
26713
|
+
"type": "string",
|
|
26714
|
+
"description": "ID of the site topic associated with the change request."
|
|
26715
|
+
},
|
|
26716
|
+
"finding": {
|
|
26717
|
+
"type": "string",
|
|
26718
|
+
"description": "ID of the site finding associated with the change request, when applicable."
|
|
26719
|
+
}
|
|
26720
|
+
},
|
|
26721
|
+
"required": [
|
|
26722
|
+
"site",
|
|
26723
|
+
"topic"
|
|
26724
|
+
]
|
|
26725
|
+
},
|
|
26669
26726
|
"outdated": {
|
|
26670
26727
|
"type": "boolean",
|
|
26671
26728
|
"description": "If true, the change request is not up-to-date with latest changes in the main content."
|
|
@@ -33375,9 +33432,9 @@
|
|
|
33375
33432
|
"minLength": 2,
|
|
33376
33433
|
"maxLength": 128
|
|
33377
33434
|
},
|
|
33378
|
-
"
|
|
33435
|
+
"LocalizedString128": {
|
|
33379
33436
|
"type": "object",
|
|
33380
|
-
"description": "Localized
|
|
33437
|
+
"description": "Localized string value with a 128 character limit, keyed by locale. Contains overrides for non-default languages only.",
|
|
33381
33438
|
"additionalProperties": {
|
|
33382
33439
|
"type": "string",
|
|
33383
33440
|
"maxLength": 128
|
|
@@ -33392,9 +33449,9 @@
|
|
|
33392
33449
|
"minLength": 0,
|
|
33393
33450
|
"maxLength": 256
|
|
33394
33451
|
},
|
|
33395
|
-
"
|
|
33452
|
+
"LocalizedString256": {
|
|
33396
33453
|
"type": "object",
|
|
33397
|
-
"description": "Localized
|
|
33454
|
+
"description": "Localized string value with a 256 character limit, keyed by locale. Contains overrides for non-default languages only.",
|
|
33398
33455
|
"additionalProperties": {
|
|
33399
33456
|
"type": "string",
|
|
33400
33457
|
"maxLength": 256
|
|
@@ -33443,7 +33500,7 @@
|
|
|
33443
33500
|
"type": "string"
|
|
33444
33501
|
},
|
|
33445
33502
|
"localizedTitle": {
|
|
33446
|
-
"$ref": "#/components/schemas/
|
|
33503
|
+
"$ref": "#/components/schemas/LocalizedString128"
|
|
33447
33504
|
},
|
|
33448
33505
|
"default": {
|
|
33449
33506
|
"type": "boolean",
|
|
@@ -33505,13 +33562,13 @@
|
|
|
33505
33562
|
"$ref": "#/components/schemas/SiteSectionTitle"
|
|
33506
33563
|
},
|
|
33507
33564
|
"localizedTitle": {
|
|
33508
|
-
"$ref": "#/components/schemas/
|
|
33565
|
+
"$ref": "#/components/schemas/LocalizedString128"
|
|
33509
33566
|
},
|
|
33510
33567
|
"description": {
|
|
33511
33568
|
"$ref": "#/components/schemas/SiteSectionDescription"
|
|
33512
33569
|
},
|
|
33513
33570
|
"localizedDescription": {
|
|
33514
|
-
"$ref": "#/components/schemas/
|
|
33571
|
+
"$ref": "#/components/schemas/LocalizedString256"
|
|
33515
33572
|
},
|
|
33516
33573
|
"default": {
|
|
33517
33574
|
"type": "boolean",
|
|
@@ -33587,7 +33644,7 @@
|
|
|
33587
33644
|
"$ref": "#/components/schemas/SiteSectionGroupTitle"
|
|
33588
33645
|
},
|
|
33589
33646
|
"localizedTitle": {
|
|
33590
|
-
"$ref": "#/components/schemas/
|
|
33647
|
+
"$ref": "#/components/schemas/LocalizedString128"
|
|
33591
33648
|
},
|
|
33592
33649
|
"sections": {
|
|
33593
33650
|
"type": "array",
|
|
@@ -36552,16 +36609,41 @@
|
|
|
36552
36609
|
"none"
|
|
36553
36610
|
]
|
|
36554
36611
|
},
|
|
36612
|
+
"LocalizedString": {
|
|
36613
|
+
"type": "object",
|
|
36614
|
+
"description": "Localized string value, keyed by locale. Contains overrides for non-default languages only.",
|
|
36615
|
+
"propertyNames": {
|
|
36616
|
+
"$ref": "#/components/schemas/TranslationLanguage"
|
|
36617
|
+
},
|
|
36618
|
+
"additionalProperties": {
|
|
36619
|
+
"type": "string"
|
|
36620
|
+
}
|
|
36621
|
+
},
|
|
36555
36622
|
"CustomizationContentLinkTitle": {
|
|
36556
36623
|
"type": "string",
|
|
36557
36624
|
"maxLength": 64
|
|
36558
36625
|
},
|
|
36626
|
+
"LocalizedString64": {
|
|
36627
|
+
"type": "object",
|
|
36628
|
+
"description": "Localized string value with a 128 character limit, keyed by locale. Contains overrides for non-default languages only.",
|
|
36629
|
+
"additionalProperties": {
|
|
36630
|
+
"type": "string",
|
|
36631
|
+
"maxLength": 64
|
|
36632
|
+
},
|
|
36633
|
+
"propertyNames": {
|
|
36634
|
+
"$ref": "#/components/schemas/TranslationLanguage"
|
|
36635
|
+
}
|
|
36636
|
+
},
|
|
36559
36637
|
"CustomizationContentLink": {
|
|
36560
36638
|
"type": "object",
|
|
36561
36639
|
"properties": {
|
|
36562
36640
|
"title": {
|
|
36563
36641
|
"$ref": "#/components/schemas/CustomizationContentLinkTitle"
|
|
36564
36642
|
},
|
|
36643
|
+
"localizedTitle": {
|
|
36644
|
+
"description": "Localized overrides for the link title, keyed by locale.",
|
|
36645
|
+
"$ref": "#/components/schemas/LocalizedString64"
|
|
36646
|
+
},
|
|
36565
36647
|
"to": {
|
|
36566
36648
|
"$ref": "#/components/schemas/ContentRef"
|
|
36567
36649
|
}
|
|
@@ -36577,6 +36659,10 @@
|
|
|
36577
36659
|
"title": {
|
|
36578
36660
|
"type": "string"
|
|
36579
36661
|
},
|
|
36662
|
+
"localizedTitle": {
|
|
36663
|
+
"description": "Localized overrides for the header item title, keyed by locale.",
|
|
36664
|
+
"$ref": "#/components/schemas/LocalizedString"
|
|
36665
|
+
},
|
|
36580
36666
|
"style": {
|
|
36581
36667
|
"type": "string",
|
|
36582
36668
|
"enum": [
|
|
@@ -36618,6 +36704,10 @@
|
|
|
36618
36704
|
"title": {
|
|
36619
36705
|
"type": "string"
|
|
36620
36706
|
},
|
|
36707
|
+
"localizedTitle": {
|
|
36708
|
+
"description": "Localized overrides for the footer group title, keyed by locale.",
|
|
36709
|
+
"$ref": "#/components/schemas/LocalizedString"
|
|
36710
|
+
},
|
|
36621
36711
|
"links": {
|
|
36622
36712
|
"type": "array",
|
|
36623
36713
|
"items": {
|
|
@@ -36646,6 +36736,10 @@
|
|
|
36646
36736
|
"message": {
|
|
36647
36737
|
"$ref": "#/components/schemas/CustomizationAnnouncementMessage"
|
|
36648
36738
|
},
|
|
36739
|
+
"localizedMessage": {
|
|
36740
|
+
"description": "Localized overrides for the announcement message, keyed by locale.",
|
|
36741
|
+
"$ref": "#/components/schemas/LocalizedString128"
|
|
36742
|
+
},
|
|
36649
36743
|
"link": {
|
|
36650
36744
|
"description": "The content or URL the announcement links to when clicked.",
|
|
36651
36745
|
"$ref": "#/components/schemas/CustomizationContentLink"
|
|
@@ -36779,7 +36873,7 @@
|
|
|
36779
36873
|
},
|
|
36780
36874
|
"localizedTitle": {
|
|
36781
36875
|
"description": "Localized titles for the site, keyed by locale. If not defined, the localized title will not be changed.",
|
|
36782
|
-
"$ref": "#/components/schemas/
|
|
36876
|
+
"$ref": "#/components/schemas/LocalizedString128"
|
|
36783
36877
|
},
|
|
36784
36878
|
"styling": {
|
|
36785
36879
|
"type": "object",
|
|
@@ -38180,6 +38274,9 @@
|
|
|
38180
38274
|
"createdAt": {
|
|
38181
38275
|
"$ref": "#/components/schemas/Timestamp"
|
|
38182
38276
|
},
|
|
38277
|
+
"askedAt": {
|
|
38278
|
+
"$ref": "#/components/schemas/Timestamp"
|
|
38279
|
+
},
|
|
38183
38280
|
"stats": {
|
|
38184
38281
|
"$ref": "#/components/schemas/SiteQuestionStats"
|
|
38185
38282
|
},
|
|
@@ -38204,6 +38301,7 @@
|
|
|
38204
38301
|
"question",
|
|
38205
38302
|
"type",
|
|
38206
38303
|
"createdAt",
|
|
38304
|
+
"askedAt",
|
|
38207
38305
|
"stats",
|
|
38208
38306
|
"urls"
|
|
38209
38307
|
]
|
|
@@ -38644,6 +38742,16 @@
|
|
|
38644
38742
|
"urls"
|
|
38645
38743
|
]
|
|
38646
38744
|
},
|
|
38745
|
+
"SiteQuestionAnswerRelevance": {
|
|
38746
|
+
"type": "string",
|
|
38747
|
+
"description": "Relevance classification of the user question.",
|
|
38748
|
+
"enum": [
|
|
38749
|
+
"relevant",
|
|
38750
|
+
"spam",
|
|
38751
|
+
"off-topic",
|
|
38752
|
+
"unclear"
|
|
38753
|
+
]
|
|
38754
|
+
},
|
|
38647
38755
|
"SiteQuestionAnswerResolution": {
|
|
38648
38756
|
"type": "string",
|
|
38649
38757
|
"description": "Whether the response answered the question.",
|
|
@@ -38777,16 +38885,6 @@
|
|
|
38777
38885
|
"propertyName": "type"
|
|
38778
38886
|
}
|
|
38779
38887
|
},
|
|
38780
|
-
"SiteQuestionAnswerRelevance": {
|
|
38781
|
-
"type": "string",
|
|
38782
|
-
"description": "Relevance classification of the user question.",
|
|
38783
|
-
"enum": [
|
|
38784
|
-
"relevant",
|
|
38785
|
-
"spam",
|
|
38786
|
-
"off-topic",
|
|
38787
|
-
"unclear"
|
|
38788
|
-
]
|
|
38789
|
-
},
|
|
38790
38888
|
"SiteQuestionAnswerHelpfulness": {
|
|
38791
38889
|
"type": "string",
|
|
38792
38890
|
"description": "Helpfulness of the response for the end user need.",
|
|
@@ -43844,7 +43942,17 @@
|
|
|
43844
43942
|
},
|
|
43845
43943
|
"setupSettings": {
|
|
43846
43944
|
"type": "object",
|
|
43847
|
-
"additionalProperties": false
|
|
43945
|
+
"additionalProperties": false,
|
|
43946
|
+
"properties": {
|
|
43947
|
+
"allowedChannels": {
|
|
43948
|
+
"description": "List of allowed Slack channel names or patterns. If empty, all channels are allowed.",
|
|
43949
|
+
"type": "array",
|
|
43950
|
+
"items": {
|
|
43951
|
+
"type": "string",
|
|
43952
|
+
"pattern": "^[a-zA-Z0-9_\\*-]+$"
|
|
43953
|
+
}
|
|
43954
|
+
}
|
|
43955
|
+
}
|
|
43848
43956
|
}
|
|
43849
43957
|
},
|
|
43850
43958
|
"required": [
|
|
@@ -43863,7 +43971,17 @@
|
|
|
43863
43971
|
},
|
|
43864
43972
|
"setupSettings": {
|
|
43865
43973
|
"type": "object",
|
|
43866
|
-
"additionalProperties": false
|
|
43974
|
+
"additionalProperties": false,
|
|
43975
|
+
"properties": {
|
|
43976
|
+
"allowedChannels": {
|
|
43977
|
+
"description": "List of allowed Discord channel names or patterns. If empty, all channels are allowed.",
|
|
43978
|
+
"type": "array",
|
|
43979
|
+
"items": {
|
|
43980
|
+
"type": "string",
|
|
43981
|
+
"pattern": "^[a-zA-Z0-9_\\*-]+$"
|
|
43982
|
+
}
|
|
43983
|
+
}
|
|
43984
|
+
}
|
|
43867
43985
|
}
|
|
43868
43986
|
},
|
|
43869
43987
|
"required": [
|
|
@@ -43873,10 +43991,19 @@
|
|
|
43873
43991
|
}
|
|
43874
43992
|
]
|
|
43875
43993
|
},
|
|
43876
|
-
"
|
|
43877
|
-
"type": "
|
|
43878
|
-
"
|
|
43879
|
-
|
|
43994
|
+
"SiteChannelStatus": {
|
|
43995
|
+
"type": "string",
|
|
43996
|
+
"enum": [
|
|
43997
|
+
"active",
|
|
43998
|
+
"pending"
|
|
43999
|
+
]
|
|
44000
|
+
},
|
|
44001
|
+
"SiteChannelRole": {
|
|
44002
|
+
"type": "string",
|
|
44003
|
+
"enum": [
|
|
44004
|
+
"collaborator",
|
|
44005
|
+
"support"
|
|
44006
|
+
]
|
|
43880
44007
|
},
|
|
43881
44008
|
"SiteChannel": {
|
|
43882
44009
|
"allOf": [
|
|
@@ -43896,14 +44023,17 @@
|
|
|
43896
44023
|
"type": "string",
|
|
43897
44024
|
"description": "Unique identifier for the site channel."
|
|
43898
44025
|
},
|
|
44026
|
+
"status": {
|
|
44027
|
+
"$ref": "#/components/schemas/SiteChannelStatus"
|
|
44028
|
+
},
|
|
44029
|
+
"role": {
|
|
44030
|
+
"$ref": "#/components/schemas/SiteChannelRole"
|
|
44031
|
+
},
|
|
43899
44032
|
"answers": {
|
|
43900
44033
|
"type": "integer",
|
|
43901
44034
|
"minimum": 0,
|
|
43902
44035
|
"description": "Number of answers linked to this channel."
|
|
43903
44036
|
},
|
|
43904
|
-
"usageSettings": {
|
|
43905
|
-
"$ref": "#/components/schemas/SiteChannelUsageSettings"
|
|
43906
|
-
},
|
|
43907
44037
|
"createdAt": {
|
|
43908
44038
|
"$ref": "#/components/schemas/Timestamp"
|
|
43909
44039
|
},
|
|
@@ -43924,8 +44054,9 @@
|
|
|
43924
44054
|
"required": [
|
|
43925
44055
|
"object",
|
|
43926
44056
|
"id",
|
|
44057
|
+
"status",
|
|
44058
|
+
"role",
|
|
43927
44059
|
"answers",
|
|
43928
|
-
"usageSettings",
|
|
43929
44060
|
"createdAt",
|
|
43930
44061
|
"urls"
|
|
43931
44062
|
]
|
|
@@ -46594,6 +46725,25 @@
|
|
|
46594
46725
|
"site"
|
|
46595
46726
|
]
|
|
46596
46727
|
},
|
|
46728
|
+
"APIChannelSiteChannels": {
|
|
46729
|
+
"type": "object",
|
|
46730
|
+
"description": "Subscription channel for changes in site channels.",
|
|
46731
|
+
"properties": {
|
|
46732
|
+
"channel": {
|
|
46733
|
+
"type": "string",
|
|
46734
|
+
"enum": [
|
|
46735
|
+
"site-channels"
|
|
46736
|
+
]
|
|
46737
|
+
},
|
|
46738
|
+
"site": {
|
|
46739
|
+
"type": "string"
|
|
46740
|
+
}
|
|
46741
|
+
},
|
|
46742
|
+
"required": [
|
|
46743
|
+
"channel",
|
|
46744
|
+
"site"
|
|
46745
|
+
]
|
|
46746
|
+
},
|
|
46597
46747
|
"APIChannelSiteContext": {
|
|
46598
46748
|
"type": "object",
|
|
46599
46749
|
"description": "Subscription channel for changes in site context.",
|
|
@@ -47149,6 +47299,9 @@
|
|
|
47149
47299
|
{
|
|
47150
47300
|
"$ref": "#/components/schemas/APIChannelSite"
|
|
47151
47301
|
},
|
|
47302
|
+
{
|
|
47303
|
+
"$ref": "#/components/schemas/APIChannelSiteChannels"
|
|
47304
|
+
},
|
|
47152
47305
|
{
|
|
47153
47306
|
"$ref": "#/components/schemas/APIChannelSiteContext"
|
|
47154
47307
|
},
|
|
@@ -47675,14 +47828,14 @@
|
|
|
47675
47828
|
"actor"
|
|
47676
47829
|
]
|
|
47677
47830
|
},
|
|
47678
|
-
"
|
|
47831
|
+
"LocalizedContentRef": {
|
|
47832
|
+
"description": "Localized content reference, keyed by locale. Contains overrides for non-default languages only.",
|
|
47679
47833
|
"type": "object",
|
|
47680
|
-
"
|
|
47834
|
+
"additionalProperties": {
|
|
47835
|
+
"$ref": "#/components/schemas/ContentRef"
|
|
47836
|
+
},
|
|
47681
47837
|
"propertyNames": {
|
|
47682
47838
|
"$ref": "#/components/schemas/TranslationLanguage"
|
|
47683
|
-
},
|
|
47684
|
-
"additionalProperties": {
|
|
47685
|
-
"type": "string"
|
|
47686
47839
|
}
|
|
47687
47840
|
},
|
|
47688
47841
|
"RequestSpaceTrackPageView": {
|