@gitbook/api 0.169.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",
@@ -13156,7 +13156,7 @@
13156
13156
  "$ref": "#/components/schemas/SiteSectionGroupTitle"
13157
13157
  },
13158
13158
  "localizedTitle": {
13159
- "$ref": "#/components/schemas/LocalizedString"
13159
+ "$ref": "#/components/schemas/LocalizedTitle"
13160
13160
  },
13161
13161
  "icon": {
13162
13162
  "oneOf": [
@@ -13492,7 +13492,7 @@
13492
13492
  "$ref": "#/components/schemas/SiteSectionTitle"
13493
13493
  },
13494
13494
  "localizedTitle": {
13495
- "$ref": "#/components/schemas/LocalizedString"
13495
+ "$ref": "#/components/schemas/LocalizedTitle"
13496
13496
  },
13497
13497
  "path": {
13498
13498
  "$ref": "#/components/schemas/SiteSectionPath"
@@ -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
  }
@@ -15003,6 +15165,14 @@
15003
15165
  "$ref": "#/components/schemas/SiteQuestionAnswerResolution"
15004
15166
  }
15005
15167
  },
15168
+ {
15169
+ "name": "topic",
15170
+ "in": "query",
15171
+ "description": "Filter questions by associated site topic ID.",
15172
+ "schema": {
15173
+ "type": "string"
15174
+ }
15175
+ },
15006
15176
  {
15007
15177
  "$ref": "#/components/parameters/listPage"
15008
15178
  },
@@ -15661,7 +15831,7 @@
15661
15831
  "description": "Localized titles for the site variant, keyed by locale. If not defined, the localized title will not be changed. If set to null, all localized titles will be removed.",
15662
15832
  "oneOf": [
15663
15833
  {
15664
- "$ref": "#/components/schemas/LocalizedString"
15834
+ "$ref": "#/components/schemas/LocalizedTitle"
15665
15835
  },
15666
15836
  {
15667
15837
  "type": "null"
@@ -19202,11 +19372,20 @@
19202
19372
  "type": "string"
19203
19373
  }
19204
19374
  },
19205
- "siteIssueId": {
19206
- "name": "siteIssueId",
19375
+ "siteScanId": {
19376
+ "name": "siteScanId",
19207
19377
  "in": "path",
19208
19378
  "required": true,
19209
- "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",
19210
19389
  "schema": {
19211
19390
  "type": "string"
19212
19391
  }
@@ -31567,6 +31746,11 @@
31567
31746
  "type": "string",
31568
31747
  "description": "URL of the preview version of the site.",
31569
31748
  "format": "uri"
31749
+ },
31750
+ "login": {
31751
+ "type": "string",
31752
+ "description": "URL of the login endpoint for visitors to authenticate with the site auth backend.\n",
31753
+ "format": "uri"
31570
31754
  }
31571
31755
  },
31572
31756
  "required": [
@@ -33034,10 +33218,9 @@
33034
33218
  "minLength": 2,
33035
33219
  "maxLength": 128
33036
33220
  },
33037
- "LocalizedString": {
33221
+ "LocalizedTitle": {
33038
33222
  "type": "object",
33039
- "description": "Localized string value, keyed by locale. Contains overrides for non-default languages only.",
33040
- "x-typescript": "Partial<Record<TranslationLanguage, string>>",
33223
+ "description": "Localized title value, keyed by locale. Contains overrides for non-default languages only.",
33041
33224
  "additionalProperties": {
33042
33225
  "type": "string",
33043
33226
  "maxLength": 128
@@ -33055,7 +33238,6 @@
33055
33238
  "LocalizedSectionDescription": {
33056
33239
  "type": "object",
33057
33240
  "description": "Localized section description value, keyed by locale. Contains overrides for non-default languages only.",
33058
- "x-typescript": "Partial<Record<TranslationLanguage, string>>",
33059
33241
  "additionalProperties": {
33060
33242
  "type": "string",
33061
33243
  "maxLength": 256
@@ -33104,7 +33286,7 @@
33104
33286
  "type": "string"
33105
33287
  },
33106
33288
  "localizedTitle": {
33107
- "$ref": "#/components/schemas/LocalizedString"
33289
+ "$ref": "#/components/schemas/LocalizedTitle"
33108
33290
  },
33109
33291
  "default": {
33110
33292
  "type": "boolean",
@@ -33161,7 +33343,7 @@
33161
33343
  "$ref": "#/components/schemas/SiteSectionTitle"
33162
33344
  },
33163
33345
  "localizedTitle": {
33164
- "$ref": "#/components/schemas/LocalizedString"
33346
+ "$ref": "#/components/schemas/LocalizedTitle"
33165
33347
  },
33166
33348
  "description": {
33167
33349
  "$ref": "#/components/schemas/SiteSectionDescription"
@@ -33238,7 +33420,7 @@
33238
33420
  "$ref": "#/components/schemas/SiteSectionGroupTitle"
33239
33421
  },
33240
33422
  "localizedTitle": {
33241
- "$ref": "#/components/schemas/LocalizedString"
33423
+ "$ref": "#/components/schemas/LocalizedTitle"
33242
33424
  },
33243
33425
  "sections": {
33244
33426
  "type": "array",
@@ -33826,6 +34008,15 @@
33826
34008
  "minLength": 1,
33827
34009
  "maxLength": 500
33828
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
+ },
33829
34020
  "UpgradeOrganizationBilling": {
33830
34021
  "type": "object",
33831
34022
  "properties": {
@@ -33846,11 +34037,17 @@
33846
34037
  "$ref": "#/components/schemas/BillingCoupon",
33847
34038
  "description": "Coupon or promotion code to apply to the subscription"
33848
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
+ },
33849
34047
  "mode": {
33850
34048
  "type": "string",
33851
- "description": "Mode to use for the upgrade (default value is `commit`): - `auto`: user is redirect to checkout if possible, other a preview of the auto-upgrade is returned. - `commit`: a checkout session is returned or an auto-upgrade is done - `preview`: a preview invoice is always returned\n",
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",
33852
34050
  "enum": [
33853
- "auto",
33854
34051
  "commit",
33855
34052
  "preview"
33856
34053
  ]
@@ -33865,11 +34062,15 @@
33865
34062
  "type": "object",
33866
34063
  "properties": {
33867
34064
  "amount": {
33868
- "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.",
33869
34070
  "type": "number"
33870
34071
  },
33871
34072
  "amountDueToday": {
33872
- "description": "Amount that will be immediately charged.",
34073
+ "description": "Remaining unpaid amount on this invoice, what would be charged now.",
33873
34074
  "type": "number"
33874
34075
  },
33875
34076
  "customerBalance": {
@@ -33930,6 +34131,7 @@
33930
34131
  }
33931
34132
  },
33932
34133
  "required": [
34134
+ "subtotal",
33933
34135
  "amount",
33934
34136
  "amountDueToday",
33935
34137
  "customerBalance",
@@ -34133,15 +34335,6 @@
34133
34335
  "switch_interval"
34134
34336
  ]
34135
34337
  },
34136
- "BillingMeter": {
34137
- "type": "string",
34138
- "description": "Identifier of a billing meter",
34139
- "enum": [
34140
- "ai_responses",
34141
- "ai_agent_responses",
34142
- "translation_words"
34143
- ]
34144
- },
34145
34338
  "BillingMeterUsage": {
34146
34339
  "type": "object",
34147
34340
  "description": "Usage metrics for a billing meter",
@@ -35913,6 +36106,13 @@
35913
36106
  "condition"
35914
36107
  ]
35915
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
+ },
35916
36116
  "CustomizationTheme": {
35917
36117
  "type": "string",
35918
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",
@@ -36412,6 +36612,10 @@
36412
36612
  "description": "Title to use for the published site. If not defined, it'll fallback to the default content title.",
36413
36613
  "$ref": "#/components/schemas/SiteTitle"
36414
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
+ },
36415
36619
  "styling": {
36416
36620
  "type": "object",
36417
36621
  "properties": {
@@ -37371,18 +37575,109 @@
37371
37575
  "type"
37372
37576
  ]
37373
37577
  },
37374
- "SiteIssueStatus": {
37578
+ "SiteScanStatus": {
37375
37579
  "type": "string",
37376
- "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.",
37377
37672
  "enum": [
37378
37673
  "open",
37379
37674
  "done",
37380
37675
  "canceled"
37381
37676
  ]
37382
37677
  },
37383
- "SiteIssueType": {
37678
+ "SiteFindingType": {
37384
37679
  "type": "string",
37385
- "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.",
37386
37681
  "enum": [
37387
37682
  "content-outdated",
37388
37683
  "incoherence",
@@ -37390,71 +37685,75 @@
37390
37685
  "other"
37391
37686
  ]
37392
37687
  },
37393
- "SiteIssuePriority": {
37688
+ "SiteFindingSeverity": {
37394
37689
  "type": "string",
37395
- "description": "Estimated end-user priority of a site issue.",
37690
+ "description": "Estimated end-user severity of a site finding.",
37396
37691
  "enum": [
37397
37692
  "low",
37398
37693
  "medium",
37399
37694
  "high"
37400
37695
  ]
37401
37696
  },
37402
- "SiteIssueTitle": {
37697
+ "SiteFindingTitle": {
37403
37698
  "type": "string",
37404
- "description": "Short issue title",
37699
+ "description": "Short finding title",
37405
37700
  "maxLength": 256
37406
37701
  },
37407
- "SiteIssue": {
37702
+ "SiteFinding": {
37408
37703
  "type": "object",
37409
37704
  "properties": {
37410
37705
  "object": {
37411
37706
  "type": "string",
37412
37707
  "enum": [
37413
- "site-issue"
37708
+ "site-finding"
37414
37709
  ]
37415
37710
  },
37416
37711
  "id": {
37417
37712
  "type": "string",
37418
- "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"
37419
37718
  },
37420
37719
  "topic": {
37421
37720
  "type": "string",
37422
- "description": "The site topic ID associated with the issue"
37721
+ "description": "The site topic ID associated with the finding"
37423
37722
  },
37424
37723
  "title": {
37425
- "$ref": "#/components/schemas/SiteIssueTitle"
37724
+ "$ref": "#/components/schemas/SiteFindingTitle"
37426
37725
  },
37427
37726
  "changeRequests": {
37428
37727
  "type": "number",
37429
- "description": "Number of change requests linked to the issue"
37728
+ "description": "Number of change requests linked to the finding"
37430
37729
  },
37431
37730
  "pages": {
37432
37731
  "type": "number",
37433
- "description": "Number of pages linked to the issue"
37732
+ "description": "Number of pages linked to the finding"
37434
37733
  },
37435
37734
  "records": {
37436
37735
  "type": "number",
37437
- "description": "Number of records linked to the issue"
37736
+ "description": "Number of records linked to the finding"
37438
37737
  },
37439
37738
  "questions": {
37440
37739
  "type": "number",
37441
- "description": "Number of questions linked to the issue"
37740
+ "description": "Number of questions linked to the finding"
37442
37741
  },
37443
37742
  "status": {
37444
- "$ref": "#/components/schemas/SiteIssueStatus"
37743
+ "$ref": "#/components/schemas/SiteFindingStatus"
37445
37744
  },
37446
37745
  "type": {
37447
- "$ref": "#/components/schemas/SiteIssueType"
37746
+ "$ref": "#/components/schemas/SiteFindingType"
37448
37747
  },
37449
- "priority": {
37450
- "$ref": "#/components/schemas/SiteIssuePriority"
37748
+ "severity": {
37749
+ "$ref": "#/components/schemas/SiteFindingSeverity"
37451
37750
  },
37452
37751
  "description": {
37453
37752
  "$ref": "#/components/schemas/JSONDocument"
37454
37753
  },
37455
37754
  "autoFixable": {
37456
37755
  "type": "boolean",
37457
- "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"
37458
37757
  },
37459
37758
  "createdAt": {
37460
37759
  "$ref": "#/components/schemas/Timestamp"
@@ -37464,11 +37763,11 @@
37464
37763
  },
37465
37764
  "urls": {
37466
37765
  "type": "object",
37467
- "description": "URLs associated with the issue",
37766
+ "description": "URLs associated with the finding",
37468
37767
  "properties": {
37469
37768
  "location": {
37470
37769
  "type": "string",
37471
- "description": "URL of the issue list endpoint in the API",
37770
+ "description": "URL of the finding list endpoint in the API",
37472
37771
  "format": "uri"
37473
37772
  }
37474
37773
  },
@@ -37480,6 +37779,7 @@
37480
37779
  "required": [
37481
37780
  "object",
37482
37781
  "id",
37782
+ "scan",
37483
37783
  "topic",
37484
37784
  "title",
37485
37785
  "changeRequests",
@@ -37488,7 +37788,7 @@
37488
37788
  "questions",
37489
37789
  "status",
37490
37790
  "type",
37491
- "priority",
37791
+ "severity",
37492
37792
  "description",
37493
37793
  "autoFixable",
37494
37794
  "createdAt",
@@ -37496,13 +37796,13 @@
37496
37796
  "urls"
37497
37797
  ]
37498
37798
  },
37499
- "SiteIssuePage": {
37799
+ "SiteFindingPage": {
37500
37800
  "type": "object",
37501
37801
  "properties": {
37502
37802
  "object": {
37503
37803
  "type": "string",
37504
37804
  "enum": [
37505
- "site-issue-page"
37805
+ "site-finding-page"
37506
37806
  ]
37507
37807
  },
37508
37808
  "spaceId": {
@@ -40261,6 +40561,7 @@
40261
40561
  "description": "Context in which the event was recorded.",
40262
40562
  "enum": [
40263
40563
  "site",
40564
+ "server",
40264
40565
  "embed",
40265
40566
  "mcp"
40266
40567
  ]
@@ -40274,7 +40575,7 @@
40274
40575
  "$ref": "#/components/schemas/URL"
40275
40576
  },
40276
40577
  "displayContext": {
40277
- "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.",
40278
40579
  "$ref": "#/components/schemas/SiteInsightsDisplayContext",
40279
40580
  "default": "site"
40280
40581
  },
@@ -40371,6 +40672,27 @@
40371
40672
  }
40372
40673
  ]
40373
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
+ },
40374
40696
  "SiteInsightsEventSearchOpen": {
40375
40697
  "allOf": [
40376
40698
  {
@@ -40845,11 +41167,88 @@
40845
41167
  }
40846
41168
  ]
40847
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
+ },
40848
41244
  "SiteInsightsEvent": {
40849
41245
  "oneOf": [
40850
41246
  {
40851
41247
  "$ref": "#/components/schemas/SiteInsightsEventPageView"
40852
41248
  },
41249
+ {
41250
+ "$ref": "#/components/schemas/SiteInsightsEventPageMarkdownRequest"
41251
+ },
40853
41252
  {
40854
41253
  "$ref": "#/components/schemas/SiteInsightsEventSearchOpen"
40855
41254
  },
@@ -40891,6 +41290,15 @@
40891
41290
  },
40892
41291
  {
40893
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"
40894
41302
  }
40895
41303
  ]
40896
41304
  },
@@ -41249,6 +41657,20 @@
41249
41657
  }
41250
41658
  }
41251
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
+ },
41252
41674
  {
41253
41675
  "type": "object",
41254
41676
  "required": [
@@ -41525,6 +41947,7 @@
41525
41947
  "type": "string",
41526
41948
  "enum": [
41527
41949
  "page_view",
41950
+ "page_markdown_request",
41528
41951
  "search_open",
41529
41952
  "search_type_query",
41530
41953
  "search_open_result",
@@ -41538,7 +41961,10 @@
41538
41961
  "api_client_request",
41539
41962
  "ad_click",
41540
41963
  "ad_display",
41541
- "trademark_click"
41964
+ "trademark_click",
41965
+ "llms_request",
41966
+ "mcp_request",
41967
+ "rss_request"
41542
41968
  ]
41543
41969
  },
41544
41970
  "SiteInsightsVisitorBrowser": {
@@ -41968,6 +42394,34 @@
41968
42394
  }
41969
42395
  }
41970
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
+ },
41971
42425
  {
41972
42426
  "type": "object",
41973
42427
  "required": [