@gitbook/api 0.187.0 → 0.188.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 +584 -778
- package/dist/constants.d.ts +20 -23
- package/dist/index.cjs +102 -183
- package/dist/index.js +102 -177
- package/package.json +1 -1
- package/spec/openapi.json +1702 -2205
- package/spec/openapi.yaml +2265 -2529
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
|
-
* -
|
|
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
|
-
|
|
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,89 +915,6 @@ 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",
|
|
@@ -1096,9 +1071,11 @@ export declare enum ContentVisibility {
|
|
|
1096
1071
|
Private = "private"
|
|
1097
1072
|
}
|
|
1098
1073
|
/** Data passed through a realtime channel */
|
|
1099
|
-
export type APIChannelData = APIChannelGitSyncOperationData |
|
|
1074
|
+
export type APIChannelData = APIChannelGitSyncOperationData | APIChannelTranslationRunData | APIChannelImportRunData | APIChannelMutationData;
|
|
1100
1075
|
/** Channel to subscribe to for realtime updates. */
|
|
1101
|
-
export type APIChannel = APIChannelSpaceInfo | APIChannelSpaceContent | APIChannelSpaceGitInfo | APIChannelSpacePublishingAuth | APIChannelSpacePublishingCustomization |
|
|
1076
|
+
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;
|
|
1077
|
+
/** An absolute reference to content in GitBook. */
|
|
1078
|
+
export type ContentLocation = ContentLocationFile | ContentLocationURL | ContentLocationPage | ContentLocationUser | ContentLocationCollection | ContentLocationSpace | ContentLocationReusableContent | ContentLocationOpenAPI;
|
|
1102
1079
|
export type PublishedContentRedirect = {
|
|
1103
1080
|
/** Type of target for the redirect */
|
|
1104
1081
|
target: "application" | "content";
|
|
@@ -1143,8 +1120,6 @@ export type ChangeRequestContentChange = ({
|
|
|
1143
1120
|
} & ChangeRequestContentChangeDeletePage) | ({
|
|
1144
1121
|
operation: "revert_page";
|
|
1145
1122
|
} & ChangeRequestContentChangeRevertPage);
|
|
1146
|
-
/** An absolute reference to content in GitBook. */
|
|
1147
|
-
export type ContentLocation = ContentLocationFile | ContentLocationURL | ContentLocationPage | ContentLocationUser | ContentLocationCollection | ContentLocationSpace | ContentLocationReusableContent | ContentLocationOpenAPI;
|
|
1148
1123
|
export type Revision = RevisionTypeEdits | RevisionTypeMerge | RevisionTypeRollback | RevisionTypeUpdate | RevisionTypeComputed;
|
|
1149
1124
|
export type RevisionPage = RevisionPageDocument | RevisionPageGroup | RevisionPageLink | RevisionPageComputed;
|
|
1150
1125
|
export interface ApiInformation {
|
|
@@ -1173,6 +1148,21 @@ export interface User {
|
|
|
1173
1148
|
location: string;
|
|
1174
1149
|
};
|
|
1175
1150
|
}
|
|
1151
|
+
/** Identity of the token used to authenticate the request. */
|
|
1152
|
+
export interface UserTokenInfo {
|
|
1153
|
+
object: "user-token-info";
|
|
1154
|
+
/** The user ID the token belongs to. */
|
|
1155
|
+
userId: string;
|
|
1156
|
+
/** The type of token used to authenticate the request. */
|
|
1157
|
+
tokenType: "personal-api-token" | "oauth-token";
|
|
1158
|
+
/** The OAuth client the token was issued to. Only present for OAuth tokens. */
|
|
1159
|
+
oauthClient?: {
|
|
1160
|
+
/** The OAuth client ID. */
|
|
1161
|
+
id: string;
|
|
1162
|
+
/** The OAuth client name. */
|
|
1163
|
+
name: string;
|
|
1164
|
+
};
|
|
1165
|
+
}
|
|
1176
1166
|
export interface APITemporaryToken {
|
|
1177
1167
|
/** Temporary access token to authenticate with the API */
|
|
1178
1168
|
token: string;
|
|
@@ -2479,6 +2469,7 @@ export interface DocumentInlineButton {
|
|
|
2479
2469
|
data: {
|
|
2480
2470
|
label: string;
|
|
2481
2471
|
kind: "primary" | "secondary";
|
|
2472
|
+
size?: "small" | "medium" | "large";
|
|
2482
2473
|
/** Name of the icon */
|
|
2483
2474
|
icon?: Icon;
|
|
2484
2475
|
} & ({
|
|
@@ -2915,6 +2906,10 @@ export interface ChangeRequest {
|
|
|
2915
2906
|
createdBy: User;
|
|
2916
2907
|
createdAt: Timestamp;
|
|
2917
2908
|
updatedAt: Timestamp;
|
|
2909
|
+
/** User who merged the change request. Only present when the change request has been merged. */
|
|
2910
|
+
mergedBy?: User;
|
|
2911
|
+
/** Date at which the change request was merged. Only present when the change request has been merged. */
|
|
2912
|
+
mergedAt?: Timestamp;
|
|
2918
2913
|
/** ID of the space in which the change request was created. */
|
|
2919
2914
|
space: string;
|
|
2920
2915
|
/** ID of the active revision in the change request. */
|
|
@@ -2985,437 +2980,29 @@ export interface ApplySpaceTemplate {
|
|
|
2985
2980
|
/** Parameters for a space template */
|
|
2986
2981
|
params?: SpaceTemplateParams;
|
|
2987
2982
|
}
|
|
2988
|
-
/**
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
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;
|
|
3021
|
-
}
|
|
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
|
-
};
|
|
2983
|
+
/** An emoji reaction by one or many users */
|
|
2984
|
+
export interface EmojiReaction {
|
|
2985
|
+
/** The Emoji of the reaction */
|
|
2986
|
+
emoji: string;
|
|
2987
|
+
/** The number of users who reacted with this emoji */
|
|
2988
|
+
count: number;
|
|
2989
|
+
/** The users who reacted with this emoji */
|
|
2990
|
+
users: {
|
|
2991
|
+
user: User;
|
|
2992
|
+
reactedAt: Timestamp;
|
|
2993
|
+
}[];
|
|
3038
2994
|
}
|
|
3039
|
-
export
|
|
3040
|
-
|
|
2995
|
+
export type EmojiReactions = EmojiReaction[];
|
|
2996
|
+
/** Contributor towards content. */
|
|
2997
|
+
export interface UserContributor {
|
|
2998
|
+
updatedAt: Timestamp;
|
|
2999
|
+
count: number;
|
|
3000
|
+
user: User;
|
|
3041
3001
|
}
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
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;
|
|
3002
|
+
/** Details about the table cell this comment is attached to, if any. */
|
|
3003
|
+
export interface TableCellTarget {
|
|
3004
|
+
record: string;
|
|
3005
|
+
definition: string;
|
|
3419
3006
|
}
|
|
3420
3007
|
export type Comment = {
|
|
3421
3008
|
/** Type of Object, always equals to "comment" */
|
|
@@ -3940,13 +3527,212 @@ export interface IntegrationConfigurations {
|
|
|
3940
3527
|
site?: IntegrationConfiguration;
|
|
3941
3528
|
}
|
|
3942
3529
|
/**
|
|
3943
|
-
* External urls configured by the developer of the integration
|
|
3944
|
-
* @maxItems 5
|
|
3530
|
+
* External urls configured by the developer of the integration
|
|
3531
|
+
* @maxItems 5
|
|
3532
|
+
*/
|
|
3533
|
+
export type IntegrationExternalLinks = {
|
|
3534
|
+
url: URL;
|
|
3535
|
+
label: string;
|
|
3536
|
+
}[];
|
|
3537
|
+
/**
|
|
3538
|
+
* Name of the organization
|
|
3539
|
+
* @minLength 2
|
|
3540
|
+
* @maxLength 255
|
|
3541
|
+
* @pattern \S.*\S
|
|
3542
|
+
*/
|
|
3543
|
+
export type OrganizationTitle = string;
|
|
3544
|
+
export type OrganizationEmailDomains = string[];
|
|
3545
|
+
/**
|
|
3546
|
+
* Default hostname for the organization's public content, e.g. <org-hostname>.gitbook.io
|
|
3547
|
+
* @minLength 3
|
|
3548
|
+
* @maxLength 32
|
|
3549
|
+
*/
|
|
3550
|
+
export type OrganizationHostname = string;
|
|
3551
|
+
export interface SitePointer {
|
|
3552
|
+
type: "site";
|
|
3553
|
+
/** Unique identifier for the site */
|
|
3554
|
+
site: string;
|
|
3555
|
+
}
|
|
3556
|
+
/** The default content for the organization */
|
|
3557
|
+
export type OrganizationDefaultContent = SitePointer;
|
|
3558
|
+
/** Pricing pair for monthly and yearly intervals */
|
|
3559
|
+
export interface OrganizationPricePair {
|
|
3560
|
+
/**
|
|
3561
|
+
* Monthly price in USD
|
|
3562
|
+
* @min 0
|
|
3563
|
+
*/
|
|
3564
|
+
monthly: number;
|
|
3565
|
+
/**
|
|
3566
|
+
* Yearly price in USD (per month)
|
|
3567
|
+
* @min 0
|
|
3568
|
+
*/
|
|
3569
|
+
yearly: number;
|
|
3570
|
+
}
|
|
3571
|
+
/** Pricing information for an organization */
|
|
3572
|
+
export interface OrganizationPricing {
|
|
3573
|
+
/** Pricing for members (organization plan) */
|
|
3574
|
+
members: {
|
|
3575
|
+
/** Pricing pair for monthly and yearly intervals */
|
|
3576
|
+
plus_2024: OrganizationPricePair;
|
|
3577
|
+
/** Pricing pair for monthly and yearly intervals */
|
|
3578
|
+
pro_2024: OrganizationPricePair;
|
|
3579
|
+
};
|
|
3580
|
+
/** Pricing for site types (site plans) */
|
|
3581
|
+
sites: {
|
|
3582
|
+
/** Pricing pair for monthly and yearly intervals */
|
|
3583
|
+
premium: OrganizationPricePair;
|
|
3584
|
+
/** Pricing pair for monthly and yearly intervals */
|
|
3585
|
+
ultimate: OrganizationPricePair;
|
|
3586
|
+
};
|
|
3587
|
+
}
|
|
3588
|
+
export interface BillingMeterAddon {
|
|
3589
|
+
enabled: boolean;
|
|
3590
|
+
}
|
|
3591
|
+
export interface OrganizationBilling {
|
|
3592
|
+
/** Interval for a billing subscription */
|
|
3593
|
+
interval: BillingInterval;
|
|
3594
|
+
endDate: Timestamp | null;
|
|
3595
|
+
/** If true, we were unable to collect the last payment */
|
|
3596
|
+
hasPaymentFailed: boolean;
|
|
3597
|
+
/**
|
|
3598
|
+
* If true, organization can create a checkout session to subscribe/update billing.
|
|
3599
|
+
* If false, organization must resolve other billing issues before a checkout can be done.
|
|
3600
|
+
*/
|
|
3601
|
+
canCheckout: boolean;
|
|
3602
|
+
/** If true, the billing is set to cancel at the end of its current period */
|
|
3603
|
+
isScheduledToCancel: boolean;
|
|
3604
|
+
/** Pricing information for the organization */
|
|
3605
|
+
pricing: OrganizationPricing;
|
|
3606
|
+
/** Configuration for the usage-based addons */
|
|
3607
|
+
usageAddons: Record<string, BillingMeterAddon>;
|
|
3608
|
+
/** The minimum number of members allowed for this organization. */
|
|
3609
|
+
minUsers?: number;
|
|
3610
|
+
/** The maximum number of members allowed for this organization */
|
|
3611
|
+
maxUsers?: number;
|
|
3612
|
+
/** The minimum number of premium sites allowed for this organization. */
|
|
3613
|
+
minPremiumSites?: number;
|
|
3614
|
+
/** The maximum number of premium sites allowed for this organization. */
|
|
3615
|
+
maxPremiumSites?: number;
|
|
3616
|
+
/** The minimum number of ultimate sites allowed for this organization. */
|
|
3617
|
+
minUltimateSites?: number;
|
|
3618
|
+
/** The maximum number of ultimate sites allowed for this organization. */
|
|
3619
|
+
maxUltimateSites?: number;
|
|
3620
|
+
/** The number of paid members on the current subscription. */
|
|
3621
|
+
paidMembers?: number;
|
|
3622
|
+
/** The number of paid premium sites on the current subscription. */
|
|
3623
|
+
paidPremiumSites?: number;
|
|
3624
|
+
/** The number of paid ultimate sites on the current subscription. */
|
|
3625
|
+
paidUltimateSites?: number;
|
|
3626
|
+
/** Whether changing billing interval is allowed */
|
|
3627
|
+
canChangeInterval: boolean;
|
|
3628
|
+
/** Whether configuring SAML is allowed */
|
|
3629
|
+
canUseSAML: boolean;
|
|
3630
|
+
}
|
|
3631
|
+
/**
|
|
3632
|
+
* A short description giving context on the reason for the block.
|
|
3633
|
+
* @minLength 1
|
|
3634
|
+
* @maxLength 255
|
|
3945
3635
|
*/
|
|
3946
|
-
export type
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
-
|
|
3636
|
+
export type BlockReason = string;
|
|
3637
|
+
export interface Organization {
|
|
3638
|
+
/** Type of Object, always equals to "organization" */
|
|
3639
|
+
object: "organization";
|
|
3640
|
+
/** Unique identifier for the organization */
|
|
3641
|
+
id: string;
|
|
3642
|
+
/** Name of the organization */
|
|
3643
|
+
title: OrganizationTitle;
|
|
3644
|
+
createdAt: Timestamp;
|
|
3645
|
+
emailDomains: OrganizationEmailDomains;
|
|
3646
|
+
/** Default hostname for the organization's public content, e.g. <org-hostname>.gitbook.io */
|
|
3647
|
+
hostname?: OrganizationHostname;
|
|
3648
|
+
type: OrganizationType;
|
|
3649
|
+
useCase?: OrganizationUseCase;
|
|
3650
|
+
communityType?: OrganizationCommunityType;
|
|
3651
|
+
/** The role of a member in an organization, null for guests */
|
|
3652
|
+
defaultRole?: MemberRoleOrGuest;
|
|
3653
|
+
/** The default content for the organization */
|
|
3654
|
+
defaultContent?: OrganizationDefaultContent;
|
|
3655
|
+
/** Whether SSO is enforced organization-wide */
|
|
3656
|
+
sso?: boolean;
|
|
3657
|
+
/** If true, the organization is configured to use all our AI features. */
|
|
3658
|
+
ai?: boolean;
|
|
3659
|
+
/** If true, invite links are enabled for this organization. */
|
|
3660
|
+
inviteLinks: boolean;
|
|
3661
|
+
/** Name of the product */
|
|
3662
|
+
plan: BillingProduct;
|
|
3663
|
+
/** Billing details, only available for org members. */
|
|
3664
|
+
billing?: OrganizationBilling;
|
|
3665
|
+
mergeRules: MergeRulesStandaloneConfiguration;
|
|
3666
|
+
/** URLs associated with the object */
|
|
3667
|
+
urls: {
|
|
3668
|
+
/**
|
|
3669
|
+
* URL of the organization in the API
|
|
3670
|
+
* @format uri
|
|
3671
|
+
*/
|
|
3672
|
+
location: string;
|
|
3673
|
+
/**
|
|
3674
|
+
* URL of the organization in the application
|
|
3675
|
+
* @format uri
|
|
3676
|
+
*/
|
|
3677
|
+
app: string;
|
|
3678
|
+
/** URL of the logo of this organization, if defined. */
|
|
3679
|
+
logo?: URL;
|
|
3680
|
+
};
|
|
3681
|
+
trial: {
|
|
3682
|
+
/** - 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. */
|
|
3683
|
+
status: BillingTrialStatus;
|
|
3684
|
+
/** Number of trials the organization has consumed. */
|
|
3685
|
+
count: number;
|
|
3686
|
+
/** The trial's end date, if the organization has or had a trial. */
|
|
3687
|
+
endDate?: Timestamp;
|
|
3688
|
+
/** The decision taken by the user at the end of the trial */
|
|
3689
|
+
decision?: "downgrade";
|
|
3690
|
+
};
|
|
3691
|
+
/** Custom hostname linked to this organization */
|
|
3692
|
+
customHostname?: string;
|
|
3693
|
+
/** If the organization is blocked, information about the block will appear here */
|
|
3694
|
+
blocked?: {
|
|
3695
|
+
/** Source for an organization block */
|
|
3696
|
+
source?: BlockSource;
|
|
3697
|
+
/** A short description giving context on the reason for the block. */
|
|
3698
|
+
reason: BlockReason;
|
|
3699
|
+
};
|
|
3700
|
+
internal_billingMigration?: {
|
|
3701
|
+
/** When we will upgrade the organization onto new pricing, if they haven't already. */
|
|
3702
|
+
deadline?: Timestamp;
|
|
3703
|
+
/** A discount the organization may have received thanks to migrating early. */
|
|
3704
|
+
discountPercent?: number;
|
|
3705
|
+
/** The expiration date of the discount, after wich regular pricing resumes. */
|
|
3706
|
+
discountEndDate?: Timestamp;
|
|
3707
|
+
};
|
|
3708
|
+
/** The set of permissions for the organization */
|
|
3709
|
+
permissions: {
|
|
3710
|
+
/** Can the user view the organization. */
|
|
3711
|
+
view: boolean;
|
|
3712
|
+
/** Can the user view the organization in the application. */
|
|
3713
|
+
access: boolean;
|
|
3714
|
+
/** Can the user manage the title, members, etc. */
|
|
3715
|
+
admin: boolean;
|
|
3716
|
+
/** Is the user a team owner. */
|
|
3717
|
+
ownTeam: boolean;
|
|
3718
|
+
/** Can the user create new spaces/collections in the organization. */
|
|
3719
|
+
createContent: boolean;
|
|
3720
|
+
/** Can the user create new OpenAPI specifications. */
|
|
3721
|
+
createOpenAPISpec: boolean;
|
|
3722
|
+
/** Can the user view the billing details of the organization. */
|
|
3723
|
+
viewBilling: boolean;
|
|
3724
|
+
/** Can the user list the members of the organization. */
|
|
3725
|
+
listMembers: boolean;
|
|
3726
|
+
/** Can the user list the teams in the organization. */
|
|
3727
|
+
listTeams: boolean;
|
|
3728
|
+
/** Can the user list the integrations in the organization. */
|
|
3729
|
+
listIntegrations: boolean;
|
|
3730
|
+
/** Can the user list the integration installations in the organization. */
|
|
3731
|
+
listInstallations: boolean;
|
|
3732
|
+
/** Can the user install integrations in the organization. */
|
|
3733
|
+
installIntegration: boolean;
|
|
3734
|
+
};
|
|
3735
|
+
}
|
|
3950
3736
|
/**
|
|
3951
3737
|
* Security policy to validate the content of the integrations scripts and Contentkit. Will be sent as
|
|
3952
3738
|
* headers when processing the script fetch event and the blocks fetch events.
|
|
@@ -4065,6 +3851,57 @@ export type SpaceIntegrationBlocks = {
|
|
|
4065
3851
|
name: string;
|
|
4066
3852
|
blocks: IntegrationBlock[];
|
|
4067
3853
|
}[];
|
|
3854
|
+
/**
|
|
3855
|
+
* Title of the collection
|
|
3856
|
+
* @maxLength 50
|
|
3857
|
+
*/
|
|
3858
|
+
export type CollectionTitle = string;
|
|
3859
|
+
/**
|
|
3860
|
+
* Description of the collection
|
|
3861
|
+
* @minLength 0
|
|
3862
|
+
* @maxLength 100
|
|
3863
|
+
*/
|
|
3864
|
+
export type CollectionDescription = string;
|
|
3865
|
+
export interface Collection {
|
|
3866
|
+
/** Type of Object, always equals to "collection" */
|
|
3867
|
+
object: "collection";
|
|
3868
|
+
/** Unique identifier for the collection */
|
|
3869
|
+
id: string;
|
|
3870
|
+
/** Title of the collection */
|
|
3871
|
+
title: CollectionTitle;
|
|
3872
|
+
/** Description of the collection */
|
|
3873
|
+
description?: CollectionDescription;
|
|
3874
|
+
/** ID of the organization owning this collection */
|
|
3875
|
+
organization: string;
|
|
3876
|
+
/** ID of the parent collection, if any */
|
|
3877
|
+
parent?: string;
|
|
3878
|
+
/** Default level for a piece of content */
|
|
3879
|
+
defaultLevel: DefaultLevel;
|
|
3880
|
+
/** URLs associated with the object */
|
|
3881
|
+
urls: {
|
|
3882
|
+
/**
|
|
3883
|
+
* URL of the collection in the API
|
|
3884
|
+
* @format uri
|
|
3885
|
+
*/
|
|
3886
|
+
location: string;
|
|
3887
|
+
/**
|
|
3888
|
+
* URL of the collection in the application
|
|
3889
|
+
* @format uri
|
|
3890
|
+
*/
|
|
3891
|
+
app: string;
|
|
3892
|
+
};
|
|
3893
|
+
/** The set of permissions for the collection */
|
|
3894
|
+
permissions: {
|
|
3895
|
+
/** Can the user view the collection. */
|
|
3896
|
+
view: boolean;
|
|
3897
|
+
/** Can the user edit the title/description. */
|
|
3898
|
+
admin: boolean;
|
|
3899
|
+
/** Can the user view the invite links of the collection. */
|
|
3900
|
+
viewInviteLinks: boolean;
|
|
3901
|
+
/** Can the user create spaces/collections in this collection. */
|
|
3902
|
+
create: boolean;
|
|
3903
|
+
};
|
|
3904
|
+
}
|
|
4068
3905
|
/** Secrets stored on the integration and passed at runtime. */
|
|
4069
3906
|
export type IntegrationSecrets = Record<string, string>;
|
|
4070
3907
|
export interface PublishIntegration {
|
|
@@ -4636,8 +4473,6 @@ export interface Site {
|
|
|
4636
4473
|
* * `visitor-auth`: Anyone authenticated through a JWT token can access the site.
|
|
4637
4474
|
*/
|
|
4638
4475
|
visibility: SiteVisibility;
|
|
4639
|
-
/** Permissions resolution mode for the site. */
|
|
4640
|
-
permissionsModel: SitePermissionsModel;
|
|
4641
4476
|
/** Default level for a piece of content */
|
|
4642
4477
|
defaultLevel: DefaultLevel;
|
|
4643
4478
|
/** The set of permissions for the site. */
|
|
@@ -5731,6 +5566,72 @@ export interface SearchAIAnswerStream {
|
|
|
5731
5566
|
/** Answer from AI for a question asked on a content. */
|
|
5732
5567
|
answer: SearchAIAnswer;
|
|
5733
5568
|
}
|
|
5569
|
+
/**
|
|
5570
|
+
* Slug used as reference
|
|
5571
|
+
* @minLength 1
|
|
5572
|
+
* @maxLength 100
|
|
5573
|
+
* @pattern ^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$
|
|
5574
|
+
*/
|
|
5575
|
+
export type OpenAPISpecSlug = string;
|
|
5576
|
+
/** OpenAPI error object. */
|
|
5577
|
+
export interface OpenAPIErrorObject {
|
|
5578
|
+
/** Description of the error. */
|
|
5579
|
+
message: string;
|
|
5580
|
+
/** Unique code of the error. */
|
|
5581
|
+
code?: string;
|
|
5582
|
+
}
|
|
5583
|
+
export interface OpenAPISpec {
|
|
5584
|
+
/** The object type, which is always "openapi-spec" */
|
|
5585
|
+
object: "openapi-spec";
|
|
5586
|
+
/** Unique identifier */
|
|
5587
|
+
id: string;
|
|
5588
|
+
/** Date of creation */
|
|
5589
|
+
createdAt: Timestamp;
|
|
5590
|
+
/** Date of the last update */
|
|
5591
|
+
updatedAt: Timestamp;
|
|
5592
|
+
/** Slug used as reference */
|
|
5593
|
+
slug: OpenAPISpecSlug;
|
|
5594
|
+
sourceURL?: URL;
|
|
5595
|
+
/** Processing state */
|
|
5596
|
+
processingState: OpenAPISpecProcessingState;
|
|
5597
|
+
/**
|
|
5598
|
+
* The visibility setting of the OpenAPI spec.
|
|
5599
|
+
* * `private`: The spec is not publicly available.
|
|
5600
|
+
* * `public`: The spec is available to anyone with a public link.
|
|
5601
|
+
*/
|
|
5602
|
+
visibility?: OpenAPISpecVisibility;
|
|
5603
|
+
/** ID of the latest version of the OpenAPI specification */
|
|
5604
|
+
lastVersion?: string;
|
|
5605
|
+
/** Date of the last processing */
|
|
5606
|
+
lastProcessedAt?: Timestamp;
|
|
5607
|
+
/** OpenAPI processing error code */
|
|
5608
|
+
lastProcessErrorCode?: OpenAPISpecProcessingErrorCode;
|
|
5609
|
+
lastProcessedErrors?: OpenAPIErrorObject[];
|
|
5610
|
+
/**
|
|
5611
|
+
* Total number of processing errors before truncation of lastProcessedErrors.
|
|
5612
|
+
* @min 0
|
|
5613
|
+
*/
|
|
5614
|
+
lastProcessedErrorCount: number;
|
|
5615
|
+
/** The set of permissions for the OpenAPI specification. */
|
|
5616
|
+
permissions: {
|
|
5617
|
+
/** Can the user view the specification. */
|
|
5618
|
+
view: boolean;
|
|
5619
|
+
/** Can the user edit the specification. */
|
|
5620
|
+
edit: boolean;
|
|
5621
|
+
};
|
|
5622
|
+
/** URLs associated with the object */
|
|
5623
|
+
urls: {
|
|
5624
|
+
/** URL of the OpenAPI specification in the API */
|
|
5625
|
+
location: URL;
|
|
5626
|
+
/** URL of the OpenAPI specification in the application */
|
|
5627
|
+
app: URL;
|
|
5628
|
+
/**
|
|
5629
|
+
* URL of the published spec. Only defined when visibility is "published."
|
|
5630
|
+
* @format uri
|
|
5631
|
+
*/
|
|
5632
|
+
published?: string;
|
|
5633
|
+
};
|
|
5634
|
+
}
|
|
5734
5635
|
/** Create a specification from an URL */
|
|
5735
5636
|
export type OpenAPISpecSource = {
|
|
5736
5637
|
url: URL;
|
|
@@ -5767,6 +5668,13 @@ export interface OpenAPISpecContent {
|
|
|
5767
5668
|
public: null | URL;
|
|
5768
5669
|
};
|
|
5769
5670
|
}
|
|
5671
|
+
/** Raw original content of the specification entrypoint file. */
|
|
5672
|
+
export interface OpenAPISpecRawContent {
|
|
5673
|
+
/** Raw specification text, exactly as submitted. */
|
|
5674
|
+
text: string;
|
|
5675
|
+
/** Format of the raw specification text. */
|
|
5676
|
+
format: "json" | "yaml";
|
|
5677
|
+
}
|
|
5770
5678
|
export interface OrganizationAgentInstructions {
|
|
5771
5679
|
object: "agent-instructions";
|
|
5772
5680
|
/** Document containing the Docs agent instructions. */
|
|
@@ -6519,7 +6427,7 @@ export interface SiteInsightsSession {
|
|
|
6519
6427
|
sessionId: string;
|
|
6520
6428
|
}
|
|
6521
6429
|
/** 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";
|
|
6430
|
+
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" | "builtin:jira";
|
|
6523
6431
|
/**
|
|
6524
6432
|
* Title for the context record
|
|
6525
6433
|
* @minLength 1
|
|
@@ -6594,8 +6502,8 @@ export interface SiteScan {
|
|
|
6594
6502
|
id: string;
|
|
6595
6503
|
/** Status of a persisted site scan. */
|
|
6596
6504
|
status: SiteScanStatus;
|
|
6597
|
-
/** The site topic ID associated with the scan */
|
|
6598
|
-
topic: string;
|
|
6505
|
+
/** The site topic ID associated with the scan. It is null for scans that are not associated with a current topic in the site. */
|
|
6506
|
+
topic: string | null;
|
|
6599
6507
|
createdAt: Timestamp;
|
|
6600
6508
|
startedAt?: Timestamp;
|
|
6601
6509
|
finishedAt?: Timestamp;
|
|
@@ -6623,8 +6531,8 @@ export interface SiteFinding {
|
|
|
6623
6531
|
id: string;
|
|
6624
6532
|
/** The site scan ID associated with the finding */
|
|
6625
6533
|
scan: string;
|
|
6626
|
-
/** The site topic ID associated with the finding */
|
|
6627
|
-
topic: string;
|
|
6534
|
+
/** The site topic ID associated with the finding. It is null for findings that are not associated with a current topic in the site. */
|
|
6535
|
+
topic: string | null;
|
|
6628
6536
|
/** Short finding title */
|
|
6629
6537
|
title: SiteFindingTitle;
|
|
6630
6538
|
/** Number of change requests linked to the finding */
|
|
@@ -6645,8 +6553,8 @@ export interface SiteFinding {
|
|
|
6645
6553
|
status: SiteFindingStatus;
|
|
6646
6554
|
/**
|
|
6647
6555
|
* 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
|
-
* -
|
|
6556
|
+
* - Outdated content: The content was correct but is no longer up to date with external context and may be misleading or incorrect.
|
|
6557
|
+
* - Incorrect content: The content is factually wrong or misleading, leading users astray regardless of whether it was ever correct.
|
|
6650
6558
|
* - Content gap: The content is missing important information that should be present to answer user questions effectively.
|
|
6651
6559
|
* - Other: Any other type of finding not covered by the above categories.
|
|
6652
6560
|
*/
|
|
@@ -6769,6 +6677,8 @@ export interface ContextUsageSettings {
|
|
|
6769
6677
|
changeRequests: boolean;
|
|
6770
6678
|
/** Whether to expose records in search results */
|
|
6771
6679
|
search: boolean;
|
|
6680
|
+
/** Whether the connection syncs GitBook change-request state outward to the connected external system (outbound write). Requires a write-capable token or role. */
|
|
6681
|
+
sync?: boolean;
|
|
6772
6682
|
/** Relative score adjustment applied to records from a connection when searching. */
|
|
6773
6683
|
searchBoost: ContextSearchBoost;
|
|
6774
6684
|
}
|
|
@@ -6847,6 +6757,32 @@ export type ContextConnectorSetup = {
|
|
|
6847
6757
|
/** @minLength 1 */
|
|
6848
6758
|
token: string;
|
|
6849
6759
|
};
|
|
6760
|
+
} | {
|
|
6761
|
+
connector: "builtin:jira";
|
|
6762
|
+
setupSettings: {
|
|
6763
|
+
/**
|
|
6764
|
+
* Base URL of the Jira Cloud site, e.g. https://your-team.atlassian.net.
|
|
6765
|
+
* @format uri
|
|
6766
|
+
* @minLength 1
|
|
6767
|
+
* @maxLength 2048
|
|
6768
|
+
*/
|
|
6769
|
+
baseUrl: string;
|
|
6770
|
+
/**
|
|
6771
|
+
* Email of the Atlassian account whose API token is used.
|
|
6772
|
+
* @format email
|
|
6773
|
+
* @minLength 1
|
|
6774
|
+
* @maxLength 254
|
|
6775
|
+
*/
|
|
6776
|
+
apiEmail: string;
|
|
6777
|
+
/**
|
|
6778
|
+
* Atlassian API token used for outbound writes. Redacted when read back.
|
|
6779
|
+
* @minLength 1
|
|
6780
|
+
* @maxLength 1024
|
|
6781
|
+
*/
|
|
6782
|
+
apiToken: string;
|
|
6783
|
+
/** 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. */
|
|
6784
|
+
statusMapping?: Record<ChangeRequestStatus, string>;
|
|
6785
|
+
};
|
|
6850
6786
|
};
|
|
6851
6787
|
export type ContextConnection = {
|
|
6852
6788
|
object: "context-connection";
|
|
@@ -6881,6 +6817,13 @@ export type ContextConnection = {
|
|
|
6881
6817
|
location: string;
|
|
6882
6818
|
};
|
|
6883
6819
|
} & ContextConnectorSetup;
|
|
6820
|
+
export interface ContextConnectionTestResult {
|
|
6821
|
+
object: "context-connection-test-result";
|
|
6822
|
+
/** Whether the stored credentials authenticated successfully. */
|
|
6823
|
+
success: boolean;
|
|
6824
|
+
/** A human-readable reason for the failure, when the test failed. */
|
|
6825
|
+
error?: string;
|
|
6826
|
+
}
|
|
6884
6827
|
export interface SiteTopicUsageSettings {
|
|
6885
6828
|
/** Whether to use context to propose change requests */
|
|
6886
6829
|
changeRequests: boolean;
|
|
@@ -7265,6 +7208,15 @@ export interface AIToolCallReplyToComment {
|
|
|
7265
7208
|
/** The ID of the reply being posted. */
|
|
7266
7209
|
replyId: string;
|
|
7267
7210
|
}
|
|
7211
|
+
export interface AIToolCallGetComments {
|
|
7212
|
+
tool: "getComments";
|
|
7213
|
+
/** The ID of the space the comments were read from. */
|
|
7214
|
+
spaceId: string;
|
|
7215
|
+
/** The ID of the comment that was read, when a single comment was requested by URL or ID. */
|
|
7216
|
+
commentId?: string;
|
|
7217
|
+
/** The number of comments that were read. */
|
|
7218
|
+
count?: number;
|
|
7219
|
+
}
|
|
7268
7220
|
export interface AIToolCallSubmitChangeRequestReview {
|
|
7269
7221
|
tool: "submitChangeRequestReview";
|
|
7270
7222
|
/** The ID of the space where the review was submitted. */
|
|
@@ -7301,7 +7253,7 @@ export interface AIToolCallOther {
|
|
|
7301
7253
|
/** Summary of a generic tool call. */
|
|
7302
7254
|
summary: AIToolCallOtherSummary;
|
|
7303
7255
|
}
|
|
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;
|
|
7256
|
+
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
7257
|
export interface Timerange {
|
|
7306
7258
|
start: Timestamp;
|
|
7307
7259
|
end: Timestamp;
|
|
@@ -7763,8 +7715,8 @@ export type SiteInsightsEventAgentFeedback = SiteInsightsEventBase & {
|
|
|
7763
7715
|
content: string;
|
|
7764
7716
|
/**
|
|
7765
7717
|
* 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
|
-
* -
|
|
7718
|
+
* - Outdated content: The content was correct but is no longer up to date with external context and may be misleading or incorrect.
|
|
7719
|
+
* - Incorrect content: The content is factually wrong or misleading, leading users astray regardless of whether it was ever correct.
|
|
7768
7720
|
* - Content gap: The content is missing important information that should be present to answer user questions effectively.
|
|
7769
7721
|
* - Other: Any other type of finding not covered by the above categories.
|
|
7770
7722
|
*/
|
|
@@ -8590,6 +8542,69 @@ export interface UpdateContentPublishingAuth {
|
|
|
8590
8542
|
*/
|
|
8591
8543
|
fallbackURL?: string;
|
|
8592
8544
|
}
|
|
8545
|
+
export interface ContentLocationRevisionContext {
|
|
8546
|
+
type: "revision";
|
|
8547
|
+
revision: Revision;
|
|
8548
|
+
}
|
|
8549
|
+
export interface ContentLocationChangeRequestContext {
|
|
8550
|
+
type: "changeRequest";
|
|
8551
|
+
changeRequest: ChangeRequest;
|
|
8552
|
+
}
|
|
8553
|
+
export interface ContentLocationFile {
|
|
8554
|
+
kind: "file";
|
|
8555
|
+
organization: Organization;
|
|
8556
|
+
space: Space;
|
|
8557
|
+
versionContext?: ContentLocationRevisionContext | ContentLocationChangeRequestContext;
|
|
8558
|
+
file: RevisionFile;
|
|
8559
|
+
}
|
|
8560
|
+
export interface ContentLocationURL {
|
|
8561
|
+
kind: "url";
|
|
8562
|
+
url: string;
|
|
8563
|
+
}
|
|
8564
|
+
export interface ContentLocationPageAnchor {
|
|
8565
|
+
type: "anchor";
|
|
8566
|
+
/** The anchor within the page. */
|
|
8567
|
+
anchor: string;
|
|
8568
|
+
}
|
|
8569
|
+
export interface ContentLocationPageNode {
|
|
8570
|
+
type: "node";
|
|
8571
|
+
/** The node id within the page. */
|
|
8572
|
+
node: string;
|
|
8573
|
+
}
|
|
8574
|
+
export interface ContentLocationPage {
|
|
8575
|
+
kind: "page";
|
|
8576
|
+
organization: Organization;
|
|
8577
|
+
page: RevisionPage;
|
|
8578
|
+
space: Space;
|
|
8579
|
+
versionContext?: ContentLocationRevisionContext | ContentLocationChangeRequestContext;
|
|
8580
|
+
internalLocation?: ContentLocationPageAnchor | ContentLocationPageNode;
|
|
8581
|
+
}
|
|
8582
|
+
export interface ContentLocationUser {
|
|
8583
|
+
kind: "user";
|
|
8584
|
+
user: User;
|
|
8585
|
+
}
|
|
8586
|
+
export interface ContentLocationCollection {
|
|
8587
|
+
kind: "collection";
|
|
8588
|
+
organization: Organization;
|
|
8589
|
+
collection: Collection;
|
|
8590
|
+
}
|
|
8591
|
+
export interface ContentLocationSpace {
|
|
8592
|
+
kind: "space";
|
|
8593
|
+
organization: Organization;
|
|
8594
|
+
space: Space;
|
|
8595
|
+
}
|
|
8596
|
+
export interface ContentLocationReusableContent {
|
|
8597
|
+
kind: "reusable-content";
|
|
8598
|
+
organization: Organization;
|
|
8599
|
+
space: Space;
|
|
8600
|
+
versionContext?: ContentLocationRevisionContext | ContentLocationChangeRequestContext;
|
|
8601
|
+
reusableContent: RevisionReusableContent;
|
|
8602
|
+
}
|
|
8603
|
+
export interface ContentLocationOpenAPI {
|
|
8604
|
+
kind: "openapi";
|
|
8605
|
+
organization: Organization;
|
|
8606
|
+
openAPISpec: OpenAPISpec;
|
|
8607
|
+
}
|
|
8593
8608
|
export interface SpaceTemplate {
|
|
8594
8609
|
id: string;
|
|
8595
8610
|
contentId: string;
|
|
@@ -9442,10 +9457,6 @@ export interface APIChannelSpacePublishingCustomization {
|
|
|
9442
9457
|
channel: "space-publishing-customization";
|
|
9443
9458
|
space: string;
|
|
9444
9459
|
}
|
|
9445
|
-
export interface APIChannelSpaceContentRefs {
|
|
9446
|
-
channel: "space-content-refs";
|
|
9447
|
-
space: string;
|
|
9448
|
-
}
|
|
9449
9460
|
export interface APIChannelSpaceIntegrations {
|
|
9450
9461
|
channel: "space-integrations";
|
|
9451
9462
|
space: string;
|
|
@@ -9476,11 +9487,6 @@ export interface APIChannelChangeRequestReviews {
|
|
|
9476
9487
|
space: string;
|
|
9477
9488
|
changeRequest: string;
|
|
9478
9489
|
}
|
|
9479
|
-
export interface APIChannelChangeRequestContentRefs {
|
|
9480
|
-
channel: "space-change-request-content-refs";
|
|
9481
|
-
space: string;
|
|
9482
|
-
changeRequest: string;
|
|
9483
|
-
}
|
|
9484
9490
|
export interface APIChannelCollection {
|
|
9485
9491
|
channel: "collection";
|
|
9486
9492
|
collection: string;
|
|
@@ -9769,24 +9775,6 @@ export interface APIChannelGitSyncOperationData {
|
|
|
9769
9775
|
channel: "space-gitsync-operation";
|
|
9770
9776
|
data: GitSyncOperation;
|
|
9771
9777
|
}
|
|
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
9778
|
export interface APIChannelMutationData {
|
|
9791
9779
|
channel: "*";
|
|
9792
9780
|
/** Data passed on the channels associated to API endpoints. */
|
|
@@ -10498,27 +10486,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10498
10486
|
*/
|
|
10499
10487
|
computed?: boolean;
|
|
10500
10488
|
}, 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
10489
|
/**
|
|
10523
10490
|
* @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
10491
|
*
|
|
@@ -10565,56 +10532,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10565
10532
|
*/
|
|
10566
10533
|
computed?: boolean;
|
|
10567
10534
|
}, 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
10535
|
/**
|
|
10619
10536
|
* @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
10537
|
*
|
|
@@ -10672,7 +10589,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10672
10589
|
computed?: boolean;
|
|
10673
10590
|
}, params?: RequestParams) => Promise<HttpResponse<RevisionPageDocument | RevisionPageGroup, any>>;
|
|
10674
10591
|
/**
|
|
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.
|
|
10592
|
+
* @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
10593
|
*
|
|
10677
10594
|
* @tags space-content
|
|
10678
10595
|
* @name GetReusableContentById
|
|
@@ -11013,42 +10930,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11013
10930
|
* @secure
|
|
11014
10931
|
*/
|
|
11015
10932
|
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
10933
|
/**
|
|
11053
10934
|
* @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
10935
|
*
|
|
@@ -11334,27 +11215,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11334
11215
|
*/
|
|
11335
11216
|
computed?: boolean;
|
|
11336
11217
|
}, 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
11218
|
/**
|
|
11359
11219
|
* @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
11220
|
*
|
|
@@ -11401,49 +11261,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11401
11261
|
*/
|
|
11402
11262
|
computed?: boolean;
|
|
11403
11263
|
}, 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
11264
|
/**
|
|
11448
11265
|
* @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
11266
|
*
|
|
@@ -12118,41 +11935,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
12118
11935
|
/** Temporary URL to print the content. The URL will work for 1h. */
|
|
12119
11936
|
url: URL;
|
|
12120
11937
|
}, 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
11938
|
};
|
|
12157
11939
|
collections: {
|
|
12158
11940
|
/**
|
|
@@ -14025,6 +13807,22 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14025
13807
|
message: string;
|
|
14026
13808
|
};
|
|
14027
13809
|
}>>;
|
|
13810
|
+
/**
|
|
13811
|
+
* No description
|
|
13812
|
+
*
|
|
13813
|
+
* @tags openapi-versions
|
|
13814
|
+
* @name GetLatestOpenApiSpecVersionContentRaw
|
|
13815
|
+
* @summary Get the raw content of the latest OpenAPI spec version
|
|
13816
|
+
* @request GET:/orgs/{organizationId}/openapi/{specSlug}/versions/latest/content/raw
|
|
13817
|
+
* @secure
|
|
13818
|
+
*/
|
|
13819
|
+
getLatestOpenApiSpecVersionContentRaw: (organizationId: EntityId, specSlug: string, params?: RequestParams) => Promise<HttpResponse<OpenAPISpecRawContent, {
|
|
13820
|
+
error: {
|
|
13821
|
+
/** @format int32 */
|
|
13822
|
+
code: 404;
|
|
13823
|
+
message: string;
|
|
13824
|
+
};
|
|
13825
|
+
}>>;
|
|
14028
13826
|
/**
|
|
14029
13827
|
* No description
|
|
14030
13828
|
*
|
|
@@ -14465,8 +14263,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14465
14263
|
/** Basename for the site. For e.g. api */
|
|
14466
14264
|
basename?: SiteBasename;
|
|
14467
14265
|
adaptiveContent?: SiteAdaptiveContent;
|
|
14468
|
-
/** Permissions resolution mode for the site. */
|
|
14469
|
-
permissionsModel?: SitePermissionsModel;
|
|
14470
14266
|
/** Default level for a piece of content */
|
|
14471
14267
|
defaultLevel?: DefaultLevel;
|
|
14472
14268
|
/** 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 +15288,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
15492
15288
|
message: string;
|
|
15493
15289
|
};
|
|
15494
15290
|
}>>;
|
|
15291
|
+
/**
|
|
15292
|
+
* @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`.
|
|
15293
|
+
*
|
|
15294
|
+
* @tags site-context
|
|
15295
|
+
* @name TestSiteContextConnection
|
|
15296
|
+
* @summary Test a context connection's stored credentials
|
|
15297
|
+
* @request POST:/orgs/{organizationId}/sites/{siteId}/context-connections/{siteContextConnectionId}/test
|
|
15298
|
+
* @secure
|
|
15299
|
+
*/
|
|
15300
|
+
testSiteContextConnection: (organizationId: EntityId, siteId: string, siteContextConnectionId: string, params?: RequestParams) => Promise<HttpResponse<ContextConnectionTestResult, any>>;
|
|
15495
15301
|
/**
|
|
15496
15302
|
* No description
|
|
15497
15303
|
*
|