@gitbook/api 0.187.0 → 0.189.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
@@ -350,14 +350,14 @@ export declare enum SiteFindingSeverity {
350
350
  }
351
351
  /**
352
352
  * Classification of a site finding:
353
- * - Outdated content: The content is no longer up to date with external context and may be misleading or incorrect.
354
- * - Incoherent content: The content contains information that is inconsistent or contradictory.
353
+ * - Outdated content: The content was correct but is no longer up to date with external context and may be misleading or incorrect.
354
+ * - Incorrect content: The content is factually wrong or misleading, leading users astray regardless of whether it was ever correct.
355
355
  * - Content gap: The content is missing important information that should be present to answer user questions effectively.
356
356
  * - Other: Any other type of finding not covered by the above categories.
357
357
  */
358
358
  export declare enum SiteFindingType {
359
359
  ContentOutdated = "content-outdated",
360
- Incoherence = "incoherence",
360
+ ContentIncorrect = "content-incorrect",
361
361
  ContentGap = "content-gap",
362
362
  Other = "other"
363
363
  }
@@ -642,6 +642,18 @@ export declare enum TranslationStatus {
642
642
  Running = "running",
643
643
  Completed = "completed"
644
644
  }
645
+ /** OpenAPI processing error code */
646
+ export declare enum OpenAPISpecProcessingErrorCode {
647
+ FETCH_TIMEOUT = "FETCH_TIMEOUT",
648
+ FETCH_ERROR = "FETCH_ERROR",
649
+ PARSE_ERROR = "PARSE_ERROR"
650
+ }
651
+ /** Processing state */
652
+ export declare enum OpenAPISpecProcessingState {
653
+ Pending = "pending",
654
+ Progress = "progress",
655
+ Complete = "complete"
656
+ }
645
657
  /**
646
658
  * Status of the provider.
647
659
  * - `active`: The provider is active and can be used to authenticate users.
@@ -745,11 +757,6 @@ export declare enum SiteAdsTopic {
745
757
  Webdev = "webdev",
746
758
  Crypto = "crypto"
747
759
  }
748
- /** Permissions resolution mode for the site. */
749
- export declare enum SitePermissionsModel {
750
- Legacy = "legacy",
751
- Site = "site"
752
- }
753
760
  /**
754
761
  * The visibility setting of the site determines the audience of the site.
755
762
  * * `public`: Anyone can access the site, and the site is indexed by search engines.
@@ -792,6 +799,57 @@ export declare enum IntegrationInstallationStatus {
792
799
  Pending = "pending",
793
800
  Paused = "paused"
794
801
  }
802
+ /** Source for an organization block */
803
+ export declare enum BlockSource {
804
+ Backoffice = "backoffice",
805
+ External = "external",
806
+ Internal = "internal"
807
+ }
808
+ /** - notapplicable, no trial can be started for this organization. - none, no trial has been started yet. - active, trial is active. - ended, the trial has ended and the user has choosen to stay on the free plan or has upgraded to a paid plan. - expired, the trial has ended but the user hasn't deciced yet what to do. */
809
+ export declare enum BillingTrialStatus {
810
+ Notapplicable = "notapplicable",
811
+ None = "none",
812
+ Active = "active",
813
+ Ended = "ended",
814
+ Expired = "expired"
815
+ }
816
+ /** Interval for a billing subscription */
817
+ export declare enum BillingInterval {
818
+ Monthly = "monthly",
819
+ Yearly = "yearly"
820
+ }
821
+ /** Name of the product */
822
+ export declare enum BillingProduct {
823
+ Free2024 = "free_2024",
824
+ Plus2024 = "plus_2024",
825
+ Pro2024 = "pro_2024",
826
+ Enterprise2024 = "enterprise_2024",
827
+ Community2024 = "community_2024",
828
+ Free = "free",
829
+ Plus = "plus",
830
+ Pro = "pro",
831
+ Internal = "internal"
832
+ }
833
+ export declare enum OrganizationCommunityType {
834
+ NonProfit = "nonProfit",
835
+ OpenSource = "openSource",
836
+ Education = "education"
837
+ }
838
+ export declare enum OrganizationUseCase {
839
+ InternalDocs = "internalDocs",
840
+ DocsSite = "docsSite",
841
+ AudienceControlledSite = "audienceControlledSite",
842
+ ProductDocs = "productDocs",
843
+ TeamKnowledgeBase = "teamKnowledgeBase",
844
+ DesignSystem = "designSystem",
845
+ OpenSourceDocs = "openSourceDocs",
846
+ Notes = "notes",
847
+ Other = "other"
848
+ }
849
+ export declare enum OrganizationType {
850
+ Business = "business",
851
+ Community = "community"
852
+ }
795
853
  export declare enum IntegrationCategory {
796
854
  Analytics = "analytics",
797
855
  Collaboration = "collaboration",
@@ -857,99 +915,26 @@ export declare enum ChangeRequestOrderBy {
857
915
  UpdatedAt = "updatedAt",
858
916
  CreatedAt = "createdAt"
859
917
  }
860
- /**
861
- * Indicator of the relationship with the content ref target.
862
- * - `reference` - The content soft-references the ref target
863
- * - `dependsOn` - The content depends on the ref target
864
- */
865
- export declare enum ContentReferenceRelation {
866
- Reference = "reference",
867
- DependsOn = "dependsOn"
868
- }
869
- /**
870
- * Text to display to represent the reference. Possible values include:
871
- * - `ok` - No problems detected for this content reference.
872
- * - `broken` - The target does not exist in the revision.
873
- * - `in-app` - The target is a URL link pointing to an internal location in the app.
874
- */
875
- export declare enum ContentReferenceStatus {
876
- Ok = "ok",
877
- Broken = "broken",
878
- InApp = "in-app"
879
- }
880
- /** OpenAPI processing error code */
881
- export declare enum OpenAPISpecProcessingErrorCode {
882
- FETCH_TIMEOUT = "FETCH_TIMEOUT",
883
- FETCH_ERROR = "FETCH_ERROR",
884
- PARSE_ERROR = "PARSE_ERROR"
885
- }
886
- /** Processing state */
887
- export declare enum OpenAPISpecProcessingState {
888
- Pending = "pending",
889
- Progress = "progress",
890
- Complete = "complete"
891
- }
892
- /** Source for an organization block */
893
- export declare enum BlockSource {
894
- Backoffice = "backoffice",
895
- External = "external",
896
- Internal = "internal"
897
- }
898
- /** - notapplicable, no trial can be started for this organization. - none, no trial has been started yet. - active, trial is active. - ended, the trial has ended and the user has choosen to stay on the free plan or has upgraded to a paid plan. - expired, the trial has ended but the user hasn't deciced yet what to do. */
899
- export declare enum BillingTrialStatus {
900
- Notapplicable = "notapplicable",
901
- None = "none",
902
- Active = "active",
903
- Ended = "ended",
904
- Expired = "expired"
905
- }
906
- /** Interval for a billing subscription */
907
- export declare enum BillingInterval {
908
- Monthly = "monthly",
909
- Yearly = "yearly"
910
- }
911
- /** Name of the product */
912
- export declare enum BillingProduct {
913
- Free2024 = "free_2024",
914
- Plus2024 = "plus_2024",
915
- Pro2024 = "pro_2024",
916
- Enterprise2024 = "enterprise_2024",
917
- Community2024 = "community_2024",
918
- Free = "free",
919
- Plus = "plus",
920
- Pro = "pro",
921
- Internal = "internal"
922
- }
923
- export declare enum OrganizationCommunityType {
924
- NonProfit = "nonProfit",
925
- OpenSource = "openSource",
926
- Education = "education"
927
- }
928
- export declare enum OrganizationUseCase {
929
- InternalDocs = "internalDocs",
930
- DocsSite = "docsSite",
931
- AudienceControlledSite = "audienceControlledSite",
932
- ProductDocs = "productDocs",
933
- TeamKnowledgeBase = "teamKnowledgeBase",
934
- DesignSystem = "designSystem",
935
- OpenSourceDocs = "openSourceDocs",
936
- Notes = "notes",
937
- Other = "other"
938
- }
939
- export declare enum OrganizationType {
940
- Business = "business",
941
- Community = "community"
942
- }
943
918
  export declare enum ChangeRequestStatus {
944
919
  Draft = "draft",
945
920
  Open = "open",
946
921
  Archived = "archived",
947
922
  Merged = "merged"
948
923
  }
924
+ export declare enum RevisionPageDocumentCoverTextColor {
925
+ Black = "black",
926
+ White = "white"
927
+ }
928
+ /** Mask applied to the cover image. */
929
+ export declare enum RevisionPageLayoutOptionsCoverMask {
930
+ None = "none",
931
+ Radial = "radial"
932
+ }
949
933
  /** Size of the cover image. */
950
934
  export declare enum RevisionPageLayoutOptionsCoverSize {
951
935
  Hero = "hero",
952
- Full = "full"
936
+ Full = "full",
937
+ Background = "background"
953
938
  }
954
939
  /** Width of the page. */
955
940
  export declare enum RevisionPageLayoutOptionsWidth {
@@ -1096,9 +1081,11 @@ export declare enum ContentVisibility {
1096
1081
  Private = "private"
1097
1082
  }
1098
1083
  /** Data passed through a realtime channel */
1099
- export type APIChannelData = APIChannelGitSyncOperationData | APIChannelSpaceContentRefsData | APIChannelChangeRequestContentRefsData | APIChannelTranslationRunData | APIChannelImportRunData | APIChannelMutationData;
1084
+ export type APIChannelData = APIChannelGitSyncOperationData | APIChannelTranslationRunData | APIChannelImportRunData | APIChannelMutationData;
1100
1085
  /** Channel to subscribe to for realtime updates. */
1101
- export type APIChannel = APIChannelSpaceInfo | APIChannelSpaceContent | APIChannelSpaceGitInfo | APIChannelSpacePublishingAuth | APIChannelSpacePublishingCustomization | APIChannelSpaceContentRefs | APIChannelSpaceIntegrations | APIChannelUserAPITokens | APIChannelUserOrganizations | APIChannelUserProfile | APIChannelChangeRequest | APIChannelChangeRequests | APIChannelChangeRequestReviews | APIChannelChangeRequestContentRefs | APIChannelCollection | APIChannelCollectionPublishingCustomization | APIChannelOrganizationInfo | APIChannelOrganizationAgentData | APIChannelOrganizationInviteLinks | APIChannelOrganizationMembers | APIChannelOrganizationMember | APIChannelOrganizationSAML | APIChannelOrganizationTeams | APIChannelOrganizationTeam | APIChannelOrganizationTeamMembers | APIChannelOrganizationTeamMember | APIChannelOrganizationSpaces | APIChannelOrganizationCollections | APIChannelOrganizationIntegrations | APIChannelOrganizationInstallations | APIChannelOrganizationSites | APIChannelOrganizationOpenAPISpecs | APIChannelOrganizationTranslations | APIChannelOrganizationTranslationsGlossary | APIChannelOrganizationCustomFonts | APIChannelOrganizationAgentInstructions | APIChannelOrganizationChangeRequests | APIChannelSpaceComments | APIChannelChangeRequestComments | APIChannelCommentInfo | APIChannelCommentReplies | APIChannelIntegration | APIChannelIntegrationInstallation | APIChannelIntegrationSpaceInstallation | APIChannelIntegrationSpaceInstallations | APIChannelIntegrationSiteInstallation | APIChannelIntegrationSiteInstallations | APIChannelPublishedContentSite | APIChannelSiteRedirects | APIChannelSite | APIChannelSiteChannels | APIChannelSiteContext | APIChannelSiteCustomization | APIChannelSiteAgentSettings | APIChannelSiteIntegrations | APIChannelSiteSpace | APIChannelSiteSpaceCustomization | APIChannelSiteStructure | APIChannelSiteAdaptiveSchema | APIChannelSitePublishingAuth | APIChannelSiteShareLinks | APIChannelSiteShareLink | APIChannelSiteMcpServers | APIChannelSiteMcpServer | APIChannelSiteSection | APIChannelCustomHostname | APIChannelGitSyncInstallation | APIChannelGitSyncOperation | APIChannelOpenAPISpec | APIChannelSubdomain | APIChannelTranslation | APIChannelTranslationRun | APIChannelImportRun;
1086
+ export type APIChannel = APIChannelSpaceInfo | APIChannelSpaceContent | APIChannelSpaceGitInfo | APIChannelSpacePublishingAuth | APIChannelSpacePublishingCustomization | APIChannelSpaceIntegrations | APIChannelUserAPITokens | APIChannelUserOrganizations | APIChannelUserProfile | APIChannelChangeRequest | APIChannelChangeRequests | APIChannelChangeRequestReviews | APIChannelCollection | APIChannelCollectionPublishingCustomization | APIChannelOrganizationInfo | APIChannelOrganizationAgentData | APIChannelOrganizationInviteLinks | APIChannelOrganizationMembers | APIChannelOrganizationMember | APIChannelOrganizationSAML | APIChannelOrganizationTeams | APIChannelOrganizationTeam | APIChannelOrganizationTeamMembers | APIChannelOrganizationTeamMember | APIChannelOrganizationSpaces | APIChannelOrganizationCollections | APIChannelOrganizationIntegrations | APIChannelOrganizationInstallations | APIChannelOrganizationSites | APIChannelOrganizationOpenAPISpecs | APIChannelOrganizationTranslations | APIChannelOrganizationTranslationsGlossary | APIChannelOrganizationCustomFonts | APIChannelOrganizationAgentInstructions | APIChannelOrganizationChangeRequests | APIChannelSpaceComments | APIChannelChangeRequestComments | APIChannelCommentInfo | APIChannelCommentReplies | APIChannelIntegration | APIChannelIntegrationInstallation | APIChannelIntegrationSpaceInstallation | APIChannelIntegrationSpaceInstallations | APIChannelIntegrationSiteInstallation | APIChannelIntegrationSiteInstallations | APIChannelPublishedContentSite | APIChannelSiteRedirects | APIChannelSite | APIChannelSiteChannels | APIChannelSiteContext | APIChannelSiteCustomization | APIChannelSiteAgentSettings | APIChannelSiteIntegrations | APIChannelSiteSpace | APIChannelSiteSpaceCustomization | APIChannelSiteStructure | APIChannelSiteAdaptiveSchema | APIChannelSitePublishingAuth | APIChannelSiteShareLinks | APIChannelSiteShareLink | APIChannelSiteMcpServers | APIChannelSiteMcpServer | APIChannelSiteSection | APIChannelCustomHostname | APIChannelGitSyncInstallation | APIChannelGitSyncOperation | APIChannelOpenAPISpec | APIChannelSubdomain | APIChannelTranslation | APIChannelTranslationRun | APIChannelImportRun;
1087
+ /** An absolute reference to content in GitBook. */
1088
+ export type ContentLocation = ContentLocationFile | ContentLocationURL | ContentLocationPage | ContentLocationUser | ContentLocationCollection | ContentLocationSpace | ContentLocationReusableContent | ContentLocationOpenAPI;
1102
1089
  export type PublishedContentRedirect = {
1103
1090
  /** Type of target for the redirect */
1104
1091
  target: "application" | "content";
@@ -1119,6 +1106,8 @@ export type GitSyncInstallationTarget = {
1119
1106
  type: "space";
1120
1107
  /** Unique identifier of the space targeted by the Git Sync installation. */
1121
1108
  spaceId: string;
1109
+ /** Unique identifier of the site whose Git Sync installation should manage the space installation. Omit to install Git Sync directly on the space. */
1110
+ siteId?: string;
1122
1111
  } | {
1123
1112
  /** Type of resource targeted by the Git Sync installation. */
1124
1113
  type: "site";
@@ -1143,8 +1132,6 @@ export type ChangeRequestContentChange = ({
1143
1132
  } & ChangeRequestContentChangeDeletePage) | ({
1144
1133
  operation: "revert_page";
1145
1134
  } & ChangeRequestContentChangeRevertPage);
1146
- /** An absolute reference to content in GitBook. */
1147
- export type ContentLocation = ContentLocationFile | ContentLocationURL | ContentLocationPage | ContentLocationUser | ContentLocationCollection | ContentLocationSpace | ContentLocationReusableContent | ContentLocationOpenAPI;
1148
1135
  export type Revision = RevisionTypeEdits | RevisionTypeMerge | RevisionTypeRollback | RevisionTypeUpdate | RevisionTypeComputed;
1149
1136
  export type RevisionPage = RevisionPageDocument | RevisionPageGroup | RevisionPageLink | RevisionPageComputed;
1150
1137
  export interface ApiInformation {
@@ -1173,6 +1160,21 @@ export interface User {
1173
1160
  location: string;
1174
1161
  };
1175
1162
  }
1163
+ /** Identity of the token used to authenticate the request. */
1164
+ export interface UserTokenInfo {
1165
+ object: "user-token-info";
1166
+ /** The user ID the token belongs to. */
1167
+ userId: string;
1168
+ /** The type of token used to authenticate the request. */
1169
+ tokenType: "personal-api-token" | "oauth-token";
1170
+ /** The OAuth client the token was issued to. Only present for OAuth tokens. */
1171
+ oauthClient?: {
1172
+ /** The OAuth client ID. */
1173
+ id: string;
1174
+ /** The OAuth client name. */
1175
+ name: string;
1176
+ };
1177
+ }
1176
1178
  export interface APITemporaryToken {
1177
1179
  /** Temporary access token to authenticate with the API */
1178
1180
  token: string;
@@ -1965,6 +1967,8 @@ export interface DocumentTableViewCards {
1965
1967
  coverDefinitionDark?: string;
1966
1968
  /** Should we display the column title or not */
1967
1969
  hideColumnTitle?: boolean;
1970
+ /** Whether the cards wrap onto multiple rows (true, the default) or are laid out in a single horizontally-scrolling carousel row (false). */
1971
+ wrap?: boolean;
1968
1972
  }
1969
1973
  /** A table record value for image columns, supporting both direct ContentRefs and the additional format with record-level settings. */
1970
1974
  export type DocumentTableImageRecord = ContentRefFile | ContentRefURL | {
@@ -2479,6 +2483,7 @@ export interface DocumentInlineButton {
2479
2483
  data: {
2480
2484
  label: string;
2481
2485
  kind: "primary" | "secondary";
2486
+ size?: "small" | "medium" | "large";
2482
2487
  /** Name of the icon */
2483
2488
  icon?: Icon;
2484
2489
  } & ({
@@ -2682,6 +2687,8 @@ export interface RevisionPageLayoutOptions {
2682
2687
  cover: boolean;
2683
2688
  /** Size of the cover image. */
2684
2689
  coverSize: RevisionPageLayoutOptionsCoverSize;
2690
+ /** Mask applied to the cover image. */
2691
+ coverMask: RevisionPageLayoutOptionsCoverMask;
2685
2692
  /** Should the title be visible? */
2686
2693
  title: boolean;
2687
2694
  /** Should the description be visible? */
@@ -2704,6 +2711,10 @@ export interface RevisionPageDocumentCover {
2704
2711
  ref?: ContentRefFile | ContentRefURL;
2705
2712
  /** Content reference pointing to the source image for dark mode. */
2706
2713
  refDark?: ContentRefFile | ContentRefURL;
2714
+ /** Text color to use on top of the cover image when in background mode. */
2715
+ textColor?: RevisionPageDocumentCoverTextColor;
2716
+ /** Text color to use on top of the dark mode cover image when in background mode. */
2717
+ textColorDark?: RevisionPageDocumentCoverTextColor;
2707
2718
  /**
2708
2719
  * Vertical position of the cover image.
2709
2720
  * @default 0
@@ -2891,11 +2902,39 @@ export type ChangeRequestSubject = string;
2891
2902
  * @maxLength 128
2892
2903
  */
2893
2904
  export type ChangeRequestLinkTitle = string;
2894
- export interface ChangeRequestLink {
2905
+ /** External link associated with a change request. */
2906
+ export interface ChangeRequestLinkInput {
2895
2907
  ref: ContentRefURL;
2896
2908
  /** Optional title to display for the link. */
2897
2909
  title?: ChangeRequestLinkTitle;
2898
2910
  }
2911
+ /** External ticket data resolved for this link by a configured connector. */
2912
+ export type ChangeRequestLinkExpanded = {
2913
+ kind: "external-ticket";
2914
+ provider: "jira";
2915
+ state: "connected";
2916
+ /** The ticket's provider-specific key. */
2917
+ key: string;
2918
+ /**
2919
+ * URL to open the ticket.
2920
+ * @format uri
2921
+ */
2922
+ url: string;
2923
+ status: {
2924
+ id: string;
2925
+ name: string;
2926
+ };
2927
+ /** The ticket's summary. */
2928
+ summary: string;
2929
+ } | {
2930
+ kind: "external-ticket";
2931
+ provider: "jira";
2932
+ state: "error";
2933
+ };
2934
+ export type ChangeRequestLink = ChangeRequestLinkInput & {
2935
+ /** External ticket data resolved for this link by a configured connector. */
2936
+ expanded?: ChangeRequestLinkExpanded;
2937
+ };
2899
2938
  /**
2900
2939
  * External links associated with the change request.
2901
2940
  * @maxItems 10
@@ -2915,6 +2954,10 @@ export interface ChangeRequest {
2915
2954
  createdBy: User;
2916
2955
  createdAt: Timestamp;
2917
2956
  updatedAt: Timestamp;
2957
+ /** User who merged the change request. Only present when the change request has been merged. */
2958
+ mergedBy?: User;
2959
+ /** Date at which the change request was merged. Only present when the change request has been merged. */
2960
+ mergedAt?: Timestamp;
2918
2961
  /** ID of the space in which the change request was created. */
2919
2962
  space: string;
2920
2963
  /** ID of the active revision in the change request. */
@@ -2985,437 +3028,29 @@ export interface ApplySpaceTemplate {
2985
3028
  /** Parameters for a space template */
2986
3029
  params?: SpaceTemplateParams;
2987
3030
  }
2988
- /**
2989
- * Name of the organization
2990
- * @minLength 2
2991
- * @maxLength 255
2992
- * @pattern \S.*\S
2993
- */
2994
- export type OrganizationTitle = string;
2995
- export type OrganizationEmailDomains = string[];
2996
- /**
2997
- * Default hostname for the organization's public content, e.g. <org-hostname>.gitbook.io
2998
- * @minLength 3
2999
- * @maxLength 32
3000
- */
3001
- export type OrganizationHostname = string;
3002
- export interface SitePointer {
3003
- type: "site";
3004
- /** Unique identifier for the site */
3005
- site: string;
3006
- }
3007
- /** The default content for the organization */
3008
- export type OrganizationDefaultContent = SitePointer;
3009
- /** Pricing pair for monthly and yearly intervals */
3010
- export interface OrganizationPricePair {
3011
- /**
3012
- * Monthly price in USD
3013
- * @min 0
3014
- */
3015
- monthly: number;
3016
- /**
3017
- * Yearly price in USD (per month)
3018
- * @min 0
3019
- */
3020
- yearly: number;
3031
+ /** An emoji reaction by one or many users */
3032
+ export interface EmojiReaction {
3033
+ /** The Emoji of the reaction */
3034
+ emoji: string;
3035
+ /** The number of users who reacted with this emoji */
3036
+ count: number;
3037
+ /** The users who reacted with this emoji */
3038
+ users: {
3039
+ user: User;
3040
+ reactedAt: Timestamp;
3041
+ }[];
3021
3042
  }
3022
- /** Pricing information for an organization */
3023
- export interface OrganizationPricing {
3024
- /** Pricing for members (organization plan) */
3025
- members: {
3026
- /** Pricing pair for monthly and yearly intervals */
3027
- plus_2024: OrganizationPricePair;
3028
- /** Pricing pair for monthly and yearly intervals */
3029
- pro_2024: OrganizationPricePair;
3030
- };
3031
- /** Pricing for site types (site plans) */
3032
- sites: {
3033
- /** Pricing pair for monthly and yearly intervals */
3034
- premium: OrganizationPricePair;
3035
- /** Pricing pair for monthly and yearly intervals */
3036
- ultimate: OrganizationPricePair;
3037
- };
3043
+ export type EmojiReactions = EmojiReaction[];
3044
+ /** Contributor towards content. */
3045
+ export interface UserContributor {
3046
+ updatedAt: Timestamp;
3047
+ count: number;
3048
+ user: User;
3038
3049
  }
3039
- export interface BillingMeterAddon {
3040
- enabled: boolean;
3041
- }
3042
- export interface OrganizationBilling {
3043
- /** Interval for a billing subscription */
3044
- interval: BillingInterval;
3045
- endDate: Timestamp | null;
3046
- /** If true, we were unable to collect the last payment */
3047
- hasPaymentFailed: boolean;
3048
- /**
3049
- * If true, organization can create a checkout session to subscribe/update billing.
3050
- * If false, organization must resolve other billing issues before a checkout can be done.
3051
- */
3052
- canCheckout: boolean;
3053
- /** If true, the billing is set to cancel at the end of its current period */
3054
- isScheduledToCancel: boolean;
3055
- /** Pricing information for the organization */
3056
- pricing: OrganizationPricing;
3057
- /** Configuration for the usage-based addons */
3058
- usageAddons: Record<string, BillingMeterAddon>;
3059
- /** The minimum number of members allowed for this organization. */
3060
- minUsers?: number;
3061
- /** The maximum number of members allowed for this organization */
3062
- maxUsers?: number;
3063
- /** The minimum number of premium sites allowed for this organization. */
3064
- minPremiumSites?: number;
3065
- /** The maximum number of premium sites allowed for this organization. */
3066
- maxPremiumSites?: number;
3067
- /** The minimum number of ultimate sites allowed for this organization. */
3068
- minUltimateSites?: number;
3069
- /** The maximum number of ultimate sites allowed for this organization. */
3070
- maxUltimateSites?: number;
3071
- /** The number of paid members on the current subscription. */
3072
- paidMembers?: number;
3073
- /** The number of paid premium sites on the current subscription. */
3074
- paidPremiumSites?: number;
3075
- /** The number of paid ultimate sites on the current subscription. */
3076
- paidUltimateSites?: number;
3077
- /** Whether changing billing interval is allowed */
3078
- canChangeInterval: boolean;
3079
- /** Whether configuring SAML is allowed */
3080
- canUseSAML: boolean;
3081
- }
3082
- /**
3083
- * A short description giving context on the reason for the block.
3084
- * @minLength 1
3085
- * @maxLength 255
3086
- */
3087
- export type BlockReason = string;
3088
- export interface Organization {
3089
- /** Type of Object, always equals to "organization" */
3090
- object: "organization";
3091
- /** Unique identifier for the organization */
3092
- id: string;
3093
- /** Name of the organization */
3094
- title: OrganizationTitle;
3095
- createdAt: Timestamp;
3096
- emailDomains: OrganizationEmailDomains;
3097
- /** Default hostname for the organization's public content, e.g. <org-hostname>.gitbook.io */
3098
- hostname?: OrganizationHostname;
3099
- type: OrganizationType;
3100
- useCase?: OrganizationUseCase;
3101
- communityType?: OrganizationCommunityType;
3102
- /** The role of a member in an organization, null for guests */
3103
- defaultRole?: MemberRoleOrGuest;
3104
- /** The default content for the organization */
3105
- defaultContent?: OrganizationDefaultContent;
3106
- /** Whether SSO is enforced organization-wide */
3107
- sso?: boolean;
3108
- /** If true, the organization is configured to use all our AI features. */
3109
- ai?: boolean;
3110
- /** If true, invite links are enabled for this organization. */
3111
- inviteLinks: boolean;
3112
- /** Name of the product */
3113
- plan: BillingProduct;
3114
- /** Billing details, only available for org members. */
3115
- billing?: OrganizationBilling;
3116
- mergeRules: MergeRulesStandaloneConfiguration;
3117
- /** URLs associated with the object */
3118
- urls: {
3119
- /**
3120
- * URL of the organization in the API
3121
- * @format uri
3122
- */
3123
- location: string;
3124
- /**
3125
- * URL of the organization in the application
3126
- * @format uri
3127
- */
3128
- app: string;
3129
- /** URL of the logo of this organization, if defined. */
3130
- logo?: URL;
3131
- };
3132
- trial: {
3133
- /** - notapplicable, no trial can be started for this organization. - none, no trial has been started yet. - active, trial is active. - ended, the trial has ended and the user has choosen to stay on the free plan or has upgraded to a paid plan. - expired, the trial has ended but the user hasn't deciced yet what to do. */
3134
- status: BillingTrialStatus;
3135
- /** Number of trials the organization has consumed. */
3136
- count: number;
3137
- /** The trial's end date, if the organization has or had a trial. */
3138
- endDate?: Timestamp;
3139
- /** The decision taken by the user at the end of the trial */
3140
- decision?: "downgrade";
3141
- };
3142
- /** Custom hostname linked to this organization */
3143
- customHostname?: string;
3144
- /** If the organization is blocked, information about the block will appear here */
3145
- blocked?: {
3146
- /** Source for an organization block */
3147
- source?: BlockSource;
3148
- /** A short description giving context on the reason for the block. */
3149
- reason: BlockReason;
3150
- };
3151
- internal_billingMigration?: {
3152
- /** When we will upgrade the organization onto new pricing, if they haven't already. */
3153
- deadline?: Timestamp;
3154
- /** A discount the organization may have received thanks to migrating early. */
3155
- discountPercent?: number;
3156
- /** The expiration date of the discount, after wich regular pricing resumes. */
3157
- discountEndDate?: Timestamp;
3158
- };
3159
- /** The set of permissions for the organization */
3160
- permissions: {
3161
- /** Can the user view the organization. */
3162
- view: boolean;
3163
- /** Can the user view the organization in the application. */
3164
- access: boolean;
3165
- /** Can the user manage the title, members, etc. */
3166
- admin: boolean;
3167
- /** Is the user a team owner. */
3168
- ownTeam: boolean;
3169
- /** Can the user create new spaces/collections in the organization. */
3170
- createContent: boolean;
3171
- /** Can the user create new OpenAPI specifications. */
3172
- createOpenAPISpec: boolean;
3173
- /** Can the user view the billing details of the organization. */
3174
- viewBilling: boolean;
3175
- /** Can the user list the members of the organization. */
3176
- listMembers: boolean;
3177
- /** Can the user list the teams in the organization. */
3178
- listTeams: boolean;
3179
- /** Can the user list the integrations in the organization. */
3180
- listIntegrations: boolean;
3181
- /** Can the user list the integration installations in the organization. */
3182
- listInstallations: boolean;
3183
- /** Can the user install integrations in the organization. */
3184
- installIntegration: boolean;
3185
- };
3186
- }
3187
- export interface ContentLocationRevisionContext {
3188
- type: "revision";
3189
- revision: Revision;
3190
- }
3191
- export interface ContentLocationChangeRequestContext {
3192
- type: "changeRequest";
3193
- changeRequest: ChangeRequest;
3194
- }
3195
- export interface ContentLocationFile {
3196
- kind: "file";
3197
- organization: Organization;
3198
- space: Space;
3199
- versionContext?: ContentLocationRevisionContext | ContentLocationChangeRequestContext;
3200
- file: RevisionFile;
3201
- }
3202
- export interface ContentLocationURL {
3203
- kind: "url";
3204
- url: string;
3205
- }
3206
- export interface ContentLocationPageAnchor {
3207
- type: "anchor";
3208
- /** The anchor within the page. */
3209
- anchor: string;
3210
- }
3211
- export interface ContentLocationPageNode {
3212
- type: "node";
3213
- /** The node id within the page. */
3214
- node: string;
3215
- }
3216
- export interface ContentLocationPage {
3217
- kind: "page";
3218
- organization: Organization;
3219
- page: RevisionPage;
3220
- space: Space;
3221
- versionContext?: ContentLocationRevisionContext | ContentLocationChangeRequestContext;
3222
- internalLocation?: ContentLocationPageAnchor | ContentLocationPageNode;
3223
- }
3224
- export interface ContentLocationUser {
3225
- kind: "user";
3226
- user: User;
3227
- }
3228
- /**
3229
- * Title of the collection
3230
- * @maxLength 50
3231
- */
3232
- export type CollectionTitle = string;
3233
- /**
3234
- * Description of the collection
3235
- * @minLength 0
3236
- * @maxLength 100
3237
- */
3238
- export type CollectionDescription = string;
3239
- export interface Collection {
3240
- /** Type of Object, always equals to "collection" */
3241
- object: "collection";
3242
- /** Unique identifier for the collection */
3243
- id: string;
3244
- /** Title of the collection */
3245
- title: CollectionTitle;
3246
- /** Description of the collection */
3247
- description?: CollectionDescription;
3248
- /** ID of the organization owning this collection */
3249
- organization: string;
3250
- /** ID of the parent collection, if any */
3251
- parent?: string;
3252
- /** Default level for a piece of content */
3253
- defaultLevel: DefaultLevel;
3254
- /** URLs associated with the object */
3255
- urls: {
3256
- /**
3257
- * URL of the collection in the API
3258
- * @format uri
3259
- */
3260
- location: string;
3261
- /**
3262
- * URL of the collection in the application
3263
- * @format uri
3264
- */
3265
- app: string;
3266
- };
3267
- /** The set of permissions for the collection */
3268
- permissions: {
3269
- /** Can the user view the collection. */
3270
- view: boolean;
3271
- /** Can the user edit the title/description. */
3272
- admin: boolean;
3273
- /** Can the user view the invite links of the collection. */
3274
- viewInviteLinks: boolean;
3275
- /** Can the user create spaces/collections in this collection. */
3276
- create: boolean;
3277
- };
3278
- }
3279
- export interface ContentLocationCollection {
3280
- kind: "collection";
3281
- organization: Organization;
3282
- collection: Collection;
3283
- }
3284
- export interface ContentLocationSpace {
3285
- kind: "space";
3286
- organization: Organization;
3287
- space: Space;
3288
- }
3289
- export interface ContentLocationReusableContent {
3290
- kind: "reusable-content";
3291
- organization: Organization;
3292
- space: Space;
3293
- versionContext?: ContentLocationRevisionContext | ContentLocationChangeRequestContext;
3294
- reusableContent: RevisionReusableContent;
3295
- }
3296
- /**
3297
- * Slug used as reference
3298
- * @minLength 1
3299
- * @maxLength 100
3300
- * @pattern ^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$
3301
- */
3302
- export type OpenAPISpecSlug = string;
3303
- /** OpenAPI error object. */
3304
- export interface OpenAPIErrorObject {
3305
- /** Description of the error. */
3306
- message: string;
3307
- /** Unique code of the error. */
3308
- code?: string;
3309
- }
3310
- export interface OpenAPISpec {
3311
- /** The object type, which is always "openapi-spec" */
3312
- object: "openapi-spec";
3313
- /** Unique identifier */
3314
- id: string;
3315
- /** Date of creation */
3316
- createdAt: Timestamp;
3317
- /** Date of the last update */
3318
- updatedAt: Timestamp;
3319
- /** Slug used as reference */
3320
- slug: OpenAPISpecSlug;
3321
- sourceURL?: URL;
3322
- /** Processing state */
3323
- processingState: OpenAPISpecProcessingState;
3324
- /**
3325
- * The visibility setting of the OpenAPI spec.
3326
- * * `private`: The spec is not publicly available.
3327
- * * `public`: The spec is available to anyone with a public link.
3328
- */
3329
- visibility?: OpenAPISpecVisibility;
3330
- /** ID of the latest version of the OpenAPI specification */
3331
- lastVersion?: string;
3332
- /** Date of the last processing */
3333
- lastProcessedAt?: Timestamp;
3334
- /** OpenAPI processing error code */
3335
- lastProcessErrorCode?: OpenAPISpecProcessingErrorCode;
3336
- lastProcessedErrors?: OpenAPIErrorObject[];
3337
- /**
3338
- * Total number of processing errors before truncation of lastProcessedErrors.
3339
- * @min 0
3340
- */
3341
- lastProcessedErrorCount: number;
3342
- /** The set of permissions for the OpenAPI specification. */
3343
- permissions: {
3344
- /** Can the user view the specification. */
3345
- view: boolean;
3346
- /** Can the user edit the specification. */
3347
- edit: boolean;
3348
- };
3349
- /** URLs associated with the object */
3350
- urls: {
3351
- /** URL of the OpenAPI specification in the API */
3352
- location: URL;
3353
- /** URL of the OpenAPI specification in the application */
3354
- app: URL;
3355
- /**
3356
- * URL of the published spec. Only defined when visibility is "published."
3357
- * @format uri
3358
- */
3359
- published?: string;
3360
- };
3361
- }
3362
- export interface ContentLocationOpenAPI {
3363
- kind: "openapi";
3364
- organization: Organization;
3365
- openAPISpec: OpenAPISpec;
3366
- }
3367
- export interface ContentReferencesStats {
3368
- /** Total count of links */
3369
- total: number;
3370
- broken: {
3371
- /** Count of broken links */
3372
- total: number;
3373
- /** Count of broken links that were broken in current change request, if applicable. */
3374
- changeRequest?: number;
3375
- };
3376
- }
3377
- export interface ContentReferenceUsage {
3378
- /**
3379
- * Text to display to represent the reference. Possible values include:
3380
- * - `ok` - No problems detected for this content reference.
3381
- * - `broken` - The target does not exist in the revision.
3382
- * - `in-app` - The target is a URL link pointing to an internal location in the app.
3383
- */
3384
- status: ContentReferenceStatus;
3385
- /**
3386
- * Indicator of the relationship with the content ref target.
3387
- * - `reference` - The content soft-references the ref target
3388
- * - `dependsOn` - The content depends on the ref target
3389
- */
3390
- relation: ContentReferenceRelation;
3391
- /** The reference target where a list of pages are pointing at */
3392
- targetReference?: ContentLocation;
3393
- /** Pages locations where a link to the target is found. */
3394
- locationReferences: ContentLocation[];
3395
- }
3396
- /** An emoji reaction by one or many users */
3397
- export interface EmojiReaction {
3398
- /** The Emoji of the reaction */
3399
- emoji: string;
3400
- /** The number of users who reacted with this emoji */
3401
- count: number;
3402
- /** The users who reacted with this emoji */
3403
- users: {
3404
- user: User;
3405
- reactedAt: Timestamp;
3406
- }[];
3407
- }
3408
- export type EmojiReactions = EmojiReaction[];
3409
- /** Contributor towards content. */
3410
- export interface UserContributor {
3411
- updatedAt: Timestamp;
3412
- count: number;
3413
- user: User;
3414
- }
3415
- /** Details about the table cell this comment is attached to, if any. */
3416
- export interface TableCellTarget {
3417
- record: string;
3418
- definition: string;
3050
+ /** Details about the table cell this comment is attached to, if any. */
3051
+ export interface TableCellTarget {
3052
+ record: string;
3053
+ definition: string;
3419
3054
  }
3420
3055
  export type Comment = {
3421
3056
  /** Type of Object, always equals to "comment" */
@@ -3939,14 +3574,213 @@ export interface IntegrationConfigurations {
3939
3574
  space?: IntegrationConfiguration;
3940
3575
  site?: IntegrationConfiguration;
3941
3576
  }
3942
- /**
3943
- * External urls configured by the developer of the integration
3944
- * @maxItems 5
3945
- */
3946
- export type IntegrationExternalLinks = {
3947
- url: URL;
3948
- label: string;
3949
- }[];
3577
+ /**
3578
+ * External urls configured by the developer of the integration
3579
+ * @maxItems 5
3580
+ */
3581
+ export type IntegrationExternalLinks = {
3582
+ url: URL;
3583
+ label: string;
3584
+ }[];
3585
+ /**
3586
+ * Name of the organization
3587
+ * @minLength 2
3588
+ * @maxLength 255
3589
+ * @pattern \S.*\S
3590
+ */
3591
+ export type OrganizationTitle = string;
3592
+ export type OrganizationEmailDomains = string[];
3593
+ /**
3594
+ * Default hostname for the organization's public content, e.g. <org-hostname>.gitbook.io
3595
+ * @minLength 3
3596
+ * @maxLength 32
3597
+ */
3598
+ export type OrganizationHostname = string;
3599
+ export interface SitePointer {
3600
+ type: "site";
3601
+ /** Unique identifier for the site */
3602
+ site: string;
3603
+ }
3604
+ /** The default content for the organization */
3605
+ export type OrganizationDefaultContent = SitePointer;
3606
+ /** Pricing pair for monthly and yearly intervals */
3607
+ export interface OrganizationPricePair {
3608
+ /**
3609
+ * Monthly price in USD
3610
+ * @min 0
3611
+ */
3612
+ monthly: number;
3613
+ /**
3614
+ * Yearly price in USD (per month)
3615
+ * @min 0
3616
+ */
3617
+ yearly: number;
3618
+ }
3619
+ /** Pricing information for an organization */
3620
+ export interface OrganizationPricing {
3621
+ /** Pricing for members (organization plan) */
3622
+ members: {
3623
+ /** Pricing pair for monthly and yearly intervals */
3624
+ plus_2024: OrganizationPricePair;
3625
+ /** Pricing pair for monthly and yearly intervals */
3626
+ pro_2024: OrganizationPricePair;
3627
+ };
3628
+ /** Pricing for site types (site plans) */
3629
+ sites: {
3630
+ /** Pricing pair for monthly and yearly intervals */
3631
+ premium: OrganizationPricePair;
3632
+ /** Pricing pair for monthly and yearly intervals */
3633
+ ultimate: OrganizationPricePair;
3634
+ };
3635
+ }
3636
+ export interface BillingMeterAddon {
3637
+ enabled: boolean;
3638
+ }
3639
+ export interface OrganizationBilling {
3640
+ /** Interval for a billing subscription */
3641
+ interval: BillingInterval;
3642
+ endDate: Timestamp | null;
3643
+ /** If true, we were unable to collect the last payment */
3644
+ hasPaymentFailed: boolean;
3645
+ /**
3646
+ * If true, organization can create a checkout session to subscribe/update billing.
3647
+ * If false, organization must resolve other billing issues before a checkout can be done.
3648
+ */
3649
+ canCheckout: boolean;
3650
+ /** If true, the billing is set to cancel at the end of its current period */
3651
+ isScheduledToCancel: boolean;
3652
+ /** Pricing information for the organization */
3653
+ pricing: OrganizationPricing;
3654
+ /** Configuration for the usage-based addons */
3655
+ usageAddons: Record<string, BillingMeterAddon>;
3656
+ /** The minimum number of members allowed for this organization. */
3657
+ minUsers?: number;
3658
+ /** The maximum number of members allowed for this organization */
3659
+ maxUsers?: number;
3660
+ /** The minimum number of premium sites allowed for this organization. */
3661
+ minPremiumSites?: number;
3662
+ /** The maximum number of premium sites allowed for this organization. */
3663
+ maxPremiumSites?: number;
3664
+ /** The minimum number of ultimate sites allowed for this organization. */
3665
+ minUltimateSites?: number;
3666
+ /** The maximum number of ultimate sites allowed for this organization. */
3667
+ maxUltimateSites?: number;
3668
+ /** The number of paid members on the current subscription. */
3669
+ paidMembers?: number;
3670
+ /** The number of paid premium sites on the current subscription. */
3671
+ paidPremiumSites?: number;
3672
+ /** The number of paid ultimate sites on the current subscription. */
3673
+ paidUltimateSites?: number;
3674
+ /** Whether changing billing interval is allowed */
3675
+ canChangeInterval: boolean;
3676
+ /** Whether configuring SAML is allowed */
3677
+ canUseSAML: boolean;
3678
+ }
3679
+ /**
3680
+ * A short description giving context on the reason for the block.
3681
+ * @minLength 1
3682
+ * @maxLength 255
3683
+ */
3684
+ export type BlockReason = string;
3685
+ export interface Organization {
3686
+ /** Type of Object, always equals to "organization" */
3687
+ object: "organization";
3688
+ /** Unique identifier for the organization */
3689
+ id: string;
3690
+ /** Name of the organization */
3691
+ title: OrganizationTitle;
3692
+ createdAt: Timestamp;
3693
+ emailDomains: OrganizationEmailDomains;
3694
+ /** Default hostname for the organization's public content, e.g. <org-hostname>.gitbook.io */
3695
+ hostname?: OrganizationHostname;
3696
+ type: OrganizationType;
3697
+ useCase?: OrganizationUseCase;
3698
+ communityType?: OrganizationCommunityType;
3699
+ /** The role of a member in an organization, null for guests */
3700
+ defaultRole?: MemberRoleOrGuest;
3701
+ /** The default content for the organization */
3702
+ defaultContent?: OrganizationDefaultContent;
3703
+ /** Whether SSO is enforced organization-wide */
3704
+ sso?: boolean;
3705
+ /** If true, the organization is configured to use all our AI features. */
3706
+ ai?: boolean;
3707
+ /** If true, invite links are enabled for this organization. */
3708
+ inviteLinks: boolean;
3709
+ /** Name of the product */
3710
+ plan: BillingProduct;
3711
+ /** Billing details, only available for org members. */
3712
+ billing?: OrganizationBilling;
3713
+ mergeRules: MergeRulesStandaloneConfiguration;
3714
+ /** URLs associated with the object */
3715
+ urls: {
3716
+ /**
3717
+ * URL of the organization in the API
3718
+ * @format uri
3719
+ */
3720
+ location: string;
3721
+ /**
3722
+ * URL of the organization in the application
3723
+ * @format uri
3724
+ */
3725
+ app: string;
3726
+ /** URL of the logo of this organization, if defined. */
3727
+ logo?: URL;
3728
+ };
3729
+ trial: {
3730
+ /** - notapplicable, no trial can be started for this organization. - none, no trial has been started yet. - active, trial is active. - ended, the trial has ended and the user has choosen to stay on the free plan or has upgraded to a paid plan. - expired, the trial has ended but the user hasn't deciced yet what to do. */
3731
+ status: BillingTrialStatus;
3732
+ /** Number of trials the organization has consumed. */
3733
+ count: number;
3734
+ /** The trial's end date, if the organization has or had a trial. */
3735
+ endDate?: Timestamp;
3736
+ /** The decision taken by the user at the end of the trial */
3737
+ decision?: "downgrade";
3738
+ };
3739
+ /** Custom hostname linked to this organization */
3740
+ customHostname?: string;
3741
+ /** If the organization is blocked, information about the block will appear here */
3742
+ blocked?: {
3743
+ /** Source for an organization block */
3744
+ source?: BlockSource;
3745
+ /** A short description giving context on the reason for the block. */
3746
+ reason: BlockReason;
3747
+ };
3748
+ internal_billingMigration?: {
3749
+ /** When we will upgrade the organization onto new pricing, if they haven't already. */
3750
+ deadline?: Timestamp;
3751
+ /** A discount the organization may have received thanks to migrating early. */
3752
+ discountPercent?: number;
3753
+ /** The expiration date of the discount, after wich regular pricing resumes. */
3754
+ discountEndDate?: Timestamp;
3755
+ };
3756
+ /** The set of permissions for the organization */
3757
+ permissions: {
3758
+ /** Can the user view the organization. */
3759
+ view: boolean;
3760
+ /** Can the user view the organization in the application. */
3761
+ access: boolean;
3762
+ /** Can the user manage the title, members, etc. */
3763
+ admin: boolean;
3764
+ /** Is the user a team owner. */
3765
+ ownTeam: boolean;
3766
+ /** Can the user create new spaces/collections in the organization. */
3767
+ createContent: boolean;
3768
+ /** Can the user create new OpenAPI specifications. */
3769
+ createOpenAPISpec: boolean;
3770
+ /** Can the user view the billing details of the organization. */
3771
+ viewBilling: boolean;
3772
+ /** Can the user list the members of the organization. */
3773
+ listMembers: boolean;
3774
+ /** Can the user list the teams in the organization. */
3775
+ listTeams: boolean;
3776
+ /** Can the user list the integrations in the organization. */
3777
+ listIntegrations: boolean;
3778
+ /** Can the user list the integration installations in the organization. */
3779
+ listInstallations: boolean;
3780
+ /** Can the user install integrations in the organization. */
3781
+ installIntegration: boolean;
3782
+ };
3783
+ }
3950
3784
  /**
3951
3785
  * Security policy to validate the content of the integrations scripts and Contentkit. Will be sent as
3952
3786
  * headers when processing the script fetch event and the blocks fetch events.
@@ -4065,6 +3899,57 @@ export type SpaceIntegrationBlocks = {
4065
3899
  name: string;
4066
3900
  blocks: IntegrationBlock[];
4067
3901
  }[];
3902
+ /**
3903
+ * Title of the collection
3904
+ * @maxLength 50
3905
+ */
3906
+ export type CollectionTitle = string;
3907
+ /**
3908
+ * Description of the collection
3909
+ * @minLength 0
3910
+ * @maxLength 100
3911
+ */
3912
+ export type CollectionDescription = string;
3913
+ export interface Collection {
3914
+ /** Type of Object, always equals to "collection" */
3915
+ object: "collection";
3916
+ /** Unique identifier for the collection */
3917
+ id: string;
3918
+ /** Title of the collection */
3919
+ title: CollectionTitle;
3920
+ /** Description of the collection */
3921
+ description?: CollectionDescription;
3922
+ /** ID of the organization owning this collection */
3923
+ organization: string;
3924
+ /** ID of the parent collection, if any */
3925
+ parent?: string;
3926
+ /** Default level for a piece of content */
3927
+ defaultLevel: DefaultLevel;
3928
+ /** URLs associated with the object */
3929
+ urls: {
3930
+ /**
3931
+ * URL of the collection in the API
3932
+ * @format uri
3933
+ */
3934
+ location: string;
3935
+ /**
3936
+ * URL of the collection in the application
3937
+ * @format uri
3938
+ */
3939
+ app: string;
3940
+ };
3941
+ /** The set of permissions for the collection */
3942
+ permissions: {
3943
+ /** Can the user view the collection. */
3944
+ view: boolean;
3945
+ /** Can the user edit the title/description. */
3946
+ admin: boolean;
3947
+ /** Can the user view the invite links of the collection. */
3948
+ viewInviteLinks: boolean;
3949
+ /** Can the user create spaces/collections in this collection. */
3950
+ create: boolean;
3951
+ };
3952
+ }
4068
3953
  /** Secrets stored on the integration and passed at runtime. */
4069
3954
  export type IntegrationSecrets = Record<string, string>;
4070
3955
  export interface PublishIntegration {
@@ -4636,8 +4521,6 @@ export interface Site {
4636
4521
  * * `visitor-auth`: Anyone authenticated through a JWT token can access the site.
4637
4522
  */
4638
4523
  visibility: SiteVisibility;
4639
- /** Permissions resolution mode for the site. */
4640
- permissionsModel: SitePermissionsModel;
4641
4524
  /** Default level for a piece of content */
4642
4525
  defaultLevel: DefaultLevel;
4643
4526
  /** The set of permissions for the site. */
@@ -5731,6 +5614,72 @@ export interface SearchAIAnswerStream {
5731
5614
  /** Answer from AI for a question asked on a content. */
5732
5615
  answer: SearchAIAnswer;
5733
5616
  }
5617
+ /**
5618
+ * Slug used as reference
5619
+ * @minLength 1
5620
+ * @maxLength 100
5621
+ * @pattern ^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$
5622
+ */
5623
+ export type OpenAPISpecSlug = string;
5624
+ /** OpenAPI error object. */
5625
+ export interface OpenAPIErrorObject {
5626
+ /** Description of the error. */
5627
+ message: string;
5628
+ /** Unique code of the error. */
5629
+ code?: string;
5630
+ }
5631
+ export interface OpenAPISpec {
5632
+ /** The object type, which is always "openapi-spec" */
5633
+ object: "openapi-spec";
5634
+ /** Unique identifier */
5635
+ id: string;
5636
+ /** Date of creation */
5637
+ createdAt: Timestamp;
5638
+ /** Date of the last update */
5639
+ updatedAt: Timestamp;
5640
+ /** Slug used as reference */
5641
+ slug: OpenAPISpecSlug;
5642
+ sourceURL?: URL;
5643
+ /** Processing state */
5644
+ processingState: OpenAPISpecProcessingState;
5645
+ /**
5646
+ * The visibility setting of the OpenAPI spec.
5647
+ * * `private`: The spec is not publicly available.
5648
+ * * `public`: The spec is available to anyone with a public link.
5649
+ */
5650
+ visibility?: OpenAPISpecVisibility;
5651
+ /** ID of the latest version of the OpenAPI specification */
5652
+ lastVersion?: string;
5653
+ /** Date of the last processing */
5654
+ lastProcessedAt?: Timestamp;
5655
+ /** OpenAPI processing error code */
5656
+ lastProcessErrorCode?: OpenAPISpecProcessingErrorCode;
5657
+ lastProcessedErrors?: OpenAPIErrorObject[];
5658
+ /**
5659
+ * Total number of processing errors before truncation of lastProcessedErrors.
5660
+ * @min 0
5661
+ */
5662
+ lastProcessedErrorCount: number;
5663
+ /** The set of permissions for the OpenAPI specification. */
5664
+ permissions: {
5665
+ /** Can the user view the specification. */
5666
+ view: boolean;
5667
+ /** Can the user edit the specification. */
5668
+ edit: boolean;
5669
+ };
5670
+ /** URLs associated with the object */
5671
+ urls: {
5672
+ /** URL of the OpenAPI specification in the API */
5673
+ location: URL;
5674
+ /** URL of the OpenAPI specification in the application */
5675
+ app: URL;
5676
+ /**
5677
+ * URL of the published spec. Only defined when visibility is "published."
5678
+ * @format uri
5679
+ */
5680
+ published?: string;
5681
+ };
5682
+ }
5734
5683
  /** Create a specification from an URL */
5735
5684
  export type OpenAPISpecSource = {
5736
5685
  url: URL;
@@ -5767,6 +5716,13 @@ export interface OpenAPISpecContent {
5767
5716
  public: null | URL;
5768
5717
  };
5769
5718
  }
5719
+ /** Raw original content of the specification entrypoint file. */
5720
+ export interface OpenAPISpecRawContent {
5721
+ /** Raw specification text, exactly as submitted. */
5722
+ text: string;
5723
+ /** Format of the raw specification text. */
5724
+ format: "json" | "yaml";
5725
+ }
5770
5726
  export interface OrganizationAgentInstructions {
5771
5727
  object: "agent-instructions";
5772
5728
  /** Document containing the Docs agent instructions. */
@@ -6519,7 +6475,7 @@ export interface SiteInsightsSession {
6519
6475
  sessionId: string;
6520
6476
  }
6521
6477
  /** Integration source */
6522
- export type ContextConnector = string | "builtin:email" | "builtin:api" | "builtin:website" | "builtin:youtube" | "builtin:github-discussions" | "builtin:github-issues" | "builtin:intercom" | "builtin:zendesk" | "builtin:pylon" | "builtin:linear";
6478
+ export type ContextConnector = string | "builtin:email" | "builtin:api" | "builtin:website" | "builtin:youtube" | "builtin:github-discussions" | "builtin:github-issues" | "builtin:intercom" | "builtin:zendesk" | "builtin:zoho-desk" | "builtin:pylon" | "builtin:linear" | "builtin:jira";
6523
6479
  /**
6524
6480
  * Title for the context record
6525
6481
  * @minLength 1
@@ -6594,8 +6550,8 @@ export interface SiteScan {
6594
6550
  id: string;
6595
6551
  /** Status of a persisted site scan. */
6596
6552
  status: SiteScanStatus;
6597
- /** The site topic ID associated with the scan */
6598
- topic: string;
6553
+ /** The site topic ID associated with the scan. It is null for scans that are not associated with a current topic in the site. */
6554
+ topic: string | null;
6599
6555
  createdAt: Timestamp;
6600
6556
  startedAt?: Timestamp;
6601
6557
  finishedAt?: Timestamp;
@@ -6623,8 +6579,8 @@ export interface SiteFinding {
6623
6579
  id: string;
6624
6580
  /** The site scan ID associated with the finding */
6625
6581
  scan: string;
6626
- /** The site topic ID associated with the finding */
6627
- topic: string;
6582
+ /** The site topic ID associated with the finding. It is null for findings that are not associated with a current topic in the site. */
6583
+ topic: string | null;
6628
6584
  /** Short finding title */
6629
6585
  title: SiteFindingTitle;
6630
6586
  /** Number of change requests linked to the finding */
@@ -6645,8 +6601,8 @@ export interface SiteFinding {
6645
6601
  status: SiteFindingStatus;
6646
6602
  /**
6647
6603
  * Classification of a site finding:
6648
- * - Outdated content: The content is no longer up to date with external context and may be misleading or incorrect.
6649
- * - Incoherent content: The content contains information that is inconsistent or contradictory.
6604
+ * - Outdated content: The content was correct but is no longer up to date with external context and may be misleading or incorrect.
6605
+ * - Incorrect content: The content is factually wrong or misleading, leading users astray regardless of whether it was ever correct.
6650
6606
  * - Content gap: The content is missing important information that should be present to answer user questions effectively.
6651
6607
  * - Other: Any other type of finding not covered by the above categories.
6652
6608
  */
@@ -6769,6 +6725,8 @@ export interface ContextUsageSettings {
6769
6725
  changeRequests: boolean;
6770
6726
  /** Whether to expose records in search results */
6771
6727
  search: boolean;
6728
+ /** Whether the connection syncs GitBook change-request state outward to the connected external system (outbound write). Requires a write-capable token or role. */
6729
+ sync?: boolean;
6772
6730
  /** Relative score adjustment applied to records from a connection when searching. */
6773
6731
  searchBoost: ContextSearchBoost;
6774
6732
  }
@@ -6834,18 +6792,64 @@ export type ContextConnectorSetup = {
6834
6792
  email: string;
6835
6793
  /** @minLength 1 */
6836
6794
  apiToken: string;
6837
- };
6838
- } | {
6839
- connector: "builtin:pylon";
6840
- setupSettings: {
6841
- /** @minLength 1 */
6842
- token: string;
6843
- };
6844
- } | {
6845
- connector: "builtin:linear";
6846
- setupSettings: {
6847
- /** @minLength 1 */
6848
- token: string;
6795
+ };
6796
+ } | {
6797
+ connector: "builtin:zoho-desk";
6798
+ setupSettings: {
6799
+ /**
6800
+ * Zoho data center hosting the account, given as its API domain suffix (e.g. `com`, `eu`, `in`, `com.au`). Zoho scopes both the accounts and desk API hosts by data center.
6801
+ * @minLength 1
6802
+ */
6803
+ dataCenter: string;
6804
+ /**
6805
+ * Zoho Desk organization id the tickets belong to.
6806
+ * @minLength 1
6807
+ */
6808
+ orgId: string;
6809
+ /** @minLength 1 */
6810
+ clientId: string;
6811
+ /** @minLength 1 */
6812
+ clientSecret: string;
6813
+ /** @minLength 1 */
6814
+ refreshToken: string;
6815
+ };
6816
+ } | {
6817
+ connector: "builtin:pylon";
6818
+ setupSettings: {
6819
+ /** @minLength 1 */
6820
+ token: string;
6821
+ };
6822
+ } | {
6823
+ connector: "builtin:linear";
6824
+ setupSettings: {
6825
+ /** @minLength 1 */
6826
+ token: string;
6827
+ };
6828
+ } | {
6829
+ connector: "builtin:jira";
6830
+ setupSettings: {
6831
+ /**
6832
+ * Base URL of the Jira Cloud site, e.g. https://your-team.atlassian.net.
6833
+ * @format uri
6834
+ * @minLength 1
6835
+ * @maxLength 2048
6836
+ */
6837
+ baseUrl: string;
6838
+ /**
6839
+ * Email of the Atlassian account whose API token is used.
6840
+ * @format email
6841
+ * @minLength 1
6842
+ * @maxLength 254
6843
+ */
6844
+ apiEmail: string;
6845
+ /**
6846
+ * Atlassian API token used for outbound writes. Redacted when read back.
6847
+ * @minLength 1
6848
+ * @maxLength 1024
6849
+ */
6850
+ apiToken: string;
6851
+ /** Jira status to move the linked issue to when the change request reaches a given status, e.g. `{ "merged": "Done" }`. A status left out is not synced. */
6852
+ statusMapping?: Record<ChangeRequestStatus, string>;
6849
6853
  };
6850
6854
  };
6851
6855
  export type ContextConnection = {
@@ -6881,6 +6885,13 @@ export type ContextConnection = {
6881
6885
  location: string;
6882
6886
  };
6883
6887
  } & ContextConnectorSetup;
6888
+ export interface ContextConnectionTestResult {
6889
+ object: "context-connection-test-result";
6890
+ /** Whether the stored credentials authenticated successfully. */
6891
+ success: boolean;
6892
+ /** A human-readable reason for the failure, when the test failed. */
6893
+ error?: string;
6894
+ }
6884
6895
  export interface SiteTopicUsageSettings {
6885
6896
  /** Whether to use context to propose change requests */
6886
6897
  changeRequests: boolean;
@@ -7265,6 +7276,15 @@ export interface AIToolCallReplyToComment {
7265
7276
  /** The ID of the reply being posted. */
7266
7277
  replyId: string;
7267
7278
  }
7279
+ export interface AIToolCallGetComments {
7280
+ tool: "getComments";
7281
+ /** The ID of the space the comments were read from. */
7282
+ spaceId: string;
7283
+ /** The ID of the comment that was read, when a single comment was requested by URL or ID. */
7284
+ commentId?: string;
7285
+ /** The number of comments that were read. */
7286
+ count?: number;
7287
+ }
7268
7288
  export interface AIToolCallSubmitChangeRequestReview {
7269
7289
  tool: "submitChangeRequestReview";
7270
7290
  /** The ID of the space where the review was submitted. */
@@ -7301,7 +7321,7 @@ export interface AIToolCallOther {
7301
7321
  /** Summary of a generic tool call. */
7302
7322
  summary: AIToolCallOtherSummary;
7303
7323
  }
7304
- export type AIToolCall = AIToolCallGetPageContent | AIToolCallGetRecordContent | AIToolCallGetPages | AIToolCallGetReusableContents | AIToolCallSearch | AIToolCallEditPage | AIToolCallCreatePage | AIToolCallDeletePage | AIToolCallRenamePage | AIToolCallMovePage | AIToolCallListModifiedPages | AIToolCallGetPageDiff | AIToolCallCreateReusableContent | AIToolCallEditReusableContent | AIToolCallGetReusableContent | AIToolCallGetVariables | AIToolCallUpdateVariables | AIToolCallGetTags | AIToolCallUpdateTags | AIToolCallCreateChangeRequest | AIToolCallGetChangeRequestDetails | AIToolCallSetChangeRequestDetails | AIToolCallComment | AIToolCallReplyToComment | AIToolCallSubmitChangeRequestReview | AIToolCallMCP | AIToolCallOther;
7324
+ export type AIToolCall = AIToolCallGetPageContent | AIToolCallGetRecordContent | AIToolCallGetPages | AIToolCallGetReusableContents | AIToolCallSearch | AIToolCallEditPage | AIToolCallCreatePage | AIToolCallDeletePage | AIToolCallRenamePage | AIToolCallMovePage | AIToolCallListModifiedPages | AIToolCallGetPageDiff | AIToolCallCreateReusableContent | AIToolCallEditReusableContent | AIToolCallGetReusableContent | AIToolCallGetVariables | AIToolCallUpdateVariables | AIToolCallGetTags | AIToolCallUpdateTags | AIToolCallCreateChangeRequest | AIToolCallGetChangeRequestDetails | AIToolCallSetChangeRequestDetails | AIToolCallComment | AIToolCallReplyToComment | AIToolCallGetComments | AIToolCallSubmitChangeRequestReview | AIToolCallMCP | AIToolCallOther;
7305
7325
  export interface Timerange {
7306
7326
  start: Timestamp;
7307
7327
  end: Timestamp;
@@ -7763,8 +7783,8 @@ export type SiteInsightsEventAgentFeedback = SiteInsightsEventBase & {
7763
7783
  content: string;
7764
7784
  /**
7765
7785
  * Classification of a site finding:
7766
- * - Outdated content: The content is no longer up to date with external context and may be misleading or incorrect.
7767
- * - Incoherent content: The content contains information that is inconsistent or contradictory.
7786
+ * - Outdated content: The content was correct but is no longer up to date with external context and may be misleading or incorrect.
7787
+ * - Incorrect content: The content is factually wrong or misleading, leading users astray regardless of whether it was ever correct.
7768
7788
  * - Content gap: The content is missing important information that should be present to answer user questions effectively.
7769
7789
  * - Other: Any other type of finding not covered by the above categories.
7770
7790
  */
@@ -8590,6 +8610,69 @@ export interface UpdateContentPublishingAuth {
8590
8610
  */
8591
8611
  fallbackURL?: string;
8592
8612
  }
8613
+ export interface ContentLocationRevisionContext {
8614
+ type: "revision";
8615
+ revision: Revision;
8616
+ }
8617
+ export interface ContentLocationChangeRequestContext {
8618
+ type: "changeRequest";
8619
+ changeRequest: ChangeRequest;
8620
+ }
8621
+ export interface ContentLocationFile {
8622
+ kind: "file";
8623
+ organization: Organization;
8624
+ space: Space;
8625
+ versionContext?: ContentLocationRevisionContext | ContentLocationChangeRequestContext;
8626
+ file: RevisionFile;
8627
+ }
8628
+ export interface ContentLocationURL {
8629
+ kind: "url";
8630
+ url: string;
8631
+ }
8632
+ export interface ContentLocationPageAnchor {
8633
+ type: "anchor";
8634
+ /** The anchor within the page. */
8635
+ anchor: string;
8636
+ }
8637
+ export interface ContentLocationPageNode {
8638
+ type: "node";
8639
+ /** The node id within the page. */
8640
+ node: string;
8641
+ }
8642
+ export interface ContentLocationPage {
8643
+ kind: "page";
8644
+ organization: Organization;
8645
+ page: RevisionPage;
8646
+ space: Space;
8647
+ versionContext?: ContentLocationRevisionContext | ContentLocationChangeRequestContext;
8648
+ internalLocation?: ContentLocationPageAnchor | ContentLocationPageNode;
8649
+ }
8650
+ export interface ContentLocationUser {
8651
+ kind: "user";
8652
+ user: User;
8653
+ }
8654
+ export interface ContentLocationCollection {
8655
+ kind: "collection";
8656
+ organization: Organization;
8657
+ collection: Collection;
8658
+ }
8659
+ export interface ContentLocationSpace {
8660
+ kind: "space";
8661
+ organization: Organization;
8662
+ space: Space;
8663
+ }
8664
+ export interface ContentLocationReusableContent {
8665
+ kind: "reusable-content";
8666
+ organization: Organization;
8667
+ space: Space;
8668
+ versionContext?: ContentLocationRevisionContext | ContentLocationChangeRequestContext;
8669
+ reusableContent: RevisionReusableContent;
8670
+ }
8671
+ export interface ContentLocationOpenAPI {
8672
+ kind: "openapi";
8673
+ organization: Organization;
8674
+ openAPISpec: OpenAPISpec;
8675
+ }
8593
8676
  export interface SpaceTemplate {
8594
8677
  id: string;
8595
8678
  contentId: string;
@@ -9442,10 +9525,6 @@ export interface APIChannelSpacePublishingCustomization {
9442
9525
  channel: "space-publishing-customization";
9443
9526
  space: string;
9444
9527
  }
9445
- export interface APIChannelSpaceContentRefs {
9446
- channel: "space-content-refs";
9447
- space: string;
9448
- }
9449
9528
  export interface APIChannelSpaceIntegrations {
9450
9529
  channel: "space-integrations";
9451
9530
  space: string;
@@ -9476,11 +9555,6 @@ export interface APIChannelChangeRequestReviews {
9476
9555
  space: string;
9477
9556
  changeRequest: string;
9478
9557
  }
9479
- export interface APIChannelChangeRequestContentRefs {
9480
- channel: "space-change-request-content-refs";
9481
- space: string;
9482
- changeRequest: string;
9483
- }
9484
9558
  export interface APIChannelCollection {
9485
9559
  channel: "collection";
9486
9560
  collection: string;
@@ -9769,24 +9843,6 @@ export interface APIChannelGitSyncOperationData {
9769
9843
  channel: "space-gitsync-operation";
9770
9844
  data: GitSyncOperation;
9771
9845
  }
9772
- export interface APIChannelSpaceContentRefsData {
9773
- channel: "space-content-refs";
9774
- /** Data passed on the channel messages for content refs indexation. */
9775
- data: {
9776
- /** ID of the latest indexed revision */
9777
- revision: string;
9778
- updatedAt: number;
9779
- };
9780
- }
9781
- export interface APIChannelChangeRequestContentRefsData {
9782
- channel: "space-change-request-content-refs";
9783
- /** Data passed on the channel messages for content refs indexation. */
9784
- data: {
9785
- /** ID of the latest indexed revision */
9786
- revision: string;
9787
- updatedAt: number;
9788
- };
9789
- }
9790
9846
  export interface APIChannelMutationData {
9791
9847
  channel: "*";
9792
9848
  /** Data passed on the channels associated to API endpoints. */
@@ -10498,27 +10554,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10498
10554
  */
10499
10555
  computed?: boolean;
10500
10556
  }, params?: RequestParams) => Promise<HttpResponse<RevisionFile, any>>;
10501
- /**
10502
- * @description Returns the content locations (pages and inline positions) within the space that link to or embed the specified file. Use this to find where an asset is used before deleting or replacing it.
10503
- *
10504
- * @tags space-content
10505
- * @name ListSpaceFileBacklinks
10506
- * @summary List all pages in a space that reference a specific file
10507
- * @request GET:/spaces/{spaceId}/content/files/{fileId}/backlinks
10508
- * @secure
10509
- */
10510
- listSpaceFileBacklinks: (spaceId: EntityId, fileId: EntityId, query?: {
10511
- /** Identifier of the page results to fetch. */
10512
- page?: string;
10513
- /**
10514
- * The number of results per page
10515
- * @min 0
10516
- * @max 1000
10517
- */
10518
- limit?: number;
10519
- }, params?: RequestParams) => Promise<HttpResponse<List & {
10520
- items: ContentLocation[];
10521
- }, any>>;
10522
10557
  /**
10523
10558
  * @description Retrieves a page's metadata, content, and document structure from a space's current revision by its page ID. Use this when you know the exact page ID and need its content or path. For lookup by URL path, use the content/path endpoint instead.
10524
10559
  *
@@ -10565,56 +10600,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10565
10600
  */
10566
10601
  computed?: boolean;
10567
10602
  }, params?: RequestParams) => Promise<HttpResponse<RevisionPage, any>>;
10568
- /**
10569
- * @description Returns all content references (internal links, cross-space links, and external URLs) originating from the specified page. Use this to audit link health or detect broken references on a page.
10570
- *
10571
- * @tags space-content, links, critical
10572
- * @name ListPageLinksInSpace
10573
- * @summary List all outbound links from a specific page in a space
10574
- * @request GET:/spaces/{spaceId}/content/page/{pageId}/links
10575
- * @secure
10576
- */
10577
- listPageLinksInSpace: (spaceId: EntityId, pageId: EntityId, query?: {
10578
- /** Identifier of the page results to fetch. */
10579
- page?: string;
10580
- /**
10581
- * The number of results per page
10582
- * @min 0
10583
- * @max 1000
10584
- */
10585
- limit?: number;
10586
- /**
10587
- * Text to display to represent the reference. Possible values include:
10588
- * - `ok` - No problems detected for this content reference.
10589
- * - `broken` - The target does not exist in the revision.
10590
- * - `in-app` - The target is a URL link pointing to an internal location in the app.
10591
- */
10592
- status?: ContentReferenceStatus;
10593
- }, params?: RequestParams) => Promise<HttpResponse<List & {
10594
- stats: ContentReferencesStats;
10595
- items: ContentReferenceUsage[];
10596
- }, any>>;
10597
- /**
10598
- * @description Returns the content locations (pages and inline positions) within the space that contain links pointing to the specified page. Use this to understand a page's incoming references before moving, deleting, or renaming it.
10599
- *
10600
- * @tags space-content
10601
- * @name ListSpacePageBacklinks
10602
- * @summary List all pages in a space that link to a specific page
10603
- * @request GET:/spaces/{spaceId}/content/page/{pageId}/backlinks
10604
- * @secure
10605
- */
10606
- listSpacePageBacklinks: (spaceId: EntityId, pageId: EntityId, query?: {
10607
- /** Identifier of the page results to fetch. */
10608
- page?: string;
10609
- /**
10610
- * The number of results per page
10611
- * @min 0
10612
- * @max 1000
10613
- */
10614
- limit?: number;
10615
- }, params?: RequestParams) => Promise<HttpResponse<List & {
10616
- items: ContentLocation[];
10617
- }, any>>;
10618
10603
  /**
10619
10604
  * @description Returns structural navigation metadata for a page, including references to the previous page, next page, and parent page within the space's hierarchy. Use this to implement or inspect linear navigation flows in a docs site without fetching the full page tree.
10620
10605
  *
@@ -10672,7 +10657,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10672
10657
  computed?: boolean;
10673
10658
  }, params?: RequestParams) => Promise<HttpResponse<RevisionPageDocument | RevisionPageGroup, any>>;
10674
10659
  /**
10675
- * @description Retrieves a reusable content block (a shared snippet that can be embedded across multiple pages) from a space's current revision by its ID. Use this to read the content of a reusable block when you have its ID. To find which pages reference it, check the page backlinks endpoint.
10660
+ * @description Retrieves a reusable content block (a shared snippet that can be embedded across multiple pages) from a space's current revision by its ID. Use this to read the content of a reusable block when you have its ID.
10676
10661
  *
10677
10662
  * @tags space-content
10678
10663
  * @name GetReusableContentById
@@ -10821,8 +10806,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10821
10806
  /** Subject of the change request */
10822
10807
  subject?: ChangeRequestSubject;
10823
10808
  description?: JSONDocument;
10824
- /** External links associated with the change request. */
10825
- links?: ChangeRequestLinks;
10809
+ /**
10810
+ * External links associated with the change request.
10811
+ * @maxItems 10
10812
+ */
10813
+ links?: ChangeRequestLinkInput[];
10826
10814
  status?: "draft" | "open" | "archived";
10827
10815
  }, params?: RequestParams) => Promise<HttpResponse<ChangeRequest, any>>;
10828
10816
  /**
@@ -11013,42 +11001,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
11013
11001
  * @secure
11014
11002
  */
11015
11003
  deleteChangeRequestConversation: (spaceId: EntityId, changeRequestId: EntityId, conversationId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
11016
- /**
11017
- * @description Returns a paginated list of all outbound content references (links) across all pages in the change request. Use this to audit link health across the entire draft before merging.
11018
- *
11019
- * @tags change-requests-links, links, critical
11020
- * @name ListChangeRequestLinks
11021
- * @summary List all content references across an entire change request
11022
- * @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/links
11023
- * @secure
11024
- */
11025
- listChangeRequestLinks: (spaceId: EntityId, changeRequestId: EntityId, query?: {
11026
- /** Identifier of the page results to fetch. */
11027
- page?: string;
11028
- /**
11029
- * The number of results per page
11030
- * @min 0
11031
- * @max 1000
11032
- */
11033
- limit?: number;
11034
- /**
11035
- * Text to display to represent the reference. Possible values include:
11036
- * - `ok` - No problems detected for this content reference.
11037
- * - `broken` - The target does not exist in the revision.
11038
- * - `in-app` - The target is a URL link pointing to an internal location in the app.
11039
- */
11040
- status?: ContentReferenceStatus;
11041
- brokenContext?: "change-request" | "space";
11042
- }, params?: RequestParams) => Promise<HttpResponse<List & {
11043
- stats: ContentReferencesStats;
11044
- items: ContentReferenceUsage[];
11045
- }, {
11046
- error: {
11047
- /** @format int32 */
11048
- code: 404;
11049
- message: string;
11050
- };
11051
- }>>;
11052
11004
  /**
11053
11005
  * @description Returns a paginated list of comments posted on the change request, optionally filtered by status, target page, or author. Comments can be anchored to a specific page or be general change-request-level comments. Use this to read the review discussion before responding. To fetch replies to a comment, use the comment replies endpoint.
11054
11006
  *
@@ -11334,27 +11286,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
11334
11286
  */
11335
11287
  computed?: boolean;
11336
11288
  }, params?: RequestParams) => Promise<HttpResponse<RevisionFile, any>>;
11337
- /**
11338
- * @description Returns a paginated list of content locations (pages and inline positions) within the change request that link to or embed the specified file. Use this to find all usages of an asset before renaming or removing it.
11339
- *
11340
- * @tags change-request-content
11341
- * @name ListChangeRequestFileBacklinks
11342
- * @summary List all pages in a change request that reference a file
11343
- * @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/files/{fileId}/backlinks
11344
- * @secure
11345
- */
11346
- listChangeRequestFileBacklinks: (spaceId: EntityId, changeRequestId: EntityId, fileId: EntityId, query?: {
11347
- /** Identifier of the page results to fetch. */
11348
- page?: string;
11349
- /**
11350
- * The number of results per page
11351
- * @min 0
11352
- * @max 1000
11353
- */
11354
- limit?: number;
11355
- }, params?: RequestParams) => Promise<HttpResponse<List & {
11356
- items: ContentLocation[];
11357
- }, any>>;
11358
11289
  /**
11359
11290
  * @description Retrieves a specific page from a change request's draft content, including its title, metadata, and body document. Use the documentFormat parameter to control the format of the returned document (e.g., markdown). This reflects the draft state of the page, not the live published version — use the space content page endpoint for live content.
11360
11291
  *
@@ -11401,49 +11332,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
11401
11332
  */
11402
11333
  computed?: boolean;
11403
11334
  }, params?: RequestParams) => Promise<HttpResponse<RevisionPage, any>>;
11404
- /**
11405
- * @description Returns all outbound content references from a specific page within the change request, including their status (valid, broken) and usage context. Use this to audit link health on a draft page before merging. Also returns aggregate stats about broken vs healthy references on the page.
11406
- *
11407
- * @tags change-request-content, critical
11408
- * @name ListPageLinksInChangeRequest
11409
- * @summary List all content references (links) on a change request page
11410
- * @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}/links
11411
- * @secure
11412
- */
11413
- listPageLinksInChangeRequest: (spaceId: EntityId, changeRequestId: EntityId, pageId: EntityId, query?: {
11414
- /** Identifier of the page results to fetch. */
11415
- page?: string;
11416
- /**
11417
- * The number of results per page
11418
- * @min 0
11419
- * @max 1000
11420
- */
11421
- limit?: number;
11422
- }, params?: RequestParams) => Promise<HttpResponse<List & {
11423
- stats: ContentReferencesStats;
11424
- items: ContentReferenceUsage[];
11425
- }, any>>;
11426
- /**
11427
- * @description Returns a paginated list of content locations within the change request that contain links pointing to the specified page. Use this to check what pages would be affected by renaming or removing a page before applying the change.
11428
- *
11429
- * @tags change-request-content
11430
- * @name ListChangeRequestPageBacklinks
11431
- * @summary List all pages in a change request that link to a specific page
11432
- * @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}/backlinks
11433
- * @secure
11434
- */
11435
- listChangeRequestPageBacklinks: (spaceId: EntityId, changeRequestId: EntityId, pageId: EntityId, query?: {
11436
- /** Identifier of the page results to fetch. */
11437
- page?: string;
11438
- /**
11439
- * The number of results per page
11440
- * @min 0
11441
- * @max 1000
11442
- */
11443
- limit?: number;
11444
- }, params?: RequestParams) => Promise<HttpResponse<List & {
11445
- items: ContentLocation[];
11446
- }, any>>;
11447
11335
  /**
11448
11336
  * @description Returns the structural navigation links for a specific page within a change request, such as its parent page, previous sibling, and next sibling in the page tree. Use this to understand a page's position within the content hierarchy of the draft.
11449
11337
  *
@@ -12118,41 +12006,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
12118
12006
  /** Temporary URL to print the content. The URL will work for 1h. */
12119
12007
  url: URL;
12120
12008
  }, any>>;
12121
- /**
12122
- * @description Returns a paginated list of all internal and external links found in the space's content. Use this to audit link health across an entire space.
12123
- *
12124
- * @tags spaces, links, critical
12125
- * @name ListSpaceLinks
12126
- * @summary List all links in a space with their status and location
12127
- * @request GET:/spaces/{spaceId}/links
12128
- * @secure
12129
- */
12130
- listSpaceLinks: (spaceId: EntityId, query?: {
12131
- /** Identifier of the page results to fetch. */
12132
- page?: string;
12133
- /**
12134
- * The number of results per page
12135
- * @min 0
12136
- * @max 1000
12137
- */
12138
- limit?: number;
12139
- /**
12140
- * Text to display to represent the reference. Possible values include:
12141
- * - `ok` - No problems detected for this content reference.
12142
- * - `broken` - The target does not exist in the revision.
12143
- * - `in-app` - The target is a URL link pointing to an internal location in the app.
12144
- */
12145
- status?: ContentReferenceStatus;
12146
- }, params?: RequestParams) => Promise<HttpResponse<List & {
12147
- stats: ContentReferencesStats;
12148
- items: ContentReferenceUsage[];
12149
- }, {
12150
- error: {
12151
- /** @format int32 */
12152
- code: 404;
12153
- message: string;
12154
- };
12155
- }>>;
12156
12009
  };
12157
12010
  collections: {
12158
12011
  /**
@@ -13058,6 +12911,26 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
13058
12911
  message: string;
13059
12912
  };
13060
12913
  }>>;
12914
+ /**
12915
+ * @description Lists every styleguide (a space holding a team's writing styleguide) in the organization, along with every site that references each one. Styleguides that are not referenced by any site are still returned with an empty `sites` list.
12916
+ *
12917
+ * @tags organizations
12918
+ * @name ListOrganizationStyleguides
12919
+ * @summary List all styleguides in an organization
12920
+ * @request GET:/orgs/{organizationId}/styleguides
12921
+ * @secure
12922
+ */
12923
+ listOrganizationStyleguides: (organizationId: EntityId, params?: RequestParams) => Promise<HttpResponse<OrganizationStyleguides, any>>;
12924
+ /**
12925
+ * @description Lists the built-in styleguide starter templates that can seed a new styleguide, including the markdown content used to render each template's preview.
12926
+ *
12927
+ * @tags organizations
12928
+ * @name ListStyleguideTemplates
12929
+ * @summary List all built-in styleguide templates
12930
+ * @request GET:/orgs/{organizationId}/styleguide-templates
12931
+ * @secure
12932
+ */
12933
+ listStyleguideTemplates: (organizationId: EntityId, params?: RequestParams) => Promise<HttpResponse<StyleguideTemplates, any>>;
13061
12934
  /**
13062
12935
  * No description
13063
12936
  *
@@ -14025,6 +13898,22 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
14025
13898
  message: string;
14026
13899
  };
14027
13900
  }>>;
13901
+ /**
13902
+ * No description
13903
+ *
13904
+ * @tags openapi-versions
13905
+ * @name GetLatestOpenApiSpecVersionContentRaw
13906
+ * @summary Get the raw content of the latest OpenAPI spec version
13907
+ * @request GET:/orgs/{organizationId}/openapi/{specSlug}/versions/latest/content/raw
13908
+ * @secure
13909
+ */
13910
+ getLatestOpenApiSpecVersionContentRaw: (organizationId: EntityId, specSlug: string, params?: RequestParams) => Promise<HttpResponse<OpenAPISpecRawContent, {
13911
+ error: {
13912
+ /** @format int32 */
13913
+ code: 404;
13914
+ message: string;
13915
+ };
13916
+ }>>;
14028
13917
  /**
14029
13918
  * No description
14030
13919
  *
@@ -14465,8 +14354,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
14465
14354
  /** Basename for the site. For e.g. api */
14466
14355
  basename?: SiteBasename;
14467
14356
  adaptiveContent?: SiteAdaptiveContent;
14468
- /** Permissions resolution mode for the site. */
14469
- permissionsModel?: SitePermissionsModel;
14470
14357
  /** Default level for a piece of content */
14471
14358
  defaultLevel?: DefaultLevel;
14472
14359
  /** ID of the site-space to be used as the default at the root level. If site has sections, this will mark the default site space in the site's default section. */
@@ -15492,6 +15379,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
15492
15379
  message: string;
15493
15380
  };
15494
15381
  }>>;
15382
+ /**
15383
+ * @description Verifies the stored credentials of a context connection against the external service, without changing anything. A failed verification is reported in the response body with `success` set to `false` rather than as an HTTP error. Connectors that have nothing to verify report `success: true`.
15384
+ *
15385
+ * @tags site-context
15386
+ * @name TestSiteContextConnection
15387
+ * @summary Test a context connection's stored credentials
15388
+ * @request POST:/orgs/{organizationId}/sites/{siteId}/context-connections/{siteContextConnectionId}/test
15389
+ * @secure
15390
+ */
15391
+ testSiteContextConnection: (organizationId: EntityId, siteId: string, siteContextConnectionId: string, params?: RequestParams) => Promise<HttpResponse<ContextConnectionTestResult, any>>;
15495
15392
  /**
15496
15393
  * No description
15497
15394
  *