@gitbook/api 0.166.0 → 0.167.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
@@ -194,7 +194,7 @@
194
194
  "x-page-title": "Site context",
195
195
  "x-page-description": "Manage context records, connections, and topics for a docs site.",
196
196
  "x-parent": "sites",
197
- "description": "Manage the contextual records and topics used by your site to power AI experiences and insights.\n\n{% openapi-schemas spec=\"gitbook\" schemas=\"ContextRecord,ContextConnection,SiteTopic\" grouped=\"false\" %}\n The Site Context objects\n{% endopenapi-schemas %}\n"
197
+ "description": "Manage the contextual records and topics used by your site to power AI experiences and insights.\n\n{% openapi-schemas spec=\"gitbook\" schemas=\"ContextRecord,ContextConnection,SiteTopic,SiteIssue,SiteIssuePage\" grouped=\"false\" %}\n The Site Context objects\n{% endopenapi-schemas %}\n"
198
198
  },
199
199
  {
200
200
  "name": "site-questions",
@@ -2404,6 +2404,15 @@
2404
2404
  },
2405
2405
  "description": "If defined, only change requests with a requested reviewer for this user will be returned."
2406
2406
  },
2407
+ {
2408
+ "name": "topic",
2409
+ "in": "query",
2410
+ "required": false,
2411
+ "schema": {
2412
+ "type": "string"
2413
+ },
2414
+ "description": "If defined, only change requests linked to this site topic will be returned."
2415
+ },
2407
2416
  {
2408
2417
  "name": "orderBy",
2409
2418
  "in": "query",
@@ -9147,6 +9156,15 @@
9147
9156
  },
9148
9157
  "description": "If defined, only change requests with a requested reviewer for this user will be returned."
9149
9158
  },
9159
+ {
9160
+ "name": "topic",
9161
+ "in": "query",
9162
+ "required": false,
9163
+ "schema": {
9164
+ "type": "string"
9165
+ },
9166
+ "description": "If defined, only change requests linked to this site topic will be returned."
9167
+ },
9150
9168
  {
9151
9169
  "name": "orderBy",
9152
9170
  "in": "query",
@@ -12608,6 +12626,15 @@
12608
12626
  "schema": {
12609
12627
  "type": "string"
12610
12628
  }
12629
+ },
12630
+ {
12631
+ "name": "draft",
12632
+ "in": "query",
12633
+ "description": "Whether to include draft content in the preview. Defaults to true",
12634
+ "schema": {
12635
+ "type": "boolean",
12636
+ "default": true
12637
+ }
12611
12638
  }
12612
12639
  ],
12613
12640
  "responses": {
@@ -14122,6 +14149,335 @@
14122
14149
  }
14123
14150
  }
14124
14151
  }
14152
+ },
14153
+ "patch": {
14154
+ "operationId": "updateSiteIssueById",
14155
+ "summary": "Update a site issue",
14156
+ "tags": [
14157
+ "site-context"
14158
+ ],
14159
+ "security": [
14160
+ {
14161
+ "user": []
14162
+ }
14163
+ ],
14164
+ "parameters": [
14165
+ {
14166
+ "$ref": "#/components/parameters/organizationId"
14167
+ },
14168
+ {
14169
+ "$ref": "#/components/parameters/siteId"
14170
+ },
14171
+ {
14172
+ "$ref": "#/components/parameters/siteIssueId"
14173
+ }
14174
+ ],
14175
+ "requestBody": {
14176
+ "required": true,
14177
+ "content": {
14178
+ "application/json": {
14179
+ "schema": {
14180
+ "type": "object",
14181
+ "properties": {
14182
+ "status": {
14183
+ "type": "string",
14184
+ "enum": [
14185
+ "open",
14186
+ "canceled"
14187
+ ]
14188
+ }
14189
+ },
14190
+ "required": [
14191
+ "status"
14192
+ ]
14193
+ }
14194
+ }
14195
+ }
14196
+ },
14197
+ "responses": {
14198
+ "200": {
14199
+ "description": "OK",
14200
+ "content": {
14201
+ "application/json": {
14202
+ "schema": {
14203
+ "$ref": "#/components/schemas/SiteIssue"
14204
+ }
14205
+ }
14206
+ }
14207
+ }
14208
+ }
14209
+ }
14210
+ },
14211
+ "/orgs/{organizationId}/sites/{siteId}/issues/{siteIssueId}/change-requests": {
14212
+ "get": {
14213
+ "operationId": "listChangeRequestsForSiteIssue",
14214
+ "summary": "List change requests linked to a site issue",
14215
+ "tags": [
14216
+ "site-context"
14217
+ ],
14218
+ "security": [
14219
+ {
14220
+ "user": []
14221
+ }
14222
+ ],
14223
+ "parameters": [
14224
+ {
14225
+ "$ref": "#/components/parameters/listPage"
14226
+ },
14227
+ {
14228
+ "$ref": "#/components/parameters/listLimit"
14229
+ },
14230
+ {
14231
+ "$ref": "#/components/parameters/organizationId"
14232
+ },
14233
+ {
14234
+ "$ref": "#/components/parameters/siteId"
14235
+ },
14236
+ {
14237
+ "$ref": "#/components/parameters/siteIssueId"
14238
+ }
14239
+ ],
14240
+ "responses": {
14241
+ "200": {
14242
+ "description": "List of change requests linked to the site issue",
14243
+ "content": {
14244
+ "application/json": {
14245
+ "schema": {
14246
+ "allOf": [
14247
+ {
14248
+ "$ref": "#/components/schemas/List"
14249
+ },
14250
+ {
14251
+ "type": "object",
14252
+ "required": [
14253
+ "items"
14254
+ ],
14255
+ "properties": {
14256
+ "items": {
14257
+ "type": "array",
14258
+ "items": {
14259
+ "$ref": "#/components/schemas/ChangeRequest"
14260
+ }
14261
+ }
14262
+ }
14263
+ }
14264
+ ]
14265
+ }
14266
+ }
14267
+ }
14268
+ }
14269
+ }
14270
+ },
14271
+ "post": {
14272
+ "operationId": "triggerChangeRequestsForSiteIssue",
14273
+ "summary": "Process a site issue into change requests",
14274
+ "tags": [
14275
+ "site-context"
14276
+ ],
14277
+ "security": [
14278
+ {
14279
+ "user": []
14280
+ }
14281
+ ],
14282
+ "parameters": [
14283
+ {
14284
+ "$ref": "#/components/parameters/organizationId"
14285
+ },
14286
+ {
14287
+ "$ref": "#/components/parameters/siteId"
14288
+ },
14289
+ {
14290
+ "$ref": "#/components/parameters/siteIssueId"
14291
+ }
14292
+ ],
14293
+ "responses": {
14294
+ "202": {
14295
+ "description": "Site issue processing has been started"
14296
+ }
14297
+ }
14298
+ }
14299
+ },
14300
+ "/orgs/{organizationId}/sites/{siteId}/issues/{siteIssueId}/pages": {
14301
+ "get": {
14302
+ "operationId": "listPagesForSiteIssue",
14303
+ "summary": "List pages linked to a site issue",
14304
+ "tags": [
14305
+ "site-context"
14306
+ ],
14307
+ "security": [
14308
+ {
14309
+ "user": []
14310
+ }
14311
+ ],
14312
+ "parameters": [
14313
+ {
14314
+ "$ref": "#/components/parameters/listPage"
14315
+ },
14316
+ {
14317
+ "$ref": "#/components/parameters/listLimit"
14318
+ },
14319
+ {
14320
+ "$ref": "#/components/parameters/organizationId"
14321
+ },
14322
+ {
14323
+ "$ref": "#/components/parameters/siteId"
14324
+ },
14325
+ {
14326
+ "$ref": "#/components/parameters/siteIssueId"
14327
+ }
14328
+ ],
14329
+ "responses": {
14330
+ "200": {
14331
+ "description": "List of pages linked to the site issue",
14332
+ "content": {
14333
+ "application/json": {
14334
+ "schema": {
14335
+ "allOf": [
14336
+ {
14337
+ "$ref": "#/components/schemas/List"
14338
+ },
14339
+ {
14340
+ "type": "object",
14341
+ "required": [
14342
+ "items"
14343
+ ],
14344
+ "properties": {
14345
+ "items": {
14346
+ "type": "array",
14347
+ "items": {
14348
+ "$ref": "#/components/schemas/SiteIssuePage"
14349
+ }
14350
+ }
14351
+ }
14352
+ }
14353
+ ]
14354
+ }
14355
+ }
14356
+ }
14357
+ }
14358
+ }
14359
+ }
14360
+ },
14361
+ "/orgs/{organizationId}/sites/{siteId}/issues/{siteIssueId}/questions": {
14362
+ "get": {
14363
+ "operationId": "listQuestionsForSiteIssue",
14364
+ "summary": "List questions linked to a site issue",
14365
+ "tags": [
14366
+ "site-context"
14367
+ ],
14368
+ "security": [
14369
+ {
14370
+ "user": []
14371
+ }
14372
+ ],
14373
+ "parameters": [
14374
+ {
14375
+ "$ref": "#/components/parameters/listPage"
14376
+ },
14377
+ {
14378
+ "$ref": "#/components/parameters/listLimit"
14379
+ },
14380
+ {
14381
+ "$ref": "#/components/parameters/organizationId"
14382
+ },
14383
+ {
14384
+ "$ref": "#/components/parameters/siteId"
14385
+ },
14386
+ {
14387
+ "$ref": "#/components/parameters/siteIssueId"
14388
+ }
14389
+ ],
14390
+ "responses": {
14391
+ "200": {
14392
+ "description": "List of questions linked to the site issue",
14393
+ "content": {
14394
+ "application/json": {
14395
+ "schema": {
14396
+ "allOf": [
14397
+ {
14398
+ "$ref": "#/components/schemas/List"
14399
+ },
14400
+ {
14401
+ "type": "object",
14402
+ "required": [
14403
+ "items"
14404
+ ],
14405
+ "properties": {
14406
+ "items": {
14407
+ "type": "array",
14408
+ "items": {
14409
+ "$ref": "#/components/schemas/SiteQuestion"
14410
+ }
14411
+ }
14412
+ }
14413
+ }
14414
+ ]
14415
+ }
14416
+ }
14417
+ }
14418
+ }
14419
+ }
14420
+ }
14421
+ },
14422
+ "/orgs/{organizationId}/sites/{siteId}/issues/{siteIssueId}/records": {
14423
+ "get": {
14424
+ "operationId": "listRecordsForSiteIssue",
14425
+ "summary": "List records linked to a site issue",
14426
+ "tags": [
14427
+ "site-context"
14428
+ ],
14429
+ "security": [
14430
+ {
14431
+ "user": []
14432
+ }
14433
+ ],
14434
+ "parameters": [
14435
+ {
14436
+ "$ref": "#/components/parameters/listPage"
14437
+ },
14438
+ {
14439
+ "$ref": "#/components/parameters/listLimit"
14440
+ },
14441
+ {
14442
+ "$ref": "#/components/parameters/organizationId"
14443
+ },
14444
+ {
14445
+ "$ref": "#/components/parameters/siteId"
14446
+ },
14447
+ {
14448
+ "$ref": "#/components/parameters/siteIssueId"
14449
+ }
14450
+ ],
14451
+ "responses": {
14452
+ "200": {
14453
+ "description": "List of records linked to the site issue",
14454
+ "content": {
14455
+ "application/json": {
14456
+ "schema": {
14457
+ "allOf": [
14458
+ {
14459
+ "$ref": "#/components/schemas/List"
14460
+ },
14461
+ {
14462
+ "type": "object",
14463
+ "required": [
14464
+ "items"
14465
+ ],
14466
+ "properties": {
14467
+ "items": {
14468
+ "type": "array",
14469
+ "items": {
14470
+ "$ref": "#/components/schemas/ContextRecord"
14471
+ }
14472
+ }
14473
+ }
14474
+ }
14475
+ ]
14476
+ }
14477
+ }
14478
+ }
14479
+ }
14480
+ }
14125
14481
  }
14126
14482
  },
14127
14483
  "/orgs/{organizationId}/sites/{siteId}/context-connections": {
@@ -14525,7 +14881,7 @@
14525
14881
  "type": "object",
14526
14882
  "properties": {
14527
14883
  "usageSettings": {
14528
- "$ref": "#/components/schemas/ContextUsageSettings"
14884
+ "$ref": "#/components/schemas/SiteTopicUsageSettings"
14529
14885
  }
14530
14886
  },
14531
14887
  "required": [
@@ -18227,7 +18583,7 @@
18227
18583
  "required": true,
18228
18584
  "description": "The unique id of the space",
18229
18585
  "schema": {
18230
- "type": "string"
18586
+ "$ref": "#/components/schemas/EntityId"
18231
18587
  }
18232
18588
  },
18233
18589
  "siteShareKey": {
@@ -18244,7 +18600,7 @@
18244
18600
  "required": true,
18245
18601
  "description": "The unique ID of the Team",
18246
18602
  "schema": {
18247
- "type": "string"
18603
+ "$ref": "#/components/schemas/EntityId"
18248
18604
  }
18249
18605
  },
18250
18606
  "revisionMetadata": {
@@ -18271,7 +18627,7 @@
18271
18627
  "required": true,
18272
18628
  "description": "The unique id of the file",
18273
18629
  "schema": {
18274
- "type": "string"
18630
+ "$ref": "#/components/schemas/EntityId"
18275
18631
  }
18276
18632
  },
18277
18633
  "pageId": {
@@ -18280,7 +18636,7 @@
18280
18636
  "required": true,
18281
18637
  "description": "The unique id of the page",
18282
18638
  "schema": {
18283
- "type": "string"
18639
+ "$ref": "#/components/schemas/EntityId"
18284
18640
  }
18285
18641
  },
18286
18642
  "documentFormat": {
@@ -18348,7 +18704,7 @@
18348
18704
  "required": true,
18349
18705
  "description": "The unique id of the reusable content",
18350
18706
  "schema": {
18351
- "type": "string"
18707
+ "$ref": "#/components/schemas/EntityId"
18352
18708
  }
18353
18709
  },
18354
18710
  "documentSchema": {
@@ -18369,7 +18725,7 @@
18369
18725
  "required": true,
18370
18726
  "description": "The unique ID of the change request or its number identifier in the space",
18371
18727
  "schema": {
18372
- "type": "string"
18728
+ "$ref": "#/components/schemas/EntityId"
18373
18729
  }
18374
18730
  },
18375
18731
  "reviewId": {
@@ -18434,7 +18790,7 @@
18434
18790
  "required": true,
18435
18791
  "description": "The unique id of the comment",
18436
18792
  "schema": {
18437
- "type": "string"
18793
+ "$ref": "#/components/schemas/EntityId"
18438
18794
  }
18439
18795
  },
18440
18796
  "commentReplyId": {
@@ -18443,7 +18799,7 @@
18443
18799
  "required": true,
18444
18800
  "description": "The unique id of the comment reply",
18445
18801
  "schema": {
18446
- "type": "string"
18802
+ "$ref": "#/components/schemas/EntityId"
18447
18803
  }
18448
18804
  },
18449
18805
  "revisionId": {
@@ -18452,7 +18808,7 @@
18452
18808
  "required": true,
18453
18809
  "description": "The unique id of the revision",
18454
18810
  "schema": {
18455
- "type": "string"
18811
+ "$ref": "#/components/schemas/EntityId"
18456
18812
  }
18457
18813
  },
18458
18814
  "integrationSearchQuery": {
@@ -18469,7 +18825,7 @@
18469
18825
  "required": true,
18470
18826
  "description": "The unique id of the collection",
18471
18827
  "schema": {
18472
- "type": "string"
18828
+ "$ref": "#/components/schemas/EntityId"
18473
18829
  }
18474
18830
  },
18475
18831
  "integrationSearchCategory": {
@@ -18574,7 +18930,7 @@
18574
18930
  "required": true,
18575
18931
  "description": "The unique id of the organization",
18576
18932
  "schema": {
18577
- "type": "string"
18933
+ "$ref": "#/components/schemas/EntityId"
18578
18934
  }
18579
18935
  },
18580
18936
  "inviteId": {
@@ -18583,7 +18939,7 @@
18583
18939
  "required": true,
18584
18940
  "description": "The unique id of the invite",
18585
18941
  "schema": {
18586
- "type": "string"
18942
+ "$ref": "#/components/schemas/EntityId"
18587
18943
  }
18588
18944
  },
18589
18945
  "successReturnURL": {
@@ -19001,6 +19357,11 @@
19001
19357
  "format": "uri",
19002
19358
  "maxLength": 2048
19003
19359
  },
19360
+ "EntityId": {
19361
+ "type": "string",
19362
+ "pattern": "^[a-zA-Z0-9_-]+$",
19363
+ "description": "A unique entity identifier"
19364
+ },
19004
19365
  "SpaceTitle": {
19005
19366
  "type": "string",
19006
19367
  "description": "Title of the space",
@@ -25603,11 +25964,15 @@
25603
25964
  "label": {
25604
25965
  "type": "string",
25605
25966
  "description": "Display label for the tag. Can be renamed and differ from the slug."
25967
+ },
25968
+ "color": {
25969
+ "$ref": "#/components/schemas/DocumentTextColor"
25606
25970
  }
25607
25971
  },
25608
25972
  "required": [
25609
25973
  "slug",
25610
- "label"
25974
+ "label",
25975
+ "color"
25611
25976
  ]
25612
25977
  },
25613
25978
  {
@@ -27022,6 +27387,11 @@
27022
27387
  "$ref": "#/components/schemas/OpenAPIErrorObject"
27023
27388
  }
27024
27389
  },
27390
+ "lastProcessedErrorCount": {
27391
+ "type": "integer",
27392
+ "minimum": 0,
27393
+ "description": "Total number of processing errors before truncation of lastProcessedErrors."
27394
+ },
27025
27395
  "permissions": {
27026
27396
  "type": "object",
27027
27397
  "description": "The set of permissions for the OpenAPI specification.",
@@ -27071,6 +27441,7 @@
27071
27441
  "updatedAt",
27072
27442
  "slug",
27073
27443
  "processingState",
27444
+ "lastProcessedErrorCount",
27074
27445
  "permissions",
27075
27446
  "urls"
27076
27447
  ]
@@ -34401,13 +34772,34 @@
34401
34772
  "description": "Filesystem containing all specifications.",
34402
34773
  "type": "object"
34403
34774
  },
34404
- "url": {
34405
- "$ref": "#/components/schemas/URL"
34775
+ "urls": {
34776
+ "description": "URLs associated with the specification content.",
34777
+ "type": "object",
34778
+ "properties": {
34779
+ "source": {
34780
+ "$ref": "#/components/schemas/URL"
34781
+ },
34782
+ "public": {
34783
+ "description": "Publicly accessible URL for the specification. Available for public specs (proxy URL for stored specs, source URL for external specs). Null for private specs. Can be used for the \"Try it\" feature.",
34784
+ "oneOf": [
34785
+ {
34786
+ "type": "null"
34787
+ },
34788
+ {
34789
+ "$ref": "#/components/schemas/URL"
34790
+ }
34791
+ ]
34792
+ }
34793
+ },
34794
+ "required": [
34795
+ "source",
34796
+ "public"
34797
+ ]
34406
34798
  }
34407
34799
  },
34408
34800
  "required": [
34409
34801
  "filesystem",
34410
- "url"
34802
+ "urls"
34411
34803
  ]
34412
34804
  },
34413
34805
  "OrganizationAgentInstructions": {
@@ -36879,6 +37271,22 @@
36879
37271
  "title": {
36880
37272
  "$ref": "#/components/schemas/SiteIssueTitle"
36881
37273
  },
37274
+ "changeRequests": {
37275
+ "type": "number",
37276
+ "description": "Number of change requests linked to the issue"
37277
+ },
37278
+ "pages": {
37279
+ "type": "number",
37280
+ "description": "Number of pages linked to the issue"
37281
+ },
37282
+ "records": {
37283
+ "type": "number",
37284
+ "description": "Number of records linked to the issue"
37285
+ },
37286
+ "questions": {
37287
+ "type": "number",
37288
+ "description": "Number of questions linked to the issue"
37289
+ },
36882
37290
  "status": {
36883
37291
  "$ref": "#/components/schemas/SiteIssueStatus"
36884
37292
  },
@@ -36921,6 +37329,10 @@
36921
37329
  "id",
36922
37330
  "topic",
36923
37331
  "title",
37332
+ "changeRequests",
37333
+ "pages",
37334
+ "records",
37335
+ "questions",
36924
37336
  "status",
36925
37337
  "type",
36926
37338
  "priority",
@@ -36931,6 +37343,253 @@
36931
37343
  "urls"
36932
37344
  ]
36933
37345
  },
37346
+ "SiteIssuePage": {
37347
+ "type": "object",
37348
+ "properties": {
37349
+ "object": {
37350
+ "type": "string",
37351
+ "enum": [
37352
+ "site-issue-page"
37353
+ ]
37354
+ },
37355
+ "spaceId": {
37356
+ "type": "string",
37357
+ "description": "The space ID containing the linked page."
37358
+ },
37359
+ "page": {
37360
+ "$ref": "#/components/schemas/ChangedRevisionPage"
37361
+ }
37362
+ },
37363
+ "required": [
37364
+ "object",
37365
+ "spaceId",
37366
+ "page"
37367
+ ]
37368
+ },
37369
+ "SiteQuestionType": {
37370
+ "type": "string",
37371
+ "description": "Type classification of the user question.",
37372
+ "enum": [
37373
+ "exploring",
37374
+ "how-to",
37375
+ "troubleshooting",
37376
+ "reference",
37377
+ "unknown"
37378
+ ]
37379
+ },
37380
+ "SiteQuestionStatsFeedback": {
37381
+ "type": "object",
37382
+ "description": "Aggregated feedback for answers linked to a site question.",
37383
+ "properties": {
37384
+ "positive": {
37385
+ "type": "number",
37386
+ "description": "Count of answers with positive feedback."
37387
+ },
37388
+ "negative": {
37389
+ "type": "number",
37390
+ "description": "Count of answers with negative feedback."
37391
+ },
37392
+ "unrated": {
37393
+ "type": "number",
37394
+ "description": "Count of answers without feedback."
37395
+ }
37396
+ },
37397
+ "required": [
37398
+ "positive",
37399
+ "negative",
37400
+ "unrated"
37401
+ ]
37402
+ },
37403
+ "SiteQuestionStatsAnswered": {
37404
+ "type": "object",
37405
+ "description": "Aggregated answered assessment for answers linked to a site question.",
37406
+ "properties": {
37407
+ "yes": {
37408
+ "type": "number",
37409
+ "description": "Count of answers assessed as fully answered."
37410
+ },
37411
+ "partially": {
37412
+ "type": "number",
37413
+ "description": "Count of answers assessed as partially answered."
37414
+ },
37415
+ "no": {
37416
+ "type": "number",
37417
+ "description": "Count of answers assessed as not answered."
37418
+ }
37419
+ },
37420
+ "required": [
37421
+ "yes",
37422
+ "partially",
37423
+ "no"
37424
+ ]
37425
+ },
37426
+ "SiteQuestionStatsRelevance": {
37427
+ "type": "object",
37428
+ "properties": {
37429
+ "relevant": {
37430
+ "type": "number"
37431
+ },
37432
+ "spam": {
37433
+ "type": "number"
37434
+ },
37435
+ "off-topic": {
37436
+ "type": "number"
37437
+ },
37438
+ "unclear": {
37439
+ "type": "number"
37440
+ }
37441
+ },
37442
+ "required": [
37443
+ "relevant",
37444
+ "spam",
37445
+ "off-topic",
37446
+ "unclear"
37447
+ ]
37448
+ },
37449
+ "SiteQuestionStatsTypes": {
37450
+ "type": "object",
37451
+ "properties": {
37452
+ "exploring": {
37453
+ "type": "number"
37454
+ },
37455
+ "how-to": {
37456
+ "type": "number"
37457
+ },
37458
+ "troubleshooting": {
37459
+ "type": "number"
37460
+ },
37461
+ "reference": {
37462
+ "type": "number"
37463
+ },
37464
+ "unknown": {
37465
+ "type": "number"
37466
+ }
37467
+ },
37468
+ "required": [
37469
+ "exploring",
37470
+ "how-to",
37471
+ "troubleshooting",
37472
+ "reference",
37473
+ "unknown"
37474
+ ]
37475
+ },
37476
+ "SiteQuestionStatsChannelTypes": {
37477
+ "type": "object",
37478
+ "description": "Count of answers by site channel type, including core channels.",
37479
+ "additionalProperties": {
37480
+ "type": "number"
37481
+ }
37482
+ },
37483
+ "SiteQuestionStatsChannels": {
37484
+ "type": "object",
37485
+ "description": "Count of answers by site channel ID.",
37486
+ "additionalProperties": {
37487
+ "type": "number"
37488
+ }
37489
+ },
37490
+ "SiteQuestionStats": {
37491
+ "type": "object",
37492
+ "description": "Aggregated stats for questions and linked answers.",
37493
+ "properties": {
37494
+ "total": {
37495
+ "type": "number",
37496
+ "description": "Total count of questions included in the aggregation."
37497
+ },
37498
+ "answers": {
37499
+ "type": "number",
37500
+ "description": "Total count of answers linked to the questions."
37501
+ },
37502
+ "feedback": {
37503
+ "$ref": "#/components/schemas/SiteQuestionStatsFeedback"
37504
+ },
37505
+ "answered": {
37506
+ "$ref": "#/components/schemas/SiteQuestionStatsAnswered"
37507
+ },
37508
+ "relevance": {
37509
+ "$ref": "#/components/schemas/SiteQuestionStatsRelevance"
37510
+ },
37511
+ "types": {
37512
+ "$ref": "#/components/schemas/SiteQuestionStatsTypes"
37513
+ },
37514
+ "channelTypes": {
37515
+ "$ref": "#/components/schemas/SiteQuestionStatsChannelTypes"
37516
+ },
37517
+ "channels": {
37518
+ "$ref": "#/components/schemas/SiteQuestionStatsChannels"
37519
+ },
37520
+ "weeklyPulse": {
37521
+ "type": "array",
37522
+ "minItems": 13,
37523
+ "maxItems": 13,
37524
+ "description": "Weekly count of related question answers for the past 3 months.",
37525
+ "items": {
37526
+ "type": "number"
37527
+ }
37528
+ }
37529
+ },
37530
+ "required": [
37531
+ "total",
37532
+ "answers",
37533
+ "feedback",
37534
+ "answered",
37535
+ "relevance",
37536
+ "types",
37537
+ "channelTypes",
37538
+ "channels",
37539
+ "weeklyPulse"
37540
+ ]
37541
+ },
37542
+ "SiteQuestion": {
37543
+ "type": "object",
37544
+ "properties": {
37545
+ "object": {
37546
+ "type": "string",
37547
+ "enum": [
37548
+ "site-question"
37549
+ ]
37550
+ },
37551
+ "id": {
37552
+ "type": "string",
37553
+ "description": "The ID of the site question."
37554
+ },
37555
+ "question": {
37556
+ "type": "string",
37557
+ "description": "Canonical text for the unique site question."
37558
+ },
37559
+ "type": {
37560
+ "$ref": "#/components/schemas/SiteQuestionType"
37561
+ },
37562
+ "createdAt": {
37563
+ "$ref": "#/components/schemas/Timestamp"
37564
+ },
37565
+ "stats": {
37566
+ "$ref": "#/components/schemas/SiteQuestionStats"
37567
+ },
37568
+ "urls": {
37569
+ "type": "object",
37570
+ "description": "URLs associated with the site question.",
37571
+ "properties": {
37572
+ "location": {
37573
+ "type": "string",
37574
+ "format": "uri",
37575
+ "description": "URL of the site question in the API."
37576
+ }
37577
+ },
37578
+ "required": [
37579
+ "location"
37580
+ ]
37581
+ }
37582
+ },
37583
+ "required": [
37584
+ "object",
37585
+ "id",
37586
+ "question",
37587
+ "type",
37588
+ "createdAt",
37589
+ "stats",
37590
+ "urls"
37591
+ ]
37592
+ },
36934
37593
  "ContextConnectionLabel": {
36935
37594
  "type": "string",
36936
37595
  "description": "Optional label for the connection",
@@ -36946,6 +37605,15 @@
36946
37605
  "failed"
36947
37606
  ]
36948
37607
  },
37608
+ "ContextSearchBoost": {
37609
+ "type": "string",
37610
+ "description": "Relative score adjustment applied to records from a connection when searching.",
37611
+ "enum": [
37612
+ "x0.8",
37613
+ "x1.0",
37614
+ "x1.2"
37615
+ ]
37616
+ },
36949
37617
  "ContextUsageSettings": {
36950
37618
  "type": "object",
36951
37619
  "properties": {
@@ -36956,11 +37624,15 @@
36956
37624
  "search": {
36957
37625
  "type": "boolean",
36958
37626
  "description": "Whether to expose records in search results"
37627
+ },
37628
+ "searchBoost": {
37629
+ "$ref": "#/components/schemas/ContextSearchBoost"
36959
37630
  }
36960
37631
  },
36961
37632
  "required": [
36962
37633
  "changeRequests",
36963
- "search"
37634
+ "search",
37635
+ "searchBoost"
36964
37636
  ]
36965
37637
  },
36966
37638
  "ContextConnectorSetup": {
@@ -37232,166 +37904,16 @@
37232
37904
  }
37233
37905
  ]
37234
37906
  },
37235
- "SiteQuestionStatsFeedback": {
37236
- "type": "object",
37237
- "description": "Aggregated feedback for answers linked to a site question.",
37238
- "properties": {
37239
- "positive": {
37240
- "type": "number",
37241
- "description": "Count of answers with positive feedback."
37242
- },
37243
- "negative": {
37244
- "type": "number",
37245
- "description": "Count of answers with negative feedback."
37246
- },
37247
- "unrated": {
37248
- "type": "number",
37249
- "description": "Count of answers without feedback."
37250
- }
37251
- },
37252
- "required": [
37253
- "positive",
37254
- "negative",
37255
- "unrated"
37256
- ]
37257
- },
37258
- "SiteQuestionStatsAnswered": {
37259
- "type": "object",
37260
- "description": "Aggregated answered assessment for answers linked to a site question.",
37261
- "properties": {
37262
- "yes": {
37263
- "type": "number",
37264
- "description": "Count of answers assessed as fully answered."
37265
- },
37266
- "partially": {
37267
- "type": "number",
37268
- "description": "Count of answers assessed as partially answered."
37269
- },
37270
- "no": {
37271
- "type": "number",
37272
- "description": "Count of answers assessed as not answered."
37273
- }
37274
- },
37275
- "required": [
37276
- "yes",
37277
- "partially",
37278
- "no"
37279
- ]
37280
- },
37281
- "SiteQuestionStatsRelevance": {
37282
- "type": "object",
37283
- "properties": {
37284
- "relevant": {
37285
- "type": "number"
37286
- },
37287
- "spam": {
37288
- "type": "number"
37289
- },
37290
- "off-topic": {
37291
- "type": "number"
37292
- },
37293
- "unclear": {
37294
- "type": "number"
37295
- }
37296
- },
37297
- "required": [
37298
- "relevant",
37299
- "spam",
37300
- "off-topic",
37301
- "unclear"
37302
- ]
37303
- },
37304
- "SiteQuestionStatsTypes": {
37305
- "type": "object",
37306
- "properties": {
37307
- "exploring": {
37308
- "type": "number"
37309
- },
37310
- "how-to": {
37311
- "type": "number"
37312
- },
37313
- "troubleshooting": {
37314
- "type": "number"
37315
- },
37316
- "reference": {
37317
- "type": "number"
37318
- },
37319
- "unknown": {
37320
- "type": "number"
37321
- }
37322
- },
37323
- "required": [
37324
- "exploring",
37325
- "how-to",
37326
- "troubleshooting",
37327
- "reference",
37328
- "unknown"
37329
- ]
37330
- },
37331
- "SiteQuestionStatsChannelTypes": {
37332
- "type": "object",
37333
- "description": "Count of answers by site channel type, including core channels.",
37334
- "additionalProperties": {
37335
- "type": "number"
37336
- }
37337
- },
37338
- "SiteQuestionStatsChannels": {
37339
- "type": "object",
37340
- "description": "Count of answers by site channel ID.",
37341
- "additionalProperties": {
37342
- "type": "number"
37343
- }
37344
- },
37345
- "SiteQuestionStats": {
37907
+ "SiteTopicUsageSettings": {
37346
37908
  "type": "object",
37347
- "description": "Aggregated stats for questions and linked answers.",
37348
37909
  "properties": {
37349
- "total": {
37350
- "type": "number",
37351
- "description": "Total count of questions included in the aggregation."
37352
- },
37353
- "answers": {
37354
- "type": "number",
37355
- "description": "Total count of answers linked to the questions."
37356
- },
37357
- "feedback": {
37358
- "$ref": "#/components/schemas/SiteQuestionStatsFeedback"
37359
- },
37360
- "answered": {
37361
- "$ref": "#/components/schemas/SiteQuestionStatsAnswered"
37362
- },
37363
- "relevance": {
37364
- "$ref": "#/components/schemas/SiteQuestionStatsRelevance"
37365
- },
37366
- "types": {
37367
- "$ref": "#/components/schemas/SiteQuestionStatsTypes"
37368
- },
37369
- "channelTypes": {
37370
- "$ref": "#/components/schemas/SiteQuestionStatsChannelTypes"
37371
- },
37372
- "channels": {
37373
- "$ref": "#/components/schemas/SiteQuestionStatsChannels"
37374
- },
37375
- "weeklyPulse": {
37376
- "type": "array",
37377
- "minItems": 13,
37378
- "maxItems": 13,
37379
- "description": "Weekly count of related question answers for the past 3 months.",
37380
- "items": {
37381
- "type": "number"
37382
- }
37910
+ "changeRequests": {
37911
+ "type": "boolean",
37912
+ "description": "Whether to use context to propose change requests"
37383
37913
  }
37384
37914
  },
37385
37915
  "required": [
37386
- "total",
37387
- "answers",
37388
- "feedback",
37389
- "answered",
37390
- "relevance",
37391
- "types",
37392
- "channelTypes",
37393
- "channels",
37394
- "weeklyPulse"
37916
+ "changeRequests"
37395
37917
  ]
37396
37918
  },
37397
37919
  "SiteTopic": {
@@ -37442,7 +37964,7 @@
37442
37964
  "$ref": "#/components/schemas/JSONDocument"
37443
37965
  },
37444
37966
  "usageSettings": {
37445
- "$ref": "#/components/schemas/ContextUsageSettings"
37967
+ "$ref": "#/components/schemas/SiteTopicUsageSettings"
37446
37968
  },
37447
37969
  "pages": {
37448
37970
  "type": "number",
@@ -37485,17 +38007,6 @@
37485
38007
  "urls"
37486
38008
  ]
37487
38009
  },
37488
- "SiteQuestionType": {
37489
- "type": "string",
37490
- "description": "Type classification of the user question.",
37491
- "enum": [
37492
- "exploring",
37493
- "how-to",
37494
- "troubleshooting",
37495
- "reference",
37496
- "unknown"
37497
- ]
37498
- },
37499
38010
  "SiteQuestionAnswerResolution": {
37500
38011
  "type": "string",
37501
38012
  "description": "Whether the response answered the question.",
@@ -37505,57 +38016,6 @@
37505
38016
  "yes"
37506
38017
  ]
37507
38018
  },
37508
- "SiteQuestion": {
37509
- "type": "object",
37510
- "properties": {
37511
- "object": {
37512
- "type": "string",
37513
- "enum": [
37514
- "site-question"
37515
- ]
37516
- },
37517
- "id": {
37518
- "type": "string",
37519
- "description": "The ID of the site question."
37520
- },
37521
- "question": {
37522
- "type": "string",
37523
- "description": "Canonical text for the unique site question."
37524
- },
37525
- "type": {
37526
- "$ref": "#/components/schemas/SiteQuestionType"
37527
- },
37528
- "createdAt": {
37529
- "$ref": "#/components/schemas/Timestamp"
37530
- },
37531
- "stats": {
37532
- "$ref": "#/components/schemas/SiteQuestionStats"
37533
- },
37534
- "urls": {
37535
- "type": "object",
37536
- "description": "URLs associated with the site question.",
37537
- "properties": {
37538
- "location": {
37539
- "type": "string",
37540
- "format": "uri",
37541
- "description": "URL of the site question in the API."
37542
- }
37543
- },
37544
- "required": [
37545
- "location"
37546
- ]
37547
- }
37548
- },
37549
- "required": [
37550
- "object",
37551
- "id",
37552
- "question",
37553
- "type",
37554
- "createdAt",
37555
- "stats",
37556
- "urls"
37557
- ]
37558
- },
37559
38019
  "SiteQuestionAnswerRelevance": {
37560
38020
  "type": "string",
37561
38021
  "description": "Relevance classification of the user question.",
@@ -44178,6 +44638,11 @@
44178
44638
  "space": {
44179
44639
  "type": "string",
44180
44640
  "description": "ID of the space to be used when using this token for rendering published content."
44641
+ },
44642
+ "draft": {
44643
+ "type": "boolean",
44644
+ "default": false,
44645
+ "description": "Whether to include draft data when using this token for rendering content. If false, only live data will be included when rendering content with this token."
44181
44646
  }
44182
44647
  },
44183
44648
  "required": [