@gitbook/api 0.195.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 +674 -73
- package/dist/constants.d.ts +4 -1
- package/dist/index.cjs +98 -2
- package/dist/index.js +92 -2
- package/package.json +1 -1
- package/spec/openapi.json +1494 -171
- package/spec/openapi.yaml +1080 -127
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"
|
|
@@ -12270,6 +12573,109 @@
|
|
|
12270
12573
|
}
|
|
12271
12574
|
},
|
|
12272
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
|
+
},
|
|
12273
12679
|
"post": {
|
|
12274
12680
|
"operationId": "startImportRun",
|
|
12275
12681
|
"summary": "Import content into a space from a website",
|
|
@@ -12304,6 +12710,10 @@
|
|
|
12304
12710
|
"target": {
|
|
12305
12711
|
"$ref": "#/components/schemas/ContentImportTarget"
|
|
12306
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
|
+
},
|
|
12307
12717
|
"enhance": {
|
|
12308
12718
|
"description": "Enhance the imported content with AI",
|
|
12309
12719
|
"default": true,
|
|
@@ -12338,6 +12748,50 @@
|
|
|
12338
12748
|
}
|
|
12339
12749
|
}
|
|
12340
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
|
+
},
|
|
12341
12795
|
"/org/{organizationId}/imports/{importRunId}/cancel": {
|
|
12342
12796
|
"post": {
|
|
12343
12797
|
"operationId": "cancelImportRun",
|
|
@@ -12359,7 +12813,7 @@
|
|
|
12359
12813
|
}
|
|
12360
12814
|
],
|
|
12361
12815
|
"responses": {
|
|
12362
|
-
"
|
|
12816
|
+
"200": {
|
|
12363
12817
|
"description": "Import run canceled successfully.",
|
|
12364
12818
|
"content": {
|
|
12365
12819
|
"application/json": {
|
|
@@ -12654,7 +13108,7 @@
|
|
|
12654
13108
|
]
|
|
12655
13109
|
},
|
|
12656
13110
|
"styleguide": {
|
|
12657
|
-
"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",
|
|
12658
13112
|
"oneOf": [
|
|
12659
13113
|
{
|
|
12660
13114
|
"type": "string"
|
|
@@ -13381,6 +13835,7 @@
|
|
|
13381
13835
|
"summary": "Move a site space, section, or section group to a new position",
|
|
13382
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.",
|
|
13383
13837
|
"x-gitbook-mcp": true,
|
|
13838
|
+
"x-gitbook-return-preference": true,
|
|
13384
13839
|
"tags": [
|
|
13385
13840
|
"sites"
|
|
13386
13841
|
],
|
|
@@ -13400,6 +13855,9 @@
|
|
|
13400
13855
|
},
|
|
13401
13856
|
{
|
|
13402
13857
|
"$ref": "#/components/parameters/siteId"
|
|
13858
|
+
},
|
|
13859
|
+
{
|
|
13860
|
+
"$ref": "#/components/parameters/returnPreference"
|
|
13403
13861
|
}
|
|
13404
13862
|
],
|
|
13405
13863
|
"requestBody": {
|
|
@@ -13436,6 +13894,14 @@
|
|
|
13436
13894
|
}
|
|
13437
13895
|
}
|
|
13438
13896
|
},
|
|
13897
|
+
"204": {
|
|
13898
|
+
"description": "Item moved without returning its representation",
|
|
13899
|
+
"headers": {
|
|
13900
|
+
"Preference-Applied": {
|
|
13901
|
+
"$ref": "#/components/headers/returnPreferenceApplied"
|
|
13902
|
+
}
|
|
13903
|
+
}
|
|
13904
|
+
},
|
|
13439
13905
|
"400": {
|
|
13440
13906
|
"description": "Invalid move position provided",
|
|
13441
13907
|
"$ref": "#/components/responses/BadRequestError"
|
|
@@ -13891,6 +14357,7 @@
|
|
|
13891
14357
|
"summary": "Add a space to a site as a content source",
|
|
13892
14358
|
"description": "Links an existing space to the site by creating a site space relationship.",
|
|
13893
14359
|
"x-gitbook-mcp": true,
|
|
14360
|
+
"x-gitbook-return-preference": true,
|
|
13894
14361
|
"tags": [
|
|
13895
14362
|
"site-spaces"
|
|
13896
14363
|
],
|
|
@@ -13910,6 +14377,9 @@
|
|
|
13910
14377
|
},
|
|
13911
14378
|
{
|
|
13912
14379
|
"$ref": "#/components/parameters/siteId"
|
|
14380
|
+
},
|
|
14381
|
+
{
|
|
14382
|
+
"$ref": "#/components/parameters/returnPreference"
|
|
13913
14383
|
}
|
|
13914
14384
|
],
|
|
13915
14385
|
"requestBody": {
|
|
@@ -13942,6 +14412,9 @@
|
|
|
13942
14412
|
}
|
|
13943
14413
|
],
|
|
13944
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"
|
|
13945
14418
|
}
|
|
13946
14419
|
},
|
|
13947
14420
|
"required": [
|
|
@@ -13969,6 +14442,14 @@
|
|
|
13969
14442
|
}
|
|
13970
14443
|
}
|
|
13971
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
|
+
}
|
|
13972
14453
|
}
|
|
13973
14454
|
}
|
|
13974
14455
|
},
|
|
@@ -14209,6 +14690,7 @@
|
|
|
14209
14690
|
"summary": "Update a section group in a site's navigation structure",
|
|
14210
14691
|
"description": "Updates a section group's properties in the site's navigation structure.",
|
|
14211
14692
|
"x-gitbook-mcp": true,
|
|
14693
|
+
"x-gitbook-return-preference": true,
|
|
14212
14694
|
"tags": [
|
|
14213
14695
|
"site-section-groups"
|
|
14214
14696
|
],
|
|
@@ -14231,6 +14713,9 @@
|
|
|
14231
14713
|
},
|
|
14232
14714
|
{
|
|
14233
14715
|
"$ref": "#/components/parameters/siteSectionGroupId"
|
|
14716
|
+
},
|
|
14717
|
+
{
|
|
14718
|
+
"$ref": "#/components/parameters/returnPreference"
|
|
14234
14719
|
}
|
|
14235
14720
|
],
|
|
14236
14721
|
"requestBody": {
|
|
@@ -14275,6 +14760,14 @@
|
|
|
14275
14760
|
}
|
|
14276
14761
|
}
|
|
14277
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
|
+
}
|
|
14278
14771
|
}
|
|
14279
14772
|
}
|
|
14280
14773
|
},
|
|
@@ -14377,6 +14870,10 @@
|
|
|
14377
14870
|
"type": "boolean",
|
|
14378
14871
|
"description": "Whether the section should be created in draft mode."
|
|
14379
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
|
+
},
|
|
14380
14877
|
"siteSectionGroupId": {
|
|
14381
14878
|
"type": "string",
|
|
14382
14879
|
"description": "ID of the section group to create the section in"
|
|
@@ -14483,6 +14980,7 @@
|
|
|
14483
14980
|
"summary": "Update a navigation section in a site",
|
|
14484
14981
|
"description": "Updates a navigation section's configuration in the site structure.",
|
|
14485
14982
|
"x-gitbook-mcp": true,
|
|
14983
|
+
"x-gitbook-return-preference": true,
|
|
14486
14984
|
"tags": [
|
|
14487
14985
|
"site-sections"
|
|
14488
14986
|
],
|
|
@@ -14505,6 +15003,9 @@
|
|
|
14505
15003
|
},
|
|
14506
15004
|
{
|
|
14507
15005
|
"$ref": "#/components/parameters/siteSectionId"
|
|
15006
|
+
},
|
|
15007
|
+
{
|
|
15008
|
+
"$ref": "#/components/parameters/returnPreference"
|
|
14508
15009
|
}
|
|
14509
15010
|
],
|
|
14510
15011
|
"requestBody": {
|
|
@@ -14591,6 +15092,14 @@
|
|
|
14591
15092
|
}
|
|
14592
15093
|
}
|
|
14593
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
|
+
}
|
|
14594
15103
|
}
|
|
14595
15104
|
}
|
|
14596
15105
|
},
|
|
@@ -14854,6 +15363,10 @@
|
|
|
14854
15363
|
"pageId": {
|
|
14855
15364
|
"description": "ID of the page the feedback is about.",
|
|
14856
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"
|
|
14857
15370
|
}
|
|
14858
15371
|
},
|
|
14859
15372
|
"required": [
|
|
@@ -15351,6 +15864,14 @@
|
|
|
15351
15864
|
"type": "string"
|
|
15352
15865
|
}
|
|
15353
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
|
+
},
|
|
15354
15875
|
{
|
|
15355
15876
|
"name": "status",
|
|
15356
15877
|
"in": "query",
|
|
@@ -17306,6 +17827,7 @@
|
|
|
17306
17827
|
"summary": "Update a space linked to a site",
|
|
17307
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.",
|
|
17308
17829
|
"x-gitbook-mcp": true,
|
|
17830
|
+
"x-gitbook-return-preference": true,
|
|
17309
17831
|
"tags": [
|
|
17310
17832
|
"site-spaces"
|
|
17311
17833
|
],
|
|
@@ -17328,6 +17850,9 @@
|
|
|
17328
17850
|
},
|
|
17329
17851
|
{
|
|
17330
17852
|
"$ref": "#/components/parameters/siteSpaceId"
|
|
17853
|
+
},
|
|
17854
|
+
{
|
|
17855
|
+
"$ref": "#/components/parameters/returnPreference"
|
|
17331
17856
|
}
|
|
17332
17857
|
],
|
|
17333
17858
|
"requestBody": {
|
|
@@ -17389,6 +17914,14 @@
|
|
|
17389
17914
|
}
|
|
17390
17915
|
}
|
|
17391
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
|
+
}
|
|
17392
17925
|
}
|
|
17393
17926
|
}
|
|
17394
17927
|
},
|
|
@@ -18996,8 +19529,8 @@
|
|
|
18996
19529
|
"/orgs/{organizationId}/sites/{siteId}/styleguide": {
|
|
18997
19530
|
"post": {
|
|
18998
19531
|
"operationId": "createSiteStyleguideById",
|
|
18999
|
-
"summary": "Create or retrieve the
|
|
19000
|
-
"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.",
|
|
19001
19534
|
"x-gitbook-mcp": true,
|
|
19002
19535
|
"tags": [
|
|
19003
19536
|
"sites"
|
|
@@ -19029,7 +19562,7 @@
|
|
|
19029
19562
|
"properties": {
|
|
19030
19563
|
"template": {
|
|
19031
19564
|
"type": "string",
|
|
19032
|
-
"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"
|
|
19033
19566
|
}
|
|
19034
19567
|
}
|
|
19035
19568
|
}
|
|
@@ -19038,7 +19571,7 @@
|
|
|
19038
19571
|
},
|
|
19039
19572
|
"responses": {
|
|
19040
19573
|
"200": {
|
|
19041
|
-
"description": "
|
|
19574
|
+
"description": "Style guide created or already exists.",
|
|
19042
19575
|
"content": {
|
|
19043
19576
|
"application/json": {
|
|
19044
19577
|
"schema": {
|
|
@@ -21132,6 +21665,7 @@
|
|
|
21132
21665
|
"patch": {
|
|
21133
21666
|
"operationId": "updateGitSyncInstallationById",
|
|
21134
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",
|
|
21135
21669
|
"tags": [
|
|
21136
21670
|
"git"
|
|
21137
21671
|
],
|
|
@@ -21189,7 +21723,63 @@
|
|
|
21189
21723
|
"$ref": "#/components/responses/NotFoundError"
|
|
21190
21724
|
},
|
|
21191
21725
|
"409": {
|
|
21192
|
-
"
|
|
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
|
+
}
|
|
21193
21783
|
}
|
|
21194
21784
|
}
|
|
21195
21785
|
},
|
|
@@ -21331,6 +21921,75 @@
|
|
|
21331
21921
|
}
|
|
21332
21922
|
}
|
|
21333
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
|
+
},
|
|
21334
21993
|
"/git/installations/{installationId}/gitlab/projects": {
|
|
21335
21994
|
"get": {
|
|
21336
21995
|
"operationId": "listGitLabProjectsForGitSyncInstallation",
|
|
@@ -21434,6 +22093,67 @@
|
|
|
21434
22093
|
}
|
|
21435
22094
|
}
|
|
21436
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
|
+
}
|
|
21437
22157
|
}
|
|
21438
22158
|
},
|
|
21439
22159
|
"components": {
|
|
@@ -21695,6 +22415,19 @@
|
|
|
21695
22415
|
"$ref": "#/components/schemas/EntityId"
|
|
21696
22416
|
}
|
|
21697
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
|
+
},
|
|
21698
22431
|
"reviewId": {
|
|
21699
22432
|
"name": "reviewId",
|
|
21700
22433
|
"in": "path",
|
|
@@ -22838,6 +23571,191 @@
|
|
|
22838
23571
|
"installationStatus"
|
|
22839
23572
|
]
|
|
22840
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
|
+
},
|
|
22841
23759
|
"VisitorAuthCustomBackend": {
|
|
22842
23760
|
"type": "object",
|
|
22843
23761
|
"title": "Custom backend for authenticated access",
|
|
@@ -22971,7 +23889,7 @@
|
|
|
22971
23889
|
},
|
|
22972
23890
|
"type": {
|
|
22973
23891
|
"type": "string",
|
|
22974
|
-
"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.",
|
|
22975
23893
|
"enum": [
|
|
22976
23894
|
"styleguide"
|
|
22977
23895
|
]
|
|
@@ -23027,6 +23945,13 @@
|
|
|
23027
23945
|
"gitSync": {
|
|
23028
23946
|
"$ref": "#/components/schemas/GitSyncState"
|
|
23029
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
|
+
},
|
|
23030
23955
|
"visitorAuth": {
|
|
23031
23956
|
"$ref": "#/components/schemas/VisitorAuth"
|
|
23032
23957
|
},
|
|
@@ -23415,12 +24340,21 @@
|
|
|
23415
24340
|
"title": {
|
|
23416
24341
|
"type": "string"
|
|
23417
24342
|
},
|
|
24343
|
+
"description": {
|
|
24344
|
+
"type": "string",
|
|
24345
|
+
"description": "Description of the page, suitable for presenting a page-root search destination."
|
|
24346
|
+
},
|
|
23418
24347
|
"path": {
|
|
23419
24348
|
"type": "string"
|
|
23420
24349
|
},
|
|
23421
24350
|
"score": {
|
|
23422
24351
|
"$ref": "#/components/schemas/SearchResultScore"
|
|
23423
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
|
+
},
|
|
23424
24358
|
"resultType": {
|
|
23425
24359
|
"type": "string",
|
|
23426
24360
|
"description": "Whether the page matched on its own fields (title, description) or on the content of one of its sections.",
|
|
@@ -23468,8 +24402,10 @@
|
|
|
23468
24402
|
"required": [
|
|
23469
24403
|
"id",
|
|
23470
24404
|
"title",
|
|
24405
|
+
"description",
|
|
23471
24406
|
"path",
|
|
23472
24407
|
"score",
|
|
24408
|
+
"rank",
|
|
23473
24409
|
"ancestors",
|
|
23474
24410
|
"urls"
|
|
23475
24411
|
]
|
|
@@ -29723,6 +30659,10 @@
|
|
|
29723
30659
|
"type": "object",
|
|
29724
30660
|
"description": "External link associated with a change request.",
|
|
29725
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
|
+
},
|
|
29726
30666
|
"ref": {
|
|
29727
30667
|
"$ref": "#/components/schemas/ContentRefURL"
|
|
29728
30668
|
},
|
|
@@ -29837,6 +30777,10 @@
|
|
|
29837
30777
|
{
|
|
29838
30778
|
"type": "object",
|
|
29839
30779
|
"properties": {
|
|
30780
|
+
"id": {
|
|
30781
|
+
"type": "string",
|
|
30782
|
+
"description": "The ID of the link. Absent on links not yet stored relationally."
|
|
30783
|
+
},
|
|
29840
30784
|
"expanded": {
|
|
29841
30785
|
"$ref": "#/components/schemas/ChangeRequestLinkExpanded",
|
|
29842
30786
|
"readOnly": true
|
|
@@ -29947,6 +30891,13 @@
|
|
|
29947
30891
|
"type": "boolean",
|
|
29948
30892
|
"description": "If true, the change request is not up-to-date with latest changes in the main content."
|
|
29949
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
|
+
},
|
|
29950
30901
|
"links": {
|
|
29951
30902
|
"$ref": "#/components/schemas/ChangeRequestLinks"
|
|
29952
30903
|
},
|
|
@@ -32707,6 +33658,10 @@
|
|
|
32707
33658
|
"description": "If true, invite links are enabled for this organization.",
|
|
32708
33659
|
"type": "boolean"
|
|
32709
33660
|
},
|
|
33661
|
+
"auditLogs": {
|
|
33662
|
+
"description": "Whether audit logs can currently be accessed for this organization.",
|
|
33663
|
+
"type": "boolean"
|
|
33664
|
+
},
|
|
32710
33665
|
"plan": {
|
|
32711
33666
|
"$ref": "#/components/schemas/BillingProduct"
|
|
32712
33667
|
},
|
|
@@ -35177,6 +36132,14 @@
|
|
|
35177
36132
|
"type": "boolean",
|
|
35178
36133
|
"description": "Can the user access the site in the application."
|
|
35179
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
|
+
},
|
|
35180
36143
|
"admin": {
|
|
35181
36144
|
"type": "boolean",
|
|
35182
36145
|
"description": "Can the user edit the site and manage its settings."
|
|
@@ -35197,6 +36160,8 @@
|
|
|
35197
36160
|
"required": [
|
|
35198
36161
|
"view",
|
|
35199
36162
|
"access",
|
|
36163
|
+
"edit",
|
|
36164
|
+
"create",
|
|
35200
36165
|
"admin",
|
|
35201
36166
|
"installIntegration",
|
|
35202
36167
|
"viewAdaptiveSchema",
|
|
@@ -35230,7 +36195,7 @@
|
|
|
35230
36195
|
},
|
|
35231
36196
|
"styleguide": {
|
|
35232
36197
|
"$ref": "#/components/schemas/ContentRefSpace",
|
|
35233
|
-
"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"
|
|
35234
36199
|
},
|
|
35235
36200
|
"features": {
|
|
35236
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",
|
|
@@ -37141,16 +38106,193 @@
|
|
|
37141
38106
|
"deletedSpaces"
|
|
37142
38107
|
]
|
|
37143
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
|
+
},
|
|
37144
38286
|
"OrganizationStyleguide": {
|
|
37145
38287
|
"type": "object",
|
|
37146
|
-
"description": "A
|
|
38288
|
+
"description": "A style guide space and all the sites referencing it.",
|
|
37147
38289
|
"properties": {
|
|
37148
38290
|
"space": {
|
|
37149
38291
|
"$ref": "#/components/schemas/Space"
|
|
37150
38292
|
},
|
|
37151
38293
|
"sites": {
|
|
37152
38294
|
"type": "array",
|
|
37153
|
-
"description": "Sites in the organization that reference this
|
|
38295
|
+
"description": "Sites in the organization that reference this style guide.",
|
|
37154
38296
|
"items": {
|
|
37155
38297
|
"$ref": "#/components/schemas/Site"
|
|
37156
38298
|
}
|
|
@@ -37177,11 +38319,11 @@
|
|
|
37177
38319
|
},
|
|
37178
38320
|
"StyleguideTemplate": {
|
|
37179
38321
|
"type": "object",
|
|
37180
|
-
"description": "A built-in
|
|
38322
|
+
"description": "A built-in style guide starter template used to seed and preview a style guide.",
|
|
37181
38323
|
"properties": {
|
|
37182
38324
|
"id": {
|
|
37183
38325
|
"type": "string",
|
|
37184
|
-
"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."
|
|
37185
38327
|
},
|
|
37186
38328
|
"title": {
|
|
37187
38329
|
"type": "string",
|
|
@@ -39648,7 +40790,8 @@
|
|
|
39648
40790
|
"type": "string",
|
|
39649
40791
|
"enum": [
|
|
39650
40792
|
"customization_font",
|
|
39651
|
-
"import_file"
|
|
40793
|
+
"import_file",
|
|
40794
|
+
"organization_file"
|
|
39652
40795
|
]
|
|
39653
40796
|
},
|
|
39654
40797
|
"StorageUploadURL": {
|
|
@@ -39795,146 +40938,6 @@
|
|
|
39795
40938
|
"minLength": 1,
|
|
39796
40939
|
"maxLength": 512
|
|
39797
40940
|
},
|
|
39798
|
-
"ContentImportSource": {
|
|
39799
|
-
"oneOf": [
|
|
39800
|
-
{
|
|
39801
|
-
"type": "object",
|
|
39802
|
-
"properties": {
|
|
39803
|
-
"type": {
|
|
39804
|
-
"type": "string",
|
|
39805
|
-
"enum": [
|
|
39806
|
-
"website"
|
|
39807
|
-
]
|
|
39808
|
-
},
|
|
39809
|
-
"url": {
|
|
39810
|
-
"$ref": "#/components/schemas/URL"
|
|
39811
|
-
}
|
|
39812
|
-
},
|
|
39813
|
-
"required": [
|
|
39814
|
-
"type",
|
|
39815
|
-
"url"
|
|
39816
|
-
]
|
|
39817
|
-
},
|
|
39818
|
-
{
|
|
39819
|
-
"type": "object",
|
|
39820
|
-
"properties": {
|
|
39821
|
-
"type": {
|
|
39822
|
-
"type": "string",
|
|
39823
|
-
"enum": [
|
|
39824
|
-
"file"
|
|
39825
|
-
]
|
|
39826
|
-
},
|
|
39827
|
-
"files": {
|
|
39828
|
-
"description": "Files to import",
|
|
39829
|
-
"type": "array",
|
|
39830
|
-
"maxItems": 50,
|
|
39831
|
-
"items": {
|
|
39832
|
-
"description": "Key of file",
|
|
39833
|
-
"type": "string"
|
|
39834
|
-
}
|
|
39835
|
-
}
|
|
39836
|
-
},
|
|
39837
|
-
"required": [
|
|
39838
|
-
"type",
|
|
39839
|
-
"files"
|
|
39840
|
-
]
|
|
39841
|
-
}
|
|
39842
|
-
]
|
|
39843
|
-
},
|
|
39844
|
-
"ContentImportTarget": {
|
|
39845
|
-
"type": "object",
|
|
39846
|
-
"properties": {
|
|
39847
|
-
"space": {
|
|
39848
|
-
"type": "string",
|
|
39849
|
-
"description": "ID of the space to import in"
|
|
39850
|
-
},
|
|
39851
|
-
"changeRequest": {
|
|
39852
|
-
"type": "string",
|
|
39853
|
-
"description": "ID of the change request to import in"
|
|
39854
|
-
},
|
|
39855
|
-
"page": {
|
|
39856
|
-
"type": "string",
|
|
39857
|
-
"description": "ID of the page to import in"
|
|
39858
|
-
}
|
|
39859
|
-
},
|
|
39860
|
-
"required": [
|
|
39861
|
-
"space"
|
|
39862
|
-
]
|
|
39863
|
-
},
|
|
39864
|
-
"ContentImportRun": {
|
|
39865
|
-
"type": "object",
|
|
39866
|
-
"properties": {
|
|
39867
|
-
"id": {
|
|
39868
|
-
"description": "Unique ID of the import",
|
|
39869
|
-
"type": "string"
|
|
39870
|
-
},
|
|
39871
|
-
"startedAt": {
|
|
39872
|
-
"description": "Date when the import has started",
|
|
39873
|
-
"$ref": "#/components/schemas/Timestamp"
|
|
39874
|
-
},
|
|
39875
|
-
"completedAt": {
|
|
39876
|
-
"description": "Filled when the imported is in status \"completed\"",
|
|
39877
|
-
"$ref": "#/components/schemas/Timestamp"
|
|
39878
|
-
},
|
|
39879
|
-
"status": {
|
|
39880
|
-
"description": "Status of the import",
|
|
39881
|
-
"type": "string",
|
|
39882
|
-
"enum": [
|
|
39883
|
-
"pending",
|
|
39884
|
-
"in-progress",
|
|
39885
|
-
"completed",
|
|
39886
|
-
"failed",
|
|
39887
|
-
"cancelled"
|
|
39888
|
-
]
|
|
39889
|
-
},
|
|
39890
|
-
"reason": {
|
|
39891
|
-
"description": "Reason for the import failure when `status` is `failed`.",
|
|
39892
|
-
"type": "string"
|
|
39893
|
-
},
|
|
39894
|
-
"pages": {
|
|
39895
|
-
"description": "Pages included in the import",
|
|
39896
|
-
"type": "array",
|
|
39897
|
-
"items": {
|
|
39898
|
-
"type": "object",
|
|
39899
|
-
"properties": {
|
|
39900
|
-
"id": {
|
|
39901
|
-
"description": "ID of page",
|
|
39902
|
-
"type": "string"
|
|
39903
|
-
},
|
|
39904
|
-
"sourceURL": {
|
|
39905
|
-
"description": "Source URL where the page has been imported from",
|
|
39906
|
-
"type": "string"
|
|
39907
|
-
},
|
|
39908
|
-
"type": {
|
|
39909
|
-
"description": "Type of page",
|
|
39910
|
-
"type": "string",
|
|
39911
|
-
"enum": [
|
|
39912
|
-
"page",
|
|
39913
|
-
"folder"
|
|
39914
|
-
]
|
|
39915
|
-
},
|
|
39916
|
-
"status": {
|
|
39917
|
-
"description": "Status of the page",
|
|
39918
|
-
"type": "string",
|
|
39919
|
-
"enum": [
|
|
39920
|
-
"complete",
|
|
39921
|
-
"pending"
|
|
39922
|
-
]
|
|
39923
|
-
}
|
|
39924
|
-
},
|
|
39925
|
-
"required": [
|
|
39926
|
-
"id",
|
|
39927
|
-
"type",
|
|
39928
|
-
"status"
|
|
39929
|
-
]
|
|
39930
|
-
}
|
|
39931
|
-
}
|
|
39932
|
-
},
|
|
39933
|
-
"required": [
|
|
39934
|
-
"id",
|
|
39935
|
-
"status"
|
|
39936
|
-
]
|
|
39937
|
-
},
|
|
39938
40941
|
"SitePublishOperationPreviewResponse": {
|
|
39939
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",
|
|
39940
40943
|
"oneOf": [
|
|
@@ -40819,6 +41822,20 @@
|
|
|
40819
41822
|
}
|
|
40820
41823
|
]
|
|
40821
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
|
+
},
|
|
40822
41839
|
"CustomizationDefaultMonospaceFont": {
|
|
40823
41840
|
"type": "string",
|
|
40824
41841
|
"enum": [
|
|
@@ -41324,6 +42341,9 @@
|
|
|
41324
42341
|
"font": {
|
|
41325
42342
|
"$ref": "#/components/schemas/CustomizationFont"
|
|
41326
42343
|
},
|
|
42344
|
+
"headingFont": {
|
|
42345
|
+
"$ref": "#/components/schemas/CustomizationHeadingFont"
|
|
42346
|
+
},
|
|
41327
42347
|
"monospaceFont": {
|
|
41328
42348
|
"$ref": "#/components/schemas/CustomizationMonospaceFont"
|
|
41329
42349
|
},
|
|
@@ -42114,6 +43134,14 @@
|
|
|
42114
43134
|
"maxLength": 1024,
|
|
42115
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."
|
|
42116
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
|
+
},
|
|
42117
43145
|
"SiteInsightsSession": {
|
|
42118
43146
|
"type": "object",
|
|
42119
43147
|
"description": "Identifiers for a GitBook site session, used for analytics and adaptive content.",
|
|
@@ -43076,6 +44104,17 @@
|
|
|
43076
44104
|
"failed"
|
|
43077
44105
|
]
|
|
43078
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
|
+
},
|
|
43079
44118
|
"ContextSearchBoost": {
|
|
43080
44119
|
"type": "string",
|
|
43081
44120
|
"description": "Relative score adjustment applied to records from a connection when searching.",
|
|
@@ -43643,6 +44682,9 @@
|
|
|
43643
44682
|
"type": "string",
|
|
43644
44683
|
"description": "Failure message when synchronization fails"
|
|
43645
44684
|
},
|
|
44685
|
+
"failureReason": {
|
|
44686
|
+
"$ref": "#/components/schemas/ContextConnectionFailureReason"
|
|
44687
|
+
},
|
|
43646
44688
|
"email": {
|
|
43647
44689
|
"type": "object",
|
|
43648
44690
|
"description": "Parameters associated with the connection when it is an email connection",
|
|
@@ -45077,6 +46119,87 @@
|
|
|
45077
46119
|
"commentId"
|
|
45078
46120
|
]
|
|
45079
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
|
+
},
|
|
45080
46203
|
"AIToolCallMCP": {
|
|
45081
46204
|
"type": "object",
|
|
45082
46205
|
"description": "Tool called from an MCP server",
|
|
@@ -45225,6 +46348,12 @@
|
|
|
45225
46348
|
{
|
|
45226
46349
|
"$ref": "#/components/schemas/AIToolCallSubmitChangeRequestReview"
|
|
45227
46350
|
},
|
|
46351
|
+
{
|
|
46352
|
+
"$ref": "#/components/schemas/AIToolCallStartContentImport"
|
|
46353
|
+
},
|
|
46354
|
+
{
|
|
46355
|
+
"$ref": "#/components/schemas/AIToolCallCheckContentImport"
|
|
46356
|
+
},
|
|
45228
46357
|
{
|
|
45229
46358
|
"$ref": "#/components/schemas/AIToolCallMCP"
|
|
45230
46359
|
},
|
|
@@ -45306,6 +46435,35 @@
|
|
|
45306
46435
|
"contentType"
|
|
45307
46436
|
]
|
|
45308
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
|
+
},
|
|
45309
46467
|
"AIAttachment": {
|
|
45310
46468
|
"oneOf": [
|
|
45311
46469
|
{
|
|
@@ -45313,6 +46471,9 @@
|
|
|
45313
46471
|
},
|
|
45314
46472
|
{
|
|
45315
46473
|
"$ref": "#/components/schemas/AIAttachmentFile"
|
|
46474
|
+
},
|
|
46475
|
+
{
|
|
46476
|
+
"$ref": "#/components/schemas/AIAttachmentImportFile"
|
|
45316
46477
|
}
|
|
45317
46478
|
]
|
|
45318
46479
|
},
|
|
@@ -47711,6 +48872,20 @@
|
|
|
47711
48872
|
}
|
|
47712
48873
|
}
|
|
47713
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
|
+
},
|
|
47714
48889
|
{
|
|
47715
48890
|
"type": "object",
|
|
47716
48891
|
"required": [
|
|
@@ -47907,6 +49082,21 @@
|
|
|
47907
49082
|
}
|
|
47908
49083
|
}
|
|
47909
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
|
+
},
|
|
47910
49100
|
{
|
|
47911
49101
|
"type": "object",
|
|
47912
49102
|
"required": [
|
|
@@ -48074,6 +49264,13 @@
|
|
|
48074
49264
|
"opencode"
|
|
48075
49265
|
]
|
|
48076
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
|
+
},
|
|
48077
49274
|
"SiteInsightsQueryEventsValues": {
|
|
48078
49275
|
"oneOf": [
|
|
48079
49276
|
{
|
|
@@ -48294,6 +49491,30 @@
|
|
|
48294
49491
|
}
|
|
48295
49492
|
}
|
|
48296
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
|
+
},
|
|
48297
49518
|
{
|
|
48298
49519
|
"type": "object",
|
|
48299
49520
|
"required": [
|
|
@@ -48534,6 +49755,34 @@
|
|
|
48534
49755
|
}
|
|
48535
49756
|
}
|
|
48536
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
|
+
},
|
|
48537
49786
|
{
|
|
48538
49787
|
"type": "object",
|
|
48539
49788
|
"required": [
|
|
@@ -50599,6 +51848,30 @@
|
|
|
50599
51848
|
"ref"
|
|
50600
51849
|
]
|
|
50601
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
|
+
},
|
|
50602
51875
|
"GitSyncGitLabProject": {
|
|
50603
51876
|
"type": "object",
|
|
50604
51877
|
"description": "GitLab project that can be selected for Git Sync.",
|
|
@@ -51612,7 +52885,7 @@
|
|
|
51612
52885
|
},
|
|
51613
52886
|
"key": {
|
|
51614
52887
|
"type": "string",
|
|
51615
|
-
"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",
|
|
51616
52889
|
"minLength": 1
|
|
51617
52890
|
},
|
|
51618
52891
|
"title": {
|
|
@@ -51652,7 +52925,7 @@
|
|
|
51652
52925
|
"GitSyncSiteStructureSpace": {
|
|
51653
52926
|
"type": "object",
|
|
51654
52927
|
"additionalProperties": false,
|
|
51655
|
-
"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",
|
|
51656
52929
|
"properties": {
|
|
51657
52930
|
"type": {
|
|
51658
52931
|
"type": "string",
|
|
@@ -51678,7 +52951,7 @@
|
|
|
51678
52951
|
},
|
|
51679
52952
|
"default": {
|
|
51680
52953
|
"type": "boolean",
|
|
51681
|
-
"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"
|
|
51682
52955
|
},
|
|
51683
52956
|
"hidden": {
|
|
51684
52957
|
"type": "boolean",
|
|
@@ -51700,7 +52973,7 @@
|
|
|
51700
52973
|
"oneOf": [
|
|
51701
52974
|
{
|
|
51702
52975
|
"type": "string",
|
|
51703
|
-
"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",
|
|
51704
52977
|
"minLength": 1
|
|
51705
52978
|
},
|
|
51706
52979
|
{
|
|
@@ -51729,7 +53002,7 @@
|
|
|
51729
53002
|
"GitSyncSiteStructureSection": {
|
|
51730
53003
|
"type": "object",
|
|
51731
53004
|
"additionalProperties": false,
|
|
51732
|
-
"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",
|
|
51733
53006
|
"properties": {
|
|
51734
53007
|
"type": {
|
|
51735
53008
|
"type": "string",
|
|
@@ -51799,15 +53072,20 @@
|
|
|
51799
53072
|
},
|
|
51800
53073
|
"GitSyncSiteStructure": {
|
|
51801
53074
|
"type": "array",
|
|
51802
|
-
"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",
|
|
51803
53076
|
"items": {
|
|
51804
53077
|
"$ref": "#/components/schemas/GitSyncSiteStructureNode"
|
|
51805
53078
|
}
|
|
51806
53079
|
},
|
|
51807
53080
|
"GitSyncSiteConfig": {
|
|
51808
53081
|
"type": "object",
|
|
51809
|
-
"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",
|
|
51810
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
|
+
},
|
|
51811
53089
|
"version": {
|
|
51812
53090
|
"type": "integer",
|
|
51813
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",
|
|
@@ -54524,18 +55802,42 @@
|
|
|
54524
55802
|
}
|
|
54525
55803
|
}
|
|
54526
55804
|
},
|
|
54527
|
-
"
|
|
54528
|
-
"description": "
|
|
55805
|
+
"UnauthorizedError": {
|
|
55806
|
+
"description": "Unauthorized",
|
|
54529
55807
|
"content": {
|
|
54530
55808
|
"application/json": {
|
|
54531
55809
|
"schema": {
|
|
54532
|
-
"
|
|
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
|
+
}
|
|
54533
55835
|
}
|
|
54534
55836
|
}
|
|
54535
55837
|
}
|
|
54536
55838
|
},
|
|
54537
|
-
"
|
|
54538
|
-
"description": "
|
|
55839
|
+
"ForbiddenError": {
|
|
55840
|
+
"description": "Forbidden",
|
|
54539
55841
|
"content": {
|
|
54540
55842
|
"application/json": {
|
|
54541
55843
|
"schema": {
|
|
@@ -54551,7 +55853,7 @@
|
|
|
54551
55853
|
"type": "integer",
|
|
54552
55854
|
"format": "int32",
|
|
54553
55855
|
"enum": [
|
|
54554
|
-
|
|
55856
|
+
403
|
|
54555
55857
|
]
|
|
54556
55858
|
},
|
|
54557
55859
|
"message": {
|
|
@@ -54567,6 +55869,27 @@
|
|
|
54567
55869
|
}
|
|
54568
55870
|
}
|
|
54569
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
|
+
}
|
|
54570
55893
|
}
|
|
54571
55894
|
}
|
|
54572
55895
|
}
|