@gitbook/api 0.194.0 → 0.196.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 +803 -116
- package/dist/constants.d.ts +9 -5
- package/dist/index.cjs +109 -7
- package/dist/index.js +102 -7
- package/package.json +1 -1
- package/spec/openapi.json +1932 -316
- package/spec/openapi.yaml +1394 -246
package/spec/openapi.json
CHANGED
|
@@ -2498,6 +2498,7 @@
|
|
|
2498
2498
|
"summary": "Update a change request's subject, description, or status",
|
|
2499
2499
|
"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.",
|
|
2500
2500
|
"x-gitbook-mcp": true,
|
|
2501
|
+
"x-gitbook-return-preference": true,
|
|
2501
2502
|
"tags": [
|
|
2502
2503
|
"change-requests"
|
|
2503
2504
|
],
|
|
@@ -2517,6 +2518,9 @@
|
|
|
2517
2518
|
},
|
|
2518
2519
|
{
|
|
2519
2520
|
"$ref": "#/components/parameters/changeRequestId"
|
|
2521
|
+
},
|
|
2522
|
+
{
|
|
2523
|
+
"$ref": "#/components/parameters/returnPreference"
|
|
2520
2524
|
}
|
|
2521
2525
|
],
|
|
2522
2526
|
"requestBody": {
|
|
@@ -2563,6 +2567,14 @@
|
|
|
2563
2567
|
}
|
|
2564
2568
|
}
|
|
2565
2569
|
}
|
|
2570
|
+
},
|
|
2571
|
+
"204": {
|
|
2572
|
+
"description": "Change request updated without returning its representation",
|
|
2573
|
+
"headers": {
|
|
2574
|
+
"Preference-Applied": {
|
|
2575
|
+
"$ref": "#/components/headers/returnPreferenceApplied"
|
|
2576
|
+
}
|
|
2577
|
+
}
|
|
2566
2578
|
}
|
|
2567
2579
|
}
|
|
2568
2580
|
}
|
|
@@ -8126,6 +8138,73 @@
|
|
|
8126
8138
|
}
|
|
8127
8139
|
}
|
|
8128
8140
|
}
|
|
8141
|
+
},
|
|
8142
|
+
"post": {
|
|
8143
|
+
"operationId": "createOrganization",
|
|
8144
|
+
"summary": "Create an organization",
|
|
8145
|
+
"x-gitbook-mcp": true,
|
|
8146
|
+
"tags": [
|
|
8147
|
+
"organizations"
|
|
8148
|
+
],
|
|
8149
|
+
"security": [
|
|
8150
|
+
{
|
|
8151
|
+
"user": []
|
|
8152
|
+
},
|
|
8153
|
+
{
|
|
8154
|
+
"oauth": [
|
|
8155
|
+
"organization:write"
|
|
8156
|
+
]
|
|
8157
|
+
}
|
|
8158
|
+
],
|
|
8159
|
+
"parameters": [
|
|
8160
|
+
{
|
|
8161
|
+
"name": "withDefaultSite",
|
|
8162
|
+
"in": "query",
|
|
8163
|
+
"description": "If true, also creates a default documentation site for the organization.",
|
|
8164
|
+
"required": false,
|
|
8165
|
+
"schema": {
|
|
8166
|
+
"type": "boolean"
|
|
8167
|
+
}
|
|
8168
|
+
},
|
|
8169
|
+
{
|
|
8170
|
+
"name": "openapiUrl",
|
|
8171
|
+
"in": "query",
|
|
8172
|
+
"description": "URL of an OpenAPI/Swagger specification to import and attach to the default site as a reference. Only used when `withDefaultSite` is true.",
|
|
8173
|
+
"required": false,
|
|
8174
|
+
"schema": {
|
|
8175
|
+
"type": "string"
|
|
8176
|
+
}
|
|
8177
|
+
}
|
|
8178
|
+
],
|
|
8179
|
+
"requestBody": {
|
|
8180
|
+
"content": {
|
|
8181
|
+
"application/json": {
|
|
8182
|
+
"schema": {
|
|
8183
|
+
"$ref": "#/components/schemas/CreateOrganization"
|
|
8184
|
+
}
|
|
8185
|
+
}
|
|
8186
|
+
}
|
|
8187
|
+
},
|
|
8188
|
+
"responses": {
|
|
8189
|
+
"201": {
|
|
8190
|
+
"description": "Organization created",
|
|
8191
|
+
"headers": {
|
|
8192
|
+
"Location": {
|
|
8193
|
+
"description": "API URL for the newly created organization",
|
|
8194
|
+
"schema": {
|
|
8195
|
+
"type": "string"
|
|
8196
|
+
}
|
|
8197
|
+
}
|
|
8198
|
+
},
|
|
8199
|
+
"content": {
|
|
8200
|
+
"application/json": {
|
|
8201
|
+
"schema": {
|
|
8202
|
+
"$ref": "#/components/schemas/Organization"
|
|
8203
|
+
}
|
|
8204
|
+
}
|
|
8205
|
+
}
|
|
8206
|
+
}
|
|
8207
|
+
}
|
|
8129
8208
|
}
|
|
8130
8209
|
},
|
|
8131
8210
|
"/orgs/{organizationId}": {
|
|
@@ -8255,11 +8334,235 @@
|
|
|
8255
8334
|
}
|
|
8256
8335
|
}
|
|
8257
8336
|
},
|
|
8337
|
+
"/orgs/{organizationId}/audit-event-actions": {
|
|
8338
|
+
"get": {
|
|
8339
|
+
"operationId": "listOrganizationAuditEventActions",
|
|
8340
|
+
"x-gitbook-mcp": true,
|
|
8341
|
+
"summary": "List organization audit event actions",
|
|
8342
|
+
"description": "Lists the supported audit event action identifiers and their display labels. Access is restricted to organization administrators and GitBook staff. The organization must be activated and on an active Enterprise plan, except for GitBook's own organization.\n",
|
|
8343
|
+
"tags": [
|
|
8344
|
+
"organizations"
|
|
8345
|
+
],
|
|
8346
|
+
"security": [
|
|
8347
|
+
{
|
|
8348
|
+
"user": []
|
|
8349
|
+
}
|
|
8350
|
+
],
|
|
8351
|
+
"parameters": [
|
|
8352
|
+
{
|
|
8353
|
+
"$ref": "#/components/parameters/organizationId"
|
|
8354
|
+
}
|
|
8355
|
+
],
|
|
8356
|
+
"responses": {
|
|
8357
|
+
"200": {
|
|
8358
|
+
"description": "Supported audit event actions.",
|
|
8359
|
+
"content": {
|
|
8360
|
+
"application/json": {
|
|
8361
|
+
"schema": {
|
|
8362
|
+
"type": "object",
|
|
8363
|
+
"properties": {
|
|
8364
|
+
"items": {
|
|
8365
|
+
"type": "array",
|
|
8366
|
+
"items": {
|
|
8367
|
+
"$ref": "#/components/schemas/AuditEventAction"
|
|
8368
|
+
}
|
|
8369
|
+
}
|
|
8370
|
+
},
|
|
8371
|
+
"required": [
|
|
8372
|
+
"items"
|
|
8373
|
+
]
|
|
8374
|
+
}
|
|
8375
|
+
}
|
|
8376
|
+
}
|
|
8377
|
+
},
|
|
8378
|
+
"401": {
|
|
8379
|
+
"$ref": "#/components/responses/UnauthorizedError"
|
|
8380
|
+
},
|
|
8381
|
+
"403": {
|
|
8382
|
+
"$ref": "#/components/responses/ForbiddenError"
|
|
8383
|
+
},
|
|
8384
|
+
"404": {
|
|
8385
|
+
"$ref": "#/components/responses/NotFoundError"
|
|
8386
|
+
}
|
|
8387
|
+
}
|
|
8388
|
+
}
|
|
8389
|
+
},
|
|
8390
|
+
"/orgs/{organizationId}/audit-events": {
|
|
8391
|
+
"get": {
|
|
8392
|
+
"operationId": "listOrganizationAuditEvents",
|
|
8393
|
+
"x-gitbook-mcp": true,
|
|
8394
|
+
"summary": "List organization audit events",
|
|
8395
|
+
"description": "Lists recorded changes for an activated organization. Access is restricted to organization administrators and GitBook staff, and results are ordered by occurrence time, newest first. An active Enterprise plan is required except for GitBook's own organization.\n",
|
|
8396
|
+
"tags": [
|
|
8397
|
+
"organizations"
|
|
8398
|
+
],
|
|
8399
|
+
"security": [
|
|
8400
|
+
{
|
|
8401
|
+
"user": []
|
|
8402
|
+
}
|
|
8403
|
+
],
|
|
8404
|
+
"parameters": [
|
|
8405
|
+
{
|
|
8406
|
+
"$ref": "#/components/parameters/organizationId"
|
|
8407
|
+
},
|
|
8408
|
+
{
|
|
8409
|
+
"$ref": "#/components/parameters/listPage"
|
|
8410
|
+
},
|
|
8411
|
+
{
|
|
8412
|
+
"name": "limit",
|
|
8413
|
+
"in": "query",
|
|
8414
|
+
"description": "Number of events to return, up to 100.",
|
|
8415
|
+
"schema": {
|
|
8416
|
+
"type": "integer",
|
|
8417
|
+
"minimum": 1,
|
|
8418
|
+
"maximum": 100,
|
|
8419
|
+
"default": 20
|
|
8420
|
+
}
|
|
8421
|
+
},
|
|
8422
|
+
{
|
|
8423
|
+
"name": "from",
|
|
8424
|
+
"in": "query",
|
|
8425
|
+
"description": "Include events occurring at or after this time.",
|
|
8426
|
+
"schema": {
|
|
8427
|
+
"type": "string",
|
|
8428
|
+
"format": "date-time"
|
|
8429
|
+
}
|
|
8430
|
+
},
|
|
8431
|
+
{
|
|
8432
|
+
"name": "to",
|
|
8433
|
+
"in": "query",
|
|
8434
|
+
"description": "Include events occurring at or before this time.",
|
|
8435
|
+
"schema": {
|
|
8436
|
+
"type": "string",
|
|
8437
|
+
"format": "date-time"
|
|
8438
|
+
}
|
|
8439
|
+
},
|
|
8440
|
+
{
|
|
8441
|
+
"name": "action",
|
|
8442
|
+
"in": "query",
|
|
8443
|
+
"description": "Filter by an exact audit action name.",
|
|
8444
|
+
"schema": {
|
|
8445
|
+
"type": "string"
|
|
8446
|
+
}
|
|
8447
|
+
},
|
|
8448
|
+
{
|
|
8449
|
+
"name": "actor",
|
|
8450
|
+
"in": "query",
|
|
8451
|
+
"description": "Filter by an exact stable actor identifier.",
|
|
8452
|
+
"schema": {
|
|
8453
|
+
"type": "string"
|
|
8454
|
+
}
|
|
8455
|
+
},
|
|
8456
|
+
{
|
|
8457
|
+
"name": "target",
|
|
8458
|
+
"in": "query",
|
|
8459
|
+
"description": "Filter by an exact stable target identifier.",
|
|
8460
|
+
"schema": {
|
|
8461
|
+
"type": "string"
|
|
8462
|
+
}
|
|
8463
|
+
}
|
|
8464
|
+
],
|
|
8465
|
+
"responses": {
|
|
8466
|
+
"200": {
|
|
8467
|
+
"description": "Paginated audit events.",
|
|
8468
|
+
"content": {
|
|
8469
|
+
"application/json": {
|
|
8470
|
+
"schema": {
|
|
8471
|
+
"allOf": [
|
|
8472
|
+
{
|
|
8473
|
+
"$ref": "#/components/schemas/List"
|
|
8474
|
+
},
|
|
8475
|
+
{
|
|
8476
|
+
"type": "object",
|
|
8477
|
+
"properties": {
|
|
8478
|
+
"items": {
|
|
8479
|
+
"type": "array",
|
|
8480
|
+
"items": {
|
|
8481
|
+
"$ref": "#/components/schemas/AuditEvent"
|
|
8482
|
+
}
|
|
8483
|
+
}
|
|
8484
|
+
},
|
|
8485
|
+
"required": [
|
|
8486
|
+
"items"
|
|
8487
|
+
]
|
|
8488
|
+
}
|
|
8489
|
+
]
|
|
8490
|
+
}
|
|
8491
|
+
}
|
|
8492
|
+
}
|
|
8493
|
+
},
|
|
8494
|
+
"400": {
|
|
8495
|
+
"$ref": "#/components/responses/BadRequestError"
|
|
8496
|
+
},
|
|
8497
|
+
"401": {
|
|
8498
|
+
"$ref": "#/components/responses/UnauthorizedError"
|
|
8499
|
+
},
|
|
8500
|
+
"403": {
|
|
8501
|
+
"$ref": "#/components/responses/ForbiddenError"
|
|
8502
|
+
},
|
|
8503
|
+
"404": {
|
|
8504
|
+
"$ref": "#/components/responses/NotFoundError"
|
|
8505
|
+
}
|
|
8506
|
+
}
|
|
8507
|
+
}
|
|
8508
|
+
},
|
|
8509
|
+
"/orgs/{organizationId}/audit-events/{auditEventId}": {
|
|
8510
|
+
"get": {
|
|
8511
|
+
"operationId": "getOrganizationAuditEvent",
|
|
8512
|
+
"x-gitbook-mcp": true,
|
|
8513
|
+
"summary": "Get an organization audit event",
|
|
8514
|
+
"description": "Returns the full allowlisted payload for one recorded organization change. Access is restricted to organization administrators and GitBook staff. The organization must be activated and on an active Enterprise plan, except for GitBook's own organization.\n",
|
|
8515
|
+
"tags": [
|
|
8516
|
+
"organizations"
|
|
8517
|
+
],
|
|
8518
|
+
"security": [
|
|
8519
|
+
{
|
|
8520
|
+
"user": []
|
|
8521
|
+
}
|
|
8522
|
+
],
|
|
8523
|
+
"parameters": [
|
|
8524
|
+
{
|
|
8525
|
+
"$ref": "#/components/parameters/organizationId"
|
|
8526
|
+
},
|
|
8527
|
+
{
|
|
8528
|
+
"name": "auditEventId",
|
|
8529
|
+
"in": "path",
|
|
8530
|
+
"required": true,
|
|
8531
|
+
"description": "Unique identifier of the audit event.",
|
|
8532
|
+
"schema": {
|
|
8533
|
+
"type": "string",
|
|
8534
|
+
"format": "uuid"
|
|
8535
|
+
}
|
|
8536
|
+
}
|
|
8537
|
+
],
|
|
8538
|
+
"responses": {
|
|
8539
|
+
"200": {
|
|
8540
|
+
"description": "The audit event.",
|
|
8541
|
+
"content": {
|
|
8542
|
+
"application/json": {
|
|
8543
|
+
"schema": {
|
|
8544
|
+
"$ref": "#/components/schemas/AuditEventDetails"
|
|
8545
|
+
}
|
|
8546
|
+
}
|
|
8547
|
+
}
|
|
8548
|
+
},
|
|
8549
|
+
"401": {
|
|
8550
|
+
"$ref": "#/components/responses/UnauthorizedError"
|
|
8551
|
+
},
|
|
8552
|
+
"403": {
|
|
8553
|
+
"$ref": "#/components/responses/ForbiddenError"
|
|
8554
|
+
},
|
|
8555
|
+
"404": {
|
|
8556
|
+
"$ref": "#/components/responses/NotFoundError"
|
|
8557
|
+
}
|
|
8558
|
+
}
|
|
8559
|
+
}
|
|
8560
|
+
},
|
|
8258
8561
|
"/orgs/{organizationId}/styleguides": {
|
|
8259
8562
|
"get": {
|
|
8260
8563
|
"operationId": "listOrganizationStyleguides",
|
|
8261
|
-
"summary": "List all
|
|
8262
|
-
"description": "Lists every
|
|
8564
|
+
"summary": "List all style guides in an organization",
|
|
8565
|
+
"description": "Lists every style guide (a space holding a team's writing style guide) in the organization, along with every site that references each one. Style guides that are not referenced by any site are still returned with an empty `sites` list.\n",
|
|
8263
8566
|
"x-gitbook-mcp": true,
|
|
8264
8567
|
"tags": [
|
|
8265
8568
|
"organizations"
|
|
@@ -8296,8 +8599,8 @@
|
|
|
8296
8599
|
"/orgs/{organizationId}/styleguide-templates": {
|
|
8297
8600
|
"get": {
|
|
8298
8601
|
"operationId": "listStyleguideTemplates",
|
|
8299
|
-
"summary": "List all built-in
|
|
8300
|
-
"description": "Lists the built-in
|
|
8602
|
+
"summary": "List all built-in style guide templates",
|
|
8603
|
+
"description": "Lists the built-in style guide starter templates that can seed a new styleguide, including the markdown content used to render each template's preview.\n",
|
|
8301
8604
|
"x-gitbook-mcp": true,
|
|
8302
8605
|
"tags": [
|
|
8303
8606
|
"organizations"
|
|
@@ -10257,6 +10560,7 @@
|
|
|
10257
10560
|
"get": {
|
|
10258
10561
|
"operationId": "listOrganizationIntegrationsStatus",
|
|
10259
10562
|
"summary": "List all integration statuses",
|
|
10563
|
+
"description": "Returns integration installations in the organization. Use site or space with the matching target to efficiently scope the result to one resource.",
|
|
10260
10564
|
"tags": [
|
|
10261
10565
|
"integrations",
|
|
10262
10566
|
"critical"
|
|
@@ -10284,6 +10588,22 @@
|
|
|
10284
10588
|
"site"
|
|
10285
10589
|
]
|
|
10286
10590
|
}
|
|
10591
|
+
},
|
|
10592
|
+
{
|
|
10593
|
+
"name": "site",
|
|
10594
|
+
"in": "query",
|
|
10595
|
+
"description": "Return installations for this site. Only valid when target is site.",
|
|
10596
|
+
"schema": {
|
|
10597
|
+
"type": "string"
|
|
10598
|
+
}
|
|
10599
|
+
},
|
|
10600
|
+
{
|
|
10601
|
+
"name": "space",
|
|
10602
|
+
"in": "query",
|
|
10603
|
+
"description": "Return installations for this space. Only valid when target is space.",
|
|
10604
|
+
"schema": {
|
|
10605
|
+
"type": "string"
|
|
10606
|
+
}
|
|
10287
10607
|
}
|
|
10288
10608
|
],
|
|
10289
10609
|
"responses": {
|
|
@@ -12253,6 +12573,109 @@
|
|
|
12253
12573
|
}
|
|
12254
12574
|
},
|
|
12255
12575
|
"/org/{organizationId}/imports": {
|
|
12576
|
+
"get": {
|
|
12577
|
+
"operationId": "listImportRuns",
|
|
12578
|
+
"summary": "List the import runs of an organization",
|
|
12579
|
+
"description": "Returns the import runs of the organization, most recent first. Runs left behind by an import that never reported back are returned as failed.\n",
|
|
12580
|
+
"tags": [
|
|
12581
|
+
"imports"
|
|
12582
|
+
],
|
|
12583
|
+
"x-gitbook-mcp": true,
|
|
12584
|
+
"security": [
|
|
12585
|
+
{
|
|
12586
|
+
"user": []
|
|
12587
|
+
},
|
|
12588
|
+
{
|
|
12589
|
+
"oauth": [
|
|
12590
|
+
"space:read"
|
|
12591
|
+
]
|
|
12592
|
+
}
|
|
12593
|
+
],
|
|
12594
|
+
"parameters": [
|
|
12595
|
+
{
|
|
12596
|
+
"$ref": "#/components/parameters/organizationId"
|
|
12597
|
+
},
|
|
12598
|
+
{
|
|
12599
|
+
"name": "space",
|
|
12600
|
+
"in": "query",
|
|
12601
|
+
"description": "Only return the import runs targeting this space.",
|
|
12602
|
+
"schema": {
|
|
12603
|
+
"type": "string"
|
|
12604
|
+
}
|
|
12605
|
+
},
|
|
12606
|
+
{
|
|
12607
|
+
"name": "changeRequest",
|
|
12608
|
+
"in": "query",
|
|
12609
|
+
"description": "Only return the import runs targeting this change request.",
|
|
12610
|
+
"schema": {
|
|
12611
|
+
"type": "string"
|
|
12612
|
+
}
|
|
12613
|
+
},
|
|
12614
|
+
{
|
|
12615
|
+
"name": "site",
|
|
12616
|
+
"in": "query",
|
|
12617
|
+
"description": "Only return the import runs targeting a space of this site.",
|
|
12618
|
+
"schema": {
|
|
12619
|
+
"type": "string"
|
|
12620
|
+
}
|
|
12621
|
+
},
|
|
12622
|
+
{
|
|
12623
|
+
"name": "status",
|
|
12624
|
+
"in": "query",
|
|
12625
|
+
"description": "Only return the import runs in this status. `active` covers both `pending` and `in-progress`.",
|
|
12626
|
+
"schema": {
|
|
12627
|
+
"type": "string",
|
|
12628
|
+
"enum": [
|
|
12629
|
+
"active",
|
|
12630
|
+
"pending",
|
|
12631
|
+
"in-progress",
|
|
12632
|
+
"completed",
|
|
12633
|
+
"failed",
|
|
12634
|
+
"cancelled"
|
|
12635
|
+
]
|
|
12636
|
+
}
|
|
12637
|
+
},
|
|
12638
|
+
{
|
|
12639
|
+
"$ref": "#/components/parameters/listPage"
|
|
12640
|
+
},
|
|
12641
|
+
{
|
|
12642
|
+
"$ref": "#/components/parameters/listLimit"
|
|
12643
|
+
}
|
|
12644
|
+
],
|
|
12645
|
+
"responses": {
|
|
12646
|
+
"200": {
|
|
12647
|
+
"description": "OK",
|
|
12648
|
+
"content": {
|
|
12649
|
+
"application/json": {
|
|
12650
|
+
"schema": {
|
|
12651
|
+
"allOf": [
|
|
12652
|
+
{
|
|
12653
|
+
"$ref": "#/components/schemas/List"
|
|
12654
|
+
},
|
|
12655
|
+
{
|
|
12656
|
+
"type": "object",
|
|
12657
|
+
"required": [
|
|
12658
|
+
"items"
|
|
12659
|
+
],
|
|
12660
|
+
"properties": {
|
|
12661
|
+
"items": {
|
|
12662
|
+
"type": "array",
|
|
12663
|
+
"items": {
|
|
12664
|
+
"$ref": "#/components/schemas/ContentImportRun"
|
|
12665
|
+
}
|
|
12666
|
+
}
|
|
12667
|
+
}
|
|
12668
|
+
}
|
|
12669
|
+
]
|
|
12670
|
+
}
|
|
12671
|
+
}
|
|
12672
|
+
}
|
|
12673
|
+
},
|
|
12674
|
+
"404": {
|
|
12675
|
+
"$ref": "#/components/responses/NotFoundError"
|
|
12676
|
+
}
|
|
12677
|
+
}
|
|
12678
|
+
},
|
|
12256
12679
|
"post": {
|
|
12257
12680
|
"operationId": "startImportRun",
|
|
12258
12681
|
"summary": "Import content into a space from a website",
|
|
@@ -12287,6 +12710,10 @@
|
|
|
12287
12710
|
"target": {
|
|
12288
12711
|
"$ref": "#/components/schemas/ContentImportTarget"
|
|
12289
12712
|
},
|
|
12713
|
+
"site": {
|
|
12714
|
+
"description": "ID of the site the import is for, to list it among that site's imports. Only needed when the target space does not belong to the site yet — a site being set up, whose space is attached once the import has started. Otherwise the site is resolved from the space.",
|
|
12715
|
+
"type": "string"
|
|
12716
|
+
},
|
|
12290
12717
|
"enhance": {
|
|
12291
12718
|
"description": "Enhance the imported content with AI",
|
|
12292
12719
|
"default": true,
|
|
@@ -12321,6 +12748,50 @@
|
|
|
12321
12748
|
}
|
|
12322
12749
|
}
|
|
12323
12750
|
},
|
|
12751
|
+
"/org/{organizationId}/imports/{importRunId}": {
|
|
12752
|
+
"get": {
|
|
12753
|
+
"operationId": "getImportRun",
|
|
12754
|
+
"summary": "Get an import run",
|
|
12755
|
+
"description": "Returns the import run. A run left behind by an import that never reported back is returned as failed.\n",
|
|
12756
|
+
"tags": [
|
|
12757
|
+
"imports"
|
|
12758
|
+
],
|
|
12759
|
+
"x-gitbook-mcp": true,
|
|
12760
|
+
"security": [
|
|
12761
|
+
{
|
|
12762
|
+
"user": []
|
|
12763
|
+
},
|
|
12764
|
+
{
|
|
12765
|
+
"oauth": [
|
|
12766
|
+
"space:read"
|
|
12767
|
+
]
|
|
12768
|
+
}
|
|
12769
|
+
],
|
|
12770
|
+
"parameters": [
|
|
12771
|
+
{
|
|
12772
|
+
"$ref": "#/components/parameters/organizationId"
|
|
12773
|
+
},
|
|
12774
|
+
{
|
|
12775
|
+
"$ref": "#/components/parameters/importRunId"
|
|
12776
|
+
}
|
|
12777
|
+
],
|
|
12778
|
+
"responses": {
|
|
12779
|
+
"200": {
|
|
12780
|
+
"description": "OK",
|
|
12781
|
+
"content": {
|
|
12782
|
+
"application/json": {
|
|
12783
|
+
"schema": {
|
|
12784
|
+
"$ref": "#/components/schemas/ContentImportRun"
|
|
12785
|
+
}
|
|
12786
|
+
}
|
|
12787
|
+
}
|
|
12788
|
+
},
|
|
12789
|
+
"404": {
|
|
12790
|
+
"$ref": "#/components/responses/NotFoundError"
|
|
12791
|
+
}
|
|
12792
|
+
}
|
|
12793
|
+
}
|
|
12794
|
+
},
|
|
12324
12795
|
"/org/{organizationId}/imports/{importRunId}/cancel": {
|
|
12325
12796
|
"post": {
|
|
12326
12797
|
"operationId": "cancelImportRun",
|
|
@@ -12342,7 +12813,7 @@
|
|
|
12342
12813
|
}
|
|
12343
12814
|
],
|
|
12344
12815
|
"responses": {
|
|
12345
|
-
"
|
|
12816
|
+
"200": {
|
|
12346
12817
|
"description": "Import run canceled successfully.",
|
|
12347
12818
|
"content": {
|
|
12348
12819
|
"application/json": {
|
|
@@ -12637,7 +13108,7 @@
|
|
|
12637
13108
|
]
|
|
12638
13109
|
},
|
|
12639
13110
|
"styleguide": {
|
|
12640
|
-
"description": "Attach an existing
|
|
13111
|
+
"description": "Attach an existing style guide to the site by the ID of the style guide space, or `null` to detach the current one. The space must be a style guide owned by the same organization.\n",
|
|
12641
13112
|
"oneOf": [
|
|
12642
13113
|
{
|
|
12643
13114
|
"type": "string"
|
|
@@ -13364,6 +13835,7 @@
|
|
|
13364
13835
|
"summary": "Move a site space, section, or section group to a new position",
|
|
13365
13836
|
"description": "Reorders an item in the site's navigation structure by moving a site space, section, or section group to a specified position relative to another item. Use this to reorganize the navigation order after adding new sections or to reflect a new content hierarchy.",
|
|
13366
13837
|
"x-gitbook-mcp": true,
|
|
13838
|
+
"x-gitbook-return-preference": true,
|
|
13367
13839
|
"tags": [
|
|
13368
13840
|
"sites"
|
|
13369
13841
|
],
|
|
@@ -13383,6 +13855,9 @@
|
|
|
13383
13855
|
},
|
|
13384
13856
|
{
|
|
13385
13857
|
"$ref": "#/components/parameters/siteId"
|
|
13858
|
+
},
|
|
13859
|
+
{
|
|
13860
|
+
"$ref": "#/components/parameters/returnPreference"
|
|
13386
13861
|
}
|
|
13387
13862
|
],
|
|
13388
13863
|
"requestBody": {
|
|
@@ -13419,6 +13894,14 @@
|
|
|
13419
13894
|
}
|
|
13420
13895
|
}
|
|
13421
13896
|
},
|
|
13897
|
+
"204": {
|
|
13898
|
+
"description": "Item moved without returning its representation",
|
|
13899
|
+
"headers": {
|
|
13900
|
+
"Preference-Applied": {
|
|
13901
|
+
"$ref": "#/components/headers/returnPreferenceApplied"
|
|
13902
|
+
}
|
|
13903
|
+
}
|
|
13904
|
+
},
|
|
13422
13905
|
"400": {
|
|
13423
13906
|
"description": "Invalid move position provided",
|
|
13424
13907
|
"$ref": "#/components/responses/BadRequestError"
|
|
@@ -13874,6 +14357,7 @@
|
|
|
13874
14357
|
"summary": "Add a space to a site as a content source",
|
|
13875
14358
|
"description": "Links an existing space to the site by creating a site space relationship.",
|
|
13876
14359
|
"x-gitbook-mcp": true,
|
|
14360
|
+
"x-gitbook-return-preference": true,
|
|
13877
14361
|
"tags": [
|
|
13878
14362
|
"site-spaces"
|
|
13879
14363
|
],
|
|
@@ -13893,6 +14377,9 @@
|
|
|
13893
14377
|
},
|
|
13894
14378
|
{
|
|
13895
14379
|
"$ref": "#/components/parameters/siteId"
|
|
14380
|
+
},
|
|
14381
|
+
{
|
|
14382
|
+
"$ref": "#/components/parameters/returnPreference"
|
|
13896
14383
|
}
|
|
13897
14384
|
],
|
|
13898
14385
|
"requestBody": {
|
|
@@ -13925,6 +14412,9 @@
|
|
|
13925
14412
|
}
|
|
13926
14413
|
],
|
|
13927
14414
|
"description": "Custom home page within the space, rendered at the site space's path root instead of the space's default landing page."
|
|
14415
|
+
},
|
|
14416
|
+
"title": {
|
|
14417
|
+
"$ref": "#/components/schemas/SiteTitle"
|
|
13928
14418
|
}
|
|
13929
14419
|
},
|
|
13930
14420
|
"required": [
|
|
@@ -13952,6 +14442,14 @@
|
|
|
13952
14442
|
}
|
|
13953
14443
|
}
|
|
13954
14444
|
}
|
|
14445
|
+
},
|
|
14446
|
+
"204": {
|
|
14447
|
+
"description": "Space added to the site without returning its representation",
|
|
14448
|
+
"headers": {
|
|
14449
|
+
"Preference-Applied": {
|
|
14450
|
+
"$ref": "#/components/headers/returnPreferenceApplied"
|
|
14451
|
+
}
|
|
14452
|
+
}
|
|
13955
14453
|
}
|
|
13956
14454
|
}
|
|
13957
14455
|
},
|
|
@@ -14192,6 +14690,7 @@
|
|
|
14192
14690
|
"summary": "Update a section group in a site's navigation structure",
|
|
14193
14691
|
"description": "Updates a section group's properties in the site's navigation structure.",
|
|
14194
14692
|
"x-gitbook-mcp": true,
|
|
14693
|
+
"x-gitbook-return-preference": true,
|
|
14195
14694
|
"tags": [
|
|
14196
14695
|
"site-section-groups"
|
|
14197
14696
|
],
|
|
@@ -14214,6 +14713,9 @@
|
|
|
14214
14713
|
},
|
|
14215
14714
|
{
|
|
14216
14715
|
"$ref": "#/components/parameters/siteSectionGroupId"
|
|
14716
|
+
},
|
|
14717
|
+
{
|
|
14718
|
+
"$ref": "#/components/parameters/returnPreference"
|
|
14217
14719
|
}
|
|
14218
14720
|
],
|
|
14219
14721
|
"requestBody": {
|
|
@@ -14258,6 +14760,14 @@
|
|
|
14258
14760
|
}
|
|
14259
14761
|
}
|
|
14260
14762
|
}
|
|
14763
|
+
},
|
|
14764
|
+
"204": {
|
|
14765
|
+
"description": "Site section group updated without returning its representation",
|
|
14766
|
+
"headers": {
|
|
14767
|
+
"Preference-Applied": {
|
|
14768
|
+
"$ref": "#/components/headers/returnPreferenceApplied"
|
|
14769
|
+
}
|
|
14770
|
+
}
|
|
14261
14771
|
}
|
|
14262
14772
|
}
|
|
14263
14773
|
},
|
|
@@ -14360,6 +14870,10 @@
|
|
|
14360
14870
|
"type": "boolean",
|
|
14361
14871
|
"description": "Whether the section should be created in draft mode."
|
|
14362
14872
|
},
|
|
14873
|
+
"pageId": {
|
|
14874
|
+
"type": "string",
|
|
14875
|
+
"description": "Custom home page within the space, rendered at the section's path root instead of the space's default landing page."
|
|
14876
|
+
},
|
|
14363
14877
|
"siteSectionGroupId": {
|
|
14364
14878
|
"type": "string",
|
|
14365
14879
|
"description": "ID of the section group to create the section in"
|
|
@@ -14466,6 +14980,7 @@
|
|
|
14466
14980
|
"summary": "Update a navigation section in a site",
|
|
14467
14981
|
"description": "Updates a navigation section's configuration in the site structure.",
|
|
14468
14982
|
"x-gitbook-mcp": true,
|
|
14983
|
+
"x-gitbook-return-preference": true,
|
|
14469
14984
|
"tags": [
|
|
14470
14985
|
"site-sections"
|
|
14471
14986
|
],
|
|
@@ -14488,6 +15003,9 @@
|
|
|
14488
15003
|
},
|
|
14489
15004
|
{
|
|
14490
15005
|
"$ref": "#/components/parameters/siteSectionId"
|
|
15006
|
+
},
|
|
15007
|
+
{
|
|
15008
|
+
"$ref": "#/components/parameters/returnPreference"
|
|
14491
15009
|
}
|
|
14492
15010
|
],
|
|
14493
15011
|
"requestBody": {
|
|
@@ -14574,6 +15092,14 @@
|
|
|
14574
15092
|
}
|
|
14575
15093
|
}
|
|
14576
15094
|
}
|
|
15095
|
+
},
|
|
15096
|
+
"204": {
|
|
15097
|
+
"description": "Site section updated without returning its representation",
|
|
15098
|
+
"headers": {
|
|
15099
|
+
"Preference-Applied": {
|
|
15100
|
+
"$ref": "#/components/headers/returnPreferenceApplied"
|
|
15101
|
+
}
|
|
15102
|
+
}
|
|
14577
15103
|
}
|
|
14578
15104
|
}
|
|
14579
15105
|
},
|
|
@@ -14837,6 +15363,10 @@
|
|
|
14837
15363
|
"pageId": {
|
|
14838
15364
|
"description": "ID of the page the feedback is about.",
|
|
14839
15365
|
"type": "string"
|
|
15366
|
+
},
|
|
15367
|
+
"source": {
|
|
15368
|
+
"description": "Surface the feedback was submitted from. When omitted, the feedback is recorded with an unknown source.\n",
|
|
15369
|
+
"$ref": "#/components/schemas/AgentFeedbackSource"
|
|
14840
15370
|
}
|
|
14841
15371
|
},
|
|
14842
15372
|
"required": [
|
|
@@ -15334,6 +15864,14 @@
|
|
|
15334
15864
|
"type": "string"
|
|
15335
15865
|
}
|
|
15336
15866
|
},
|
|
15867
|
+
{
|
|
15868
|
+
"name": "question",
|
|
15869
|
+
"in": "query",
|
|
15870
|
+
"description": "Filter findings that reference the given site question ID as evidence.",
|
|
15871
|
+
"schema": {
|
|
15872
|
+
"type": "string"
|
|
15873
|
+
}
|
|
15874
|
+
},
|
|
15337
15875
|
{
|
|
15338
15876
|
"name": "status",
|
|
15339
15877
|
"in": "query",
|
|
@@ -15345,9 +15883,12 @@
|
|
|
15345
15883
|
{
|
|
15346
15884
|
"name": "type",
|
|
15347
15885
|
"in": "query",
|
|
15348
|
-
"description": "Filter findings by type.",
|
|
15886
|
+
"description": "Filter findings by type. When multiple types are given, findings matching any of them are returned.",
|
|
15349
15887
|
"schema": {
|
|
15350
|
-
"
|
|
15888
|
+
"type": "array",
|
|
15889
|
+
"items": {
|
|
15890
|
+
"$ref": "#/components/schemas/SiteFindingType"
|
|
15891
|
+
}
|
|
15351
15892
|
}
|
|
15352
15893
|
},
|
|
15353
15894
|
{
|
|
@@ -15884,9 +16425,12 @@
|
|
|
15884
16425
|
{
|
|
15885
16426
|
"name": "type",
|
|
15886
16427
|
"in": "query",
|
|
15887
|
-
"description": "Filter findings by type.",
|
|
16428
|
+
"description": "Filter findings by type. When multiple types are given, findings matching any of them are returned.",
|
|
15888
16429
|
"schema": {
|
|
15889
|
-
"
|
|
16430
|
+
"type": "array",
|
|
16431
|
+
"items": {
|
|
16432
|
+
"$ref": "#/components/schemas/SiteFindingType"
|
|
16433
|
+
}
|
|
15890
16434
|
}
|
|
15891
16435
|
},
|
|
15892
16436
|
{
|
|
@@ -17283,6 +17827,7 @@
|
|
|
17283
17827
|
"summary": "Update a space linked to a site",
|
|
17284
17828
|
"description": "Updates the configuration of a site space. Use this to remap a site space to a different space, hide it from navigation, or promote it from draft to live.",
|
|
17285
17829
|
"x-gitbook-mcp": true,
|
|
17830
|
+
"x-gitbook-return-preference": true,
|
|
17286
17831
|
"tags": [
|
|
17287
17832
|
"site-spaces"
|
|
17288
17833
|
],
|
|
@@ -17305,6 +17850,9 @@
|
|
|
17305
17850
|
},
|
|
17306
17851
|
{
|
|
17307
17852
|
"$ref": "#/components/parameters/siteSpaceId"
|
|
17853
|
+
},
|
|
17854
|
+
{
|
|
17855
|
+
"$ref": "#/components/parameters/returnPreference"
|
|
17308
17856
|
}
|
|
17309
17857
|
],
|
|
17310
17858
|
"requestBody": {
|
|
@@ -17366,6 +17914,14 @@
|
|
|
17366
17914
|
}
|
|
17367
17915
|
}
|
|
17368
17916
|
}
|
|
17917
|
+
},
|
|
17918
|
+
"204": {
|
|
17919
|
+
"description": "Site space updated without returning its representation",
|
|
17920
|
+
"headers": {
|
|
17921
|
+
"Preference-Applied": {
|
|
17922
|
+
"$ref": "#/components/headers/returnPreferenceApplied"
|
|
17923
|
+
}
|
|
17924
|
+
}
|
|
17369
17925
|
}
|
|
17370
17926
|
}
|
|
17371
17927
|
},
|
|
@@ -18973,8 +19529,8 @@
|
|
|
18973
19529
|
"/orgs/{organizationId}/sites/{siteId}/styleguide": {
|
|
18974
19530
|
"post": {
|
|
18975
19531
|
"operationId": "createSiteStyleguideById",
|
|
18976
|
-
"summary": "Create or retrieve the
|
|
18977
|
-
"description": "Ensures the site has a dedicated
|
|
19532
|
+
"summary": "Create or retrieve the style guide space for a site",
|
|
19533
|
+
"description": "Ensures the site has a dedicated style guide space and returns it. The style guide defines writing style and tone guidelines that the AI editor agent references when generating or refining content for the site. If a style guide already exists, this is idempotent and returns the existing space.",
|
|
18978
19534
|
"x-gitbook-mcp": true,
|
|
18979
19535
|
"tags": [
|
|
18980
19536
|
"sites"
|
|
@@ -19006,7 +19562,7 @@
|
|
|
19006
19562
|
"properties": {
|
|
19007
19563
|
"template": {
|
|
19008
19564
|
"type": "string",
|
|
19009
|
-
"description": "Built-in template id to seed the
|
|
19565
|
+
"description": "Built-in template id to seed the style guide content with. Omit (or send no body) to create a blank style guide.\n"
|
|
19010
19566
|
}
|
|
19011
19567
|
}
|
|
19012
19568
|
}
|
|
@@ -19015,7 +19571,7 @@
|
|
|
19015
19571
|
},
|
|
19016
19572
|
"responses": {
|
|
19017
19573
|
"200": {
|
|
19018
|
-
"description": "
|
|
19574
|
+
"description": "Style guide created or already exists.",
|
|
19019
19575
|
"content": {
|
|
19020
19576
|
"application/json": {
|
|
19021
19577
|
"schema": {
|
|
@@ -21109,6 +21665,7 @@
|
|
|
21109
21665
|
"patch": {
|
|
21110
21666
|
"operationId": "updateGitSyncInstallationById",
|
|
21111
21667
|
"summary": "Update a Git Sync installation configuration",
|
|
21668
|
+
"description": "Updates the installation configuration, then queues a sync operation using the new settings.\nA `git` priority queues an import from the selected repository and branch into GitBook; a\n`gitbook` priority queues an export from GitBook to the repository. Site imports require a\n`docs.yaml` file at the configured project directory and return a conflict without saving or\nqueuing the sync when the file is missing.\n",
|
|
21112
21669
|
"tags": [
|
|
21113
21670
|
"git"
|
|
21114
21671
|
],
|
|
@@ -21166,7 +21723,63 @@
|
|
|
21166
21723
|
"$ref": "#/components/responses/NotFoundError"
|
|
21167
21724
|
},
|
|
21168
21725
|
"409": {
|
|
21169
|
-
"
|
|
21726
|
+
"description": "The site Git Sync configuration is missing from the repository",
|
|
21727
|
+
"content": {
|
|
21728
|
+
"application/json": {
|
|
21729
|
+
"schema": {
|
|
21730
|
+
"allOf": [
|
|
21731
|
+
{
|
|
21732
|
+
"$ref": "#/components/schemas/Error"
|
|
21733
|
+
},
|
|
21734
|
+
{
|
|
21735
|
+
"type": "object",
|
|
21736
|
+
"required": [
|
|
21737
|
+
"error"
|
|
21738
|
+
],
|
|
21739
|
+
"properties": {
|
|
21740
|
+
"error": {
|
|
21741
|
+
"type": "object",
|
|
21742
|
+
"required": [
|
|
21743
|
+
"type",
|
|
21744
|
+
"details"
|
|
21745
|
+
],
|
|
21746
|
+
"properties": {
|
|
21747
|
+
"type": {
|
|
21748
|
+
"type": "string",
|
|
21749
|
+
"enum": [
|
|
21750
|
+
"missing_site_git_sync_config"
|
|
21751
|
+
]
|
|
21752
|
+
},
|
|
21753
|
+
"details": {
|
|
21754
|
+
"type": "object",
|
|
21755
|
+
"required": [
|
|
21756
|
+
"path",
|
|
21757
|
+
"branch",
|
|
21758
|
+
"prompt"
|
|
21759
|
+
],
|
|
21760
|
+
"properties": {
|
|
21761
|
+
"path": {
|
|
21762
|
+
"type": "string",
|
|
21763
|
+
"description": "Repository-relative path where `docs.yaml` is required."
|
|
21764
|
+
},
|
|
21765
|
+
"branch": {
|
|
21766
|
+
"type": "string",
|
|
21767
|
+
"description": "Repository branch where `docs.yaml` is required."
|
|
21768
|
+
},
|
|
21769
|
+
"prompt": {
|
|
21770
|
+
"type": "string",
|
|
21771
|
+
"description": "Prompt for a coding agent to create and commit the missing file."
|
|
21772
|
+
}
|
|
21773
|
+
}
|
|
21774
|
+
}
|
|
21775
|
+
}
|
|
21776
|
+
}
|
|
21777
|
+
}
|
|
21778
|
+
}
|
|
21779
|
+
]
|
|
21780
|
+
}
|
|
21781
|
+
}
|
|
21782
|
+
}
|
|
21170
21783
|
}
|
|
21171
21784
|
}
|
|
21172
21785
|
},
|
|
@@ -21308,6 +21921,75 @@
|
|
|
21308
21921
|
}
|
|
21309
21922
|
}
|
|
21310
21923
|
},
|
|
21924
|
+
"/git/installations/{installationId}/github/repos/{accountName}/{repositoryName}/file": {
|
|
21925
|
+
"get": {
|
|
21926
|
+
"operationId": "getGitHubRepoFileForGitSyncInstallation",
|
|
21927
|
+
"summary": "Get a file from a GitHub repository for a Git Sync installation",
|
|
21928
|
+
"tags": [
|
|
21929
|
+
"git"
|
|
21930
|
+
],
|
|
21931
|
+
"security": [
|
|
21932
|
+
{
|
|
21933
|
+
"user": []
|
|
21934
|
+
}
|
|
21935
|
+
],
|
|
21936
|
+
"parameters": [
|
|
21937
|
+
{
|
|
21938
|
+
"$ref": "#/components/parameters/installationId"
|
|
21939
|
+
},
|
|
21940
|
+
{
|
|
21941
|
+
"name": "accountName",
|
|
21942
|
+
"in": "path",
|
|
21943
|
+
"required": true,
|
|
21944
|
+
"schema": {
|
|
21945
|
+
"type": "string"
|
|
21946
|
+
}
|
|
21947
|
+
},
|
|
21948
|
+
{
|
|
21949
|
+
"name": "repositoryName",
|
|
21950
|
+
"in": "path",
|
|
21951
|
+
"required": true,
|
|
21952
|
+
"schema": {
|
|
21953
|
+
"type": "string"
|
|
21954
|
+
}
|
|
21955
|
+
},
|
|
21956
|
+
{
|
|
21957
|
+
"name": "path",
|
|
21958
|
+
"in": "query",
|
|
21959
|
+
"required": true,
|
|
21960
|
+
"schema": {
|
|
21961
|
+
"type": "string"
|
|
21962
|
+
}
|
|
21963
|
+
},
|
|
21964
|
+
{
|
|
21965
|
+
"name": "ref",
|
|
21966
|
+
"in": "query",
|
|
21967
|
+
"required": true,
|
|
21968
|
+
"schema": {
|
|
21969
|
+
"type": "string"
|
|
21970
|
+
}
|
|
21971
|
+
}
|
|
21972
|
+
],
|
|
21973
|
+
"responses": {
|
|
21974
|
+
"200": {
|
|
21975
|
+
"description": "File found in the selected GitHub repository",
|
|
21976
|
+
"content": {
|
|
21977
|
+
"application/json": {
|
|
21978
|
+
"schema": {
|
|
21979
|
+
"$ref": "#/components/schemas/GitSyncRepositoryFile"
|
|
21980
|
+
}
|
|
21981
|
+
}
|
|
21982
|
+
}
|
|
21983
|
+
},
|
|
21984
|
+
"401": {
|
|
21985
|
+
"$ref": "#/components/responses/UnauthorizedError"
|
|
21986
|
+
},
|
|
21987
|
+
"404": {
|
|
21988
|
+
"$ref": "#/components/responses/NotFoundError"
|
|
21989
|
+
}
|
|
21990
|
+
}
|
|
21991
|
+
}
|
|
21992
|
+
},
|
|
21311
21993
|
"/git/installations/{installationId}/gitlab/projects": {
|
|
21312
21994
|
"get": {
|
|
21313
21995
|
"operationId": "listGitLabProjectsForGitSyncInstallation",
|
|
@@ -21411,6 +22093,67 @@
|
|
|
21411
22093
|
}
|
|
21412
22094
|
}
|
|
21413
22095
|
}
|
|
22096
|
+
},
|
|
22097
|
+
"/git/installations/{installationId}/gitlab/projects/{projectId}/file": {
|
|
22098
|
+
"get": {
|
|
22099
|
+
"operationId": "getGitLabProjectFileForGitSyncInstallation",
|
|
22100
|
+
"summary": "Get a file from a GitLab project for a Git Sync installation",
|
|
22101
|
+
"tags": [
|
|
22102
|
+
"git"
|
|
22103
|
+
],
|
|
22104
|
+
"security": [
|
|
22105
|
+
{
|
|
22106
|
+
"user": []
|
|
22107
|
+
}
|
|
22108
|
+
],
|
|
22109
|
+
"parameters": [
|
|
22110
|
+
{
|
|
22111
|
+
"$ref": "#/components/parameters/installationId"
|
|
22112
|
+
},
|
|
22113
|
+
{
|
|
22114
|
+
"name": "projectId",
|
|
22115
|
+
"in": "path",
|
|
22116
|
+
"required": true,
|
|
22117
|
+
"schema": {
|
|
22118
|
+
"type": "number"
|
|
22119
|
+
}
|
|
22120
|
+
},
|
|
22121
|
+
{
|
|
22122
|
+
"name": "path",
|
|
22123
|
+
"in": "query",
|
|
22124
|
+
"required": true,
|
|
22125
|
+
"schema": {
|
|
22126
|
+
"type": "string"
|
|
22127
|
+
}
|
|
22128
|
+
},
|
|
22129
|
+
{
|
|
22130
|
+
"name": "ref",
|
|
22131
|
+
"in": "query",
|
|
22132
|
+
"required": true,
|
|
22133
|
+
"schema": {
|
|
22134
|
+
"type": "string"
|
|
22135
|
+
}
|
|
22136
|
+
}
|
|
22137
|
+
],
|
|
22138
|
+
"responses": {
|
|
22139
|
+
"200": {
|
|
22140
|
+
"description": "File found in the selected GitLab project",
|
|
22141
|
+
"content": {
|
|
22142
|
+
"application/json": {
|
|
22143
|
+
"schema": {
|
|
22144
|
+
"$ref": "#/components/schemas/GitSyncRepositoryFile"
|
|
22145
|
+
}
|
|
22146
|
+
}
|
|
22147
|
+
}
|
|
22148
|
+
},
|
|
22149
|
+
"401": {
|
|
22150
|
+
"$ref": "#/components/responses/UnauthorizedError"
|
|
22151
|
+
},
|
|
22152
|
+
"404": {
|
|
22153
|
+
"$ref": "#/components/responses/NotFoundError"
|
|
22154
|
+
}
|
|
22155
|
+
}
|
|
22156
|
+
}
|
|
21414
22157
|
}
|
|
21415
22158
|
},
|
|
21416
22159
|
"components": {
|
|
@@ -21672,6 +22415,19 @@
|
|
|
21672
22415
|
"$ref": "#/components/schemas/EntityId"
|
|
21673
22416
|
}
|
|
21674
22417
|
},
|
|
22418
|
+
"returnPreference": {
|
|
22419
|
+
"in": "header",
|
|
22420
|
+
"name": "prefer",
|
|
22421
|
+
"description": "Control whether a successful response includes the updated resource representation.",
|
|
22422
|
+
"required": false,
|
|
22423
|
+
"schema": {
|
|
22424
|
+
"type": "string",
|
|
22425
|
+
"enum": [
|
|
22426
|
+
"return=minimal",
|
|
22427
|
+
"return=representation"
|
|
22428
|
+
]
|
|
22429
|
+
}
|
|
22430
|
+
},
|
|
21675
22431
|
"reviewId": {
|
|
21676
22432
|
"name": "reviewId",
|
|
21677
22433
|
"in": "path",
|
|
@@ -22725,6 +23481,25 @@
|
|
|
22725
23481
|
"import"
|
|
22726
23482
|
]
|
|
22727
23483
|
},
|
|
23484
|
+
"GitSyncOperationErrorAction": {
|
|
23485
|
+
"type": "object",
|
|
23486
|
+
"description": "An action the user can take to resolve a failed Git Sync operation.",
|
|
23487
|
+
"properties": {
|
|
23488
|
+
"label": {
|
|
23489
|
+
"type": "string",
|
|
23490
|
+
"description": "Label for the action."
|
|
23491
|
+
},
|
|
23492
|
+
"url": {
|
|
23493
|
+
"type": "string",
|
|
23494
|
+
"format": "uri",
|
|
23495
|
+
"description": "URL where the user can resolve the failure."
|
|
23496
|
+
}
|
|
23497
|
+
},
|
|
23498
|
+
"required": [
|
|
23499
|
+
"label",
|
|
23500
|
+
"url"
|
|
23501
|
+
]
|
|
23502
|
+
},
|
|
22728
23503
|
"GitSyncState": {
|
|
22729
23504
|
"type": "object",
|
|
22730
23505
|
"properties": {
|
|
@@ -22774,6 +23549,9 @@
|
|
|
22774
23549
|
"error": {
|
|
22775
23550
|
"type": "string",
|
|
22776
23551
|
"description": "Why the operation failed, when it did."
|
|
23552
|
+
},
|
|
23553
|
+
"errorAction": {
|
|
23554
|
+
"$ref": "#/components/schemas/GitSyncOperationErrorAction"
|
|
22777
23555
|
}
|
|
22778
23556
|
},
|
|
22779
23557
|
"required": [
|
|
@@ -22793,6 +23571,191 @@
|
|
|
22793
23571
|
"installationStatus"
|
|
22794
23572
|
]
|
|
22795
23573
|
},
|
|
23574
|
+
"ContentImportSource": {
|
|
23575
|
+
"oneOf": [
|
|
23576
|
+
{
|
|
23577
|
+
"type": "object",
|
|
23578
|
+
"properties": {
|
|
23579
|
+
"type": {
|
|
23580
|
+
"type": "string",
|
|
23581
|
+
"enum": [
|
|
23582
|
+
"website"
|
|
23583
|
+
]
|
|
23584
|
+
},
|
|
23585
|
+
"url": {
|
|
23586
|
+
"$ref": "#/components/schemas/URL"
|
|
23587
|
+
}
|
|
23588
|
+
},
|
|
23589
|
+
"required": [
|
|
23590
|
+
"type",
|
|
23591
|
+
"url"
|
|
23592
|
+
]
|
|
23593
|
+
},
|
|
23594
|
+
{
|
|
23595
|
+
"type": "object",
|
|
23596
|
+
"properties": {
|
|
23597
|
+
"type": {
|
|
23598
|
+
"type": "string",
|
|
23599
|
+
"enum": [
|
|
23600
|
+
"file"
|
|
23601
|
+
]
|
|
23602
|
+
},
|
|
23603
|
+
"files": {
|
|
23604
|
+
"description": "Files to import",
|
|
23605
|
+
"type": "array",
|
|
23606
|
+
"maxItems": 50,
|
|
23607
|
+
"items": {
|
|
23608
|
+
"description": "Key of file",
|
|
23609
|
+
"type": "string"
|
|
23610
|
+
}
|
|
23611
|
+
}
|
|
23612
|
+
},
|
|
23613
|
+
"required": [
|
|
23614
|
+
"type",
|
|
23615
|
+
"files"
|
|
23616
|
+
]
|
|
23617
|
+
}
|
|
23618
|
+
]
|
|
23619
|
+
},
|
|
23620
|
+
"ContentImportTarget": {
|
|
23621
|
+
"type": "object",
|
|
23622
|
+
"properties": {
|
|
23623
|
+
"space": {
|
|
23624
|
+
"type": "string",
|
|
23625
|
+
"description": "ID of the space to import in"
|
|
23626
|
+
},
|
|
23627
|
+
"changeRequest": {
|
|
23628
|
+
"type": "string",
|
|
23629
|
+
"description": "ID of the change request to import in"
|
|
23630
|
+
},
|
|
23631
|
+
"page": {
|
|
23632
|
+
"type": "string",
|
|
23633
|
+
"description": "ID of the page to import in"
|
|
23634
|
+
}
|
|
23635
|
+
},
|
|
23636
|
+
"required": [
|
|
23637
|
+
"space"
|
|
23638
|
+
]
|
|
23639
|
+
},
|
|
23640
|
+
"ContentImportRun": {
|
|
23641
|
+
"type": "object",
|
|
23642
|
+
"properties": {
|
|
23643
|
+
"object": {
|
|
23644
|
+
"description": "Type of Object, always equals to \"import-run\"",
|
|
23645
|
+
"type": "string",
|
|
23646
|
+
"enum": [
|
|
23647
|
+
"import-run"
|
|
23648
|
+
]
|
|
23649
|
+
},
|
|
23650
|
+
"id": {
|
|
23651
|
+
"description": "Unique ID of the import",
|
|
23652
|
+
"type": "string"
|
|
23653
|
+
},
|
|
23654
|
+
"startedAt": {
|
|
23655
|
+
"description": "Date when the import has started",
|
|
23656
|
+
"$ref": "#/components/schemas/Timestamp"
|
|
23657
|
+
},
|
|
23658
|
+
"completedAt": {
|
|
23659
|
+
"description": "Filled when the imported is in status \"completed\"",
|
|
23660
|
+
"$ref": "#/components/schemas/Timestamp"
|
|
23661
|
+
},
|
|
23662
|
+
"createdAt": {
|
|
23663
|
+
"description": "Date when the import was requested",
|
|
23664
|
+
"$ref": "#/components/schemas/Timestamp"
|
|
23665
|
+
},
|
|
23666
|
+
"updatedAt": {
|
|
23667
|
+
"description": "Date when the import was last updated",
|
|
23668
|
+
"$ref": "#/components/schemas/Timestamp"
|
|
23669
|
+
},
|
|
23670
|
+
"status": {
|
|
23671
|
+
"description": "Status of the import",
|
|
23672
|
+
"type": "string",
|
|
23673
|
+
"enum": [
|
|
23674
|
+
"pending",
|
|
23675
|
+
"in-progress",
|
|
23676
|
+
"completed",
|
|
23677
|
+
"failed",
|
|
23678
|
+
"cancelled"
|
|
23679
|
+
]
|
|
23680
|
+
},
|
|
23681
|
+
"reason": {
|
|
23682
|
+
"description": "Reason for the import failure when `status` is `failed`.",
|
|
23683
|
+
"type": "string"
|
|
23684
|
+
},
|
|
23685
|
+
"source": {
|
|
23686
|
+
"description": "Where the content is imported from.",
|
|
23687
|
+
"$ref": "#/components/schemas/ContentImportSource"
|
|
23688
|
+
},
|
|
23689
|
+
"target": {
|
|
23690
|
+
"description": "Where the content is imported into.",
|
|
23691
|
+
"$ref": "#/components/schemas/ContentImportTarget"
|
|
23692
|
+
},
|
|
23693
|
+
"site": {
|
|
23694
|
+
"description": "ID of the site the target space belongs to, when it belongs to exactly one.",
|
|
23695
|
+
"type": "string"
|
|
23696
|
+
},
|
|
23697
|
+
"createdBy": {
|
|
23698
|
+
"description": "ID of the user who started the import.",
|
|
23699
|
+
"type": "string"
|
|
23700
|
+
},
|
|
23701
|
+
"urls": {
|
|
23702
|
+
"type": "object",
|
|
23703
|
+
"description": "URLs associated with the object",
|
|
23704
|
+
"properties": {
|
|
23705
|
+
"location": {
|
|
23706
|
+
"description": "URL of the import run in the API",
|
|
23707
|
+
"type": "string",
|
|
23708
|
+
"format": "uri"
|
|
23709
|
+
}
|
|
23710
|
+
},
|
|
23711
|
+
"required": [
|
|
23712
|
+
"location"
|
|
23713
|
+
]
|
|
23714
|
+
},
|
|
23715
|
+
"pages": {
|
|
23716
|
+
"description": "Pages included in the import",
|
|
23717
|
+
"type": "array",
|
|
23718
|
+
"items": {
|
|
23719
|
+
"type": "object",
|
|
23720
|
+
"properties": {
|
|
23721
|
+
"id": {
|
|
23722
|
+
"description": "ID of page",
|
|
23723
|
+
"type": "string"
|
|
23724
|
+
},
|
|
23725
|
+
"sourceURL": {
|
|
23726
|
+
"description": "Source URL where the page has been imported from",
|
|
23727
|
+
"type": "string"
|
|
23728
|
+
},
|
|
23729
|
+
"type": {
|
|
23730
|
+
"description": "Type of page",
|
|
23731
|
+
"type": "string",
|
|
23732
|
+
"enum": [
|
|
23733
|
+
"page",
|
|
23734
|
+
"folder"
|
|
23735
|
+
]
|
|
23736
|
+
},
|
|
23737
|
+
"status": {
|
|
23738
|
+
"description": "Status of the page",
|
|
23739
|
+
"type": "string",
|
|
23740
|
+
"enum": [
|
|
23741
|
+
"complete",
|
|
23742
|
+
"pending"
|
|
23743
|
+
]
|
|
23744
|
+
}
|
|
23745
|
+
},
|
|
23746
|
+
"required": [
|
|
23747
|
+
"id",
|
|
23748
|
+
"type",
|
|
23749
|
+
"status"
|
|
23750
|
+
]
|
|
23751
|
+
}
|
|
23752
|
+
}
|
|
23753
|
+
},
|
|
23754
|
+
"required": [
|
|
23755
|
+
"id",
|
|
23756
|
+
"status"
|
|
23757
|
+
]
|
|
23758
|
+
},
|
|
22796
23759
|
"VisitorAuthCustomBackend": {
|
|
22797
23760
|
"type": "object",
|
|
22798
23761
|
"title": "Custom backend for authenticated access",
|
|
@@ -22926,7 +23889,7 @@
|
|
|
22926
23889
|
},
|
|
22927
23890
|
"type": {
|
|
22928
23891
|
"type": "string",
|
|
22929
|
-
"description": "Kind of space. Only set to `styleguide` for spaces holding a team's writing
|
|
23892
|
+
"description": "Kind of space. Only set to `styleguide` for spaces holding a team's writing style guide; omitted for regular spaces.",
|
|
22930
23893
|
"enum": [
|
|
22931
23894
|
"styleguide"
|
|
22932
23895
|
]
|
|
@@ -22982,6 +23945,13 @@
|
|
|
22982
23945
|
"gitSync": {
|
|
22983
23946
|
"$ref": "#/components/schemas/GitSyncState"
|
|
22984
23947
|
},
|
|
23948
|
+
"imports": {
|
|
23949
|
+
"description": "Import runs targeting this space, still running or ended recently, most recent first. Only returned when fetching a single space.\n",
|
|
23950
|
+
"type": "array",
|
|
23951
|
+
"items": {
|
|
23952
|
+
"$ref": "#/components/schemas/ContentImportRun"
|
|
23953
|
+
}
|
|
23954
|
+
},
|
|
22985
23955
|
"visitorAuth": {
|
|
22986
23956
|
"$ref": "#/components/schemas/VisitorAuth"
|
|
22987
23957
|
},
|
|
@@ -23370,12 +24340,21 @@
|
|
|
23370
24340
|
"title": {
|
|
23371
24341
|
"type": "string"
|
|
23372
24342
|
},
|
|
24343
|
+
"description": {
|
|
24344
|
+
"type": "string",
|
|
24345
|
+
"description": "Description of the page, suitable for presenting a page-root search destination."
|
|
24346
|
+
},
|
|
23373
24347
|
"path": {
|
|
23374
24348
|
"type": "string"
|
|
23375
24349
|
},
|
|
23376
24350
|
"score": {
|
|
23377
24351
|
"$ref": "#/components/schemas/SearchResultScore"
|
|
23378
24352
|
},
|
|
24353
|
+
"rank": {
|
|
24354
|
+
"type": "integer",
|
|
24355
|
+
"minimum": 1,
|
|
24356
|
+
"description": "One-based position in the globally ranked result set, preserved when results are paginated and grouped by space."
|
|
24357
|
+
},
|
|
23379
24358
|
"resultType": {
|
|
23380
24359
|
"type": "string",
|
|
23381
24360
|
"description": "Whether the page matched on its own fields (title, description) or on the content of one of its sections.",
|
|
@@ -23423,8 +24402,10 @@
|
|
|
23423
24402
|
"required": [
|
|
23424
24403
|
"id",
|
|
23425
24404
|
"title",
|
|
24405
|
+
"description",
|
|
23426
24406
|
"path",
|
|
23427
24407
|
"score",
|
|
24408
|
+
"rank",
|
|
23428
24409
|
"ancestors",
|
|
23429
24410
|
"urls"
|
|
23430
24411
|
]
|
|
@@ -29678,6 +30659,10 @@
|
|
|
29678
30659
|
"type": "object",
|
|
29679
30660
|
"description": "External link associated with a change request.",
|
|
29680
30661
|
"properties": {
|
|
30662
|
+
"id": {
|
|
30663
|
+
"type": "string",
|
|
30664
|
+
"description": "The ID of an existing link, as served on the change request. Pass it back to update that link; omit it to add a new one. Links created before links were stored individually have no ID and are matched on their URL instead."
|
|
30665
|
+
},
|
|
29681
30666
|
"ref": {
|
|
29682
30667
|
"$ref": "#/components/schemas/ContentRefURL"
|
|
29683
30668
|
},
|
|
@@ -29792,6 +30777,10 @@
|
|
|
29792
30777
|
{
|
|
29793
30778
|
"type": "object",
|
|
29794
30779
|
"properties": {
|
|
30780
|
+
"id": {
|
|
30781
|
+
"type": "string",
|
|
30782
|
+
"description": "The ID of the link. Absent on links not yet stored relationally."
|
|
30783
|
+
},
|
|
29795
30784
|
"expanded": {
|
|
29796
30785
|
"$ref": "#/components/schemas/ChangeRequestLinkExpanded",
|
|
29797
30786
|
"readOnly": true
|
|
@@ -29902,6 +30891,13 @@
|
|
|
29902
30891
|
"type": "boolean",
|
|
29903
30892
|
"description": "If true, the change request is not up-to-date with latest changes in the main content."
|
|
29904
30893
|
},
|
|
30894
|
+
"imports": {
|
|
30895
|
+
"description": "Import runs targeting this change request, still running or ended recently, most recent first. Only returned when fetching a single change request.\n",
|
|
30896
|
+
"type": "array",
|
|
30897
|
+
"items": {
|
|
30898
|
+
"$ref": "#/components/schemas/ContentImportRun"
|
|
30899
|
+
}
|
|
30900
|
+
},
|
|
29905
30901
|
"links": {
|
|
29906
30902
|
"$ref": "#/components/schemas/ChangeRequestLinks"
|
|
29907
30903
|
},
|
|
@@ -32458,7 +33454,7 @@
|
|
|
32458
33454
|
135001500,
|
|
32459
33455
|
240006000,
|
|
32460
33456
|
4200018000,
|
|
32461
|
-
|
|
33457
|
+
6000040000
|
|
32462
33458
|
]
|
|
32463
33459
|
},
|
|
32464
33460
|
"OrganizationBilling": {
|
|
@@ -32554,6 +33550,19 @@
|
|
|
32554
33550
|
"type": "null"
|
|
32555
33551
|
}
|
|
32556
33552
|
]
|
|
33553
|
+
},
|
|
33554
|
+
"aiCreditAlertThreshold": {
|
|
33555
|
+
"description": "Percentage of total AI credits remaining at which to send a low-balance alert, or null when the alert is disabled.",
|
|
33556
|
+
"oneOf": [
|
|
33557
|
+
{
|
|
33558
|
+
"type": "number",
|
|
33559
|
+
"minimum": 0,
|
|
33560
|
+
"maximum": 100
|
|
33561
|
+
},
|
|
33562
|
+
{
|
|
33563
|
+
"type": "null"
|
|
33564
|
+
}
|
|
33565
|
+
]
|
|
32557
33566
|
}
|
|
32558
33567
|
},
|
|
32559
33568
|
"required": [
|
|
@@ -32566,7 +33575,8 @@
|
|
|
32566
33575
|
"usageAddons",
|
|
32567
33576
|
"canChangeInterval",
|
|
32568
33577
|
"canUseSAML",
|
|
32569
|
-
"creditsBundle"
|
|
33578
|
+
"creditsBundle",
|
|
33579
|
+
"aiCreditAlertThreshold"
|
|
32570
33580
|
]
|
|
32571
33581
|
},
|
|
32572
33582
|
"BillingTrialStatus": {
|
|
@@ -32648,6 +33658,10 @@
|
|
|
32648
33658
|
"description": "If true, invite links are enabled for this organization.",
|
|
32649
33659
|
"type": "boolean"
|
|
32650
33660
|
},
|
|
33661
|
+
"auditLogs": {
|
|
33662
|
+
"description": "Whether audit logs can currently be accessed for this organization.",
|
|
33663
|
+
"type": "boolean"
|
|
33664
|
+
},
|
|
32651
33665
|
"plan": {
|
|
32652
33666
|
"$ref": "#/components/schemas/BillingProduct"
|
|
32653
33667
|
},
|
|
@@ -34985,12 +35999,14 @@
|
|
|
34985
35999
|
"sites-ai-search",
|
|
34986
36000
|
"sites-ai-assistant",
|
|
34987
36001
|
"sites-ai-insights",
|
|
36002
|
+
"sites-fix-broken-links",
|
|
34988
36003
|
"sites-connections",
|
|
34989
36004
|
"sites-content-gaps",
|
|
34990
36005
|
"sites-channels",
|
|
34991
36006
|
"sites-embed",
|
|
34992
36007
|
"sites-api-playground",
|
|
34993
36008
|
"sites-basic-customization",
|
|
36009
|
+
"sites-broken-links",
|
|
34994
36010
|
"sites-custom-domain",
|
|
34995
36011
|
"sites-custom-fonts",
|
|
34996
36012
|
"sites-custom-subdirectory",
|
|
@@ -35116,6 +36132,14 @@
|
|
|
35116
36132
|
"type": "boolean",
|
|
35117
36133
|
"description": "Can the user access the site in the application."
|
|
35118
36134
|
},
|
|
36135
|
+
"edit": {
|
|
36136
|
+
"type": "boolean",
|
|
36137
|
+
"description": "Can the user edit content associated with the site."
|
|
36138
|
+
},
|
|
36139
|
+
"create": {
|
|
36140
|
+
"type": "boolean",
|
|
36141
|
+
"description": "Can the user create content in the site."
|
|
36142
|
+
},
|
|
35119
36143
|
"admin": {
|
|
35120
36144
|
"type": "boolean",
|
|
35121
36145
|
"description": "Can the user edit the site and manage its settings."
|
|
@@ -35136,6 +36160,8 @@
|
|
|
35136
36160
|
"required": [
|
|
35137
36161
|
"view",
|
|
35138
36162
|
"access",
|
|
36163
|
+
"edit",
|
|
36164
|
+
"create",
|
|
35139
36165
|
"admin",
|
|
35140
36166
|
"installIntegration",
|
|
35141
36167
|
"viewAdaptiveSchema",
|
|
@@ -35169,7 +36195,7 @@
|
|
|
35169
36195
|
},
|
|
35170
36196
|
"styleguide": {
|
|
35171
36197
|
"$ref": "#/components/schemas/ContentRefSpace",
|
|
35172
|
-
"description": "Reference to a GitBook space holding the team's writing
|
|
36198
|
+
"description": "Reference to a GitBook space holding the team's writing style guide.\nWhen present on a site, the editing agent receives the style guide\ntable of contents in its system prompt and can fetch sections on\ndemand to check edits against the rules.\n"
|
|
35173
36199
|
},
|
|
35174
36200
|
"features": {
|
|
35175
36201
|
"description": "A list of all premium features enabled on this site. For each feature we list the plan they belong to and whether the feature is frozen. A frozen feature is still enabled but cannot be changed or modified.\n",
|
|
@@ -37080,16 +38106,193 @@
|
|
|
37080
38106
|
"deletedSpaces"
|
|
37081
38107
|
]
|
|
37082
38108
|
},
|
|
38109
|
+
"AuditEventAction": {
|
|
38110
|
+
"type": "object",
|
|
38111
|
+
"properties": {
|
|
38112
|
+
"object": {
|
|
38113
|
+
"type": "string",
|
|
38114
|
+
"enum": [
|
|
38115
|
+
"audit-event-action"
|
|
38116
|
+
]
|
|
38117
|
+
},
|
|
38118
|
+
"id": {
|
|
38119
|
+
"type": "string",
|
|
38120
|
+
"description": "Stable action identifier stored on audit events."
|
|
38121
|
+
},
|
|
38122
|
+
"label": {
|
|
38123
|
+
"type": "string",
|
|
38124
|
+
"description": "Human-readable label for the action."
|
|
38125
|
+
}
|
|
38126
|
+
},
|
|
38127
|
+
"required": [
|
|
38128
|
+
"object",
|
|
38129
|
+
"id",
|
|
38130
|
+
"label"
|
|
38131
|
+
]
|
|
38132
|
+
},
|
|
38133
|
+
"AuditEventActor": {
|
|
38134
|
+
"type": "object",
|
|
38135
|
+
"properties": {
|
|
38136
|
+
"type": {
|
|
38137
|
+
"type": "string",
|
|
38138
|
+
"enum": [
|
|
38139
|
+
"user",
|
|
38140
|
+
"integration",
|
|
38141
|
+
"installation",
|
|
38142
|
+
"system",
|
|
38143
|
+
"support"
|
|
38144
|
+
],
|
|
38145
|
+
"description": "Kind of actor that initiated the change."
|
|
38146
|
+
},
|
|
38147
|
+
"id": {
|
|
38148
|
+
"type": "string",
|
|
38149
|
+
"description": "Stable identifier of the actor."
|
|
38150
|
+
},
|
|
38151
|
+
"label": {
|
|
38152
|
+
"type": "string",
|
|
38153
|
+
"description": "Display label captured when the event was recorded."
|
|
38154
|
+
}
|
|
38155
|
+
},
|
|
38156
|
+
"required": [
|
|
38157
|
+
"type",
|
|
38158
|
+
"id"
|
|
38159
|
+
]
|
|
38160
|
+
},
|
|
38161
|
+
"AuditEventTarget": {
|
|
38162
|
+
"type": "object",
|
|
38163
|
+
"properties": {
|
|
38164
|
+
"type": {
|
|
38165
|
+
"type": "string",
|
|
38166
|
+
"description": "Kind of resource affected by the change."
|
|
38167
|
+
},
|
|
38168
|
+
"id": {
|
|
38169
|
+
"type": "string",
|
|
38170
|
+
"description": "Stable identifier of the affected resource."
|
|
38171
|
+
},
|
|
38172
|
+
"label": {
|
|
38173
|
+
"type": "string",
|
|
38174
|
+
"description": "Display label captured when the event was recorded."
|
|
38175
|
+
}
|
|
38176
|
+
},
|
|
38177
|
+
"required": [
|
|
38178
|
+
"type",
|
|
38179
|
+
"id"
|
|
38180
|
+
]
|
|
38181
|
+
},
|
|
38182
|
+
"AuditEvent": {
|
|
38183
|
+
"type": "object",
|
|
38184
|
+
"properties": {
|
|
38185
|
+
"object": {
|
|
38186
|
+
"type": "string",
|
|
38187
|
+
"enum": [
|
|
38188
|
+
"audit-event"
|
|
38189
|
+
]
|
|
38190
|
+
},
|
|
38191
|
+
"id": {
|
|
38192
|
+
"type": "string",
|
|
38193
|
+
"format": "uuid",
|
|
38194
|
+
"description": "Unique identifier of the audit event."
|
|
38195
|
+
},
|
|
38196
|
+
"occurredAt": {
|
|
38197
|
+
"$ref": "#/components/schemas/Timestamp"
|
|
38198
|
+
},
|
|
38199
|
+
"action": {
|
|
38200
|
+
"type": "string",
|
|
38201
|
+
"description": "Stable action name describing the recorded change."
|
|
38202
|
+
},
|
|
38203
|
+
"actor": {
|
|
38204
|
+
"$ref": "#/components/schemas/AuditEventActor"
|
|
38205
|
+
},
|
|
38206
|
+
"source": {
|
|
38207
|
+
"type": "string",
|
|
38208
|
+
"enum": [
|
|
38209
|
+
"ui",
|
|
38210
|
+
"api",
|
|
38211
|
+
"integration",
|
|
38212
|
+
"webhook",
|
|
38213
|
+
"workflow",
|
|
38214
|
+
"script",
|
|
38215
|
+
"support"
|
|
38216
|
+
],
|
|
38217
|
+
"description": "Entry point that initiated the change."
|
|
38218
|
+
},
|
|
38219
|
+
"target": {
|
|
38220
|
+
"$ref": "#/components/schemas/AuditEventTarget"
|
|
38221
|
+
},
|
|
38222
|
+
"urls": {
|
|
38223
|
+
"type": "object",
|
|
38224
|
+
"properties": {
|
|
38225
|
+
"location": {
|
|
38226
|
+
"type": "string",
|
|
38227
|
+
"format": "uri",
|
|
38228
|
+
"description": "URL of the audit event in the API."
|
|
38229
|
+
}
|
|
38230
|
+
},
|
|
38231
|
+
"required": [
|
|
38232
|
+
"location"
|
|
38233
|
+
]
|
|
38234
|
+
}
|
|
38235
|
+
},
|
|
38236
|
+
"required": [
|
|
38237
|
+
"object",
|
|
38238
|
+
"id",
|
|
38239
|
+
"occurredAt",
|
|
38240
|
+
"action",
|
|
38241
|
+
"actor",
|
|
38242
|
+
"source",
|
|
38243
|
+
"target",
|
|
38244
|
+
"urls"
|
|
38245
|
+
]
|
|
38246
|
+
},
|
|
38247
|
+
"AuditEventDetails": {
|
|
38248
|
+
"allOf": [
|
|
38249
|
+
{
|
|
38250
|
+
"$ref": "#/components/schemas/AuditEvent"
|
|
38251
|
+
},
|
|
38252
|
+
{
|
|
38253
|
+
"type": "object",
|
|
38254
|
+
"properties": {
|
|
38255
|
+
"executionId": {
|
|
38256
|
+
"type": "string",
|
|
38257
|
+
"description": "Identifier of the operation that recorded the event."
|
|
38258
|
+
},
|
|
38259
|
+
"correlationId": {
|
|
38260
|
+
"type": "string",
|
|
38261
|
+
"description": "Identifier shared by events produced by the same user action."
|
|
38262
|
+
},
|
|
38263
|
+
"causedByEventId": {
|
|
38264
|
+
"type": "string",
|
|
38265
|
+
"format": "uuid",
|
|
38266
|
+
"description": "Audit event that caused this later system effect."
|
|
38267
|
+
},
|
|
38268
|
+
"schemaVersion": {
|
|
38269
|
+
"type": "integer",
|
|
38270
|
+
"minimum": 1,
|
|
38271
|
+
"description": "Version of the action payload schema."
|
|
38272
|
+
},
|
|
38273
|
+
"payload": {
|
|
38274
|
+
"type": "object",
|
|
38275
|
+
"additionalProperties": true,
|
|
38276
|
+
"description": "Allowlisted details specific to the action."
|
|
38277
|
+
}
|
|
38278
|
+
},
|
|
38279
|
+
"required": [
|
|
38280
|
+
"schemaVersion",
|
|
38281
|
+
"payload"
|
|
38282
|
+
]
|
|
38283
|
+
}
|
|
38284
|
+
]
|
|
38285
|
+
},
|
|
37083
38286
|
"OrganizationStyleguide": {
|
|
37084
38287
|
"type": "object",
|
|
37085
|
-
"description": "A
|
|
38288
|
+
"description": "A style guide space and all the sites referencing it.",
|
|
37086
38289
|
"properties": {
|
|
37087
38290
|
"space": {
|
|
37088
38291
|
"$ref": "#/components/schemas/Space"
|
|
37089
38292
|
},
|
|
37090
38293
|
"sites": {
|
|
37091
38294
|
"type": "array",
|
|
37092
|
-
"description": "Sites in the organization that reference this
|
|
38295
|
+
"description": "Sites in the organization that reference this style guide.",
|
|
37093
38296
|
"items": {
|
|
37094
38297
|
"$ref": "#/components/schemas/Site"
|
|
37095
38298
|
}
|
|
@@ -37116,11 +38319,11 @@
|
|
|
37116
38319
|
},
|
|
37117
38320
|
"StyleguideTemplate": {
|
|
37118
38321
|
"type": "object",
|
|
37119
|
-
"description": "A built-in
|
|
38322
|
+
"description": "A built-in style guide starter template used to seed and preview a style guide.",
|
|
37120
38323
|
"properties": {
|
|
37121
38324
|
"id": {
|
|
37122
38325
|
"type": "string",
|
|
37123
|
-
"description": "Identifier of the template, passed to createSiteStyleguideById to seed a
|
|
38326
|
+
"description": "Identifier of the template, passed to createSiteStyleguideById to seed a style guide from it."
|
|
37124
38327
|
},
|
|
37125
38328
|
"title": {
|
|
37126
38329
|
"type": "string",
|
|
@@ -38351,12 +39554,72 @@
|
|
|
38351
39554
|
}
|
|
38352
39555
|
]
|
|
38353
39556
|
},
|
|
39557
|
+
"InstalledIntegrationTarget": {
|
|
39558
|
+
"description": "The resource on which an integration is installed.",
|
|
39559
|
+
"oneOf": [
|
|
39560
|
+
{
|
|
39561
|
+
"type": "object",
|
|
39562
|
+
"required": [
|
|
39563
|
+
"type",
|
|
39564
|
+
"organizationId"
|
|
39565
|
+
],
|
|
39566
|
+
"properties": {
|
|
39567
|
+
"type": {
|
|
39568
|
+
"type": "string",
|
|
39569
|
+
"enum": [
|
|
39570
|
+
"organization"
|
|
39571
|
+
]
|
|
39572
|
+
},
|
|
39573
|
+
"organizationId": {
|
|
39574
|
+
"type": "string"
|
|
39575
|
+
}
|
|
39576
|
+
}
|
|
39577
|
+
},
|
|
39578
|
+
{
|
|
39579
|
+
"type": "object",
|
|
39580
|
+
"required": [
|
|
39581
|
+
"type",
|
|
39582
|
+
"siteId"
|
|
39583
|
+
],
|
|
39584
|
+
"properties": {
|
|
39585
|
+
"type": {
|
|
39586
|
+
"type": "string",
|
|
39587
|
+
"enum": [
|
|
39588
|
+
"site"
|
|
39589
|
+
]
|
|
39590
|
+
},
|
|
39591
|
+
"siteId": {
|
|
39592
|
+
"type": "string"
|
|
39593
|
+
}
|
|
39594
|
+
}
|
|
39595
|
+
},
|
|
39596
|
+
{
|
|
39597
|
+
"type": "object",
|
|
39598
|
+
"required": [
|
|
39599
|
+
"type",
|
|
39600
|
+
"spaceId"
|
|
39601
|
+
],
|
|
39602
|
+
"properties": {
|
|
39603
|
+
"type": {
|
|
39604
|
+
"type": "string",
|
|
39605
|
+
"enum": [
|
|
39606
|
+
"space"
|
|
39607
|
+
]
|
|
39608
|
+
},
|
|
39609
|
+
"spaceId": {
|
|
39610
|
+
"type": "string"
|
|
39611
|
+
}
|
|
39612
|
+
}
|
|
39613
|
+
}
|
|
39614
|
+
]
|
|
39615
|
+
},
|
|
38354
39616
|
"InstalledIntegration": {
|
|
38355
39617
|
"type": "object",
|
|
38356
|
-
"description": "An
|
|
39618
|
+
"description": "An integration installation, its current status, and the resource it targets.",
|
|
38357
39619
|
"required": [
|
|
38358
39620
|
"status",
|
|
38359
|
-
"integration"
|
|
39621
|
+
"integration",
|
|
39622
|
+
"target"
|
|
38360
39623
|
],
|
|
38361
39624
|
"properties": {
|
|
38362
39625
|
"status": {
|
|
@@ -38364,6 +39627,9 @@
|
|
|
38364
39627
|
},
|
|
38365
39628
|
"integration": {
|
|
38366
39629
|
"$ref": "#/components/schemas/Integration"
|
|
39630
|
+
},
|
|
39631
|
+
"target": {
|
|
39632
|
+
"$ref": "#/components/schemas/InstalledIntegrationTarget"
|
|
38367
39633
|
}
|
|
38368
39634
|
}
|
|
38369
39635
|
},
|
|
@@ -39524,7 +40790,8 @@
|
|
|
39524
40790
|
"type": "string",
|
|
39525
40791
|
"enum": [
|
|
39526
40792
|
"customization_font",
|
|
39527
|
-
"import_file"
|
|
40793
|
+
"import_file",
|
|
40794
|
+
"organization_file"
|
|
39528
40795
|
]
|
|
39529
40796
|
},
|
|
39530
40797
|
"StorageUploadURL": {
|
|
@@ -39671,146 +40938,6 @@
|
|
|
39671
40938
|
"minLength": 1,
|
|
39672
40939
|
"maxLength": 512
|
|
39673
40940
|
},
|
|
39674
|
-
"ContentImportSource": {
|
|
39675
|
-
"oneOf": [
|
|
39676
|
-
{
|
|
39677
|
-
"type": "object",
|
|
39678
|
-
"properties": {
|
|
39679
|
-
"type": {
|
|
39680
|
-
"type": "string",
|
|
39681
|
-
"enum": [
|
|
39682
|
-
"website"
|
|
39683
|
-
]
|
|
39684
|
-
},
|
|
39685
|
-
"url": {
|
|
39686
|
-
"$ref": "#/components/schemas/URL"
|
|
39687
|
-
}
|
|
39688
|
-
},
|
|
39689
|
-
"required": [
|
|
39690
|
-
"type",
|
|
39691
|
-
"url"
|
|
39692
|
-
]
|
|
39693
|
-
},
|
|
39694
|
-
{
|
|
39695
|
-
"type": "object",
|
|
39696
|
-
"properties": {
|
|
39697
|
-
"type": {
|
|
39698
|
-
"type": "string",
|
|
39699
|
-
"enum": [
|
|
39700
|
-
"file"
|
|
39701
|
-
]
|
|
39702
|
-
},
|
|
39703
|
-
"files": {
|
|
39704
|
-
"description": "Files to import",
|
|
39705
|
-
"type": "array",
|
|
39706
|
-
"maxItems": 50,
|
|
39707
|
-
"items": {
|
|
39708
|
-
"description": "Key of file",
|
|
39709
|
-
"type": "string"
|
|
39710
|
-
}
|
|
39711
|
-
}
|
|
39712
|
-
},
|
|
39713
|
-
"required": [
|
|
39714
|
-
"type",
|
|
39715
|
-
"files"
|
|
39716
|
-
]
|
|
39717
|
-
}
|
|
39718
|
-
]
|
|
39719
|
-
},
|
|
39720
|
-
"ContentImportTarget": {
|
|
39721
|
-
"type": "object",
|
|
39722
|
-
"properties": {
|
|
39723
|
-
"space": {
|
|
39724
|
-
"type": "string",
|
|
39725
|
-
"description": "ID of the space to import in"
|
|
39726
|
-
},
|
|
39727
|
-
"changeRequest": {
|
|
39728
|
-
"type": "string",
|
|
39729
|
-
"description": "ID of the change request to import in"
|
|
39730
|
-
},
|
|
39731
|
-
"page": {
|
|
39732
|
-
"type": "string",
|
|
39733
|
-
"description": "ID of the page to import in"
|
|
39734
|
-
}
|
|
39735
|
-
},
|
|
39736
|
-
"required": [
|
|
39737
|
-
"space"
|
|
39738
|
-
]
|
|
39739
|
-
},
|
|
39740
|
-
"ContentImportRun": {
|
|
39741
|
-
"type": "object",
|
|
39742
|
-
"properties": {
|
|
39743
|
-
"id": {
|
|
39744
|
-
"description": "Unique ID of the import",
|
|
39745
|
-
"type": "string"
|
|
39746
|
-
},
|
|
39747
|
-
"startedAt": {
|
|
39748
|
-
"description": "Date when the import has started",
|
|
39749
|
-
"$ref": "#/components/schemas/Timestamp"
|
|
39750
|
-
},
|
|
39751
|
-
"completedAt": {
|
|
39752
|
-
"description": "Filled when the imported is in status \"completed\"",
|
|
39753
|
-
"$ref": "#/components/schemas/Timestamp"
|
|
39754
|
-
},
|
|
39755
|
-
"status": {
|
|
39756
|
-
"description": "Status of the import",
|
|
39757
|
-
"type": "string",
|
|
39758
|
-
"enum": [
|
|
39759
|
-
"pending",
|
|
39760
|
-
"in-progress",
|
|
39761
|
-
"completed",
|
|
39762
|
-
"failed",
|
|
39763
|
-
"cancelled"
|
|
39764
|
-
]
|
|
39765
|
-
},
|
|
39766
|
-
"reason": {
|
|
39767
|
-
"description": "Reason for the import failure when `status` is `failed`.",
|
|
39768
|
-
"type": "string"
|
|
39769
|
-
},
|
|
39770
|
-
"pages": {
|
|
39771
|
-
"description": "Pages included in the import",
|
|
39772
|
-
"type": "array",
|
|
39773
|
-
"items": {
|
|
39774
|
-
"type": "object",
|
|
39775
|
-
"properties": {
|
|
39776
|
-
"id": {
|
|
39777
|
-
"description": "ID of page",
|
|
39778
|
-
"type": "string"
|
|
39779
|
-
},
|
|
39780
|
-
"sourceURL": {
|
|
39781
|
-
"description": "Source URL where the page has been imported from",
|
|
39782
|
-
"type": "string"
|
|
39783
|
-
},
|
|
39784
|
-
"type": {
|
|
39785
|
-
"description": "Type of page",
|
|
39786
|
-
"type": "string",
|
|
39787
|
-
"enum": [
|
|
39788
|
-
"page",
|
|
39789
|
-
"folder"
|
|
39790
|
-
]
|
|
39791
|
-
},
|
|
39792
|
-
"status": {
|
|
39793
|
-
"description": "Status of the page",
|
|
39794
|
-
"type": "string",
|
|
39795
|
-
"enum": [
|
|
39796
|
-
"complete",
|
|
39797
|
-
"pending"
|
|
39798
|
-
]
|
|
39799
|
-
}
|
|
39800
|
-
},
|
|
39801
|
-
"required": [
|
|
39802
|
-
"id",
|
|
39803
|
-
"type",
|
|
39804
|
-
"status"
|
|
39805
|
-
]
|
|
39806
|
-
}
|
|
39807
|
-
}
|
|
39808
|
-
},
|
|
39809
|
-
"required": [
|
|
39810
|
-
"id",
|
|
39811
|
-
"status"
|
|
39812
|
-
]
|
|
39813
|
-
},
|
|
39814
40941
|
"SitePublishOperationPreviewResponse": {
|
|
39815
40942
|
"description": "A response to a request to preview the publishing of a site. It indicates whether the operation can proceed immediately, requires checkout, if a trial is available or if a trial extension is available.\n",
|
|
39816
40943
|
"oneOf": [
|
|
@@ -40695,6 +41822,20 @@
|
|
|
40695
41822
|
}
|
|
40696
41823
|
]
|
|
40697
41824
|
},
|
|
41825
|
+
"CustomizationHeadingFont": {
|
|
41826
|
+
"description": "Font used for headings. `null` means headings use the main font (`styling.font`).",
|
|
41827
|
+
"oneOf": [
|
|
41828
|
+
{
|
|
41829
|
+
"$ref": "#/components/schemas/CustomizationDefaultFont"
|
|
41830
|
+
},
|
|
41831
|
+
{
|
|
41832
|
+
"$ref": "#/components/schemas/CustomizationFontDefinitionInput"
|
|
41833
|
+
},
|
|
41834
|
+
{
|
|
41835
|
+
"type": "null"
|
|
41836
|
+
}
|
|
41837
|
+
]
|
|
41838
|
+
},
|
|
40698
41839
|
"CustomizationDefaultMonospaceFont": {
|
|
40699
41840
|
"type": "string",
|
|
40700
41841
|
"enum": [
|
|
@@ -41043,6 +42184,11 @@
|
|
|
41043
42184
|
"assistant"
|
|
41044
42185
|
]
|
|
41045
42186
|
},
|
|
42187
|
+
"CustomizationAIGreeting": {
|
|
42188
|
+
"type": "string",
|
|
42189
|
+
"description": "Initial greeting displayed by the AI Assistant when a visitor starts a conversation.",
|
|
42190
|
+
"maxLength": 256
|
|
42191
|
+
},
|
|
41046
42192
|
"CustomizationSuggestedQuestion": {
|
|
41047
42193
|
"type": "string",
|
|
41048
42194
|
"minLength": 3,
|
|
@@ -41195,6 +42341,9 @@
|
|
|
41195
42341
|
"font": {
|
|
41196
42342
|
"$ref": "#/components/schemas/CustomizationFont"
|
|
41197
42343
|
},
|
|
42344
|
+
"headingFont": {
|
|
42345
|
+
"$ref": "#/components/schemas/CustomizationHeadingFont"
|
|
42346
|
+
},
|
|
41198
42347
|
"monospaceFont": {
|
|
41199
42348
|
"$ref": "#/components/schemas/CustomizationMonospaceFont"
|
|
41200
42349
|
},
|
|
@@ -41367,6 +42516,12 @@
|
|
|
41367
42516
|
"mode": {
|
|
41368
42517
|
"$ref": "#/components/schemas/CustomizationAIMode"
|
|
41369
42518
|
},
|
|
42519
|
+
"greeting": {
|
|
42520
|
+
"$ref": "#/components/schemas/CustomizationAIGreeting"
|
|
42521
|
+
},
|
|
42522
|
+
"localizedGreeting": {
|
|
42523
|
+
"$ref": "#/components/schemas/LocalizedString128"
|
|
42524
|
+
},
|
|
41370
42525
|
"suggestions": {
|
|
41371
42526
|
"$ref": "#/components/schemas/CustomizationSuggestedQuestions"
|
|
41372
42527
|
},
|
|
@@ -41979,6 +43134,14 @@
|
|
|
41979
43134
|
"maxLength": 1024,
|
|
41980
43135
|
"description": "The end goal the agent is trying to accomplish on behalf of the user. Unlike the immediate query, the goal describes the broader task or outcome the agent is working towards."
|
|
41981
43136
|
},
|
|
43137
|
+
"AgentFeedbackSource": {
|
|
43138
|
+
"type": "string",
|
|
43139
|
+
"description": "The surface the agent was running on when it submitted the feedback: the MCP server exposed by the site, or the site assistant.",
|
|
43140
|
+
"enum": [
|
|
43141
|
+
"mcp",
|
|
43142
|
+
"assistant"
|
|
43143
|
+
]
|
|
43144
|
+
},
|
|
41982
43145
|
"SiteInsightsSession": {
|
|
41983
43146
|
"type": "object",
|
|
41984
43147
|
"description": "Identifiers for a GitBook site session, used for analytics and adaptive content.",
|
|
@@ -42277,11 +43440,12 @@
|
|
|
42277
43440
|
},
|
|
42278
43441
|
"SiteFindingType": {
|
|
42279
43442
|
"type": "string",
|
|
42280
|
-
"description": "Classification of a site finding:\n - Outdated content: The content was correct but is no longer up to date with external context and may be misleading or incorrect.\n - Incorrect content: The content is factually wrong or misleading, leading users astray regardless of whether it was ever correct.\n - Content gap: The content is missing important information that should be present to answer user questions effectively.\n - Other: Any other type of finding not covered by the above categories.",
|
|
43443
|
+
"description": "Classification of a site finding:\n - Outdated content: The content was correct but is no longer up to date with external context and may be misleading or incorrect.\n - Incorrect content: The content is factually wrong or misleading, leading users astray regardless of whether it was ever correct.\n - Content gap: The content is missing important information that should be present to answer user questions effectively.\n - Broken link: A URL on the site returns a 404, and can be resolved by creating a redirect or a new page.\n - Other: Any other type of finding not covered by the above categories.",
|
|
42281
43444
|
"enum": [
|
|
42282
43445
|
"content-outdated",
|
|
42283
43446
|
"content-incorrect",
|
|
42284
43447
|
"content-gap",
|
|
43448
|
+
"broken-link",
|
|
42285
43449
|
"other"
|
|
42286
43450
|
]
|
|
42287
43451
|
},
|
|
@@ -42321,6 +43485,162 @@
|
|
|
42321
43485
|
"description": "Short finding title",
|
|
42322
43486
|
"maxLength": 256
|
|
42323
43487
|
},
|
|
43488
|
+
"SiteRedirectSourcePath": {
|
|
43489
|
+
"type": "string",
|
|
43490
|
+
"description": "The source path to redirect from.",
|
|
43491
|
+
"maxLength": 512,
|
|
43492
|
+
"pattern": "^\\/(?!\\*)(?!.*\\*.+)(?:[A-Za-z0-9\\-._~+]|%[0-9A-Fa-f]{2})+(?:\\/(?:[A-Za-z0-9\\-._~+]|%[0-9A-Fa-f]{2})+)*(?:\\/\\*|\\*)?$"
|
|
43493
|
+
},
|
|
43494
|
+
"SiteRedirectDestinationSiteSection": {
|
|
43495
|
+
"type": "object",
|
|
43496
|
+
"properties": {
|
|
43497
|
+
"kind": {
|
|
43498
|
+
"type": "string",
|
|
43499
|
+
"enum": [
|
|
43500
|
+
"site-section"
|
|
43501
|
+
]
|
|
43502
|
+
},
|
|
43503
|
+
"siteSectionId": {
|
|
43504
|
+
"type": "string",
|
|
43505
|
+
"description": "Unique identifier for the site section to redirect to"
|
|
43506
|
+
}
|
|
43507
|
+
},
|
|
43508
|
+
"required": [
|
|
43509
|
+
"kind",
|
|
43510
|
+
"siteSectionId"
|
|
43511
|
+
]
|
|
43512
|
+
},
|
|
43513
|
+
"SiteRedirectDestinationSiteSpace": {
|
|
43514
|
+
"type": "object",
|
|
43515
|
+
"properties": {
|
|
43516
|
+
"kind": {
|
|
43517
|
+
"type": "string",
|
|
43518
|
+
"enum": [
|
|
43519
|
+
"site-space"
|
|
43520
|
+
]
|
|
43521
|
+
},
|
|
43522
|
+
"siteSpaceId": {
|
|
43523
|
+
"type": "string",
|
|
43524
|
+
"description": "Unique identifier for the site space to redirect to"
|
|
43525
|
+
}
|
|
43526
|
+
},
|
|
43527
|
+
"required": [
|
|
43528
|
+
"kind",
|
|
43529
|
+
"siteSpaceId"
|
|
43530
|
+
]
|
|
43531
|
+
},
|
|
43532
|
+
"SiteRedirectDestinationPage": {
|
|
43533
|
+
"type": "object",
|
|
43534
|
+
"properties": {
|
|
43535
|
+
"kind": {
|
|
43536
|
+
"type": "string",
|
|
43537
|
+
"enum": [
|
|
43538
|
+
"site-page"
|
|
43539
|
+
]
|
|
43540
|
+
},
|
|
43541
|
+
"siteSpaceId": {
|
|
43542
|
+
"type": "string",
|
|
43543
|
+
"description": "Unique identifier for the site space of the page"
|
|
43544
|
+
},
|
|
43545
|
+
"pageId": {
|
|
43546
|
+
"type": "string",
|
|
43547
|
+
"description": "Unique identifier for the page within the site space to redirect to"
|
|
43548
|
+
}
|
|
43549
|
+
},
|
|
43550
|
+
"required": [
|
|
43551
|
+
"kind",
|
|
43552
|
+
"siteSpaceId",
|
|
43553
|
+
"pageId"
|
|
43554
|
+
]
|
|
43555
|
+
},
|
|
43556
|
+
"SiteRedirectDestinationExternal": {
|
|
43557
|
+
"type": "object",
|
|
43558
|
+
"properties": {
|
|
43559
|
+
"kind": {
|
|
43560
|
+
"type": "string",
|
|
43561
|
+
"enum": [
|
|
43562
|
+
"external"
|
|
43563
|
+
]
|
|
43564
|
+
},
|
|
43565
|
+
"url": {
|
|
43566
|
+
"$ref": "#/components/schemas/URL"
|
|
43567
|
+
}
|
|
43568
|
+
},
|
|
43569
|
+
"required": [
|
|
43570
|
+
"kind",
|
|
43571
|
+
"url"
|
|
43572
|
+
]
|
|
43573
|
+
},
|
|
43574
|
+
"SiteRedirectDestination": {
|
|
43575
|
+
"oneOf": [
|
|
43576
|
+
{
|
|
43577
|
+
"$ref": "#/components/schemas/SiteRedirectDestinationSiteSection"
|
|
43578
|
+
},
|
|
43579
|
+
{
|
|
43580
|
+
"$ref": "#/components/schemas/SiteRedirectDestinationSiteSpace"
|
|
43581
|
+
},
|
|
43582
|
+
{
|
|
43583
|
+
"$ref": "#/components/schemas/SiteRedirectDestinationPage"
|
|
43584
|
+
},
|
|
43585
|
+
{
|
|
43586
|
+
"$ref": "#/components/schemas/SiteRedirectDestinationExternal"
|
|
43587
|
+
}
|
|
43588
|
+
]
|
|
43589
|
+
},
|
|
43590
|
+
"SiteRedirectInputDestinationPath": {
|
|
43591
|
+
"type": "object",
|
|
43592
|
+
"properties": {
|
|
43593
|
+
"kind": {
|
|
43594
|
+
"type": "string",
|
|
43595
|
+
"enum": [
|
|
43596
|
+
"path"
|
|
43597
|
+
]
|
|
43598
|
+
},
|
|
43599
|
+
"spaceId": {
|
|
43600
|
+
"type": "string",
|
|
43601
|
+
"description": "Unique identifier for the space containing the page referenced by the path."
|
|
43602
|
+
},
|
|
43603
|
+
"path": {
|
|
43604
|
+
"type": "string",
|
|
43605
|
+
"description": "Path to the page within the space revision to resolve."
|
|
43606
|
+
}
|
|
43607
|
+
},
|
|
43608
|
+
"required": [
|
|
43609
|
+
"kind",
|
|
43610
|
+
"spaceId",
|
|
43611
|
+
"path"
|
|
43612
|
+
]
|
|
43613
|
+
},
|
|
43614
|
+
"SiteRedirectInputDestination": {
|
|
43615
|
+
"oneOf": [
|
|
43616
|
+
{
|
|
43617
|
+
"$ref": "#/components/schemas/SiteRedirectDestination"
|
|
43618
|
+
},
|
|
43619
|
+
{
|
|
43620
|
+
"$ref": "#/components/schemas/SiteRedirectInputDestinationPath"
|
|
43621
|
+
}
|
|
43622
|
+
]
|
|
43623
|
+
},
|
|
43624
|
+
"SiteFindingBrokenLinkAction": {
|
|
43625
|
+
"type": "object",
|
|
43626
|
+
"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).",
|
|
43627
|
+
"properties": {
|
|
43628
|
+
"source": {
|
|
43629
|
+
"$ref": "#/components/schemas/SiteRedirectSourcePath"
|
|
43630
|
+
},
|
|
43631
|
+
"captureWildcard": {
|
|
43632
|
+
"type": "boolean",
|
|
43633
|
+
"description": "Whether the redirect appends the wildcard-matched suffix of the source path to the destination."
|
|
43634
|
+
},
|
|
43635
|
+
"destination": {
|
|
43636
|
+
"$ref": "#/components/schemas/SiteRedirectInputDestination"
|
|
43637
|
+
}
|
|
43638
|
+
},
|
|
43639
|
+
"required": [
|
|
43640
|
+
"source",
|
|
43641
|
+
"destination"
|
|
43642
|
+
]
|
|
43643
|
+
},
|
|
42324
43644
|
"SiteFinding": {
|
|
42325
43645
|
"type": "object",
|
|
42326
43646
|
"properties": {
|
|
@@ -42380,6 +43700,9 @@
|
|
|
42380
43700
|
"type": "boolean",
|
|
42381
43701
|
"description": "Whether an AI agent should be able to fix this finding directly"
|
|
42382
43702
|
},
|
|
43703
|
+
"brokenLinkAction": {
|
|
43704
|
+
"$ref": "#/components/schemas/SiteFindingBrokenLinkAction"
|
|
43705
|
+
},
|
|
42383
43706
|
"createdAt": {
|
|
42384
43707
|
"$ref": "#/components/schemas/Timestamp"
|
|
42385
43708
|
},
|
|
@@ -42781,6 +44104,17 @@
|
|
|
42781
44104
|
"failed"
|
|
42782
44105
|
]
|
|
42783
44106
|
},
|
|
44107
|
+
"ContextConnectionFailureReason": {
|
|
44108
|
+
"type": "string",
|
|
44109
|
+
"description": "Why a synchronization failed, indicating who can resolve it. `authentication` and `misconfigured` need the connection to be reconfigured; `rate_limited` and `upstream_unavailable` are the source's own limits or downtime and are retried; `unknown` could not be attributed to the source's response.",
|
|
44110
|
+
"enum": [
|
|
44111
|
+
"authentication",
|
|
44112
|
+
"misconfigured",
|
|
44113
|
+
"rate_limited",
|
|
44114
|
+
"upstream_unavailable",
|
|
44115
|
+
"unknown"
|
|
44116
|
+
]
|
|
44117
|
+
},
|
|
42784
44118
|
"ContextSearchBoost": {
|
|
42785
44119
|
"type": "string",
|
|
42786
44120
|
"description": "Relative score adjustment applied to records from a connection when searching.",
|
|
@@ -43348,6 +44682,9 @@
|
|
|
43348
44682
|
"type": "string",
|
|
43349
44683
|
"description": "Failure message when synchronization fails"
|
|
43350
44684
|
},
|
|
44685
|
+
"failureReason": {
|
|
44686
|
+
"$ref": "#/components/schemas/ContextConnectionFailureReason"
|
|
44687
|
+
},
|
|
43351
44688
|
"email": {
|
|
43352
44689
|
"type": "object",
|
|
43353
44690
|
"description": "Parameters associated with the connection when it is an email connection",
|
|
@@ -44626,6 +45963,35 @@
|
|
|
44626
45963
|
"changeRequestId"
|
|
44627
45964
|
]
|
|
44628
45965
|
},
|
|
45966
|
+
"AIToolCallArchiveChangeRequest": {
|
|
45967
|
+
"type": "object",
|
|
45968
|
+
"properties": {
|
|
45969
|
+
"tool": {
|
|
45970
|
+
"type": "string",
|
|
45971
|
+
"enum": [
|
|
45972
|
+
"archiveChangeRequest"
|
|
45973
|
+
]
|
|
45974
|
+
},
|
|
45975
|
+
"spaceId": {
|
|
45976
|
+
"type": "string",
|
|
45977
|
+
"description": "The ID of the space the change request belongs to."
|
|
45978
|
+
},
|
|
45979
|
+
"changeRequestId": {
|
|
45980
|
+
"type": "string",
|
|
45981
|
+
"description": "The ID of the change request."
|
|
45982
|
+
},
|
|
45983
|
+
"reason": {
|
|
45984
|
+
"type": "string",
|
|
45985
|
+
"description": "Why the agent gave up on implementing the change request."
|
|
45986
|
+
}
|
|
45987
|
+
},
|
|
45988
|
+
"required": [
|
|
45989
|
+
"tool",
|
|
45990
|
+
"spaceId",
|
|
45991
|
+
"changeRequestId",
|
|
45992
|
+
"reason"
|
|
45993
|
+
]
|
|
45994
|
+
},
|
|
44629
45995
|
"AIToolCallComment": {
|
|
44630
45996
|
"type": "object",
|
|
44631
45997
|
"properties": {
|
|
@@ -44753,6 +46119,87 @@
|
|
|
44753
46119
|
"commentId"
|
|
44754
46120
|
]
|
|
44755
46121
|
},
|
|
46122
|
+
"AIToolCallStartContentImport": {
|
|
46123
|
+
"type": "object",
|
|
46124
|
+
"properties": {
|
|
46125
|
+
"tool": {
|
|
46126
|
+
"type": "string",
|
|
46127
|
+
"enum": [
|
|
46128
|
+
"startContentImport"
|
|
46129
|
+
]
|
|
46130
|
+
},
|
|
46131
|
+
"spaceId": {
|
|
46132
|
+
"type": "string",
|
|
46133
|
+
"description": "The ID of the space the content is imported into."
|
|
46134
|
+
},
|
|
46135
|
+
"changeRequestId": {
|
|
46136
|
+
"type": "string",
|
|
46137
|
+
"description": "The ID of the change request the content is imported into."
|
|
46138
|
+
},
|
|
46139
|
+
"runId": {
|
|
46140
|
+
"type": "string",
|
|
46141
|
+
"description": "The ID of the import run."
|
|
46142
|
+
},
|
|
46143
|
+
"url": {
|
|
46144
|
+
"type": "string",
|
|
46145
|
+
"description": "The URL the content is imported from, when importing a website."
|
|
46146
|
+
},
|
|
46147
|
+
"files": {
|
|
46148
|
+
"type": "array",
|
|
46149
|
+
"description": "Names of the attached files the content is imported from, when importing files.",
|
|
46150
|
+
"items": {
|
|
46151
|
+
"type": "string"
|
|
46152
|
+
}
|
|
46153
|
+
}
|
|
46154
|
+
},
|
|
46155
|
+
"required": [
|
|
46156
|
+
"tool",
|
|
46157
|
+
"spaceId",
|
|
46158
|
+
"changeRequestId",
|
|
46159
|
+
"runId"
|
|
46160
|
+
]
|
|
46161
|
+
},
|
|
46162
|
+
"AIToolCallCheckContentImport": {
|
|
46163
|
+
"type": "object",
|
|
46164
|
+
"properties": {
|
|
46165
|
+
"tool": {
|
|
46166
|
+
"type": "string",
|
|
46167
|
+
"enum": [
|
|
46168
|
+
"checkContentImport"
|
|
46169
|
+
]
|
|
46170
|
+
},
|
|
46171
|
+
"runId": {
|
|
46172
|
+
"type": "string",
|
|
46173
|
+
"description": "The ID of the import run."
|
|
46174
|
+
},
|
|
46175
|
+
"status": {
|
|
46176
|
+
"type": "string",
|
|
46177
|
+
"description": "Status of the import when it was checked.",
|
|
46178
|
+
"enum": [
|
|
46179
|
+
"pending",
|
|
46180
|
+
"in-progress",
|
|
46181
|
+
"completed",
|
|
46182
|
+
"failed",
|
|
46183
|
+
"cancelled"
|
|
46184
|
+
]
|
|
46185
|
+
},
|
|
46186
|
+
"importedPages": {
|
|
46187
|
+
"type": "number",
|
|
46188
|
+
"description": "Number of pages imported when the import was checked."
|
|
46189
|
+
},
|
|
46190
|
+
"totalPages": {
|
|
46191
|
+
"type": "number",
|
|
46192
|
+
"description": "Number of pages the import has discovered so far."
|
|
46193
|
+
}
|
|
46194
|
+
},
|
|
46195
|
+
"required": [
|
|
46196
|
+
"tool",
|
|
46197
|
+
"runId",
|
|
46198
|
+
"status",
|
|
46199
|
+
"importedPages",
|
|
46200
|
+
"totalPages"
|
|
46201
|
+
]
|
|
46202
|
+
},
|
|
44756
46203
|
"AIToolCallMCP": {
|
|
44757
46204
|
"type": "object",
|
|
44758
46205
|
"description": "Tool called from an MCP server",
|
|
@@ -44886,6 +46333,9 @@
|
|
|
44886
46333
|
{
|
|
44887
46334
|
"$ref": "#/components/schemas/AIToolCallSetChangeRequestDetails"
|
|
44888
46335
|
},
|
|
46336
|
+
{
|
|
46337
|
+
"$ref": "#/components/schemas/AIToolCallArchiveChangeRequest"
|
|
46338
|
+
},
|
|
44889
46339
|
{
|
|
44890
46340
|
"$ref": "#/components/schemas/AIToolCallComment"
|
|
44891
46341
|
},
|
|
@@ -44898,6 +46348,12 @@
|
|
|
44898
46348
|
{
|
|
44899
46349
|
"$ref": "#/components/schemas/AIToolCallSubmitChangeRequestReview"
|
|
44900
46350
|
},
|
|
46351
|
+
{
|
|
46352
|
+
"$ref": "#/components/schemas/AIToolCallStartContentImport"
|
|
46353
|
+
},
|
|
46354
|
+
{
|
|
46355
|
+
"$ref": "#/components/schemas/AIToolCallCheckContentImport"
|
|
46356
|
+
},
|
|
44901
46357
|
{
|
|
44902
46358
|
"$ref": "#/components/schemas/AIToolCallMCP"
|
|
44903
46359
|
},
|
|
@@ -44979,6 +46435,35 @@
|
|
|
44979
46435
|
"contentType"
|
|
44980
46436
|
]
|
|
44981
46437
|
},
|
|
46438
|
+
"AIAttachmentImportFile": {
|
|
46439
|
+
"type": "object",
|
|
46440
|
+
"description": "A file attached for the sole purpose of being imported. Its content is never given to the model — the type is one the importer accepts but the model cannot read, such as a ZIP archive — so the model only learns that the file is attached and can import it.",
|
|
46441
|
+
"properties": {
|
|
46442
|
+
"type": {
|
|
46443
|
+
"type": "string",
|
|
46444
|
+
"enum": [
|
|
46445
|
+
"import-file"
|
|
46446
|
+
]
|
|
46447
|
+
},
|
|
46448
|
+
"url": {
|
|
46449
|
+
"$ref": "#/components/schemas/URL"
|
|
46450
|
+
},
|
|
46451
|
+
"filename": {
|
|
46452
|
+
"type": "string",
|
|
46453
|
+
"description": "Name of the file."
|
|
46454
|
+
},
|
|
46455
|
+
"contentType": {
|
|
46456
|
+
"type": "string",
|
|
46457
|
+
"description": "MIME type of the file. Must be a file type supported by the content import."
|
|
46458
|
+
}
|
|
46459
|
+
},
|
|
46460
|
+
"required": [
|
|
46461
|
+
"type",
|
|
46462
|
+
"url",
|
|
46463
|
+
"filename",
|
|
46464
|
+
"contentType"
|
|
46465
|
+
]
|
|
46466
|
+
},
|
|
44982
46467
|
"AIAttachment": {
|
|
44983
46468
|
"oneOf": [
|
|
44984
46469
|
{
|
|
@@ -44986,6 +46471,9 @@
|
|
|
44986
46471
|
},
|
|
44987
46472
|
{
|
|
44988
46473
|
"$ref": "#/components/schemas/AIAttachmentFile"
|
|
46474
|
+
},
|
|
46475
|
+
{
|
|
46476
|
+
"$ref": "#/components/schemas/AIAttachmentImportFile"
|
|
44989
46477
|
}
|
|
44990
46478
|
]
|
|
44991
46479
|
},
|
|
@@ -46999,6 +48487,36 @@
|
|
|
46999
48487
|
{
|
|
47000
48488
|
"$ref": "#/components/schemas/SiteInsightsQueryDateTimeColumn"
|
|
47001
48489
|
},
|
|
48490
|
+
{
|
|
48491
|
+
"type": "object",
|
|
48492
|
+
"description": "Day of the week the event happened, in UTC, from 1 (Monday) to 7 (Sunday). Group by it alongside `hourOfDay` to fold any range into a weekly activity profile.",
|
|
48493
|
+
"required": [
|
|
48494
|
+
"column"
|
|
48495
|
+
],
|
|
48496
|
+
"properties": {
|
|
48497
|
+
"column": {
|
|
48498
|
+
"type": "string",
|
|
48499
|
+
"enum": [
|
|
48500
|
+
"dayOfWeek"
|
|
48501
|
+
]
|
|
48502
|
+
}
|
|
48503
|
+
}
|
|
48504
|
+
},
|
|
48505
|
+
{
|
|
48506
|
+
"type": "object",
|
|
48507
|
+
"description": "Hour of the day the event happened, in UTC, from 0 to 23.",
|
|
48508
|
+
"required": [
|
|
48509
|
+
"column"
|
|
48510
|
+
],
|
|
48511
|
+
"properties": {
|
|
48512
|
+
"column": {
|
|
48513
|
+
"type": "string",
|
|
48514
|
+
"enum": [
|
|
48515
|
+
"hourOfDay"
|
|
48516
|
+
]
|
|
48517
|
+
}
|
|
48518
|
+
}
|
|
48519
|
+
},
|
|
47002
48520
|
{
|
|
47003
48521
|
"type": "object",
|
|
47004
48522
|
"required": [
|
|
@@ -47354,6 +48872,20 @@
|
|
|
47354
48872
|
}
|
|
47355
48873
|
}
|
|
47356
48874
|
},
|
|
48875
|
+
{
|
|
48876
|
+
"type": "object",
|
|
48877
|
+
"required": [
|
|
48878
|
+
"column"
|
|
48879
|
+
],
|
|
48880
|
+
"properties": {
|
|
48881
|
+
"column": {
|
|
48882
|
+
"type": "string",
|
|
48883
|
+
"enum": [
|
|
48884
|
+
"eventPageNotFoundType"
|
|
48885
|
+
]
|
|
48886
|
+
}
|
|
48887
|
+
}
|
|
48888
|
+
},
|
|
47357
48889
|
{
|
|
47358
48890
|
"type": "object",
|
|
47359
48891
|
"required": [
|
|
@@ -47550,6 +49082,21 @@
|
|
|
47550
49082
|
}
|
|
47551
49083
|
}
|
|
47552
49084
|
},
|
|
49085
|
+
{
|
|
49086
|
+
"type": "object",
|
|
49087
|
+
"description": "Whether the visitor was authenticated when the event happened. Recorded at ingest from the site's visibility and the visitor's claims, so it is only exact for events tracked after that became available; older events fall back to the presence of any claim.",
|
|
49088
|
+
"required": [
|
|
49089
|
+
"column"
|
|
49090
|
+
],
|
|
49091
|
+
"properties": {
|
|
49092
|
+
"column": {
|
|
49093
|
+
"type": "string",
|
|
49094
|
+
"enum": [
|
|
49095
|
+
"visitorAuthenticated"
|
|
49096
|
+
]
|
|
49097
|
+
}
|
|
49098
|
+
}
|
|
49099
|
+
},
|
|
47553
49100
|
{
|
|
47554
49101
|
"type": "object",
|
|
47555
49102
|
"required": [
|
|
@@ -47717,6 +49264,13 @@
|
|
|
47717
49264
|
"opencode"
|
|
47718
49265
|
]
|
|
47719
49266
|
},
|
|
49267
|
+
"SiteInsightsPageNotFoundType": {
|
|
49268
|
+
"description": "Why a site URL returned a 404. `conditional` means the URL targets content gated by an adaptive-content condition, so the visitor lacked access to a page that exists. Computed by GitBook when the event is ingested; 404s recorded before this existed, and those on genuinely missing pages, carry no value.",
|
|
49269
|
+
"type": "string",
|
|
49270
|
+
"enum": [
|
|
49271
|
+
"conditional"
|
|
49272
|
+
]
|
|
49273
|
+
},
|
|
47720
49274
|
"SiteInsightsQueryEventsValues": {
|
|
47721
49275
|
"oneOf": [
|
|
47722
49276
|
{
|
|
@@ -47740,6 +49294,52 @@
|
|
|
47740
49294
|
}
|
|
47741
49295
|
}
|
|
47742
49296
|
},
|
|
49297
|
+
{
|
|
49298
|
+
"type": "object",
|
|
49299
|
+
"required": [
|
|
49300
|
+
"column",
|
|
49301
|
+
"values"
|
|
49302
|
+
],
|
|
49303
|
+
"properties": {
|
|
49304
|
+
"column": {
|
|
49305
|
+
"type": "string",
|
|
49306
|
+
"enum": [
|
|
49307
|
+
"dayOfWeek"
|
|
49308
|
+
]
|
|
49309
|
+
},
|
|
49310
|
+
"values": {
|
|
49311
|
+
"type": "array",
|
|
49312
|
+
"items": {
|
|
49313
|
+
"type": "integer",
|
|
49314
|
+
"minimum": 1,
|
|
49315
|
+
"maximum": 7
|
|
49316
|
+
}
|
|
49317
|
+
}
|
|
49318
|
+
}
|
|
49319
|
+
},
|
|
49320
|
+
{
|
|
49321
|
+
"type": "object",
|
|
49322
|
+
"required": [
|
|
49323
|
+
"column",
|
|
49324
|
+
"values"
|
|
49325
|
+
],
|
|
49326
|
+
"properties": {
|
|
49327
|
+
"column": {
|
|
49328
|
+
"type": "string",
|
|
49329
|
+
"enum": [
|
|
49330
|
+
"hourOfDay"
|
|
49331
|
+
]
|
|
49332
|
+
},
|
|
49333
|
+
"values": {
|
|
49334
|
+
"type": "array",
|
|
49335
|
+
"items": {
|
|
49336
|
+
"type": "integer",
|
|
49337
|
+
"minimum": 0,
|
|
49338
|
+
"maximum": 23
|
|
49339
|
+
}
|
|
49340
|
+
}
|
|
49341
|
+
}
|
|
49342
|
+
},
|
|
47743
49343
|
{
|
|
47744
49344
|
"type": "object",
|
|
47745
49345
|
"required": [
|
|
@@ -47891,6 +49491,30 @@
|
|
|
47891
49491
|
}
|
|
47892
49492
|
}
|
|
47893
49493
|
},
|
|
49494
|
+
{
|
|
49495
|
+
"type": "object",
|
|
49496
|
+
"required": [
|
|
49497
|
+
"column",
|
|
49498
|
+
"values"
|
|
49499
|
+
],
|
|
49500
|
+
"properties": {
|
|
49501
|
+
"column": {
|
|
49502
|
+
"type": "string",
|
|
49503
|
+
"enum": [
|
|
49504
|
+
"visitorAuthenticated"
|
|
49505
|
+
]
|
|
49506
|
+
},
|
|
49507
|
+
"values": {
|
|
49508
|
+
"type": "array",
|
|
49509
|
+
"items": {
|
|
49510
|
+
"type": [
|
|
49511
|
+
"boolean",
|
|
49512
|
+
"null"
|
|
49513
|
+
]
|
|
49514
|
+
}
|
|
49515
|
+
}
|
|
49516
|
+
}
|
|
49517
|
+
},
|
|
47894
49518
|
{
|
|
47895
49519
|
"type": "object",
|
|
47896
49520
|
"required": [
|
|
@@ -48131,6 +49755,34 @@
|
|
|
48131
49755
|
}
|
|
48132
49756
|
}
|
|
48133
49757
|
},
|
|
49758
|
+
{
|
|
49759
|
+
"type": "object",
|
|
49760
|
+
"required": [
|
|
49761
|
+
"column",
|
|
49762
|
+
"values"
|
|
49763
|
+
],
|
|
49764
|
+
"properties": {
|
|
49765
|
+
"column": {
|
|
49766
|
+
"type": "string",
|
|
49767
|
+
"enum": [
|
|
49768
|
+
"eventPageNotFoundType"
|
|
49769
|
+
]
|
|
49770
|
+
},
|
|
49771
|
+
"values": {
|
|
49772
|
+
"type": "array",
|
|
49773
|
+
"items": {
|
|
49774
|
+
"oneOf": [
|
|
49775
|
+
{
|
|
49776
|
+
"type": "null"
|
|
49777
|
+
},
|
|
49778
|
+
{
|
|
49779
|
+
"$ref": "#/components/schemas/SiteInsightsPageNotFoundType"
|
|
49780
|
+
}
|
|
49781
|
+
]
|
|
49782
|
+
}
|
|
49783
|
+
}
|
|
49784
|
+
}
|
|
49785
|
+
},
|
|
48134
49786
|
{
|
|
48135
49787
|
"type": "object",
|
|
48136
49788
|
"required": [
|
|
@@ -48973,108 +50625,6 @@
|
|
|
48973
50625
|
}
|
|
48974
50626
|
}
|
|
48975
50627
|
},
|
|
48976
|
-
"SiteRedirectSourcePath": {
|
|
48977
|
-
"type": "string",
|
|
48978
|
-
"description": "The source path to redirect from.",
|
|
48979
|
-
"maxLength": 512,
|
|
48980
|
-
"pattern": "^\\/(?!\\*)(?!.*\\*.+)(?:[A-Za-z0-9\\-._~+]|%[0-9A-Fa-f]{2})+(?:\\/(?:[A-Za-z0-9\\-._~+]|%[0-9A-Fa-f]{2})+)*(?:\\/\\*|\\*)?$"
|
|
48981
|
-
},
|
|
48982
|
-
"SiteRedirectDestinationSiteSection": {
|
|
48983
|
-
"type": "object",
|
|
48984
|
-
"properties": {
|
|
48985
|
-
"kind": {
|
|
48986
|
-
"type": "string",
|
|
48987
|
-
"enum": [
|
|
48988
|
-
"site-section"
|
|
48989
|
-
]
|
|
48990
|
-
},
|
|
48991
|
-
"siteSectionId": {
|
|
48992
|
-
"type": "string",
|
|
48993
|
-
"description": "Unique identifier for the site section to redirect to"
|
|
48994
|
-
}
|
|
48995
|
-
},
|
|
48996
|
-
"required": [
|
|
48997
|
-
"kind",
|
|
48998
|
-
"siteSectionId"
|
|
48999
|
-
]
|
|
49000
|
-
},
|
|
49001
|
-
"SiteRedirectDestinationSiteSpace": {
|
|
49002
|
-
"type": "object",
|
|
49003
|
-
"properties": {
|
|
49004
|
-
"kind": {
|
|
49005
|
-
"type": "string",
|
|
49006
|
-
"enum": [
|
|
49007
|
-
"site-space"
|
|
49008
|
-
]
|
|
49009
|
-
},
|
|
49010
|
-
"siteSpaceId": {
|
|
49011
|
-
"type": "string",
|
|
49012
|
-
"description": "Unique identifier for the site space to redirect to"
|
|
49013
|
-
}
|
|
49014
|
-
},
|
|
49015
|
-
"required": [
|
|
49016
|
-
"kind",
|
|
49017
|
-
"siteSpaceId"
|
|
49018
|
-
]
|
|
49019
|
-
},
|
|
49020
|
-
"SiteRedirectDestinationPage": {
|
|
49021
|
-
"type": "object",
|
|
49022
|
-
"properties": {
|
|
49023
|
-
"kind": {
|
|
49024
|
-
"type": "string",
|
|
49025
|
-
"enum": [
|
|
49026
|
-
"site-page"
|
|
49027
|
-
]
|
|
49028
|
-
},
|
|
49029
|
-
"siteSpaceId": {
|
|
49030
|
-
"type": "string",
|
|
49031
|
-
"description": "Unique identifier for the site space of the page"
|
|
49032
|
-
},
|
|
49033
|
-
"pageId": {
|
|
49034
|
-
"type": "string",
|
|
49035
|
-
"description": "Unique identifier for the page within the site space to redirect to"
|
|
49036
|
-
}
|
|
49037
|
-
},
|
|
49038
|
-
"required": [
|
|
49039
|
-
"kind",
|
|
49040
|
-
"siteSpaceId",
|
|
49041
|
-
"pageId"
|
|
49042
|
-
]
|
|
49043
|
-
},
|
|
49044
|
-
"SiteRedirectDestinationExternal": {
|
|
49045
|
-
"type": "object",
|
|
49046
|
-
"properties": {
|
|
49047
|
-
"kind": {
|
|
49048
|
-
"type": "string",
|
|
49049
|
-
"enum": [
|
|
49050
|
-
"external"
|
|
49051
|
-
]
|
|
49052
|
-
},
|
|
49053
|
-
"url": {
|
|
49054
|
-
"$ref": "#/components/schemas/URL"
|
|
49055
|
-
}
|
|
49056
|
-
},
|
|
49057
|
-
"required": [
|
|
49058
|
-
"kind",
|
|
49059
|
-
"url"
|
|
49060
|
-
]
|
|
49061
|
-
},
|
|
49062
|
-
"SiteRedirectDestination": {
|
|
49063
|
-
"oneOf": [
|
|
49064
|
-
{
|
|
49065
|
-
"$ref": "#/components/schemas/SiteRedirectDestinationSiteSection"
|
|
49066
|
-
},
|
|
49067
|
-
{
|
|
49068
|
-
"$ref": "#/components/schemas/SiteRedirectDestinationSiteSpace"
|
|
49069
|
-
},
|
|
49070
|
-
{
|
|
49071
|
-
"$ref": "#/components/schemas/SiteRedirectDestinationPage"
|
|
49072
|
-
},
|
|
49073
|
-
{
|
|
49074
|
-
"$ref": "#/components/schemas/SiteRedirectDestinationExternal"
|
|
49075
|
-
}
|
|
49076
|
-
]
|
|
49077
|
-
},
|
|
49078
50628
|
"SiteRedirect": {
|
|
49079
50629
|
"type": "object",
|
|
49080
50630
|
"properties": {
|
|
@@ -49112,40 +50662,6 @@
|
|
|
49112
50662
|
"destination"
|
|
49113
50663
|
]
|
|
49114
50664
|
},
|
|
49115
|
-
"SiteRedirectInputDestinationPath": {
|
|
49116
|
-
"type": "object",
|
|
49117
|
-
"properties": {
|
|
49118
|
-
"kind": {
|
|
49119
|
-
"type": "string",
|
|
49120
|
-
"enum": [
|
|
49121
|
-
"path"
|
|
49122
|
-
]
|
|
49123
|
-
},
|
|
49124
|
-
"spaceId": {
|
|
49125
|
-
"type": "string",
|
|
49126
|
-
"description": "Unique identifier for the space containing the page referenced by the path."
|
|
49127
|
-
},
|
|
49128
|
-
"path": {
|
|
49129
|
-
"type": "string",
|
|
49130
|
-
"description": "Path to the page within the space revision to resolve."
|
|
49131
|
-
}
|
|
49132
|
-
},
|
|
49133
|
-
"required": [
|
|
49134
|
-
"kind",
|
|
49135
|
-
"spaceId",
|
|
49136
|
-
"path"
|
|
49137
|
-
]
|
|
49138
|
-
},
|
|
49139
|
-
"SiteRedirectInputDestination": {
|
|
49140
|
-
"oneOf": [
|
|
49141
|
-
{
|
|
49142
|
-
"$ref": "#/components/schemas/SiteRedirectDestination"
|
|
49143
|
-
},
|
|
49144
|
-
{
|
|
49145
|
-
"$ref": "#/components/schemas/SiteRedirectInputDestinationPath"
|
|
49146
|
-
}
|
|
49147
|
-
]
|
|
49148
|
-
},
|
|
49149
50665
|
"SiteMcpServerName": {
|
|
49150
50666
|
"type": "string",
|
|
49151
50667
|
"description": "Name of the MCP server",
|
|
@@ -50065,6 +51581,10 @@
|
|
|
50065
51581
|
"description": "Percentage of remaining paid AI credits carried into the next billing period. Paid self-serve organizations default to 50% when unset.",
|
|
50066
51582
|
"$ref": "#/components/schemas/OrganizationBillingPercentageOverride"
|
|
50067
51583
|
},
|
|
51584
|
+
"aiCreditAlertThreshold": {
|
|
51585
|
+
"description": "Percentage of total AI credits remaining at which to send a low-balance alert.",
|
|
51586
|
+
"$ref": "#/components/schemas/OrganizationBillingPercentageOverride"
|
|
51587
|
+
},
|
|
50068
51588
|
"minUsers": {
|
|
50069
51589
|
"description": "Current minimum users override, when set.",
|
|
50070
51590
|
"$ref": "#/components/schemas/OrganizationBillingNumericOverride"
|
|
@@ -50264,6 +51784,14 @@
|
|
|
50264
51784
|
"type": "object",
|
|
50265
51785
|
"description": "An object that describes the payload of site visitor info. It can include a jwt token with signed claims and/or a record of its unsigned claims.",
|
|
50266
51786
|
"properties": {
|
|
51787
|
+
"type": {
|
|
51788
|
+
"type": "string",
|
|
51789
|
+
"enum": [
|
|
51790
|
+
"human",
|
|
51791
|
+
"agent"
|
|
51792
|
+
],
|
|
51793
|
+
"description": "Whether the visitor is a human or an AI agent. Defaults to human when omitted."
|
|
51794
|
+
},
|
|
50267
51795
|
"jwtToken": {
|
|
50268
51796
|
"type": "string",
|
|
50269
51797
|
"description": "JWT token generated for a authenticated access session."
|
|
@@ -50320,6 +51848,30 @@
|
|
|
50320
51848
|
"ref"
|
|
50321
51849
|
]
|
|
50322
51850
|
},
|
|
51851
|
+
"GitSyncRepositoryFile": {
|
|
51852
|
+
"type": "object",
|
|
51853
|
+
"description": "A file found in a Git Sync repository at a specific ref.",
|
|
51854
|
+
"properties": {
|
|
51855
|
+
"name": {
|
|
51856
|
+
"type": "string"
|
|
51857
|
+
},
|
|
51858
|
+
"path": {
|
|
51859
|
+
"type": "string"
|
|
51860
|
+
},
|
|
51861
|
+
"sha": {
|
|
51862
|
+
"type": "string"
|
|
51863
|
+
},
|
|
51864
|
+
"size": {
|
|
51865
|
+
"type": "number"
|
|
51866
|
+
}
|
|
51867
|
+
},
|
|
51868
|
+
"required": [
|
|
51869
|
+
"name",
|
|
51870
|
+
"path",
|
|
51871
|
+
"sha",
|
|
51872
|
+
"size"
|
|
51873
|
+
]
|
|
51874
|
+
},
|
|
50323
51875
|
"GitSyncGitLabProject": {
|
|
50324
51876
|
"type": "object",
|
|
50325
51877
|
"description": "GitLab project that can be selected for Git Sync.",
|
|
@@ -51248,6 +52800,9 @@
|
|
|
51248
52800
|
"error": {
|
|
51249
52801
|
"type": "string",
|
|
51250
52802
|
"description": "Error details, defined if state is `failure`."
|
|
52803
|
+
},
|
|
52804
|
+
"errorAction": {
|
|
52805
|
+
"$ref": "#/components/schemas/GitSyncOperationErrorAction"
|
|
51251
52806
|
}
|
|
51252
52807
|
},
|
|
51253
52808
|
"required": [
|
|
@@ -51297,6 +52852,9 @@
|
|
|
51297
52852
|
"type": "string",
|
|
51298
52853
|
"description": "Error details, defined if state is `failure`."
|
|
51299
52854
|
},
|
|
52855
|
+
"errorAction": {
|
|
52856
|
+
"$ref": "#/components/schemas/GitSyncOperationErrorAction"
|
|
52857
|
+
},
|
|
51300
52858
|
"spaces": {
|
|
51301
52859
|
"type": "object",
|
|
51302
52860
|
"additionalProperties": {
|
|
@@ -51327,7 +52885,7 @@
|
|
|
51327
52885
|
},
|
|
51328
52886
|
"key": {
|
|
51329
52887
|
"type": "string",
|
|
51330
|
-
"description": "Stable identifier for this section group, used as the Git Sync key.\nMust be unique amongst all other section groups of the site. For\nexample: `section-group-product` or `section-group-1`.\n",
|
|
52888
|
+
"description": "Stable identifier for this section group, used as the Git Sync key.\nMust be unique amongst all other section groups of the site. For\nexample: `section-group-product` or `section-group-1`.\nYou can nest section groups only one level deep. For example, `section-group-1` can have a child section group `section-group-1-1`, but `section-group-1-1` cannot have a child section group.\n",
|
|
51331
52889
|
"minLength": 1
|
|
51332
52890
|
},
|
|
51333
52891
|
"title": {
|
|
@@ -51367,7 +52925,7 @@
|
|
|
51367
52925
|
"GitSyncSiteStructureSpace": {
|
|
51368
52926
|
"type": "object",
|
|
51369
52927
|
"additionalProperties": false,
|
|
51370
|
-
"description": "A space — a single content unit in the site's navigation tree. Discriminated\nby `type: space`.\n\nThe space's content either lives in the synced repository at the directory\npointed to by `content.directory`, or does not inherit the site's repository\nwhen `content.directory` is `null`. Hierarchy comes from where the space\nappears in the YAML (under a section, a section group, or at the root), not\nfrom an explicit parent reference.\n",
|
|
52928
|
+
"description": "A space — a single content unit in the site's navigation tree. Discriminated\nby `type: space`.\n\nThe space's content either lives in the synced repository at the directory\npointed to by `content.directory`, or does not inherit the site's repository\nwhen `content.directory` is `null`. Hierarchy comes from where the space\nappears in the YAML (under a section, a section group, or at the root), not\nfrom an explicit parent reference.\n\nThe directory is read as one book — the Markdown files it holds become the\npages of the space.\n",
|
|
51371
52929
|
"properties": {
|
|
51372
52930
|
"type": {
|
|
51373
52931
|
"type": "string",
|
|
@@ -51393,7 +52951,7 @@
|
|
|
51393
52951
|
},
|
|
51394
52952
|
"default": {
|
|
51395
52953
|
"type": "boolean",
|
|
51396
|
-
"description": "Whether this is the default space
|
|
52954
|
+
"description": "Whether this is the default space of its parent — the one opened when the\nsite or the section is visited without a space path. Exactly one space\namong each set of siblings carries it.\n"
|
|
51397
52955
|
},
|
|
51398
52956
|
"hidden": {
|
|
51399
52957
|
"type": "boolean",
|
|
@@ -51415,7 +52973,7 @@
|
|
|
51415
52973
|
"oneOf": [
|
|
51416
52974
|
{
|
|
51417
52975
|
"type": "string",
|
|
51418
|
-
"description": "
|
|
52976
|
+
"description": "Directory holding this space's content, resolved from the site's\nproject directory — `./guides` under a site rooted at `docs/`\nreads `docs/guides`. A leading slash escapes to the repository\nroot instead, so `/guides` always reads `guides`. Parent-directory\nsegments (`..`) are rejected.\n",
|
|
51419
52977
|
"minLength": 1
|
|
51420
52978
|
},
|
|
51421
52979
|
{
|
|
@@ -51444,7 +53002,7 @@
|
|
|
51444
53002
|
"GitSyncSiteStructureSection": {
|
|
51445
53003
|
"type": "object",
|
|
51446
53004
|
"additionalProperties": false,
|
|
51447
|
-
"description": "A section — a group of spaces sharing a top-level navigation entry.\nDiscriminated by `type: section`.\n\nSpaces inside a section are listed inline under `children
|
|
53005
|
+
"description": "A section — a group of spaces sharing a top-level navigation entry.\nDiscriminated by `type: section`.\n\nSpaces inside a section are listed inline under `children`; a section holds\nnothing else — nest sections under a section group instead. A site with\nsections must mark exactly one section with `default: true`, and cannot also\nlist spaces at the top level of its structure.\n",
|
|
51448
53006
|
"properties": {
|
|
51449
53007
|
"type": {
|
|
51450
53008
|
"type": "string",
|
|
@@ -51514,15 +53072,20 @@
|
|
|
51514
53072
|
},
|
|
51515
53073
|
"GitSyncSiteStructure": {
|
|
51516
53074
|
"type": "array",
|
|
51517
|
-
"description": "Hierarchical structure of a site in a Git Sync YAML. Each entry is one of\nthree node types: a section group, a section, or a space.\n",
|
|
53075
|
+
"description": "Hierarchical structure of a site in a Git Sync YAML. Each entry is one of\nthree node types: a section group, a section, or a space.\n\nA **space** is a leaf holding content, pointed at a repository directory. A\n**section** gathers spaces behind one top-level navigation entry. A\n**section group** gathers sections. A site either uses sections or lists its\nspaces at the top level, never both.\n\n```yaml\nstructure:\n - type: space\n key: space-guides\n title: Guides\n path: guides\n default: true\n content:\n directory: ./guides\n - type: space\n key: space-api\n title: API reference\n path: api\n content:\n directory: ./api\n```\n\nThe same two spaces behind top-level navigation entries:\n\n```yaml\nstructure:\n - type: section\n key: section-product\n title: Product\n path: product\n default: true\n children:\n - type: space\n key: space-guides\n title: Guides\n path: guides\n default: true\n content:\n directory: ./guides\n - type: section\n key: section-reference\n title: Reference\n path: reference\n children:\n - type: space\n key: space-api\n title: API reference\n path: api\n default: true\n content:\n directory: ./api\n```\n\nRules checked on import — a violation fails the sync, naming the offending\nnode:\n\n- Every `key` is unique across the file, whatever the node type. Git Sync\n recognises a node from one sync to the next by its key, so a reused key\n leaves two nodes indistinguishable.\n- Each section marks exactly one of its spaces `default: true`, and a site\n without sections marks one among its top-level spaces. The default is the\n space that opens when the site or the section is visited without a space\n path of its own.\n- A site declaring any section marks exactly one of those sections\n `default: true`, and lists no space at the top level: once a section\n exists, every space belongs inside one.\n- Sections hold only spaces. Section groups hold only sections, or one\n further level of section groups — nothing nests deeper than that.\n- Spaces pointed at the same `content.directory` declare the same\n `content.language`. One directory is read once, so it cannot produce two\n languages at the same time.\n",
|
|
51518
53076
|
"items": {
|
|
51519
53077
|
"$ref": "#/components/schemas/GitSyncSiteStructureNode"
|
|
51520
53078
|
}
|
|
51521
53079
|
},
|
|
51522
53080
|
"GitSyncSiteConfig": {
|
|
51523
53081
|
"type": "object",
|
|
51524
|
-
"description": "Schema for a site `docs.yaml` file — the canonical contract for what\ncan be authored in Git Sync to drive a site's
|
|
53082
|
+
"description": "Schema for a site `docs.yaml` file — the canonical contract for what\ncan be authored in Git Sync to drive a site's structure.\n\nThe file lives at the root of the site's project directory in the synced\nrepository. It names the site and maps the repository's content directories\nonto the site's navigation.\n",
|
|
51525
53083
|
"properties": {
|
|
53084
|
+
"$schema": {
|
|
53085
|
+
"type": "string",
|
|
53086
|
+
"format": "uri",
|
|
53087
|
+
"description": "URL of the schema used by editors to validate the site configuration."
|
|
53088
|
+
},
|
|
51526
53089
|
"version": {
|
|
51527
53090
|
"type": "integer",
|
|
51528
53091
|
"description": "Reserved for future use. When a breaking schema change ships, this\nfield lets the parser branch on the version; absence means v1.\n",
|
|
@@ -51775,6 +53338,14 @@
|
|
|
51775
53338
|
},
|
|
51776
53339
|
"description": "List of spaces that the token is allowed to access."
|
|
51777
53340
|
},
|
|
53341
|
+
"visitorType": {
|
|
53342
|
+
"type": "string",
|
|
53343
|
+
"enum": [
|
|
53344
|
+
"human",
|
|
53345
|
+
"agent"
|
|
53346
|
+
],
|
|
53347
|
+
"description": "Whether the visitor, for which the token was generated, is a human or an AI agent. Defaults to human when omitted."
|
|
53348
|
+
},
|
|
51778
53349
|
"claims": {
|
|
51779
53350
|
"type": "object",
|
|
51780
53351
|
"description": "Attributes or assertions that provide specific details about the visitor for which the token was generated.",
|
|
@@ -54231,18 +55802,42 @@
|
|
|
54231
55802
|
}
|
|
54232
55803
|
}
|
|
54233
55804
|
},
|
|
54234
|
-
"
|
|
54235
|
-
"description": "
|
|
55805
|
+
"UnauthorizedError": {
|
|
55806
|
+
"description": "Unauthorized",
|
|
54236
55807
|
"content": {
|
|
54237
55808
|
"application/json": {
|
|
54238
55809
|
"schema": {
|
|
54239
|
-
"
|
|
55810
|
+
"type": "object",
|
|
55811
|
+
"required": [
|
|
55812
|
+
"error"
|
|
55813
|
+
],
|
|
55814
|
+
"properties": {
|
|
55815
|
+
"error": {
|
|
55816
|
+
"type": "object",
|
|
55817
|
+
"properties": {
|
|
55818
|
+
"code": {
|
|
55819
|
+
"type": "integer",
|
|
55820
|
+
"format": "int32",
|
|
55821
|
+
"enum": [
|
|
55822
|
+
401
|
|
55823
|
+
]
|
|
55824
|
+
},
|
|
55825
|
+
"message": {
|
|
55826
|
+
"type": "string"
|
|
55827
|
+
}
|
|
55828
|
+
},
|
|
55829
|
+
"required": [
|
|
55830
|
+
"code",
|
|
55831
|
+
"message"
|
|
55832
|
+
]
|
|
55833
|
+
}
|
|
55834
|
+
}
|
|
54240
55835
|
}
|
|
54241
55836
|
}
|
|
54242
55837
|
}
|
|
54243
55838
|
},
|
|
54244
|
-
"
|
|
54245
|
-
"description": "
|
|
55839
|
+
"ForbiddenError": {
|
|
55840
|
+
"description": "Forbidden",
|
|
54246
55841
|
"content": {
|
|
54247
55842
|
"application/json": {
|
|
54248
55843
|
"schema": {
|
|
@@ -54258,7 +55853,7 @@
|
|
|
54258
55853
|
"type": "integer",
|
|
54259
55854
|
"format": "int32",
|
|
54260
55855
|
"enum": [
|
|
54261
|
-
|
|
55856
|
+
403
|
|
54262
55857
|
]
|
|
54263
55858
|
},
|
|
54264
55859
|
"message": {
|
|
@@ -54274,6 +55869,27 @@
|
|
|
54274
55869
|
}
|
|
54275
55870
|
}
|
|
54276
55871
|
}
|
|
55872
|
+
},
|
|
55873
|
+
"UnexpectedError": {
|
|
55874
|
+
"description": "Unexpected Error",
|
|
55875
|
+
"content": {
|
|
55876
|
+
"application/json": {
|
|
55877
|
+
"schema": {
|
|
55878
|
+
"$ref": "#/components/schemas/Error"
|
|
55879
|
+
}
|
|
55880
|
+
}
|
|
55881
|
+
}
|
|
55882
|
+
}
|
|
55883
|
+
},
|
|
55884
|
+
"headers": {
|
|
55885
|
+
"returnPreferenceApplied": {
|
|
55886
|
+
"description": "Confirms that the requested minimal response preference was applied.",
|
|
55887
|
+
"schema": {
|
|
55888
|
+
"type": "string",
|
|
55889
|
+
"enum": [
|
|
55890
|
+
"return=minimal"
|
|
55891
|
+
]
|
|
55892
|
+
}
|
|
54277
55893
|
}
|
|
54278
55894
|
}
|
|
54279
55895
|
}
|