@gitbook/api 0.73.0 → 0.75.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/spec/openapi.json CHANGED
@@ -319,7 +319,8 @@
319
319
  "operationId": "getUserById",
320
320
  "summary": "Get a user by its ID",
321
321
  "tags": [
322
- "users"
322
+ "users",
323
+ "critical"
323
324
  ],
324
325
  "security": [
325
326
  {
@@ -354,7 +355,8 @@
354
355
  "operationId": "getSpaceById",
355
356
  "summary": "Get the details about a space.",
356
357
  "tags": [
357
- "spaces"
358
+ "spaces",
359
+ "critical"
358
360
  ],
359
361
  "security": [
360
362
  {
@@ -2218,7 +2220,16 @@
2218
2220
  "$ref": "#/components/schemas/ChangeRequestStatus",
2219
2221
  "default": "open"
2220
2222
  },
2221
- "description": "If defined, only change requests matching this status will be returned"
2223
+ "description": "If defined, only change requests matching this status will be returned."
2224
+ },
2225
+ {
2226
+ "name": "contributor",
2227
+ "in": "query",
2228
+ "required": false,
2229
+ "schema": {
2230
+ "type": "string"
2231
+ },
2232
+ "description": "If defined, only change requests with contributions from this user will be returned."
2222
2233
  }
2223
2234
  ],
2224
2235
  "responses": {
@@ -6664,6 +6675,15 @@
6664
6675
  "schema": {
6665
6676
  "type": "string"
6666
6677
  }
6678
+ },
6679
+ {
6680
+ "name": "extended",
6681
+ "in": "query",
6682
+ "description": "If true, returns the space object in each items. If false, returns the space ID in each items.",
6683
+ "schema": {
6684
+ "type": "boolean",
6685
+ "default": false
6686
+ }
6667
6687
  }
6668
6688
  ],
6669
6689
  "responses": {
@@ -7097,6 +7117,15 @@
7097
7117
  },
7098
7118
  {
7099
7119
  "$ref": "#/components/parameters/listLimit"
7120
+ },
7121
+ {
7122
+ "name": "extended",
7123
+ "in": "query",
7124
+ "description": "If true, returns the space object in each items. If false, returns the space ID in each items.",
7125
+ "schema": {
7126
+ "type": "boolean",
7127
+ "default": false
7128
+ }
7100
7129
  }
7101
7130
  ],
7102
7131
  "responses": {
@@ -7142,6 +7171,15 @@
7142
7171
  },
7143
7172
  {
7144
7173
  "$ref": "#/components/parameters/installationId"
7174
+ },
7175
+ {
7176
+ "name": "extended",
7177
+ "in": "query",
7178
+ "description": "If true, returns the space object in each items. If false, returns the space ID in each items.",
7179
+ "schema": {
7180
+ "type": "boolean",
7181
+ "default": false
7182
+ }
7145
7183
  }
7146
7184
  ],
7147
7185
  "requestBody": {
@@ -7207,6 +7245,15 @@
7207
7245
  },
7208
7246
  {
7209
7247
  "$ref": "#/components/parameters/spaceId"
7248
+ },
7249
+ {
7250
+ "name": "extended",
7251
+ "in": "query",
7252
+ "description": "If true, returns the space object in each items. If false, returns the space ID in each items.",
7253
+ "schema": {
7254
+ "type": "boolean",
7255
+ "default": false
7256
+ }
7210
7257
  }
7211
7258
  ],
7212
7259
  "responses": {
@@ -7240,6 +7287,15 @@
7240
7287
  },
7241
7288
  {
7242
7289
  "$ref": "#/components/parameters/spaceId"
7290
+ },
7291
+ {
7292
+ "name": "extended",
7293
+ "in": "query",
7294
+ "description": "If true, returns the space object in each items. If false, returns the space ID in each items.",
7295
+ "schema": {
7296
+ "type": "boolean",
7297
+ "default": false
7298
+ }
7243
7299
  }
7244
7300
  ],
7245
7301
  "responses": {
@@ -7311,6 +7367,15 @@
7311
7367
  },
7312
7368
  {
7313
7369
  "$ref": "#/components/parameters/listLimit"
7370
+ },
7371
+ {
7372
+ "name": "extended",
7373
+ "in": "query",
7374
+ "description": "If true, returns the site object in each items. If false, returns the site ID in each items.",
7375
+ "schema": {
7376
+ "type": "boolean",
7377
+ "default": false
7378
+ }
7314
7379
  }
7315
7380
  ],
7316
7381
  "responses": {
@@ -7359,6 +7424,15 @@
7359
7424
  },
7360
7425
  {
7361
7426
  "$ref": "#/components/parameters/installationId"
7427
+ },
7428
+ {
7429
+ "name": "extended",
7430
+ "in": "query",
7431
+ "description": "If true, returns the site object in each items. If false, returns the site ID in each items.",
7432
+ "schema": {
7433
+ "type": "boolean",
7434
+ "default": false
7435
+ }
7362
7436
  }
7363
7437
  ],
7364
7438
  "requestBody": {
@@ -7424,6 +7498,15 @@
7424
7498
  },
7425
7499
  {
7426
7500
  "$ref": "#/components/parameters/siteId"
7501
+ },
7502
+ {
7503
+ "name": "extended",
7504
+ "in": "query",
7505
+ "description": "If true, returns the site object in each items. If false, returns the site ID in each items.",
7506
+ "schema": {
7507
+ "type": "boolean",
7508
+ "default": false
7509
+ }
7427
7510
  }
7428
7511
  ],
7429
7512
  "responses": {
@@ -7457,6 +7540,15 @@
7457
7540
  },
7458
7541
  {
7459
7542
  "$ref": "#/components/parameters/siteId"
7543
+ },
7544
+ {
7545
+ "name": "extended",
7546
+ "in": "query",
7547
+ "description": "If true, returns the site object in each items. If false, returns the site ID in each items.",
7548
+ "schema": {
7549
+ "type": "boolean",
7550
+ "default": false
7551
+ }
7460
7552
  }
7461
7553
  ],
7462
7554
  "responses": {
@@ -7613,7 +7705,8 @@
7613
7705
  "operationId": "getOrganizationById",
7614
7706
  "summary": "Get an organization by its ID",
7615
7707
  "tags": [
7616
- "organizations"
7708
+ "organizations",
7709
+ "critical"
7617
7710
  ],
7618
7711
  "security": [
7619
7712
  {
@@ -7742,6 +7835,9 @@
7742
7835
  },
7743
7836
  "ai": {
7744
7837
  "type": "boolean"
7838
+ },
7839
+ "inviteLinks": {
7840
+ "type": "boolean"
7745
7841
  }
7746
7842
  }
7747
7843
  }
@@ -7769,6 +7865,41 @@
7769
7865
  }
7770
7866
  }
7771
7867
  },
7868
+ "/orgs/{organizationId}/content": {
7869
+ "get": {
7870
+ "operationId": "getOrganizationAllContent",
7871
+ "summary": "List all content in an organization",
7872
+ "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",
7873
+ "tags": [
7874
+ "organizations"
7875
+ ],
7876
+ "security": [
7877
+ {
7878
+ "user-internal": []
7879
+ }
7880
+ ],
7881
+ "parameters": [
7882
+ {
7883
+ "$ref": "#/components/parameters/organizationId"
7884
+ }
7885
+ ],
7886
+ "responses": {
7887
+ "200": {
7888
+ "description": "OK",
7889
+ "content": {
7890
+ "application/json": {
7891
+ "schema": {
7892
+ "$ref": "#/components/schemas/OrganizationAllContent"
7893
+ }
7894
+ }
7895
+ }
7896
+ },
7897
+ "default": {
7898
+ "$ref": "#/components/responses/UnexpectedError"
7899
+ }
7900
+ }
7901
+ }
7902
+ },
7772
7903
  "/orgs/{organizationId}/members": {
7773
7904
  "get": {
7774
7905
  "operationId": "listMembersInOrganizationById",
@@ -9069,7 +9200,9 @@
9069
9200
  }
9070
9201
  }
9071
9202
  }
9072
- },
9203
+ }
9204
+ },
9205
+ "/orgs/{organizationId}/billing/portal": {
9073
9206
  "get": {
9074
9207
  "operationId": "getOrganizationBillingPortal",
9075
9208
  "summary": "Get the billing portal for an organization",
@@ -11631,7 +11764,8 @@
11631
11764
  "operationId": "listSites",
11632
11765
  "summary": "List all the sites created in an organization",
11633
11766
  "tags": [
11634
- "sites"
11767
+ "sites",
11768
+ "critical"
11635
11769
  ],
11636
11770
  "security": [
11637
11771
  {
@@ -12372,6 +12506,10 @@
12372
12506
  "interval": {
12373
12507
  "description": "Desired interval for new subscriptions. Defaults to the existing billing interval.",
12374
12508
  "$ref": "#/components/schemas/BillingInterval"
12509
+ },
12510
+ "reason": {
12511
+ "type": "string",
12512
+ "description": "Reason that triggered the billing upgrade"
12375
12513
  }
12376
12514
  },
12377
12515
  "required": [
@@ -12440,6 +12578,15 @@
12440
12578
  "enum": [
12441
12579
  "success"
12442
12580
  ]
12581
+ },
12582
+ "outcome": {
12583
+ "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",
12584
+ "type": "object",
12585
+ "enum": [
12586
+ "upgraded",
12587
+ "downgraded",
12588
+ "no-payment-changes"
12589
+ ]
12443
12590
  }
12444
12591
  }
12445
12592
  }
@@ -12991,7 +13138,8 @@
12991
13138
  "operationId": "listSiteSpaces",
12992
13139
  "summary": "List all the site spaces under a site in an organization",
12993
13140
  "tags": [
12994
- "sites"
13141
+ "sites",
13142
+ "critical"
12995
13143
  ],
12996
13144
  "security": [
12997
13145
  {
@@ -14420,6 +14568,113 @@
14420
14568
  }
14421
14569
  }
14422
14570
  },
14571
+ "/orgs/{organizationId}/sites/{siteId}/insights/ads": {
14572
+ "get": {
14573
+ "operationId": "getAdsInsightsForSiteById",
14574
+ "summary": "Get analytics insights of ads on a site.",
14575
+ "tags": [
14576
+ "analytics",
14577
+ "sites"
14578
+ ],
14579
+ "security": [
14580
+ {
14581
+ "user-internal": []
14582
+ }
14583
+ ],
14584
+ "parameters": [
14585
+ {
14586
+ "$ref": "#/components/parameters/organizationId"
14587
+ },
14588
+ {
14589
+ "$ref": "#/components/parameters/siteId"
14590
+ },
14591
+ {
14592
+ "name": "interval",
14593
+ "in": "query",
14594
+ "schema": {
14595
+ "$ref": "#/components/schemas/InsightsInterval"
14596
+ }
14597
+ },
14598
+ {
14599
+ "name": "start",
14600
+ "description": "The earliest timestamp for any data returned",
14601
+ "in": "query",
14602
+ "schema": {
14603
+ "type": "string",
14604
+ "format": "date-time"
14605
+ }
14606
+ },
14607
+ {
14608
+ "name": "end",
14609
+ "description": "The latest timestamp for any data returned",
14610
+ "in": "query",
14611
+ "schema": {
14612
+ "type": "string",
14613
+ "format": "date-time"
14614
+ }
14615
+ }
14616
+ ],
14617
+ "responses": {
14618
+ "200": {
14619
+ "description": "The site's ads insights stats for the provided period.",
14620
+ "content": {
14621
+ "application/json": {
14622
+ "schema": {
14623
+ "type": "object",
14624
+ "properties": {
14625
+ "values": {
14626
+ "type": "array",
14627
+ "description": "A time serie of the ads stats over the provided period",
14628
+ "items": {
14629
+ "type": "object",
14630
+ "properties": {
14631
+ "date": {
14632
+ "description": "The start date of this interval",
14633
+ "type": "string",
14634
+ "format": "date-time"
14635
+ },
14636
+ "stats": {
14637
+ "$ref": "#/components/schemas/SiteAdsStats"
14638
+ }
14639
+ },
14640
+ "required": [
14641
+ "date",
14642
+ "stats"
14643
+ ]
14644
+ }
14645
+ },
14646
+ "account": {
14647
+ "type": "object",
14648
+ "properties": {
14649
+ "email": {
14650
+ "type": "string",
14651
+ "description": "Email address on the Ads platform."
14652
+ },
14653
+ "url": {
14654
+ "type": "string",
14655
+ "description": "URL to configure payout."
14656
+ }
14657
+ },
14658
+ "required": [
14659
+ "email",
14660
+ "url"
14661
+ ]
14662
+ }
14663
+ },
14664
+ "required": [
14665
+ "values",
14666
+ "account"
14667
+ ]
14668
+ }
14669
+ }
14670
+ }
14671
+ },
14672
+ "default": {
14673
+ "$ref": "#/components/responses/UnexpectedError"
14674
+ }
14675
+ }
14676
+ }
14677
+ },
14423
14678
  "/orgs/{organizationId}/sites/{siteId}/insights/search": {
14424
14679
  "get": {
14425
14680
  "operationId": "getSearchAnalyticsForSiteById",
@@ -14528,43 +14783,6 @@
14528
14783
  }
14529
14784
  }
14530
14785
  },
14531
- "/orgs/{organizationId}/sites/{siteId}/ads/stats": {
14532
- "post": {
14533
- "operationId": "getSiteAdsStatsById",
14534
- "summary": "Get the stats about Ads on a site.",
14535
- "tags": [
14536
- "sites"
14537
- ],
14538
- "security": [
14539
- {
14540
- "user": []
14541
- }
14542
- ],
14543
- "parameters": [
14544
- {
14545
- "$ref": "#/components/parameters/organizationId"
14546
- },
14547
- {
14548
- "$ref": "#/components/parameters/siteId"
14549
- }
14550
- ],
14551
- "responses": {
14552
- "200": {
14553
- "description": "OK",
14554
- "content": {
14555
- "application/json": {
14556
- "schema": {
14557
- "$ref": "#/components/schemas/SiteAdsStats"
14558
- }
14559
- }
14560
- }
14561
- },
14562
- "default": {
14563
- "$ref": "#/components/responses/UnexpectedError"
14564
- }
14565
- }
14566
- }
14567
- },
14568
14786
  "/custom-hostnames/{hostname}": {
14569
14787
  "get": {
14570
14788
  "operationId": "getCustomHostname",
@@ -14966,7 +15184,8 @@
14966
15184
  "operationId": "generateHiveAccessToken",
14967
15185
  "summary": "Returns a token to authenticate with Hive.",
14968
15186
  "tags": [
14969
- "hive"
15187
+ "hive",
15188
+ "critical"
14970
15189
  ],
14971
15190
  "security": [
14972
15191
  {
@@ -20759,6 +20978,26 @@
20759
20978
  "type": "string",
20760
20979
  "description": "ID of the active revision in the change request."
20761
20980
  },
20981
+ "revisionInitial": {
20982
+ "type": "string",
20983
+ "description": "ID of the initial revision in the space from which the change request was created."
20984
+ },
20985
+ "revisionMergedAncestor": {
20986
+ "type": "string",
20987
+ "description": "ID of the latest revision when updating from main space content."
20988
+ },
20989
+ "revisionMerged": {
20990
+ "type": "string",
20991
+ "description": "When merged, ID of the revision resulting from the merge."
20992
+ },
20993
+ "comments": {
20994
+ "type": "number",
20995
+ "description": "Count of opened comments on the change request."
20996
+ },
20997
+ "outdated": {
20998
+ "type": "boolean",
20999
+ "description": "If true, the change request is not up-to-date with latest changes in the main content."
21000
+ },
20762
21001
  "urls": {
20763
21002
  "type": "object",
20764
21003
  "description": "URLs associated with the object",
@@ -20790,6 +21029,9 @@
20790
21029
  "createdAt",
20791
21030
  "updatedAt",
20792
21031
  "revision",
21032
+ "revisionInitial",
21033
+ "comments",
21034
+ "outdated",
20793
21035
  "urls"
20794
21036
  ]
20795
21037
  },
@@ -21042,6 +21284,28 @@
21042
21284
  }
21043
21285
  ]
21044
21286
  },
21287
+ "BillingProduct": {
21288
+ "type": "string",
21289
+ "description": "Name of the product",
21290
+ "enum": [
21291
+ "free_2024",
21292
+ "plus_2024",
21293
+ "pro_2024",
21294
+ "enterprise_2024",
21295
+ "free",
21296
+ "plus",
21297
+ "pro",
21298
+ "team",
21299
+ "business",
21300
+ "legacy",
21301
+ "startup",
21302
+ "enterprise",
21303
+ "community",
21304
+ "team_oct_2019_free",
21305
+ "team_dec_2021",
21306
+ "business_dec_2021"
21307
+ ]
21308
+ },
21045
21309
  "Organization": {
21046
21310
  "type": "object",
21047
21311
  "properties": {
@@ -21091,6 +21355,13 @@
21091
21355
  "description": "If true, the organization is configured to use all our AI features.",
21092
21356
  "type": "boolean"
21093
21357
  },
21358
+ "inviteLinks": {
21359
+ "description": "If true, invite links are enabled for this organization.",
21360
+ "type": "boolean"
21361
+ },
21362
+ "plan": {
21363
+ "$ref": "#/components/schemas/BillingProduct"
21364
+ },
21094
21365
  "urls": {
21095
21366
  "type": "object",
21096
21367
  "description": "URLs associated with the object",
@@ -21119,8 +21390,10 @@
21119
21390
  "required": [
21120
21391
  "object",
21121
21392
  "id",
21393
+ "plan",
21122
21394
  "title",
21123
21395
  "createdAt",
21396
+ "inviteLinks",
21124
21397
  "type",
21125
21398
  "emailDomains",
21126
21399
  "urls"
@@ -24720,7 +24993,12 @@
24720
24993
  },
24721
24994
  "spaceId": {
24722
24995
  "type": "string",
24723
- "description": "Unique identifier of the visited space in the site."
24996
+ "description": "Unique identifier of the visited space in the site.",
24997
+ "deprecated": true
24998
+ },
24999
+ "siteSpaceId": {
25000
+ "description": "The site-space that was viewed",
25001
+ "type": "string"
24724
25002
  },
24725
25003
  "pageId": {
24726
25004
  "type": "string",
@@ -25505,9 +25783,16 @@
25505
25783
  "type": "string"
25506
25784
  },
25507
25785
  "space": {
25508
- "description": "ID of the space the integration is installed on.",
25509
- "type": "string"
25510
- },
25786
+ "description": "The space the integration is installed on. Using the string value is deprecated in favor of space.id",
25787
+ "oneOf": [
25788
+ {
25789
+ "type": "string"
25790
+ },
25791
+ {
25792
+ "$ref": "#/components/schemas/Space"
25793
+ }
25794
+ ]
25795
+ },
25511
25796
  "status": {
25512
25797
  "$ref": "#/components/schemas/IntegrationInstallationStatus"
25513
25798
  },
@@ -26908,6 +27193,214 @@
26908
27193
  }
26909
27194
  }
26910
27195
  },
27196
+ "SiteType": {
27197
+ "type": "string",
27198
+ "description": "The type of the site",
27199
+ "enum": [
27200
+ "basic",
27201
+ "premium",
27202
+ "ultimate",
27203
+ "sponsored",
27204
+ "legacy-basic",
27205
+ "legacy-premium"
27206
+ ]
27207
+ },
27208
+ "SiteTitle": {
27209
+ "type": "string",
27210
+ "description": "Title of the site",
27211
+ "minLength": 2,
27212
+ "maxLength": 128
27213
+ },
27214
+ "SiteHostname": {
27215
+ "type": "string",
27216
+ "description": "Custom hostname for the site, for e.g. docs.mycompany.com",
27217
+ "pattern": "^([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?[.]){2,}[a-z0-9][a-z0-9-]{0,61}[a-z0-9]$"
27218
+ },
27219
+ "SiteBasename": {
27220
+ "type": "string",
27221
+ "description": "Basename for the site. For e.g. api",
27222
+ "minLength": 1,
27223
+ "maxLength": 100
27224
+ },
27225
+ "SiteVisibility": {
27226
+ "type": "string",
27227
+ "description": "The visibility setting of the site determines the audience of the site.\n* `public`: Anyone can access the site, and the site is indexed by search engines.\n* `unlisted`: Anyone can access the site, and the site is not indexed by search engines\n* `share-link`: Anyone with a secret token in the url can access the site.\n* `visitor-auth`: Anyone authenticated through a JWT token can access the site.\n",
27228
+ "enum": [
27229
+ "public",
27230
+ "unlisted",
27231
+ "share-link",
27232
+ "visitor-auth"
27233
+ ]
27234
+ },
27235
+ "SiteAdsTopic": {
27236
+ "type": "string",
27237
+ "description": "Topic of the content",
27238
+ "enum": [
27239
+ "webdev",
27240
+ "crypto"
27241
+ ]
27242
+ },
27243
+ "SiteAds": {
27244
+ "oneOf": [
27245
+ {
27246
+ "type": "object",
27247
+ "required": [
27248
+ "status",
27249
+ "submittable"
27250
+ ],
27251
+ "properties": {
27252
+ "status": {
27253
+ "type": "string",
27254
+ "enum": [
27255
+ "pending"
27256
+ ]
27257
+ },
27258
+ "submittable": {
27259
+ "type": "boolean",
27260
+ "description": "True if the user can submit the site for review."
27261
+ }
27262
+ }
27263
+ },
27264
+ {
27265
+ "type": "object",
27266
+ "required": [
27267
+ "status",
27268
+ "topic",
27269
+ "accountEmail"
27270
+ ],
27271
+ "properties": {
27272
+ "status": {
27273
+ "type": "string",
27274
+ "enum": [
27275
+ "in-review"
27276
+ ]
27277
+ },
27278
+ "topic": {
27279
+ "$ref": "#/components/schemas/SiteAdsTopic"
27280
+ }
27281
+ }
27282
+ },
27283
+ {
27284
+ "type": "object",
27285
+ "required": [
27286
+ "status"
27287
+ ],
27288
+ "properties": {
27289
+ "status": {
27290
+ "type": "string",
27291
+ "enum": [
27292
+ "rejected"
27293
+ ]
27294
+ }
27295
+ }
27296
+ },
27297
+ {
27298
+ "type": "object",
27299
+ "required": [
27300
+ "status",
27301
+ "topic",
27302
+ "zoneId"
27303
+ ],
27304
+ "properties": {
27305
+ "status": {
27306
+ "type": "string",
27307
+ "enum": [
27308
+ "live",
27309
+ "disabled"
27310
+ ]
27311
+ },
27312
+ "topic": {
27313
+ "$ref": "#/components/schemas/SiteAdsTopic"
27314
+ },
27315
+ "zoneId": {
27316
+ "type": "string",
27317
+ "description": "The ad network zone ID"
27318
+ }
27319
+ }
27320
+ }
27321
+ ]
27322
+ },
27323
+ "Site": {
27324
+ "type": "object",
27325
+ "properties": {
27326
+ "object": {
27327
+ "type": "string",
27328
+ "enum": [
27329
+ "site"
27330
+ ]
27331
+ },
27332
+ "id": {
27333
+ "type": "string",
27334
+ "description": "Unique identifier of the site"
27335
+ },
27336
+ "type": {
27337
+ "$ref": "#/components/schemas/SiteType"
27338
+ },
27339
+ "title": {
27340
+ "$ref": "#/components/schemas/SiteTitle"
27341
+ },
27342
+ "hostname": {
27343
+ "$ref": "#/components/schemas/SiteHostname"
27344
+ },
27345
+ "basename": {
27346
+ "$ref": "#/components/schemas/SiteBasename"
27347
+ },
27348
+ "visibility": {
27349
+ "$ref": "#/components/schemas/SiteVisibility"
27350
+ },
27351
+ "published": {
27352
+ "type": "boolean",
27353
+ "description": "Whether the site is live or not. If true, the site is accessible to the audience defined by the visibility setting."
27354
+ },
27355
+ "siteSpaces": {
27356
+ "type": "number"
27357
+ },
27358
+ "createdAt": {
27359
+ "type": "string",
27360
+ "format": "date-time"
27361
+ },
27362
+ "ads": {
27363
+ "$ref": "#/components/schemas/SiteAds"
27364
+ },
27365
+ "urls": {
27366
+ "type": "object",
27367
+ "description": "URLs associated with the object",
27368
+ "properties": {
27369
+ "location": {
27370
+ "type": "string",
27371
+ "description": "URL of the site in the API",
27372
+ "format": "uri"
27373
+ },
27374
+ "app": {
27375
+ "type": "string",
27376
+ "description": "URL of the site in the application",
27377
+ "format": "uri"
27378
+ },
27379
+ "published": {
27380
+ "type": "string",
27381
+ "description": "URL of the published version of the site. Only defined when site is published.",
27382
+ "format": "uri"
27383
+ }
27384
+ },
27385
+ "required": [
27386
+ "app",
27387
+ "location"
27388
+ ]
27389
+ }
27390
+ },
27391
+ "required": [
27392
+ "object",
27393
+ "id",
27394
+ "type",
27395
+ "title",
27396
+ "visibility",
27397
+ "published",
27398
+ "createdAt",
27399
+ "siteSpaces",
27400
+ "defaultSpace",
27401
+ "urls"
27402
+ ]
27403
+ },
26911
27404
  "IntegrationSiteInstallation": {
26912
27405
  "type": "object",
26913
27406
  "description": "Installation of an integration at a site level",
@@ -26921,8 +27414,15 @@
26921
27414
  "type": "string"
26922
27415
  },
26923
27416
  "site": {
26924
- "description": "ID of the site the integration is installed on.",
26925
- "type": "string"
27417
+ "description": "The site the integration is installed on. Using the string value is deprecated in favor of site.id",
27418
+ "oneOf": [
27419
+ {
27420
+ "type": "string"
27421
+ },
27422
+ {
27423
+ "$ref": "#/components/schemas/Site"
27424
+ }
27425
+ ]
26926
27426
  },
26927
27427
  "status": {
26928
27428
  "$ref": "#/components/schemas/IntegrationInstallationStatus"
@@ -26996,25 +27496,281 @@
26996
27496
  "title"
26997
27497
  ]
26998
27498
  },
26999
- "OrganizationMember": {
27499
+ "SiteSectionTitle": {
27500
+ "type": "string",
27501
+ "description": "Title of the site section",
27502
+ "minLength": 2,
27503
+ "maxLength": 128
27504
+ },
27505
+ "SiteSectionPath": {
27506
+ "type": "string",
27507
+ "description": "Path to the section on the site",
27508
+ "minLength": 1,
27509
+ "maxLength": 100
27510
+ },
27511
+ "SiteSpacePath": {
27512
+ "type": "string",
27513
+ "description": "Path to the space on the site",
27514
+ "minLength": 1,
27515
+ "maxLength": 100
27516
+ },
27517
+ "SiteSpace": {
27000
27518
  "type": "object",
27001
27519
  "properties": {
27002
27520
  "object": {
27003
27521
  "type": "string",
27004
- "description": "Type of Object, always equals to \"member\"",
27522
+ "description": "The object type, which is always \"site-space\"",
27005
27523
  "enum": [
27006
- "member"
27524
+ "site-space"
27007
27525
  ]
27008
27526
  },
27009
27527
  "id": {
27010
27528
  "type": "string",
27011
- "description": "Unique identifier for the user."
27529
+ "description": "Unique identifier of the site-space"
27012
27530
  },
27013
- "role": {
27014
- "$ref": "#/components/schemas/MemberRoleOrGuest"
27531
+ "path": {
27532
+ "$ref": "#/components/schemas/SiteSpacePath"
27015
27533
  },
27016
- "user": {
27017
- "$ref": "#/components/schemas/User"
27534
+ "section": {
27535
+ "type": "string",
27536
+ "description": "ID of the section the space belongs to in the site"
27537
+ },
27538
+ "space": {
27539
+ "$ref": "#/components/schemas/Space"
27540
+ },
27541
+ "title": {
27542
+ "type": "string"
27543
+ },
27544
+ "default": {
27545
+ "type": "boolean",
27546
+ "description": "Whether this is the default space for the site"
27547
+ },
27548
+ "hasAdvancedCustomizationFeature": {
27549
+ "type": "boolean",
27550
+ "description": "Whether the space has advanced customization feature enabled"
27551
+ },
27552
+ "urls": {
27553
+ "type": "object",
27554
+ "description": "URLs associated with the object",
27555
+ "properties": {
27556
+ "published": {
27557
+ "type": "string",
27558
+ "description": "URL of the published version of the site-space. Only defined when site is published.",
27559
+ "format": "uri"
27560
+ }
27561
+ },
27562
+ "required": [
27563
+ "location"
27564
+ ]
27565
+ }
27566
+ },
27567
+ "required": [
27568
+ "object",
27569
+ "id",
27570
+ "space",
27571
+ "title",
27572
+ "path",
27573
+ "urls"
27574
+ ]
27575
+ },
27576
+ "SiteSection": {
27577
+ "type": "object",
27578
+ "properties": {
27579
+ "object": {
27580
+ "type": "string",
27581
+ "description": "The object type, which is always \"site-section\"",
27582
+ "enum": [
27583
+ "site-section"
27584
+ ]
27585
+ },
27586
+ "id": {
27587
+ "type": "string",
27588
+ "description": "Unique identifier of the site section"
27589
+ },
27590
+ "title": {
27591
+ "$ref": "#/components/schemas/SiteSectionTitle"
27592
+ },
27593
+ "default": {
27594
+ "type": "boolean",
27595
+ "description": "Whether this is the default section for the site"
27596
+ },
27597
+ "path": {
27598
+ "$ref": "#/components/schemas/SiteSectionPath"
27599
+ },
27600
+ "siteSpaces": {
27601
+ "type": "array",
27602
+ "items": {
27603
+ "$ref": "#/components/schemas/SiteSpace"
27604
+ }
27605
+ },
27606
+ "urls": {
27607
+ "type": "object",
27608
+ "description": "URLs associated with the object",
27609
+ "properties": {
27610
+ "published": {
27611
+ "type": "string",
27612
+ "description": "URL of the published version of the site section. Only defined when site is published.",
27613
+ "format": "uri"
27614
+ }
27615
+ },
27616
+ "required": [
27617
+ "location"
27618
+ ]
27619
+ }
27620
+ },
27621
+ "required": [
27622
+ "object",
27623
+ "id",
27624
+ "title",
27625
+ "path",
27626
+ "siteSpaces",
27627
+ "urls"
27628
+ ]
27629
+ },
27630
+ "SiteStructure": {
27631
+ "oneOf": [
27632
+ {
27633
+ "type": "object",
27634
+ "properties": {
27635
+ "type": {
27636
+ "type": "string",
27637
+ "enum": [
27638
+ "sections"
27639
+ ]
27640
+ },
27641
+ "structure": {
27642
+ "type": "array",
27643
+ "items": {
27644
+ "$ref": "#/components/schemas/SiteSection"
27645
+ }
27646
+ }
27647
+ },
27648
+ "required": [
27649
+ "type",
27650
+ "structure"
27651
+ ]
27652
+ },
27653
+ {
27654
+ "type": "object",
27655
+ "properties": {
27656
+ "type": {
27657
+ "type": "string",
27658
+ "enum": [
27659
+ "siteSpaces"
27660
+ ]
27661
+ },
27662
+ "structure": {
27663
+ "type": "array",
27664
+ "items": {
27665
+ "$ref": "#/components/schemas/SiteSpace"
27666
+ }
27667
+ }
27668
+ },
27669
+ "required": [
27670
+ "type",
27671
+ "structure"
27672
+ ]
27673
+ }
27674
+ ]
27675
+ },
27676
+ "OrganizationAllSite": {
27677
+ "type": "object",
27678
+ "properties": {
27679
+ "site": {
27680
+ "$ref": "#/components/schemas/Site"
27681
+ },
27682
+ "structure": {
27683
+ "$ref": "#/components/schemas/SiteStructure"
27684
+ }
27685
+ },
27686
+ "required": [
27687
+ "site",
27688
+ "structure"
27689
+ ]
27690
+ },
27691
+ "OrganizationAllCollection": {
27692
+ "type": "object",
27693
+ "properties": {
27694
+ "collection": {
27695
+ "$ref": "#/components/schemas/Collection"
27696
+ },
27697
+ "content": {
27698
+ "type": "array",
27699
+ "items": {
27700
+ "oneOf": [
27701
+ {
27702
+ "$ref": "#/components/schemas/OrganizationAllCollection"
27703
+ },
27704
+ {
27705
+ "$ref": "#/components/schemas/OrganizationAllSpace"
27706
+ }
27707
+ ]
27708
+ }
27709
+ }
27710
+ },
27711
+ "required": [
27712
+ "collection",
27713
+ "content"
27714
+ ]
27715
+ },
27716
+ "OrganizationAllSpace": {
27717
+ "type": "object",
27718
+ "properties": {
27719
+ "space": {
27720
+ "$ref": "#/components/schemas/Space"
27721
+ }
27722
+ },
27723
+ "required": [
27724
+ "space"
27725
+ ]
27726
+ },
27727
+ "OrganizationAllContent": {
27728
+ "type": "object",
27729
+ "properties": {
27730
+ "sites": {
27731
+ "type": "array",
27732
+ "items": {
27733
+ "$ref": "#/components/schemas/OrganizationAllSite"
27734
+ }
27735
+ },
27736
+ "spaces": {
27737
+ "type": "array",
27738
+ "items": {
27739
+ "oneOf": [
27740
+ {
27741
+ "$ref": "#/components/schemas/OrganizationAllCollection"
27742
+ },
27743
+ {
27744
+ "$ref": "#/components/schemas/OrganizationAllSpace"
27745
+ }
27746
+ ]
27747
+ }
27748
+ }
27749
+ },
27750
+ "required": [
27751
+ "sites",
27752
+ "spaces"
27753
+ ]
27754
+ },
27755
+ "OrganizationMember": {
27756
+ "type": "object",
27757
+ "properties": {
27758
+ "object": {
27759
+ "type": "string",
27760
+ "description": "Type of Object, always equals to \"member\"",
27761
+ "enum": [
27762
+ "member"
27763
+ ]
27764
+ },
27765
+ "id": {
27766
+ "type": "string",
27767
+ "description": "Unique identifier for the user."
27768
+ },
27769
+ "role": {
27770
+ "$ref": "#/components/schemas/MemberRoleOrGuest"
27771
+ },
27772
+ "user": {
27773
+ "$ref": "#/components/schemas/User"
27018
27774
  },
27019
27775
  "disabled": {
27020
27776
  "type": "boolean",
@@ -27379,36 +28135,6 @@
27379
28135
  }
27380
28136
  ]
27381
28137
  },
27382
- "BillingPortal": {
27383
- "type": "object",
27384
- "properties": {
27385
- "url": {
27386
- "type": "string",
27387
- "description": "URL to the billing portal for an organization"
27388
- }
27389
- },
27390
- "required": [
27391
- "url"
27392
- ]
27393
- },
27394
- "BillingProduct": {
27395
- "type": "string",
27396
- "description": "Name of the product",
27397
- "enum": [
27398
- "free_2024",
27399
- "plus_2024",
27400
- "pro_2024",
27401
- "enterprise_2024",
27402
- "free",
27403
- "plus",
27404
- "pro",
27405
- "team",
27406
- "business",
27407
- "legacy",
27408
- "startup",
27409
- "enterprise"
27410
- ]
27411
- },
27412
28138
  "BillingInterval": {
27413
28139
  "type": "string",
27414
28140
  "description": "Interval for a billing subscription",
@@ -27624,6 +28350,18 @@
27624
28350
  }
27625
28351
  ]
27626
28352
  },
28353
+ "BillingPortal": {
28354
+ "type": "object",
28355
+ "properties": {
28356
+ "url": {
28357
+ "type": "string",
28358
+ "description": "URL to the billing portal for an organization"
28359
+ }
28360
+ },
28361
+ "required": [
28362
+ "url"
28363
+ ]
28364
+ },
27627
28365
  "CreateSpace": {
27628
28366
  "type": "object",
27629
28367
  "properties": {
@@ -28371,214 +29109,6 @@
28371
29109
  }
28372
29110
  }
28373
29111
  },
28374
- "SiteType": {
28375
- "type": "string",
28376
- "description": "The type of the site",
28377
- "enum": [
28378
- "basic",
28379
- "premium",
28380
- "ultimate",
28381
- "sponsored",
28382
- "legacy-basic",
28383
- "legacy-premium"
28384
- ]
28385
- },
28386
- "SiteTitle": {
28387
- "type": "string",
28388
- "description": "Title of the site",
28389
- "minLength": 2,
28390
- "maxLength": 128
28391
- },
28392
- "SiteHostname": {
28393
- "type": "string",
28394
- "description": "Custom hostname for the site, for e.g. docs.mycompany.com",
28395
- "pattern": "^([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?[.]){2,}[a-z0-9][a-z0-9-]{0,61}[a-z0-9]$"
28396
- },
28397
- "SiteBasename": {
28398
- "type": "string",
28399
- "description": "Basename for the site. For e.g. api",
28400
- "minLength": 1,
28401
- "maxLength": 100
28402
- },
28403
- "SiteVisibility": {
28404
- "type": "string",
28405
- "description": "The visibility setting of the site determines the audience of the site.\n* `public`: Anyone can access the site, and the site is indexed by search engines.\n* `unlisted`: Anyone can access the site, and the site is not indexed by search engines\n* `share-link`: Anyone with a secret token in the url can access the site.\n* `visitor-auth`: Anyone authenticated through a JWT token can access the site.\n",
28406
- "enum": [
28407
- "public",
28408
- "unlisted",
28409
- "share-link",
28410
- "visitor-auth"
28411
- ]
28412
- },
28413
- "SiteAdsTopic": {
28414
- "type": "string",
28415
- "description": "Topic of the content",
28416
- "enum": [
28417
- "webdev",
28418
- "crypto"
28419
- ]
28420
- },
28421
- "SiteAds": {
28422
- "oneOf": [
28423
- {
28424
- "type": "object",
28425
- "required": [
28426
- "status",
28427
- "submittable"
28428
- ],
28429
- "properties": {
28430
- "status": {
28431
- "type": "string",
28432
- "enum": [
28433
- "pending"
28434
- ]
28435
- },
28436
- "submittable": {
28437
- "type": "boolean",
28438
- "description": "True if the user can submit the site for review."
28439
- }
28440
- }
28441
- },
28442
- {
28443
- "type": "object",
28444
- "required": [
28445
- "status",
28446
- "topic",
28447
- "accountEmail"
28448
- ],
28449
- "properties": {
28450
- "status": {
28451
- "type": "string",
28452
- "enum": [
28453
- "in-review"
28454
- ]
28455
- },
28456
- "topic": {
28457
- "$ref": "#/components/schemas/SiteAdsTopic"
28458
- }
28459
- }
28460
- },
28461
- {
28462
- "type": "object",
28463
- "required": [
28464
- "status"
28465
- ],
28466
- "properties": {
28467
- "status": {
28468
- "type": "string",
28469
- "enum": [
28470
- "rejected"
28471
- ]
28472
- }
28473
- }
28474
- },
28475
- {
28476
- "type": "object",
28477
- "required": [
28478
- "status",
28479
- "topic",
28480
- "zoneId"
28481
- ],
28482
- "properties": {
28483
- "status": {
28484
- "type": "string",
28485
- "enum": [
28486
- "live",
28487
- "disabled"
28488
- ]
28489
- },
28490
- "topic": {
28491
- "$ref": "#/components/schemas/SiteAdsTopic"
28492
- },
28493
- "zoneId": {
28494
- "type": "string",
28495
- "description": "The ad network zone ID"
28496
- }
28497
- }
28498
- }
28499
- ]
28500
- },
28501
- "Site": {
28502
- "type": "object",
28503
- "properties": {
28504
- "object": {
28505
- "type": "string",
28506
- "enum": [
28507
- "site"
28508
- ]
28509
- },
28510
- "id": {
28511
- "type": "string",
28512
- "description": "Unique identifier of the site"
28513
- },
28514
- "type": {
28515
- "$ref": "#/components/schemas/SiteType"
28516
- },
28517
- "title": {
28518
- "$ref": "#/components/schemas/SiteTitle"
28519
- },
28520
- "hostname": {
28521
- "$ref": "#/components/schemas/SiteHostname"
28522
- },
28523
- "basename": {
28524
- "$ref": "#/components/schemas/SiteBasename"
28525
- },
28526
- "visibility": {
28527
- "$ref": "#/components/schemas/SiteVisibility"
28528
- },
28529
- "published": {
28530
- "type": "boolean",
28531
- "description": "Whether the site is live or not. If true, the site is accessible to the audience defined by the visibility setting."
28532
- },
28533
- "siteSpaces": {
28534
- "type": "number"
28535
- },
28536
- "createdAt": {
28537
- "type": "string",
28538
- "format": "date-time"
28539
- },
28540
- "ads": {
28541
- "$ref": "#/components/schemas/SiteAds"
28542
- },
28543
- "urls": {
28544
- "type": "object",
28545
- "description": "URLs associated with the object",
28546
- "properties": {
28547
- "location": {
28548
- "type": "string",
28549
- "description": "URL of the site in the API",
28550
- "format": "uri"
28551
- },
28552
- "app": {
28553
- "type": "string",
28554
- "description": "URL of the site in the application",
28555
- "format": "uri"
28556
- },
28557
- "published": {
28558
- "type": "string",
28559
- "description": "URL of the published version of the site. Only defined when site is published.",
28560
- "format": "uri"
28561
- }
28562
- },
28563
- "required": [
28564
- "app",
28565
- "location"
28566
- ]
28567
- }
28568
- },
28569
- "required": [
28570
- "object",
28571
- "id",
28572
- "type",
28573
- "title",
28574
- "visibility",
28575
- "published",
28576
- "createdAt",
28577
- "siteSpaces",
28578
- "defaultSpace",
28579
- "urls"
28580
- ]
28581
- },
28582
29112
  "BillingOperationPreviewResponse": {
28583
29113
  "description": "A response to a request to preview a paid operation or action. A user might preview an operation before executing it to see which billing steps would be required (if any). This schema defines the response of that preview request.\n",
28584
29114
  "oneOf": [
@@ -28670,181 +29200,6 @@
28670
29200
  }
28671
29201
  ]
28672
29202
  },
28673
- "SiteSectionTitle": {
28674
- "type": "string",
28675
- "description": "Title of the site section",
28676
- "minLength": 2,
28677
- "maxLength": 128
28678
- },
28679
- "SiteSectionPath": {
28680
- "type": "string",
28681
- "description": "Path to the section on the site",
28682
- "minLength": 1,
28683
- "maxLength": 100
28684
- },
28685
- "SiteSpacePath": {
28686
- "type": "string",
28687
- "description": "Path to the space on the site",
28688
- "minLength": 1,
28689
- "maxLength": 100
28690
- },
28691
- "SiteSpace": {
28692
- "type": "object",
28693
- "properties": {
28694
- "object": {
28695
- "type": "string",
28696
- "description": "The object type, which is always \"site-space\"",
28697
- "enum": [
28698
- "site-space"
28699
- ]
28700
- },
28701
- "id": {
28702
- "type": "string",
28703
- "description": "Unique identifier of the site-space"
28704
- },
28705
- "path": {
28706
- "$ref": "#/components/schemas/SiteSpacePath"
28707
- },
28708
- "section": {
28709
- "type": "string",
28710
- "description": "ID of the section the space belongs to in the site"
28711
- },
28712
- "space": {
28713
- "$ref": "#/components/schemas/Space"
28714
- },
28715
- "title": {
28716
- "type": "string"
28717
- },
28718
- "default": {
28719
- "type": "boolean",
28720
- "description": "Whether this is the default space for the site"
28721
- },
28722
- "hasAdvancedCustomizationFeature": {
28723
- "type": "boolean",
28724
- "description": "Whether the space has advanced customization feature enabled"
28725
- },
28726
- "urls": {
28727
- "type": "object",
28728
- "description": "URLs associated with the object",
28729
- "properties": {
28730
- "published": {
28731
- "type": "string",
28732
- "description": "URL of the published version of the site-space. Only defined when site is published.",
28733
- "format": "uri"
28734
- }
28735
- },
28736
- "required": [
28737
- "location"
28738
- ]
28739
- }
28740
- },
28741
- "required": [
28742
- "id",
28743
- "space",
28744
- "title",
28745
- "path",
28746
- "urls"
28747
- ]
28748
- },
28749
- "SiteSection": {
28750
- "type": "object",
28751
- "properties": {
28752
- "object": {
28753
- "type": "string",
28754
- "description": "The object type, which is always \"site-section\"",
28755
- "enum": [
28756
- "site-section"
28757
- ]
28758
- },
28759
- "id": {
28760
- "type": "string",
28761
- "description": "Unique identifier of the site section"
28762
- },
28763
- "title": {
28764
- "$ref": "#/components/schemas/SiteSectionTitle"
28765
- },
28766
- "default": {
28767
- "type": "boolean",
28768
- "description": "Whether this is the default section for the site"
28769
- },
28770
- "path": {
28771
- "$ref": "#/components/schemas/SiteSectionPath"
28772
- },
28773
- "siteSpaces": {
28774
- "type": "array",
28775
- "items": {
28776
- "$ref": "#/components/schemas/SiteSpace"
28777
- }
28778
- },
28779
- "urls": {
28780
- "type": "object",
28781
- "description": "URLs associated with the object",
28782
- "properties": {
28783
- "published": {
28784
- "type": "string",
28785
- "description": "URL of the published version of the site section. Only defined when site is published.",
28786
- "format": "uri"
28787
- }
28788
- },
28789
- "required": [
28790
- "location"
28791
- ]
28792
- }
28793
- },
28794
- "required": [
28795
- "id",
28796
- "title",
28797
- "path",
28798
- "siteSpaces",
28799
- "urls"
28800
- ]
28801
- },
28802
- "SiteStructure": {
28803
- "oneOf": [
28804
- {
28805
- "type": "object",
28806
- "properties": {
28807
- "type": {
28808
- "type": "string",
28809
- "enum": [
28810
- "sections"
28811
- ]
28812
- },
28813
- "structure": {
28814
- "type": "array",
28815
- "items": {
28816
- "$ref": "#/components/schemas/SiteSection"
28817
- }
28818
- }
28819
- },
28820
- "required": [
28821
- "type",
28822
- "structure"
28823
- ]
28824
- },
28825
- {
28826
- "type": "object",
28827
- "properties": {
28828
- "type": {
28829
- "type": "string",
28830
- "enum": [
28831
- "siteSpaces"
28832
- ]
28833
- },
28834
- "structure": {
28835
- "type": "array",
28836
- "items": {
28837
- "$ref": "#/components/schemas/SiteSpace"
28838
- }
28839
- }
28840
- },
28841
- "required": [
28842
- "type",
28843
- "structure"
28844
- ]
28845
- }
28846
- ]
28847
- },
28848
29203
  "SitePublishingAuth": {
28849
29204
  "allOf": [
28850
29205
  {
@@ -29312,65 +29667,122 @@
29312
29667
  ]
29313
29668
  },
29314
29669
  "SiteTrackPageView": {
29315
- "type": "object",
29316
- "properties": {
29317
- "pageId": {
29318
- "type": "string",
29319
- "description": "Unique identifier of the page."
29320
- },
29321
- "spaceId": {
29322
- "type": "string",
29323
- "description": "Unique identifier of the space."
29324
- },
29325
- "visitor": {
29670
+ "allOf": [
29671
+ {
29326
29672
  "type": "object",
29327
- "description": "Analytics info on the GitBook's content visitor.",
29328
29673
  "properties": {
29329
- "anonymousId": {
29674
+ "pageId": {
29330
29675
  "type": "string",
29331
- "description": "GitBook's unique identifier of the visitor."
29676
+ "description": "Unique identifier of the page."
29332
29677
  },
29333
- "cookies": {
29678
+ "visitor": {
29334
29679
  "type": "object",
29335
- "description": "The visitors cookies.",
29336
- "additionalProperties": {
29337
- "type": "string"
29338
- }
29339
- },
29340
- "ip": {
29341
- "type": "string",
29342
- "description": "IP address of the visitor.\nIf undefined, it'll default to the IP executing the request.\n"
29680
+ "description": "Analytics info on the GitBook's content visitor.",
29681
+ "properties": {
29682
+ "anonymousId": {
29683
+ "type": "string",
29684
+ "description": "GitBook's unique identifier of the visitor."
29685
+ },
29686
+ "cookies": {
29687
+ "type": "object",
29688
+ "description": "The visitors cookies.",
29689
+ "additionalProperties": {
29690
+ "type": "string"
29691
+ }
29692
+ },
29693
+ "ip": {
29694
+ "type": "string",
29695
+ "description": "IP address of the visitor.\nIf undefined, it'll default to the IP executing the request.\n"
29696
+ },
29697
+ "userAgent": {
29698
+ "type": "string",
29699
+ "description": "User-agent of the visitor.\nhttps://developer.mozilla.org/en-US/docs/Web/API/Navigator/userAgent\n"
29700
+ },
29701
+ "language": {
29702
+ "type": "string",
29703
+ "description": "Language of the visitor.\nhttps://developer.mozilla.org/en-US/docs/Web/API/Navigator/language\n"
29704
+ }
29705
+ },
29706
+ "required": [
29707
+ "anonymousId",
29708
+ "cookies",
29709
+ "userAgent"
29710
+ ]
29343
29711
  },
29344
- "userAgent": {
29712
+ "url": {
29345
29713
  "type": "string",
29346
- "description": "User-agent of the visitor.\nhttps://developer.mozilla.org/en-US/docs/Web/API/Navigator/userAgent\n"
29714
+ "description": "The GitBook content's URL visited (including URL params)."
29347
29715
  },
29348
- "language": {
29716
+ "referrer": {
29349
29717
  "type": "string",
29350
- "description": "Language of the visitor.\nhttps://developer.mozilla.org/en-US/docs/Web/API/Navigator/language\n"
29718
+ "description": "The URL of referrer that linked to the page."
29351
29719
  }
29352
29720
  },
29353
29721
  "required": [
29354
- "anonymousId",
29355
- "cookies",
29356
- "userAgent"
29722
+ "visitor",
29723
+ "url",
29724
+ "referrer"
29357
29725
  ]
29358
29726
  },
29359
- "url": {
29360
- "type": "string",
29361
- "description": "The GitBook content's URL visited (including URL params)."
29727
+ {
29728
+ "oneOf": [
29729
+ {
29730
+ "type": "object",
29731
+ "properties": {
29732
+ "spaceId": {
29733
+ "type": "string",
29734
+ "description": "Unique identifier of the space."
29735
+ }
29736
+ },
29737
+ "required": [
29738
+ "spaceId"
29739
+ ]
29740
+ },
29741
+ {
29742
+ "type": "object",
29743
+ "properties": {
29744
+ "siteSpaceId": {
29745
+ "description": "The site-space that was viewed",
29746
+ "type": "string"
29747
+ }
29748
+ },
29749
+ "required": [
29750
+ "siteSpaceId"
29751
+ ]
29752
+ }
29753
+ ]
29754
+ }
29755
+ ]
29756
+ },
29757
+ "InsightsInterval": {
29758
+ "type": "string",
29759
+ "description": "The interval for grouping the results",
29760
+ "enum": [
29761
+ "day",
29762
+ "week",
29763
+ "month",
29764
+ "year"
29765
+ ],
29766
+ "default": "week"
29767
+ },
29768
+ "SiteAdsStats": {
29769
+ "type": "object",
29770
+ "required": [
29771
+ "impressions",
29772
+ "clicks",
29773
+ "revenue"
29774
+ ],
29775
+ "properties": {
29776
+ "impressions": {
29777
+ "type": "number"
29362
29778
  },
29363
- "referrer": {
29364
- "type": "string",
29365
- "description": "The URL of referrer that linked to the page."
29779
+ "clicks": {
29780
+ "type": "number"
29781
+ },
29782
+ "revenue": {
29783
+ "type": "string"
29366
29784
  }
29367
- },
29368
- "required": [
29369
- "visitor",
29370
- "url",
29371
- "referrer",
29372
- "spaceId"
29373
- ]
29785
+ }
29374
29786
  },
29375
29787
  "InsightsContentPage": {
29376
29788
  "type": "object",
@@ -29402,43 +29814,6 @@
29402
29814
  }
29403
29815
  }
29404
29816
  },
29405
- "SiteAdsStats": {
29406
- "type": "object",
29407
- "required": [
29408
- "impressions",
29409
- "clicks",
29410
- "revenue",
29411
- "account"
29412
- ],
29413
- "properties": {
29414
- "impressions": {
29415
- "type": "number"
29416
- },
29417
- "clicks": {
29418
- "type": "number"
29419
- },
29420
- "revenue": {
29421
- "type": "string"
29422
- },
29423
- "account": {
29424
- "type": "object",
29425
- "properties": {
29426
- "email": {
29427
- "type": "string",
29428
- "description": "Email address on the Ads platform."
29429
- },
29430
- "url": {
29431
- "type": "string",
29432
- "description": "URL to configure payout."
29433
- }
29434
- },
29435
- "required": [
29436
- "email",
29437
- "url"
29438
- ]
29439
- }
29440
- }
29441
- },
29442
29817
  "CustomHostnameDnsStatus": {
29443
29818
  "type": "string",
29444
29819
  "enum": [
@@ -30522,6 +30897,16 @@
30522
30897
  "custom_fields_edited"
30523
30898
  ]
30524
30899
  },
30900
+ "GitSyncOperationStage": {
30901
+ "type": "string",
30902
+ "description": "Core stages of a Git Sync process. This is not exhaustive, but should cover\nthe important ones.\n- repo_fetch: Includes fetching the latest repository contents from remote provider.\n- config_check: Includes checking if the YAML config is valid, etc.\n- content_process: Includes processing of pages & files to be imported/exported.\n- finalize: Includes finalizing the sync process like creating the commit on git, or\ncreating a new revision.\n",
30903
+ "enum": [
30904
+ "repo_fetch",
30905
+ "config_check",
30906
+ "content_process",
30907
+ "finalize"
30908
+ ]
30909
+ },
30525
30910
  "OrganizationTransferResponse": {
30526
30911
  "type": "object",
30527
30912
  "required": [
@@ -30778,6 +31163,10 @@
30778
31163
  "type": "string",
30779
31164
  "description": "ID of the site-space to be used when using this token for rendering published content."
30780
31165
  },
31166
+ "siteSection": {
31167
+ "type": "string",
31168
+ "description": "ID of the site-section to be used when using this token for rendering published content. Only defined for section sites."
31169
+ },
30781
31170
  "space": {
30782
31171
  "type": "string",
30783
31172
  "description": "ID of the space to be used when using this token for rendering published content."
@@ -30824,13 +31213,14 @@
30824
31213
  "space"
30825
31214
  ]
30826
31215
  },
30827
- "SpaceGitInfoChannel": {
31216
+ "SpaceContentChannel": {
30828
31217
  "type": "object",
31218
+ "description": "Channel notified when the main content of a space is changed.",
30829
31219
  "properties": {
30830
31220
  "channel": {
30831
31221
  "type": "string",
30832
31222
  "enum": [
30833
- "space-git-info"
31223
+ "space-content"
30834
31224
  ]
30835
31225
  },
30836
31226
  "space": {
@@ -30842,13 +31232,13 @@
30842
31232
  "space"
30843
31233
  ]
30844
31234
  },
30845
- "SpacePublishingAuthChannel": {
31235
+ "SpaceGitInfoChannel": {
30846
31236
  "type": "object",
30847
31237
  "properties": {
30848
31238
  "channel": {
30849
31239
  "type": "string",
30850
31240
  "enum": [
30851
- "space-publishing-auth"
31241
+ "space-git-info"
30852
31242
  ]
30853
31243
  },
30854
31244
  "space": {
@@ -30860,13 +31250,13 @@
30860
31250
  "space"
30861
31251
  ]
30862
31252
  },
30863
- "SpacePublishingCustomizationChannel": {
31253
+ "SpacePublishingAuthChannel": {
30864
31254
  "type": "object",
30865
31255
  "properties": {
30866
31256
  "channel": {
30867
31257
  "type": "string",
30868
31258
  "enum": [
30869
- "space-publishing-customization"
31259
+ "space-publishing-auth"
30870
31260
  ]
30871
31261
  },
30872
31262
  "space": {
@@ -30878,13 +31268,13 @@
30878
31268
  "space"
30879
31269
  ]
30880
31270
  },
30881
- "SpaceCustomFieldsChannel": {
31271
+ "SpacePublishingCustomizationChannel": {
30882
31272
  "type": "object",
30883
31273
  "properties": {
30884
31274
  "channel": {
30885
31275
  "type": "string",
30886
31276
  "enum": [
30887
- "space-customfields"
31277
+ "space-publishing-customization"
30888
31278
  ]
30889
31279
  },
30890
31280
  "space": {
@@ -30896,13 +31286,13 @@
30896
31286
  "space"
30897
31287
  ]
30898
31288
  },
30899
- "SpaceBrokenLinksChannel": {
31289
+ "SpaceCustomFieldsChannel": {
30900
31290
  "type": "object",
30901
31291
  "properties": {
30902
31292
  "channel": {
30903
31293
  "type": "string",
30904
31294
  "enum": [
30905
- "space-broken-links"
31295
+ "space-customfields"
30906
31296
  ]
30907
31297
  },
30908
31298
  "space": {
@@ -30914,22 +31304,22 @@
30914
31304
  "space"
30915
31305
  ]
30916
31306
  },
30917
- "BackofficeUserInfoChannel": {
31307
+ "SpaceContentRefsChannel": {
30918
31308
  "type": "object",
30919
31309
  "properties": {
30920
31310
  "channel": {
30921
31311
  "type": "string",
30922
31312
  "enum": [
30923
- "backoffice-user-info"
31313
+ "space-content-refs"
30924
31314
  ]
30925
31315
  },
30926
- "user": {
31316
+ "space": {
30927
31317
  "type": "string"
30928
31318
  }
30929
31319
  },
30930
31320
  "required": [
30931
31321
  "channel",
30932
- "user"
31322
+ "space"
30933
31323
  ]
30934
31324
  },
30935
31325
  "SpaceIntegrationsChannel": {
@@ -31084,13 +31474,13 @@
31084
31474
  "changeRequest"
31085
31475
  ]
31086
31476
  },
31087
- "ChangeRequestBrokenLinksChannel": {
31477
+ "ChangeRequestContentRefsChannel": {
31088
31478
  "type": "object",
31089
31479
  "properties": {
31090
31480
  "channel": {
31091
31481
  "type": "string",
31092
31482
  "enum": [
31093
- "space-change-request-broken-links"
31483
+ "space-change-request-content-refs"
31094
31484
  ]
31095
31485
  },
31096
31486
  "space": {
@@ -31452,7 +31842,7 @@
31452
31842
  "organization"
31453
31843
  ]
31454
31844
  },
31455
- "CommentsChannel": {
31845
+ "SpaceCommentsChannel": {
31456
31846
  "type": "object",
31457
31847
  "properties": {
31458
31848
  "channel": {
@@ -31461,6 +31851,24 @@
31461
31851
  "space-comments"
31462
31852
  ]
31463
31853
  },
31854
+ "space": {
31855
+ "type": "string"
31856
+ }
31857
+ },
31858
+ "required": [
31859
+ "channel",
31860
+ "space"
31861
+ ]
31862
+ },
31863
+ "ChangeRequestCommentsChannel": {
31864
+ "type": "object",
31865
+ "properties": {
31866
+ "channel": {
31867
+ "type": "string",
31868
+ "enum": [
31869
+ "space-change-request-comments"
31870
+ ]
31871
+ },
31464
31872
  "space": {
31465
31873
  "type": "string"
31466
31874
  },
@@ -31470,7 +31878,8 @@
31470
31878
  },
31471
31879
  "required": [
31472
31880
  "channel",
31473
- "space"
31881
+ "space",
31882
+ "changeRequest"
31474
31883
  ]
31475
31884
  },
31476
31885
  "CommentInfoChannel": {
@@ -31485,9 +31894,6 @@
31485
31894
  "space": {
31486
31895
  "type": "string"
31487
31896
  },
31488
- "changeRequest": {
31489
- "type": "string"
31490
- },
31491
31897
  "comment": {
31492
31898
  "type": "string"
31493
31899
  }
@@ -31510,9 +31916,6 @@
31510
31916
  "space": {
31511
31917
  "type": "string"
31512
31918
  },
31513
- "changeRequest": {
31514
- "type": "string"
31515
- },
31516
31919
  "comment": {
31517
31920
  "type": "string"
31518
31921
  },
@@ -31539,9 +31942,6 @@
31539
31942
  "space": {
31540
31943
  "type": "string"
31541
31944
  },
31542
- "changeRequest": {
31543
- "type": "string"
31544
- },
31545
31945
  "comment": {
31546
31946
  "type": "string"
31547
31947
  }
@@ -31904,12 +32304,51 @@
31904
32304
  "customHostname"
31905
32305
  ]
31906
32306
  },
32307
+ "GitSyncSettingsChannel": {
32308
+ "type": "object",
32309
+ "properties": {
32310
+ "channel": {
32311
+ "type": "string",
32312
+ "enum": [
32313
+ "space-gitsync-settings"
32314
+ ]
32315
+ },
32316
+ "space": {
32317
+ "type": "string"
32318
+ }
32319
+ },
32320
+ "required": [
32321
+ "channel",
32322
+ "space"
32323
+ ]
32324
+ },
32325
+ "GitSyncOperationChannel": {
32326
+ "type": "object",
32327
+ "properties": {
32328
+ "channel": {
32329
+ "type": "string",
32330
+ "enum": [
32331
+ "space-gitsync-operation"
32332
+ ]
32333
+ },
32334
+ "space": {
32335
+ "type": "string"
32336
+ }
32337
+ },
32338
+ "required": [
32339
+ "channel",
32340
+ "space"
32341
+ ]
32342
+ },
31907
32343
  "SubscriptionChannel": {
31908
- "description": "Channel to subscribe to for API updates.",
32344
+ "description": "Channel to subscribe to for realtime updates.",
31909
32345
  "oneOf": [
31910
32346
  {
31911
32347
  "$ref": "#/components/schemas/SpaceInfoChannel"
31912
32348
  },
32349
+ {
32350
+ "$ref": "#/components/schemas/SpaceContentChannel"
32351
+ },
31913
32352
  {
31914
32353
  "$ref": "#/components/schemas/SpaceGitInfoChannel"
31915
32354
  },
@@ -31923,10 +32362,7 @@
31923
32362
  "$ref": "#/components/schemas/SpaceCustomFieldsChannel"
31924
32363
  },
31925
32364
  {
31926
- "$ref": "#/components/schemas/SpaceBrokenLinksChannel"
31927
- },
31928
- {
31929
- "$ref": "#/components/schemas/BackofficeUserInfoChannel"
32365
+ "$ref": "#/components/schemas/SpaceContentRefsChannel"
31930
32366
  },
31931
32367
  {
31932
32368
  "$ref": "#/components/schemas/SpaceIntegrationsChannel"
@@ -31953,7 +32389,7 @@
31953
32389
  "$ref": "#/components/schemas/ChangeRequestReviewsChannel"
31954
32390
  },
31955
32391
  {
31956
- "$ref": "#/components/schemas/ChangeRequestBrokenLinksChannel"
32392
+ "$ref": "#/components/schemas/ChangeRequestContentRefsChannel"
31957
32393
  },
31958
32394
  {
31959
32395
  "$ref": "#/components/schemas/CollectionChannel"
@@ -32010,7 +32446,10 @@
32010
32446
  "$ref": "#/components/schemas/OrganizationExperimentalFeaturesChannel"
32011
32447
  },
32012
32448
  {
32013
- "$ref": "#/components/schemas/CommentsChannel"
32449
+ "$ref": "#/components/schemas/SpaceCommentsChannel"
32450
+ },
32451
+ {
32452
+ "$ref": "#/components/schemas/ChangeRequestCommentsChannel"
32014
32453
  },
32015
32454
  {
32016
32455
  "$ref": "#/components/schemas/CommentInfoChannel"
@@ -32071,6 +32510,176 @@
32071
32510
  },
32072
32511
  {
32073
32512
  "$ref": "#/components/schemas/CustomHostnameChannel"
32513
+ },
32514
+ {
32515
+ "$ref": "#/components/schemas/GitSyncSettingsChannel"
32516
+ },
32517
+ {
32518
+ "$ref": "#/components/schemas/GitSyncOperationChannel"
32519
+ }
32520
+ ],
32521
+ "discriminator": {
32522
+ "propertyName": "channel"
32523
+ }
32524
+ },
32525
+ "GitSyncOperationChannelData": {
32526
+ "type": "object",
32527
+ "properties": {
32528
+ "channel": {
32529
+ "type": "string",
32530
+ "enum": [
32531
+ "space-gitsync-operation"
32532
+ ]
32533
+ },
32534
+ "data": {
32535
+ "type": "object",
32536
+ "nullable": true,
32537
+ "description": "Data passed on the channel messages for GitSync running in a space.",
32538
+ "properties": {
32539
+ "direction": {
32540
+ "type": "string",
32541
+ "enum": [
32542
+ "export",
32543
+ "import"
32544
+ ]
32545
+ },
32546
+ "stage": {
32547
+ "$ref": "#/components/schemas/GitSyncOperationStage"
32548
+ },
32549
+ "dispatchedTasks": {
32550
+ "type": "number"
32551
+ },
32552
+ "completedTasks": {
32553
+ "type": "number"
32554
+ },
32555
+ "startedAt": {
32556
+ "type": "number"
32557
+ },
32558
+ "updatedAt": {
32559
+ "type": "number"
32560
+ }
32561
+ },
32562
+ "required": [
32563
+ "direction",
32564
+ "stage",
32565
+ "dispatchedTasks",
32566
+ "completedTasks",
32567
+ "startedAt",
32568
+ "updatedAt"
32569
+ ]
32570
+ }
32571
+ },
32572
+ "required": [
32573
+ "channel",
32574
+ "data"
32575
+ ]
32576
+ },
32577
+ "SpaceContentRefsChannelData": {
32578
+ "type": "object",
32579
+ "properties": {
32580
+ "channel": {
32581
+ "type": "string",
32582
+ "enum": [
32583
+ "space-content-refs"
32584
+ ]
32585
+ },
32586
+ "data": {
32587
+ "type": "object",
32588
+ "description": "Data passed on the channel messages for content refs indexation.",
32589
+ "properties": {
32590
+ "revision": {
32591
+ "type": "string",
32592
+ "description": "ID of the latest indexed revision"
32593
+ },
32594
+ "updatedAt": {
32595
+ "type": "number"
32596
+ }
32597
+ },
32598
+ "required": [
32599
+ "revision",
32600
+ "updatedAt"
32601
+ ]
32602
+ }
32603
+ },
32604
+ "required": [
32605
+ "channel",
32606
+ "data"
32607
+ ]
32608
+ },
32609
+ "ChangeRequestContentRefsChannelData": {
32610
+ "type": "object",
32611
+ "properties": {
32612
+ "channel": {
32613
+ "type": "string",
32614
+ "enum": [
32615
+ "space-change-request-content-refs"
32616
+ ]
32617
+ },
32618
+ "data": {
32619
+ "type": "object",
32620
+ "description": "Data passed on the channel messages for content refs indexation.",
32621
+ "properties": {
32622
+ "revision": {
32623
+ "type": "string",
32624
+ "description": "ID of the latest indexed revision"
32625
+ },
32626
+ "updatedAt": {
32627
+ "type": "number"
32628
+ }
32629
+ },
32630
+ "required": [
32631
+ "revision",
32632
+ "updatedAt"
32633
+ ]
32634
+ }
32635
+ },
32636
+ "required": [
32637
+ "channel",
32638
+ "data"
32639
+ ]
32640
+ },
32641
+ "APIChannelMutationData": {
32642
+ "type": "object",
32643
+ "properties": {
32644
+ "channel": {
32645
+ "type": "string",
32646
+ "enum": [
32647
+ "*"
32648
+ ]
32649
+ },
32650
+ "data": {
32651
+ "type": "object",
32652
+ "description": "Data passed on the channels associated to API endpoints.",
32653
+ "properties": {
32654
+ "executionId": {
32655
+ "type": "string",
32656
+ "description": "ID of the API execution that triggered the mutation."
32657
+ }
32658
+ },
32659
+ "required": [
32660
+ "executionId"
32661
+ ]
32662
+ }
32663
+ },
32664
+ "required": [
32665
+ "channel",
32666
+ "data"
32667
+ ]
32668
+ },
32669
+ "SubscriptionChannelData": {
32670
+ "description": "Data passed through a realtime channel",
32671
+ "oneOf": [
32672
+ {
32673
+ "$ref": "#/components/schemas/GitSyncOperationChannelData"
32674
+ },
32675
+ {
32676
+ "$ref": "#/components/schemas/SpaceContentRefsChannelData"
32677
+ },
32678
+ {
32679
+ "$ref": "#/components/schemas/ChangeRequestContentRefsChannelData"
32680
+ },
32681
+ {
32682
+ "$ref": "#/components/schemas/APIChannelMutationData"
32074
32683
  }
32075
32684
  ],
32076
32685
  "discriminator": {