@gitbook/api 0.177.0 → 0.179.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
@@ -9130,6 +9130,24 @@
9130
9130
  },
9131
9131
  "description": "If defined, only change requests with a requested reviewer for this user will be returned."
9132
9132
  },
9133
+ {
9134
+ "name": "site",
9135
+ "in": "query",
9136
+ "required": false,
9137
+ "schema": {
9138
+ "type": "string"
9139
+ },
9140
+ "description": "If defined, only change requests linked to this site will be returned."
9141
+ },
9142
+ {
9143
+ "name": "space",
9144
+ "in": "query",
9145
+ "required": false,
9146
+ "schema": {
9147
+ "type": "string"
9148
+ },
9149
+ "description": "If defined, only change requests from this space will be returned."
9150
+ },
9133
9151
  {
9134
9152
  "name": "topic",
9135
9153
  "in": "query",
@@ -13717,6 +13735,9 @@
13717
13735
  },
13718
13736
  "scope": {
13719
13737
  "$ref": "#/components/schemas/SiteSearchScope"
13738
+ },
13739
+ "session": {
13740
+ "$ref": "#/components/schemas/SiteInsightsSession"
13720
13741
  }
13721
13742
  }
13722
13743
  }
@@ -19031,6 +19052,351 @@
19031
19052
  }
19032
19053
  }
19033
19054
  }
19055
+ },
19056
+ "/git/installations": {
19057
+ "post": {
19058
+ "operationId": "installGitSyncProviderOnTarget",
19059
+ "summary": "Install a Git Sync provider on a target",
19060
+ "tags": [
19061
+ "git"
19062
+ ],
19063
+ "security": [
19064
+ {
19065
+ "user": []
19066
+ }
19067
+ ],
19068
+ "requestBody": {
19069
+ "required": true,
19070
+ "content": {
19071
+ "application/json": {
19072
+ "schema": {
19073
+ "type": "object",
19074
+ "properties": {
19075
+ "provider": {
19076
+ "$ref": "#/components/schemas/GitSyncInstallationProvider"
19077
+ },
19078
+ "target": {
19079
+ "$ref": "#/components/schemas/GitSyncInstallationTarget"
19080
+ }
19081
+ },
19082
+ "required": [
19083
+ "provider",
19084
+ "target"
19085
+ ]
19086
+ }
19087
+ }
19088
+ }
19089
+ },
19090
+ "responses": {
19091
+ "201": {
19092
+ "description": "Git Sync installation was created successfully",
19093
+ "content": {
19094
+ "application/json": {
19095
+ "schema": {
19096
+ "$ref": "#/components/schemas/GitSyncInstallation"
19097
+ }
19098
+ }
19099
+ }
19100
+ },
19101
+ "404": {
19102
+ "$ref": "#/components/responses/NotFoundError"
19103
+ },
19104
+ "409": {
19105
+ "$ref": "#/components/responses/ConflictError"
19106
+ }
19107
+ }
19108
+ }
19109
+ },
19110
+ "/git/installations/{installationId}": {
19111
+ "patch": {
19112
+ "operationId": "updateGitSyncInstallationById",
19113
+ "summary": "Update a Git Sync installation configuration",
19114
+ "tags": [
19115
+ "git"
19116
+ ],
19117
+ "security": [
19118
+ {
19119
+ "user": []
19120
+ }
19121
+ ],
19122
+ "parameters": [
19123
+ {
19124
+ "$ref": "#/components/parameters/installationId"
19125
+ }
19126
+ ],
19127
+ "requestBody": {
19128
+ "required": true,
19129
+ "content": {
19130
+ "application/json": {
19131
+ "schema": {
19132
+ "$ref": "#/components/schemas/GitSyncInstallationSetup"
19133
+ }
19134
+ }
19135
+ }
19136
+ },
19137
+ "responses": {
19138
+ "200": {
19139
+ "description": "Git Sync installation was updated successfully",
19140
+ "content": {
19141
+ "application/json": {
19142
+ "schema": {
19143
+ "$ref": "#/components/schemas/GitSyncInstallation"
19144
+ }
19145
+ }
19146
+ }
19147
+ },
19148
+ "401": {
19149
+ "$ref": "#/components/responses/UnauthorizedError"
19150
+ },
19151
+ "404": {
19152
+ "$ref": "#/components/responses/NotFoundError"
19153
+ },
19154
+ "409": {
19155
+ "$ref": "#/components/responses/ConflictError"
19156
+ }
19157
+ }
19158
+ },
19159
+ "delete": {
19160
+ "operationId": "uninstallGitSyncInstallation",
19161
+ "summary": "Uninstall a Git Sync installation",
19162
+ "tags": [
19163
+ "git"
19164
+ ],
19165
+ "security": [
19166
+ {
19167
+ "user": []
19168
+ }
19169
+ ],
19170
+ "parameters": [
19171
+ {
19172
+ "$ref": "#/components/parameters/installationId"
19173
+ }
19174
+ ],
19175
+ "responses": {
19176
+ "205": {
19177
+ "description": "Git Sync installation was removed successfully"
19178
+ },
19179
+ "404": {
19180
+ "$ref": "#/components/responses/NotFoundError"
19181
+ }
19182
+ }
19183
+ }
19184
+ },
19185
+ "/git/installations/{installationId}/github/repos": {
19186
+ "get": {
19187
+ "operationId": "listGitHubRepositoriesForGitSyncInstallation",
19188
+ "summary": "List GitHub repositories available for a Git Sync installation",
19189
+ "tags": [
19190
+ "git"
19191
+ ],
19192
+ "security": [
19193
+ {
19194
+ "user": []
19195
+ }
19196
+ ],
19197
+ "parameters": [
19198
+ {
19199
+ "$ref": "#/components/parameters/installationId"
19200
+ }
19201
+ ],
19202
+ "responses": {
19203
+ "200": {
19204
+ "description": "GitHub repositories available for the Git Sync installation",
19205
+ "content": {
19206
+ "application/json": {
19207
+ "schema": {
19208
+ "type": "object",
19209
+ "properties": {
19210
+ "items": {
19211
+ "type": "array",
19212
+ "items": {
19213
+ "$ref": "#/components/schemas/GitSyncGitHubRepository"
19214
+ }
19215
+ }
19216
+ },
19217
+ "required": [
19218
+ "items"
19219
+ ]
19220
+ }
19221
+ }
19222
+ }
19223
+ },
19224
+ "401": {
19225
+ "$ref": "#/components/responses/UnauthorizedError"
19226
+ },
19227
+ "404": {
19228
+ "$ref": "#/components/responses/NotFoundError"
19229
+ }
19230
+ }
19231
+ }
19232
+ },
19233
+ "/git/installations/{installationId}/github/repos/{accountName}/{repositoryName}/branches": {
19234
+ "get": {
19235
+ "operationId": "listGitHubRepoBranchesForGitSyncInstallation",
19236
+ "summary": "List GitHub repository branches available for a Git Sync installation",
19237
+ "tags": [
19238
+ "git"
19239
+ ],
19240
+ "security": [
19241
+ {
19242
+ "user": []
19243
+ }
19244
+ ],
19245
+ "parameters": [
19246
+ {
19247
+ "$ref": "#/components/parameters/installationId"
19248
+ },
19249
+ {
19250
+ "name": "accountName",
19251
+ "in": "path",
19252
+ "required": true,
19253
+ "schema": {
19254
+ "type": "string"
19255
+ }
19256
+ },
19257
+ {
19258
+ "name": "repositoryName",
19259
+ "in": "path",
19260
+ "required": true,
19261
+ "schema": {
19262
+ "type": "string"
19263
+ }
19264
+ }
19265
+ ],
19266
+ "responses": {
19267
+ "200": {
19268
+ "description": "GitHub branches available for the selected repository",
19269
+ "content": {
19270
+ "application/json": {
19271
+ "schema": {
19272
+ "type": "object",
19273
+ "properties": {
19274
+ "items": {
19275
+ "type": "array",
19276
+ "items": {
19277
+ "$ref": "#/components/schemas/GitSyncBranch"
19278
+ }
19279
+ }
19280
+ },
19281
+ "required": [
19282
+ "items"
19283
+ ]
19284
+ }
19285
+ }
19286
+ }
19287
+ },
19288
+ "401": {
19289
+ "$ref": "#/components/responses/UnauthorizedError"
19290
+ },
19291
+ "404": {
19292
+ "$ref": "#/components/responses/NotFoundError"
19293
+ }
19294
+ }
19295
+ }
19296
+ },
19297
+ "/git/installations/{installationId}/gitlab/projects": {
19298
+ "get": {
19299
+ "operationId": "listGitLabProjectsForGitSyncInstallation",
19300
+ "summary": "List GitLab projects available for a Git Sync installation",
19301
+ "tags": [
19302
+ "git"
19303
+ ],
19304
+ "security": [
19305
+ {
19306
+ "user": []
19307
+ }
19308
+ ],
19309
+ "parameters": [
19310
+ {
19311
+ "$ref": "#/components/parameters/installationId"
19312
+ }
19313
+ ],
19314
+ "responses": {
19315
+ "200": {
19316
+ "description": "GitLab projects available for the Git Sync installation",
19317
+ "content": {
19318
+ "application/json": {
19319
+ "schema": {
19320
+ "type": "object",
19321
+ "properties": {
19322
+ "items": {
19323
+ "type": "array",
19324
+ "items": {
19325
+ "$ref": "#/components/schemas/GitSyncGitLabProject"
19326
+ }
19327
+ }
19328
+ },
19329
+ "required": [
19330
+ "items"
19331
+ ]
19332
+ }
19333
+ }
19334
+ }
19335
+ },
19336
+ "401": {
19337
+ "$ref": "#/components/responses/UnauthorizedError"
19338
+ },
19339
+ "404": {
19340
+ "$ref": "#/components/responses/NotFoundError"
19341
+ }
19342
+ }
19343
+ }
19344
+ },
19345
+ "/git/installations/{installationId}/gitlab/projects/{projectId}/branches": {
19346
+ "get": {
19347
+ "operationId": "listGitLabProjectBranchesForGitSyncInstallation",
19348
+ "summary": "List GitLab project branches available for a Git Sync installation",
19349
+ "tags": [
19350
+ "git"
19351
+ ],
19352
+ "security": [
19353
+ {
19354
+ "user": []
19355
+ }
19356
+ ],
19357
+ "parameters": [
19358
+ {
19359
+ "$ref": "#/components/parameters/installationId"
19360
+ },
19361
+ {
19362
+ "name": "projectId",
19363
+ "in": "path",
19364
+ "required": true,
19365
+ "schema": {
19366
+ "type": "number"
19367
+ }
19368
+ }
19369
+ ],
19370
+ "responses": {
19371
+ "200": {
19372
+ "description": "GitLab branches available for the selected project",
19373
+ "content": {
19374
+ "application/json": {
19375
+ "schema": {
19376
+ "type": "object",
19377
+ "properties": {
19378
+ "items": {
19379
+ "type": "array",
19380
+ "items": {
19381
+ "$ref": "#/components/schemas/GitSyncBranch"
19382
+ }
19383
+ }
19384
+ },
19385
+ "required": [
19386
+ "items"
19387
+ ]
19388
+ }
19389
+ }
19390
+ }
19391
+ },
19392
+ "401": {
19393
+ "$ref": "#/components/responses/UnauthorizedError"
19394
+ },
19395
+ "404": {
19396
+ "$ref": "#/components/responses/NotFoundError"
19397
+ }
19398
+ }
19399
+ }
19034
19400
  }
19035
19401
  },
19036
19402
  "components": {
@@ -20136,6 +20502,7 @@
20136
20502
  "ru",
20137
20503
  "ja",
20138
20504
  "zh",
20505
+ "zh-tw",
20139
20506
  "yue",
20140
20507
  "ko",
20141
20508
  "ar",
@@ -21221,6 +21588,7 @@
21221
21588
  },
21222
21589
  "DocumentTextColor": {
21223
21590
  "type": "string",
21591
+ "description": "Allowed color tokens for color marks (text and background; background reuses this enum). Named colors are fixed palette keys. `$*` tokens are semantic: resolved from the published sites customization when rendering; authors may still persist them in content when valid.\n",
21224
21592
  "enum": [
21225
21593
  "default",
21226
21594
  "green",
@@ -21229,11 +21597,15 @@
21229
21597
  "orange",
21230
21598
  "yellow",
21231
21599
  "purple",
21600
+ "pink",
21601
+ "violet",
21602
+ "cyan",
21232
21603
  "$primary",
21233
21604
  "$info",
21234
21605
  "$success",
21235
21606
  "$warning",
21236
- "$danger"
21607
+ "$danger",
21608
+ "$tint"
21237
21609
  ]
21238
21610
  },
21239
21611
  "DocumentMarkColor": {
@@ -26950,10 +27322,19 @@
26950
27322
  "enum": [
26951
27323
  "computed"
26952
27324
  ]
27325
+ },
27326
+ "sourceRevision": {
27327
+ "type": "string",
27328
+ "description": "ID of the non-computed revision used to compute this revision."
27329
+ },
27330
+ "mergedFrom": {
27331
+ "description": "The change request the source revision was merged from, when the computed revision is derived from a merge revision.",
27332
+ "$ref": "#/components/schemas/ChangeRequest"
26953
27333
  }
26954
27334
  },
26955
27335
  "required": [
26956
- "type"
27336
+ "type",
27337
+ "sourceRevision"
26957
27338
  ]
26958
27339
  }
26959
27340
  ]
@@ -37763,6 +38144,24 @@
37763
38144
  "url"
37764
38145
  ]
37765
38146
  },
38147
+ "SiteInsightsSession": {
38148
+ "type": "object",
38149
+ "description": "Identifiers for a GitBook site session, used for analytics and adaptive content.",
38150
+ "properties": {
38151
+ "visitorId": {
38152
+ "type": "string",
38153
+ "description": "GitBook's unique identifier of the visitor."
38154
+ },
38155
+ "sessionId": {
38156
+ "type": "string",
38157
+ "description": "GitBook's unique identifier of the visitor's session."
38158
+ }
38159
+ },
38160
+ "required": [
38161
+ "visitorId",
38162
+ "sessionId"
38163
+ ]
38164
+ },
37766
38165
  "ContextRecordType": {
37767
38166
  "type": "string",
37768
38167
  "enum": [
@@ -39009,24 +39408,6 @@
39009
39408
  "high"
39010
39409
  ]
39011
39410
  },
39012
- "SiteInsightsSession": {
39013
- "type": "object",
39014
- "description": "Identifiers for a GitBook site session, used for analytics and adaptive content.",
39015
- "properties": {
39016
- "visitorId": {
39017
- "type": "string",
39018
- "description": "GitBook's unique identifier of the visitor."
39019
- },
39020
- "sessionId": {
39021
- "type": "string",
39022
- "description": "GitBook's unique identifier of the visitor's session."
39023
- }
39024
- },
39025
- "required": [
39026
- "visitorId",
39027
- "sessionId"
39028
- ]
39029
- },
39030
39411
  "SiteCoreChannelType": {
39031
39412
  "type": "string",
39032
39413
  "enum": [
@@ -40561,6 +40942,44 @@
40561
40942
  "spaceId",
40562
40943
  "pageId"
40563
40944
  ]
40945
+ },
40946
+ "selection": {
40947
+ "type": "object",
40948
+ "description": "Range of the current selection in a document.",
40949
+ "properties": {
40950
+ "anchorKey": {
40951
+ "oneOf": [
40952
+ {
40953
+ "type": "string"
40954
+ },
40955
+ {
40956
+ "type": "null"
40957
+ }
40958
+ ]
40959
+ },
40960
+ "anchorOffset": {
40961
+ "type": "integer"
40962
+ },
40963
+ "focusKey": {
40964
+ "oneOf": [
40965
+ {
40966
+ "type": "string"
40967
+ },
40968
+ {
40969
+ "type": "null"
40970
+ }
40971
+ ]
40972
+ },
40973
+ "focusOffset": {
40974
+ "type": "integer"
40975
+ }
40976
+ },
40977
+ "required": [
40978
+ "anchorKey",
40979
+ "anchorOffset",
40980
+ "focusKey",
40981
+ "focusOffset"
40982
+ ]
40564
40983
  }
40565
40984
  }
40566
40985
  },
@@ -44524,6 +44943,31 @@
44524
44943
  "contents"
44525
44944
  ]
44526
44945
  },
44946
+ "SignedURL": {
44947
+ "type": "object",
44948
+ "properties": {
44949
+ "object": {
44950
+ "type": "string",
44951
+ "description": "The kind of signed URL",
44952
+ "enum": [
44953
+ "signed-url"
44954
+ ]
44955
+ },
44956
+ "url": {
44957
+ "$ref": "#/components/schemas/URL",
44958
+ "description": "Signed URL that can be opened by the browser"
44959
+ },
44960
+ "expiresAt": {
44961
+ "$ref": "#/components/schemas/Timestamp",
44962
+ "description": "Expiration time of the signed URL"
44963
+ }
44964
+ },
44965
+ "required": [
44966
+ "object",
44967
+ "url",
44968
+ "expiresAt"
44969
+ ]
44970
+ },
44527
44971
  "PurgeCDNCacheContext": {
44528
44972
  "type": "object",
44529
44973
  "description": "The context to send when purging the CDN Cache",
@@ -45058,6 +45502,274 @@
45058
45502
  }
45059
45503
  }
45060
45504
  },
45505
+ "GitSyncInstallationProvider": {
45506
+ "type": "string",
45507
+ "description": "The provider of the Git Sync installation.",
45508
+ "enum": [
45509
+ "github",
45510
+ "gitlab"
45511
+ ]
45512
+ },
45513
+ "GitSyncInstallationTarget": {
45514
+ "type": "object",
45515
+ "description": "Resource targeted by a Git Sync installation. Currently only spaces are supported.",
45516
+ "properties": {
45517
+ "spaceId": {
45518
+ "type": "string",
45519
+ "description": "Unique identifier of the space targeted by the Git Sync installation."
45520
+ }
45521
+ },
45522
+ "required": [
45523
+ "spaceId"
45524
+ ]
45525
+ },
45526
+ "GitSyncInstallationPriority": {
45527
+ "type": "string",
45528
+ "description": "Which side should be treated as the source of truth when Git Sync is configured.",
45529
+ "enum": [
45530
+ "git",
45531
+ "gitbook"
45532
+ ]
45533
+ },
45534
+ "GitSyncInstallationSetupCommon": {
45535
+ "type": "object",
45536
+ "description": "Common setup fields for a Git Sync installation.",
45537
+ "properties": {
45538
+ "projectDirectory": {
45539
+ "type": "string",
45540
+ "description": "Optional directory used when syncing a monorepo subdirectory."
45541
+ },
45542
+ "commitMessageTemplate": {
45543
+ "type": "string",
45544
+ "description": "Optional template used when generating commit messages."
45545
+ },
45546
+ "previewExternalBranches": {
45547
+ "type": "boolean",
45548
+ "default": false,
45549
+ "description": "Whether previews should be generated from branches outside the configured branch."
45550
+ },
45551
+ "priority": {
45552
+ "$ref": "#/components/schemas/GitSyncInstallationPriority"
45553
+ }
45554
+ }
45555
+ },
45556
+ "GitSyncInstallationSetupGitHub": {
45557
+ "allOf": [
45558
+ {
45559
+ "$ref": "#/components/schemas/GitSyncInstallationSetupCommon"
45560
+ },
45561
+ {
45562
+ "type": "object",
45563
+ "description": "GitHub provider configuration for a Git Sync installation.",
45564
+ "properties": {
45565
+ "provider": {
45566
+ "type": "string",
45567
+ "enum": [
45568
+ "github"
45569
+ ]
45570
+ },
45571
+ "providerConfiguration": {
45572
+ "type": "object",
45573
+ "description": "GitHub specific configuration for the Git Sync installation.",
45574
+ "properties": {
45575
+ "repositoryId": {
45576
+ "type": "number",
45577
+ "description": "GitHub repository identifier."
45578
+ },
45579
+ "branch": {
45580
+ "type": "string",
45581
+ "description": "GitHub repository branch."
45582
+ }
45583
+ }
45584
+ }
45585
+ },
45586
+ "required": [
45587
+ "provider",
45588
+ "providerConfiguration"
45589
+ ]
45590
+ }
45591
+ ]
45592
+ },
45593
+ "GitSyncInstallationSetupGitLab": {
45594
+ "allOf": [
45595
+ {
45596
+ "$ref": "#/components/schemas/GitSyncInstallationSetupCommon"
45597
+ },
45598
+ {
45599
+ "type": "object",
45600
+ "description": "GitLab provider configuration for a Git Sync installation.",
45601
+ "properties": {
45602
+ "provider": {
45603
+ "type": "string",
45604
+ "enum": [
45605
+ "gitlab"
45606
+ ]
45607
+ },
45608
+ "providerConfiguration": {
45609
+ "type": "object",
45610
+ "description": "GitLab specific configuration for the Git Sync installation.",
45611
+ "properties": {
45612
+ "projectId": {
45613
+ "type": "number",
45614
+ "description": "GitLab project identifier."
45615
+ },
45616
+ "accessToken": {
45617
+ "type": "string",
45618
+ "description": "GitLab access token with appropriate scopes for repository access."
45619
+ },
45620
+ "customInstanceURL": {
45621
+ "type": "string",
45622
+ "description": "Custom GitLab instance URL, if using a self-hosted GitLab."
45623
+ },
45624
+ "branch": {
45625
+ "type": "string",
45626
+ "description": "GitLab repository branch."
45627
+ }
45628
+ }
45629
+ }
45630
+ },
45631
+ "required": [
45632
+ "provider",
45633
+ "providerConfiguration"
45634
+ ]
45635
+ }
45636
+ ]
45637
+ },
45638
+ "GitSyncInstallationSetup": {
45639
+ "description": "Provider-specific setup payload for a Git Sync installation.",
45640
+ "oneOf": [
45641
+ {
45642
+ "$ref": "#/components/schemas/GitSyncInstallationSetupGitHub"
45643
+ },
45644
+ {
45645
+ "$ref": "#/components/schemas/GitSyncInstallationSetupGitLab"
45646
+ }
45647
+ ],
45648
+ "discriminator": {
45649
+ "propertyName": "provider"
45650
+ }
45651
+ },
45652
+ "GitSyncInstallation": {
45653
+ "allOf": [
45654
+ {
45655
+ "$ref": "#/components/schemas/GitSyncInstallationSetup"
45656
+ },
45657
+ {
45658
+ "type": "object",
45659
+ "properties": {
45660
+ "object": {
45661
+ "type": "string",
45662
+ "enum": [
45663
+ "git-sync-installation"
45664
+ ]
45665
+ },
45666
+ "id": {
45667
+ "type": "string",
45668
+ "description": "Unique identifier of the Git Sync installation."
45669
+ },
45670
+ "target": {
45671
+ "$ref": "#/components/schemas/GitSyncInstallationTarget"
45672
+ },
45673
+ "createdAt": {
45674
+ "$ref": "#/components/schemas/Timestamp"
45675
+ },
45676
+ "createdBy": {
45677
+ "type": "string",
45678
+ "description": "Identifier of the user who created the installation."
45679
+ },
45680
+ "updatedAt": {
45681
+ "$ref": "#/components/schemas/Timestamp"
45682
+ }
45683
+ },
45684
+ "required": [
45685
+ "object",
45686
+ "id",
45687
+ "target",
45688
+ "createdAt",
45689
+ "createdBy",
45690
+ "updatedAt"
45691
+ ]
45692
+ }
45693
+ ]
45694
+ },
45695
+ "GitSyncGitHubRepository": {
45696
+ "type": "object",
45697
+ "description": "GitHub repository that can be selected for Git Sync.",
45698
+ "properties": {
45699
+ "id": {
45700
+ "type": "number"
45701
+ },
45702
+ "accountName": {
45703
+ "type": "string"
45704
+ },
45705
+ "repositoryName": {
45706
+ "type": "string"
45707
+ },
45708
+ "fullName": {
45709
+ "type": "string"
45710
+ },
45711
+ "defaultBranch": {
45712
+ "type": [
45713
+ "string",
45714
+ "null"
45715
+ ]
45716
+ }
45717
+ },
45718
+ "required": [
45719
+ "id",
45720
+ "accountName",
45721
+ "repositoryName",
45722
+ "fullName",
45723
+ "defaultBranch"
45724
+ ]
45725
+ },
45726
+ "GitSyncBranch": {
45727
+ "type": "object",
45728
+ "description": "Branch that can be used for Git Sync.",
45729
+ "properties": {
45730
+ "name": {
45731
+ "type": "string"
45732
+ },
45733
+ "ref": {
45734
+ "type": "string"
45735
+ }
45736
+ },
45737
+ "required": [
45738
+ "name",
45739
+ "ref"
45740
+ ]
45741
+ },
45742
+ "GitSyncGitLabProject": {
45743
+ "type": "object",
45744
+ "description": "GitLab project that can be selected for Git Sync.",
45745
+ "properties": {
45746
+ "id": {
45747
+ "type": "number"
45748
+ },
45749
+ "accountName": {
45750
+ "type": "string"
45751
+ },
45752
+ "repositoryName": {
45753
+ "type": "string"
45754
+ },
45755
+ "fullName": {
45756
+ "type": "string"
45757
+ },
45758
+ "defaultBranch": {
45759
+ "type": [
45760
+ "string",
45761
+ "null"
45762
+ ]
45763
+ }
45764
+ },
45765
+ "required": [
45766
+ "id",
45767
+ "accountName",
45768
+ "repositoryName",
45769
+ "fullName",
45770
+ "defaultBranch"
45771
+ ]
45772
+ },
45061
45773
  "SHA256": {
45062
45774
  "type": "string",
45063
45775
  "minLength": 64,
@@ -48325,6 +49037,40 @@
48325
49037
  }
48326
49038
  }
48327
49039
  }
49040
+ },
49041
+ "UnauthorizedError": {
49042
+ "description": "Unauthorized",
49043
+ "content": {
49044
+ "application/json": {
49045
+ "schema": {
49046
+ "type": "object",
49047
+ "required": [
49048
+ "error"
49049
+ ],
49050
+ "properties": {
49051
+ "error": {
49052
+ "type": "object",
49053
+ "properties": {
49054
+ "code": {
49055
+ "type": "integer",
49056
+ "format": "int32",
49057
+ "enum": [
49058
+ 401
49059
+ ]
49060
+ },
49061
+ "message": {
49062
+ "type": "string"
49063
+ }
49064
+ },
49065
+ "required": [
49066
+ "code",
49067
+ "message"
49068
+ ]
49069
+ }
49070
+ }
49071
+ }
49072
+ }
49073
+ }
48328
49074
  }
48329
49075
  }
48330
49076
  }