@gitbook/api 0.170.0 → 0.172.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,SiteIssue,SiteIssuePage\" 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,SiteFinding,SiteFindingPage\" grouped=\"false\" %}\n The Site Context objects\n{% endopenapi-schemas %}\n"
198
198
  },
199
199
  {
200
200
  "name": "site-questions",
@@ -341,7 +341,7 @@
341
341
  "x-page-icon": "puzzle-piece",
342
342
  "x-page-title": "Integrations",
343
343
  "x-page-description": "Install and handle third-party integrations for extended GitBook functionality.",
344
- "description": "Expand the capabilities of GitBook by connecting it with various external platforms—CRM, issue trackers, or CI/CD pipelines—through standardized integration endpoints.\n"
344
+ "description": "Expand the capabilities of GitBook by connecting it with various external platforms—CRM, finding trackers, or CI/CD pipelines—through standardized integration endpoints.\n"
345
345
  },
346
346
  {
347
347
  "name": "urls",
@@ -13221,6 +13221,7 @@
13221
13221
  "/orgs/{organizationId}/sites/{siteId}/section-groups/{siteSectionGroupId}/sections": {
13222
13222
  "post": {
13223
13223
  "operationId": "addSectionToGroup",
13224
+ "deprecated": true,
13224
13225
  "summary": "Add a section to a section group",
13225
13226
  "tags": [
13226
13227
  "site-section-groups"
@@ -13285,6 +13286,7 @@
13285
13286
  "/orgs/{organizationId}/sites/{siteId}/section-groups/{siteSectionGroupId}/sections/{siteSectionId}": {
13286
13287
  "delete": {
13287
13288
  "operationId": "removeSectionFromGroup",
13289
+ "deprecated": true,
13288
13290
  "summary": "Remove a section from a section group",
13289
13291
  "tags": [
13290
13292
  "site-section-groups"
@@ -13368,6 +13370,10 @@
13368
13370
  "type": "null"
13369
13371
  }
13370
13372
  ]
13373
+ },
13374
+ "siteSectionGroupId": {
13375
+ "type": "string",
13376
+ "description": "ID of the section group to create the section in"
13371
13377
  }
13372
13378
  },
13373
13379
  "required": [
@@ -13534,6 +13540,17 @@
13534
13540
  },
13535
13541
  "localizedDescription": {
13536
13542
  "$ref": "#/components/schemas/LocalizedSectionDescription"
13543
+ },
13544
+ "siteSectionGroupId": {
13545
+ "description": "ID of the section group to move the section into. Set to null to move the section to the root of the site.",
13546
+ "oneOf": [
13547
+ {
13548
+ "type": "string"
13549
+ },
13550
+ {
13551
+ "type": "null"
13552
+ }
13553
+ ]
13537
13554
  }
13538
13555
  }
13539
13556
  }
@@ -14038,10 +14055,172 @@
14038
14055
  }
14039
14056
  }
14040
14057
  },
14041
- "/orgs/{organizationId}/sites/{siteId}/issues": {
14058
+ "/orgs/{organizationId}/sites/{siteId}/scans": {
14059
+ "get": {
14060
+ "operationId": "listSiteScans",
14061
+ "summary": "List all site scans",
14062
+ "tags": [
14063
+ "site-context"
14064
+ ],
14065
+ "security": [
14066
+ {
14067
+ "user": []
14068
+ }
14069
+ ],
14070
+ "parameters": [
14071
+ {
14072
+ "$ref": "#/components/parameters/organizationId"
14073
+ },
14074
+ {
14075
+ "$ref": "#/components/parameters/siteId"
14076
+ },
14077
+ {
14078
+ "$ref": "#/components/parameters/listPage"
14079
+ },
14080
+ {
14081
+ "$ref": "#/components/parameters/listLimit"
14082
+ },
14083
+ {
14084
+ "name": "topic",
14085
+ "in": "query",
14086
+ "description": "Filter scans by associated site topic ID.",
14087
+ "schema": {
14088
+ "type": "string"
14089
+ }
14090
+ },
14091
+ {
14092
+ "name": "status",
14093
+ "in": "query",
14094
+ "description": "Filter scans by status.",
14095
+ "schema": {
14096
+ "$ref": "#/components/schemas/SiteScanStatus"
14097
+ }
14098
+ }
14099
+ ],
14100
+ "responses": {
14101
+ "200": {
14102
+ "description": "OK",
14103
+ "content": {
14104
+ "application/json": {
14105
+ "schema": {
14106
+ "allOf": [
14107
+ {
14108
+ "$ref": "#/components/schemas/List"
14109
+ },
14110
+ {
14111
+ "type": "object",
14112
+ "required": [
14113
+ "items"
14114
+ ],
14115
+ "properties": {
14116
+ "items": {
14117
+ "type": "array",
14118
+ "items": {
14119
+ "$ref": "#/components/schemas/SiteScan"
14120
+ }
14121
+ }
14122
+ }
14123
+ }
14124
+ ]
14125
+ }
14126
+ }
14127
+ }
14128
+ }
14129
+ }
14130
+ },
14131
+ "post": {
14132
+ "operationId": "createSiteScan",
14133
+ "summary": "Enqueue a new site scan",
14134
+ "tags": [
14135
+ "site-context"
14136
+ ],
14137
+ "security": [
14138
+ {
14139
+ "user": []
14140
+ }
14141
+ ],
14142
+ "parameters": [
14143
+ {
14144
+ "$ref": "#/components/parameters/organizationId"
14145
+ },
14146
+ {
14147
+ "$ref": "#/components/parameters/siteId"
14148
+ }
14149
+ ],
14150
+ "requestBody": {
14151
+ "required": true,
14152
+ "content": {
14153
+ "application/json": {
14154
+ "schema": {
14155
+ "type": "object",
14156
+ "required": [
14157
+ "topic"
14158
+ ],
14159
+ "properties": {
14160
+ "topic": {
14161
+ "type": "string",
14162
+ "description": "The site topic ID to scan."
14163
+ }
14164
+ }
14165
+ }
14166
+ }
14167
+ }
14168
+ },
14169
+ "responses": {
14170
+ "202": {
14171
+ "description": "Site scan has been enqueued",
14172
+ "content": {
14173
+ "application/json": {
14174
+ "schema": {
14175
+ "$ref": "#/components/schemas/SiteScan"
14176
+ }
14177
+ }
14178
+ }
14179
+ }
14180
+ }
14181
+ }
14182
+ },
14183
+ "/orgs/{organizationId}/sites/{siteId}/scans/{siteScanId}": {
14042
14184
  "get": {
14043
- "operationId": "listSiteIssues",
14044
- "summary": "List all site context issues",
14185
+ "operationId": "getSiteScanById",
14186
+ "summary": "Get a site scan by ID",
14187
+ "tags": [
14188
+ "site-context"
14189
+ ],
14190
+ "security": [
14191
+ {
14192
+ "user": []
14193
+ }
14194
+ ],
14195
+ "parameters": [
14196
+ {
14197
+ "$ref": "#/components/parameters/organizationId"
14198
+ },
14199
+ {
14200
+ "$ref": "#/components/parameters/siteId"
14201
+ },
14202
+ {
14203
+ "$ref": "#/components/parameters/siteScanId"
14204
+ }
14205
+ ],
14206
+ "responses": {
14207
+ "200": {
14208
+ "description": "OK",
14209
+ "content": {
14210
+ "application/json": {
14211
+ "schema": {
14212
+ "$ref": "#/components/schemas/SiteScan"
14213
+ }
14214
+ }
14215
+ }
14216
+ }
14217
+ }
14218
+ }
14219
+ },
14220
+ "/orgs/{organizationId}/sites/{siteId}/findings": {
14221
+ "get": {
14222
+ "operationId": "listSiteFindings",
14223
+ "summary": "List all site context findings",
14045
14224
  "tags": [
14046
14225
  "site-context"
14047
14226
  ],
@@ -14066,7 +14245,7 @@
14066
14245
  {
14067
14246
  "name": "topic",
14068
14247
  "in": "query",
14069
- "description": "Filter issues by associated site topic ID.",
14248
+ "description": "Filter findings by associated site topic ID.",
14070
14249
  "schema": {
14071
14250
  "type": "string"
14072
14251
  }
@@ -14074,25 +14253,25 @@
14074
14253
  {
14075
14254
  "name": "status",
14076
14255
  "in": "query",
14077
- "description": "Filter issues by status.",
14256
+ "description": "Filter findings by status.",
14078
14257
  "schema": {
14079
- "$ref": "#/components/schemas/SiteIssueStatus"
14258
+ "$ref": "#/components/schemas/SiteFindingStatus"
14080
14259
  }
14081
14260
  },
14082
14261
  {
14083
14262
  "name": "type",
14084
14263
  "in": "query",
14085
- "description": "Filter issues by type.",
14264
+ "description": "Filter findings by type.",
14086
14265
  "schema": {
14087
- "$ref": "#/components/schemas/SiteIssueType"
14266
+ "$ref": "#/components/schemas/SiteFindingType"
14088
14267
  }
14089
14268
  },
14090
14269
  {
14091
- "name": "priority",
14270
+ "name": "severity",
14092
14271
  "in": "query",
14093
- "description": "Filter issues by estimated priority.",
14272
+ "description": "Filter findings by estimated severity.",
14094
14273
  "schema": {
14095
- "$ref": "#/components/schemas/SiteIssuePriority"
14274
+ "$ref": "#/components/schemas/SiteFindingSeverity"
14096
14275
  }
14097
14276
  }
14098
14277
  ],
@@ -14115,7 +14294,7 @@
14115
14294
  "items": {
14116
14295
  "type": "array",
14117
14296
  "items": {
14118
- "$ref": "#/components/schemas/SiteIssue"
14297
+ "$ref": "#/components/schemas/SiteFinding"
14119
14298
  }
14120
14299
  }
14121
14300
  }
@@ -14128,10 +14307,10 @@
14128
14307
  }
14129
14308
  }
14130
14309
  },
14131
- "/orgs/{organizationId}/sites/{siteId}/issues/{siteIssueId}": {
14310
+ "/orgs/{organizationId}/sites/{siteId}/findings/{siteFindingId}": {
14132
14311
  "get": {
14133
- "operationId": "getSiteIssueById",
14134
- "summary": "Get a site issue by ID",
14312
+ "operationId": "getSiteFindingById",
14313
+ "summary": "Get a site finding by ID",
14135
14314
  "tags": [
14136
14315
  "site-context"
14137
14316
  ],
@@ -14148,7 +14327,7 @@
14148
14327
  "$ref": "#/components/parameters/siteId"
14149
14328
  },
14150
14329
  {
14151
- "$ref": "#/components/parameters/siteIssueId"
14330
+ "$ref": "#/components/parameters/siteFindingId"
14152
14331
  }
14153
14332
  ],
14154
14333
  "responses": {
@@ -14157,7 +14336,7 @@
14157
14336
  "content": {
14158
14337
  "application/json": {
14159
14338
  "schema": {
14160
- "$ref": "#/components/schemas/SiteIssue"
14339
+ "$ref": "#/components/schemas/SiteFinding"
14161
14340
  }
14162
14341
  }
14163
14342
  }
@@ -14165,8 +14344,8 @@
14165
14344
  }
14166
14345
  },
14167
14346
  "patch": {
14168
- "operationId": "updateSiteIssueById",
14169
- "summary": "Update a site issue",
14347
+ "operationId": "updateSiteFindingById",
14348
+ "summary": "Update a site finding",
14170
14349
  "tags": [
14171
14350
  "site-context"
14172
14351
  ],
@@ -14183,7 +14362,7 @@
14183
14362
  "$ref": "#/components/parameters/siteId"
14184
14363
  },
14185
14364
  {
14186
- "$ref": "#/components/parameters/siteIssueId"
14365
+ "$ref": "#/components/parameters/siteFindingId"
14187
14366
  }
14188
14367
  ],
14189
14368
  "requestBody": {
@@ -14214,7 +14393,7 @@
14214
14393
  "content": {
14215
14394
  "application/json": {
14216
14395
  "schema": {
14217
- "$ref": "#/components/schemas/SiteIssue"
14396
+ "$ref": "#/components/schemas/SiteFinding"
14218
14397
  }
14219
14398
  }
14220
14399
  }
@@ -14222,10 +14401,10 @@
14222
14401
  }
14223
14402
  }
14224
14403
  },
14225
- "/orgs/{organizationId}/sites/{siteId}/issues/{siteIssueId}/change-requests": {
14404
+ "/orgs/{organizationId}/sites/{siteId}/findings/{siteFindingId}/change-requests": {
14226
14405
  "get": {
14227
- "operationId": "listChangeRequestsForSiteIssue",
14228
- "summary": "List change requests linked to a site issue",
14406
+ "operationId": "listChangeRequestsForSiteFinding",
14407
+ "summary": "List change requests linked to a site finding",
14229
14408
  "tags": [
14230
14409
  "site-context"
14231
14410
  ],
@@ -14248,12 +14427,12 @@
14248
14427
  "$ref": "#/components/parameters/siteId"
14249
14428
  },
14250
14429
  {
14251
- "$ref": "#/components/parameters/siteIssueId"
14430
+ "$ref": "#/components/parameters/siteFindingId"
14252
14431
  }
14253
14432
  ],
14254
14433
  "responses": {
14255
14434
  "200": {
14256
- "description": "List of change requests linked to the site issue",
14435
+ "description": "List of change requests linked to the site finding",
14257
14436
  "content": {
14258
14437
  "application/json": {
14259
14438
  "schema": {
@@ -14283,8 +14462,8 @@
14283
14462
  }
14284
14463
  },
14285
14464
  "post": {
14286
- "operationId": "triggerChangeRequestsForSiteIssue",
14287
- "summary": "Process a site issue into change requests",
14465
+ "operationId": "triggerChangeRequestsForSiteFinding",
14466
+ "summary": "Process a site finding into change requests",
14288
14467
  "tags": [
14289
14468
  "site-context"
14290
14469
  ],
@@ -14301,20 +14480,20 @@
14301
14480
  "$ref": "#/components/parameters/siteId"
14302
14481
  },
14303
14482
  {
14304
- "$ref": "#/components/parameters/siteIssueId"
14483
+ "$ref": "#/components/parameters/siteFindingId"
14305
14484
  }
14306
14485
  ],
14307
14486
  "responses": {
14308
14487
  "202": {
14309
- "description": "Site issue processing has been started"
14488
+ "description": "Site finding processing has been started"
14310
14489
  }
14311
14490
  }
14312
14491
  }
14313
14492
  },
14314
- "/orgs/{organizationId}/sites/{siteId}/issues/{siteIssueId}/pages": {
14493
+ "/orgs/{organizationId}/sites/{siteId}/findings/{siteFindingId}/pages": {
14315
14494
  "get": {
14316
- "operationId": "listPagesForSiteIssue",
14317
- "summary": "List pages linked to a site issue",
14495
+ "operationId": "listPagesForSiteFinding",
14496
+ "summary": "List pages linked to a site finding",
14318
14497
  "tags": [
14319
14498
  "site-context"
14320
14499
  ],
@@ -14337,12 +14516,12 @@
14337
14516
  "$ref": "#/components/parameters/siteId"
14338
14517
  },
14339
14518
  {
14340
- "$ref": "#/components/parameters/siteIssueId"
14519
+ "$ref": "#/components/parameters/siteFindingId"
14341
14520
  }
14342
14521
  ],
14343
14522
  "responses": {
14344
14523
  "200": {
14345
- "description": "List of pages linked to the site issue",
14524
+ "description": "List of pages linked to the site finding",
14346
14525
  "content": {
14347
14526
  "application/json": {
14348
14527
  "schema": {
@@ -14359,7 +14538,7 @@
14359
14538
  "items": {
14360
14539
  "type": "array",
14361
14540
  "items": {
14362
- "$ref": "#/components/schemas/SiteIssuePage"
14541
+ "$ref": "#/components/schemas/SiteFindingPage"
14363
14542
  }
14364
14543
  }
14365
14544
  }
@@ -14372,10 +14551,10 @@
14372
14551
  }
14373
14552
  }
14374
14553
  },
14375
- "/orgs/{organizationId}/sites/{siteId}/issues/{siteIssueId}/questions": {
14554
+ "/orgs/{organizationId}/sites/{siteId}/findings/{siteFindingId}/questions": {
14376
14555
  "get": {
14377
- "operationId": "listQuestionsForSiteIssue",
14378
- "summary": "List questions linked to a site issue",
14556
+ "operationId": "listQuestionsForSiteFinding",
14557
+ "summary": "List questions linked to a site finding",
14379
14558
  "tags": [
14380
14559
  "site-context"
14381
14560
  ],
@@ -14398,12 +14577,12 @@
14398
14577
  "$ref": "#/components/parameters/siteId"
14399
14578
  },
14400
14579
  {
14401
- "$ref": "#/components/parameters/siteIssueId"
14580
+ "$ref": "#/components/parameters/siteFindingId"
14402
14581
  }
14403
14582
  ],
14404
14583
  "responses": {
14405
14584
  "200": {
14406
- "description": "List of questions linked to the site issue",
14585
+ "description": "List of questions linked to the site finding",
14407
14586
  "content": {
14408
14587
  "application/json": {
14409
14588
  "schema": {
@@ -14433,10 +14612,10 @@
14433
14612
  }
14434
14613
  }
14435
14614
  },
14436
- "/orgs/{organizationId}/sites/{siteId}/issues/{siteIssueId}/records": {
14615
+ "/orgs/{organizationId}/sites/{siteId}/findings/{siteFindingId}/records": {
14437
14616
  "get": {
14438
- "operationId": "listRecordsForSiteIssue",
14439
- "summary": "List records linked to a site issue",
14617
+ "operationId": "listRecordsForSiteFinding",
14618
+ "summary": "List records linked to a site finding",
14440
14619
  "tags": [
14441
14620
  "site-context"
14442
14621
  ],
@@ -14459,12 +14638,12 @@
14459
14638
  "$ref": "#/components/parameters/siteId"
14460
14639
  },
14461
14640
  {
14462
- "$ref": "#/components/parameters/siteIssueId"
14641
+ "$ref": "#/components/parameters/siteFindingId"
14463
14642
  }
14464
14643
  ],
14465
14644
  "responses": {
14466
14645
  "200": {
14467
- "description": "List of records linked to the site issue",
14646
+ "description": "List of records linked to the site finding",
14468
14647
  "content": {
14469
14648
  "application/json": {
14470
14649
  "schema": {
@@ -14919,10 +15098,10 @@
14919
15098
  }
14920
15099
  }
14921
15100
  },
14922
- "/orgs/{organizationId}/sites/{siteId}/topics/{siteTopicId}/issues": {
15101
+ "/orgs/{organizationId}/sites/{siteId}/topics/{siteTopicId}/findings": {
14923
15102
  "delete": {
14924
- "operationId": "deleteSiteTopicIssues",
14925
- "summary": "Delete all issues for a topic",
15103
+ "operationId": "deleteSiteTopicFindings",
15104
+ "summary": "Delete all findings for a topic",
14926
15105
  "tags": [
14927
15106
  "site-context"
14928
15107
  ],
@@ -14944,10 +15123,10 @@
14944
15123
  ],
14945
15124
  "responses": {
14946
15125
  "204": {
14947
- "description": "Topic had no issues or did not exist"
15126
+ "description": "Topic had no findings or did not exist"
14948
15127
  },
14949
15128
  "205": {
14950
- "description": "Topic issues deleted"
15129
+ "description": "Topic findings deleted"
14951
15130
  }
14952
15131
  }
14953
15132
  }
@@ -19210,11 +19389,20 @@
19210
19389
  "type": "string"
19211
19390
  }
19212
19391
  },
19213
- "siteIssueId": {
19214
- "name": "siteIssueId",
19392
+ "siteScanId": {
19393
+ "name": "siteScanId",
19215
19394
  "in": "path",
19216
19395
  "required": true,
19217
- "description": "The unique id of the site issue",
19396
+ "description": "The unique id of the site scan",
19397
+ "schema": {
19398
+ "type": "string"
19399
+ }
19400
+ },
19401
+ "siteFindingId": {
19402
+ "name": "siteFindingId",
19403
+ "in": "path",
19404
+ "required": true,
19405
+ "description": "The unique id of the site finding",
19218
19406
  "schema": {
19219
19407
  "type": "string"
19220
19408
  }
@@ -33837,6 +34025,15 @@
33837
34025
  "minLength": 1,
33838
34026
  "maxLength": 500
33839
34027
  },
34028
+ "BillingMeter": {
34029
+ "type": "string",
34030
+ "description": "Identifier of a billing meter",
34031
+ "enum": [
34032
+ "ai_responses",
34033
+ "ai_agent_responses",
34034
+ "translation_words"
34035
+ ]
34036
+ },
33840
34037
  "UpgradeOrganizationBilling": {
33841
34038
  "type": "object",
33842
34039
  "properties": {
@@ -33857,6 +34054,13 @@
33857
34054
  "$ref": "#/components/schemas/BillingCoupon",
33858
34055
  "description": "Coupon or promotion code to apply to the subscription"
33859
34056
  },
34057
+ "addons": {
34058
+ "type": "array",
34059
+ "description": "Optional usage addons to apply when upgrading: - if set, apply provided billable addons (non-billable meters are ignored) - if omitted, keep current subscription addons (or billing addons for new subs) - if omitted during interval switch, keep addon selection and switch addon price interval - if empty, or all provided meters are ignored, remove all existing billable addons\n",
34060
+ "items": {
34061
+ "$ref": "#/components/schemas/BillingMeter"
34062
+ }
34063
+ },
33860
34064
  "mode": {
33861
34065
  "type": "string",
33862
34066
  "description": "Mode to use for the upgrade (default value is `commit`): - `commit`: a checkout session is returned or the upgrade is applied directly - `preview`: a preview invoice is always returned\n",
@@ -33875,11 +34079,15 @@
33875
34079
  "type": "object",
33876
34080
  "properties": {
33877
34081
  "amount": {
33878
- "description": "Amount of the invoice",
34082
+ "description": "Final total owed for this invoice after discounts and credits.",
34083
+ "type": "number"
34084
+ },
34085
+ "subtotal": {
34086
+ "description": "Sum of invoice line items before discounts and credits are applied.",
33879
34087
  "type": "number"
33880
34088
  },
33881
34089
  "amountDueToday": {
33882
- "description": "Amount that will be immediately charged.",
34090
+ "description": "Remaining unpaid amount on this invoice, what would be charged now.",
33883
34091
  "type": "number"
33884
34092
  },
33885
34093
  "customerBalance": {
@@ -33940,6 +34148,7 @@
33940
34148
  }
33941
34149
  },
33942
34150
  "required": [
34151
+ "subtotal",
33943
34152
  "amount",
33944
34153
  "amountDueToday",
33945
34154
  "customerBalance",
@@ -34143,15 +34352,6 @@
34143
34352
  "switch_interval"
34144
34353
  ]
34145
34354
  },
34146
- "BillingMeter": {
34147
- "type": "string",
34148
- "description": "Identifier of a billing meter",
34149
- "enum": [
34150
- "ai_responses",
34151
- "ai_agent_responses",
34152
- "translation_words"
34153
- ]
34154
- },
34155
34355
  "BillingMeterUsage": {
34156
34356
  "type": "object",
34157
34357
  "description": "Usage metrics for a billing meter",
@@ -36422,6 +36622,10 @@
36422
36622
  "description": "Title to use for the published site. If not defined, it'll fallback to the default content title.",
36423
36623
  "$ref": "#/components/schemas/SiteTitle"
36424
36624
  },
36625
+ "localizedTitle": {
36626
+ "description": "Localized titles for the site, keyed by locale. If not defined, the localized title will not be changed.",
36627
+ "$ref": "#/components/schemas/LocalizedTitle"
36628
+ },
36425
36629
  "styling": {
36426
36630
  "type": "object",
36427
36631
  "properties": {
@@ -37381,18 +37585,109 @@
37381
37585
  "type"
37382
37586
  ]
37383
37587
  },
37384
- "SiteIssueStatus": {
37588
+ "SiteScanStatus": {
37385
37589
  "type": "string",
37386
- "description": "Status of a site issue.",
37590
+ "description": "Status of a persisted site scan.",
37591
+ "enum": [
37592
+ "pending",
37593
+ "running",
37594
+ "done",
37595
+ "failed"
37596
+ ]
37597
+ },
37598
+ "SiteScanFindings": {
37599
+ "type": "object",
37600
+ "description": "Number of findings created by the scan, grouped by severity.",
37601
+ "properties": {
37602
+ "low": {
37603
+ "type": "number"
37604
+ },
37605
+ "medium": {
37606
+ "type": "number"
37607
+ },
37608
+ "high": {
37609
+ "type": "number"
37610
+ }
37611
+ },
37612
+ "required": [
37613
+ "low",
37614
+ "medium",
37615
+ "high"
37616
+ ]
37617
+ },
37618
+ "SiteScan": {
37619
+ "type": "object",
37620
+ "properties": {
37621
+ "object": {
37622
+ "type": "string",
37623
+ "enum": [
37624
+ "site-scan"
37625
+ ]
37626
+ },
37627
+ "id": {
37628
+ "type": "string",
37629
+ "description": "The ID of the scan"
37630
+ },
37631
+ "status": {
37632
+ "$ref": "#/components/schemas/SiteScanStatus"
37633
+ },
37634
+ "topic": {
37635
+ "type": "string",
37636
+ "description": "The site topic ID associated with the scan"
37637
+ },
37638
+ "createdAt": {
37639
+ "$ref": "#/components/schemas/Timestamp"
37640
+ },
37641
+ "startedAt": {
37642
+ "$ref": "#/components/schemas/Timestamp"
37643
+ },
37644
+ "finishedAt": {
37645
+ "$ref": "#/components/schemas/Timestamp"
37646
+ },
37647
+ "findings": {
37648
+ "$ref": "#/components/schemas/SiteScanFindings"
37649
+ },
37650
+ "failureMessage": {
37651
+ "type": "string",
37652
+ "description": "Failure message for failed scans"
37653
+ },
37654
+ "urls": {
37655
+ "type": "object",
37656
+ "description": "URLs associated with the scan",
37657
+ "properties": {
37658
+ "location": {
37659
+ "type": "string",
37660
+ "description": "URL of the scan endpoint in the API",
37661
+ "format": "uri"
37662
+ }
37663
+ },
37664
+ "required": [
37665
+ "location"
37666
+ ]
37667
+ }
37668
+ },
37669
+ "required": [
37670
+ "object",
37671
+ "id",
37672
+ "status",
37673
+ "topic",
37674
+ "createdAt",
37675
+ "findings",
37676
+ "urls"
37677
+ ]
37678
+ },
37679
+ "SiteFindingStatus": {
37680
+ "type": "string",
37681
+ "description": "Status of a site finding.",
37387
37682
  "enum": [
37388
37683
  "open",
37389
37684
  "done",
37390
37685
  "canceled"
37391
37686
  ]
37392
37687
  },
37393
- "SiteIssueType": {
37688
+ "SiteFindingType": {
37394
37689
  "type": "string",
37395
- "description": "Classification of a site issue:\n - Outdated content: The content is no longer up to date with external context and may be misleading or incorrect.\n - Incoherent content: The content contains information that is inconsistent or contradictory.\n - Content gap: The content is missing important information that should be present to answer user questions effectively.\n - Other: Any other type of issue not covered by the above categories.",
37690
+ "description": "Classification of a site finding:\n - Outdated content: The content is no longer up to date with external context and may be misleading or incorrect.\n - Incoherent content: The content contains information that is inconsistent or contradictory.\n - Content gap: The content is missing important information that should be present to answer user questions effectively.\n - Other: Any other type of finding not covered by the above categories.",
37396
37691
  "enum": [
37397
37692
  "content-outdated",
37398
37693
  "incoherence",
@@ -37400,71 +37695,75 @@
37400
37695
  "other"
37401
37696
  ]
37402
37697
  },
37403
- "SiteIssuePriority": {
37698
+ "SiteFindingSeverity": {
37404
37699
  "type": "string",
37405
- "description": "Estimated end-user priority of a site issue.",
37700
+ "description": "Estimated end-user severity of a site finding.",
37406
37701
  "enum": [
37407
37702
  "low",
37408
37703
  "medium",
37409
37704
  "high"
37410
37705
  ]
37411
37706
  },
37412
- "SiteIssueTitle": {
37707
+ "SiteFindingTitle": {
37413
37708
  "type": "string",
37414
- "description": "Short issue title",
37709
+ "description": "Short finding title",
37415
37710
  "maxLength": 256
37416
37711
  },
37417
- "SiteIssue": {
37712
+ "SiteFinding": {
37418
37713
  "type": "object",
37419
37714
  "properties": {
37420
37715
  "object": {
37421
37716
  "type": "string",
37422
37717
  "enum": [
37423
- "site-issue"
37718
+ "site-finding"
37424
37719
  ]
37425
37720
  },
37426
37721
  "id": {
37427
37722
  "type": "string",
37428
- "description": "The ID of the issue"
37723
+ "description": "The ID of the finding"
37724
+ },
37725
+ "scan": {
37726
+ "type": "string",
37727
+ "description": "The site scan ID associated with the finding"
37429
37728
  },
37430
37729
  "topic": {
37431
37730
  "type": "string",
37432
- "description": "The site topic ID associated with the issue"
37731
+ "description": "The site topic ID associated with the finding"
37433
37732
  },
37434
37733
  "title": {
37435
- "$ref": "#/components/schemas/SiteIssueTitle"
37734
+ "$ref": "#/components/schemas/SiteFindingTitle"
37436
37735
  },
37437
37736
  "changeRequests": {
37438
37737
  "type": "number",
37439
- "description": "Number of change requests linked to the issue"
37738
+ "description": "Number of change requests linked to the finding"
37440
37739
  },
37441
37740
  "pages": {
37442
37741
  "type": "number",
37443
- "description": "Number of pages linked to the issue"
37742
+ "description": "Number of pages linked to the finding"
37444
37743
  },
37445
37744
  "records": {
37446
37745
  "type": "number",
37447
- "description": "Number of records linked to the issue"
37746
+ "description": "Number of records linked to the finding"
37448
37747
  },
37449
37748
  "questions": {
37450
37749
  "type": "number",
37451
- "description": "Number of questions linked to the issue"
37750
+ "description": "Number of questions linked to the finding"
37452
37751
  },
37453
37752
  "status": {
37454
- "$ref": "#/components/schemas/SiteIssueStatus"
37753
+ "$ref": "#/components/schemas/SiteFindingStatus"
37455
37754
  },
37456
37755
  "type": {
37457
- "$ref": "#/components/schemas/SiteIssueType"
37756
+ "$ref": "#/components/schemas/SiteFindingType"
37458
37757
  },
37459
- "priority": {
37460
- "$ref": "#/components/schemas/SiteIssuePriority"
37758
+ "severity": {
37759
+ "$ref": "#/components/schemas/SiteFindingSeverity"
37461
37760
  },
37462
37761
  "description": {
37463
37762
  "$ref": "#/components/schemas/JSONDocument"
37464
37763
  },
37465
37764
  "autoFixable": {
37466
37765
  "type": "boolean",
37467
- "description": "Whether an AI agent should be able to fix this issue directly"
37766
+ "description": "Whether an AI agent should be able to fix this finding directly"
37468
37767
  },
37469
37768
  "createdAt": {
37470
37769
  "$ref": "#/components/schemas/Timestamp"
@@ -37474,11 +37773,11 @@
37474
37773
  },
37475
37774
  "urls": {
37476
37775
  "type": "object",
37477
- "description": "URLs associated with the issue",
37776
+ "description": "URLs associated with the finding",
37478
37777
  "properties": {
37479
37778
  "location": {
37480
37779
  "type": "string",
37481
- "description": "URL of the issue list endpoint in the API",
37780
+ "description": "URL of the finding list endpoint in the API",
37482
37781
  "format": "uri"
37483
37782
  }
37484
37783
  },
@@ -37490,6 +37789,7 @@
37490
37789
  "required": [
37491
37790
  "object",
37492
37791
  "id",
37792
+ "scan",
37493
37793
  "topic",
37494
37794
  "title",
37495
37795
  "changeRequests",
@@ -37498,7 +37798,7 @@
37498
37798
  "questions",
37499
37799
  "status",
37500
37800
  "type",
37501
- "priority",
37801
+ "severity",
37502
37802
  "description",
37503
37803
  "autoFixable",
37504
37804
  "createdAt",
@@ -37506,13 +37806,13 @@
37506
37806
  "urls"
37507
37807
  ]
37508
37808
  },
37509
- "SiteIssuePage": {
37809
+ "SiteFindingPage": {
37510
37810
  "type": "object",
37511
37811
  "properties": {
37512
37812
  "object": {
37513
37813
  "type": "string",
37514
37814
  "enum": [
37515
- "site-issue-page"
37815
+ "site-finding-page"
37516
37816
  ]
37517
37817
  },
37518
37818
  "spaceId": {
@@ -38390,6 +38690,10 @@
38390
38690
  },
38391
38691
  "input": {
38392
38692
  "type": "object",
38693
+ "required": [
38694
+ "text",
38695
+ "raw"
38696
+ ],
38393
38697
  "properties": {
38394
38698
  "text": {
38395
38699
  "type": "string",
@@ -40271,6 +40575,7 @@
40271
40575
  "description": "Context in which the event was recorded.",
40272
40576
  "enum": [
40273
40577
  "site",
40578
+ "server",
40274
40579
  "embed",
40275
40580
  "mcp"
40276
40581
  ]
@@ -40284,7 +40589,7 @@
40284
40589
  "$ref": "#/components/schemas/URL"
40285
40590
  },
40286
40591
  "displayContext": {
40287
- "description": "Whether the event was tracked on the site or an embed widget.",
40592
+ "description": "Whether the event was tracked on the site, the server, or an embed widget.",
40288
40593
  "$ref": "#/components/schemas/SiteInsightsDisplayContext",
40289
40594
  "default": "site"
40290
40595
  },
@@ -40381,6 +40686,27 @@
40381
40686
  }
40382
40687
  ]
40383
40688
  },
40689
+ "SiteInsightsEventPageMarkdownRequest": {
40690
+ "allOf": [
40691
+ {
40692
+ "$ref": "#/components/schemas/SiteInsightsEventBase"
40693
+ },
40694
+ {
40695
+ "type": "object",
40696
+ "properties": {
40697
+ "type": {
40698
+ "type": "string",
40699
+ "enum": [
40700
+ "page_markdown_request"
40701
+ ]
40702
+ }
40703
+ },
40704
+ "required": [
40705
+ "type"
40706
+ ]
40707
+ }
40708
+ ]
40709
+ },
40384
40710
  "SiteInsightsEventSearchOpen": {
40385
40711
  "allOf": [
40386
40712
  {
@@ -40855,11 +41181,88 @@
40855
41181
  }
40856
41182
  ]
40857
41183
  },
41184
+ "SiteInsightsLLMSVariant": {
41185
+ "type": "string",
41186
+ "enum": [
41187
+ "standard",
41188
+ "full"
41189
+ ]
41190
+ },
41191
+ "SiteInsightsEventLLMSRequest": {
41192
+ "allOf": [
41193
+ {
41194
+ "$ref": "#/components/schemas/SiteInsightsEventBase"
41195
+ },
41196
+ {
41197
+ "type": "object",
41198
+ "properties": {
41199
+ "type": {
41200
+ "type": "string",
41201
+ "enum": [
41202
+ "llms_request"
41203
+ ]
41204
+ },
41205
+ "llmsVariant": {
41206
+ "$ref": "#/components/schemas/SiteInsightsLLMSVariant"
41207
+ }
41208
+ },
41209
+ "required": [
41210
+ "type",
41211
+ "llmsVariant"
41212
+ ]
41213
+ }
41214
+ ]
41215
+ },
41216
+ "SiteInsightsEventMCPRequest": {
41217
+ "allOf": [
41218
+ {
41219
+ "$ref": "#/components/schemas/SiteInsightsEventBase"
41220
+ },
41221
+ {
41222
+ "type": "object",
41223
+ "properties": {
41224
+ "type": {
41225
+ "type": "string",
41226
+ "enum": [
41227
+ "mcp_request"
41228
+ ]
41229
+ }
41230
+ },
41231
+ "required": [
41232
+ "type"
41233
+ ]
41234
+ }
41235
+ ]
41236
+ },
41237
+ "SiteInsightsEventRSSRequest": {
41238
+ "allOf": [
41239
+ {
41240
+ "$ref": "#/components/schemas/SiteInsightsEventBase"
41241
+ },
41242
+ {
41243
+ "type": "object",
41244
+ "properties": {
41245
+ "type": {
41246
+ "type": "string",
41247
+ "enum": [
41248
+ "rss_request"
41249
+ ]
41250
+ }
41251
+ },
41252
+ "required": [
41253
+ "type"
41254
+ ]
41255
+ }
41256
+ ]
41257
+ },
40858
41258
  "SiteInsightsEvent": {
40859
41259
  "oneOf": [
40860
41260
  {
40861
41261
  "$ref": "#/components/schemas/SiteInsightsEventPageView"
40862
41262
  },
41263
+ {
41264
+ "$ref": "#/components/schemas/SiteInsightsEventPageMarkdownRequest"
41265
+ },
40863
41266
  {
40864
41267
  "$ref": "#/components/schemas/SiteInsightsEventSearchOpen"
40865
41268
  },
@@ -40901,6 +41304,15 @@
40901
41304
  },
40902
41305
  {
40903
41306
  "$ref": "#/components/schemas/SiteInsightsEventAdDisplay"
41307
+ },
41308
+ {
41309
+ "$ref": "#/components/schemas/SiteInsightsEventLLMSRequest"
41310
+ },
41311
+ {
41312
+ "$ref": "#/components/schemas/SiteInsightsEventMCPRequest"
41313
+ },
41314
+ {
41315
+ "$ref": "#/components/schemas/SiteInsightsEventRSSRequest"
40904
41316
  }
40905
41317
  ]
40906
41318
  },
@@ -41259,6 +41671,20 @@
41259
41671
  }
41260
41672
  }
41261
41673
  },
41674
+ {
41675
+ "type": "object",
41676
+ "required": [
41677
+ "column"
41678
+ ],
41679
+ "properties": {
41680
+ "column": {
41681
+ "type": "string",
41682
+ "enum": [
41683
+ "eventLLMSVariant"
41684
+ ]
41685
+ }
41686
+ }
41687
+ },
41262
41688
  {
41263
41689
  "type": "object",
41264
41690
  "required": [
@@ -41535,6 +41961,7 @@
41535
41961
  "type": "string",
41536
41962
  "enum": [
41537
41963
  "page_view",
41964
+ "page_markdown_request",
41538
41965
  "search_open",
41539
41966
  "search_type_query",
41540
41967
  "search_open_result",
@@ -41548,7 +41975,10 @@
41548
41975
  "api_client_request",
41549
41976
  "ad_click",
41550
41977
  "ad_display",
41551
- "trademark_click"
41978
+ "trademark_click",
41979
+ "llms_request",
41980
+ "mcp_request",
41981
+ "rss_request"
41552
41982
  ]
41553
41983
  },
41554
41984
  "SiteInsightsVisitorBrowser": {
@@ -41978,6 +42408,34 @@
41978
42408
  }
41979
42409
  }
41980
42410
  },
42411
+ {
42412
+ "type": "object",
42413
+ "required": [
42414
+ "column",
42415
+ "values"
42416
+ ],
42417
+ "properties": {
42418
+ "column": {
42419
+ "type": "string",
42420
+ "enum": [
42421
+ "eventLLMSVariant"
42422
+ ]
42423
+ },
42424
+ "values": {
42425
+ "type": "array",
42426
+ "items": {
42427
+ "oneOf": [
42428
+ {
42429
+ "type": "null"
42430
+ },
42431
+ {
42432
+ "$ref": "#/components/schemas/SiteInsightsLLMSVariant"
42433
+ }
42434
+ ]
42435
+ }
42436
+ }
42437
+ }
42438
+ },
41981
42439
  {
41982
42440
  "type": "object",
41983
42441
  "required": [
@@ -46877,6 +47335,16 @@
46877
47335
  "actor"
46878
47336
  ]
46879
47337
  },
47338
+ "LocalizedString": {
47339
+ "type": "object",
47340
+ "description": "Localized string value, keyed by locale. Contains overrides for non-default languages only.",
47341
+ "propertyNames": {
47342
+ "$ref": "#/components/schemas/TranslationLanguage"
47343
+ },
47344
+ "additionalProperties": {
47345
+ "type": "string"
47346
+ }
47347
+ },
46880
47348
  "RequestSpaceTrackPageView": {
46881
47349
  "$ref": "#/components/schemas/SpaceTrackPageView"
46882
47350
  },