@gitbook/api 0.25.0 → 0.27.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/dist/client.d.ts +114 -52
- package/dist/index.cjs +23 -4
- package/dist/index.d.ts +9 -0
- package/dist/index.js +20 -2
- package/package.json +1 -1
- package/spec/openapi.json +243 -53
- package/spec/openapi.yaml +170 -49
package/spec/openapi.yaml
CHANGED
|
@@ -280,12 +280,12 @@ components:
|
|
|
280
280
|
Color:
|
|
281
281
|
type: string
|
|
282
282
|
pattern: ^#(?:[0-9a-fA-F]{3}){1,2}$
|
|
283
|
-
|
|
283
|
+
Timestamp:
|
|
284
284
|
type: string
|
|
285
|
-
format: date
|
|
285
|
+
format: date-time
|
|
286
286
|
Emoji:
|
|
287
287
|
type: string
|
|
288
|
-
maxLength:
|
|
288
|
+
maxLength: 50
|
|
289
289
|
description: Unicode codepoint or character of the emoji
|
|
290
290
|
example: 🎉
|
|
291
291
|
EmojiReaction:
|
|
@@ -307,7 +307,7 @@ components:
|
|
|
307
307
|
user:
|
|
308
308
|
$ref: "#/components/schemas/User"
|
|
309
309
|
reactedAt:
|
|
310
|
-
$ref: "#/components/schemas/
|
|
310
|
+
$ref: "#/components/schemas/Timestamp"
|
|
311
311
|
required:
|
|
312
312
|
- user
|
|
313
313
|
- reactedAt
|
|
@@ -500,6 +500,10 @@ components:
|
|
|
500
500
|
repoProjectDirectory:
|
|
501
501
|
type: string
|
|
502
502
|
description: Path to a root directory for the project in the repository.
|
|
503
|
+
timestamp:
|
|
504
|
+
description: |
|
|
505
|
+
The timestamp of the event that triggered this import. It ensures that Git sync import and export operations are executed in the same order on GitBook and on the remote repository.
|
|
506
|
+
$ref: "#/components/schemas/Timestamp"
|
|
503
507
|
force:
|
|
504
508
|
type: boolean
|
|
505
509
|
standalone:
|
|
@@ -535,6 +539,10 @@ components:
|
|
|
535
539
|
repoProjectDirectory:
|
|
536
540
|
type: string
|
|
537
541
|
description: Path to a root directory for the project in the repository.
|
|
542
|
+
timestamp:
|
|
543
|
+
description: |
|
|
544
|
+
The timestamp of the event that triggered this export. It ensures that Git sync import and export operations are executed in the same order on GitBook and on the remote repository.
|
|
545
|
+
$ref: "#/components/schemas/Timestamp"
|
|
538
546
|
force:
|
|
539
547
|
type: boolean
|
|
540
548
|
gitInfo:
|
|
@@ -720,7 +728,7 @@ components:
|
|
|
720
728
|
type: string
|
|
721
729
|
description: The API token name.
|
|
722
730
|
createdAt:
|
|
723
|
-
$ref: "#/components/schemas/
|
|
731
|
+
$ref: "#/components/schemas/Timestamp"
|
|
724
732
|
description: The API token creation date.
|
|
725
733
|
required:
|
|
726
734
|
- id
|
|
@@ -773,7 +781,7 @@ components:
|
|
|
773
781
|
description: Contributor towards content.
|
|
774
782
|
properties:
|
|
775
783
|
updatedAt:
|
|
776
|
-
$ref: "#/components/schemas/
|
|
784
|
+
$ref: "#/components/schemas/Timestamp"
|
|
777
785
|
count:
|
|
778
786
|
type: integer
|
|
779
787
|
user:
|
|
@@ -870,10 +878,10 @@ components:
|
|
|
870
878
|
$ref: "#/components/schemas/User"
|
|
871
879
|
postedAt:
|
|
872
880
|
description: When the comment was posted.
|
|
873
|
-
$ref: "#/components/schemas/
|
|
881
|
+
$ref: "#/components/schemas/Timestamp"
|
|
874
882
|
editedAt:
|
|
875
883
|
description: Date when the comment was edited, if it has been edited.
|
|
876
|
-
$ref: "#/components/schemas/
|
|
884
|
+
$ref: "#/components/schemas/Timestamp"
|
|
877
885
|
reactions:
|
|
878
886
|
description: Any emoji reactions to the comment.
|
|
879
887
|
$ref: "#/components/schemas/EmojiReactions"
|
|
@@ -957,7 +965,7 @@ components:
|
|
|
957
965
|
- resolved
|
|
958
966
|
resolvedAt:
|
|
959
967
|
description: If the comment has been resolved, the date at which it was resolved. If this field is not defined, the comment is not resolved.
|
|
960
|
-
$ref: "#/components/schemas/
|
|
968
|
+
$ref: "#/components/schemas/Timestamp"
|
|
961
969
|
resolvedBy:
|
|
962
970
|
description: If the comment has been resolved, the user who resolved it. If this field is not defined, the comment is not resolved.
|
|
963
971
|
$ref: "#/components/schemas/User"
|
|
@@ -988,10 +996,10 @@ components:
|
|
|
988
996
|
postedBy:
|
|
989
997
|
$ref: "#/components/schemas/User"
|
|
990
998
|
postedAt:
|
|
991
|
-
$ref: "#/components/schemas/
|
|
999
|
+
$ref: "#/components/schemas/Timestamp"
|
|
992
1000
|
editedAt:
|
|
993
1001
|
description: Date when the reply was edited, if it has been edited.
|
|
994
|
-
$ref: "#/components/schemas/
|
|
1002
|
+
$ref: "#/components/schemas/Timestamp"
|
|
995
1003
|
reactions:
|
|
996
1004
|
$ref: "#/components/schemas/EmojiReactions"
|
|
997
1005
|
body:
|
|
@@ -2702,6 +2710,7 @@ components:
|
|
|
2702
2710
|
- $ref: "#/components/schemas/ContentRefUser"
|
|
2703
2711
|
- $ref: "#/components/schemas/ContentRefCollection"
|
|
2704
2712
|
- $ref: "#/components/schemas/ContentRefSpace"
|
|
2713
|
+
- $ref: "#/components/schemas/ContentRefSnippet"
|
|
2705
2714
|
ContentRefURL:
|
|
2706
2715
|
type: object
|
|
2707
2716
|
properties:
|
|
@@ -2795,6 +2804,21 @@ components:
|
|
|
2795
2804
|
required:
|
|
2796
2805
|
- kind
|
|
2797
2806
|
- space
|
|
2807
|
+
ContentRefSnippet:
|
|
2808
|
+
type: object
|
|
2809
|
+
properties:
|
|
2810
|
+
kind:
|
|
2811
|
+
type: string
|
|
2812
|
+
enum:
|
|
2813
|
+
- snippet
|
|
2814
|
+
snippet:
|
|
2815
|
+
type: string
|
|
2816
|
+
organization:
|
|
2817
|
+
type: string
|
|
2818
|
+
required:
|
|
2819
|
+
- kind
|
|
2820
|
+
- snippet
|
|
2821
|
+
- organization
|
|
2798
2822
|
Space:
|
|
2799
2823
|
type: object
|
|
2800
2824
|
properties:
|
|
@@ -2807,21 +2831,20 @@ components:
|
|
|
2807
2831
|
type: string
|
|
2808
2832
|
description: Unique identifier for the space
|
|
2809
2833
|
title:
|
|
2810
|
-
|
|
2811
|
-
description: Title of the space
|
|
2812
|
-
minLength: 0
|
|
2813
|
-
maxLength: 100
|
|
2834
|
+
$ref: "#/components/schemas/SpaceTitle"
|
|
2814
2835
|
emoji:
|
|
2815
2836
|
description: An emoji for this space. It'll match the emoji shown in the GitBook app.
|
|
2816
2837
|
$ref: "#/components/schemas/Emoji"
|
|
2817
2838
|
visibility:
|
|
2818
2839
|
$ref: "#/components/schemas/ContentVisibility"
|
|
2819
2840
|
createdAt:
|
|
2820
|
-
$ref: "#/components/schemas/
|
|
2841
|
+
$ref: "#/components/schemas/Timestamp"
|
|
2821
2842
|
updatedAt:
|
|
2822
|
-
$ref: "#/components/schemas/
|
|
2843
|
+
$ref: "#/components/schemas/Timestamp"
|
|
2823
2844
|
deletedAt:
|
|
2824
|
-
$ref: "#/components/schemas/
|
|
2845
|
+
$ref: "#/components/schemas/Timestamp"
|
|
2846
|
+
editMode:
|
|
2847
|
+
$ref: "#/components/schemas/SpaceEditMode"
|
|
2825
2848
|
urls:
|
|
2826
2849
|
type: object
|
|
2827
2850
|
description: URLs associated with the object
|
|
@@ -2843,8 +2866,7 @@ components:
|
|
|
2843
2866
|
description: URL of the public version of the space. Only defined when visibility is "public".
|
|
2844
2867
|
format: uri
|
|
2845
2868
|
icon:
|
|
2846
|
-
|
|
2847
|
-
description: URL of the icon of this space, if defined. Deprecated, prefer using emojis for spaces instead of icons.
|
|
2869
|
+
description: URL of the icon of this space, if defined.
|
|
2848
2870
|
$ref: "#/components/schemas/URL"
|
|
2849
2871
|
required:
|
|
2850
2872
|
- app
|
|
@@ -2857,6 +2879,30 @@ components:
|
|
|
2857
2879
|
description: ID of the parent collection.
|
|
2858
2880
|
gitSync:
|
|
2859
2881
|
$ref: "#/components/schemas/GitSyncState"
|
|
2882
|
+
visitorAuth:
|
|
2883
|
+
oneOf:
|
|
2884
|
+
- type: object
|
|
2885
|
+
properties:
|
|
2886
|
+
backend:
|
|
2887
|
+
type: string
|
|
2888
|
+
description: Custom backend for Visitor Authentication
|
|
2889
|
+
enum:
|
|
2890
|
+
- custom
|
|
2891
|
+
required:
|
|
2892
|
+
- backend
|
|
2893
|
+
- type: object
|
|
2894
|
+
properties:
|
|
2895
|
+
backend:
|
|
2896
|
+
type: string
|
|
2897
|
+
description: Integration as backend for Visitor Authentication
|
|
2898
|
+
enum:
|
|
2899
|
+
- integration
|
|
2900
|
+
integration:
|
|
2901
|
+
type: string
|
|
2902
|
+
description: Name of integration being used as the backend for Visitor Authentication
|
|
2903
|
+
required:
|
|
2904
|
+
- backend
|
|
2905
|
+
- integration
|
|
2860
2906
|
required:
|
|
2861
2907
|
- object
|
|
2862
2908
|
- id
|
|
@@ -2868,6 +2914,20 @@ components:
|
|
|
2868
2914
|
- createdAt
|
|
2869
2915
|
- updatedAt
|
|
2870
2916
|
- urls
|
|
2917
|
+
SpaceEditMode:
|
|
2918
|
+
type: string
|
|
2919
|
+
description: |
|
|
2920
|
+
Determines how a Space can be edited.
|
|
2921
|
+
* `live`: Users can directly edit the space
|
|
2922
|
+
* `locked`: All edits are locked for this space.
|
|
2923
|
+
enum:
|
|
2924
|
+
- live
|
|
2925
|
+
- locked
|
|
2926
|
+
SpaceTitle:
|
|
2927
|
+
type: string
|
|
2928
|
+
description: Title of the space
|
|
2929
|
+
minLength: 1
|
|
2930
|
+
maxLength: 50
|
|
2871
2931
|
RevisionBase:
|
|
2872
2932
|
type: object
|
|
2873
2933
|
properties:
|
|
@@ -2892,6 +2952,9 @@ components:
|
|
|
2892
2952
|
type: array
|
|
2893
2953
|
items:
|
|
2894
2954
|
$ref: "#/components/schemas/RevisionFile"
|
|
2955
|
+
createdAt:
|
|
2956
|
+
description: When the revision was created.
|
|
2957
|
+
$ref: "#/components/schemas/Timestamp"
|
|
2895
2958
|
git:
|
|
2896
2959
|
description: Metadata about a potential associated git commit.
|
|
2897
2960
|
$ref: "#/components/schemas/GitSyncCommit"
|
|
@@ -2919,6 +2982,7 @@ components:
|
|
|
2919
2982
|
- pages
|
|
2920
2983
|
- files
|
|
2921
2984
|
- urls
|
|
2985
|
+
- createdAt
|
|
2922
2986
|
RevisionTypeMerge:
|
|
2923
2987
|
allOf:
|
|
2924
2988
|
- $ref: "#/components/schemas/RevisionBase"
|
|
@@ -3000,10 +3064,10 @@ components:
|
|
|
3000
3064
|
$ref: "#/components/schemas/Emoji"
|
|
3001
3065
|
createdAt:
|
|
3002
3066
|
description: When the page was first created. Only present if page has been edited at least once.
|
|
3003
|
-
$ref: "#/components/schemas/
|
|
3067
|
+
$ref: "#/components/schemas/Timestamp"
|
|
3004
3068
|
updatedAt:
|
|
3005
3069
|
description: When the page was last edited. Only present if page has been edited at least once.
|
|
3006
|
-
$ref: "#/components/schemas/
|
|
3070
|
+
$ref: "#/components/schemas/Timestamp"
|
|
3007
3071
|
required:
|
|
3008
3072
|
- id
|
|
3009
3073
|
- title
|
|
@@ -3528,23 +3592,22 @@ components:
|
|
|
3528
3592
|
description: The URL to the repository tree, used when rendering public content.
|
|
3529
3593
|
updatedAt:
|
|
3530
3594
|
description: When the Git provider details were last updated
|
|
3531
|
-
$ref: "#/components/schemas/
|
|
3595
|
+
$ref: "#/components/schemas/Timestamp"
|
|
3532
3596
|
GitSyncOperation:
|
|
3533
3597
|
type: object
|
|
3534
3598
|
properties:
|
|
3535
3599
|
state:
|
|
3536
3600
|
$ref: "#/components/schemas/GitSyncOperationState"
|
|
3537
3601
|
startedAt:
|
|
3538
|
-
$ref: "#/components/schemas/
|
|
3602
|
+
$ref: "#/components/schemas/Timestamp"
|
|
3539
3603
|
completedAt:
|
|
3540
3604
|
description: Date when the operation was successful (when state is `success`)
|
|
3541
|
-
$ref: "#/components/schemas/
|
|
3605
|
+
$ref: "#/components/schemas/Timestamp"
|
|
3542
3606
|
error:
|
|
3543
3607
|
type: string
|
|
3544
3608
|
description: Error details, defined if state is `failure`.
|
|
3545
3609
|
required:
|
|
3546
3610
|
- state
|
|
3547
|
-
- startedAt
|
|
3548
3611
|
GitSyncOperationState:
|
|
3549
3612
|
type: string
|
|
3550
3613
|
description: |
|
|
@@ -3746,10 +3809,10 @@ components:
|
|
|
3746
3809
|
description: Whatever the membership of this user is disabled and prevent them from accessing content.
|
|
3747
3810
|
joinedAt:
|
|
3748
3811
|
description: Date at which the user joined the organization.
|
|
3749
|
-
$ref: "#/components/schemas/
|
|
3812
|
+
$ref: "#/components/schemas/Timestamp"
|
|
3750
3813
|
lastSeenAt:
|
|
3751
3814
|
description: Date at which the user was last seen active in the organization.
|
|
3752
|
-
$ref: "#/components/schemas/
|
|
3815
|
+
$ref: "#/components/schemas/Timestamp"
|
|
3753
3816
|
sso:
|
|
3754
3817
|
type: boolean
|
|
3755
3818
|
description: Whether the user can login with SSO.
|
|
@@ -3788,7 +3851,7 @@ components:
|
|
|
3788
3851
|
description: Count of spaces this team has access to.
|
|
3789
3852
|
createdAt:
|
|
3790
3853
|
description: Date at which the team was created.
|
|
3791
|
-
$ref: "#/components/schemas/
|
|
3854
|
+
$ref: "#/components/schemas/Timestamp"
|
|
3792
3855
|
required:
|
|
3793
3856
|
- object
|
|
3794
3857
|
- id
|
|
@@ -4069,6 +4132,9 @@ components:
|
|
|
4069
4132
|
id:
|
|
4070
4133
|
type: string
|
|
4071
4134
|
description: Unique identifier for the snippet
|
|
4135
|
+
organization:
|
|
4136
|
+
type: string
|
|
4137
|
+
description: ID of the organization owning this snippet
|
|
4072
4138
|
createdAt:
|
|
4073
4139
|
type: string
|
|
4074
4140
|
format: date-time
|
|
@@ -4125,6 +4191,7 @@ components:
|
|
|
4125
4191
|
- app
|
|
4126
4192
|
required:
|
|
4127
4193
|
- id
|
|
4194
|
+
- organization
|
|
4128
4195
|
- source
|
|
4129
4196
|
- createdAt
|
|
4130
4197
|
- archived
|
|
@@ -4161,7 +4228,7 @@ components:
|
|
|
4161
4228
|
$ref: "#/components/schemas/ContentAuditRelationStatus"
|
|
4162
4229
|
createdAt:
|
|
4163
4230
|
description: The date at which the relation was created
|
|
4164
|
-
$ref: "#/components/schemas/
|
|
4231
|
+
$ref: "#/components/schemas/Timestamp"
|
|
4165
4232
|
required:
|
|
4166
4233
|
- id
|
|
4167
4234
|
- sources
|
|
@@ -4233,9 +4300,9 @@ components:
|
|
|
4233
4300
|
createdBy:
|
|
4234
4301
|
$ref: "#/components/schemas/User"
|
|
4235
4302
|
createdAt:
|
|
4236
|
-
$ref: "#/components/schemas/
|
|
4303
|
+
$ref: "#/components/schemas/Timestamp"
|
|
4237
4304
|
updatedAt:
|
|
4238
|
-
$ref: "#/components/schemas/
|
|
4305
|
+
$ref: "#/components/schemas/Timestamp"
|
|
4239
4306
|
urls:
|
|
4240
4307
|
type: object
|
|
4241
4308
|
description: URLs associated with the object
|
|
@@ -4289,9 +4356,9 @@ components:
|
|
|
4289
4356
|
comment:
|
|
4290
4357
|
$ref: "#/components/schemas/Comment"
|
|
4291
4358
|
createdAt:
|
|
4292
|
-
$ref: "#/components/schemas/
|
|
4359
|
+
$ref: "#/components/schemas/Timestamp"
|
|
4293
4360
|
updatedAt:
|
|
4294
|
-
$ref: "#/components/schemas/
|
|
4361
|
+
$ref: "#/components/schemas/Timestamp"
|
|
4295
4362
|
required:
|
|
4296
4363
|
- object
|
|
4297
4364
|
- id
|
|
@@ -4323,7 +4390,7 @@ components:
|
|
|
4323
4390
|
description: The user who made the request.
|
|
4324
4391
|
$ref: "#/components/schemas/User"
|
|
4325
4392
|
createdAt:
|
|
4326
|
-
$ref: "#/components/schemas/
|
|
4393
|
+
$ref: "#/components/schemas/Timestamp"
|
|
4327
4394
|
required:
|
|
4328
4395
|
- object
|
|
4329
4396
|
- revision
|
|
@@ -4970,6 +5037,7 @@ components:
|
|
|
4970
5037
|
- space:script:inject
|
|
4971
5038
|
- space:script:cookies
|
|
4972
5039
|
- space:git:sync
|
|
5040
|
+
- space:visitor:auth
|
|
4973
5041
|
IntegrationCategories:
|
|
4974
5042
|
type: array
|
|
4975
5043
|
description: Categories for which the integration is listed in the marketplace
|
|
@@ -5050,7 +5118,7 @@ components:
|
|
|
5050
5118
|
type: string
|
|
5051
5119
|
description: Unique ID of the integration installation.
|
|
5052
5120
|
createdAt:
|
|
5053
|
-
$ref: "#/components/schemas/
|
|
5121
|
+
$ref: "#/components/schemas/Timestamp"
|
|
5054
5122
|
payload:
|
|
5055
5123
|
$ref: "#/components/schemas/Event"
|
|
5056
5124
|
status:
|
|
@@ -5072,7 +5140,7 @@ components:
|
|
|
5072
5140
|
description: The message of the log entry.
|
|
5073
5141
|
type: string
|
|
5074
5142
|
timestamp:
|
|
5075
|
-
$ref: "#/components/schemas/
|
|
5143
|
+
$ref: "#/components/schemas/Timestamp"
|
|
5076
5144
|
level:
|
|
5077
5145
|
description: The level of the log entry.
|
|
5078
5146
|
type: string
|
|
@@ -5216,9 +5284,9 @@ components:
|
|
|
5216
5284
|
configuration:
|
|
5217
5285
|
$ref: "#/components/schemas/IntegrationInstallationConfiguration"
|
|
5218
5286
|
createdAt:
|
|
5219
|
-
$ref: "#/components/schemas/
|
|
5287
|
+
$ref: "#/components/schemas/Timestamp"
|
|
5220
5288
|
updatedAt:
|
|
5221
|
-
$ref: "#/components/schemas/
|
|
5289
|
+
$ref: "#/components/schemas/Timestamp"
|
|
5222
5290
|
urls:
|
|
5223
5291
|
type: object
|
|
5224
5292
|
description: URLs associated with the object
|
|
@@ -5723,6 +5791,7 @@ components:
|
|
|
5723
5791
|
- $ref: "#/components/schemas/SpaceVisibilityUpdatedEvent"
|
|
5724
5792
|
- $ref: "#/components/schemas/FetchEvent"
|
|
5725
5793
|
- $ref: "#/components/schemas/FetchPublishedScriptEvent"
|
|
5794
|
+
- $ref: "#/components/schemas/FetchVisitorAuthenticationEvent"
|
|
5726
5795
|
- $ref: "#/components/schemas/UIRenderEvent"
|
|
5727
5796
|
discriminator:
|
|
5728
5797
|
propertyName: type
|
|
@@ -6024,6 +6093,20 @@ components:
|
|
|
6024
6093
|
- fetch_published_script
|
|
6025
6094
|
required:
|
|
6026
6095
|
- type
|
|
6096
|
+
FetchVisitorAuthenticationEvent:
|
|
6097
|
+
allOf:
|
|
6098
|
+
- $ref: "#/components/schemas/SpaceEvent"
|
|
6099
|
+
- type: object
|
|
6100
|
+
description: Common properties for all events related to visitor authentication from an installation
|
|
6101
|
+
properties:
|
|
6102
|
+
type:
|
|
6103
|
+
type: string
|
|
6104
|
+
enum:
|
|
6105
|
+
- fetch_visitor_authentication
|
|
6106
|
+
location:
|
|
6107
|
+
type: string
|
|
6108
|
+
required:
|
|
6109
|
+
- type
|
|
6027
6110
|
UIRenderEvent:
|
|
6028
6111
|
allOf:
|
|
6029
6112
|
- oneOf:
|
|
@@ -6154,9 +6237,9 @@ components:
|
|
|
6154
6237
|
amount:
|
|
6155
6238
|
type: number
|
|
6156
6239
|
periodStart:
|
|
6157
|
-
$ref: "#/components/schemas/
|
|
6240
|
+
$ref: "#/components/schemas/Timestamp"
|
|
6158
6241
|
periodEnd:
|
|
6159
|
-
$ref: "#/components/schemas/
|
|
6242
|
+
$ref: "#/components/schemas/Timestamp"
|
|
6160
6243
|
required:
|
|
6161
6244
|
- amount
|
|
6162
6245
|
- description
|
|
@@ -6356,7 +6439,7 @@ components:
|
|
|
6356
6439
|
description: All the permissions of a user
|
|
6357
6440
|
properties:
|
|
6358
6441
|
updatedAt:
|
|
6359
|
-
$ref: "#/components/schemas/
|
|
6442
|
+
$ref: "#/components/schemas/Timestamp"
|
|
6360
6443
|
searchKey:
|
|
6361
6444
|
type: string
|
|
6362
6445
|
organizations:
|
|
@@ -7944,9 +8027,9 @@ components:
|
|
|
7944
8027
|
options:
|
|
7945
8028
|
$ref: "#/components/schemas/CustomFieldOptions"
|
|
7946
8029
|
createdAt:
|
|
7947
|
-
$ref: "#/components/schemas/
|
|
8030
|
+
$ref: "#/components/schemas/Timestamp"
|
|
7948
8031
|
updatedAt:
|
|
7949
|
-
$ref: "#/components/schemas/
|
|
8032
|
+
$ref: "#/components/schemas/Timestamp"
|
|
7950
8033
|
urls:
|
|
7951
8034
|
type: object
|
|
7952
8035
|
description: URLs associated with the object
|
|
@@ -8324,7 +8407,7 @@ components:
|
|
|
8324
8407
|
rating:
|
|
8325
8408
|
$ref: "#/components/schemas/PageFeedbackRating"
|
|
8326
8409
|
createdAt:
|
|
8327
|
-
$ref: "#/components/schemas/
|
|
8410
|
+
$ref: "#/components/schemas/Timestamp"
|
|
8328
8411
|
revision:
|
|
8329
8412
|
type: string
|
|
8330
8413
|
description: ID of the revision when the rating was created
|
|
@@ -8610,10 +8693,43 @@ paths:
|
|
|
8610
8693
|
content:
|
|
8611
8694
|
application/json:
|
|
8612
8695
|
schema:
|
|
8613
|
-
|
|
8614
|
-
|
|
8615
|
-
|
|
8616
|
-
|
|
8696
|
+
allOf:
|
|
8697
|
+
- type: object
|
|
8698
|
+
properties:
|
|
8699
|
+
editMode:
|
|
8700
|
+
$ref: "#/components/schemas/SpaceEditMode"
|
|
8701
|
+
title:
|
|
8702
|
+
$ref: "#/components/schemas/SpaceTitle"
|
|
8703
|
+
visibility:
|
|
8704
|
+
$ref: "#/components/schemas/ContentVisibility"
|
|
8705
|
+
visitorAuth:
|
|
8706
|
+
$ref: "#/components/schemas/Space/properties/visitorAuth"
|
|
8707
|
+
description: The integration property, if set, is ignored.
|
|
8708
|
+
- oneOf:
|
|
8709
|
+
- type: object
|
|
8710
|
+
properties:
|
|
8711
|
+
emoji:
|
|
8712
|
+
$ref: "#/components/schemas/Emoji"
|
|
8713
|
+
required:
|
|
8714
|
+
- emoji
|
|
8715
|
+
- type: object
|
|
8716
|
+
properties:
|
|
8717
|
+
icon:
|
|
8718
|
+
$ref: "#/components/schemas/URL"
|
|
8719
|
+
required:
|
|
8720
|
+
- icon
|
|
8721
|
+
- type: object
|
|
8722
|
+
properties:
|
|
8723
|
+
emoji:
|
|
8724
|
+
type: string
|
|
8725
|
+
nullable: true
|
|
8726
|
+
enum:
|
|
8727
|
+
- null
|
|
8728
|
+
icon:
|
|
8729
|
+
type: string
|
|
8730
|
+
nullable: true
|
|
8731
|
+
enum:
|
|
8732
|
+
- null
|
|
8617
8733
|
responses:
|
|
8618
8734
|
"200":
|
|
8619
8735
|
description: The space has been updated
|
|
@@ -13361,6 +13477,11 @@ paths:
|
|
|
13361
13477
|
description: If specified, only locations under the given pageId will be returned. You must specify a spaceId too. If pageId is not specified, GitBook will suggest pages at the top level.
|
|
13362
13478
|
schema:
|
|
13363
13479
|
type: string
|
|
13480
|
+
- name: search
|
|
13481
|
+
in: query
|
|
13482
|
+
description: If specified, only locations matching the search query will be returned.
|
|
13483
|
+
schema:
|
|
13484
|
+
type: string
|
|
13364
13485
|
responses:
|
|
13365
13486
|
"200":
|
|
13366
13487
|
description: A paginated list of suggested snippet locations.
|