@gitbook/api 0.160.1 → 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.json CHANGED
@@ -155,11 +155,11 @@
155
155
  "description": "Manage the advertisement strategy within your docs. You can specify ad placements, track usage, and adjust settings to best fit your organization's needs.\n"
156
156
  },
157
157
  {
158
- "name": "site-users",
159
- "x-page-title": "Site users",
160
- "x-page-description": "Manage which users can access or contribute to a docs site.",
158
+ "name": "site-permissions",
159
+ "x-page-title": "Site permissions",
160
+ "x-page-description": "Manage which members and teams can access or contribute to a docs site.",
161
161
  "x-parent": "sites",
162
- "description": "Invite, remove, or update user permissions for a site. This provides a way to tightly control collaboration and visibility among your teammates.\n"
162
+ "description": "Invite, remove, or update users and teams permissions for a site. This provides a way to tightly control collaboration and visibility among your teammates.\n"
163
163
  },
164
164
  {
165
165
  "name": "site-insights",
@@ -197,18 +197,11 @@
197
197
  "description": "Collections let you bundle multiple spaces under a unified entity, making large-scale content easier to handle. You can sort content by subject, department, or any grouping logic.\n\n{% openapi-schemas spec=\"gitbook\" schemas=\"Collection\" grouped=\"false\" %}\n The Collection object\n{% endopenapi-schemas %}\n"
198
198
  },
199
199
  {
200
- "name": "collection-users",
201
- "x-page-title": "Collection users",
202
- "x-page-description": "Handle permissions and user management for a specific collection.",
200
+ "name": "collection-permissions",
201
+ "x-page-title": "Collection permissions",
202
+ "x-page-description": "Manage which members and teams can access or contribute to a collection of spaces.",
203
203
  "x-parent": "collections",
204
- "description": "Control which users have access to a collection's spaces. This ensures only the right individuals can view or modify sensitive content.\n"
205
- },
206
- {
207
- "name": "collection-teams",
208
- "x-page-title": "Collection teams",
209
- "x-page-description": "Allocate team-based permissions to your collections.",
210
- "x-parent": "collections",
211
- "description": "Assign entire teams to a collection for easier role and permission management. Perfect for larger organizations looking to streamline content access.\n"
204
+ "description": "Control which users and teams have access to a collection's spaces. This ensures only the right individuals can view or modify sensitive content.\n"
212
205
  },
213
206
  {
214
207
  "name": "spaces",
@@ -239,18 +232,11 @@
239
232
  "description": "Automatically fetch metadata or previews for embedded resources such as videos, images, or external docs, enabling richer content experiences in your space.\n"
240
233
  },
241
234
  {
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": "Give your collaborators the right level of access for specific spaces. This endpoint makes it simple to add, remove, or update space members individually.\n"
247
- },
248
- {
249
- "name": "space-teams",
250
- "x-page-title": "Space teams",
251
- "x-page-description": "Integrate team-based permissions for better collaboration in a space.",
235
+ "name": "space-permissions",
236
+ "x-page-title": "Space permissions",
237
+ "x-page-description": "Manage which members and teams roles and permissions on a per-space basis.",
252
238
  "x-parent": "spaces",
253
- "description": "Assign entire teams to your spaces and streamline the process of granting or revoking access at scale, without dealing with individual user roles.\n"
239
+ "description": "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.\n"
254
240
  },
255
241
  {
256
242
  "name": "space-integrations",
@@ -1206,8 +1192,7 @@
1206
1192
  "operationId": "inviteToSpace",
1207
1193
  "summary": "Invite a user or a team to a space",
1208
1194
  "tags": [
1209
- "space-users",
1210
- "space-teams"
1195
+ "space-permissions"
1211
1196
  ],
1212
1197
  "security": [
1213
1198
  {
@@ -1243,9 +1228,9 @@
1243
1228
  "/spaces/{spaceId}/permissions/teams/{teamId}": {
1244
1229
  "patch": {
1245
1230
  "operationId": "updateTeamPermissionInSpace",
1246
- "summary": "Update a space team permission",
1231
+ "summary": "Update an org team's permission in a space",
1247
1232
  "tags": [
1248
- "space-teams"
1233
+ "space-permissions"
1249
1234
  ],
1250
1235
  "security": [
1251
1236
  {
@@ -1287,9 +1272,9 @@
1287
1272
  },
1288
1273
  "delete": {
1289
1274
  "operationId": "removeTeamFromSpace",
1290
- "summary": "Remove a space team",
1275
+ "summary": "Remove an org team from a space",
1291
1276
  "tags": [
1292
- "space-teams"
1277
+ "space-permissions"
1293
1278
  ],
1294
1279
  "security": [
1295
1280
  {
@@ -1323,7 +1308,7 @@
1323
1308
  "operationId": "listUserPermissionsInSpace",
1324
1309
  "summary": "List space user permissions",
1325
1310
  "tags": [
1326
- "space-users"
1311
+ "space-permissions"
1327
1312
  ],
1328
1313
  "security": [
1329
1314
  {
@@ -1382,7 +1367,7 @@
1382
1367
  "operationId": "updateUserPermissionInSpace",
1383
1368
  "summary": "Update space user permissions",
1384
1369
  "tags": [
1385
- "space-users"
1370
+ "space-permissions"
1386
1371
  ],
1387
1372
  "security": [
1388
1373
  {
@@ -1426,7 +1411,7 @@
1426
1411
  "operationId": "removeUserFromSpace",
1427
1412
  "summary": "Remove a space user",
1428
1413
  "tags": [
1429
- "space-users"
1414
+ "space-permissions"
1430
1415
  ],
1431
1416
  "security": [
1432
1417
  {
@@ -1454,9 +1439,9 @@
1454
1439
  "/spaces/{spaceId}/permissions/teams": {
1455
1440
  "get": {
1456
1441
  "operationId": "listTeamPermissionsInSpace",
1457
- "summary": "List space team persmissions",
1442
+ "summary": "List an org team's permission in a space",
1458
1443
  "tags": [
1459
- "space-teams"
1444
+ "space-permissions"
1460
1445
  ],
1461
1446
  "security": [
1462
1447
  {
@@ -5385,7 +5370,7 @@
5385
5370
  "operationId": "listPermissionsAggregateInSpace",
5386
5371
  "summary": "List all space users permissions",
5387
5372
  "tags": [
5388
- "space-users"
5373
+ "space-permissions"
5389
5374
  ],
5390
5375
  "security": [
5391
5376
  {
@@ -5945,7 +5930,7 @@
5945
5930
  "operationId": "inviteToCollection",
5946
5931
  "summary": "Invite to a collection",
5947
5932
  "tags": [
5948
- "collection-users"
5933
+ "collection-permissions"
5949
5934
  ],
5950
5935
  "security": [
5951
5936
  {
@@ -5981,9 +5966,9 @@
5981
5966
  "/collections/{collectionId}/permissions/teams": {
5982
5967
  "get": {
5983
5968
  "operationId": "listTeamPermissionsInCollection",
5984
- "summary": "List a collection team permissions",
5969
+ "summary": "List an org team's permission in collection",
5985
5970
  "tags": [
5986
- "collection-teams"
5971
+ "collection-permissions"
5987
5972
  ],
5988
5973
  "security": [
5989
5974
  {
@@ -6049,9 +6034,9 @@
6049
6034
  "/collections/{collectionId}/permissions/teams/{teamId}": {
6050
6035
  "patch": {
6051
6036
  "operationId": "updateTeamPermissionInCollection",
6052
- "summary": "Update a collection team permission",
6037
+ "summary": "Update an org team's permission in a collection",
6053
6038
  "tags": [
6054
- "collection-teams"
6039
+ "collection-permissions"
6055
6040
  ],
6056
6041
  "security": [
6057
6042
  {
@@ -6093,9 +6078,9 @@
6093
6078
  },
6094
6079
  "delete": {
6095
6080
  "operationId": "removeTeamFromCollection",
6096
- "summary": "Remove a team from a collection",
6081
+ "summary": "Remove an org team from a collection",
6097
6082
  "tags": [
6098
- "collection-teams"
6083
+ "collection-permissions"
6099
6084
  ],
6100
6085
  "security": [
6101
6086
  {
@@ -6125,7 +6110,7 @@
6125
6110
  "operationId": "listUserPermissionsInCollection",
6126
6111
  "summary": "List collection user permissions",
6127
6112
  "tags": [
6128
- "collection-users"
6113
+ "collection-permissions"
6129
6114
  ],
6130
6115
  "security": [
6131
6116
  {
@@ -6184,7 +6169,7 @@
6184
6169
  "operationId": "updateUserPermissionInCollection",
6185
6170
  "summary": "Update a collection user permission",
6186
6171
  "tags": [
6187
- "collection-users"
6172
+ "collection-permissions"
6188
6173
  ],
6189
6174
  "security": [
6190
6175
  {
@@ -6228,7 +6213,7 @@
6228
6213
  "operationId": "removeUserFromCollection",
6229
6214
  "summary": "Remove a user from a collection",
6230
6215
  "tags": [
6231
- "collection-users"
6216
+ "collection-permissions"
6232
6217
  ],
6233
6218
  "security": [
6234
6219
  {
@@ -6258,7 +6243,7 @@
6258
6243
  "operationId": "listPermissionsAggregateInCollection",
6259
6244
  "summary": "List all collections users permissions",
6260
6245
  "tags": [
6261
- "collection-users"
6246
+ "space-permissions"
6262
6247
  ],
6263
6248
  "security": [
6264
6249
  {
@@ -14738,6 +14723,37 @@
14738
14723
  }
14739
14724
  }
14740
14725
  }
14726
+ },
14727
+ "delete": {
14728
+ "operationId": "deleteSiteContextConnectionById",
14729
+ "summary": "Delete a context connection",
14730
+ "tags": [
14731
+ "site-context"
14732
+ ],
14733
+ "security": [
14734
+ {
14735
+ "user": []
14736
+ }
14737
+ ],
14738
+ "parameters": [
14739
+ {
14740
+ "$ref": "#/components/parameters/organizationId"
14741
+ },
14742
+ {
14743
+ "$ref": "#/components/parameters/siteId"
14744
+ },
14745
+ {
14746
+ "$ref": "#/components/parameters/siteContextConnectionId"
14747
+ }
14748
+ ],
14749
+ "responses": {
14750
+ "204": {
14751
+ "description": "Context connection did not exist"
14752
+ },
14753
+ "205": {
14754
+ "description": "Context connection deleted"
14755
+ }
14756
+ }
14741
14757
  }
14742
14758
  },
14743
14759
  "/orgs/{organizationId}/sites/{siteId}/context-connections/{siteContextConnectionId}/sync": {
@@ -15939,6 +15955,47 @@
15939
15955
  }
15940
15956
  }
15941
15957
  },
15958
+ "/orgs/{organizationId}/sites/{siteId}/permissions": {
15959
+ "post": {
15960
+ "operationId": "inviteToSite",
15961
+ "summary": "Invite a user or a team to a site",
15962
+ "tags": [
15963
+ "site-permissions"
15964
+ ],
15965
+ "security": [
15966
+ {
15967
+ "user": []
15968
+ }
15969
+ ],
15970
+ "parameters": [
15971
+ {
15972
+ "$ref": "#/components/parameters/organizationId"
15973
+ },
15974
+ {
15975
+ "$ref": "#/components/parameters/siteId"
15976
+ }
15977
+ ],
15978
+ "responses": {
15979
+ "204": {
15980
+ "description": "OK"
15981
+ },
15982
+ "404": {
15983
+ "description": "No team or user with the provided Id",
15984
+ "$ref": "#/components/responses/NotFoundError"
15985
+ }
15986
+ },
15987
+ "requestBody": {
15988
+ "required": true,
15989
+ "content": {
15990
+ "application/json": {
15991
+ "schema": {
15992
+ "$ref": "#/components/schemas/InviteSiteUsersAndTeams"
15993
+ }
15994
+ }
15995
+ }
15996
+ }
15997
+ }
15998
+ },
15942
15999
  "/orgs/{organizationId}/sites/{siteId}/permissions/aggregate": {
15943
16000
  "get": {
15944
16001
  "operationId": "listPermissionsAggregateInSite",
@@ -15997,6 +16054,290 @@
15997
16054
  }
15998
16055
  }
15999
16056
  },
16057
+ "/orgs/{organizationId}/sites/{siteId}/permissions/users": {
16058
+ "get": {
16059
+ "operationId": "listUserPermissionsInSite",
16060
+ "summary": "List site user permissions",
16061
+ "tags": [
16062
+ "site-users"
16063
+ ],
16064
+ "security": [
16065
+ {
16066
+ "user": []
16067
+ }
16068
+ ],
16069
+ "parameters": [
16070
+ {
16071
+ "$ref": "#/components/parameters/organizationId"
16072
+ },
16073
+ {
16074
+ "$ref": "#/components/parameters/siteId"
16075
+ },
16076
+ {
16077
+ "$ref": "#/components/parameters/listPage"
16078
+ },
16079
+ {
16080
+ "$ref": "#/components/parameters/listLimit"
16081
+ }
16082
+ ],
16083
+ "responses": {
16084
+ "200": {
16085
+ "description": "Listing of users who have been added to a site.",
16086
+ "content": {
16087
+ "application/json": {
16088
+ "schema": {
16089
+ "allOf": [
16090
+ {
16091
+ "$ref": "#/components/schemas/List"
16092
+ },
16093
+ {
16094
+ "type": "object",
16095
+ "required": [
16096
+ "items"
16097
+ ],
16098
+ "properties": {
16099
+ "items": {
16100
+ "type": "array",
16101
+ "items": {
16102
+ "$ref": "#/components/schemas/UserSitePermissionOverride"
16103
+ }
16104
+ }
16105
+ }
16106
+ }
16107
+ ]
16108
+ }
16109
+ }
16110
+ }
16111
+ },
16112
+ "404": {
16113
+ "description": "No site was found with the given Id",
16114
+ "$ref": "#/components/responses/NotFoundError"
16115
+ }
16116
+ }
16117
+ }
16118
+ },
16119
+ "/orgs/{organizationId}/sites/{siteId}/permissions/users/{userId}": {
16120
+ "patch": {
16121
+ "operationId": "updateUserPermissionInSite",
16122
+ "summary": "Update site user permissions",
16123
+ "tags": [
16124
+ "site-users"
16125
+ ],
16126
+ "security": [
16127
+ {
16128
+ "user": []
16129
+ }
16130
+ ],
16131
+ "parameters": [
16132
+ {
16133
+ "$ref": "#/components/parameters/organizationId"
16134
+ },
16135
+ {
16136
+ "$ref": "#/components/parameters/siteId"
16137
+ },
16138
+ {
16139
+ "$ref": "#/components/parameters/userId"
16140
+ }
16141
+ ],
16142
+ "requestBody": {
16143
+ "required": true,
16144
+ "content": {
16145
+ "application/json": {
16146
+ "schema": {
16147
+ "type": "object",
16148
+ "properties": {
16149
+ "role": {
16150
+ "$ref": "#/components/schemas/MemberRole"
16151
+ }
16152
+ }
16153
+ }
16154
+ }
16155
+ }
16156
+ },
16157
+ "responses": {
16158
+ "204": {
16159
+ "description": "User permission was updated"
16160
+ },
16161
+ "404": {
16162
+ "description": "No user found with the given ID",
16163
+ "$ref": "#/components/responses/NotFoundError"
16164
+ }
16165
+ }
16166
+ },
16167
+ "delete": {
16168
+ "operationId": "removeUserFromSite",
16169
+ "summary": "Remove a site user",
16170
+ "tags": [
16171
+ "site-users"
16172
+ ],
16173
+ "security": [
16174
+ {
16175
+ "user": []
16176
+ }
16177
+ ],
16178
+ "parameters": [
16179
+ {
16180
+ "$ref": "#/components/parameters/organizationId"
16181
+ },
16182
+ {
16183
+ "$ref": "#/components/parameters/siteId"
16184
+ },
16185
+ {
16186
+ "$ref": "#/components/parameters/userId"
16187
+ }
16188
+ ],
16189
+ "responses": {
16190
+ "204": {
16191
+ "description": "The user was not found in the site"
16192
+ },
16193
+ "205": {
16194
+ "description": "The user has been removed from the site"
16195
+ }
16196
+ }
16197
+ }
16198
+ },
16199
+ "/orgs/{organizationId}/sites/{siteId}/permissions/teams": {
16200
+ "get": {
16201
+ "operationId": "listTeamPermissionsInSite",
16202
+ "summary": "List an org team's permission in a site",
16203
+ "tags": [
16204
+ "site-permissions"
16205
+ ],
16206
+ "security": [
16207
+ {
16208
+ "user": []
16209
+ }
16210
+ ],
16211
+ "parameters": [
16212
+ {
16213
+ "$ref": "#/components/parameters/organizationId"
16214
+ },
16215
+ {
16216
+ "$ref": "#/components/parameters/siteId"
16217
+ },
16218
+ {
16219
+ "$ref": "#/components/parameters/listPage"
16220
+ },
16221
+ {
16222
+ "$ref": "#/components/parameters/listLimit"
16223
+ }
16224
+ ],
16225
+ "responses": {
16226
+ "200": {
16227
+ "description": "Listing of teams who have been added to a site.",
16228
+ "content": {
16229
+ "application/json": {
16230
+ "schema": {
16231
+ "allOf": [
16232
+ {
16233
+ "$ref": "#/components/schemas/List"
16234
+ },
16235
+ {
16236
+ "type": "object",
16237
+ "required": [
16238
+ "items"
16239
+ ],
16240
+ "properties": {
16241
+ "items": {
16242
+ "type": "array",
16243
+ "items": {
16244
+ "$ref": "#/components/schemas/TeamSitePermissionOverride"
16245
+ }
16246
+ }
16247
+ }
16248
+ }
16249
+ ]
16250
+ }
16251
+ }
16252
+ }
16253
+ },
16254
+ "404": {
16255
+ "description": "No site was found with the given Id",
16256
+ "$ref": "#/components/responses/NotFoundError"
16257
+ }
16258
+ }
16259
+ }
16260
+ },
16261
+ "/orgs/{organizationId}/sites/{siteId}/permissions/teams/{teamId}": {
16262
+ "patch": {
16263
+ "operationId": "updateTeamPermissionInSite",
16264
+ "summary": "Update an org team's permission in a site",
16265
+ "tags": [
16266
+ "site-permissions"
16267
+ ],
16268
+ "security": [
16269
+ {
16270
+ "user": []
16271
+ }
16272
+ ],
16273
+ "parameters": [
16274
+ {
16275
+ "$ref": "#/components/parameters/organizationId"
16276
+ },
16277
+ {
16278
+ "$ref": "#/components/parameters/siteId"
16279
+ },
16280
+ {
16281
+ "$ref": "#/components/parameters/teamId"
16282
+ }
16283
+ ],
16284
+ "requestBody": {
16285
+ "required": true,
16286
+ "content": {
16287
+ "application/json": {
16288
+ "schema": {
16289
+ "type": "object",
16290
+ "properties": {
16291
+ "role": {
16292
+ "$ref": "#/components/schemas/MemberRole"
16293
+ }
16294
+ }
16295
+ }
16296
+ }
16297
+ }
16298
+ },
16299
+ "responses": {
16300
+ "204": {
16301
+ "description": "Team permission was updated"
16302
+ },
16303
+ "404": {
16304
+ "description": "No team found with the given ID",
16305
+ "$ref": "#/components/responses/NotFoundError"
16306
+ }
16307
+ }
16308
+ },
16309
+ "delete": {
16310
+ "operationId": "removeTeamFromSite",
16311
+ "summary": "Remove an org team from a site",
16312
+ "tags": [
16313
+ "site-permissions"
16314
+ ],
16315
+ "security": [
16316
+ {
16317
+ "user": []
16318
+ }
16319
+ ],
16320
+ "parameters": [
16321
+ {
16322
+ "$ref": "#/components/parameters/organizationId"
16323
+ },
16324
+ {
16325
+ "$ref": "#/components/parameters/siteId"
16326
+ },
16327
+ {
16328
+ "$ref": "#/components/parameters/teamId"
16329
+ }
16330
+ ],
16331
+ "responses": {
16332
+ "204": {
16333
+ "description": "The team was not found in the site"
16334
+ },
16335
+ "205": {
16336
+ "description": "The team has been removed from the site"
16337
+ }
16338
+ }
16339
+ }
16340
+ },
16000
16341
  "/orgs/{organizationId}/sites/{siteId}/ai/response": {
16001
16342
  "post": {
16002
16343
  "operationId": "streamAIResponseInSite",
@@ -18711,6 +19052,10 @@
18711
19052
  "type": "boolean",
18712
19053
  "description": "Whether the space is powered by V2 of the content system."
18713
19054
  },
19055
+ "internal_singleWebsocket": {
19056
+ "type": "boolean",
19057
+ "description": "Whether the space uses a single websocket connection for all real-time communication."
19058
+ },
18714
19059
  "permissions": {
18715
19060
  "type": "object",
18716
19061
  "description": "The set of permissions for the space",
@@ -20619,6 +20964,9 @@
20619
20964
  "danger",
20620
20965
  "success"
20621
20966
  ]
20967
+ },
20968
+ "icon": {
20969
+ "$ref": "#/components/schemas/Icon"
20622
20970
  }
20623
20971
  },
20624
20972
  "required": [
@@ -23822,7 +24170,8 @@
23822
24170
  "slug",
23823
24171
  "path",
23824
24172
  "pages",
23825
- "layout"
24173
+ "layout",
24174
+ "tags"
23826
24175
  ]
23827
24176
  },
23828
24177
  {
@@ -24349,6 +24698,10 @@
24349
24698
  "metadata": {
24350
24699
  "type": "boolean",
24351
24700
  "description": "Should the page metadata (last modified, author, etc.) be visible?"
24701
+ },
24702
+ "tags": {
24703
+ "type": "boolean",
24704
+ "description": "Should the tags be visible on the page?"
24352
24705
  }
24353
24706
  },
24354
24707
  "required": [
@@ -24360,7 +24713,8 @@
24360
24713
  "tableOfContents",
24361
24714
  "outline",
24362
24715
  "pagination",
24363
- "metadata"
24716
+ "metadata",
24717
+ "tags"
24364
24718
  ]
24365
24719
  },
24366
24720
  "RevisionPageDocumentCover": {
@@ -24887,6 +25241,7 @@
24887
25241
  "pages",
24888
25242
  "files",
24889
25243
  "reusableContents",
25244
+ "tags",
24890
25245
  "urls",
24891
25246
  "createdAt"
24892
25247
  ]
@@ -33231,7 +33586,7 @@
33231
33586
  "query"
33232
33587
  ]
33233
33588
  },
33234
- "SearchAIAnswerSource": {
33589
+ "SearchAIAnswerSourcePage": {
33235
33590
  "type": "object",
33236
33591
  "title": "Page source",
33237
33592
  "description": "The source points to a page in a space.",
@@ -33274,6 +33629,60 @@
33274
33629
  "sections"
33275
33630
  ]
33276
33631
  },
33632
+ "SearchAIAnswerSourceRecord": {
33633
+ "type": "object",
33634
+ "title": "Site context record source",
33635
+ "description": "The source points to an ingested site context record.",
33636
+ "properties": {
33637
+ "type": {
33638
+ "type": "string",
33639
+ "enum": [
33640
+ "record"
33641
+ ]
33642
+ },
33643
+ "reason": {
33644
+ "type": "string",
33645
+ "description": "Short explanation of how the source was used to answer."
33646
+ },
33647
+ "record": {
33648
+ "type": "string",
33649
+ "description": "The context record ID of the source."
33650
+ },
33651
+ "site": {
33652
+ "type": "string",
33653
+ "description": "The site ID owning the source record."
33654
+ },
33655
+ "title": {
33656
+ "type": "string",
33657
+ "description": "The title of the source record."
33658
+ },
33659
+ "url": {
33660
+ "type": "string",
33661
+ "format": "uri",
33662
+ "description": "The source URL of the context record."
33663
+ }
33664
+ },
33665
+ "required": [
33666
+ "type",
33667
+ "record",
33668
+ "site",
33669
+ "title",
33670
+ "url"
33671
+ ]
33672
+ },
33673
+ "SearchAIAnswerSource": {
33674
+ "oneOf": [
33675
+ {
33676
+ "$ref": "#/components/schemas/SearchAIAnswerSourcePage"
33677
+ },
33678
+ {
33679
+ "$ref": "#/components/schemas/SearchAIAnswerSourceRecord"
33680
+ }
33681
+ ],
33682
+ "discriminator": {
33683
+ "propertyName": "type"
33684
+ }
33685
+ },
33277
33686
  "SearchAIAnswer": {
33278
33687
  "type": "object",
33279
33688
  "description": "Answer from AI for a question asked on a content.",
@@ -36025,7 +36434,8 @@
36025
36434
  "enum": [
36026
36435
  "builtin:email",
36027
36436
  "builtin:api",
36028
- "builtin:website"
36437
+ "builtin:website",
36438
+ "builtin:youtube"
36029
36439
  ]
36030
36440
  }
36031
36441
  ]
@@ -36243,6 +36653,33 @@
36243
36653
  "connector",
36244
36654
  "setupSettings"
36245
36655
  ]
36656
+ },
36657
+ {
36658
+ "type": "object",
36659
+ "properties": {
36660
+ "connector": {
36661
+ "type": "string",
36662
+ "enum": [
36663
+ "builtin:youtube"
36664
+ ]
36665
+ },
36666
+ "setupSettings": {
36667
+ "type": "object",
36668
+ "properties": {
36669
+ "channelId": {
36670
+ "type": "string",
36671
+ "pattern": "^UC[A-Za-z0-9_-]{22}$"
36672
+ }
36673
+ },
36674
+ "required": [
36675
+ "channelId"
36676
+ ]
36677
+ }
36678
+ },
36679
+ "required": [
36680
+ "connector",
36681
+ "setupSettings"
36682
+ ]
36246
36683
  }
36247
36684
  ]
36248
36685
  },
@@ -36529,6 +36966,52 @@
36529
36966
  }
36530
36967
  }
36531
36968
  },
36969
+ "InviteSiteUsersAndTeams": {
36970
+ "type": "object",
36971
+ "properties": {
36972
+ "role": {
36973
+ "description": "Role to set.",
36974
+ "$ref": "#/components/schemas/MemberRole"
36975
+ }
36976
+ },
36977
+ "anyOf": [
36978
+ {
36979
+ "type": "object",
36980
+ "properties": {
36981
+ "teams": {
36982
+ "type": "array",
36983
+ "minItems": 1,
36984
+ "items": {
36985
+ "type": "string",
36986
+ "description": "The ID of the team to be invited"
36987
+ }
36988
+ }
36989
+ },
36990
+ "required": [
36991
+ "teams"
36992
+ ]
36993
+ },
36994
+ {
36995
+ "type": "object",
36996
+ "properties": {
36997
+ "users": {
36998
+ "type": "array",
36999
+ "minItems": 1,
37000
+ "items": {
37001
+ "type": "string",
37002
+ "description": "The ID of the user to be invited"
37003
+ }
37004
+ }
37005
+ },
37006
+ "required": [
37007
+ "users"
37008
+ ]
37009
+ }
37010
+ ],
37011
+ "required": [
37012
+ "role"
37013
+ ]
37014
+ },
36532
37015
  "OrganizationPointer": {
36533
37016
  "type": "object",
36534
37017
  "properties": {
@@ -36576,6 +37059,38 @@
36576
37059
  "origin"
36577
37060
  ]
36578
37061
  },
37062
+ "UserSitePermissionOverride": {
37063
+ "type": "object",
37064
+ "description": "Permission override of a user in a site.",
37065
+ "properties": {
37066
+ "permission": {
37067
+ "$ref": "#/components/schemas/MemberRole"
37068
+ },
37069
+ "user": {
37070
+ "$ref": "#/components/schemas/User"
37071
+ }
37072
+ },
37073
+ "required": [
37074
+ "permission",
37075
+ "user"
37076
+ ]
37077
+ },
37078
+ "TeamSitePermissionOverride": {
37079
+ "type": "object",
37080
+ "description": "Permission override of a team in a site.",
37081
+ "properties": {
37082
+ "permission": {
37083
+ "$ref": "#/components/schemas/MemberRole"
37084
+ },
37085
+ "team": {
37086
+ "$ref": "#/components/schemas/OrganizationTeam"
37087
+ }
37088
+ },
37089
+ "required": [
37090
+ "permission",
37091
+ "team"
37092
+ ]
37093
+ },
36579
37094
  "AIMessageContext": {
36580
37095
  "type": "object",
36581
37096
  "description": "Context about the current user sending a message.",
@@ -37105,10 +37620,17 @@
37105
37620
  "revisionId"
37106
37621
  ]
37107
37622
  },
37108
- "AIToolCallSearchResult": {
37623
+ "AIToolCallSearchResultPage": {
37109
37624
  "type": "object",
37110
- "description": "Result of a search",
37625
+ "title": "Page result",
37626
+ "description": "Result of a search matching a page.",
37111
37627
  "properties": {
37628
+ "type": {
37629
+ "type": "string",
37630
+ "enum": [
37631
+ "page"
37632
+ ]
37633
+ },
37112
37634
  "spaceId": {
37113
37635
  "type": "string",
37114
37636
  "description": "The ID of the space"
@@ -37135,12 +37657,67 @@
37135
37657
  }
37136
37658
  },
37137
37659
  "required": [
37660
+ "type",
37138
37661
  "spaceId",
37139
37662
  "pageId",
37140
37663
  "revisionId",
37141
37664
  "title"
37142
37665
  ]
37143
37666
  },
37667
+ "AIToolCallSearchResultRecord": {
37668
+ "type": "object",
37669
+ "title": "Site context record result",
37670
+ "description": "Result of a search matching a site context record.",
37671
+ "properties": {
37672
+ "type": {
37673
+ "type": "string",
37674
+ "enum": [
37675
+ "record"
37676
+ ]
37677
+ },
37678
+ "siteId": {
37679
+ "type": "string",
37680
+ "description": "The ID of the site owning the context record"
37681
+ },
37682
+ "recordId": {
37683
+ "type": "string",
37684
+ "description": "The ID of the context record"
37685
+ },
37686
+ "title": {
37687
+ "type": "string",
37688
+ "description": "The title of the record"
37689
+ },
37690
+ "description": {
37691
+ "type": "string",
37692
+ "description": "The description of the record"
37693
+ },
37694
+ "url": {
37695
+ "type": "string",
37696
+ "format": "uri",
37697
+ "description": "URL of the record in its original source"
37698
+ }
37699
+ },
37700
+ "required": [
37701
+ "type",
37702
+ "siteId",
37703
+ "recordId",
37704
+ "title"
37705
+ ]
37706
+ },
37707
+ "AIToolCallSearchResult": {
37708
+ "description": "Result of a search",
37709
+ "oneOf": [
37710
+ {
37711
+ "$ref": "#/components/schemas/AIToolCallSearchResultPage"
37712
+ },
37713
+ {
37714
+ "$ref": "#/components/schemas/AIToolCallSearchResultRecord"
37715
+ }
37716
+ ],
37717
+ "discriminator": {
37718
+ "propertyName": "type"
37719
+ }
37720
+ },
37144
37721
  "AIToolCallSearch": {
37145
37722
  "type": "object",
37146
37723
  "description": "Tool to search for content",
@@ -41109,6 +41686,59 @@
41109
41686
  }
41110
41687
  ]
41111
41688
  },
41689
+ "PublishedContentRedirect": {
41690
+ "oneOf": [
41691
+ {
41692
+ "type": "object",
41693
+ "title": "Redirect to the application or a different content in the site",
41694
+ "properties": {
41695
+ "target": {
41696
+ "type": "string",
41697
+ "description": "Type of target for the redirect",
41698
+ "enum": [
41699
+ "application",
41700
+ "content"
41701
+ ]
41702
+ },
41703
+ "redirect": {
41704
+ "$ref": "#/components/schemas/URL"
41705
+ }
41706
+ },
41707
+ "required": [
41708
+ "target",
41709
+ "redirect"
41710
+ ]
41711
+ },
41712
+ {
41713
+ "type": "object",
41714
+ "title": "Redirect to an external resource from the site",
41715
+ "properties": {
41716
+ "target": {
41717
+ "type": "string",
41718
+ "description": "Type of target for the redirect",
41719
+ "enum": [
41720
+ "external"
41721
+ ]
41722
+ },
41723
+ "site": {
41724
+ "type": "string",
41725
+ "description": "ID of the resolved site."
41726
+ },
41727
+ "redirect": {
41728
+ "$ref": "#/components/schemas/URL"
41729
+ }
41730
+ },
41731
+ "required": [
41732
+ "target",
41733
+ "site",
41734
+ "redirect"
41735
+ ]
41736
+ }
41737
+ ],
41738
+ "discriminator": {
41739
+ "propertyName": "target"
41740
+ }
41741
+ },
41112
41742
  "PublishedSiteContent": {
41113
41743
  "type": "object",
41114
41744
  "title": "Site Content",
@@ -41190,26 +41820,7 @@
41190
41820
  "PublishedSiteContentLookup": {
41191
41821
  "oneOf": [
41192
41822
  {
41193
- "type": "object",
41194
- "title": "Redirect",
41195
- "properties": {
41196
- "target": {
41197
- "type": "string",
41198
- "description": "Type of target for the redirect",
41199
- "enum": [
41200
- "application",
41201
- "content",
41202
- "external"
41203
- ]
41204
- },
41205
- "redirect": {
41206
- "$ref": "#/components/schemas/URL"
41207
- }
41208
- },
41209
- "required": [
41210
- "target",
41211
- "redirect"
41212
- ]
41823
+ "$ref": "#/components/schemas/PublishedContentRedirect"
41213
41824
  },
41214
41825
  {
41215
41826
  "$ref": "#/components/schemas/PublishedSiteContent"