@gitbook/api 0.158.0 → 0.160.1

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/spec/openapi.yaml CHANGED
@@ -185,6 +185,16 @@ tags:
185
185
  x-parent: sites
186
186
  description: |
187
187
  Give your users a way to ask content-aware AI queries that are scoped entirely to the site's published documents.
188
+ - name: site-context
189
+ x-page-title: Site context
190
+ x-page-description: Manage context records, connections, and topics for a docs site.
191
+ x-parent: sites
192
+ description: |
193
+ Manage the contextual records and topics used by your site to power AI experiences and insights.
194
+
195
+ {% openapi-schemas spec="gitbook" schemas="ContextRecord,ContextConnection,ContextTopic" grouped="false" %}
196
+ The Site Context objects
197
+ {% endopenapi-schemas %}
188
198
  - name: collections
189
199
  x-page-icon: folder
190
200
  x-page-title: Collections
@@ -504,6 +514,7 @@ paths:
504
514
  summary: Get profile of authenticated user
505
515
  tags:
506
516
  - users
517
+ - critical
507
518
  security:
508
519
  - user: []
509
520
  description: |
@@ -6551,6 +6562,11 @@ paths:
6551
6562
  - $ref: "#/components/parameters/organizationId"
6552
6563
  - $ref: "#/components/parameters/listPage"
6553
6564
  - $ref: "#/components/parameters/listLimit"
6565
+ - name: orderBy
6566
+ in: query
6567
+ description: Sort results by language key
6568
+ schema:
6569
+ $ref: "#/components/schemas/TranslationLanguage"
6554
6570
  responses:
6555
6571
  "200":
6556
6572
  description: OK
@@ -8148,6 +8164,273 @@ paths:
8148
8164
  text/event-stream:
8149
8165
  schema:
8150
8166
  $ref: "#/components/schemas/SearchAIRecommendedQuestionStream"
8167
+ "/orgs/{organizationId}/sites/{siteId}/context-records":
8168
+ get:
8169
+ operationId: listSiteContextRecords
8170
+ summary: List all context records
8171
+ tags:
8172
+ - site-context
8173
+ security:
8174
+ - user: []
8175
+ parameters:
8176
+ - $ref: "#/components/parameters/organizationId"
8177
+ - $ref: "#/components/parameters/siteId"
8178
+ - $ref: "#/components/parameters/listPage"
8179
+ - $ref: "#/components/parameters/listLimit"
8180
+ - name: type
8181
+ in: query
8182
+ description: Filter context records by type.
8183
+ schema:
8184
+ $ref: "#/components/schemas/ContextRecordType"
8185
+ - name: connector
8186
+ in: query
8187
+ description: Filter context records by connector type.
8188
+ schema:
8189
+ $ref: "#/components/schemas/ContextConnector"
8190
+ - name: connection
8191
+ in: query
8192
+ description: Filter context records by connection id.
8193
+ schema:
8194
+ type: string
8195
+ responses:
8196
+ "200":
8197
+ description: OK
8198
+ content:
8199
+ application/json:
8200
+ schema:
8201
+ allOf:
8202
+ - $ref: "#/components/schemas/List"
8203
+ - type: object
8204
+ required:
8205
+ - items
8206
+ properties:
8207
+ items:
8208
+ type: array
8209
+ items:
8210
+ $ref: "#/components/schemas/ContextRecord"
8211
+ put:
8212
+ operationId: upsertSiteContextRecords
8213
+ summary: Create or update context records
8214
+ tags:
8215
+ - site-context
8216
+ security:
8217
+ - user: []
8218
+ parameters:
8219
+ - $ref: "#/components/parameters/organizationId"
8220
+ - $ref: "#/components/parameters/siteId"
8221
+ requestBody:
8222
+ required: true
8223
+ content:
8224
+ application/json:
8225
+ schema:
8226
+ type: array
8227
+ items:
8228
+ $ref: "#/components/schemas/ContextRecordInput"
8229
+ responses:
8230
+ "204":
8231
+ description: The context records have been created or updated
8232
+ "/orgs/{organizationId}/sites/{siteId}/context-connections":
8233
+ get:
8234
+ operationId: listSiteContextConnections
8235
+ summary: List all context connections
8236
+ tags:
8237
+ - site-context
8238
+ security:
8239
+ - user: []
8240
+ parameters:
8241
+ - $ref: "#/components/parameters/organizationId"
8242
+ - $ref: "#/components/parameters/siteId"
8243
+ - $ref: "#/components/parameters/listPage"
8244
+ - $ref: "#/components/parameters/listLimit"
8245
+ responses:
8246
+ "200":
8247
+ description: OK
8248
+ content:
8249
+ application/json:
8250
+ schema:
8251
+ allOf:
8252
+ - $ref: "#/components/schemas/List"
8253
+ - type: object
8254
+ required:
8255
+ - items
8256
+ properties:
8257
+ items:
8258
+ type: array
8259
+ items:
8260
+ $ref: "#/components/schemas/ContextConnection"
8261
+ post:
8262
+ operationId: createSiteContextConnection
8263
+ summary: Create a context connection
8264
+ tags:
8265
+ - site-context
8266
+ security:
8267
+ - user: []
8268
+ parameters:
8269
+ - $ref: "#/components/parameters/organizationId"
8270
+ - $ref: "#/components/parameters/siteId"
8271
+ requestBody:
8272
+ required: true
8273
+ content:
8274
+ application/json:
8275
+ schema:
8276
+ allOf:
8277
+ - $ref: "#/components/schemas/ContextConnectorSetup"
8278
+ - type: object
8279
+ properties:
8280
+ usageSettings:
8281
+ $ref: "#/components/schemas/ContextUsageSettings"
8282
+ responses:
8283
+ "201":
8284
+ description: Created connection
8285
+ content:
8286
+ application/json:
8287
+ schema:
8288
+ $ref: "#/components/schemas/ContextConnection"
8289
+ "/orgs/{organizationId}/sites/{siteId}/context-connections/{siteContextConnectionId}":
8290
+ get:
8291
+ operationId: getSiteContextConnectionById
8292
+ summary: Get a context connection
8293
+ tags:
8294
+ - site-context
8295
+ security:
8296
+ - user: []
8297
+ parameters:
8298
+ - $ref: "#/components/parameters/organizationId"
8299
+ - $ref: "#/components/parameters/siteId"
8300
+ - $ref: "#/components/parameters/siteContextConnectionId"
8301
+ responses:
8302
+ "200":
8303
+ description: OK
8304
+ content:
8305
+ application/json:
8306
+ schema:
8307
+ $ref: "#/components/schemas/ContextConnection"
8308
+ patch:
8309
+ operationId: updateSiteContextConnectionById
8310
+ summary: Update a context connection
8311
+ tags:
8312
+ - site-context
8313
+ security:
8314
+ - user: []
8315
+ parameters:
8316
+ - $ref: "#/components/parameters/organizationId"
8317
+ - $ref: "#/components/parameters/siteId"
8318
+ - $ref: "#/components/parameters/siteContextConnectionId"
8319
+ requestBody:
8320
+ required: true
8321
+ content:
8322
+ application/json:
8323
+ schema:
8324
+ anyOf:
8325
+ - $ref: "#/components/schemas/ContextConnectorSetup"
8326
+ - type: object
8327
+ properties:
8328
+ usageSettings:
8329
+ $ref: "#/components/schemas/ContextUsageSettings"
8330
+ label:
8331
+ $ref: "#/components/schemas/ContextConnectionLabel"
8332
+ responses:
8333
+ "200":
8334
+ description: OK
8335
+ content:
8336
+ application/json:
8337
+ schema:
8338
+ $ref: "#/components/schemas/ContextConnection"
8339
+ "/orgs/{organizationId}/sites/{siteId}/context-connections/{siteContextConnectionId}/sync":
8340
+ post:
8341
+ operationId: syncSiteContextConnection
8342
+ summary: Trigger a sync for a context connection
8343
+ tags:
8344
+ - site-context
8345
+ security:
8346
+ - user: []
8347
+ parameters:
8348
+ - $ref: "#/components/parameters/organizationId"
8349
+ - $ref: "#/components/parameters/siteId"
8350
+ - $ref: "#/components/parameters/siteContextConnectionId"
8351
+ responses:
8352
+ "204":
8353
+ description: Sync started
8354
+ "400":
8355
+ description: Connection was synced less than an hour ago or invalid connector
8356
+ $ref: "#/components/responses/BadRequestError"
8357
+ "/orgs/{organizationId}/sites/{siteId}/context-topics":
8358
+ get:
8359
+ operationId: listSiteContextTopics
8360
+ summary: List all context topics
8361
+ tags:
8362
+ - site-context
8363
+ security:
8364
+ - user: []
8365
+ parameters:
8366
+ - $ref: "#/components/parameters/organizationId"
8367
+ - $ref: "#/components/parameters/siteId"
8368
+ - $ref: "#/components/parameters/listPage"
8369
+ - $ref: "#/components/parameters/listLimit"
8370
+ responses:
8371
+ "200":
8372
+ description: OK
8373
+ content:
8374
+ application/json:
8375
+ schema:
8376
+ allOf:
8377
+ - $ref: "#/components/schemas/List"
8378
+ - type: object
8379
+ required:
8380
+ - items
8381
+ properties:
8382
+ items:
8383
+ type: array
8384
+ items:
8385
+ $ref: "#/components/schemas/ContextTopic"
8386
+ "/orgs/{organizationId}/sites/{siteId}/context-topics/{siteContextTopicId}":
8387
+ get:
8388
+ operationId: getSiteContextTopicById
8389
+ summary: Get a context topic
8390
+ tags:
8391
+ - site-context
8392
+ security:
8393
+ - user: []
8394
+ parameters:
8395
+ - $ref: "#/components/parameters/organizationId"
8396
+ - $ref: "#/components/parameters/siteId"
8397
+ - $ref: "#/components/parameters/siteContextTopicId"
8398
+ responses:
8399
+ "200":
8400
+ description: OK
8401
+ content:
8402
+ application/json:
8403
+ schema:
8404
+ $ref: "#/components/schemas/ContextTopic"
8405
+ patch:
8406
+ operationId: updateSiteContextTopicById
8407
+ summary: Update a context topic
8408
+ tags:
8409
+ - site-context
8410
+ security:
8411
+ - user: []
8412
+ parameters:
8413
+ - $ref: "#/components/parameters/organizationId"
8414
+ - $ref: "#/components/parameters/siteId"
8415
+ - $ref: "#/components/parameters/siteContextTopicId"
8416
+ requestBody:
8417
+ required: true
8418
+ content:
8419
+ application/json:
8420
+ schema:
8421
+ type: object
8422
+ properties:
8423
+ usageSettings:
8424
+ $ref: "#/components/schemas/ContextUsageSettings"
8425
+ required:
8426
+ - usageSettings
8427
+ responses:
8428
+ "200":
8429
+ description: OK
8430
+ content:
8431
+ application/json:
8432
+ schema:
8433
+ $ref: "#/components/schemas/ContextTopic"
8151
8434
  "/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}":
8152
8435
  patch:
8153
8436
  operationId: updateSiteSpaceById
@@ -8380,6 +8663,24 @@ paths:
8380
8663
  nullable: true
8381
8664
  enum:
8382
8665
  - null
8666
+ codeTheme:
8667
+ description: The code theme to use. Set to null to reset the override.
8668
+ type: object
8669
+ properties:
8670
+ default:
8671
+ oneOf:
8672
+ - $ref: "#/components/schemas/CustomizationThemedCodeTheme"
8673
+ - type: string
8674
+ nullable: true
8675
+ enum:
8676
+ - null
8677
+ openapi:
8678
+ oneOf:
8679
+ - $ref: "#/components/schemas/CustomizationThemedCodeTheme"
8680
+ - type: string
8681
+ nullable: true
8682
+ enum:
8683
+ - null
8383
8684
  internationalization:
8384
8685
  type: object
8385
8686
  deprecated: true
@@ -9968,6 +10269,20 @@ components:
9968
10269
  description: The unique id of the section within a site
9969
10270
  schema:
9970
10271
  type: string
10272
+ siteContextConnectionId:
10273
+ name: siteContextConnectionId
10274
+ in: path
10275
+ required: true
10276
+ description: The unique id of the context connection
10277
+ schema:
10278
+ type: string
10279
+ siteContextTopicId:
10280
+ name: siteContextTopicId
10281
+ in: path
10282
+ required: true
10283
+ description: The unique id of the context topic
10284
+ schema:
10285
+ type: string
9971
10286
  siteSpaceId:
9972
10287
  name: siteSpaceId
9973
10288
  in: path
@@ -10792,6 +11107,7 @@ components:
10792
11107
  repoCacheID:
10793
11108
  type: string
10794
11109
  description: Unique identifier to use to cache the Git repository across multiple operations.
11110
+ deprecated: true
10795
11111
  repoTreeURL:
10796
11112
  type: string
10797
11113
  description: URL to use as a prefix for external file references.
@@ -10831,6 +11147,7 @@ components:
10831
11147
  repoCacheID:
10832
11148
  type: string
10833
11149
  description: Unique identifier to use to cache the Git repository across multiple operations.
11150
+ deprecated: true
10834
11151
  repoTreeURL:
10835
11152
  type: string
10836
11153
  description: URL to use as a prefix for external file references.
@@ -12652,7 +12969,9 @@ components:
12652
12969
  - true
12653
12970
  data:
12654
12971
  type: object
12655
- properties: {}
12972
+ properties:
12973
+ defaultExpanded:
12974
+ type: boolean
12656
12975
  additionalProperties: false
12657
12976
  fragments:
12658
12977
  type: array
@@ -13330,6 +13649,22 @@ components:
13330
13649
  - data
13331
13650
  - nodes
13332
13651
  - isVoid
13652
+ ContentRefTag:
13653
+ type: object
13654
+ properties:
13655
+ kind:
13656
+ type: string
13657
+ enum:
13658
+ - tag
13659
+ tag:
13660
+ type: string
13661
+ description: The slug of the tag, also used as the ID, and references the tags defined on a revision.
13662
+ space:
13663
+ type: string
13664
+ description: The space in which the tag is defined. If undefined, the tag is assumed to be in the same space as the content reference.
13665
+ required:
13666
+ - kind
13667
+ - tag
13333
13668
  DocumentBlockUpdate:
13334
13669
  type: object
13335
13670
  properties:
@@ -13367,8 +13702,9 @@ components:
13367
13702
  $ref: "#/components/schemas/Timestamp"
13368
13703
  tags:
13369
13704
  type: array
13705
+ description: Array of tags. Each tag is id'ed by its slug.
13370
13706
  items:
13371
- type: string
13707
+ $ref: "#/components/schemas/ContentRefTag"
13372
13708
  required:
13373
13709
  - date
13374
13710
  isVoid:
@@ -13670,6 +14006,11 @@ components:
13670
14006
  metaLinks:
13671
14007
  description: Meta links associated with the page.
13672
14008
  $ref: "#/components/schemas/RevisionPageMetaLinks"
14009
+ tags:
14010
+ type: array
14011
+ description: A list of all the tags added to this page
14012
+ items:
14013
+ $ref: "#/components/schemas/RevisionPageTag"
13673
14014
  required:
13674
14015
  - kind
13675
14016
  - type
@@ -13721,6 +14062,15 @@ components:
13721
14062
  - kind
13722
14063
  - type
13723
14064
  - target
14065
+ OpenAPISpecVisibility:
14066
+ type: string
14067
+ description: |
14068
+ The visibility setting of the OpenAPI spec.
14069
+ * `private`: The spec is not publicly available.
14070
+ * `public`: The spec is available to anyone with a public link.
14071
+ enum:
14072
+ - private
14073
+ - public
13724
14074
  ComputedContentDependencyOpenAPI:
13725
14075
  type: object
13726
14076
  properties:
@@ -13741,6 +14091,8 @@ components:
13741
14091
  type: string
13742
14092
  lastVersion:
13743
14093
  type: string
14094
+ visibility:
14095
+ $ref: "#/components/schemas/OpenAPISpecVisibility"
13744
14096
  required:
13745
14097
  - object
13746
14098
  - id
@@ -14062,6 +14414,17 @@ components:
14062
14414
  type: array
14063
14415
  items:
14064
14416
  $ref: "#/components/schemas/RevisionPageMetaLinkTarget"
14417
+ RevisionPageTag:
14418
+ type: object
14419
+ description: A reference to a tag with optional primary flag for page-level tags.
14420
+ properties:
14421
+ tag:
14422
+ $ref: "#/components/schemas/ContentRefTag"
14423
+ primary:
14424
+ type: boolean
14425
+ description: Whether this is the primary tag for display in table of contents.
14426
+ required:
14427
+ - tag
14065
14428
  ComputedContentSourceDocumentOpenAPI:
14066
14429
  allOf:
14067
14430
  - $ref: "#/components/schemas/ComputedContentSourceOpenAPIBase"
@@ -14234,7 +14597,20 @@ components:
14234
14597
  document:
14235
14598
  type: string
14236
14599
  description: ID of the document with the content body. If undefined, the reusable content is empty.
14237
- GitSyncCommit:
14600
+ RevisionTag:
14601
+ type: object
14602
+ description: A reusable tag that different types of content can be associated to (e.g. pages, update entries)
14603
+ properties:
14604
+ slug:
14605
+ type: string
14606
+ description: The slug identifier for the tag, immutable after creation.
14607
+ label:
14608
+ type: string
14609
+ description: Display label for the tag. Can be renamed and differ from the slug.
14610
+ required:
14611
+ - slug
14612
+ - label
14613
+ GitSyncCommit:
14238
14614
  type: object
14239
14615
  properties:
14240
14616
  oid:
@@ -14284,6 +14660,11 @@ components:
14284
14660
  type: array
14285
14661
  items:
14286
14662
  $ref: "#/components/schemas/RevisionReusableContent"
14663
+ tags:
14664
+ type: array
14665
+ description: List of available tags within this revision
14666
+ items:
14667
+ $ref: "#/components/schemas/RevisionTag"
14287
14668
  variables:
14288
14669
  $ref: "#/components/schemas/Variables"
14289
14670
  createdAt:
@@ -14801,6 +15182,9 @@ components:
14801
15182
  view:
14802
15183
  type: boolean
14803
15184
  description: Can the user view the organization.
15185
+ access:
15186
+ type: boolean
15187
+ description: Can the user view the organization in the application.
14804
15188
  admin:
14805
15189
  type: boolean
14806
15190
  description: Can the user manage the title, members, etc.
@@ -14836,6 +15220,7 @@ components:
14836
15220
  description: Can the user install integrations in the organization.
14837
15221
  required:
14838
15222
  - view
15223
+ - access
14839
15224
  - admin
14840
15225
  - ownTeam
14841
15226
  - createContent
@@ -15122,15 +15507,6 @@ components:
15122
15507
  - pending
15123
15508
  - progress
15124
15509
  - complete
15125
- OpenAPISpecVisibility:
15126
- type: string
15127
- description: |
15128
- The visibility setting of the OpenAPI spec.
15129
- * `private`: The spec is not publicly available.
15130
- * `public`: The spec is available to anyone with a public link.
15131
- enum:
15132
- - private
15133
- - public
15134
15510
  OpenAPISpecProcessingErrorCode:
15135
15511
  description: OpenAPI processing error code
15136
15512
  enum:
@@ -16099,6 +16475,61 @@ components:
16099
16475
  - type
16100
16476
  - reusableContent
16101
16477
  - attributes
16478
+ ChangedRevisionTag:
16479
+ type: object
16480
+ properties:
16481
+ slug:
16482
+ type: string
16483
+ label:
16484
+ type: string
16485
+ required:
16486
+ - slug
16487
+ - label
16488
+ RevisionSemanticChangeTagCreated:
16489
+ type: object
16490
+ properties:
16491
+ type:
16492
+ type: string
16493
+ enum:
16494
+ - tag_created
16495
+ tag:
16496
+ $ref: "#/components/schemas/ChangedRevisionTag"
16497
+ required:
16498
+ - type
16499
+ - tag
16500
+ RevisionSemanticChangeTagDeleted:
16501
+ type: object
16502
+ properties:
16503
+ type:
16504
+ type: string
16505
+ enum:
16506
+ - tag_deleted
16507
+ tag:
16508
+ $ref: "#/components/schemas/ChangedRevisionTag"
16509
+ required:
16510
+ - type
16511
+ - tag
16512
+ RevisionTagChangeAttributes:
16513
+ type: object
16514
+ minProperties: 1
16515
+ properties:
16516
+ label:
16517
+ $ref: "#/components/schemas/ChangeAttributeString"
16518
+ RevisionSemanticChangeTagEdited:
16519
+ type: object
16520
+ properties:
16521
+ type:
16522
+ type: string
16523
+ enum:
16524
+ - tag_edited
16525
+ tag:
16526
+ $ref: "#/components/schemas/ChangedRevisionTag"
16527
+ attributes:
16528
+ $ref: "#/components/schemas/RevisionTagChangeAttributes"
16529
+ required:
16530
+ - type
16531
+ - tag
16532
+ - attributes
16102
16533
  RevisionSemanticChange:
16103
16534
  oneOf:
16104
16535
  - $ref: "#/components/schemas/RevisionSemanticChangePageCreated"
@@ -16112,6 +16543,9 @@ components:
16112
16543
  - $ref: "#/components/schemas/RevisionSemanticChangeReusableContentCreated"
16113
16544
  - $ref: "#/components/schemas/RevisionSemanticChangeReusableContentDeleted"
16114
16545
  - $ref: "#/components/schemas/RevisionSemanticChangeReusableContentEdited"
16546
+ - $ref: "#/components/schemas/RevisionSemanticChangeTagCreated"
16547
+ - $ref: "#/components/schemas/RevisionSemanticChangeTagDeleted"
16548
+ - $ref: "#/components/schemas/RevisionSemanticChangeTagEdited"
16115
16549
  RevisionSemanticChanges:
16116
16550
  type: object
16117
16551
  properties:
@@ -21043,6 +21477,83 @@ components:
21043
21477
  - duotone
21044
21478
  - light
21045
21479
  - thin
21480
+ CustomizationCodeTheme:
21481
+ type: string
21482
+ enum:
21483
+ - default-light
21484
+ - default-dark
21485
+ - monochrome-light
21486
+ - monochrome-dark
21487
+ - andromeeda
21488
+ - aurora-x
21489
+ - ayu-dark
21490
+ - catppuccin-frappe
21491
+ - catppuccin-latte
21492
+ - catppuccin-macchiato
21493
+ - catppuccin-mocha
21494
+ - dark-plus
21495
+ - dracula
21496
+ - dracula-soft
21497
+ - everforest-dark
21498
+ - everforest-light
21499
+ - github-dark
21500
+ - github-dark-default
21501
+ - github-dark-dimmed
21502
+ - github-dark-high-contrast
21503
+ - github-light
21504
+ - github-light-default
21505
+ - github-light-high-contrast
21506
+ - gruvbox-dark-hard
21507
+ - gruvbox-dark-medium
21508
+ - gruvbox-dark-soft
21509
+ - gruvbox-light-hard
21510
+ - gruvbox-light-medium
21511
+ - gruvbox-light-soft
21512
+ - houston
21513
+ - kanagawa-dragon
21514
+ - kanagawa-lotus
21515
+ - kanagawa-wave
21516
+ - laserwave
21517
+ - light-plus
21518
+ - material-theme
21519
+ - material-theme-darker
21520
+ - material-theme-lighter
21521
+ - material-theme-ocean
21522
+ - material-theme-palenight
21523
+ - min-dark
21524
+ - min-light
21525
+ - monokai
21526
+ - night-owl
21527
+ - nord
21528
+ - one-dark-pro
21529
+ - one-light
21530
+ - plastic
21531
+ - poimandres
21532
+ - red
21533
+ - rose-pine
21534
+ - rose-pine-dawn
21535
+ - rose-pine-moon
21536
+ - slack-dark
21537
+ - slack-ochin
21538
+ - snazzy-light
21539
+ - solarized-dark
21540
+ - solarized-light
21541
+ - synthwave-84
21542
+ - tokyo-night
21543
+ - vesper
21544
+ - vitesse-black
21545
+ - vitesse-dark
21546
+ - vitesse-light
21547
+ CustomizationThemedCodeTheme:
21548
+ type: object
21549
+ properties:
21550
+ light:
21551
+ $ref: "#/components/schemas/CustomizationCodeTheme"
21552
+ dark:
21553
+ $ref: "#/components/schemas/CustomizationCodeTheme"
21554
+ required:
21555
+ - light
21556
+ - dark
21046
21557
  CustomizationSidebarBackgroundStyle:
21047
21558
  type: string
21048
21559
  description: |
@@ -21293,6 +21804,16 @@ components:
21293
21804
  $ref: "#/components/schemas/CustomizationBackground"
21294
21805
  icons:
21295
21806
  $ref: "#/components/schemas/CustomizationIconsStyle"
21807
+ codeTheme:
21808
+ type: object
21809
+ properties:
21810
+ default:
21811
+ $ref: "#/components/schemas/CustomizationThemedCodeTheme"
21812
+ openapi:
21813
+ $ref: "#/components/schemas/CustomizationThemedCodeTheme"
21814
+ required:
21815
+ - default
21816
+ - openapi
21296
21817
  sidebar:
21297
21818
  type: object
21298
21819
  properties:
@@ -21317,6 +21838,7 @@ components:
21317
21838
  - links
21318
21839
  - font
21319
21840
  - monospaceFont
21841
+ - codeTheme
21320
21842
  - background
21321
21843
  - icons
21322
21844
  - sidebar
@@ -21744,6 +22266,296 @@ components:
21744
22266
  type: string
21745
22267
  enum:
21746
22268
  - all
22269
+ ContextRecordType:
22270
+ type: string
22271
+ enum:
22272
+ - ticket
22273
+ - document
22274
+ ContextConnector:
22275
+ oneOf:
22276
+ - type: string
22277
+ description: Integration source
22278
+ pattern: ^integration:[^:]+$
22279
+ x-typescript: "`integration:${string}`"
22280
+ - type: string
22281
+ description: Builtin sources
22282
+ enum:
22283
+ - builtin:email
22284
+ - builtin:api
22285
+ - builtin:website
22286
+ ContextRecordTitle:
22287
+ type: string
22288
+ description: Title for the context record
22289
+ minLength: 1
22290
+ maxLength: 256
22291
+ ContextRecordDescription:
22292
+ type: string
22293
+ description: Optional short description of the context record
22294
+ maxLength: 512
22295
+ ContextRecord:
22296
+ type: object
22297
+ properties:
22298
+ object:
22299
+ type: string
22300
+ enum:
22301
+ - context-record
22302
+ id:
22303
+ type: string
22304
+ description: The ID of the record
22305
+ title:
22306
+ $ref: "#/components/schemas/ContextRecordTitle"
22307
+ description:
22308
+ $ref: "#/components/schemas/ContextRecordDescription"
22309
+ type:
22310
+ $ref: "#/components/schemas/ContextRecordType"
22311
+ createdAt:
22312
+ $ref: "#/components/schemas/Timestamp"
22313
+ processedAt:
22314
+ $ref: "#/components/schemas/Timestamp"
22315
+ connection:
22316
+ type: string
22317
+ description: The connection ID associated with the record
22318
+ connector:
22319
+ description: The connector type associated with the record
22320
+ $ref: "#/components/schemas/ContextConnector"
22321
+ topics:
22322
+ type: array
22323
+ description: The associated topics of the record
22324
+ items:
22325
+ type: string
22326
+ urls:
22327
+ type: object
22328
+ description: URLs associated with the record
22329
+ properties:
22330
+ location:
22331
+ type: string
22332
+ description: URL of the record in the API
22333
+ format: uri
22334
+ source:
22335
+ type: string
22336
+ description: URL of the record in the source
22337
+ format: uri
22338
+ required:
22339
+ - location
22340
+ required:
22341
+ - object
22342
+ - id
22343
+ - title
22344
+ - type
22345
+ - createdAt
22346
+ - connection
22347
+ - connector
22348
+ - urls
22349
+ ContextRecordInput:
22350
+ type: object
22351
+ description: Input to ingest a new context record
22352
+ properties:
22353
+ id:
22354
+ type: string
22355
+ description: Unique local identifier for the record
22356
+ type:
22357
+ $ref: "#/components/schemas/ContextRecordType"
22358
+ title:
22359
+ $ref: "#/components/schemas/ContextRecordTitle"
22360
+ description:
22361
+ $ref: "#/components/schemas/ContextRecordDescription"
22362
+ body:
22363
+ type: string
22364
+ description: Body content of the record as markdown
22365
+ url:
22366
+ type: string
22367
+ description: URL of the record
22368
+ format: uri
22369
+ metadata:
22370
+ type: object
22371
+ additionalProperties:
22372
+ type: string
22373
+ required:
22374
+ - id
22375
+ - title
22376
+ - body
22377
+ - type
22378
+ ContextConnectionLabel:
22379
+ type: string
22380
+ description: Optional label for the connection
22381
+ minLength: 0
22382
+ maxLength: 128
22383
+ ContextConnectionStatus:
22384
+ type: string
22385
+ enum:
22386
+ - pending
22387
+ - syncing
22388
+ - succeeded
22389
+ - failed
22390
+ ContextUsageSettings:
22391
+ type: object
22392
+ properties:
22393
+ changeRequests:
22394
+ type: boolean
22395
+ description: Whether to use context to propose change requests
22396
+ search:
22397
+ type: boolean
22398
+ description: Whether to expose records in search results
22399
+ required:
22400
+ - changeRequests
22401
+ - search
22402
+ ContextConnectorSetup:
22403
+ oneOf:
22404
+ - type: object
22405
+ properties:
22406
+ connector:
22407
+ type: string
22408
+ enum:
22409
+ - builtin:email
22410
+ - builtin:api
22411
+ required:
22412
+ - connector
22413
+ - type: object
22414
+ properties:
22415
+ connector:
22416
+ type: string
22417
+ pattern: ^integration:[^:]+$
22418
+ x-typescript: "`integration:${string}`"
22419
+ required:
22420
+ - connector
22421
+ - type: object
22422
+ properties:
22423
+ connector:
22424
+ type: string
22425
+ enum:
22426
+ - builtin:website
22427
+ setupSettings:
22428
+ type: object
22429
+ properties:
22430
+ url:
22431
+ type: string
22432
+ format: uri
22433
+ required:
22434
+ - url
22435
+ required:
22436
+ - connector
22437
+ - setupSettings
22438
+ ContextConnection:
22439
+ allOf:
22440
+ - type: object
22441
+ properties:
22442
+ object:
22443
+ type: string
22444
+ enum:
22445
+ - context-connection
22446
+ id:
22447
+ type: string
22448
+ description: The ID of the connection
22449
+ createdAt:
22450
+ $ref: "#/components/schemas/Timestamp"
22451
+ syncedAt:
22452
+ $ref: "#/components/schemas/Timestamp"
22453
+ label:
22454
+ $ref: "#/components/schemas/ContextConnectionLabel"
22455
+ status:
22456
+ $ref: "#/components/schemas/ContextConnectionStatus"
22457
+ records:
22458
+ type: integer
22459
+ description: Number of records ingested from this connection
22460
+ failureMessage:
22461
+ type: string
22462
+ description: Failure message when synchronization fails
22463
+ email:
22464
+ type: object
22465
+ description: Parameters associated with the connection when it is an email connection
22466
+ properties:
22467
+ ingestionAddress:
22468
+ type: string
22469
+ description: Inbound email address for the connection
22470
+ format: email
22471
+ usageSettings:
22472
+ $ref: "#/components/schemas/ContextUsageSettings"
22473
+ urls:
22474
+ type: object
22475
+ description: URLs associated with the connection
22476
+ properties:
22477
+ location:
22478
+ type: string
22479
+ description: URL of the connection in the API
22480
+ format: uri
22481
+ required:
22482
+ - location
22483
+ required:
22484
+ - object
22485
+ - id
22486
+ - createdAt
22487
+ - status
22488
+ - records
22489
+ - usageSettings
22490
+ - urls
22491
+ - $ref: "#/components/schemas/ContextConnectorSetup"
22492
+ ContextTopic:
22493
+ type: object
22494
+ properties:
22495
+ object:
22496
+ type: string
22497
+ enum:
22498
+ - context-topic
22499
+ id:
22500
+ type: string
22501
+ description: The ID of the topic
22502
+ label:
22503
+ type: string
22504
+ description: The label of the topic
22505
+ createdAt:
22506
+ $ref: "#/components/schemas/Timestamp"
22507
+ updatedAt:
22508
+ $ref: "#/components/schemas/Timestamp"
22509
+ icon:
22510
+ $ref: "#/components/schemas/Icon"
22511
+ summary:
22512
+ $ref: "#/components/schemas/JSONDocument"
22513
+ usageSettings:
22514
+ $ref: "#/components/schemas/ContextUsageSettings"
22515
+ weeklyPulse:
22516
+ type: array
22517
+ minItems: 13
22518
+ maxItems: 13
22519
+ description: The weekly pulse of the records for the past 3 months
22520
+ items:
22521
+ type: number
22522
+ connectors:
22523
+ type: object
22524
+ additionalProperties:
22525
+ type: number
22526
+ description: The number of records for the connector
22527
+ stats:
22528
+ type: object
22529
+ description: The stats of the topic
22530
+ properties:
22531
+ records:
22532
+ type: number
22533
+ description: The number of records in the topic
22534
+ required:
22535
+ - records
22536
+ urls:
22537
+ type: object
22538
+ description: URLs associated with the topic
22539
+ properties:
22540
+ location:
22541
+ type: string
22542
+ description: URL of the topic in the API
22543
+ format: uri
22544
+ required:
22545
+ - location
22546
+ required:
22547
+ - object
22548
+ - id
22549
+ - label
22550
+ - summary
22551
+ - icon
22552
+ - usageSettings
22553
+ - connectors
22554
+ - stats
22555
+ - weeklyPulse
22556
+ - createdAt
22557
+ - updatedAt
22558
+ - urls
21747
22559
  SiteSpaceCustomizationSettings:
21748
22560
  allOf:
21749
22561
  - $ref: "#/components/schemas/SiteCustomizationSettings"
@@ -25256,6 +26068,9 @@ components:
25256
26068
  - file_edited
25257
26069
  - file_deleted
25258
26070
  - custom_fields_edited
26071
+ - tag_created
26072
+ - tag_deleted
26073
+ - tag_edited
25259
26074
  GitSyncOperationState:
25260
26075
  type: string
25261
26076
  description: |
@@ -26205,6 +27020,19 @@ components:
26205
27020
  required:
26206
27021
  - channel
26207
27022
  - site
27023
+ SiteContextChannel:
27024
+ type: object
27025
+ description: Subscription channel for changes in site context.
27026
+ properties:
27027
+ channel:
27028
+ type: string
27029
+ enum:
27030
+ - site-context
27031
+ site:
27032
+ type: string
27033
+ required:
27034
+ - channel
27035
+ - site
26208
27036
  SiteCustomizationChannel:
26209
27037
  type: object
26210
27038
  properties:
@@ -26504,6 +27332,7 @@ components:
26504
27332
  - $ref: "#/components/schemas/PublishedContentSiteChannel"
26505
27333
  - $ref: "#/components/schemas/SiteRedirectsChannel"
26506
27334
  - $ref: "#/components/schemas/SiteChannel"
27335
+ - $ref: "#/components/schemas/SiteContextChannel"
26507
27336
  - $ref: "#/components/schemas/SiteCustomizationChannel"
26508
27337
  - $ref: "#/components/schemas/SiteIntegrationsChannel"
26509
27338
  - $ref: "#/components/schemas/SiteSpaceChannel"