@gitbook/api 0.78.0 → 0.80.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
@@ -9172,73 +9172,6 @@
9172
9172
  }
9173
9173
  }
9174
9174
  },
9175
- "/orgs/{organizationId}/spaces/gitsync": {
9176
- "get": {
9177
- "operationId": "listSpacesWithGitSyncInOrganizationById",
9178
- "summary": "List organization spaces including Git sync metadata",
9179
- "description": "Lists spaces including Git sync metadata for the specified organization.\n",
9180
- "tags": [
9181
- "organizations"
9182
- ],
9183
- "security": [
9184
- {
9185
- "user": []
9186
- }
9187
- ],
9188
- "parameters": [
9189
- {
9190
- "$ref": "#/components/parameters/organizationId"
9191
- },
9192
- {
9193
- "$ref": "#/components/parameters/listPage"
9194
- },
9195
- {
9196
- "$ref": "#/components/parameters/listLimit"
9197
- },
9198
- {
9199
- "name": "status",
9200
- "in": "query",
9201
- "description": "If defined, only spaces with matching Git sync status are returned",
9202
- "schema": {
9203
- "$ref": "#/components/schemas/GitSyncOperationState"
9204
- }
9205
- }
9206
- ],
9207
- "responses": {
9208
- "200": {
9209
- "description": "OK",
9210
- "content": {
9211
- "application/json": {
9212
- "schema": {
9213
- "allOf": [
9214
- {
9215
- "$ref": "#/components/schemas/List"
9216
- },
9217
- {
9218
- "type": "object",
9219
- "required": [
9220
- "items"
9221
- ],
9222
- "properties": {
9223
- "items": {
9224
- "type": "array",
9225
- "items": {
9226
- "$ref": "#/components/schemas/SpaceWithGitSync"
9227
- }
9228
- }
9229
- }
9230
- }
9231
- ]
9232
- }
9233
- }
9234
- }
9235
- },
9236
- "default": {
9237
- "$ref": "#/components/responses/UnexpectedError"
9238
- }
9239
- }
9240
- }
9241
- },
9242
9175
  "/orgs/{organizationId}/collections": {
9243
9176
  "get": {
9244
9177
  "operationId": "listCollectionsInOrganizationById",
@@ -10224,6 +10157,47 @@
10224
10157
  }
10225
10158
  }
10226
10159
  },
10160
+ "/orgs/{organizationId}/sso": {
10161
+ "get": {
10162
+ "operationId": "listSSOProviderLoginsInOrganization",
10163
+ "summary": "List organization SSO provider login information",
10164
+ "description": "Lists SSO login information configured for the specified organization.",
10165
+ "tags": [
10166
+ "organizations"
10167
+ ],
10168
+ "parameters": [
10169
+ {
10170
+ "$ref": "#/components/parameters/organizationId"
10171
+ }
10172
+ ],
10173
+ "responses": {
10174
+ "200": {
10175
+ "description": "OK",
10176
+ "content": {
10177
+ "application/json": {
10178
+ "schema": {
10179
+ "type": "object",
10180
+ "required": [
10181
+ "items"
10182
+ ],
10183
+ "properties": {
10184
+ "items": {
10185
+ "type": "array",
10186
+ "items": {
10187
+ "$ref": "#/components/schemas/OrganizationSSOProviderLogin"
10188
+ }
10189
+ }
10190
+ }
10191
+ }
10192
+ }
10193
+ }
10194
+ },
10195
+ "default": {
10196
+ "$ref": "#/components/responses/UnexpectedError"
10197
+ }
10198
+ }
10199
+ }
10200
+ },
10227
10201
  "/orgs/{organizationId}/usage": {
10228
10202
  "get": {
10229
10203
  "operationId": "getUsageForOrganizationById",
@@ -13167,76 +13141,92 @@
13167
13141
  "content": {
13168
13142
  "application/json": {
13169
13143
  "schema": {
13170
- "oneOf": [
13144
+ "allOf": [
13171
13145
  {
13172
13146
  "type": "object",
13173
- "properties": {
13174
- "mode": {
13175
- "description": "Search only in the site spaces provided",
13176
- "type": "string",
13177
- "enum": [
13178
- "specific"
13179
- ]
13180
- },
13181
- "siteSpaceIds": {
13182
- "type": "array",
13183
- "minLength": 1,
13184
- "items": {
13185
- "type": "string"
13186
- }
13187
- },
13188
- "query": {
13189
- "type": "string",
13190
- "maxLength": 512
13191
- }
13192
- },
13193
13147
  "required": [
13194
- "siteSpaceIds",
13195
13148
  "query"
13196
- ]
13197
- },
13198
- {
13199
- "type": "object",
13149
+ ],
13200
13150
  "properties": {
13201
- "mode": {
13202
- "description": "Search in the current site space and all section's defaults",
13203
- "type": "string",
13204
- "enum": [
13205
- "current"
13206
- ]
13207
- },
13208
- "siteSpaceId": {
13209
- "type": "string"
13210
- },
13211
13151
  "query": {
13212
13152
  "type": "string",
13213
13153
  "maxLength": 512
13214
13154
  }
13215
- },
13216
- "required": [
13217
- "mode",
13218
- "siteSpaceId",
13219
- "query"
13220
- ]
13155
+ }
13221
13156
  },
13222
13157
  {
13223
- "type": "object",
13224
- "properties": {
13225
- "mode": {
13226
- "description": "search in all site-spaces",
13227
- "type": "string",
13228
- "enum": [
13229
- "all"
13158
+ "oneOf": [
13159
+ {
13160
+ "type": "object",
13161
+ "required": [
13162
+ "scope"
13163
+ ],
13164
+ "properties": {
13165
+ "scope": {
13166
+ "description": "Define the scope of the search.",
13167
+ "$ref": "#/components/schemas/SiteSearchScope"
13168
+ }
13169
+ }
13170
+ },
13171
+ {
13172
+ "type": "object",
13173
+ "properties": {
13174
+ "mode": {
13175
+ "description": "Search only in the site spaces provided. Deprecated, use scope instead.",
13176
+ "deprecated": true,
13177
+ "type": "string",
13178
+ "enum": [
13179
+ "specific"
13180
+ ]
13181
+ },
13182
+ "siteSpaceIds": {
13183
+ "type": "array",
13184
+ "minLength": 1,
13185
+ "items": {
13186
+ "type": "string"
13187
+ }
13188
+ }
13189
+ },
13190
+ "required": [
13191
+ "siteSpaceIds"
13230
13192
  ]
13231
13193
  },
13232
- "query": {
13233
- "type": "string",
13234
- "maxLength": 512
13194
+ {
13195
+ "type": "object",
13196
+ "properties": {
13197
+ "mode": {
13198
+ "description": "Search in the current site space and all section's defaults. Deprecated, use scope instead.",
13199
+ "deprecated": true,
13200
+ "type": "string",
13201
+ "enum": [
13202
+ "current"
13203
+ ]
13204
+ },
13205
+ "siteSpaceId": {
13206
+ "type": "string"
13207
+ }
13208
+ },
13209
+ "required": [
13210
+ "mode",
13211
+ "siteSpaceId"
13212
+ ]
13213
+ },
13214
+ {
13215
+ "type": "object",
13216
+ "properties": {
13217
+ "mode": {
13218
+ "description": "Search in all site-spaces. Deprecated, use scope instead.",
13219
+ "deprecated": true,
13220
+ "type": "string",
13221
+ "enum": [
13222
+ "all"
13223
+ ]
13224
+ }
13225
+ },
13226
+ "required": [
13227
+ "mode"
13228
+ ]
13235
13229
  }
13236
- },
13237
- "required": [
13238
- "mode",
13239
- "query"
13240
13230
  ]
13241
13231
  }
13242
13232
  ]
@@ -13279,6 +13269,66 @@
13279
13269
  }
13280
13270
  }
13281
13271
  },
13272
+ "/orgs/{organizationId}/sites/{siteId}/ask": {
13273
+ "post": {
13274
+ "operationId": "streamAskInSite",
13275
+ "summary": "Ask a question in a site. The response is streamed.",
13276
+ "security": [
13277
+ {
13278
+ "user": []
13279
+ }
13280
+ ],
13281
+ "parameters": [
13282
+ {
13283
+ "$ref": "#/components/parameters/organizationId"
13284
+ },
13285
+ {
13286
+ "$ref": "#/components/parameters/siteId"
13287
+ },
13288
+ {
13289
+ "$ref": "#/components/parameters/documentFormat"
13290
+ }
13291
+ ],
13292
+ "requestBody": {
13293
+ "required": true,
13294
+ "content": {
13295
+ "application/json": {
13296
+ "schema": {
13297
+ "type": "object",
13298
+ "required": [
13299
+ "question",
13300
+ "scope"
13301
+ ],
13302
+ "properties": {
13303
+ "question": {
13304
+ "type": "string",
13305
+ "maxLength": 512
13306
+ },
13307
+ "scope": {
13308
+ "$ref": "#/components/schemas/SiteSearchScope"
13309
+ }
13310
+ }
13311
+ }
13312
+ }
13313
+ }
13314
+ },
13315
+ "responses": {
13316
+ "200": {
13317
+ "description": "OK",
13318
+ "content": {
13319
+ "text/event-stream": {
13320
+ "schema": {
13321
+ "$ref": "#/components/schemas/SearchAIAnswerStream"
13322
+ }
13323
+ }
13324
+ }
13325
+ },
13326
+ "default": {
13327
+ "$ref": "#/components/responses/UnexpectedError"
13328
+ }
13329
+ }
13330
+ }
13331
+ },
13282
13332
  "/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}": {
13283
13333
  "patch": {
13284
13334
  "operationId": "updateSiteSpaceById",
@@ -13473,6 +13523,21 @@
13473
13523
  }
13474
13524
  ]
13475
13525
  },
13526
+ "tint": {
13527
+ "description": "The tint will colour the site’s UI beyond links and buttons, such as header, sidebar and background. By default, the tint colour is the same as your Primary colour, but you can set a custom one too.",
13528
+ "oneOf": [
13529
+ {
13530
+ "$ref": "#/components/schemas/CustomizationTint"
13531
+ },
13532
+ {
13533
+ "type": "string",
13534
+ "nullable": true,
13535
+ "enum": [
13536
+ null
13537
+ ]
13538
+ }
13539
+ ]
13540
+ },
13476
13541
  "corners": {
13477
13542
  "description": "The style of the corners to use. Set to null to reset the override.",
13478
13543
  "oneOf": [
@@ -13659,7 +13724,7 @@
13659
13724
  "description": "The links that are displayed in the header. Set to null to reset the override.",
13660
13725
  "nullable": true,
13661
13726
  "items": {
13662
- "$ref": "#/components/schemas/CustomizationHeaderLink"
13727
+ "$ref": "#/components/schemas/CustomizationHeaderItem"
13663
13728
  }
13664
13729
  }
13665
13730
  }
@@ -19431,46 +19496,24 @@
19431
19496
  "type": "string",
19432
19497
  "format": "uri"
19433
19498
  },
19434
- "GitSyncOperationState": {
19499
+ "GitSyncProvider": {
19435
19500
  "type": "string",
19436
- "description": "* `running`: The operation is still running\n* `failure`: The operation failed\n* `success`: The operation was successful\n",
19501
+ "description": "The provider of the Git Sync installation.",
19437
19502
  "enum": [
19438
- "running",
19439
- "failure",
19440
- "success"
19503
+ "github",
19504
+ "gitlab",
19505
+ "github-legacy"
19441
19506
  ]
19442
19507
  },
19443
- "GitSyncOperation": {
19508
+ "GitSyncState": {
19444
19509
  "type": "object",
19445
19510
  "properties": {
19446
- "state": {
19447
- "$ref": "#/components/schemas/GitSyncOperationState"
19511
+ "installationProvider": {
19512
+ "$ref": "#/components/schemas/GitSyncProvider"
19448
19513
  },
19449
- "startedAt": {
19450
- "$ref": "#/components/schemas/Timestamp"
19451
- },
19452
- "completedAt": {
19453
- "description": "Date when the operation was successful (when state is `success`)",
19454
- "$ref": "#/components/schemas/Timestamp"
19455
- },
19456
- "error": {
19457
- "type": "string",
19458
- "description": "Error details, defined if state is `failure`."
19459
- }
19460
- },
19461
- "required": [
19462
- "state"
19463
- ]
19464
- },
19465
- "GitSyncState": {
19466
- "type": "object",
19467
- "properties": {
19468
- "installationProvider": {
19514
+ "integration": {
19469
19515
  "type": "string",
19470
- "description": "The provider of the Git Sync installation."
19471
- },
19472
- "operation": {
19473
- "$ref": "#/components/schemas/GitSyncOperation"
19516
+ "description": "The integration name providing the Git Sync."
19474
19517
  },
19475
19518
  "url": {
19476
19519
  "type": "string",
@@ -19672,10 +19715,30 @@
19672
19715
  "defaultLevel": {
19673
19716
  "$ref": "#/components/schemas/DefaultLevel"
19674
19717
  },
19718
+ "comments": {
19719
+ "type": "number",
19720
+ "description": "Count of opened comments on the space."
19721
+ },
19722
+ "changeRequests": {
19723
+ "type": "number",
19724
+ "description": "Total count of change requests on the space."
19725
+ },
19726
+ "changeRequestsOpen": {
19727
+ "type": "number",
19728
+ "description": "Count of open change requests on the space."
19729
+ },
19730
+ "changeRequestsDraft": {
19731
+ "type": "number",
19732
+ "description": "Count of draft change requests on the space."
19733
+ },
19675
19734
  "permissions": {
19676
19735
  "type": "object",
19677
19736
  "description": "The set of permissions for the space",
19678
19737
  "properties": {
19738
+ "access": {
19739
+ "type": "boolean",
19740
+ "description": "Can the user access the space in the application."
19741
+ },
19679
19742
  "admin": {
19680
19743
  "type": "boolean",
19681
19744
  "description": "Can the user edit the title, install integrations, and manage the space."
@@ -19683,11 +19746,27 @@
19683
19746
  "edit": {
19684
19747
  "type": "boolean",
19685
19748
  "description": "Can the user edit the content of the space by creating a change request."
19749
+ },
19750
+ "comment": {
19751
+ "type": "boolean",
19752
+ "description": "Can the user comment on the content."
19753
+ },
19754
+ "merge": {
19755
+ "type": "boolean",
19756
+ "description": "Can the user merge change requests."
19757
+ },
19758
+ "review": {
19759
+ "type": "boolean",
19760
+ "description": "Can the user review change requests."
19686
19761
  }
19687
19762
  },
19688
19763
  "required": [
19764
+ "access",
19689
19765
  "admin",
19690
- "edit"
19766
+ "edit",
19767
+ "comment",
19768
+ "merge",
19769
+ "review"
19691
19770
  ]
19692
19771
  }
19693
19772
  },
@@ -19702,6 +19781,10 @@
19702
19781
  "revision",
19703
19782
  "createdAt",
19704
19783
  "updatedAt",
19784
+ "comments",
19785
+ "changeRequests",
19786
+ "changeRequestsOpen",
19787
+ "changeRequestsDraft",
19705
19788
  "urls",
19706
19789
  "defaultLevel",
19707
19790
  "permissions"
@@ -21288,6 +21371,7 @@
21288
21371
  "plus_2024",
21289
21372
  "pro_2024",
21290
21373
  "enterprise_2024",
21374
+ "community_2024",
21291
21375
  "free",
21292
21376
  "plus",
21293
21377
  "pro",
@@ -21344,7 +21428,7 @@
21344
21428
  "$ref": "#/components/schemas/OrganizationDefaultContent"
21345
21429
  },
21346
21430
  "sso": {
21347
- "description": "Whether SSO is enforced organization wide",
21431
+ "description": "Whether SSO is enforced organization-wide",
21348
21432
  "type": "boolean"
21349
21433
  },
21350
21434
  "ai": {
@@ -21381,6 +21465,24 @@
21381
21465
  "app",
21382
21466
  "location"
21383
21467
  ]
21468
+ },
21469
+ "permissions": {
21470
+ "type": "object",
21471
+ "description": "The set of permissions for the organization",
21472
+ "properties": {
21473
+ "admin": {
21474
+ "type": "boolean",
21475
+ "description": "Can the user manage the title, members, etc."
21476
+ },
21477
+ "createContent": {
21478
+ "type": "boolean",
21479
+ "description": "Can the user create new spaces/collections in the organization"
21480
+ }
21481
+ },
21482
+ "required": [
21483
+ "admin",
21484
+ "createContent"
21485
+ ]
21384
21486
  }
21385
21487
  },
21386
21488
  "required": [
@@ -21392,7 +21494,8 @@
21392
21494
  "inviteLinks",
21393
21495
  "type",
21394
21496
  "emailDomains",
21395
- "urls"
21497
+ "urls",
21498
+ "permissions"
21396
21499
  ]
21397
21500
  },
21398
21501
  "ContentLocationRevisionContext": {
@@ -23802,30 +23905,45 @@
23802
23905
  "to"
23803
23906
  ]
23804
23907
  },
23805
- "CustomizationHeaderLink": {
23806
- "allOf": [
23807
- {
23808
- "$ref": "#/components/schemas/CustomizationContentLink"
23908
+ "CustomizationHeaderItem": {
23909
+ "type": "object",
23910
+ "properties": {
23911
+ "title": {
23912
+ "type": "string"
23809
23913
  },
23810
- {
23811
- "type": "object",
23812
- "properties": {
23813
- "style": {
23914
+ "style": {
23915
+ "type": "string",
23916
+ "enum": [
23917
+ "link",
23918
+ "button-primary",
23919
+ "button-secondary"
23920
+ ]
23921
+ },
23922
+ "to": {
23923
+ "oneOf": [
23924
+ {
23925
+ "$ref": "#/components/schemas/ContentRef"
23926
+ },
23927
+ {
23814
23928
  "type": "string",
23929
+ "nullable": true,
23815
23930
  "enum": [
23816
- "link",
23817
- "button-primary",
23818
- "button-secondary"
23931
+ null
23819
23932
  ]
23820
- },
23821
- "links": {
23822
- "type": "array",
23823
- "items": {
23824
- "$ref": "#/components/schemas/CustomizationContentLink"
23825
- }
23826
23933
  }
23934
+ ]
23935
+ },
23936
+ "links": {
23937
+ "type": "array",
23938
+ "items": {
23939
+ "$ref": "#/components/schemas/CustomizationContentLink"
23827
23940
  }
23828
23941
  }
23942
+ },
23943
+ "required": [
23944
+ "title",
23945
+ "links",
23946
+ "to"
23829
23947
  ]
23830
23948
  },
23831
23949
  "CustomizationFooterGroup": {
@@ -23951,7 +24069,7 @@
23951
24069
  "links": {
23952
24070
  "type": "array",
23953
24071
  "items": {
23954
- "$ref": "#/components/schemas/CustomizationHeaderLink"
24072
+ "$ref": "#/components/schemas/CustomizationHeaderItem"
23955
24073
  }
23956
24074
  }
23957
24075
  },
@@ -27648,11 +27766,19 @@
27648
27766
  }
27649
27767
  ]
27650
27768
  }
27769
+ },
27770
+ "deletedSpaces": {
27771
+ "description": "List of soft-deleted spaces.",
27772
+ "type": "array",
27773
+ "items": {
27774
+ "$ref": "#/components/schemas/OrganizationAllSpace"
27775
+ }
27651
27776
  }
27652
27777
  },
27653
27778
  "required": [
27654
27779
  "sites",
27655
- "spaces"
27780
+ "spaces",
27781
+ "deletedSpaces"
27656
27782
  ]
27657
27783
  },
27658
27784
  "OrganizationMember": {
@@ -28286,21 +28412,6 @@
28286
28412
  }
28287
28413
  }
28288
28414
  },
28289
- "SpaceWithGitSync": {
28290
- "type": "object",
28291
- "properties": {
28292
- "space": {
28293
- "$ref": "#/components/schemas/Space"
28294
- },
28295
- "gitSync": {
28296
- "deprecated": true,
28297
- "$ref": "#/components/schemas/GitSyncState"
28298
- }
28299
- },
28300
- "required": [
28301
- "space"
28302
- ]
28303
- },
28304
28415
  "OrganizationExperimentalFeature": {
28305
28416
  "type": "object",
28306
28417
  "properties": {
@@ -28432,6 +28543,28 @@
28432
28543
  "urls"
28433
28544
  ]
28434
28545
  },
28546
+ "OrganizationSSOProviderLogin": {
28547
+ "type": "object",
28548
+ "properties": {
28549
+ "id": {
28550
+ "type": "string",
28551
+ "description": "Unique identifier for the provider."
28552
+ },
28553
+ "label": {
28554
+ "$ref": "#/components/schemas/SAMLProviderLabel"
28555
+ },
28556
+ "startURL": {
28557
+ "type": "string",
28558
+ "description": "The starting login URL for the Identity Provider",
28559
+ "format": "uri"
28560
+ }
28561
+ },
28562
+ "required": [
28563
+ "id",
28564
+ "label",
28565
+ "startURL"
28566
+ ]
28567
+ },
28435
28568
  "OrganizationUsageSpaces": {
28436
28569
  "type": "object",
28437
28570
  "description": "Spaces usage metrics of an organization",
@@ -29103,6 +29236,17 @@
29103
29236
  }
29104
29237
  ]
29105
29238
  },
29239
+ "CustomizationTint": {
29240
+ "type": "object",
29241
+ "properties": {
29242
+ "color": {
29243
+ "$ref": "#/components/schemas/CustomizationThemedColor"
29244
+ }
29245
+ },
29246
+ "required": [
29247
+ "color"
29248
+ ]
29249
+ },
29106
29250
  "CustomizationIconsStyle": {
29107
29251
  "type": "string",
29108
29252
  "enum": [
@@ -29126,6 +29270,9 @@
29126
29270
  "primaryColor": {
29127
29271
  "$ref": "#/components/schemas/CustomizationThemedColor"
29128
29272
  },
29273
+ "tint": {
29274
+ "$ref": "#/components/schemas/CustomizationTint"
29275
+ },
29129
29276
  "corners": {
29130
29277
  "$ref": "#/components/schemas/CustomizationCorners"
29131
29278
  },
@@ -29207,7 +29354,7 @@
29207
29354
  "links": {
29208
29355
  "type": "array",
29209
29356
  "items": {
29210
- "$ref": "#/components/schemas/CustomizationHeaderLink"
29357
+ "$ref": "#/components/schemas/CustomizationHeaderItem"
29211
29358
  }
29212
29359
  }
29213
29360
  },
@@ -29556,6 +29703,69 @@
29556
29703
  }
29557
29704
  ]
29558
29705
  },
29706
+ "SiteSearchScope": {
29707
+ "oneOf": [
29708
+ {
29709
+ "type": "object",
29710
+ "required": [
29711
+ "mode"
29712
+ ],
29713
+ "properties": {
29714
+ "mode": {
29715
+ "description": "Search across all sections of a site, only including the default content of each section. This scope is wide and shallow. You may optionally specify a list of additional site spaces to search in alongside the default content.\n",
29716
+ "type": "string",
29717
+ "enum": [
29718
+ "default"
29719
+ ]
29720
+ },
29721
+ "includedSiteSpaces": {
29722
+ "type": "array",
29723
+ "items": {
29724
+ "type": "string"
29725
+ }
29726
+ }
29727
+ }
29728
+ },
29729
+ {
29730
+ "type": "object",
29731
+ "required": [
29732
+ "mode",
29733
+ "siteSpaceIds"
29734
+ ],
29735
+ "properties": {
29736
+ "mode": {
29737
+ "description": "Only search in the provided site spaces.",
29738
+ "type": "string",
29739
+ "enum": [
29740
+ "specific"
29741
+ ]
29742
+ },
29743
+ "siteSpaceIds": {
29744
+ "type": "array",
29745
+ "minLength": 1,
29746
+ "items": {
29747
+ "type": "string"
29748
+ }
29749
+ }
29750
+ }
29751
+ },
29752
+ {
29753
+ "type": "object",
29754
+ "required": [
29755
+ "mode"
29756
+ ],
29757
+ "properties": {
29758
+ "mode": {
29759
+ "description": "Search in all sections and site spaces. This scope is wide and deep.",
29760
+ "type": "string",
29761
+ "enum": [
29762
+ "all"
29763
+ ]
29764
+ }
29765
+ }
29766
+ }
29767
+ ]
29768
+ },
29559
29769
  "SiteSectionPointer": {
29560
29770
  "type": "object",
29561
29771
  "properties": {
@@ -29783,6 +29993,40 @@
29783
29993
  }
29784
29994
  }
29785
29995
  },
29996
+ "SearchInsightsIntervals": {
29997
+ "type": "object",
29998
+ "properties": {
29999
+ "values": {
30000
+ "type": "array",
30001
+ "items": {
30002
+ "type": "object",
30003
+ "required": [
30004
+ "date",
30005
+ "total",
30006
+ "queries"
30007
+ ],
30008
+ "properties": {
30009
+ "date": {
30010
+ "description": "The start date of this interval",
30011
+ "type": "string",
30012
+ "format": "date-time"
30013
+ },
30014
+ "total": {
30015
+ "description": "The total number of searches during the interval.",
30016
+ "type": "number"
30017
+ },
30018
+ "queries": {
30019
+ "description": "Top queries searched for this content.",
30020
+ "type": "array",
30021
+ "items": {
30022
+ "$ref": "#/components/schemas/AnalyticsSearchQuery"
30023
+ }
30024
+ }
30025
+ }
30026
+ }
30027
+ }
30028
+ }
30029
+ },
29786
30030
  "InsightsContentPage": {
29787
30031
  "type": "object",
29788
30032
  "description": "Page entry in the content insights.",
@@ -31020,6 +31264,22 @@
31020
31264
  "custom_fields_edited"
31021
31265
  ]
31022
31266
  },
31267
+ "GitSyncOperationState": {
31268
+ "type": "string",
31269
+ "description": "* `running`: The operation is still running\n* `failure`: The operation failed\n* `success`: The operation was successful\n",
31270
+ "enum": [
31271
+ "running",
31272
+ "failure",
31273
+ "success"
31274
+ ]
31275
+ },
31276
+ "GitSyncOperationDirection": {
31277
+ "type": "string",
31278
+ "enum": [
31279
+ "export",
31280
+ "import"
31281
+ ]
31282
+ },
31023
31283
  "GitSyncOperationStage": {
31024
31284
  "type": "string",
31025
31285
  "description": "Core stages of a Git Sync process. This is not exhaustive, but should cover\nthe important ones.\n- repo_fetch: Includes fetching the latest repository contents from remote provider.\n- config_check: Includes checking if the YAML config is valid, etc.\n- content_process: Includes processing of pages & files to be imported/exported.\n- finalize: Includes finalizing the sync process like creating the commit on git, or\ncreating a new revision.\n",
@@ -31030,6 +31290,51 @@
31030
31290
  "finalize"
31031
31291
  ]
31032
31292
  },
31293
+ "GitSyncOperation": {
31294
+ "type": "object",
31295
+ "properties": {
31296
+ "state": {
31297
+ "$ref": "#/components/schemas/GitSyncOperationState"
31298
+ },
31299
+ "direction": {
31300
+ "$ref": "#/components/schemas/GitSyncOperationDirection"
31301
+ },
31302
+ "stage": {
31303
+ "$ref": "#/components/schemas/GitSyncOperationStage"
31304
+ },
31305
+ "dispatchedTasks": {
31306
+ "type": "number"
31307
+ },
31308
+ "completedTasks": {
31309
+ "type": "number"
31310
+ },
31311
+ "startedAt": {
31312
+ "description": "Date when the operation was started",
31313
+ "$ref": "#/components/schemas/Timestamp"
31314
+ },
31315
+ "updatedAt": {
31316
+ "description": "Date when the operation was last updated",
31317
+ "$ref": "#/components/schemas/Timestamp"
31318
+ },
31319
+ "completedAt": {
31320
+ "description": "Date when the operation was successful (when state is `success`)",
31321
+ "$ref": "#/components/schemas/Timestamp"
31322
+ },
31323
+ "error": {
31324
+ "type": "string",
31325
+ "description": "Error details, defined if state is `failure`."
31326
+ }
31327
+ },
31328
+ "required": [
31329
+ "state",
31330
+ "direction",
31331
+ "stage",
31332
+ "dispatchedTasks",
31333
+ "completedTasks",
31334
+ "startedAt",
31335
+ "updatedAt"
31336
+ ]
31337
+ },
31033
31338
  "OrganizationTransferResponse": {
31034
31339
  "type": "object",
31035
31340
  "required": [
@@ -31252,8 +31557,7 @@
31252
31557
  },
31253
31558
  "required": [
31254
31559
  "organization",
31255
- "spaces",
31256
- "claims"
31560
+ "spaces"
31257
31561
  ]
31258
31562
  },
31259
31563
  "SpaceAPIToken": {
@@ -32009,6 +32313,25 @@
32009
32313
  "organization"
32010
32314
  ]
32011
32315
  },
32316
+ "OrganizationAIIndexationChannel": {
32317
+ "type": "object",
32318
+ "description": "Channel for messages everytime a space is indexed by the AI in an organization",
32319
+ "properties": {
32320
+ "channel": {
32321
+ "type": "string",
32322
+ "enum": [
32323
+ "organization-ai-indexation"
32324
+ ]
32325
+ },
32326
+ "organization": {
32327
+ "type": "string"
32328
+ }
32329
+ },
32330
+ "required": [
32331
+ "channel",
32332
+ "organization"
32333
+ ]
32334
+ },
32012
32335
  "SpaceCommentsChannel": {
32013
32336
  "type": "object",
32014
32337
  "properties": {
@@ -32648,6 +32971,9 @@
32648
32971
  {
32649
32972
  "$ref": "#/components/schemas/OrganizationExperimentalFeaturesChannel"
32650
32973
  },
32974
+ {
32975
+ "$ref": "#/components/schemas/OrganizationAIIndexationChannel"
32976
+ },
32651
32977
  {
32652
32978
  "$ref": "#/components/schemas/SpaceCommentsChannel"
32653
32979
  },
@@ -32741,41 +33067,7 @@
32741
33067
  ]
32742
33068
  },
32743
33069
  "data": {
32744
- "type": "object",
32745
- "nullable": true,
32746
- "description": "Data passed on the channel messages for GitSync running in a space.",
32747
- "properties": {
32748
- "direction": {
32749
- "type": "string",
32750
- "enum": [
32751
- "export",
32752
- "import"
32753
- ]
32754
- },
32755
- "stage": {
32756
- "$ref": "#/components/schemas/GitSyncOperationStage"
32757
- },
32758
- "dispatchedTasks": {
32759
- "type": "number"
32760
- },
32761
- "completedTasks": {
32762
- "type": "number"
32763
- },
32764
- "startedAt": {
32765
- "type": "number"
32766
- },
32767
- "updatedAt": {
32768
- "type": "number"
32769
- }
32770
- },
32771
- "required": [
32772
- "direction",
32773
- "stage",
32774
- "dispatchedTasks",
32775
- "completedTasks",
32776
- "startedAt",
32777
- "updatedAt"
32778
- ]
33070
+ "$ref": "#/components/schemas/GitSyncOperation"
32779
33071
  }
32780
33072
  },
32781
33073
  "required": [
@@ -32847,6 +33139,33 @@
32847
33139
  "data"
32848
33140
  ]
32849
33141
  },
33142
+ "OrganizationAIIndexationChannelData": {
33143
+ "type": "object",
33144
+ "properties": {
33145
+ "channel": {
33146
+ "type": "string",
33147
+ "enum": [
33148
+ "organization-ai-indexation"
33149
+ ]
33150
+ },
33151
+ "data": {
33152
+ "type": "object",
33153
+ "properties": {
33154
+ "space": {
33155
+ "type": "string",
33156
+ "description": "The space that was indexed"
33157
+ }
33158
+ },
33159
+ "required": [
33160
+ "space"
33161
+ ]
33162
+ }
33163
+ },
33164
+ "required": [
33165
+ "channel",
33166
+ "data"
33167
+ ]
33168
+ },
32850
33169
  "APIChannelMutationData": {
32851
33170
  "type": "object",
32852
33171
  "properties": {
@@ -32887,6 +33206,9 @@
32887
33206
  {
32888
33207
  "$ref": "#/components/schemas/ChangeRequestContentRefsChannelData"
32889
33208
  },
33209
+ {
33210
+ "$ref": "#/components/schemas/OrganizationAIIndexationChannelData"
33211
+ },
32890
33212
  {
32891
33213
  "$ref": "#/components/schemas/APIChannelMutationData"
32892
33214
  }