@gitbook/api 0.92.0 → 0.93.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/client.d.ts CHANGED
@@ -144,17 +144,12 @@ export interface ContentRefSpace {
144
144
  kind: 'space';
145
145
  space: string;
146
146
  }
147
- export interface ContentRefSnippet {
148
- kind: 'snippet';
149
- snippet: string;
150
- organization: string;
151
- }
152
147
  export interface ContentRefReusableContent {
153
148
  kind: 'reusable-content';
154
149
  reusableContent: string;
155
150
  }
156
151
  /** A relative reference to content in GitBook. */
157
- export type ContentRef = ContentRefFile | ContentRefURL | ContentRefPage | ContentRefAnchor | ContentRefUser | ContentRefCollection | ContentRefSpace | ContentRefSnippet | ContentRefReusableContent;
152
+ export type ContentRef = ContentRefFile | ContentRefURL | ContentRefPage | ContentRefAnchor | ContentRefUser | ContentRefCollection | ContentRefSpace | ContentRefReusableContent;
158
153
  export interface DocumentInlineLink {
159
154
  object: 'inline';
160
155
  type: 'link';
@@ -770,7 +765,10 @@ export declare enum SpaceEditMode {
770
765
  Live = "live",
771
766
  Locked = "locked"
772
767
  }
773
- /** @format uri */
768
+ /**
769
+ * @format uri
770
+ * @maxLength 2048
771
+ */
774
772
  export type URL = string;
775
773
  /** The provider of the Git Sync installation. */
776
774
  export declare enum GitSyncProvider {
@@ -1612,8 +1610,6 @@ export interface Organization {
1612
1610
  blocked?: {
1613
1611
  reason: OrganizationBlockReason;
1614
1612
  };
1615
- /** If true, the organization is still using the deprecated snippets feature. */
1616
- internal_isUsingSnippets?: boolean;
1617
1613
  /** If true, the organization is on the new trial which includes sites and the Pro plan. */
1618
1614
  internal_isOnNewTrial?: boolean;
1619
1615
  /** The set of permissions for the organization */
@@ -1722,288 +1718,6 @@ export interface ContentLocationSpace {
1722
1718
  organization: Organization;
1723
1719
  space: Space;
1724
1720
  }
1725
- /**
1726
- * Title of the integration
1727
- * @minLength 2
1728
- * @maxLength 30
1729
- */
1730
- export type IntegrationTitle = string;
1731
- /**
1732
- * Description of the integration
1733
- * @maxLength 100
1734
- */
1735
- export type IntegrationDescription = string;
1736
- /**
1737
- * Long form markdown summary of the integration
1738
- * @maxLength 2048
1739
- */
1740
- export type IntegrationSummary = string;
1741
- /** The target on which the integration can operate and needs to be configured for */
1742
- export declare enum IntegrationTarget {
1743
- All = "all",
1744
- Site = "site",
1745
- Space = "space",
1746
- Organization = "organization"
1747
- }
1748
- export declare enum IntegrationVisibility {
1749
- Public = "public",
1750
- Private = "private",
1751
- Unlisted = "unlisted"
1752
- }
1753
- export declare enum IntegrationScope {
1754
- SnippetsRead = "snippets:read",
1755
- CaptureWrite = "capture:write",
1756
- SpaceViewsRead = "space:views:read",
1757
- SpaceContentRead = "space:content:read",
1758
- SpaceContentWrite = "space:content:write",
1759
- SpaceMetadataRead = "space:metadata:read",
1760
- SpaceMetadataWrite = "space:metadata:write",
1761
- SpaceScriptInject = "space:script:inject",
1762
- SpaceScriptCookies = "space:script:cookies",
1763
- SpaceGitSync = "space:git:sync",
1764
- SpaceVisitorAuth = "space:visitor:auth",
1765
- SiteMetadataRead = "site:metadata:read",
1766
- SiteViewsRead = "site:views:read",
1767
- SiteScriptInject = "site:script:inject",
1768
- SiteScriptCookies = "site:script:cookies",
1769
- SiteVisitorAuth = "site:visitor:auth"
1770
- }
1771
- /** Permissions that should be granted to the integration */
1772
- export type IntegrationScopes = IntegrationScope[];
1773
- export declare enum IntegrationCategory {
1774
- Analytics = "analytics",
1775
- Captures = "captures",
1776
- Collaboration = "collaboration",
1777
- Content = "content",
1778
- Gitsync = "gitsync",
1779
- Marketing = "marketing",
1780
- VisitorAuth = "visitor-auth",
1781
- Other = "other"
1782
- }
1783
- /** Categories for which the integration is listed in the marketplace */
1784
- export type IntegrationCategories = IntegrationCategory[];
1785
- /** Custom blocks defined by this integration. */
1786
- export type IntegrationBlocks = IntegrationBlock[];
1787
- /** ContentKit component for configuration */
1788
- export interface IntegrationConfigurationComponent {
1789
- /** ID of the ContentKit component defined in the integration */
1790
- componentId: string;
1791
- }
1792
- /** Definition of a content source provided by the integration. */
1793
- export interface IntegrationContentSource {
1794
- /** Unique ID in the integration for the source. */
1795
- id: string;
1796
- /**
1797
- * Short descriptive title for the source.
1798
- * @minLength 2
1799
- * @maxLength 40
1800
- */
1801
- title: string;
1802
- /**
1803
- * Long descriptive text for the source.
1804
- * @minLength 0
1805
- * @maxLength 150
1806
- */
1807
- description?: string;
1808
- /** URL of the icon to represent this source. */
1809
- icon?: string;
1810
- /** ContentKit component for configuration */
1811
- configuration?: IntegrationConfigurationComponent;
1812
- }
1813
- /** Schema for a configuration */
1814
- export interface IntegrationConfigurationSchema {
1815
- properties: Record<string, {
1816
- /** @maxLength 30 */
1817
- title?: string;
1818
- /** @maxLength 100 */
1819
- description?: string;
1820
- } & ({
1821
- type: 'string';
1822
- default?: string;
1823
- } | {
1824
- type: 'number';
1825
- default?: number;
1826
- } | {
1827
- type: 'boolean';
1828
- default?: boolean;
1829
- } | {
1830
- type: 'button';
1831
- callback_url: string;
1832
- button_text: string;
1833
- })>;
1834
- /** @uniqueItems true */
1835
- required?: string[];
1836
- }
1837
- export type IntegrationConfiguration = IntegrationConfigurationSchema | IntegrationConfigurationComponent;
1838
- export interface IntegrationConfigurations {
1839
- account?: IntegrationConfiguration;
1840
- space?: IntegrationConfiguration;
1841
- site?: IntegrationConfiguration;
1842
- }
1843
- /**
1844
- * External urls configured by the developer of the integration
1845
- * @maxItems 5
1846
- */
1847
- export type IntegrationExternalLinks = {
1848
- url: URL;
1849
- label: string;
1850
- }[];
1851
- /**
1852
- * Security policy to validate the content of the integrations scripts and Contentkit. Will be sent as
1853
- * headers when processing the script fetch event and the blocks fetch events.
1854
- */
1855
- export type IntegrationContentSecurityPolicy = string | {
1856
- 'base-uri'?: string;
1857
- 'block-all-mixed-content'?: string;
1858
- 'child-src'?: string;
1859
- 'connect-src'?: string;
1860
- 'default-src'?: string;
1861
- 'font-src'?: string;
1862
- 'form-action'?: string;
1863
- 'frame-ancestors'?: string;
1864
- 'frame-src'?: string;
1865
- 'img-src'?: string;
1866
- 'manifest-src'?: string;
1867
- 'media-src'?: string;
1868
- 'navigate-to'?: string;
1869
- 'object-src'?: string;
1870
- 'plugin-types'?: string;
1871
- 'prefetch-src'?: string;
1872
- referrer?: string;
1873
- 'report-to'?: string;
1874
- 'report-uri'?: string;
1875
- 'require-sri-for'?: string;
1876
- 'require-trusted-types-for'?: string;
1877
- sandbox?: string;
1878
- 'script-src'?: string;
1879
- 'script-src-attr'?: string;
1880
- 'script-src-elem'?: string;
1881
- 'style-src'?: string;
1882
- 'style-src-attr'?: string;
1883
- 'style-src-elem'?: string;
1884
- 'trusted-types'?: string;
1885
- 'upgrade-insecure-requests'?: string;
1886
- 'worker-src'?: string;
1887
- };
1888
- export interface Integration {
1889
- object: 'integration';
1890
- /** Unique named identifier for the integration */
1891
- name: string;
1892
- /** Version of the integration */
1893
- version: number;
1894
- /** Title of the integration */
1895
- title: IntegrationTitle;
1896
- /** Description of the integration */
1897
- description?: IntegrationDescription;
1898
- /** Long form markdown summary of the integration */
1899
- summary?: IntegrationSummary;
1900
- /**
1901
- * URLs of images to showcase the integration
1902
- * @maxItems 3
1903
- */
1904
- previewImages: string[];
1905
- /** The target on which the integration can operate and needs to be configured for */
1906
- target: IntegrationTarget;
1907
- /** If true, the integration has been verified by the GitBook team */
1908
- verified: boolean;
1909
- visibility: IntegrationVisibility;
1910
- /** Permissions that should be granted to the integration */
1911
- scopes: IntegrationScopes;
1912
- /** Categories for which the integration is listed in the marketplace */
1913
- categories: IntegrationCategories;
1914
- /** Custom blocks defined by this integration. */
1915
- blocks?: IntegrationBlocks;
1916
- contentSources?: IntegrationContentSource[];
1917
- configurations?: IntegrationConfigurations;
1918
- /** External urls configured by the developer of the integration */
1919
- externalLinks: IntegrationExternalLinks;
1920
- owner: Organization;
1921
- /** URLs associated with the object */
1922
- urls: {
1923
- /**
1924
- * URL of the integration in the API
1925
- * @format uri
1926
- */
1927
- location: string;
1928
- /**
1929
- * URL of the icon associated to the integration
1930
- * @format uri
1931
- */
1932
- icon?: string;
1933
- /**
1934
- * URL of the integration in the application
1935
- * @format uri
1936
- */
1937
- app: string;
1938
- /**
1939
- * URL of the integration's assets.
1940
- * @format uri
1941
- */
1942
- assets: string;
1943
- /**
1944
- * Public HTTP endpoint for the integration
1945
- * @format uri
1946
- */
1947
- publicEndpoint: string;
1948
- };
1949
- /** The set of permissions for the integration */
1950
- permissions: {
1951
- admin: boolean;
1952
- };
1953
- /**
1954
- * Security policy to validate the content of the integrations scripts and Contentkit. Will be sent as
1955
- * headers when processing the script fetch event and the blocks fetch events.
1956
- */
1957
- contentSecurityPolicy?: IntegrationContentSecurityPolicy;
1958
- }
1959
- export interface Snippet {
1960
- /** Unique identifier for the snippet */
1961
- id: string;
1962
- /** ID of the organization owning this snippet */
1963
- organization: string;
1964
- /** @format date-time */
1965
- createdAt: string;
1966
- /**
1967
- * Timestamp of when the snippet was last edited, if it has been edited since its creation.
1968
- * @format date-time
1969
- */
1970
- editedAt?: string;
1971
- /** Whether the snippet is archived. Archived snippets don't appear in search results or in the app. */
1972
- archived: boolean;
1973
- /**
1974
- * Title describing the snippet.
1975
- * @maxLength 100
1976
- */
1977
- title?: string;
1978
- /** The source of the snippet. */
1979
- source: {
1980
- /** An ID identifying the source, unique across all sources. */
1981
- sourceId: string;
1982
- /** A display name for the source. */
1983
- name: string;
1984
- /** An ID identifying the snippet in the source system, if available. */
1985
- externalId?: string;
1986
- /** URL of the snippet in the source system, if available. */
1987
- externalUrl?: URL;
1988
- };
1989
- /**
1990
- * An array of contributors to the snippet, which can be either users or integrations. The first contributor is the one who created the snippet.
1991
- * @minItems 1
1992
- */
1993
- contributors: (Integration | User)[];
1994
- /** URLs associated with the object */
1995
- urls: {
1996
- /** URL of the snippet in the API */
1997
- location: URL;
1998
- /** URL of the snippet in the app */
1999
- app: URL;
2000
- };
2001
- }
2002
- export interface ContentLocationSnippet {
2003
- kind: 'snippet';
2004
- organization: Organization;
2005
- snippet: Snippet;
2006
- }
2007
1721
  export interface ContentLocationReusableContent {
2008
1722
  kind: 'reusable-content';
2009
1723
  organization: Organization;
@@ -2012,7 +1726,7 @@ export interface ContentLocationReusableContent {
2012
1726
  reusableContent: RevisionReusableContent;
2013
1727
  }
2014
1728
  /** An absolute reference to content in GitBook. */
2015
- export type ContentLocation = ContentLocationFile | ContentLocationURL | ContentLocationPage | ContentLocationUser | ContentLocationCollection | ContentLocationSpace | ContentLocationSnippet | ContentLocationReusableContent;
1729
+ export type ContentLocation = ContentLocationFile | ContentLocationURL | ContentLocationPage | ContentLocationUser | ContentLocationCollection | ContentLocationSpace | ContentLocationReusableContent;
2016
1730
  /**
2017
1731
  * Text to display to represent the reference. Possible values include:
2018
1732
  * - `ok` - No problems detected for this content reference.
@@ -2620,57 +2334,288 @@ export interface CustomizationSettings {
2620
2334
  favicon: {
2621
2335
  icon: CustomizationThemedURL;
2622
2336
  } | {
2623
- /** Unicode codepoint or character of the emoji */
2624
- emoji: Emoji;
2625
- } | object;
2626
- header: {
2627
- preset: CustomizationHeaderPreset;
2628
- logo?: CustomizationThemedURL;
2629
- backgroundColor?: CustomizationThemedColor;
2630
- linkColor?: CustomizationThemedColor;
2631
- links: CustomizationHeaderItem[];
2632
- };
2633
- footer: {
2634
- logo?: CustomizationThemedURL;
2635
- groups: CustomizationFooterGroup[];
2636
- /** @maxLength 300 */
2637
- copyright?: string;
2638
- };
2639
- themes: {
2640
- default: CustomizationThemeMode;
2641
- /** Should the reader be able to switch between dark and light mode */
2642
- toggeable: boolean;
2643
- };
2644
- pdf: {
2645
- /** If true, PDF export is enabled for the published content. */
2646
- enabled: boolean;
2647
- };
2648
- feedback: {
2649
- /** If true, feedback gathering is enabled */
2650
- enabled: boolean;
2651
- };
2652
- aiSearch: {
2653
- /** If true, AI search is enabled */
2654
- enabled: boolean;
2655
- };
2656
- git: {
2657
- /** Whether the public content should show a link to edit the content on the git provider set up in the GitSync */
2658
- showEditLink: boolean;
2659
- };
2660
- pagination: {
2661
- /** Whether the pagination navigation should be displayed on pages. */
2662
- enabled: boolean;
2663
- };
2664
- trademark: {
2665
- /** Whether the GitBook trademark ("Powered by GitBook") should be visible */
2666
- enabled: boolean;
2667
- };
2668
- privacyPolicy: {
2669
- url?: URL;
2337
+ /** Unicode codepoint or character of the emoji */
2338
+ emoji: Emoji;
2339
+ } | object;
2340
+ header: {
2341
+ preset: CustomizationHeaderPreset;
2342
+ logo?: CustomizationThemedURL;
2343
+ backgroundColor?: CustomizationThemedColor;
2344
+ linkColor?: CustomizationThemedColor;
2345
+ links: CustomizationHeaderItem[];
2346
+ };
2347
+ footer: {
2348
+ logo?: CustomizationThemedURL;
2349
+ groups: CustomizationFooterGroup[];
2350
+ /** @maxLength 300 */
2351
+ copyright?: string;
2352
+ };
2353
+ themes: {
2354
+ default: CustomizationThemeMode;
2355
+ /** Should the reader be able to switch between dark and light mode */
2356
+ toggeable: boolean;
2357
+ };
2358
+ pdf: {
2359
+ /** If true, PDF export is enabled for the published content. */
2360
+ enabled: boolean;
2361
+ };
2362
+ feedback: {
2363
+ /** If true, feedback gathering is enabled */
2364
+ enabled: boolean;
2365
+ };
2366
+ aiSearch: {
2367
+ /** If true, AI search is enabled */
2368
+ enabled: boolean;
2369
+ };
2370
+ git: {
2371
+ /** Whether the public content should show a link to edit the content on the git provider set up in the GitSync */
2372
+ showEditLink: boolean;
2373
+ };
2374
+ pagination: {
2375
+ /** Whether the pagination navigation should be displayed on pages. */
2376
+ enabled: boolean;
2377
+ };
2378
+ trademark: {
2379
+ /** Whether the GitBook trademark ("Powered by GitBook") should be visible */
2380
+ enabled: boolean;
2381
+ };
2382
+ privacyPolicy: {
2383
+ url?: URL;
2384
+ };
2385
+ socialPreview: {
2386
+ url?: URL;
2387
+ };
2388
+ }
2389
+ /**
2390
+ * Title of the integration
2391
+ * @minLength 2
2392
+ * @maxLength 30
2393
+ */
2394
+ export type IntegrationTitle = string;
2395
+ /**
2396
+ * Description of the integration
2397
+ * @maxLength 100
2398
+ */
2399
+ export type IntegrationDescription = string;
2400
+ /**
2401
+ * Long form markdown summary of the integration
2402
+ * @maxLength 2048
2403
+ */
2404
+ export type IntegrationSummary = string;
2405
+ /** The target on which the integration can operate and needs to be configured for */
2406
+ export declare enum IntegrationTarget {
2407
+ All = "all",
2408
+ Site = "site",
2409
+ Space = "space",
2410
+ Organization = "organization"
2411
+ }
2412
+ export declare enum IntegrationVisibility {
2413
+ Public = "public",
2414
+ Private = "private",
2415
+ Unlisted = "unlisted"
2416
+ }
2417
+ export declare enum IntegrationScope {
2418
+ SpaceViewsRead = "space:views:read",
2419
+ SpaceContentRead = "space:content:read",
2420
+ SpaceContentWrite = "space:content:write",
2421
+ SpaceMetadataRead = "space:metadata:read",
2422
+ SpaceMetadataWrite = "space:metadata:write",
2423
+ SpaceScriptInject = "space:script:inject",
2424
+ SpaceScriptCookies = "space:script:cookies",
2425
+ SpaceGitSync = "space:git:sync",
2426
+ SpaceVisitorAuth = "space:visitor:auth",
2427
+ SiteMetadataRead = "site:metadata:read",
2428
+ SiteViewsRead = "site:views:read",
2429
+ SiteScriptInject = "site:script:inject",
2430
+ SiteScriptCookies = "site:script:cookies",
2431
+ SiteVisitorAuth = "site:visitor:auth"
2432
+ }
2433
+ /** Permissions that should be granted to the integration */
2434
+ export type IntegrationScopes = IntegrationScope[];
2435
+ export declare enum IntegrationCategory {
2436
+ Analytics = "analytics",
2437
+ Collaboration = "collaboration",
2438
+ Content = "content",
2439
+ Gitsync = "gitsync",
2440
+ Marketing = "marketing",
2441
+ VisitorAuth = "visitor-auth",
2442
+ Other = "other"
2443
+ }
2444
+ /** Categories for which the integration is listed in the marketplace */
2445
+ export type IntegrationCategories = IntegrationCategory[];
2446
+ /** Custom blocks defined by this integration. */
2447
+ export type IntegrationBlocks = IntegrationBlock[];
2448
+ /** ContentKit component for configuration */
2449
+ export interface IntegrationConfigurationComponent {
2450
+ /** ID of the ContentKit component defined in the integration */
2451
+ componentId: string;
2452
+ }
2453
+ /** Definition of a content source provided by the integration. */
2454
+ export interface IntegrationContentSource {
2455
+ /** Unique ID in the integration for the source. */
2456
+ id: string;
2457
+ /**
2458
+ * Short descriptive title for the source.
2459
+ * @minLength 2
2460
+ * @maxLength 40
2461
+ */
2462
+ title: string;
2463
+ /**
2464
+ * Long descriptive text for the source.
2465
+ * @minLength 0
2466
+ * @maxLength 150
2467
+ */
2468
+ description?: string;
2469
+ /** URL of the icon to represent this source. */
2470
+ icon?: string;
2471
+ /** ContentKit component for configuration */
2472
+ configuration?: IntegrationConfigurationComponent;
2473
+ }
2474
+ /** Schema for a configuration */
2475
+ export interface IntegrationConfigurationSchema {
2476
+ properties: Record<string, {
2477
+ /** @maxLength 30 */
2478
+ title?: string;
2479
+ /** @maxLength 100 */
2480
+ description?: string;
2481
+ } & ({
2482
+ type: 'string';
2483
+ default?: string;
2484
+ } | {
2485
+ type: 'number';
2486
+ default?: number;
2487
+ } | {
2488
+ type: 'boolean';
2489
+ default?: boolean;
2490
+ } | {
2491
+ type: 'button';
2492
+ callback_url: string;
2493
+ button_text: string;
2494
+ })>;
2495
+ /** @uniqueItems true */
2496
+ required?: string[];
2497
+ }
2498
+ export type IntegrationConfiguration = IntegrationConfigurationSchema | IntegrationConfigurationComponent;
2499
+ export interface IntegrationConfigurations {
2500
+ account?: IntegrationConfiguration;
2501
+ space?: IntegrationConfiguration;
2502
+ site?: IntegrationConfiguration;
2503
+ }
2504
+ /**
2505
+ * External urls configured by the developer of the integration
2506
+ * @maxItems 5
2507
+ */
2508
+ export type IntegrationExternalLinks = {
2509
+ url: URL;
2510
+ label: string;
2511
+ }[];
2512
+ /**
2513
+ * Security policy to validate the content of the integrations scripts and Contentkit. Will be sent as
2514
+ * headers when processing the script fetch event and the blocks fetch events.
2515
+ */
2516
+ export type IntegrationContentSecurityPolicy = string | {
2517
+ 'base-uri'?: string;
2518
+ 'block-all-mixed-content'?: string;
2519
+ 'child-src'?: string;
2520
+ 'connect-src'?: string;
2521
+ 'default-src'?: string;
2522
+ 'font-src'?: string;
2523
+ 'form-action'?: string;
2524
+ 'frame-ancestors'?: string;
2525
+ 'frame-src'?: string;
2526
+ 'img-src'?: string;
2527
+ 'manifest-src'?: string;
2528
+ 'media-src'?: string;
2529
+ 'navigate-to'?: string;
2530
+ 'object-src'?: string;
2531
+ 'plugin-types'?: string;
2532
+ 'prefetch-src'?: string;
2533
+ referrer?: string;
2534
+ 'report-to'?: string;
2535
+ 'report-uri'?: string;
2536
+ 'require-sri-for'?: string;
2537
+ 'require-trusted-types-for'?: string;
2538
+ sandbox?: string;
2539
+ 'script-src'?: string;
2540
+ 'script-src-attr'?: string;
2541
+ 'script-src-elem'?: string;
2542
+ 'style-src'?: string;
2543
+ 'style-src-attr'?: string;
2544
+ 'style-src-elem'?: string;
2545
+ 'trusted-types'?: string;
2546
+ 'upgrade-insecure-requests'?: string;
2547
+ 'worker-src'?: string;
2548
+ };
2549
+ export interface Integration {
2550
+ object: 'integration';
2551
+ /** Unique named identifier for the integration */
2552
+ name: string;
2553
+ /** Version of the integration */
2554
+ version: number;
2555
+ /** Title of the integration */
2556
+ title: IntegrationTitle;
2557
+ /** Description of the integration */
2558
+ description?: IntegrationDescription;
2559
+ /** Long form markdown summary of the integration */
2560
+ summary?: IntegrationSummary;
2561
+ /**
2562
+ * URLs of images to showcase the integration
2563
+ * @maxItems 3
2564
+ */
2565
+ previewImages: string[];
2566
+ /** The target on which the integration can operate and needs to be configured for */
2567
+ target: IntegrationTarget;
2568
+ /** If true, the integration has been verified by the GitBook team */
2569
+ verified: boolean;
2570
+ visibility: IntegrationVisibility;
2571
+ /** Permissions that should be granted to the integration */
2572
+ scopes: IntegrationScopes;
2573
+ /** Categories for which the integration is listed in the marketplace */
2574
+ categories: IntegrationCategories;
2575
+ /** Custom blocks defined by this integration. */
2576
+ blocks?: IntegrationBlocks;
2577
+ contentSources?: IntegrationContentSource[];
2578
+ configurations?: IntegrationConfigurations;
2579
+ /** External urls configured by the developer of the integration */
2580
+ externalLinks: IntegrationExternalLinks;
2581
+ owner: Organization;
2582
+ /** URLs associated with the object */
2583
+ urls: {
2584
+ /**
2585
+ * URL of the integration in the API
2586
+ * @format uri
2587
+ */
2588
+ location: string;
2589
+ /**
2590
+ * URL of the icon associated to the integration
2591
+ * @format uri
2592
+ */
2593
+ icon?: string;
2594
+ /**
2595
+ * URL of the integration in the application
2596
+ * @format uri
2597
+ */
2598
+ app: string;
2599
+ /**
2600
+ * URL of the integration's assets.
2601
+ * @format uri
2602
+ */
2603
+ assets: string;
2604
+ /**
2605
+ * Public HTTP endpoint for the integration
2606
+ * @format uri
2607
+ */
2608
+ publicEndpoint: string;
2670
2609
  };
2671
- socialPreview: {
2672
- url?: URL;
2610
+ /** The set of permissions for the integration */
2611
+ permissions: {
2612
+ admin: boolean;
2673
2613
  };
2614
+ /**
2615
+ * Security policy to validate the content of the integrations scripts and Contentkit. Will be sent as
2616
+ * headers when processing the script fetch event and the blocks fetch events.
2617
+ */
2618
+ contentSecurityPolicy?: IntegrationContentSecurityPolicy;
2674
2619
  }
2675
2620
  export type SpaceIntegrationBlocks = {
2676
2621
  /** Unique named identifier for the integration */
@@ -4015,12 +3960,17 @@ export interface MigrateOrganizationParameters {
4015
3960
  /** A list of member identifiers to be removed */
4016
3961
  removeMembers: string[];
4017
3962
  /** A list of site updates to be applied before upgrading. If a site is not present in this list, it'll be upgraded to whichever type matches its features and its published status will be unchanged. When downgrading to a lower type all relevant paid features will be disabled before applying the new type. */
4018
- updateSites: {
3963
+ updateSites: ({
4019
3964
  /** The site identifier */
4020
3965
  id: string;
4021
3966
  /** The site type to migrate to */
4022
3967
  type: SiteType;
4023
- }[];
3968
+ } | {
3969
+ /** The site identifier */
3970
+ id: string;
3971
+ /** Can be set to `false` to unpublish a site */
3972
+ isPublished: false;
3973
+ })[];
4024
3974
  };
4025
3975
  }
4026
3976
  /** These are all the features we check to determine the new pricing site type. */
@@ -4202,115 +4152,6 @@ export interface OrganizationUsage {
4202
4152
  /** Team members usage metrics of an organization */
4203
4153
  teamMembers: OrganizationUsageTeamMembers;
4204
4154
  }
4205
- /**
4206
- * Optional title describing the capture
4207
- * @maxLength 100
4208
- */
4209
- export type CaptureTitle = string;
4210
- export type CaptureContext = 'thread' | 'walkthrough' | 'document';
4211
- export interface Capture {
4212
- /** Unique identifier for the capture */
4213
- id: string;
4214
- /** Optional title describing the capture */
4215
- title: CaptureTitle;
4216
- context: CaptureContext;
4217
- /** ID in the original source of the capture. */
4218
- externalId?: string;
4219
- /**
4220
- * URL of the source from which the capture originated
4221
- * @format uri
4222
- */
4223
- externalURL?: string;
4224
- /** @format date-time */
4225
- createdAt: string;
4226
- /** @format date-time */
4227
- stoppedAt?: string;
4228
- /** @format date-time */
4229
- editedAt?: string;
4230
- /** Count of events recorded. */
4231
- events: {
4232
- 'terminal.command'?: number;
4233
- speech?: number;
4234
- 'thread.message'?: number;
4235
- };
4236
- /**
4237
- * An array of contributors to the capture. The first contributor is the one who triggered the capture (either a user or an integration).
4238
- * @minItems 1
4239
- */
4240
- contributors: (Integration | User)[];
4241
- /** Output document for the capture. Is not set when capture is not finished. */
4242
- output?: Document;
4243
- /** URLs associated with the object */
4244
- urls: {
4245
- /**
4246
- * URL of the capture in the API
4247
- * @format uri
4248
- */
4249
- location: string;
4250
- /**
4251
- * URL of the capture in the app
4252
- * @format uri
4253
- */
4254
- app: string;
4255
- };
4256
- }
4257
- export interface BaseCaptureEvent {
4258
- /** The type of event */
4259
- type: string;
4260
- /**
4261
- * When the event happened
4262
- * @format date-time
4263
- */
4264
- timestamp: string;
4265
- /**
4266
- * Optionally, provide the source of the event. GitBook may use this to improve the generated content.
4267
- * @maxLength 50
4268
- */
4269
- source?: string;
4270
- /** Optionally, provide the actor of the event, in the context of multiple people contributing to the capture. */
4271
- actor?: {
4272
- name: string;
4273
- };
4274
- }
4275
- export type CaptureTerminalCommandEvent = BaseCaptureEvent & {
4276
- type: 'terminal.command';
4277
- command: string;
4278
- stdout: string;
4279
- };
4280
- export type CaptureSpeechEvent = BaseCaptureEvent & {
4281
- type: 'speech';
4282
- } & ({
4283
- /** WAV audio file, encoded as base64 */
4284
- audio: string;
4285
- } | {
4286
- /** Transcript of the speech */
4287
- transcript: string;
4288
- });
4289
- export type CaptureThreadMessageEvent = BaseCaptureEvent & {
4290
- type: 'thread.message';
4291
- isFirst?: boolean;
4292
- text: string;
4293
- };
4294
- export type CaptureFileAddedEvent = BaseCaptureEvent & {
4295
- type: 'file.added';
4296
- filename: string;
4297
- fileSnapshot: string;
4298
- };
4299
- export type CaptureFileChangedEvent = BaseCaptureEvent & {
4300
- type: 'file.changed';
4301
- filename: string;
4302
- fileDiff: string;
4303
- };
4304
- export type CaptureFileRemovedEvent = BaseCaptureEvent & {
4305
- type: 'file.removed';
4306
- filename: string;
4307
- fileSnapshot: string;
4308
- };
4309
- export type CaptureEvent = CaptureTerminalCommandEvent | CaptureSpeechEvent | CaptureThreadMessageEvent | CaptureFileAddedEvent | CaptureFileChangedEvent | CaptureFileRemovedEvent;
4310
- export interface UpdateSnippetSchema {
4311
- /** A new title for the snippet. */
4312
- title?: string;
4313
- }
4314
4155
  /** 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. */
4315
4156
  export type BillingOperationPreviewResponse = {
4316
4157
  /** User can go ahead with the operation without any additional steps. Their subscription will be updated to reflect the new changes. */
@@ -4366,7 +4207,7 @@ export declare enum CustomizationSidebarBackgroundStyle {
4366
4207
  /**
4367
4208
  * - `default`: Simple list items without special styling, groups are inset with a line.
4368
4209
  * - `pill`: Rounded capsule shape around selected/active items.
4369
- * - `line`: Continuous line next to all items, with coloured line part for selected/active items.
4210
+ * - `line`: Continuous line next to all items, with colored line part for selected/active items.
4370
4211
  */
4371
4212
  export declare enum CustomizationSidebarListStyle {
4372
4213
  Default = "default",
@@ -4404,7 +4245,7 @@ export interface SiteCustomizationSettings {
4404
4245
  /**
4405
4246
  * - `default`: Simple list items without special styling, groups are inset with a line.
4406
4247
  * - `pill`: Rounded capsule shape around selected/active items.
4407
- * - `line`: Continuous line next to all items, with coloured line part for selected/active items.
4248
+ * - `line`: Continuous line next to all items, with colored line part for selected/active items.
4408
4249
  */
4409
4250
  list: CustomizationSidebarListStyle;
4410
4251
  };
@@ -5414,6 +5255,68 @@ export type PublishedSiteContentLookup = {
5414
5255
  target: 'application' | 'content' | 'external';
5415
5256
  redirect: URL;
5416
5257
  } | PublishedSiteContent;
5258
+ /**
5259
+ * Slug used as reference
5260
+ * @minLength 1
5261
+ * @maxLength 100
5262
+ */
5263
+ export type OpenAPISpecSlug = string;
5264
+ /** Processing state */
5265
+ export declare enum OpenAPISpecProcessingState {
5266
+ Pending = "pending",
5267
+ Progress = "progress",
5268
+ Complete = "complete"
5269
+ }
5270
+ export interface OpenAPISpec {
5271
+ /** The object type, which is always "openapi-spec" */
5272
+ object: 'openapi-spec';
5273
+ /** Unique identifier */
5274
+ id: string;
5275
+ /** Date of creation */
5276
+ createdAt: Timestamp;
5277
+ /** Date of the last update */
5278
+ updatedAt: Timestamp;
5279
+ /** Slug used as reference */
5280
+ slug: OpenAPISpecSlug;
5281
+ sourceURL?: URL;
5282
+ /** Processing state */
5283
+ processingState: OpenAPISpecProcessingState;
5284
+ /** Date of the last processing */
5285
+ lastProcessedAt?: Timestamp;
5286
+ /** URLs associated with the object */
5287
+ urls: {
5288
+ /** URL of the OpenAPI specification in the API */
5289
+ location: URL;
5290
+ /** URL of the OpenAPI specification in the application */
5291
+ app: URL;
5292
+ };
5293
+ }
5294
+ export interface OpenAPISpecVersion {
5295
+ /** The object type, which is always "openapi-spec-version" */
5296
+ object: 'openapi-spec-version';
5297
+ /** Unique identifier */
5298
+ id: string;
5299
+ /** Date of creation */
5300
+ createdAt?: Timestamp;
5301
+ /** URL poiting to the source of the specification */
5302
+ sourceURL: URL;
5303
+ /** URL pointing to the processed specification */
5304
+ contentURL: URL;
5305
+ /** URLs associated with the object */
5306
+ urls: {
5307
+ /** URL of the OpenAPI specification version in the API */
5308
+ location: URL;
5309
+ /** URL of the OpenAPI specification version in the application */
5310
+ app: URL;
5311
+ };
5312
+ }
5313
+ /** Content of OpenAPI specification */
5314
+ export type OpenAPISpecContent = object;
5315
+ /**
5316
+ * @minLength 64
5317
+ * @maxLength 64
5318
+ */
5319
+ export type SHA256 = string;
5417
5320
  export interface UpdateContentPublishingAuth {
5418
5321
  /**
5419
5322
  * A fallback URL that will be used if authentication fails.
@@ -5809,10 +5712,6 @@ export interface OrganizationCollectionsChannel {
5809
5712
  channel: 'organization-collections';
5810
5713
  organization: string;
5811
5714
  }
5812
- export interface OrganizationCapturesChannel {
5813
- channel: 'organization-captures';
5814
- organization: string;
5815
- }
5816
5715
  export interface OrganizationIntegrationsChannel {
5817
5716
  channel: 'organization-integrations';
5818
5717
  organization: string;
@@ -5831,6 +5730,11 @@ export interface OrganizationAIIndexationChannel {
5831
5730
  channel: 'organization-ai-indexation';
5832
5731
  organization: string;
5833
5732
  }
5733
+ /** Subscription channel for changes in OpenAPI specifications in an organization. */
5734
+ export interface OrganizationOpenAPISpecsChannel {
5735
+ channel: 'organization-openapi-specs';
5736
+ organization: string;
5737
+ }
5834
5738
  export interface SpaceCommentsChannel {
5835
5739
  channel: 'space-comments';
5836
5740
  space: string;
@@ -5953,8 +5857,13 @@ export interface GitSyncOperationChannel {
5953
5857
  channel: 'space-gitsync-operation';
5954
5858
  space: string;
5955
5859
  }
5860
+ /** Subscription channel for changes in OpenAPI specification versions. */
5861
+ export interface OpenAPISpecVersionsChannel {
5862
+ channel: 'openapi-spec-versions';
5863
+ openAPISpec: string;
5864
+ }
5956
5865
  /** Channel to subscribe to for realtime updates. */
5957
- export type SubscriptionChannel = SpaceInfoChannel | SpaceContentChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel | SpaceCustomFieldsChannel | SpaceContentRefsChannel | SpaceIntegrationsChannel | OrganizationCustomFieldsChannel | UserAPITokensChannel | UserOrganizationsChannel | UserProfileChannel | ChangeRequestChannel | ChangeRequestsChannel | ChangeRequestReviewsChannel | ChangeRequestContentRefsChannel | CollectionChannel | CollectionPublishingCustomizationChannel | OrganizationInfoChannel | OrganizationInviteLinksChannel | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationSAMLChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationCapturesChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | OrganizationSitesChannel | OrganizationAIIndexationChannel | SpaceCommentsChannel | ChangeRequestCommentsChannel | CommentInfoChannel | CommentReplyInfoChannel | CommentRepliesChannel | IntegrationChannel | IntegrationInstallationChannel | IntegrationSpaceInstallationChannel | IntegrationSpaceInstallationsChannel | IntegrationSiteInstallationChannel | IntegrationSiteInstallationsChannel | PublishedContentSiteChannel | SiteRedirectsChannel | SiteChannel | SiteCustomizationChannel | SiteIntegrationsChannel | SiteSpaceChannel | SiteSpaceCustomizationChannel | SiteStructureChannel | SitePublishingAuthChannel | SiteShareLinksChannel | SiteShareLinkChannel | SiteSectionChannel | CustomHostnameChannel | GitSyncSettingsChannel | GitSyncOperationChannel;
5866
+ export type SubscriptionChannel = SpaceInfoChannel | SpaceContentChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel | SpaceCustomFieldsChannel | SpaceContentRefsChannel | SpaceIntegrationsChannel | OrganizationCustomFieldsChannel | UserAPITokensChannel | UserOrganizationsChannel | UserProfileChannel | ChangeRequestChannel | ChangeRequestsChannel | ChangeRequestReviewsChannel | ChangeRequestContentRefsChannel | CollectionChannel | CollectionPublishingCustomizationChannel | OrganizationInfoChannel | OrganizationInviteLinksChannel | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationSAMLChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | OrganizationSitesChannel | OrganizationAIIndexationChannel | OrganizationOpenAPISpecsChannel | SpaceCommentsChannel | ChangeRequestCommentsChannel | CommentInfoChannel | CommentReplyInfoChannel | CommentRepliesChannel | IntegrationChannel | IntegrationInstallationChannel | IntegrationSpaceInstallationChannel | IntegrationSpaceInstallationsChannel | IntegrationSiteInstallationChannel | IntegrationSiteInstallationsChannel | PublishedContentSiteChannel | SiteRedirectsChannel | SiteChannel | SiteCustomizationChannel | SiteIntegrationsChannel | SiteSpaceChannel | SiteSpaceCustomizationChannel | SiteStructureChannel | SitePublishingAuthChannel | SiteShareLinksChannel | SiteShareLinkChannel | SiteSectionChannel | CustomHostnameChannel | GitSyncSettingsChannel | GitSyncOperationChannel | OpenAPISpecVersionsChannel;
5958
5867
  export interface GitSyncOperationChannelData {
5959
5868
  channel: 'space-gitsync-operation';
5960
5869
  data: GitSyncOperation;
@@ -6036,6 +5945,7 @@ export type SpaceVisitorAuthCustomBackend = VisitorAuthCustomBackend;
6036
5945
  export type SpaceVisitorAuthIntegrationBackend = VisitorAuthIntegrationBackend;
6037
5946
  export type UserPermissions = Index;
6038
5947
  export type SiteRedirectDestinationSpace = SiteRedirectDestinationSiteSpace;
5948
+ export type OpenAPISpecSourceURL = URL;
6039
5949
  import { EventIterator } from 'event-iterator';
6040
5950
  export type QueryParamsType = Record<string | number, any>;
6041
5951
  export type ResponseFormat = keyof Omit<Body, 'body' | 'bodyUsed'>;
@@ -6961,9 +6871,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6961
6871
  /** Parameters for a computed content */
6962
6872
  source: ComputedContentSource;
6963
6873
  }, query?: {
6964
- /** Output format for the content. */
6965
- format?: "document" | "markdown";
6966
- }, params?: RequestParams) => Promise<HttpResponse<Document, Error>>;
6874
+ /** Version of the schema used for the document. */
6875
+ schema?: "current" | "next";
6876
+ }, params?: RequestParams) => Promise<HttpResponse<JSONDocument, Error>>;
6967
6877
  /**
6968
6878
  * No description
6969
6879
  *
@@ -10038,223 +9948,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10038
9948
  /** Team members usage metrics of an organization */
10039
9949
  teamMembers: OrganizationUsageTeamMembers;
10040
9950
  }, Error>>;
10041
- /**
10042
- * @description List captures in an organization, newest first.
10043
- *
10044
- * @tags organizations
10045
- * @name ListCaptures
10046
- * @summary List captures. Deprecated, use listSnippets instead.
10047
- * @request GET:/orgs/{organizationId}/captures
10048
- * @deprecated
10049
- * @secure
10050
- */
10051
- listCaptures: (organizationId: string, query?: {
10052
- /** Output format for the content. */
10053
- format?: "document" | "markdown";
10054
- /** Identifier of the page results to fetch. */
10055
- page?: string;
10056
- /**
10057
- * The number of results per page
10058
- * @min 0
10059
- * @max 1000
10060
- */
10061
- limit?: number;
10062
- /** The context in which the item was captured */
10063
- context?: "walkthrough" | "thread";
10064
- }, params?: RequestParams) => Promise<HttpResponse<List & {
10065
- items: Capture[];
10066
- }, Error>>;
10067
- /**
10068
- * No description
10069
- *
10070
- * @tags organizations
10071
- * @name StartCapture
10072
- * @summary Start a capture
10073
- * @request POST:/orgs/{organizationId}/captures
10074
- * @secure
10075
- */
10076
- startCapture: (organizationId: string, data: {
10077
- /** Optional title describing the capture */
10078
- title?: CaptureTitle;
10079
- context: CaptureContext;
10080
- /** ID in the original source of the capture. */
10081
- externalId?: string;
10082
- /**
10083
- * URL of the original source of the capture.
10084
- * @format uri
10085
- */
10086
- externalURL?: string;
10087
- }, params?: RequestParams) => Promise<HttpResponse<Capture, Error>>;
10088
- /**
10089
- * No description
10090
- *
10091
- * @tags organizations
10092
- * @name GetCapture
10093
- * @summary Get a capture by its ID. Deprecated, use getSnippet instead.
10094
- * @request GET:/orgs/{organizationId}/captures/{captureId}
10095
- * @deprecated
10096
- * @secure
10097
- */
10098
- getCapture: (organizationId: string, captureId: string, query?: {
10099
- /** Output format for the content. */
10100
- format?: "document" | "markdown";
10101
- }, params?: RequestParams) => Promise<HttpResponse<Capture, Error>>;
10102
- /**
10103
- * No description
10104
- *
10105
- * @tags organizations
10106
- * @name AddEventsToCapture
10107
- * @summary Add events to a running capture
10108
- * @request POST:/orgs/{organizationId}/captures/{captureId}/events
10109
- * @secure
10110
- */
10111
- addEventsToCapture: (organizationId: string, captureId: string, data: {
10112
- events: CaptureEvent[];
10113
- }, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
10114
- /**
10115
- * No description
10116
- *
10117
- * @tags organizations
10118
- * @name StopCapture
10119
- * @summary Stop a capture
10120
- * @request POST:/orgs/{organizationId}/captures/{captureId}/stop
10121
- * @secure
10122
- */
10123
- stopCapture: (organizationId: string, captureId: string, data: object, query?: {
10124
- /** Output format for the content. */
10125
- format?: "document" | "markdown";
10126
- }, params?: RequestParams) => Promise<HttpResponse<{
10127
- capture: Capture;
10128
- /** Example questions that would be answered by the content of this capture. */
10129
- followupQuestions?: string[];
10130
- }, Error>>;
10131
- /**
10132
- * @description List snippets in an organization, newest first.
10133
- *
10134
- * @tags organizations
10135
- * @name ListSnippets
10136
- * @summary Lists snippets.
10137
- * @request GET:/orgs/{organizationId}/snippets
10138
- * @deprecated
10139
- * @secure
10140
- */
10141
- listSnippets: (organizationId: string, query?: {
10142
- /** Identifier of the page results to fetch. */
10143
- page?: string;
10144
- /**
10145
- * The number of results per page
10146
- * @min 0
10147
- * @max 1000
10148
- */
10149
- limit?: number;
10150
- /** If specified, only snippets from the specified source will be returned. */
10151
- source?: string;
10152
- }, params?: RequestParams) => Promise<HttpResponse<List & {
10153
- items: Snippet[];
10154
- }, Error>>;
10155
- /**
10156
- * No description
10157
- *
10158
- * @tags organizations
10159
- * @name CreateSnippet
10160
- * @summary Create a new snippet
10161
- * @request POST:/orgs/{organizationId}/snippets
10162
- * @deprecated
10163
- * @secure
10164
- */
10165
- createSnippet: (organizationId: string, data: object, params?: RequestParams) => Promise<HttpResponse<Snippet, Error>>;
10166
- /**
10167
- * No description
10168
- *
10169
- * @tags organizations
10170
- * @name GetSnippet
10171
- * @summary Get a snippet by its ID
10172
- * @request GET:/orgs/{organizationId}/snippets/{snippetId}
10173
- * @deprecated
10174
- * @secure
10175
- */
10176
- getSnippet: (organizationId: string, snippetId: string, params?: RequestParams) => Promise<HttpResponse<Snippet, Error>>;
10177
- /**
10178
- * No description
10179
- *
10180
- * @tags organizations
10181
- * @name DeleteSnippet
10182
- * @summary Delete a snippet by its ID.
10183
- * @request DELETE:/orgs/{organizationId}/snippets/{snippetId}
10184
- * @secure
10185
- */
10186
- deleteSnippet: (organizationId: string, snippetId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
10187
- /**
10188
- * No description
10189
- *
10190
- * @tags organizations
10191
- * @name UpdateSnippet
10192
- * @summary Update an existing snippet.
10193
- * @request PUT:/orgs/{organizationId}/snippets/{snippetId}
10194
- * @deprecated
10195
- * @secure
10196
- */
10197
- updateSnippet: (organizationId: string, snippetId: string, data: UpdateSnippetSchema, params?: RequestParams) => Promise<HttpResponse<Snippet, Error>>;
10198
- /**
10199
- * No description
10200
- *
10201
- * @tags organizations
10202
- * @name MoveSnippet
10203
- * @summary Move a snippet into a destination. The snippet will be archived in the process.
10204
- * @request POST:/orgs/{organizationId}/snippets/{snippetId}/move
10205
- * @deprecated
10206
- * @secure
10207
- */
10208
- moveSnippet: (organizationId: string, snippetId: string, data: {
10209
- /** Intended destination for the page */
10210
- target: {
10211
- /** The id of the target space */
10212
- space: string;
10213
- position?: {
10214
- /** The parent of the page in the target space. If undefined, the page will be inserted at the root of the space. */
10215
- parent?: string;
10216
- /** The index of the page in the parent. If undefined, the page will be inserted at the end of the parent's current children. */
10217
- index?: number;
10218
- };
10219
- };
10220
- }, params?: RequestParams) => Promise<HttpResponse<{
10221
- page: RevisionPageDocument;
10222
- changeRequest?: ChangeRequest;
10223
- }, Error>>;
10224
- /**
10225
- * No description
10226
- *
10227
- * @tags organizations
10228
- * @name GetSnippetSuggestedLocations
10229
- * @summary Return possible snippet locations in an organization based on the current user.
10230
- * @request GET:/orgs/{organizationId}/snippets/{snippetId}/move
10231
- * @deprecated
10232
- * @secure
10233
- */
10234
- getSnippetSuggestedLocations: (organizationId: string, snippetId: string, query?: {
10235
- /** Identifier of the page results to fetch. */
10236
- page?: string;
10237
- /**
10238
- * The number of results per page
10239
- * @min 0
10240
- * @max 1000
10241
- */
10242
- limit?: number;
10243
- /** If specified, only locations in the given space will be returned. If not specified, GitBook will suggest spaces. */
10244
- spaceId?: string;
10245
- /** If specified, only locations under the given pageId will be returned. You must specify a spaceId too. If pageId is not specified, GitBook will suggest pages at the top level. */
10246
- pageId?: string;
10247
- /** If specified, only locations matching the search query will be returned. */
10248
- search?: string;
10249
- }, params?: RequestParams) => Promise<HttpResponse<List & {
10250
- items: {
10251
- /** If defined and true, this location was suggested by GitBook AI. */
10252
- aiPowered?: boolean;
10253
- space: Space;
10254
- /** The parent page of the suggested location. */
10255
- parentPage?: RevisionPageDocument | RevisionPageGroup;
10256
- }[];
10257
- }, Error>>;
10258
9951
  /**
10259
9952
  * No description
10260
9953
  *
@@ -10841,6 +10534,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10841
10534
  addSectionGroupToSite: (organizationId: string, siteId: string, data: {
10842
10535
  /** Title of the site section group */
10843
10536
  title: SiteSectionGroupTitle;
10537
+ icon?: Icon | null;
10844
10538
  /** IDs of the sections to be added to the section group */
10845
10539
  sections?: string[];
10846
10540
  }, params?: RequestParams) => Promise<HttpResponse<SiteSectionGroup, Error>>;
@@ -11102,7 +10796,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
11102
10796
  styling?: {
11103
10797
  /** The primary color used for links and UI text. Set to null to reset the override. */
11104
10798
  primaryColor?: CustomizationThemedColor | null;
11105
- /** The tint will colour the site’s UI beyond links and buttons, such as header, sidebar and background. By default, the tint colour is the same as your Primary colour, but you can set a custom one too. */
10799
+ /** The tint will color the site’s UI beyond links and buttons, such as header, sidebar and background. By default, the tint colour is the same as your Primary colour, but you can set a custom one too. */
11106
10800
  tint?: CustomizationTint | null;
11107
10801
  /** The style of the corners to use. Set to null to reset the override. */
11108
10802
  corners?: CustomizationCorners | null;
@@ -11545,6 +11239,171 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
11545
11239
  message: string;
11546
11240
  };
11547
11241
  }>>;
11242
+ /**
11243
+ * No description
11244
+ *
11245
+ * @tags openapi
11246
+ * @name ListOpenApiSpecs
11247
+ * @summary List all the OpenAPI specifications in the organization
11248
+ * @request GET:/orgs/{organizationId}/openapi
11249
+ * @secure
11250
+ */
11251
+ listOpenApiSpecs: (organizationId: string, query?: {
11252
+ /** Identifier of the page results to fetch. */
11253
+ page?: string;
11254
+ /**
11255
+ * The number of results per page
11256
+ * @min 0
11257
+ * @max 1000
11258
+ */
11259
+ limit?: number;
11260
+ }, params?: RequestParams) => Promise<HttpResponse<List & {
11261
+ items: OpenAPISpec[];
11262
+ }, Error>>;
11263
+ /**
11264
+ * No description
11265
+ *
11266
+ * @tags openapi
11267
+ * @name GetOpenApiSpecBySlug
11268
+ * @summary Get an organization OpenAPI specification by its slug
11269
+ * @request GET:/orgs/{organizationId}/openapi/{specSlug}
11270
+ * @secure
11271
+ */
11272
+ getOpenApiSpecBySlug: (organizationId: string, specSlug: string, params?: RequestParams) => Promise<HttpResponse<OpenAPISpec, Error | {
11273
+ error: {
11274
+ /** @format int32 */
11275
+ code: 404;
11276
+ message: string;
11277
+ };
11278
+ }>>;
11279
+ /**
11280
+ * No description
11281
+ *
11282
+ * @tags openapi
11283
+ * @name CreateOrUpdateOpenApiSpecBySlug
11284
+ * @summary Create or update an organization OpenAPI specification by its slug
11285
+ * @request PUT:/orgs/{organizationId}/openapi/{specSlug}
11286
+ * @secure
11287
+ */
11288
+ createOrUpdateOpenApiSpecBySlug: (organizationId: string, specSlug: string, data: {
11289
+ /** Create a specification from an URL */
11290
+ source: {
11291
+ url: URL;
11292
+ } | {
11293
+ /**
11294
+ * OpenAPI specification as text
11295
+ * @minLength 1
11296
+ */
11297
+ text: string;
11298
+ };
11299
+ }, params?: RequestParams) => Promise<HttpResponse<OpenAPISpec, Error | {
11300
+ error: {
11301
+ /** @format int32 */
11302
+ code: 400;
11303
+ message: string;
11304
+ };
11305
+ }>>;
11306
+ /**
11307
+ * No description
11308
+ *
11309
+ * @tags openapi
11310
+ * @name DeleteOpenApiSpecBySlug
11311
+ * @summary Delete an organization OpenAPI specification by its slug
11312
+ * @request DELETE:/orgs/{organizationId}/openapi/{specSlug}
11313
+ * @secure
11314
+ */
11315
+ deleteOpenApiSpecBySlug: (organizationId: string, specSlug: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
11316
+ /**
11317
+ * No description
11318
+ *
11319
+ * @tags openapi
11320
+ * @name ListOpenApiSpecVersions
11321
+ * @summary List all the OpenAPI specification versions
11322
+ * @request GET:/orgs/{organizationId}/openapi/{specSlug}/versions
11323
+ * @secure
11324
+ */
11325
+ listOpenApiSpecVersions: (organizationId: string, specSlug: string, query?: {
11326
+ /** Identifier of the page results to fetch. */
11327
+ page?: string;
11328
+ /**
11329
+ * The number of results per page
11330
+ * @min 0
11331
+ * @max 1000
11332
+ */
11333
+ limit?: number;
11334
+ }, params?: RequestParams) => Promise<HttpResponse<List & {
11335
+ items: OpenAPISpecVersion[];
11336
+ }, Error | {
11337
+ error: {
11338
+ /** @format int32 */
11339
+ code: 404;
11340
+ message: string;
11341
+ };
11342
+ }>>;
11343
+ /**
11344
+ * No description
11345
+ *
11346
+ * @tags openapi
11347
+ * @name GetLatestOpenApiSpecVersion
11348
+ * @summary Get the latest OpenAPI specification version
11349
+ * @request GET:/orgs/{organizationId}/openapi/{specSlug}/versions/latest
11350
+ * @secure
11351
+ */
11352
+ getLatestOpenApiSpecVersion: (organizationId: string, specSlug: string, params?: RequestParams) => Promise<HttpResponse<OpenAPISpecVersion, Error | {
11353
+ error: {
11354
+ /** @format int32 */
11355
+ code: 404;
11356
+ message: string;
11357
+ };
11358
+ }>>;
11359
+ /**
11360
+ * No description
11361
+ *
11362
+ * @tags openapi
11363
+ * @name GetLatestOpenApiSpecVersionContent
11364
+ * @summary Get the latest OpenAPI specification version content
11365
+ * @request GET:/orgs/{organizationId}/openapi/{specSlug}/versions/latest/content
11366
+ * @secure
11367
+ */
11368
+ getLatestOpenApiSpecVersionContent: (organizationId: string, specSlug: string, params?: RequestParams) => Promise<HttpResponse<object, Error | {
11369
+ error: {
11370
+ /** @format int32 */
11371
+ code: 404;
11372
+ message: string;
11373
+ };
11374
+ }>>;
11375
+ /**
11376
+ * No description
11377
+ *
11378
+ * @tags openapi
11379
+ * @name GetOpenApiSpecVersionById
11380
+ * @summary Get an OpenAPI specification version by its ID
11381
+ * @request GET:/orgs/{organizationId}/openapi/{specSlug}/versions/{versionId}
11382
+ * @secure
11383
+ */
11384
+ getOpenApiSpecVersionById: (organizationId: string, specSlug: string, versionId: string, params?: RequestParams) => Promise<HttpResponse<OpenAPISpecVersion, Error | {
11385
+ error: {
11386
+ /** @format int32 */
11387
+ code: 404;
11388
+ message: string;
11389
+ };
11390
+ }>>;
11391
+ /**
11392
+ * No description
11393
+ *
11394
+ * @tags openapi
11395
+ * @name GetOpenApiSpecVersionContentById
11396
+ * @summary Get an OpenAPI specification version content by its ID
11397
+ * @request GET:/orgs/{organizationId}/openapi/{specSlug}/versions/{versionId}/content
11398
+ * @secure
11399
+ */
11400
+ getOpenApiSpecVersionContentById: (organizationId: string, specSlug: string, versionId: string, params?: RequestParams) => Promise<HttpResponse<object, Error | {
11401
+ error: {
11402
+ /** @format int32 */
11403
+ code: 404;
11404
+ message: string;
11405
+ };
11406
+ }>>;
11548
11407
  };
11549
11408
  customHostnames: {
11550
11409
  /**