@gitbook/api 0.202.0 → 0.203.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +692 -48
- package/dist/constants.d.ts +7 -5
- package/dist/index.cjs +101 -10
- package/dist/index.js +97 -10
- package/package.json +1 -1
- package/spec/openapi.json +2131 -50
- package/spec/openapi.yaml +1506 -42
package/spec/openapi.json
CHANGED
|
@@ -74,6 +74,14 @@
|
|
|
74
74
|
"x-page-description": "Manage your published docs sites.",
|
|
75
75
|
"description": "The Docs Sites API lets you programmatically manage published documentation sites within your organization. You can list and update all sites created under a specific organization, making it easy to audit or interact with site metadata at scale.\n\n{% openapi-schemas spec=\"gitbook\" schemas=\"Site\" grouped=\"false\" %}\n The Site object\n{% endopenapi-schemas %}\n"
|
|
76
76
|
},
|
|
77
|
+
{
|
|
78
|
+
"name": "site-change-requests",
|
|
79
|
+
"x-page-icon": "code-pull-request",
|
|
80
|
+
"x-page-title": "Site change requests",
|
|
81
|
+
"x-page-description": "Review and collaborate on proposed changes to a site before merging.",
|
|
82
|
+
"x-parent": "sites",
|
|
83
|
+
"description": "A site change request groups changes to a site's structure and to the content of any number of its spaces into one review, with a single lifecycle and a single merge decision.\n\n{% openapi-schemas spec=\"gitbook\" schemas=\"SiteChangeRequest\" grouped=\"false\" %}\n The SiteChangeRequest object\n{% endopenapi-schemas %}\n"
|
|
84
|
+
},
|
|
77
85
|
{
|
|
78
86
|
"name": "site-share-links",
|
|
79
87
|
"x-page-title": "Site share links",
|
|
@@ -2289,7 +2297,7 @@
|
|
|
2289
2297
|
"post": {
|
|
2290
2298
|
"operationId": "createChangeRequest",
|
|
2291
2299
|
"summary": "Create a new change request in a space",
|
|
2292
|
-
"description": "Creates a new change request, which is a draft working copy of the space's content — similar to a Git branch or pull request. Use this before making content edits to avoid modifying the live published content directly. Optionally supply a subject and a template to pre-populate the change request with content. Once created, use the change-request content endpoints to read and modify pages within the draft, then merge it when ready.",
|
|
2300
|
+
"description": "Creates a new change request, which is a draft working copy of the space's content — similar to a Git branch or pull request. Use this before making content edits to avoid modifying the live published content directly. Optionally supply a subject and a template to pre-populate the change request with content. Once created, use the change-request content endpoints to read and modify pages within the draft, then merge it when ready. When the change request fixes a documentation issue found by GitBook, pass its `siteFindingId` so that merging the change request resolves the finding.",
|
|
2293
2301
|
"x-gitbook-mcp": true,
|
|
2294
2302
|
"tags": [
|
|
2295
2303
|
"change-requests"
|
|
@@ -2343,6 +2351,14 @@
|
|
|
2343
2351
|
"template": {
|
|
2344
2352
|
"$ref": "#/components/schemas/ApplySpaceTemplate",
|
|
2345
2353
|
"description": "Template to apply to the change request"
|
|
2354
|
+
},
|
|
2355
|
+
"description": {
|
|
2356
|
+
"$ref": "#/components/schemas/JSONDocument",
|
|
2357
|
+
"description": "Description of the change request, explaining what it changes and why, for whoever reviews it. Only paragraphs and lists are kept; other blocks are stripped along with their text."
|
|
2358
|
+
},
|
|
2359
|
+
"siteFindingId": {
|
|
2360
|
+
"type": "string",
|
|
2361
|
+
"description": "The site finding this change request fixes. Merging the change request resolves the finding, once every change request linked to it has been merged. The finding's site must contain this space."
|
|
2346
2362
|
}
|
|
2347
2363
|
},
|
|
2348
2364
|
"additionalProperties": true
|
|
@@ -2513,7 +2529,7 @@
|
|
|
2513
2529
|
"patch": {
|
|
2514
2530
|
"operationId": "updateChangeRequestById",
|
|
2515
2531
|
"summary": "Update a change request's subject, description, or status",
|
|
2516
|
-
"description": "Updates the metadata of a change request. Use this to rename a change request, add context before requesting a review, or change the workflow status without merging. To update page content within the change request, use the content endpoint instead.",
|
|
2532
|
+
"description": "Updates the metadata of a change request. Use this to rename a change request, add context before requesting a review, or change the workflow status without merging. To update page content within the change request, use the content endpoint instead. Set `siteFindingId` to record that the change request fixes a documentation issue found by GitBook, so that merging it resolves the finding.",
|
|
2517
2533
|
"x-gitbook-mcp": true,
|
|
2518
2534
|
"x-gitbook-return-preference": true,
|
|
2519
2535
|
"tags": [
|
|
@@ -2568,6 +2584,13 @@
|
|
|
2568
2584
|
"open",
|
|
2569
2585
|
"archived"
|
|
2570
2586
|
]
|
|
2587
|
+
},
|
|
2588
|
+
"siteFindingId": {
|
|
2589
|
+
"type": [
|
|
2590
|
+
"string",
|
|
2591
|
+
"null"
|
|
2592
|
+
],
|
|
2593
|
+
"description": "The site finding this change request fixes. Merging the change request resolves the finding, once every change request linked to it has been merged. The finding's site must contain this space. Pass null to unlink a finding linked by mistake."
|
|
2571
2594
|
}
|
|
2572
2595
|
}
|
|
2573
2596
|
}
|
|
@@ -2862,6 +2885,59 @@
|
|
|
2862
2885
|
}
|
|
2863
2886
|
}
|
|
2864
2887
|
},
|
|
2888
|
+
"/spaces/{spaceId}/change-requests/{changeRequestId}/reviews/stats": {
|
|
2889
|
+
"get": {
|
|
2890
|
+
"operationId": "getReviewStatsByChangeRequestId",
|
|
2891
|
+
"summary": "Get review totals for a change request",
|
|
2892
|
+
"description": "Returns how many reviews were approved and how many requested changes, for the same reviews the list endpoint returns under the same filters. Use this to summarise where a change request stands without paginating through every review.",
|
|
2893
|
+
"x-gitbook-mcp": true,
|
|
2894
|
+
"tags": [
|
|
2895
|
+
"change-requests-reviews"
|
|
2896
|
+
],
|
|
2897
|
+
"security": [
|
|
2898
|
+
{
|
|
2899
|
+
"user": []
|
|
2900
|
+
},
|
|
2901
|
+
{
|
|
2902
|
+
"oauth": [
|
|
2903
|
+
"space:read"
|
|
2904
|
+
]
|
|
2905
|
+
}
|
|
2906
|
+
],
|
|
2907
|
+
"parameters": [
|
|
2908
|
+
{
|
|
2909
|
+
"$ref": "#/components/parameters/spaceId"
|
|
2910
|
+
},
|
|
2911
|
+
{
|
|
2912
|
+
"$ref": "#/components/parameters/changeRequestId"
|
|
2913
|
+
},
|
|
2914
|
+
{
|
|
2915
|
+
"in": "query",
|
|
2916
|
+
"name": "outdated",
|
|
2917
|
+
"description": "Filter reviews marked as outdated.",
|
|
2918
|
+
"schema": {
|
|
2919
|
+
"type": "boolean"
|
|
2920
|
+
}
|
|
2921
|
+
}
|
|
2922
|
+
],
|
|
2923
|
+
"responses": {
|
|
2924
|
+
"200": {
|
|
2925
|
+
"description": "Review totals for the given change request.",
|
|
2926
|
+
"content": {
|
|
2927
|
+
"application/json": {
|
|
2928
|
+
"schema": {
|
|
2929
|
+
"$ref": "#/components/schemas/ChangeRequestReviewStats"
|
|
2930
|
+
}
|
|
2931
|
+
}
|
|
2932
|
+
}
|
|
2933
|
+
},
|
|
2934
|
+
"404": {
|
|
2935
|
+
"description": "The change request or space could not be found.",
|
|
2936
|
+
"$ref": "#/components/responses/NotFoundError"
|
|
2937
|
+
}
|
|
2938
|
+
}
|
|
2939
|
+
}
|
|
2940
|
+
},
|
|
2865
2941
|
"/spaces/{spaceId}/change-requests/{changeRequestId}/reviews/{reviewId}": {
|
|
2866
2942
|
"get": {
|
|
2867
2943
|
"operationId": "getChangeRequestReviewById",
|
|
@@ -8412,7 +8488,19 @@
|
|
|
8412
8488
|
"content": {
|
|
8413
8489
|
"application/json": {
|
|
8414
8490
|
"schema": {
|
|
8415
|
-
"
|
|
8491
|
+
"allOf": [
|
|
8492
|
+
{
|
|
8493
|
+
"$ref": "#/components/schemas/Organization"
|
|
8494
|
+
},
|
|
8495
|
+
{
|
|
8496
|
+
"type": "object",
|
|
8497
|
+
"properties": {
|
|
8498
|
+
"subscriptionNotice": {
|
|
8499
|
+
"$ref": "#/components/schemas/SubscriptionNotice"
|
|
8500
|
+
}
|
|
8501
|
+
}
|
|
8502
|
+
}
|
|
8503
|
+
]
|
|
8416
8504
|
}
|
|
8417
8505
|
}
|
|
8418
8506
|
}
|
|
@@ -8518,11 +8606,24 @@
|
|
|
8518
8606
|
"ai": {
|
|
8519
8607
|
"type": "boolean"
|
|
8520
8608
|
},
|
|
8609
|
+
"aiSettings": {
|
|
8610
|
+
"$ref": "#/components/schemas/OrganizationAISettingsUpdate"
|
|
8611
|
+
},
|
|
8521
8612
|
"inviteLinks": {
|
|
8522
8613
|
"type": "boolean"
|
|
8523
8614
|
},
|
|
8524
8615
|
"mergeRules": {
|
|
8525
8616
|
"$ref": "#/components/schemas/MergeRulesStandaloneConfiguration"
|
|
8617
|
+
},
|
|
8618
|
+
"supportCost": {
|
|
8619
|
+
"oneOf": [
|
|
8620
|
+
{
|
|
8621
|
+
"$ref": "#/components/schemas/OrganizationSupportCost"
|
|
8622
|
+
},
|
|
8623
|
+
{
|
|
8624
|
+
"type": "null"
|
|
8625
|
+
}
|
|
8626
|
+
]
|
|
8526
8627
|
}
|
|
8527
8628
|
}
|
|
8528
8629
|
}
|
|
@@ -9086,6 +9187,46 @@
|
|
|
9086
9187
|
}
|
|
9087
9188
|
}
|
|
9088
9189
|
},
|
|
9190
|
+
"/orgs/{organizationId}/subscription": {
|
|
9191
|
+
"get": {
|
|
9192
|
+
"operationId": "getOrganizationSubscription",
|
|
9193
|
+
"summary": "Get an organization's subscription",
|
|
9194
|
+
"description": "Returns whether the organization is on a trial, the free plan or a paid plan, when its trial ends, and where to upgrade. Use it to answer questions about the plan or the trial, or to find how to upgrade.",
|
|
9195
|
+
"tags": [
|
|
9196
|
+
"organizations"
|
|
9197
|
+
],
|
|
9198
|
+
"security": [
|
|
9199
|
+
{
|
|
9200
|
+
"user": []
|
|
9201
|
+
},
|
|
9202
|
+
{
|
|
9203
|
+
"oauth": [
|
|
9204
|
+
"organization:read"
|
|
9205
|
+
]
|
|
9206
|
+
}
|
|
9207
|
+
],
|
|
9208
|
+
"parameters": [
|
|
9209
|
+
{
|
|
9210
|
+
"$ref": "#/components/parameters/organizationId"
|
|
9211
|
+
}
|
|
9212
|
+
],
|
|
9213
|
+
"responses": {
|
|
9214
|
+
"200": {
|
|
9215
|
+
"description": "OK",
|
|
9216
|
+
"content": {
|
|
9217
|
+
"application/json": {
|
|
9218
|
+
"schema": {
|
|
9219
|
+
"$ref": "#/components/schemas/OrganizationSubscription"
|
|
9220
|
+
}
|
|
9221
|
+
}
|
|
9222
|
+
}
|
|
9223
|
+
},
|
|
9224
|
+
"404": {
|
|
9225
|
+
"$ref": "#/components/responses/NotFoundError"
|
|
9226
|
+
}
|
|
9227
|
+
}
|
|
9228
|
+
}
|
|
9229
|
+
},
|
|
9089
9230
|
"/orgs/{organizationId}/members/{userId}/sso": {
|
|
9090
9231
|
"post": {
|
|
9091
9232
|
"operationId": "setUserAsSSOMemberForOrganization",
|
|
@@ -13344,7 +13485,7 @@
|
|
|
13344
13485
|
"get": {
|
|
13345
13486
|
"operationId": "listSites",
|
|
13346
13487
|
"summary": "List all documentation sites in an organization",
|
|
13347
|
-
"description": "Returns a paginated list of all documentation sites belonging to the organization. Use this to discover available sites before fetching their content, settings, or structure.",
|
|
13488
|
+
"description": "Returns a paginated list of all documentation sites belonging to the organization. Use this to discover available sites before fetching their content, settings, or structure. Members with access only to individual spaces receive the sites that use those spaces as site items, with site administration fields omitted.",
|
|
13348
13489
|
"x-gitbook-mcp": true,
|
|
13349
13490
|
"tags": [
|
|
13350
13491
|
"sites",
|
|
@@ -13518,7 +13659,7 @@
|
|
|
13518
13659
|
"get": {
|
|
13519
13660
|
"operationId": "getSiteById",
|
|
13520
13661
|
"summary": "Get a documentation site by its ID",
|
|
13521
|
-
"description": "Retrieves full details for a single documentation site. Use this to inspect a specific site's metadata before reading or modifying its settings, structure, or content.",
|
|
13662
|
+
"description": "Retrieves full details for a single documentation site. Use this to inspect a specific site's metadata before reading or modifying its settings, structure, or content. Members with access only through a linked space can retrieve a limited site summary; site administration fields are omitted.",
|
|
13522
13663
|
"x-gitbook-mcp": true,
|
|
13523
13664
|
"tags": [
|
|
13524
13665
|
"sites"
|
|
@@ -13825,8 +13966,8 @@
|
|
|
13825
13966
|
"type": "object",
|
|
13826
13967
|
"properties": {
|
|
13827
13968
|
"jsonSchema": {
|
|
13828
|
-
"description": "The JSON schema to set on the site.",
|
|
13829
|
-
"$ref": "#/components/schemas/
|
|
13969
|
+
"description": "The JSON schema to set on the site. `regions` is only accepted for organizations with regions enabled.",
|
|
13970
|
+
"$ref": "#/components/schemas/SiteAdaptiveJSONSchemaWithRegions"
|
|
13830
13971
|
}
|
|
13831
13972
|
},
|
|
13832
13973
|
"required": [
|
|
@@ -13981,7 +14122,19 @@
|
|
|
13981
14122
|
"schema": {
|
|
13982
14123
|
"oneOf": [
|
|
13983
14124
|
{
|
|
13984
|
-
"
|
|
14125
|
+
"allOf": [
|
|
14126
|
+
{
|
|
14127
|
+
"$ref": "#/components/schemas/Site"
|
|
14128
|
+
},
|
|
14129
|
+
{
|
|
14130
|
+
"type": "object",
|
|
14131
|
+
"properties": {
|
|
14132
|
+
"subscriptionNotice": {
|
|
14133
|
+
"$ref": "#/components/schemas/SubscriptionNotice"
|
|
14134
|
+
}
|
|
14135
|
+
}
|
|
14136
|
+
}
|
|
14137
|
+
]
|
|
13985
14138
|
},
|
|
13986
14139
|
{
|
|
13987
14140
|
"type": "object",
|
|
@@ -13996,6 +14149,9 @@
|
|
|
13996
14149
|
"sessionId": {
|
|
13997
14150
|
"type": "string",
|
|
13998
14151
|
"description": "Stripe payment session ID"
|
|
14152
|
+
},
|
|
14153
|
+
"subscriptionNotice": {
|
|
14154
|
+
"$ref": "#/components/schemas/SubscriptionNotice"
|
|
13999
14155
|
}
|
|
14000
14156
|
},
|
|
14001
14157
|
"required": [
|
|
@@ -14052,6 +14208,376 @@
|
|
|
14052
14208
|
}
|
|
14053
14209
|
}
|
|
14054
14210
|
},
|
|
14211
|
+
"/orgs/{organizationId}/sites/{siteId}/change-requests": {
|
|
14212
|
+
"get": {
|
|
14213
|
+
"operationId": "listChangeRequestsForSite",
|
|
14214
|
+
"summary": "List all change requests for a site",
|
|
14215
|
+
"description": "Returns a paginated list of change requests reviewing the site. A site change request groups changes to the site structure and to any number of its spaces into one review. Use this to discover existing change requests before creating a new one.",
|
|
14216
|
+
"x-internal": true,
|
|
14217
|
+
"tags": [
|
|
14218
|
+
"site-change-requests"
|
|
14219
|
+
],
|
|
14220
|
+
"security": [
|
|
14221
|
+
{
|
|
14222
|
+
"user": []
|
|
14223
|
+
},
|
|
14224
|
+
{
|
|
14225
|
+
"oauth": [
|
|
14226
|
+
"site:read"
|
|
14227
|
+
]
|
|
14228
|
+
}
|
|
14229
|
+
],
|
|
14230
|
+
"parameters": [
|
|
14231
|
+
{
|
|
14232
|
+
"$ref": "#/components/parameters/organizationId"
|
|
14233
|
+
},
|
|
14234
|
+
{
|
|
14235
|
+
"$ref": "#/components/parameters/siteId"
|
|
14236
|
+
},
|
|
14237
|
+
{
|
|
14238
|
+
"$ref": "#/components/parameters/listPage"
|
|
14239
|
+
},
|
|
14240
|
+
{
|
|
14241
|
+
"$ref": "#/components/parameters/listLimit"
|
|
14242
|
+
},
|
|
14243
|
+
{
|
|
14244
|
+
"name": "status",
|
|
14245
|
+
"in": "query",
|
|
14246
|
+
"required": false,
|
|
14247
|
+
"schema": {
|
|
14248
|
+
"$ref": "#/components/schemas/ChangeRequestStatus",
|
|
14249
|
+
"default": "open"
|
|
14250
|
+
},
|
|
14251
|
+
"description": "If defined, only change requests matching this status will be returned."
|
|
14252
|
+
},
|
|
14253
|
+
{
|
|
14254
|
+
"name": "createdBy",
|
|
14255
|
+
"in": "query",
|
|
14256
|
+
"required": false,
|
|
14257
|
+
"schema": {
|
|
14258
|
+
"type": "string"
|
|
14259
|
+
},
|
|
14260
|
+
"description": "If defined, only change requests created by this user will be returned."
|
|
14261
|
+
},
|
|
14262
|
+
{
|
|
14263
|
+
"name": "openedBy",
|
|
14264
|
+
"in": "query",
|
|
14265
|
+
"required": false,
|
|
14266
|
+
"schema": {
|
|
14267
|
+
"type": "string"
|
|
14268
|
+
},
|
|
14269
|
+
"description": "If defined, only change requests moved out of draft by this user will be returned."
|
|
14270
|
+
},
|
|
14271
|
+
{
|
|
14272
|
+
"name": "archivedBy",
|
|
14273
|
+
"in": "query",
|
|
14274
|
+
"required": false,
|
|
14275
|
+
"schema": {
|
|
14276
|
+
"type": "string"
|
|
14277
|
+
},
|
|
14278
|
+
"description": "If defined, only change requests archived by this user will be returned."
|
|
14279
|
+
},
|
|
14280
|
+
{
|
|
14281
|
+
"name": "mergedBy",
|
|
14282
|
+
"in": "query",
|
|
14283
|
+
"required": false,
|
|
14284
|
+
"schema": {
|
|
14285
|
+
"type": "string"
|
|
14286
|
+
},
|
|
14287
|
+
"description": "If defined, only change requests merged by this user will be returned."
|
|
14288
|
+
},
|
|
14289
|
+
{
|
|
14290
|
+
"name": "contributor",
|
|
14291
|
+
"in": "query",
|
|
14292
|
+
"required": false,
|
|
14293
|
+
"schema": {
|
|
14294
|
+
"type": "string"
|
|
14295
|
+
},
|
|
14296
|
+
"description": "If defined, only change requests with contributions from this user will be returned."
|
|
14297
|
+
},
|
|
14298
|
+
{
|
|
14299
|
+
"name": "memberStatus",
|
|
14300
|
+
"in": "query",
|
|
14301
|
+
"required": false,
|
|
14302
|
+
"schema": {
|
|
14303
|
+
"$ref": "#/components/schemas/SiteChangeRequestMemberStatus",
|
|
14304
|
+
"default": "active"
|
|
14305
|
+
},
|
|
14306
|
+
"description": "Status of the members."
|
|
14307
|
+
},
|
|
14308
|
+
{
|
|
14309
|
+
"name": "orderBy",
|
|
14310
|
+
"in": "query",
|
|
14311
|
+
"required": false,
|
|
14312
|
+
"schema": {
|
|
14313
|
+
"$ref": "#/components/schemas/ChangeRequestOrderBy"
|
|
14314
|
+
}
|
|
14315
|
+
}
|
|
14316
|
+
],
|
|
14317
|
+
"responses": {
|
|
14318
|
+
"200": {
|
|
14319
|
+
"description": "List of the site's change requests",
|
|
14320
|
+
"content": {
|
|
14321
|
+
"application/json": {
|
|
14322
|
+
"schema": {
|
|
14323
|
+
"allOf": [
|
|
14324
|
+
{
|
|
14325
|
+
"$ref": "#/components/schemas/List"
|
|
14326
|
+
},
|
|
14327
|
+
{
|
|
14328
|
+
"type": "object",
|
|
14329
|
+
"required": [
|
|
14330
|
+
"items"
|
|
14331
|
+
],
|
|
14332
|
+
"properties": {
|
|
14333
|
+
"items": {
|
|
14334
|
+
"type": "array",
|
|
14335
|
+
"items": {
|
|
14336
|
+
"$ref": "#/components/schemas/SiteChangeRequest"
|
|
14337
|
+
}
|
|
14338
|
+
}
|
|
14339
|
+
}
|
|
14340
|
+
}
|
|
14341
|
+
]
|
|
14342
|
+
}
|
|
14343
|
+
}
|
|
14344
|
+
}
|
|
14345
|
+
}
|
|
14346
|
+
}
|
|
14347
|
+
},
|
|
14348
|
+
"post": {
|
|
14349
|
+
"operationId": "createSiteChangeRequest",
|
|
14350
|
+
"summary": "Create a new change request in a site",
|
|
14351
|
+
"description": "Creates a change request reviewing the site, as a draft working copy of the content of the spaces it changes. It starts with no members: a space becomes one on its first edit.",
|
|
14352
|
+
"x-internal": true,
|
|
14353
|
+
"tags": [
|
|
14354
|
+
"site-change-requests"
|
|
14355
|
+
],
|
|
14356
|
+
"security": [
|
|
14357
|
+
{
|
|
14358
|
+
"user": []
|
|
14359
|
+
},
|
|
14360
|
+
{
|
|
14361
|
+
"oauth": [
|
|
14362
|
+
"site:write"
|
|
14363
|
+
]
|
|
14364
|
+
}
|
|
14365
|
+
],
|
|
14366
|
+
"parameters": [
|
|
14367
|
+
{
|
|
14368
|
+
"$ref": "#/components/parameters/organizationId"
|
|
14369
|
+
},
|
|
14370
|
+
{
|
|
14371
|
+
"$ref": "#/components/parameters/siteId"
|
|
14372
|
+
}
|
|
14373
|
+
],
|
|
14374
|
+
"requestBody": {
|
|
14375
|
+
"required": true,
|
|
14376
|
+
"content": {
|
|
14377
|
+
"application/json": {
|
|
14378
|
+
"schema": {
|
|
14379
|
+
"type": "object",
|
|
14380
|
+
"properties": {
|
|
14381
|
+
"subject": {
|
|
14382
|
+
"$ref": "#/components/schemas/ChangeRequestSubject"
|
|
14383
|
+
},
|
|
14384
|
+
"description": {
|
|
14385
|
+
"$ref": "#/components/schemas/JSONDocument"
|
|
14386
|
+
}
|
|
14387
|
+
}
|
|
14388
|
+
}
|
|
14389
|
+
}
|
|
14390
|
+
}
|
|
14391
|
+
},
|
|
14392
|
+
"responses": {
|
|
14393
|
+
"201": {
|
|
14394
|
+
"description": "The change request has been created",
|
|
14395
|
+
"headers": {
|
|
14396
|
+
"Location": {
|
|
14397
|
+
"description": "API URL for the newly created change request",
|
|
14398
|
+
"schema": {
|
|
14399
|
+
"type": "string"
|
|
14400
|
+
}
|
|
14401
|
+
}
|
|
14402
|
+
},
|
|
14403
|
+
"content": {
|
|
14404
|
+
"application/json": {
|
|
14405
|
+
"schema": {
|
|
14406
|
+
"$ref": "#/components/schemas/SiteChangeRequest"
|
|
14407
|
+
}
|
|
14408
|
+
}
|
|
14409
|
+
}
|
|
14410
|
+
}
|
|
14411
|
+
}
|
|
14412
|
+
}
|
|
14413
|
+
},
|
|
14414
|
+
"/orgs/{organizationId}/sites/{siteId}/change-requests/{changeRequestId}": {
|
|
14415
|
+
"get": {
|
|
14416
|
+
"operationId": "getSiteChangeRequestById",
|
|
14417
|
+
"summary": "Get a site change request by its ID",
|
|
14418
|
+
"description": "Retrieves a single site change request, including its status, subject, description, aggregate version and active members. Use this to check its current state before deciding to merge, update or request a review.",
|
|
14419
|
+
"x-internal": true,
|
|
14420
|
+
"tags": [
|
|
14421
|
+
"site-change-requests"
|
|
14422
|
+
],
|
|
14423
|
+
"security": [
|
|
14424
|
+
{
|
|
14425
|
+
"user": []
|
|
14426
|
+
},
|
|
14427
|
+
{
|
|
14428
|
+
"oauth": [
|
|
14429
|
+
"site:read"
|
|
14430
|
+
]
|
|
14431
|
+
}
|
|
14432
|
+
],
|
|
14433
|
+
"parameters": [
|
|
14434
|
+
{
|
|
14435
|
+
"$ref": "#/components/parameters/organizationId"
|
|
14436
|
+
},
|
|
14437
|
+
{
|
|
14438
|
+
"$ref": "#/components/parameters/siteId"
|
|
14439
|
+
},
|
|
14440
|
+
{
|
|
14441
|
+
"$ref": "#/components/parameters/siteChangeRequestId"
|
|
14442
|
+
}
|
|
14443
|
+
],
|
|
14444
|
+
"responses": {
|
|
14445
|
+
"200": {
|
|
14446
|
+
"description": "The matching change request",
|
|
14447
|
+
"content": {
|
|
14448
|
+
"application/json": {
|
|
14449
|
+
"schema": {
|
|
14450
|
+
"$ref": "#/components/schemas/SiteChangeRequest"
|
|
14451
|
+
}
|
|
14452
|
+
}
|
|
14453
|
+
}
|
|
14454
|
+
},
|
|
14455
|
+
"404": {
|
|
14456
|
+
"description": "The change request could not be found.",
|
|
14457
|
+
"$ref": "#/components/responses/NotFoundError"
|
|
14458
|
+
}
|
|
14459
|
+
}
|
|
14460
|
+
},
|
|
14461
|
+
"patch": {
|
|
14462
|
+
"operationId": "updateSiteChangeRequestById",
|
|
14463
|
+
"summary": "Update a site change request's subject, description, or status",
|
|
14464
|
+
"description": "Updates the metadata of a site change request. Use this to rename it, add context before requesting a review, or change its workflow status without merging. To change the resources it reviews, update its members instead.",
|
|
14465
|
+
"x-internal": true,
|
|
14466
|
+
"tags": [
|
|
14467
|
+
"site-change-requests"
|
|
14468
|
+
],
|
|
14469
|
+
"security": [
|
|
14470
|
+
{
|
|
14471
|
+
"user": []
|
|
14472
|
+
},
|
|
14473
|
+
{
|
|
14474
|
+
"oauth": [
|
|
14475
|
+
"site:write"
|
|
14476
|
+
]
|
|
14477
|
+
}
|
|
14478
|
+
],
|
|
14479
|
+
"parameters": [
|
|
14480
|
+
{
|
|
14481
|
+
"$ref": "#/components/parameters/organizationId"
|
|
14482
|
+
},
|
|
14483
|
+
{
|
|
14484
|
+
"$ref": "#/components/parameters/siteId"
|
|
14485
|
+
},
|
|
14486
|
+
{
|
|
14487
|
+
"$ref": "#/components/parameters/siteChangeRequestId"
|
|
14488
|
+
}
|
|
14489
|
+
],
|
|
14490
|
+
"requestBody": {
|
|
14491
|
+
"required": true,
|
|
14492
|
+
"content": {
|
|
14493
|
+
"application/json": {
|
|
14494
|
+
"schema": {
|
|
14495
|
+
"type": "object",
|
|
14496
|
+
"minProperties": 1,
|
|
14497
|
+
"properties": {
|
|
14498
|
+
"subject": {
|
|
14499
|
+
"$ref": "#/components/schemas/ChangeRequestSubject"
|
|
14500
|
+
},
|
|
14501
|
+
"description": {
|
|
14502
|
+
"$ref": "#/components/schemas/JSONDocument"
|
|
14503
|
+
},
|
|
14504
|
+
"status": {
|
|
14505
|
+
"type": "string",
|
|
14506
|
+
"enum": [
|
|
14507
|
+
"draft",
|
|
14508
|
+
"open",
|
|
14509
|
+
"archived"
|
|
14510
|
+
]
|
|
14511
|
+
}
|
|
14512
|
+
}
|
|
14513
|
+
}
|
|
14514
|
+
}
|
|
14515
|
+
}
|
|
14516
|
+
},
|
|
14517
|
+
"responses": {
|
|
14518
|
+
"200": {
|
|
14519
|
+
"description": "The change request has been updated",
|
|
14520
|
+
"content": {
|
|
14521
|
+
"application/json": {
|
|
14522
|
+
"schema": {
|
|
14523
|
+
"$ref": "#/components/schemas/SiteChangeRequest"
|
|
14524
|
+
}
|
|
14525
|
+
}
|
|
14526
|
+
}
|
|
14527
|
+
},
|
|
14528
|
+
"404": {
|
|
14529
|
+
"description": "The change request could not be found.",
|
|
14530
|
+
"$ref": "#/components/responses/NotFoundError"
|
|
14531
|
+
},
|
|
14532
|
+
"409": {
|
|
14533
|
+
"description": "The change request has been merged and can no longer be changed.",
|
|
14534
|
+
"$ref": "#/components/responses/ConflictError"
|
|
14535
|
+
}
|
|
14536
|
+
}
|
|
14537
|
+
},
|
|
14538
|
+
"delete": {
|
|
14539
|
+
"operationId": "deleteSiteChangeRequestById",
|
|
14540
|
+
"summary": "Delete a site change request",
|
|
14541
|
+
"description": "Permanently deletes a change request and its members. Merged change requests cannot be deleted; archive a change request instead to keep its review history.",
|
|
14542
|
+
"x-internal": true,
|
|
14543
|
+
"tags": [
|
|
14544
|
+
"site-change-requests"
|
|
14545
|
+
],
|
|
14546
|
+
"security": [
|
|
14547
|
+
{
|
|
14548
|
+
"user": []
|
|
14549
|
+
},
|
|
14550
|
+
{
|
|
14551
|
+
"oauth": [
|
|
14552
|
+
"site:write"
|
|
14553
|
+
]
|
|
14554
|
+
}
|
|
14555
|
+
],
|
|
14556
|
+
"parameters": [
|
|
14557
|
+
{
|
|
14558
|
+
"$ref": "#/components/parameters/organizationId"
|
|
14559
|
+
},
|
|
14560
|
+
{
|
|
14561
|
+
"$ref": "#/components/parameters/siteId"
|
|
14562
|
+
},
|
|
14563
|
+
{
|
|
14564
|
+
"$ref": "#/components/parameters/siteChangeRequestId"
|
|
14565
|
+
}
|
|
14566
|
+
],
|
|
14567
|
+
"responses": {
|
|
14568
|
+
"204": {
|
|
14569
|
+
"description": "The change request did not exist"
|
|
14570
|
+
},
|
|
14571
|
+
"205": {
|
|
14572
|
+
"description": "The change request has been deleted"
|
|
14573
|
+
},
|
|
14574
|
+
"409": {
|
|
14575
|
+
"description": "The change request has been merged and cannot be deleted.",
|
|
14576
|
+
"$ref": "#/components/responses/ConflictError"
|
|
14577
|
+
}
|
|
14578
|
+
}
|
|
14579
|
+
}
|
|
14580
|
+
},
|
|
14055
14581
|
"/orgs/{organizationId}/sites/{siteId}/share-links": {
|
|
14056
14582
|
"get": {
|
|
14057
14583
|
"operationId": "listSiteShareLinks",
|
|
@@ -14293,7 +14819,7 @@
|
|
|
14293
14819
|
"get": {
|
|
14294
14820
|
"operationId": "getSiteStructure",
|
|
14295
14821
|
"summary": "Get the full navigation structure of a site",
|
|
14296
|
-
"description": "Returns the complete hierarchical structure of a site, including all sections, section groups, and site spaces in their current order. Use this to understand how a site's navigation is organized before making structural changes, or to render the full navigation tree of a site.",
|
|
14822
|
+
"description": "Returns the complete hierarchical structure of a site, including all sections, section groups, and site spaces in their current order. Use this to understand how a site's navigation is organized before making structural changes, or to render the full navigation tree of a site. Members with access only to individual spaces receive only the site items backed by those spaces and their parent sections.",
|
|
14297
14823
|
"x-gitbook-mcp": true,
|
|
14298
14824
|
"tags": [
|
|
14299
14825
|
"site-structure"
|
|
@@ -14607,6 +15133,14 @@
|
|
|
14607
15133
|
"type": "string"
|
|
14608
15134
|
}
|
|
14609
15135
|
},
|
|
15136
|
+
{
|
|
15137
|
+
"name": "country",
|
|
15138
|
+
"in": "query",
|
|
15139
|
+
"description": "ISO 3166-1 alpha-2 code of the country of the visitor for which we want to preview the site. It is matched against the `regions` of the site adaptive schema to resolve `visitor.region`.",
|
|
15140
|
+
"schema": {
|
|
15141
|
+
"type": "string"
|
|
15142
|
+
}
|
|
15143
|
+
},
|
|
14610
15144
|
{
|
|
14611
15145
|
"name": "draft",
|
|
14612
15146
|
"in": "query",
|
|
@@ -14738,7 +15272,19 @@
|
|
|
14738
15272
|
"content": {
|
|
14739
15273
|
"application/json": {
|
|
14740
15274
|
"schema": {
|
|
14741
|
-
"
|
|
15275
|
+
"allOf": [
|
|
15276
|
+
{
|
|
15277
|
+
"$ref": "#/components/schemas/SiteCustomizationSettings"
|
|
15278
|
+
},
|
|
15279
|
+
{
|
|
15280
|
+
"type": "object",
|
|
15281
|
+
"properties": {
|
|
15282
|
+
"subscriptionNotice": {
|
|
15283
|
+
"$ref": "#/components/schemas/SubscriptionNotice"
|
|
15284
|
+
}
|
|
15285
|
+
}
|
|
15286
|
+
}
|
|
15287
|
+
]
|
|
14742
15288
|
}
|
|
14743
15289
|
}
|
|
14744
15290
|
}
|
|
@@ -14977,7 +15523,7 @@
|
|
|
14977
15523
|
"get": {
|
|
14978
15524
|
"operationId": "listSiteSpaces",
|
|
14979
15525
|
"summary": "List all spaces linked to a site as content sources",
|
|
14980
|
-
"description": "Returns a paginated list of site spaces — the links between a site and its content source spaces. Each site space can be a language variant or content version within a section. Use the default filter to retrieve only the primary site space, or omit it to get all linked spaces including drafts.",
|
|
15526
|
+
"description": "Returns a paginated list of site spaces — the links between a site and its content source spaces. Each site space can be a language variant or content version within a section. Use the default filter to retrieve only the primary site space, or omit it to get all linked spaces including drafts. Members with access only to individual spaces receive only site-space links for those spaces.",
|
|
14981
15527
|
"x-gitbook-mcp": true,
|
|
14982
15528
|
"tags": [
|
|
14983
15529
|
"site-spaces",
|
|
@@ -15197,7 +15743,19 @@
|
|
|
15197
15743
|
"content": {
|
|
15198
15744
|
"application/json": {
|
|
15199
15745
|
"schema": {
|
|
15200
|
-
"
|
|
15746
|
+
"allOf": [
|
|
15747
|
+
{
|
|
15748
|
+
"$ref": "#/components/schemas/SiteSectionGroup"
|
|
15749
|
+
},
|
|
15750
|
+
{
|
|
15751
|
+
"type": "object",
|
|
15752
|
+
"properties": {
|
|
15753
|
+
"subscriptionNotice": {
|
|
15754
|
+
"$ref": "#/components/schemas/SubscriptionNotice"
|
|
15755
|
+
}
|
|
15756
|
+
}
|
|
15757
|
+
}
|
|
15758
|
+
]
|
|
15201
15759
|
}
|
|
15202
15760
|
}
|
|
15203
15761
|
}
|
|
@@ -15445,7 +16003,19 @@
|
|
|
15445
16003
|
"content": {
|
|
15446
16004
|
"application/json": {
|
|
15447
16005
|
"schema": {
|
|
15448
|
-
"
|
|
16006
|
+
"allOf": [
|
|
16007
|
+
{
|
|
16008
|
+
"$ref": "#/components/schemas/SiteSection"
|
|
16009
|
+
},
|
|
16010
|
+
{
|
|
16011
|
+
"type": "object",
|
|
16012
|
+
"properties": {
|
|
16013
|
+
"subscriptionNotice": {
|
|
16014
|
+
"$ref": "#/components/schemas/SubscriptionNotice"
|
|
16015
|
+
}
|
|
16016
|
+
}
|
|
16017
|
+
}
|
|
16018
|
+
]
|
|
15449
16019
|
}
|
|
15450
16020
|
}
|
|
15451
16021
|
}
|
|
@@ -16808,7 +17378,7 @@
|
|
|
16808
17378
|
"get": {
|
|
16809
17379
|
"operationId": "listSiteFindings",
|
|
16810
17380
|
"summary": "List documentation issues GitBook has found on a site",
|
|
16811
|
-
"description": "Lists the quality issues GitBook's AI has identified on a site by comparing its content against real usage and external sources — content gaps, outdated or incorrect content, and broken or outbound links. Use this when asked to find, audit, or fix problems in a site's docs.",
|
|
17381
|
+
"description": "Lists the quality issues GitBook's AI has identified on a site by comparing its content against real usage and external sources — content gaps, outdated or incorrect content, and broken or outbound links. Use this when asked to find, audit, or fix problems in a site's docs. Only findings with status \"open\" need work; \"candidate\" ones have not been confirmed yet. A \"broken-link\" finding is fixed by a redirect rather than a content edit: pass its `brokenLinkAction` to createSiteRedirect. Fix the rest by opening a change request with its `siteFindingId` set, so merging the change request resolves it.",
|
|
16812
17382
|
"x-gitbook-mcp": true,
|
|
16813
17383
|
"tags": [
|
|
16814
17384
|
"site-context"
|
|
@@ -16871,6 +17441,14 @@
|
|
|
16871
17441
|
}
|
|
16872
17442
|
}
|
|
16873
17443
|
},
|
|
17444
|
+
{
|
|
17445
|
+
"name": "url",
|
|
17446
|
+
"in": "query",
|
|
17447
|
+
"description": "Filter link findings whose URL contains this text: the broken path of a `broken-link` finding, or the checked URL of an `outbound-link-error` one. Findings of any other type never match, so this narrows the list to link findings on its own.",
|
|
17448
|
+
"schema": {
|
|
17449
|
+
"type": "string"
|
|
17450
|
+
}
|
|
17451
|
+
},
|
|
16874
17452
|
{
|
|
16875
17453
|
"name": "severity",
|
|
16876
17454
|
"in": "query",
|
|
@@ -20963,6 +21541,10 @@
|
|
|
20963
21541
|
"schema": {
|
|
20964
21542
|
"type": "object",
|
|
20965
21543
|
"properties": {
|
|
21544
|
+
"siteFindingId": {
|
|
21545
|
+
"type": "string",
|
|
21546
|
+
"description": "The broken-link finding that prompted this redirect. Must belong to this site. Used to attribute redirect creation, including drafts, to the finding."
|
|
21547
|
+
},
|
|
20966
21548
|
"source": {
|
|
20967
21549
|
"$ref": "#/components/schemas/SiteRedirectSourcePath"
|
|
20968
21550
|
},
|
|
@@ -21978,6 +22560,221 @@
|
|
|
21978
22560
|
}
|
|
21979
22561
|
}
|
|
21980
22562
|
},
|
|
22563
|
+
"/orgs/{organizationId}/sites/{siteId}/channels/scopes": {
|
|
22564
|
+
"post": {
|
|
22565
|
+
"operationId": "listSiteChannelScopes",
|
|
22566
|
+
"summary": "List available site channel scopes",
|
|
22567
|
+
"description": "Lists accessible Linear teams, GitHub repositories, Slack channels or Jira projects. Requires site admin permission. Linear, GitHub and Slack require an already-connected channel belonging to this site and matching the provider. Jira credentials are verified without saving a connection. Slack includes public channels and accessible private channels, excluding archived channels. To fetch another page, pass the opaque token from `next.page` as the `page` query parameter with the same request body. An absent `next` means there are no more pages; an empty `items` array alone does not indicate the end of the list.",
|
|
22568
|
+
"x-gitbook-mcp": true,
|
|
22569
|
+
"tags": [
|
|
22570
|
+
"site-channels"
|
|
22571
|
+
],
|
|
22572
|
+
"security": [
|
|
22573
|
+
{
|
|
22574
|
+
"user": []
|
|
22575
|
+
},
|
|
22576
|
+
{
|
|
22577
|
+
"oauth": [
|
|
22578
|
+
"site:read"
|
|
22579
|
+
]
|
|
22580
|
+
}
|
|
22581
|
+
],
|
|
22582
|
+
"parameters": [
|
|
22583
|
+
{
|
|
22584
|
+
"$ref": "#/components/parameters/organizationId"
|
|
22585
|
+
},
|
|
22586
|
+
{
|
|
22587
|
+
"$ref": "#/components/parameters/siteId"
|
|
22588
|
+
},
|
|
22589
|
+
{
|
|
22590
|
+
"$ref": "#/components/parameters/listPage"
|
|
22591
|
+
}
|
|
22592
|
+
],
|
|
22593
|
+
"requestBody": {
|
|
22594
|
+
"required": true,
|
|
22595
|
+
"content": {
|
|
22596
|
+
"application/json": {
|
|
22597
|
+
"schema": {
|
|
22598
|
+
"oneOf": [
|
|
22599
|
+
{
|
|
22600
|
+
"type": "object",
|
|
22601
|
+
"required": [
|
|
22602
|
+
"provider",
|
|
22603
|
+
"siteChannelId"
|
|
22604
|
+
],
|
|
22605
|
+
"properties": {
|
|
22606
|
+
"provider": {
|
|
22607
|
+
"type": "string",
|
|
22608
|
+
"enum": [
|
|
22609
|
+
"linear"
|
|
22610
|
+
]
|
|
22611
|
+
},
|
|
22612
|
+
"siteChannelId": {
|
|
22613
|
+
"type": "string",
|
|
22614
|
+
"description": "ID of an already-connected channel belonging to this site and matching the provider."
|
|
22615
|
+
}
|
|
22616
|
+
}
|
|
22617
|
+
},
|
|
22618
|
+
{
|
|
22619
|
+
"type": "object",
|
|
22620
|
+
"required": [
|
|
22621
|
+
"provider",
|
|
22622
|
+
"siteChannelId"
|
|
22623
|
+
],
|
|
22624
|
+
"properties": {
|
|
22625
|
+
"provider": {
|
|
22626
|
+
"type": "string",
|
|
22627
|
+
"enum": [
|
|
22628
|
+
"github"
|
|
22629
|
+
]
|
|
22630
|
+
},
|
|
22631
|
+
"siteChannelId": {
|
|
22632
|
+
"type": "string",
|
|
22633
|
+
"description": "ID of an already-connected channel belonging to this site and matching the provider."
|
|
22634
|
+
}
|
|
22635
|
+
}
|
|
22636
|
+
},
|
|
22637
|
+
{
|
|
22638
|
+
"type": "object",
|
|
22639
|
+
"required": [
|
|
22640
|
+
"provider",
|
|
22641
|
+
"siteChannelId"
|
|
22642
|
+
],
|
|
22643
|
+
"properties": {
|
|
22644
|
+
"provider": {
|
|
22645
|
+
"type": "string",
|
|
22646
|
+
"enum": [
|
|
22647
|
+
"slack"
|
|
22648
|
+
]
|
|
22649
|
+
},
|
|
22650
|
+
"siteChannelId": {
|
|
22651
|
+
"type": "string",
|
|
22652
|
+
"description": "ID of an already-connected channel belonging to this site and matching the provider."
|
|
22653
|
+
}
|
|
22654
|
+
}
|
|
22655
|
+
},
|
|
22656
|
+
{
|
|
22657
|
+
"type": "object",
|
|
22658
|
+
"required": [
|
|
22659
|
+
"provider",
|
|
22660
|
+
"credentials"
|
|
22661
|
+
],
|
|
22662
|
+
"properties": {
|
|
22663
|
+
"provider": {
|
|
22664
|
+
"type": "string",
|
|
22665
|
+
"enum": [
|
|
22666
|
+
"jira"
|
|
22667
|
+
]
|
|
22668
|
+
},
|
|
22669
|
+
"credentials": {
|
|
22670
|
+
"type": "object",
|
|
22671
|
+
"required": [
|
|
22672
|
+
"baseUrl",
|
|
22673
|
+
"apiEmail",
|
|
22674
|
+
"apiToken"
|
|
22675
|
+
],
|
|
22676
|
+
"properties": {
|
|
22677
|
+
"baseUrl": {
|
|
22678
|
+
"type": "string",
|
|
22679
|
+
"format": "uri",
|
|
22680
|
+
"minLength": 1,
|
|
22681
|
+
"maxLength": 2048,
|
|
22682
|
+
"description": "Base URL of the Jira Cloud site, e.g. https://your-team.atlassian.net."
|
|
22683
|
+
},
|
|
22684
|
+
"apiEmail": {
|
|
22685
|
+
"type": "string",
|
|
22686
|
+
"format": "email",
|
|
22687
|
+
"minLength": 1,
|
|
22688
|
+
"maxLength": 254,
|
|
22689
|
+
"description": "Email of the Atlassian account whose API token is used."
|
|
22690
|
+
},
|
|
22691
|
+
"apiToken": {
|
|
22692
|
+
"type": "string",
|
|
22693
|
+
"minLength": 1,
|
|
22694
|
+
"maxLength": 1024,
|
|
22695
|
+
"description": "Atlassian API token used to verify the account and list accessible projects. Not saved."
|
|
22696
|
+
}
|
|
22697
|
+
}
|
|
22698
|
+
}
|
|
22699
|
+
}
|
|
22700
|
+
}
|
|
22701
|
+
],
|
|
22702
|
+
"discriminator": {
|
|
22703
|
+
"propertyName": "provider"
|
|
22704
|
+
}
|
|
22705
|
+
}
|
|
22706
|
+
}
|
|
22707
|
+
}
|
|
22708
|
+
},
|
|
22709
|
+
"responses": {
|
|
22710
|
+
"200": {
|
|
22711
|
+
"description": "Scopes available through the connected provider or supplied Jira credentials",
|
|
22712
|
+
"content": {
|
|
22713
|
+
"application/json": {
|
|
22714
|
+
"schema": {
|
|
22715
|
+
"allOf": [
|
|
22716
|
+
{
|
|
22717
|
+
"$ref": "#/components/schemas/List"
|
|
22718
|
+
},
|
|
22719
|
+
{
|
|
22720
|
+
"type": "object",
|
|
22721
|
+
"required": [
|
|
22722
|
+
"object",
|
|
22723
|
+
"items",
|
|
22724
|
+
"connection"
|
|
22725
|
+
],
|
|
22726
|
+
"properties": {
|
|
22727
|
+
"object": {
|
|
22728
|
+
"type": "string",
|
|
22729
|
+
"enum": [
|
|
22730
|
+
"site-channel-scopes"
|
|
22731
|
+
]
|
|
22732
|
+
},
|
|
22733
|
+
"connection": {
|
|
22734
|
+
"type": "string",
|
|
22735
|
+
"description": "Linear workspace name, GitHub account name, Slack workspace name (or ID if unavailable), or Jira Cloud hostname."
|
|
22736
|
+
},
|
|
22737
|
+
"items": {
|
|
22738
|
+
"type": "array",
|
|
22739
|
+
"items": {
|
|
22740
|
+
"type": "object",
|
|
22741
|
+
"required": [
|
|
22742
|
+
"key",
|
|
22743
|
+
"name"
|
|
22744
|
+
],
|
|
22745
|
+
"properties": {
|
|
22746
|
+
"key": {
|
|
22747
|
+
"type": "string",
|
|
22748
|
+
"description": "Value accepted by the provider scope settings, such as a team key, repository full name, channel name, Jira project key."
|
|
22749
|
+
},
|
|
22750
|
+
"name": {
|
|
22751
|
+
"type": "string"
|
|
22752
|
+
}
|
|
22753
|
+
}
|
|
22754
|
+
}
|
|
22755
|
+
}
|
|
22756
|
+
}
|
|
22757
|
+
}
|
|
22758
|
+
]
|
|
22759
|
+
}
|
|
22760
|
+
}
|
|
22761
|
+
}
|
|
22762
|
+
},
|
|
22763
|
+
"400": {
|
|
22764
|
+
"$ref": "#/components/responses/BadRequestError"
|
|
22765
|
+
},
|
|
22766
|
+
"401": {
|
|
22767
|
+
"$ref": "#/components/responses/UnauthorizedError"
|
|
22768
|
+
},
|
|
22769
|
+
"403": {
|
|
22770
|
+
"$ref": "#/components/responses/ForbiddenError"
|
|
22771
|
+
},
|
|
22772
|
+
"404": {
|
|
22773
|
+
"$ref": "#/components/responses/NotFoundError"
|
|
22774
|
+
}
|
|
22775
|
+
}
|
|
22776
|
+
}
|
|
22777
|
+
},
|
|
21981
22778
|
"/orgs/{organizationId}/sites/{siteId}/channels/{siteChannelId}": {
|
|
21982
22779
|
"get": {
|
|
21983
22780
|
"operationId": "getSiteChannelById",
|
|
@@ -22088,6 +22885,7 @@
|
|
|
22088
22885
|
"delete": {
|
|
22089
22886
|
"operationId": "deleteSiteChannelById",
|
|
22090
22887
|
"summary": "Delete a GitBook Agent channel from a site",
|
|
22888
|
+
"description": "Removes the channel configuration from the site, so GitBook Agent stops answering and collaborating through the connected platform. The app itself is not uninstalled and its access is not revoked on the platform, so remove it there as well to fully disconnect.",
|
|
22091
22889
|
"tags": [
|
|
22092
22890
|
"site-channels"
|
|
22093
22891
|
],
|
|
@@ -23960,6 +24758,15 @@
|
|
|
23960
24758
|
"type": "string"
|
|
23961
24759
|
}
|
|
23962
24760
|
},
|
|
24761
|
+
"siteChangeRequestId": {
|
|
24762
|
+
"name": "changeRequestId",
|
|
24763
|
+
"in": "path",
|
|
24764
|
+
"required": true,
|
|
24765
|
+
"description": "The unique ID of the change request or its number identifier in the site",
|
|
24766
|
+
"schema": {
|
|
24767
|
+
"$ref": "#/components/schemas/EntityId"
|
|
24768
|
+
}
|
|
24769
|
+
},
|
|
23963
24770
|
"shareLinkId": {
|
|
23964
24771
|
"name": "shareLinkId",
|
|
23965
24772
|
"in": "path",
|
|
@@ -24720,6 +25527,10 @@
|
|
|
24720
25527
|
"type": "string",
|
|
24721
25528
|
"description": "The URL to the repository tree, used when rendering public content."
|
|
24722
25529
|
},
|
|
25530
|
+
"installationProjectDirectory": {
|
|
25531
|
+
"type": "string",
|
|
25532
|
+
"description": "Directory in the repository this content syncs from, resolved against the parent installation when the installation is managed by a site. Absent when the content syncs from the root of the repository."
|
|
25533
|
+
},
|
|
24723
25534
|
"operation": {
|
|
24724
25535
|
"type": "object",
|
|
24725
25536
|
"description": "The latest operation on the Git Sync installation.",
|
|
@@ -24765,6 +25576,19 @@
|
|
|
24765
25576
|
"installationStatus"
|
|
24766
25577
|
]
|
|
24767
25578
|
},
|
|
25579
|
+
"PreviousGitSyncState": {
|
|
25580
|
+
"type": "object",
|
|
25581
|
+
"description": "What is still known about a target's Git Sync after its installation was removed. Never returned alongside `gitSync`, which describes a live installation.",
|
|
25582
|
+
"required": [
|
|
25583
|
+
"url"
|
|
25584
|
+
],
|
|
25585
|
+
"properties": {
|
|
25586
|
+
"url": {
|
|
25587
|
+
"type": "string",
|
|
25588
|
+
"description": "The URL to the directory of the repository tree the content synced with before its Git Sync installation was removed, at the branch it synced."
|
|
25589
|
+
}
|
|
25590
|
+
}
|
|
25591
|
+
},
|
|
24768
25592
|
"ContentImportSource": {
|
|
24769
25593
|
"oneOf": [
|
|
24770
25594
|
{
|
|
@@ -25139,6 +25963,9 @@
|
|
|
25139
25963
|
"gitSync": {
|
|
25140
25964
|
"$ref": "#/components/schemas/GitSyncState"
|
|
25141
25965
|
},
|
|
25966
|
+
"previousGitSync": {
|
|
25967
|
+
"$ref": "#/components/schemas/PreviousGitSyncState"
|
|
25968
|
+
},
|
|
25142
25969
|
"imports": {
|
|
25143
25970
|
"description": "Import runs targeting this space, still running or ended recently, most recent first. Only returned when fetching a single space.\n",
|
|
25144
25971
|
"type": "array",
|
|
@@ -31944,7 +32771,8 @@
|
|
|
31944
32771
|
"provider": {
|
|
31945
32772
|
"type": "string",
|
|
31946
32773
|
"enum": [
|
|
31947
|
-
"jira"
|
|
32774
|
+
"jira",
|
|
32775
|
+
"linear"
|
|
31948
32776
|
]
|
|
31949
32777
|
},
|
|
31950
32778
|
"state": {
|
|
@@ -32005,7 +32833,8 @@
|
|
|
32005
32833
|
"provider": {
|
|
32006
32834
|
"type": "string",
|
|
32007
32835
|
"enum": [
|
|
32008
|
-
"jira"
|
|
32836
|
+
"jira",
|
|
32837
|
+
"linear"
|
|
32009
32838
|
]
|
|
32010
32839
|
},
|
|
32011
32840
|
"state": {
|
|
@@ -32035,13 +32864,19 @@
|
|
|
32035
32864
|
"type": "string",
|
|
32036
32865
|
"description": "The ID of the link."
|
|
32037
32866
|
},
|
|
32867
|
+
"isSyncing": {
|
|
32868
|
+
"type": "boolean",
|
|
32869
|
+
"readOnly": true,
|
|
32870
|
+
"description": "Whether this link owns synchronization with the external issue. Other links are references only."
|
|
32871
|
+
},
|
|
32038
32872
|
"expanded": {
|
|
32039
32873
|
"$ref": "#/components/schemas/ChangeRequestLinkExpanded",
|
|
32040
32874
|
"readOnly": true
|
|
32041
32875
|
}
|
|
32042
32876
|
},
|
|
32043
32877
|
"required": [
|
|
32044
|
-
"id"
|
|
32878
|
+
"id",
|
|
32879
|
+
"isSyncing"
|
|
32045
32880
|
]
|
|
32046
32881
|
}
|
|
32047
32882
|
]
|
|
@@ -32124,7 +32959,7 @@
|
|
|
32124
32959
|
},
|
|
32125
32960
|
"siteTopic": {
|
|
32126
32961
|
"type": "object",
|
|
32127
|
-
"description": "Site
|
|
32962
|
+
"description": "Site topic the change request was created from, when it came from one.",
|
|
32128
32963
|
"properties": {
|
|
32129
32964
|
"site": {
|
|
32130
32965
|
"type": "string",
|
|
@@ -32136,7 +32971,8 @@
|
|
|
32136
32971
|
},
|
|
32137
32972
|
"finding": {
|
|
32138
32973
|
"type": "string",
|
|
32139
|
-
"
|
|
32974
|
+
"deprecated": true,
|
|
32975
|
+
"description": "ID of the site finding the change request fixes. Use `siteFinding` instead: a change request can fix a finding without belonging to a topic, and this field is absent in that case."
|
|
32140
32976
|
}
|
|
32141
32977
|
},
|
|
32142
32978
|
"required": [
|
|
@@ -32144,6 +32980,24 @@
|
|
|
32144
32980
|
"topic"
|
|
32145
32981
|
]
|
|
32146
32982
|
},
|
|
32983
|
+
"siteFinding": {
|
|
32984
|
+
"type": "object",
|
|
32985
|
+
"description": "Site finding the change request fixes, when it is linked to one. Merging the change request resolves the finding, once every change request linked to it is merged.",
|
|
32986
|
+
"properties": {
|
|
32987
|
+
"site": {
|
|
32988
|
+
"type": "string",
|
|
32989
|
+
"description": "ID of the site the finding belongs to."
|
|
32990
|
+
},
|
|
32991
|
+
"finding": {
|
|
32992
|
+
"type": "string",
|
|
32993
|
+
"description": "ID of the site finding the change request fixes."
|
|
32994
|
+
}
|
|
32995
|
+
},
|
|
32996
|
+
"required": [
|
|
32997
|
+
"site",
|
|
32998
|
+
"finding"
|
|
32999
|
+
]
|
|
33000
|
+
},
|
|
32147
33001
|
"styleguide": {
|
|
32148
33002
|
"type": "object",
|
|
32149
33003
|
"description": "Style guide check that opened the change request, when it came from one. A check can be run again on the change request already open on a space, rather than opening a second one, so several checks can share a change request.\n",
|
|
@@ -32745,6 +33599,20 @@
|
|
|
32745
33599
|
"urls"
|
|
32746
33600
|
]
|
|
32747
33601
|
},
|
|
33602
|
+
"ChangeRequestReviewStats": {
|
|
33603
|
+
"type": "object",
|
|
33604
|
+
"description": "Exact review totals for the applied filters, independent of pagination. Keyed by review status, with a count of zero for a status nobody used.",
|
|
33605
|
+
"propertyNames": {
|
|
33606
|
+
"$ref": "#/components/schemas/ChangeRequestReviewStatus"
|
|
33607
|
+
},
|
|
33608
|
+
"additionalProperties": {
|
|
33609
|
+
"type": "number"
|
|
33610
|
+
},
|
|
33611
|
+
"required": [
|
|
33612
|
+
"approved",
|
|
33613
|
+
"changes-requested"
|
|
33614
|
+
]
|
|
33615
|
+
},
|
|
32748
33616
|
"Team": {
|
|
32749
33617
|
"type": "object",
|
|
32750
33618
|
"properties": {
|
|
@@ -34651,6 +35519,100 @@
|
|
|
34651
35519
|
}
|
|
34652
35520
|
]
|
|
34653
35521
|
},
|
|
35522
|
+
"AICreditThreshold": {
|
|
35523
|
+
"description": "An AI credit threshold from 5% to 50%, or null when disabled.",
|
|
35524
|
+
"oneOf": [
|
|
35525
|
+
{
|
|
35526
|
+
"type": "number",
|
|
35527
|
+
"minimum": 5,
|
|
35528
|
+
"maximum": 50
|
|
35529
|
+
},
|
|
35530
|
+
{
|
|
35531
|
+
"type": "null"
|
|
35532
|
+
}
|
|
35533
|
+
]
|
|
35534
|
+
},
|
|
35535
|
+
"OrganizationAISettings": {
|
|
35536
|
+
"type": "object",
|
|
35537
|
+
"description": "AI preferences and automatic pause status. Missing feature keys leave features enabled, subject to the master AI setting and feature eligibility.",
|
|
35538
|
+
"additionalProperties": false,
|
|
35539
|
+
"properties": {
|
|
35540
|
+
"aiPaused": {
|
|
35541
|
+
"type": "boolean",
|
|
35542
|
+
"readOnly": true,
|
|
35543
|
+
"description": "Whether AI features are automatically paused because credits are low."
|
|
35544
|
+
},
|
|
35545
|
+
"ai-agent": {
|
|
35546
|
+
"type": "boolean",
|
|
35547
|
+
"enum": [
|
|
35548
|
+
false
|
|
35549
|
+
]
|
|
35550
|
+
},
|
|
35551
|
+
"ai-assistant": {
|
|
35552
|
+
"type": "boolean",
|
|
35553
|
+
"enum": [
|
|
35554
|
+
false
|
|
35555
|
+
]
|
|
35556
|
+
},
|
|
35557
|
+
"ai-broken-links": {
|
|
35558
|
+
"type": "boolean",
|
|
35559
|
+
"enum": [
|
|
35560
|
+
false
|
|
35561
|
+
]
|
|
35562
|
+
},
|
|
35563
|
+
"ai-content-gap": {
|
|
35564
|
+
"type": "boolean",
|
|
35565
|
+
"enum": [
|
|
35566
|
+
false
|
|
35567
|
+
]
|
|
35568
|
+
},
|
|
35569
|
+
"ai-insight": {
|
|
35570
|
+
"type": "boolean",
|
|
35571
|
+
"enum": [
|
|
35572
|
+
false
|
|
35573
|
+
]
|
|
35574
|
+
},
|
|
35575
|
+
"ai-import": {
|
|
35576
|
+
"type": "boolean",
|
|
35577
|
+
"enum": [
|
|
35578
|
+
false
|
|
35579
|
+
]
|
|
35580
|
+
},
|
|
35581
|
+
"ai-platform": {
|
|
35582
|
+
"type": "boolean",
|
|
35583
|
+
"enum": [
|
|
35584
|
+
false
|
|
35585
|
+
]
|
|
35586
|
+
},
|
|
35587
|
+
"ai-style-guide": {
|
|
35588
|
+
"type": "boolean",
|
|
35589
|
+
"enum": [
|
|
35590
|
+
false
|
|
35591
|
+
]
|
|
35592
|
+
},
|
|
35593
|
+
"ai-translation": {
|
|
35594
|
+
"type": "boolean",
|
|
35595
|
+
"enum": [
|
|
35596
|
+
false
|
|
35597
|
+
]
|
|
35598
|
+
},
|
|
35599
|
+
"aiCreditAlertThreshold": {
|
|
35600
|
+
"$ref": "#/components/schemas/AICreditThreshold"
|
|
35601
|
+
},
|
|
35602
|
+
"aiCreditPauseEnabled": {
|
|
35603
|
+
"description": "Whether AI features pause automatically once all AI credits are used, before usage is billed as overage.",
|
|
35604
|
+
"type": "boolean"
|
|
35605
|
+
},
|
|
35606
|
+
"aiAlertNotificationAlertId": {
|
|
35607
|
+
"type": "string",
|
|
35608
|
+
"readOnly": true
|
|
35609
|
+
},
|
|
35610
|
+
"aiPauseNotificationAlertId": {
|
|
35611
|
+
"type": "string",
|
|
35612
|
+
"readOnly": true
|
|
35613
|
+
}
|
|
35614
|
+
}
|
|
35615
|
+
},
|
|
34654
35616
|
"BillingProduct": {
|
|
34655
35617
|
"type": "string",
|
|
34656
35618
|
"description": "Name of the product",
|
|
@@ -34754,10 +35716,10 @@
|
|
|
34754
35716
|
"description": "The AI credit bundle to top up every month",
|
|
34755
35717
|
"enum": [
|
|
34756
35718
|
"none",
|
|
34757
|
-
|
|
34758
|
-
|
|
34759
|
-
|
|
34760
|
-
|
|
35719
|
+
4750250,
|
|
35720
|
+
90001000,
|
|
35721
|
+
127502250,
|
|
35722
|
+
3000010000
|
|
34761
35723
|
]
|
|
34762
35724
|
},
|
|
34763
35725
|
"OrganizationBilling": {
|
|
@@ -34854,18 +35816,22 @@
|
|
|
34854
35816
|
}
|
|
34855
35817
|
]
|
|
34856
35818
|
},
|
|
34857
|
-
"
|
|
34858
|
-
"description": "
|
|
35819
|
+
"aiCreditAllowance": {
|
|
35820
|
+
"description": "The yearly AI credit allowance agreed in the organization's contract, or null when none is set.",
|
|
34859
35821
|
"oneOf": [
|
|
34860
35822
|
{
|
|
34861
|
-
"type": "
|
|
34862
|
-
"minimum": 0,
|
|
34863
|
-
"maximum": 100
|
|
35823
|
+
"type": "integer"
|
|
34864
35824
|
},
|
|
34865
35825
|
{
|
|
34866
35826
|
"type": "null"
|
|
34867
35827
|
}
|
|
34868
35828
|
]
|
|
35829
|
+
},
|
|
35830
|
+
"aiCreditRollover": {
|
|
35831
|
+
"description": "The percentage of unused paid bundle credits carried over to the next monthly AI billing period.",
|
|
35832
|
+
"type": "integer",
|
|
35833
|
+
"minimum": 0,
|
|
35834
|
+
"maximum": 100
|
|
34869
35835
|
}
|
|
34870
35836
|
},
|
|
34871
35837
|
"required": [
|
|
@@ -34879,7 +35845,53 @@
|
|
|
34879
35845
|
"canChangeInterval",
|
|
34880
35846
|
"canUseSAML",
|
|
34881
35847
|
"creditsBundle",
|
|
34882
|
-
"
|
|
35848
|
+
"aiCreditAllowance",
|
|
35849
|
+
"aiCreditRollover"
|
|
35850
|
+
]
|
|
35851
|
+
},
|
|
35852
|
+
"OrganizationSupportCost": {
|
|
35853
|
+
"description": "What support costs the organization, per ticket or per hour of agent time, used to estimate how much AI answers save in site insights.",
|
|
35854
|
+
"oneOf": [
|
|
35855
|
+
{
|
|
35856
|
+
"type": "object",
|
|
35857
|
+
"additionalProperties": false,
|
|
35858
|
+
"properties": {
|
|
35859
|
+
"perTicket": {
|
|
35860
|
+
"type": "number",
|
|
35861
|
+
"minimum": 0.01,
|
|
35862
|
+
"description": "Cost of one support ticket, in `currency`."
|
|
35863
|
+
},
|
|
35864
|
+
"currency": {
|
|
35865
|
+
"type": "string",
|
|
35866
|
+
"pattern": "^[A-Z]{3}$",
|
|
35867
|
+
"description": "ISO 4217 currency code."
|
|
35868
|
+
}
|
|
35869
|
+
},
|
|
35870
|
+
"required": [
|
|
35871
|
+
"perTicket",
|
|
35872
|
+
"currency"
|
|
35873
|
+
]
|
|
35874
|
+
},
|
|
35875
|
+
{
|
|
35876
|
+
"type": "object",
|
|
35877
|
+
"additionalProperties": false,
|
|
35878
|
+
"properties": {
|
|
35879
|
+
"perHour": {
|
|
35880
|
+
"type": "number",
|
|
35881
|
+
"minimum": 0.01,
|
|
35882
|
+
"description": "Cost of one hour of support agent time, in `currency`."
|
|
35883
|
+
},
|
|
35884
|
+
"currency": {
|
|
35885
|
+
"type": "string",
|
|
35886
|
+
"pattern": "^[A-Z]{3}$",
|
|
35887
|
+
"description": "ISO 4217 currency code."
|
|
35888
|
+
}
|
|
35889
|
+
},
|
|
35890
|
+
"required": [
|
|
35891
|
+
"perHour",
|
|
35892
|
+
"currency"
|
|
35893
|
+
]
|
|
35894
|
+
}
|
|
34883
35895
|
]
|
|
34884
35896
|
},
|
|
34885
35897
|
"BillingTrialStatus": {
|
|
@@ -34957,6 +35969,9 @@
|
|
|
34957
35969
|
"description": "If true, the organization is configured to use all our AI features.",
|
|
34958
35970
|
"type": "boolean"
|
|
34959
35971
|
},
|
|
35972
|
+
"aiSettings": {
|
|
35973
|
+
"$ref": "#/components/schemas/OrganizationAISettings"
|
|
35974
|
+
},
|
|
34960
35975
|
"inviteLinks": {
|
|
34961
35976
|
"description": "If true, invite links are enabled for this organization.",
|
|
34962
35977
|
"type": "boolean"
|
|
@@ -34975,6 +35990,10 @@
|
|
|
34975
35990
|
"mergeRules": {
|
|
34976
35991
|
"$ref": "#/components/schemas/MergeRulesStandaloneConfiguration"
|
|
34977
35992
|
},
|
|
35993
|
+
"supportCost": {
|
|
35994
|
+
"description": "Support cost set by the organization, only available for org members.",
|
|
35995
|
+
"$ref": "#/components/schemas/OrganizationSupportCost"
|
|
35996
|
+
},
|
|
34978
35997
|
"urls": {
|
|
34979
35998
|
"type": "object",
|
|
34980
35999
|
"description": "URLs associated with the object",
|
|
@@ -37333,6 +38352,7 @@
|
|
|
37333
38352
|
"sites-sections",
|
|
37334
38353
|
"sites-seo",
|
|
37335
38354
|
"sites-share-links",
|
|
38355
|
+
"sites-style-guide",
|
|
37336
38356
|
"sites-unlisted-visibility",
|
|
37337
38357
|
"sites-user-contribution",
|
|
37338
38358
|
"sites-visitor-authentication",
|
|
@@ -39065,6 +40085,137 @@
|
|
|
39065
40085
|
"title"
|
|
39066
40086
|
]
|
|
39067
40087
|
},
|
|
40088
|
+
"SubscriptionTrial": {
|
|
40089
|
+
"type": "object",
|
|
40090
|
+
"description": "The current or last trial of an organization.",
|
|
40091
|
+
"properties": {
|
|
40092
|
+
"status": {
|
|
40093
|
+
"$ref": "#/components/schemas/BillingTrialStatus"
|
|
40094
|
+
},
|
|
40095
|
+
"endDate": {
|
|
40096
|
+
"description": "When the trial ends, or ended.",
|
|
40097
|
+
"$ref": "#/components/schemas/Timestamp"
|
|
40098
|
+
},
|
|
40099
|
+
"daysRemaining": {
|
|
40100
|
+
"type": "integer",
|
|
40101
|
+
"description": "Days left in the trial, rounded up, so 1 is its last day. 0 once it has ended."
|
|
40102
|
+
}
|
|
40103
|
+
},
|
|
40104
|
+
"required": [
|
|
40105
|
+
"status",
|
|
40106
|
+
"endDate",
|
|
40107
|
+
"daysRemaining"
|
|
40108
|
+
]
|
|
40109
|
+
},
|
|
40110
|
+
"SubscriptionNotice": {
|
|
40111
|
+
"type": "object",
|
|
40112
|
+
"description": "A notice about the organization's subscription to relay to the user, such as how many days are left in their trial. It is returned by the operations whose features may require a paid plan once a trial ends.\n",
|
|
40113
|
+
"properties": {
|
|
40114
|
+
"type": {
|
|
40115
|
+
"type": "string",
|
|
40116
|
+
"description": "- trial_started, the operation started the organization's trial. - trial_countdown, the organization's trial ends soon. - checkout_required, the operation needs a paid plan to complete.\n",
|
|
40117
|
+
"enum": [
|
|
40118
|
+
"trial_started",
|
|
40119
|
+
"trial_countdown",
|
|
40120
|
+
"checkout_required"
|
|
40121
|
+
]
|
|
40122
|
+
},
|
|
40123
|
+
"context": {
|
|
40124
|
+
"type": "string",
|
|
40125
|
+
"description": "What the user was doing when the notice was given.",
|
|
40126
|
+
"enum": [
|
|
40127
|
+
"trial_started",
|
|
40128
|
+
"site_publishing",
|
|
40129
|
+
"site_features",
|
|
40130
|
+
"site_customization"
|
|
40131
|
+
]
|
|
40132
|
+
},
|
|
40133
|
+
"commercialStatus": {
|
|
40134
|
+
"type": "string",
|
|
40135
|
+
"description": "Whether the organization is on a trial, the free plan, or a paid plan.",
|
|
40136
|
+
"enum": [
|
|
40137
|
+
"trial",
|
|
40138
|
+
"free",
|
|
40139
|
+
"paid"
|
|
40140
|
+
]
|
|
40141
|
+
},
|
|
40142
|
+
"message": {
|
|
40143
|
+
"type": "string",
|
|
40144
|
+
"description": "Message to show the user. For users who cannot upgrade, it asks them to reach out to an administrator of the organization."
|
|
40145
|
+
},
|
|
40146
|
+
"trial": {
|
|
40147
|
+
"$ref": "#/components/schemas/SubscriptionTrial"
|
|
40148
|
+
},
|
|
40149
|
+
"canManageBilling": {
|
|
40150
|
+
"type": "boolean",
|
|
40151
|
+
"description": "Whether the user is an administrator of the organization, and so can upgrade. Otherwise, they have to ask an administrator to upgrade."
|
|
40152
|
+
},
|
|
40153
|
+
"upgradeUrl": {
|
|
40154
|
+
"description": "Where to upgrade in the application. Only set when `canManageBilling` is true.",
|
|
40155
|
+
"$ref": "#/components/schemas/URL"
|
|
40156
|
+
},
|
|
40157
|
+
"pricingUrl": {
|
|
40158
|
+
"description": "Public page comparing the GitBook plans.",
|
|
40159
|
+
"$ref": "#/components/schemas/URL"
|
|
40160
|
+
}
|
|
40161
|
+
},
|
|
40162
|
+
"required": [
|
|
40163
|
+
"type",
|
|
40164
|
+
"context",
|
|
40165
|
+
"commercialStatus",
|
|
40166
|
+
"message",
|
|
40167
|
+
"canManageBilling",
|
|
40168
|
+
"pricingUrl"
|
|
40169
|
+
]
|
|
40170
|
+
},
|
|
40171
|
+
"OptOutUpdate": {
|
|
40172
|
+
"description": "Set false to disable, or null to remove the opt-out. Omit to leave unchanged.",
|
|
40173
|
+
"oneOf": [
|
|
40174
|
+
{
|
|
40175
|
+
"type": "boolean",
|
|
40176
|
+
"enum": [
|
|
40177
|
+
false
|
|
40178
|
+
]
|
|
40179
|
+
},
|
|
40180
|
+
{
|
|
40181
|
+
"type": "null"
|
|
40182
|
+
}
|
|
40183
|
+
]
|
|
40184
|
+
},
|
|
40185
|
+
"OrganizationAISettingsUpdate": {
|
|
40186
|
+
"type": "object",
|
|
40187
|
+
"description": "Partial AI preference update. Omitted keys are unchanged; null removes an opt-out.",
|
|
40188
|
+
"additionalProperties": false,
|
|
40189
|
+
"properties": {
|
|
40190
|
+
"ai-agent": {
|
|
40191
|
+
"$ref": "#/components/schemas/OptOutUpdate"
|
|
40192
|
+
},
|
|
40193
|
+
"ai-assistant": {
|
|
40194
|
+
"$ref": "#/components/schemas/OptOutUpdate"
|
|
40195
|
+
},
|
|
40196
|
+
"ai-broken-links": {
|
|
40197
|
+
"$ref": "#/components/schemas/OptOutUpdate"
|
|
40198
|
+
},
|
|
40199
|
+
"ai-content-gap": {
|
|
40200
|
+
"$ref": "#/components/schemas/OptOutUpdate"
|
|
40201
|
+
},
|
|
40202
|
+
"ai-insight": {
|
|
40203
|
+
"$ref": "#/components/schemas/OptOutUpdate"
|
|
40204
|
+
},
|
|
40205
|
+
"ai-import": {
|
|
40206
|
+
"$ref": "#/components/schemas/OptOutUpdate"
|
|
40207
|
+
},
|
|
40208
|
+
"ai-platform": {
|
|
40209
|
+
"$ref": "#/components/schemas/OptOutUpdate"
|
|
40210
|
+
},
|
|
40211
|
+
"ai-style-guide": {
|
|
40212
|
+
"$ref": "#/components/schemas/OptOutUpdate"
|
|
40213
|
+
},
|
|
40214
|
+
"ai-translation": {
|
|
40215
|
+
"$ref": "#/components/schemas/OptOutUpdate"
|
|
40216
|
+
}
|
|
40217
|
+
}
|
|
40218
|
+
},
|
|
39068
40219
|
"SiteSectionTitle": {
|
|
39069
40220
|
"type": "string",
|
|
39070
40221
|
"description": "Title of the site section",
|
|
@@ -39584,6 +40735,23 @@
|
|
|
39584
40735
|
"label": {
|
|
39585
40736
|
"type": "string",
|
|
39586
40737
|
"description": "Display label captured when the event was recorded."
|
|
40738
|
+
},
|
|
40739
|
+
"impersonator": {
|
|
40740
|
+
"type": "object",
|
|
40741
|
+
"description": "GitBook staff member acting as this user. Present only for recorded impersonation; older events may not have this information. The actor ID remains the effective user for filtering.",
|
|
40742
|
+
"properties": {
|
|
40743
|
+
"id": {
|
|
40744
|
+
"type": "string",
|
|
40745
|
+
"description": "Stable ID of the impersonating staff member."
|
|
40746
|
+
},
|
|
40747
|
+
"label": {
|
|
40748
|
+
"type": "string",
|
|
40749
|
+
"description": "Staff display name captured when the event was recorded, if available."
|
|
40750
|
+
}
|
|
40751
|
+
},
|
|
40752
|
+
"required": [
|
|
40753
|
+
"id"
|
|
40754
|
+
]
|
|
39587
40755
|
}
|
|
39588
40756
|
},
|
|
39589
40757
|
"required": [
|
|
@@ -39795,6 +40963,68 @@
|
|
|
39795
40963
|
"templates"
|
|
39796
40964
|
]
|
|
39797
40965
|
},
|
|
40966
|
+
"OrganizationSubscription": {
|
|
40967
|
+
"type": "object",
|
|
40968
|
+
"description": "An organization's subscription, as needed to tell a user their plan, trial and how to upgrade.",
|
|
40969
|
+
"properties": {
|
|
40970
|
+
"object": {
|
|
40971
|
+
"type": "string",
|
|
40972
|
+
"description": "Type of Object, always equals to \"organization-subscription\"",
|
|
40973
|
+
"enum": [
|
|
40974
|
+
"organization-subscription"
|
|
40975
|
+
]
|
|
40976
|
+
},
|
|
40977
|
+
"status": {
|
|
40978
|
+
"type": "string",
|
|
40979
|
+
"description": "Whether the organization is on a trial, the free plan, or a paid plan.",
|
|
40980
|
+
"enum": [
|
|
40981
|
+
"trial",
|
|
40982
|
+
"free",
|
|
40983
|
+
"paid"
|
|
40984
|
+
]
|
|
40985
|
+
},
|
|
40986
|
+
"plan": {
|
|
40987
|
+
"type": "object",
|
|
40988
|
+
"description": "The plan in effect, which is the trial's plan while trialing.",
|
|
40989
|
+
"properties": {
|
|
40990
|
+
"id": {
|
|
40991
|
+
"$ref": "#/components/schemas/BillingProduct"
|
|
40992
|
+
},
|
|
40993
|
+
"title": {
|
|
40994
|
+
"type": "string",
|
|
40995
|
+
"description": "Name of the plan shown to users, e.g. Pro."
|
|
40996
|
+
}
|
|
40997
|
+
},
|
|
40998
|
+
"required": [
|
|
40999
|
+
"id",
|
|
41000
|
+
"title"
|
|
41001
|
+
]
|
|
41002
|
+
},
|
|
41003
|
+
"trial": {
|
|
41004
|
+
"description": "The current or last trial. Absent when the organization never had one.",
|
|
41005
|
+
"$ref": "#/components/schemas/SubscriptionTrial"
|
|
41006
|
+
},
|
|
41007
|
+
"canManageBilling": {
|
|
41008
|
+
"type": "boolean",
|
|
41009
|
+
"description": "Whether the user is an administrator of the organization, and so can upgrade. Otherwise, they have to ask an administrator to upgrade."
|
|
41010
|
+
},
|
|
41011
|
+
"upgradeUrl": {
|
|
41012
|
+
"description": "Where to upgrade in the application. Only set when `canManageBilling` is true.",
|
|
41013
|
+
"$ref": "#/components/schemas/URL"
|
|
41014
|
+
},
|
|
41015
|
+
"pricingUrl": {
|
|
41016
|
+
"description": "Public page comparing the GitBook plans.",
|
|
41017
|
+
"$ref": "#/components/schemas/URL"
|
|
41018
|
+
}
|
|
41019
|
+
},
|
|
41020
|
+
"required": [
|
|
41021
|
+
"object",
|
|
41022
|
+
"status",
|
|
41023
|
+
"plan",
|
|
41024
|
+
"canManageBilling",
|
|
41025
|
+
"pricingUrl"
|
|
41026
|
+
]
|
|
41027
|
+
},
|
|
39798
41028
|
"MemberContentPermission": {
|
|
39799
41029
|
"type": "object",
|
|
39800
41030
|
"description": "Permission of a member in a content.",
|
|
@@ -40613,16 +41843,21 @@
|
|
|
40613
41843
|
"properties": {
|
|
40614
41844
|
"type": {
|
|
40615
41845
|
"type": "string",
|
|
40616
|
-
"description": "Where the credits come from. `paid` is the credits the monthly bundle pays for, `bonus` the ones included with it, `site` the allowance of the organization's published paid sites, and `rollover` what was left of the previous period.",
|
|
41846
|
+
"description": "Where the credits come from. `paid` is the credits the monthly bundle pays for, `bonus` the ones included with it, `site` the allowance of the organization's published paid sites, and `rollover` what was left of the previous period. `custom` is a grant created outside GitBook.",
|
|
40617
41847
|
"enum": [
|
|
40618
41848
|
"paid",
|
|
40619
41849
|
"bonus",
|
|
40620
41850
|
"site",
|
|
40621
|
-
"rollover"
|
|
41851
|
+
"rollover",
|
|
41852
|
+
"custom"
|
|
40622
41853
|
]
|
|
40623
41854
|
},
|
|
41855
|
+
"priority": {
|
|
41856
|
+
"type": "number",
|
|
41857
|
+
"description": "Stripe spending priority. Lower values are consumed first."
|
|
41858
|
+
},
|
|
40624
41859
|
"grantedCredits": {
|
|
40625
|
-
"description": "Credits
|
|
41860
|
+
"description": "Credits available from this grant before the current invoice usage.",
|
|
40626
41861
|
"type": "number"
|
|
40627
41862
|
},
|
|
40628
41863
|
"usedCredits": {
|
|
@@ -40698,7 +41933,7 @@
|
|
|
40698
41933
|
"$ref": "#/components/schemas/BillingCreditsTotals"
|
|
40699
41934
|
},
|
|
40700
41935
|
"free": {
|
|
40701
|
-
"description": "The
|
|
41936
|
+
"description": "The bonus, site and custom credits.",
|
|
40702
41937
|
"$ref": "#/components/schemas/BillingCreditsTotals"
|
|
40703
41938
|
},
|
|
40704
41939
|
"bundle": {
|
|
@@ -40841,7 +42076,7 @@
|
|
|
40841
42076
|
"$ref": "#/components/schemas/BillingCreditsTotals"
|
|
40842
42077
|
},
|
|
40843
42078
|
"free": {
|
|
40844
|
-
"description": "The
|
|
42079
|
+
"description": "The bonus, site and custom credits.",
|
|
40845
42080
|
"$ref": "#/components/schemas/BillingCreditsTotals"
|
|
40846
42081
|
},
|
|
40847
42082
|
"bundle": {
|
|
@@ -40868,16 +42103,21 @@
|
|
|
40868
42103
|
"properties": {
|
|
40869
42104
|
"type": {
|
|
40870
42105
|
"type": "string",
|
|
40871
|
-
"description": "Where the credits come from. `paid` is the credits the monthly bundle pays for, `bonus` the ones included with it, `site` the allowance of the organization's published paid sites, and `rollover` what was left of the previous period.",
|
|
42106
|
+
"description": "Where the credits come from. `paid` is the credits the monthly bundle pays for, `bonus` the ones included with it, `site` the allowance of the organization's published paid sites, and `rollover` what was left of the previous period. `custom` is a grant created outside GitBook.",
|
|
40872
42107
|
"enum": [
|
|
40873
42108
|
"paid",
|
|
40874
42109
|
"bonus",
|
|
40875
42110
|
"site",
|
|
40876
|
-
"rollover"
|
|
42111
|
+
"rollover",
|
|
42112
|
+
"custom"
|
|
40877
42113
|
]
|
|
40878
42114
|
},
|
|
42115
|
+
"priority": {
|
|
42116
|
+
"type": "number",
|
|
42117
|
+
"description": "Stripe spending priority. Lower values are consumed first."
|
|
42118
|
+
},
|
|
40879
42119
|
"grantedCredits": {
|
|
40880
|
-
"description": "Credits
|
|
42120
|
+
"description": "Credits available from this grant before the current invoice usage.",
|
|
40881
42121
|
"type": "number"
|
|
40882
42122
|
},
|
|
40883
42123
|
"usedCredits": {
|
|
@@ -41264,6 +42504,7 @@
|
|
|
41264
42504
|
"description": "An organization feature used for plan access and upgrade prompts.",
|
|
41265
42505
|
"enum": [
|
|
41266
42506
|
"max-members",
|
|
42507
|
+
"ai",
|
|
41267
42508
|
"ai-lens",
|
|
41268
42509
|
"pdf-export",
|
|
41269
42510
|
"ai-writing",
|
|
@@ -41867,6 +43108,10 @@
|
|
|
41867
43108
|
"type": "string",
|
|
41868
43109
|
"description": "The space ID owning the page."
|
|
41869
43110
|
},
|
|
43111
|
+
"title": {
|
|
43112
|
+
"type": "string",
|
|
43113
|
+
"description": "The title of the page, as of `revision`."
|
|
43114
|
+
},
|
|
41870
43115
|
"sections": {
|
|
41871
43116
|
"type": "array",
|
|
41872
43117
|
"items": {
|
|
@@ -41880,6 +43125,7 @@
|
|
|
41880
43125
|
"page",
|
|
41881
43126
|
"revision",
|
|
41882
43127
|
"space",
|
|
43128
|
+
"title",
|
|
41883
43129
|
"sections"
|
|
41884
43130
|
]
|
|
41885
43131
|
},
|
|
@@ -43291,6 +44537,282 @@
|
|
|
43291
44537
|
}
|
|
43292
44538
|
]
|
|
43293
44539
|
},
|
|
44540
|
+
"SiteAdaptiveRegions": {
|
|
44541
|
+
"type": "object",
|
|
44542
|
+
"description": "Groups of countries exposed to adaptive content as `visitor.region`. The key of each entry is the region name; `visitor.region` is undefined for a visitor whose country is in none of the regions. A site can declare at most 10 regions.",
|
|
44543
|
+
"maxProperties": 10,
|
|
44544
|
+
"propertyNames": {
|
|
44545
|
+
"pattern": "^[a-zA-Z0-9_-]+$"
|
|
44546
|
+
},
|
|
44547
|
+
"additionalProperties": {
|
|
44548
|
+
"type": "object",
|
|
44549
|
+
"properties": {
|
|
44550
|
+
"countries": {
|
|
44551
|
+
"type": "array",
|
|
44552
|
+
"description": "ISO 3166-1 alpha-2 codes of the countries in the region.",
|
|
44553
|
+
"items": {
|
|
44554
|
+
"type": "string",
|
|
44555
|
+
"enum": [
|
|
44556
|
+
"AD",
|
|
44557
|
+
"AE",
|
|
44558
|
+
"AF",
|
|
44559
|
+
"AG",
|
|
44560
|
+
"AI",
|
|
44561
|
+
"AL",
|
|
44562
|
+
"AM",
|
|
44563
|
+
"AO",
|
|
44564
|
+
"AQ",
|
|
44565
|
+
"AR",
|
|
44566
|
+
"AS",
|
|
44567
|
+
"AT",
|
|
44568
|
+
"AU",
|
|
44569
|
+
"AW",
|
|
44570
|
+
"AX",
|
|
44571
|
+
"AZ",
|
|
44572
|
+
"BA",
|
|
44573
|
+
"BB",
|
|
44574
|
+
"BD",
|
|
44575
|
+
"BE",
|
|
44576
|
+
"BF",
|
|
44577
|
+
"BG",
|
|
44578
|
+
"BH",
|
|
44579
|
+
"BI",
|
|
44580
|
+
"BJ",
|
|
44581
|
+
"BL",
|
|
44582
|
+
"BM",
|
|
44583
|
+
"BN",
|
|
44584
|
+
"BO",
|
|
44585
|
+
"BQ",
|
|
44586
|
+
"BR",
|
|
44587
|
+
"BS",
|
|
44588
|
+
"BT",
|
|
44589
|
+
"BV",
|
|
44590
|
+
"BW",
|
|
44591
|
+
"BY",
|
|
44592
|
+
"BZ",
|
|
44593
|
+
"CA",
|
|
44594
|
+
"CC",
|
|
44595
|
+
"CD",
|
|
44596
|
+
"CF",
|
|
44597
|
+
"CG",
|
|
44598
|
+
"CH",
|
|
44599
|
+
"CI",
|
|
44600
|
+
"CK",
|
|
44601
|
+
"CL",
|
|
44602
|
+
"CM",
|
|
44603
|
+
"CN",
|
|
44604
|
+
"CO",
|
|
44605
|
+
"CR",
|
|
44606
|
+
"CU",
|
|
44607
|
+
"CV",
|
|
44608
|
+
"CW",
|
|
44609
|
+
"CX",
|
|
44610
|
+
"CY",
|
|
44611
|
+
"CZ",
|
|
44612
|
+
"DE",
|
|
44613
|
+
"DJ",
|
|
44614
|
+
"DK",
|
|
44615
|
+
"DM",
|
|
44616
|
+
"DO",
|
|
44617
|
+
"DZ",
|
|
44618
|
+
"EC",
|
|
44619
|
+
"EE",
|
|
44620
|
+
"EG",
|
|
44621
|
+
"EH",
|
|
44622
|
+
"ER",
|
|
44623
|
+
"ES",
|
|
44624
|
+
"ET",
|
|
44625
|
+
"FI",
|
|
44626
|
+
"FJ",
|
|
44627
|
+
"FK",
|
|
44628
|
+
"FM",
|
|
44629
|
+
"FO",
|
|
44630
|
+
"FR",
|
|
44631
|
+
"GA",
|
|
44632
|
+
"GB",
|
|
44633
|
+
"GD",
|
|
44634
|
+
"GE",
|
|
44635
|
+
"GF",
|
|
44636
|
+
"GG",
|
|
44637
|
+
"GH",
|
|
44638
|
+
"GI",
|
|
44639
|
+
"GL",
|
|
44640
|
+
"GM",
|
|
44641
|
+
"GN",
|
|
44642
|
+
"GP",
|
|
44643
|
+
"GQ",
|
|
44644
|
+
"GR",
|
|
44645
|
+
"GS",
|
|
44646
|
+
"GT",
|
|
44647
|
+
"GU",
|
|
44648
|
+
"GW",
|
|
44649
|
+
"GY",
|
|
44650
|
+
"HK",
|
|
44651
|
+
"HM",
|
|
44652
|
+
"HN",
|
|
44653
|
+
"HR",
|
|
44654
|
+
"HT",
|
|
44655
|
+
"HU",
|
|
44656
|
+
"ID",
|
|
44657
|
+
"IE",
|
|
44658
|
+
"IL",
|
|
44659
|
+
"IM",
|
|
44660
|
+
"IN",
|
|
44661
|
+
"IO",
|
|
44662
|
+
"IQ",
|
|
44663
|
+
"IR",
|
|
44664
|
+
"IS",
|
|
44665
|
+
"IT",
|
|
44666
|
+
"JE",
|
|
44667
|
+
"JM",
|
|
44668
|
+
"JO",
|
|
44669
|
+
"JP",
|
|
44670
|
+
"KE",
|
|
44671
|
+
"KG",
|
|
44672
|
+
"KH",
|
|
44673
|
+
"KI",
|
|
44674
|
+
"KM",
|
|
44675
|
+
"KN",
|
|
44676
|
+
"KP",
|
|
44677
|
+
"KR",
|
|
44678
|
+
"KW",
|
|
44679
|
+
"KY",
|
|
44680
|
+
"KZ",
|
|
44681
|
+
"LA",
|
|
44682
|
+
"LB",
|
|
44683
|
+
"LC",
|
|
44684
|
+
"LI",
|
|
44685
|
+
"LK",
|
|
44686
|
+
"LR",
|
|
44687
|
+
"LS",
|
|
44688
|
+
"LT",
|
|
44689
|
+
"LU",
|
|
44690
|
+
"LV",
|
|
44691
|
+
"LY",
|
|
44692
|
+
"MA",
|
|
44693
|
+
"MC",
|
|
44694
|
+
"MD",
|
|
44695
|
+
"ME",
|
|
44696
|
+
"MF",
|
|
44697
|
+
"MG",
|
|
44698
|
+
"MH",
|
|
44699
|
+
"MK",
|
|
44700
|
+
"ML",
|
|
44701
|
+
"MM",
|
|
44702
|
+
"MN",
|
|
44703
|
+
"MO",
|
|
44704
|
+
"MP",
|
|
44705
|
+
"MQ",
|
|
44706
|
+
"MR",
|
|
44707
|
+
"MS",
|
|
44708
|
+
"MT",
|
|
44709
|
+
"MU",
|
|
44710
|
+
"MV",
|
|
44711
|
+
"MW",
|
|
44712
|
+
"MX",
|
|
44713
|
+
"MY",
|
|
44714
|
+
"MZ",
|
|
44715
|
+
"NA",
|
|
44716
|
+
"NC",
|
|
44717
|
+
"NE",
|
|
44718
|
+
"NF",
|
|
44719
|
+
"NG",
|
|
44720
|
+
"NI",
|
|
44721
|
+
"NL",
|
|
44722
|
+
"NO",
|
|
44723
|
+
"NP",
|
|
44724
|
+
"NR",
|
|
44725
|
+
"NU",
|
|
44726
|
+
"NZ",
|
|
44727
|
+
"OM",
|
|
44728
|
+
"PA",
|
|
44729
|
+
"PE",
|
|
44730
|
+
"PF",
|
|
44731
|
+
"PG",
|
|
44732
|
+
"PH",
|
|
44733
|
+
"PK",
|
|
44734
|
+
"PL",
|
|
44735
|
+
"PM",
|
|
44736
|
+
"PN",
|
|
44737
|
+
"PR",
|
|
44738
|
+
"PS",
|
|
44739
|
+
"PT",
|
|
44740
|
+
"PW",
|
|
44741
|
+
"PY",
|
|
44742
|
+
"QA",
|
|
44743
|
+
"RE",
|
|
44744
|
+
"RO",
|
|
44745
|
+
"RS",
|
|
44746
|
+
"RU",
|
|
44747
|
+
"RW",
|
|
44748
|
+
"SA",
|
|
44749
|
+
"SB",
|
|
44750
|
+
"SC",
|
|
44751
|
+
"SD",
|
|
44752
|
+
"SE",
|
|
44753
|
+
"SG",
|
|
44754
|
+
"SH",
|
|
44755
|
+
"SI",
|
|
44756
|
+
"SJ",
|
|
44757
|
+
"SK",
|
|
44758
|
+
"SL",
|
|
44759
|
+
"SM",
|
|
44760
|
+
"SN",
|
|
44761
|
+
"SO",
|
|
44762
|
+
"SR",
|
|
44763
|
+
"SS",
|
|
44764
|
+
"ST",
|
|
44765
|
+
"SV",
|
|
44766
|
+
"SX",
|
|
44767
|
+
"SY",
|
|
44768
|
+
"SZ",
|
|
44769
|
+
"TC",
|
|
44770
|
+
"TD",
|
|
44771
|
+
"TF",
|
|
44772
|
+
"TG",
|
|
44773
|
+
"TH",
|
|
44774
|
+
"TJ",
|
|
44775
|
+
"TK",
|
|
44776
|
+
"TL",
|
|
44777
|
+
"TM",
|
|
44778
|
+
"TN",
|
|
44779
|
+
"TO",
|
|
44780
|
+
"TR",
|
|
44781
|
+
"TT",
|
|
44782
|
+
"TV",
|
|
44783
|
+
"TW",
|
|
44784
|
+
"TZ",
|
|
44785
|
+
"UA",
|
|
44786
|
+
"UG",
|
|
44787
|
+
"UM",
|
|
44788
|
+
"US",
|
|
44789
|
+
"UY",
|
|
44790
|
+
"UZ",
|
|
44791
|
+
"VA",
|
|
44792
|
+
"VC",
|
|
44793
|
+
"VE",
|
|
44794
|
+
"VG",
|
|
44795
|
+
"VI",
|
|
44796
|
+
"VN",
|
|
44797
|
+
"VU",
|
|
44798
|
+
"WF",
|
|
44799
|
+
"WS",
|
|
44800
|
+
"XK",
|
|
44801
|
+
"YE",
|
|
44802
|
+
"YT",
|
|
44803
|
+
"ZA",
|
|
44804
|
+
"ZM",
|
|
44805
|
+
"ZW"
|
|
44806
|
+
]
|
|
44807
|
+
}
|
|
44808
|
+
}
|
|
44809
|
+
},
|
|
44810
|
+
"required": [
|
|
44811
|
+
"countries"
|
|
44812
|
+
],
|
|
44813
|
+
"additionalProperties": false
|
|
44814
|
+
}
|
|
44815
|
+
},
|
|
43294
44816
|
"SiteAdaptiveDeterministicJSONSchemaPrimitives": {
|
|
43295
44817
|
"oneOf": [
|
|
43296
44818
|
{
|
|
@@ -43448,10 +44970,13 @@
|
|
|
43448
44970
|
}
|
|
43449
44971
|
]
|
|
43450
44972
|
},
|
|
43451
|
-
"
|
|
44973
|
+
"SiteAdaptiveJSONSchemaWithRegions": {
|
|
43452
44974
|
"type": "object",
|
|
43453
|
-
"description": "JSON schema describing the expected attributes of an Adaptive site schema.",
|
|
44975
|
+
"description": "JSON schema describing the expected attributes of an Adaptive site schema, with the regions `visitor.region` is resolved from.",
|
|
43454
44976
|
"properties": {
|
|
44977
|
+
"regions": {
|
|
44978
|
+
"$ref": "#/components/schemas/SiteAdaptiveRegions"
|
|
44979
|
+
},
|
|
43455
44980
|
"$schema": {
|
|
43456
44981
|
"type": "string",
|
|
43457
44982
|
"enum": [
|
|
@@ -43532,7 +45057,7 @@
|
|
|
43532
45057
|
]
|
|
43533
45058
|
},
|
|
43534
45059
|
"jsonSchema": {
|
|
43535
|
-
"$ref": "#/components/schemas/
|
|
45060
|
+
"$ref": "#/components/schemas/SiteAdaptiveJSONSchemaWithRegions"
|
|
43536
45061
|
},
|
|
43537
45062
|
"updatedAt": {
|
|
43538
45063
|
"description": "When the adaptive schema was updated.",
|
|
@@ -44568,6 +46093,238 @@
|
|
|
44568
46093
|
"scripts"
|
|
44569
46094
|
]
|
|
44570
46095
|
},
|
|
46096
|
+
"SiteChangeRequestMemberStatus": {
|
|
46097
|
+
"type": "string",
|
|
46098
|
+
"description": "Whether the member is part of the change request, or a tombstone kept so that a member removed and later re-added keeps its identity, comments and history.",
|
|
46099
|
+
"enum": [
|
|
46100
|
+
"active",
|
|
46101
|
+
"removed"
|
|
46102
|
+
]
|
|
46103
|
+
},
|
|
46104
|
+
"SiteChangeRequestMember": {
|
|
46105
|
+
"type": "object",
|
|
46106
|
+
"description": "State shared by every resource changed by a site change request. Each resource is versioned independently; the change request reviews and merges them as one.",
|
|
46107
|
+
"properties": {
|
|
46108
|
+
"object": {
|
|
46109
|
+
"type": "string",
|
|
46110
|
+
"enum": [
|
|
46111
|
+
"site-change-request-member"
|
|
46112
|
+
]
|
|
46113
|
+
},
|
|
46114
|
+
"id": {
|
|
46115
|
+
"type": "string",
|
|
46116
|
+
"description": "Unique identifier for the member"
|
|
46117
|
+
},
|
|
46118
|
+
"status": {
|
|
46119
|
+
"$ref": "#/components/schemas/SiteChangeRequestMemberStatus"
|
|
46120
|
+
},
|
|
46121
|
+
"createdAt": {
|
|
46122
|
+
"$ref": "#/components/schemas/Timestamp"
|
|
46123
|
+
},
|
|
46124
|
+
"updatedAt": {
|
|
46125
|
+
"$ref": "#/components/schemas/Timestamp"
|
|
46126
|
+
}
|
|
46127
|
+
},
|
|
46128
|
+
"required": [
|
|
46129
|
+
"object",
|
|
46130
|
+
"id",
|
|
46131
|
+
"status",
|
|
46132
|
+
"createdAt",
|
|
46133
|
+
"updatedAt"
|
|
46134
|
+
]
|
|
46135
|
+
},
|
|
46136
|
+
"SiteChangeRequestContentMember": {
|
|
46137
|
+
"allOf": [
|
|
46138
|
+
{
|
|
46139
|
+
"$ref": "#/components/schemas/SiteChangeRequestMember"
|
|
46140
|
+
},
|
|
46141
|
+
{
|
|
46142
|
+
"type": "object",
|
|
46143
|
+
"description": "Content of one space changed by a site change request.",
|
|
46144
|
+
"properties": {
|
|
46145
|
+
"space": {
|
|
46146
|
+
"type": "string",
|
|
46147
|
+
"description": "ID of the space whose content changes."
|
|
46148
|
+
},
|
|
46149
|
+
"baseRevisionId": {
|
|
46150
|
+
"type": "string",
|
|
46151
|
+
"description": "ID of the revision in the space's main content this member diverged from."
|
|
46152
|
+
},
|
|
46153
|
+
"headRevisionId": {
|
|
46154
|
+
"type": "string",
|
|
46155
|
+
"description": "ID of the revision currently proposed for the space."
|
|
46156
|
+
},
|
|
46157
|
+
"mergedRevisionId": {
|
|
46158
|
+
"type": "string",
|
|
46159
|
+
"description": "ID of the revision produced in the space's main content when this member was merged. Only present once the change request has been merged."
|
|
46160
|
+
}
|
|
46161
|
+
},
|
|
46162
|
+
"required": [
|
|
46163
|
+
"space",
|
|
46164
|
+
"baseRevisionId",
|
|
46165
|
+
"headRevisionId"
|
|
46166
|
+
]
|
|
46167
|
+
}
|
|
46168
|
+
]
|
|
46169
|
+
},
|
|
46170
|
+
"SiteChangeRequestStructureMember": {
|
|
46171
|
+
"allOf": [
|
|
46172
|
+
{
|
|
46173
|
+
"$ref": "#/components/schemas/SiteChangeRequestMember"
|
|
46174
|
+
},
|
|
46175
|
+
{
|
|
46176
|
+
"type": "object",
|
|
46177
|
+
"description": "Structure of the site changed by a site change request: its space membership, sections, ordering and paths.",
|
|
46178
|
+
"properties": {
|
|
46179
|
+
"base": {
|
|
46180
|
+
"description": "The live site structure this member diverged from.",
|
|
46181
|
+
"$ref": "#/components/schemas/SiteStructure"
|
|
46182
|
+
},
|
|
46183
|
+
"head": {
|
|
46184
|
+
"description": "The site structure currently proposed.",
|
|
46185
|
+
"$ref": "#/components/schemas/SiteStructure"
|
|
46186
|
+
}
|
|
46187
|
+
}
|
|
46188
|
+
}
|
|
46189
|
+
]
|
|
46190
|
+
},
|
|
46191
|
+
"SiteChangeRequestCustomizationMember": {
|
|
46192
|
+
"allOf": [
|
|
46193
|
+
{
|
|
46194
|
+
"$ref": "#/components/schemas/SiteChangeRequestMember"
|
|
46195
|
+
},
|
|
46196
|
+
{
|
|
46197
|
+
"type": "object",
|
|
46198
|
+
"description": "Customization settings of the site changed by a site change request.",
|
|
46199
|
+
"properties": {
|
|
46200
|
+
"base": {
|
|
46201
|
+
"description": "The live customization settings this member diverged from.",
|
|
46202
|
+
"$ref": "#/components/schemas/SiteCustomizationSettings"
|
|
46203
|
+
},
|
|
46204
|
+
"head": {
|
|
46205
|
+
"description": "The customization settings currently proposed.",
|
|
46206
|
+
"$ref": "#/components/schemas/SiteCustomizationSettings"
|
|
46207
|
+
}
|
|
46208
|
+
}
|
|
46209
|
+
}
|
|
46210
|
+
]
|
|
46211
|
+
},
|
|
46212
|
+
"SiteChangeRequest": {
|
|
46213
|
+
"type": "object",
|
|
46214
|
+
"description": "A change request reviewing a site as a whole. It groups every proposed change — the site's structure and its content — into one review, one lifecycle and one merge decision.",
|
|
46215
|
+
"properties": {
|
|
46216
|
+
"object": {
|
|
46217
|
+
"type": "string",
|
|
46218
|
+
"enum": [
|
|
46219
|
+
"site-change-request"
|
|
46220
|
+
]
|
|
46221
|
+
},
|
|
46222
|
+
"id": {
|
|
46223
|
+
"type": "string",
|
|
46224
|
+
"description": "Unique identifier for the change request"
|
|
46225
|
+
},
|
|
46226
|
+
"organization": {
|
|
46227
|
+
"type": "string",
|
|
46228
|
+
"description": "ID of the organization owning the change request."
|
|
46229
|
+
},
|
|
46230
|
+
"site": {
|
|
46231
|
+
"type": "string",
|
|
46232
|
+
"description": "ID of the site reviewed by the change request."
|
|
46233
|
+
},
|
|
46234
|
+
"number": {
|
|
46235
|
+
"type": "number",
|
|
46236
|
+
"description": "Incremental identifier of the change request within the site."
|
|
46237
|
+
},
|
|
46238
|
+
"version": {
|
|
46239
|
+
"type": "number",
|
|
46240
|
+
"description": "Identity of the complete set of member states currently exposed. It increments once per completed update, so a review can detect that it applies to outdated content."
|
|
46241
|
+
},
|
|
46242
|
+
"status": {
|
|
46243
|
+
"$ref": "#/components/schemas/ChangeRequestStatus"
|
|
46244
|
+
},
|
|
46245
|
+
"subject": {
|
|
46246
|
+
"$ref": "#/components/schemas/ChangeRequestSubject"
|
|
46247
|
+
},
|
|
46248
|
+
"description": {
|
|
46249
|
+
"$ref": "#/components/schemas/JSONDocument"
|
|
46250
|
+
},
|
|
46251
|
+
"links": {
|
|
46252
|
+
"$ref": "#/components/schemas/ChangeRequestLinks"
|
|
46253
|
+
},
|
|
46254
|
+
"content": {
|
|
46255
|
+
"type": "array",
|
|
46256
|
+
"description": "Spaces whose content the change request changes, one entry per space. Empty when it only changes the site itself.",
|
|
46257
|
+
"items": {
|
|
46258
|
+
"$ref": "#/components/schemas/SiteChangeRequestContentMember"
|
|
46259
|
+
}
|
|
46260
|
+
},
|
|
46261
|
+
"structure": {
|
|
46262
|
+
"$ref": "#/components/schemas/SiteChangeRequestStructureMember",
|
|
46263
|
+
"description": "Only present when the change request changes the site structure."
|
|
46264
|
+
},
|
|
46265
|
+
"customization": {
|
|
46266
|
+
"$ref": "#/components/schemas/SiteChangeRequestCustomizationMember",
|
|
46267
|
+
"description": "Only present when the change request changes the site customization settings."
|
|
46268
|
+
},
|
|
46269
|
+
"comments": {
|
|
46270
|
+
"type": "number",
|
|
46271
|
+
"description": "Count of opened comments across all members of the change request."
|
|
46272
|
+
},
|
|
46273
|
+
"createdBy": {
|
|
46274
|
+
"$ref": "#/components/schemas/User"
|
|
46275
|
+
},
|
|
46276
|
+
"createdAt": {
|
|
46277
|
+
"$ref": "#/components/schemas/Timestamp"
|
|
46278
|
+
},
|
|
46279
|
+
"updatedAt": {
|
|
46280
|
+
"$ref": "#/components/schemas/Timestamp"
|
|
46281
|
+
},
|
|
46282
|
+
"mergedBy": {
|
|
46283
|
+
"$ref": "#/components/schemas/User",
|
|
46284
|
+
"description": "User who merged the change request. Only present when it has been merged."
|
|
46285
|
+
},
|
|
46286
|
+
"mergedAt": {
|
|
46287
|
+
"$ref": "#/components/schemas/Timestamp",
|
|
46288
|
+
"description": "Date at which the change request was merged. Only present when it has been merged."
|
|
46289
|
+
},
|
|
46290
|
+
"urls": {
|
|
46291
|
+
"type": "object",
|
|
46292
|
+
"description": "URLs associated with the object",
|
|
46293
|
+
"properties": {
|
|
46294
|
+
"app": {
|
|
46295
|
+
"type": "string",
|
|
46296
|
+
"description": "URL of the change request in the application",
|
|
46297
|
+
"format": "uri"
|
|
46298
|
+
},
|
|
46299
|
+
"location": {
|
|
46300
|
+
"type": "string",
|
|
46301
|
+
"description": "URL of the change request in the API",
|
|
46302
|
+
"format": "uri"
|
|
46303
|
+
}
|
|
46304
|
+
},
|
|
46305
|
+
"required": [
|
|
46306
|
+
"app",
|
|
46307
|
+
"location"
|
|
46308
|
+
]
|
|
46309
|
+
}
|
|
46310
|
+
},
|
|
46311
|
+
"required": [
|
|
46312
|
+
"object",
|
|
46313
|
+
"id",
|
|
46314
|
+
"organization",
|
|
46315
|
+
"site",
|
|
46316
|
+
"number",
|
|
46317
|
+
"version",
|
|
46318
|
+
"status",
|
|
46319
|
+
"subject",
|
|
46320
|
+
"content",
|
|
46321
|
+
"comments",
|
|
46322
|
+
"createdBy",
|
|
46323
|
+
"createdAt",
|
|
46324
|
+
"updatedAt",
|
|
46325
|
+
"urls"
|
|
46326
|
+
]
|
|
46327
|
+
},
|
|
44571
46328
|
"ShareLinkName": {
|
|
44572
46329
|
"type": "string",
|
|
44573
46330
|
"description": "Name of the share link",
|
|
@@ -45590,10 +47347,11 @@
|
|
|
45590
47347
|
"enum": [
|
|
45591
47348
|
"updatedAt",
|
|
45592
47349
|
"severity",
|
|
45593
|
-
"sources"
|
|
47350
|
+
"sources",
|
|
47351
|
+
"suggestedFix"
|
|
45594
47352
|
],
|
|
45595
47353
|
"default": "updatedAt",
|
|
45596
|
-
"description": "The field to sort site findings by. `updatedAt` returns the most recently updated findings first. `severity` returns the most severe findings first. `sources` returns the findings with the most linked sources (questions plus records) first. Defaults to 'updatedAt'."
|
|
47354
|
+
"description": "The field to sort site findings by. `updatedAt` returns the most recently updated findings first. `severity` returns the most severe findings first. `sources` returns the findings with the most linked sources (questions plus records) first. `suggestedFix` is for link findings: those that come with a fix (a suggested redirect, or an outbound link to correct) come before broken URLs the audit found no page for, most severe first within each group. Other finding types sort with the second group. Defaults to 'updatedAt'."
|
|
45597
47355
|
},
|
|
45598
47356
|
"SiteFindingTitle": {
|
|
45599
47357
|
"type": "string",
|
|
@@ -45632,7 +47390,7 @@
|
|
|
45632
47390
|
},
|
|
45633
47391
|
"SiteFindingBrokenLinkAction": {
|
|
45634
47392
|
"type": "object",
|
|
45635
|
-
"description": "Suggested fix for a broken-link finding, shaped as the input for `createSiteRedirect` so it can be applied directly. Absent when the finding has no directly applicable redirect (for example, a suggestion to create a new page).",
|
|
47393
|
+
"description": "Suggested fix for a broken-link finding, shaped as the input for `createSiteRedirect` so it can be applied directly. Absent when the finding has no directly applicable redirect (for example, a suggestion to create a new page). The destination is absent when the audit judged the URL and found no page to redirect to: a redirect can still be created from the source with a destination of your choosing.",
|
|
45636
47394
|
"properties": {
|
|
45637
47395
|
"source": {
|
|
45638
47396
|
"$ref": "#/components/schemas/SiteRedirectSourcePath"
|
|
@@ -45646,8 +47404,7 @@
|
|
|
45646
47404
|
}
|
|
45647
47405
|
},
|
|
45648
47406
|
"required": [
|
|
45649
|
-
"source"
|
|
45650
|
-
"destination"
|
|
47407
|
+
"source"
|
|
45651
47408
|
]
|
|
45652
47409
|
},
|
|
45653
47410
|
"SiteFindingOutboundLink": {
|
|
@@ -46108,6 +47865,24 @@
|
|
|
46108
47865
|
"type": "number"
|
|
46109
47866
|
}
|
|
46110
47867
|
},
|
|
47868
|
+
"SiteFindingStatsBrokenLinks": {
|
|
47869
|
+
"type": "object",
|
|
47870
|
+
"description": "Breakdown of the broken-link findings included in the aggregation.",
|
|
47871
|
+
"properties": {
|
|
47872
|
+
"redirectSuggested": {
|
|
47873
|
+
"type": "number",
|
|
47874
|
+
"description": "Broken URLs the audit found a page to redirect to."
|
|
47875
|
+
},
|
|
47876
|
+
"noMatchingPage": {
|
|
47877
|
+
"type": "number",
|
|
47878
|
+
"description": "Broken URLs the audit judged and found no page to redirect to."
|
|
47879
|
+
}
|
|
47880
|
+
},
|
|
47881
|
+
"required": [
|
|
47882
|
+
"redirectSuggested",
|
|
47883
|
+
"noMatchingPage"
|
|
47884
|
+
]
|
|
47885
|
+
},
|
|
46111
47886
|
"SiteFindingStats": {
|
|
46112
47887
|
"type": "object",
|
|
46113
47888
|
"description": "Aggregated stats for the findings identified on a site.",
|
|
@@ -46125,6 +47900,9 @@
|
|
|
46125
47900
|
"connectors": {
|
|
46126
47901
|
"$ref": "#/components/schemas/SiteFindingStatsConnectors"
|
|
46127
47902
|
},
|
|
47903
|
+
"brokenLinks": {
|
|
47904
|
+
"$ref": "#/components/schemas/SiteFindingStatsBrokenLinks"
|
|
47905
|
+
},
|
|
46128
47906
|
"questions": {
|
|
46129
47907
|
"type": "number",
|
|
46130
47908
|
"description": "Count of findings with at least one piece of evidence coming from a site question."
|
|
@@ -46139,6 +47917,7 @@
|
|
|
46139
47917
|
"statuses",
|
|
46140
47918
|
"severities",
|
|
46141
47919
|
"connectors",
|
|
47920
|
+
"brokenLinks",
|
|
46142
47921
|
"questions",
|
|
46143
47922
|
"mergedChangeRequests"
|
|
46144
47923
|
]
|
|
@@ -46677,6 +48456,17 @@
|
|
|
46677
48456
|
"maxLength": 1024,
|
|
46678
48457
|
"description": "Atlassian API token used for outbound writes. Redacted when read back."
|
|
46679
48458
|
},
|
|
48459
|
+
"projectKeys": {
|
|
48460
|
+
"type": "array",
|
|
48461
|
+
"maxItems": 100,
|
|
48462
|
+
"uniqueItems": true,
|
|
48463
|
+
"description": "Projects where GitBook handles issues. Empty means all accessible projects.",
|
|
48464
|
+
"items": {
|
|
48465
|
+
"type": "string",
|
|
48466
|
+
"minLength": 1,
|
|
48467
|
+
"maxLength": 255
|
|
48468
|
+
}
|
|
48469
|
+
},
|
|
46680
48470
|
"statusMapping": {
|
|
46681
48471
|
"type": "object",
|
|
46682
48472
|
"description": "Jira status to move the linked issue to when the change request reaches a given status, e.g. `{ \"merged\": \"Done\" }`. A status left out is not synced.",
|
|
@@ -47439,6 +49229,10 @@
|
|
|
47439
49229
|
"type": "string",
|
|
47440
49230
|
"description": "The revision ID of the result"
|
|
47441
49231
|
},
|
|
49232
|
+
"path": {
|
|
49233
|
+
"type": "string",
|
|
49234
|
+
"description": "The path of the page within its space, as the published site serves it."
|
|
49235
|
+
},
|
|
47442
49236
|
"anchor": {
|
|
47443
49237
|
"type": "string",
|
|
47444
49238
|
"description": "The anchor of the result"
|
|
@@ -48280,6 +50074,48 @@
|
|
|
48280
50074
|
"totalPages"
|
|
48281
50075
|
]
|
|
48282
50076
|
},
|
|
50077
|
+
"AIToolCallStartBackgroundAgent": {
|
|
50078
|
+
"type": "object",
|
|
50079
|
+
"description": "Tool call recording that the agent started a background agent: a child conversation running one bounded task on its own, in parallel with the conversation that started it. The client renders its live status from `AgentState.backgroundAgents`, matched on `agentId`, and can open the child conversation to read what it did.\n",
|
|
50080
|
+
"properties": {
|
|
50081
|
+
"tool": {
|
|
50082
|
+
"type": "string",
|
|
50083
|
+
"enum": [
|
|
50084
|
+
"startBackgroundAgent"
|
|
50085
|
+
]
|
|
50086
|
+
},
|
|
50087
|
+
"agentId": {
|
|
50088
|
+
"type": "string",
|
|
50089
|
+
"description": "Identifier of the background agent within the conversation that started it."
|
|
50090
|
+
},
|
|
50091
|
+
"conversationId": {
|
|
50092
|
+
"type": "string",
|
|
50093
|
+
"description": "The child conversation holding the background agent's transcript. It can only be read, never continued.\n"
|
|
50094
|
+
},
|
|
50095
|
+
"title": {
|
|
50096
|
+
"type": "string",
|
|
50097
|
+
"description": "A few words naming what the background agent is doing, for a tab and a line of a transcript. The task itself is a brief and far too long to label anything with.\n"
|
|
50098
|
+
},
|
|
50099
|
+
"task": {
|
|
50100
|
+
"type": "string",
|
|
50101
|
+
"description": "The task the background agent was given."
|
|
50102
|
+
},
|
|
50103
|
+
"pages": {
|
|
50104
|
+
"type": "array",
|
|
50105
|
+
"description": "IDs of the pages the background agent owns, when it was started to change content. Two background agents of the same conversation never own the same page.\n",
|
|
50106
|
+
"items": {
|
|
50107
|
+
"type": "string"
|
|
50108
|
+
}
|
|
50109
|
+
}
|
|
50110
|
+
},
|
|
50111
|
+
"required": [
|
|
50112
|
+
"tool",
|
|
50113
|
+
"agentId",
|
|
50114
|
+
"conversationId",
|
|
50115
|
+
"title",
|
|
50116
|
+
"task"
|
|
50117
|
+
]
|
|
50118
|
+
},
|
|
48283
50119
|
"AIToolCallMCP": {
|
|
48284
50120
|
"type": "object",
|
|
48285
50121
|
"description": "Tool called from an MCP server",
|
|
@@ -48434,6 +50270,9 @@
|
|
|
48434
50270
|
{
|
|
48435
50271
|
"$ref": "#/components/schemas/AIToolCallCheckContentImport"
|
|
48436
50272
|
},
|
|
50273
|
+
{
|
|
50274
|
+
"$ref": "#/components/schemas/AIToolCallStartBackgroundAgent"
|
|
50275
|
+
},
|
|
48437
50276
|
{
|
|
48438
50277
|
"$ref": "#/components/schemas/AIToolCallMCP"
|
|
48439
50278
|
},
|
|
@@ -48764,6 +50603,26 @@
|
|
|
48764
50603
|
"spaceId",
|
|
48765
50604
|
"changeRequestId"
|
|
48766
50605
|
]
|
|
50606
|
+
},
|
|
50607
|
+
{
|
|
50608
|
+
"type": "object",
|
|
50609
|
+
"description": "When the agent is a background agent running one task for the conversation that started it.\n",
|
|
50610
|
+
"properties": {
|
|
50611
|
+
"type": {
|
|
50612
|
+
"type": "string",
|
|
50613
|
+
"enum": [
|
|
50614
|
+
"background_agent"
|
|
50615
|
+
]
|
|
50616
|
+
},
|
|
50617
|
+
"parentConversationId": {
|
|
50618
|
+
"type": "string",
|
|
50619
|
+
"description": "The conversation that started this background agent."
|
|
50620
|
+
}
|
|
50621
|
+
},
|
|
50622
|
+
"required": [
|
|
50623
|
+
"type",
|
|
50624
|
+
"parentConversationId"
|
|
50625
|
+
]
|
|
48767
50626
|
}
|
|
48768
50627
|
]
|
|
48769
50628
|
},
|
|
@@ -49834,6 +51693,17 @@
|
|
|
49834
51693
|
"description": "URL of the location.",
|
|
49835
51694
|
"$ref": "#/components/schemas/URL"
|
|
49836
51695
|
},
|
|
51696
|
+
"previousUrl": {
|
|
51697
|
+
"description": "URL of the page of the site the visitor was on before this one, if any. Unlike the session referrer, it follows navigation within the site. Only recorded when it has the same origin as `url`; any other value is discarded.",
|
|
51698
|
+
"oneOf": [
|
|
51699
|
+
{
|
|
51700
|
+
"type": "null"
|
|
51701
|
+
},
|
|
51702
|
+
{
|
|
51703
|
+
"$ref": "#/components/schemas/URL"
|
|
51704
|
+
}
|
|
51705
|
+
]
|
|
51706
|
+
},
|
|
49837
51707
|
"displayContext": {
|
|
49838
51708
|
"description": "Whether the event was tracked on the site, the server, or an embed widget.",
|
|
49839
51709
|
"$ref": "#/components/schemas/SiteInsightsDisplayContext",
|
|
@@ -50208,6 +52078,16 @@
|
|
|
50208
52078
|
"enum": [
|
|
50209
52079
|
"ask_view"
|
|
50210
52080
|
]
|
|
52081
|
+
},
|
|
52082
|
+
"trigger": {
|
|
52083
|
+
"type": "string",
|
|
52084
|
+
"enum": [
|
|
52085
|
+
"hover",
|
|
52086
|
+
"selection",
|
|
52087
|
+
"site",
|
|
52088
|
+
"page",
|
|
52089
|
+
"embed"
|
|
52090
|
+
]
|
|
50211
52091
|
}
|
|
50212
52092
|
},
|
|
50213
52093
|
"required": [
|
|
@@ -51113,6 +52993,7 @@
|
|
|
51113
52993
|
},
|
|
51114
52994
|
{
|
|
51115
52995
|
"type": "object",
|
|
52996
|
+
"description": "How a page was rated, counted once per rating a reader submitted rather than once per\nevent: rating a page and then commenting on it records two events carrying the same\nrating, and a reader may rate a page again on a later visit.\n",
|
|
51116
52997
|
"required": [
|
|
51117
52998
|
"column"
|
|
51118
52999
|
],
|
|
@@ -51167,6 +53048,21 @@
|
|
|
51167
53048
|
}
|
|
51168
53049
|
}
|
|
51169
53050
|
},
|
|
53051
|
+
{
|
|
53052
|
+
"type": "object",
|
|
53053
|
+
"description": "Path of the page of the site the visitor was on before the event, without the origin, share-link prefix, query string or fragment. Empty when the visitor came from another origin, or for events tracked before it was recorded.",
|
|
53054
|
+
"required": [
|
|
53055
|
+
"column"
|
|
53056
|
+
],
|
|
53057
|
+
"properties": {
|
|
53058
|
+
"column": {
|
|
53059
|
+
"type": "string",
|
|
53060
|
+
"enum": [
|
|
53061
|
+
"previousUrl"
|
|
53062
|
+
]
|
|
53063
|
+
}
|
|
53064
|
+
}
|
|
53065
|
+
},
|
|
51170
53066
|
{
|
|
51171
53067
|
"type": "object",
|
|
51172
53068
|
"required": [
|
|
@@ -52296,6 +54192,7 @@
|
|
|
52296
54192
|
},
|
|
52297
54193
|
{
|
|
52298
54194
|
"type": "object",
|
|
54195
|
+
"description": "Ratings submitted on a page, counted once per rating a reader submitted rather than once\nper event.\n",
|
|
52299
54196
|
"required": [
|
|
52300
54197
|
"column",
|
|
52301
54198
|
"values"
|
|
@@ -52469,6 +54366,27 @@
|
|
|
52469
54366
|
}
|
|
52470
54367
|
}
|
|
52471
54368
|
},
|
|
54369
|
+
{
|
|
54370
|
+
"type": "object",
|
|
54371
|
+
"required": [
|
|
54372
|
+
"column",
|
|
54373
|
+
"values"
|
|
54374
|
+
],
|
|
54375
|
+
"properties": {
|
|
54376
|
+
"column": {
|
|
54377
|
+
"type": "string",
|
|
54378
|
+
"enum": [
|
|
54379
|
+
"previousUrl"
|
|
54380
|
+
]
|
|
54381
|
+
},
|
|
54382
|
+
"values": {
|
|
54383
|
+
"type": "array",
|
|
54384
|
+
"items": {
|
|
54385
|
+
"type": "string"
|
|
54386
|
+
}
|
|
54387
|
+
}
|
|
54388
|
+
}
|
|
54389
|
+
},
|
|
52472
54390
|
{
|
|
52473
54391
|
"type": "object",
|
|
52474
54392
|
"required": [
|
|
@@ -52668,6 +54586,7 @@
|
|
|
52668
54586
|
"SiteInsightsQueryRangePreset": {
|
|
52669
54587
|
"type": "string",
|
|
52670
54588
|
"enum": [
|
|
54589
|
+
"yearToDate",
|
|
52671
54590
|
"lastYear",
|
|
52672
54591
|
"last3Months",
|
|
52673
54592
|
"last30Days",
|
|
@@ -53879,11 +55798,11 @@
|
|
|
53879
55798
|
"minimum": 0,
|
|
53880
55799
|
"description": "Current numeric billing override, when set."
|
|
53881
55800
|
},
|
|
53882
|
-
"
|
|
55801
|
+
"Percentage": {
|
|
53883
55802
|
"type": "number",
|
|
53884
55803
|
"minimum": 0,
|
|
53885
55804
|
"maximum": 100,
|
|
53886
|
-
"description": "
|
|
55805
|
+
"description": "A percentage from 0 to 100."
|
|
53887
55806
|
},
|
|
53888
55807
|
"OrganizationBillingOverrides": {
|
|
53889
55808
|
"type": "object",
|
|
@@ -53905,11 +55824,15 @@
|
|
|
53905
55824
|
},
|
|
53906
55825
|
"aiCreditRollover": {
|
|
53907
55826
|
"description": "Percentage of remaining paid AI credits carried into the next billing period. Paid self-serve organizations default to 50% when unset.",
|
|
53908
|
-
"$ref": "#/components/schemas/
|
|
55827
|
+
"$ref": "#/components/schemas/Percentage"
|
|
53909
55828
|
},
|
|
53910
55829
|
"aiCreditAlertThreshold": {
|
|
53911
55830
|
"description": "Percentage of total AI credits remaining at which to send a low-balance alert.",
|
|
53912
|
-
"$ref": "#/components/schemas/
|
|
55831
|
+
"$ref": "#/components/schemas/Percentage"
|
|
55832
|
+
},
|
|
55833
|
+
"aiCreditPauseEnabled": {
|
|
55834
|
+
"description": "Whether AI features pause automatically once all AI credits are used, before usage is billed as overage.",
|
|
55835
|
+
"type": "boolean"
|
|
53913
55836
|
},
|
|
53914
55837
|
"minUsers": {
|
|
53915
55838
|
"description": "Current minimum users override, when set.",
|
|
@@ -53942,6 +55865,17 @@
|
|
|
53942
55865
|
"overrides"
|
|
53943
55866
|
]
|
|
53944
55867
|
},
|
|
55868
|
+
"PercentageThreshold": {
|
|
55869
|
+
"description": "A percentage threshold, or null when disabled.",
|
|
55870
|
+
"oneOf": [
|
|
55871
|
+
{
|
|
55872
|
+
"$ref": "#/components/schemas/Percentage"
|
|
55873
|
+
},
|
|
55874
|
+
{
|
|
55875
|
+
"type": "null"
|
|
55876
|
+
}
|
|
55877
|
+
]
|
|
55878
|
+
},
|
|
53945
55879
|
"BackOfficeSite": {
|
|
53946
55880
|
"allOf": [
|
|
53947
55881
|
{
|
|
@@ -54122,6 +56056,10 @@
|
|
|
54122
56056
|
"type": "string",
|
|
54123
56057
|
"description": "JWT token generated for a authenticated access session."
|
|
54124
56058
|
},
|
|
56059
|
+
"country": {
|
|
56060
|
+
"type": "string",
|
|
56061
|
+
"description": "ISO 3166-1 alpha-2 code of the country the visitor is browsing from, as detected by the renderer."
|
|
56062
|
+
},
|
|
54125
56063
|
"unsignedClaims": {
|
|
54126
56064
|
"$ref": "#/components/schemas/PlainObject"
|
|
54127
56065
|
}
|
|
@@ -54392,7 +56330,8 @@
|
|
|
54392
56330
|
"type": "string",
|
|
54393
56331
|
"description": "Predefined GitBook user identifiers",
|
|
54394
56332
|
"enum": [
|
|
54395
|
-
"gitbook:agent"
|
|
56333
|
+
"gitbook:agent",
|
|
56334
|
+
"gitbook:gitsync"
|
|
54396
56335
|
]
|
|
54397
56336
|
},
|
|
54398
56337
|
"ContentLocationRevisionContext": {
|
|
@@ -55776,6 +57715,10 @@
|
|
|
55776
57715
|
],
|
|
55777
57716
|
"description": "Whether the visitor, for which the token was generated, is a human or an AI agent. Defaults to human when omitted."
|
|
55778
57717
|
},
|
|
57718
|
+
"visitorRegion": {
|
|
57719
|
+
"type": "string",
|
|
57720
|
+
"description": "The region containing the country of the visitor for whom the token was generated. Omitted if the country isn't in any region."
|
|
57721
|
+
},
|
|
55779
57722
|
"claims": {
|
|
55780
57723
|
"type": "object",
|
|
55781
57724
|
"description": "Attributes or assertions that provide specific details about the visitor for which the token was generated.",
|
|
@@ -57672,6 +59615,80 @@
|
|
|
57672
59615
|
"dark"
|
|
57673
59616
|
]
|
|
57674
59617
|
},
|
|
59618
|
+
"SiteAdaptiveJSONSchema": {
|
|
59619
|
+
"type": "object",
|
|
59620
|
+
"description": "JSON schema describing the expected attributes of an Adaptive site schema.",
|
|
59621
|
+
"properties": {
|
|
59622
|
+
"$schema": {
|
|
59623
|
+
"type": "string",
|
|
59624
|
+
"enum": [
|
|
59625
|
+
"http://json-schema.org/draft-07/schema#"
|
|
59626
|
+
]
|
|
59627
|
+
},
|
|
59628
|
+
"type": {
|
|
59629
|
+
"type": "string",
|
|
59630
|
+
"enum": [
|
|
59631
|
+
"object"
|
|
59632
|
+
]
|
|
59633
|
+
},
|
|
59634
|
+
"properties": {
|
|
59635
|
+
"type": "object",
|
|
59636
|
+
"properties": {
|
|
59637
|
+
"unsigned": {
|
|
59638
|
+
"type": "object",
|
|
59639
|
+
"description": "Unsigned claims of the site visitor.",
|
|
59640
|
+
"properties": {
|
|
59641
|
+
"type": {
|
|
59642
|
+
"type": "string",
|
|
59643
|
+
"enum": [
|
|
59644
|
+
"object"
|
|
59645
|
+
]
|
|
59646
|
+
},
|
|
59647
|
+
"description": {
|
|
59648
|
+
"type": "string",
|
|
59649
|
+
"enum": [
|
|
59650
|
+
"Unsigned claims of the site visitor."
|
|
59651
|
+
]
|
|
59652
|
+
},
|
|
59653
|
+
"properties": {
|
|
59654
|
+
"type": "object",
|
|
59655
|
+
"additionalProperties": {
|
|
59656
|
+
"$ref": "#/components/schemas/SiteAdaptiveJSONSchemaClaimsProperties"
|
|
59657
|
+
}
|
|
59658
|
+
},
|
|
59659
|
+
"additionalProperties": {
|
|
59660
|
+
"type": "boolean",
|
|
59661
|
+
"enum": [
|
|
59662
|
+
false
|
|
59663
|
+
]
|
|
59664
|
+
}
|
|
59665
|
+
},
|
|
59666
|
+
"required": [
|
|
59667
|
+
"type",
|
|
59668
|
+
"description",
|
|
59669
|
+
"properties",
|
|
59670
|
+
"additionalProperties"
|
|
59671
|
+
]
|
|
59672
|
+
}
|
|
59673
|
+
},
|
|
59674
|
+
"additionalProperties": {
|
|
59675
|
+
"$ref": "#/components/schemas/SiteAdaptiveJSONSchemaClaimsProperties"
|
|
59676
|
+
}
|
|
59677
|
+
},
|
|
59678
|
+
"additionalProperties": {
|
|
59679
|
+
"type": "boolean",
|
|
59680
|
+
"enum": [
|
|
59681
|
+
false
|
|
59682
|
+
]
|
|
59683
|
+
}
|
|
59684
|
+
},
|
|
59685
|
+
"required": [
|
|
59686
|
+
"type",
|
|
59687
|
+
"properties",
|
|
59688
|
+
"additionalProperties"
|
|
59689
|
+
],
|
|
59690
|
+
"additionalProperties": false
|
|
59691
|
+
},
|
|
57675
59692
|
"SiteAdaptiveDeterministicJSONSchemaClaimsProperties": {
|
|
57676
59693
|
"oneOf": [
|
|
57677
59694
|
{
|
|
@@ -57941,6 +59958,63 @@
|
|
|
57941
59958
|
"modified-pages"
|
|
57942
59959
|
]
|
|
57943
59960
|
},
|
|
59961
|
+
"AgentBackgroundAgentStatus": {
|
|
59962
|
+
"type": "string",
|
|
59963
|
+
"description": "What became of a background agent.\n`running` while it works, `completed` when it reported its result, `failed` when it crashed without recovering or its request was refused, and `stopped` when someone stopped it.\n",
|
|
59964
|
+
"enum": [
|
|
59965
|
+
"running",
|
|
59966
|
+
"completed",
|
|
59967
|
+
"failed",
|
|
59968
|
+
"stopped"
|
|
59969
|
+
]
|
|
59970
|
+
},
|
|
59971
|
+
"AgentBackgroundAgent": {
|
|
59972
|
+
"type": "object",
|
|
59973
|
+
"description": "A background agent of the conversation: a child running one task on its own. Carries what a client shows about it and nothing of what it produced — the report it writes goes to the agent that started it, and its transcript is read by opening its conversation.\n",
|
|
59974
|
+
"properties": {
|
|
59975
|
+
"id": {
|
|
59976
|
+
"type": "string",
|
|
59977
|
+
"description": "Identifier of the background agent within the conversation that started it."
|
|
59978
|
+
},
|
|
59979
|
+
"conversationId": {
|
|
59980
|
+
"type": "string",
|
|
59981
|
+
"description": "The child conversation holding its transcript, which can only be read."
|
|
59982
|
+
},
|
|
59983
|
+
"title": {
|
|
59984
|
+
"type": "string",
|
|
59985
|
+
"description": "A few words naming what it is doing, for a tab and a line of a transcript."
|
|
59986
|
+
},
|
|
59987
|
+
"task": {
|
|
59988
|
+
"type": "string",
|
|
59989
|
+
"description": "The task it was given."
|
|
59990
|
+
},
|
|
59991
|
+
"status": {
|
|
59992
|
+
"$ref": "#/components/schemas/AgentBackgroundAgentStatus"
|
|
59993
|
+
},
|
|
59994
|
+
"startedAt": {
|
|
59995
|
+
"type": "string",
|
|
59996
|
+
"format": "date-time",
|
|
59997
|
+
"description": "When it was started."
|
|
59998
|
+
},
|
|
59999
|
+
"finishedAt": {
|
|
60000
|
+
"type": "string",
|
|
60001
|
+
"format": "date-time",
|
|
60002
|
+
"description": "When it stopped running. Absent while it still runs."
|
|
60003
|
+
},
|
|
60004
|
+
"error": {
|
|
60005
|
+
"type": "string",
|
|
60006
|
+
"description": "Why it failed, when it did."
|
|
60007
|
+
}
|
|
60008
|
+
},
|
|
60009
|
+
"required": [
|
|
60010
|
+
"id",
|
|
60011
|
+
"conversationId",
|
|
60012
|
+
"title",
|
|
60013
|
+
"task",
|
|
60014
|
+
"status",
|
|
60015
|
+
"startedAt"
|
|
60016
|
+
]
|
|
60017
|
+
},
|
|
57944
60018
|
"AgentState": {
|
|
57945
60019
|
"type": "object",
|
|
57946
60020
|
"properties": {
|
|
@@ -57984,6 +60058,13 @@
|
|
|
57984
60058
|
"$ref": "#/components/schemas/AgentEditScope",
|
|
57985
60059
|
"description": "How far this conversation should reach when it changes content.\n"
|
|
57986
60060
|
},
|
|
60061
|
+
"backgroundAgents": {
|
|
60062
|
+
"type": "array",
|
|
60063
|
+
"description": "The background agents this conversation has started, oldest first. Present on every state event so a client can render each one's live status against the tool call that started it.\n",
|
|
60064
|
+
"items": {
|
|
60065
|
+
"$ref": "#/components/schemas/AgentBackgroundAgent"
|
|
60066
|
+
}
|
|
60067
|
+
},
|
|
57987
60068
|
"consultOnly": {
|
|
57988
60069
|
"type": "boolean",
|
|
57989
60070
|
"description": "Whether this conversation can only be read. Set on a transcript the agent produced on its own — an agent review — which is published for its requester to consult rather than to be continued: the client shows no composer and the agent refuses a message sent to it anyway.\n"
|