@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.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.
@@ -205,18 +205,12 @@ tags:
205
205
  {% openapi-schemas spec="gitbook" schemas="Collection" grouped="false" %}
206
206
  The Collection object
207
207
  {% endopenapi-schemas %}
208
- - name: collection-users
209
- x-page-title: Collection users
210
- 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.
211
211
  x-parent: collections
212
212
  description: |
213
- Control which users have access to a collection's spaces. This ensures only the right individuals can view or modify sensitive content.
214
- - name: collection-teams
215
- x-page-title: Collection teams
216
- x-page-description: Allocate team-based permissions to your collections.
217
- x-parent: collections
218
- description: |
219
- 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.
220
214
  - name: spaces
221
215
  x-page-icon: book-sparkles
222
216
  x-page-title: Spaces
@@ -249,18 +243,12 @@ tags:
249
243
  x-parent: spaces
250
244
  description: |
251
245
  Automatically fetch metadata or previews for embedded resources such as videos, images, or external docs, enabling richer content experiences in your space.
252
- - name: space-users
253
- x-page-title: Space users
254
- x-page-description: Manage user roles and permissions on a per-space basis.
255
- x-parent: spaces
256
- description: |
257
- Give your collaborators the right level of access for specific spaces. This endpoint makes it simple to add, remove, or update space members individually.
258
- - name: space-teams
259
- x-page-title: Space teams
260
- 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.
261
249
  x-parent: spaces
262
250
  description: |
263
- 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.
264
252
  - name: space-integrations
265
253
  x-page-title: Space integrations
266
254
  x-page-description: Connect external tools and plugins to enhance your space functionality.
@@ -941,8 +929,7 @@ paths:
941
929
  operationId: inviteToSpace
942
930
  summary: Invite a user or a team to a space
943
931
  tags:
944
- - space-users
945
- - space-teams
932
+ - space-permissions
946
933
  security:
947
934
  - user: []
948
935
  parameters:
@@ -962,9 +949,9 @@ paths:
962
949
  "/spaces/{spaceId}/permissions/teams/{teamId}":
963
950
  patch:
964
951
  operationId: updateTeamPermissionInSpace
965
- summary: Update a space team permission
952
+ summary: Update an org team's permission in a space
966
953
  tags:
967
- - space-teams
954
+ - space-permissions
968
955
  security:
969
956
  - user: []
970
957
  parameters:
@@ -987,9 +974,9 @@ paths:
987
974
  $ref: "#/components/responses/NotFoundError"
988
975
  delete:
989
976
  operationId: removeTeamFromSpace
990
- summary: Remove a space team
977
+ summary: Remove an org team from a space
991
978
  tags:
992
- - space-teams
979
+ - space-permissions
993
980
  security:
994
981
  - user: []
995
982
  parameters:
@@ -1008,7 +995,7 @@ paths:
1008
995
  operationId: listUserPermissionsInSpace
1009
996
  summary: List space user permissions
1010
997
  tags:
1011
- - space-users
998
+ - space-permissions
1012
999
  security:
1013
1000
  - user: []
1014
1001
  parameters:
@@ -1039,7 +1026,7 @@ paths:
1039
1026
  operationId: updateUserPermissionInSpace
1040
1027
  summary: Update space user permissions
1041
1028
  tags:
1042
- - space-users
1029
+ - space-permissions
1043
1030
  security:
1044
1031
  - user: []
1045
1032
  parameters:
@@ -1064,7 +1051,7 @@ paths:
1064
1051
  operationId: removeUserFromSpace
1065
1052
  summary: Remove a space user
1066
1053
  tags:
1067
- - space-users
1054
+ - space-permissions
1068
1055
  security:
1069
1056
  - user: []
1070
1057
  parameters:
@@ -1078,9 +1065,9 @@ paths:
1078
1065
  "/spaces/{spaceId}/permissions/teams":
1079
1066
  get:
1080
1067
  operationId: listTeamPermissionsInSpace
1081
- summary: List space team persmissions
1068
+ summary: List an org team's permission in a space
1082
1069
  tags:
1083
- - space-teams
1070
+ - space-permissions
1084
1071
  security:
1085
1072
  - user: []
1086
1073
  parameters:
@@ -3133,7 +3120,7 @@ paths:
3133
3120
  operationId: listPermissionsAggregateInSpace
3134
3121
  summary: List all space users permissions
3135
3122
  tags:
3136
- - space-users
3123
+ - space-permissions
3137
3124
  security:
3138
3125
  - user: []
3139
3126
  parameters:
@@ -3450,7 +3437,7 @@ paths:
3450
3437
  operationId: inviteToCollection
3451
3438
  summary: Invite to a collection
3452
3439
  tags:
3453
- - collection-users
3440
+ - collection-permissions
3454
3441
  security:
3455
3442
  - user: []
3456
3443
  parameters:
@@ -3470,9 +3457,9 @@ paths:
3470
3457
  "/collections/{collectionId}/permissions/teams":
3471
3458
  get:
3472
3459
  operationId: listTeamPermissionsInCollection
3473
- summary: List a collection team permissions
3460
+ summary: List an org team's permission in collection
3474
3461
  tags:
3475
- - collection-teams
3462
+ - collection-permissions
3476
3463
  security:
3477
3464
  - user: []
3478
3465
  parameters:
@@ -3507,9 +3494,9 @@ paths:
3507
3494
  "/collections/{collectionId}/permissions/teams/{teamId}":
3508
3495
  patch:
3509
3496
  operationId: updateTeamPermissionInCollection
3510
- summary: Update a collection team permission
3497
+ summary: Update an org team's permission in a collection
3511
3498
  tags:
3512
- - collection-teams
3499
+ - collection-permissions
3513
3500
  security:
3514
3501
  - user: []
3515
3502
  parameters:
@@ -3532,9 +3519,9 @@ paths:
3532
3519
  $ref: "#/components/responses/NotFoundError"
3533
3520
  delete:
3534
3521
  operationId: removeTeamFromCollection
3535
- summary: Remove a team from a collection
3522
+ summary: Remove an org team from a collection
3536
3523
  tags:
3537
- - collection-teams
3524
+ - collection-permissions
3538
3525
  security:
3539
3526
  - user: []
3540
3527
  parameters:
@@ -3550,7 +3537,7 @@ paths:
3550
3537
  operationId: listUserPermissionsInCollection
3551
3538
  summary: List collection user permissions
3552
3539
  tags:
3553
- - collection-users
3540
+ - collection-permissions
3554
3541
  security:
3555
3542
  - user: []
3556
3543
  parameters:
@@ -3581,7 +3568,7 @@ paths:
3581
3568
  operationId: updateUserPermissionInCollection
3582
3569
  summary: Update a collection user permission
3583
3570
  tags:
3584
- - collection-users
3571
+ - collection-permissions
3585
3572
  security:
3586
3573
  - user: []
3587
3574
  parameters:
@@ -3606,7 +3593,7 @@ paths:
3606
3593
  operationId: removeUserFromCollection
3607
3594
  summary: Remove a user from a collection
3608
3595
  tags:
3609
- - collection-users
3596
+ - collection-permissions
3610
3597
  security:
3611
3598
  - user: []
3612
3599
  parameters:
@@ -3622,7 +3609,7 @@ paths:
3622
3609
  operationId: listPermissionsAggregateInCollection
3623
3610
  summary: List all collections users permissions
3624
3611
  tags:
3625
- - collection-users
3612
+ - space-permissions
3626
3613
  security:
3627
3614
  - user: []
3628
3615
  parameters:
@@ -8336,6 +8323,22 @@ paths:
8336
8323
  application/json:
8337
8324
  schema:
8338
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
8339
8342
  "/orgs/{organizationId}/sites/{siteId}/context-connections/{siteContextConnectionId}/sync":
8340
8343
  post:
8341
8344
  operationId: syncSiteContextConnection
@@ -9003,6 +9006,29 @@ paths:
9003
9006
  "404":
9004
9007
  description: No matching Site space found
9005
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"
9006
9032
  "/orgs/{organizationId}/sites/{siteId}/permissions/aggregate":
9007
9033
  get:
9008
9034
  operationId: listPermissionsAggregateInSite
@@ -9032,6 +9058,156 @@ paths:
9032
9058
  type: array
9033
9059
  items:
9034
9060
  $ref: "#/components/schemas/UserSitePermission"
9061
+ "/orgs/{organizationId}/sites/{siteId}/permissions/users":
9062
+ get:
9063
+ operationId: listUserPermissionsInSite
9064
+ summary: List site user permissions
9065
+ tags:
9066
+ - site-users
9067
+ security:
9068
+ - user: []
9069
+ parameters:
9070
+ - $ref: "#/components/parameters/organizationId"
9071
+ - $ref: "#/components/parameters/siteId"
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
9035
9211
  "/orgs/{organizationId}/sites/{siteId}/ai/response":
9036
9212
  post:
9037
9213
  operationId: streamAIResponseInSite
@@ -10819,6 +10995,9 @@ components:
10819
10995
  internal_poweredByV2:
10820
10996
  type: boolean
10821
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.
10822
11001
  permissions:
10823
11002
  type: object
10824
11003
  description: The set of permissions for the space
@@ -12079,6 +12258,8 @@ components:
12079
12258
  - warning
12080
12259
  - danger
12081
12260
  - success
12261
+ icon:
12262
+ $ref: "#/components/schemas/Icon"
12082
12263
  required:
12083
12264
  - style
12084
12265
  nodes:
@@ -14019,6 +14200,7 @@ components:
14019
14200
  - path
14020
14201
  - pages
14021
14202
  - layout
14203
+ - tags
14022
14204
  - oneOf:
14023
14205
  - type: object
14024
14206
  description: Defined when the page was generated by a computed content.
@@ -14356,6 +14538,9 @@ components:
14356
14538
  metadata:
14357
14539
  type: boolean
14358
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?
14359
14544
  required:
14360
14545
  - width
14361
14546
  - cover
@@ -14366,6 +14551,7 @@ components:
14366
14551
  - outline
14367
14552
  - pagination
14368
14553
  - metadata
14554
+ - tags
14369
14555
  RevisionPageDocumentCover:
14370
14556
  type: object
14371
14557
  properties:
@@ -14697,6 +14883,7 @@ components:
14697
14883
  - pages
14698
14884
  - files
14699
14885
  - reusableContents
14886
+ - tags
14700
14887
  - urls
14701
14888
  - createdAt
14702
14889
  RevisionTypeEdits:
@@ -20288,7 +20475,7 @@ components:
20288
20475
  type: string
20289
20476
  required:
20290
20477
  - query
20291
- SearchAIAnswerSource:
20478
+ SearchAIAnswerSourcePage:
20292
20479
  type: object
20293
20480
  title: Page source
20294
20481
  description: The source points to a page in a space.
@@ -20320,6 +20507,43 @@ components:
20320
20507
  - revision
20321
20508
  - space
20322
20509
  - sections
20510
+ SearchAIAnswerSourceRecord:
20511
+ type: object
20512
+ title: Site context record source
20513
+ description: The source points to an ingested site context record.
20514
+ properties:
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
20323
20547
  SearchAIAnswer:
20324
20548
  type: object
20325
20549
  description: Answer from AI for a question asked on a content.
@@ -22283,6 +22507,7 @@ components:
22283
22507
  - builtin:email
22284
22508
  - builtin:api
22285
22509
  - builtin:website
22510
+ - builtin:youtube
22286
22511
  ContextRecordTitle:
22287
22512
  type: string
22288
22513
  description: Title for the context record
@@ -22435,6 +22660,23 @@ components:
22435
22660
  required:
22436
22661
  - connector
22437
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
22438
22680
  ContextConnection:
22439
22681
  allOf:
22440
22682
  - type: object
@@ -22630,6 +22872,35 @@ components:
22630
22872
  $ref: "#/components/schemas/SiteSpacePointer"
22631
22873
  after:
22632
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
22633
22904
  OrganizationPointer:
22634
22905
  type: object
22635
22906
  properties:
@@ -22660,6 +22931,28 @@ components:
22660
22931
  - permission
22661
22932
  - user
22662
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
22663
22956
  AIMessageContext:
22664
22957
  type: object
22665
22958
  description: Context about the current user sending a message.
@@ -23037,10 +23330,15 @@ components:
23037
23330
  - tool
23038
23331
  - spaceId
23039
23332
  - revisionId
23040
- AIToolCallSearchResult:
23333
+ AIToolCallSearchResultPage:
23041
23334
  type: object
23042
- description: Result of a search
23335
+ title: Page result
23336
+ description: Result of a search matching a page.
23043
23337
  properties:
23338
+ type:
23339
+ type: string
23340
+ enum:
23341
+ - page
23044
23342
  spaceId:
23045
23343
  type: string
23046
23344
  description: The ID of the space
@@ -23060,10 +23358,48 @@ components:
23060
23358
  type: string
23061
23359
  description: The description of the result
23062
23360
  required:
23361
+ - type
23063
23362
  - spaceId
23064
23363
  - pageId
23065
23364
  - revisionId
23066
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
23067
23403
  AIToolCallSearch:
23068
23404
  type: object
23069
23405
  description: Tool to search for content
@@ -25624,6 +25960,41 @@ components:
25624
25960
  description: ID of the organization owning this site
25625
25961
  required:
25626
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
25627
25998
  PublishedSiteContent:
25628
25999
  type: object
25629
26000
  title: Site Content
@@ -25686,21 +26057,7 @@ components:
25686
26057
  - canonicalUrl
25687
26058
  PublishedSiteContentLookup:
25688
26059
  oneOf:
25689
- - type: object
25690
- title: Redirect
25691
- properties:
25692
- target:
25693
- type: string
25694
- description: Type of target for the redirect
25695
- enum:
25696
- - application
25697
- - content
25698
- - external
25699
- redirect:
25700
- $ref: "#/components/schemas/URL"
25701
- required:
25702
- - target
25703
- - redirect
26060
+ - $ref: "#/components/schemas/PublishedContentRedirect"
25704
26061
  - $ref: "#/components/schemas/PublishedSiteContent"
25705
26062
  SiteVisitorPayload:
25706
26063
  type: object