@gitbook/api 0.96.0 → 0.96.1

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
@@ -38,6 +38,94 @@
38
38
  "integration-installation": []
39
39
  }
40
40
  ],
41
+ "tags": [
42
+ {
43
+ "name": "users",
44
+ "x-page-title": "Users",
45
+ "x-page-description": "A user in GitBook is the entity of someone who has signed up with an account."
46
+ },
47
+ {
48
+ "name": "organizations",
49
+ "x-page-title": "Organizations",
50
+ "x-page-description": "An organization in GitBook is the entity of a place that users, spaces, and collections belong to."
51
+ },
52
+ {
53
+ "name": "sites",
54
+ "x-page-title": "Docs sites",
55
+ "x-page-description": "A site in GitBook - also called a docs site - is your published content."
56
+ },
57
+ {
58
+ "name": "collections",
59
+ "x-page-title": "Collections",
60
+ "x-page-description": "A collection in GitBook is the entity of a group that a space can belong to."
61
+ },
62
+ {
63
+ "name": "spaces",
64
+ "x-page-title": "Spaces",
65
+ "x-page-description": "A space in GitBook is the entity of a project you work in."
66
+ },
67
+ {
68
+ "name": "change-requests",
69
+ "x-page-title": "Change requests"
70
+ },
71
+ {
72
+ "name": "comments",
73
+ "x-page-title": "Comments"
74
+ },
75
+ {
76
+ "name": "revisions",
77
+ "x-page-title": "Revisions"
78
+ },
79
+ {
80
+ "name": "analytics",
81
+ "x-page-title": "Analytics"
82
+ },
83
+ {
84
+ "name": "integrations",
85
+ "x-page-title": "Integrations",
86
+ "x-page-description": "An integration is the entity for an app developed on the GitBook Integrations Platform"
87
+ },
88
+ {
89
+ "name": "computed-content",
90
+ "x-page-title": "Computed content"
91
+ },
92
+ {
93
+ "name": "urls",
94
+ "x-page-title": "URLs"
95
+ },
96
+ {
97
+ "name": "openapi",
98
+ "x-page-title": "OpenAPI"
99
+ },
100
+ {
101
+ "name": "hive",
102
+ "x-page-title": "Hive"
103
+ },
104
+ {
105
+ "name": "custom-hostnames",
106
+ "x-page-title": "Custom hostnames"
107
+ },
108
+ {
109
+ "name": "ads",
110
+ "x-page-title": "Ads"
111
+ },
112
+ {
113
+ "name": "search",
114
+ "x-page-title": "Search"
115
+ },
116
+ {
117
+ "name": "permissions",
118
+ "x-page-title": "Permissions"
119
+ },
120
+ {
121
+ "name": "teams",
122
+ "x-page-title": "Teams"
123
+ },
124
+ {
125
+ "name": "api",
126
+ "x-page-title": "API"
127
+ }
128
+ ],
41
129
  "paths": {
42
130
  "/": {
43
131
  "get": {
@@ -140,6 +228,9 @@
140
228
  "x-deprecated-error-rate": 0.1,
141
229
  "x-deprecated-sunset": "2025-02-05T00:00:00.000Z",
142
230
  "x-deprecated-message": "Use the 'POST' endpoints for sites/organizations instead.",
231
+ "tags": [
232
+ "search"
233
+ ],
143
234
  "security": [
144
235
  {
145
236
  "user": []
@@ -194,6 +285,9 @@
194
285
  "x-deprecated-error-rate": 0.1,
195
286
  "x-deprecated-sunset": "2025-02-05T00:00:00.000Z",
196
287
  "x-deprecated-message": "Use the 'POST' endpoints for sites/organizations instead.",
288
+ "tags": [
289
+ "search"
290
+ ],
197
291
  "security": [
198
292
  {
199
293
  "user": []
@@ -251,6 +345,9 @@
251
345
  "deprecated": true,
252
346
  "x-deprecated-error-rate": 0.1,
253
347
  "x-deprecated-sunset": "2025-02-05T00:00:00.000Z",
348
+ "tags": [
349
+ "search"
350
+ ],
254
351
  "security": [
255
352
  {
256
353
  "user": []
@@ -788,6 +885,9 @@
788
885
  "get": {
789
886
  "operationId": "searchSpaceContent",
790
887
  "summary": "Search content in a space",
888
+ "tags": [
889
+ "search"
890
+ ],
791
891
  "security": [
792
892
  {
793
893
  "user": []
@@ -855,6 +955,9 @@
855
955
  "deprecated": true,
856
956
  "x-deprecated-error-rate": 0.1,
857
957
  "x-deprecated-sunset": "2025-02-05T00:00:00.000Z",
958
+ "tags": [
959
+ "search"
960
+ ],
858
961
  "parameters": [
859
962
  {
860
963
  "name": "query",
@@ -903,6 +1006,9 @@
903
1006
  "post": {
904
1007
  "operationId": "askQueryInSpace",
905
1008
  "summary": "Ask a question to an AI within the context of the space.",
1009
+ "tags": [
1010
+ "ask"
1011
+ ],
906
1012
  "parameters": [
907
1013
  {
908
1014
  "$ref": "#/components/parameters/spaceId"
@@ -955,6 +1061,9 @@
955
1061
  "get": {
956
1062
  "operationId": "streamAskInSpace",
957
1063
  "summary": "Ask a question to an AI within the context of the space and stream the answer as a Server-Sent Events URL.",
1064
+ "tags": [
1065
+ "search"
1066
+ ],
958
1067
  "parameters": [
959
1068
  {
960
1069
  "$ref": "#/components/parameters/spaceId"
@@ -1000,6 +1109,9 @@
1000
1109
  "get": {
1001
1110
  "operationId": "getRecommendedQuestionsInSpace",
1002
1111
  "summary": "Get a list of questions that can be asked in a space.",
1112
+ "tags": [
1113
+ "search"
1114
+ ],
1003
1115
  "deprecated": true,
1004
1116
  "x-deprecated-error-rate": 0.1,
1005
1117
  "x-deprecated-sunset": "2025-02-05T00:00:00.000Z",
@@ -1032,6 +1144,9 @@
1032
1144
  "deprecated": true,
1033
1145
  "x-deprecated-error-rate": 0.1,
1034
1146
  "x-deprecated-sunset": "2025-02-05T00:00:00.000Z",
1147
+ "tags": [
1148
+ "search"
1149
+ ],
1035
1150
  "parameters": [
1036
1151
  {
1037
1152
  "$ref": "#/components/parameters/spaceId"
@@ -1684,6 +1799,9 @@
1684
1799
  "get": {
1685
1800
  "operationId": "getCurrentRevision",
1686
1801
  "summary": "Get the current primary content revision for a space",
1802
+ "tags": [
1803
+ "spaces"
1804
+ ],
1687
1805
  "security": [
1688
1806
  {
1689
1807
  "user": []
@@ -1721,6 +1839,9 @@
1721
1839
  "post": {
1722
1840
  "summary": "Import content in a space.",
1723
1841
  "operationId": "importContent",
1842
+ "tags": [
1843
+ "spaces"
1844
+ ],
1724
1845
  "security": [
1725
1846
  {
1726
1847
  "user": []
@@ -1770,6 +1891,9 @@
1770
1891
  "get": {
1771
1892
  "summary": "List all pages for the main revision content of a space",
1772
1893
  "operationId": "listPages",
1894
+ "tags": [
1895
+ "spaces"
1896
+ ],
1773
1897
  "security": [
1774
1898
  {
1775
1899
  "user": []
@@ -1818,6 +1942,9 @@
1818
1942
  "get": {
1819
1943
  "summary": "List all files for the main revision content of a space",
1820
1944
  "operationId": "listFiles",
1945
+ "tags": [
1946
+ "spaces"
1947
+ ],
1821
1948
  "security": [
1822
1949
  {
1823
1950
  "user": []
@@ -1879,6 +2006,9 @@
1879
2006
  "get": {
1880
2007
  "summary": "Get a file by its ID in the main revision of a space",
1881
2008
  "operationId": "getFileById",
2009
+ "tags": [
2010
+ "spaces"
2011
+ ],
1882
2012
  "security": [
1883
2013
  {
1884
2014
  "user": []
@@ -1980,6 +2110,9 @@
1980
2110
  "get": {
1981
2111
  "operationId": "getPageById",
1982
2112
  "summary": "Get a page by its ID in the primary content.",
2113
+ "tags": [
2114
+ "spaces"
2115
+ ],
1983
2116
  "security": [
1984
2117
  {
1985
2118
  "user": []
@@ -2157,6 +2290,9 @@
2157
2290
  "post": {
2158
2291
  "operationId": "importContentInPageById",
2159
2292
  "summary": "Import external content into a page by its ID.",
2293
+ "tags": [
2294
+ "spaces"
2295
+ ],
2160
2296
  "security": [
2161
2297
  {
2162
2298
  "user": []
@@ -2209,6 +2345,9 @@
2209
2345
  "get": {
2210
2346
  "operationId": "getPageByPath",
2211
2347
  "summary": "Get a page by its path in the primary content.",
2348
+ "tags": [
2349
+ "spaces"
2350
+ ],
2212
2351
  "security": [
2213
2352
  {
2214
2353
  "user": []
@@ -2259,6 +2398,9 @@
2259
2398
  "get": {
2260
2399
  "summary": "Get a reusable content by its ID in the main revision of a space",
2261
2400
  "operationId": "getReusableContentById",
2401
+ "tags": [
2402
+ "spaces"
2403
+ ],
2262
2404
  "security": [
2263
2405
  {
2264
2406
  "user": []
@@ -2299,6 +2441,9 @@
2299
2441
  "post": {
2300
2442
  "operationId": "getComputedDocument",
2301
2443
  "summary": "Generate a document for a page in a computed content.",
2444
+ "tags": [
2445
+ "computed-content"
2446
+ ],
2302
2447
  "security": [
2303
2448
  {
2304
2449
  "user": []
@@ -2351,6 +2496,9 @@
2351
2496
  "post": {
2352
2497
  "operationId": "getComputedRevision",
2353
2498
  "summary": "Get the computed content for a source in a computed content.",
2499
+ "tags": [
2500
+ "computed-content"
2501
+ ],
2354
2502
  "security": [
2355
2503
  {
2356
2504
  "user": []
@@ -2418,6 +2566,9 @@
2418
2566
  "get": {
2419
2567
  "operationId": "getDocumentById",
2420
2568
  "summary": "Get a document by its ID in a space.",
2569
+ "tags": [
2570
+ "spaces"
2571
+ ],
2421
2572
  "security": [
2422
2573
  {
2423
2574
  "user": []
@@ -2462,7 +2613,7 @@
2462
2613
  "operationId": "createChangeRequest",
2463
2614
  "summary": "Create a new change request for a space.",
2464
2615
  "tags": [
2465
- "spaces"
2616
+ "change-requests"
2466
2617
  ],
2467
2618
  "security": [
2468
2619
  {
@@ -2588,7 +2739,7 @@
2588
2739
  "get": {
2589
2740
  "operationId": "getChangeRequestById",
2590
2741
  "tags": [
2591
- "spaces"
2742
+ "change-requests"
2592
2743
  ],
2593
2744
  "security": [
2594
2745
  {
@@ -2628,7 +2779,7 @@
2628
2779
  "operationId": "updateChangeRequestById",
2629
2780
  "summary": "Update the details of a change request",
2630
2781
  "tags": [
2631
- "spaces"
2782
+ "change-requests"
2632
2783
  ],
2633
2784
  "security": [
2634
2785
  {
@@ -2688,7 +2839,7 @@
2688
2839
  "operationId": "mergeChangeRequest",
2689
2840
  "summary": "Merge a change request in the primary content of a space.",
2690
2841
  "tags": [
2691
- "spaces"
2842
+ "change-requests"
2692
2843
  ],
2693
2844
  "security": [
2694
2845
  {
@@ -2742,7 +2893,7 @@
2742
2893
  "operationId": "updateChangeRequest",
2743
2894
  "summary": "Update a change-request with changes from primary content.",
2744
2895
  "tags": [
2745
- "spaces"
2896
+ "change-requests"
2746
2897
  ],
2747
2898
  "security": [
2748
2899
  {
@@ -2795,7 +2946,7 @@
2795
2946
  "get": {
2796
2947
  "operationId": "getReviewsByChangeRequestId",
2797
2948
  "tags": [
2798
- "spaces"
2949
+ "change-requests"
2799
2950
  ],
2800
2951
  "security": [
2801
2952
  {
@@ -2861,7 +3012,7 @@
2861
3012
  "post": {
2862
3013
  "operationId": "submitChangeRequestReview",
2863
3014
  "tags": [
2864
- "spaces"
3015
+ "change-requests"
2865
3016
  ],
2866
3017
  "security": [
2867
3018
  {
@@ -3061,7 +3212,7 @@
3061
3212
  "operationId": "listChangeRequestLinks",
3062
3213
  "summary": "Get all links in the context of a change request including their status and location where they appear.",
3063
3214
  "tags": [
3064
- "spaces",
3215
+ "change-requests",
3065
3216
  "links"
3066
3217
  ],
3067
3218
  "security": [
@@ -3151,7 +3302,7 @@
3151
3302
  "operationId": "listCommentsInChangeRequest",
3152
3303
  "summary": "List all the comments in a change request.",
3153
3304
  "tags": [
3154
- "spaces"
3305
+ "comments"
3155
3306
  ],
3156
3307
  "security": [
3157
3308
  {
@@ -3222,7 +3373,7 @@
3222
3373
  "operationId": "postCommentInChangeRequest",
3223
3374
  "summary": "Post a new comment in a change request.",
3224
3375
  "tags": [
3225
- "spaces"
3376
+ "comments"
3226
3377
  ],
3227
3378
  "security": [
3228
3379
  {
@@ -3269,7 +3420,7 @@
3269
3420
  "operationId": "getCommentInChangeRequest",
3270
3421
  "summary": "Get a comment in a change request.",
3271
3422
  "tags": [
3272
- "spaces"
3423
+ "comments"
3273
3424
  ],
3274
3425
  "security": [
3275
3426
  {
@@ -3310,7 +3461,7 @@
3310
3461
  "operationId": "deleteCommentInChangeRequest",
3311
3462
  "summary": "Delete a comment in a change request.",
3312
3463
  "tags": [
3313
- "spaces"
3464
+ "comments"
3314
3465
  ],
3315
3466
  "security": [
3316
3467
  {
@@ -3341,7 +3492,7 @@
3341
3492
  "operationId": "updateCommentInChangeRequest",
3342
3493
  "summary": "Update a comment in a change request.",
3343
3494
  "tags": [
3344
- "spaces"
3495
+ "comments"
3345
3496
  ],
3346
3497
  "security": [
3347
3498
  {
@@ -3391,7 +3542,7 @@
3391
3542
  "operationId": "listCommentRepliesInChangeRequest",
3392
3543
  "summary": "List all the replies to a comment in a change request.",
3393
3544
  "tags": [
3394
- "spaces"
3545
+ "comments"
3395
3546
  ],
3396
3547
  "security": [
3397
3548
  {
@@ -3456,7 +3607,7 @@
3456
3607
  "operationId": "postCommentReplyInChangeRequest",
3457
3608
  "summary": "Post a new reply to a comment in a change request.",
3458
3609
  "tags": [
3459
- "spaces"
3610
+ "comments"
3460
3611
  ],
3461
3612
  "security": [
3462
3613
  {
@@ -3509,7 +3660,7 @@
3509
3660
  "operationId": "getCommentReplyInChangeRequest",
3510
3661
  "summary": "Get a comment reply in a change request.",
3511
3662
  "tags": [
3512
- "spaces"
3663
+ "comments"
3513
3664
  ],
3514
3665
  "security": [
3515
3666
  {
@@ -3553,7 +3704,7 @@
3553
3704
  "operationId": "updateCommentReplyInChangeRequest",
3554
3705
  "summary": "Update a comment reply in a change request.",
3555
3706
  "tags": [
3556
- "spaces"
3707
+ "comments"
3557
3708
  ],
3558
3709
  "security": [
3559
3710
  {
@@ -3604,7 +3755,7 @@
3604
3755
  "operationId": "deleteCommentReplyInChangeRequest",
3605
3756
  "summary": "Delete a comment reply in a change request.",
3606
3757
  "tags": [
3607
- "spaces"
3758
+ "comments"
3608
3759
  ],
3609
3760
  "security": [
3610
3761
  {
@@ -3639,7 +3790,7 @@
3639
3790
  "get": {
3640
3791
  "operationId": "getContributorsByChangeRequestId",
3641
3792
  "tags": [
3642
- "spaces"
3793
+ "change-requests"
3643
3794
  ],
3644
3795
  "security": [
3645
3796
  {
@@ -3698,6 +3849,9 @@
3698
3849
  "get": {
3699
3850
  "operationId": "getRevisionOfChangeRequestById",
3700
3851
  "summary": "Get the latest content revision for a change request.",
3852
+ "tags": [
3853
+ "change-requests"
3854
+ ],
3701
3855
  "security": [
3702
3856
  {
3703
3857
  "user": []
@@ -3738,6 +3892,9 @@
3738
3892
  "post": {
3739
3893
  "summary": "Import content in a change request.",
3740
3894
  "operationId": "importContentInChangeRequest",
3895
+ "tags": [
3896
+ "change-requests"
3897
+ ],
3741
3898
  "security": [
3742
3899
  {
3743
3900
  "user": []
@@ -3790,6 +3947,9 @@
3790
3947
  "get": {
3791
3948
  "summary": "List all pages in the content of a change request",
3792
3949
  "operationId": "listPagesInChangeRequest",
3950
+ "tags": [
3951
+ "change-requests"
3952
+ ],
3793
3953
  "security": [
3794
3954
  {
3795
3955
  "user": []
@@ -3841,6 +4001,9 @@
3841
4001
  "get": {
3842
4002
  "summary": "List all files in a change request content",
3843
4003
  "operationId": "listFilesInChangeRequestById",
4004
+ "tags": [
4005
+ "change-requests"
4006
+ ],
3844
4007
  "security": [
3845
4008
  {
3846
4009
  "user": []
@@ -3905,6 +4068,9 @@
3905
4068
  "get": {
3906
4069
  "summary": "Get a file by its ID in the content of a change request",
3907
4070
  "operationId": "getFileInChangeRequestById",
4071
+ "tags": [
4072
+ "change-requests"
4073
+ ],
3908
4074
  "security": [
3909
4075
  {
3910
4076
  "user": []
@@ -3949,7 +4115,7 @@
3949
4115
  "operationId": "listChangeRequestFileBacklinks",
3950
4116
  "summary": "Get backlink locations for a file existing in a change request.",
3951
4117
  "tags": [
3952
- "spaces"
4118
+ "change-requests"
3953
4119
  ],
3954
4120
  "security": [
3955
4121
  {
@@ -4012,6 +4178,9 @@
4012
4178
  "get": {
4013
4179
  "operationId": "getPageInChangeRequestById",
4014
4180
  "summary": "Get a page by its ID in a change request.",
4181
+ "tags": [
4182
+ "change-requests"
4183
+ ],
4015
4184
  "security": [
4016
4185
  {
4017
4186
  "user": []
@@ -4059,7 +4228,7 @@
4059
4228
  "operationId": "listPageLinksInChangeRequest",
4060
4229
  "summary": "List all links in a page inside a change request.",
4061
4230
  "tags": [
4062
- "spaces"
4231
+ "change-requests"
4063
4232
  ],
4064
4233
  "security": [
4065
4234
  {
@@ -4127,7 +4296,7 @@
4127
4296
  "operationId": "listChangeRequestPageBacklinks",
4128
4297
  "summary": "Get backlink locations for a page existing in a change request.",
4129
4298
  "tags": [
4130
- "spaces"
4299
+ "change-requests"
4131
4300
  ],
4132
4301
  "security": [
4133
4302
  {
@@ -4190,6 +4359,9 @@
4190
4359
  "post": {
4191
4360
  "operationId": "importContentInChangeRequestPageById",
4192
4361
  "summary": "Import external content into a page of a change-request by its ID.",
4362
+ "tags": [
4363
+ "change-requests"
4364
+ ],
4193
4365
  "security": [
4194
4366
  {
4195
4367
  "user": []
@@ -4245,6 +4417,9 @@
4245
4417
  "get": {
4246
4418
  "operationId": "getPageInChangeRequestByPath",
4247
4419
  "summary": "Get a page by its path in a change request.",
4420
+ "tags": [
4421
+ "change-requests"
4422
+ ],
4248
4423
  "security": [
4249
4424
  {
4250
4425
  "user": []
@@ -4297,6 +4472,9 @@
4297
4472
  "/spaces/{spaceId}/change-requests/{changeRequestId}/content/reusable-contents/{reusableContentId}": {
4298
4473
  "get": {
4299
4474
  "summary": "Get a reusable content by its ID in the content of a change request",
4475
+ "tags": [
4476
+ "change-requests"
4477
+ ],
4300
4478
  "operationId": "getReusableContentInChangeRequestById",
4301
4479
  "security": [
4302
4480
  {
@@ -4342,7 +4520,7 @@
4342
4520
  "operationId": "getChangeRequestPDF",
4343
4521
  "summary": "Generate a URL to export the content of a change request as a PDF.",
4344
4522
  "tags": [
4345
- "spaces"
4523
+ "change-requests"
4346
4524
  ],
4347
4525
  "security": [
4348
4526
  {
@@ -4404,7 +4582,7 @@
4404
4582
  "operationId": "streamBrainstormChangeRequest",
4405
4583
  "summary": "Brainstorm with AI on a change request and stream the results as a Server-Sent Events.",
4406
4584
  "tags": [
4407
- "spaces"
4585
+ "change-requests"
4408
4586
  ],
4409
4587
  "security": [
4410
4588
  {
@@ -4460,7 +4638,7 @@
4460
4638
  "operationId": "streamImplementChangeRequestTask",
4461
4639
  "summary": "Implement a task on a change request and stream the results as a Server-Sent Events.",
4462
4640
  "tags": [
4463
- "spaces"
4641
+ "change-requests"
4464
4642
  ],
4465
4643
  "security": [
4466
4644
  {
@@ -4515,6 +4693,9 @@
4515
4693
  "get": {
4516
4694
  "operationId": "getRevisionById",
4517
4695
  "summary": "Get a specific revision in a space",
4696
+ "tags": [
4697
+ "revisions"
4698
+ ],
4518
4699
  "security": [
4519
4700
  {
4520
4701
  "user": []
@@ -4555,6 +4736,9 @@
4555
4736
  "get": {
4556
4737
  "summary": "Return the semantic changes between a revision and its parent.",
4557
4738
  "operationId": "getRevisionSemanticChanges",
4739
+ "tags": [
4740
+ "revisions"
4741
+ ],
4558
4742
  "security": [
4559
4743
  {
4560
4744
  "user": []
@@ -4604,6 +4788,9 @@
4604
4788
  "get": {
4605
4789
  "summary": "List all pages in a revision",
4606
4790
  "operationId": "listPagesInRevisionById",
4791
+ "tags": [
4792
+ "revisions"
4793
+ ],
4607
4794
  "security": [
4608
4795
  {
4609
4796
  "user": []
@@ -4655,6 +4842,9 @@
4655
4842
  "get": {
4656
4843
  "summary": "List all files in a revision",
4657
4844
  "operationId": "listFilesInRevisionById",
4845
+ "tags": [
4846
+ "revisions"
4847
+ ],
4658
4848
  "security": [
4659
4849
  {
4660
4850
  "user": []
@@ -4719,6 +4909,9 @@
4719
4909
  "get": {
4720
4910
  "summary": "Get a file in a revision by its ID",
4721
4911
  "operationId": "getFileInRevisionById",
4912
+ "tags": [
4913
+ "revisions"
4914
+ ],
4722
4915
  "security": [
4723
4916
  {
4724
4917
  "user": []
@@ -4762,6 +4955,9 @@
4762
4955
  "get": {
4763
4956
  "operationId": "getPageInRevisionById",
4764
4957
  "summary": "Get a page by its ID in a revision.",
4958
+ "tags": [
4959
+ "revisions"
4960
+ ],
4765
4961
  "security": [
4766
4962
  {
4767
4963
  "user": []
@@ -4808,6 +5004,9 @@
4808
5004
  "get": {
4809
5005
  "operationId": "getPageInRevisionByPath",
4810
5006
  "summary": "Get a page by its path in a revision.",
5007
+ "tags": [
5008
+ "revisions"
5009
+ ],
4811
5010
  "security": [
4812
5011
  {
4813
5012
  "user": []
@@ -4859,8 +5058,11 @@
4859
5058
  },
4860
5059
  "/spaces/{spaceId}/revisions/{revisionId}/reusable-contents/{reusableContentId}": {
4861
5060
  "get": {
4862
- "summary": "Get reusbale content in a revision by its ID",
5061
+ "summary": "Get reusable content in a revision by its ID",
4863
5062
  "operationId": "getReusableContentInRevisionById",
5063
+ "tags": [
5064
+ "revisions"
5065
+ ],
4864
5066
  "security": [
4865
5067
  {
4866
5068
  "user": []
@@ -4905,7 +5107,7 @@
4905
5107
  "operationId": "listCommentsInSpace",
4906
5108
  "summary": "List all the comments in a space.",
4907
5109
  "tags": [
4908
- "spaces"
5110
+ "comments"
4909
5111
  ],
4910
5112
  "security": [
4911
5113
  {
@@ -4973,7 +5175,7 @@
4973
5175
  "operationId": "postCommentInSpace",
4974
5176
  "summary": "Post a new comment in a space.",
4975
5177
  "tags": [
4976
- "spaces"
5178
+ "comments"
4977
5179
  ],
4978
5180
  "security": [
4979
5181
  {
@@ -5017,7 +5219,7 @@
5017
5219
  "operationId": "getCommentInSpace",
5018
5220
  "summary": "Get a comment in a space.",
5019
5221
  "tags": [
5020
- "spaces"
5222
+ "comments"
5021
5223
  ],
5022
5224
  "security": [
5023
5225
  {
@@ -5055,7 +5257,7 @@
5055
5257
  "operationId": "deleteCommentInSpace",
5056
5258
  "summary": "Delete a comment in a space.",
5057
5259
  "tags": [
5058
- "spaces"
5260
+ "comments"
5059
5261
  ],
5060
5262
  "security": [
5061
5263
  {
@@ -5130,7 +5332,7 @@
5130
5332
  "operationId": "listCommentRepliesInSpace",
5131
5333
  "summary": "List all the replies to a comment in a space.",
5132
5334
  "tags": [
5133
- "spaces"
5335
+ "comments"
5134
5336
  ],
5135
5337
  "security": [
5136
5338
  {
@@ -5192,7 +5394,7 @@
5192
5394
  "operationId": "postCommentReplyInSpace",
5193
5395
  "summary": "Post a new reply to a comment in a space.",
5194
5396
  "tags": [
5195
- "spaces"
5397
+ "comments"
5196
5398
  ],
5197
5399
  "security": [
5198
5400
  {
@@ -5239,7 +5441,7 @@
5239
5441
  "operationId": "getCommentReplyInSpace",
5240
5442
  "summary": "Get a comment reply in a space.",
5241
5443
  "tags": [
5242
- "spaces"
5444
+ "comments"
5243
5445
  ],
5244
5446
  "security": [
5245
5447
  {
@@ -5280,7 +5482,7 @@
5280
5482
  "operationId": "updateCommentReplyInSpace",
5281
5483
  "summary": "Update a comment reply in a space.",
5282
5484
  "tags": [
5283
- "spaces"
5485
+ "comments"
5284
5486
  ],
5285
5487
  "security": [
5286
5488
  {
@@ -5328,7 +5530,7 @@
5328
5530
  "operationId": "deleteCommentReplyInSpace",
5329
5531
  "summary": "Delete a comment reply in a space.",
5330
5532
  "tags": [
5331
- "spaces"
5533
+ "comments"
5332
5534
  ],
5333
5535
  "security": [
5334
5536
  {
@@ -6705,6 +6907,14 @@
6705
6907
  "schema": {
6706
6908
  "type": "boolean"
6707
6909
  }
6910
+ },
6911
+ {
6912
+ "name": "contentSources",
6913
+ "in": "query",
6914
+ "description": "If true, returns only integrations with contentSources. If false, returns only integrations without contentSources.",
6915
+ "schema": {
6916
+ "type": "boolean"
6917
+ }
6708
6918
  }
6709
6919
  ],
6710
6920
  "responses": {
@@ -7224,6 +7434,9 @@
7224
7434
  "get": {
7225
7435
  "operationId": "renderIntegrationUIWithGet",
7226
7436
  "summary": "Render an integration UI in the context of an installation.",
7437
+ "tags": [
7438
+ "integrations"
7439
+ ],
7227
7440
  "parameters": [
7228
7441
  {
7229
7442
  "$ref": "#/components/parameters/integrationName"
@@ -7264,6 +7477,9 @@
7264
7477
  "post": {
7265
7478
  "operationId": "renderIntegrationUIWithPost",
7266
7479
  "summary": "Render an integration UI in the context of an installation.",
7480
+ "tags": [
7481
+ "integrations"
7482
+ ],
7267
7483
  "parameters": [
7268
7484
  {
7269
7485
  "$ref": "#/components/parameters/integrationName"
@@ -7696,6 +7912,9 @@
7696
7912
  "patch": {
7697
7913
  "operationId": "updateIntegrationSpaceInstallation",
7698
7914
  "summary": "Update external IDs and configurations of an integration's installation for a space",
7915
+ "tags": [
7916
+ "integrations"
7917
+ ],
7699
7918
  "parameters": [
7700
7919
  {
7701
7920
  "$ref": "#/components/parameters/integrationName"
@@ -7745,6 +7964,9 @@
7745
7964
  "delete": {
7746
7965
  "operationId": "uninstallIntegrationFromSpace",
7747
7966
  "summary": "Uninstall the integration from a space",
7967
+ "tags": [
7968
+ "integrations"
7969
+ ],
7748
7970
  "parameters": [
7749
7971
  {
7750
7972
  "$ref": "#/components/parameters/integrationName"
@@ -7949,6 +8171,9 @@
7949
8171
  "patch": {
7950
8172
  "operationId": "updateIntegrationSiteInstallation",
7951
8173
  "summary": "Update external IDs and configurations of an integration's installation for a site",
8174
+ "tags": [
8175
+ "integrations"
8176
+ ],
7952
8177
  "parameters": [
7953
8178
  {
7954
8179
  "$ref": "#/components/parameters/integrationName"
@@ -7998,6 +8223,9 @@
7998
8223
  "delete": {
7999
8224
  "operationId": "uninstallIntegrationFromSite",
8000
8225
  "summary": "Uninstall the integration from a site",
8226
+ "tags": [
8227
+ "integrations"
8228
+ ],
8001
8229
  "parameters": [
8002
8230
  {
8003
8231
  "$ref": "#/components/parameters/integrationName"
@@ -8072,50 +8300,6 @@
8072
8300
  "$ref": "#/components/responses/UnexpectedError"
8073
8301
  }
8074
8302
  }
8075
- },
8076
- "post": {
8077
- "operationId": "createOrganization",
8078
- "summary": "Create an organization",
8079
- "tags": [
8080
- "organizations"
8081
- ],
8082
- "security": [
8083
- {
8084
- "user-internal": []
8085
- }
8086
- ],
8087
- "requestBody": {
8088
- "content": {
8089
- "application/json": {
8090
- "schema": {
8091
- "$ref": "#/components/schemas/CreateOrganization"
8092
- }
8093
- }
8094
- }
8095
- },
8096
- "responses": {
8097
- "201": {
8098
- "description": "Organization created",
8099
- "headers": {
8100
- "Location": {
8101
- "description": "API URL for the newly created organization",
8102
- "schema": {
8103
- "type": "string"
8104
- }
8105
- }
8106
- },
8107
- "content": {
8108
- "application/json": {
8109
- "schema": {
8110
- "$ref": "#/components/schemas/Organization"
8111
- }
8112
- }
8113
- }
8114
- },
8115
- "default": {
8116
- "$ref": "#/components/responses/UnexpectedError"
8117
- }
8118
- }
8119
8303
  }
8120
8304
  },
8121
8305
  "/orgs/{organizationId}": {
@@ -8151,35 +8335,6 @@
8151
8335
  }
8152
8336
  }
8153
8337
  },
8154
- "delete": {
8155
- "operationId": "deleteOrganizationById",
8156
- "summary": "Delete an organization by its ID",
8157
- "tags": [
8158
- "organizations"
8159
- ],
8160
- "security": [
8161
- {
8162
- "user-internal": []
8163
- }
8164
- ],
8165
- "parameters": [
8166
- {
8167
- "$ref": "#/components/parameters/organizationId"
8168
- }
8169
- ],
8170
- "responses": {
8171
- "205": {
8172
- "description": "The organization has been successfully deleted"
8173
- },
8174
- "404": {
8175
- "description": "No matching organization found for given id",
8176
- "$ref": "#/components/responses/NotFoundError"
8177
- },
8178
- "default": {
8179
- "$ref": "#/components/responses/UnexpectedError"
8180
- }
8181
- }
8182
- },
8183
8338
  "patch": {
8184
8339
  "operationId": "updateOrganizationById",
8185
8340
  "summary": "Update an organization by its ID",
@@ -8278,42 +8433,6 @@
8278
8433
  }
8279
8434
  }
8280
8435
  },
8281
- "/orgs/{organizationId}/content": {
8282
- "get": {
8283
- "operationId": "getOrganizationAllContent",
8284
- "summary": "List all content in an organization",
8285
- "description": "Lists all spaces, collections, sites accessible by current user in the current organization. This endpoint is internal for now as the data structure is optimized for the sidebar.\n",
8286
- "tags": [
8287
- "organizations",
8288
- "critical"
8289
- ],
8290
- "security": [
8291
- {
8292
- "user-internal": []
8293
- }
8294
- ],
8295
- "parameters": [
8296
- {
8297
- "$ref": "#/components/parameters/organizationId"
8298
- }
8299
- ],
8300
- "responses": {
8301
- "200": {
8302
- "description": "OK",
8303
- "content": {
8304
- "application/json": {
8305
- "schema": {
8306
- "$ref": "#/components/schemas/OrganizationAllContent"
8307
- }
8308
- }
8309
- }
8310
- },
8311
- "default": {
8312
- "$ref": "#/components/responses/UnexpectedError"
8313
- }
8314
- }
8315
- }
8316
- },
8317
8436
  "/orgs/{organizationId}/members": {
8318
8437
  "get": {
8319
8438
  "operationId": "listMembersInOrganizationById",
@@ -9301,16 +9420,16 @@
9301
9420
  }
9302
9421
  }
9303
9422
  },
9304
- "/orgs/{organizationId}/content-link-invites": {
9423
+ "/orgs/{organizationId}/link-invites": {
9305
9424
  "get": {
9306
- "operationId": "listOrganizationContentInviteLinks",
9307
- "summary": "List invite links to content in an organization",
9425
+ "operationId": "listOrganizationInviteLinks",
9426
+ "summary": "List invite links to an organization",
9308
9427
  "tags": [
9309
9428
  "organizations"
9310
9429
  ],
9311
9430
  "security": [
9312
9431
  {
9313
- "user-internal": []
9432
+ "user": []
9314
9433
  }
9315
9434
  ],
9316
9435
  "parameters": [
@@ -9322,27 +9441,220 @@
9322
9441
  },
9323
9442
  {
9324
9443
  "$ref": "#/components/parameters/listLimit"
9444
+ }
9445
+ ],
9446
+ "responses": {
9447
+ "200": {
9448
+ "description": "List of invite links in the organization.",
9449
+ "content": {
9450
+ "application/json": {
9451
+ "schema": {
9452
+ "allOf": [
9453
+ {
9454
+ "$ref": "#/components/schemas/List"
9455
+ },
9456
+ {
9457
+ "type": "object",
9458
+ "required": [
9459
+ "items"
9460
+ ],
9461
+ "properties": {
9462
+ "items": {
9463
+ "type": "array",
9464
+ "items": {
9465
+ "$ref": "#/components/schemas/InviteLinkToOrganization"
9466
+ }
9467
+ }
9468
+ }
9469
+ }
9470
+ ]
9471
+ }
9472
+ }
9473
+ }
9325
9474
  },
9475
+ "default": {
9476
+ "$ref": "#/components/responses/UnexpectedError"
9477
+ }
9478
+ }
9479
+ },
9480
+ "post": {
9481
+ "operationId": "createOrganizationInvite",
9482
+ "summary": "Create a new organization invite",
9483
+ "tags": [
9484
+ "organizations"
9485
+ ],
9486
+ "security": [
9326
9487
  {
9327
- "name": "space",
9328
- "in": "query",
9329
- "description": "If specified, only return invite links that provide specific permissions on the given space.",
9330
- "schema": {
9331
- "type": "string"
9488
+ "user": []
9489
+ }
9490
+ ],
9491
+ "parameters": [
9492
+ {
9493
+ "$ref": "#/components/parameters/organizationId"
9494
+ }
9495
+ ],
9496
+ "requestBody": {
9497
+ "required": true,
9498
+ "content": {
9499
+ "application/json": {
9500
+ "schema": {
9501
+ "$ref": "#/components/schemas/CreateOrganizationInvite"
9502
+ }
9503
+ }
9504
+ }
9505
+ },
9506
+ "responses": {
9507
+ "201": {
9508
+ "description": "The organization invite has been created",
9509
+ "content": {
9510
+ "application/json": {
9511
+ "schema": {
9512
+ "$ref": "#/components/schemas/OrganizationInviteLink"
9513
+ }
9514
+ }
9332
9515
  }
9333
9516
  },
9517
+ "default": {
9518
+ "$ref": "#/components/responses/UnexpectedError"
9519
+ }
9520
+ }
9521
+ }
9522
+ },
9523
+ "/orgs/{organizationId}/link-invites/{inviteId}": {
9524
+ "patch": {
9525
+ "operationId": "updateOrganizationInviteById",
9526
+ "summary": "Update an organization invite.",
9527
+ "tags": [
9528
+ "organizations"
9529
+ ],
9530
+ "security": [
9531
+ {
9532
+ "user": []
9533
+ }
9534
+ ],
9535
+ "parameters": [
9334
9536
  {
9335
- "name": "collection",
9537
+ "$ref": "#/components/parameters/organizationId"
9538
+ },
9539
+ {
9540
+ "$ref": "#/components/parameters/inviteId"
9541
+ }
9542
+ ],
9543
+ "requestBody": {
9544
+ "required": true,
9545
+ "content": {
9546
+ "application/json": {
9547
+ "schema": {
9548
+ "oneOf": [
9549
+ {
9550
+ "type": "object",
9551
+ "description": "Update role of an organization invite",
9552
+ "properties": {
9553
+ "role": {
9554
+ "$ref": "#/components/schemas/MemberRoleOrGuest"
9555
+ }
9556
+ },
9557
+ "required": [
9558
+ "role"
9559
+ ]
9560
+ },
9561
+ {
9562
+ "type": "object",
9563
+ "description": "Update level of an organization content invite",
9564
+ "properties": {
9565
+ "level": {
9566
+ "$ref": "#/components/schemas/MemberRoleOrGuest"
9567
+ }
9568
+ },
9569
+ "required": [
9570
+ "level"
9571
+ ]
9572
+ }
9573
+ ]
9574
+ }
9575
+ }
9576
+ }
9577
+ },
9578
+ "responses": {
9579
+ "200": {
9580
+ "description": "The organization invite has been updated",
9581
+ "content": {
9582
+ "application/json": {
9583
+ "schema": {
9584
+ "$ref": "#/components/schemas/OrganizationInviteLink"
9585
+ }
9586
+ }
9587
+ }
9588
+ },
9589
+ "default": {
9590
+ "$ref": "#/components/responses/UnexpectedError"
9591
+ }
9592
+ }
9593
+ },
9594
+ "delete": {
9595
+ "operationId": "deleteOrganizationInviteById",
9596
+ "summary": "Deletes an organization invite.",
9597
+ "tags": [
9598
+ "organizations"
9599
+ ],
9600
+ "security": [
9601
+ {
9602
+ "user": []
9603
+ }
9604
+ ],
9605
+ "parameters": [
9606
+ {
9607
+ "$ref": "#/components/parameters/organizationId"
9608
+ },
9609
+ {
9610
+ "$ref": "#/components/parameters/inviteId"
9611
+ }
9612
+ ],
9613
+ "responses": {
9614
+ "205": {
9615
+ "description": "The organization invite has been deleted"
9616
+ },
9617
+ "default": {
9618
+ "$ref": "#/components/responses/UnexpectedError"
9619
+ }
9620
+ }
9621
+ }
9622
+ },
9623
+ "/orgs/{organizationId}/search": {
9624
+ "get": {
9625
+ "operationId": "searchOrganizationContent",
9626
+ "summary": "Search content in an organization",
9627
+ "tags": [
9628
+ "organizations"
9629
+ ],
9630
+ "security": [
9631
+ {
9632
+ "user": []
9633
+ }
9634
+ ],
9635
+ "parameters": [
9636
+ {
9637
+ "name": "query",
9336
9638
  "in": "query",
9337
- "description": "If specified, only return invite links that provide permissions on the given collection.",
9639
+ "required": true,
9338
9640
  "schema": {
9339
- "type": "string"
9641
+ "type": "string",
9642
+ "maxLength": 512
9340
9643
  }
9644
+ },
9645
+ {
9646
+ "$ref": "#/components/parameters/organizationId"
9647
+ },
9648
+ {
9649
+ "$ref": "#/components/parameters/listPage"
9650
+ },
9651
+ {
9652
+ "$ref": "#/components/parameters/listLimit"
9341
9653
  }
9342
9654
  ],
9343
9655
  "responses": {
9344
9656
  "200": {
9345
- "description": "List of invite links to content in the organization.",
9657
+ "description": "OK",
9346
9658
  "content": {
9347
9659
  "application/json": {
9348
9660
  "schema": {
@@ -9359,14 +9671,7 @@
9359
9671
  "items": {
9360
9672
  "type": "array",
9361
9673
  "items": {
9362
- "oneOf": [
9363
- {
9364
- "$ref": "#/components/schemas/InviteLinkToCollection"
9365
- },
9366
- {
9367
- "$ref": "#/components/schemas/InviteLinkToSpace"
9368
- }
9369
- ]
9674
+ "$ref": "#/components/schemas/SearchSpaceResult"
9370
9675
  }
9371
9676
  }
9372
9677
  }
@@ -9382,646 +9687,11 @@
9382
9687
  }
9383
9688
  }
9384
9689
  },
9385
- "/orgs/{organizationId}/link-invites": {
9690
+ "/orgs/{organizationId}/spaces": {
9386
9691
  "get": {
9387
- "operationId": "listOrganizationInviteLinks",
9388
- "summary": "List invite links to an organization",
9389
- "tags": [
9390
- "organizations"
9391
- ],
9392
- "security": [
9393
- {
9394
- "user": []
9395
- }
9396
- ],
9397
- "parameters": [
9398
- {
9399
- "$ref": "#/components/parameters/organizationId"
9400
- },
9401
- {
9402
- "$ref": "#/components/parameters/listPage"
9403
- },
9404
- {
9405
- "$ref": "#/components/parameters/listLimit"
9406
- }
9407
- ],
9408
- "responses": {
9409
- "200": {
9410
- "description": "List of invite links in the organization.",
9411
- "content": {
9412
- "application/json": {
9413
- "schema": {
9414
- "allOf": [
9415
- {
9416
- "$ref": "#/components/schemas/List"
9417
- },
9418
- {
9419
- "type": "object",
9420
- "required": [
9421
- "items"
9422
- ],
9423
- "properties": {
9424
- "items": {
9425
- "type": "array",
9426
- "items": {
9427
- "$ref": "#/components/schemas/InviteLinkToOrganization"
9428
- }
9429
- }
9430
- }
9431
- }
9432
- ]
9433
- }
9434
- }
9435
- }
9436
- },
9437
- "default": {
9438
- "$ref": "#/components/responses/UnexpectedError"
9439
- }
9440
- }
9441
- },
9442
- "post": {
9443
- "operationId": "createOrganizationInvite",
9444
- "summary": "Create a new organization invite",
9445
- "tags": [
9446
- "organizations"
9447
- ],
9448
- "security": [
9449
- {
9450
- "user": []
9451
- }
9452
- ],
9453
- "parameters": [
9454
- {
9455
- "$ref": "#/components/parameters/organizationId"
9456
- }
9457
- ],
9458
- "requestBody": {
9459
- "required": true,
9460
- "content": {
9461
- "application/json": {
9462
- "schema": {
9463
- "$ref": "#/components/schemas/CreateOrganizationInvite"
9464
- }
9465
- }
9466
- }
9467
- },
9468
- "responses": {
9469
- "201": {
9470
- "description": "The organization invite has been created",
9471
- "content": {
9472
- "application/json": {
9473
- "schema": {
9474
- "$ref": "#/components/schemas/OrganizationInviteLink"
9475
- }
9476
- }
9477
- }
9478
- },
9479
- "default": {
9480
- "$ref": "#/components/responses/UnexpectedError"
9481
- }
9482
- }
9483
- }
9484
- },
9485
- "/orgs/{organizationId}/link-invites/{inviteId}": {
9486
- "patch": {
9487
- "operationId": "updateOrganizationInviteById",
9488
- "summary": "Update an organization invite.",
9489
- "tags": [
9490
- "organizations"
9491
- ],
9492
- "security": [
9493
- {
9494
- "user": []
9495
- }
9496
- ],
9497
- "parameters": [
9498
- {
9499
- "$ref": "#/components/parameters/organizationId"
9500
- },
9501
- {
9502
- "$ref": "#/components/parameters/inviteId"
9503
- }
9504
- ],
9505
- "requestBody": {
9506
- "required": true,
9507
- "content": {
9508
- "application/json": {
9509
- "schema": {
9510
- "oneOf": [
9511
- {
9512
- "type": "object",
9513
- "description": "Update role of an organization invite",
9514
- "properties": {
9515
- "role": {
9516
- "$ref": "#/components/schemas/MemberRoleOrGuest"
9517
- }
9518
- },
9519
- "required": [
9520
- "role"
9521
- ]
9522
- },
9523
- {
9524
- "type": "object",
9525
- "description": "Update level of an organization content invite",
9526
- "properties": {
9527
- "level": {
9528
- "$ref": "#/components/schemas/MemberRoleOrGuest"
9529
- }
9530
- },
9531
- "required": [
9532
- "level"
9533
- ]
9534
- }
9535
- ]
9536
- }
9537
- }
9538
- }
9539
- },
9540
- "responses": {
9541
- "200": {
9542
- "description": "The organization invite has been updated",
9543
- "content": {
9544
- "application/json": {
9545
- "schema": {
9546
- "$ref": "#/components/schemas/OrganizationInviteLink"
9547
- }
9548
- }
9549
- }
9550
- },
9551
- "default": {
9552
- "$ref": "#/components/responses/UnexpectedError"
9553
- }
9554
- }
9555
- },
9556
- "delete": {
9557
- "operationId": "deleteOrganizationInviteById",
9558
- "summary": "Deletes an organization invite.",
9559
- "tags": [
9560
- "organizations"
9561
- ],
9562
- "security": [
9563
- {
9564
- "user": []
9565
- }
9566
- ],
9567
- "parameters": [
9568
- {
9569
- "$ref": "#/components/parameters/organizationId"
9570
- },
9571
- {
9572
- "$ref": "#/components/parameters/inviteId"
9573
- }
9574
- ],
9575
- "responses": {
9576
- "205": {
9577
- "description": "The organization invite has been deleted"
9578
- },
9579
- "default": {
9580
- "$ref": "#/components/responses/UnexpectedError"
9581
- }
9582
- }
9583
- }
9584
- },
9585
- "/orgs/{organizationId}/billing": {
9586
- "post": {
9587
- "operationId": "upgradeOrganizationPlan",
9588
- "summary": "Upgrade an organization's billing plan",
9589
- "tags": [
9590
- "organizations"
9591
- ],
9592
- "security": [
9593
- {
9594
- "user-internal": []
9595
- }
9596
- ],
9597
- "parameters": [
9598
- {
9599
- "$ref": "#/components/parameters/organizationId"
9600
- },
9601
- {
9602
- "$ref": "#/components/parameters/successReturnURL"
9603
- },
9604
- {
9605
- "$ref": "#/components/parameters/cancelReturnURL"
9606
- }
9607
- ],
9608
- "responses": {
9609
- "200": {
9610
- "description": "OK",
9611
- "content": {
9612
- "application/json": {
9613
- "schema": {
9614
- "$ref": "#/components/schemas/BillingUpgrade"
9615
- }
9616
- }
9617
- }
9618
- },
9619
- "default": {
9620
- "$ref": "#/components/responses/UnexpectedError"
9621
- }
9622
- },
9623
- "requestBody": {
9624
- "required": true,
9625
- "content": {
9626
- "application/json": {
9627
- "schema": {
9628
- "$ref": "#/components/schemas/UpgradeOrganizationBilling"
9629
- }
9630
- }
9631
- }
9632
- }
9633
- }
9634
- },
9635
- "/orgs/{organizationId}/billing/migrate": {
9636
- "post": {
9637
- "operationId": "migrateOrganizationPlan",
9638
- "summary": "Migrate an organization's legacy billing plan to new pricing",
9639
- "tags": [
9640
- "organizations"
9641
- ],
9642
- "security": [
9643
- {
9644
- "user-internal": []
9645
- }
9646
- ],
9647
- "parameters": [
9648
- {
9649
- "$ref": "#/components/parameters/organizationId"
9650
- }
9651
- ],
9652
- "requestBody": {
9653
- "required": true,
9654
- "content": {
9655
- "application/json": {
9656
- "schema": {
9657
- "$ref": "#/components/schemas/MigrateOrganizationParameters"
9658
- }
9659
- }
9660
- }
9661
- },
9662
- "responses": {
9663
- "205": {
9664
- "description": "Organization migrated to new pricing"
9665
- },
9666
- "default": {
9667
- "$ref": "#/components/responses/UnexpectedError"
9668
- }
9669
- }
9670
- }
9671
- },
9672
- "/orgs/{organizationId}/billing/migrate/preview": {
9673
- "post": {
9674
- "operationId": "previewMigrateOrganizationPlan",
9675
- "summary": "Preview a migration of an organization to new pricing.",
9676
- "tags": [
9677
- "organizations"
9678
- ],
9679
- "security": [
9680
- {
9681
- "user-internal": []
9682
- }
9683
- ],
9684
- "parameters": [
9685
- {
9686
- "$ref": "#/components/parameters/organizationId"
9687
- }
9688
- ],
9689
- "requestBody": {
9690
- "required": true,
9691
- "content": {
9692
- "application/json": {
9693
- "schema": {
9694
- "$ref": "#/components/schemas/MigrateOrganizationParameters"
9695
- }
9696
- }
9697
- }
9698
- },
9699
- "responses": {
9700
- "200": {
9701
- "description": "OK",
9702
- "content": {
9703
- "application/json": {
9704
- "schema": {
9705
- "type": "object",
9706
- "properties": {
9707
- "totals": {
9708
- "type": "object",
9709
- "properties": {
9710
- "members": {
9711
- "description": "Count of all members",
9712
- "type": "number"
9713
- },
9714
- "premiumSites": {
9715
- "description": "Count of all premium sites",
9716
- "type": "number"
9717
- },
9718
- "ultimateSites": {
9719
- "description": "Count of all ultimate sites",
9720
- "type": "number"
9721
- }
9722
- },
9723
- "required": [
9724
- "members",
9725
- "premiumSites",
9726
- "ultimateSites"
9727
- ]
9728
- },
9729
- "invoice": {
9730
- "$ref": "#/components/schemas/BillingInvoicePreview"
9731
- },
9732
- "discount": {
9733
- "$ref": "#/components/schemas/BillingDiscount"
9734
- }
9735
- },
9736
- "required": [
9737
- "totals"
9738
- ]
9739
- }
9740
- }
9741
- }
9742
- },
9743
- "default": {
9744
- "$ref": "#/components/responses/UnexpectedError"
9745
- }
9746
- }
9747
- }
9748
- },
9749
- "/orgs/{organizationId}/billing/migrate/sites": {
9750
- "get": {
9751
- "operationId": "listSitesToMigrate",
9752
- "summary": "Lists all legacy sites of an org and computes their new type and contributing features",
9753
- "tags": [
9754
- "organizations",
9755
- "sites"
9756
- ],
9757
- "security": [
9758
- {
9759
- "user-internal": []
9760
- }
9761
- ],
9762
- "parameters": [
9763
- {
9764
- "$ref": "#/components/parameters/organizationId"
9765
- },
9766
- {
9767
- "$ref": "#/components/parameters/listPage"
9768
- },
9769
- {
9770
- "$ref": "#/components/parameters/listLimit"
9771
- }
9772
- ],
9773
- "responses": {
9774
- "200": {
9775
- "description": "OK",
9776
- "content": {
9777
- "application/json": {
9778
- "schema": {
9779
- "allOf": [
9780
- {
9781
- "$ref": "#/components/schemas/List"
9782
- },
9783
- {
9784
- "type": "object",
9785
- "required": [
9786
- "items"
9787
- ],
9788
- "properties": {
9789
- "items": {
9790
- "type": "array",
9791
- "items": {
9792
- "$ref": "#/components/schemas/SiteToMigrate"
9793
- }
9794
- }
9795
- }
9796
- }
9797
- ]
9798
- }
9799
- }
9800
- }
9801
- },
9802
- "default": {
9803
- "$ref": "#/components/responses/UnexpectedError"
9804
- }
9805
- }
9806
- }
9807
- },
9808
- "/orgs/{organizationId}/billing/portal": {
9809
- "get": {
9810
- "operationId": "getOrganizationBillingPortal",
9811
- "summary": "Get the billing portal for an organization",
9812
- "tags": [
9813
- "organizations"
9814
- ],
9815
- "security": [
9816
- {
9817
- "user-internal": []
9818
- }
9819
- ],
9820
- "parameters": [
9821
- {
9822
- "$ref": "#/components/parameters/organizationId"
9823
- }
9824
- ],
9825
- "responses": {
9826
- "200": {
9827
- "description": "OK",
9828
- "content": {
9829
- "application/json": {
9830
- "schema": {
9831
- "$ref": "#/components/schemas/BillingPortal"
9832
- }
9833
- }
9834
- }
9835
- },
9836
- "default": {
9837
- "$ref": "#/components/responses/UnexpectedError"
9838
- }
9839
- }
9840
- }
9841
- },
9842
- "/orgs/{organizationId}/billing/preview": {
9843
- "get": {
9844
- "operationId": "previewBillingInvoice",
9845
- "summary": "Generates a billing invoice preview for organizations without an active subscription",
9846
- "tags": [
9847
- "organizations"
9848
- ],
9849
- "security": [
9850
- {
9851
- "user-internal": []
9852
- }
9853
- ],
9854
- "parameters": [
9855
- {
9856
- "$ref": "#/components/parameters/organizationId"
9857
- },
9858
- {
9859
- "name": "interval",
9860
- "in": "query",
9861
- "required": true,
9862
- "description": "The desired billing interval plan",
9863
- "schema": {
9864
- "$ref": "#/components/schemas/BillingInterval"
9865
- }
9866
- },
9867
- {
9868
- "name": "product",
9869
- "in": "query",
9870
- "required": true,
9871
- "description": "The desired core plan",
9872
- "schema": {
9873
- "$ref": "#/components/schemas/BillingProduct"
9874
- }
9875
- },
9876
- {
9877
- "name": "members",
9878
- "in": "query",
9879
- "description": "The desired amount of members in the organization",
9880
- "schema": {
9881
- "type": "number"
9882
- }
9883
- },
9884
- {
9885
- "name": "premiumSites",
9886
- "in": "query",
9887
- "description": "The desired amount of published premium sites",
9888
- "schema": {
9889
- "type": "number"
9890
- }
9891
- },
9892
- {
9893
- "name": "ultimateSites",
9894
- "in": "query",
9895
- "description": "The desired amount of published ultimate sites",
9896
- "schema": {
9897
- "type": "number"
9898
- }
9899
- }
9900
- ],
9901
- "responses": {
9902
- "200": {
9903
- "description": "OK",
9904
- "content": {
9905
- "application/json": {
9906
- "schema": {
9907
- "$ref": "#/components/schemas/BillingInvoicePreview"
9908
- }
9909
- }
9910
- }
9911
- },
9912
- "default": {
9913
- "$ref": "#/components/responses/UnexpectedError"
9914
- }
9915
- }
9916
- }
9917
- },
9918
- "/orgs/{organizationId}/request_upgrade": {
9919
- "post": {
9920
- "operationId": "requestOrganizationUpgrade",
9921
- "summary": "Send a request to ask the organization's admin to upgrade it.",
9922
- "tags": [
9923
- "organizations"
9924
- ],
9925
- "security": [
9926
- {
9927
- "user-internal": []
9928
- }
9929
- ],
9930
- "parameters": [
9931
- {
9932
- "$ref": "#/components/parameters/organizationId"
9933
- }
9934
- ],
9935
- "responses": {
9936
- "200": {
9937
- "description": "OK",
9938
- "content": {
9939
- "application/json": {
9940
- "schema": {
9941
- "type": "object",
9942
- "properties": {}
9943
- }
9944
- }
9945
- }
9946
- },
9947
- "default": {
9948
- "$ref": "#/components/responses/UnexpectedError"
9949
- }
9950
- }
9951
- }
9952
- },
9953
- "/orgs/{organizationId}/search": {
9954
- "get": {
9955
- "operationId": "searchOrganizationContent",
9956
- "summary": "Search content in an organization",
9957
- "tags": [
9958
- "organizations"
9959
- ],
9960
- "security": [
9961
- {
9962
- "user": []
9963
- }
9964
- ],
9965
- "parameters": [
9966
- {
9967
- "name": "query",
9968
- "in": "query",
9969
- "required": true,
9970
- "schema": {
9971
- "type": "string",
9972
- "maxLength": 512
9973
- }
9974
- },
9975
- {
9976
- "$ref": "#/components/parameters/organizationId"
9977
- },
9978
- {
9979
- "$ref": "#/components/parameters/listPage"
9980
- },
9981
- {
9982
- "$ref": "#/components/parameters/listLimit"
9983
- }
9984
- ],
9985
- "responses": {
9986
- "200": {
9987
- "description": "OK",
9988
- "content": {
9989
- "application/json": {
9990
- "schema": {
9991
- "allOf": [
9992
- {
9993
- "$ref": "#/components/schemas/List"
9994
- },
9995
- {
9996
- "type": "object",
9997
- "required": [
9998
- "items"
9999
- ],
10000
- "properties": {
10001
- "items": {
10002
- "type": "array",
10003
- "items": {
10004
- "$ref": "#/components/schemas/SearchSpaceResult"
10005
- }
10006
- }
10007
- }
10008
- }
10009
- ]
10010
- }
10011
- }
10012
- }
10013
- },
10014
- "default": {
10015
- "$ref": "#/components/responses/UnexpectedError"
10016
- }
10017
- }
10018
- }
10019
- },
10020
- "/orgs/{organizationId}/spaces": {
10021
- "get": {
10022
- "operationId": "listSpacesInOrganizationById",
10023
- "summary": "List organization spaces",
10024
- "description": "Lists spaces for the specified organization.\n",
9692
+ "operationId": "listSpacesInOrganizationById",
9693
+ "summary": "List organization spaces",
9694
+ "description": "Lists spaces for the specified organization.\n",
10025
9695
  "tags": [
10026
9696
  "organizations"
10027
9697
  ],
@@ -11077,303 +10747,13 @@
11077
10747
  }
11078
10748
  }
11079
10749
  },
11080
- "/orgs/{organizationId}/usage": {
11081
- "get": {
11082
- "operationId": "getUsageForOrganizationById",
11083
- "summary": "Get all usage metrics for an organization",
11084
- "tags": [
11085
- "organizations",
11086
- "usage"
11087
- ],
11088
- "security": [
11089
- {
11090
- "user-internal": []
11091
- }
11092
- ],
11093
- "parameters": [
11094
- {
11095
- "$ref": "#/components/parameters/organizationId"
11096
- }
11097
- ],
11098
- "responses": {
11099
- "200": {
11100
- "description": "OK",
11101
- "content": {
11102
- "application/json": {
11103
- "schema": {
11104
- "$ref": "#/components/schemas/OrganizationUsage"
11105
- }
11106
- }
11107
- }
11108
- },
11109
- "default": {
11110
- "$ref": "#/components/responses/UnexpectedError"
11111
- }
11112
- }
11113
- }
11114
- },
11115
- "/orgs/{organizationId}/usage/collections": {
11116
- "get": {
11117
- "operationId": "getCollectionsUsageForOrganizationById",
11118
- "summary": "Get collections usage metrics for an organization",
11119
- "tags": [
11120
- "organizations",
11121
- "usage"
11122
- ],
11123
- "security": [
11124
- {
11125
- "user-internal": []
11126
- }
11127
- ],
11128
- "parameters": [
11129
- {
11130
- "$ref": "#/components/parameters/organizationId"
11131
- }
11132
- ],
11133
- "responses": {
11134
- "200": {
11135
- "description": "OK",
11136
- "content": {
11137
- "application/json": {
11138
- "schema": {
11139
- "type": "object",
11140
- "properties": {
11141
- "collections": {
11142
- "$ref": "#/components/schemas/OrganizationUsageCollections"
11143
- }
11144
- },
11145
- "required": [
11146
- "collections"
11147
- ]
11148
- }
11149
- }
11150
- }
11151
- },
11152
- "default": {
11153
- "$ref": "#/components/responses/UnexpectedError"
11154
- }
11155
- }
11156
- }
11157
- },
11158
- "/orgs/{organizationId}/usage/spaces": {
11159
- "get": {
11160
- "operationId": "getSpacesUsageForOrganizationById",
11161
- "summary": "Get spaces usage metrics for an organization",
11162
- "tags": [
11163
- "organizations",
11164
- "usage"
11165
- ],
11166
- "security": [
11167
- {
11168
- "user-internal": []
11169
- }
11170
- ],
11171
- "parameters": [
11172
- {
11173
- "$ref": "#/components/parameters/organizationId"
11174
- }
11175
- ],
11176
- "responses": {
11177
- "200": {
11178
- "description": "OK",
11179
- "content": {
11180
- "application/json": {
11181
- "schema": {
11182
- "type": "object",
11183
- "properties": {
11184
- "spaces": {
11185
- "$ref": "#/components/schemas/OrganizationUsageSpaces"
11186
- }
11187
- },
11188
- "required": [
11189
- "spaces"
11190
- ]
11191
- }
11192
- }
11193
- }
11194
- },
11195
- "default": {
11196
- "$ref": "#/components/responses/UnexpectedError"
11197
- }
11198
- }
11199
- }
11200
- },
11201
- "/orgs/{organizationId}/usage/sites": {
11202
- "get": {
11203
- "operationId": "getSitesUsageForOrganizationById",
11204
- "summary": "Get sites usage metrics for an organization",
11205
- "tags": [
11206
- "organizations",
11207
- "usage"
11208
- ],
11209
- "security": [
11210
- {
11211
- "user-internal": []
11212
- }
11213
- ],
11214
- "parameters": [
11215
- {
11216
- "$ref": "#/components/parameters/organizationId"
11217
- }
11218
- ],
11219
- "responses": {
11220
- "200": {
11221
- "description": "OK",
11222
- "content": {
11223
- "application/json": {
11224
- "schema": {
11225
- "type": "object",
11226
- "properties": {
11227
- "sites": {
11228
- "$ref": "#/components/schemas/OrganizationUsageSites"
11229
- }
11230
- },
11231
- "required": [
11232
- "sites"
11233
- ]
11234
- }
11235
- }
11236
- }
11237
- },
11238
- "default": {
11239
- "$ref": "#/components/responses/UnexpectedError"
11240
- }
11241
- }
11242
- }
11243
- },
11244
- "/orgs/{organizationId}/usage/teams": {
11245
- "get": {
11246
- "operationId": "getTeamsUsageForOrganizationById",
11247
- "summary": "Get teams usage metrics for an organization",
11248
- "tags": [
11249
- "organizations",
11250
- "usage"
11251
- ],
11252
- "security": [
11253
- {
11254
- "user-internal": []
11255
- }
11256
- ],
11257
- "parameters": [
11258
- {
11259
- "$ref": "#/components/parameters/organizationId"
11260
- }
11261
- ],
11262
- "responses": {
11263
- "200": {
11264
- "description": "OK",
11265
- "content": {
11266
- "application/json": {
11267
- "schema": {
11268
- "type": "object",
11269
- "properties": {
11270
- "teams": {
11271
- "$ref": "#/components/schemas/OrganizationUsageTeams"
11272
- }
11273
- },
11274
- "required": [
11275
- "teams"
11276
- ]
11277
- }
11278
- }
11279
- }
11280
- },
11281
- "default": {
11282
- "$ref": "#/components/responses/UnexpectedError"
11283
- }
11284
- }
11285
- }
11286
- },
11287
- "/orgs/{organizationId}/usage/members": {
11288
- "get": {
11289
- "operationId": "getMembersUsageForOrganizationById",
11290
- "summary": "Get members usage metrics for an organization",
11291
- "tags": [
11292
- "organizations",
11293
- "usage"
11294
- ],
11295
- "security": [
11296
- {
11297
- "user-internal": []
11298
- }
11299
- ],
11300
- "parameters": [
11301
- {
11302
- "$ref": "#/components/parameters/organizationId"
11303
- }
11304
- ],
11305
- "responses": {
11306
- "200": {
11307
- "description": "OK",
11308
- "content": {
11309
- "application/json": {
11310
- "schema": {
11311
- "type": "object",
11312
- "properties": {
11313
- "members": {
11314
- "$ref": "#/components/schemas/OrganizationUsageMembers"
11315
- }
11316
- },
11317
- "required": [
11318
- "members"
11319
- ]
11320
- }
11321
- }
11322
- }
11323
- },
11324
- "default": {
11325
- "$ref": "#/components/responses/UnexpectedError"
11326
- }
11327
- }
11328
- }
11329
- },
11330
- "/orgs/{organizationId}/usage/team-members": {
11331
- "get": {
11332
- "operationId": "getTeamMembersUsageForOrganizationById",
11333
- "summary": "Get team members usage metrics for an organization",
11334
- "tags": [
11335
- "organizations",
11336
- "usage"
11337
- ],
11338
- "security": [
11339
- {
11340
- "user-internal": []
11341
- }
11342
- ],
11343
- "parameters": [
11344
- {
11345
- "$ref": "#/components/parameters/organizationId"
11346
- }
11347
- ],
11348
- "responses": {
11349
- "200": {
11350
- "description": "OK",
11351
- "content": {
11352
- "application/json": {
11353
- "schema": {
11354
- "type": "object",
11355
- "properties": {
11356
- "teamMembers": {
11357
- "$ref": "#/components/schemas/OrganizationUsageTeamMembers"
11358
- }
11359
- },
11360
- "required": [
11361
- "teamMembers"
11362
- ]
11363
- }
11364
- }
11365
- }
11366
- },
11367
- "default": {
11368
- "$ref": "#/components/responses/UnexpectedError"
11369
- }
11370
- }
11371
- }
11372
- },
11373
10750
  "/orgs/{organizationId}/ask": {
11374
10751
  "post": {
11375
10752
  "operationId": "askInOrganization",
11376
10753
  "summary": "Ask a question.",
10754
+ "tags": [
10755
+ "search"
10756
+ ],
11377
10757
  "security": [
11378
10758
  {
11379
10759
  "user": []
@@ -11431,6 +10811,9 @@
11431
10811
  "get": {
11432
10812
  "operationId": "getRecommendedQuestionsInOrganization",
11433
10813
  "summary": "Get a list of questions recommended to be asked in an organization.",
10814
+ "tags": [
10815
+ "search"
10816
+ ],
11434
10817
  "parameters": [
11435
10818
  {
11436
10819
  "$ref": "#/components/parameters/organizationId"
@@ -11462,6 +10845,9 @@
11462
10845
  "get": {
11463
10846
  "operationId": "streamRecommendedQuestionsInOrganization",
11464
10847
  "summary": "Stream a list of questions recommended to be asked in an organization.",
10848
+ "tags": [
10849
+ "search"
10850
+ ],
11465
10851
  "parameters": [
11466
10852
  {
11467
10853
  "$ref": "#/components/parameters/organizationId"
@@ -11493,6 +10879,9 @@
11493
10879
  "get": {
11494
10880
  "operationId": "streamAskInOrganization",
11495
10881
  "summary": "Ask a question to an AI across spaces that is accessible by the currently authenticated target and stream the answer as a Server-Sent Events URL.",
10882
+ "tags": [
10883
+ "search"
10884
+ ],
11496
10885
  "security": [
11497
10886
  {
11498
10887
  "user": []
@@ -11717,49 +11106,6 @@
11717
11106
  }
11718
11107
  }
11719
11108
  },
11720
- "/orgs/{organizationId}/sites/publishing/checkout": {
11721
- "get": {
11722
- "operationId": "previewSitePublishCheckout",
11723
- "summary": "Preview checkout information upon publishing a site in the organization.",
11724
- "tags": [
11725
- "sites"
11726
- ],
11727
- "security": [
11728
- {
11729
- "user-internal": []
11730
- }
11731
- ],
11732
- "parameters": [
11733
- {
11734
- "$ref": "#/components/parameters/organizationId"
11735
- },
11736
- {
11737
- "in": "query",
11738
- "name": "plan",
11739
- "description": "The plan of the site to preview the checkout information for.",
11740
- "required": true,
11741
- "schema": {
11742
- "$ref": "#/components/schemas/SiteType"
11743
- }
11744
- }
11745
- ],
11746
- "responses": {
11747
- "200": {
11748
- "description": "OK",
11749
- "content": {
11750
- "application/json": {
11751
- "schema": {
11752
- "$ref": "#/components/schemas/BillingOperationPreviewResponse"
11753
- }
11754
- }
11755
- }
11756
- },
11757
- "default": {
11758
- "$ref": "#/components/responses/UnexpectedError"
11759
- }
11760
- }
11761
- }
11762
- },
11763
11109
  "/orgs/{organizationId}/sites/{siteId}": {
11764
11110
  "get": {
11765
11111
  "operationId": "getSiteById",
@@ -12309,188 +11655,6 @@
12309
11655
  }
12310
11656
  }
12311
11657
  },
12312
- "/orgs/{organizationId}/sites/{siteId}/plan": {
12313
- "post": {
12314
- "operationId": "updateSitePlan",
12315
- "summary": "Update the site plan.",
12316
- "tags": [
12317
- "sites"
12318
- ],
12319
- "security": [
12320
- {
12321
- "user-internal": []
12322
- }
12323
- ],
12324
- "parameters": [
12325
- {
12326
- "$ref": "#/components/parameters/organizationId"
12327
- },
12328
- {
12329
- "$ref": "#/components/parameters/siteId"
12330
- },
12331
- {
12332
- "$ref": "#/components/parameters/successReturnURL"
12333
- },
12334
- {
12335
- "$ref": "#/components/parameters/cancelReturnURL"
12336
- }
12337
- ],
12338
- "requestBody": {
12339
- "required": true,
12340
- "content": {
12341
- "application/json": {
12342
- "schema": {
12343
- "type": "object",
12344
- "properties": {
12345
- "plan": {
12346
- "$ref": "#/components/schemas/SiteType"
12347
- },
12348
- "interval": {
12349
- "description": "Desired interval for new subscriptions. Defaults to the existing billing interval.",
12350
- "$ref": "#/components/schemas/BillingInterval"
12351
- },
12352
- "reason": {
12353
- "type": "string",
12354
- "description": "Reason that triggered the billing upgrade"
12355
- }
12356
- },
12357
- "required": [
12358
- "plan"
12359
- ]
12360
- }
12361
- }
12362
- }
12363
- },
12364
- "responses": {
12365
- "200": {
12366
- "description": "OK",
12367
- "content": {
12368
- "application/json": {
12369
- "schema": {
12370
- "oneOf": [
12371
- {
12372
- "type": "object",
12373
- "required": [
12374
- "type",
12375
- "sessionId"
12376
- ],
12377
- "properties": {
12378
- "type": {
12379
- "description": "User must checkout to complete the update.",
12380
- "type": "string",
12381
- "enum": [
12382
- "checkout"
12383
- ]
12384
- },
12385
- "sessionId": {
12386
- "type": "string",
12387
- "description": "Stripe payment session ID"
12388
- }
12389
- }
12390
- },
12391
- {
12392
- "type": "object",
12393
- "required": [
12394
- "type",
12395
- "sessionId"
12396
- ],
12397
- "properties": {
12398
- "type": {
12399
- "description": "User needs to go through the legacy update flow.",
12400
- "type": "string",
12401
- "enum": [
12402
- "legacy-checkout"
12403
- ]
12404
- },
12405
- "sessionId": {
12406
- "type": "string",
12407
- "description": "Stripe payment session ID"
12408
- }
12409
- }
12410
- },
12411
- {
12412
- "type": "object",
12413
- "required": [
12414
- "type"
12415
- ],
12416
- "properties": {
12417
- "type": {
12418
- "description": "The site plan was successfully updated.",
12419
- "type": "string",
12420
- "enum": [
12421
- "success"
12422
- ]
12423
- },
12424
- "outcome": {
12425
- "description": "* `upgraded`: Subscription was upgraded to include the site\n* `downgraded`: Subscription was downgraded by removing the site\n* `no-payment-changes`: No impact on subscription (e.g. trial, unpublished)\n",
12426
- "type": "string",
12427
- "enum": [
12428
- "upgraded",
12429
- "downgraded",
12430
- "no-payment-changes"
12431
- ]
12432
- }
12433
- }
12434
- }
12435
- ]
12436
- }
12437
- }
12438
- }
12439
- },
12440
- "default": {
12441
- "$ref": "#/components/responses/UnexpectedError"
12442
- }
12443
- }
12444
- },
12445
- "get": {
12446
- "operationId": "previewSitePlanUpdate",
12447
- "summary": "Preview an upgrade to a site plan, returning checkout information.",
12448
- "tags": [
12449
- "sites"
12450
- ],
12451
- "security": [
12452
- {
12453
- "user-internal": []
12454
- }
12455
- ],
12456
- "parameters": [
12457
- {
12458
- "$ref": "#/components/parameters/organizationId"
12459
- },
12460
- {
12461
- "$ref": "#/components/parameters/siteId"
12462
- },
12463
- {
12464
- "name": "plan",
12465
- "in": "query",
12466
- "required": true,
12467
- "description": "The desired site plan",
12468
- "schema": {
12469
- "$ref": "#/components/schemas/SiteType"
12470
- }
12471
- }
12472
- ],
12473
- "responses": {
12474
- "200": {
12475
- "description": "OK",
12476
- "content": {
12477
- "application/json": {
12478
- "schema": {
12479
- "$ref": "#/components/schemas/BillingOperationPreviewResponse"
12480
- }
12481
- }
12482
- }
12483
- },
12484
- "404": {
12485
- "description": "No matching site found",
12486
- "$ref": "#/components/responses/NotFoundError"
12487
- },
12488
- "default": {
12489
- "$ref": "#/components/responses/UnexpectedError"
12490
- }
12491
- }
12492
- }
12493
- },
12494
11658
  "/orgs/{organizationId}/sites/{siteId}/publishing/auth": {
12495
11659
  "get": {
12496
11660
  "operationId": "getSitePublishingAuthById",
@@ -12554,202 +11718,7 @@
12554
11718
  "content": {
12555
11719
  "application/json": {
12556
11720
  "schema": {
12557
- "$ref": "#/components/schemas/SitePublishingAuthUpdate"
12558
- }
12559
- }
12560
- }
12561
- },
12562
- "responses": {
12563
- "200": {
12564
- "description": "OK",
12565
- "content": {
12566
- "application/json": {
12567
- "schema": {
12568
- "$ref": "#/components/schemas/SitePublishingAuth"
12569
- }
12570
- }
12571
- }
12572
- },
12573
- "400": {
12574
- "$ref": "#/components/responses/BadRequestError"
12575
- },
12576
- "default": {
12577
- "$ref": "#/components/responses/UnexpectedError"
12578
- }
12579
- }
12580
- }
12581
- },
12582
- "/orgs/{organizationId}/sites/{siteId}/publishing/auth/regenerate": {
12583
- "post": {
12584
- "operationId": "regenerateSitePublishingAuthById",
12585
- "summary": "Regenerate the publishing authentication settings for a site. This will re-generate the private key.",
12586
- "tags": [
12587
- "sites"
12588
- ],
12589
- "security": [
12590
- {
12591
- "user": []
12592
- }
12593
- ],
12594
- "parameters": [
12595
- {
12596
- "$ref": "#/components/parameters/organizationId"
12597
- },
12598
- {
12599
- "$ref": "#/components/parameters/siteId"
12600
- }
12601
- ],
12602
- "responses": {
12603
- "200": {
12604
- "description": "OK",
12605
- "content": {
12606
- "application/json": {
12607
- "schema": {
12608
- "$ref": "#/components/schemas/SitePublishingAuth"
12609
- }
12610
- }
12611
- }
12612
- },
12613
- "400": {
12614
- "$ref": "#/components/responses/BadRequestError"
12615
- },
12616
- "default": {
12617
- "$ref": "#/components/responses/UnexpectedError"
12618
- }
12619
- }
12620
- }
12621
- },
12622
- "/orgs/{organizationId}/sites/{siteId}/publishing/preview": {
12623
- "get": {
12624
- "operationId": "getSitePublishingPreviewById",
12625
- "summary": "Get a URL to preview the published content of a site. The URL will be valid for 1 hour.",
12626
- "tags": [
12627
- "sites"
12628
- ],
12629
- "security": [
12630
- {
12631
- "user": []
12632
- }
12633
- ],
12634
- "parameters": [
12635
- {
12636
- "$ref": "#/components/parameters/organizationId"
12637
- },
12638
- {
12639
- "$ref": "#/components/parameters/siteId"
12640
- },
12641
- {
12642
- "name": "siteSpace",
12643
- "in": "query",
12644
- "description": "ID of the site-space to preview. If not provided, the default site-space will be used.",
12645
- "schema": {
12646
- "type": "string"
12647
- }
12648
- },
12649
- {
12650
- "name": "claims",
12651
- "in": "query",
12652
- "description": "Rison encoded string of attributes/assertions about the visitor for which we want to preview the site.",
12653
- "schema": {
12654
- "type": "string"
12655
- }
12656
- }
12657
- ],
12658
- "responses": {
12659
- "200": {
12660
- "description": "OK",
12661
- "content": {
12662
- "application/json": {
12663
- "schema": {
12664
- "type": "object",
12665
- "properties": {
12666
- "url": {
12667
- "$ref": "#/components/schemas/URL"
12668
- }
12669
- },
12670
- "required": [
12671
- "url"
12672
- ]
12673
- }
12674
- }
12675
- }
12676
- },
12677
- "400": {
12678
- "$ref": "#/components/responses/BadRequestError"
12679
- },
12680
- "default": {
12681
- "$ref": "#/components/responses/UnexpectedError"
12682
- }
12683
- }
12684
- }
12685
- },
12686
- "/orgs/{organizationId}/sites/{siteId}/customization": {
12687
- "get": {
12688
- "operationId": "getSiteCustomizationById",
12689
- "summary": "Get the customization configuration for a site.",
12690
- "tags": [
12691
- "sites"
12692
- ],
12693
- "security": [
12694
- {
12695
- "user": []
12696
- }
12697
- ],
12698
- "parameters": [
12699
- {
12700
- "$ref": "#/components/parameters/organizationId"
12701
- },
12702
- {
12703
- "$ref": "#/components/parameters/siteId"
12704
- },
12705
- {
12706
- "$ref": "#/components/parameters/siteCustomizationUnmasked"
12707
- }
12708
- ],
12709
- "responses": {
12710
- "200": {
12711
- "description": "OK",
12712
- "content": {
12713
- "application/json": {
12714
- "schema": {
12715
- "$ref": "#/components/schemas/SiteCustomizationSettings"
12716
- }
12717
- }
12718
- }
12719
- },
12720
- "400": {
12721
- "$ref": "#/components/responses/BadRequestError"
12722
- },
12723
- "default": {
12724
- "$ref": "#/components/responses/UnexpectedError"
12725
- }
12726
- }
12727
- },
12728
- "put": {
12729
- "operationId": "updateSiteCustomizationById",
12730
- "summary": "Update the customization configuration for a site.",
12731
- "tags": [
12732
- "sites"
12733
- ],
12734
- "security": [
12735
- {
12736
- "user": []
12737
- }
12738
- ],
12739
- "parameters": [
12740
- {
12741
- "$ref": "#/components/parameters/organizationId"
12742
- },
12743
- {
12744
- "$ref": "#/components/parameters/siteId"
12745
- }
12746
- ],
12747
- "requestBody": {
12748
- "required": true,
12749
- "content": {
12750
- "application/json": {
12751
- "schema": {
12752
- "$ref": "#/components/schemas/SiteCustomizationSettings"
11721
+ "$ref": "#/components/schemas/SitePublishingAuthUpdate"
12753
11722
  }
12754
11723
  }
12755
11724
  }
@@ -12760,7 +11729,47 @@
12760
11729
  "content": {
12761
11730
  "application/json": {
12762
11731
  "schema": {
12763
- "$ref": "#/components/schemas/SiteCustomizationSettings"
11732
+ "$ref": "#/components/schemas/SitePublishingAuth"
11733
+ }
11734
+ }
11735
+ }
11736
+ },
11737
+ "400": {
11738
+ "$ref": "#/components/responses/BadRequestError"
11739
+ },
11740
+ "default": {
11741
+ "$ref": "#/components/responses/UnexpectedError"
11742
+ }
11743
+ }
11744
+ }
11745
+ },
11746
+ "/orgs/{organizationId}/sites/{siteId}/publishing/auth/regenerate": {
11747
+ "post": {
11748
+ "operationId": "regenerateSitePublishingAuthById",
11749
+ "summary": "Regenerate the publishing authentication settings for a site. This will re-generate the private key.",
11750
+ "tags": [
11751
+ "sites"
11752
+ ],
11753
+ "security": [
11754
+ {
11755
+ "user": []
11756
+ }
11757
+ ],
11758
+ "parameters": [
11759
+ {
11760
+ "$ref": "#/components/parameters/organizationId"
11761
+ },
11762
+ {
11763
+ "$ref": "#/components/parameters/siteId"
11764
+ }
11765
+ ],
11766
+ "responses": {
11767
+ "200": {
11768
+ "description": "OK",
11769
+ "content": {
11770
+ "application/json": {
11771
+ "schema": {
11772
+ "$ref": "#/components/schemas/SitePublishingAuth"
12764
11773
  }
12765
11774
  }
12766
11775
  }
@@ -12774,16 +11783,16 @@
12774
11783
  }
12775
11784
  }
12776
11785
  },
12777
- "/orgs/{organizationId}/sites/{siteId}/customization/raw": {
11786
+ "/orgs/{organizationId}/sites/{siteId}/publishing/preview": {
12778
11787
  "get": {
12779
- "operationId": "getSiteRawCustomizationById",
12780
- "summary": "Get the raw customization settings of a site.",
11788
+ "operationId": "getSitePublishingPreviewById",
11789
+ "summary": "Get a URL to preview the published content of a site. The URL will be valid for 1 hour.",
12781
11790
  "tags": [
12782
11791
  "sites"
12783
11792
  ],
12784
11793
  "security": [
12785
11794
  {
12786
- "user-internal": []
11795
+ "user": []
12787
11796
  }
12788
11797
  ],
12789
11798
  "parameters": [
@@ -12792,8 +11801,123 @@
12792
11801
  },
12793
11802
  {
12794
11803
  "$ref": "#/components/parameters/siteId"
11804
+ },
11805
+ {
11806
+ "name": "siteSpace",
11807
+ "in": "query",
11808
+ "description": "ID of the site-space to preview. If not provided, the default site-space will be used.",
11809
+ "schema": {
11810
+ "type": "string"
11811
+ }
11812
+ },
11813
+ {
11814
+ "name": "claims",
11815
+ "in": "query",
11816
+ "description": "Rison encoded string of attributes/assertions about the visitor for which we want to preview the site.",
11817
+ "schema": {
11818
+ "type": "string"
11819
+ }
12795
11820
  }
12796
11821
  ],
11822
+ "responses": {
11823
+ "200": {
11824
+ "description": "OK",
11825
+ "content": {
11826
+ "application/json": {
11827
+ "schema": {
11828
+ "type": "object",
11829
+ "properties": {
11830
+ "url": {
11831
+ "$ref": "#/components/schemas/URL"
11832
+ }
11833
+ },
11834
+ "required": [
11835
+ "url"
11836
+ ]
11837
+ }
11838
+ }
11839
+ }
11840
+ },
11841
+ "400": {
11842
+ "$ref": "#/components/responses/BadRequestError"
11843
+ },
11844
+ "default": {
11845
+ "$ref": "#/components/responses/UnexpectedError"
11846
+ }
11847
+ }
11848
+ }
11849
+ },
11850
+ "/orgs/{organizationId}/sites/{siteId}/customization": {
11851
+ "get": {
11852
+ "operationId": "getSiteCustomizationById",
11853
+ "summary": "Get the customization configuration for a site.",
11854
+ "tags": [
11855
+ "sites"
11856
+ ],
11857
+ "security": [
11858
+ {
11859
+ "user": []
11860
+ }
11861
+ ],
11862
+ "parameters": [
11863
+ {
11864
+ "$ref": "#/components/parameters/organizationId"
11865
+ },
11866
+ {
11867
+ "$ref": "#/components/parameters/siteId"
11868
+ },
11869
+ {
11870
+ "$ref": "#/components/parameters/siteCustomizationUnmasked"
11871
+ }
11872
+ ],
11873
+ "responses": {
11874
+ "200": {
11875
+ "description": "OK",
11876
+ "content": {
11877
+ "application/json": {
11878
+ "schema": {
11879
+ "$ref": "#/components/schemas/SiteCustomizationSettings"
11880
+ }
11881
+ }
11882
+ }
11883
+ },
11884
+ "400": {
11885
+ "$ref": "#/components/responses/BadRequestError"
11886
+ },
11887
+ "default": {
11888
+ "$ref": "#/components/responses/UnexpectedError"
11889
+ }
11890
+ }
11891
+ },
11892
+ "put": {
11893
+ "operationId": "updateSiteCustomizationById",
11894
+ "summary": "Update the customization configuration for a site.",
11895
+ "tags": [
11896
+ "sites"
11897
+ ],
11898
+ "security": [
11899
+ {
11900
+ "user": []
11901
+ }
11902
+ ],
11903
+ "parameters": [
11904
+ {
11905
+ "$ref": "#/components/parameters/organizationId"
11906
+ },
11907
+ {
11908
+ "$ref": "#/components/parameters/siteId"
11909
+ }
11910
+ ],
11911
+ "requestBody": {
11912
+ "required": true,
11913
+ "content": {
11914
+ "application/json": {
11915
+ "schema": {
11916
+ "$ref": "#/components/schemas/SiteCustomizationSettings"
11917
+ }
11918
+ }
11919
+ }
11920
+ },
12797
11921
  "responses": {
12798
11922
  "200": {
12799
11923
  "description": "OK",
@@ -13673,6 +12797,9 @@
13673
12797
  "post": {
13674
12798
  "operationId": "searchSiteContent",
13675
12799
  "summary": "Search content in a site",
12800
+ "tags": [
12801
+ "sites"
12802
+ ],
13676
12803
  "security": [
13677
12804
  {
13678
12805
  "user": []
@@ -13829,6 +12956,9 @@
13829
12956
  "post": {
13830
12957
  "operationId": "streamAskInSite",
13831
12958
  "summary": "Ask a question in a site. The response is streamed.",
12959
+ "tags": [
12960
+ "search"
12961
+ ],
13832
12962
  "security": [
13833
12963
  {
13834
12964
  "user": []
@@ -13898,6 +13028,9 @@
13898
13028
  "get": {
13899
13029
  "operationId": "streamRecommendedQuestionsInSite",
13900
13030
  "summary": "Stream a list of questions that can be asked in a site.",
13031
+ "tags": [
13032
+ "search"
13033
+ ],
13901
13034
  "security": [
13902
13035
  {
13903
13036
  "user": []
@@ -14703,53 +13836,6 @@
14703
13836
  }
14704
13837
  }
14705
13838
  },
14706
- "/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/customization/raw": {
14707
- "get": {
14708
- "operationId": "getSiteSpaceRawCustomizationById",
14709
- "summary": "Get the raw customization settings of a site space.",
14710
- "tags": [
14711
- "sites"
14712
- ],
14713
- "security": [
14714
- {
14715
- "user-internal": []
14716
- }
14717
- ],
14718
- "parameters": [
14719
- {
14720
- "$ref": "#/components/parameters/organizationId"
14721
- },
14722
- {
14723
- "$ref": "#/components/parameters/siteId"
14724
- },
14725
- {
14726
- "$ref": "#/components/parameters/siteSpaceId"
14727
- }
14728
- ],
14729
- "responses": {
14730
- "200": {
14731
- "description": "OK",
14732
- "content": {
14733
- "application/json": {
14734
- "schema": {
14735
- "allOf": [
14736
- {
14737
- "$ref": "#/components/schemas/SiteSpaceCustomizationSettings"
14738
- }
14739
- ]
14740
- }
14741
- }
14742
- }
14743
- },
14744
- "400": {
14745
- "$ref": "#/components/responses/BadRequestError"
14746
- },
14747
- "default": {
14748
- "$ref": "#/components/responses/UnexpectedError"
14749
- }
14750
- }
14751
- }
14752
- },
14753
13839
  "/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/insights/content": {
14754
13840
  "get": {
14755
13841
  "operationId": "getContentAnalyticsForSiteSpaceById",
@@ -15304,113 +14390,6 @@
15304
14390
  }
15305
14391
  }
15306
14392
  },
15307
- "/orgs/{organizationId}/sites/{siteId}/insights/ads": {
15308
- "get": {
15309
- "operationId": "getAdsInsightsForSiteById",
15310
- "summary": "Get analytics insights of ads on a site.",
15311
- "tags": [
15312
- "analytics",
15313
- "sites"
15314
- ],
15315
- "security": [
15316
- {
15317
- "user-internal": []
15318
- }
15319
- ],
15320
- "parameters": [
15321
- {
15322
- "$ref": "#/components/parameters/organizationId"
15323
- },
15324
- {
15325
- "$ref": "#/components/parameters/siteId"
15326
- },
15327
- {
15328
- "name": "interval",
15329
- "in": "query",
15330
- "schema": {
15331
- "$ref": "#/components/schemas/InsightsInterval"
15332
- }
15333
- },
15334
- {
15335
- "name": "start",
15336
- "description": "The earliest timestamp for any data returned",
15337
- "in": "query",
15338
- "schema": {
15339
- "type": "string",
15340
- "format": "date-time"
15341
- }
15342
- },
15343
- {
15344
- "name": "end",
15345
- "description": "The latest timestamp for any data returned",
15346
- "in": "query",
15347
- "schema": {
15348
- "type": "string",
15349
- "format": "date-time"
15350
- }
15351
- }
15352
- ],
15353
- "responses": {
15354
- "200": {
15355
- "description": "The site's ads insights stats for the provided period.",
15356
- "content": {
15357
- "application/json": {
15358
- "schema": {
15359
- "type": "object",
15360
- "properties": {
15361
- "values": {
15362
- "type": "array",
15363
- "description": "A time serie of the ads stats over the provided period",
15364
- "items": {
15365
- "type": "object",
15366
- "properties": {
15367
- "date": {
15368
- "description": "The start date of this interval",
15369
- "type": "string",
15370
- "format": "date-time"
15371
- },
15372
- "stats": {
15373
- "$ref": "#/components/schemas/SiteAdsStats"
15374
- }
15375
- },
15376
- "required": [
15377
- "date",
15378
- "stats"
15379
- ]
15380
- }
15381
- },
15382
- "account": {
15383
- "type": "object",
15384
- "properties": {
15385
- "email": {
15386
- "type": "string",
15387
- "description": "Email address on the Ads platform."
15388
- },
15389
- "url": {
15390
- "type": "string",
15391
- "description": "URL to configure payout."
15392
- }
15393
- },
15394
- "required": [
15395
- "email",
15396
- "url"
15397
- ]
15398
- }
15399
- },
15400
- "required": [
15401
- "values",
15402
- "account"
15403
- ]
15404
- }
15405
- }
15406
- }
15407
- },
15408
- "default": {
15409
- "$ref": "#/components/responses/UnexpectedError"
15410
- }
15411
- }
15412
- }
15413
- },
15414
14393
  "/orgs/{organizationId}/sites/{siteId}/insights/search": {
15415
14394
  "get": {
15416
14395
  "operationId": "getSearchAnalyticsForSiteById",
@@ -15791,6 +14770,69 @@
15791
14770
  }
15792
14771
  }
15793
14772
  },
14773
+ "/orgs/{organizationId}/sites/{siteId}/storage/upload": {
14774
+ "post": {
14775
+ "operationId": "generateSiteStorageUploadURL",
14776
+ "summary": "Create a signed URL to upload a file",
14777
+ "description": "Generate a pre-signed URL that can be used to upload a file to storage",
14778
+ "tags": [
14779
+ "organization"
14780
+ ],
14781
+ "security": [
14782
+ {
14783
+ "user-internal": []
14784
+ }
14785
+ ],
14786
+ "parameters": [
14787
+ {
14788
+ "$ref": "#/components/parameters/organizationId"
14789
+ },
14790
+ {
14791
+ "$ref": "#/components/parameters/siteId"
14792
+ }
14793
+ ],
14794
+ "requestBody": {
14795
+ "required": true,
14796
+ "content": {
14797
+ "application/json": {
14798
+ "schema": {
14799
+ "type": "object",
14800
+ "required": [
14801
+ "file",
14802
+ "kind"
14803
+ ],
14804
+ "properties": {
14805
+ "file": {
14806
+ "$ref": "#/components/schemas/StorageFileMetadata"
14807
+ },
14808
+ "kind": {
14809
+ "$ref": "#/components/schemas/StorageUploadKind"
14810
+ }
14811
+ }
14812
+ }
14813
+ }
14814
+ }
14815
+ },
14816
+ "responses": {
14817
+ "201": {
14818
+ "description": "Successfully generated signed URL for file upload",
14819
+ "content": {
14820
+ "application/json": {
14821
+ "schema": {
14822
+ "$ref": "#/components/schemas/StorageUploadURL"
14823
+ }
14824
+ }
14825
+ }
14826
+ },
14827
+ "400": {
14828
+ "$ref": "#/components/responses/BadRequestError"
14829
+ },
14830
+ "default": {
14831
+ "$ref": "#/components/responses/UnexpectedError"
14832
+ }
14833
+ }
14834
+ }
14835
+ },
15794
14836
  "/custom-hostnames/{hostname}": {
15795
14837
  "get": {
15796
14838
  "operationId": "getCustomHostname",
@@ -15824,78 +14866,6 @@
15824
14866
  }
15825
14867
  }
15826
14868
  },
15827
- "post": {
15828
- "operationId": "setupCustomHostname",
15829
- "summary": "Setup a custom hostname on a site or an organization. Any previously set custom hostname will continue pointing to the target but marked as available for use with another target.",
15830
- "tags": [
15831
- "custom-hostnames"
15832
- ],
15833
- "security": [
15834
- {
15835
- "user-internal": []
15836
- }
15837
- ],
15838
- "parameters": [
15839
- {
15840
- "$ref": "#/components/parameters/hostname"
15841
- }
15842
- ],
15843
- "requestBody": {
15844
- "content": {
15845
- "application/json": {
15846
- "schema": {
15847
- "type": "object",
15848
- "properties": {
15849
- "target": {
15850
- "oneOf": [
15851
- {
15852
- "$ref": "#/components/schemas/OrganizationPointer"
15853
- },
15854
- {
15855
- "$ref": "#/components/schemas/SitePointer"
15856
- }
15857
- ]
15858
- }
15859
- },
15860
- "required": [
15861
- "target"
15862
- ]
15863
- }
15864
- }
15865
- }
15866
- },
15867
- "responses": {
15868
- "201": {
15869
- "description": "Custom hostname created",
15870
- "headers": {
15871
- "Location": {
15872
- "description": "API URL for the newly created custom hostname",
15873
- "schema": {
15874
- "type": "string"
15875
- }
15876
- }
15877
- },
15878
- "content": {
15879
- "application/json": {
15880
- "schema": {
15881
- "$ref": "#/components/schemas/CustomHostname"
15882
- }
15883
- }
15884
- }
15885
- },
15886
- "400": {
15887
- "description": "Selected custom hostname target does not exist",
15888
- "$ref": "#/components/responses/ConflictError"
15889
- },
15890
- "409": {
15891
- "description": "Custom hostname is already in use on the target",
15892
- "$ref": "#/components/responses/ConflictError"
15893
- },
15894
- "default": {
15895
- "$ref": "#/components/responses/UnexpectedError"
15896
- }
15897
- }
15898
- },
15899
14869
  "patch": {
15900
14870
  "operationId": "dnsRevalidateCustomHostname",
15901
14871
  "summary": "Revalidate a custom hostname's DNS records and status.",
@@ -15955,65 +14925,6 @@
15955
14925
  }
15956
14926
  }
15957
14927
  },
15958
- "/custom-hostnames/{hostname}/test": {
15959
- "post": {
15960
- "operationId": "testCustomHostname",
15961
- "summary": "Test if a custom hostname can be used for a site or organization.",
15962
- "tags": [
15963
- "custom-hostnames"
15964
- ],
15965
- "security": [
15966
- {
15967
- "user-internal": []
15968
- }
15969
- ],
15970
- "parameters": [
15971
- {
15972
- "$ref": "#/components/parameters/hostname"
15973
- }
15974
- ],
15975
- "requestBody": {
15976
- "content": {
15977
- "application/json": {
15978
- "schema": {
15979
- "type": "object",
15980
- "properties": {
15981
- "target": {
15982
- "oneOf": [
15983
- {
15984
- "$ref": "#/components/schemas/OrganizationPointer"
15985
- },
15986
- {
15987
- "$ref": "#/components/schemas/SitePointer"
15988
- }
15989
- ]
15990
- }
15991
- },
15992
- "required": [
15993
- "target"
15994
- ]
15995
- }
15996
- }
15997
- }
15998
- },
15999
- "responses": {
16000
- "204": {
16001
- "description": "The custom hostname is available and valid."
16002
- },
16003
- "400": {
16004
- "description": "The custom hostname is invalid.",
16005
- "$ref": "#/components/responses/BadRequestError"
16006
- },
16007
- "409": {
16008
- "description": "The custom hostname is already configured for this target or a different one.",
16009
- "$ref": "#/components/responses/ConflictError"
16010
- },
16011
- "default": {
16012
- "$ref": "#/components/responses/UnexpectedError"
16013
- }
16014
- }
16015
- }
16016
- },
16017
14928
  "/ads/sites": {
16018
14929
  "get": {
16019
14930
  "operationId": "adsListSites",
@@ -16254,63 +15165,6 @@
16254
15165
  }
16255
15166
  }
16256
15167
  },
16257
- "/internal/hive/token": {
16258
- "post": {
16259
- "operationId": "generateHiveAccessToken",
16260
- "summary": "Returns a token to authenticate with Hive.",
16261
- "tags": [
16262
- "hive",
16263
- "critical"
16264
- ],
16265
- "security": [
16266
- {
16267
- "user-internal": []
16268
- }
16269
- ],
16270
- "requestBody": {
16271
- "required": false,
16272
- "content": {
16273
- "application/json": {
16274
- "schema": {
16275
- "type": "object",
16276
- "properties": {
16277
- "spaces": {
16278
- "deprecated": true,
16279
- "type": "array",
16280
- "items": {
16281
- "description": "Deprecated. Use contentIds.",
16282
- "type": "string"
16283
- }
16284
- },
16285
- "contentIds": {
16286
- "type": "array",
16287
- "items": {
16288
- "description": "Content IDs to retrieve permissions for.",
16289
- "type": "string"
16290
- }
16291
- }
16292
- }
16293
- }
16294
- }
16295
- }
16296
- },
16297
- "responses": {
16298
- "200": {
16299
- "description": "The JWT to access user's specific content in Hive.",
16300
- "content": {
16301
- "application/json": {
16302
- "schema": {
16303
- "$ref": "#/components/schemas/HiveAccessToken"
16304
- }
16305
- }
16306
- }
16307
- },
16308
- "default": {
16309
- "$ref": "#/components/responses/UnexpectedError"
16310
- }
16311
- }
16312
- }
16313
- },
16314
15168
  "/urls/content": {
16315
15169
  "get": {
16316
15170
  "operationId": "getContentByUrl",
@@ -20415,9 +19269,6 @@
20415
19269
  },
20416
19270
  {
20417
19271
  "$ref": "#/components/schemas/ContentRefURL"
20418
- },
20419
- {
20420
- "$ref": "#/components/schemas/ContentRefOpenAPI"
20421
19272
  }
20422
19273
  ]
20423
19274
  },
@@ -20461,6 +19312,68 @@
20461
19312
  "isVoid"
20462
19313
  ]
20463
19314
  },
19315
+ "DocumentBlockOpenAPIOperation": {
19316
+ "type": "object",
19317
+ "properties": {
19318
+ "object": {
19319
+ "type": "string",
19320
+ "enum": [
19321
+ "block"
19322
+ ]
19323
+ },
19324
+ "type": {
19325
+ "type": "string",
19326
+ "enum": [
19327
+ "openapi-operation"
19328
+ ]
19329
+ },
19330
+ "key": {
19331
+ "type": "string"
19332
+ },
19333
+ "data": {
19334
+ "allOf": [
19335
+ {
19336
+ "$ref": "#/components/schemas/OpenAPIOperationPointer"
19337
+ },
19338
+ {
19339
+ "type": "object",
19340
+ "properties": {
19341
+ "ref": {
19342
+ "$ref": "#/components/schemas/ContentRefOpenAPI"
19343
+ }
19344
+ },
19345
+ "required": [
19346
+ "ref"
19347
+ ]
19348
+ }
19349
+ ]
19350
+ },
19351
+ "isVoid": {
19352
+ "type": "boolean",
19353
+ "enum": [
19354
+ true
19355
+ ]
19356
+ },
19357
+ "meta": {
19358
+ "type": "object",
19359
+ "properties": {
19360
+ "id": {
19361
+ "description": "Unique ID to be used in an URL for the block.",
19362
+ "type": "string"
19363
+ }
19364
+ },
19365
+ "required": [
19366
+ "id"
19367
+ ]
19368
+ }
19369
+ },
19370
+ "required": [
19371
+ "object",
19372
+ "type",
19373
+ "data",
19374
+ "isVoid"
19375
+ ]
19376
+ },
20464
19377
  "DocumentBlockReusableContent": {
20465
19378
  "type": "object",
20466
19379
  "properties": {
@@ -20667,6 +19580,9 @@
20667
19580
  {
20668
19581
  "$ref": "#/components/schemas/DocumentBlockOpenAPI"
20669
19582
  },
19583
+ {
19584
+ "$ref": "#/components/schemas/DocumentBlockOpenAPIOperation"
19585
+ },
20670
19586
  {
20671
19587
  "$ref": "#/components/schemas/DocumentBlockContentRef"
20672
19588
  },
@@ -23052,6 +21968,17 @@
23052
21968
  "business_dec_2021"
23053
21969
  ]
23054
21970
  },
21971
+ "BillingTrialStatus": {
21972
+ "type": "string",
21973
+ "description": "- notapplicable, no trial can be started for this organization. - none, no trial has been started yet. - active, trial is active. - ended, the trial has ended and the user has choosen to stay on the free plan or has upgraded to a paid plan. - expired, the trial has ended but the user hasn't deciced yet what to do.\n",
21974
+ "enum": [
21975
+ "notapplicable",
21976
+ "none",
21977
+ "active",
21978
+ "ended",
21979
+ "expired"
21980
+ ]
21981
+ },
23055
21982
  "OrganizationBlockReason": {
23056
21983
  "type": "string",
23057
21984
  "enum": [
@@ -23138,11 +22065,26 @@
23138
22065
  "location"
23139
22066
  ]
23140
22067
  },
23141
- "trialDecision": {
23142
- "type": "string",
23143
- "description": "The decision taken by the user at the end of the trial",
23144
- "enum": [
23145
- "downgrade"
22068
+ "trial": {
22069
+ "type": "object",
22070
+ "properties": {
22071
+ "status": {
22072
+ "$ref": "#/components/schemas/BillingTrialStatus"
22073
+ },
22074
+ "endDate": {
22075
+ "description": "The trial's end date, if the organization has or had a trial.",
22076
+ "$ref": "#/components/schemas/Timestamp"
22077
+ },
22078
+ "decision": {
22079
+ "type": "string",
22080
+ "description": "The decision taken by the user at the end of the trial",
22081
+ "enum": [
22082
+ "downgrade"
22083
+ ]
22084
+ }
22085
+ },
22086
+ "required": [
22087
+ "status"
23146
22088
  ]
23147
22089
  },
23148
22090
  "customHostname": {
@@ -23211,6 +22153,7 @@
23211
22153
  "type",
23212
22154
  "emailDomains",
23213
22155
  "urls",
22156
+ "trial",
23214
22157
  "permissions"
23215
22158
  ]
23216
22159
  },
@@ -28082,7 +27025,8 @@
28082
27025
  "type": "string",
28083
27026
  "enum": [
28084
27027
  "text",
28085
- "password"
27028
+ "password",
27029
+ "email"
28086
27030
  ],
28087
27031
  "default": "text"
28088
27032
  }
@@ -34463,6 +33407,59 @@
34463
33407
  "destination"
34464
33408
  ]
34465
33409
  },
33410
+ "StorageFileMetadata": {
33411
+ "type": "object",
33412
+ "properties": {
33413
+ "name": {
33414
+ "type": "string",
33415
+ "description": "Original filename"
33416
+ },
33417
+ "type": {
33418
+ "type": "string",
33419
+ "description": "MIME type of the file"
33420
+ },
33421
+ "size": {
33422
+ "type": "number",
33423
+ "description": "Size of the file in bytes"
33424
+ }
33425
+ },
33426
+ "required": [
33427
+ "name",
33428
+ "type",
33429
+ "size"
33430
+ ]
33431
+ },
33432
+ "StorageUploadKind": {
33433
+ "type": "string",
33434
+ "enum": [
33435
+ "customization_font"
33436
+ ]
33437
+ },
33438
+ "StorageUploadURL": {
33439
+ "type": "object",
33440
+ "properties": {
33441
+ "object": {
33442
+ "type": "string",
33443
+ "description": "The kind of file to upload",
33444
+ "enum": [
33445
+ "storage-signed-url"
33446
+ ]
33447
+ },
33448
+ "url": {
33449
+ "$ref": "#/components/schemas/URL",
33450
+ "description": "Presigned URL for uploading the file"
33451
+ },
33452
+ "key": {
33453
+ "type": "string",
33454
+ "description": "The bucket object key for the file"
33455
+ }
33456
+ },
33457
+ "required": [
33458
+ "object",
33459
+ "url",
33460
+ "key"
33461
+ ]
33462
+ },
34466
33463
  "CustomHostnameDnsStatus": {
34467
33464
  "type": "string",
34468
33465
  "enum": [
@@ -35327,6 +34324,9 @@
35327
34324
  {
35328
34325
  "$ref": "#/components/schemas/DocumentBlockOpenAPI"
35329
34326
  },
34327
+ {
34328
+ "$ref": "#/components/schemas/DocumentBlockOpenAPIOperation"
34329
+ },
35330
34330
  {
35331
34331
  "$ref": "#/components/schemas/DocumentBlockContentRef"
35332
34332
  },
@@ -35852,16 +34852,6 @@
35852
34852
  }
35853
34853
  }
35854
34854
  },
35855
- "BillingTrialStatus": {
35856
- "type": "string",
35857
- "enum": [
35858
- "notapplicable",
35859
- "none",
35860
- "active",
35861
- "ended",
35862
- "expired"
35863
- ]
35864
- },
35865
34855
  "APIIntegrationScope": {
35866
34856
  "type": "string",
35867
34857
  "enum": [