@gitbook/api 0.193.0 → 0.194.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 +251 -15
- package/dist/constants.d.ts +2 -2
- package/dist/index.cjs +15 -4
- package/dist/index.js +14 -4
- package/package.json +1 -1
- package/spec/openapi.json +664 -13
- package/spec/openapi.yaml +471 -9
package/spec/openapi.yaml
CHANGED
|
@@ -2375,6 +2375,7 @@ paths:
|
|
|
2375
2375
|
summary: Apply a batch of content changes to a change request
|
|
2376
2376
|
description: |-
|
|
2377
2377
|
Applies an ordered array of content changes (up to 50) to the change request atomically, creating a single new revision. Changes are applied sequentially; if any single change is invalid the entire batch is rejected and no revision is created. Use this to create, update, move, or delete pages within a change request before merging to live. This is the primary way to programmatically author content in a change request.
|
|
2378
|
+
To put an image or attachment in a page, upload it with an `insert_files` change. Give the file a `ref` and a page inserted in the same batch can reference it as `` or `[File](./<ref>)`, which resolves to the file's ID at apply time regardless of operation order. Uploaded files are also listed as `insertedFiles` when `compat=false`, and a file already in the change request can be referenced directly as `/files/<fileId>`. Inline `data:` URIs in markdown are not ingested and large image blocks are dropped, so upload the bytes with `insert_files` instead.
|
|
2378
2379
|
When page content is provided as markdown, links to other pages are resolved against the change request's current page tree. You can link a page by:
|
|
2379
2380
|
- Page ID — `/pages/<pageId>` (also `/pages/<pageId>#anchor`).
|
|
2380
2381
|
- Page slug path — `/pages/<slug>` for a top-level page, or `/pages/<parent-slug>/<slug>`
|
|
@@ -8686,6 +8687,18 @@ paths:
|
|
|
8686
8687
|
oneOf:
|
|
8687
8688
|
- $ref: "#/components/schemas/SiteTriageFilterQuestions"
|
|
8688
8689
|
- $ref: "#/components/schemas/SiteTriageFilterConnections"
|
|
8690
|
+
- name: updatedAfter
|
|
8691
|
+
in: query
|
|
8692
|
+
description: Only return findings last updated at or after this date.
|
|
8693
|
+
schema:
|
|
8694
|
+
type: string
|
|
8695
|
+
format: date-time
|
|
8696
|
+
- name: updatedBefore
|
|
8697
|
+
in: query
|
|
8698
|
+
description: Only return findings last updated before this date.
|
|
8699
|
+
schema:
|
|
8700
|
+
type: string
|
|
8701
|
+
format: date-time
|
|
8689
8702
|
- name: orderBy
|
|
8690
8703
|
in: query
|
|
8691
8704
|
description: Sort findings by the given field.
|
|
@@ -11830,7 +11843,15 @@ paths:
|
|
|
11830
11843
|
content:
|
|
11831
11844
|
application/json:
|
|
11832
11845
|
schema:
|
|
11833
|
-
|
|
11846
|
+
allOf:
|
|
11847
|
+
- $ref: "#/components/schemas/GitSyncInstallationSetup"
|
|
11848
|
+
- type: object
|
|
11849
|
+
properties:
|
|
11850
|
+
childInstallationProjectDirectories:
|
|
11851
|
+
type: object
|
|
11852
|
+
description: Project directories keyed by child installation ID for a site installation.
|
|
11853
|
+
additionalProperties:
|
|
11854
|
+
type: string
|
|
11834
11855
|
responses:
|
|
11835
11856
|
"200":
|
|
11836
11857
|
description: Git Sync installation was updated successfully
|
|
@@ -18195,7 +18216,7 @@ components:
|
|
|
18195
18216
|
|
|
18196
18217
|
This is a markdown document linking to [another page](/pages/page_id).
|
|
18197
18218
|
ChangeRequestContentChangeInsertPage:
|
|
18198
|
-
description: Insert a new page into the change request.
|
|
18219
|
+
description: Insert a new page into the change request. The title is taken from `title`, or, when the document is markdown, from the document's frontmatter or leading heading (which take precedence, matching Git Sync). When no title can be resolved, the page falls back to a default title.
|
|
18199
18220
|
allOf:
|
|
18200
18221
|
- $ref: "#/components/schemas/RevisionPageUpdate"
|
|
18201
18222
|
- type: object
|
|
@@ -18270,12 +18291,68 @@ components:
|
|
|
18270
18291
|
example:
|
|
18271
18292
|
operation: revert_page
|
|
18272
18293
|
page: page_id
|
|
18294
|
+
ChangeRequestContentChangeInsertFiles:
|
|
18295
|
+
type: object
|
|
18296
|
+
description: Upload files (images or attachments) into the change request. A document references one as `` or `[Label](/files/<fileId>)` — use a `ref` to reference it from a later change in the same batch, or read the generated IDs from `insertedFiles`.
|
|
18297
|
+
required:
|
|
18298
|
+
- operation
|
|
18299
|
+
- files
|
|
18300
|
+
properties:
|
|
18301
|
+
operation:
|
|
18302
|
+
type: string
|
|
18303
|
+
enum:
|
|
18304
|
+
- insert_files
|
|
18305
|
+
files:
|
|
18306
|
+
type: array
|
|
18307
|
+
minItems: 1
|
|
18308
|
+
maxItems: 20
|
|
18309
|
+
items:
|
|
18310
|
+
type: object
|
|
18311
|
+
description: "A file to upload. Set exactly one source: `url` (GitBook fetches it) or `base64` (inline bytes, max 1MB). Prefer `url`."
|
|
18312
|
+
required:
|
|
18313
|
+
- name
|
|
18314
|
+
properties:
|
|
18315
|
+
ref:
|
|
18316
|
+
type: string
|
|
18317
|
+
description: Temporary local reference for the file, used only for the lifetime of this request and never persisted. Pages inserted in the same batch can link to this file by its ref (e.g. `[File](./<ref>)`), which resolves to the file's ID at apply time — regardless of operation order or the file's eventual path. A ref must be unique within the batch and must not collide a page ref in the batch or an existing page path.
|
|
18318
|
+
name:
|
|
18319
|
+
type: string
|
|
18320
|
+
minLength: 1
|
|
18321
|
+
maxLength: 256
|
|
18322
|
+
description: Filename to store the file under, including its extension.
|
|
18323
|
+
contentType:
|
|
18324
|
+
type: string
|
|
18325
|
+
description: MIME type. Required with `base64`; overrides the source's own type otherwise.
|
|
18326
|
+
oneOf:
|
|
18327
|
+
- type: object
|
|
18328
|
+
properties:
|
|
18329
|
+
url:
|
|
18330
|
+
type: string
|
|
18331
|
+
format: uri
|
|
18332
|
+
maxLength: 2048
|
|
18333
|
+
description: Public http(s) URL to fetch the file from. A URL resolving to a private or reserved address is rejected — send internally hosted bytes with `base64` instead.
|
|
18334
|
+
required:
|
|
18335
|
+
- url
|
|
18336
|
+
- type: object
|
|
18337
|
+
properties:
|
|
18338
|
+
base64:
|
|
18339
|
+
type: string
|
|
18340
|
+
description: Base64-encoded bytes, max 1MB. Requires `contentType`.
|
|
18341
|
+
required:
|
|
18342
|
+
- base64
|
|
18343
|
+
example:
|
|
18344
|
+
operation: insert_files
|
|
18345
|
+
files:
|
|
18346
|
+
- ref: architecture.png
|
|
18347
|
+
name: architecture.png
|
|
18348
|
+
url: https://example.com/architecture.png
|
|
18273
18349
|
ChangeRequestContentChange:
|
|
18274
18350
|
oneOf:
|
|
18275
18351
|
- $ref: "#/components/schemas/ChangeRequestContentChangeUpdatePage"
|
|
18276
18352
|
- $ref: "#/components/schemas/ChangeRequestContentChangeInsertPage"
|
|
18277
18353
|
- $ref: "#/components/schemas/ChangeRequestContentChangeDeletePage"
|
|
18278
18354
|
- $ref: "#/components/schemas/ChangeRequestContentChangeRevertPage"
|
|
18355
|
+
- $ref: "#/components/schemas/ChangeRequestContentChangeInsertFiles"
|
|
18279
18356
|
discriminator:
|
|
18280
18357
|
propertyName: operation
|
|
18281
18358
|
mapping:
|
|
@@ -18283,6 +18360,7 @@ components:
|
|
|
18283
18360
|
insert_page: "#/components/schemas/ChangeRequestContentChangeInsertPage"
|
|
18284
18361
|
delete_page: "#/components/schemas/ChangeRequestContentChangeDeletePage"
|
|
18285
18362
|
revert_page: "#/components/schemas/ChangeRequestContentChangeRevertPage"
|
|
18363
|
+
insert_files: "#/components/schemas/ChangeRequestContentChangeInsertFiles"
|
|
18286
18364
|
ChangeRequestContentUpdatePageRef:
|
|
18287
18365
|
type: object
|
|
18288
18366
|
required:
|
|
@@ -18381,6 +18459,11 @@ components:
|
|
|
18381
18459
|
description: One entry per affected page (deduplicated), in the order the pages were first touched by the batch.
|
|
18382
18460
|
items:
|
|
18383
18461
|
$ref: "#/components/schemas/ChangeRequestContentUpdateChange"
|
|
18462
|
+
insertedFiles:
|
|
18463
|
+
type: array
|
|
18464
|
+
description: Files created by the `insert_files` changes in this batch, in the order they were inserted. Use their IDs to reference them from a document.
|
|
18465
|
+
items:
|
|
18466
|
+
$ref: "#/components/schemas/RevisionFile"
|
|
18384
18467
|
RevisionPageType:
|
|
18385
18468
|
type: string
|
|
18386
18469
|
enum:
|
|
@@ -19210,6 +19293,15 @@ components:
|
|
|
19210
19293
|
type: boolean
|
|
19211
19294
|
required:
|
|
19212
19295
|
- enabled
|
|
19296
|
+
BillingCreditsBundle:
|
|
19297
|
+
type: string
|
|
19298
|
+
description: The AI credit bundle to top up every month
|
|
19299
|
+
enum:
|
|
19300
|
+
- none
|
|
19301
|
+
- 13500_1500
|
|
19302
|
+
- 24000_6000
|
|
19303
|
+
- 42000_18000
|
|
19304
|
+
- 65000_35000
|
|
19213
19305
|
OrganizationBilling:
|
|
19214
19306
|
type: object
|
|
19215
19307
|
properties:
|
|
@@ -19271,6 +19363,11 @@ components:
|
|
|
19271
19363
|
canUseSAML:
|
|
19272
19364
|
description: Whether configuring SAML is allowed
|
|
19273
19365
|
type: boolean
|
|
19366
|
+
creditsBundle:
|
|
19367
|
+
description: The AI credit bundle the organization tops up every month, or null when the organization is not billed for AI usage. `none` means pay as you go.
|
|
19368
|
+
oneOf:
|
|
19369
|
+
- $ref: "#/components/schemas/BillingCreditsBundle"
|
|
19370
|
+
- type: "null"
|
|
19274
19371
|
required:
|
|
19275
19372
|
- interval
|
|
19276
19373
|
- endDate
|
|
@@ -19281,6 +19378,7 @@ components:
|
|
|
19281
19378
|
- usageAddons
|
|
19282
19379
|
- canChangeInterval
|
|
19283
19380
|
- canUseSAML
|
|
19381
|
+
- creditsBundle
|
|
19284
19382
|
BillingTrialStatus:
|
|
19285
19383
|
type: string
|
|
19286
19384
|
description: |
|
|
@@ -20898,6 +20996,7 @@ components:
|
|
|
20898
20996
|
- sites-ai-assistant
|
|
20899
20997
|
- sites-ai-insights
|
|
20900
20998
|
- sites-connections
|
|
20999
|
+
- sites-content-gaps
|
|
20901
21000
|
- sites-channels
|
|
20902
21001
|
- sites-embed
|
|
20903
21002
|
- sites-api-playground
|
|
@@ -21025,6 +21124,12 @@ components:
|
|
|
21025
21124
|
createdAt:
|
|
21026
21125
|
type: string
|
|
21027
21126
|
format: date-time
|
|
21127
|
+
lastScanAt:
|
|
21128
|
+
type: string
|
|
21129
|
+
format: date-time
|
|
21130
|
+
description: |
|
|
21131
|
+
When GitBook last completed a scan of the site's content
|
|
21132
|
+
gaps. Absent until the site has been scanned at least once.
|
|
21028
21133
|
adaptiveContent:
|
|
21029
21134
|
$ref: "#/components/schemas/SiteAdaptiveContent"
|
|
21030
21135
|
ads:
|
|
@@ -22643,6 +22748,8 @@ components:
|
|
|
22643
22748
|
Optional usage addons to apply when upgrading: - if set, apply provided billable addons (non-billable meters are ignored) - if omitted, keep current subscription addons (or billing addons for new subs) - if omitted during interval switch, keep addon selection and switch addon price interval - if empty, or all provided meters are ignored, remove all existing billable addons
|
|
22644
22749
|
items:
|
|
22645
22750
|
$ref: "#/components/schemas/BillingMeter"
|
|
22751
|
+
creditsBundle:
|
|
22752
|
+
$ref: "#/components/schemas/BillingCreditsBundle"
|
|
22646
22753
|
mode:
|
|
22647
22754
|
type: string
|
|
22648
22755
|
description: |
|
|
@@ -22653,6 +22760,75 @@ components:
|
|
|
22653
22760
|
required:
|
|
22654
22761
|
- product
|
|
22655
22762
|
- interval
|
|
22763
|
+
BillingInvoiceSummaryLine:
|
|
22764
|
+
type: object
|
|
22765
|
+
description: A product line of an invoice, enriched and normalized for the billing summary UI.
|
|
22766
|
+
properties:
|
|
22767
|
+
description:
|
|
22768
|
+
description: How Stripe describes the line, as a fallback for lines the client cannot label itself.
|
|
22769
|
+
type: string
|
|
22770
|
+
amount:
|
|
22771
|
+
type: number
|
|
22772
|
+
quantity:
|
|
22773
|
+
description: How many units the line bills, such as the number of members.
|
|
22774
|
+
type: number
|
|
22775
|
+
siteType:
|
|
22776
|
+
description: Which kind of site a `sites` line bills for.
|
|
22777
|
+
$ref: "#/components/schemas/SiteType"
|
|
22778
|
+
unitAmount:
|
|
22779
|
+
description: Price of a single unit, over the period the line covers.
|
|
22780
|
+
type: number
|
|
22781
|
+
periodStart:
|
|
22782
|
+
$ref: "#/components/schemas/Timestamp"
|
|
22783
|
+
periodEnd:
|
|
22784
|
+
$ref: "#/components/schemas/Timestamp"
|
|
22785
|
+
category:
|
|
22786
|
+
type: string
|
|
22787
|
+
description: What the invoice line is billing for, so a preview can be grouped by product area.
|
|
22788
|
+
enum:
|
|
22789
|
+
- members
|
|
22790
|
+
- sites
|
|
22791
|
+
- addons
|
|
22792
|
+
- credits
|
|
22793
|
+
- usage
|
|
22794
|
+
- watermark_removal
|
|
22795
|
+
- other
|
|
22796
|
+
required:
|
|
22797
|
+
- amount
|
|
22798
|
+
- description
|
|
22799
|
+
- periodStart
|
|
22800
|
+
- periodEnd
|
|
22801
|
+
- category
|
|
22802
|
+
BillingInvoiceAdjustment:
|
|
22803
|
+
type: object
|
|
22804
|
+
description: An amount adjusting an invoice, summed across everything of its type.
|
|
22805
|
+
properties:
|
|
22806
|
+
type:
|
|
22807
|
+
type: string
|
|
22808
|
+
description: What adjusts the amount an invoice bills, beyond the products it lists. `proration` is the net of the mid-period changes, and `balance` the credit applied from the customer's balance.
|
|
22809
|
+
enum:
|
|
22810
|
+
- proration
|
|
22811
|
+
- watermark_removal
|
|
22812
|
+
- balance
|
|
22813
|
+
amount:
|
|
22814
|
+
description: The adjustment, negative when it reduces the amount billed.
|
|
22815
|
+
type: number
|
|
22816
|
+
required:
|
|
22817
|
+
- type
|
|
22818
|
+
- amount
|
|
22819
|
+
BillingCreditsTotals:
|
|
22820
|
+
type: object
|
|
22821
|
+
description: A total of AI credits, and how much of it is left.
|
|
22822
|
+
properties:
|
|
22823
|
+
grantedCredits:
|
|
22824
|
+
description: Credits granted for the current AI billing period.
|
|
22825
|
+
type: number
|
|
22826
|
+
remainingCredits:
|
|
22827
|
+
description: Credits still available of those granted.
|
|
22828
|
+
type: number
|
|
22829
|
+
required:
|
|
22830
|
+
- grantedCredits
|
|
22831
|
+
- remainingCredits
|
|
22656
22832
|
BillingInvoicePreview:
|
|
22657
22833
|
type: object
|
|
22658
22834
|
properties:
|
|
@@ -22690,6 +22866,154 @@ components:
|
|
|
22690
22866
|
- description
|
|
22691
22867
|
- periodStart
|
|
22692
22868
|
- periodEnd
|
|
22869
|
+
summary:
|
|
22870
|
+
type: object
|
|
22871
|
+
description: Structured representation of the invoice for the current billing summary UI.
|
|
22872
|
+
properties:
|
|
22873
|
+
lines:
|
|
22874
|
+
type: array
|
|
22875
|
+
description: Product lines enriched and normalized for the billing summary UI.
|
|
22876
|
+
items:
|
|
22877
|
+
$ref: "#/components/schemas/BillingInvoiceSummaryLine"
|
|
22878
|
+
adjustments:
|
|
22879
|
+
type: array
|
|
22880
|
+
description: What adjusts the amount billed beyond the products listed, each summed across its type. Only the ones that apply are returned.
|
|
22881
|
+
items:
|
|
22882
|
+
$ref: "#/components/schemas/BillingInvoiceAdjustment"
|
|
22883
|
+
creditGrants:
|
|
22884
|
+
type: array
|
|
22885
|
+
description: AI credits available for the current AI billing period. Empty when the organization is not billed for AI usage.
|
|
22886
|
+
items:
|
|
22887
|
+
type: object
|
|
22888
|
+
description: AI credits granted to the organization for the current AI billing period.
|
|
22889
|
+
properties:
|
|
22890
|
+
type:
|
|
22891
|
+
type: string
|
|
22892
|
+
description: Where the credits come from. `paid` is the credits the monthly bundle pays for, `bonus` the ones included with it, `site` the allowance of the organization's published paid sites, and `rollover` what was left of the previous period.
|
|
22893
|
+
enum:
|
|
22894
|
+
- paid
|
|
22895
|
+
- bonus
|
|
22896
|
+
- site
|
|
22897
|
+
- rollover
|
|
22898
|
+
grantedCredits:
|
|
22899
|
+
description: Credits the grant was created with.
|
|
22900
|
+
type: number
|
|
22901
|
+
usedCredits:
|
|
22902
|
+
description: Credits of the grant spent by the usage metered so far.
|
|
22903
|
+
type: number
|
|
22904
|
+
remainingCredits:
|
|
22905
|
+
description: Credits of the grant still available.
|
|
22906
|
+
type: number
|
|
22907
|
+
sites:
|
|
22908
|
+
description: For a `site` grant, the published sites the credits come from.
|
|
22909
|
+
type: array
|
|
22910
|
+
items:
|
|
22911
|
+
type: object
|
|
22912
|
+
description: The published sites of one type that the grant comes from.
|
|
22913
|
+
properties:
|
|
22914
|
+
siteType:
|
|
22915
|
+
$ref: "#/components/schemas/SiteType"
|
|
22916
|
+
count:
|
|
22917
|
+
description: How many sites of this type are published.
|
|
22918
|
+
type: number
|
|
22919
|
+
creditsPerSite:
|
|
22920
|
+
description: Credits included with one site of this type.
|
|
22921
|
+
type: number
|
|
22922
|
+
grantedCredits:
|
|
22923
|
+
description: Credits these sites contribute to the grant.
|
|
22924
|
+
type: number
|
|
22925
|
+
required:
|
|
22926
|
+
- siteType
|
|
22927
|
+
- count
|
|
22928
|
+
- creditsPerSite
|
|
22929
|
+
- grantedCredits
|
|
22930
|
+
required:
|
|
22931
|
+
- type
|
|
22932
|
+
- grantedCredits
|
|
22933
|
+
- usedCredits
|
|
22934
|
+
- remainingCredits
|
|
22935
|
+
credits:
|
|
22936
|
+
type: object
|
|
22937
|
+
description: The AI credits of the current billing period, grouped the ways the billing screens display them.
|
|
22938
|
+
properties:
|
|
22939
|
+
grantedCredits:
|
|
22940
|
+
description: Credits granted across every grant.
|
|
22941
|
+
type: number
|
|
22942
|
+
usedCredits:
|
|
22943
|
+
description: Credits spent by the usage metered so far.
|
|
22944
|
+
type: number
|
|
22945
|
+
remainingCredits:
|
|
22946
|
+
description: Credits still available across every grant.
|
|
22947
|
+
type: number
|
|
22948
|
+
coveredAmount:
|
|
22949
|
+
description: Part of the metered AI usage paid by credits rather than billed, as a positive amount.
|
|
22950
|
+
type: number
|
|
22951
|
+
paid:
|
|
22952
|
+
description: The credits the organization pays for.
|
|
22953
|
+
$ref: "#/components/schemas/BillingCreditsTotals"
|
|
22954
|
+
free:
|
|
22955
|
+
description: The credits included at no extra cost, from the bundle, sites and rollover.
|
|
22956
|
+
$ref: "#/components/schemas/BillingCreditsTotals"
|
|
22957
|
+
bundle:
|
|
22958
|
+
description: The credits of the monthly bundle, both paid and bonus.
|
|
22959
|
+
$ref: "#/components/schemas/BillingCreditsTotals"
|
|
22960
|
+
required:
|
|
22961
|
+
- grantedCredits
|
|
22962
|
+
- usedCredits
|
|
22963
|
+
- remainingCredits
|
|
22964
|
+
- coveredAmount
|
|
22965
|
+
- paid
|
|
22966
|
+
- free
|
|
22967
|
+
- bundle
|
|
22968
|
+
chargeDate:
|
|
22969
|
+
description: When the upcoming invoice is charged.
|
|
22970
|
+
$ref: "#/components/schemas/Timestamp"
|
|
22971
|
+
renewal:
|
|
22972
|
+
description: The renewal invoice, when the plan and the AI usage bill on different cadences. Absent when a single invoice covers everything.
|
|
22973
|
+
type: object
|
|
22974
|
+
properties:
|
|
22975
|
+
lines:
|
|
22976
|
+
type: array
|
|
22977
|
+
description: Product lines of the renewal invoice.
|
|
22978
|
+
items:
|
|
22979
|
+
$ref: "#/components/schemas/BillingInvoiceSummaryLine"
|
|
22980
|
+
adjustments:
|
|
22981
|
+
type: array
|
|
22982
|
+
description: What adjusts the renewal beyond the products listed. Prorations and the customer balance are reported on the upcoming invoice instead.
|
|
22983
|
+
items:
|
|
22984
|
+
$ref: "#/components/schemas/BillingInvoiceAdjustment"
|
|
22985
|
+
discounts:
|
|
22986
|
+
type: array
|
|
22987
|
+
description: Discounts still applying when the subscription renews.
|
|
22988
|
+
items:
|
|
22989
|
+
type: object
|
|
22990
|
+
properties:
|
|
22991
|
+
description:
|
|
22992
|
+
description: The description of the applied discount.
|
|
22993
|
+
type: string
|
|
22994
|
+
amount:
|
|
22995
|
+
description: The amount of the applied discount.
|
|
22996
|
+
type: number
|
|
22997
|
+
required:
|
|
22998
|
+
- amount
|
|
22999
|
+
- description
|
|
23000
|
+
amount:
|
|
23001
|
+
description: Total owed for the renewal invoice.
|
|
23002
|
+
type: number
|
|
23003
|
+
chargeDate:
|
|
23004
|
+
description: When the renewal invoice is charged.
|
|
23005
|
+
$ref: "#/components/schemas/Timestamp"
|
|
23006
|
+
required:
|
|
23007
|
+
- lines
|
|
23008
|
+
- adjustments
|
|
23009
|
+
- discounts
|
|
23010
|
+
- amount
|
|
23011
|
+
- chargeDate
|
|
23012
|
+
required:
|
|
23013
|
+
- lines
|
|
23014
|
+
- adjustments
|
|
23015
|
+
- creditGrants
|
|
23016
|
+
- credits
|
|
22693
23017
|
discounts:
|
|
22694
23018
|
type: array
|
|
22695
23019
|
description: Discounts applied to the subscription.
|
|
@@ -22712,6 +23036,7 @@ components:
|
|
|
22712
23036
|
- customerBalance
|
|
22713
23037
|
- remainingCustomerBalance
|
|
22714
23038
|
- lines
|
|
23039
|
+
- summary
|
|
22715
23040
|
BillingUpgrade:
|
|
22716
23041
|
oneOf:
|
|
22717
23042
|
- type: object
|
|
@@ -24034,11 +24359,10 @@ components:
|
|
|
24034
24359
|
description: Optional template used when generating commit messages.
|
|
24035
24360
|
previewExternalBranches:
|
|
24036
24361
|
type: boolean
|
|
24037
|
-
|
|
24038
|
-
description: Whether previews should be generated from branches outside the configured branch.
|
|
24362
|
+
description: Whether previews should be generated from branches outside the configured branch. For space installations belonging to a parent installation, this field is inherited from the parent installation and cannot be set.
|
|
24039
24363
|
agentInstructions:
|
|
24040
24364
|
type: array
|
|
24041
|
-
description: Agent instruction files GitBook should always export at the repository root.
|
|
24365
|
+
description: Agent instruction files GitBook should always export at the repository root. For space installations belonging to a parent installation, this field is inherited from the parent installation and cannot be set.
|
|
24042
24366
|
items:
|
|
24043
24367
|
type: string
|
|
24044
24368
|
enum:
|
|
@@ -24237,6 +24561,46 @@ components:
|
|
|
24237
24561
|
- name
|
|
24238
24562
|
- type
|
|
24239
24563
|
- updatedAt
|
|
24564
|
+
GitSyncRoot:
|
|
24565
|
+
type: object
|
|
24566
|
+
description: A repository-backed review and permission boundary for GitBook content.
|
|
24567
|
+
properties:
|
|
24568
|
+
object:
|
|
24569
|
+
type: string
|
|
24570
|
+
enum:
|
|
24571
|
+
- git-sync-root
|
|
24572
|
+
id:
|
|
24573
|
+
type: string
|
|
24574
|
+
description: Unique identifier of the Sync Root.
|
|
24575
|
+
installationId:
|
|
24576
|
+
type: string
|
|
24577
|
+
description: Unique identifier of the top-level installation that owns this Sync Root.
|
|
24578
|
+
target:
|
|
24579
|
+
$ref: "#/components/schemas/GitSyncInstallationTarget"
|
|
24580
|
+
defaultMergeAuthorityPolicy:
|
|
24581
|
+
type: string
|
|
24582
|
+
enum:
|
|
24583
|
+
- provider
|
|
24584
|
+
- gitbook
|
|
24585
|
+
description: System responsible for completing merges by default for this Sync Root.
|
|
24586
|
+
status:
|
|
24587
|
+
type: string
|
|
24588
|
+
enum:
|
|
24589
|
+
- active
|
|
24590
|
+
- disabled
|
|
24591
|
+
createdAt:
|
|
24592
|
+
$ref: "#/components/schemas/Timestamp"
|
|
24593
|
+
updatedAt:
|
|
24594
|
+
$ref: "#/components/schemas/Timestamp"
|
|
24595
|
+
required:
|
|
24596
|
+
- object
|
|
24597
|
+
- id
|
|
24598
|
+
- installationId
|
|
24599
|
+
- target
|
|
24600
|
+
- defaultMergeAuthorityPolicy
|
|
24601
|
+
- status
|
|
24602
|
+
- createdAt
|
|
24603
|
+
- updatedAt
|
|
24240
24604
|
GitSyncInstallation:
|
|
24241
24605
|
allOf:
|
|
24242
24606
|
- $ref: "#/components/schemas/GitSyncInstallationSetup"
|
|
@@ -24260,6 +24624,9 @@ components:
|
|
|
24260
24624
|
$ref: "#/components/schemas/GitRepositoryConnection"
|
|
24261
24625
|
repositoryRef:
|
|
24262
24626
|
$ref: "#/components/schemas/GitRepositoryRef"
|
|
24627
|
+
syncRoot:
|
|
24628
|
+
$ref: "#/components/schemas/GitSyncRoot"
|
|
24629
|
+
description: Effective Sync Root for this installation, inherited from its parent when present.
|
|
24263
24630
|
createdAt:
|
|
24264
24631
|
$ref: "#/components/schemas/Timestamp"
|
|
24265
24632
|
createdBy:
|
|
@@ -25737,9 +26104,9 @@ components:
|
|
|
25737
26104
|
enum:
|
|
25738
26105
|
- updatedAt
|
|
25739
26106
|
- severity
|
|
25740
|
-
-
|
|
26107
|
+
- sources
|
|
25741
26108
|
default: updatedAt
|
|
25742
|
-
description: The field to sort site findings by. `updatedAt` returns the most recently updated findings first. `severity` returns the most severe findings first. `
|
|
26109
|
+
description: The field to sort site findings by. `updatedAt` returns the most recently updated findings first. `severity` returns the most severe findings first. `sources` returns the findings with the most linked sources (questions plus records) first. Defaults to 'updatedAt'.
|
|
25743
26110
|
SiteFindingTitle:
|
|
25744
26111
|
type: string
|
|
25745
26112
|
description: Short finding title
|
|
@@ -28909,6 +29276,14 @@ components:
|
|
|
28909
29276
|
type: string
|
|
28910
29277
|
enum:
|
|
28911
29278
|
- url
|
|
29279
|
+
- type: object
|
|
29280
|
+
required:
|
|
29281
|
+
- column
|
|
29282
|
+
properties:
|
|
29283
|
+
column:
|
|
29284
|
+
type: string
|
|
29285
|
+
enum:
|
|
29286
|
+
- urlPath
|
|
28912
29287
|
- type: object
|
|
28913
29288
|
required:
|
|
28914
29289
|
- column
|
|
@@ -29360,6 +29735,19 @@ components:
|
|
|
29360
29735
|
type: array
|
|
29361
29736
|
items:
|
|
29362
29737
|
$ref: "#/components/schemas/URL"
|
|
29738
|
+
- type: object
|
|
29739
|
+
required:
|
|
29740
|
+
- column
|
|
29741
|
+
- values
|
|
29742
|
+
properties:
|
|
29743
|
+
column:
|
|
29744
|
+
type: string
|
|
29745
|
+
enum:
|
|
29746
|
+
- urlPath
|
|
29747
|
+
values:
|
|
29748
|
+
type: array
|
|
29749
|
+
items:
|
|
29750
|
+
type: string
|
|
29363
29751
|
- type: object
|
|
29364
29752
|
required:
|
|
29365
29753
|
- column
|
|
@@ -30830,6 +31218,11 @@ components:
|
|
|
30830
31218
|
type: integer
|
|
30831
31219
|
minimum: 0
|
|
30832
31220
|
description: Current numeric billing override, when set.
|
|
31221
|
+
OrganizationBillingPercentageOverride:
|
|
31222
|
+
type: number
|
|
31223
|
+
minimum: 0
|
|
31224
|
+
maximum: 100
|
|
31225
|
+
description: Current percentage billing override, when set.
|
|
30833
31226
|
OrganizationBillingOverrides:
|
|
30834
31227
|
type: object
|
|
30835
31228
|
properties:
|
|
@@ -30842,6 +31235,12 @@ components:
|
|
|
30842
31235
|
enableSAML:
|
|
30843
31236
|
description: Current SAML override, when set.
|
|
30844
31237
|
$ref: "#/components/schemas/OrganizationBillingDateOverride"
|
|
31238
|
+
aiCreditAllowance:
|
|
31239
|
+
description: Contractual AI credit allowance for Enterprise organizations only.
|
|
31240
|
+
$ref: "#/components/schemas/OrganizationBillingNumericOverride"
|
|
31241
|
+
aiCreditRollover:
|
|
31242
|
+
description: Percentage of remaining paid AI credits carried into the next billing period. Paid self-serve organizations default to 50% when unset.
|
|
31243
|
+
$ref: "#/components/schemas/OrganizationBillingPercentageOverride"
|
|
30845
31244
|
minUsers:
|
|
30846
31245
|
description: Current minimum users override, when set.
|
|
30847
31246
|
$ref: "#/components/schemas/OrganizationBillingNumericOverride"
|
|
@@ -31605,7 +32004,7 @@ components:
|
|
|
31605
32004
|
- config_check
|
|
31606
32005
|
- content_process
|
|
31607
32006
|
- finalize
|
|
31608
|
-
|
|
32007
|
+
GitSyncSpaceOperation:
|
|
31609
32008
|
type: object
|
|
31610
32009
|
properties:
|
|
31611
32010
|
state:
|
|
@@ -31638,6 +32037,43 @@ components:
|
|
|
31638
32037
|
- completedTasks
|
|
31639
32038
|
- startedAt
|
|
31640
32039
|
- updatedAt
|
|
32040
|
+
GitSyncOperation:
|
|
32041
|
+
description: Deprecated. Use `GitSyncSpaceOperation` instead.
|
|
32042
|
+
deprecated: true
|
|
32043
|
+
allOf:
|
|
32044
|
+
- $ref: "#/components/schemas/GitSyncSpaceOperation"
|
|
32045
|
+
GitSyncSiteOperation:
|
|
32046
|
+
type: object
|
|
32047
|
+
properties:
|
|
32048
|
+
state:
|
|
32049
|
+
$ref: "#/components/schemas/GitSyncOperationState"
|
|
32050
|
+
direction:
|
|
32051
|
+
$ref: "#/components/schemas/GitSyncOperationDirection"
|
|
32052
|
+
stage:
|
|
32053
|
+
$ref: "#/components/schemas/GitSyncOperationStage"
|
|
32054
|
+
startedAt:
|
|
32055
|
+
description: Date when the operation was started
|
|
32056
|
+
$ref: "#/components/schemas/Timestamp"
|
|
32057
|
+
updatedAt:
|
|
32058
|
+
description: Date when the operation was last updated
|
|
32059
|
+
$ref: "#/components/schemas/Timestamp"
|
|
32060
|
+
completedAt:
|
|
32061
|
+
description: Date when the operation was successful (when state is `success`)
|
|
32062
|
+
$ref: "#/components/schemas/Timestamp"
|
|
32063
|
+
error:
|
|
32064
|
+
type: string
|
|
32065
|
+
description: Error details, defined if state is `failure`.
|
|
32066
|
+
spaces:
|
|
32067
|
+
type: object
|
|
32068
|
+
additionalProperties:
|
|
32069
|
+
$ref: "#/components/schemas/GitSyncSpaceOperation"
|
|
32070
|
+
required:
|
|
32071
|
+
- state
|
|
32072
|
+
- direction
|
|
32073
|
+
- stage
|
|
32074
|
+
- startedAt
|
|
32075
|
+
- updatedAt
|
|
32076
|
+
- spaces
|
|
31641
32077
|
GitSyncSiteStructureSectionGroup:
|
|
31642
32078
|
type: object
|
|
31643
32079
|
additionalProperties: false
|
|
@@ -32934,6 +33370,18 @@ components:
|
|
|
32934
33370
|
required:
|
|
32935
33371
|
- channel
|
|
32936
33372
|
- space
|
|
33373
|
+
APIChannelGitSyncSiteOperation:
|
|
33374
|
+
type: object
|
|
33375
|
+
properties:
|
|
33376
|
+
channel:
|
|
33377
|
+
type: string
|
|
33378
|
+
enum:
|
|
33379
|
+
- site-gitsync-operation
|
|
33380
|
+
site:
|
|
33381
|
+
type: string
|
|
33382
|
+
required:
|
|
33383
|
+
- channel
|
|
33384
|
+
- site
|
|
32937
33385
|
APIChannelOpenAPISpec:
|
|
32938
33386
|
type: object
|
|
32939
33387
|
description: Subscription channel for changes in OpenAPI specification.
|
|
@@ -33064,6 +33512,7 @@ components:
|
|
|
33064
33512
|
- $ref: "#/components/schemas/APIChannelCustomHostname"
|
|
33065
33513
|
- $ref: "#/components/schemas/APIChannelGitSyncInstallation"
|
|
33066
33514
|
- $ref: "#/components/schemas/APIChannelGitSyncOperation"
|
|
33515
|
+
- $ref: "#/components/schemas/APIChannelGitSyncSiteOperation"
|
|
33067
33516
|
- $ref: "#/components/schemas/APIChannelOpenAPISpec"
|
|
33068
33517
|
- $ref: "#/components/schemas/APIChannelSubdomain"
|
|
33069
33518
|
- $ref: "#/components/schemas/APIChannelTranslation"
|
|
@@ -33115,7 +33564,19 @@ components:
|
|
|
33115
33564
|
enum:
|
|
33116
33565
|
- space-gitsync-operation
|
|
33117
33566
|
data:
|
|
33118
|
-
$ref: "#/components/schemas/
|
|
33567
|
+
$ref: "#/components/schemas/GitSyncSpaceOperation"
|
|
33568
|
+
required:
|
|
33569
|
+
- channel
|
|
33570
|
+
- data
|
|
33571
|
+
APIChannelGitSyncSiteOperationData:
|
|
33572
|
+
type: object
|
|
33573
|
+
properties:
|
|
33574
|
+
channel:
|
|
33575
|
+
type: string
|
|
33576
|
+
enum:
|
|
33577
|
+
- site-gitsync-operation
|
|
33578
|
+
data:
|
|
33579
|
+
$ref: "#/components/schemas/GitSyncSiteOperation"
|
|
33119
33580
|
required:
|
|
33120
33581
|
- channel
|
|
33121
33582
|
- data
|
|
@@ -33142,6 +33603,7 @@ components:
|
|
|
33142
33603
|
description: Data passed through a realtime channel
|
|
33143
33604
|
oneOf:
|
|
33144
33605
|
- $ref: "#/components/schemas/APIChannelGitSyncOperationData"
|
|
33606
|
+
- $ref: "#/components/schemas/APIChannelGitSyncSiteOperationData"
|
|
33145
33607
|
- $ref: "#/components/schemas/APIChannelTranslationRunData"
|
|
33146
33608
|
- $ref: "#/components/schemas/APIChannelImportRunData"
|
|
33147
33609
|
- $ref: "#/components/schemas/APIChannelMutationData"
|