@gitbook/api 0.159.0 → 0.161.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/spec/openapi.yaml CHANGED
@@ -161,12 +161,12 @@ tags:
161
161
  x-parent: sites
162
162
  description: |
163
163
  Manage the advertisement strategy within your docs. You can specify ad placements, track usage, and adjust settings to best fit your organization's needs.
164
- - name: site-users
165
- x-page-title: Site users
166
- x-page-description: Manage which users can access or contribute to a docs site.
164
+ - name: site-permissions
165
+ x-page-title: Site permissions
166
+ x-page-description: Manage which members and teams can access or contribute to a docs site.
167
167
  x-parent: sites
168
168
  description: |
169
- Invite, remove, or update user permissions for a site. This provides a way to tightly control collaboration and visibility among your teammates.
169
+ Invite, remove, or update users and teams permissions for a site. This provides a way to tightly control collaboration and visibility among your teammates.
170
170
  - name: site-insights
171
171
  x-page-title: Site insights
172
172
  x-page-description: Analyze traffic and engagement metrics for your docs site.
@@ -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
@@ -195,18 +205,12 @@ tags:
195
205
  {% openapi-schemas spec="gitbook" schemas="Collection" grouped="false" %}
196
206
  The Collection object
197
207
  {% endopenapi-schemas %}
198
- - name: collection-users
199
- x-page-title: Collection users
200
- x-page-description: Handle permissions and user management for a specific collection.
208
+ - name: collection-permissions
209
+ x-page-title: Collection permissions
210
+ x-page-description: Manage which members and teams can access or contribute to a collection of spaces.
201
211
  x-parent: collections
202
212
  description: |
203
- Control which users have access to a collection's spaces. This ensures only the right individuals can view or modify sensitive content.
204
- - name: collection-teams
205
- x-page-title: Collection teams
206
- x-page-description: Allocate team-based permissions to your collections.
207
- x-parent: collections
208
- description: |
209
- Assign entire teams to a collection for easier role and permission management. Perfect for larger organizations looking to streamline content access.
213
+ Control which users and teams have access to a collection's spaces. This ensures only the right individuals can view or modify sensitive content.
210
214
  - name: spaces
211
215
  x-page-icon: book-sparkles
212
216
  x-page-title: Spaces
@@ -239,18 +243,12 @@ tags:
239
243
  x-parent: spaces
240
244
  description: |
241
245
  Automatically fetch metadata or previews for embedded resources such as videos, images, or external docs, enabling richer content experiences in your space.
242
- - name: space-users
243
- x-page-title: Space users
244
- x-page-description: Manage user roles and permissions on a per-space basis.
245
- x-parent: spaces
246
- description: |
247
- Give your collaborators the right level of access for specific spaces. This endpoint makes it simple to add, remove, or update space members individually.
248
- - name: space-teams
249
- x-page-title: Space teams
250
- x-page-description: Integrate team-based permissions for better collaboration in a space.
246
+ - name: space-permissions
247
+ x-page-title: Space permissions
248
+ x-page-description: Manage which members and teams roles and permissions on a per-space basis.
251
249
  x-parent: spaces
252
250
  description: |
253
- Assign entire teams to your spaces and streamline the process of granting or revoking access at scale, without dealing with individual user roles.
251
+ Give your collaborators the right level of access for specific spaces, or assign entire teams to your spaces and streamline the process of granting or revoking access at scale, without dealing with individual user roles.
254
252
  - name: space-integrations
255
253
  x-page-title: Space integrations
256
254
  x-page-description: Connect external tools and plugins to enhance your space functionality.
@@ -504,6 +502,7 @@ paths:
504
502
  summary: Get profile of authenticated user
505
503
  tags:
506
504
  - users
505
+ - critical
507
506
  security:
508
507
  - user: []
509
508
  description: |
@@ -930,8 +929,7 @@ paths:
930
929
  operationId: inviteToSpace
931
930
  summary: Invite a user or a team to a space
932
931
  tags:
933
- - space-users
934
- - space-teams
932
+ - space-permissions
935
933
  security:
936
934
  - user: []
937
935
  parameters:
@@ -951,9 +949,9 @@ paths:
951
949
  "/spaces/{spaceId}/permissions/teams/{teamId}":
952
950
  patch:
953
951
  operationId: updateTeamPermissionInSpace
954
- summary: Update a space team permission
952
+ summary: Update an org team's permission in a space
955
953
  tags:
956
- - space-teams
954
+ - space-permissions
957
955
  security:
958
956
  - user: []
959
957
  parameters:
@@ -976,9 +974,9 @@ paths:
976
974
  $ref: "#/components/responses/NotFoundError"
977
975
  delete:
978
976
  operationId: removeTeamFromSpace
979
- summary: Remove a space team
977
+ summary: Remove an org team from a space
980
978
  tags:
981
- - space-teams
979
+ - space-permissions
982
980
  security:
983
981
  - user: []
984
982
  parameters:
@@ -997,7 +995,7 @@ paths:
997
995
  operationId: listUserPermissionsInSpace
998
996
  summary: List space user permissions
999
997
  tags:
1000
- - space-users
998
+ - space-permissions
1001
999
  security:
1002
1000
  - user: []
1003
1001
  parameters:
@@ -1028,7 +1026,7 @@ paths:
1028
1026
  operationId: updateUserPermissionInSpace
1029
1027
  summary: Update space user permissions
1030
1028
  tags:
1031
- - space-users
1029
+ - space-permissions
1032
1030
  security:
1033
1031
  - user: []
1034
1032
  parameters:
@@ -1053,7 +1051,7 @@ paths:
1053
1051
  operationId: removeUserFromSpace
1054
1052
  summary: Remove a space user
1055
1053
  tags:
1056
- - space-users
1054
+ - space-permissions
1057
1055
  security:
1058
1056
  - user: []
1059
1057
  parameters:
@@ -1067,9 +1065,9 @@ paths:
1067
1065
  "/spaces/{spaceId}/permissions/teams":
1068
1066
  get:
1069
1067
  operationId: listTeamPermissionsInSpace
1070
- summary: List space team persmissions
1068
+ summary: List an org team's permission in a space
1071
1069
  tags:
1072
- - space-teams
1070
+ - space-permissions
1073
1071
  security:
1074
1072
  - user: []
1075
1073
  parameters:
@@ -3122,7 +3120,7 @@ paths:
3122
3120
  operationId: listPermissionsAggregateInSpace
3123
3121
  summary: List all space users permissions
3124
3122
  tags:
3125
- - space-users
3123
+ - space-permissions
3126
3124
  security:
3127
3125
  - user: []
3128
3126
  parameters:
@@ -3439,7 +3437,7 @@ paths:
3439
3437
  operationId: inviteToCollection
3440
3438
  summary: Invite to a collection
3441
3439
  tags:
3442
- - collection-users
3440
+ - collection-permissions
3443
3441
  security:
3444
3442
  - user: []
3445
3443
  parameters:
@@ -3459,9 +3457,9 @@ paths:
3459
3457
  "/collections/{collectionId}/permissions/teams":
3460
3458
  get:
3461
3459
  operationId: listTeamPermissionsInCollection
3462
- summary: List a collection team permissions
3460
+ summary: List an org team's permission in collection
3463
3461
  tags:
3464
- - collection-teams
3462
+ - collection-permissions
3465
3463
  security:
3466
3464
  - user: []
3467
3465
  parameters:
@@ -3496,9 +3494,9 @@ paths:
3496
3494
  "/collections/{collectionId}/permissions/teams/{teamId}":
3497
3495
  patch:
3498
3496
  operationId: updateTeamPermissionInCollection
3499
- summary: Update a collection team permission
3497
+ summary: Update an org team's permission in a collection
3500
3498
  tags:
3501
- - collection-teams
3499
+ - collection-permissions
3502
3500
  security:
3503
3501
  - user: []
3504
3502
  parameters:
@@ -3521,9 +3519,9 @@ paths:
3521
3519
  $ref: "#/components/responses/NotFoundError"
3522
3520
  delete:
3523
3521
  operationId: removeTeamFromCollection
3524
- summary: Remove a team from a collection
3522
+ summary: Remove an org team from a collection
3525
3523
  tags:
3526
- - collection-teams
3524
+ - collection-permissions
3527
3525
  security:
3528
3526
  - user: []
3529
3527
  parameters:
@@ -3539,7 +3537,7 @@ paths:
3539
3537
  operationId: listUserPermissionsInCollection
3540
3538
  summary: List collection user permissions
3541
3539
  tags:
3542
- - collection-users
3540
+ - collection-permissions
3543
3541
  security:
3544
3542
  - user: []
3545
3543
  parameters:
@@ -3570,7 +3568,7 @@ paths:
3570
3568
  operationId: updateUserPermissionInCollection
3571
3569
  summary: Update a collection user permission
3572
3570
  tags:
3573
- - collection-users
3571
+ - collection-permissions
3574
3572
  security:
3575
3573
  - user: []
3576
3574
  parameters:
@@ -3595,7 +3593,7 @@ paths:
3595
3593
  operationId: removeUserFromCollection
3596
3594
  summary: Remove a user from a collection
3597
3595
  tags:
3598
- - collection-users
3596
+ - collection-permissions
3599
3597
  security:
3600
3598
  - user: []
3601
3599
  parameters:
@@ -3611,7 +3609,7 @@ paths:
3611
3609
  operationId: listPermissionsAggregateInCollection
3612
3610
  summary: List all collections users permissions
3613
3611
  tags:
3614
- - collection-users
3612
+ - space-permissions
3615
3613
  security:
3616
3614
  - user: []
3617
3615
  parameters:
@@ -6551,6 +6549,11 @@ paths:
6551
6549
  - $ref: "#/components/parameters/organizationId"
6552
6550
  - $ref: "#/components/parameters/listPage"
6553
6551
  - $ref: "#/components/parameters/listLimit"
6552
+ - name: orderBy
6553
+ in: query
6554
+ description: Sort results by language key
6555
+ schema:
6556
+ $ref: "#/components/schemas/TranslationLanguage"
6554
6557
  responses:
6555
6558
  "200":
6556
6559
  description: OK
@@ -8148,6 +8151,289 @@ paths:
8148
8151
  text/event-stream:
8149
8152
  schema:
8150
8153
  $ref: "#/components/schemas/SearchAIRecommendedQuestionStream"
8154
+ "/orgs/{organizationId}/sites/{siteId}/context-records":
8155
+ get:
8156
+ operationId: listSiteContextRecords
8157
+ summary: List all context records
8158
+ tags:
8159
+ - site-context
8160
+ security:
8161
+ - user: []
8162
+ parameters:
8163
+ - $ref: "#/components/parameters/organizationId"
8164
+ - $ref: "#/components/parameters/siteId"
8165
+ - $ref: "#/components/parameters/listPage"
8166
+ - $ref: "#/components/parameters/listLimit"
8167
+ - name: type
8168
+ in: query
8169
+ description: Filter context records by type.
8170
+ schema:
8171
+ $ref: "#/components/schemas/ContextRecordType"
8172
+ - name: connector
8173
+ in: query
8174
+ description: Filter context records by connector type.
8175
+ schema:
8176
+ $ref: "#/components/schemas/ContextConnector"
8177
+ - name: connection
8178
+ in: query
8179
+ description: Filter context records by connection id.
8180
+ schema:
8181
+ type: string
8182
+ responses:
8183
+ "200":
8184
+ description: OK
8185
+ content:
8186
+ application/json:
8187
+ schema:
8188
+ allOf:
8189
+ - $ref: "#/components/schemas/List"
8190
+ - type: object
8191
+ required:
8192
+ - items
8193
+ properties:
8194
+ items:
8195
+ type: array
8196
+ items:
8197
+ $ref: "#/components/schemas/ContextRecord"
8198
+ put:
8199
+ operationId: upsertSiteContextRecords
8200
+ summary: Create or update context records
8201
+ tags:
8202
+ - site-context
8203
+ security:
8204
+ - user: []
8205
+ parameters:
8206
+ - $ref: "#/components/parameters/organizationId"
8207
+ - $ref: "#/components/parameters/siteId"
8208
+ requestBody:
8209
+ required: true
8210
+ content:
8211
+ application/json:
8212
+ schema:
8213
+ type: array
8214
+ items:
8215
+ $ref: "#/components/schemas/ContextRecordInput"
8216
+ responses:
8217
+ "204":
8218
+ description: The context records have been created or updated
8219
+ "/orgs/{organizationId}/sites/{siteId}/context-connections":
8220
+ get:
8221
+ operationId: listSiteContextConnections
8222
+ summary: List all context connections
8223
+ tags:
8224
+ - site-context
8225
+ security:
8226
+ - user: []
8227
+ parameters:
8228
+ - $ref: "#/components/parameters/organizationId"
8229
+ - $ref: "#/components/parameters/siteId"
8230
+ - $ref: "#/components/parameters/listPage"
8231
+ - $ref: "#/components/parameters/listLimit"
8232
+ responses:
8233
+ "200":
8234
+ description: OK
8235
+ content:
8236
+ application/json:
8237
+ schema:
8238
+ allOf:
8239
+ - $ref: "#/components/schemas/List"
8240
+ - type: object
8241
+ required:
8242
+ - items
8243
+ properties:
8244
+ items:
8245
+ type: array
8246
+ items:
8247
+ $ref: "#/components/schemas/ContextConnection"
8248
+ post:
8249
+ operationId: createSiteContextConnection
8250
+ summary: Create a context connection
8251
+ tags:
8252
+ - site-context
8253
+ security:
8254
+ - user: []
8255
+ parameters:
8256
+ - $ref: "#/components/parameters/organizationId"
8257
+ - $ref: "#/components/parameters/siteId"
8258
+ requestBody:
8259
+ required: true
8260
+ content:
8261
+ application/json:
8262
+ schema:
8263
+ allOf:
8264
+ - $ref: "#/components/schemas/ContextConnectorSetup"
8265
+ - type: object
8266
+ properties:
8267
+ usageSettings:
8268
+ $ref: "#/components/schemas/ContextUsageSettings"
8269
+ responses:
8270
+ "201":
8271
+ description: Created connection
8272
+ content:
8273
+ application/json:
8274
+ schema:
8275
+ $ref: "#/components/schemas/ContextConnection"
8276
+ "/orgs/{organizationId}/sites/{siteId}/context-connections/{siteContextConnectionId}":
8277
+ get:
8278
+ operationId: getSiteContextConnectionById
8279
+ summary: Get a context connection
8280
+ tags:
8281
+ - site-context
8282
+ security:
8283
+ - user: []
8284
+ parameters:
8285
+ - $ref: "#/components/parameters/organizationId"
8286
+ - $ref: "#/components/parameters/siteId"
8287
+ - $ref: "#/components/parameters/siteContextConnectionId"
8288
+ responses:
8289
+ "200":
8290
+ description: OK
8291
+ content:
8292
+ application/json:
8293
+ schema:
8294
+ $ref: "#/components/schemas/ContextConnection"
8295
+ patch:
8296
+ operationId: updateSiteContextConnectionById
8297
+ summary: Update a context connection
8298
+ tags:
8299
+ - site-context
8300
+ security:
8301
+ - user: []
8302
+ parameters:
8303
+ - $ref: "#/components/parameters/organizationId"
8304
+ - $ref: "#/components/parameters/siteId"
8305
+ - $ref: "#/components/parameters/siteContextConnectionId"
8306
+ requestBody:
8307
+ required: true
8308
+ content:
8309
+ application/json:
8310
+ schema:
8311
+ anyOf:
8312
+ - $ref: "#/components/schemas/ContextConnectorSetup"
8313
+ - type: object
8314
+ properties:
8315
+ usageSettings:
8316
+ $ref: "#/components/schemas/ContextUsageSettings"
8317
+ label:
8318
+ $ref: "#/components/schemas/ContextConnectionLabel"
8319
+ responses:
8320
+ "200":
8321
+ description: OK
8322
+ content:
8323
+ application/json:
8324
+ schema:
8325
+ $ref: "#/components/schemas/ContextConnection"
8326
+ delete:
8327
+ operationId: deleteSiteContextConnectionById
8328
+ summary: Delete a context connection
8329
+ tags:
8330
+ - site-context
8331
+ security:
8332
+ - user: []
8333
+ parameters:
8334
+ - $ref: "#/components/parameters/organizationId"
8335
+ - $ref: "#/components/parameters/siteId"
8336
+ - $ref: "#/components/parameters/siteContextConnectionId"
8337
+ responses:
8338
+ "204":
8339
+ description: Context connection did not exist
8340
+ "205":
8341
+ description: Context connection deleted
8342
+ "/orgs/{organizationId}/sites/{siteId}/context-connections/{siteContextConnectionId}/sync":
8343
+ post:
8344
+ operationId: syncSiteContextConnection
8345
+ summary: Trigger a sync for a context connection
8346
+ tags:
8347
+ - site-context
8348
+ security:
8349
+ - user: []
8350
+ parameters:
8351
+ - $ref: "#/components/parameters/organizationId"
8352
+ - $ref: "#/components/parameters/siteId"
8353
+ - $ref: "#/components/parameters/siteContextConnectionId"
8354
+ responses:
8355
+ "204":
8356
+ description: Sync started
8357
+ "400":
8358
+ description: Connection was synced less than an hour ago or invalid connector
8359
+ $ref: "#/components/responses/BadRequestError"
8360
+ "/orgs/{organizationId}/sites/{siteId}/context-topics":
8361
+ get:
8362
+ operationId: listSiteContextTopics
8363
+ summary: List all context topics
8364
+ tags:
8365
+ - site-context
8366
+ security:
8367
+ - user: []
8368
+ parameters:
8369
+ - $ref: "#/components/parameters/organizationId"
8370
+ - $ref: "#/components/parameters/siteId"
8371
+ - $ref: "#/components/parameters/listPage"
8372
+ - $ref: "#/components/parameters/listLimit"
8373
+ responses:
8374
+ "200":
8375
+ description: OK
8376
+ content:
8377
+ application/json:
8378
+ schema:
8379
+ allOf:
8380
+ - $ref: "#/components/schemas/List"
8381
+ - type: object
8382
+ required:
8383
+ - items
8384
+ properties:
8385
+ items:
8386
+ type: array
8387
+ items:
8388
+ $ref: "#/components/schemas/ContextTopic"
8389
+ "/orgs/{organizationId}/sites/{siteId}/context-topics/{siteContextTopicId}":
8390
+ get:
8391
+ operationId: getSiteContextTopicById
8392
+ summary: Get a context topic
8393
+ tags:
8394
+ - site-context
8395
+ security:
8396
+ - user: []
8397
+ parameters:
8398
+ - $ref: "#/components/parameters/organizationId"
8399
+ - $ref: "#/components/parameters/siteId"
8400
+ - $ref: "#/components/parameters/siteContextTopicId"
8401
+ responses:
8402
+ "200":
8403
+ description: OK
8404
+ content:
8405
+ application/json:
8406
+ schema:
8407
+ $ref: "#/components/schemas/ContextTopic"
8408
+ patch:
8409
+ operationId: updateSiteContextTopicById
8410
+ summary: Update a context topic
8411
+ tags:
8412
+ - site-context
8413
+ security:
8414
+ - user: []
8415
+ parameters:
8416
+ - $ref: "#/components/parameters/organizationId"
8417
+ - $ref: "#/components/parameters/siteId"
8418
+ - $ref: "#/components/parameters/siteContextTopicId"
8419
+ requestBody:
8420
+ required: true
8421
+ content:
8422
+ application/json:
8423
+ schema:
8424
+ type: object
8425
+ properties:
8426
+ usageSettings:
8427
+ $ref: "#/components/schemas/ContextUsageSettings"
8428
+ required:
8429
+ - usageSettings
8430
+ responses:
8431
+ "200":
8432
+ description: OK
8433
+ content:
8434
+ application/json:
8435
+ schema:
8436
+ $ref: "#/components/schemas/ContextTopic"
8151
8437
  "/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}":
8152
8438
  patch:
8153
8439
  operationId: updateSiteSpaceById
@@ -8720,6 +9006,29 @@ paths:
8720
9006
  "404":
8721
9007
  description: No matching Site space found
8722
9008
  $ref: "#/components/responses/NotFoundError"
9009
+ "/orgs/{organizationId}/sites/{siteId}/permissions":
9010
+ post:
9011
+ operationId: inviteToSite
9012
+ summary: Invite a user or a team to a site
9013
+ tags:
9014
+ - site-permissions
9015
+ security:
9016
+ - user: []
9017
+ parameters:
9018
+ - $ref: "#/components/parameters/organizationId"
9019
+ - $ref: "#/components/parameters/siteId"
9020
+ responses:
9021
+ "204":
9022
+ description: OK
9023
+ "404":
9024
+ description: No team or user with the provided Id
9025
+ $ref: "#/components/responses/NotFoundError"
9026
+ requestBody:
9027
+ required: true
9028
+ content:
9029
+ application/json:
9030
+ schema:
9031
+ $ref: "#/components/schemas/InviteSiteUsersAndTeams"
8723
9032
  "/orgs/{organizationId}/sites/{siteId}/permissions/aggregate":
8724
9033
  get:
8725
9034
  operationId: listPermissionsAggregateInSite
@@ -8749,32 +9058,182 @@ paths:
8749
9058
  type: array
8750
9059
  items:
8751
9060
  $ref: "#/components/schemas/UserSitePermission"
8752
- "/orgs/{organizationId}/sites/{siteId}/ai/response":
8753
- post:
8754
- operationId: streamAIResponseInSite
8755
- summary: Generate an AI response in a site
8756
- description: |
8757
- Generate an AI response in a conversation.
9061
+ "/orgs/{organizationId}/sites/{siteId}/permissions/users":
9062
+ get:
9063
+ operationId: listUserPermissionsInSite
9064
+ summary: List site user permissions
8758
9065
  tags:
8759
- - site-ai
9066
+ - site-users
8760
9067
  security:
8761
9068
  - user: []
8762
9069
  parameters:
8763
9070
  - $ref: "#/components/parameters/organizationId"
8764
9071
  - $ref: "#/components/parameters/siteId"
8765
- requestBody:
8766
- required: true
8767
- content:
8768
- application/json:
8769
- schema:
8770
- type: object
8771
- required:
8772
- - input
8773
- properties:
8774
- previousResponseId:
8775
- type: string
8776
- description: The ID of the previous response to continue from
8777
- input:
9072
+ - $ref: "#/components/parameters/listPage"
9073
+ - $ref: "#/components/parameters/listLimit"
9074
+ responses:
9075
+ "200":
9076
+ description: Listing of users who have been added to a site.
9077
+ content:
9078
+ application/json:
9079
+ schema:
9080
+ allOf:
9081
+ - $ref: "#/components/schemas/List"
9082
+ - type: object
9083
+ required:
9084
+ - items
9085
+ properties:
9086
+ items:
9087
+ type: array
9088
+ items:
9089
+ $ref: "#/components/schemas/UserSitePermissionOverride"
9090
+ "404":
9091
+ description: No site was found with the given Id
9092
+ $ref: "#/components/responses/NotFoundError"
9093
+ "/orgs/{organizationId}/sites/{siteId}/permissions/users/{userId}":
9094
+ patch:
9095
+ operationId: updateUserPermissionInSite
9096
+ summary: Update site user permissions
9097
+ tags:
9098
+ - site-users
9099
+ security:
9100
+ - user: []
9101
+ parameters:
9102
+ - $ref: "#/components/parameters/organizationId"
9103
+ - $ref: "#/components/parameters/siteId"
9104
+ - $ref: "#/components/parameters/userId"
9105
+ requestBody:
9106
+ required: true
9107
+ content:
9108
+ application/json:
9109
+ schema:
9110
+ type: object
9111
+ properties:
9112
+ role:
9113
+ $ref: "#/components/schemas/MemberRole"
9114
+ responses:
9115
+ "204":
9116
+ description: User permission was updated
9117
+ "404":
9118
+ description: No user found with the given ID
9119
+ $ref: "#/components/responses/NotFoundError"
9120
+ delete:
9121
+ operationId: removeUserFromSite
9122
+ summary: Remove a site user
9123
+ tags:
9124
+ - site-users
9125
+ security:
9126
+ - user: []
9127
+ parameters:
9128
+ - $ref: "#/components/parameters/organizationId"
9129
+ - $ref: "#/components/parameters/siteId"
9130
+ - $ref: "#/components/parameters/userId"
9131
+ responses:
9132
+ "204":
9133
+ description: The user was not found in the site
9134
+ "205":
9135
+ description: The user has been removed from the site
9136
+ "/orgs/{organizationId}/sites/{siteId}/permissions/teams":
9137
+ get:
9138
+ operationId: listTeamPermissionsInSite
9139
+ summary: List an org team's permission in a site
9140
+ tags:
9141
+ - site-permissions
9142
+ security:
9143
+ - user: []
9144
+ parameters:
9145
+ - $ref: "#/components/parameters/organizationId"
9146
+ - $ref: "#/components/parameters/siteId"
9147
+ - $ref: "#/components/parameters/listPage"
9148
+ - $ref: "#/components/parameters/listLimit"
9149
+ responses:
9150
+ "200":
9151
+ description: Listing of teams who have been added to a site.
9152
+ content:
9153
+ application/json:
9154
+ schema:
9155
+ allOf:
9156
+ - $ref: "#/components/schemas/List"
9157
+ - type: object
9158
+ required:
9159
+ - items
9160
+ properties:
9161
+ items:
9162
+ type: array
9163
+ items:
9164
+ $ref: "#/components/schemas/TeamSitePermissionOverride"
9165
+ "404":
9166
+ description: No site was found with the given Id
9167
+ $ref: "#/components/responses/NotFoundError"
9168
+ "/orgs/{organizationId}/sites/{siteId}/permissions/teams/{teamId}":
9169
+ patch:
9170
+ operationId: updateTeamPermissionInSite
9171
+ summary: Update an org team's permission in a site
9172
+ tags:
9173
+ - site-permissions
9174
+ security:
9175
+ - user: []
9176
+ parameters:
9177
+ - $ref: "#/components/parameters/organizationId"
9178
+ - $ref: "#/components/parameters/siteId"
9179
+ - $ref: "#/components/parameters/teamId"
9180
+ requestBody:
9181
+ required: true
9182
+ content:
9183
+ application/json:
9184
+ schema:
9185
+ type: object
9186
+ properties:
9187
+ role:
9188
+ $ref: "#/components/schemas/MemberRole"
9189
+ responses:
9190
+ "204":
9191
+ description: Team permission was updated
9192
+ "404":
9193
+ description: No team found with the given ID
9194
+ $ref: "#/components/responses/NotFoundError"
9195
+ delete:
9196
+ operationId: removeTeamFromSite
9197
+ summary: Remove an org team from a site
9198
+ tags:
9199
+ - site-permissions
9200
+ security:
9201
+ - user: []
9202
+ parameters:
9203
+ - $ref: "#/components/parameters/organizationId"
9204
+ - $ref: "#/components/parameters/siteId"
9205
+ - $ref: "#/components/parameters/teamId"
9206
+ responses:
9207
+ "204":
9208
+ description: The team was not found in the site
9209
+ "205":
9210
+ description: The team has been removed from the site
9211
+ "/orgs/{organizationId}/sites/{siteId}/ai/response":
9212
+ post:
9213
+ operationId: streamAIResponseInSite
9214
+ summary: Generate an AI response in a site
9215
+ description: |
9216
+ Generate an AI response in a conversation.
9217
+ tags:
9218
+ - site-ai
9219
+ security:
9220
+ - user: []
9221
+ parameters:
9222
+ - $ref: "#/components/parameters/organizationId"
9223
+ - $ref: "#/components/parameters/siteId"
9224
+ requestBody:
9225
+ required: true
9226
+ content:
9227
+ application/json:
9228
+ schema:
9229
+ type: object
9230
+ required:
9231
+ - input
9232
+ properties:
9233
+ previousResponseId:
9234
+ type: string
9235
+ description: The ID of the previous response to continue from
9236
+ input:
8778
9237
  type: array
8779
9238
  description: The messages to send to the AI agent.
8780
9239
  items:
@@ -9986,6 +10445,20 @@ components:
9986
10445
  description: The unique id of the section within a site
9987
10446
  schema:
9988
10447
  type: string
10448
+ siteContextConnectionId:
10449
+ name: siteContextConnectionId
10450
+ in: path
10451
+ required: true
10452
+ description: The unique id of the context connection
10453
+ schema:
10454
+ type: string
10455
+ siteContextTopicId:
10456
+ name: siteContextTopicId
10457
+ in: path
10458
+ required: true
10459
+ description: The unique id of the context topic
10460
+ schema:
10461
+ type: string
9989
10462
  siteSpaceId:
9990
10463
  name: siteSpaceId
9991
10464
  in: path
@@ -10522,6 +10995,9 @@ components:
10522
10995
  internal_poweredByV2:
10523
10996
  type: boolean
10524
10997
  description: Whether the space is powered by V2 of the content system.
10998
+ internal_singleWebsocket:
10999
+ type: boolean
11000
+ description: Whether the space uses a single websocket connection for all real-time communication.
10525
11001
  permissions:
10526
11002
  type: object
10527
11003
  description: The set of permissions for the space
@@ -10810,6 +11286,7 @@ components:
10810
11286
  repoCacheID:
10811
11287
  type: string
10812
11288
  description: Unique identifier to use to cache the Git repository across multiple operations.
11289
+ deprecated: true
10813
11290
  repoTreeURL:
10814
11291
  type: string
10815
11292
  description: URL to use as a prefix for external file references.
@@ -10849,6 +11326,7 @@ components:
10849
11326
  repoCacheID:
10850
11327
  type: string
10851
11328
  description: Unique identifier to use to cache the Git repository across multiple operations.
11329
+ deprecated: true
10852
11330
  repoTreeURL:
10853
11331
  type: string
10854
11332
  description: URL to use as a prefix for external file references.
@@ -11780,6 +12258,8 @@ components:
11780
12258
  - warning
11781
12259
  - danger
11782
12260
  - success
12261
+ icon:
12262
+ $ref: "#/components/schemas/Icon"
11783
12263
  required:
11784
12264
  - style
11785
12265
  nodes:
@@ -12670,7 +13150,9 @@ components:
12670
13150
  - true
12671
13151
  data:
12672
13152
  type: object
12673
- properties: {}
13153
+ properties:
13154
+ defaultExpanded:
13155
+ type: boolean
12674
13156
  additionalProperties: false
12675
13157
  fragments:
12676
13158
  type: array
@@ -13348,6 +13830,22 @@ components:
13348
13830
  - data
13349
13831
  - nodes
13350
13832
  - isVoid
13833
+ ContentRefTag:
13834
+ type: object
13835
+ properties:
13836
+ kind:
13837
+ type: string
13838
+ enum:
13839
+ - tag
13840
+ tag:
13841
+ type: string
13842
+ description: The slug of the tag, also used as the ID, and references the tags defined on a revision.
13843
+ space:
13844
+ type: string
13845
+ 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.
13846
+ required:
13847
+ - kind
13848
+ - tag
13351
13849
  DocumentBlockUpdate:
13352
13850
  type: object
13353
13851
  properties:
@@ -13385,8 +13883,9 @@ components:
13385
13883
  $ref: "#/components/schemas/Timestamp"
13386
13884
  tags:
13387
13885
  type: array
13886
+ description: Array of tags. Each tag is id'ed by its slug.
13388
13887
  items:
13389
- type: string
13888
+ $ref: "#/components/schemas/ContentRefTag"
13390
13889
  required:
13391
13890
  - date
13392
13891
  isVoid:
@@ -13688,6 +14187,11 @@ components:
13688
14187
  metaLinks:
13689
14188
  description: Meta links associated with the page.
13690
14189
  $ref: "#/components/schemas/RevisionPageMetaLinks"
14190
+ tags:
14191
+ type: array
14192
+ description: A list of all the tags added to this page
14193
+ items:
14194
+ $ref: "#/components/schemas/RevisionPageTag"
13691
14195
  required:
13692
14196
  - kind
13693
14197
  - type
@@ -13696,6 +14200,7 @@ components:
13696
14200
  - path
13697
14201
  - pages
13698
14202
  - layout
14203
+ - tags
13699
14204
  - oneOf:
13700
14205
  - type: object
13701
14206
  description: Defined when the page was generated by a computed content.
@@ -13739,6 +14244,15 @@ components:
13739
14244
  - kind
13740
14245
  - type
13741
14246
  - target
14247
+ OpenAPISpecVisibility:
14248
+ type: string
14249
+ description: |
14250
+ The visibility setting of the OpenAPI spec.
14251
+ * `private`: The spec is not publicly available.
14252
+ * `public`: The spec is available to anyone with a public link.
14253
+ enum:
14254
+ - private
14255
+ - public
13742
14256
  ComputedContentDependencyOpenAPI:
13743
14257
  type: object
13744
14258
  properties:
@@ -13759,6 +14273,8 @@ components:
13759
14273
  type: string
13760
14274
  lastVersion:
13761
14275
  type: string
14276
+ visibility:
14277
+ $ref: "#/components/schemas/OpenAPISpecVisibility"
13762
14278
  required:
13763
14279
  - object
13764
14280
  - id
@@ -14022,6 +14538,9 @@ components:
14022
14538
  metadata:
14023
14539
  type: boolean
14024
14540
  description: Should the page metadata (last modified, author, etc.) be visible?
14541
+ tags:
14542
+ type: boolean
14543
+ description: Should the tags be visible on the page?
14025
14544
  required:
14026
14545
  - width
14027
14546
  - cover
@@ -14032,6 +14551,7 @@ components:
14032
14551
  - outline
14033
14552
  - pagination
14034
14553
  - metadata
14554
+ - tags
14035
14555
  RevisionPageDocumentCover:
14036
14556
  type: object
14037
14557
  properties:
@@ -14080,6 +14600,17 @@ components:
14080
14600
  type: array
14081
14601
  items:
14082
14602
  $ref: "#/components/schemas/RevisionPageMetaLinkTarget"
14603
+ RevisionPageTag:
14604
+ type: object
14605
+ description: A reference to a tag with optional primary flag for page-level tags.
14606
+ properties:
14607
+ tag:
14608
+ $ref: "#/components/schemas/ContentRefTag"
14609
+ primary:
14610
+ type: boolean
14611
+ description: Whether this is the primary tag for display in table of contents.
14612
+ required:
14613
+ - tag
14083
14614
  ComputedContentSourceDocumentOpenAPI:
14084
14615
  allOf:
14085
14616
  - $ref: "#/components/schemas/ComputedContentSourceOpenAPIBase"
@@ -14252,6 +14783,19 @@ components:
14252
14783
  document:
14253
14784
  type: string
14254
14785
  description: ID of the document with the content body. If undefined, the reusable content is empty.
14786
+ RevisionTag:
14787
+ type: object
14788
+ description: A reusable tag that different types of content can be associated to (e.g. pages, update entries)
14789
+ properties:
14790
+ slug:
14791
+ type: string
14792
+ description: The slug identifier for the tag, immutable after creation.
14793
+ label:
14794
+ type: string
14795
+ description: Display label for the tag. Can be renamed and differ from the slug.
14796
+ required:
14797
+ - slug
14798
+ - label
14255
14799
  GitSyncCommit:
14256
14800
  type: object
14257
14801
  properties:
@@ -14302,6 +14846,11 @@ components:
14302
14846
  type: array
14303
14847
  items:
14304
14848
  $ref: "#/components/schemas/RevisionReusableContent"
14849
+ tags:
14850
+ type: array
14851
+ description: List of available tags within this revision
14852
+ items:
14853
+ $ref: "#/components/schemas/RevisionTag"
14305
14854
  variables:
14306
14855
  $ref: "#/components/schemas/Variables"
14307
14856
  createdAt:
@@ -14334,6 +14883,7 @@ components:
14334
14883
  - pages
14335
14884
  - files
14336
14885
  - reusableContents
14886
+ - tags
14337
14887
  - urls
14338
14888
  - createdAt
14339
14889
  RevisionTypeEdits:
@@ -14819,6 +15369,9 @@ components:
14819
15369
  view:
14820
15370
  type: boolean
14821
15371
  description: Can the user view the organization.
15372
+ access:
15373
+ type: boolean
15374
+ description: Can the user view the organization in the application.
14822
15375
  admin:
14823
15376
  type: boolean
14824
15377
  description: Can the user manage the title, members, etc.
@@ -14854,6 +15407,7 @@ components:
14854
15407
  description: Can the user install integrations in the organization.
14855
15408
  required:
14856
15409
  - view
15410
+ - access
14857
15411
  - admin
14858
15412
  - ownTeam
14859
15413
  - createContent
@@ -15140,15 +15694,6 @@ components:
15140
15694
  - pending
15141
15695
  - progress
15142
15696
  - complete
15143
- OpenAPISpecVisibility:
15144
- type: string
15145
- description: |
15146
- The visibility setting of the OpenAPI spec.
15147
- * `private`: The spec is not publicly available.
15148
- * `public`: The spec is available to anyone with a public link.
15149
- enum:
15150
- - private
15151
- - public
15152
15697
  OpenAPISpecProcessingErrorCode:
15153
15698
  description: OpenAPI processing error code
15154
15699
  enum:
@@ -16117,6 +16662,61 @@ components:
16117
16662
  - type
16118
16663
  - reusableContent
16119
16664
  - attributes
16665
+ ChangedRevisionTag:
16666
+ type: object
16667
+ properties:
16668
+ slug:
16669
+ type: string
16670
+ label:
16671
+ type: string
16672
+ required:
16673
+ - slug
16674
+ - label
16675
+ RevisionSemanticChangeTagCreated:
16676
+ type: object
16677
+ properties:
16678
+ type:
16679
+ type: string
16680
+ enum:
16681
+ - tag_created
16682
+ tag:
16683
+ $ref: "#/components/schemas/ChangedRevisionTag"
16684
+ required:
16685
+ - type
16686
+ - tag
16687
+ RevisionSemanticChangeTagDeleted:
16688
+ type: object
16689
+ properties:
16690
+ type:
16691
+ type: string
16692
+ enum:
16693
+ - tag_deleted
16694
+ tag:
16695
+ $ref: "#/components/schemas/ChangedRevisionTag"
16696
+ required:
16697
+ - type
16698
+ - tag
16699
+ RevisionTagChangeAttributes:
16700
+ type: object
16701
+ minProperties: 1
16702
+ properties:
16703
+ label:
16704
+ $ref: "#/components/schemas/ChangeAttributeString"
16705
+ RevisionSemanticChangeTagEdited:
16706
+ type: object
16707
+ properties:
16708
+ type:
16709
+ type: string
16710
+ enum:
16711
+ - tag_edited
16712
+ tag:
16713
+ $ref: "#/components/schemas/ChangedRevisionTag"
16714
+ attributes:
16715
+ $ref: "#/components/schemas/RevisionTagChangeAttributes"
16716
+ required:
16717
+ - type
16718
+ - tag
16719
+ - attributes
16120
16720
  RevisionSemanticChange:
16121
16721
  oneOf:
16122
16722
  - $ref: "#/components/schemas/RevisionSemanticChangePageCreated"
@@ -16130,6 +16730,9 @@ components:
16130
16730
  - $ref: "#/components/schemas/RevisionSemanticChangeReusableContentCreated"
16131
16731
  - $ref: "#/components/schemas/RevisionSemanticChangeReusableContentDeleted"
16132
16732
  - $ref: "#/components/schemas/RevisionSemanticChangeReusableContentEdited"
16733
+ - $ref: "#/components/schemas/RevisionSemanticChangeTagCreated"
16734
+ - $ref: "#/components/schemas/RevisionSemanticChangeTagDeleted"
16735
+ - $ref: "#/components/schemas/RevisionSemanticChangeTagEdited"
16133
16736
  RevisionSemanticChanges:
16134
16737
  type: object
16135
16738
  properties:
@@ -19872,7 +20475,7 @@ components:
19872
20475
  type: string
19873
20476
  required:
19874
20477
  - query
19875
- SearchAIAnswerSource:
20478
+ SearchAIAnswerSourcePage:
19876
20479
  type: object
19877
20480
  title: Page source
19878
20481
  description: The source points to a page in a space.
@@ -19904,18 +20507,55 @@ components:
19904
20507
  - revision
19905
20508
  - space
19906
20509
  - sections
19907
- SearchAIAnswer:
20510
+ SearchAIAnswerSourceRecord:
19908
20511
  type: object
19909
- description: Answer from AI for a question asked on a content.
20512
+ title: Site context record source
20513
+ description: The source points to an ingested site context record.
19910
20514
  properties:
19911
- answer:
19912
- $ref: "#/components/schemas/Document"
19913
- followupQuestions:
19914
- type: array
19915
- items:
19916
- type: string
19917
- sources:
19918
- type: array
20515
+ type:
20516
+ type: string
20517
+ enum:
20518
+ - record
20519
+ reason:
20520
+ type: string
20521
+ description: Short explanation of how the source was used to answer.
20522
+ record:
20523
+ type: string
20524
+ description: The context record ID of the source.
20525
+ site:
20526
+ type: string
20527
+ description: The site ID owning the source record.
20528
+ title:
20529
+ type: string
20530
+ description: The title of the source record.
20531
+ url:
20532
+ type: string
20533
+ format: uri
20534
+ description: The source URL of the context record.
20535
+ required:
20536
+ - type
20537
+ - record
20538
+ - site
20539
+ - title
20540
+ - url
20541
+ SearchAIAnswerSource:
20542
+ oneOf:
20543
+ - $ref: "#/components/schemas/SearchAIAnswerSourcePage"
20544
+ - $ref: "#/components/schemas/SearchAIAnswerSourceRecord"
20545
+ discriminator:
20546
+ propertyName: type
20547
+ SearchAIAnswer:
20548
+ type: object
20549
+ description: Answer from AI for a question asked on a content.
20550
+ properties:
20551
+ answer:
20552
+ $ref: "#/components/schemas/Document"
20553
+ followupQuestions:
20554
+ type: array
20555
+ items:
20556
+ type: string
20557
+ sources:
20558
+ type: array
19919
20559
  description: The sources used to generate the answer.
19920
20560
  items:
19921
20561
  $ref: "#/components/schemas/SearchAIAnswerSource"
@@ -21850,6 +22490,314 @@ components:
21850
22490
  type: string
21851
22491
  enum:
21852
22492
  - all
22493
+ ContextRecordType:
22494
+ type: string
22495
+ enum:
22496
+ - ticket
22497
+ - document
22498
+ ContextConnector:
22499
+ oneOf:
22500
+ - type: string
22501
+ description: Integration source
22502
+ pattern: ^integration:[^:]+$
22503
+ x-typescript: "`integration:${string}`"
22504
+ - type: string
22505
+ description: Builtin sources
22506
+ enum:
22507
+ - builtin:email
22508
+ - builtin:api
22509
+ - builtin:website
22510
+ - builtin:youtube
22511
+ ContextRecordTitle:
22512
+ type: string
22513
+ description: Title for the context record
22514
+ minLength: 1
22515
+ maxLength: 256
22516
+ ContextRecordDescription:
22517
+ type: string
22518
+ description: Optional short description of the context record
22519
+ maxLength: 512
22520
+ ContextRecord:
22521
+ type: object
22522
+ properties:
22523
+ object:
22524
+ type: string
22525
+ enum:
22526
+ - context-record
22527
+ id:
22528
+ type: string
22529
+ description: The ID of the record
22530
+ title:
22531
+ $ref: "#/components/schemas/ContextRecordTitle"
22532
+ description:
22533
+ $ref: "#/components/schemas/ContextRecordDescription"
22534
+ type:
22535
+ $ref: "#/components/schemas/ContextRecordType"
22536
+ createdAt:
22537
+ $ref: "#/components/schemas/Timestamp"
22538
+ processedAt:
22539
+ $ref: "#/components/schemas/Timestamp"
22540
+ connection:
22541
+ type: string
22542
+ description: The connection ID associated with the record
22543
+ connector:
22544
+ description: The connector type associated with the record
22545
+ $ref: "#/components/schemas/ContextConnector"
22546
+ topics:
22547
+ type: array
22548
+ description: The associated topics of the record
22549
+ items:
22550
+ type: string
22551
+ urls:
22552
+ type: object
22553
+ description: URLs associated with the record
22554
+ properties:
22555
+ location:
22556
+ type: string
22557
+ description: URL of the record in the API
22558
+ format: uri
22559
+ source:
22560
+ type: string
22561
+ description: URL of the record in the source
22562
+ format: uri
22563
+ required:
22564
+ - location
22565
+ required:
22566
+ - object
22567
+ - id
22568
+ - title
22569
+ - type
22570
+ - createdAt
22571
+ - connection
22572
+ - connector
22573
+ - urls
22574
+ ContextRecordInput:
22575
+ type: object
22576
+ description: Input to ingest a new context record
22577
+ properties:
22578
+ id:
22579
+ type: string
22580
+ description: Unique local identifier for the record
22581
+ type:
22582
+ $ref: "#/components/schemas/ContextRecordType"
22583
+ title:
22584
+ $ref: "#/components/schemas/ContextRecordTitle"
22585
+ description:
22586
+ $ref: "#/components/schemas/ContextRecordDescription"
22587
+ body:
22588
+ type: string
22589
+ description: Body content of the record as markdown
22590
+ url:
22591
+ type: string
22592
+ description: URL of the record
22593
+ format: uri
22594
+ metadata:
22595
+ type: object
22596
+ additionalProperties:
22597
+ type: string
22598
+ required:
22599
+ - id
22600
+ - title
22601
+ - body
22602
+ - type
22603
+ ContextConnectionLabel:
22604
+ type: string
22605
+ description: Optional label for the connection
22606
+ minLength: 0
22607
+ maxLength: 128
22608
+ ContextConnectionStatus:
22609
+ type: string
22610
+ enum:
22611
+ - pending
22612
+ - syncing
22613
+ - succeeded
22614
+ - failed
22615
+ ContextUsageSettings:
22616
+ type: object
22617
+ properties:
22618
+ changeRequests:
22619
+ type: boolean
22620
+ description: Whether to use context to propose change requests
22621
+ search:
22622
+ type: boolean
22623
+ description: Whether to expose records in search results
22624
+ required:
22625
+ - changeRequests
22626
+ - search
22627
+ ContextConnectorSetup:
22628
+ oneOf:
22629
+ - type: object
22630
+ properties:
22631
+ connector:
22632
+ type: string
22633
+ enum:
22634
+ - builtin:email
22635
+ - builtin:api
22636
+ required:
22637
+ - connector
22638
+ - type: object
22639
+ properties:
22640
+ connector:
22641
+ type: string
22642
+ pattern: ^integration:[^:]+$
22643
+ x-typescript: "`integration:${string}`"
22644
+ required:
22645
+ - connector
22646
+ - type: object
22647
+ properties:
22648
+ connector:
22649
+ type: string
22650
+ enum:
22651
+ - builtin:website
22652
+ setupSettings:
22653
+ type: object
22654
+ properties:
22655
+ url:
22656
+ type: string
22657
+ format: uri
22658
+ required:
22659
+ - url
22660
+ required:
22661
+ - connector
22662
+ - setupSettings
22663
+ - type: object
22664
+ properties:
22665
+ connector:
22666
+ type: string
22667
+ enum:
22668
+ - builtin:youtube
22669
+ setupSettings:
22670
+ type: object
22671
+ properties:
22672
+ channelId:
22673
+ type: string
22674
+ pattern: ^UC[A-Za-z0-9_-]{22}$
22675
+ required:
22676
+ - channelId
22677
+ required:
22678
+ - connector
22679
+ - setupSettings
22680
+ ContextConnection:
22681
+ allOf:
22682
+ - type: object
22683
+ properties:
22684
+ object:
22685
+ type: string
22686
+ enum:
22687
+ - context-connection
22688
+ id:
22689
+ type: string
22690
+ description: The ID of the connection
22691
+ createdAt:
22692
+ $ref: "#/components/schemas/Timestamp"
22693
+ syncedAt:
22694
+ $ref: "#/components/schemas/Timestamp"
22695
+ label:
22696
+ $ref: "#/components/schemas/ContextConnectionLabel"
22697
+ status:
22698
+ $ref: "#/components/schemas/ContextConnectionStatus"
22699
+ records:
22700
+ type: integer
22701
+ description: Number of records ingested from this connection
22702
+ failureMessage:
22703
+ type: string
22704
+ description: Failure message when synchronization fails
22705
+ email:
22706
+ type: object
22707
+ description: Parameters associated with the connection when it is an email connection
22708
+ properties:
22709
+ ingestionAddress:
22710
+ type: string
22711
+ description: Inbound email address for the connection
22712
+ format: email
22713
+ usageSettings:
22714
+ $ref: "#/components/schemas/ContextUsageSettings"
22715
+ urls:
22716
+ type: object
22717
+ description: URLs associated with the connection
22718
+ properties:
22719
+ location:
22720
+ type: string
22721
+ description: URL of the connection in the API
22722
+ format: uri
22723
+ required:
22724
+ - location
22725
+ required:
22726
+ - object
22727
+ - id
22728
+ - createdAt
22729
+ - status
22730
+ - records
22731
+ - usageSettings
22732
+ - urls
22733
+ - $ref: "#/components/schemas/ContextConnectorSetup"
22734
+ ContextTopic:
22735
+ type: object
22736
+ properties:
22737
+ object:
22738
+ type: string
22739
+ enum:
22740
+ - context-topic
22741
+ id:
22742
+ type: string
22743
+ description: The ID of the topic
22744
+ label:
22745
+ type: string
22746
+ description: The label of the topic
22747
+ createdAt:
22748
+ $ref: "#/components/schemas/Timestamp"
22749
+ updatedAt:
22750
+ $ref: "#/components/schemas/Timestamp"
22751
+ icon:
22752
+ $ref: "#/components/schemas/Icon"
22753
+ summary:
22754
+ $ref: "#/components/schemas/JSONDocument"
22755
+ usageSettings:
22756
+ $ref: "#/components/schemas/ContextUsageSettings"
22757
+ weeklyPulse:
22758
+ type: array
22759
+ minItems: 13
22760
+ maxItems: 13
22761
+ description: The weekly pulse of the records for the past 3 months
22762
+ items:
22763
+ type: number
22764
+ connectors:
22765
+ type: object
22766
+ additionalProperties:
22767
+ type: number
22768
+ description: The number of records for the connector
22769
+ stats:
22770
+ type: object
22771
+ description: The stats of the topic
22772
+ properties:
22773
+ records:
22774
+ type: number
22775
+ description: The number of records in the topic
22776
+ required:
22777
+ - records
22778
+ urls:
22779
+ type: object
22780
+ description: URLs associated with the topic
22781
+ properties:
22782
+ location:
22783
+ type: string
22784
+ description: URL of the topic in the API
22785
+ format: uri
22786
+ required:
22787
+ - location
22788
+ required:
22789
+ - object
22790
+ - id
22791
+ - label
22792
+ - summary
22793
+ - icon
22794
+ - usageSettings
22795
+ - connectors
22796
+ - stats
22797
+ - weeklyPulse
22798
+ - createdAt
22799
+ - updatedAt
22800
+ - urls
21853
22801
  SiteSpaceCustomizationSettings:
21854
22802
  allOf:
21855
22803
  - $ref: "#/components/schemas/SiteCustomizationSettings"
@@ -21924,6 +22872,35 @@ components:
21924
22872
  $ref: "#/components/schemas/SiteSpacePointer"
21925
22873
  after:
21926
22874
  $ref: "#/components/schemas/SiteSpacePointer"
22875
+ InviteSiteUsersAndTeams:
22876
+ type: object
22877
+ properties:
22878
+ role:
22879
+ description: Role to set.
22880
+ $ref: "#/components/schemas/MemberRole"
22881
+ anyOf:
22882
+ - type: object
22883
+ properties:
22884
+ teams:
22885
+ type: array
22886
+ minItems: 1
22887
+ items:
22888
+ type: string
22889
+ description: The ID of the team to be invited
22890
+ required:
22891
+ - teams
22892
+ - type: object
22893
+ properties:
22894
+ users:
22895
+ type: array
22896
+ minItems: 1
22897
+ items:
22898
+ type: string
22899
+ description: The ID of the user to be invited
22900
+ required:
22901
+ - users
22902
+ required:
22903
+ - role
21927
22904
  OrganizationPointer:
21928
22905
  type: object
21929
22906
  properties:
@@ -21954,6 +22931,28 @@ components:
21954
22931
  - permission
21955
22932
  - user
21956
22933
  - origin
22934
+ UserSitePermissionOverride:
22935
+ type: object
22936
+ description: Permission override of a user in a site.
22937
+ properties:
22938
+ permission:
22939
+ $ref: "#/components/schemas/MemberRole"
22940
+ user:
22941
+ $ref: "#/components/schemas/User"
22942
+ required:
22943
+ - permission
22944
+ - user
22945
+ TeamSitePermissionOverride:
22946
+ type: object
22947
+ description: Permission override of a team in a site.
22948
+ properties:
22949
+ permission:
22950
+ $ref: "#/components/schemas/MemberRole"
22951
+ team:
22952
+ $ref: "#/components/schemas/OrganizationTeam"
22953
+ required:
22954
+ - permission
22955
+ - team
21957
22956
  AIMessageContext:
21958
22957
  type: object
21959
22958
  description: Context about the current user sending a message.
@@ -22331,10 +23330,15 @@ components:
22331
23330
  - tool
22332
23331
  - spaceId
22333
23332
  - revisionId
22334
- AIToolCallSearchResult:
23333
+ AIToolCallSearchResultPage:
22335
23334
  type: object
22336
- description: Result of a search
23335
+ title: Page result
23336
+ description: Result of a search matching a page.
22337
23337
  properties:
23338
+ type:
23339
+ type: string
23340
+ enum:
23341
+ - page
22338
23342
  spaceId:
22339
23343
  type: string
22340
23344
  description: The ID of the space
@@ -22354,10 +23358,48 @@ components:
22354
23358
  type: string
22355
23359
  description: The description of the result
22356
23360
  required:
23361
+ - type
22357
23362
  - spaceId
22358
23363
  - pageId
22359
23364
  - revisionId
22360
23365
  - title
23366
+ AIToolCallSearchResultRecord:
23367
+ type: object
23368
+ title: Site context record result
23369
+ description: Result of a search matching a site context record.
23370
+ properties:
23371
+ type:
23372
+ type: string
23373
+ enum:
23374
+ - record
23375
+ siteId:
23376
+ type: string
23377
+ description: The ID of the site owning the context record
23378
+ recordId:
23379
+ type: string
23380
+ description: The ID of the context record
23381
+ title:
23382
+ type: string
23383
+ description: The title of the record
23384
+ description:
23385
+ type: string
23386
+ description: The description of the record
23387
+ url:
23388
+ type: string
23389
+ format: uri
23390
+ description: URL of the record in its original source
23391
+ required:
23392
+ - type
23393
+ - siteId
23394
+ - recordId
23395
+ - title
23396
+ AIToolCallSearchResult:
23397
+ description: Result of a search
23398
+ oneOf:
23399
+ - $ref: "#/components/schemas/AIToolCallSearchResultPage"
23400
+ - $ref: "#/components/schemas/AIToolCallSearchResultRecord"
23401
+ discriminator:
23402
+ propertyName: type
22361
23403
  AIToolCallSearch:
22362
23404
  type: object
22363
23405
  description: Tool to search for content
@@ -24918,6 +25960,41 @@ components:
24918
25960
  description: ID of the organization owning this site
24919
25961
  required:
24920
25962
  - organization
25963
+ PublishedContentRedirect:
25964
+ oneOf:
25965
+ - type: object
25966
+ title: Redirect to the application or a different content in the site
25967
+ properties:
25968
+ target:
25969
+ type: string
25970
+ description: Type of target for the redirect
25971
+ enum:
25972
+ - application
25973
+ - content
25974
+ redirect:
25975
+ $ref: "#/components/schemas/URL"
25976
+ required:
25977
+ - target
25978
+ - redirect
25979
+ - type: object
25980
+ title: Redirect to an external resource from the site
25981
+ properties:
25982
+ target:
25983
+ type: string
25984
+ description: Type of target for the redirect
25985
+ enum:
25986
+ - external
25987
+ site:
25988
+ type: string
25989
+ description: ID of the resolved site.
25990
+ redirect:
25991
+ $ref: "#/components/schemas/URL"
25992
+ required:
25993
+ - target
25994
+ - site
25995
+ - redirect
25996
+ discriminator:
25997
+ propertyName: target
24921
25998
  PublishedSiteContent:
24922
25999
  type: object
24923
26000
  title: Site Content
@@ -24980,21 +26057,7 @@ components:
24980
26057
  - canonicalUrl
24981
26058
  PublishedSiteContentLookup:
24982
26059
  oneOf:
24983
- - type: object
24984
- title: Redirect
24985
- properties:
24986
- target:
24987
- type: string
24988
- description: Type of target for the redirect
24989
- enum:
24990
- - application
24991
- - content
24992
- - external
24993
- redirect:
24994
- $ref: "#/components/schemas/URL"
24995
- required:
24996
- - target
24997
- - redirect
26060
+ - $ref: "#/components/schemas/PublishedContentRedirect"
24998
26061
  - $ref: "#/components/schemas/PublishedSiteContent"
24999
26062
  SiteVisitorPayload:
25000
26063
  type: object
@@ -25362,6 +26425,9 @@ components:
25362
26425
  - file_edited
25363
26426
  - file_deleted
25364
26427
  - custom_fields_edited
26428
+ - tag_created
26429
+ - tag_deleted
26430
+ - tag_edited
25365
26431
  GitSyncOperationState:
25366
26432
  type: string
25367
26433
  description: |
@@ -26311,6 +27377,19 @@ components:
26311
27377
  required:
26312
27378
  - channel
26313
27379
  - site
27380
+ SiteContextChannel:
27381
+ type: object
27382
+ description: Subscription channel for changes in site context.
27383
+ properties:
27384
+ channel:
27385
+ type: string
27386
+ enum:
27387
+ - site-context
27388
+ site:
27389
+ type: string
27390
+ required:
27391
+ - channel
27392
+ - site
26314
27393
  SiteCustomizationChannel:
26315
27394
  type: object
26316
27395
  properties:
@@ -26610,6 +27689,7 @@ components:
26610
27689
  - $ref: "#/components/schemas/PublishedContentSiteChannel"
26611
27690
  - $ref: "#/components/schemas/SiteRedirectsChannel"
26612
27691
  - $ref: "#/components/schemas/SiteChannel"
27692
+ - $ref: "#/components/schemas/SiteContextChannel"
26613
27693
  - $ref: "#/components/schemas/SiteCustomizationChannel"
26614
27694
  - $ref: "#/components/schemas/SiteIntegrationsChannel"
26615
27695
  - $ref: "#/components/schemas/SiteSpaceChannel"