@gitbook/api 0.34.0 → 0.35.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
@@ -170,14 +170,7 @@
170
170
  "required": true,
171
171
  "description": "The unique ID of the change request or its number identifier in the space",
172
172
  "schema": {
173
- "anyOf": [
174
- {
175
- "type": "string"
176
- },
177
- {
178
- "type": "integer"
179
- }
180
- ]
173
+ "type": "string"
181
174
  }
182
175
  },
183
176
  "commentId": {
@@ -202,7 +195,7 @@
202
195
  "name": "integrationName",
203
196
  "in": "path",
204
197
  "required": true,
205
- "description": "Name of the integration. Allowed characters are a-z, A-Z, 0-9, -, _, .",
198
+ "description": "Name of the integration.",
206
199
  "schema": {
207
200
  "type": "string",
208
201
  "pattern": "^[a-zA-Z0-9-_.]+$",
@@ -218,6 +211,15 @@
218
211
  "type": "string"
219
212
  }
220
213
  },
214
+ "siteId": {
215
+ "name": "siteId",
216
+ "in": "path",
217
+ "required": true,
218
+ "description": "The unique id of the site",
219
+ "schema": {
220
+ "type": "string"
221
+ }
222
+ },
221
223
  "organizationId": {
222
224
  "name": "organizationId",
223
225
  "in": "path",
@@ -619,6 +621,28 @@
619
621
  }
620
622
  }
621
623
  },
624
+ "RequestUpdateIntegrationSpaceInstallation": {
625
+ "type": "object",
626
+ "properties": {
627
+ "externalIds": {
628
+ "$ref": "#/components/schemas/IntegrationInstallationExternalIds"
629
+ },
630
+ "configuration": {
631
+ "$ref": "#/components/schemas/IntegrationInstallationConfiguration"
632
+ }
633
+ }
634
+ },
635
+ "RequestUpdateIntegrationSiteInstallation": {
636
+ "type": "object",
637
+ "properties": {
638
+ "externalIds": {
639
+ "$ref": "#/components/schemas/IntegrationInstallationExternalIds"
640
+ },
641
+ "configuration": {
642
+ "$ref": "#/components/schemas/IntegrationInstallationConfiguration"
643
+ }
644
+ }
645
+ },
622
646
  "RequestUpgradeOrganizationBilling": {
623
647
  "type": "object",
624
648
  "properties": {
@@ -738,6 +762,70 @@
738
762
  "ref"
739
763
  ]
740
764
  },
765
+ "RequestSyncGitRepository": {
766
+ "type": "object",
767
+ "properties": {
768
+ "ref": {
769
+ "type": "string",
770
+ "description": "Git ref in the format \"refs/heads/main\""
771
+ },
772
+ "repoURL": {
773
+ "type": "string",
774
+ "description": "URL of the Git repository used for synchronization. It can contain basic auth credentials."
775
+ },
776
+ "repoTreeURL": {
777
+ "type": "string",
778
+ "description": "URL to use as a prefix for external file references."
779
+ },
780
+ "repoCommitURL": {
781
+ "type": "string",
782
+ "description": "URL to use as a prefix for the commit URL."
783
+ },
784
+ "repoProjectDirectory": {
785
+ "type": "string",
786
+ "description": "Path to a root directory for the project in the repository."
787
+ },
788
+ "commitMessageTemplate": {
789
+ "type": "string",
790
+ "description": "Template message for the commit generated during the synchronization."
791
+ },
792
+ "standalone": {
793
+ "type": "boolean",
794
+ "description": "If true, the synchronization of the ref will generate a revision without updating the space primary content."
795
+ },
796
+ "force": {
797
+ "type": "object",
798
+ "description": "Whether to force the synchronization",
799
+ "properties": {
800
+ "priority": {
801
+ "type": "string",
802
+ "enum": [
803
+ "gitbook",
804
+ "git"
805
+ ]
806
+ }
807
+ },
808
+ "required": [
809
+ "priority"
810
+ ]
811
+ },
812
+ "timestamp": {
813
+ "description": "The timestamp of the event. It ensures the synchronize operations are executed in the same order on GitBook and on the remote repository.\n",
814
+ "$ref": "#/components/schemas/Timestamp"
815
+ },
816
+ "gitInfo": {
817
+ "description": "Optional metadata to store on the space about the Git provider",
818
+ "$ref": "#/components/schemas/RequestUpdateSpaceGitInfo"
819
+ }
820
+ },
821
+ "required": [
822
+ "ref",
823
+ "repoURL",
824
+ "repoTreeURL",
825
+ "repoCommitURL",
826
+ "commitMessageTemplate"
827
+ ]
828
+ },
741
829
  "RequestExportToGitRepository": {
742
830
  "type": "object",
743
831
  "properties": {
@@ -909,6 +997,65 @@
909
997
  }
910
998
  }
911
999
  },
1000
+ "CreateOrganizationInvite": {
1001
+ "oneOf": [
1002
+ {
1003
+ "$ref": "#/components/schemas/CreateInviteToOrganization"
1004
+ },
1005
+ {
1006
+ "$ref": "#/components/schemas/CreateInviteToSpace"
1007
+ },
1008
+ {
1009
+ "$ref": "#/components/schemas/CreateInviteToCollection"
1010
+ }
1011
+ ]
1012
+ },
1013
+ "CreateInviteToSpace": {
1014
+ "type": "object",
1015
+ "properties": {
1016
+ "level": {
1017
+ "$ref": "#/components/schemas/MemberRoleOrGuest",
1018
+ "description": "The level of the member in the target space"
1019
+ },
1020
+ "space": {
1021
+ "type": "string",
1022
+ "description": "The ID of space the member has been invited to"
1023
+ }
1024
+ },
1025
+ "required": [
1026
+ "level",
1027
+ "space"
1028
+ ]
1029
+ },
1030
+ "CreateInviteToCollection": {
1031
+ "type": "object",
1032
+ "properties": {
1033
+ "level": {
1034
+ "$ref": "#/components/schemas/MemberRoleOrGuest",
1035
+ "description": "The level of the member in the target collection"
1036
+ },
1037
+ "collection": {
1038
+ "type": "string",
1039
+ "description": "The ID of collection the member has been invited to"
1040
+ }
1041
+ },
1042
+ "required": [
1043
+ "level",
1044
+ "collection"
1045
+ ]
1046
+ },
1047
+ "CreateInviteToOrganization": {
1048
+ "type": "object",
1049
+ "properties": {
1050
+ "role": {
1051
+ "$ref": "#/components/schemas/MemberRoleOrGuest",
1052
+ "description": "The role of the member in the organization"
1053
+ }
1054
+ },
1055
+ "required": [
1056
+ "role"
1057
+ ]
1058
+ },
912
1059
  "ApiInformation": {
913
1060
  "type": "object",
914
1061
  "properties": {
@@ -1011,7 +1158,10 @@
1011
1158
  "description": "URL of the user in the API",
1012
1159
  "format": "uri"
1013
1160
  }
1014
- }
1161
+ },
1162
+ "required": [
1163
+ "location"
1164
+ ]
1015
1165
  }
1016
1166
  },
1017
1167
  "required": [
@@ -1747,6 +1897,9 @@
1747
1897
  },
1748
1898
  {
1749
1899
  "$ref": "#/components/schemas/DocumentBlockIntegration"
1900
+ },
1901
+ {
1902
+ "$ref": "#/components/schemas/DocumentBlockSyncedBlock"
1750
1903
  }
1751
1904
  ]
1752
1905
  },
@@ -1894,6 +2047,9 @@
1894
2047
  },
1895
2048
  {
1896
2049
  "$ref": "#/components/schemas/DocumentBlockIntegration"
2050
+ },
2051
+ {
2052
+ "$ref": "#/components/schemas/DocumentBlockSyncedBlock"
1897
2053
  }
1898
2054
  ]
1899
2055
  },
@@ -2805,6 +2961,21 @@
2805
2961
  "oneOf": [
2806
2962
  {
2807
2963
  "$ref": "#/components/schemas/DocumentBlocksEssentials"
2964
+ },
2965
+ {
2966
+ "$ref": "#/components/schemas/DocumentBlockCode"
2967
+ },
2968
+ {
2969
+ "$ref": "#/components/schemas/DocumentBlockHint"
2970
+ },
2971
+ {
2972
+ "$ref": "#/components/schemas/DocumentBlockQuote"
2973
+ },
2974
+ {
2975
+ "$ref": "#/components/schemas/DocumentBlockMath"
2976
+ },
2977
+ {
2978
+ "$ref": "#/components/schemas/DocumentBlockTable"
2808
2979
  }
2809
2980
  ]
2810
2981
  }
@@ -4248,6 +4419,61 @@
4248
4419
  "data"
4249
4420
  ]
4250
4421
  },
4422
+ "DocumentBlockSyncedBlock": {
4423
+ "type": "object",
4424
+ "properties": {
4425
+ "object": {
4426
+ "type": "string",
4427
+ "enum": [
4428
+ "block"
4429
+ ]
4430
+ },
4431
+ "type": {
4432
+ "type": "string",
4433
+ "enum": [
4434
+ "synced-block"
4435
+ ]
4436
+ },
4437
+ "key": {
4438
+ "type": "string"
4439
+ },
4440
+ "data": {
4441
+ "type": "object",
4442
+ "properties": {
4443
+ "ref": {
4444
+ "$ref": "#/components/schemas/ContentRefSyncedBlock"
4445
+ }
4446
+ },
4447
+ "required": [
4448
+ "ref"
4449
+ ]
4450
+ },
4451
+ "meta": {
4452
+ "type": "object",
4453
+ "properties": {
4454
+ "apiToken": {
4455
+ "description": "API Token to use to fetch the synced block from the API.",
4456
+ "type": "string"
4457
+ }
4458
+ },
4459
+ "required": [
4460
+ "apiToken"
4461
+ ]
4462
+ },
4463
+ "isVoid": {
4464
+ "type": "boolean",
4465
+ "enum": [
4466
+ true
4467
+ ]
4468
+ }
4469
+ },
4470
+ "required": [
4471
+ "object",
4472
+ "type",
4473
+ "data",
4474
+ "isVoid"
4475
+ ]
4476
+ },
4251
4477
  "ContentRef": {
4252
4478
  "oneOf": [
4253
4479
  {
@@ -4273,6 +4499,9 @@
4273
4499
  },
4274
4500
  {
4275
4501
  "$ref": "#/components/schemas/ContentRefSnippet"
4502
+ },
4503
+ {
4504
+ "$ref": "#/components/schemas/ContentRefSyncedBlock"
4276
4505
  }
4277
4506
  ]
4278
4507
  },
@@ -4436,6 +4665,28 @@
4436
4665
  "organization"
4437
4666
  ]
4438
4667
  },
4668
+ "ContentRefSyncedBlock": {
4669
+ "type": "object",
4670
+ "properties": {
4671
+ "kind": {
4672
+ "type": "string",
4673
+ "enum": [
4674
+ "synced-block"
4675
+ ]
4676
+ },
4677
+ "syncedBlock": {
4678
+ "type": "string"
4679
+ },
4680
+ "organization": {
4681
+ "type": "string"
4682
+ }
4683
+ },
4684
+ "required": [
4685
+ "kind",
4686
+ "syncedBlock",
4687
+ "organization"
4688
+ ]
4689
+ },
4439
4690
  "Space": {
4440
4691
  "type": "object",
4441
4692
  "properties": {
@@ -4518,45 +4769,7 @@
4518
4769
  "$ref": "#/components/schemas/GitSyncState"
4519
4770
  },
4520
4771
  "visitorAuth": {
4521
- "oneOf": [
4522
- {
4523
- "type": "object",
4524
- "title": "Custom",
4525
- "properties": {
4526
- "backend": {
4527
- "type": "string",
4528
- "description": "Custom backend for Visitor Authentication",
4529
- "enum": [
4530
- "custom"
4531
- ]
4532
- }
4533
- },
4534
- "required": [
4535
- "backend"
4536
- ]
4537
- },
4538
- {
4539
- "type": "object",
4540
- "title": "Integration",
4541
- "properties": {
4542
- "backend": {
4543
- "type": "string",
4544
- "description": "Integration as backend for Visitor Authentication",
4545
- "enum": [
4546
- "integration"
4547
- ]
4548
- },
4549
- "integration": {
4550
- "type": "string",
4551
- "description": "Name of integration being used as the backend for Visitor Authentication"
4552
- }
4553
- },
4554
- "required": [
4555
- "backend",
4556
- "integration"
4557
- ]
4558
- }
4559
- ]
4772
+ "$ref": "#/components/schemas/SpaceVisitorAuth"
4560
4773
  },
4561
4774
  "revision": {
4562
4775
  "type": "string",
@@ -4595,20 +4808,61 @@
4595
4808
  "minLength": 1,
4596
4809
  "maxLength": 50
4597
4810
  },
4598
- "RevisionBase": {
4599
- "type": "object",
4600
- "properties": {
4601
- "object": {
4602
- "type": "string",
4603
- "description": "Type of Object, always equals to \"revision\"",
4604
- "enum": [
4605
- "revision"
4606
- ]
4607
- },
4608
- "id": {
4609
- "description": "Unique identifier for the revision",
4610
- "type": "string"
4611
- },
4811
+ "SpaceVisitorAuth": {
4812
+ "oneOf": [
4813
+ {
4814
+ "type": "object",
4815
+ "title": "Custom",
4816
+ "properties": {
4817
+ "backend": {
4818
+ "type": "string",
4819
+ "description": "Custom backend for Visitor Authentication",
4820
+ "enum": [
4821
+ "custom"
4822
+ ]
4823
+ }
4824
+ },
4825
+ "required": [
4826
+ "backend"
4827
+ ]
4828
+ },
4829
+ {
4830
+ "type": "object",
4831
+ "title": "Integration",
4832
+ "properties": {
4833
+ "backend": {
4834
+ "type": "string",
4835
+ "description": "Integration as backend for Visitor Authentication",
4836
+ "enum": [
4837
+ "integration"
4838
+ ]
4839
+ },
4840
+ "integration": {
4841
+ "type": "string",
4842
+ "description": "Name of integration being used as the backend for Visitor Authentication"
4843
+ }
4844
+ },
4845
+ "required": [
4846
+ "backend",
4847
+ "integration"
4848
+ ]
4849
+ }
4850
+ ]
4851
+ },
4852
+ "RevisionBase": {
4853
+ "type": "object",
4854
+ "properties": {
4855
+ "object": {
4856
+ "type": "string",
4857
+ "description": "Type of Object, always equals to \"revision\"",
4858
+ "enum": [
4859
+ "revision"
4860
+ ]
4861
+ },
4862
+ "id": {
4863
+ "description": "Unique identifier for the revision",
4864
+ "type": "string"
4865
+ },
4612
4866
  "parents": {
4613
4867
  "description": "IDs of the parent revisions",
4614
4868
  "type": "array",
@@ -6058,7 +6312,7 @@
6058
6312
  ]
6059
6313
  },
6060
6314
  "OrganizationInvite": {
6061
- "oneOf": [
6315
+ "allOf": [
6062
6316
  {
6063
6317
  "type": "object",
6064
6318
  "properties": {
@@ -6072,86 +6326,61 @@
6072
6326
  "id": {
6073
6327
  "type": "string",
6074
6328
  "description": "Unique identifier for the organization invite"
6075
- },
6076
- "role": {
6077
- "$ref": "#/components/schemas/MemberRoleOrGuest",
6078
- "description": "The role of the member in the organization"
6079
6329
  }
6080
6330
  },
6081
6331
  "required": [
6082
6332
  "object",
6083
- "id",
6084
- "role"
6333
+ "id"
6085
6334
  ]
6086
6335
  },
6087
6336
  {
6088
- "type": "object",
6089
- "properties": {
6090
- "object": {
6091
- "type": "string",
6092
- "description": "Type of Object, always equals to \"invite\"",
6093
- "enum": [
6094
- "invite"
6337
+ "oneOf": [
6338
+ {
6339
+ "type": "object",
6340
+ "properties": {
6341
+ "role": {
6342
+ "$ref": "#/components/schemas/MemberRoleOrGuest",
6343
+ "description": "The role of the member in the organization"
6344
+ }
6345
+ },
6346
+ "required": [
6347
+ "role"
6095
6348
  ]
6096
6349
  },
6097
- "id": {
6098
- "type": "string",
6099
- "description": "Unique identifier for the organization invite"
6100
- },
6101
- "role": {
6102
- "$ref": "#/components/schemas/MemberRoleOrGuest",
6103
- "description": "The role of the member in the organization"
6104
- },
6105
- "contentLevel": {
6106
- "$ref": "#/components/schemas/MemberRoleOrGuest",
6107
- "description": "The role of the member in the target space"
6108
- },
6109
- "space": {
6110
- "$ref": "#/components/schemas/Space",
6111
- "description": "The space the member has been invited to"
6112
- }
6113
- },
6114
- "required": [
6115
- "object",
6116
- "id",
6117
- "role",
6118
- "contentLevel",
6119
- "space"
6120
- ]
6121
- },
6122
- {
6123
- "type": "object",
6124
- "properties": {
6125
- "object": {
6126
- "type": "string",
6127
- "description": "Type of Object, always equals to \"invite\"",
6128
- "enum": [
6129
- "invite"
6350
+ {
6351
+ "type": "object",
6352
+ "properties": {
6353
+ "level": {
6354
+ "$ref": "#/components/schemas/MemberRoleOrGuest",
6355
+ "description": "The level of the member in the target space"
6356
+ },
6357
+ "space": {
6358
+ "$ref": "#/components/schemas/Space",
6359
+ "description": "The space the member has been invited to"
6360
+ }
6361
+ },
6362
+ "required": [
6363
+ "level",
6364
+ "space"
6130
6365
  ]
6131
6366
  },
6132
- "id": {
6133
- "type": "string",
6134
- "description": "Unique identifier for the organization invite"
6135
- },
6136
- "role": {
6137
- "$ref": "#/components/schemas/MemberRoleOrGuest",
6138
- "description": "The role of the member in the organization"
6139
- },
6140
- "contentLevel": {
6141
- "$ref": "#/components/schemas/MemberRoleOrGuest",
6142
- "description": "The role of the member in the target collection"
6143
- },
6144
- "collection": {
6145
- "$ref": "#/components/schemas/Collection",
6146
- "description": "The collection the member has been invited to"
6367
+ {
6368
+ "type": "object",
6369
+ "properties": {
6370
+ "level": {
6371
+ "$ref": "#/components/schemas/MemberRoleOrGuest",
6372
+ "description": "The level of the member in the target collection"
6373
+ },
6374
+ "collection": {
6375
+ "$ref": "#/components/schemas/Collection",
6376
+ "description": "The collection the member has been invited to"
6377
+ }
6378
+ },
6379
+ "required": [
6380
+ "level",
6381
+ "collection"
6382
+ ]
6147
6383
  }
6148
- },
6149
- "required": [
6150
- "object",
6151
- "id",
6152
- "role",
6153
- "contentLevel",
6154
- "collection"
6155
6384
  ]
6156
6385
  }
6157
6386
  ]
@@ -6630,6 +6859,57 @@
6630
6859
  }
6631
6860
  }
6632
6861
  },
6862
+ "SyncedBlock": {
6863
+ "type": "object",
6864
+ "properties": {
6865
+ "id": {
6866
+ "type": "string",
6867
+ "description": "Unique identifier for the synced block"
6868
+ },
6869
+ "organization": {
6870
+ "type": "string",
6871
+ "description": "ID of the organization owning this synced block"
6872
+ },
6873
+ "createdAt": {
6874
+ "type": "string",
6875
+ "format": "date-time"
6876
+ },
6877
+ "editedAt": {
6878
+ "type": "string",
6879
+ "format": "date-time",
6880
+ "description": "Timestamp of when the synced block was last edited, if it has been edited since its creation."
6881
+ },
6882
+ "title": {
6883
+ "type": "string",
6884
+ "description": "Title describing the synced block.",
6885
+ "maxLength": 100
6886
+ },
6887
+ "document": {
6888
+ "$ref": "#/components/schemas/JSONDocument"
6889
+ },
6890
+ "urls": {
6891
+ "type": "object",
6892
+ "description": "URLs associated with the object",
6893
+ "properties": {
6894
+ "location": {
6895
+ "description": "URL of the synced block in the API",
6896
+ "$ref": "#/components/schemas/URL"
6897
+ }
6898
+ },
6899
+ "required": [
6900
+ "location"
6901
+ ]
6902
+ }
6903
+ },
6904
+ "required": [
6905
+ "id",
6906
+ "organization",
6907
+ "source",
6908
+ "createdAt",
6909
+ "urls",
6910
+ "document"
6911
+ ]
6912
+ },
6633
6913
  "ContentAuditRelation": {
6634
6914
  "type": "object",
6635
6915
  "description": "Content audit relation",
@@ -6730,6 +7010,128 @@
6730
7010
  "page"
6731
7011
  ]
6732
7012
  },
7013
+ "ContentReferenceUsage": {
7014
+ "type": "array",
7015
+ "items": {
7016
+ "type": "object",
7017
+ "properties": {
7018
+ "status": {
7019
+ "$ref": "#/components/schemas/ContentReferenceStatus"
7020
+ },
7021
+ "targetReference": {
7022
+ "description": "The reference target where a list of pages are pointing at",
7023
+ "$ref": "#/components/schemas/ContentReferenceResolved"
7024
+ },
7025
+ "locationReferences": {
7026
+ "description": "All pages where the target is being referenced.",
7027
+ "type": "array",
7028
+ "items": {
7029
+ "$ref": "#/components/schemas/ContentReferenceResolved"
7030
+ }
7031
+ }
7032
+ },
7033
+ "required": [
7034
+ "targetReference",
7035
+ "locationReferences"
7036
+ ]
7037
+ }
7038
+ },
7039
+ "ContentReferenceResolved": {
7040
+ "type": "object",
7041
+ "properties": {
7042
+ "text": {
7043
+ "description": "Text to display to represent the reference",
7044
+ "type": "string"
7045
+ },
7046
+ "type": {
7047
+ "description": "The type of the content reference",
7048
+ "type": "string",
7049
+ "enum": [
7050
+ "space",
7051
+ "page",
7052
+ "file",
7053
+ "anchor",
7054
+ "collection",
7055
+ "user",
7056
+ "snippet",
7057
+ "url"
7058
+ ]
7059
+ },
7060
+ "url": {
7061
+ "description": "Target in-app url for the reference",
7062
+ "type": "string"
7063
+ },
7064
+ "extra": {
7065
+ "type": "object",
7066
+ "properties": {
7067
+ "space": {
7068
+ "$ref": "#/components/schemas/Space"
7069
+ },
7070
+ "page": {
7071
+ "$ref": "#/components/schemas/RevisionPageDocument"
7072
+ },
7073
+ "file": {
7074
+ "$ref": "#/components/schemas/RevisionFile"
7075
+ },
7076
+ "snippet": {
7077
+ "$ref": "#/components/schemas/Snippet"
7078
+ },
7079
+ "user": {
7080
+ "$ref": "#/components/schemas/User"
7081
+ }
7082
+ }
7083
+ }
7084
+ },
7085
+ "required": [
7086
+ "text",
7087
+ "type",
7088
+ "url",
7089
+ "extra"
7090
+ ]
7091
+ },
7092
+ "ContentReferenceStatus": {
7093
+ "type": "string",
7094
+ "enum": [
7095
+ "broken",
7096
+ "in-app"
7097
+ ],
7098
+ "description": "Text to display to represent the reference. Possible values include:\n- `broken` - The target does not exist in the revision.\n- `in-app` - The target is a URL link pointing to an internal location in the app.\n"
7099
+ },
7100
+ "ContentReferencesStats": {
7101
+ "type": "object",
7102
+ "properties": {
7103
+ "total": {
7104
+ "description": "Total count of links",
7105
+ "type": "number"
7106
+ },
7107
+ "broken": {
7108
+ "type": "object",
7109
+ "properties": {
7110
+ "total": {
7111
+ "description": "Count of broken links",
7112
+ "type": "number"
7113
+ },
7114
+ "space": {
7115
+ "description": "Count of broken links in space. When in the context of a change request it refers to the broken links already existing at the time of the change request creation.",
7116
+ "type": "number"
7117
+ },
7118
+ "changeRequest": {
7119
+ "description": "Count of broken links that were broken in current change request, if applicable.",
7120
+ "type": "number"
7121
+ }
7122
+ },
7123
+ "required": [
7124
+ "total",
7125
+ "space",
7126
+ "changeRequest"
7127
+ ]
7128
+ }
7129
+ },
7130
+ "required": [
7131
+ "total",
7132
+ "broken"
7133
+ ]
7134
+ },
6733
7135
  "ChangeRequest": {
6734
7136
  "type": "object",
6735
7137
  "properties": {
@@ -6775,10 +7177,16 @@
6775
7177
  "type": "string",
6776
7178
  "description": "URL of the space in the application",
6777
7179
  "format": "uri"
7180
+ },
7181
+ "location": {
7182
+ "type": "string",
7183
+ "description": "URL of the user in the API",
7184
+ "format": "uri"
6778
7185
  }
6779
7186
  },
6780
7187
  "required": [
6781
- "app"
7188
+ "app",
7189
+ "location"
6782
7190
  ]
6783
7191
  }
6784
7192
  },
@@ -7391,6 +7799,17 @@
7391
7799
  "questions"
7392
7800
  ]
7393
7801
  },
7802
+ "SearchAIRecommendedQuestionStream": {
7803
+ "type": "object",
7804
+ "properties": {
7805
+ "question": {
7806
+ "type": "string"
7807
+ }
7808
+ },
7809
+ "required": [
7810
+ "question"
7811
+ ]
7812
+ },
7394
7813
  "AnalyticsSearchPeriod": {
7395
7814
  "type": "string",
7396
7815
  "enum": [
@@ -7826,7 +8245,8 @@
7826
8245
  "space:script:inject",
7827
8246
  "space:script:cookies",
7828
8247
  "space:git:sync",
7829
- "space:visitor:auth"
8248
+ "space:visitor:auth",
8249
+ "site:visitor:auth"
7830
8250
  ]
7831
8251
  },
7832
8252
  "IntegrationSearchQuery": {
@@ -8311,9 +8731,66 @@
8311
8731
  "urls"
8312
8732
  ]
8313
8733
  },
8314
- "IntegrationInstallationStatus": {
8315
- "type": "string",
8316
- "enum": [
8734
+ "IntegrationSiteInstallation": {
8735
+ "type": "object",
8736
+ "description": "Installation of an integration at a site level",
8737
+ "properties": {
8738
+ "integration": {
8739
+ "description": "Unique name identifier of the integration",
8740
+ "type": "string"
8741
+ },
8742
+ "installation": {
8743
+ "description": "ID of the integration installation",
8744
+ "type": "string"
8745
+ },
8746
+ "site": {
8747
+ "description": "ID of the site the integration is installed on.",
8748
+ "type": "string"
8749
+ },
8750
+ "status": {
8751
+ "$ref": "#/components/schemas/IntegrationInstallationStatus"
8752
+ },
8753
+ "configuration": {
8754
+ "description": "Configuration of the integration for this site",
8755
+ "type": "object"
8756
+ },
8757
+ "externalIds": {
8758
+ "$ref": "#/components/schemas/IntegrationInstallationExternalIds"
8759
+ },
8760
+ "urls": {
8761
+ "type": "object",
8762
+ "description": "URLs associated with the object",
8763
+ "properties": {
8764
+ "location": {
8765
+ "type": "string",
8766
+ "description": "URL of the integration's site installation in the API",
8767
+ "format": "uri"
8768
+ },
8769
+ "publicEndpoint": {
8770
+ "type": "string",
8771
+ "description": "Public HTTP endpoint for the integration's site installation",
8772
+ "format": "uri"
8773
+ }
8774
+ },
8775
+ "required": [
8776
+ "location",
8777
+ "publicEndpoint"
8778
+ ]
8779
+ }
8780
+ },
8781
+ "required": [
8782
+ "integration",
8783
+ "installation",
8784
+ "site",
8785
+ "status",
8786
+ "configuration",
8787
+ "externalIds",
8788
+ "urls"
8789
+ ]
8790
+ },
8791
+ "IntegrationInstallationStatus": {
8792
+ "type": "string",
8793
+ "enum": [
8317
8794
  "active",
8318
8795
  "pending",
8319
8796
  "paused"
@@ -11739,6 +12216,9 @@
11739
12216
  {
11740
12217
  "$ref": "#/components/schemas/OrganizationInstallationsChannel"
11741
12218
  },
12219
+ {
12220
+ "$ref": "#/components/schemas/OrganizationSitesChannel"
12221
+ },
11742
12222
  {
11743
12223
  "type": "object",
11744
12224
  "properties": {
@@ -11868,6 +12348,15 @@
11868
12348
  },
11869
12349
  {
11870
12350
  "$ref": "#/components/schemas/IntegrationSpaceInstallationsChannel"
12351
+ },
12352
+ {
12353
+ "$ref": "#/components/schemas/IntegrationSiteInstallationChannel"
12354
+ },
12355
+ {
12356
+ "$ref": "#/components/schemas/IntegrationSiteInstallationsChannel"
12357
+ },
12358
+ {
12359
+ "$ref": "#/components/schemas/SiteChannel"
11871
12360
  }
11872
12361
  ],
11873
12362
  "discriminator": {
@@ -12467,6 +12956,25 @@
12467
12956
  "organization"
12468
12957
  ]
12469
12958
  },
12959
+ "OrganizationSitesChannel": {
12960
+ "type": "object",
12961
+ "description": "Subscription channel for changes in sites in an organization.",
12962
+ "properties": {
12963
+ "channel": {
12964
+ "type": "string",
12965
+ "enum": [
12966
+ "organization-sites"
12967
+ ]
12968
+ },
12969
+ "organization": {
12970
+ "type": "string"
12971
+ }
12972
+ },
12973
+ "required": [
12974
+ "channel",
12975
+ "organization"
12976
+ ]
12977
+ },
12470
12978
  "IntegrationChannel": {
12471
12979
  "type": "object",
12472
12980
  "properties": {
@@ -12555,6 +13063,72 @@
12555
13063
  "installation"
12556
13064
  ]
12557
13065
  },
13066
+ "IntegrationSiteInstallationChannel": {
13067
+ "type": "object",
13068
+ "properties": {
13069
+ "channel": {
13070
+ "type": "string",
13071
+ "enum": [
13072
+ "integration-site-installation"
13073
+ ]
13074
+ },
13075
+ "integration": {
13076
+ "type": "string"
13077
+ },
13078
+ "installation": {
13079
+ "type": "string"
13080
+ },
13081
+ "site": {
13082
+ "type": "string"
13083
+ }
13084
+ },
13085
+ "required": [
13086
+ "channel",
13087
+ "integration",
13088
+ "installation",
13089
+ "site"
13090
+ ]
13091
+ },
13092
+ "IntegrationSiteInstallationsChannel": {
13093
+ "type": "object",
13094
+ "properties": {
13095
+ "channel": {
13096
+ "type": "string",
13097
+ "enum": [
13098
+ "integration-site-installations"
13099
+ ]
13100
+ },
13101
+ "integration": {
13102
+ "type": "string"
13103
+ },
13104
+ "installation": {
13105
+ "type": "string"
13106
+ }
13107
+ },
13108
+ "required": [
13109
+ "channel",
13110
+ "integration",
13111
+ "installation"
13112
+ ]
13113
+ },
13114
+ "SiteChannel": {
13115
+ "type": "object",
13116
+ "properties": {
13117
+ "channel": {
13118
+ "type": "string",
13119
+ "enum": [
13120
+ "site"
13121
+ ]
13122
+ },
13123
+ "site": {
13124
+ "type": "string"
13125
+ }
13126
+ },
13127
+ "required": [
13128
+ "channel",
13129
+ "site"
13130
+ ]
13131
+ },
12558
13132
  "CustomField": {
12559
13133
  "type": "object",
12560
13134
  "description": "Custom field",
@@ -13222,80 +13796,477 @@
13222
13796
  "description": "Name of the share link",
13223
13797
  "minLength": 0,
13224
13798
  "maxLength": 50
13225
- }
13226
- },
13227
- "responses": {
13228
- "BadRequestError": {
13229
- "description": "Bad Request",
13230
- "content": {
13231
- "application/json": {
13232
- "schema": {
13233
- "type": "object",
13234
- "required": [
13235
- "error"
13236
- ],
13237
- "properties": {
13238
- "error": {
13239
- "type": "object",
13240
- "properties": {
13241
- "code": {
13242
- "type": "integer",
13243
- "format": "int32",
13244
- "enum": [
13245
- 400
13246
- ]
13247
- },
13248
- "message": {
13249
- "type": "string"
13250
- }
13251
- },
13252
- "required": [
13253
- "code",
13254
- "message"
13255
- ]
13256
- }
13257
- }
13258
- }
13259
- }
13260
- }
13261
13799
  },
13262
- "ConflictError": {
13263
- "description": "Conflict",
13264
- "content": {
13265
- "application/json": {
13266
- "schema": {
13267
- "type": "object",
13268
- "required": [
13269
- "error"
13270
- ],
13271
- "properties": {
13272
- "error": {
13273
- "type": "object",
13274
- "properties": {
13275
- "code": {
13276
- "type": "integer",
13277
- "format": "int32",
13278
- "enum": [
13279
- 409
13280
- ]
13281
- },
13282
- "message": {
13283
- "type": "string"
13284
- }
13285
- },
13286
- "required": [
13287
- "code",
13288
- "message"
13289
- ]
13290
- }
13800
+ "Site": {
13801
+ "type": "object",
13802
+ "properties": {
13803
+ "object": {
13804
+ "type": "string",
13805
+ "enum": [
13806
+ "site"
13807
+ ]
13808
+ },
13809
+ "id": {
13810
+ "type": "string",
13811
+ "description": "Unique identifier of the site"
13812
+ },
13813
+ "title": {
13814
+ "$ref": "#/components/schemas/SiteTitle"
13815
+ },
13816
+ "hostname": {
13817
+ "$ref": "#/components/schemas/SiteHostname"
13818
+ },
13819
+ "basename": {
13820
+ "$ref": "#/components/schemas/SiteBasename"
13821
+ },
13822
+ "visibility": {
13823
+ "$ref": "#/components/schemas/SiteVisibility"
13824
+ },
13825
+ "siteSpaces": {
13826
+ "type": "number"
13827
+ },
13828
+ "createdAt": {
13829
+ "type": "string",
13830
+ "format": "date-time"
13831
+ },
13832
+ "urls": {
13833
+ "type": "object",
13834
+ "description": "URLs associated with the object",
13835
+ "properties": {
13836
+ "location": {
13837
+ "type": "string",
13838
+ "description": "URL of the site in the API",
13839
+ "format": "uri"
13840
+ },
13841
+ "app": {
13842
+ "type": "string",
13843
+ "description": "URL of the site in the application",
13844
+ "format": "uri"
13845
+ },
13846
+ "published": {
13847
+ "type": "string",
13848
+ "description": "URL of the published version of the site. Only defined when visibility is not \"unpublished.\"",
13849
+ "format": "uri"
13291
13850
  }
13292
- }
13851
+ },
13852
+ "required": [
13853
+ "app",
13854
+ "location"
13855
+ ]
13293
13856
  }
13294
- }
13857
+ },
13858
+ "required": [
13859
+ "object",
13860
+ "id",
13861
+ "title",
13862
+ "basename",
13863
+ "visibility",
13864
+ "createdAt",
13865
+ "siteSpaces",
13866
+ "defaultSpace",
13867
+ "urls"
13868
+ ]
13295
13869
  },
13296
- "NotFoundError": {
13297
- "description": "Not Found",
13298
- "content": {
13870
+ "SiteTitle": {
13871
+ "type": "string",
13872
+ "description": "Title of the site",
13873
+ "minLength": 2,
13874
+ "maxLength": 50
13875
+ },
13876
+ "SiteCustomizationSettings": {
13877
+ "type": "object",
13878
+ "properties": {
13879
+ "styling": {
13880
+ "type": "object",
13881
+ "properties": {
13882
+ "primaryColor": {
13883
+ "$ref": "#/components/schemas/CustomizationThemedColor"
13884
+ },
13885
+ "corners": {
13886
+ "$ref": "#/components/schemas/CustomizationCorners"
13887
+ },
13888
+ "font": {
13889
+ "$ref": "#/components/schemas/CustomizationFont"
13890
+ },
13891
+ "background": {
13892
+ "$ref": "#/components/schemas/CustomizationBackground"
13893
+ }
13894
+ },
13895
+ "required": [
13896
+ "primaryColor",
13897
+ "corners",
13898
+ "font",
13899
+ "background"
13900
+ ]
13901
+ },
13902
+ "internationalization": {
13903
+ "type": "object",
13904
+ "properties": {
13905
+ "locale": {
13906
+ "$ref": "#/components/schemas/CustomizationLocale"
13907
+ }
13908
+ },
13909
+ "required": [
13910
+ "locale"
13911
+ ]
13912
+ },
13913
+ "favicon": {
13914
+ "oneOf": [
13915
+ {
13916
+ "type": "object",
13917
+ "properties": {
13918
+ "icon": {
13919
+ "$ref": "#/components/schemas/CustomizationThemedURL"
13920
+ }
13921
+ },
13922
+ "required": [
13923
+ "icon"
13924
+ ]
13925
+ },
13926
+ {
13927
+ "type": "object",
13928
+ "properties": {
13929
+ "emoji": {
13930
+ "$ref": "#/components/schemas/Emoji"
13931
+ }
13932
+ },
13933
+ "required": [
13934
+ "emoji"
13935
+ ]
13936
+ },
13937
+ {
13938
+ "type": "object",
13939
+ "properties": {},
13940
+ "additionalProperties": false
13941
+ }
13942
+ ]
13943
+ },
13944
+ "header": {
13945
+ "type": "object",
13946
+ "properties": {
13947
+ "preset": {
13948
+ "$ref": "#/components/schemas/CustomizationHeaderPreset"
13949
+ },
13950
+ "logo": {
13951
+ "$ref": "#/components/schemas/CustomizationThemedURL"
13952
+ },
13953
+ "backgroundColor": {
13954
+ "$ref": "#/components/schemas/CustomizationThemedColor"
13955
+ },
13956
+ "linkColor": {
13957
+ "$ref": "#/components/schemas/CustomizationThemedColor"
13958
+ },
13959
+ "links": {
13960
+ "type": "array",
13961
+ "items": {
13962
+ "$ref": "#/components/schemas/CustomizationHeaderLink"
13963
+ }
13964
+ }
13965
+ },
13966
+ "required": [
13967
+ "preset",
13968
+ "links"
13969
+ ]
13970
+ },
13971
+ "footer": {
13972
+ "type": "object",
13973
+ "properties": {
13974
+ "logo": {
13975
+ "$ref": "#/components/schemas/CustomizationThemedURL"
13976
+ },
13977
+ "groups": {
13978
+ "type": "array",
13979
+ "items": {
13980
+ "$ref": "#/components/schemas/CustomizationFooterGroup"
13981
+ }
13982
+ },
13983
+ "copyright": {
13984
+ "type": "string",
13985
+ "maxLength": 300
13986
+ }
13987
+ },
13988
+ "required": [
13989
+ "groups"
13990
+ ]
13991
+ },
13992
+ "themes": {
13993
+ "type": "object",
13994
+ "properties": {
13995
+ "default": {
13996
+ "$ref": "#/components/schemas/CustomizationThemeMode"
13997
+ },
13998
+ "toggeable": {
13999
+ "description": "Should the reader be able to switch between dark and light mode",
14000
+ "type": "boolean"
14001
+ }
14002
+ },
14003
+ "required": [
14004
+ "default",
14005
+ "toggeable"
14006
+ ]
14007
+ },
14008
+ "pdf": {
14009
+ "type": "object",
14010
+ "properties": {
14011
+ "enabled": {
14012
+ "type": "boolean",
14013
+ "description": "If true, PDF export is enabled for the published site."
14014
+ }
14015
+ },
14016
+ "required": [
14017
+ "enabled"
14018
+ ]
14019
+ },
14020
+ "feedback": {
14021
+ "type": "object",
14022
+ "properties": {
14023
+ "enabled": {
14024
+ "type": "boolean",
14025
+ "description": "If true, feedback gathering is enabled"
14026
+ }
14027
+ },
14028
+ "required": [
14029
+ "enabled"
14030
+ ]
14031
+ },
14032
+ "aiSearch": {
14033
+ "type": "object",
14034
+ "properties": {
14035
+ "enabled": {
14036
+ "type": "boolean",
14037
+ "description": "If true, AI search is enabled"
14038
+ }
14039
+ },
14040
+ "required": [
14041
+ "enabled"
14042
+ ]
14043
+ },
14044
+ "git": {
14045
+ "type": "object",
14046
+ "properties": {
14047
+ "showEditLink": {
14048
+ "type": "boolean",
14049
+ "description": "Whether the published site should show a link to edit the content on the git provider set up in the Git Sync"
14050
+ }
14051
+ },
14052
+ "required": [
14053
+ "showEditLink"
14054
+ ]
14055
+ },
14056
+ "pagination": {
14057
+ "type": "object",
14058
+ "properties": {
14059
+ "enabled": {
14060
+ "type": "boolean",
14061
+ "description": "Whether the pagination navigation should be displayed on pages."
14062
+ }
14063
+ },
14064
+ "required": [
14065
+ "enabled"
14066
+ ]
14067
+ },
14068
+ "trademark": {
14069
+ "type": "object",
14070
+ "properties": {
14071
+ "enabled": {
14072
+ "type": "boolean",
14073
+ "description": "Whether the GitBook trademark (\"Powered by GitBook\") should be visible"
14074
+ }
14075
+ },
14076
+ "required": [
14077
+ "enabled"
14078
+ ]
14079
+ },
14080
+ "privacyPolicy": {
14081
+ "type": "object",
14082
+ "properties": {
14083
+ "url": {
14084
+ "$ref": "#/components/schemas/URL"
14085
+ }
14086
+ }
14087
+ },
14088
+ "socialPreview": {
14089
+ "type": "object",
14090
+ "properties": {
14091
+ "url": {
14092
+ "$ref": "#/components/schemas/URL"
14093
+ }
14094
+ }
14095
+ }
14096
+ },
14097
+ "required": [
14098
+ "styling",
14099
+ "internationalization",
14100
+ "favicon",
14101
+ "header",
14102
+ "footer",
14103
+ "themes",
14104
+ "pdf",
14105
+ "feedback",
14106
+ "aiSearch",
14107
+ "trademark",
14108
+ "pagination",
14109
+ "git",
14110
+ "privacyPolicy",
14111
+ "socialPreview"
14112
+ ]
14113
+ },
14114
+ "SiteVisibility": {
14115
+ "type": "string",
14116
+ "description": "* `public`: Anyone can access the site, and the site is indexed by search engines.\n* `unlisted`: Anyone can access the site, and the site is not indexed by search engines\n* `share-link`: Anyone with a secret token in the url can access the site.\n* `visitor-auth`: Anyone authenticated through a JWT token can access the site.\n* `unpublished`: The site is not accessible to anyone.\n",
14117
+ "enum": [
14118
+ "public",
14119
+ "unlisted",
14120
+ "share-link",
14121
+ "visitor-auth",
14122
+ "unpublished"
14123
+ ]
14124
+ },
14125
+ "SitePublishingAuth": {
14126
+ "allOf": [
14127
+ {
14128
+ "type": "object",
14129
+ "properties": {
14130
+ "object": {
14131
+ "type": "string",
14132
+ "description": "Type of Object, always equals to \"publishing-auth\"",
14133
+ "enum": [
14134
+ "publishing-auth"
14135
+ ]
14136
+ },
14137
+ "privateKey": {
14138
+ "type": "string",
14139
+ "description": "Private key used to sign JWT tokens."
14140
+ },
14141
+ "fallbackURL": {
14142
+ "type": "string",
14143
+ "format": "uri",
14144
+ "description": "URL to redirect to when the visitor auth secret is invalid."
14145
+ }
14146
+ },
14147
+ "required": [
14148
+ "object",
14149
+ "privateKey"
14150
+ ]
14151
+ },
14152
+ {
14153
+ "$ref": "#/components/schemas/SpaceVisitorAuth"
14154
+ }
14155
+ ]
14156
+ },
14157
+ "SiteBasename": {
14158
+ "type": "string",
14159
+ "description": "Basename for the site. For e.g. /api",
14160
+ "maxLength": 100
14161
+ },
14162
+ "SiteHostname": {
14163
+ "type": "string",
14164
+ "description": "Custom hostname for the site, for e.g. docs.mycompany.com",
14165
+ "maxLength": 100
14166
+ },
14167
+ "SiteSpace": {
14168
+ "type": "object",
14169
+ "properties": {
14170
+ "id": {
14171
+ "type": "string",
14172
+ "description": "Unique identifier of the site-space"
14173
+ },
14174
+ "path": {
14175
+ "$ref": "#/components/schemas/SiteSpacePath"
14176
+ },
14177
+ "space": {
14178
+ "$ref": "#/components/schemas/Space"
14179
+ },
14180
+ "default": {
14181
+ "type": "boolean",
14182
+ "description": "Whether this is the default space for the site"
14183
+ }
14184
+ },
14185
+ "required": [
14186
+ "id",
14187
+ "space",
14188
+ "path"
14189
+ ]
14190
+ },
14191
+ "SiteSpacePath": {
14192
+ "type": "string",
14193
+ "description": "Path to the space on the site",
14194
+ "minLength": 1,
14195
+ "maxLength": 100
14196
+ }
14197
+ },
14198
+ "responses": {
14199
+ "BadRequestError": {
14200
+ "description": "Bad Request",
14201
+ "content": {
14202
+ "application/json": {
14203
+ "schema": {
14204
+ "type": "object",
14205
+ "required": [
14206
+ "error"
14207
+ ],
14208
+ "properties": {
14209
+ "error": {
14210
+ "type": "object",
14211
+ "properties": {
14212
+ "code": {
14213
+ "type": "integer",
14214
+ "format": "int32",
14215
+ "enum": [
14216
+ 400
14217
+ ]
14218
+ },
14219
+ "message": {
14220
+ "type": "string"
14221
+ }
14222
+ },
14223
+ "required": [
14224
+ "code",
14225
+ "message"
14226
+ ]
14227
+ }
14228
+ }
14229
+ }
14230
+ }
14231
+ }
14232
+ },
14233
+ "ConflictError": {
14234
+ "description": "Conflict",
14235
+ "content": {
14236
+ "application/json": {
14237
+ "schema": {
14238
+ "type": "object",
14239
+ "required": [
14240
+ "error"
14241
+ ],
14242
+ "properties": {
14243
+ "error": {
14244
+ "type": "object",
14245
+ "properties": {
14246
+ "code": {
14247
+ "type": "integer",
14248
+ "format": "int32",
14249
+ "enum": [
14250
+ 409
14251
+ ]
14252
+ },
14253
+ "message": {
14254
+ "type": "string"
14255
+ }
14256
+ },
14257
+ "required": [
14258
+ "code",
14259
+ "message"
14260
+ ]
14261
+ }
14262
+ }
14263
+ }
14264
+ }
14265
+ }
14266
+ },
14267
+ "NotFoundError": {
14268
+ "description": "Not Found",
14269
+ "content": {
13299
14270
  "application/json": {
13300
14271
  "schema": {
13301
14272
  "type": "object",
@@ -13702,7 +14673,7 @@
13702
14673
  "$ref": "#/components/schemas/ContentVisibility"
13703
14674
  },
13704
14675
  "visitorAuth": {
13705
- "$ref": "#/components/schemas/Space/properties/visitorAuth",
14676
+ "$ref": "#/components/schemas/SpaceVisitorAuth",
13706
14677
  "description": "The integration property, if set, is ignored."
13707
14678
  },
13708
14679
  "defaultLevel": {
@@ -14250,6 +15221,32 @@
14250
15221
  }
14251
15222
  }
14252
15223
  },
15224
+ "/spaces/{spaceId}/search/questions/stream": {
15225
+ "get": {
15226
+ "operationId": "streamRecommendedQuestionsInSpace",
15227
+ "summary": "Stream a list of questions that can be asked in a space.",
15228
+ "parameters": [
15229
+ {
15230
+ "$ref": "#/components/parameters/spaceId"
15231
+ }
15232
+ ],
15233
+ "responses": {
15234
+ "200": {
15235
+ "description": "OK",
15236
+ "content": {
15237
+ "text/event-stream": {
15238
+ "schema": {
15239
+ "$ref": "#/components/schemas/SearchAIRecommendedQuestionStream"
15240
+ }
15241
+ }
15242
+ }
15243
+ },
15244
+ "default": {
15245
+ "$ref": "#/components/responses/UnexpectedError"
15246
+ }
15247
+ }
15248
+ }
15249
+ },
14253
15250
  "/spaces/{spaceId}/git/import": {
14254
15251
  "post": {
14255
15252
  "operationId": "importGitRepository",
@@ -14324,6 +15321,43 @@
14324
15321
  }
14325
15322
  }
14326
15323
  },
15324
+ "/spaces/{spaceId}/git/sync": {
15325
+ "post": {
15326
+ "operationId": "syncGitRepository",
15327
+ "summary": "Synchronize a Git repository with the space content.",
15328
+ "tags": [
15329
+ "spaces"
15330
+ ],
15331
+ "security": [
15332
+ {
15333
+ "user": []
15334
+ }
15335
+ ],
15336
+ "parameters": [
15337
+ {
15338
+ "$ref": "#/components/parameters/spaceId"
15339
+ }
15340
+ ],
15341
+ "responses": {
15342
+ "204": {
15343
+ "description": "Operation to synchronize the repository has been started."
15344
+ },
15345
+ "default": {
15346
+ "$ref": "#/components/responses/UnexpectedError"
15347
+ }
15348
+ },
15349
+ "requestBody": {
15350
+ "required": true,
15351
+ "content": {
15352
+ "application/json": {
15353
+ "schema": {
15354
+ "$ref": "#/components/schemas/RequestSyncGitRepository"
15355
+ }
15356
+ }
15357
+ }
15358
+ }
15359
+ }
15360
+ },
14327
15361
  "/spaces/{spaceId}/git/info": {
14328
15362
  "get": {
14329
15363
  "operationId": "getSpaceGitInfo",
@@ -16402,6 +17436,75 @@
16402
17436
  }
16403
17437
  }
16404
17438
  },
17439
+ "/spaces/{spaceId}/change-requests/{changeRequestId}/touched-content": {
17440
+ "post": {
17441
+ "operationId": "touchContentInChangeRequest",
17442
+ "summary": "Touch Hive content, marking it as modified as part of this change request.",
17443
+ "tags": [
17444
+ "spaces"
17445
+ ],
17446
+ "security": [
17447
+ {
17448
+ "user": []
17449
+ }
17450
+ ],
17451
+ "parameters": [
17452
+ {
17453
+ "$ref": "#/components/parameters/spaceId"
17454
+ },
17455
+ {
17456
+ "$ref": "#/components/parameters/changeRequestId"
17457
+ }
17458
+ ],
17459
+ "responses": {
17460
+ "200": {
17461
+ "description": "Content marked as touched.",
17462
+ "content": {
17463
+ "application/json": {
17464
+ "schema": {
17465
+ "$ref": "#/components/schemas/ChangeRequest"
17466
+ }
17467
+ }
17468
+ }
17469
+ },
17470
+ "default": {
17471
+ "$ref": "#/components/responses/UnexpectedError"
17472
+ }
17473
+ },
17474
+ "requestBody": {
17475
+ "required": true,
17476
+ "content": {
17477
+ "application/json": {
17478
+ "schema": {
17479
+ "type": "object",
17480
+ "properties": {
17481
+ "contentId": {
17482
+ "type": "string",
17483
+ "description": "The content id of the touched content."
17484
+ },
17485
+ "branchId": {
17486
+ "type": "string",
17487
+ "description": "The branch id of the touched content."
17488
+ },
17489
+ "relation": {
17490
+ "type": "string",
17491
+ "description": "The relation of the touched content to the change request.",
17492
+ "enum": [
17493
+ "synced-block"
17494
+ ]
17495
+ }
17496
+ },
17497
+ "required": [
17498
+ "contentId",
17499
+ "branchId",
17500
+ "relation"
17501
+ ]
17502
+ }
17503
+ }
17504
+ }
17505
+ }
17506
+ }
17507
+ },
16405
17508
  "/spaces/{spaceId}/revisions/{revisionId}": {
16406
17509
  "get": {
16407
17510
  "operationId": "getRevisionById",
@@ -17414,6 +18517,107 @@
17414
18517
  }
17415
18518
  }
17416
18519
  },
18520
+ "/spaces/{spaceId}/publishing/preview": {
18521
+ "get": {
18522
+ "operationId": "getSpacePublishingPreviewById",
18523
+ "summary": "Get a URL to preview the published content of a space. The URL will be valid for 1 hour.",
18524
+ "tags": [
18525
+ "spaces"
18526
+ ],
18527
+ "security": [
18528
+ {
18529
+ "user": []
18530
+ }
18531
+ ],
18532
+ "parameters": [
18533
+ {
18534
+ "$ref": "#/components/parameters/spaceId"
18535
+ }
18536
+ ],
18537
+ "responses": {
18538
+ "200": {
18539
+ "description": "OK",
18540
+ "content": {
18541
+ "application/json": {
18542
+ "schema": {
18543
+ "type": "object",
18544
+ "properties": {
18545
+ "url": {
18546
+ "$ref": "#/components/schemas/URL"
18547
+ }
18548
+ },
18549
+ "required": [
18550
+ "url"
18551
+ ]
18552
+ }
18553
+ }
18554
+ }
18555
+ },
18556
+ "400": {
18557
+ "$ref": "#/components/responses/BadRequestError"
18558
+ },
18559
+ "default": {
18560
+ "$ref": "#/components/responses/UnexpectedError"
18561
+ }
18562
+ }
18563
+ }
18564
+ },
18565
+ "/spaces/{spaceId}/integrations": {
18566
+ "get": {
18567
+ "operationId": "listSpaceIntegrations",
18568
+ "summary": "List integrations enabled in a space.",
18569
+ "tags": [
18570
+ "integrations",
18571
+ "spaces"
18572
+ ],
18573
+ "security": [
18574
+ {
18575
+ "user": []
18576
+ }
18577
+ ],
18578
+ "parameters": [
18579
+ {
18580
+ "$ref": "#/components/parameters/spaceId"
18581
+ },
18582
+ {
18583
+ "$ref": "#/components/schemas/IntegrationSearchQuery"
18584
+ }
18585
+ ],
18586
+ "responses": {
18587
+ "200": {
18588
+ "description": "Listing of integrations enabled in the space.",
18589
+ "content": {
18590
+ "application/json": {
18591
+ "schema": {
18592
+ "allOf": [
18593
+ {
18594
+ "$ref": "#/components/schemas/List"
18595
+ },
18596
+ {
18597
+ "type": "object",
18598
+ "required": [
18599
+ "items"
18600
+ ],
18601
+ "properties": {
18602
+ "items": {
18603
+ "type": "array",
18604
+ "items": {
18605
+ "$ref": "#/components/schemas/Integration"
18606
+ }
18607
+ }
18608
+ }
18609
+ }
18610
+ ]
18611
+ }
18612
+ }
18613
+ }
18614
+ },
18615
+ "default": {
18616
+ "$ref": "#/components/responses/UnexpectedError"
18617
+ }
18618
+ }
18619
+ }
18620
+ },
17417
18621
  "/spaces/{spaceId}/integration-blocks": {
17418
18622
  "get": {
17419
18623
  "operationId": "listSpaceIntegrationsBlocks",
@@ -19562,7 +20766,7 @@
19562
20766
  "content": {
19563
20767
  "application/json": {
19564
20768
  "schema": {
19565
- "$ref": "#/components/schemas/RequestUpdateIntegrationInstallation"
20769
+ "$ref": "#/components/schemas/RequestUpdateIntegrationSpaceInstallation"
19566
20770
  }
19567
20771
  }
19568
20772
  }
@@ -20826,7 +22030,53 @@
20826
22030
  "$ref": "#/components/responses/UnexpectedError"
20827
22031
  }
20828
22032
  }
20829
- },
22033
+ }
22034
+ },
22035
+ "/orgs/{organizationId}/link-invites": {
22036
+ "post": {
22037
+ "operationId": "createOrganizationInvite",
22038
+ "summary": "Create a new organization invite",
22039
+ "tags": [
22040
+ "organizations"
22041
+ ],
22042
+ "security": [
22043
+ {
22044
+ "user": []
22045
+ }
22046
+ ],
22047
+ "parameters": [
22048
+ {
22049
+ "$ref": "#/components/parameters/organizationId"
22050
+ }
22051
+ ],
22052
+ "requestBody": {
22053
+ "required": true,
22054
+ "content": {
22055
+ "application/json": {
22056
+ "schema": {
22057
+ "$ref": "#/components/schemas/CreateOrganizationInvite"
22058
+ }
22059
+ }
22060
+ }
22061
+ },
22062
+ "responses": {
22063
+ "201": {
22064
+ "description": "The organization invite has been created",
22065
+ "content": {
22066
+ "application/json": {
22067
+ "schema": {
22068
+ "$ref": "#/components/schemas/OrganizationInvite"
22069
+ }
22070
+ }
22071
+ }
22072
+ },
22073
+ "default": {
22074
+ "$ref": "#/components/responses/UnexpectedError"
22075
+ }
22076
+ }
22077
+ }
22078
+ },
22079
+ "/orgs/{organizationId}/link-invites/{inviteId}": {
20830
22080
  "patch": {
20831
22081
  "operationId": "updateOrganizationInviteById",
20832
22082
  "summary": "Update an organization invite.",
@@ -20851,15 +22101,32 @@
20851
22101
  "content": {
20852
22102
  "application/json": {
20853
22103
  "schema": {
20854
- "type": "object",
20855
- "properties": {
20856
- "role": {
20857
- "$ref": "#/components/schemas/MemberRoleOrGuest"
22104
+ "oneOf": [
22105
+ {
22106
+ "type": "object",
22107
+ "description": "Update role of an organization invite",
22108
+ "properties": {
22109
+ "role": {
22110
+ "$ref": "#/components/schemas/MemberRoleOrGuest"
22111
+ }
22112
+ },
22113
+ "required": [
22114
+ "role"
22115
+ ]
20858
22116
  },
20859
- "contentLevel": {
20860
- "$ref": "#/components/schemas/MemberRoleOrGuest"
22117
+ {
22118
+ "type": "object",
22119
+ "description": "Update level of an organization content invite",
22120
+ "properties": {
22121
+ "level": {
22122
+ "$ref": "#/components/schemas/MemberRoleOrGuest"
22123
+ }
22124
+ },
22125
+ "required": [
22126
+ "level"
22127
+ ]
20861
22128
  }
20862
- }
22129
+ ]
20863
22130
  }
20864
22131
  }
20865
22132
  }
@@ -23069,6 +24336,113 @@
23069
24336
  }
23070
24337
  }
23071
24338
  },
24339
+ "/orgs/{organizationId}/synced-blocks": {
24340
+ "post": {
24341
+ "operationId": "createSyncedBlock",
24342
+ "summary": "Create a new synced block",
24343
+ "tags": [
24344
+ "organizations"
24345
+ ],
24346
+ "security": [
24347
+ {
24348
+ "user": []
24349
+ }
24350
+ ],
24351
+ "parameters": [
24352
+ {
24353
+ "$ref": "#/components/parameters/organizationId"
24354
+ }
24355
+ ],
24356
+ "requestBody": {
24357
+ "required": true,
24358
+ "content": {
24359
+ "application/json": {
24360
+ "schema": {
24361
+ "type": "object",
24362
+ "required": [
24363
+ "document"
24364
+ ],
24365
+ "properties": {
24366
+ "title": {
24367
+ "type": "string",
24368
+ "description": "Title of synced block"
24369
+ },
24370
+ "document": {
24371
+ "$ref": "#/components/schemas/Document"
24372
+ }
24373
+ }
24374
+ }
24375
+ }
24376
+ }
24377
+ },
24378
+ "responses": {
24379
+ "201": {
24380
+ "description": "Synced block created",
24381
+ "headers": {
24382
+ "Location": {
24383
+ "description": "API URL for the newly created synced block",
24384
+ "schema": {
24385
+ "type": "string"
24386
+ }
24387
+ }
24388
+ },
24389
+ "content": {
24390
+ "application/json": {
24391
+ "schema": {
24392
+ "$ref": "#/components/schemas/SyncedBlock"
24393
+ }
24394
+ }
24395
+ }
24396
+ },
24397
+ "default": {
24398
+ "$ref": "#/components/responses/UnexpectedError"
24399
+ }
24400
+ }
24401
+ }
24402
+ },
24403
+ "/orgs/{organizationId}/synced-blocks/{syncedBlockId}": {
24404
+ "get": {
24405
+ "operationId": "getSyncedBlock",
24406
+ "summary": "Get a synced block by its ID",
24407
+ "tags": [
24408
+ "organizations"
24409
+ ],
24410
+ "security": [
24411
+ {
24412
+ "user": []
24413
+ }
24414
+ ],
24415
+ "parameters": [
24416
+ {
24417
+ "$ref": "#/components/parameters/organizationId"
24418
+ },
24419
+ {
24420
+ "name": "syncedBlockId",
24421
+ "in": "path",
24422
+ "required": true,
24423
+ "description": "The unique id of a synced block",
24424
+ "schema": {
24425
+ "type": "string"
24426
+ }
24427
+ }
24428
+ ],
24429
+ "responses": {
24430
+ "200": {
24431
+ "description": "OK",
24432
+ "content": {
24433
+ "application/json": {
24434
+ "schema": {
24435
+ "$ref": "#/components/schemas/SyncedBlock"
24436
+ }
24437
+ }
24438
+ }
24439
+ },
24440
+ "default": {
24441
+ "$ref": "#/components/responses/UnexpectedError"
24442
+ }
24443
+ }
24444
+ }
24445
+ },
23072
24446
  "/orgs/{organizationId}/ask": {
23073
24447
  "post": {
23074
24448
  "operationId": "askInOrganization",
@@ -23149,6 +24523,37 @@
23149
24523
  }
23150
24524
  }
23151
24525
  },
24526
+ "/orgs/{organizationId}/ask/questions/stream": {
24527
+ "get": {
24528
+ "operationId": "streamRecommendedQuestionsInOrganization",
24529
+ "summary": "Stream a list of questions recommended to be asked in an organization.",
24530
+ "parameters": [
24531
+ {
24532
+ "$ref": "#/components/parameters/organizationId"
24533
+ }
24534
+ ],
24535
+ "security": [
24536
+ {
24537
+ "user": []
24538
+ }
24539
+ ],
24540
+ "responses": {
24541
+ "200": {
24542
+ "description": "OK",
24543
+ "content": {
24544
+ "text/event-stream": {
24545
+ "schema": {
24546
+ "$ref": "#/components/schemas/SearchAIRecommendedQuestionStream"
24547
+ }
24548
+ }
24549
+ }
24550
+ },
24551
+ "default": {
24552
+ "$ref": "#/components/responses/UnexpectedError"
24553
+ }
24554
+ }
24555
+ }
24556
+ },
23152
24557
  "/orgs/{organizationId}/ask/stream": {
23153
24558
  "get": {
23154
24559
  "operationId": "streamAskInOrganization",
@@ -23439,6 +24844,133 @@
23439
24844
  }
23440
24845
  }
23441
24846
  },
24847
+ "/orgs/{organizationId}/sites": {
24848
+ "get": {
24849
+ "operationId": "listSites",
24850
+ "summary": "List all the sites created in an organization",
24851
+ "tags": [
24852
+ "sites"
24853
+ ],
24854
+ "security": [
24855
+ {
24856
+ "user": []
24857
+ }
24858
+ ],
24859
+ "parameters": [
24860
+ {
24861
+ "$ref": "#/components/parameters/organizationId"
24862
+ },
24863
+ {
24864
+ "$ref": "#/components/parameters/listPage"
24865
+ },
24866
+ {
24867
+ "$ref": "#/components/parameters/listLimit"
24868
+ }
24869
+ ],
24870
+ "responses": {
24871
+ "200": {
24872
+ "description": "OK",
24873
+ "content": {
24874
+ "application/json": {
24875
+ "schema": {
24876
+ "allOf": [
24877
+ {
24878
+ "$ref": "#/components/schemas/List"
24879
+ },
24880
+ {
24881
+ "type": "object",
24882
+ "required": [
24883
+ "items"
24884
+ ],
24885
+ "properties": {
24886
+ "items": {
24887
+ "type": "array",
24888
+ "items": {
24889
+ "$ref": "#/components/schemas/Site"
24890
+ }
24891
+ }
24892
+ }
24893
+ }
24894
+ ]
24895
+ }
24896
+ }
24897
+ }
24898
+ },
24899
+ "default": {
24900
+ "$ref": "#/components/responses/UnexpectedError"
24901
+ }
24902
+ }
24903
+ },
24904
+ "post": {
24905
+ "operationId": "createSite",
24906
+ "summary": "Create a site in an organization",
24907
+ "tags": [
24908
+ "sites"
24909
+ ],
24910
+ "security": [
24911
+ {
24912
+ "user": []
24913
+ }
24914
+ ],
24915
+ "parameters": [
24916
+ {
24917
+ "$ref": "#/components/parameters/organizationId"
24918
+ }
24919
+ ],
24920
+ "requestBody": {
24921
+ "required": true,
24922
+ "content": {
24923
+ "application/json": {
24924
+ "schema": {
24925
+ "type": "object",
24926
+ "properties": {
24927
+ "title": {
24928
+ "$ref": "#/components/schemas/SiteTitle"
24929
+ },
24930
+ "visibility": {
24931
+ "$ref": "#/components/schemas/SiteVisibility"
24932
+ },
24933
+ "spaces": {
24934
+ "type": "array",
24935
+ "description": "ID of spaces to be added to the site",
24936
+ "items": {
24937
+ "type": "string"
24938
+ }
24939
+ }
24940
+ },
24941
+ "required": [
24942
+ "title",
24943
+ "spaces"
24944
+ ]
24945
+ }
24946
+ }
24947
+ }
24948
+ },
24949
+ "responses": {
24950
+ "201": {
24951
+ "description": "Site created",
24952
+ "headers": {
24953
+ "Location": {
24954
+ "description": "API URL for the newly created site",
24955
+ "schema": {
24956
+ "type": "string"
24957
+ }
24958
+ }
24959
+ },
24960
+ "content": {
24961
+ "application/json": {
24962
+ "schema": {
24963
+ "$ref": "#/components/schemas/Site"
24964
+ }
24965
+ }
24966
+ }
24967
+ },
24968
+ "default": {
24969
+ "$ref": "#/components/responses/UnexpectedError"
24970
+ }
24971
+ }
24972
+ }
24973
+ },
23442
24974
  "/internal/hive/token": {
23443
24975
  "post": {
23444
24976
  "operationId": "generateHiveAccessToken",
@@ -23638,6 +25170,10 @@
23638
25170
  }
23639
25171
  }
23640
25172
  },
25173
+ "404": {
25174
+ "description": "No content found for the URL.",
25175
+ "$ref": "#/components/responses/NotFoundError"
25176
+ },
23641
25177
  "default": {
23642
25178
  "$ref": "#/components/responses/UnexpectedError"
23643
25179
  }