@gitbook/api 0.170.0 → 0.171.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",
@@ -14038,10 +14038,10 @@
14038
14038
  }
14039
14039
  }
14040
14040
  },
14041
- "/orgs/{organizationId}/sites/{siteId}/issues": {
14041
+ "/orgs/{organizationId}/sites/{siteId}/scans": {
14042
14042
  "get": {
14043
- "operationId": "listSiteIssues",
14044
- "summary": "List all site context issues",
14043
+ "operationId": "listSiteScans",
14044
+ "summary": "List all site scans",
14045
14045
  "tags": [
14046
14046
  "site-context"
14047
14047
  ],
@@ -14066,7 +14066,7 @@
14066
14066
  {
14067
14067
  "name": "topic",
14068
14068
  "in": "query",
14069
- "description": "Filter issues by associated site topic ID.",
14069
+ "description": "Filter scans by associated site topic ID.",
14070
14070
  "schema": {
14071
14071
  "type": "string"
14072
14072
  }
@@ -14074,25 +14074,187 @@
14074
14074
  {
14075
14075
  "name": "status",
14076
14076
  "in": "query",
14077
- "description": "Filter issues by status.",
14077
+ "description": "Filter scans by status.",
14078
14078
  "schema": {
14079
- "$ref": "#/components/schemas/SiteIssueStatus"
14079
+ "$ref": "#/components/schemas/SiteScanStatus"
14080
+ }
14081
+ }
14082
+ ],
14083
+ "responses": {
14084
+ "200": {
14085
+ "description": "OK",
14086
+ "content": {
14087
+ "application/json": {
14088
+ "schema": {
14089
+ "allOf": [
14090
+ {
14091
+ "$ref": "#/components/schemas/List"
14092
+ },
14093
+ {
14094
+ "type": "object",
14095
+ "required": [
14096
+ "items"
14097
+ ],
14098
+ "properties": {
14099
+ "items": {
14100
+ "type": "array",
14101
+ "items": {
14102
+ "$ref": "#/components/schemas/SiteScan"
14103
+ }
14104
+ }
14105
+ }
14106
+ }
14107
+ ]
14108
+ }
14109
+ }
14110
+ }
14111
+ }
14112
+ }
14113
+ },
14114
+ "post": {
14115
+ "operationId": "createSiteScan",
14116
+ "summary": "Enqueue a new site scan",
14117
+ "tags": [
14118
+ "site-context"
14119
+ ],
14120
+ "security": [
14121
+ {
14122
+ "user": []
14123
+ }
14124
+ ],
14125
+ "parameters": [
14126
+ {
14127
+ "$ref": "#/components/parameters/organizationId"
14128
+ },
14129
+ {
14130
+ "$ref": "#/components/parameters/siteId"
14131
+ }
14132
+ ],
14133
+ "requestBody": {
14134
+ "required": true,
14135
+ "content": {
14136
+ "application/json": {
14137
+ "schema": {
14138
+ "type": "object",
14139
+ "required": [
14140
+ "topic"
14141
+ ],
14142
+ "properties": {
14143
+ "topic": {
14144
+ "type": "string",
14145
+ "description": "The site topic ID to scan."
14146
+ }
14147
+ }
14148
+ }
14149
+ }
14150
+ }
14151
+ },
14152
+ "responses": {
14153
+ "202": {
14154
+ "description": "Site scan has been enqueued",
14155
+ "content": {
14156
+ "application/json": {
14157
+ "schema": {
14158
+ "$ref": "#/components/schemas/SiteScan"
14159
+ }
14160
+ }
14161
+ }
14162
+ }
14163
+ }
14164
+ }
14165
+ },
14166
+ "/orgs/{organizationId}/sites/{siteId}/scans/{siteScanId}": {
14167
+ "get": {
14168
+ "operationId": "getSiteScanById",
14169
+ "summary": "Get a site scan by ID",
14170
+ "tags": [
14171
+ "site-context"
14172
+ ],
14173
+ "security": [
14174
+ {
14175
+ "user": []
14176
+ }
14177
+ ],
14178
+ "parameters": [
14179
+ {
14180
+ "$ref": "#/components/parameters/organizationId"
14181
+ },
14182
+ {
14183
+ "$ref": "#/components/parameters/siteId"
14184
+ },
14185
+ {
14186
+ "$ref": "#/components/parameters/siteScanId"
14187
+ }
14188
+ ],
14189
+ "responses": {
14190
+ "200": {
14191
+ "description": "OK",
14192
+ "content": {
14193
+ "application/json": {
14194
+ "schema": {
14195
+ "$ref": "#/components/schemas/SiteScan"
14196
+ }
14197
+ }
14198
+ }
14199
+ }
14200
+ }
14201
+ }
14202
+ },
14203
+ "/orgs/{organizationId}/sites/{siteId}/findings": {
14204
+ "get": {
14205
+ "operationId": "listSiteFindings",
14206
+ "summary": "List all site context findings",
14207
+ "tags": [
14208
+ "site-context"
14209
+ ],
14210
+ "security": [
14211
+ {
14212
+ "user": []
14213
+ }
14214
+ ],
14215
+ "parameters": [
14216
+ {
14217
+ "$ref": "#/components/parameters/organizationId"
14218
+ },
14219
+ {
14220
+ "$ref": "#/components/parameters/siteId"
14221
+ },
14222
+ {
14223
+ "$ref": "#/components/parameters/listPage"
14224
+ },
14225
+ {
14226
+ "$ref": "#/components/parameters/listLimit"
14227
+ },
14228
+ {
14229
+ "name": "topic",
14230
+ "in": "query",
14231
+ "description": "Filter findings by associated site topic ID.",
14232
+ "schema": {
14233
+ "type": "string"
14234
+ }
14235
+ },
14236
+ {
14237
+ "name": "status",
14238
+ "in": "query",
14239
+ "description": "Filter findings by status.",
14240
+ "schema": {
14241
+ "$ref": "#/components/schemas/SiteFindingStatus"
14080
14242
  }
14081
14243
  },
14082
14244
  {
14083
14245
  "name": "type",
14084
14246
  "in": "query",
14085
- "description": "Filter issues by type.",
14247
+ "description": "Filter findings by type.",
14086
14248
  "schema": {
14087
- "$ref": "#/components/schemas/SiteIssueType"
14249
+ "$ref": "#/components/schemas/SiteFindingType"
14088
14250
  }
14089
14251
  },
14090
14252
  {
14091
- "name": "priority",
14253
+ "name": "severity",
14092
14254
  "in": "query",
14093
- "description": "Filter issues by estimated priority.",
14255
+ "description": "Filter findings by estimated severity.",
14094
14256
  "schema": {
14095
- "$ref": "#/components/schemas/SiteIssuePriority"
14257
+ "$ref": "#/components/schemas/SiteFindingSeverity"
14096
14258
  }
14097
14259
  }
14098
14260
  ],
@@ -14115,7 +14277,7 @@
14115
14277
  "items": {
14116
14278
  "type": "array",
14117
14279
  "items": {
14118
- "$ref": "#/components/schemas/SiteIssue"
14280
+ "$ref": "#/components/schemas/SiteFinding"
14119
14281
  }
14120
14282
  }
14121
14283
  }
@@ -14128,10 +14290,10 @@
14128
14290
  }
14129
14291
  }
14130
14292
  },
14131
- "/orgs/{organizationId}/sites/{siteId}/issues/{siteIssueId}": {
14293
+ "/orgs/{organizationId}/sites/{siteId}/findings/{siteFindingId}": {
14132
14294
  "get": {
14133
- "operationId": "getSiteIssueById",
14134
- "summary": "Get a site issue by ID",
14295
+ "operationId": "getSiteFindingById",
14296
+ "summary": "Get a site finding by ID",
14135
14297
  "tags": [
14136
14298
  "site-context"
14137
14299
  ],
@@ -14148,7 +14310,7 @@
14148
14310
  "$ref": "#/components/parameters/siteId"
14149
14311
  },
14150
14312
  {
14151
- "$ref": "#/components/parameters/siteIssueId"
14313
+ "$ref": "#/components/parameters/siteFindingId"
14152
14314
  }
14153
14315
  ],
14154
14316
  "responses": {
@@ -14157,7 +14319,7 @@
14157
14319
  "content": {
14158
14320
  "application/json": {
14159
14321
  "schema": {
14160
- "$ref": "#/components/schemas/SiteIssue"
14322
+ "$ref": "#/components/schemas/SiteFinding"
14161
14323
  }
14162
14324
  }
14163
14325
  }
@@ -14165,8 +14327,8 @@
14165
14327
  }
14166
14328
  },
14167
14329
  "patch": {
14168
- "operationId": "updateSiteIssueById",
14169
- "summary": "Update a site issue",
14330
+ "operationId": "updateSiteFindingById",
14331
+ "summary": "Update a site finding",
14170
14332
  "tags": [
14171
14333
  "site-context"
14172
14334
  ],
@@ -14183,7 +14345,7 @@
14183
14345
  "$ref": "#/components/parameters/siteId"
14184
14346
  },
14185
14347
  {
14186
- "$ref": "#/components/parameters/siteIssueId"
14348
+ "$ref": "#/components/parameters/siteFindingId"
14187
14349
  }
14188
14350
  ],
14189
14351
  "requestBody": {
@@ -14214,7 +14376,7 @@
14214
14376
  "content": {
14215
14377
  "application/json": {
14216
14378
  "schema": {
14217
- "$ref": "#/components/schemas/SiteIssue"
14379
+ "$ref": "#/components/schemas/SiteFinding"
14218
14380
  }
14219
14381
  }
14220
14382
  }
@@ -14222,10 +14384,10 @@
14222
14384
  }
14223
14385
  }
14224
14386
  },
14225
- "/orgs/{organizationId}/sites/{siteId}/issues/{siteIssueId}/change-requests": {
14387
+ "/orgs/{organizationId}/sites/{siteId}/findings/{siteFindingId}/change-requests": {
14226
14388
  "get": {
14227
- "operationId": "listChangeRequestsForSiteIssue",
14228
- "summary": "List change requests linked to a site issue",
14389
+ "operationId": "listChangeRequestsForSiteFinding",
14390
+ "summary": "List change requests linked to a site finding",
14229
14391
  "tags": [
14230
14392
  "site-context"
14231
14393
  ],
@@ -14248,12 +14410,12 @@
14248
14410
  "$ref": "#/components/parameters/siteId"
14249
14411
  },
14250
14412
  {
14251
- "$ref": "#/components/parameters/siteIssueId"
14413
+ "$ref": "#/components/parameters/siteFindingId"
14252
14414
  }
14253
14415
  ],
14254
14416
  "responses": {
14255
14417
  "200": {
14256
- "description": "List of change requests linked to the site issue",
14418
+ "description": "List of change requests linked to the site finding",
14257
14419
  "content": {
14258
14420
  "application/json": {
14259
14421
  "schema": {
@@ -14283,8 +14445,8 @@
14283
14445
  }
14284
14446
  },
14285
14447
  "post": {
14286
- "operationId": "triggerChangeRequestsForSiteIssue",
14287
- "summary": "Process a site issue into change requests",
14448
+ "operationId": "triggerChangeRequestsForSiteFinding",
14449
+ "summary": "Process a site finding into change requests",
14288
14450
  "tags": [
14289
14451
  "site-context"
14290
14452
  ],
@@ -14301,20 +14463,20 @@
14301
14463
  "$ref": "#/components/parameters/siteId"
14302
14464
  },
14303
14465
  {
14304
- "$ref": "#/components/parameters/siteIssueId"
14466
+ "$ref": "#/components/parameters/siteFindingId"
14305
14467
  }
14306
14468
  ],
14307
14469
  "responses": {
14308
14470
  "202": {
14309
- "description": "Site issue processing has been started"
14471
+ "description": "Site finding processing has been started"
14310
14472
  }
14311
14473
  }
14312
14474
  }
14313
14475
  },
14314
- "/orgs/{organizationId}/sites/{siteId}/issues/{siteIssueId}/pages": {
14476
+ "/orgs/{organizationId}/sites/{siteId}/findings/{siteFindingId}/pages": {
14315
14477
  "get": {
14316
- "operationId": "listPagesForSiteIssue",
14317
- "summary": "List pages linked to a site issue",
14478
+ "operationId": "listPagesForSiteFinding",
14479
+ "summary": "List pages linked to a site finding",
14318
14480
  "tags": [
14319
14481
  "site-context"
14320
14482
  ],
@@ -14337,12 +14499,12 @@
14337
14499
  "$ref": "#/components/parameters/siteId"
14338
14500
  },
14339
14501
  {
14340
- "$ref": "#/components/parameters/siteIssueId"
14502
+ "$ref": "#/components/parameters/siteFindingId"
14341
14503
  }
14342
14504
  ],
14343
14505
  "responses": {
14344
14506
  "200": {
14345
- "description": "List of pages linked to the site issue",
14507
+ "description": "List of pages linked to the site finding",
14346
14508
  "content": {
14347
14509
  "application/json": {
14348
14510
  "schema": {
@@ -14359,7 +14521,7 @@
14359
14521
  "items": {
14360
14522
  "type": "array",
14361
14523
  "items": {
14362
- "$ref": "#/components/schemas/SiteIssuePage"
14524
+ "$ref": "#/components/schemas/SiteFindingPage"
14363
14525
  }
14364
14526
  }
14365
14527
  }
@@ -14372,10 +14534,10 @@
14372
14534
  }
14373
14535
  }
14374
14536
  },
14375
- "/orgs/{organizationId}/sites/{siteId}/issues/{siteIssueId}/questions": {
14537
+ "/orgs/{organizationId}/sites/{siteId}/findings/{siteFindingId}/questions": {
14376
14538
  "get": {
14377
- "operationId": "listQuestionsForSiteIssue",
14378
- "summary": "List questions linked to a site issue",
14539
+ "operationId": "listQuestionsForSiteFinding",
14540
+ "summary": "List questions linked to a site finding",
14379
14541
  "tags": [
14380
14542
  "site-context"
14381
14543
  ],
@@ -14398,12 +14560,12 @@
14398
14560
  "$ref": "#/components/parameters/siteId"
14399
14561
  },
14400
14562
  {
14401
- "$ref": "#/components/parameters/siteIssueId"
14563
+ "$ref": "#/components/parameters/siteFindingId"
14402
14564
  }
14403
14565
  ],
14404
14566
  "responses": {
14405
14567
  "200": {
14406
- "description": "List of questions linked to the site issue",
14568
+ "description": "List of questions linked to the site finding",
14407
14569
  "content": {
14408
14570
  "application/json": {
14409
14571
  "schema": {
@@ -14433,10 +14595,10 @@
14433
14595
  }
14434
14596
  }
14435
14597
  },
14436
- "/orgs/{organizationId}/sites/{siteId}/issues/{siteIssueId}/records": {
14598
+ "/orgs/{organizationId}/sites/{siteId}/findings/{siteFindingId}/records": {
14437
14599
  "get": {
14438
- "operationId": "listRecordsForSiteIssue",
14439
- "summary": "List records linked to a site issue",
14600
+ "operationId": "listRecordsForSiteFinding",
14601
+ "summary": "List records linked to a site finding",
14440
14602
  "tags": [
14441
14603
  "site-context"
14442
14604
  ],
@@ -14459,12 +14621,12 @@
14459
14621
  "$ref": "#/components/parameters/siteId"
14460
14622
  },
14461
14623
  {
14462
- "$ref": "#/components/parameters/siteIssueId"
14624
+ "$ref": "#/components/parameters/siteFindingId"
14463
14625
  }
14464
14626
  ],
14465
14627
  "responses": {
14466
14628
  "200": {
14467
- "description": "List of records linked to the site issue",
14629
+ "description": "List of records linked to the site finding",
14468
14630
  "content": {
14469
14631
  "application/json": {
14470
14632
  "schema": {
@@ -14919,10 +15081,10 @@
14919
15081
  }
14920
15082
  }
14921
15083
  },
14922
- "/orgs/{organizationId}/sites/{siteId}/topics/{siteTopicId}/issues": {
15084
+ "/orgs/{organizationId}/sites/{siteId}/topics/{siteTopicId}/findings": {
14923
15085
  "delete": {
14924
- "operationId": "deleteSiteTopicIssues",
14925
- "summary": "Delete all issues for a topic",
15086
+ "operationId": "deleteSiteTopicFindings",
15087
+ "summary": "Delete all findings for a topic",
14926
15088
  "tags": [
14927
15089
  "site-context"
14928
15090
  ],
@@ -14944,10 +15106,10 @@
14944
15106
  ],
14945
15107
  "responses": {
14946
15108
  "204": {
14947
- "description": "Topic had no issues or did not exist"
15109
+ "description": "Topic had no findings or did not exist"
14948
15110
  },
14949
15111
  "205": {
14950
- "description": "Topic issues deleted"
15112
+ "description": "Topic findings deleted"
14951
15113
  }
14952
15114
  }
14953
15115
  }
@@ -19210,11 +19372,20 @@
19210
19372
  "type": "string"
19211
19373
  }
19212
19374
  },
19213
- "siteIssueId": {
19214
- "name": "siteIssueId",
19375
+ "siteScanId": {
19376
+ "name": "siteScanId",
19215
19377
  "in": "path",
19216
19378
  "required": true,
19217
- "description": "The unique id of the site issue",
19379
+ "description": "The unique id of the site scan",
19380
+ "schema": {
19381
+ "type": "string"
19382
+ }
19383
+ },
19384
+ "siteFindingId": {
19385
+ "name": "siteFindingId",
19386
+ "in": "path",
19387
+ "required": true,
19388
+ "description": "The unique id of the site finding",
19218
19389
  "schema": {
19219
19390
  "type": "string"
19220
19391
  }
@@ -33837,6 +34008,15 @@
33837
34008
  "minLength": 1,
33838
34009
  "maxLength": 500
33839
34010
  },
34011
+ "BillingMeter": {
34012
+ "type": "string",
34013
+ "description": "Identifier of a billing meter",
34014
+ "enum": [
34015
+ "ai_responses",
34016
+ "ai_agent_responses",
34017
+ "translation_words"
34018
+ ]
34019
+ },
33840
34020
  "UpgradeOrganizationBilling": {
33841
34021
  "type": "object",
33842
34022
  "properties": {
@@ -33857,6 +34037,13 @@
33857
34037
  "$ref": "#/components/schemas/BillingCoupon",
33858
34038
  "description": "Coupon or promotion code to apply to the subscription"
33859
34039
  },
34040
+ "addons": {
34041
+ "type": "array",
34042
+ "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",
34043
+ "items": {
34044
+ "$ref": "#/components/schemas/BillingMeter"
34045
+ }
34046
+ },
33860
34047
  "mode": {
33861
34048
  "type": "string",
33862
34049
  "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 +34062,15 @@
33875
34062
  "type": "object",
33876
34063
  "properties": {
33877
34064
  "amount": {
33878
- "description": "Amount of the invoice",
34065
+ "description": "Final total owed for this invoice after discounts and credits.",
34066
+ "type": "number"
34067
+ },
34068
+ "subtotal": {
34069
+ "description": "Sum of invoice line items before discounts and credits are applied.",
33879
34070
  "type": "number"
33880
34071
  },
33881
34072
  "amountDueToday": {
33882
- "description": "Amount that will be immediately charged.",
34073
+ "description": "Remaining unpaid amount on this invoice, what would be charged now.",
33883
34074
  "type": "number"
33884
34075
  },
33885
34076
  "customerBalance": {
@@ -33940,6 +34131,7 @@
33940
34131
  }
33941
34132
  },
33942
34133
  "required": [
34134
+ "subtotal",
33943
34135
  "amount",
33944
34136
  "amountDueToday",
33945
34137
  "customerBalance",
@@ -34143,15 +34335,6 @@
34143
34335
  "switch_interval"
34144
34336
  ]
34145
34337
  },
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
34338
  "BillingMeterUsage": {
34156
34339
  "type": "object",
34157
34340
  "description": "Usage metrics for a billing meter",
@@ -35923,6 +36106,13 @@
35923
36106
  "condition"
35924
36107
  ]
35925
36108
  },
36109
+ "LocalizedString": {
36110
+ "type": "object",
36111
+ "description": "Localized string value, keyed by locale. Contains overrides for non-default languages only.",
36112
+ "propertyNames": {
36113
+ "$ref": "#/components/schemas/TranslationLanguage"
36114
+ }
36115
+ },
35926
36116
  "CustomizationTheme": {
35927
36117
  "type": "string",
35928
36118
  "description": "The theme to apply to the site. Supercedes the old header preset themes.\n- `clean`: Modern theme featuring translucency and minimally-styled elements.\n- `muted`: Sophisticated theme with decreased contrast between elements.\n- `bold`: High-impact theme with prominent colors and strong contrasts.\n- `gradient`: Trendy theme featuring colorful gradients and splashes of color.\n",
@@ -36422,6 +36612,10 @@
36422
36612
  "description": "Title to use for the published site. If not defined, it'll fallback to the default content title.",
36423
36613
  "$ref": "#/components/schemas/SiteTitle"
36424
36614
  },
36615
+ "localizedTitle": {
36616
+ "description": "Localized titles for the site, keyed by locale. If not defined, the localized title will not be changed.",
36617
+ "$ref": "#/components/schemas/LocalizedString"
36618
+ },
36425
36619
  "styling": {
36426
36620
  "type": "object",
36427
36621
  "properties": {
@@ -37381,18 +37575,109 @@
37381
37575
  "type"
37382
37576
  ]
37383
37577
  },
37384
- "SiteIssueStatus": {
37578
+ "SiteScanStatus": {
37385
37579
  "type": "string",
37386
- "description": "Status of a site issue.",
37580
+ "description": "Status of a persisted site scan.",
37581
+ "enum": [
37582
+ "pending",
37583
+ "running",
37584
+ "done",
37585
+ "failed"
37586
+ ]
37587
+ },
37588
+ "SiteScanFindings": {
37589
+ "type": "object",
37590
+ "description": "Number of findings created by the scan, grouped by severity.",
37591
+ "properties": {
37592
+ "low": {
37593
+ "type": "number"
37594
+ },
37595
+ "medium": {
37596
+ "type": "number"
37597
+ },
37598
+ "high": {
37599
+ "type": "number"
37600
+ }
37601
+ },
37602
+ "required": [
37603
+ "low",
37604
+ "medium",
37605
+ "high"
37606
+ ]
37607
+ },
37608
+ "SiteScan": {
37609
+ "type": "object",
37610
+ "properties": {
37611
+ "object": {
37612
+ "type": "string",
37613
+ "enum": [
37614
+ "site-scan"
37615
+ ]
37616
+ },
37617
+ "id": {
37618
+ "type": "string",
37619
+ "description": "The ID of the scan"
37620
+ },
37621
+ "status": {
37622
+ "$ref": "#/components/schemas/SiteScanStatus"
37623
+ },
37624
+ "topic": {
37625
+ "type": "string",
37626
+ "description": "The site topic ID associated with the scan"
37627
+ },
37628
+ "createdAt": {
37629
+ "$ref": "#/components/schemas/Timestamp"
37630
+ },
37631
+ "startedAt": {
37632
+ "$ref": "#/components/schemas/Timestamp"
37633
+ },
37634
+ "finishedAt": {
37635
+ "$ref": "#/components/schemas/Timestamp"
37636
+ },
37637
+ "findings": {
37638
+ "$ref": "#/components/schemas/SiteScanFindings"
37639
+ },
37640
+ "failureMessage": {
37641
+ "type": "string",
37642
+ "description": "Failure message for failed scans"
37643
+ },
37644
+ "urls": {
37645
+ "type": "object",
37646
+ "description": "URLs associated with the scan",
37647
+ "properties": {
37648
+ "location": {
37649
+ "type": "string",
37650
+ "description": "URL of the scan endpoint in the API",
37651
+ "format": "uri"
37652
+ }
37653
+ },
37654
+ "required": [
37655
+ "location"
37656
+ ]
37657
+ }
37658
+ },
37659
+ "required": [
37660
+ "object",
37661
+ "id",
37662
+ "status",
37663
+ "topic",
37664
+ "createdAt",
37665
+ "findings",
37666
+ "urls"
37667
+ ]
37668
+ },
37669
+ "SiteFindingStatus": {
37670
+ "type": "string",
37671
+ "description": "Status of a site finding.",
37387
37672
  "enum": [
37388
37673
  "open",
37389
37674
  "done",
37390
37675
  "canceled"
37391
37676
  ]
37392
37677
  },
37393
- "SiteIssueType": {
37678
+ "SiteFindingType": {
37394
37679
  "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.",
37680
+ "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
37681
  "enum": [
37397
37682
  "content-outdated",
37398
37683
  "incoherence",
@@ -37400,71 +37685,75 @@
37400
37685
  "other"
37401
37686
  ]
37402
37687
  },
37403
- "SiteIssuePriority": {
37688
+ "SiteFindingSeverity": {
37404
37689
  "type": "string",
37405
- "description": "Estimated end-user priority of a site issue.",
37690
+ "description": "Estimated end-user severity of a site finding.",
37406
37691
  "enum": [
37407
37692
  "low",
37408
37693
  "medium",
37409
37694
  "high"
37410
37695
  ]
37411
37696
  },
37412
- "SiteIssueTitle": {
37697
+ "SiteFindingTitle": {
37413
37698
  "type": "string",
37414
- "description": "Short issue title",
37699
+ "description": "Short finding title",
37415
37700
  "maxLength": 256
37416
37701
  },
37417
- "SiteIssue": {
37702
+ "SiteFinding": {
37418
37703
  "type": "object",
37419
37704
  "properties": {
37420
37705
  "object": {
37421
37706
  "type": "string",
37422
37707
  "enum": [
37423
- "site-issue"
37708
+ "site-finding"
37424
37709
  ]
37425
37710
  },
37426
37711
  "id": {
37427
37712
  "type": "string",
37428
- "description": "The ID of the issue"
37713
+ "description": "The ID of the finding"
37714
+ },
37715
+ "scan": {
37716
+ "type": "string",
37717
+ "description": "The site scan ID associated with the finding"
37429
37718
  },
37430
37719
  "topic": {
37431
37720
  "type": "string",
37432
- "description": "The site topic ID associated with the issue"
37721
+ "description": "The site topic ID associated with the finding"
37433
37722
  },
37434
37723
  "title": {
37435
- "$ref": "#/components/schemas/SiteIssueTitle"
37724
+ "$ref": "#/components/schemas/SiteFindingTitle"
37436
37725
  },
37437
37726
  "changeRequests": {
37438
37727
  "type": "number",
37439
- "description": "Number of change requests linked to the issue"
37728
+ "description": "Number of change requests linked to the finding"
37440
37729
  },
37441
37730
  "pages": {
37442
37731
  "type": "number",
37443
- "description": "Number of pages linked to the issue"
37732
+ "description": "Number of pages linked to the finding"
37444
37733
  },
37445
37734
  "records": {
37446
37735
  "type": "number",
37447
- "description": "Number of records linked to the issue"
37736
+ "description": "Number of records linked to the finding"
37448
37737
  },
37449
37738
  "questions": {
37450
37739
  "type": "number",
37451
- "description": "Number of questions linked to the issue"
37740
+ "description": "Number of questions linked to the finding"
37452
37741
  },
37453
37742
  "status": {
37454
- "$ref": "#/components/schemas/SiteIssueStatus"
37743
+ "$ref": "#/components/schemas/SiteFindingStatus"
37455
37744
  },
37456
37745
  "type": {
37457
- "$ref": "#/components/schemas/SiteIssueType"
37746
+ "$ref": "#/components/schemas/SiteFindingType"
37458
37747
  },
37459
- "priority": {
37460
- "$ref": "#/components/schemas/SiteIssuePriority"
37748
+ "severity": {
37749
+ "$ref": "#/components/schemas/SiteFindingSeverity"
37461
37750
  },
37462
37751
  "description": {
37463
37752
  "$ref": "#/components/schemas/JSONDocument"
37464
37753
  },
37465
37754
  "autoFixable": {
37466
37755
  "type": "boolean",
37467
- "description": "Whether an AI agent should be able to fix this issue directly"
37756
+ "description": "Whether an AI agent should be able to fix this finding directly"
37468
37757
  },
37469
37758
  "createdAt": {
37470
37759
  "$ref": "#/components/schemas/Timestamp"
@@ -37474,11 +37763,11 @@
37474
37763
  },
37475
37764
  "urls": {
37476
37765
  "type": "object",
37477
- "description": "URLs associated with the issue",
37766
+ "description": "URLs associated with the finding",
37478
37767
  "properties": {
37479
37768
  "location": {
37480
37769
  "type": "string",
37481
- "description": "URL of the issue list endpoint in the API",
37770
+ "description": "URL of the finding list endpoint in the API",
37482
37771
  "format": "uri"
37483
37772
  }
37484
37773
  },
@@ -37490,6 +37779,7 @@
37490
37779
  "required": [
37491
37780
  "object",
37492
37781
  "id",
37782
+ "scan",
37493
37783
  "topic",
37494
37784
  "title",
37495
37785
  "changeRequests",
@@ -37498,7 +37788,7 @@
37498
37788
  "questions",
37499
37789
  "status",
37500
37790
  "type",
37501
- "priority",
37791
+ "severity",
37502
37792
  "description",
37503
37793
  "autoFixable",
37504
37794
  "createdAt",
@@ -37506,13 +37796,13 @@
37506
37796
  "urls"
37507
37797
  ]
37508
37798
  },
37509
- "SiteIssuePage": {
37799
+ "SiteFindingPage": {
37510
37800
  "type": "object",
37511
37801
  "properties": {
37512
37802
  "object": {
37513
37803
  "type": "string",
37514
37804
  "enum": [
37515
- "site-issue-page"
37805
+ "site-finding-page"
37516
37806
  ]
37517
37807
  },
37518
37808
  "spaceId": {
@@ -40271,6 +40561,7 @@
40271
40561
  "description": "Context in which the event was recorded.",
40272
40562
  "enum": [
40273
40563
  "site",
40564
+ "server",
40274
40565
  "embed",
40275
40566
  "mcp"
40276
40567
  ]
@@ -40284,7 +40575,7 @@
40284
40575
  "$ref": "#/components/schemas/URL"
40285
40576
  },
40286
40577
  "displayContext": {
40287
- "description": "Whether the event was tracked on the site or an embed widget.",
40578
+ "description": "Whether the event was tracked on the site, the server, or an embed widget.",
40288
40579
  "$ref": "#/components/schemas/SiteInsightsDisplayContext",
40289
40580
  "default": "site"
40290
40581
  },
@@ -40381,6 +40672,27 @@
40381
40672
  }
40382
40673
  ]
40383
40674
  },
40675
+ "SiteInsightsEventPageMarkdownRequest": {
40676
+ "allOf": [
40677
+ {
40678
+ "$ref": "#/components/schemas/SiteInsightsEventBase"
40679
+ },
40680
+ {
40681
+ "type": "object",
40682
+ "properties": {
40683
+ "type": {
40684
+ "type": "string",
40685
+ "enum": [
40686
+ "page_markdown_request"
40687
+ ]
40688
+ }
40689
+ },
40690
+ "required": [
40691
+ "type"
40692
+ ]
40693
+ }
40694
+ ]
40695
+ },
40384
40696
  "SiteInsightsEventSearchOpen": {
40385
40697
  "allOf": [
40386
40698
  {
@@ -40855,11 +41167,88 @@
40855
41167
  }
40856
41168
  ]
40857
41169
  },
41170
+ "SiteInsightsLLMSVariant": {
41171
+ "type": "string",
41172
+ "enum": [
41173
+ "standard",
41174
+ "full"
41175
+ ]
41176
+ },
41177
+ "SiteInsightsEventLLMSRequest": {
41178
+ "allOf": [
41179
+ {
41180
+ "$ref": "#/components/schemas/SiteInsightsEventBase"
41181
+ },
41182
+ {
41183
+ "type": "object",
41184
+ "properties": {
41185
+ "type": {
41186
+ "type": "string",
41187
+ "enum": [
41188
+ "llms_request"
41189
+ ]
41190
+ },
41191
+ "llmsVariant": {
41192
+ "$ref": "#/components/schemas/SiteInsightsLLMSVariant"
41193
+ }
41194
+ },
41195
+ "required": [
41196
+ "type",
41197
+ "llmsVariant"
41198
+ ]
41199
+ }
41200
+ ]
41201
+ },
41202
+ "SiteInsightsEventMCPRequest": {
41203
+ "allOf": [
41204
+ {
41205
+ "$ref": "#/components/schemas/SiteInsightsEventBase"
41206
+ },
41207
+ {
41208
+ "type": "object",
41209
+ "properties": {
41210
+ "type": {
41211
+ "type": "string",
41212
+ "enum": [
41213
+ "mcp_request"
41214
+ ]
41215
+ }
41216
+ },
41217
+ "required": [
41218
+ "type"
41219
+ ]
41220
+ }
41221
+ ]
41222
+ },
41223
+ "SiteInsightsEventRSSRequest": {
41224
+ "allOf": [
41225
+ {
41226
+ "$ref": "#/components/schemas/SiteInsightsEventBase"
41227
+ },
41228
+ {
41229
+ "type": "object",
41230
+ "properties": {
41231
+ "type": {
41232
+ "type": "string",
41233
+ "enum": [
41234
+ "rss_request"
41235
+ ]
41236
+ }
41237
+ },
41238
+ "required": [
41239
+ "type"
41240
+ ]
41241
+ }
41242
+ ]
41243
+ },
40858
41244
  "SiteInsightsEvent": {
40859
41245
  "oneOf": [
40860
41246
  {
40861
41247
  "$ref": "#/components/schemas/SiteInsightsEventPageView"
40862
41248
  },
41249
+ {
41250
+ "$ref": "#/components/schemas/SiteInsightsEventPageMarkdownRequest"
41251
+ },
40863
41252
  {
40864
41253
  "$ref": "#/components/schemas/SiteInsightsEventSearchOpen"
40865
41254
  },
@@ -40901,6 +41290,15 @@
40901
41290
  },
40902
41291
  {
40903
41292
  "$ref": "#/components/schemas/SiteInsightsEventAdDisplay"
41293
+ },
41294
+ {
41295
+ "$ref": "#/components/schemas/SiteInsightsEventLLMSRequest"
41296
+ },
41297
+ {
41298
+ "$ref": "#/components/schemas/SiteInsightsEventMCPRequest"
41299
+ },
41300
+ {
41301
+ "$ref": "#/components/schemas/SiteInsightsEventRSSRequest"
40904
41302
  }
40905
41303
  ]
40906
41304
  },
@@ -41259,6 +41657,20 @@
41259
41657
  }
41260
41658
  }
41261
41659
  },
41660
+ {
41661
+ "type": "object",
41662
+ "required": [
41663
+ "column"
41664
+ ],
41665
+ "properties": {
41666
+ "column": {
41667
+ "type": "string",
41668
+ "enum": [
41669
+ "eventLLMSVariant"
41670
+ ]
41671
+ }
41672
+ }
41673
+ },
41262
41674
  {
41263
41675
  "type": "object",
41264
41676
  "required": [
@@ -41535,6 +41947,7 @@
41535
41947
  "type": "string",
41536
41948
  "enum": [
41537
41949
  "page_view",
41950
+ "page_markdown_request",
41538
41951
  "search_open",
41539
41952
  "search_type_query",
41540
41953
  "search_open_result",
@@ -41548,7 +41961,10 @@
41548
41961
  "api_client_request",
41549
41962
  "ad_click",
41550
41963
  "ad_display",
41551
- "trademark_click"
41964
+ "trademark_click",
41965
+ "llms_request",
41966
+ "mcp_request",
41967
+ "rss_request"
41552
41968
  ]
41553
41969
  },
41554
41970
  "SiteInsightsVisitorBrowser": {
@@ -41978,6 +42394,34 @@
41978
42394
  }
41979
42395
  }
41980
42396
  },
42397
+ {
42398
+ "type": "object",
42399
+ "required": [
42400
+ "column",
42401
+ "values"
42402
+ ],
42403
+ "properties": {
42404
+ "column": {
42405
+ "type": "string",
42406
+ "enum": [
42407
+ "eventLLMSVariant"
42408
+ ]
42409
+ },
42410
+ "values": {
42411
+ "type": "array",
42412
+ "items": {
42413
+ "oneOf": [
42414
+ {
42415
+ "type": "null"
42416
+ },
42417
+ {
42418
+ "$ref": "#/components/schemas/SiteInsightsLLMSVariant"
42419
+ }
42420
+ ]
42421
+ }
42422
+ }
42423
+ }
42424
+ },
41981
42425
  {
41982
42426
  "type": "object",
41983
42427
  "required": [