@gitbook/api 0.27.0 → 0.29.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
@@ -229,6 +229,20 @@ components:
229
229
  description: The id of the visitor
230
230
  schema:
231
231
  type: string
232
+ inviteId:
233
+ name: inviteId
234
+ in: path
235
+ required: true
236
+ description: The unique id of the invite
237
+ schema:
238
+ type: string
239
+ shareLinkId:
240
+ name: shareLinkId
241
+ in: path
242
+ required: true
243
+ description: The unique id of the share link
244
+ schema:
245
+ type: string
232
246
  backofficeHostname:
233
247
  name: hostname
234
248
  in: path
@@ -649,6 +663,14 @@ components:
649
663
  required:
650
664
  - version
651
665
  - build
666
+ BlockContext:
667
+ type: object
668
+ description: The context to send when blocking/unblocking
669
+ properties:
670
+ block:
671
+ type: boolean
672
+ required:
673
+ - block
652
674
  RequestPurgeCDNCacheContext:
653
675
  type: object
654
676
  description: The context to send when purging the CDN Cache
@@ -663,14 +685,6 @@ components:
663
685
  required:
664
686
  - type
665
687
  - values
666
- RequestBlockUserContext:
667
- type: object
668
- description: The context to send when blocking/unblocking a user
669
- properties:
670
- block:
671
- type: boolean
672
- required:
673
- - block
674
688
  TriggerContentIndexingContext:
675
689
  type: object
676
690
  description: The context to send when triggering a content indexing.
@@ -843,6 +857,7 @@ components:
843
857
  - site
844
858
  - oneOf:
845
859
  - type: object
860
+ title: Link
846
861
  properties:
847
862
  type:
848
863
  type: string
@@ -851,6 +866,7 @@ components:
851
866
  required:
852
867
  - type
853
868
  - type: object
869
+ title: HTML
854
870
  properties:
855
871
  type:
856
872
  type: string
@@ -957,6 +973,7 @@ components:
957
973
  - urls
958
974
  - oneOf:
959
975
  - type: object
976
+ title: Resolved
960
977
  properties:
961
978
  status:
962
979
  description: Status of the comment.
@@ -974,6 +991,7 @@ components:
974
991
  - resolvedAt
975
992
  - resolvedBy
976
993
  - type: object
994
+ title: Open
977
995
  properties:
978
996
  status:
979
997
  description: Status of the comment.
@@ -1025,6 +1043,7 @@ components:
1025
1043
  PublishedContentLookup:
1026
1044
  oneOf:
1027
1045
  - type: object
1046
+ title: Redirect
1028
1047
  properties:
1029
1048
  target:
1030
1049
  type: string
@@ -1039,6 +1058,7 @@ components:
1039
1058
  - target
1040
1059
  - redirect
1041
1060
  - type: object
1061
+ title: Content
1042
1062
  properties:
1043
1063
  space:
1044
1064
  type: string
@@ -1063,16 +1083,57 @@ components:
1063
1083
  - pathname
1064
1084
  - basePath
1065
1085
  - apiToken
1086
+ SpacePointer:
1087
+ type: object
1088
+ properties:
1089
+ type:
1090
+ type: string
1091
+ enum:
1092
+ - space
1093
+ space:
1094
+ type: string
1095
+ description: Unique identifier for the space
1096
+ required:
1097
+ - type
1098
+ - space
1099
+ CollectionPointer:
1100
+ type: object
1101
+ properties:
1102
+ type:
1103
+ type: string
1104
+ enum:
1105
+ - collection
1106
+ collection:
1107
+ type: string
1108
+ description: Unique identifier for the collection
1109
+ required:
1110
+ - type
1111
+ - collection
1112
+ ContentPosition:
1113
+ type: object
1114
+ description: Position at which to insert an item
1115
+ properties:
1116
+ before:
1117
+ oneOf:
1118
+ - $ref: "#/components/schemas/SpacePointer"
1119
+ - $ref: "#/components/schemas/CollectionPointer"
1120
+ after:
1121
+ oneOf:
1122
+ - $ref: "#/components/schemas/SpacePointer"
1123
+ - $ref: "#/components/schemas/CollectionPointer"
1066
1124
  Document:
1067
1125
  oneOf:
1068
1126
  - $ref: "#/components/schemas/MarkdownDocument"
1127
+ title: Markdown
1069
1128
  - type: object
1129
+ title: JSON Document
1070
1130
  properties:
1071
1131
  document:
1072
1132
  $ref: "#/components/schemas/JSONDocument"
1073
1133
  required:
1074
1134
  - document
1075
1135
  - type: object
1136
+ title: Empty
1076
1137
  properties: {}
1077
1138
  additionalProperties: false
1078
1139
  MarkdownDocument:
@@ -1084,6 +1145,7 @@ components:
1084
1145
  required:
1085
1146
  - markdown
1086
1147
  JSONDocument:
1148
+ type: object
1087
1149
  properties:
1088
1150
  object:
1089
1151
  type: string
@@ -1091,8 +1153,11 @@ components:
1091
1153
  - document
1092
1154
  data:
1093
1155
  type: object
1094
- properties: {}
1095
- additionalProperties: false
1156
+ properties:
1157
+ schemaVersion:
1158
+ description: The schema version of the document. If undefined, the document is considered to be of the latest schema version.
1159
+ type: integer
1160
+ additionalProperties: true
1096
1161
  nodes:
1097
1162
  type: array
1098
1163
  items:
@@ -2882,6 +2947,7 @@ components:
2882
2947
  visitorAuth:
2883
2948
  oneOf:
2884
2949
  - type: object
2950
+ title: Custom
2885
2951
  properties:
2886
2952
  backend:
2887
2953
  type: string
@@ -2891,6 +2957,7 @@ components:
2891
2957
  required:
2892
2958
  - backend
2893
2959
  - type: object
2960
+ title: Integration
2894
2961
  properties:
2895
2962
  backend:
2896
2963
  type: string
@@ -2903,6 +2970,9 @@ components:
2903
2970
  required:
2904
2971
  - backend
2905
2972
  - integration
2973
+ revision:
2974
+ type: string
2975
+ description: ID of the active revision in the space.
2906
2976
  required:
2907
2977
  - object
2908
2978
  - id
@@ -2911,6 +2981,7 @@ components:
2911
2981
  - emoji
2912
2982
  - organization
2913
2983
  - visibility
2984
+ - revision
2914
2985
  - createdAt
2915
2986
  - updatedAt
2916
2987
  - urls
@@ -3673,6 +3744,19 @@ components:
3673
3744
  $ref: "#/components/schemas/OrganizationUseCase"
3674
3745
  communityType:
3675
3746
  $ref: "#/components/schemas/OrganizationCommunityType"
3747
+ defaultRole:
3748
+ $ref: "#/components/schemas/MemberRoleOrGuest"
3749
+ defaultContent:
3750
+ $ref: "#/components/schemas/OrganizationDefaultContent"
3751
+ sso:
3752
+ description: Whether SSO is enforced organization wide
3753
+ type: boolean
3754
+ aiSearch:
3755
+ description: If true, the organization is configured to use our AI-powered natural language search
3756
+ type: boolean
3757
+ aiInsights:
3758
+ description: If true, the organization is configured to run content audits on any space update
3759
+ type: boolean
3676
3760
  urls:
3677
3761
  type: object
3678
3762
  description: URLs associated with the object
@@ -3685,6 +3769,9 @@ components:
3685
3769
  type: string
3686
3770
  description: URL of the organization in the application
3687
3771
  format: uri
3772
+ logo:
3773
+ description: URL of the logo of this organization, if defined.
3774
+ $ref: "#/components/schemas/URL"
3688
3775
  required:
3689
3776
  - app
3690
3777
  - location
@@ -3891,6 +3978,80 @@ components:
3891
3978
  required:
3892
3979
  - organization
3893
3980
  - team
3981
+ OrganizationDefaultContent:
3982
+ description: The default content for the organization
3983
+ oneOf:
3984
+ - $ref: "#/components/schemas/SpacePointer"
3985
+ - $ref: "#/components/schemas/CollectionPointer"
3986
+ OrganizationInvite:
3987
+ oneOf:
3988
+ - type: object
3989
+ properties:
3990
+ object:
3991
+ type: string
3992
+ description: Type of Object, always equals to "invite"
3993
+ enum:
3994
+ - invite
3995
+ id:
3996
+ type: string
3997
+ description: Unique identifier for the organization invite
3998
+ role:
3999
+ $ref: "#/components/schemas/MemberRoleOrGuest"
4000
+ description: The role of the member in the organization
4001
+ required:
4002
+ - object
4003
+ - id
4004
+ - role
4005
+ - type: object
4006
+ properties:
4007
+ object:
4008
+ type: string
4009
+ description: Type of Object, always equals to "invite"
4010
+ enum:
4011
+ - invite
4012
+ id:
4013
+ type: string
4014
+ description: Unique identifier for the organization invite
4015
+ role:
4016
+ $ref: "#/components/schemas/MemberRoleOrGuest"
4017
+ description: The role of the member in the organization
4018
+ contentLevel:
4019
+ $ref: "#/components/schemas/MemberRoleOrGuest"
4020
+ description: The role of the member in the target space
4021
+ space:
4022
+ $ref: "#/components/schemas/Space"
4023
+ description: The space the member has been invited to
4024
+ required:
4025
+ - object
4026
+ - id
4027
+ - role
4028
+ - contentLevel
4029
+ - space
4030
+ - type: object
4031
+ properties:
4032
+ object:
4033
+ type: string
4034
+ description: Type of Object, always equals to "invite"
4035
+ enum:
4036
+ - invite
4037
+ id:
4038
+ type: string
4039
+ description: Unique identifier for the organization invite
4040
+ role:
4041
+ $ref: "#/components/schemas/MemberRoleOrGuest"
4042
+ description: The role of the member in the organization
4043
+ contentLevel:
4044
+ $ref: "#/components/schemas/MemberRoleOrGuest"
4045
+ description: The role of the member in the target collection
4046
+ collection:
4047
+ $ref: "#/components/schemas/Collection"
4048
+ description: The collection the member has been invited to
4049
+ required:
4050
+ - object
4051
+ - id
4052
+ - role
4053
+ - contentLevel
4054
+ - collection
3894
4055
  Capture:
3895
4056
  type: object
3896
4057
  properties:
@@ -4115,97 +4276,83 @@ components:
4115
4276
  - type
4116
4277
  - filename
4117
4278
  - fileSnapshot
4118
- UpdateCaptureSchema:
4279
+ Snippet:
4119
4280
  type: object
4120
4281
  properties:
4282
+ id:
4283
+ type: string
4284
+ description: Unique identifier for the snippet
4285
+ organization:
4286
+ type: string
4287
+ description: ID of the organization owning this snippet
4288
+ createdAt:
4289
+ type: string
4290
+ format: date-time
4291
+ editedAt:
4292
+ type: string
4293
+ format: date-time
4294
+ description: Timestamp of when the snippet was last edited, if it has been edited since its creation.
4295
+ archived:
4296
+ type: boolean
4297
+ description: Whether the snippet is archived. Archived snippets don't appear in search results or in the app.
4121
4298
  title:
4122
4299
  type: string
4123
- description: A new title for the capture.
4124
- body:
4125
- description: Content of the capture.
4126
- $ref: "#/components/schemas/Document"
4127
- Snippet:
4128
- allOf:
4129
- - $ref: "#/components/schemas/Document"
4130
- - type: object
4300
+ description: Title describing the snippet.
4301
+ maxLength: 100
4302
+ source:
4303
+ description: The source of the snippet.
4304
+ type: object
4131
4305
  properties:
4132
- id:
4133
- type: string
4134
- description: Unique identifier for the snippet
4135
- organization:
4136
- type: string
4137
- description: ID of the organization owning this snippet
4138
- createdAt:
4306
+ sourceId:
4139
4307
  type: string
4140
- format: date-time
4141
- editedAt:
4308
+ description: An ID identifying the source, unique across all sources.
4309
+ name:
4142
4310
  type: string
4143
- format: date-time
4144
- description: Timestamp of when the snippet was last edited, if it has been edited since its creation.
4145
- archived:
4146
- type: boolean
4147
- description: Whether the snippet is archived. Archived snippets don't appear in search results or in the app.
4148
- title:
4311
+ description: A display name for the source.
4312
+ externalId:
4149
4313
  type: string
4150
- description: Title describing the snippet.
4151
- maxLength: 100
4152
- source:
4153
- description: The source of the snippet.
4154
- type: object
4155
- properties:
4156
- sourceId:
4157
- type: string
4158
- description: An ID identifying the source, unique across all sources.
4159
- name:
4160
- type: string
4161
- description: A display name for the source.
4162
- externalId:
4163
- type: string
4164
- description: An ID identifying the snippet in the source system, if available.
4165
- externalUrl:
4166
- description: URL of the snippet in the source system, if available.
4167
- $ref: "#/components/schemas/URL"
4168
- required:
4169
- - sourceId
4170
- - name
4171
- contributors:
4172
- description: An array of contributors to the snippet, which can be either users or integrations. The first contributor is the one who created the snippet.
4173
- type: array
4174
- minItems: 1
4175
- items:
4176
- oneOf:
4177
- - $ref: "#/components/schemas/Integration"
4178
- - $ref: "#/components/schemas/User"
4179
- urls:
4180
- type: object
4181
- description: URLs associated with the object
4182
- properties:
4183
- location:
4184
- description: URL of the snippet in the API
4185
- $ref: "#/components/schemas/URL"
4186
- app:
4187
- description: URL of the snippet in the app
4188
- $ref: "#/components/schemas/URL"
4189
- required:
4190
- - location
4191
- - app
4314
+ description: An ID identifying the snippet in the source system, if available.
4315
+ externalUrl:
4316
+ description: URL of the snippet in the source system, if available.
4317
+ $ref: "#/components/schemas/URL"
4192
4318
  required:
4193
- - id
4194
- - organization
4195
- - source
4196
- - createdAt
4197
- - archived
4198
- - contributors
4199
- - urls
4319
+ - sourceId
4320
+ - name
4321
+ contributors:
4322
+ description: An array of contributors to the snippet, which can be either users or integrations. The first contributor is the one who created the snippet.
4323
+ type: array
4324
+ minItems: 1
4325
+ items:
4326
+ oneOf:
4327
+ - $ref: "#/components/schemas/Integration"
4328
+ - $ref: "#/components/schemas/User"
4329
+ urls:
4330
+ type: object
4331
+ description: URLs associated with the object
4332
+ properties:
4333
+ location:
4334
+ description: URL of the snippet in the API
4335
+ $ref: "#/components/schemas/URL"
4336
+ app:
4337
+ description: URL of the snippet in the app
4338
+ $ref: "#/components/schemas/URL"
4339
+ required:
4340
+ - location
4341
+ - app
4342
+ required:
4343
+ - id
4344
+ - organization
4345
+ - source
4346
+ - createdAt
4347
+ - archived
4348
+ - contributors
4349
+ - urls
4200
4350
  UpdateSnippetSchema:
4201
4351
  type: object
4202
4352
  properties:
4203
4353
  title:
4204
4354
  type: string
4205
4355
  description: A new title for the snippet.
4206
- body:
4207
- description: Content of the snippet.
4208
- $ref: "#/components/schemas/Document"
4209
4356
  ContentAuditRelation:
4210
4357
  type: object
4211
4358
  description: Content audit relation
@@ -4293,16 +4440,16 @@ components:
4293
4440
  status:
4294
4441
  $ref: "#/components/schemas/ChangeRequestStatus"
4295
4442
  subject:
4296
- type: string
4297
- description: Subject of the change request
4298
- minLength: 0
4299
- maxLength: 100
4443
+ $ref: "#/components/schemas/ChangeRequestSubject"
4300
4444
  createdBy:
4301
4445
  $ref: "#/components/schemas/User"
4302
4446
  createdAt:
4303
4447
  $ref: "#/components/schemas/Timestamp"
4304
4448
  updatedAt:
4305
4449
  $ref: "#/components/schemas/Timestamp"
4450
+ revision:
4451
+ type: string
4452
+ description: ID of the active revision in the change request.
4306
4453
  urls:
4307
4454
  type: object
4308
4455
  description: URLs associated with the object
@@ -4322,6 +4469,7 @@ components:
4322
4469
  - createdBy
4323
4470
  - createdAt
4324
4471
  - updatedAt
4472
+ - revision
4325
4473
  - urls
4326
4474
  ChangeRequestStatus:
4327
4475
  type: string
@@ -4422,6 +4570,11 @@ components:
4422
4570
  required:
4423
4571
  - kind
4424
4572
  - team
4573
+ ChangeRequestSubject:
4574
+ type: string
4575
+ description: Subject of the change request
4576
+ minLength: 0
4577
+ maxLength: 100
4425
4578
  UpdateCommentSchema:
4426
4579
  type: object
4427
4580
  properties:
@@ -4645,8 +4798,11 @@ components:
4645
4798
  - capture
4646
4799
  required:
4647
4800
  - type
4648
- - oneOf:
4801
+ - discriminator:
4802
+ propertyName: type
4803
+ oneOf:
4649
4804
  - type: object
4805
+ title: Page
4650
4806
  properties:
4651
4807
  type:
4652
4808
  type: string
@@ -4669,6 +4825,7 @@ components:
4669
4825
  - space
4670
4826
  - sections
4671
4827
  - type: object
4828
+ title: Entity
4672
4829
  properties:
4673
4830
  type:
4674
4831
  type: string
@@ -4687,6 +4844,7 @@ components:
4687
4844
  - entityId
4688
4845
  - entityType
4689
4846
  - type: object
4847
+ title: Snippet
4690
4848
  properties:
4691
4849
  type:
4692
4850
  type: string
@@ -4799,13 +4957,10 @@ components:
4799
4957
  description: Page entry in the content analytics.
4800
4958
  required:
4801
4959
  - page
4802
- - title
4803
4960
  - pageViews
4804
4961
  properties:
4805
4962
  page:
4806
- type: string
4807
- title:
4808
- type: string
4963
+ $ref: "#/components/schemas/RevisionPageDocument"
4809
4964
  pageViews:
4810
4965
  type: number
4811
4966
  feedbacks:
@@ -5038,6 +5193,13 @@ components:
5038
5193
  - space:script:cookies
5039
5194
  - space:git:sync
5040
5195
  - space:visitor:auth
5196
+ IntegrationSearchQuery:
5197
+ name: search
5198
+ in: query
5199
+ description: |
5200
+ A search string to filter integrations by name
5201
+ schema:
5202
+ type: string
5041
5203
  IntegrationCategories:
5042
5204
  type: array
5043
5205
  description: Categories for which the integration is listed in the marketplace
@@ -5398,6 +5560,21 @@ components:
5398
5560
  signingSecret:
5399
5561
  type: string
5400
5562
  description: Secret that can be used to verify the authenticity of incoming HTTP requests to the integration.
5563
+ deprecated: true
5564
+ signingSecrets:
5565
+ type: object
5566
+ properties:
5567
+ integration:
5568
+ type: string
5569
+ description: Secret that can be used to verify the authenticity of incoming HTTP requests to the integration.
5570
+ installation:
5571
+ type: string
5572
+ description: Secret that can be used to verify the authenticity of incoming HTTP requests to the installation.
5573
+ spaceInstallation:
5574
+ type: string
5575
+ description: Secret that can be used to verify the authenticity of incoming HTTP requests to the space installation.
5576
+ required:
5577
+ - integration
5401
5578
  apiEndpoint:
5402
5579
  type: string
5403
5580
  description: URL of the HTTP API
@@ -5416,6 +5593,7 @@ components:
5416
5593
  - apiEndpoint
5417
5594
  - apiTokens
5418
5595
  - integration
5596
+ - signingSecrets
5419
5597
  - secrets
5420
5598
  IntegrationTarget:
5421
5599
  type: string
@@ -6547,6 +6725,15 @@ components:
6547
6725
  - githubLogin
6548
6726
  - emailVerified
6549
6727
  - activeDaysRemaining
6728
+ SpaceBlockReason:
6729
+ type: string
6730
+ description: Reason for a space to be blocked
6731
+ enum:
6732
+ - DMCA
6733
+ - THREAT_TYPE_UNSPECIFIED
6734
+ - MALWARE
6735
+ - SOCIAL_ENGINEERING
6736
+ - UNWANTED_SOFTWARE
6550
6737
  HiveAccessToken:
6551
6738
  type: object
6552
6739
  description: JWT tokens to authenticate in Hive for all content.
@@ -7467,6 +7654,8 @@ components:
7467
7654
  - $ref: "#/components/schemas/UserAPITokensChannel"
7468
7655
  - $ref: "#/components/schemas/UserOrganizationsChannel"
7469
7656
  - $ref: "#/components/schemas/UserProfileChannel"
7657
+ - $ref: "#/components/schemas/ChangeRequestChannel"
7658
+ - $ref: "#/components/schemas/ChangeRequestsChannel"
7470
7659
  - $ref: "#/components/schemas/ChangeRequestReviewsChannel"
7471
7660
  - $ref: "#/components/schemas/CollectionChannel"
7472
7661
  - $ref: "#/components/schemas/CollectionPublishingCustomizationChannel"
@@ -7732,6 +7921,33 @@ components:
7732
7921
  required:
7733
7922
  - channel
7734
7923
  - collection
7924
+ ChangeRequestChannel:
7925
+ type: object
7926
+ properties:
7927
+ channel:
7928
+ type: string
7929
+ enum:
7930
+ - space-change-request
7931
+ space:
7932
+ type: string
7933
+ changeRequest:
7934
+ type: string
7935
+ required:
7936
+ - channel
7937
+ - space
7938
+ - changeRequest
7939
+ ChangeRequestsChannel:
7940
+ type: object
7941
+ properties:
7942
+ channel:
7943
+ type: string
7944
+ enum:
7945
+ - space-change-requests
7946
+ space:
7947
+ type: string
7948
+ required:
7949
+ - channel
7950
+ - space
7735
7951
  ChangeRequestReviewsChannel:
7736
7952
  type: object
7737
7953
  properties:
@@ -8136,6 +8352,8 @@ components:
8136
8352
  $ref: "#/components/schemas/CustomizationCorners"
8137
8353
  font:
8138
8354
  $ref: "#/components/schemas/CustomizationFont"
8355
+ background:
8356
+ $ref: "#/components/schemas/CustomizationBackground"
8139
8357
  required:
8140
8358
  - primaryColor
8141
8359
  - corners
@@ -8374,6 +8592,11 @@ components:
8374
8592
  enum:
8375
8593
  - straight
8376
8594
  - rounded
8595
+ CustomizationBackground:
8596
+ type: string
8597
+ enum:
8598
+ - plain
8599
+ - match
8377
8600
  CustomizationThemedURL:
8378
8601
  type: object
8379
8602
  properties:
@@ -8434,13 +8657,33 @@ components:
8434
8657
  - bad
8435
8658
  - ok
8436
8659
  - good
8437
- responses:
8438
- UnexpectedError:
8439
- description: Unexpected Error
8440
- content:
8441
- application/json:
8442
- schema:
8443
- $ref: "#/components/schemas/Error"
8660
+ ShareLink:
8661
+ type: object
8662
+ properties:
8663
+ object:
8664
+ type: string
8665
+ description: Type of Object, always equals to "share-link"
8666
+ enum:
8667
+ - share-link
8668
+ id:
8669
+ type: string
8670
+ description: Unique identifier for the share-link
8671
+ createdAt:
8672
+ $ref: "#/components/schemas/Timestamp"
8673
+ name:
8674
+ $ref: "#/components/schemas/ShareLinkName"
8675
+ active:
8676
+ type: boolean
8677
+ required:
8678
+ - object
8679
+ - id
8680
+ - createdAt
8681
+ ShareLinkName:
8682
+ type: string
8683
+ description: Name of the share link
8684
+ minLength: 0
8685
+ maxLength: 50
8686
+ responses:
8444
8687
  BadRequestError:
8445
8688
  description: Bad Request
8446
8689
  content:
@@ -8463,6 +8706,28 @@ components:
8463
8706
  required:
8464
8707
  - code
8465
8708
  - message
8709
+ ConflictError:
8710
+ description: Conflict
8711
+ content:
8712
+ application/json:
8713
+ schema:
8714
+ type: object
8715
+ required:
8716
+ - error
8717
+ properties:
8718
+ error:
8719
+ type: object
8720
+ properties:
8721
+ code:
8722
+ type: integer
8723
+ format: int32
8724
+ enum:
8725
+ - 409
8726
+ message:
8727
+ type: string
8728
+ required:
8729
+ - code
8730
+ - message
8466
8731
  NotFoundError:
8467
8732
  description: Not Found
8468
8733
  content:
@@ -8485,6 +8750,12 @@ components:
8485
8750
  required:
8486
8751
  - code
8487
8752
  - message
8753
+ UnexpectedError:
8754
+ description: Unexpected Error
8755
+ content:
8756
+ application/json:
8757
+ schema:
8758
+ $ref: "#/components/schemas/Error"
8488
8759
  paths:
8489
8760
  /:
8490
8761
  get:
@@ -8707,18 +8978,21 @@ paths:
8707
8978
  description: The integration property, if set, is ignored.
8708
8979
  - oneOf:
8709
8980
  - type: object
8981
+ title: Emoji
8710
8982
  properties:
8711
8983
  emoji:
8712
8984
  $ref: "#/components/schemas/Emoji"
8713
8985
  required:
8714
8986
  - emoji
8715
8987
  - type: object
8988
+ title: Icon
8716
8989
  properties:
8717
8990
  icon:
8718
8991
  $ref: "#/components/schemas/URL"
8719
8992
  required:
8720
8993
  - icon
8721
8994
  - type: object
8995
+ title: Remove icon or emoji
8722
8996
  properties:
8723
8997
  emoji:
8724
8998
  type: string
@@ -8813,6 +9087,86 @@ paths:
8813
9087
  $ref: "#/components/schemas/Space"
8814
9088
  default:
8815
9089
  $ref: "#/components/responses/UnexpectedError"
9090
+ "/spaces/{spaceId}/move":
9091
+ post:
9092
+ operationId: moveSpace
9093
+ summary: Move a space to a new position.
9094
+ tags:
9095
+ - spaces
9096
+ security:
9097
+ - user: []
9098
+ parameters:
9099
+ - $ref: "#/components/parameters/spaceId"
9100
+ requestBody:
9101
+ required: true
9102
+ content:
9103
+ application/json:
9104
+ schema:
9105
+ type: object
9106
+ minProperties: 1
9107
+ properties:
9108
+ parent:
9109
+ description: The unique id of the parent collection
9110
+ type: string
9111
+ nullable: true
9112
+ position:
9113
+ description: Where to move the space. By default, it will be moved at the end.
9114
+ $ref: "#/components/schemas/ContentPosition"
9115
+ responses:
9116
+ "200":
9117
+ description: Space moved
9118
+ content:
9119
+ application/json:
9120
+ schema:
9121
+ $ref: "#/components/schemas/Space"
9122
+ "400":
9123
+ description: Invalid position space or collection provided
9124
+ $ref: "#/components/responses/BadRequestError"
9125
+ "404":
9126
+ description: No matching Space found for given ID
9127
+ $ref: "#/components/responses/NotFoundError"
9128
+ "409":
9129
+ description: Operation would not result in any update
9130
+ $ref: "#/components/responses/ConflictError"
9131
+ default:
9132
+ $ref: "#/components/responses/UnexpectedError"
9133
+ "/spaces/{spaceId}/transfer":
9134
+ post:
9135
+ operationId: transferSpace
9136
+ summary: Transfer a space to another organization, collection or both.
9137
+ tags:
9138
+ - spaces
9139
+ security:
9140
+ - user: []
9141
+ parameters:
9142
+ - $ref: "#/components/parameters/spaceId"
9143
+ requestBody:
9144
+ required: true
9145
+ content:
9146
+ application/json:
9147
+ schema:
9148
+ type: object
9149
+ properties:
9150
+ organization:
9151
+ type: string
9152
+ description: The unique id of the target organization
9153
+ required:
9154
+ - organization
9155
+ responses:
9156
+ "200":
9157
+ description: Space transferred
9158
+ content:
9159
+ application/json:
9160
+ schema:
9161
+ $ref: "#/components/schemas/Space"
9162
+ "404":
9163
+ description: No matching Space found for given ID
9164
+ $ref: "#/components/responses/NotFoundError"
9165
+ "409":
9166
+ description: Transfer would not result in any update
9167
+ $ref: "#/components/responses/ConflictError"
9168
+ default:
9169
+ $ref: "#/components/responses/UnexpectedError"
8816
9170
  "/spaces/{spaceId}/search":
8817
9171
  get:
8818
9172
  operationId: searchSpaceContent
@@ -9293,15 +9647,7 @@ paths:
9293
9647
  content:
9294
9648
  application/json:
9295
9649
  schema:
9296
- allOf:
9297
- - $ref: "#/components/schemas/ChangeRequest"
9298
- - type: object
9299
- properties:
9300
- changeRequest:
9301
- type: string
9302
- deprecated: true
9303
- required:
9304
- - changeRequest
9650
+ $ref: "#/components/schemas/ChangeRequest"
9305
9651
  default:
9306
9652
  $ref: "#/components/responses/UnexpectedError"
9307
9653
  requestBody:
@@ -9369,6 +9715,34 @@ paths:
9369
9715
  $ref: "#/components/responses/NotFoundError"
9370
9716
  default:
9371
9717
  $ref: "#/components/responses/UnexpectedError"
9718
+ patch:
9719
+ operationId: updateChangeRequestById
9720
+ summary: Update the details of a change request
9721
+ tags:
9722
+ - spaces
9723
+ security:
9724
+ - user: []
9725
+ parameters:
9726
+ - $ref: "#/components/parameters/spaceId"
9727
+ - $ref: "#/components/parameters/changeRequestId"
9728
+ requestBody:
9729
+ required: true
9730
+ content:
9731
+ application/json:
9732
+ schema:
9733
+ type: object
9734
+ properties:
9735
+ subject:
9736
+ $ref: "#/components/schemas/ChangeRequestSubject"
9737
+ responses:
9738
+ "200":
9739
+ description: The change request has been updated
9740
+ content:
9741
+ application/json:
9742
+ schema:
9743
+ $ref: "#/components/schemas/ChangeRequest"
9744
+ default:
9745
+ $ref: "#/components/responses/UnexpectedError"
9372
9746
  "/spaces/{spaceId}/change-requests/{changeRequestId}/merge":
9373
9747
  post:
9374
9748
  operationId: mergeChangeRequest
@@ -10776,6 +11150,82 @@ paths:
10776
11150
  - url
10777
11151
  default:
10778
11152
  $ref: "#/components/responses/UnexpectedError"
11153
+ "/spaces/{spaceId}/share-links":
11154
+ post:
11155
+ operationId: createSpaceShareLink
11156
+ summary: Creates a new space share link
11157
+ tags:
11158
+ - spaces
11159
+ security:
11160
+ - user: []
11161
+ parameters:
11162
+ - $ref: "#/components/parameters/spaceId"
11163
+ requestBody:
11164
+ content:
11165
+ application/json:
11166
+ schema:
11167
+ type: object
11168
+ properties:
11169
+ name:
11170
+ $ref: "#/components/schemas/ShareLinkName"
11171
+ required:
11172
+ - name
11173
+ responses:
11174
+ "201":
11175
+ description: The space share link has been created
11176
+ content:
11177
+ application/json:
11178
+ schema:
11179
+ $ref: "#/components/schemas/ShareLink"
11180
+ default:
11181
+ $ref: "#/components/responses/UnexpectedError"
11182
+ "/spaces/{spaceId}/share-links/{shareLinkId}":
11183
+ patch:
11184
+ operationId: updateSpaceShareLinkById
11185
+ summary: Update the details of a space share link
11186
+ tags:
11187
+ - spaces
11188
+ security:
11189
+ - user: []
11190
+ parameters:
11191
+ - $ref: "#/components/parameters/spaceId"
11192
+ - $ref: "#/components/parameters/shareLinkId"
11193
+ requestBody:
11194
+ required: true
11195
+ content:
11196
+ application/json:
11197
+ schema:
11198
+ type: object
11199
+ minProperties: 1
11200
+ properties:
11201
+ active:
11202
+ type: boolean
11203
+ name:
11204
+ $ref: "#/components/schemas/ShareLinkName"
11205
+ responses:
11206
+ "200":
11207
+ description: The space share link has been updated
11208
+ content:
11209
+ application/json:
11210
+ schema:
11211
+ $ref: "#/components/schemas/ShareLink"
11212
+ default:
11213
+ $ref: "#/components/responses/UnexpectedError"
11214
+ delete:
11215
+ operationId: deleteSpaceShareLinkById
11216
+ summary: Deletes a space share link
11217
+ tags:
11218
+ - spaces
11219
+ security:
11220
+ - user: []
11221
+ parameters:
11222
+ - $ref: "#/components/parameters/spaceId"
11223
+ - $ref: "#/components/parameters/shareLinkId"
11224
+ responses:
11225
+ "205":
11226
+ description: Space share link has been deleted
11227
+ default:
11228
+ $ref: "#/components/responses/UnexpectedError"
10779
11229
  "/collections/{collectionId}":
10780
11230
  get:
10781
11231
  operationId: getCollectionById
@@ -10870,6 +11320,86 @@ paths:
10870
11320
  $ref: "#/components/schemas/Space"
10871
11321
  default:
10872
11322
  $ref: "#/components/responses/UnexpectedError"
11323
+ "/collections/{collectionId}/move":
11324
+ post:
11325
+ operationId: moveCollection
11326
+ summary: Move a collection to a new position.
11327
+ tags:
11328
+ - collections
11329
+ security:
11330
+ - user: []
11331
+ parameters:
11332
+ - $ref: "#/components/parameters/collectionId"
11333
+ requestBody:
11334
+ required: true
11335
+ content:
11336
+ application/json:
11337
+ schema:
11338
+ type: object
11339
+ minProperties: 1
11340
+ properties:
11341
+ parent:
11342
+ description: The unique id of the parent collection
11343
+ type: string
11344
+ nullable: true
11345
+ position:
11346
+ description: Where to move the collection. By default, it will be moved at the end.
11347
+ $ref: "#/components/schemas/ContentPosition"
11348
+ responses:
11349
+ "200":
11350
+ description: Collection moved
11351
+ content:
11352
+ application/json:
11353
+ schema:
11354
+ $ref: "#/components/schemas/Collection"
11355
+ "400":
11356
+ description: Invalid position space or collection provided
11357
+ $ref: "#/components/responses/BadRequestError"
11358
+ "404":
11359
+ description: No matching Collection found for given ID
11360
+ $ref: "#/components/responses/NotFoundError"
11361
+ "409":
11362
+ description: Operation would not result in any update
11363
+ $ref: "#/components/responses/ConflictError"
11364
+ default:
11365
+ $ref: "#/components/responses/UnexpectedError"
11366
+ "/collections/{collectionId}/transfer":
11367
+ post:
11368
+ operationId: transferCollection
11369
+ summary: Transfer a collection to another organization.
11370
+ tags:
11371
+ - collections
11372
+ security:
11373
+ - user: []
11374
+ parameters:
11375
+ - $ref: "#/components/parameters/collectionId"
11376
+ requestBody:
11377
+ required: true
11378
+ content:
11379
+ application/json:
11380
+ schema:
11381
+ type: object
11382
+ properties:
11383
+ organization:
11384
+ type: string
11385
+ description: The unique id of the target organization
11386
+ required:
11387
+ - organization
11388
+ responses:
11389
+ "200":
11390
+ description: Collection transferred
11391
+ content:
11392
+ application/json:
11393
+ schema:
11394
+ $ref: "#/components/schemas/Collection"
11395
+ "404":
11396
+ description: No matching Collection found for given ID
11397
+ $ref: "#/components/responses/NotFoundError"
11398
+ "409":
11399
+ description: Transfer would not result in any update
11400
+ $ref: "#/components/responses/ConflictError"
11401
+ default:
11402
+ $ref: "#/components/responses/UnexpectedError"
10873
11403
  "/collections/{collectionId}/permissions/aggregate":
10874
11404
  get:
10875
11405
  operationId: listPermissionsAggregateInCollection
@@ -11000,6 +11530,82 @@ paths:
11000
11530
  $ref: "#/components/responses/BadRequestError"
11001
11531
  default:
11002
11532
  $ref: "#/components/responses/UnexpectedError"
11533
+ "/collections/{collectionId}/share-links":
11534
+ post:
11535
+ operationId: createCollectionShareLink
11536
+ summary: Creates a new collection share link
11537
+ tags:
11538
+ - collections
11539
+ security:
11540
+ - user: []
11541
+ parameters:
11542
+ - $ref: "#/components/parameters/collectionId"
11543
+ requestBody:
11544
+ content:
11545
+ application/json:
11546
+ schema:
11547
+ type: object
11548
+ properties:
11549
+ name:
11550
+ $ref: "#/components/schemas/ShareLinkName"
11551
+ required:
11552
+ - name
11553
+ responses:
11554
+ "201":
11555
+ description: The collection share link has been created
11556
+ content:
11557
+ application/json:
11558
+ schema:
11559
+ $ref: "#/components/schemas/ShareLink"
11560
+ default:
11561
+ $ref: "#/components/responses/UnexpectedError"
11562
+ "/collections/{collectionId}/share-links/{shareLinkId}":
11563
+ patch:
11564
+ operationId: updateCollectionShareLinkById
11565
+ summary: Update the details of a collection share link
11566
+ tags:
11567
+ - collections
11568
+ security:
11569
+ - user: []
11570
+ parameters:
11571
+ - $ref: "#/components/parameters/collectionId"
11572
+ - $ref: "#/components/parameters/shareLinkId"
11573
+ requestBody:
11574
+ required: true
11575
+ content:
11576
+ application/json:
11577
+ schema:
11578
+ type: object
11579
+ minProperties: 1
11580
+ properties:
11581
+ active:
11582
+ type: boolean
11583
+ name:
11584
+ $ref: "#/components/schemas/ShareLinkName"
11585
+ responses:
11586
+ "200":
11587
+ description: The collection share link has been updated
11588
+ content:
11589
+ application/json:
11590
+ schema:
11591
+ $ref: "#/components/schemas/ShareLink"
11592
+ default:
11593
+ $ref: "#/components/responses/UnexpectedError"
11594
+ delete:
11595
+ operationId: deleteCollectionShareLinkById
11596
+ summary: Deletes a collection share link
11597
+ tags:
11598
+ - collections
11599
+ security:
11600
+ - user: []
11601
+ parameters:
11602
+ - $ref: "#/components/parameters/collectionId"
11603
+ - $ref: "#/components/parameters/shareLinkId"
11604
+ responses:
11605
+ "205":
11606
+ description: Collection share link has been deleted
11607
+ default:
11608
+ $ref: "#/components/responses/UnexpectedError"
11003
11609
  /integrations:
11004
11610
  get:
11005
11611
  operationId: listIntegrations
@@ -11009,6 +11615,7 @@ paths:
11009
11615
  parameters:
11010
11616
  - $ref: "#/components/parameters/listPage"
11011
11617
  - $ref: "#/components/parameters/listLimit"
11618
+ - $ref: "#/components/schemas/IntegrationSearchQuery"
11012
11619
  - name: category
11013
11620
  in: query
11014
11621
  description: Filter the integrations by category
@@ -11695,6 +12302,60 @@ paths:
11695
12302
  $ref: "#/components/responses/NotFoundError"
11696
12303
  default:
11697
12304
  $ref: "#/components/responses/UnexpectedError"
12305
+ patch:
12306
+ operationId: updateOrganizationById
12307
+ summary: Update an organization by its ID
12308
+ tags:
12309
+ - organizations
12310
+ security:
12311
+ - user: []
12312
+ parameters:
12313
+ - $ref: "#/components/parameters/organizationId"
12314
+ requestBody:
12315
+ required: true
12316
+ content:
12317
+ application/json:
12318
+ schema:
12319
+ type: object
12320
+ properties:
12321
+ title:
12322
+ $ref: "#/components/schemas/OrganizationTitle"
12323
+ emailDomains:
12324
+ $ref: "#/components/schemas/OrganizationEmailDomains"
12325
+ defaultRole:
12326
+ $ref: "#/components/schemas/MemberRoleOrGuest"
12327
+ defaultContent:
12328
+ oneOf:
12329
+ - $ref: "#/components/schemas/OrganizationDefaultContent"
12330
+ - type: string
12331
+ nullable: true
12332
+ enum:
12333
+ - null
12334
+ logo:
12335
+ oneOf:
12336
+ - $ref: "#/components/schemas/URL"
12337
+ - type: string
12338
+ nullable: true
12339
+ enum:
12340
+ - null
12341
+ sso:
12342
+ type: boolean
12343
+ aiSearch:
12344
+ type: boolean
12345
+ aiInsights:
12346
+ type: boolean
12347
+ responses:
12348
+ "200":
12349
+ description: The organization has been updated
12350
+ content:
12351
+ application/json:
12352
+ schema:
12353
+ $ref: "#/components/schemas/Organization"
12354
+ "400":
12355
+ description: Invalid default content space or collection provided
12356
+ $ref: "#/components/responses/BadRequestError"
12357
+ default:
12358
+ $ref: "#/components/responses/UnexpectedError"
11698
12359
  "/orgs/{organizationId}/members":
11699
12360
  get:
11700
12361
  operationId: listMembersInOrganizationById
@@ -12241,12 +12902,7 @@ paths:
12241
12902
  - user: []
12242
12903
  parameters:
12243
12904
  - $ref: "#/components/parameters/organizationId"
12244
- - name: inviteId
12245
- in: path
12246
- required: true
12247
- description: The unique id of the invite
12248
- schema:
12249
- type: string
12905
+ - $ref: "#/components/parameters/inviteId"
12250
12906
  responses:
12251
12907
  "200":
12252
12908
  description: OK
@@ -12257,6 +12913,51 @@ paths:
12257
12913
  properties: {}
12258
12914
  default:
12259
12915
  $ref: "#/components/responses/UnexpectedError"
12916
+ patch:
12917
+ operationId: updateOrganizationInviteById
12918
+ summary: Update an organization invite.
12919
+ tags:
12920
+ - organizations
12921
+ security:
12922
+ - user: []
12923
+ parameters:
12924
+ - $ref: "#/components/parameters/organizationId"
12925
+ - $ref: "#/components/parameters/inviteId"
12926
+ requestBody:
12927
+ required: true
12928
+ content:
12929
+ application/json:
12930
+ schema:
12931
+ type: object
12932
+ properties:
12933
+ role:
12934
+ $ref: "#/components/schemas/MemberRoleOrGuest"
12935
+ contentLevel:
12936
+ $ref: "#/components/schemas/MemberRoleOrGuest"
12937
+ responses:
12938
+ "200":
12939
+ description: The organization invite has been updated
12940
+ content:
12941
+ application/json:
12942
+ schema:
12943
+ $ref: "#/components/schemas/OrganizationInvite"
12944
+ default:
12945
+ $ref: "#/components/responses/UnexpectedError"
12946
+ delete:
12947
+ operationId: deleteOrganizationInviteById
12948
+ summary: Deletes an organization invite.
12949
+ tags:
12950
+ - organizations
12951
+ security:
12952
+ - user: []
12953
+ parameters:
12954
+ - $ref: "#/components/parameters/organizationId"
12955
+ - $ref: "#/components/parameters/inviteId"
12956
+ responses:
12957
+ "205":
12958
+ description: The organization invite has been deleted
12959
+ default:
12960
+ $ref: "#/components/responses/UnexpectedError"
12260
12961
  "/orgs/{organizationId}/billing":
12261
12962
  post:
12262
12963
  operationId: upgradeOrganizationPlan
@@ -12758,6 +13459,7 @@ paths:
12758
13459
  - $ref: "#/components/parameters/organizationId"
12759
13460
  - $ref: "#/components/parameters/listPage"
12760
13461
  - $ref: "#/components/parameters/listLimit"
13462
+ - $ref: "#/components/schemas/IntegrationSearchQuery"
12761
13463
  responses:
12762
13464
  "200":
12763
13465
  description: List of integrations.
@@ -12812,6 +13514,7 @@ paths:
12812
13514
  - $ref: "#/components/parameters/organizationId"
12813
13515
  - $ref: "#/components/parameters/listPage"
12814
13516
  - $ref: "#/components/parameters/listLimit"
13517
+ - $ref: "#/components/schemas/IntegrationSearchQuery"
12815
13518
  responses:
12816
13519
  "200":
12817
13520
  description: List of integrations with the associated installations.
@@ -13165,49 +13868,6 @@ paths:
13165
13868
  $ref: "#/components/schemas/Capture"
13166
13869
  default:
13167
13870
  $ref: "#/components/responses/UnexpectedError"
13168
- delete:
13169
- operationId: deleteCapture
13170
- deprecated: true
13171
- summary: Delete a capture by its ID. Deprecated, use deleteSnippet.
13172
- tags:
13173
- - organizations
13174
- security:
13175
- - user: []
13176
- parameters:
13177
- - $ref: "#/components/parameters/organizationId"
13178
- - $ref: "#/components/parameters/captureId"
13179
- responses:
13180
- "200":
13181
- description: OK
13182
- default:
13183
- $ref: "#/components/responses/UnexpectedError"
13184
- put:
13185
- operationId: updateCapture
13186
- deprecated: true
13187
- summary: Update an existing capture. Deprecated, use updateSnippet.
13188
- tags:
13189
- - organizations
13190
- security:
13191
- - user: []
13192
- parameters:
13193
- - $ref: "#/components/parameters/organizationId"
13194
- - $ref: "#/components/parameters/captureId"
13195
- - $ref: "#/components/parameters/ifUnmodifiedSince"
13196
- requestBody:
13197
- required: true
13198
- content:
13199
- application/json:
13200
- schema:
13201
- $ref: "#/components/schemas/UpdateCaptureSchema"
13202
- responses:
13203
- "200":
13204
- description: OK
13205
- content:
13206
- application/json:
13207
- schema:
13208
- $ref: "#/components/schemas/Capture"
13209
- default:
13210
- $ref: "#/components/responses/UnexpectedError"
13211
13871
  "/orgs/{organizationId}/captures/{captureId}/events":
13212
13872
  post:
13213
13873
  operationId: addEventsToCapture
@@ -13285,7 +13945,6 @@ paths:
13285
13945
  - user: []
13286
13946
  parameters:
13287
13947
  - $ref: "#/components/parameters/organizationId"
13288
- - $ref: "#/components/parameters/pageFormat"
13289
13948
  - $ref: "#/components/parameters/listPage"
13290
13949
  - $ref: "#/components/parameters/listLimit"
13291
13950
  - name: source
@@ -13350,7 +14009,6 @@ paths:
13350
14009
  parameters:
13351
14010
  - $ref: "#/components/parameters/organizationId"
13352
14011
  - $ref: "#/components/parameters/snippetId"
13353
- - $ref: "#/components/parameters/pageFormat"
13354
14012
  responses:
13355
14013
  "200":
13356
14014
  description: OK