@gitbook/api 0.201.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 +821 -50
- package/dist/constants.d.ts +8 -5
- package/dist/index.cjs +121 -10
- package/dist/index.js +115 -10
- package/package.json +1 -1
- package/spec/openapi.json +2632 -254
- package/spec/openapi.yaml +1730 -45
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
|
}
|
|
@@ -8850,6 +8951,7 @@
|
|
|
8850
8951
|
"/orgs/{organizationId}/members": {
|
|
8851
8952
|
"get": {
|
|
8852
8953
|
"operationId": "listMembersInOrganizationById",
|
|
8954
|
+
"x-gitbook-mcp": true,
|
|
8853
8955
|
"summary": "List all organization members",
|
|
8854
8956
|
"tags": [
|
|
8855
8957
|
"organization-members"
|
|
@@ -8922,6 +9024,7 @@
|
|
|
8922
9024
|
"/orgs/{organizationId}/members/{userId}": {
|
|
8923
9025
|
"get": {
|
|
8924
9026
|
"operationId": "getMemberInOrganizationById",
|
|
9027
|
+
"x-gitbook-mcp": true,
|
|
8925
9028
|
"summary": "Get an organization member by its ID",
|
|
8926
9029
|
"tags": [
|
|
8927
9030
|
"organization-members",
|
|
@@ -9084,6 +9187,46 @@
|
|
|
9084
9187
|
}
|
|
9085
9188
|
}
|
|
9086
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
|
+
},
|
|
9087
9230
|
"/orgs/{organizationId}/members/{userId}/sso": {
|
|
9088
9231
|
"post": {
|
|
9089
9232
|
"operationId": "setUserAsSSOMemberForOrganization",
|
|
@@ -9187,6 +9330,7 @@
|
|
|
9187
9330
|
"/orgs/{organizationId}/members/{userId}/teams": {
|
|
9188
9331
|
"get": {
|
|
9189
9332
|
"operationId": "listTeamsForOrganizationMember",
|
|
9333
|
+
"x-gitbook-mcp": true,
|
|
9190
9334
|
"summary": "List all organization member teams",
|
|
9191
9335
|
"tags": [
|
|
9192
9336
|
"organization-members"
|
|
@@ -9270,6 +9414,7 @@
|
|
|
9270
9414
|
"/orgs/{organizationId}/teams": {
|
|
9271
9415
|
"get": {
|
|
9272
9416
|
"operationId": "listTeamsInOrganizationById",
|
|
9417
|
+
"x-gitbook-mcp": true,
|
|
9273
9418
|
"summary": "List all teams",
|
|
9274
9419
|
"tags": [
|
|
9275
9420
|
"teams"
|
|
@@ -9573,6 +9718,7 @@
|
|
|
9573
9718
|
},
|
|
9574
9719
|
"get": {
|
|
9575
9720
|
"operationId": "listTeamMembersInOrganizationById",
|
|
9721
|
+
"x-gitbook-mcp": true,
|
|
9576
9722
|
"summary": "List all team members",
|
|
9577
9723
|
"description": "Lists members, and their roles, for the specified organization team.\n",
|
|
9578
9724
|
"tags": [
|
|
@@ -10116,230 +10262,60 @@
|
|
|
10116
10262
|
}
|
|
10117
10263
|
}
|
|
10118
10264
|
},
|
|
10119
|
-
"/orgs/{organizationId}/
|
|
10120
|
-
"get": {
|
|
10121
|
-
"operationId": "searchOrganizationContent",
|
|
10122
|
-
"summary": "Search content in an organization",
|
|
10123
|
-
"x-gitbook-mcp": true,
|
|
10124
|
-
"tags": [
|
|
10125
|
-
"organizations"
|
|
10126
|
-
],
|
|
10127
|
-
"security": [
|
|
10128
|
-
{
|
|
10129
|
-
"user": []
|
|
10130
|
-
},
|
|
10131
|
-
{
|
|
10132
|
-
"oauth": [
|
|
10133
|
-
"organization:search"
|
|
10134
|
-
]
|
|
10135
|
-
}
|
|
10136
|
-
],
|
|
10137
|
-
"parameters": [
|
|
10138
|
-
{
|
|
10139
|
-
"name": "query",
|
|
10140
|
-
"in": "query",
|
|
10141
|
-
"required": true,
|
|
10142
|
-
"schema": {
|
|
10143
|
-
"type": "string",
|
|
10144
|
-
"maxLength": 512
|
|
10145
|
-
}
|
|
10146
|
-
},
|
|
10147
|
-
{
|
|
10148
|
-
"$ref": "#/components/parameters/organizationId"
|
|
10149
|
-
},
|
|
10150
|
-
{
|
|
10151
|
-
"$ref": "#/components/parameters/listPage"
|
|
10152
|
-
},
|
|
10153
|
-
{
|
|
10154
|
-
"$ref": "#/components/parameters/listLimit"
|
|
10155
|
-
}
|
|
10156
|
-
],
|
|
10157
|
-
"responses": {
|
|
10158
|
-
"200": {
|
|
10159
|
-
"description": "OK",
|
|
10160
|
-
"content": {
|
|
10161
|
-
"application/json": {
|
|
10162
|
-
"schema": {
|
|
10163
|
-
"allOf": [
|
|
10164
|
-
{
|
|
10165
|
-
"$ref": "#/components/schemas/List"
|
|
10166
|
-
},
|
|
10167
|
-
{
|
|
10168
|
-
"type": "object",
|
|
10169
|
-
"required": [
|
|
10170
|
-
"items"
|
|
10171
|
-
],
|
|
10172
|
-
"properties": {
|
|
10173
|
-
"items": {
|
|
10174
|
-
"type": "array",
|
|
10175
|
-
"items": {
|
|
10176
|
-
"$ref": "#/components/schemas/SearchSpaceResult"
|
|
10177
|
-
}
|
|
10178
|
-
}
|
|
10179
|
-
}
|
|
10180
|
-
}
|
|
10181
|
-
]
|
|
10182
|
-
}
|
|
10183
|
-
}
|
|
10184
|
-
}
|
|
10185
|
-
}
|
|
10186
|
-
}
|
|
10187
|
-
}
|
|
10188
|
-
},
|
|
10189
|
-
"/orgs/{organizationId}/change-requests": {
|
|
10265
|
+
"/orgs/{organizationId}/billing/ai-usage": {
|
|
10190
10266
|
"get": {
|
|
10191
|
-
"operationId": "
|
|
10192
|
-
"summary": "
|
|
10193
|
-
"description": "Returns
|
|
10267
|
+
"operationId": "getOrganizationAIUsage",
|
|
10268
|
+
"summary": "Get AI credit usage by AI feature and time period",
|
|
10269
|
+
"description": "Returns recorded AI usage for an organization. Calendar buckets use UTC;\nweeks start on Monday. Requires organization administrator permissions.\n",
|
|
10194
10270
|
"x-gitbook-mcp": true,
|
|
10195
10271
|
"tags": [
|
|
10196
|
-
"
|
|
10272
|
+
"billing"
|
|
10197
10273
|
],
|
|
10198
10274
|
"security": [
|
|
10199
10275
|
{
|
|
10200
10276
|
"user": []
|
|
10201
|
-
},
|
|
10202
|
-
{
|
|
10203
|
-
"oauth": [
|
|
10204
|
-
"space:read"
|
|
10205
|
-
]
|
|
10206
10277
|
}
|
|
10207
10278
|
],
|
|
10208
10279
|
"parameters": [
|
|
10209
|
-
{
|
|
10210
|
-
"$ref": "#/components/parameters/listPage"
|
|
10211
|
-
},
|
|
10212
|
-
{
|
|
10213
|
-
"$ref": "#/components/parameters/listLimit"
|
|
10214
|
-
},
|
|
10215
10280
|
{
|
|
10216
10281
|
"$ref": "#/components/parameters/organizationId"
|
|
10217
10282
|
},
|
|
10218
10283
|
{
|
|
10219
|
-
"name": "
|
|
10284
|
+
"name": "from",
|
|
10220
10285
|
"in": "query",
|
|
10221
|
-
"required":
|
|
10286
|
+
"required": true,
|
|
10287
|
+
"description": "Inclusive start timestamp. Cannot be older than two years from now.",
|
|
10222
10288
|
"schema": {
|
|
10223
|
-
"type": "
|
|
10224
|
-
"
|
|
10225
|
-
"items": {
|
|
10226
|
-
"$ref": "#/components/schemas/ChangeRequestStatus"
|
|
10227
|
-
},
|
|
10228
|
-
"default": [
|
|
10229
|
-
"open"
|
|
10230
|
-
]
|
|
10289
|
+
"type": "string",
|
|
10290
|
+
"format": "date-time"
|
|
10231
10291
|
}
|
|
10232
10292
|
},
|
|
10233
10293
|
{
|
|
10234
|
-
"name": "
|
|
10235
|
-
"in": "query",
|
|
10236
|
-
"required": false,
|
|
10237
|
-
"schema": {
|
|
10238
|
-
"type": "string"
|
|
10239
|
-
},
|
|
10240
|
-
"description": "If defined, only change requests created by this user will be returned."
|
|
10241
|
-
},
|
|
10242
|
-
{
|
|
10243
|
-
"name": "contributor",
|
|
10244
|
-
"in": "query",
|
|
10245
|
-
"required": false,
|
|
10246
|
-
"schema": {
|
|
10247
|
-
"type": "string"
|
|
10248
|
-
},
|
|
10249
|
-
"description": "If defined, only change requests with contributions from this user will be returned."
|
|
10250
|
-
},
|
|
10251
|
-
{
|
|
10252
|
-
"name": "requestedReviewer",
|
|
10253
|
-
"in": "query",
|
|
10254
|
-
"required": false,
|
|
10255
|
-
"schema": {
|
|
10256
|
-
"type": "string"
|
|
10257
|
-
},
|
|
10258
|
-
"description": "If defined, only change requests with a requested reviewer for this user will be returned."
|
|
10259
|
-
},
|
|
10260
|
-
{
|
|
10261
|
-
"name": "site",
|
|
10262
|
-
"in": "query",
|
|
10263
|
-
"required": false,
|
|
10264
|
-
"schema": {
|
|
10265
|
-
"type": "string"
|
|
10266
|
-
},
|
|
10267
|
-
"description": "If defined, only change requests linked to this site will be returned."
|
|
10268
|
-
},
|
|
10269
|
-
{
|
|
10270
|
-
"name": "space",
|
|
10271
|
-
"in": "query",
|
|
10272
|
-
"required": false,
|
|
10273
|
-
"schema": {
|
|
10274
|
-
"type": "string"
|
|
10275
|
-
},
|
|
10276
|
-
"description": "If defined, only change requests from this space will be returned."
|
|
10277
|
-
},
|
|
10278
|
-
{
|
|
10279
|
-
"name": "topic",
|
|
10280
|
-
"in": "query",
|
|
10281
|
-
"required": false,
|
|
10282
|
-
"schema": {
|
|
10283
|
-
"type": "string"
|
|
10284
|
-
},
|
|
10285
|
-
"description": "If defined, only change requests linked to this site topic will be returned."
|
|
10286
|
-
},
|
|
10287
|
-
{
|
|
10288
|
-
"name": "styleguideRun",
|
|
10289
|
-
"in": "query",
|
|
10290
|
-
"required": false,
|
|
10291
|
-
"schema": {
|
|
10292
|
-
"type": "string"
|
|
10293
|
-
},
|
|
10294
|
-
"description": "If defined, only change requests opened by this style guide check run will be returned."
|
|
10295
|
-
},
|
|
10296
|
-
{
|
|
10297
|
-
"name": "finding",
|
|
10294
|
+
"name": "to",
|
|
10298
10295
|
"in": "query",
|
|
10299
|
-
"required":
|
|
10296
|
+
"required": true,
|
|
10297
|
+
"description": "Exclusive end timestamp.",
|
|
10300
10298
|
"schema": {
|
|
10301
10299
|
"type": "string",
|
|
10302
|
-
"
|
|
10303
|
-
|
|
10304
|
-
"all"
|
|
10305
|
-
]
|
|
10306
|
-
},
|
|
10307
|
-
"description": "Controls whether change requests from triage are included. Pass `none` to exclude change requests from triage, or `all` to include them. Default is `none`."
|
|
10300
|
+
"format": "date-time"
|
|
10301
|
+
}
|
|
10308
10302
|
},
|
|
10309
10303
|
{
|
|
10310
|
-
"name": "
|
|
10304
|
+
"name": "interval",
|
|
10311
10305
|
"in": "query",
|
|
10312
|
-
"
|
|
10306
|
+
"description": "Calendar interval used to aggregate usage.",
|
|
10313
10307
|
"schema": {
|
|
10314
|
-
"$ref": "#/components/schemas/
|
|
10308
|
+
"$ref": "#/components/schemas/AIUsageInterval"
|
|
10315
10309
|
}
|
|
10316
10310
|
}
|
|
10317
10311
|
],
|
|
10318
10312
|
"responses": {
|
|
10319
10313
|
"200": {
|
|
10320
|
-
"description": "
|
|
10314
|
+
"description": "AI usage, including empty periods in the requested range.",
|
|
10321
10315
|
"content": {
|
|
10322
10316
|
"application/json": {
|
|
10323
10317
|
"schema": {
|
|
10324
|
-
"
|
|
10325
|
-
{
|
|
10326
|
-
"$ref": "#/components/schemas/List"
|
|
10327
|
-
},
|
|
10328
|
-
{
|
|
10329
|
-
"type": "object",
|
|
10330
|
-
"required": [
|
|
10331
|
-
"items"
|
|
10332
|
-
],
|
|
10333
|
-
"properties": {
|
|
10334
|
-
"items": {
|
|
10335
|
-
"type": "array",
|
|
10336
|
-
"items": {
|
|
10337
|
-
"$ref": "#/components/schemas/ChangeRequest"
|
|
10338
|
-
}
|
|
10339
|
-
}
|
|
10340
|
-
}
|
|
10341
|
-
}
|
|
10342
|
-
]
|
|
10318
|
+
"$ref": "#/components/schemas/OrganizationAIUsage"
|
|
10343
10319
|
}
|
|
10344
10320
|
}
|
|
10345
10321
|
}
|
|
@@ -10347,25 +10323,256 @@
|
|
|
10347
10323
|
}
|
|
10348
10324
|
}
|
|
10349
10325
|
},
|
|
10350
|
-
"/orgs/{organizationId}/
|
|
10326
|
+
"/orgs/{organizationId}/search": {
|
|
10351
10327
|
"get": {
|
|
10352
|
-
"operationId": "
|
|
10353
|
-
"summary": "
|
|
10354
|
-
"description": "Returns a paginated list of all spaces belonging to the organization. A space is a collection of documentation pages with its own content tree and revision history. Use this to discover spaces before reading their content, adding them to a site, or performing operations on specific spaces.",
|
|
10328
|
+
"operationId": "searchOrganizationContent",
|
|
10329
|
+
"summary": "Search content in an organization",
|
|
10355
10330
|
"x-gitbook-mcp": true,
|
|
10356
10331
|
"tags": [
|
|
10357
|
-
"
|
|
10332
|
+
"organizations"
|
|
10358
10333
|
],
|
|
10359
10334
|
"security": [
|
|
10360
10335
|
{
|
|
10361
10336
|
"user": []
|
|
10362
10337
|
},
|
|
10363
|
-
{
|
|
10364
|
-
"integration-installation": []
|
|
10365
|
-
},
|
|
10366
10338
|
{
|
|
10367
10339
|
"oauth": [
|
|
10368
|
-
"
|
|
10340
|
+
"organization:search"
|
|
10341
|
+
]
|
|
10342
|
+
}
|
|
10343
|
+
],
|
|
10344
|
+
"parameters": [
|
|
10345
|
+
{
|
|
10346
|
+
"name": "query",
|
|
10347
|
+
"in": "query",
|
|
10348
|
+
"required": true,
|
|
10349
|
+
"schema": {
|
|
10350
|
+
"type": "string",
|
|
10351
|
+
"maxLength": 512
|
|
10352
|
+
}
|
|
10353
|
+
},
|
|
10354
|
+
{
|
|
10355
|
+
"$ref": "#/components/parameters/organizationId"
|
|
10356
|
+
},
|
|
10357
|
+
{
|
|
10358
|
+
"$ref": "#/components/parameters/listPage"
|
|
10359
|
+
},
|
|
10360
|
+
{
|
|
10361
|
+
"$ref": "#/components/parameters/listLimit"
|
|
10362
|
+
}
|
|
10363
|
+
],
|
|
10364
|
+
"responses": {
|
|
10365
|
+
"200": {
|
|
10366
|
+
"description": "OK",
|
|
10367
|
+
"content": {
|
|
10368
|
+
"application/json": {
|
|
10369
|
+
"schema": {
|
|
10370
|
+
"allOf": [
|
|
10371
|
+
{
|
|
10372
|
+
"$ref": "#/components/schemas/List"
|
|
10373
|
+
},
|
|
10374
|
+
{
|
|
10375
|
+
"type": "object",
|
|
10376
|
+
"required": [
|
|
10377
|
+
"items"
|
|
10378
|
+
],
|
|
10379
|
+
"properties": {
|
|
10380
|
+
"items": {
|
|
10381
|
+
"type": "array",
|
|
10382
|
+
"items": {
|
|
10383
|
+
"$ref": "#/components/schemas/SearchSpaceResult"
|
|
10384
|
+
}
|
|
10385
|
+
}
|
|
10386
|
+
}
|
|
10387
|
+
}
|
|
10388
|
+
]
|
|
10389
|
+
}
|
|
10390
|
+
}
|
|
10391
|
+
}
|
|
10392
|
+
}
|
|
10393
|
+
}
|
|
10394
|
+
}
|
|
10395
|
+
},
|
|
10396
|
+
"/orgs/{organizationId}/change-requests": {
|
|
10397
|
+
"get": {
|
|
10398
|
+
"operationId": "listChangeRequestsForOrganization",
|
|
10399
|
+
"summary": "List all change requests across an entire organization",
|
|
10400
|
+
"description": "Returns a paginated list of change requests across all spaces in the organization. Use this for an organization-wide view of open drafts — for example, to find all change requests needing a specific reviewer's attention. For a single space's change requests, use the space-scoped endpoint instead.",
|
|
10401
|
+
"x-gitbook-mcp": true,
|
|
10402
|
+
"tags": [
|
|
10403
|
+
"change-requests"
|
|
10404
|
+
],
|
|
10405
|
+
"security": [
|
|
10406
|
+
{
|
|
10407
|
+
"user": []
|
|
10408
|
+
},
|
|
10409
|
+
{
|
|
10410
|
+
"oauth": [
|
|
10411
|
+
"space:read"
|
|
10412
|
+
]
|
|
10413
|
+
}
|
|
10414
|
+
],
|
|
10415
|
+
"parameters": [
|
|
10416
|
+
{
|
|
10417
|
+
"$ref": "#/components/parameters/listPage"
|
|
10418
|
+
},
|
|
10419
|
+
{
|
|
10420
|
+
"$ref": "#/components/parameters/listLimit"
|
|
10421
|
+
},
|
|
10422
|
+
{
|
|
10423
|
+
"$ref": "#/components/parameters/organizationId"
|
|
10424
|
+
},
|
|
10425
|
+
{
|
|
10426
|
+
"name": "status",
|
|
10427
|
+
"in": "query",
|
|
10428
|
+
"required": false,
|
|
10429
|
+
"schema": {
|
|
10430
|
+
"type": "array",
|
|
10431
|
+
"description": "If defined, only change requests matching the statuses will be returned.",
|
|
10432
|
+
"items": {
|
|
10433
|
+
"$ref": "#/components/schemas/ChangeRequestStatus"
|
|
10434
|
+
},
|
|
10435
|
+
"default": [
|
|
10436
|
+
"open"
|
|
10437
|
+
]
|
|
10438
|
+
}
|
|
10439
|
+
},
|
|
10440
|
+
{
|
|
10441
|
+
"name": "creator",
|
|
10442
|
+
"in": "query",
|
|
10443
|
+
"required": false,
|
|
10444
|
+
"schema": {
|
|
10445
|
+
"type": "string"
|
|
10446
|
+
},
|
|
10447
|
+
"description": "If defined, only change requests created by this user will be returned."
|
|
10448
|
+
},
|
|
10449
|
+
{
|
|
10450
|
+
"name": "contributor",
|
|
10451
|
+
"in": "query",
|
|
10452
|
+
"required": false,
|
|
10453
|
+
"schema": {
|
|
10454
|
+
"type": "string"
|
|
10455
|
+
},
|
|
10456
|
+
"description": "If defined, only change requests with contributions from this user will be returned."
|
|
10457
|
+
},
|
|
10458
|
+
{
|
|
10459
|
+
"name": "requestedReviewer",
|
|
10460
|
+
"in": "query",
|
|
10461
|
+
"required": false,
|
|
10462
|
+
"schema": {
|
|
10463
|
+
"type": "string"
|
|
10464
|
+
},
|
|
10465
|
+
"description": "If defined, only change requests with a requested reviewer for this user will be returned."
|
|
10466
|
+
},
|
|
10467
|
+
{
|
|
10468
|
+
"name": "site",
|
|
10469
|
+
"in": "query",
|
|
10470
|
+
"required": false,
|
|
10471
|
+
"schema": {
|
|
10472
|
+
"type": "string"
|
|
10473
|
+
},
|
|
10474
|
+
"description": "If defined, only change requests linked to this site will be returned."
|
|
10475
|
+
},
|
|
10476
|
+
{
|
|
10477
|
+
"name": "space",
|
|
10478
|
+
"in": "query",
|
|
10479
|
+
"required": false,
|
|
10480
|
+
"schema": {
|
|
10481
|
+
"type": "string"
|
|
10482
|
+
},
|
|
10483
|
+
"description": "If defined, only change requests from this space will be returned."
|
|
10484
|
+
},
|
|
10485
|
+
{
|
|
10486
|
+
"name": "topic",
|
|
10487
|
+
"in": "query",
|
|
10488
|
+
"required": false,
|
|
10489
|
+
"schema": {
|
|
10490
|
+
"type": "string"
|
|
10491
|
+
},
|
|
10492
|
+
"description": "If defined, only change requests linked to this site topic will be returned."
|
|
10493
|
+
},
|
|
10494
|
+
{
|
|
10495
|
+
"name": "styleguideRun",
|
|
10496
|
+
"in": "query",
|
|
10497
|
+
"required": false,
|
|
10498
|
+
"schema": {
|
|
10499
|
+
"type": "string"
|
|
10500
|
+
},
|
|
10501
|
+
"description": "If defined, only change requests opened by this style guide check run will be returned."
|
|
10502
|
+
},
|
|
10503
|
+
{
|
|
10504
|
+
"name": "finding",
|
|
10505
|
+
"in": "query",
|
|
10506
|
+
"required": false,
|
|
10507
|
+
"schema": {
|
|
10508
|
+
"type": "string",
|
|
10509
|
+
"enum": [
|
|
10510
|
+
"none",
|
|
10511
|
+
"all"
|
|
10512
|
+
]
|
|
10513
|
+
},
|
|
10514
|
+
"description": "Controls whether change requests from triage are included. Pass `none` to exclude change requests from triage, or `all` to include them. Default is `none`."
|
|
10515
|
+
},
|
|
10516
|
+
{
|
|
10517
|
+
"name": "orderBy",
|
|
10518
|
+
"in": "query",
|
|
10519
|
+
"required": false,
|
|
10520
|
+
"schema": {
|
|
10521
|
+
"$ref": "#/components/schemas/ChangeRequestOrderBy"
|
|
10522
|
+
}
|
|
10523
|
+
}
|
|
10524
|
+
],
|
|
10525
|
+
"responses": {
|
|
10526
|
+
"200": {
|
|
10527
|
+
"description": "List of the organization's change requests",
|
|
10528
|
+
"content": {
|
|
10529
|
+
"application/json": {
|
|
10530
|
+
"schema": {
|
|
10531
|
+
"allOf": [
|
|
10532
|
+
{
|
|
10533
|
+
"$ref": "#/components/schemas/List"
|
|
10534
|
+
},
|
|
10535
|
+
{
|
|
10536
|
+
"type": "object",
|
|
10537
|
+
"required": [
|
|
10538
|
+
"items"
|
|
10539
|
+
],
|
|
10540
|
+
"properties": {
|
|
10541
|
+
"items": {
|
|
10542
|
+
"type": "array",
|
|
10543
|
+
"items": {
|
|
10544
|
+
"$ref": "#/components/schemas/ChangeRequest"
|
|
10545
|
+
}
|
|
10546
|
+
}
|
|
10547
|
+
}
|
|
10548
|
+
}
|
|
10549
|
+
]
|
|
10550
|
+
}
|
|
10551
|
+
}
|
|
10552
|
+
}
|
|
10553
|
+
}
|
|
10554
|
+
}
|
|
10555
|
+
}
|
|
10556
|
+
},
|
|
10557
|
+
"/orgs/{organizationId}/spaces": {
|
|
10558
|
+
"get": {
|
|
10559
|
+
"operationId": "listSpacesInOrganizationById",
|
|
10560
|
+
"summary": "List all spaces in an organization",
|
|
10561
|
+
"description": "Returns a paginated list of all spaces belonging to the organization. A space is a collection of documentation pages with its own content tree and revision history. Use this to discover spaces before reading their content, adding them to a site, or performing operations on specific spaces.",
|
|
10562
|
+
"x-gitbook-mcp": true,
|
|
10563
|
+
"tags": [
|
|
10564
|
+
"spaces"
|
|
10565
|
+
],
|
|
10566
|
+
"security": [
|
|
10567
|
+
{
|
|
10568
|
+
"user": []
|
|
10569
|
+
},
|
|
10570
|
+
{
|
|
10571
|
+
"integration-installation": []
|
|
10572
|
+
},
|
|
10573
|
+
{
|
|
10574
|
+
"oauth": [
|
|
10575
|
+
"space:read"
|
|
10369
10576
|
]
|
|
10370
10577
|
}
|
|
10371
10578
|
],
|
|
@@ -13278,7 +13485,7 @@
|
|
|
13278
13485
|
"get": {
|
|
13279
13486
|
"operationId": "listSites",
|
|
13280
13487
|
"summary": "List all documentation sites in an organization",
|
|
13281
|
-
"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.",
|
|
13282
13489
|
"x-gitbook-mcp": true,
|
|
13283
13490
|
"tags": [
|
|
13284
13491
|
"sites",
|
|
@@ -13452,7 +13659,7 @@
|
|
|
13452
13659
|
"get": {
|
|
13453
13660
|
"operationId": "getSiteById",
|
|
13454
13661
|
"summary": "Get a documentation site by its ID",
|
|
13455
|
-
"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.",
|
|
13456
13663
|
"x-gitbook-mcp": true,
|
|
13457
13664
|
"tags": [
|
|
13458
13665
|
"sites"
|
|
@@ -13759,8 +13966,8 @@
|
|
|
13759
13966
|
"type": "object",
|
|
13760
13967
|
"properties": {
|
|
13761
13968
|
"jsonSchema": {
|
|
13762
|
-
"description": "The JSON schema to set on the site.",
|
|
13763
|
-
"$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"
|
|
13764
13971
|
}
|
|
13765
13972
|
},
|
|
13766
13973
|
"required": [
|
|
@@ -13915,7 +14122,19 @@
|
|
|
13915
14122
|
"schema": {
|
|
13916
14123
|
"oneOf": [
|
|
13917
14124
|
{
|
|
13918
|
-
"
|
|
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
|
+
]
|
|
13919
14138
|
},
|
|
13920
14139
|
{
|
|
13921
14140
|
"type": "object",
|
|
@@ -13930,6 +14149,9 @@
|
|
|
13930
14149
|
"sessionId": {
|
|
13931
14150
|
"type": "string",
|
|
13932
14151
|
"description": "Stripe payment session ID"
|
|
14152
|
+
},
|
|
14153
|
+
"subscriptionNotice": {
|
|
14154
|
+
"$ref": "#/components/schemas/SubscriptionNotice"
|
|
13933
14155
|
}
|
|
13934
14156
|
},
|
|
13935
14157
|
"required": [
|
|
@@ -13986,6 +14208,376 @@
|
|
|
13986
14208
|
}
|
|
13987
14209
|
}
|
|
13988
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
|
+
},
|
|
13989
14581
|
"/orgs/{organizationId}/sites/{siteId}/share-links": {
|
|
13990
14582
|
"get": {
|
|
13991
14583
|
"operationId": "listSiteShareLinks",
|
|
@@ -14227,7 +14819,7 @@
|
|
|
14227
14819
|
"get": {
|
|
14228
14820
|
"operationId": "getSiteStructure",
|
|
14229
14821
|
"summary": "Get the full navigation structure of a site",
|
|
14230
|
-
"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.",
|
|
14231
14823
|
"x-gitbook-mcp": true,
|
|
14232
14824
|
"tags": [
|
|
14233
14825
|
"site-structure"
|
|
@@ -14541,6 +15133,14 @@
|
|
|
14541
15133
|
"type": "string"
|
|
14542
15134
|
}
|
|
14543
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
|
+
},
|
|
14544
15144
|
{
|
|
14545
15145
|
"name": "draft",
|
|
14546
15146
|
"in": "query",
|
|
@@ -14672,7 +15272,19 @@
|
|
|
14672
15272
|
"content": {
|
|
14673
15273
|
"application/json": {
|
|
14674
15274
|
"schema": {
|
|
14675
|
-
"
|
|
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
|
+
]
|
|
14676
15288
|
}
|
|
14677
15289
|
}
|
|
14678
15290
|
}
|
|
@@ -14911,7 +15523,7 @@
|
|
|
14911
15523
|
"get": {
|
|
14912
15524
|
"operationId": "listSiteSpaces",
|
|
14913
15525
|
"summary": "List all spaces linked to a site as content sources",
|
|
14914
|
-
"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.",
|
|
14915
15527
|
"x-gitbook-mcp": true,
|
|
14916
15528
|
"tags": [
|
|
14917
15529
|
"site-spaces",
|
|
@@ -15131,7 +15743,19 @@
|
|
|
15131
15743
|
"content": {
|
|
15132
15744
|
"application/json": {
|
|
15133
15745
|
"schema": {
|
|
15134
|
-
"
|
|
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
|
+
]
|
|
15135
15759
|
}
|
|
15136
15760
|
}
|
|
15137
15761
|
}
|
|
@@ -15379,7 +16003,19 @@
|
|
|
15379
16003
|
"content": {
|
|
15380
16004
|
"application/json": {
|
|
15381
16005
|
"schema": {
|
|
15382
|
-
"
|
|
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
|
+
]
|
|
15383
16019
|
}
|
|
15384
16020
|
}
|
|
15385
16021
|
}
|
|
@@ -16742,7 +17378,7 @@
|
|
|
16742
17378
|
"get": {
|
|
16743
17379
|
"operationId": "listSiteFindings",
|
|
16744
17380
|
"summary": "List documentation issues GitBook has found on a site",
|
|
16745
|
-
"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.",
|
|
16746
17382
|
"x-gitbook-mcp": true,
|
|
16747
17383
|
"tags": [
|
|
16748
17384
|
"site-context"
|
|
@@ -16805,6 +17441,14 @@
|
|
|
16805
17441
|
}
|
|
16806
17442
|
}
|
|
16807
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
|
+
},
|
|
16808
17452
|
{
|
|
16809
17453
|
"name": "severity",
|
|
16810
17454
|
"in": "query",
|
|
@@ -20523,7 +21167,7 @@
|
|
|
20523
21167
|
"post": {
|
|
20524
21168
|
"operationId": "createSiteStyleguideRun",
|
|
20525
21169
|
"summary": "Start a style guide check run for a site",
|
|
20526
|
-
"description": "Starts a style guide check: GitBook Agent reviews the given spaces against the site's style guide and proposes fixes.
|
|
21170
|
+
"description": "Starts a style guide check: GitBook Agent reviews the given spaces against the site's style guide and proposes fixes. A space with no check open gets a new draft change request marked as belonging to the returned run; one whose check is still open has it taken over instead, so it stays marked with the run that opened it. Fails if the site has no style guide.",
|
|
20527
21171
|
"x-gitbook-mcp": true,
|
|
20528
21172
|
"tags": [
|
|
20529
21173
|
"sites"
|
|
@@ -20583,7 +21227,7 @@
|
|
|
20583
21227
|
},
|
|
20584
21228
|
"changeRequests": {
|
|
20585
21229
|
"type": "array",
|
|
20586
|
-
"description": "The change
|
|
21230
|
+
"description": "The change request each space's check runs in: opened by this run, or already open and taken over. One per space that could be started.",
|
|
20587
21231
|
"items": {
|
|
20588
21232
|
"$ref": "#/components/schemas/ChangeRequest"
|
|
20589
21233
|
}
|
|
@@ -20713,7 +21357,7 @@
|
|
|
20713
21357
|
"post": {
|
|
20714
21358
|
"operationId": "aggregateSiteEvents",
|
|
20715
21359
|
"summary": "Query a site's analytics events",
|
|
20716
|
-
"description": "Runs an aggregation query over a published site's Insights events, grouped and filtered over a time range. Use it to answer analytics questions about how visitors engage with a site's documentation.",
|
|
21360
|
+
"description": "Runs an aggregation query over a published site's Insights events, grouped and filtered over a time range. Use it to answer analytics questions about how visitors engage with a site's documentation: page views, visitors, searches, referrers, and broken URLs (404s). A 404 is a `page_view` or `search_open_result` event whose `page` is `null`, in the `site` display context; filter `eventPageNotFoundType` not in `conditional` to leave out 404s that adaptive content explains. Group by `datetime` for a trend over time and by `urlPath` for the top broken URLs.",
|
|
20717
21361
|
"x-gitbook-mcp": true,
|
|
20718
21362
|
"security": [
|
|
20719
21363
|
{
|
|
@@ -20897,6 +21541,10 @@
|
|
|
20897
21541
|
"schema": {
|
|
20898
21542
|
"type": "object",
|
|
20899
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
|
+
},
|
|
20900
21548
|
"source": {
|
|
20901
21549
|
"$ref": "#/components/schemas/SiteRedirectSourcePath"
|
|
20902
21550
|
},
|
|
@@ -21912,6 +22560,221 @@
|
|
|
21912
22560
|
}
|
|
21913
22561
|
}
|
|
21914
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
|
+
},
|
|
21915
22778
|
"/orgs/{organizationId}/sites/{siteId}/channels/{siteChannelId}": {
|
|
21916
22779
|
"get": {
|
|
21917
22780
|
"operationId": "getSiteChannelById",
|
|
@@ -22022,6 +22885,7 @@
|
|
|
22022
22885
|
"delete": {
|
|
22023
22886
|
"operationId": "deleteSiteChannelById",
|
|
22024
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.",
|
|
22025
22889
|
"tags": [
|
|
22026
22890
|
"site-channels"
|
|
22027
22891
|
],
|
|
@@ -23894,6 +24758,15 @@
|
|
|
23894
24758
|
"type": "string"
|
|
23895
24759
|
}
|
|
23896
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
|
+
},
|
|
23897
24770
|
"shareLinkId": {
|
|
23898
24771
|
"name": "shareLinkId",
|
|
23899
24772
|
"in": "path",
|
|
@@ -24654,6 +25527,10 @@
|
|
|
24654
25527
|
"type": "string",
|
|
24655
25528
|
"description": "The URL to the repository tree, used when rendering public content."
|
|
24656
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
|
+
},
|
|
24657
25534
|
"operation": {
|
|
24658
25535
|
"type": "object",
|
|
24659
25536
|
"description": "The latest operation on the Git Sync installation.",
|
|
@@ -24699,6 +25576,19 @@
|
|
|
24699
25576
|
"installationStatus"
|
|
24700
25577
|
]
|
|
24701
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
|
+
},
|
|
24702
25592
|
"ContentImportSource": {
|
|
24703
25593
|
"oneOf": [
|
|
24704
25594
|
{
|
|
@@ -25073,6 +25963,9 @@
|
|
|
25073
25963
|
"gitSync": {
|
|
25074
25964
|
"$ref": "#/components/schemas/GitSyncState"
|
|
25075
25965
|
},
|
|
25966
|
+
"previousGitSync": {
|
|
25967
|
+
"$ref": "#/components/schemas/PreviousGitSyncState"
|
|
25968
|
+
},
|
|
25076
25969
|
"imports": {
|
|
25077
25970
|
"description": "Import runs targeting this space, still running or ended recently, most recent first. Only returned when fetching a single space.\n",
|
|
25078
25971
|
"type": "array",
|
|
@@ -29200,6 +30093,10 @@
|
|
|
29200
30093
|
},
|
|
29201
30094
|
"icon": {
|
|
29202
30095
|
"$ref": "#/components/schemas/Icon"
|
|
30096
|
+
},
|
|
30097
|
+
"slug": {
|
|
30098
|
+
"description": "Stable identifier for this tab's selection, shared with every tab and button targeting the same slug. It is slugified before matching, so casing and spacing need not be exact. Omit it — or send an empty value, which counts as omitted — to derive one from the title, which is what makes same-named tabs across a site select together. A value that slugifies to nothing, such as emoji alone, also falls back to the title.",
|
|
30099
|
+
"type": "string"
|
|
29203
30100
|
}
|
|
29204
30101
|
}
|
|
29205
30102
|
},
|
|
@@ -31116,6 +32013,10 @@
|
|
|
31116
32013
|
"actions": {
|
|
31117
32014
|
"type": "boolean",
|
|
31118
32015
|
"description": "Should the page actions be visible on the page?"
|
|
32016
|
+
},
|
|
32017
|
+
"anchors": {
|
|
32018
|
+
"type": "boolean",
|
|
32019
|
+
"description": "Should the anchor links on headings and other linkable blocks be visible?"
|
|
31119
32020
|
}
|
|
31120
32021
|
},
|
|
31121
32022
|
"required": [
|
|
@@ -31130,7 +32031,8 @@
|
|
|
31130
32031
|
"pagination",
|
|
31131
32032
|
"metadata",
|
|
31132
32033
|
"tags",
|
|
31133
|
-
"actions"
|
|
32034
|
+
"actions",
|
|
32035
|
+
"anchors"
|
|
31134
32036
|
]
|
|
31135
32037
|
},
|
|
31136
32038
|
"RevisionPageDocumentCoverTextColor": {
|
|
@@ -31869,7 +32771,8 @@
|
|
|
31869
32771
|
"provider": {
|
|
31870
32772
|
"type": "string",
|
|
31871
32773
|
"enum": [
|
|
31872
|
-
"jira"
|
|
32774
|
+
"jira",
|
|
32775
|
+
"linear"
|
|
31873
32776
|
]
|
|
31874
32777
|
},
|
|
31875
32778
|
"state": {
|
|
@@ -31930,7 +32833,8 @@
|
|
|
31930
32833
|
"provider": {
|
|
31931
32834
|
"type": "string",
|
|
31932
32835
|
"enum": [
|
|
31933
|
-
"jira"
|
|
32836
|
+
"jira",
|
|
32837
|
+
"linear"
|
|
31934
32838
|
]
|
|
31935
32839
|
},
|
|
31936
32840
|
"state": {
|
|
@@ -31960,13 +32864,19 @@
|
|
|
31960
32864
|
"type": "string",
|
|
31961
32865
|
"description": "The ID of the link."
|
|
31962
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
|
+
},
|
|
31963
32872
|
"expanded": {
|
|
31964
32873
|
"$ref": "#/components/schemas/ChangeRequestLinkExpanded",
|
|
31965
32874
|
"readOnly": true
|
|
31966
32875
|
}
|
|
31967
32876
|
},
|
|
31968
32877
|
"required": [
|
|
31969
|
-
"id"
|
|
32878
|
+
"id",
|
|
32879
|
+
"isSyncing"
|
|
31970
32880
|
]
|
|
31971
32881
|
}
|
|
31972
32882
|
]
|
|
@@ -32049,7 +32959,7 @@
|
|
|
32049
32959
|
},
|
|
32050
32960
|
"siteTopic": {
|
|
32051
32961
|
"type": "object",
|
|
32052
|
-
"description": "Site
|
|
32962
|
+
"description": "Site topic the change request was created from, when it came from one.",
|
|
32053
32963
|
"properties": {
|
|
32054
32964
|
"site": {
|
|
32055
32965
|
"type": "string",
|
|
@@ -32061,7 +32971,8 @@
|
|
|
32061
32971
|
},
|
|
32062
32972
|
"finding": {
|
|
32063
32973
|
"type": "string",
|
|
32064
|
-
"
|
|
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."
|
|
32065
32976
|
}
|
|
32066
32977
|
},
|
|
32067
32978
|
"required": [
|
|
@@ -32069,9 +32980,27 @@
|
|
|
32069
32980
|
"topic"
|
|
32070
32981
|
]
|
|
32071
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
|
+
},
|
|
32072
33001
|
"styleguide": {
|
|
32073
33002
|
"type": "object",
|
|
32074
|
-
"description": "Style guide check
|
|
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",
|
|
32075
33004
|
"properties": {
|
|
32076
33005
|
"site": {
|
|
32077
33006
|
"type": "string",
|
|
@@ -32084,6 +33013,10 @@
|
|
|
32084
33013
|
"changedPages": {
|
|
32085
33014
|
"type": "number",
|
|
32086
33015
|
"description": "Number of pages the check changed, recorded when it finished. Absent while it is still running, or when it never completed.\n"
|
|
33016
|
+
},
|
|
33017
|
+
"checkedAt": {
|
|
33018
|
+
"$ref": "#/components/schemas/Timestamp",
|
|
33019
|
+
"description": "When the most recent style guide check on the change request finished. Later edits from anyone else do not move it. Absent while the first one is still running.\n"
|
|
32087
33020
|
}
|
|
32088
33021
|
},
|
|
32089
33022
|
"required": [
|
|
@@ -32666,6 +33599,20 @@
|
|
|
32666
33599
|
"urls"
|
|
32667
33600
|
]
|
|
32668
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
|
+
},
|
|
32669
33616
|
"Team": {
|
|
32670
33617
|
"type": "object",
|
|
32671
33618
|
"properties": {
|
|
@@ -34572,6 +35519,100 @@
|
|
|
34572
35519
|
}
|
|
34573
35520
|
]
|
|
34574
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
|
+
},
|
|
34575
35616
|
"BillingProduct": {
|
|
34576
35617
|
"type": "string",
|
|
34577
35618
|
"description": "Name of the product",
|
|
@@ -34675,10 +35716,10 @@
|
|
|
34675
35716
|
"description": "The AI credit bundle to top up every month",
|
|
34676
35717
|
"enum": [
|
|
34677
35718
|
"none",
|
|
34678
|
-
|
|
34679
|
-
|
|
34680
|
-
|
|
34681
|
-
|
|
35719
|
+
4750250,
|
|
35720
|
+
90001000,
|
|
35721
|
+
127502250,
|
|
35722
|
+
3000010000
|
|
34682
35723
|
]
|
|
34683
35724
|
},
|
|
34684
35725
|
"OrganizationBilling": {
|
|
@@ -34775,18 +35816,22 @@
|
|
|
34775
35816
|
}
|
|
34776
35817
|
]
|
|
34777
35818
|
},
|
|
34778
|
-
"
|
|
34779
|
-
"description": "
|
|
35819
|
+
"aiCreditAllowance": {
|
|
35820
|
+
"description": "The yearly AI credit allowance agreed in the organization's contract, or null when none is set.",
|
|
34780
35821
|
"oneOf": [
|
|
34781
35822
|
{
|
|
34782
|
-
"type": "
|
|
34783
|
-
"minimum": 0,
|
|
34784
|
-
"maximum": 100
|
|
35823
|
+
"type": "integer"
|
|
34785
35824
|
},
|
|
34786
35825
|
{
|
|
34787
35826
|
"type": "null"
|
|
34788
35827
|
}
|
|
34789
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
|
|
34790
35835
|
}
|
|
34791
35836
|
},
|
|
34792
35837
|
"required": [
|
|
@@ -34800,7 +35845,53 @@
|
|
|
34800
35845
|
"canChangeInterval",
|
|
34801
35846
|
"canUseSAML",
|
|
34802
35847
|
"creditsBundle",
|
|
34803
|
-
"
|
|
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
|
+
}
|
|
34804
35895
|
]
|
|
34805
35896
|
},
|
|
34806
35897
|
"BillingTrialStatus": {
|
|
@@ -34878,6 +35969,9 @@
|
|
|
34878
35969
|
"description": "If true, the organization is configured to use all our AI features.",
|
|
34879
35970
|
"type": "boolean"
|
|
34880
35971
|
},
|
|
35972
|
+
"aiSettings": {
|
|
35973
|
+
"$ref": "#/components/schemas/OrganizationAISettings"
|
|
35974
|
+
},
|
|
34881
35975
|
"inviteLinks": {
|
|
34882
35976
|
"description": "If true, invite links are enabled for this organization.",
|
|
34883
35977
|
"type": "boolean"
|
|
@@ -34896,6 +35990,10 @@
|
|
|
34896
35990
|
"mergeRules": {
|
|
34897
35991
|
"$ref": "#/components/schemas/MergeRulesStandaloneConfiguration"
|
|
34898
35992
|
},
|
|
35993
|
+
"supportCost": {
|
|
35994
|
+
"description": "Support cost set by the organization, only available for org members.",
|
|
35995
|
+
"$ref": "#/components/schemas/OrganizationSupportCost"
|
|
35996
|
+
},
|
|
34899
35997
|
"urls": {
|
|
34900
35998
|
"type": "object",
|
|
34901
35999
|
"description": "URLs associated with the object",
|
|
@@ -37254,6 +38352,7 @@
|
|
|
37254
38352
|
"sites-sections",
|
|
37255
38353
|
"sites-seo",
|
|
37256
38354
|
"sites-share-links",
|
|
38355
|
+
"sites-style-guide",
|
|
37257
38356
|
"sites-unlisted-visibility",
|
|
37258
38357
|
"sites-user-contribution",
|
|
37259
38358
|
"sites-visitor-authentication",
|
|
@@ -38986,6 +40085,137 @@
|
|
|
38986
40085
|
"title"
|
|
38987
40086
|
]
|
|
38988
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
|
+
},
|
|
38989
40219
|
"SiteSectionTitle": {
|
|
38990
40220
|
"type": "string",
|
|
38991
40221
|
"description": "Title of the site section",
|
|
@@ -39505,6 +40735,23 @@
|
|
|
39505
40735
|
"label": {
|
|
39506
40736
|
"type": "string",
|
|
39507
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
|
+
]
|
|
39508
40755
|
}
|
|
39509
40756
|
},
|
|
39510
40757
|
"required": [
|
|
@@ -39716,6 +40963,68 @@
|
|
|
39716
40963
|
"templates"
|
|
39717
40964
|
]
|
|
39718
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
|
+
},
|
|
39719
41028
|
"MemberContentPermission": {
|
|
39720
41029
|
"type": "object",
|
|
39721
41030
|
"description": "Permission of a member in a content.",
|
|
@@ -40534,16 +41843,21 @@
|
|
|
40534
41843
|
"properties": {
|
|
40535
41844
|
"type": {
|
|
40536
41845
|
"type": "string",
|
|
40537
|
-
"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.",
|
|
40538
41847
|
"enum": [
|
|
40539
41848
|
"paid",
|
|
40540
41849
|
"bonus",
|
|
40541
41850
|
"site",
|
|
40542
|
-
"rollover"
|
|
41851
|
+
"rollover",
|
|
41852
|
+
"custom"
|
|
40543
41853
|
]
|
|
40544
41854
|
},
|
|
41855
|
+
"priority": {
|
|
41856
|
+
"type": "number",
|
|
41857
|
+
"description": "Stripe spending priority. Lower values are consumed first."
|
|
41858
|
+
},
|
|
40545
41859
|
"grantedCredits": {
|
|
40546
|
-
"description": "Credits
|
|
41860
|
+
"description": "Credits available from this grant before the current invoice usage.",
|
|
40547
41861
|
"type": "number"
|
|
40548
41862
|
},
|
|
40549
41863
|
"usedCredits": {
|
|
@@ -40619,7 +41933,7 @@
|
|
|
40619
41933
|
"$ref": "#/components/schemas/BillingCreditsTotals"
|
|
40620
41934
|
},
|
|
40621
41935
|
"free": {
|
|
40622
|
-
"description": "The
|
|
41936
|
+
"description": "The bonus, site and custom credits.",
|
|
40623
41937
|
"$ref": "#/components/schemas/BillingCreditsTotals"
|
|
40624
41938
|
},
|
|
40625
41939
|
"bundle": {
|
|
@@ -40737,6 +42051,143 @@
|
|
|
40737
42051
|
"summary"
|
|
40738
42052
|
]
|
|
40739
42053
|
},
|
|
42054
|
+
"credits": {
|
|
42055
|
+
"type": "object",
|
|
42056
|
+
"description": "The AI credits of the current billing period, grouped the ways the billing screens display them.",
|
|
42057
|
+
"properties": {
|
|
42058
|
+
"grantedCredits": {
|
|
42059
|
+
"description": "Credits granted across every grant.",
|
|
42060
|
+
"type": "number"
|
|
42061
|
+
},
|
|
42062
|
+
"usedCredits": {
|
|
42063
|
+
"description": "Credits spent by the usage metered so far.",
|
|
42064
|
+
"type": "number"
|
|
42065
|
+
},
|
|
42066
|
+
"remainingCredits": {
|
|
42067
|
+
"description": "Credits still available across every grant.",
|
|
42068
|
+
"type": "number"
|
|
42069
|
+
},
|
|
42070
|
+
"coveredAmount": {
|
|
42071
|
+
"description": "Part of the metered AI usage paid by credits rather than billed, as a positive amount.",
|
|
42072
|
+
"type": "number"
|
|
42073
|
+
},
|
|
42074
|
+
"paid": {
|
|
42075
|
+
"description": "The credits the organization pays for.",
|
|
42076
|
+
"$ref": "#/components/schemas/BillingCreditsTotals"
|
|
42077
|
+
},
|
|
42078
|
+
"free": {
|
|
42079
|
+
"description": "The bonus, site and custom credits.",
|
|
42080
|
+
"$ref": "#/components/schemas/BillingCreditsTotals"
|
|
42081
|
+
},
|
|
42082
|
+
"bundle": {
|
|
42083
|
+
"description": "The credits of the monthly bundle, both paid and bonus.",
|
|
42084
|
+
"$ref": "#/components/schemas/BillingCreditsTotals"
|
|
42085
|
+
}
|
|
42086
|
+
},
|
|
42087
|
+
"required": [
|
|
42088
|
+
"grantedCredits",
|
|
42089
|
+
"usedCredits",
|
|
42090
|
+
"remainingCredits",
|
|
42091
|
+
"coveredAmount",
|
|
42092
|
+
"paid",
|
|
42093
|
+
"free",
|
|
42094
|
+
"bundle"
|
|
42095
|
+
]
|
|
42096
|
+
},
|
|
42097
|
+
"creditGrants": {
|
|
42098
|
+
"type": "array",
|
|
42099
|
+
"description": "AI credits available for the current AI billing period. Empty when the organization is not billed for AI usage.",
|
|
42100
|
+
"items": {
|
|
42101
|
+
"type": "object",
|
|
42102
|
+
"description": "AI credits granted to the organization for the current AI billing period.",
|
|
42103
|
+
"properties": {
|
|
42104
|
+
"type": {
|
|
42105
|
+
"type": "string",
|
|
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.",
|
|
42107
|
+
"enum": [
|
|
42108
|
+
"paid",
|
|
42109
|
+
"bonus",
|
|
42110
|
+
"site",
|
|
42111
|
+
"rollover",
|
|
42112
|
+
"custom"
|
|
42113
|
+
]
|
|
42114
|
+
},
|
|
42115
|
+
"priority": {
|
|
42116
|
+
"type": "number",
|
|
42117
|
+
"description": "Stripe spending priority. Lower values are consumed first."
|
|
42118
|
+
},
|
|
42119
|
+
"grantedCredits": {
|
|
42120
|
+
"description": "Credits available from this grant before the current invoice usage.",
|
|
42121
|
+
"type": "number"
|
|
42122
|
+
},
|
|
42123
|
+
"usedCredits": {
|
|
42124
|
+
"description": "Credits of the grant spent by the usage metered so far.",
|
|
42125
|
+
"type": "number"
|
|
42126
|
+
},
|
|
42127
|
+
"remainingCredits": {
|
|
42128
|
+
"description": "Credits of the grant still available.",
|
|
42129
|
+
"type": "number"
|
|
42130
|
+
},
|
|
42131
|
+
"sites": {
|
|
42132
|
+
"description": "For a `site` grant, the published sites the credits come from.",
|
|
42133
|
+
"type": "array",
|
|
42134
|
+
"items": {
|
|
42135
|
+
"type": "object",
|
|
42136
|
+
"description": "The published sites of one type that the grant comes from.",
|
|
42137
|
+
"properties": {
|
|
42138
|
+
"siteType": {
|
|
42139
|
+
"$ref": "#/components/schemas/SiteType"
|
|
42140
|
+
},
|
|
42141
|
+
"count": {
|
|
42142
|
+
"description": "How many sites of this type are published.",
|
|
42143
|
+
"type": "number"
|
|
42144
|
+
},
|
|
42145
|
+
"creditsPerSite": {
|
|
42146
|
+
"description": "Credits included with one site of this type.",
|
|
42147
|
+
"type": "number"
|
|
42148
|
+
},
|
|
42149
|
+
"grantedCredits": {
|
|
42150
|
+
"description": "Credits these sites contribute to the grant.",
|
|
42151
|
+
"type": "number"
|
|
42152
|
+
}
|
|
42153
|
+
},
|
|
42154
|
+
"required": [
|
|
42155
|
+
"siteType",
|
|
42156
|
+
"count",
|
|
42157
|
+
"creditsPerSite",
|
|
42158
|
+
"grantedCredits"
|
|
42159
|
+
]
|
|
42160
|
+
}
|
|
42161
|
+
}
|
|
42162
|
+
},
|
|
42163
|
+
"required": [
|
|
42164
|
+
"type",
|
|
42165
|
+
"grantedCredits",
|
|
42166
|
+
"usedCredits",
|
|
42167
|
+
"remainingCredits"
|
|
42168
|
+
]
|
|
42169
|
+
}
|
|
42170
|
+
},
|
|
42171
|
+
"BillingCreditBalance": {
|
|
42172
|
+
"type": "object",
|
|
42173
|
+
"description": "Credit balance after an accepted bundle change, including grants pending webhook synchronization.",
|
|
42174
|
+
"properties": {
|
|
42175
|
+
"creditsBundle": {
|
|
42176
|
+
"$ref": "#/components/schemas/BillingCreditsBundle"
|
|
42177
|
+
},
|
|
42178
|
+
"credits": {
|
|
42179
|
+
"$ref": "#/components/schemas/credits"
|
|
42180
|
+
},
|
|
42181
|
+
"creditGrants": {
|
|
42182
|
+
"$ref": "#/components/schemas/creditGrants"
|
|
42183
|
+
}
|
|
42184
|
+
},
|
|
42185
|
+
"required": [
|
|
42186
|
+
"creditsBundle",
|
|
42187
|
+
"credits",
|
|
42188
|
+
"creditGrants"
|
|
42189
|
+
]
|
|
42190
|
+
},
|
|
40740
42191
|
"BillingUpgrade": {
|
|
40741
42192
|
"oneOf": [
|
|
40742
42193
|
{
|
|
@@ -40784,6 +42235,9 @@
|
|
|
40784
42235
|
"enum": [
|
|
40785
42236
|
"upgraded"
|
|
40786
42237
|
]
|
|
42238
|
+
},
|
|
42239
|
+
"creditBalance": {
|
|
42240
|
+
"$ref": "#/components/schemas/BillingCreditBalance"
|
|
40787
42241
|
}
|
|
40788
42242
|
},
|
|
40789
42243
|
"required": [
|
|
@@ -40933,6 +42387,84 @@
|
|
|
40933
42387
|
"switch_interval"
|
|
40934
42388
|
]
|
|
40935
42389
|
},
|
|
42390
|
+
"AIUsageInterval": {
|
|
42391
|
+
"type": "string",
|
|
42392
|
+
"description": "UTC calendar interval for AI usage, with weeks starting on Monday.",
|
|
42393
|
+
"enum": [
|
|
42394
|
+
"day",
|
|
42395
|
+
"week",
|
|
42396
|
+
"month",
|
|
42397
|
+
"year"
|
|
42398
|
+
],
|
|
42399
|
+
"default": "day"
|
|
42400
|
+
},
|
|
42401
|
+
"OrganizationAIUsage": {
|
|
42402
|
+
"type": "object",
|
|
42403
|
+
"required": [
|
|
42404
|
+
"periods",
|
|
42405
|
+
"from",
|
|
42406
|
+
"to"
|
|
42407
|
+
],
|
|
42408
|
+
"properties": {
|
|
42409
|
+
"from": {
|
|
42410
|
+
"type": "string",
|
|
42411
|
+
"format": "date-time",
|
|
42412
|
+
"description": "Inclusive start of the queried range."
|
|
42413
|
+
},
|
|
42414
|
+
"to": {
|
|
42415
|
+
"type": "string",
|
|
42416
|
+
"format": "date-time",
|
|
42417
|
+
"description": "Exclusive end of the queried range, capped at the current instant."
|
|
42418
|
+
},
|
|
42419
|
+
"periods": {
|
|
42420
|
+
"type": "array",
|
|
42421
|
+
"description": "Chronological calendar buckets. Edge buckets include only the requested dates.",
|
|
42422
|
+
"items": {
|
|
42423
|
+
"type": "object",
|
|
42424
|
+
"required": [
|
|
42425
|
+
"date",
|
|
42426
|
+
"credits",
|
|
42427
|
+
"features"
|
|
42428
|
+
],
|
|
42429
|
+
"properties": {
|
|
42430
|
+
"date": {
|
|
42431
|
+
"type": "string",
|
|
42432
|
+
"format": "date",
|
|
42433
|
+
"description": "UTC date at the start of this calendar bucket."
|
|
42434
|
+
},
|
|
42435
|
+
"credits": {
|
|
42436
|
+
"type": "number",
|
|
42437
|
+
"description": "Total credits used in this bucket."
|
|
42438
|
+
},
|
|
42439
|
+
"features": {
|
|
42440
|
+
"type": "array",
|
|
42441
|
+
"items": {
|
|
42442
|
+
"type": "object",
|
|
42443
|
+
"required": [
|
|
42444
|
+
"feature",
|
|
42445
|
+
"credits",
|
|
42446
|
+
"creditsPercent"
|
|
42447
|
+
],
|
|
42448
|
+
"properties": {
|
|
42449
|
+
"feature": {
|
|
42450
|
+
"type": "string",
|
|
42451
|
+
"description": "AI feature category with recorded credit usage."
|
|
42452
|
+
},
|
|
42453
|
+
"credits": {
|
|
42454
|
+
"type": "number"
|
|
42455
|
+
},
|
|
42456
|
+
"creditsPercent": {
|
|
42457
|
+
"type": "number",
|
|
42458
|
+
"description": "Percentage of this bucket's total credits (0 to 100)."
|
|
42459
|
+
}
|
|
42460
|
+
}
|
|
42461
|
+
}
|
|
42462
|
+
}
|
|
42463
|
+
}
|
|
42464
|
+
}
|
|
42465
|
+
}
|
|
42466
|
+
}
|
|
42467
|
+
},
|
|
40936
42468
|
"BillingMeterUsage": {
|
|
40937
42469
|
"type": "object",
|
|
40938
42470
|
"description": "Usage metrics for a billing meter",
|
|
@@ -40972,6 +42504,7 @@
|
|
|
40972
42504
|
"description": "An organization feature used for plan access and upgrade prompts.",
|
|
40973
42505
|
"enum": [
|
|
40974
42506
|
"max-members",
|
|
42507
|
+
"ai",
|
|
40975
42508
|
"ai-lens",
|
|
40976
42509
|
"pdf-export",
|
|
40977
42510
|
"ai-writing",
|
|
@@ -41575,6 +43108,10 @@
|
|
|
41575
43108
|
"type": "string",
|
|
41576
43109
|
"description": "The space ID owning the page."
|
|
41577
43110
|
},
|
|
43111
|
+
"title": {
|
|
43112
|
+
"type": "string",
|
|
43113
|
+
"description": "The title of the page, as of `revision`."
|
|
43114
|
+
},
|
|
41578
43115
|
"sections": {
|
|
41579
43116
|
"type": "array",
|
|
41580
43117
|
"items": {
|
|
@@ -41588,6 +43125,7 @@
|
|
|
41588
43125
|
"page",
|
|
41589
43126
|
"revision",
|
|
41590
43127
|
"space",
|
|
43128
|
+
"title",
|
|
41591
43129
|
"sections"
|
|
41592
43130
|
]
|
|
41593
43131
|
},
|
|
@@ -42109,7 +43647,7 @@
|
|
|
42109
43647
|
},
|
|
42110
43648
|
"totalWords": {
|
|
42111
43649
|
"type": "integer",
|
|
42112
|
-
"description": "Total number of words
|
|
43650
|
+
"description": "Total number of words counted toward translation usage over all runs"
|
|
42113
43651
|
},
|
|
42114
43652
|
"totalPages": {
|
|
42115
43653
|
"type": "integer",
|
|
@@ -42129,7 +43667,7 @@
|
|
|
42129
43667
|
},
|
|
42130
43668
|
"latestWords": {
|
|
42131
43669
|
"type": "integer",
|
|
42132
|
-
"description": "Number of words
|
|
43670
|
+
"description": "Number of words counted toward translation usage in the latest run"
|
|
42133
43671
|
}
|
|
42134
43672
|
},
|
|
42135
43673
|
"required": [
|
|
@@ -42999,6 +44537,282 @@
|
|
|
42999
44537
|
}
|
|
43000
44538
|
]
|
|
43001
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
|
+
},
|
|
43002
44816
|
"SiteAdaptiveDeterministicJSONSchemaPrimitives": {
|
|
43003
44817
|
"oneOf": [
|
|
43004
44818
|
{
|
|
@@ -43156,10 +44970,13 @@
|
|
|
43156
44970
|
}
|
|
43157
44971
|
]
|
|
43158
44972
|
},
|
|
43159
|
-
"
|
|
44973
|
+
"SiteAdaptiveJSONSchemaWithRegions": {
|
|
43160
44974
|
"type": "object",
|
|
43161
|
-
"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.",
|
|
43162
44976
|
"properties": {
|
|
44977
|
+
"regions": {
|
|
44978
|
+
"$ref": "#/components/schemas/SiteAdaptiveRegions"
|
|
44979
|
+
},
|
|
43163
44980
|
"$schema": {
|
|
43164
44981
|
"type": "string",
|
|
43165
44982
|
"enum": [
|
|
@@ -43240,7 +45057,7 @@
|
|
|
43240
45057
|
]
|
|
43241
45058
|
},
|
|
43242
45059
|
"jsonSchema": {
|
|
43243
|
-
"$ref": "#/components/schemas/
|
|
45060
|
+
"$ref": "#/components/schemas/SiteAdaptiveJSONSchemaWithRegions"
|
|
43244
45061
|
},
|
|
43245
45062
|
"updatedAt": {
|
|
43246
45063
|
"description": "When the adaptive schema was updated.",
|
|
@@ -44276,6 +46093,238 @@
|
|
|
44276
46093
|
"scripts"
|
|
44277
46094
|
]
|
|
44278
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
|
+
},
|
|
44279
46328
|
"ShareLinkName": {
|
|
44280
46329
|
"type": "string",
|
|
44281
46330
|
"description": "Name of the share link",
|
|
@@ -45298,10 +47347,11 @@
|
|
|
45298
47347
|
"enum": [
|
|
45299
47348
|
"updatedAt",
|
|
45300
47349
|
"severity",
|
|
45301
|
-
"sources"
|
|
47350
|
+
"sources",
|
|
47351
|
+
"suggestedFix"
|
|
45302
47352
|
],
|
|
45303
47353
|
"default": "updatedAt",
|
|
45304
|
-
"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'."
|
|
45305
47355
|
},
|
|
45306
47356
|
"SiteFindingTitle": {
|
|
45307
47357
|
"type": "string",
|
|
@@ -45340,7 +47390,7 @@
|
|
|
45340
47390
|
},
|
|
45341
47391
|
"SiteFindingBrokenLinkAction": {
|
|
45342
47392
|
"type": "object",
|
|
45343
|
-
"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.",
|
|
45344
47394
|
"properties": {
|
|
45345
47395
|
"source": {
|
|
45346
47396
|
"$ref": "#/components/schemas/SiteRedirectSourcePath"
|
|
@@ -45354,8 +47404,7 @@
|
|
|
45354
47404
|
}
|
|
45355
47405
|
},
|
|
45356
47406
|
"required": [
|
|
45357
|
-
"source"
|
|
45358
|
-
"destination"
|
|
47407
|
+
"source"
|
|
45359
47408
|
]
|
|
45360
47409
|
},
|
|
45361
47410
|
"SiteFindingOutboundLink": {
|
|
@@ -45816,6 +47865,24 @@
|
|
|
45816
47865
|
"type": "number"
|
|
45817
47866
|
}
|
|
45818
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
|
+
},
|
|
45819
47886
|
"SiteFindingStats": {
|
|
45820
47887
|
"type": "object",
|
|
45821
47888
|
"description": "Aggregated stats for the findings identified on a site.",
|
|
@@ -45833,6 +47900,9 @@
|
|
|
45833
47900
|
"connectors": {
|
|
45834
47901
|
"$ref": "#/components/schemas/SiteFindingStatsConnectors"
|
|
45835
47902
|
},
|
|
47903
|
+
"brokenLinks": {
|
|
47904
|
+
"$ref": "#/components/schemas/SiteFindingStatsBrokenLinks"
|
|
47905
|
+
},
|
|
45836
47906
|
"questions": {
|
|
45837
47907
|
"type": "number",
|
|
45838
47908
|
"description": "Count of findings with at least one piece of evidence coming from a site question."
|
|
@@ -45847,6 +47917,7 @@
|
|
|
45847
47917
|
"statuses",
|
|
45848
47918
|
"severities",
|
|
45849
47919
|
"connectors",
|
|
47920
|
+
"brokenLinks",
|
|
45850
47921
|
"questions",
|
|
45851
47922
|
"mergedChangeRequests"
|
|
45852
47923
|
]
|
|
@@ -46385,6 +48456,17 @@
|
|
|
46385
48456
|
"maxLength": 1024,
|
|
46386
48457
|
"description": "Atlassian API token used for outbound writes. Redacted when read back."
|
|
46387
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
|
+
},
|
|
46388
48470
|
"statusMapping": {
|
|
46389
48471
|
"type": "object",
|
|
46390
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.",
|
|
@@ -47147,6 +49229,10 @@
|
|
|
47147
49229
|
"type": "string",
|
|
47148
49230
|
"description": "The revision ID of the result"
|
|
47149
49231
|
},
|
|
49232
|
+
"path": {
|
|
49233
|
+
"type": "string",
|
|
49234
|
+
"description": "The path of the page within its space, as the published site serves it."
|
|
49235
|
+
},
|
|
47150
49236
|
"anchor": {
|
|
47151
49237
|
"type": "string",
|
|
47152
49238
|
"description": "The anchor of the result"
|
|
@@ -47988,6 +50074,48 @@
|
|
|
47988
50074
|
"totalPages"
|
|
47989
50075
|
]
|
|
47990
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
|
+
},
|
|
47991
50119
|
"AIToolCallMCP": {
|
|
47992
50120
|
"type": "object",
|
|
47993
50121
|
"description": "Tool called from an MCP server",
|
|
@@ -48142,6 +50270,9 @@
|
|
|
48142
50270
|
{
|
|
48143
50271
|
"$ref": "#/components/schemas/AIToolCallCheckContentImport"
|
|
48144
50272
|
},
|
|
50273
|
+
{
|
|
50274
|
+
"$ref": "#/components/schemas/AIToolCallStartBackgroundAgent"
|
|
50275
|
+
},
|
|
48145
50276
|
{
|
|
48146
50277
|
"$ref": "#/components/schemas/AIToolCallMCP"
|
|
48147
50278
|
},
|
|
@@ -48472,6 +50603,26 @@
|
|
|
48472
50603
|
"spaceId",
|
|
48473
50604
|
"changeRequestId"
|
|
48474
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
|
+
]
|
|
48475
50626
|
}
|
|
48476
50627
|
]
|
|
48477
50628
|
},
|
|
@@ -49542,6 +51693,17 @@
|
|
|
49542
51693
|
"description": "URL of the location.",
|
|
49543
51694
|
"$ref": "#/components/schemas/URL"
|
|
49544
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
|
+
},
|
|
49545
51707
|
"displayContext": {
|
|
49546
51708
|
"description": "Whether the event was tracked on the site, the server, or an embed widget.",
|
|
49547
51709
|
"$ref": "#/components/schemas/SiteInsightsDisplayContext",
|
|
@@ -49916,6 +52078,16 @@
|
|
|
49916
52078
|
"enum": [
|
|
49917
52079
|
"ask_view"
|
|
49918
52080
|
]
|
|
52081
|
+
},
|
|
52082
|
+
"trigger": {
|
|
52083
|
+
"type": "string",
|
|
52084
|
+
"enum": [
|
|
52085
|
+
"hover",
|
|
52086
|
+
"selection",
|
|
52087
|
+
"site",
|
|
52088
|
+
"page",
|
|
52089
|
+
"embed"
|
|
52090
|
+
]
|
|
49919
52091
|
}
|
|
49920
52092
|
},
|
|
49921
52093
|
"required": [
|
|
@@ -50821,6 +52993,7 @@
|
|
|
50821
52993
|
},
|
|
50822
52994
|
{
|
|
50823
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",
|
|
50824
52997
|
"required": [
|
|
50825
52998
|
"column"
|
|
50826
52999
|
],
|
|
@@ -50875,6 +53048,21 @@
|
|
|
50875
53048
|
}
|
|
50876
53049
|
}
|
|
50877
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
|
+
},
|
|
50878
53066
|
{
|
|
50879
53067
|
"type": "object",
|
|
50880
53068
|
"required": [
|
|
@@ -51767,6 +53955,7 @@
|
|
|
51767
53955
|
]
|
|
51768
53956
|
},
|
|
51769
53957
|
"values": {
|
|
53958
|
+
"description": "Pages to match. `null` matches events that resolved to no page, which for `page_view` events is a 404 (a broken URL).",
|
|
51770
53959
|
"type": "array",
|
|
51771
53960
|
"items": {
|
|
51772
53961
|
"oneOf": [
|
|
@@ -52003,6 +54192,7 @@
|
|
|
52003
54192
|
},
|
|
52004
54193
|
{
|
|
52005
54194
|
"type": "object",
|
|
54195
|
+
"description": "Ratings submitted on a page, counted once per rating a reader submitted rather than once\nper event.\n",
|
|
52006
54196
|
"required": [
|
|
52007
54197
|
"column",
|
|
52008
54198
|
"values"
|
|
@@ -52176,6 +54366,27 @@
|
|
|
52176
54366
|
}
|
|
52177
54367
|
}
|
|
52178
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
|
+
},
|
|
52179
54390
|
{
|
|
52180
54391
|
"type": "object",
|
|
52181
54392
|
"required": [
|
|
@@ -52375,6 +54586,7 @@
|
|
|
52375
54586
|
"SiteInsightsQueryRangePreset": {
|
|
52376
54587
|
"type": "string",
|
|
52377
54588
|
"enum": [
|
|
54589
|
+
"yearToDate",
|
|
52378
54590
|
"lastYear",
|
|
52379
54591
|
"last3Months",
|
|
52380
54592
|
"last30Days",
|
|
@@ -53586,11 +55798,11 @@
|
|
|
53586
55798
|
"minimum": 0,
|
|
53587
55799
|
"description": "Current numeric billing override, when set."
|
|
53588
55800
|
},
|
|
53589
|
-
"
|
|
55801
|
+
"Percentage": {
|
|
53590
55802
|
"type": "number",
|
|
53591
55803
|
"minimum": 0,
|
|
53592
55804
|
"maximum": 100,
|
|
53593
|
-
"description": "
|
|
55805
|
+
"description": "A percentage from 0 to 100."
|
|
53594
55806
|
},
|
|
53595
55807
|
"OrganizationBillingOverrides": {
|
|
53596
55808
|
"type": "object",
|
|
@@ -53612,11 +55824,15 @@
|
|
|
53612
55824
|
},
|
|
53613
55825
|
"aiCreditRollover": {
|
|
53614
55826
|
"description": "Percentage of remaining paid AI credits carried into the next billing period. Paid self-serve organizations default to 50% when unset.",
|
|
53615
|
-
"$ref": "#/components/schemas/
|
|
55827
|
+
"$ref": "#/components/schemas/Percentage"
|
|
53616
55828
|
},
|
|
53617
55829
|
"aiCreditAlertThreshold": {
|
|
53618
55830
|
"description": "Percentage of total AI credits remaining at which to send a low-balance alert.",
|
|
53619
|
-
"$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"
|
|
53620
55836
|
},
|
|
53621
55837
|
"minUsers": {
|
|
53622
55838
|
"description": "Current minimum users override, when set.",
|
|
@@ -53649,6 +55865,17 @@
|
|
|
53649
55865
|
"overrides"
|
|
53650
55866
|
]
|
|
53651
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
|
+
},
|
|
53652
55879
|
"BackOfficeSite": {
|
|
53653
55880
|
"allOf": [
|
|
53654
55881
|
{
|
|
@@ -53829,6 +56056,10 @@
|
|
|
53829
56056
|
"type": "string",
|
|
53830
56057
|
"description": "JWT token generated for a authenticated access session."
|
|
53831
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
|
+
},
|
|
53832
56063
|
"unsignedClaims": {
|
|
53833
56064
|
"$ref": "#/components/schemas/PlainObject"
|
|
53834
56065
|
}
|
|
@@ -54099,7 +56330,8 @@
|
|
|
54099
56330
|
"type": "string",
|
|
54100
56331
|
"description": "Predefined GitBook user identifiers",
|
|
54101
56332
|
"enum": [
|
|
54102
|
-
"gitbook:agent"
|
|
56333
|
+
"gitbook:agent",
|
|
56334
|
+
"gitbook:gitsync"
|
|
54103
56335
|
]
|
|
54104
56336
|
},
|
|
54105
56337
|
"ContentLocationRevisionContext": {
|
|
@@ -54813,10 +57045,14 @@
|
|
|
54813
57045
|
"$ref": "#/components/schemas/GitSyncOperationStage"
|
|
54814
57046
|
},
|
|
54815
57047
|
"dispatchedTasks": {
|
|
54816
|
-
"type": "number"
|
|
57048
|
+
"type": "number",
|
|
57049
|
+
"deprecated": true,
|
|
57050
|
+
"description": "Always `0`. Task-level progress is no longer tracked; read `stage` instead."
|
|
54817
57051
|
},
|
|
54818
57052
|
"completedTasks": {
|
|
54819
|
-
"type": "number"
|
|
57053
|
+
"type": "number",
|
|
57054
|
+
"deprecated": true,
|
|
57055
|
+
"description": "Always `0`. Task-level progress is no longer tracked; read `stage` instead."
|
|
54820
57056
|
},
|
|
54821
57057
|
"startedAt": {
|
|
54822
57058
|
"description": "Date when the operation was started",
|
|
@@ -55479,6 +57715,10 @@
|
|
|
55479
57715
|
],
|
|
55480
57716
|
"description": "Whether the visitor, for which the token was generated, is a human or an AI agent. Defaults to human when omitted."
|
|
55481
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
|
+
},
|
|
55482
57722
|
"claims": {
|
|
55483
57723
|
"type": "object",
|
|
55484
57724
|
"description": "Attributes or assertions that provide specific details about the visitor for which the token was generated.",
|
|
@@ -57375,6 +59615,80 @@
|
|
|
57375
59615
|
"dark"
|
|
57376
59616
|
]
|
|
57377
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
|
+
},
|
|
57378
59692
|
"SiteAdaptiveDeterministicJSONSchemaClaimsProperties": {
|
|
57379
59693
|
"oneOf": [
|
|
57380
59694
|
{
|
|
@@ -57644,6 +59958,63 @@
|
|
|
57644
59958
|
"modified-pages"
|
|
57645
59959
|
]
|
|
57646
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
|
+
},
|
|
57647
60018
|
"AgentState": {
|
|
57648
60019
|
"type": "object",
|
|
57649
60020
|
"properties": {
|
|
@@ -57687,6 +60058,13 @@
|
|
|
57687
60058
|
"$ref": "#/components/schemas/AgentEditScope",
|
|
57688
60059
|
"description": "How far this conversation should reach when it changes content.\n"
|
|
57689
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
|
+
},
|
|
57690
60068
|
"consultOnly": {
|
|
57691
60069
|
"type": "boolean",
|
|
57692
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"
|