@gitbook/api 0.186.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 +1084 -1140
- package/dist/constants.d.ts +24 -25
- package/dist/index.cjs +115 -192
- package/dist/index.js +113 -186
- package/package.json +1 -1
- package/spec/openapi.json +3862 -2686
- package/spec/openapi.yaml +2646 -2045
package/dist/client.d.ts
CHANGED
|
@@ -219,6 +219,7 @@ export declare enum SiteInsightsEventType {
|
|
|
219
219
|
SearchOpenResult = "search_open_result",
|
|
220
220
|
PagePostFeedback = "page_post_feedback",
|
|
221
221
|
PagePostFeedbackComment = "page_post_feedback_comment",
|
|
222
|
+
AgentFeedback = "agent_feedback",
|
|
222
223
|
AskQuestion = "ask_question",
|
|
223
224
|
AskView = "ask_view",
|
|
224
225
|
AskRateResponse = "ask_rate_response",
|
|
@@ -349,19 +350,26 @@ export declare enum SiteFindingSeverity {
|
|
|
349
350
|
}
|
|
350
351
|
/**
|
|
351
352
|
* Classification of a site finding:
|
|
352
|
-
* - Outdated content: The content is no longer up to date with external context and may be misleading or incorrect.
|
|
353
|
-
* -
|
|
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.
|
|
354
355
|
* - Content gap: The content is missing important information that should be present to answer user questions effectively.
|
|
355
356
|
* - Other: Any other type of finding not covered by the above categories.
|
|
356
357
|
*/
|
|
357
358
|
export declare enum SiteFindingType {
|
|
358
359
|
ContentOutdated = "content-outdated",
|
|
359
|
-
|
|
360
|
+
ContentIncorrect = "content-incorrect",
|
|
360
361
|
ContentGap = "content-gap",
|
|
361
362
|
Other = "other"
|
|
362
363
|
}
|
|
363
|
-
/**
|
|
364
|
+
/**
|
|
365
|
+
* Status of a site finding.
|
|
366
|
+
* - `candidate` is a finding that has been raised but not yet confirmed. Typically these are not shown to users.
|
|
367
|
+
* - `open` is a finding that has been surfaced to users and is still under investigation.
|
|
368
|
+
* - `done` is a finding that has been resolved and is no longer under investigation.
|
|
369
|
+
* - `canceled` is a finding that has been canceled and is no longer under investigation.
|
|
370
|
+
*/
|
|
364
371
|
export declare enum SiteFindingStatus {
|
|
372
|
+
Candidate = "candidate",
|
|
365
373
|
Open = "open",
|
|
366
374
|
Done = "done",
|
|
367
375
|
Canceled = "canceled"
|
|
@@ -634,6 +642,18 @@ export declare enum TranslationStatus {
|
|
|
634
642
|
Running = "running",
|
|
635
643
|
Completed = "completed"
|
|
636
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
|
+
}
|
|
637
657
|
/**
|
|
638
658
|
* Status of the provider.
|
|
639
659
|
* - `active`: The provider is active and can be used to authenticate users.
|
|
@@ -737,11 +757,6 @@ export declare enum SiteAdsTopic {
|
|
|
737
757
|
Webdev = "webdev",
|
|
738
758
|
Crypto = "crypto"
|
|
739
759
|
}
|
|
740
|
-
/** Permissions resolution mode for the site. */
|
|
741
|
-
export declare enum SitePermissionsModel {
|
|
742
|
-
Legacy = "legacy",
|
|
743
|
-
Site = "site"
|
|
744
|
-
}
|
|
745
760
|
/**
|
|
746
761
|
* The visibility setting of the site determines the audience of the site.
|
|
747
762
|
* * `public`: Anyone can access the site, and the site is indexed by search engines.
|
|
@@ -784,6 +799,57 @@ export declare enum IntegrationInstallationStatus {
|
|
|
784
799
|
Pending = "pending",
|
|
785
800
|
Paused = "paused"
|
|
786
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
|
+
}
|
|
787
853
|
export declare enum IntegrationCategory {
|
|
788
854
|
Analytics = "analytics",
|
|
789
855
|
Collaboration = "collaboration",
|
|
@@ -849,89 +915,6 @@ export declare enum ChangeRequestOrderBy {
|
|
|
849
915
|
UpdatedAt = "updatedAt",
|
|
850
916
|
CreatedAt = "createdAt"
|
|
851
917
|
}
|
|
852
|
-
/**
|
|
853
|
-
* Indicator of the relationship with the content ref target.
|
|
854
|
-
* - `reference` - The content soft-references the ref target
|
|
855
|
-
* - `dependsOn` - The content depends on the ref target
|
|
856
|
-
*/
|
|
857
|
-
export declare enum ContentReferenceRelation {
|
|
858
|
-
Reference = "reference",
|
|
859
|
-
DependsOn = "dependsOn"
|
|
860
|
-
}
|
|
861
|
-
/**
|
|
862
|
-
* Text to display to represent the reference. Possible values include:
|
|
863
|
-
* - `ok` - No problems detected for this content reference.
|
|
864
|
-
* - `broken` - The target does not exist in the revision.
|
|
865
|
-
* - `in-app` - The target is a URL link pointing to an internal location in the app.
|
|
866
|
-
*/
|
|
867
|
-
export declare enum ContentReferenceStatus {
|
|
868
|
-
Ok = "ok",
|
|
869
|
-
Broken = "broken",
|
|
870
|
-
InApp = "in-app"
|
|
871
|
-
}
|
|
872
|
-
/** OpenAPI processing error code */
|
|
873
|
-
export declare enum OpenAPISpecProcessingErrorCode {
|
|
874
|
-
FETCH_TIMEOUT = "FETCH_TIMEOUT",
|
|
875
|
-
FETCH_ERROR = "FETCH_ERROR",
|
|
876
|
-
PARSE_ERROR = "PARSE_ERROR"
|
|
877
|
-
}
|
|
878
|
-
/** Processing state */
|
|
879
|
-
export declare enum OpenAPISpecProcessingState {
|
|
880
|
-
Pending = "pending",
|
|
881
|
-
Progress = "progress",
|
|
882
|
-
Complete = "complete"
|
|
883
|
-
}
|
|
884
|
-
/** Source for an organization block */
|
|
885
|
-
export declare enum BlockSource {
|
|
886
|
-
Backoffice = "backoffice",
|
|
887
|
-
External = "external",
|
|
888
|
-
Internal = "internal"
|
|
889
|
-
}
|
|
890
|
-
/** - 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. */
|
|
891
|
-
export declare enum BillingTrialStatus {
|
|
892
|
-
Notapplicable = "notapplicable",
|
|
893
|
-
None = "none",
|
|
894
|
-
Active = "active",
|
|
895
|
-
Ended = "ended",
|
|
896
|
-
Expired = "expired"
|
|
897
|
-
}
|
|
898
|
-
/** Interval for a billing subscription */
|
|
899
|
-
export declare enum BillingInterval {
|
|
900
|
-
Monthly = "monthly",
|
|
901
|
-
Yearly = "yearly"
|
|
902
|
-
}
|
|
903
|
-
/** Name of the product */
|
|
904
|
-
export declare enum BillingProduct {
|
|
905
|
-
Free2024 = "free_2024",
|
|
906
|
-
Plus2024 = "plus_2024",
|
|
907
|
-
Pro2024 = "pro_2024",
|
|
908
|
-
Enterprise2024 = "enterprise_2024",
|
|
909
|
-
Community2024 = "community_2024",
|
|
910
|
-
Free = "free",
|
|
911
|
-
Plus = "plus",
|
|
912
|
-
Pro = "pro",
|
|
913
|
-
Internal = "internal"
|
|
914
|
-
}
|
|
915
|
-
export declare enum OrganizationCommunityType {
|
|
916
|
-
NonProfit = "nonProfit",
|
|
917
|
-
OpenSource = "openSource",
|
|
918
|
-
Education = "education"
|
|
919
|
-
}
|
|
920
|
-
export declare enum OrganizationUseCase {
|
|
921
|
-
InternalDocs = "internalDocs",
|
|
922
|
-
DocsSite = "docsSite",
|
|
923
|
-
AudienceControlledSite = "audienceControlledSite",
|
|
924
|
-
ProductDocs = "productDocs",
|
|
925
|
-
TeamKnowledgeBase = "teamKnowledgeBase",
|
|
926
|
-
DesignSystem = "designSystem",
|
|
927
|
-
OpenSourceDocs = "openSourceDocs",
|
|
928
|
-
Notes = "notes",
|
|
929
|
-
Other = "other"
|
|
930
|
-
}
|
|
931
|
-
export declare enum OrganizationType {
|
|
932
|
-
Business = "business",
|
|
933
|
-
Community = "community"
|
|
934
|
-
}
|
|
935
918
|
export declare enum ChangeRequestStatus {
|
|
936
919
|
Draft = "draft",
|
|
937
920
|
Open = "open",
|
|
@@ -1088,9 +1071,11 @@ export declare enum ContentVisibility {
|
|
|
1088
1071
|
Private = "private"
|
|
1089
1072
|
}
|
|
1090
1073
|
/** Data passed through a realtime channel */
|
|
1091
|
-
export type APIChannelData = APIChannelGitSyncOperationData |
|
|
1074
|
+
export type APIChannelData = APIChannelGitSyncOperationData | APIChannelTranslationRunData | APIChannelImportRunData | APIChannelMutationData;
|
|
1092
1075
|
/** Channel to subscribe to for realtime updates. */
|
|
1093
|
-
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;
|
|
1094
1079
|
export type PublishedContentRedirect = {
|
|
1095
1080
|
/** Type of target for the redirect */
|
|
1096
1081
|
target: "application" | "content";
|
|
@@ -1132,9 +1117,9 @@ export type ChangeRequestContentChange = ({
|
|
|
1132
1117
|
operation: "insert_page";
|
|
1133
1118
|
} & ChangeRequestContentChangeInsertPage) | ({
|
|
1134
1119
|
operation: "delete_page";
|
|
1135
|
-
} & ChangeRequestContentChangeDeletePage)
|
|
1136
|
-
|
|
1137
|
-
|
|
1120
|
+
} & ChangeRequestContentChangeDeletePage) | ({
|
|
1121
|
+
operation: "revert_page";
|
|
1122
|
+
} & ChangeRequestContentChangeRevertPage);
|
|
1138
1123
|
export type Revision = RevisionTypeEdits | RevisionTypeMerge | RevisionTypeRollback | RevisionTypeUpdate | RevisionTypeComputed;
|
|
1139
1124
|
export type RevisionPage = RevisionPageDocument | RevisionPageGroup | RevisionPageLink | RevisionPageComputed;
|
|
1140
1125
|
export interface ApiInformation {
|
|
@@ -1163,6 +1148,21 @@ export interface User {
|
|
|
1163
1148
|
location: string;
|
|
1164
1149
|
};
|
|
1165
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
|
+
}
|
|
1166
1166
|
export interface APITemporaryToken {
|
|
1167
1167
|
/** Temporary access token to authenticate with the API */
|
|
1168
1168
|
token: string;
|
|
@@ -1322,6 +1322,8 @@ export interface Space {
|
|
|
1322
1322
|
* * `locked`: All edits are locked for this space.
|
|
1323
1323
|
*/
|
|
1324
1324
|
editMode?: SpaceEditMode;
|
|
1325
|
+
/** Kind of space. Only set to `styleguide` for spaces holding a team's writing styleguide; omitted for regular spaces. */
|
|
1326
|
+
type?: "styleguide";
|
|
1325
1327
|
mergeRules: MergeRulesSpaceConfiguration;
|
|
1326
1328
|
/** URLs associated with the object */
|
|
1327
1329
|
urls: {
|
|
@@ -2467,6 +2469,7 @@ export interface DocumentInlineButton {
|
|
|
2467
2469
|
data: {
|
|
2468
2470
|
label: string;
|
|
2469
2471
|
kind: "primary" | "secondary";
|
|
2472
|
+
size?: "small" | "medium" | "large";
|
|
2470
2473
|
/** Name of the icon */
|
|
2471
2474
|
icon?: Icon;
|
|
2472
2475
|
} & ({
|
|
@@ -2903,6 +2906,10 @@ export interface ChangeRequest {
|
|
|
2903
2906
|
createdBy: User;
|
|
2904
2907
|
createdAt: Timestamp;
|
|
2905
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;
|
|
2906
2913
|
/** ID of the space in which the change request was created. */
|
|
2907
2914
|
space: string;
|
|
2908
2915
|
/** ID of the active revision in the change request. */
|
|
@@ -2973,437 +2980,29 @@ export interface ApplySpaceTemplate {
|
|
|
2973
2980
|
/** Parameters for a space template */
|
|
2974
2981
|
params?: SpaceTemplateParams;
|
|
2975
2982
|
}
|
|
2976
|
-
/**
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
* @maxLength 32
|
|
2988
|
-
*/
|
|
2989
|
-
export type OrganizationHostname = string;
|
|
2990
|
-
export interface SitePointer {
|
|
2991
|
-
type: "site";
|
|
2992
|
-
/** Unique identifier for the site */
|
|
2993
|
-
site: string;
|
|
2994
|
-
}
|
|
2995
|
-
/** The default content for the organization */
|
|
2996
|
-
export type OrganizationDefaultContent = SitePointer;
|
|
2997
|
-
/** Pricing pair for monthly and yearly intervals */
|
|
2998
|
-
export interface OrganizationPricePair {
|
|
2999
|
-
/**
|
|
3000
|
-
* Monthly price in USD
|
|
3001
|
-
* @min 0
|
|
3002
|
-
*/
|
|
3003
|
-
monthly: number;
|
|
3004
|
-
/**
|
|
3005
|
-
* Yearly price in USD (per month)
|
|
3006
|
-
* @min 0
|
|
3007
|
-
*/
|
|
3008
|
-
yearly: number;
|
|
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
|
+
}[];
|
|
3009
2994
|
}
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
/** Pricing pair for monthly and yearly intervals */
|
|
3017
|
-
pro_2024: OrganizationPricePair;
|
|
3018
|
-
};
|
|
3019
|
-
/** Pricing for site types (site plans) */
|
|
3020
|
-
sites: {
|
|
3021
|
-
/** Pricing pair for monthly and yearly intervals */
|
|
3022
|
-
premium: OrganizationPricePair;
|
|
3023
|
-
/** Pricing pair for monthly and yearly intervals */
|
|
3024
|
-
ultimate: OrganizationPricePair;
|
|
3025
|
-
};
|
|
2995
|
+
export type EmojiReactions = EmojiReaction[];
|
|
2996
|
+
/** Contributor towards content. */
|
|
2997
|
+
export interface UserContributor {
|
|
2998
|
+
updatedAt: Timestamp;
|
|
2999
|
+
count: number;
|
|
3000
|
+
user: User;
|
|
3026
3001
|
}
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
/** Interval for a billing subscription */
|
|
3032
|
-
interval: BillingInterval;
|
|
3033
|
-
endDate: Timestamp | null;
|
|
3034
|
-
/** If true, we were unable to collect the last payment */
|
|
3035
|
-
hasPaymentFailed: boolean;
|
|
3036
|
-
/**
|
|
3037
|
-
* If true, organization can create a checkout session to subscribe/update billing.
|
|
3038
|
-
* If false, organization must resolve other billing issues before a checkout can be done.
|
|
3039
|
-
*/
|
|
3040
|
-
canCheckout: boolean;
|
|
3041
|
-
/** If true, the billing is set to cancel at the end of its current period */
|
|
3042
|
-
isScheduledToCancel: boolean;
|
|
3043
|
-
/** Pricing information for the organization */
|
|
3044
|
-
pricing: OrganizationPricing;
|
|
3045
|
-
/** Configuration for the usage-based addons */
|
|
3046
|
-
usageAddons: Record<string, BillingMeterAddon>;
|
|
3047
|
-
/** The minimum number of members allowed for this organization. */
|
|
3048
|
-
minUsers?: number;
|
|
3049
|
-
/** The maximum number of members allowed for this organization */
|
|
3050
|
-
maxUsers?: number;
|
|
3051
|
-
/** The minimum number of premium sites allowed for this organization. */
|
|
3052
|
-
minPremiumSites?: number;
|
|
3053
|
-
/** The maximum number of premium sites allowed for this organization. */
|
|
3054
|
-
maxPremiumSites?: number;
|
|
3055
|
-
/** The minimum number of ultimate sites allowed for this organization. */
|
|
3056
|
-
minUltimateSites?: number;
|
|
3057
|
-
/** The maximum number of ultimate sites allowed for this organization. */
|
|
3058
|
-
maxUltimateSites?: number;
|
|
3059
|
-
/** The number of paid members on the current subscription. */
|
|
3060
|
-
paidMembers?: number;
|
|
3061
|
-
/** The number of paid premium sites on the current subscription. */
|
|
3062
|
-
paidPremiumSites?: number;
|
|
3063
|
-
/** The number of paid ultimate sites on the current subscription. */
|
|
3064
|
-
paidUltimateSites?: number;
|
|
3065
|
-
/** Whether changing billing interval is allowed */
|
|
3066
|
-
canChangeInterval: boolean;
|
|
3067
|
-
/** Whether configuring SAML is allowed */
|
|
3068
|
-
canUseSAML: boolean;
|
|
3069
|
-
}
|
|
3070
|
-
/**
|
|
3071
|
-
* A short description giving context on the reason for the block.
|
|
3072
|
-
* @minLength 1
|
|
3073
|
-
* @maxLength 255
|
|
3074
|
-
*/
|
|
3075
|
-
export type BlockReason = string;
|
|
3076
|
-
export interface Organization {
|
|
3077
|
-
/** Type of Object, always equals to "organization" */
|
|
3078
|
-
object: "organization";
|
|
3079
|
-
/** Unique identifier for the organization */
|
|
3080
|
-
id: string;
|
|
3081
|
-
/** Name of the organization */
|
|
3082
|
-
title: OrganizationTitle;
|
|
3083
|
-
createdAt: Timestamp;
|
|
3084
|
-
emailDomains: OrganizationEmailDomains;
|
|
3085
|
-
/** Default hostname for the organization's public content, e.g. <org-hostname>.gitbook.io */
|
|
3086
|
-
hostname?: OrganizationHostname;
|
|
3087
|
-
type: OrganizationType;
|
|
3088
|
-
useCase?: OrganizationUseCase;
|
|
3089
|
-
communityType?: OrganizationCommunityType;
|
|
3090
|
-
/** The role of a member in an organization, null for guests */
|
|
3091
|
-
defaultRole?: MemberRoleOrGuest;
|
|
3092
|
-
/** The default content for the organization */
|
|
3093
|
-
defaultContent?: OrganizationDefaultContent;
|
|
3094
|
-
/** Whether SSO is enforced organization-wide */
|
|
3095
|
-
sso?: boolean;
|
|
3096
|
-
/** If true, the organization is configured to use all our AI features. */
|
|
3097
|
-
ai?: boolean;
|
|
3098
|
-
/** If true, invite links are enabled for this organization. */
|
|
3099
|
-
inviteLinks: boolean;
|
|
3100
|
-
/** Name of the product */
|
|
3101
|
-
plan: BillingProduct;
|
|
3102
|
-
/** Billing details, only available for org members. */
|
|
3103
|
-
billing?: OrganizationBilling;
|
|
3104
|
-
mergeRules: MergeRulesStandaloneConfiguration;
|
|
3105
|
-
/** URLs associated with the object */
|
|
3106
|
-
urls: {
|
|
3107
|
-
/**
|
|
3108
|
-
* URL of the organization in the API
|
|
3109
|
-
* @format uri
|
|
3110
|
-
*/
|
|
3111
|
-
location: string;
|
|
3112
|
-
/**
|
|
3113
|
-
* URL of the organization in the application
|
|
3114
|
-
* @format uri
|
|
3115
|
-
*/
|
|
3116
|
-
app: string;
|
|
3117
|
-
/** URL of the logo of this organization, if defined. */
|
|
3118
|
-
logo?: URL;
|
|
3119
|
-
};
|
|
3120
|
-
trial: {
|
|
3121
|
-
/** - 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. */
|
|
3122
|
-
status: BillingTrialStatus;
|
|
3123
|
-
/** Number of trials the organization has consumed. */
|
|
3124
|
-
count: number;
|
|
3125
|
-
/** The trial's end date, if the organization has or had a trial. */
|
|
3126
|
-
endDate?: Timestamp;
|
|
3127
|
-
/** The decision taken by the user at the end of the trial */
|
|
3128
|
-
decision?: "downgrade";
|
|
3129
|
-
};
|
|
3130
|
-
/** Custom hostname linked to this organization */
|
|
3131
|
-
customHostname?: string;
|
|
3132
|
-
/** If the organization is blocked, information about the block will appear here */
|
|
3133
|
-
blocked?: {
|
|
3134
|
-
/** Source for an organization block */
|
|
3135
|
-
source?: BlockSource;
|
|
3136
|
-
/** A short description giving context on the reason for the block. */
|
|
3137
|
-
reason: BlockReason;
|
|
3138
|
-
};
|
|
3139
|
-
internal_billingMigration?: {
|
|
3140
|
-
/** When we will upgrade the organization onto new pricing, if they haven't already. */
|
|
3141
|
-
deadline?: Timestamp;
|
|
3142
|
-
/** A discount the organization may have received thanks to migrating early. */
|
|
3143
|
-
discountPercent?: number;
|
|
3144
|
-
/** The expiration date of the discount, after wich regular pricing resumes. */
|
|
3145
|
-
discountEndDate?: Timestamp;
|
|
3146
|
-
};
|
|
3147
|
-
/** The set of permissions for the organization */
|
|
3148
|
-
permissions: {
|
|
3149
|
-
/** Can the user view the organization. */
|
|
3150
|
-
view: boolean;
|
|
3151
|
-
/** Can the user view the organization in the application. */
|
|
3152
|
-
access: boolean;
|
|
3153
|
-
/** Can the user manage the title, members, etc. */
|
|
3154
|
-
admin: boolean;
|
|
3155
|
-
/** Is the user a team owner. */
|
|
3156
|
-
ownTeam: boolean;
|
|
3157
|
-
/** Can the user create new spaces/collections in the organization. */
|
|
3158
|
-
createContent: boolean;
|
|
3159
|
-
/** Can the user create new OpenAPI specifications. */
|
|
3160
|
-
createOpenAPISpec: boolean;
|
|
3161
|
-
/** Can the user view the billing details of the organization. */
|
|
3162
|
-
viewBilling: boolean;
|
|
3163
|
-
/** Can the user list the members of the organization. */
|
|
3164
|
-
listMembers: boolean;
|
|
3165
|
-
/** Can the user list the teams in the organization. */
|
|
3166
|
-
listTeams: boolean;
|
|
3167
|
-
/** Can the user list the integrations in the organization. */
|
|
3168
|
-
listIntegrations: boolean;
|
|
3169
|
-
/** Can the user list the integration installations in the organization. */
|
|
3170
|
-
listInstallations: boolean;
|
|
3171
|
-
/** Can the user install integrations in the organization. */
|
|
3172
|
-
installIntegration: boolean;
|
|
3173
|
-
};
|
|
3174
|
-
}
|
|
3175
|
-
export interface ContentLocationRevisionContext {
|
|
3176
|
-
type: "revision";
|
|
3177
|
-
revision: Revision;
|
|
3178
|
-
}
|
|
3179
|
-
export interface ContentLocationChangeRequestContext {
|
|
3180
|
-
type: "changeRequest";
|
|
3181
|
-
changeRequest: ChangeRequest;
|
|
3182
|
-
}
|
|
3183
|
-
export interface ContentLocationFile {
|
|
3184
|
-
kind: "file";
|
|
3185
|
-
organization: Organization;
|
|
3186
|
-
space: Space;
|
|
3187
|
-
versionContext?: ContentLocationRevisionContext | ContentLocationChangeRequestContext;
|
|
3188
|
-
file: RevisionFile;
|
|
3189
|
-
}
|
|
3190
|
-
export interface ContentLocationURL {
|
|
3191
|
-
kind: "url";
|
|
3192
|
-
url: string;
|
|
3193
|
-
}
|
|
3194
|
-
export interface ContentLocationPageAnchor {
|
|
3195
|
-
type: "anchor";
|
|
3196
|
-
/** The anchor within the page. */
|
|
3197
|
-
anchor: string;
|
|
3198
|
-
}
|
|
3199
|
-
export interface ContentLocationPageNode {
|
|
3200
|
-
type: "node";
|
|
3201
|
-
/** The node id within the page. */
|
|
3202
|
-
node: string;
|
|
3203
|
-
}
|
|
3204
|
-
export interface ContentLocationPage {
|
|
3205
|
-
kind: "page";
|
|
3206
|
-
organization: Organization;
|
|
3207
|
-
page: RevisionPage;
|
|
3208
|
-
space: Space;
|
|
3209
|
-
versionContext?: ContentLocationRevisionContext | ContentLocationChangeRequestContext;
|
|
3210
|
-
internalLocation?: ContentLocationPageAnchor | ContentLocationPageNode;
|
|
3211
|
-
}
|
|
3212
|
-
export interface ContentLocationUser {
|
|
3213
|
-
kind: "user";
|
|
3214
|
-
user: User;
|
|
3215
|
-
}
|
|
3216
|
-
/**
|
|
3217
|
-
* Title of the collection
|
|
3218
|
-
* @maxLength 50
|
|
3219
|
-
*/
|
|
3220
|
-
export type CollectionTitle = string;
|
|
3221
|
-
/**
|
|
3222
|
-
* Description of the collection
|
|
3223
|
-
* @minLength 0
|
|
3224
|
-
* @maxLength 100
|
|
3225
|
-
*/
|
|
3226
|
-
export type CollectionDescription = string;
|
|
3227
|
-
export interface Collection {
|
|
3228
|
-
/** Type of Object, always equals to "collection" */
|
|
3229
|
-
object: "collection";
|
|
3230
|
-
/** Unique identifier for the collection */
|
|
3231
|
-
id: string;
|
|
3232
|
-
/** Title of the collection */
|
|
3233
|
-
title: CollectionTitle;
|
|
3234
|
-
/** Description of the collection */
|
|
3235
|
-
description?: CollectionDescription;
|
|
3236
|
-
/** ID of the organization owning this collection */
|
|
3237
|
-
organization: string;
|
|
3238
|
-
/** ID of the parent collection, if any */
|
|
3239
|
-
parent?: string;
|
|
3240
|
-
/** Default level for a piece of content */
|
|
3241
|
-
defaultLevel: DefaultLevel;
|
|
3242
|
-
/** URLs associated with the object */
|
|
3243
|
-
urls: {
|
|
3244
|
-
/**
|
|
3245
|
-
* URL of the collection in the API
|
|
3246
|
-
* @format uri
|
|
3247
|
-
*/
|
|
3248
|
-
location: string;
|
|
3249
|
-
/**
|
|
3250
|
-
* URL of the collection in the application
|
|
3251
|
-
* @format uri
|
|
3252
|
-
*/
|
|
3253
|
-
app: string;
|
|
3254
|
-
};
|
|
3255
|
-
/** The set of permissions for the collection */
|
|
3256
|
-
permissions: {
|
|
3257
|
-
/** Can the user view the collection. */
|
|
3258
|
-
view: boolean;
|
|
3259
|
-
/** Can the user edit the title/description. */
|
|
3260
|
-
admin: boolean;
|
|
3261
|
-
/** Can the user view the invite links of the collection. */
|
|
3262
|
-
viewInviteLinks: boolean;
|
|
3263
|
-
/** Can the user create spaces/collections in this collection. */
|
|
3264
|
-
create: boolean;
|
|
3265
|
-
};
|
|
3266
|
-
}
|
|
3267
|
-
export interface ContentLocationCollection {
|
|
3268
|
-
kind: "collection";
|
|
3269
|
-
organization: Organization;
|
|
3270
|
-
collection: Collection;
|
|
3271
|
-
}
|
|
3272
|
-
export interface ContentLocationSpace {
|
|
3273
|
-
kind: "space";
|
|
3274
|
-
organization: Organization;
|
|
3275
|
-
space: Space;
|
|
3276
|
-
}
|
|
3277
|
-
export interface ContentLocationReusableContent {
|
|
3278
|
-
kind: "reusable-content";
|
|
3279
|
-
organization: Organization;
|
|
3280
|
-
space: Space;
|
|
3281
|
-
versionContext?: ContentLocationRevisionContext | ContentLocationChangeRequestContext;
|
|
3282
|
-
reusableContent: RevisionReusableContent;
|
|
3283
|
-
}
|
|
3284
|
-
/**
|
|
3285
|
-
* Slug used as reference
|
|
3286
|
-
* @minLength 1
|
|
3287
|
-
* @maxLength 100
|
|
3288
|
-
* @pattern ^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$
|
|
3289
|
-
*/
|
|
3290
|
-
export type OpenAPISpecSlug = string;
|
|
3291
|
-
/** OpenAPI error object. */
|
|
3292
|
-
export interface OpenAPIErrorObject {
|
|
3293
|
-
/** Description of the error. */
|
|
3294
|
-
message: string;
|
|
3295
|
-
/** Unique code of the error. */
|
|
3296
|
-
code?: string;
|
|
3297
|
-
}
|
|
3298
|
-
export interface OpenAPISpec {
|
|
3299
|
-
/** The object type, which is always "openapi-spec" */
|
|
3300
|
-
object: "openapi-spec";
|
|
3301
|
-
/** Unique identifier */
|
|
3302
|
-
id: string;
|
|
3303
|
-
/** Date of creation */
|
|
3304
|
-
createdAt: Timestamp;
|
|
3305
|
-
/** Date of the last update */
|
|
3306
|
-
updatedAt: Timestamp;
|
|
3307
|
-
/** Slug used as reference */
|
|
3308
|
-
slug: OpenAPISpecSlug;
|
|
3309
|
-
sourceURL?: URL;
|
|
3310
|
-
/** Processing state */
|
|
3311
|
-
processingState: OpenAPISpecProcessingState;
|
|
3312
|
-
/**
|
|
3313
|
-
* The visibility setting of the OpenAPI spec.
|
|
3314
|
-
* * `private`: The spec is not publicly available.
|
|
3315
|
-
* * `public`: The spec is available to anyone with a public link.
|
|
3316
|
-
*/
|
|
3317
|
-
visibility?: OpenAPISpecVisibility;
|
|
3318
|
-
/** ID of the latest version of the OpenAPI specification */
|
|
3319
|
-
lastVersion?: string;
|
|
3320
|
-
/** Date of the last processing */
|
|
3321
|
-
lastProcessedAt?: Timestamp;
|
|
3322
|
-
/** OpenAPI processing error code */
|
|
3323
|
-
lastProcessErrorCode?: OpenAPISpecProcessingErrorCode;
|
|
3324
|
-
lastProcessedErrors?: OpenAPIErrorObject[];
|
|
3325
|
-
/**
|
|
3326
|
-
* Total number of processing errors before truncation of lastProcessedErrors.
|
|
3327
|
-
* @min 0
|
|
3328
|
-
*/
|
|
3329
|
-
lastProcessedErrorCount: number;
|
|
3330
|
-
/** The set of permissions for the OpenAPI specification. */
|
|
3331
|
-
permissions: {
|
|
3332
|
-
/** Can the user view the specification. */
|
|
3333
|
-
view: boolean;
|
|
3334
|
-
/** Can the user edit the specification. */
|
|
3335
|
-
edit: boolean;
|
|
3336
|
-
};
|
|
3337
|
-
/** URLs associated with the object */
|
|
3338
|
-
urls: {
|
|
3339
|
-
/** URL of the OpenAPI specification in the API */
|
|
3340
|
-
location: URL;
|
|
3341
|
-
/** URL of the OpenAPI specification in the application */
|
|
3342
|
-
app: URL;
|
|
3343
|
-
/**
|
|
3344
|
-
* URL of the published spec. Only defined when visibility is "published."
|
|
3345
|
-
* @format uri
|
|
3346
|
-
*/
|
|
3347
|
-
published?: string;
|
|
3348
|
-
};
|
|
3349
|
-
}
|
|
3350
|
-
export interface ContentLocationOpenAPI {
|
|
3351
|
-
kind: "openapi";
|
|
3352
|
-
organization: Organization;
|
|
3353
|
-
openAPISpec: OpenAPISpec;
|
|
3354
|
-
}
|
|
3355
|
-
export interface ContentReferencesStats {
|
|
3356
|
-
/** Total count of links */
|
|
3357
|
-
total: number;
|
|
3358
|
-
broken: {
|
|
3359
|
-
/** Count of broken links */
|
|
3360
|
-
total: number;
|
|
3361
|
-
/** Count of broken links that were broken in current change request, if applicable. */
|
|
3362
|
-
changeRequest?: number;
|
|
3363
|
-
};
|
|
3364
|
-
}
|
|
3365
|
-
export interface ContentReferenceUsage {
|
|
3366
|
-
/**
|
|
3367
|
-
* Text to display to represent the reference. Possible values include:
|
|
3368
|
-
* - `ok` - No problems detected for this content reference.
|
|
3369
|
-
* - `broken` - The target does not exist in the revision.
|
|
3370
|
-
* - `in-app` - The target is a URL link pointing to an internal location in the app.
|
|
3371
|
-
*/
|
|
3372
|
-
status: ContentReferenceStatus;
|
|
3373
|
-
/**
|
|
3374
|
-
* Indicator of the relationship with the content ref target.
|
|
3375
|
-
* - `reference` - The content soft-references the ref target
|
|
3376
|
-
* - `dependsOn` - The content depends on the ref target
|
|
3377
|
-
*/
|
|
3378
|
-
relation: ContentReferenceRelation;
|
|
3379
|
-
/** The reference target where a list of pages are pointing at */
|
|
3380
|
-
targetReference?: ContentLocation;
|
|
3381
|
-
/** Pages locations where a link to the target is found. */
|
|
3382
|
-
locationReferences: ContentLocation[];
|
|
3383
|
-
}
|
|
3384
|
-
/** An emoji reaction by one or many users */
|
|
3385
|
-
export interface EmojiReaction {
|
|
3386
|
-
/** The Emoji of the reaction */
|
|
3387
|
-
emoji: string;
|
|
3388
|
-
/** The number of users who reacted with this emoji */
|
|
3389
|
-
count: number;
|
|
3390
|
-
/** The users who reacted with this emoji */
|
|
3391
|
-
users: {
|
|
3392
|
-
user: User;
|
|
3393
|
-
reactedAt: Timestamp;
|
|
3394
|
-
}[];
|
|
3395
|
-
}
|
|
3396
|
-
export type EmojiReactions = EmojiReaction[];
|
|
3397
|
-
/** Contributor towards content. */
|
|
3398
|
-
export interface UserContributor {
|
|
3399
|
-
updatedAt: Timestamp;
|
|
3400
|
-
count: number;
|
|
3401
|
-
user: User;
|
|
3402
|
-
}
|
|
3403
|
-
/** Details about the table cell this comment is attached to, if any. */
|
|
3404
|
-
export interface TableCellTarget {
|
|
3405
|
-
record: string;
|
|
3406
|
-
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;
|
|
3407
3006
|
}
|
|
3408
3007
|
export type Comment = {
|
|
3409
3008
|
/** Type of Object, always equals to "comment" */
|
|
@@ -3533,6 +3132,8 @@ export interface AgentConversation {
|
|
|
3533
3132
|
id: string;
|
|
3534
3133
|
/** The title of the conversation, generated from the first message. Absent until generated. */
|
|
3535
3134
|
title?: string;
|
|
3135
|
+
/** Whether the conversation is shared with everyone who has access to the change request, rather than only its creator. Conversations are shared by default; a private conversation is only ever visible to its creator and stays private for good. */
|
|
3136
|
+
shared: boolean;
|
|
3536
3137
|
createdAt: Timestamp;
|
|
3537
3138
|
updatedAt: Timestamp;
|
|
3538
3139
|
}
|
|
@@ -3630,6 +3231,19 @@ export interface ChangeRequestContentChangeDeletePage {
|
|
|
3630
3231
|
/** ID of the page to delete. */
|
|
3631
3232
|
page: string;
|
|
3632
3233
|
}
|
|
3234
|
+
/**
|
|
3235
|
+
* Revert a page to the state it had in a given revision. If `revision` is omitted, the page is reverted to the change request's base revision. Without `block`, the whole page is reverted — added pages are removed, deleted pages are restored, and modified pages have their document reset. With `block`, only the listed block-level changes in the page's document are reverted (each block is removed if it was added, restored if it was deleted, or reset if it was modified or moved); other blocks and the page's properties/metadata are left untouched.
|
|
3236
|
+
* @example {"operation":"revert_page","page":"page_id"}
|
|
3237
|
+
*/
|
|
3238
|
+
export interface ChangeRequestContentChangeRevertPage {
|
|
3239
|
+
operation: "revert_page";
|
|
3240
|
+
/** ID of the page to revert. */
|
|
3241
|
+
page: string;
|
|
3242
|
+
/** ID of the revision to revert the page to. If omitted, the change request's base revision is used. */
|
|
3243
|
+
revision?: string;
|
|
3244
|
+
/** Keys of the specific blocks to revert within the page's document, as they appear in the page's document. If omitted, the whole page is reverted. */
|
|
3245
|
+
block?: string[];
|
|
3246
|
+
}
|
|
3633
3247
|
export interface ChangedRevisionPage {
|
|
3634
3248
|
id: string;
|
|
3635
3249
|
type: RevisionPageType;
|
|
@@ -3862,64 +3476,263 @@ export interface IntegrationContentSource {
|
|
|
3862
3476
|
*/
|
|
3863
3477
|
title: string;
|
|
3864
3478
|
/**
|
|
3865
|
-
* Long descriptive text for the source.
|
|
3866
|
-
* @minLength 0
|
|
3867
|
-
* @maxLength 150
|
|
3479
|
+
* Long descriptive text for the source.
|
|
3480
|
+
* @minLength 0
|
|
3481
|
+
* @maxLength 150
|
|
3482
|
+
*/
|
|
3483
|
+
description?: string;
|
|
3484
|
+
/** URL of the icon to represent this source. */
|
|
3485
|
+
icon?: string;
|
|
3486
|
+
/** ContentKit component for configuration */
|
|
3487
|
+
configuration: IntegrationConfigurationComponent;
|
|
3488
|
+
}
|
|
3489
|
+
/**
|
|
3490
|
+
* Property title for an integration configuration property
|
|
3491
|
+
* @minLength 2
|
|
3492
|
+
* @maxLength 50
|
|
3493
|
+
*/
|
|
3494
|
+
export type IntegrationPropertyTitle = string;
|
|
3495
|
+
/** Schema for a configuration */
|
|
3496
|
+
export interface IntegrationConfigurationSchema {
|
|
3497
|
+
properties: Record<string, {
|
|
3498
|
+
/** Property title for an integration configuration property */
|
|
3499
|
+
title?: IntegrationPropertyTitle;
|
|
3500
|
+
/** @maxLength 100 */
|
|
3501
|
+
description?: string;
|
|
3502
|
+
} & ({
|
|
3503
|
+
type: "string";
|
|
3504
|
+
default?: string;
|
|
3505
|
+
/** If specified, this URL will be called to fetch suggestions for auto-completing the property. */
|
|
3506
|
+
completion_url?: string;
|
|
3507
|
+
/** If specified, only values from this array are allowed as inputs. */
|
|
3508
|
+
enum?: string[];
|
|
3509
|
+
} | {
|
|
3510
|
+
type: "number";
|
|
3511
|
+
default?: number;
|
|
3512
|
+
} | {
|
|
3513
|
+
type: "boolean";
|
|
3514
|
+
default?: boolean;
|
|
3515
|
+
} | {
|
|
3516
|
+
type: "button";
|
|
3517
|
+
callback_url: string;
|
|
3518
|
+
button_text: string;
|
|
3519
|
+
})>;
|
|
3520
|
+
/** @uniqueItems true */
|
|
3521
|
+
required?: string[];
|
|
3522
|
+
}
|
|
3523
|
+
export type IntegrationConfiguration = IntegrationConfigurationSchema | IntegrationConfigurationComponent;
|
|
3524
|
+
export interface IntegrationConfigurations {
|
|
3525
|
+
account?: IntegrationConfiguration;
|
|
3526
|
+
space?: IntegrationConfiguration;
|
|
3527
|
+
site?: IntegrationConfiguration;
|
|
3528
|
+
}
|
|
3529
|
+
/**
|
|
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.
|
|
3868
3600
|
*/
|
|
3869
|
-
|
|
3870
|
-
/**
|
|
3871
|
-
|
|
3872
|
-
/**
|
|
3873
|
-
|
|
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;
|
|
3874
3630
|
}
|
|
3875
3631
|
/**
|
|
3876
|
-
*
|
|
3877
|
-
* @minLength
|
|
3878
|
-
* @maxLength
|
|
3632
|
+
* A short description giving context on the reason for the block.
|
|
3633
|
+
* @minLength 1
|
|
3634
|
+
* @maxLength 255
|
|
3879
3635
|
*/
|
|
3880
|
-
export type
|
|
3881
|
-
|
|
3882
|
-
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
|
|
3902
|
-
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
|
|
3906
|
-
|
|
3907
|
-
|
|
3908
|
-
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
|
|
3913
|
-
|
|
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
|
+
};
|
|
3914
3735
|
}
|
|
3915
|
-
/**
|
|
3916
|
-
* External urls configured by the developer of the integration
|
|
3917
|
-
* @maxItems 5
|
|
3918
|
-
*/
|
|
3919
|
-
export type IntegrationExternalLinks = {
|
|
3920
|
-
url: URL;
|
|
3921
|
-
label: string;
|
|
3922
|
-
}[];
|
|
3923
3736
|
/**
|
|
3924
3737
|
* Security policy to validate the content of the integrations scripts and Contentkit. Will be sent as
|
|
3925
3738
|
* headers when processing the script fetch event and the blocks fetch events.
|
|
@@ -4038,6 +3851,57 @@ export type SpaceIntegrationBlocks = {
|
|
|
4038
3851
|
name: string;
|
|
4039
3852
|
blocks: IntegrationBlock[];
|
|
4040
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
|
+
}
|
|
4041
3905
|
/** Secrets stored on the integration and passed at runtime. */
|
|
4042
3906
|
export type IntegrationSecrets = Record<string, string>;
|
|
4043
3907
|
export interface PublishIntegration {
|
|
@@ -4609,10 +4473,23 @@ export interface Site {
|
|
|
4609
4473
|
* * `visitor-auth`: Anyone authenticated through a JWT token can access the site.
|
|
4610
4474
|
*/
|
|
4611
4475
|
visibility: SiteVisibility;
|
|
4612
|
-
/** Permissions resolution mode for the site. */
|
|
4613
|
-
permissionsModel: SitePermissionsModel;
|
|
4614
4476
|
/** Default level for a piece of content */
|
|
4615
4477
|
defaultLevel: DefaultLevel;
|
|
4478
|
+
/** The set of permissions for the site. */
|
|
4479
|
+
permissions: {
|
|
4480
|
+
/** Can the user view the site. */
|
|
4481
|
+
view: boolean;
|
|
4482
|
+
/** Can the user access the site in the application. */
|
|
4483
|
+
access: boolean;
|
|
4484
|
+
/** Can the user edit the site and manage its settings. */
|
|
4485
|
+
admin: boolean;
|
|
4486
|
+
/** Can the user install integrations on the site. */
|
|
4487
|
+
installIntegration: boolean;
|
|
4488
|
+
/** Can the user view the adaptive schema of the site. */
|
|
4489
|
+
viewAdaptiveSchema: boolean;
|
|
4490
|
+
/** Can the user edit the adaptive schema of the site. */
|
|
4491
|
+
editAdaptiveSchema: boolean;
|
|
4492
|
+
};
|
|
4616
4493
|
/** Whether the site is live or not. If true, the site is accessible to the audience defined by the visibility setting. */
|
|
4617
4494
|
published: boolean;
|
|
4618
4495
|
siteSpaces: number;
|
|
@@ -5174,6 +5051,31 @@ export interface OrganizationAllContent {
|
|
|
5174
5051
|
/** List of soft-deleted spaces. */
|
|
5175
5052
|
deletedSpaces: OrganizationAllSpace[];
|
|
5176
5053
|
}
|
|
5054
|
+
/** A styleguide space and all the sites referencing it. */
|
|
5055
|
+
export interface OrganizationStyleguide {
|
|
5056
|
+
space: Space;
|
|
5057
|
+
/** Sites in the organization that reference this styleguide. */
|
|
5058
|
+
sites: Site[];
|
|
5059
|
+
}
|
|
5060
|
+
export interface OrganizationStyleguides {
|
|
5061
|
+
styleguides: OrganizationStyleguide[];
|
|
5062
|
+
}
|
|
5063
|
+
/** A built-in styleguide starter template used to seed and preview a styleguide. */
|
|
5064
|
+
export interface StyleguideTemplate {
|
|
5065
|
+
/** Identifier of the template, passed to createSiteStyleguideById to seed a styleguide from it. */
|
|
5066
|
+
id: string;
|
|
5067
|
+
/** Human-readable name of the template. */
|
|
5068
|
+
title: string;
|
|
5069
|
+
/** Short one-line description of the template. */
|
|
5070
|
+
subtitle?: string;
|
|
5071
|
+
/** Emoji illustrating the template. */
|
|
5072
|
+
emoji?: string;
|
|
5073
|
+
/** Markdown content of the template, rendered as a preview. */
|
|
5074
|
+
markdown: string;
|
|
5075
|
+
}
|
|
5076
|
+
export interface StyleguideTemplates {
|
|
5077
|
+
templates: StyleguideTemplate[];
|
|
5078
|
+
}
|
|
5177
5079
|
/** Permission of a member in a content. */
|
|
5178
5080
|
export interface MemberContentPermission {
|
|
5179
5081
|
/**
|
|
@@ -5664,6 +5566,72 @@ export interface SearchAIAnswerStream {
|
|
|
5664
5566
|
/** Answer from AI for a question asked on a content. */
|
|
5665
5567
|
answer: SearchAIAnswer;
|
|
5666
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
|
+
}
|
|
5667
5635
|
/** Create a specification from an URL */
|
|
5668
5636
|
export type OpenAPISpecSource = {
|
|
5669
5637
|
url: URL;
|
|
@@ -5700,6 +5668,13 @@ export interface OpenAPISpecContent {
|
|
|
5700
5668
|
public: null | URL;
|
|
5701
5669
|
};
|
|
5702
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
|
+
}
|
|
5703
5678
|
export interface OrganizationAgentInstructions {
|
|
5704
5679
|
object: "agent-instructions";
|
|
5705
5680
|
/** Document containing the Docs agent instructions. */
|
|
@@ -6263,9 +6238,11 @@ export interface SiteCustomizationSettingsBase {
|
|
|
6263
6238
|
* Ordered list of the page actions enabled in the page menu. This is the source of truth for
|
|
6264
6239
|
* which actions are enabled and in which order: the position defines the display order, the
|
|
6265
6240
|
* first action is the default one, surfaced as the main button on the page, and actions not
|
|
6266
|
-
* present in the list are disabled.
|
|
6267
|
-
*
|
|
6268
|
-
*
|
|
6241
|
+
* present in the list are disabled. An empty list turns the page menu off entirely: no action
|
|
6242
|
+
* is shown, not even the `assistant`. On a non-empty list the `assistant` action follows the
|
|
6243
|
+
* `ai.mode` setting rather than its own presence: it is kept (prepended by default if missing,
|
|
6244
|
+
* otherwise keeping its position) when the assistant is enabled and absent when it is disabled.
|
|
6245
|
+
* When the menu is off, the assistant stays reachable from the header via `ai.mode`.
|
|
6269
6246
|
*/
|
|
6270
6247
|
items: CustomizationPageActionType[];
|
|
6271
6248
|
};
|
|
@@ -6450,7 +6427,7 @@ export interface SiteInsightsSession {
|
|
|
6450
6427
|
sessionId: string;
|
|
6451
6428
|
}
|
|
6452
6429
|
/** Integration source */
|
|
6453
|
-
export type ContextConnector = string | "builtin:email" | "builtin:api" | "builtin:website" | "builtin:youtube" | "builtin:github-discussions" | "builtin:github-issues" | "builtin:intercom" | "builtin:zendesk";
|
|
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";
|
|
6454
6431
|
/**
|
|
6455
6432
|
* Title for the context record
|
|
6456
6433
|
* @minLength 1
|
|
@@ -6525,8 +6502,8 @@ export interface SiteScan {
|
|
|
6525
6502
|
id: string;
|
|
6526
6503
|
/** Status of a persisted site scan. */
|
|
6527
6504
|
status: SiteScanStatus;
|
|
6528
|
-
/** The site topic ID associated with the scan */
|
|
6529
|
-
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;
|
|
6530
6507
|
createdAt: Timestamp;
|
|
6531
6508
|
startedAt?: Timestamp;
|
|
6532
6509
|
finishedAt?: Timestamp;
|
|
@@ -6554,8 +6531,8 @@ export interface SiteFinding {
|
|
|
6554
6531
|
id: string;
|
|
6555
6532
|
/** The site scan ID associated with the finding */
|
|
6556
6533
|
scan: string;
|
|
6557
|
-
/** The site topic ID associated with the finding */
|
|
6558
|
-
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;
|
|
6559
6536
|
/** Short finding title */
|
|
6560
6537
|
title: SiteFindingTitle;
|
|
6561
6538
|
/** Number of change requests linked to the finding */
|
|
@@ -6566,12 +6543,18 @@ export interface SiteFinding {
|
|
|
6566
6543
|
records: number;
|
|
6567
6544
|
/** Number of questions linked to the finding */
|
|
6568
6545
|
questions: number;
|
|
6569
|
-
/**
|
|
6546
|
+
/**
|
|
6547
|
+
* Status of a site finding.
|
|
6548
|
+
* - `candidate` is a finding that has been raised but not yet confirmed. Typically these are not shown to users.
|
|
6549
|
+
* - `open` is a finding that has been surfaced to users and is still under investigation.
|
|
6550
|
+
* - `done` is a finding that has been resolved and is no longer under investigation.
|
|
6551
|
+
* - `canceled` is a finding that has been canceled and is no longer under investigation.
|
|
6552
|
+
*/
|
|
6570
6553
|
status: SiteFindingStatus;
|
|
6571
6554
|
/**
|
|
6572
6555
|
* Classification of a site finding:
|
|
6573
|
-
* - Outdated content: The content is no longer up to date with external context and may be misleading or incorrect.
|
|
6574
|
-
* -
|
|
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.
|
|
6575
6558
|
* - Content gap: The content is missing important information that should be present to answer user questions effectively.
|
|
6576
6559
|
* - Other: Any other type of finding not covered by the above categories.
|
|
6577
6560
|
*/
|
|
@@ -6683,11 +6666,19 @@ export interface SiteQuestion {
|
|
|
6683
6666
|
* @maxLength 128
|
|
6684
6667
|
*/
|
|
6685
6668
|
export type ContextConnectionLabel = string;
|
|
6669
|
+
/**
|
|
6670
|
+
* Optional filter used to restrict which items are ingested from the source. Its meaning depends on the connector: it can be a tag, label, or an expression. When empty or omitted, all resolved items are ingested.
|
|
6671
|
+
* @minLength 0
|
|
6672
|
+
* @maxLength 1024
|
|
6673
|
+
*/
|
|
6674
|
+
export type ContextConnectionFilter = string;
|
|
6686
6675
|
export interface ContextUsageSettings {
|
|
6687
6676
|
/** Whether to use context to propose change requests */
|
|
6688
6677
|
changeRequests: boolean;
|
|
6689
6678
|
/** Whether to expose records in search results */
|
|
6690
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;
|
|
6691
6682
|
/** Relative score adjustment applied to records from a connection when searching. */
|
|
6692
6683
|
searchBoost: ContextSearchBoost;
|
|
6693
6684
|
}
|
|
@@ -6754,6 +6745,44 @@ export type ContextConnectorSetup = {
|
|
|
6754
6745
|
/** @minLength 1 */
|
|
6755
6746
|
apiToken: string;
|
|
6756
6747
|
};
|
|
6748
|
+
} | {
|
|
6749
|
+
connector: "builtin:pylon";
|
|
6750
|
+
setupSettings: {
|
|
6751
|
+
/** @minLength 1 */
|
|
6752
|
+
token: string;
|
|
6753
|
+
};
|
|
6754
|
+
} | {
|
|
6755
|
+
connector: "builtin:linear";
|
|
6756
|
+
setupSettings: {
|
|
6757
|
+
/** @minLength 1 */
|
|
6758
|
+
token: string;
|
|
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
|
+
};
|
|
6757
6786
|
};
|
|
6758
6787
|
export type ContextConnection = {
|
|
6759
6788
|
object: "context-connection";
|
|
@@ -6763,6 +6792,8 @@ export type ContextConnection = {
|
|
|
6763
6792
|
syncedAt?: Timestamp;
|
|
6764
6793
|
/** Optional label for the connection */
|
|
6765
6794
|
label?: ContextConnectionLabel;
|
|
6795
|
+
/** Optional filter used to restrict which items are ingested from the source. Its meaning depends on the connector: it can be a tag, label, or an expression. When empty or omitted, all resolved items are ingested. */
|
|
6796
|
+
filter?: ContextConnectionFilter;
|
|
6766
6797
|
status: ContextConnectionStatus;
|
|
6767
6798
|
/** Number of records ingested from this connection */
|
|
6768
6799
|
records: number;
|
|
@@ -6786,6 +6817,13 @@ export type ContextConnection = {
|
|
|
6786
6817
|
location: string;
|
|
6787
6818
|
};
|
|
6788
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
|
+
}
|
|
6789
6827
|
export interface SiteTopicUsageSettings {
|
|
6790
6828
|
/** Whether to use context to propose change requests */
|
|
6791
6829
|
changeRequests: boolean;
|
|
@@ -7170,6 +7208,15 @@ export interface AIToolCallReplyToComment {
|
|
|
7170
7208
|
/** The ID of the reply being posted. */
|
|
7171
7209
|
replyId: string;
|
|
7172
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
|
+
}
|
|
7173
7220
|
export interface AIToolCallSubmitChangeRequestReview {
|
|
7174
7221
|
tool: "submitChangeRequestReview";
|
|
7175
7222
|
/** The ID of the space where the review was submitted. */
|
|
@@ -7206,7 +7253,7 @@ export interface AIToolCallOther {
|
|
|
7206
7253
|
/** Summary of a generic tool call. */
|
|
7207
7254
|
summary: AIToolCallOtherSummary;
|
|
7208
7255
|
}
|
|
7209
|
-
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;
|
|
7210
7257
|
export interface Timerange {
|
|
7211
7258
|
start: Timestamp;
|
|
7212
7259
|
end: Timestamp;
|
|
@@ -7371,6 +7418,10 @@ export interface UserSitePermission {
|
|
|
7371
7418
|
user: User;
|
|
7372
7419
|
/** The origin that enforced the effective permission level for a user in a site. */
|
|
7373
7420
|
origin: UserSitePermissionOrigin;
|
|
7421
|
+
/** Whether the user is disabled */
|
|
7422
|
+
disabled: boolean;
|
|
7423
|
+
/** Date at which the user was last seen */
|
|
7424
|
+
lastSeenAt?: Timestamp;
|
|
7374
7425
|
}
|
|
7375
7426
|
/** Permission override of a user in a site. */
|
|
7376
7427
|
export interface UserSitePermissionOverride {
|
|
@@ -7654,10 +7705,30 @@ export type SiteInsightsEventPagePostFeedbackComment = SiteInsightsEventBase & {
|
|
|
7654
7705
|
comment: string;
|
|
7655
7706
|
};
|
|
7656
7707
|
};
|
|
7708
|
+
export type SiteInsightsEventAgentFeedback = SiteInsightsEventBase & {
|
|
7709
|
+
type: "agent_feedback";
|
|
7710
|
+
feedback: {
|
|
7711
|
+
/**
|
|
7712
|
+
* @minLength 1
|
|
7713
|
+
* @maxLength 2048
|
|
7714
|
+
*/
|
|
7715
|
+
content: string;
|
|
7716
|
+
/**
|
|
7717
|
+
* Classification of a site finding:
|
|
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.
|
|
7720
|
+
* - Content gap: The content is missing important information that should be present to answer user questions effectively.
|
|
7721
|
+
* - Other: Any other type of finding not covered by the above categories.
|
|
7722
|
+
*/
|
|
7723
|
+
category: SiteFindingType;
|
|
7724
|
+
};
|
|
7725
|
+
};
|
|
7657
7726
|
export type SiteInsightsEventAskQuestion = SiteInsightsEventBase & {
|
|
7658
7727
|
type: "ask_question";
|
|
7659
7728
|
/** Question being asked. */
|
|
7660
7729
|
query: string;
|
|
7730
|
+
/** The end goal the calling agent is trying to accomplish on behalf of the user, when provided alongside the question. Used to measure the goal→completion lifecycle per agent. */
|
|
7731
|
+
goal?: string;
|
|
7661
7732
|
};
|
|
7662
7733
|
/** Event when a user views the ask UI. */
|
|
7663
7734
|
export type SiteInsightsEventAskView = SiteInsightsEventBase & {
|
|
@@ -7716,7 +7787,7 @@ export type SiteInsightsEventMCPRequest = SiteInsightsEventBase & {
|
|
|
7716
7787
|
export type SiteInsightsEventRSSRequest = SiteInsightsEventBase & {
|
|
7717
7788
|
type: "rss_request";
|
|
7718
7789
|
};
|
|
7719
|
-
export type SiteInsightsEvent = SiteInsightsEventPageView | SiteInsightsEventPageMarkdownRequest | SiteInsightsEventSearchOpen | SiteInsightsEventSearchTypeQuery | SiteInsightsEventSearchOpenResult | SiteInsightsEventPagePostFeedback | SiteInsightsEventPagePostFeedbackComment | SiteInsightsEventAskQuestion | SiteInsightsEventAskView | SiteInsightsEventAskRateResponse | SiteInsightsEventLinkClick | SiteInsightsEventAPIClientOpen | SiteInsightsEventAPIClientRequest | SiteInsightsEventTrademarkClick | SiteInsightsEventAdClick | SiteInsightsEventAdDisplay | SiteInsightsEventLLMSRequest | SiteInsightsEventMCPRequest | SiteInsightsEventRSSRequest;
|
|
7790
|
+
export type SiteInsightsEvent = SiteInsightsEventPageView | SiteInsightsEventPageMarkdownRequest | SiteInsightsEventSearchOpen | SiteInsightsEventSearchTypeQuery | SiteInsightsEventSearchOpenResult | SiteInsightsEventPagePostFeedback | SiteInsightsEventPagePostFeedbackComment | SiteInsightsEventAgentFeedback | SiteInsightsEventAskQuestion | SiteInsightsEventAskView | SiteInsightsEventAskRateResponse | SiteInsightsEventLinkClick | SiteInsightsEventAPIClientOpen | SiteInsightsEventAPIClientRequest | SiteInsightsEventTrademarkClick | SiteInsightsEventAdClick | SiteInsightsEventAdDisplay | SiteInsightsEventLLMSRequest | SiteInsightsEventMCPRequest | SiteInsightsEventRSSRequest;
|
|
7720
7791
|
export interface SiteInsightsQueryDateTimeColumn {
|
|
7721
7792
|
column: "datetime";
|
|
7722
7793
|
interval?: "hour" | "day" | "week" | "month";
|
|
@@ -8251,7 +8322,6 @@ export interface BlockContext {
|
|
|
8251
8322
|
block: boolean;
|
|
8252
8323
|
/** A short description giving context on the reason for the block. */
|
|
8253
8324
|
reason?: BlockReason;
|
|
8254
|
-
blockPaidOrg?: boolean;
|
|
8255
8325
|
}
|
|
8256
8326
|
/** The GitBook User impersonation info. */
|
|
8257
8327
|
export interface UserImpersonationInfo {
|
|
@@ -8472,6 +8542,69 @@ export interface UpdateContentPublishingAuth {
|
|
|
8472
8542
|
*/
|
|
8473
8543
|
fallbackURL?: string;
|
|
8474
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
|
+
}
|
|
8475
8608
|
export interface SpaceTemplate {
|
|
8476
8609
|
id: string;
|
|
8477
8610
|
contentId: string;
|
|
@@ -9324,10 +9457,6 @@ export interface APIChannelSpacePublishingCustomization {
|
|
|
9324
9457
|
channel: "space-publishing-customization";
|
|
9325
9458
|
space: string;
|
|
9326
9459
|
}
|
|
9327
|
-
export interface APIChannelSpaceContentRefs {
|
|
9328
|
-
channel: "space-content-refs";
|
|
9329
|
-
space: string;
|
|
9330
|
-
}
|
|
9331
9460
|
export interface APIChannelSpaceIntegrations {
|
|
9332
9461
|
channel: "space-integrations";
|
|
9333
9462
|
space: string;
|
|
@@ -9358,11 +9487,6 @@ export interface APIChannelChangeRequestReviews {
|
|
|
9358
9487
|
space: string;
|
|
9359
9488
|
changeRequest: string;
|
|
9360
9489
|
}
|
|
9361
|
-
export interface APIChannelChangeRequestContentRefs {
|
|
9362
|
-
channel: "space-change-request-content-refs";
|
|
9363
|
-
space: string;
|
|
9364
|
-
changeRequest: string;
|
|
9365
|
-
}
|
|
9366
9490
|
export interface APIChannelCollection {
|
|
9367
9491
|
channel: "collection";
|
|
9368
9492
|
collection: string;
|
|
@@ -9651,24 +9775,6 @@ export interface APIChannelGitSyncOperationData {
|
|
|
9651
9775
|
channel: "space-gitsync-operation";
|
|
9652
9776
|
data: GitSyncOperation;
|
|
9653
9777
|
}
|
|
9654
|
-
export interface APIChannelSpaceContentRefsData {
|
|
9655
|
-
channel: "space-content-refs";
|
|
9656
|
-
/** Data passed on the channel messages for content refs indexation. */
|
|
9657
|
-
data: {
|
|
9658
|
-
/** ID of the latest indexed revision */
|
|
9659
|
-
revision: string;
|
|
9660
|
-
updatedAt: number;
|
|
9661
|
-
};
|
|
9662
|
-
}
|
|
9663
|
-
export interface APIChannelChangeRequestContentRefsData {
|
|
9664
|
-
channel: "space-change-request-content-refs";
|
|
9665
|
-
/** Data passed on the channel messages for content refs indexation. */
|
|
9666
|
-
data: {
|
|
9667
|
-
/** ID of the latest indexed revision */
|
|
9668
|
-
revision: string;
|
|
9669
|
-
updatedAt: number;
|
|
9670
|
-
};
|
|
9671
|
-
}
|
|
9672
9778
|
export interface APIChannelMutationData {
|
|
9673
9779
|
channel: "*";
|
|
9674
9780
|
/** Data passed on the channels associated to API endpoints. */
|
|
@@ -9937,11 +10043,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9937
10043
|
};
|
|
9938
10044
|
spaces: {
|
|
9939
10045
|
/**
|
|
9940
|
-
*
|
|
10046
|
+
* @description Returns the full metadata for a space. Use this to resolve a spaceId into a complete Space object. If you only need content, use the content endpoint instead.
|
|
9941
10047
|
*
|
|
9942
10048
|
* @tags spaces, critical
|
|
9943
10049
|
* @name GetSpaceById
|
|
9944
|
-
* @summary Get a space by its ID
|
|
10050
|
+
* @summary Get full details of a space by its ID
|
|
9945
10051
|
* @request GET:/spaces/{spaceId}
|
|
9946
10052
|
* @secure
|
|
9947
10053
|
*/
|
|
@@ -9950,11 +10056,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9950
10056
|
shareKey?: string;
|
|
9951
10057
|
}, params?: RequestParams) => Promise<HttpResponse<Space, any>>;
|
|
9952
10058
|
/**
|
|
9953
|
-
*
|
|
10059
|
+
* @description Updates a space's metadata and settings. To update page content, use the change-request workflow instead.
|
|
9954
10060
|
*
|
|
9955
10061
|
* @tags spaces
|
|
9956
10062
|
* @name UpdateSpaceById
|
|
9957
|
-
* @summary Update a space
|
|
10063
|
+
* @summary Update a space's title, icon, or settings
|
|
9958
10064
|
* @request PATCH:/spaces/{spaceId}
|
|
9959
10065
|
* @secure
|
|
9960
10066
|
*/
|
|
@@ -9991,31 +10097,31 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9991
10097
|
*/
|
|
9992
10098
|
deleteSpaceById: (spaceId: EntityId, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
9993
10099
|
/**
|
|
9994
|
-
*
|
|
10100
|
+
* @description Creates a new space that is a complete copy of the specified space, including all pages and their content. The duplicate is created in the same organization. Returns the newly created space. Use this to create a template-based copy or to snapshot a space before making large changes.
|
|
9995
10101
|
*
|
|
9996
10102
|
* @tags spaces
|
|
9997
10103
|
* @name DuplicateSpace
|
|
9998
|
-
* @summary
|
|
10104
|
+
* @summary Create a full copy of a space
|
|
9999
10105
|
* @request POST:/spaces/{spaceId}/duplicate
|
|
10000
10106
|
* @secure
|
|
10001
10107
|
*/
|
|
10002
10108
|
duplicateSpace: (spaceId: EntityId, params?: RequestParams) => Promise<HttpResponse<Space, any>>;
|
|
10003
10109
|
/**
|
|
10004
|
-
* @description Only spaces deleted
|
|
10110
|
+
* @description Restores a previously deleted space, making it active again. Only spaces deleted within the last 7 days can be restored; after that they are permanently removed. Returns the restored space object. To delete a space, use the space delete endpoint.
|
|
10005
10111
|
*
|
|
10006
10112
|
* @tags spaces
|
|
10007
10113
|
* @name RestoreSpace
|
|
10008
|
-
* @summary Restore a deleted space
|
|
10114
|
+
* @summary Restore a recently deleted space from the trash
|
|
10009
10115
|
* @request POST:/spaces/{spaceId}/restore
|
|
10010
10116
|
* @secure
|
|
10011
10117
|
*/
|
|
10012
10118
|
restoreSpace: (spaceId: EntityId, params?: RequestParams) => Promise<HttpResponse<Space, any>>;
|
|
10013
10119
|
/**
|
|
10014
|
-
*
|
|
10120
|
+
* @description Moves a space to a new parent collection and/or a new position within the hierarchy.
|
|
10015
10121
|
*
|
|
10016
10122
|
* @tags spaces
|
|
10017
10123
|
* @name MoveSpace
|
|
10018
|
-
* @summary Move a space to a
|
|
10124
|
+
* @summary Move a space to a different collection or position
|
|
10019
10125
|
* @request POST:/spaces/{spaceId}/move
|
|
10020
10126
|
* @secure
|
|
10021
10127
|
*/
|
|
@@ -10044,11 +10150,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10044
10150
|
};
|
|
10045
10151
|
}>>;
|
|
10046
10152
|
/**
|
|
10047
|
-
*
|
|
10153
|
+
* @description Resolves an external URL to an oEmbed representation (title, thumbnail, HTML snippet) within the context of a space. Use this to preview or embed third-party content referenced in a space's pages. Requires the URL as a query parameter.
|
|
10048
10154
|
*
|
|
10049
10155
|
* @tags space-embeds
|
|
10050
10156
|
* @name GetEmbedByUrlInSpace
|
|
10051
|
-
* @summary Resolve a URL to an
|
|
10157
|
+
* @summary Resolve a URL to an oEmbed object within a space
|
|
10052
10158
|
* @request GET:/spaces/{spaceId}/embed
|
|
10053
10159
|
* @secure
|
|
10054
10160
|
*/
|
|
@@ -10057,11 +10163,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10057
10163
|
url: string;
|
|
10058
10164
|
}, params?: RequestParams) => Promise<HttpResponse<Embed, any>>;
|
|
10059
10165
|
/**
|
|
10060
|
-
*
|
|
10166
|
+
* @description Searches the full text of all published pages in a space and returns matching pages with ranked excerpts. Use this to find pages by topic or keyword within a specific space. For site-wide search across all spaces in a site, use the site search endpoint instead.
|
|
10061
10167
|
*
|
|
10062
10168
|
* @tags space-content
|
|
10063
10169
|
* @name SearchSpaceContent
|
|
10064
|
-
* @summary
|
|
10170
|
+
* @summary Full-text search across all pages in a space
|
|
10065
10171
|
* @request GET:/spaces/{spaceId}/search
|
|
10066
10172
|
* @secure
|
|
10067
10173
|
*/
|
|
@@ -10080,31 +10186,31 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10080
10186
|
items: SearchPageResult[];
|
|
10081
10187
|
}, any>>;
|
|
10082
10188
|
/**
|
|
10083
|
-
*
|
|
10189
|
+
* @description Triggers an import from the linked Git repository into the space, updating the space's content to match the repository. This is an async operation — it runs in the background after the request returns 204. Use getSpaceGitInfo to check sync status. The space must already have a Git provider configured.
|
|
10084
10190
|
*
|
|
10085
10191
|
* @tags space-git
|
|
10086
10192
|
* @name ImportGitRepository
|
|
10087
|
-
* @summary
|
|
10193
|
+
* @summary Pull content into a space from a connected Git repository
|
|
10088
10194
|
* @request POST:/spaces/{spaceId}/git/import
|
|
10089
10195
|
* @secure
|
|
10090
10196
|
*/
|
|
10091
10197
|
importGitRepository: (spaceId: EntityId, data: ImportGitRepository, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
10092
10198
|
/**
|
|
10093
|
-
*
|
|
10199
|
+
* @description Triggers an export of the space's current content to the linked Git repository. This is an async operation — the export runs in the background after the request returns 204. Use getSpaceGitInfo to check the current git sync status. The space must already have a Git provider configured.
|
|
10094
10200
|
*
|
|
10095
10201
|
* @tags space-git
|
|
10096
10202
|
* @name ExportToGitRepository
|
|
10097
|
-
* @summary
|
|
10203
|
+
* @summary Push space content to a connected Git repository
|
|
10098
10204
|
* @request POST:/spaces/{spaceId}/git/export
|
|
10099
10205
|
* @secure
|
|
10100
10206
|
*/
|
|
10101
10207
|
exportToGitRepository: (spaceId: EntityId, data: ExportToGitRepository, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
10102
10208
|
/**
|
|
10103
|
-
* @description
|
|
10209
|
+
* @description Returns metadata about the Git Sync provider connected to the space. Returns 404 if no Git provider is configured. Use this to check sync state before triggering an import or export.
|
|
10104
10210
|
*
|
|
10105
10211
|
* @tags space-git
|
|
10106
10212
|
* @name GetSpaceGitInfo
|
|
10107
|
-
* @summary Get
|
|
10213
|
+
* @summary Get the Git Sync configuration and status for a space
|
|
10108
10214
|
* @request GET:/spaces/{spaceId}/git/info
|
|
10109
10215
|
* @secure
|
|
10110
10216
|
*/
|
|
@@ -10272,11 +10378,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10272
10378
|
};
|
|
10273
10379
|
}>>;
|
|
10274
10380
|
/**
|
|
10275
|
-
*
|
|
10381
|
+
* @description Retrieves the live published revision of a space, which includes the full page tree structure and associated files. Use this to inspect the currently published content state of a space. For in-progress edits, use the change-request content endpoint instead.
|
|
10276
10382
|
*
|
|
10277
10383
|
* @tags space-content
|
|
10278
10384
|
* @name GetCurrentRevision
|
|
10279
|
-
* @summary Get
|
|
10385
|
+
* @summary Get the current published content revision of a space
|
|
10280
10386
|
* @request GET:/spaces/{spaceId}/content
|
|
10281
10387
|
* @secure
|
|
10282
10388
|
*/
|
|
@@ -10293,11 +10399,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10293
10399
|
computed?: boolean;
|
|
10294
10400
|
}, params?: RequestParams) => Promise<HttpResponse<Revision, any>>;
|
|
10295
10401
|
/**
|
|
10296
|
-
*
|
|
10402
|
+
* @description Populates a space with pages and structure from a specified template, bootstrapping it with a standard documentation layout. Use this to initialise a new space rather than creating pages manually. Optionally apply the template to a specific change request instead of main content by providing the changeRequestId field.
|
|
10297
10403
|
*
|
|
10298
10404
|
* @tags space-content
|
|
10299
10405
|
* @name ApplyTemplateToSpace
|
|
10300
|
-
* @summary Apply a template to a space
|
|
10406
|
+
* @summary Apply a content template to populate a space with initial pages
|
|
10301
10407
|
* @request POST:/spaces/{spaceId}/content/template
|
|
10302
10408
|
* @secure
|
|
10303
10409
|
*/
|
|
@@ -10306,11 +10412,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10306
10412
|
changeRequestId?: string;
|
|
10307
10413
|
}, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
10308
10414
|
/**
|
|
10309
|
-
*
|
|
10415
|
+
* @description Returns the complete list of all pages in a space's current revision, including their titles, URL paths, and parent-child relationships. Use this to understand the full content structure of a space or build navigation. For the content of a single page, use getPageById or getPageByPath instead.
|
|
10310
10416
|
*
|
|
10311
10417
|
* @tags space-content
|
|
10312
10418
|
* @name ListPages
|
|
10313
|
-
* @summary List all space
|
|
10419
|
+
* @summary List all pages in a space with their hierarchy and metadata
|
|
10314
10420
|
* @request GET:/spaces/{spaceId}/content/pages
|
|
10315
10421
|
* @secure
|
|
10316
10422
|
*/
|
|
@@ -10329,11 +10435,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10329
10435
|
pages: RevisionPage[];
|
|
10330
10436
|
}, any>>;
|
|
10331
10437
|
/**
|
|
10332
|
-
*
|
|
10438
|
+
* @description Returns a paginated list of all files (images, attachments, and other assets) uploaded to a space's current revision. Use this to discover available assets or audit file usage across a space.
|
|
10333
10439
|
*
|
|
10334
10440
|
* @tags space-content
|
|
10335
10441
|
* @name ListFiles
|
|
10336
|
-
* @summary List all
|
|
10442
|
+
* @summary List all uploaded files and assets in a space
|
|
10337
10443
|
* @request GET:/spaces/{spaceId}/content/files
|
|
10338
10444
|
* @secure
|
|
10339
10445
|
*/
|
|
@@ -10360,11 +10466,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10360
10466
|
items: RevisionFile[];
|
|
10361
10467
|
}, any>>;
|
|
10362
10468
|
/**
|
|
10363
|
-
*
|
|
10469
|
+
* @description Retrieves metadata and download URL for a single file (image, attachment, or other asset) in a space's current revision by its file ID. Use this when you have a specific file ID and need its URL, MIME type, or other metadata.
|
|
10364
10470
|
*
|
|
10365
10471
|
* @tags space-content
|
|
10366
10472
|
* @name GetFileById
|
|
10367
|
-
* @summary Get a
|
|
10473
|
+
* @summary Get a specific uploaded file from a space by its ID
|
|
10368
10474
|
* @request GET:/spaces/{spaceId}/content/files/{fileId}
|
|
10369
10475
|
* @secure
|
|
10370
10476
|
*/
|
|
@@ -10381,32 +10487,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10381
10487
|
computed?: boolean;
|
|
10382
10488
|
}, params?: RequestParams) => Promise<HttpResponse<RevisionFile, any>>;
|
|
10383
10489
|
/**
|
|
10384
|
-
*
|
|
10385
|
-
*
|
|
10386
|
-
* @tags space-content
|
|
10387
|
-
* @name ListSpaceFileBacklinks
|
|
10388
|
-
* @summary List all space file backlink locations
|
|
10389
|
-
* @request GET:/spaces/{spaceId}/content/files/{fileId}/backlinks
|
|
10390
|
-
* @secure
|
|
10391
|
-
*/
|
|
10392
|
-
listSpaceFileBacklinks: (spaceId: EntityId, fileId: EntityId, query?: {
|
|
10393
|
-
/** Identifier of the page results to fetch. */
|
|
10394
|
-
page?: string;
|
|
10395
|
-
/**
|
|
10396
|
-
* The number of results per page
|
|
10397
|
-
* @min 0
|
|
10398
|
-
* @max 1000
|
|
10399
|
-
*/
|
|
10400
|
-
limit?: number;
|
|
10401
|
-
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
10402
|
-
items: ContentLocation[];
|
|
10403
|
-
}, any>>;
|
|
10404
|
-
/**
|
|
10405
|
-
* No description
|
|
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.
|
|
10406
10491
|
*
|
|
10407
10492
|
* @tags space-content
|
|
10408
10493
|
* @name GetPageById
|
|
10409
|
-
* @summary Get a
|
|
10494
|
+
* @summary Get a single page from a space by its ID
|
|
10410
10495
|
* @request GET:/spaces/{spaceId}/content/page/{pageId}
|
|
10411
10496
|
* @secure
|
|
10412
10497
|
*/
|
|
@@ -10448,71 +10533,21 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10448
10533
|
computed?: boolean;
|
|
10449
10534
|
}, params?: RequestParams) => Promise<HttpResponse<RevisionPage, any>>;
|
|
10450
10535
|
/**
|
|
10451
|
-
*
|
|
10452
|
-
*
|
|
10453
|
-
* @tags space-content, links, critical
|
|
10454
|
-
* @name ListPageLinksInSpace
|
|
10455
|
-
* @summary List all space page links
|
|
10456
|
-
* @request GET:/spaces/{spaceId}/content/page/{pageId}/links
|
|
10457
|
-
* @secure
|
|
10458
|
-
*/
|
|
10459
|
-
listPageLinksInSpace: (spaceId: EntityId, pageId: EntityId, query?: {
|
|
10460
|
-
/** Identifier of the page results to fetch. */
|
|
10461
|
-
page?: string;
|
|
10462
|
-
/**
|
|
10463
|
-
* The number of results per page
|
|
10464
|
-
* @min 0
|
|
10465
|
-
* @max 1000
|
|
10466
|
-
*/
|
|
10467
|
-
limit?: number;
|
|
10468
|
-
/**
|
|
10469
|
-
* Text to display to represent the reference. Possible values include:
|
|
10470
|
-
* - `ok` - No problems detected for this content reference.
|
|
10471
|
-
* - `broken` - The target does not exist in the revision.
|
|
10472
|
-
* - `in-app` - The target is a URL link pointing to an internal location in the app.
|
|
10473
|
-
*/
|
|
10474
|
-
status?: ContentReferenceStatus;
|
|
10475
|
-
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
10476
|
-
stats: ContentReferencesStats;
|
|
10477
|
-
items: ContentReferenceUsage[];
|
|
10478
|
-
}, any>>;
|
|
10479
|
-
/**
|
|
10480
|
-
* No description
|
|
10481
|
-
*
|
|
10482
|
-
* @tags space-content
|
|
10483
|
-
* @name ListSpacePageBacklinks
|
|
10484
|
-
* @summary List all space page backlink locations
|
|
10485
|
-
* @request GET:/spaces/{spaceId}/content/page/{pageId}/backlinks
|
|
10486
|
-
* @secure
|
|
10487
|
-
*/
|
|
10488
|
-
listSpacePageBacklinks: (spaceId: EntityId, pageId: EntityId, query?: {
|
|
10489
|
-
/** Identifier of the page results to fetch. */
|
|
10490
|
-
page?: string;
|
|
10491
|
-
/**
|
|
10492
|
-
* The number of results per page
|
|
10493
|
-
* @min 0
|
|
10494
|
-
* @max 1000
|
|
10495
|
-
*/
|
|
10496
|
-
limit?: number;
|
|
10497
|
-
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
10498
|
-
items: ContentLocation[];
|
|
10499
|
-
}, any>>;
|
|
10500
|
-
/**
|
|
10501
|
-
* No description
|
|
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.
|
|
10502
10537
|
*
|
|
10503
10538
|
* @tags space-content
|
|
10504
10539
|
* @name ListSpacePageMetaLinks
|
|
10505
|
-
* @summary
|
|
10540
|
+
* @summary Get navigation metadata links for a page (previous, next, parent)
|
|
10506
10541
|
* @request GET:/spaces/{spaceId}/content/page/{pageId}/meta-links
|
|
10507
10542
|
* @secure
|
|
10508
10543
|
*/
|
|
10509
10544
|
listSpacePageMetaLinks: (spaceId: EntityId, pageId: EntityId, params?: RequestParams) => Promise<HttpResponse<RevisionPageMetaLinks, any>>;
|
|
10510
10545
|
/**
|
|
10511
|
-
*
|
|
10546
|
+
* @description Retrieves a page by its URL path (e.g. /guides/getting-started) from the space's current revision. Use this when you have a page's path rather than its ID. Returns either a document page or a group/section page depending on the path.
|
|
10512
10547
|
*
|
|
10513
10548
|
* @tags space-content
|
|
10514
10549
|
* @name GetPageByPath
|
|
10515
|
-
* @summary Get a space
|
|
10550
|
+
* @summary Get a page from a space by its URL path
|
|
10516
10551
|
* @request GET:/spaces/{spaceId}/content/path/{pagePath}
|
|
10517
10552
|
* @secure
|
|
10518
10553
|
*/
|
|
@@ -10554,11 +10589,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10554
10589
|
computed?: boolean;
|
|
10555
10590
|
}, params?: RequestParams) => Promise<HttpResponse<RevisionPageDocument | RevisionPageGroup, any>>;
|
|
10556
10591
|
/**
|
|
10557
|
-
*
|
|
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.
|
|
10558
10593
|
*
|
|
10559
10594
|
* @tags space-content
|
|
10560
10595
|
* @name GetReusableContentById
|
|
10561
|
-
* @summary Get a
|
|
10596
|
+
* @summary Get a reusable content block from a space by its ID
|
|
10562
10597
|
* @request GET:/spaces/{spaceId}/content/reusable-contents/{reusableContentId}
|
|
10563
10598
|
* @secure
|
|
10564
10599
|
*/
|
|
@@ -10575,11 +10610,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10575
10610
|
computed?: boolean;
|
|
10576
10611
|
}, params?: RequestParams) => Promise<HttpResponse<RevisionReusableContent, any>>;
|
|
10577
10612
|
/**
|
|
10578
|
-
*
|
|
10613
|
+
* @description Server-renders a document from a provided content source definition, evaluating template expressions and resolving variables to produce a fully computed document. Use this to preview how dynamic content will look without publishing a full revision.
|
|
10579
10614
|
*
|
|
10580
10615
|
* @tags space-content
|
|
10581
10616
|
* @name GetComputedDocument
|
|
10582
|
-
* @summary
|
|
10617
|
+
* @summary Compute and render a document from a structured content source
|
|
10583
10618
|
* @request POST:/spaces/{spaceId}/content/computed/document
|
|
10584
10619
|
* @secure
|
|
10585
10620
|
*/
|
|
@@ -10592,11 +10627,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10592
10627
|
schema?: "current" | "next";
|
|
10593
10628
|
}, params?: RequestParams) => Promise<HttpResponse<JSONDocument, any>>;
|
|
10594
10629
|
/**
|
|
10595
|
-
*
|
|
10630
|
+
* @description Server-renders an entire revision — pages, files, and reusable contents — from a provided content source definition, resolving all template expressions and variables. Use this to evaluate and preview computed content before publishing. Returns the full set of pages and files with all dynamic content fully resolved.
|
|
10596
10631
|
*
|
|
10597
10632
|
* @tags space-content
|
|
10598
10633
|
* @name GetComputedRevision
|
|
10599
|
-
* @summary
|
|
10634
|
+
* @summary Compute and render a full revision from a structured content source
|
|
10600
10635
|
* @request POST:/spaces/{spaceId}/content/computed/revision
|
|
10601
10636
|
* @secure
|
|
10602
10637
|
*/
|
|
@@ -10610,11 +10645,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10610
10645
|
reusableContents: RevisionReusableContent[];
|
|
10611
10646
|
}, any>>;
|
|
10612
10647
|
/**
|
|
10613
|
-
*
|
|
10648
|
+
* @description Returns the structured JSON document for a specific document ID within a space. Documents are the low-level block-based representation of page content. Use this when you have a documentId and need the raw block structure. To retrieve a page's document by pageId, use the page document endpoint instead.
|
|
10614
10649
|
*
|
|
10615
10650
|
* @tags space-content
|
|
10616
10651
|
* @name GetDocumentById
|
|
10617
|
-
* @summary Get a
|
|
10652
|
+
* @summary Get a raw document from a space by its document ID
|
|
10618
10653
|
* @request GET:/spaces/{spaceId}/documents/{documentId}
|
|
10619
10654
|
* @secure
|
|
10620
10655
|
*/
|
|
@@ -10623,27 +10658,27 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10623
10658
|
schema?: "current" | "next";
|
|
10624
10659
|
}, params?: RequestParams) => Promise<HttpResponse<JSONDocument, any>>;
|
|
10625
10660
|
/**
|
|
10626
|
-
*
|
|
10661
|
+
* @description Creates a new change request, which is a draft working copy of the space's content — similar to a Git branch or pull request. Use this before making content edits to avoid modifying the live published content directly. Optionally supply a subject and a template to pre-populate the change request with content. Once created, use the change-request content endpoints to read and modify pages within the draft, then merge it when ready.
|
|
10627
10662
|
*
|
|
10628
10663
|
* @tags change-requests
|
|
10629
10664
|
* @name CreateChangeRequest
|
|
10630
|
-
* @summary Create a change request
|
|
10665
|
+
* @summary Create a new change request in a space
|
|
10631
10666
|
* @request POST:/spaces/{spaceId}/change-requests
|
|
10632
10667
|
* @secure
|
|
10633
10668
|
*/
|
|
10634
10669
|
createChangeRequest: (spaceId: EntityId, data: {
|
|
10635
|
-
/** Subject of the change
|
|
10670
|
+
/** Subject of the change request */
|
|
10636
10671
|
subject?: string;
|
|
10637
10672
|
/** Template to apply to the change request */
|
|
10638
10673
|
template?: ApplySpaceTemplate;
|
|
10639
10674
|
[key: string]: any;
|
|
10640
10675
|
}, params?: RequestParams) => Promise<HttpResponse<ChangeRequest, any>>;
|
|
10641
10676
|
/**
|
|
10642
|
-
*
|
|
10677
|
+
* @description Returns a paginated list of change requests for the given space. Use this to discover existing change requests before creating a new one, or to find change requests assigned to a specific user for review.
|
|
10643
10678
|
*
|
|
10644
10679
|
* @tags change-requests
|
|
10645
10680
|
* @name ListChangeRequestsForSpace
|
|
10646
|
-
* @summary List all change requests
|
|
10681
|
+
* @summary List all change requests for a space
|
|
10647
10682
|
* @request GET:/spaces/{spaceId}/change-requests
|
|
10648
10683
|
* @secure
|
|
10649
10684
|
*/
|
|
@@ -10675,7 +10710,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10675
10710
|
items: ChangeRequest[];
|
|
10676
10711
|
}, any>>;
|
|
10677
10712
|
/**
|
|
10678
|
-
*
|
|
10713
|
+
* @description Retrieves the full details of a single change request, including its status, subject, description, and metadata. Use this to check the current state of a change request before deciding to merge, update, or request a review.
|
|
10679
10714
|
*
|
|
10680
10715
|
* @tags change-requests
|
|
10681
10716
|
* @name GetChangeRequestById
|
|
@@ -10691,11 +10726,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10691
10726
|
};
|
|
10692
10727
|
}>>;
|
|
10693
10728
|
/**
|
|
10694
|
-
*
|
|
10729
|
+
* @description Updates the metadata of a change request. Use this to rename a change request, add context before requesting a review, or change the workflow status without merging. To update page content within the change request, use the content endpoint instead.
|
|
10695
10730
|
*
|
|
10696
10731
|
* @tags change-requests
|
|
10697
10732
|
* @name UpdateChangeRequestById
|
|
10698
|
-
* @summary Update a change request
|
|
10733
|
+
* @summary Update a change request's subject, description, or status
|
|
10699
10734
|
* @request PATCH:/spaces/{spaceId}/change-requests/{changeRequestId}
|
|
10700
10735
|
* @secure
|
|
10701
10736
|
*/
|
|
@@ -10708,11 +10743,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10708
10743
|
status?: "draft" | "open" | "archived";
|
|
10709
10744
|
}, params?: RequestParams) => Promise<HttpResponse<ChangeRequest, any>>;
|
|
10710
10745
|
/**
|
|
10711
|
-
*
|
|
10746
|
+
* @description Merges the change request's draft content into the space's primary (published) content, making all changes live. If the result is "conflicts", the merge was still applied but the space may need manual conflict resolution. Consider running updateChangeRequest first to sync with the latest live content and reduce conflicts.
|
|
10712
10747
|
*
|
|
10713
10748
|
* @tags change-requests
|
|
10714
10749
|
* @name MergeChangeRequest
|
|
10715
|
-
* @summary Merge a change request
|
|
10750
|
+
* @summary Merge a change request into the space's live content
|
|
10716
10751
|
* @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/merge
|
|
10717
10752
|
* @secure
|
|
10718
10753
|
*/
|
|
@@ -10722,11 +10757,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10722
10757
|
result: "merge" | "conflicts";
|
|
10723
10758
|
}, any>>;
|
|
10724
10759
|
/**
|
|
10725
|
-
*
|
|
10760
|
+
* @description Rebases the change request onto the latest primary revision of the space, pulling in any changes that were merged to the live space since this change request was created. Run this before merging to minimise conflicts, especially if the change request has been open for a while.
|
|
10726
10761
|
*
|
|
10727
10762
|
* @tags change-requests
|
|
10728
10763
|
* @name UpdateChangeRequest
|
|
10729
|
-
* @summary
|
|
10764
|
+
* @summary Sync a change request with the latest live space content
|
|
10730
10765
|
* @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/update
|
|
10731
10766
|
* @secure
|
|
10732
10767
|
*/
|
|
@@ -10736,11 +10771,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10736
10771
|
result: "update" | "conflicts";
|
|
10737
10772
|
}, any>>;
|
|
10738
10773
|
/**
|
|
10739
|
-
*
|
|
10774
|
+
* @description Returns a paginated list of reviews submitted for the change request. Use this to check the current review status and whether all requested reviewers have responded before merging.
|
|
10740
10775
|
*
|
|
10741
10776
|
* @tags change-requests-reviews
|
|
10742
10777
|
* @name GetReviewsByChangeRequestId
|
|
10743
|
-
* @summary List all change request
|
|
10778
|
+
* @summary List all formal reviews submitted for a change request
|
|
10744
10779
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/reviews
|
|
10745
10780
|
* @secure
|
|
10746
10781
|
*/
|
|
@@ -10767,11 +10802,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10767
10802
|
};
|
|
10768
10803
|
}>>;
|
|
10769
10804
|
/**
|
|
10770
|
-
*
|
|
10805
|
+
* @description Submits a formal review decision (approved or changes-requested) on the change request, optionally with a rich-text comment. Use this to complete a review you were requested to perform. Only users who are requested reviewers or have space review permissions can submit a review.
|
|
10771
10806
|
*
|
|
10772
10807
|
* @tags change-requests-reviews
|
|
10773
10808
|
* @name SubmitChangeRequestReview
|
|
10774
|
-
* @summary Submit a change request
|
|
10809
|
+
* @summary Submit an approve or request-changes review for a change request
|
|
10775
10810
|
* @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/reviews
|
|
10776
10811
|
* @secure
|
|
10777
10812
|
*/
|
|
@@ -10782,11 +10817,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10782
10817
|
comment?: Document;
|
|
10783
10818
|
}, params?: RequestParams) => Promise<HttpResponse<ChangeRequestReview, any>>;
|
|
10784
10819
|
/**
|
|
10785
|
-
*
|
|
10820
|
+
* @description Retrieves the full details of a single review submission on a change request, including the decision status (approved/changes-requested), reviewer, and any attached comment. Use this when you have a review ID and need its full details.
|
|
10786
10821
|
*
|
|
10787
10822
|
* @tags change-requests-reviews
|
|
10788
10823
|
* @name GetChangeRequestReviewById
|
|
10789
|
-
* @summary Get a change request
|
|
10824
|
+
* @summary Get a specific review on a change request by its ID
|
|
10790
10825
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/reviews/{reviewId}
|
|
10791
10826
|
* @secure
|
|
10792
10827
|
*/
|
|
@@ -10801,11 +10836,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10801
10836
|
};
|
|
10802
10837
|
}>>;
|
|
10803
10838
|
/**
|
|
10804
|
-
*
|
|
10839
|
+
* @description Returns a paginated list of users who have been explicitly requested to review the change request. Use this to check who is currently assigned as a reviewer before adding or removing reviewer requests.
|
|
10805
10840
|
*
|
|
10806
10841
|
* @tags change-request-reviewers
|
|
10807
10842
|
* @name GetRequestedReviewersByChangeRequestId
|
|
10808
|
-
* @summary
|
|
10843
|
+
* @summary List all users requested to review a change request
|
|
10809
10844
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/requested-reviewers
|
|
10810
10845
|
* @secure
|
|
10811
10846
|
*/
|
|
@@ -10822,11 +10857,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10822
10857
|
items: ChangeRequestRequestedReviewer[];
|
|
10823
10858
|
}, any>>;
|
|
10824
10859
|
/**
|
|
10825
|
-
*
|
|
10860
|
+
* @description Sends review request notifications to one or more users, asking them to review the change request. Optionally updates the change request subject and description at the same time. Use this to move the change request into the review workflow after finishing edits. The users array must contain at least one valid user ID.
|
|
10826
10861
|
*
|
|
10827
10862
|
* @tags change-request-reviewers
|
|
10828
10863
|
* @name RequestReviewersForChangeRequest
|
|
10829
|
-
* @summary
|
|
10864
|
+
* @summary Send review requests to users for a change request
|
|
10830
10865
|
* @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/requested-reviewers
|
|
10831
10866
|
* @secure
|
|
10832
10867
|
*/
|
|
@@ -10852,11 +10887,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10852
10887
|
*/
|
|
10853
10888
|
removeRequestedReviewerFromChangeRequest: (spaceId: EntityId, changeRequestId: EntityId, userId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
10854
10889
|
/**
|
|
10855
|
-
*
|
|
10890
|
+
* @description Returns a paginated list of AI agent conversations that were created in the context of this change request. These conversations capture the AI-assisted editing sessions that contributed to the draft. Use this to review the history of AI interactions on a change request before merging.
|
|
10856
10891
|
*
|
|
10857
10892
|
* @tags change-request-conversations
|
|
10858
10893
|
* @name ListChangeRequestConversations
|
|
10859
|
-
* @summary List
|
|
10894
|
+
* @summary List AI agent conversations associated with a change request
|
|
10860
10895
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/conversations
|
|
10861
10896
|
* @secure
|
|
10862
10897
|
*/
|
|
@@ -10873,11 +10908,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10873
10908
|
items: AgentConversation[];
|
|
10874
10909
|
}, any>>;
|
|
10875
10910
|
/**
|
|
10876
|
-
*
|
|
10911
|
+
* @description Updates a specific AI agent conversation associated with a change request. Use this to rename the conversation.
|
|
10877
10912
|
*
|
|
10878
10913
|
* @tags change-request-conversations
|
|
10879
10914
|
* @name UpdateChangeRequestConversation
|
|
10880
|
-
* @summary Update an agent conversation
|
|
10915
|
+
* @summary Update an AI agent conversation on a change request
|
|
10881
10916
|
* @request PATCH:/spaces/{spaceId}/change-requests/{changeRequestId}/conversations/{conversationId}
|
|
10882
10917
|
* @secure
|
|
10883
10918
|
*/
|
|
@@ -10896,47 +10931,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10896
10931
|
*/
|
|
10897
10932
|
deleteChangeRequestConversation: (spaceId: EntityId, changeRequestId: EntityId, conversationId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
10898
10933
|
/**
|
|
10899
|
-
*
|
|
10900
|
-
*
|
|
10901
|
-
* @tags change-requests-links, links, critical
|
|
10902
|
-
* @name ListChangeRequestLinks
|
|
10903
|
-
* @summary List all change request links
|
|
10904
|
-
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/links
|
|
10905
|
-
* @secure
|
|
10906
|
-
*/
|
|
10907
|
-
listChangeRequestLinks: (spaceId: EntityId, changeRequestId: EntityId, query?: {
|
|
10908
|
-
/** Identifier of the page results to fetch. */
|
|
10909
|
-
page?: string;
|
|
10910
|
-
/**
|
|
10911
|
-
* The number of results per page
|
|
10912
|
-
* @min 0
|
|
10913
|
-
* @max 1000
|
|
10914
|
-
*/
|
|
10915
|
-
limit?: number;
|
|
10916
|
-
/**
|
|
10917
|
-
* Text to display to represent the reference. Possible values include:
|
|
10918
|
-
* - `ok` - No problems detected for this content reference.
|
|
10919
|
-
* - `broken` - The target does not exist in the revision.
|
|
10920
|
-
* - `in-app` - The target is a URL link pointing to an internal location in the app.
|
|
10921
|
-
*/
|
|
10922
|
-
status?: ContentReferenceStatus;
|
|
10923
|
-
brokenContext?: "change-request" | "space";
|
|
10924
|
-
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
10925
|
-
stats: ContentReferencesStats;
|
|
10926
|
-
items: ContentReferenceUsage[];
|
|
10927
|
-
}, {
|
|
10928
|
-
error: {
|
|
10929
|
-
/** @format int32 */
|
|
10930
|
-
code: 404;
|
|
10931
|
-
message: string;
|
|
10932
|
-
};
|
|
10933
|
-
}>>;
|
|
10934
|
-
/**
|
|
10935
|
-
* No description
|
|
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.
|
|
10936
10935
|
*
|
|
10937
10936
|
* @tags change-request-comments
|
|
10938
10937
|
* @name ListCommentsInChangeRequest
|
|
10939
|
-
* @summary List all change request
|
|
10938
|
+
* @summary List all top-level comments in a change request
|
|
10940
10939
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/comments
|
|
10941
10940
|
* @secure
|
|
10942
10941
|
*/
|
|
@@ -10969,21 +10968,21 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10969
10968
|
items: Comment[];
|
|
10970
10969
|
}, any>>;
|
|
10971
10970
|
/**
|
|
10972
|
-
*
|
|
10971
|
+
* @description Posts a new top-level comment on the change request. Comments can be general or anchored to a specific page and inline location within the change request content. Use this to provide review feedback, ask questions, or flag issues. To reply to an existing comment, use the comment replies endpoint instead.
|
|
10973
10972
|
*
|
|
10974
10973
|
* @tags change-request-comments
|
|
10975
10974
|
* @name PostCommentInChangeRequest
|
|
10976
|
-
* @summary
|
|
10975
|
+
* @summary Post a new comment on a change request
|
|
10977
10976
|
* @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/comments
|
|
10978
10977
|
* @secure
|
|
10979
10978
|
*/
|
|
10980
10979
|
postCommentInChangeRequest: (spaceId: EntityId, changeRequestId: EntityId, data: PostCommentSchema, params?: RequestParams) => Promise<HttpResponse<Comment, any>>;
|
|
10981
10980
|
/**
|
|
10982
|
-
*
|
|
10981
|
+
* @description Retrieves a specific comment from a change request, including its content, author, and anchor location. Use this when you have a comment ID (e.g., from a notification or list) and need its full details.
|
|
10983
10982
|
*
|
|
10984
10983
|
* @tags change-request-comments
|
|
10985
10984
|
* @name GetCommentInChangeRequest
|
|
10986
|
-
* @summary Get a change request
|
|
10985
|
+
* @summary Get a single comment from a change request by its ID
|
|
10987
10986
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}
|
|
10988
10987
|
* @secure
|
|
10989
10988
|
*/
|
|
@@ -11002,21 +11001,21 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11002
11001
|
*/
|
|
11003
11002
|
deleteCommentInChangeRequest: (spaceId: EntityId, changeRequestId: EntityId, commentId: EntityId, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
11004
11003
|
/**
|
|
11005
|
-
*
|
|
11004
|
+
* @description Replaces the body or status of an existing change request comment. Use this to edit the text of a comment you previously posted, or to resolve/reopen a comment thread. Only the comment author or space admins can update a comment.
|
|
11006
11005
|
*
|
|
11007
11006
|
* @tags change-request-comments
|
|
11008
11007
|
* @name UpdateCommentInChangeRequest
|
|
11009
|
-
* @summary Update a change request comment
|
|
11008
|
+
* @summary Update the content or status of a change request comment
|
|
11010
11009
|
* @request PUT:/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}
|
|
11011
11010
|
* @secure
|
|
11012
11011
|
*/
|
|
11013
11012
|
updateCommentInChangeRequest: (spaceId: EntityId, changeRequestId: EntityId, commentId: EntityId, data: UpdateCommentSchema, params?: RequestParams) => Promise<HttpResponse<Comment, any>>;
|
|
11014
11013
|
/**
|
|
11015
|
-
*
|
|
11014
|
+
* @description Returns a paginated list of replies to a specific top-level comment in a change request. Use this to read the full thread of a review discussion on a particular comment before adding a reply.
|
|
11016
11015
|
*
|
|
11017
11016
|
* @tags change-request-comments
|
|
11018
11017
|
* @name ListCommentRepliesInChangeRequest
|
|
11019
|
-
* @summary List all change request comment
|
|
11018
|
+
* @summary List all replies to a change request comment
|
|
11020
11019
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}/replies
|
|
11021
11020
|
* @secure
|
|
11022
11021
|
*/
|
|
@@ -11035,11 +11034,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11035
11034
|
items: CommentReply[];
|
|
11036
11035
|
}, any>>;
|
|
11037
11036
|
/**
|
|
11038
|
-
*
|
|
11037
|
+
* @description Adds a reply to an existing comment thread on a change request. Use this to respond to review feedback or continue a discussion on a specific comment. To start a new top-level comment rather than replying, use the change request comments endpoint.
|
|
11039
11038
|
*
|
|
11040
11039
|
* @tags change-request-comments
|
|
11041
11040
|
* @name PostCommentReplyInChangeRequest
|
|
11042
|
-
* @summary
|
|
11041
|
+
* @summary Post a reply to a change request comment
|
|
11043
11042
|
* @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}/replies
|
|
11044
11043
|
* @secure
|
|
11045
11044
|
*/
|
|
@@ -11048,11 +11047,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11048
11047
|
format?: "document" | "markdown";
|
|
11049
11048
|
}, params?: RequestParams) => Promise<HttpResponse<CommentReply, any>>;
|
|
11050
11049
|
/**
|
|
11051
|
-
*
|
|
11050
|
+
* @description Retrieves a specific reply within a change request comment thread. Use this when you have a reply ID and need its full content and author details.
|
|
11052
11051
|
*
|
|
11053
11052
|
* @tags change-request-comments
|
|
11054
11053
|
* @name GetCommentReplyInChangeRequest
|
|
11055
|
-
* @summary Get a change request comment
|
|
11054
|
+
* @summary Get a single reply to a change request comment
|
|
11056
11055
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}/replies/{commentReplyId}
|
|
11057
11056
|
* @secure
|
|
11058
11057
|
*/
|
|
@@ -11061,11 +11060,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11061
11060
|
format?: "document" | "markdown";
|
|
11062
11061
|
}, params?: RequestParams) => Promise<HttpResponse<CommentReply, any>>;
|
|
11063
11062
|
/**
|
|
11064
|
-
*
|
|
11063
|
+
* @description Replaces the body of an existing reply in a change request comment thread. Use this to correct or amend a reply you previously posted. Only the reply author or space admins can update a reply.
|
|
11065
11064
|
*
|
|
11066
11065
|
* @tags change-request-comments
|
|
11067
11066
|
* @name UpdateCommentReplyInChangeRequest
|
|
11068
|
-
* @summary Update a change request comment reply
|
|
11067
|
+
* @summary Update the content of a change request comment reply
|
|
11069
11068
|
* @request PUT:/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}/replies/{commentReplyId}
|
|
11070
11069
|
* @secure
|
|
11071
11070
|
*/
|
|
@@ -11081,11 +11080,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11081
11080
|
*/
|
|
11082
11081
|
deleteCommentReplyInChangeRequest: (spaceId: EntityId, changeRequestId: EntityId, commentId: EntityId, commentReplyId: EntityId, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
11083
11082
|
/**
|
|
11084
|
-
*
|
|
11083
|
+
* @description Returns a list of users who have contributed content edits to the change request. Use this to identify who has been actively editing the draft, for example when deciding who to notify before merging.
|
|
11085
11084
|
*
|
|
11086
11085
|
* @tags change-request-contributors
|
|
11087
11086
|
* @name GetContributorsByChangeRequestId
|
|
11088
|
-
* @summary
|
|
11087
|
+
* @summary List all users who have made edits to a change request
|
|
11089
11088
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/contributors
|
|
11090
11089
|
* @secure
|
|
11091
11090
|
*/
|
|
@@ -11099,11 +11098,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11099
11098
|
};
|
|
11100
11099
|
}>>;
|
|
11101
11100
|
/**
|
|
11102
|
-
*
|
|
11101
|
+
* @description Returns the current revision snapshot of the change request, including the full page tree structure and metadata. Use this to inspect the overall state of the change request's content, such as the list of pages and their hierarchy, without fetching each page individually. For page content (body text), use the individual page endpoints.
|
|
11103
11102
|
*
|
|
11104
11103
|
* @tags change-request-content
|
|
11105
11104
|
* @name GetRevisionOfChangeRequestById
|
|
11106
|
-
* @summary Get
|
|
11105
|
+
* @summary Get the latest content revision of a change request
|
|
11107
11106
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content
|
|
11108
11107
|
* @secure
|
|
11109
11108
|
*/
|
|
@@ -11120,11 +11119,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11120
11119
|
computed?: boolean;
|
|
11121
11120
|
}, params?: RequestParams) => Promise<HttpResponse<Revision, any>>;
|
|
11122
11121
|
/**
|
|
11123
|
-
* @description
|
|
11122
|
+
* @description Applies an ordered array of content changes (up to 50) to the change request atomically, creating a single new revision. Changes are applied sequentially; if any single change is invalid the entire batch is rejected and no revision is created. Use this to create, update, move, or delete pages within a change request before merging to live. This is the primary way to programmatically author content in a change request.
|
|
11124
11123
|
*
|
|
11125
11124
|
* @tags change-request-content
|
|
11126
11125
|
* @name UpdateChangeRequestContent
|
|
11127
|
-
* @summary
|
|
11126
|
+
* @summary Apply a batch of content changes to a change request
|
|
11128
11127
|
* @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/content
|
|
11129
11128
|
* @secure
|
|
11130
11129
|
*/
|
|
@@ -11142,11 +11141,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11142
11141
|
};
|
|
11143
11142
|
}>>;
|
|
11144
11143
|
/**
|
|
11145
|
-
*
|
|
11144
|
+
* @description Returns the full flat list of all pages in the change request's current draft revision, including page groups. Does not include page body content — use the individual page endpoint to fetch content. Use this to get an overview of the draft's page structure before reading or modifying specific pages.
|
|
11146
11145
|
*
|
|
11147
11146
|
* @tags change-request-content
|
|
11148
11147
|
* @name ListPagesInChangeRequest
|
|
11149
|
-
* @summary List all change request
|
|
11148
|
+
* @summary List all pages in a change request as a flat list
|
|
11150
11149
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/pages
|
|
11151
11150
|
* @secure
|
|
11152
11151
|
*/
|
|
@@ -11165,11 +11164,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11165
11164
|
pages: RevisionPage[];
|
|
11166
11165
|
}, any>>;
|
|
11167
11166
|
/**
|
|
11168
|
-
*
|
|
11167
|
+
* @description Returns a paginated list of files (images and other attachments) stored in the change request's current revision. Use this to inspect uploaded assets within a draft before merging. For files in the live published space, use the space content files endpoint.
|
|
11169
11168
|
*
|
|
11170
11169
|
* @tags change-request-content
|
|
11171
11170
|
* @name ListFilesInChangeRequestById
|
|
11172
|
-
* @summary List all change request
|
|
11171
|
+
* @summary List all files (images/attachments) in a change request
|
|
11173
11172
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/files
|
|
11174
11173
|
* @secure
|
|
11175
11174
|
*/
|
|
@@ -11196,11 +11195,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11196
11195
|
items: RevisionFile[];
|
|
11197
11196
|
}, any>>;
|
|
11198
11197
|
/**
|
|
11199
|
-
*
|
|
11198
|
+
* @description Retrieves metadata for a single file (image or attachment) stored in the change request's current revision. Use this to get the download URL or details of a specific asset referenced by a page in the change request.
|
|
11200
11199
|
*
|
|
11201
11200
|
* @tags change-request-content
|
|
11202
11201
|
* @name GetFileInChangeRequestById
|
|
11203
|
-
* @summary Get a change request
|
|
11202
|
+
* @summary Get a specific file in a change request by its ID
|
|
11204
11203
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/files/{fileId}
|
|
11205
11204
|
* @secure
|
|
11206
11205
|
*/
|
|
@@ -11217,32 +11216,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11217
11216
|
computed?: boolean;
|
|
11218
11217
|
}, params?: RequestParams) => Promise<HttpResponse<RevisionFile, any>>;
|
|
11219
11218
|
/**
|
|
11220
|
-
*
|
|
11221
|
-
*
|
|
11222
|
-
* @tags change-request-content
|
|
11223
|
-
* @name ListChangeRequestFileBacklinks
|
|
11224
|
-
* @summary List all backlink locations of a change request file
|
|
11225
|
-
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/files/{fileId}/backlinks
|
|
11226
|
-
* @secure
|
|
11227
|
-
*/
|
|
11228
|
-
listChangeRequestFileBacklinks: (spaceId: EntityId, changeRequestId: EntityId, fileId: EntityId, query?: {
|
|
11229
|
-
/** Identifier of the page results to fetch. */
|
|
11230
|
-
page?: string;
|
|
11231
|
-
/**
|
|
11232
|
-
* The number of results per page
|
|
11233
|
-
* @min 0
|
|
11234
|
-
* @max 1000
|
|
11235
|
-
*/
|
|
11236
|
-
limit?: number;
|
|
11237
|
-
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
11238
|
-
items: ContentLocation[];
|
|
11239
|
-
}, any>>;
|
|
11240
|
-
/**
|
|
11241
|
-
* No description
|
|
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.
|
|
11242
11220
|
*
|
|
11243
11221
|
* @tags change-request-content
|
|
11244
11222
|
* @name GetPageInChangeRequestById
|
|
11245
|
-
* @summary Get a change request
|
|
11223
|
+
* @summary Get a page in a change request by its ID
|
|
11246
11224
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}
|
|
11247
11225
|
* @secure
|
|
11248
11226
|
*/
|
|
@@ -11284,64 +11262,21 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11284
11262
|
computed?: boolean;
|
|
11285
11263
|
}, params?: RequestParams) => Promise<HttpResponse<RevisionPage, any>>;
|
|
11286
11264
|
/**
|
|
11287
|
-
*
|
|
11288
|
-
*
|
|
11289
|
-
* @tags change-request-content, critical
|
|
11290
|
-
* @name ListPageLinksInChangeRequest
|
|
11291
|
-
* @summary List all change request links
|
|
11292
|
-
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}/links
|
|
11293
|
-
* @secure
|
|
11294
|
-
*/
|
|
11295
|
-
listPageLinksInChangeRequest: (spaceId: EntityId, changeRequestId: EntityId, pageId: EntityId, query?: {
|
|
11296
|
-
/** Identifier of the page results to fetch. */
|
|
11297
|
-
page?: string;
|
|
11298
|
-
/**
|
|
11299
|
-
* The number of results per page
|
|
11300
|
-
* @min 0
|
|
11301
|
-
* @max 1000
|
|
11302
|
-
*/
|
|
11303
|
-
limit?: number;
|
|
11304
|
-
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
11305
|
-
stats: ContentReferencesStats;
|
|
11306
|
-
items: ContentReferenceUsage[];
|
|
11307
|
-
}, any>>;
|
|
11308
|
-
/**
|
|
11309
|
-
* No description
|
|
11310
|
-
*
|
|
11311
|
-
* @tags change-request-content
|
|
11312
|
-
* @name ListChangeRequestPageBacklinks
|
|
11313
|
-
* @summary List all backlink locations of a change request page
|
|
11314
|
-
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}/backlinks
|
|
11315
|
-
* @secure
|
|
11316
|
-
*/
|
|
11317
|
-
listChangeRequestPageBacklinks: (spaceId: EntityId, changeRequestId: EntityId, pageId: EntityId, query?: {
|
|
11318
|
-
/** Identifier of the page results to fetch. */
|
|
11319
|
-
page?: string;
|
|
11320
|
-
/**
|
|
11321
|
-
* The number of results per page
|
|
11322
|
-
* @min 0
|
|
11323
|
-
* @max 1000
|
|
11324
|
-
*/
|
|
11325
|
-
limit?: number;
|
|
11326
|
-
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
11327
|
-
items: ContentLocation[];
|
|
11328
|
-
}, any>>;
|
|
11329
|
-
/**
|
|
11330
|
-
* No description
|
|
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.
|
|
11331
11266
|
*
|
|
11332
11267
|
* @tags change-request-content
|
|
11333
11268
|
* @name ListChangeRequestPageMetaLinks
|
|
11334
|
-
* @summary
|
|
11269
|
+
* @summary Get navigation meta-links (prev/next/parent) for a change request page
|
|
11335
11270
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}/meta-links
|
|
11336
11271
|
* @secure
|
|
11337
11272
|
*/
|
|
11338
11273
|
listChangeRequestPageMetaLinks: (spaceId: EntityId, changeRequestId: EntityId, pageId: EntityId, params?: RequestParams) => Promise<HttpResponse<RevisionPageMetaLinks, any>>;
|
|
11339
11274
|
/**
|
|
11340
|
-
*
|
|
11275
|
+
* @description Retrieves a specific reusable content block (a shared snippet that can be embedded across multiple pages) from the change request's draft revision. Use this to inspect the current draft state of a shared content block before merging.
|
|
11341
11276
|
*
|
|
11342
11277
|
* @tags change-request-content
|
|
11343
11278
|
* @name GetReusableContentInChangeRequestById
|
|
11344
|
-
* @summary Get a change request
|
|
11279
|
+
* @summary Get a reusable content block in a change request by its ID
|
|
11345
11280
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/reusable-contents/{reusableContentId}
|
|
11346
11281
|
* @secure
|
|
11347
11282
|
*/
|
|
@@ -11358,11 +11293,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11358
11293
|
computed?: boolean;
|
|
11359
11294
|
}, params?: RequestParams) => Promise<HttpResponse<RevisionReusableContent, any>>;
|
|
11360
11295
|
/**
|
|
11361
|
-
* @description
|
|
11296
|
+
* @description Returns the semantic diff between the change request's current content and the base revision it branched from. Each item describes a logical change such as a page added, removed, or modified. Use this to summarise what a change request changes before merging or reviewing. The default limit is 10 — increase it if the change request is large.
|
|
11362
11297
|
*
|
|
11363
11298
|
* @tags change-request-content
|
|
11364
11299
|
* @name GetChangeRequestChanges
|
|
11365
|
-
* @summary
|
|
11300
|
+
* @summary List semantic content changes in a change request vs its base
|
|
11366
11301
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/changes
|
|
11367
11302
|
* @secure
|
|
11368
11303
|
*/
|
|
@@ -11380,11 +11315,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11380
11315
|
};
|
|
11381
11316
|
}>>;
|
|
11382
11317
|
/**
|
|
11383
|
-
*
|
|
11318
|
+
* @description Generates a temporary URL (valid for 1 hour) to download the change request's draft content as a PDF. Optionally scope the export to a single page using the page and only parameters. Use this to share or archive the draft content before merging.
|
|
11384
11319
|
*
|
|
11385
11320
|
* @tags change-requests
|
|
11386
11321
|
* @name GetChangeRequestPdf
|
|
11387
|
-
* @summary Get a URL
|
|
11322
|
+
* @summary Get a temporary URL to download a change request's content as PDF
|
|
11388
11323
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/pdf
|
|
11389
11324
|
* @secure
|
|
11390
11325
|
*/
|
|
@@ -11398,11 +11333,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11398
11333
|
url: URL;
|
|
11399
11334
|
}, any>>;
|
|
11400
11335
|
/**
|
|
11401
|
-
*
|
|
11336
|
+
* @description Returns a specific revision snapshot of a space by its revision ID, including the page tree structure and revision metadata. Use this to inspect a historical state of a space. To access the current live content, use the space content endpoint instead.
|
|
11402
11337
|
*
|
|
11403
11338
|
* @tags space-content
|
|
11404
11339
|
* @name GetRevisionById
|
|
11405
|
-
* @summary Get a
|
|
11340
|
+
* @summary Get a specific historical revision of a space
|
|
11406
11341
|
* @request GET:/spaces/{spaceId}/revisions/{revisionId}
|
|
11407
11342
|
* @secure
|
|
11408
11343
|
*/
|
|
@@ -11419,11 +11354,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11419
11354
|
computed?: boolean;
|
|
11420
11355
|
}, params?: RequestParams) => Promise<HttpResponse<Revision, any>>;
|
|
11421
11356
|
/**
|
|
11422
|
-
* @description
|
|
11357
|
+
* @description Returns a structured diff of the semantic changes introduced by a revision compared to its parent revision, such as added, removed, or updated pages and blocks. Use this to understand what changed in a specific revision.
|
|
11423
11358
|
*
|
|
11424
11359
|
* @tags space-content
|
|
11425
11360
|
* @name GetRevisionSemanticChanges
|
|
11426
|
-
* @summary Get
|
|
11361
|
+
* @summary Get semantic content changes introduced by a revision
|
|
11427
11362
|
* @request GET:/spaces/{spaceId}/revisions/{revisionId}/changes
|
|
11428
11363
|
* @secure
|
|
11429
11364
|
*/
|
|
@@ -11445,11 +11380,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11445
11380
|
limit?: number;
|
|
11446
11381
|
}, params?: RequestParams) => Promise<HttpResponse<RevisionSemanticChanges, any>>;
|
|
11447
11382
|
/**
|
|
11448
|
-
*
|
|
11383
|
+
* @description Returns the full flat list of all pages (document pages and group pages) in a specific historical revision of a space. Use this to inspect the complete page tree of a past snapshot. For the current live content pages, use the space content pages endpoint.
|
|
11449
11384
|
*
|
|
11450
11385
|
* @tags space-content
|
|
11451
11386
|
* @name ListPagesInRevisionById
|
|
11452
|
-
* @summary List all pages in a
|
|
11387
|
+
* @summary List all pages in a specific historical revision of a space
|
|
11453
11388
|
* @request GET:/spaces/{spaceId}/revisions/{revisionId}/pages
|
|
11454
11389
|
* @secure
|
|
11455
11390
|
*/
|
|
@@ -11468,11 +11403,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11468
11403
|
pages: RevisionPage[];
|
|
11469
11404
|
}, any>>;
|
|
11470
11405
|
/**
|
|
11471
|
-
*
|
|
11406
|
+
* @description Returns a paginated list of files (images and other binary assets) attached to a specific revision of a space. Use this to enumerate all media assets present in a historical snapshot. To get a single file, use the revision file by ID endpoint.
|
|
11472
11407
|
*
|
|
11473
11408
|
* @tags space-content
|
|
11474
11409
|
* @name ListFilesInRevisionById
|
|
11475
|
-
* @summary List all space revision
|
|
11410
|
+
* @summary List all files (images, assets) in a specific space revision
|
|
11476
11411
|
* @request GET:/spaces/{spaceId}/revisions/{revisionId}/files
|
|
11477
11412
|
* @secure
|
|
11478
11413
|
*/
|
|
@@ -11499,11 +11434,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11499
11434
|
items: RevisionFile[];
|
|
11500
11435
|
}, any>>;
|
|
11501
11436
|
/**
|
|
11502
|
-
*
|
|
11437
|
+
* @description Returns the metadata for a single file (image or binary asset) within a specific revision of a space. Use this to retrieve download URL, MIME type, and dimensions for a known file ID. To list all files in a revision, use the revision files list endpoint.
|
|
11503
11438
|
*
|
|
11504
11439
|
* @tags space-content
|
|
11505
11440
|
* @name GetFileInRevisionById
|
|
11506
|
-
* @summary Get a space revision
|
|
11441
|
+
* @summary Get a specific file from a space revision by its file ID
|
|
11507
11442
|
* @request GET:/spaces/{spaceId}/revisions/{revisionId}/files/{fileId}
|
|
11508
11443
|
* @secure
|
|
11509
11444
|
*/
|
|
@@ -11520,11 +11455,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11520
11455
|
computed?: boolean;
|
|
11521
11456
|
}, params?: RequestParams) => Promise<HttpResponse<RevisionFile, any>>;
|
|
11522
11457
|
/**
|
|
11523
|
-
*
|
|
11458
|
+
* @description Returns the full page object (metadata and optionally document content) for a specific page within a historical revision. Use documentFormat to control whether content is returned as blocks or markdown. To get a page from the current live revision, use the space content page endpoint.
|
|
11524
11459
|
*
|
|
11525
11460
|
* @tags space-content
|
|
11526
11461
|
* @name GetPageInRevisionById
|
|
11527
|
-
* @summary Get a
|
|
11462
|
+
* @summary Get a page from a specific historical revision by its page ID
|
|
11528
11463
|
* @request GET:/spaces/{spaceId}/revisions/{revisionId}/page/{pageId}
|
|
11529
11464
|
* @secure
|
|
11530
11465
|
*/
|
|
@@ -11566,11 +11501,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11566
11501
|
computed?: boolean;
|
|
11567
11502
|
}, params?: RequestParams) => Promise<HttpResponse<RevisionPage, any>>;
|
|
11568
11503
|
/**
|
|
11569
|
-
*
|
|
11504
|
+
* @description Returns the structured JSON document (block tree) for a specific page within a historical revision of a space. Use this when you need the low-level block representation of historical page content. For the current live content, use the space content page document endpoint.
|
|
11570
11505
|
*
|
|
11571
11506
|
* @tags space-content
|
|
11572
11507
|
* @name GetPageDocumentInRevisionById
|
|
11573
|
-
* @summary Get the document of a page in a revision
|
|
11508
|
+
* @summary Get the raw document body of a page in a historical revision
|
|
11574
11509
|
* @request GET:/spaces/{spaceId}/revisions/{revisionId}/page/{pageId}/document
|
|
11575
11510
|
* @secure
|
|
11576
11511
|
*/
|
|
@@ -11592,11 +11527,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11592
11527
|
dereferenced?: boolean | "reusable-contents";
|
|
11593
11528
|
}, params?: RequestParams) => Promise<HttpResponse<JSONDocument, any>>;
|
|
11594
11529
|
/**
|
|
11595
|
-
*
|
|
11530
|
+
* @description Returns a page from a historical revision looked up by its URL path (e.g. "getting-started/installation") rather than its ID. Useful when you know the page path but not the ID. Use documentFormat to control whether content is returned as blocks or markdown. For the current live revision, use the content path endpoint.
|
|
11596
11531
|
*
|
|
11597
11532
|
* @tags space-content
|
|
11598
11533
|
* @name GetPageInRevisionByPath
|
|
11599
|
-
* @summary Get a
|
|
11534
|
+
* @summary Get a page from a specific historical revision by its URL path
|
|
11600
11535
|
* @request GET:/spaces/{spaceId}/revisions/{revisionId}/path/{pagePath}
|
|
11601
11536
|
* @secure
|
|
11602
11537
|
*/
|
|
@@ -11638,21 +11573,21 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11638
11573
|
computed?: boolean;
|
|
11639
11574
|
}, params?: RequestParams) => Promise<HttpResponse<RevisionPageDocument | RevisionPageGroup, any>>;
|
|
11640
11575
|
/**
|
|
11641
|
-
*
|
|
11576
|
+
* @description Returns the meta navigation links for a specific page within a historical revision, including the previous and next page in the space's reading order. Use this to implement sequential navigation across historical content or to build a reading flow for a specific revision.
|
|
11642
11577
|
*
|
|
11643
11578
|
* @tags space-content
|
|
11644
11579
|
* @name ListRevisionPageMetaLinks
|
|
11645
|
-
* @summary List all meta links for a revision
|
|
11580
|
+
* @summary List all meta links (prev/next navigation) for a page in a revision
|
|
11646
11581
|
* @request GET:/spaces/{spaceId}/revisions/{revisionId}/page/{pageId}/meta-links
|
|
11647
11582
|
* @secure
|
|
11648
11583
|
*/
|
|
11649
11584
|
listRevisionPageMetaLinks: (spaceId: EntityId, revisionId: EntityId, pageId: EntityId, params?: RequestParams) => Promise<HttpResponse<RevisionPageMetaLinks, any>>;
|
|
11650
11585
|
/**
|
|
11651
|
-
*
|
|
11586
|
+
* @description Retrieves a specific page from a change request's draft content using its URL path (e.g., "getting-started/installation") rather than its ID. Use this when you know the path of a page but not its ID. Returns either a document page or a page group, depending on the path. Supports the same format and evaluation options as the ID-based endpoint.
|
|
11652
11587
|
*
|
|
11653
11588
|
* @tags change-request-content
|
|
11654
11589
|
* @name GetPageInChangeRequestByPath
|
|
11655
|
-
* @summary Get a change request
|
|
11590
|
+
* @summary Get a page in a change request by its URL path
|
|
11656
11591
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/path/{pagePath}
|
|
11657
11592
|
* @secure
|
|
11658
11593
|
*/
|
|
@@ -11694,11 +11629,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11694
11629
|
computed?: boolean;
|
|
11695
11630
|
}, params?: RequestParams) => Promise<HttpResponse<RevisionPageDocument | RevisionPageGroup, any>>;
|
|
11696
11631
|
/**
|
|
11697
|
-
*
|
|
11632
|
+
* @description Returns metadata for a specific reusable content block within a historical revision of a space. Reusable content blocks are shared content snippets referenced across multiple pages. To get the actual document body of the reusable content, use the reusable content document endpoint.
|
|
11698
11633
|
*
|
|
11699
11634
|
* @tags space-content
|
|
11700
11635
|
* @name GetReusableContentInRevisionById
|
|
11701
|
-
* @summary Get a
|
|
11636
|
+
* @summary Get a reusable content block from a historical revision by its ID
|
|
11702
11637
|
* @request GET:/spaces/{spaceId}/revisions/{revisionId}/reusable-contents/{reusableContentId}
|
|
11703
11638
|
* @secure
|
|
11704
11639
|
*/
|
|
@@ -11715,11 +11650,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11715
11650
|
computed?: boolean;
|
|
11716
11651
|
}, params?: RequestParams) => Promise<HttpResponse<RevisionReusableContent, any>>;
|
|
11717
11652
|
/**
|
|
11718
|
-
*
|
|
11653
|
+
* @description Returns the structured JSON document (block tree) for a reusable content block within a specific historical revision of a space. Use this to read the actual content of a shared snippet at a point in time. For the metadata, use the reusable content by ID endpoint.
|
|
11719
11654
|
*
|
|
11720
11655
|
* @tags space-content
|
|
11721
11656
|
* @name GetReusableContentDocumentInRevisionById
|
|
11722
|
-
* @summary Get the document of a reusable content in a revision
|
|
11657
|
+
* @summary Get the document body of a reusable content block in a historical revision
|
|
11723
11658
|
* @request GET:/spaces/{spaceId}/revisions/{revisionId}/reusable-contents/{reusableContentId}/document
|
|
11724
11659
|
* @secure
|
|
11725
11660
|
*/
|
|
@@ -11741,11 +11676,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11741
11676
|
dereferenced?: boolean | "reusable-contents";
|
|
11742
11677
|
}, params?: RequestParams) => Promise<HttpResponse<JSONDocument, any>>;
|
|
11743
11678
|
/**
|
|
11744
|
-
*
|
|
11679
|
+
* @description Returns a paginated list of comments posted directly on the space (not inside a change request). To read replies to a specific comment, use the comment replies endpoint.
|
|
11745
11680
|
*
|
|
11746
11681
|
* @tags space-comments, critical
|
|
11747
11682
|
* @name ListCommentsInSpace
|
|
11748
|
-
* @summary List all
|
|
11683
|
+
* @summary List all top-level comments posted on a space
|
|
11749
11684
|
* @request GET:/spaces/{spaceId}/comments
|
|
11750
11685
|
* @secure
|
|
11751
11686
|
*/
|
|
@@ -11778,21 +11713,21 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11778
11713
|
items: Comment[];
|
|
11779
11714
|
}, any>>;
|
|
11780
11715
|
/**
|
|
11781
|
-
*
|
|
11716
|
+
* @description Creates a new top-level comment on the space, optionally anchored to a specific page or a text selection within a page. Use this to leave feedback, start a review thread, or annotate content. To reply to an existing comment, use the comment replies endpoint.
|
|
11782
11717
|
*
|
|
11783
11718
|
* @tags space-comments
|
|
11784
11719
|
* @name PostCommentInSpace
|
|
11785
|
-
* @summary
|
|
11720
|
+
* @summary Post a new comment on a space or a specific page
|
|
11786
11721
|
* @request POST:/spaces/{spaceId}/comments
|
|
11787
11722
|
* @secure
|
|
11788
11723
|
*/
|
|
11789
11724
|
postCommentInSpace: (spaceId: EntityId, data: PostCommentSchema, params?: RequestParams) => Promise<HttpResponse<Comment, any>>;
|
|
11790
11725
|
/**
|
|
11791
|
-
*
|
|
11726
|
+
* @description Returns a specific comment posted on a space. To list all comments in a space, use the space comments list endpoint.
|
|
11792
11727
|
*
|
|
11793
11728
|
* @tags space-comments
|
|
11794
11729
|
* @name GetCommentInSpace
|
|
11795
|
-
* @summary Get a space
|
|
11730
|
+
* @summary Get a single comment from a space by its ID
|
|
11796
11731
|
* @request GET:/spaces/{spaceId}/comments/{commentId}
|
|
11797
11732
|
* @secure
|
|
11798
11733
|
*/
|
|
@@ -11811,21 +11746,21 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11811
11746
|
*/
|
|
11812
11747
|
deleteCommentInSpace: (spaceId: EntityId, commentId: EntityId, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
11813
11748
|
/**
|
|
11814
|
-
*
|
|
11749
|
+
* @description Updates the content or resolution status of an existing comment on a space. Only the comment author or a space admin can update a comment. Use this to edit a comment's text, mark it as resolved, or reopen it.
|
|
11815
11750
|
*
|
|
11816
11751
|
* @tags space-comments
|
|
11817
11752
|
* @name UpdateCommentInSpace
|
|
11818
|
-
* @summary Update a space comment
|
|
11753
|
+
* @summary Update the body or status of a space comment
|
|
11819
11754
|
* @request PUT:/spaces/{spaceId}/comments/{commentId}
|
|
11820
11755
|
* @secure
|
|
11821
11756
|
*/
|
|
11822
11757
|
updateCommentInSpace: (spaceId: EntityId, commentId: EntityId, data: UpdateCommentSchema, params?: RequestParams) => Promise<HttpResponse<Comment, any>>;
|
|
11823
11758
|
/**
|
|
11824
|
-
*
|
|
11759
|
+
* @description Returns a paginated list of replies posted under a specific comment in a space. Use this to read the full conversation thread for a comment. To get the parent comment itself, use the space comment by ID endpoint.
|
|
11825
11760
|
*
|
|
11826
11761
|
* @tags space-comment
|
|
11827
11762
|
* @name ListCommentRepliesInSpace
|
|
11828
|
-
* @summary List all
|
|
11763
|
+
* @summary List all replies to a comment in a space
|
|
11829
11764
|
* @request GET:/spaces/{spaceId}/comments/{commentId}/replies
|
|
11830
11765
|
* @secure
|
|
11831
11766
|
*/
|
|
@@ -11844,21 +11779,21 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11844
11779
|
items: CommentReply[];
|
|
11845
11780
|
}, any>>;
|
|
11846
11781
|
/**
|
|
11847
|
-
*
|
|
11782
|
+
* @description Creates a reply to an existing comment on a space. Use this to continue a discussion thread started by a top-level comment. To start a new thread, use the space comment creation endpoint instead.
|
|
11848
11783
|
*
|
|
11849
11784
|
* @tags space-comments
|
|
11850
11785
|
* @name PostCommentReplyInSpace
|
|
11851
|
-
* @summary
|
|
11786
|
+
* @summary Post a reply to an existing space comment
|
|
11852
11787
|
* @request POST:/spaces/{spaceId}/comments/{commentId}/replies
|
|
11853
11788
|
* @secure
|
|
11854
11789
|
*/
|
|
11855
11790
|
postCommentReplyInSpace: (spaceId: EntityId, commentId: EntityId, data: PostCommentReplySchema, params?: RequestParams) => Promise<HttpResponse<CommentReply, any>>;
|
|
11856
11791
|
/**
|
|
11857
|
-
*
|
|
11792
|
+
* @description Returns a specific reply to a comment in a space. To list all replies for a comment, use the comment replies list endpoint.
|
|
11858
11793
|
*
|
|
11859
11794
|
* @tags space-comments
|
|
11860
11795
|
* @name GetCommentReplyInSpace
|
|
11861
|
-
* @summary Get a space comment
|
|
11796
|
+
* @summary Get a single reply to a space comment by its ID
|
|
11862
11797
|
* @request GET:/spaces/{spaceId}/comments/{commentId}/replies/{commentReplyId}
|
|
11863
11798
|
* @secure
|
|
11864
11799
|
*/
|
|
@@ -11867,11 +11802,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11867
11802
|
format?: "document" | "markdown";
|
|
11868
11803
|
}, params?: RequestParams) => Promise<HttpResponse<CommentReply, any>>;
|
|
11869
11804
|
/**
|
|
11870
|
-
*
|
|
11805
|
+
* @description Updates the content of an existing reply to a comment in a space. Only the reply author or a space admin can update the reply. To update the parent comment, use the space comment update endpoint.
|
|
11871
11806
|
*
|
|
11872
11807
|
* @tags space-comments
|
|
11873
11808
|
* @name UpdateCommentReplyInSpace
|
|
11874
|
-
* @summary Update a space comment
|
|
11809
|
+
* @summary Update the body of a reply to a space comment
|
|
11875
11810
|
* @request PUT:/spaces/{spaceId}/comments/{commentId}/replies/{commentReplyId}
|
|
11876
11811
|
* @secure
|
|
11877
11812
|
*/
|
|
@@ -11887,11 +11822,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11887
11822
|
*/
|
|
11888
11823
|
deleteCommentReplyInSpace: (spaceId: EntityId, commentId: EntityId, commentReplyId: EntityId, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
11889
11824
|
/**
|
|
11890
|
-
*
|
|
11825
|
+
* @description Returns a paginated list of organization members who have posted at least one comment in the space. Use this to identify participants in a space's review or annotation workflow. For the actual comment content, use the space comments endpoint.
|
|
11891
11826
|
*
|
|
11892
11827
|
* @tags space-comments, critical
|
|
11893
11828
|
* @name ListCommentersInSpace
|
|
11894
|
-
* @summary List all users who
|
|
11829
|
+
* @summary List all users who have posted comments in a space
|
|
11895
11830
|
* @request GET:/spaces/{spaceId}/commenters
|
|
11896
11831
|
* @secure
|
|
11897
11832
|
*/
|
|
@@ -11908,11 +11843,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11908
11843
|
items: OrganizationMember[];
|
|
11909
11844
|
}, any>>;
|
|
11910
11845
|
/**
|
|
11911
|
-
*
|
|
11846
|
+
* @description Returns a paginated list of organization members who have posted at least one comment in the change request. Use this to identify who is actively engaged in the review discussion before adding or directing comments.
|
|
11912
11847
|
*
|
|
11913
11848
|
* @tags change-request-comments, critical
|
|
11914
11849
|
* @name ListCommentersInChangeRequest
|
|
11915
|
-
* @summary List all users who commented in a
|
|
11850
|
+
* @summary List all users who have commented in a change request
|
|
11916
11851
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/commenters
|
|
11917
11852
|
* @secure
|
|
11918
11853
|
*/
|
|
@@ -11952,11 +11887,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11952
11887
|
items: UserContentPermission[];
|
|
11953
11888
|
}, any>>;
|
|
11954
11889
|
/**
|
|
11955
|
-
*
|
|
11890
|
+
* @description Returns a paginated list of integrations that are currently installed and enabled on the space. Use the query parameter to filter by integration name. Use this to check which integrations are active before interacting with integration-specific features or blocks.
|
|
11956
11891
|
*
|
|
11957
11892
|
* @tags space-integrations
|
|
11958
11893
|
* @name ListSpaceIntegrations
|
|
11959
|
-
* @summary List integrations enabled
|
|
11894
|
+
* @summary List all third-party integrations enabled on a space
|
|
11960
11895
|
* @request GET:/spaces/{spaceId}/integrations
|
|
11961
11896
|
* @secure
|
|
11962
11897
|
*/
|
|
@@ -11967,11 +11902,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11967
11902
|
items: Integration[];
|
|
11968
11903
|
}, any>>;
|
|
11969
11904
|
/**
|
|
11970
|
-
*
|
|
11905
|
+
* @description Returns all custom block types contributed by integrations installed on the space. Integration blocks are custom content elements (e.g. embedded widgets, code runners) that integrations register for use in pages. Use this to discover what custom block types are available in a given space.
|
|
11971
11906
|
*
|
|
11972
11907
|
* @tags space-integrations
|
|
11973
11908
|
* @name ListSpaceIntegrationsBlocks
|
|
11974
|
-
* @summary List all
|
|
11909
|
+
* @summary List all custom content blocks provided by integrations in a space
|
|
11975
11910
|
* @request GET:/spaces/{spaceId}/integration-blocks
|
|
11976
11911
|
* @secure
|
|
11977
11912
|
*/
|
|
@@ -11983,11 +11918,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11983
11918
|
};
|
|
11984
11919
|
}>>;
|
|
11985
11920
|
/**
|
|
11986
|
-
*
|
|
11921
|
+
* @description Returns a short-lived URL (valid for 1 hour) to download the space's content as a PDF file.
|
|
11987
11922
|
*
|
|
11988
11923
|
* @tags space-content
|
|
11989
11924
|
* @name GetSpacePdf
|
|
11990
|
-
* @summary Get a URL
|
|
11925
|
+
* @summary Get a temporary URL to download a space or page as PDF
|
|
11991
11926
|
* @request GET:/spaces/{spaceId}/pdf
|
|
11992
11927
|
* @secure
|
|
11993
11928
|
*/
|
|
@@ -12000,41 +11935,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
12000
11935
|
/** Temporary URL to print the content. The URL will work for 1h. */
|
|
12001
11936
|
url: URL;
|
|
12002
11937
|
}, any>>;
|
|
12003
|
-
/**
|
|
12004
|
-
* No description
|
|
12005
|
-
*
|
|
12006
|
-
* @tags spaces, links, critical
|
|
12007
|
-
* @name ListSpaceLinks
|
|
12008
|
-
* @summary Get all links in a space including their status and location where they appear.
|
|
12009
|
-
* @request GET:/spaces/{spaceId}/links
|
|
12010
|
-
* @secure
|
|
12011
|
-
*/
|
|
12012
|
-
listSpaceLinks: (spaceId: EntityId, query?: {
|
|
12013
|
-
/** Identifier of the page results to fetch. */
|
|
12014
|
-
page?: string;
|
|
12015
|
-
/**
|
|
12016
|
-
* The number of results per page
|
|
12017
|
-
* @min 0
|
|
12018
|
-
* @max 1000
|
|
12019
|
-
*/
|
|
12020
|
-
limit?: number;
|
|
12021
|
-
/**
|
|
12022
|
-
* Text to display to represent the reference. Possible values include:
|
|
12023
|
-
* - `ok` - No problems detected for this content reference.
|
|
12024
|
-
* - `broken` - The target does not exist in the revision.
|
|
12025
|
-
* - `in-app` - The target is a URL link pointing to an internal location in the app.
|
|
12026
|
-
*/
|
|
12027
|
-
status?: ContentReferenceStatus;
|
|
12028
|
-
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
12029
|
-
stats: ContentReferencesStats;
|
|
12030
|
-
items: ContentReferenceUsage[];
|
|
12031
|
-
}, {
|
|
12032
|
-
error: {
|
|
12033
|
-
/** @format int32 */
|
|
12034
|
-
code: 404;
|
|
12035
|
-
message: string;
|
|
12036
|
-
};
|
|
12037
|
-
}>>;
|
|
12038
11938
|
};
|
|
12039
11939
|
collections: {
|
|
12040
11940
|
/**
|
|
@@ -12963,15 +12863,15 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
12963
12863
|
* @default "desc"
|
|
12964
12864
|
*/
|
|
12965
12865
|
order?: "asc" | "desc";
|
|
12966
|
-
/** The
|
|
12866
|
+
/** The role to filter the list by */
|
|
12967
12867
|
role?: MemberRole | "guest";
|
|
12968
|
-
/** A query to filter the
|
|
12868
|
+
/** A query to filter the list by display name and email */
|
|
12969
12869
|
search?: string;
|
|
12970
12870
|
/**
|
|
12971
|
-
* The property to sort the
|
|
12871
|
+
* The property to sort the list by
|
|
12972
12872
|
* @default "joinedAt"
|
|
12973
12873
|
*/
|
|
12974
|
-
sort?: "joinedAt" | "lastSeenAt";
|
|
12874
|
+
sort?: "joinedAt" | "lastSeenAt" | "name";
|
|
12975
12875
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
12976
12876
|
items: OrganizationMember[];
|
|
12977
12877
|
}, any>>;
|
|
@@ -13358,11 +13258,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13358
13258
|
items: SearchSpaceResult[];
|
|
13359
13259
|
}, any>>;
|
|
13360
13260
|
/**
|
|
13361
|
-
*
|
|
13261
|
+
* @description Returns a paginated list of change requests across all spaces in the organization. Use this for an organization-wide view of open drafts — for example, to find all change requests needing a specific reviewer's attention. For a single space's change requests, use the space-scoped endpoint instead.
|
|
13362
13262
|
*
|
|
13363
13263
|
* @tags change-requests
|
|
13364
13264
|
* @name ListChangeRequestsForOrganization
|
|
13365
|
-
* @summary List all change requests
|
|
13265
|
+
* @summary List all change requests across an entire organization
|
|
13366
13266
|
* @request GET:/orgs/{organizationId}/change-requests
|
|
13367
13267
|
* @secure
|
|
13368
13268
|
*/
|
|
@@ -13400,11 +13300,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13400
13300
|
items: ChangeRequest[];
|
|
13401
13301
|
}, any>>;
|
|
13402
13302
|
/**
|
|
13403
|
-
*
|
|
13303
|
+
* @description Returns a paginated list of all spaces belonging to the organization. A space is a collection of documentation pages with its own content tree and revision history. Use this to discover spaces before reading their content, adding them to a site, or performing operations on specific spaces.
|
|
13404
13304
|
*
|
|
13405
13305
|
* @tags spaces
|
|
13406
13306
|
* @name ListSpacesInOrganizationById
|
|
13407
|
-
* @summary List all spaces
|
|
13307
|
+
* @summary List all spaces in an organization
|
|
13408
13308
|
* @request GET:/orgs/{organizationId}/spaces
|
|
13409
13309
|
* @secure
|
|
13410
13310
|
*/
|
|
@@ -13421,11 +13321,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13421
13321
|
items: Space[];
|
|
13422
13322
|
}, any>>;
|
|
13423
13323
|
/**
|
|
13424
|
-
*
|
|
13324
|
+
* @description Creates a new space within the organization. A space is the primary container for documentation content, holding pages, files, and revisions. After creation, add the space to a site to make it publicly accessible, or start adding content directly via the space content endpoints.
|
|
13425
13325
|
*
|
|
13426
13326
|
* @tags spaces
|
|
13427
13327
|
* @name CreateSpace
|
|
13428
|
-
* @summary Create a space
|
|
13328
|
+
* @summary Create a new documentation space in an organization
|
|
13429
13329
|
* @request POST:/orgs/{organizationId}/spaces
|
|
13430
13330
|
* @secure
|
|
13431
13331
|
*/
|
|
@@ -13907,6 +13807,22 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13907
13807
|
message: string;
|
|
13908
13808
|
};
|
|
13909
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
|
+
}>>;
|
|
13910
13826
|
/**
|
|
13911
13827
|
* No description
|
|
13912
13828
|
*
|
|
@@ -14251,11 +14167,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14251
14167
|
*/
|
|
14252
14168
|
deleteCustomFont: (organizationId: EntityId, fontId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
14253
14169
|
/**
|
|
14254
|
-
*
|
|
14170
|
+
* @description Returns a paginated list of all documentation sites belonging to the organization. Use this to discover available sites before fetching their content, settings, or structure.
|
|
14255
14171
|
*
|
|
14256
14172
|
* @tags sites, critical
|
|
14257
14173
|
* @name ListSites
|
|
14258
|
-
* @summary List all sites
|
|
14174
|
+
* @summary List all documentation sites in an organization
|
|
14259
14175
|
* @request GET:/orgs/{organizationId}/sites
|
|
14260
14176
|
* @secure
|
|
14261
14177
|
*/
|
|
@@ -14280,16 +14196,20 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14280
14196
|
items: Site[];
|
|
14281
14197
|
}, any>>;
|
|
14282
14198
|
/**
|
|
14283
|
-
*
|
|
14199
|
+
* @description Creates a new documentation site within the organization. Optionally links one or more existing spaces as content sources at creation time. The site is created in an unpublished state; call the publish endpoint separately to make it publicly accessible.
|
|
14284
14200
|
*
|
|
14285
14201
|
* @tags sites
|
|
14286
14202
|
* @name CreateSite
|
|
14287
|
-
* @summary Create a site
|
|
14203
|
+
* @summary Create a new documentation site in an organization
|
|
14288
14204
|
* @request POST:/orgs/{organizationId}/sites
|
|
14289
14205
|
* @secure
|
|
14290
14206
|
*/
|
|
14291
14207
|
createSite: (organizationId: EntityId, data: {
|
|
14292
|
-
/**
|
|
14208
|
+
/**
|
|
14209
|
+
* The type of the site. Defaults to:
|
|
14210
|
+
* - Sponsored for community organizations
|
|
14211
|
+
* - Ultimate for all other organizations
|
|
14212
|
+
*/
|
|
14293
14213
|
type?: SiteType;
|
|
14294
14214
|
/** Title of the site */
|
|
14295
14215
|
title?: SiteTitle;
|
|
@@ -14305,11 +14225,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14305
14225
|
spaces?: string[];
|
|
14306
14226
|
}, params?: RequestParams) => Promise<HttpResponse<Site, any>>;
|
|
14307
14227
|
/**
|
|
14308
|
-
*
|
|
14228
|
+
* @description Retrieves full details for a single documentation site. Use this to inspect a specific site's metadata before reading or modifying its settings, structure, or content.
|
|
14309
14229
|
*
|
|
14310
14230
|
* @tags sites
|
|
14311
14231
|
* @name GetSiteById
|
|
14312
|
-
* @summary Get a site by its ID
|
|
14232
|
+
* @summary Get a documentation site by its ID
|
|
14313
14233
|
* @request GET:/orgs/{organizationId}/sites/{siteId}
|
|
14314
14234
|
* @secure
|
|
14315
14235
|
*/
|
|
@@ -14321,11 +14241,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14321
14241
|
};
|
|
14322
14242
|
}>>;
|
|
14323
14243
|
/**
|
|
14324
|
-
*
|
|
14244
|
+
* @description Updates a documentation site's configuration. Use this to rename a site, change its access level, or point it at a reverse-proxy path such as https://company.com/docs.
|
|
14325
14245
|
*
|
|
14326
14246
|
* @tags sites
|
|
14327
14247
|
* @name UpdateSiteById
|
|
14328
|
-
* @summary Update a site
|
|
14248
|
+
* @summary Update the properties of a documentation site
|
|
14329
14249
|
* @request PATCH:/orgs/{organizationId}/sites/{siteId}
|
|
14330
14250
|
* @secure
|
|
14331
14251
|
*/
|
|
@@ -14343,8 +14263,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14343
14263
|
/** Basename for the site. For e.g. api */
|
|
14344
14264
|
basename?: SiteBasename;
|
|
14345
14265
|
adaptiveContent?: SiteAdaptiveContent;
|
|
14346
|
-
/** Permissions resolution mode for the site. */
|
|
14347
|
-
permissionsModel?: SitePermissionsModel;
|
|
14348
14266
|
/** Default level for a piece of content */
|
|
14349
14267
|
defaultLevel?: DefaultLevel;
|
|
14350
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. */
|
|
@@ -14356,6 +14274,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14356
14274
|
* Use `null` to remove the proxy.
|
|
14357
14275
|
*/
|
|
14358
14276
|
proxy?: SiteProxyOrigin | null;
|
|
14277
|
+
/** Attach an existing styleguide to the site by the ID of the styleguide space, or `null` to detach the current one. The space must be a styleguide owned by the same organization. */
|
|
14278
|
+
styleguide?: string | null;
|
|
14359
14279
|
}, params?: RequestParams) => Promise<HttpResponse<Site, any>>;
|
|
14360
14280
|
/**
|
|
14361
14281
|
* No description
|
|
@@ -14398,11 +14318,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14398
14318
|
};
|
|
14399
14319
|
}>>;
|
|
14400
14320
|
/**
|
|
14401
|
-
*
|
|
14321
|
+
* @description Returns the JSON schema that defines the visitor attributes expected by an adaptive content site. Adaptive content uses these attributes (e.g., user role, plan tier) to conditionally show or hide content sections. Use this to understand what visitor data must be provided when rendering adaptive content.
|
|
14402
14322
|
*
|
|
14403
14323
|
* @tags sites
|
|
14404
14324
|
* @name GetSiteAdaptiveSchema
|
|
14405
|
-
* @summary Get the JSON schema
|
|
14325
|
+
* @summary Get the visitor attributes JSON schema for an adaptive content site
|
|
14406
14326
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/adaptive-schema
|
|
14407
14327
|
* @secure
|
|
14408
14328
|
*/
|
|
@@ -14414,11 +14334,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14414
14334
|
};
|
|
14415
14335
|
}>>;
|
|
14416
14336
|
/**
|
|
14417
|
-
*
|
|
14337
|
+
* @description Replaces the JSON schema that defines expected visitor attributes for adaptive content. The schema controls which attributes (e.g., role, subscription tier) can be used in conditional expressions to show or hide content for specific visitors. After updating, existing conditional expressions are evaluated against the new schema.
|
|
14418
14338
|
*
|
|
14419
14339
|
* @tags sites
|
|
14420
14340
|
* @name UpdateSiteAdaptiveSchema
|
|
14421
|
-
* @summary Update the JSON schema
|
|
14341
|
+
* @summary Update the visitor attributes JSON schema for an adaptive content site
|
|
14422
14342
|
* @request PUT:/orgs/{organizationId}/sites/{siteId}/adaptive-schema
|
|
14423
14343
|
* @secure
|
|
14424
14344
|
*/
|
|
@@ -14433,11 +14353,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14433
14353
|
};
|
|
14434
14354
|
}>>;
|
|
14435
14355
|
/**
|
|
14436
|
-
*
|
|
14356
|
+
* @description Returns pre-generated condition templates derived from the site's visitor attributes schema. These templates can be used as building blocks when writing adaptive content expressions to conditionally show or hide content for different visitor types. Use this to discover available conditions before authoring adaptive rules.
|
|
14437
14357
|
*
|
|
14438
14358
|
* @tags sites
|
|
14439
14359
|
* @name ListSiteAdaptiveTemplateConditions
|
|
14440
|
-
* @summary List templates
|
|
14360
|
+
* @summary List condition templates for adaptive content expressions in a site
|
|
14441
14361
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/adaptive-schema/template-conditions
|
|
14442
14362
|
* @secure
|
|
14443
14363
|
*/
|
|
@@ -14445,11 +14365,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14445
14365
|
items: SiteAdaptiveTemplateCondition[];
|
|
14446
14366
|
}, any>>;
|
|
14447
14367
|
/**
|
|
14448
|
-
* @description
|
|
14368
|
+
* @description Returns the complete profile needed to render the published experience of a site. Use this when building a site renderer or preview rather than fetching each resource individually.
|
|
14449
14369
|
*
|
|
14450
14370
|
* @tags sites
|
|
14451
14371
|
* @name GetPublishedContentSite
|
|
14452
|
-
* @summary Get
|
|
14372
|
+
* @summary Get the full published profile of a site including structure and customization
|
|
14453
14373
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/published
|
|
14454
14374
|
* @secure
|
|
14455
14375
|
*/
|
|
@@ -14464,11 +14384,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14464
14384
|
};
|
|
14465
14385
|
}>>;
|
|
14466
14386
|
/**
|
|
14467
|
-
*
|
|
14387
|
+
* @description Makes the site publicly accessible at its configured URL by publishing it. If the organization's plan requires an upgrade, the response includes a Stripe checkout session ID instead of the site object. Use unpublish to take the site offline again.
|
|
14468
14388
|
*
|
|
14469
14389
|
* @tags sites
|
|
14470
14390
|
* @name PublishSite
|
|
14471
|
-
* @summary Publish a site
|
|
14391
|
+
* @summary Publish a site to make it publicly accessible
|
|
14472
14392
|
* @request POST:/orgs/{organizationId}/sites/{siteId}/publish
|
|
14473
14393
|
* @secure
|
|
14474
14394
|
*/
|
|
@@ -14478,21 +14398,21 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14478
14398
|
sessionId: string;
|
|
14479
14399
|
}, any>>;
|
|
14480
14400
|
/**
|
|
14481
|
-
*
|
|
14401
|
+
* @description Removes the site from public access by unpublishing it. The site's configuration and content are preserved; use the publish endpoint to make it accessible again. Use this when you need to temporarily hide a site or take it down for maintenance.
|
|
14482
14402
|
*
|
|
14483
14403
|
* @tags sites
|
|
14484
14404
|
* @name UnpublishSite
|
|
14485
|
-
* @summary
|
|
14405
|
+
* @summary Take a site offline by unpublishing it
|
|
14486
14406
|
* @request POST:/orgs/{organizationId}/sites/{siteId}/unpublish
|
|
14487
14407
|
* @secure
|
|
14488
14408
|
*/
|
|
14489
14409
|
unpublishSite: (organizationId: EntityId, siteId: string, params?: RequestParams) => Promise<HttpResponse<Site, any>>;
|
|
14490
14410
|
/**
|
|
14491
|
-
*
|
|
14411
|
+
* @description Returns a paginated list of share links configured for the site. Share links grant access to a private site without requiring full authentication. Use this to audit existing share links, check their active status, or find a link ID before updating or revoking it.
|
|
14492
14412
|
*
|
|
14493
14413
|
* @tags site-share-links
|
|
14494
14414
|
* @name ListSiteShareLinks
|
|
14495
|
-
* @summary List all share links
|
|
14415
|
+
* @summary List all private share links for a site
|
|
14496
14416
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/share-links
|
|
14497
14417
|
* @secure
|
|
14498
14418
|
*/
|
|
@@ -14511,11 +14431,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14511
14431
|
items: ShareLink[];
|
|
14512
14432
|
}, any>>;
|
|
14513
14433
|
/**
|
|
14514
|
-
*
|
|
14434
|
+
* @description Creates a new named share link that grants access to the private site without requiring full user authentication. Share links are useful for sharing pre-publication content with reviewers or stakeholders. Each link has a unique key and can be activated or deactivated independently.
|
|
14515
14435
|
*
|
|
14516
14436
|
* @tags site-share-links
|
|
14517
14437
|
* @name CreateSiteShareLink
|
|
14518
|
-
* @summary Create a share link
|
|
14438
|
+
* @summary Create a private share link for a site
|
|
14519
14439
|
* @request POST:/orgs/{organizationId}/sites/{siteId}/share-links
|
|
14520
14440
|
* @secure
|
|
14521
14441
|
*/
|
|
@@ -14524,11 +14444,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14524
14444
|
name: ShareLinkName;
|
|
14525
14445
|
}, params?: RequestParams) => Promise<HttpResponse<ShareLink, any>>;
|
|
14526
14446
|
/**
|
|
14527
|
-
*
|
|
14447
|
+
* @description Updates a share link's properties. Use this to temporarily disable a share link without losing its configuration.
|
|
14528
14448
|
*
|
|
14529
14449
|
* @tags site-share-links
|
|
14530
14450
|
* @name UpdateSiteShareLinkById
|
|
14531
|
-
* @summary Update a share link
|
|
14451
|
+
* @summary Update a private share link for a site
|
|
14532
14452
|
* @request PATCH:/orgs/{organizationId}/sites/{siteId}/share-links/{shareLinkId}
|
|
14533
14453
|
* @secure
|
|
14534
14454
|
*/
|
|
@@ -14548,11 +14468,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14548
14468
|
*/
|
|
14549
14469
|
deleteSiteShareLinkById: (organizationId: EntityId, siteId: string, shareLinkId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
14550
14470
|
/**
|
|
14551
|
-
* @description
|
|
14471
|
+
* @description Returns the complete hierarchical structure of a site, including all sections, section groups, and site spaces in their current order. Use this to understand how a site's navigation is organized before making structural changes, or to render the full navigation tree of a site.
|
|
14552
14472
|
*
|
|
14553
14473
|
* @tags site-structure
|
|
14554
14474
|
* @name GetSiteStructure
|
|
14555
|
-
* @summary Get a site
|
|
14475
|
+
* @summary Get the full navigation structure of a site
|
|
14556
14476
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/structure
|
|
14557
14477
|
* @secure
|
|
14558
14478
|
*/
|
|
@@ -14567,11 +14487,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14567
14487
|
};
|
|
14568
14488
|
}>>;
|
|
14569
14489
|
/**
|
|
14570
|
-
*
|
|
14490
|
+
* @description Reorders an item in the site's navigation structure by moving a site space, section, or section group to a specified position relative to another item. Use this to reorganize the navigation order after adding new sections or to reflect a new content hierarchy.
|
|
14571
14491
|
*
|
|
14572
14492
|
* @tags sites
|
|
14573
14493
|
* @name SortSiteStructure
|
|
14574
|
-
* @summary Move a site space,
|
|
14494
|
+
* @summary Move a site space, section, or section group to a new position
|
|
14575
14495
|
* @request PATCH:/orgs/{organizationId}/sites/{siteId}/structure/sort
|
|
14576
14496
|
* @secure
|
|
14577
14497
|
*/
|
|
@@ -14594,11 +14514,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14594
14514
|
};
|
|
14595
14515
|
}>>;
|
|
14596
14516
|
/**
|
|
14597
|
-
*
|
|
14517
|
+
* @description Retrieves the authentication settings that protect a site's published content. Use this to review the current auth method before making changes or troubleshooting access issues.
|
|
14598
14518
|
*
|
|
14599
14519
|
* @tags site-publishing-auth
|
|
14600
14520
|
* @name GetSitePublishingAuthById
|
|
14601
|
-
* @summary Get a site
|
|
14521
|
+
* @summary Get the published content authentication configuration for a site
|
|
14602
14522
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/publishing/auth
|
|
14603
14523
|
* @secure
|
|
14604
14524
|
*/
|
|
@@ -14610,11 +14530,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14610
14530
|
};
|
|
14611
14531
|
}>>;
|
|
14612
14532
|
/**
|
|
14613
|
-
*
|
|
14533
|
+
* @description Modifies the authentication method used to protect a site's published content. Use this to enable, disable, or change the auth method for a published site.
|
|
14614
14534
|
*
|
|
14615
14535
|
* @tags site-publishing-auth
|
|
14616
14536
|
* @name UpdateSitePublishingAuthById
|
|
14617
|
-
* @summary Update a site
|
|
14537
|
+
* @summary Update the published content authentication configuration for a site
|
|
14618
14538
|
* @request PATCH:/orgs/{organizationId}/sites/{siteId}/publishing/auth
|
|
14619
14539
|
* @secure
|
|
14620
14540
|
*/
|
|
@@ -14626,11 +14546,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14626
14546
|
};
|
|
14627
14547
|
}>>;
|
|
14628
14548
|
/**
|
|
14629
|
-
* @description
|
|
14549
|
+
* @description Re-generates the private key used for the site's publishing authentication (e.g., JWT signing key for SSO). Existing tokens signed with the old key will become invalid immediately. Use this to rotate credentials after a security incident or as part of a regular key rotation policy.
|
|
14630
14550
|
*
|
|
14631
14551
|
* @tags site-publishing-auth
|
|
14632
14552
|
* @name RegenerateSitePublishingAuthById
|
|
14633
|
-
* @summary Regenerate a site
|
|
14553
|
+
* @summary Regenerate the private key for a site's published content authentication
|
|
14634
14554
|
* @request POST:/orgs/{organizationId}/sites/{siteId}/publishing/auth/regenerate
|
|
14635
14555
|
* @secure
|
|
14636
14556
|
*/
|
|
@@ -14642,11 +14562,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14642
14562
|
};
|
|
14643
14563
|
}>>;
|
|
14644
14564
|
/**
|
|
14645
|
-
* @description
|
|
14565
|
+
* @description Generates a time-limited URL (valid for 1 hour) to preview how a site will look when published. Use this to verify changes before making the site publicly accessible.
|
|
14646
14566
|
*
|
|
14647
14567
|
* @tags site-preview
|
|
14648
14568
|
* @name GetSitePublishingPreviewById
|
|
14649
|
-
* @summary
|
|
14569
|
+
* @summary Generate a temporary preview URL for a site's published content
|
|
14650
14570
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/publishing/preview
|
|
14651
14571
|
* @secure
|
|
14652
14572
|
*/
|
|
@@ -14672,11 +14592,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14672
14592
|
};
|
|
14673
14593
|
}>>;
|
|
14674
14594
|
/**
|
|
14675
|
-
*
|
|
14595
|
+
* @description Retrieves the full customization configuration for a site. Use this before making updates to read the current state, or to audit branding settings.
|
|
14676
14596
|
*
|
|
14677
14597
|
* @tags site-customization
|
|
14678
14598
|
* @name GetSiteCustomizationById
|
|
14679
|
-
* @summary Get
|
|
14599
|
+
* @summary Get the branding and visual customization settings for a site
|
|
14680
14600
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/customization
|
|
14681
14601
|
* @secure
|
|
14682
14602
|
*/
|
|
@@ -14695,11 +14615,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14695
14615
|
};
|
|
14696
14616
|
}>>;
|
|
14697
14617
|
/**
|
|
14698
|
-
*
|
|
14618
|
+
* @description Replaces the full customization configuration for a site. This is a full replacement — unset fields revert to defaults. Use the GET endpoint first to read the current settings before making targeted changes.
|
|
14699
14619
|
*
|
|
14700
14620
|
* @tags site-customization
|
|
14701
14621
|
* @name UpdateSiteCustomizationById
|
|
14702
|
-
* @summary Update
|
|
14622
|
+
* @summary Update the branding and visual customization settings for a site
|
|
14703
14623
|
* @request PUT:/orgs/{organizationId}/sites/{siteId}/customization
|
|
14704
14624
|
* @secure
|
|
14705
14625
|
*/
|
|
@@ -14711,11 +14631,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14711
14631
|
};
|
|
14712
14632
|
}>>;
|
|
14713
14633
|
/**
|
|
14714
|
-
*
|
|
14634
|
+
* @description Returns all integration scripts configured to be injected into the published pages of a site, such as analytics trackers, chat widgets, or custom JavaScript. Use this to audit which third-party scripts are active on the site.
|
|
14715
14635
|
*
|
|
14716
14636
|
* @tags integrations, sites
|
|
14717
14637
|
* @name ListSiteIntegrationScripts
|
|
14718
|
-
* @summary List
|
|
14638
|
+
* @summary List custom scripts injected into a site's published pages
|
|
14719
14639
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/integration-scripts
|
|
14720
14640
|
* @secure
|
|
14721
14641
|
*/
|
|
@@ -14727,11 +14647,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14727
14647
|
};
|
|
14728
14648
|
}>>;
|
|
14729
14649
|
/**
|
|
14730
|
-
*
|
|
14650
|
+
* @description Returns a paginated list of integrations currently enabled on the site. Integrations extend site functionality with third-party services such as analytics, support, or authentication providers. Use this to audit which integrations are active, or to find an integration before updating its settings.
|
|
14731
14651
|
*
|
|
14732
14652
|
* @tags integrations, sites
|
|
14733
14653
|
* @name ListSiteIntegrations
|
|
14734
|
-
* @summary List integrations enabled
|
|
14654
|
+
* @summary List third-party integrations enabled on a site
|
|
14735
14655
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/integrations
|
|
14736
14656
|
* @secure
|
|
14737
14657
|
*/
|
|
@@ -14742,11 +14662,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14742
14662
|
items: Integration[];
|
|
14743
14663
|
}, any>>;
|
|
14744
14664
|
/**
|
|
14745
|
-
*
|
|
14665
|
+
* @description Links an existing space to the site by creating a site space relationship.
|
|
14746
14666
|
*
|
|
14747
14667
|
* @tags site-spaces
|
|
14748
14668
|
* @name AddSpaceToSite
|
|
14749
|
-
* @summary Add a space to a site
|
|
14669
|
+
* @summary Add a space to a site as a content source
|
|
14750
14670
|
* @request POST:/orgs/{organizationId}/sites/{siteId}/site-spaces
|
|
14751
14671
|
* @secure
|
|
14752
14672
|
*/
|
|
@@ -14762,11 +14682,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14762
14682
|
draft?: boolean;
|
|
14763
14683
|
}, params?: RequestParams) => Promise<HttpResponse<SiteSpace, any>>;
|
|
14764
14684
|
/**
|
|
14765
|
-
*
|
|
14685
|
+
* @description Returns a paginated list of site spaces — the links between a site and its content source spaces. Each site space can be a language variant or content version within a section. Use the default filter to retrieve only the primary site space, or omit it to get all linked spaces including drafts.
|
|
14766
14686
|
*
|
|
14767
14687
|
* @tags site-spaces, critical
|
|
14768
14688
|
* @name ListSiteSpaces
|
|
14769
|
-
* @summary List all
|
|
14689
|
+
* @summary List all spaces linked to a site as content sources
|
|
14770
14690
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/site-spaces
|
|
14771
14691
|
* @secure
|
|
14772
14692
|
*/
|
|
@@ -14787,11 +14707,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14787
14707
|
items: SiteSpace[];
|
|
14788
14708
|
}, any>>;
|
|
14789
14709
|
/**
|
|
14790
|
-
*
|
|
14710
|
+
* @description Returns a paginated list of section groups for the site. Section groups are containers that organize multiple sections into a hierarchical navigation structure. Use this to inspect the current grouping before adding, updating, or reordering items in the site structure.
|
|
14791
14711
|
*
|
|
14792
14712
|
* @tags site-section-groups
|
|
14793
14713
|
* @name ListSiteSectionGroups
|
|
14794
|
-
* @summary List all site
|
|
14714
|
+
* @summary List all section groups in a site's navigation structure
|
|
14795
14715
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/section-groups
|
|
14796
14716
|
* @secure
|
|
14797
14717
|
*/
|
|
@@ -14808,11 +14728,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14808
14728
|
items: SiteSectionGroup[];
|
|
14809
14729
|
}, any>>;
|
|
14810
14730
|
/**
|
|
14811
|
-
*
|
|
14731
|
+
* @description Creates a new section group to organize multiple sections under a shared navigation label. Section groups can be nested by providing a parent group ID. Existing sections can be assigned to the group at creation time via their IDs. Create the group in draft mode to stage it before publishing.
|
|
14812
14732
|
*
|
|
14813
14733
|
* @tags site-section-groups
|
|
14814
14734
|
* @name AddSectionGroupToSite
|
|
14815
|
-
* @summary Add a section group to a site
|
|
14735
|
+
* @summary Add a section group to a site's navigation structure
|
|
14816
14736
|
* @request POST:/orgs/{organizationId}/sites/{siteId}/section-groups
|
|
14817
14737
|
* @secure
|
|
14818
14738
|
*/
|
|
@@ -14828,11 +14748,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14828
14748
|
draft?: boolean;
|
|
14829
14749
|
}, params?: RequestParams) => Promise<HttpResponse<SiteSectionGroup, any>>;
|
|
14830
14750
|
/**
|
|
14831
|
-
*
|
|
14751
|
+
* @description Updates a section group's properties in the site's navigation structure.
|
|
14832
14752
|
*
|
|
14833
14753
|
* @tags site-section-groups
|
|
14834
14754
|
* @name UpdateSiteSectionGroupById
|
|
14835
|
-
* @summary Update a site
|
|
14755
|
+
* @summary Update a section group in a site's navigation structure
|
|
14836
14756
|
* @request PATCH:/orgs/{organizationId}/sites/{siteId}/section-groups/{siteSectionGroupId}
|
|
14837
14757
|
* @secure
|
|
14838
14758
|
*/
|
|
@@ -14856,11 +14776,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14856
14776
|
*/
|
|
14857
14777
|
deleteSiteSectionGroupById: (organizationId: EntityId, siteId: string, siteSectionGroupId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
14858
14778
|
/**
|
|
14859
|
-
*
|
|
14779
|
+
* @description Creates a new top-level navigation section in the site by linking a space as its primary content source. The section appears as a tab or sidebar entry in the site navigation.
|
|
14860
14780
|
*
|
|
14861
14781
|
* @tags site-sections
|
|
14862
14782
|
* @name AddSectionToSite
|
|
14863
|
-
* @summary Add a section to a site
|
|
14783
|
+
* @summary Add a new navigation section to a site backed by a space
|
|
14864
14784
|
* @request POST:/orgs/{organizationId}/sites/{siteId}/sections
|
|
14865
14785
|
* @secure
|
|
14866
14786
|
*/
|
|
@@ -14875,11 +14795,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14875
14795
|
siteSectionGroupId?: string;
|
|
14876
14796
|
}, params?: RequestParams) => Promise<HttpResponse<SiteSection, any>>;
|
|
14877
14797
|
/**
|
|
14878
|
-
*
|
|
14798
|
+
* @description Returns a paginated list of sections in the site. Each section is a top-level navigation item backed by one or more site spaces. Use this to inspect the current navigation structure, find a section ID before updating it, or check whether sections are in draft or live state.
|
|
14879
14799
|
*
|
|
14880
14800
|
* @tags site-sections
|
|
14881
14801
|
* @name ListSiteSections
|
|
14882
|
-
* @summary List all
|
|
14802
|
+
* @summary List all navigation sections in a site
|
|
14883
14803
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/sections
|
|
14884
14804
|
* @secure
|
|
14885
14805
|
*/
|
|
@@ -14898,11 +14818,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14898
14818
|
items: SiteSection[];
|
|
14899
14819
|
}, any>>;
|
|
14900
14820
|
/**
|
|
14901
|
-
*
|
|
14821
|
+
* @description Updates a navigation section's configuration in the site structure.
|
|
14902
14822
|
*
|
|
14903
14823
|
* @tags site-sections
|
|
14904
14824
|
* @name UpdateSiteSectionById
|
|
14905
|
-
* @summary Update a
|
|
14825
|
+
* @summary Update a navigation section in a site
|
|
14906
14826
|
* @request PATCH:/orgs/{organizationId}/sites/{siteId}/sections/{siteSectionId}
|
|
14907
14827
|
* @secure
|
|
14908
14828
|
*/
|
|
@@ -14937,11 +14857,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14937
14857
|
*/
|
|
14938
14858
|
deleteSiteSectionById: (organizationId: EntityId, siteId: string, siteSectionId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
14939
14859
|
/**
|
|
14940
|
-
*
|
|
14860
|
+
* @description Performs a full-text search across all published spaces in the site and returns matching pages with relevant excerpts. Use the scope parameter to restrict the search to specific site spaces or sections. Prefer this over the space-level search when you need to search across a multi-section site in one call.
|
|
14941
14861
|
*
|
|
14942
14862
|
* @tags sites
|
|
14943
14863
|
* @name SearchSiteContent
|
|
14944
|
-
* @summary
|
|
14864
|
+
* @summary Full-text search across all content in a site
|
|
14945
14865
|
* @request POST:/orgs/{organizationId}/sites/{siteId}/search
|
|
14946
14866
|
* @secure
|
|
14947
14867
|
*/
|
|
@@ -15178,7 +15098,14 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
15178
15098
|
* @secure
|
|
15179
15099
|
*/
|
|
15180
15100
|
updateSiteFindingById: (organizationId: EntityId, siteId: string, siteFindingId: string, data: {
|
|
15181
|
-
|
|
15101
|
+
/**
|
|
15102
|
+
* Status of a site finding.
|
|
15103
|
+
* - `candidate` is a finding that has been raised but not yet confirmed. Typically these are not shown to users.
|
|
15104
|
+
* - `open` is a finding that has been surfaced to users and is still under investigation.
|
|
15105
|
+
* - `done` is a finding that has been resolved and is no longer under investigation.
|
|
15106
|
+
* - `canceled` is a finding that has been canceled and is no longer under investigation.
|
|
15107
|
+
*/
|
|
15108
|
+
status: SiteFindingStatus;
|
|
15182
15109
|
}, params?: RequestParams) => Promise<HttpResponse<SiteFinding, any>>;
|
|
15183
15110
|
/**
|
|
15184
15111
|
* No description
|
|
@@ -15306,6 +15233,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
15306
15233
|
*/
|
|
15307
15234
|
createSiteContextConnection: (organizationId: EntityId, siteId: string, data: ContextConnectorSetup & {
|
|
15308
15235
|
usageSettings?: ContextUsageSettings;
|
|
15236
|
+
/** Optional filter used to restrict which items are ingested from the source. Its meaning depends on the connector: it can be a tag, label, or an expression. When empty or omitted, all resolved items are ingested. */
|
|
15237
|
+
filter?: ContextConnectionFilter;
|
|
15309
15238
|
}, params?: RequestParams) => Promise<HttpResponse<ContextConnection, any>>;
|
|
15310
15239
|
/**
|
|
15311
15240
|
* No description
|
|
@@ -15330,6 +15259,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
15330
15259
|
usageSettings?: ContextUsageSettings;
|
|
15331
15260
|
/** Optional label for the connection */
|
|
15332
15261
|
label?: ContextConnectionLabel;
|
|
15262
|
+
/** Optional filter used to restrict which items are ingested from the source. Its meaning depends on the connector: it can be a tag, label, or an expression. When empty or omitted, all resolved items are ingested. */
|
|
15263
|
+
filter?: ContextConnectionFilter;
|
|
15333
15264
|
}, params?: RequestParams) => Promise<HttpResponse<ContextConnection, any>>;
|
|
15334
15265
|
/**
|
|
15335
15266
|
* No description
|
|
@@ -15357,6 +15288,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
15357
15288
|
message: string;
|
|
15358
15289
|
};
|
|
15359
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>>;
|
|
15360
15301
|
/**
|
|
15361
15302
|
* No description
|
|
15362
15303
|
*
|
|
@@ -15407,11 +15348,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
15407
15348
|
*/
|
|
15408
15349
|
deleteSiteTopicFindings: (organizationId: EntityId, siteId: string, siteTopicId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
15409
15350
|
/**
|
|
15410
|
-
*
|
|
15351
|
+
* @description Returns a paginated list of the questions visitors asked a site's Ask AI assistant, each with usage stats. Use it to discover what users are looking for and where the documentation has gaps.
|
|
15411
15352
|
*
|
|
15412
15353
|
* @tags site-questions
|
|
15413
15354
|
* @name ListSiteQuestions
|
|
15414
|
-
* @summary List
|
|
15355
|
+
* @summary List the questions visitors asked a site's Ask AI assistant
|
|
15415
15356
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/questions
|
|
15416
15357
|
* @secure
|
|
15417
15358
|
*/
|
|
@@ -15449,11 +15390,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
15449
15390
|
items: SiteQuestion[];
|
|
15450
15391
|
}, any>>;
|
|
15451
15392
|
/**
|
|
15452
|
-
*
|
|
15393
|
+
* @description Retrieves one question asked to a site's Ask AI assistant, including its canonical text and aggregate stats. Use it to inspect a specific question discovered via listSiteQuestions.
|
|
15453
15394
|
*
|
|
15454
15395
|
* @tags site-questions
|
|
15455
15396
|
* @name GetSiteQuestionById
|
|
15456
|
-
* @summary Get a
|
|
15397
|
+
* @summary Get a single Ask AI question by ID
|
|
15457
15398
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/questions/{siteQuestionId}
|
|
15458
15399
|
* @secure
|
|
15459
15400
|
*/
|
|
@@ -15470,11 +15411,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
15470
15411
|
answered?: SiteQuestionAnswerResolution[];
|
|
15471
15412
|
}, params?: RequestParams) => Promise<HttpResponse<SiteQuestion, any>>;
|
|
15472
15413
|
/**
|
|
15473
|
-
*
|
|
15414
|
+
* @description Returns the documentation pages the Ask AI assistant used to answer a given question. Use it to see which content grounded the AI's responses to that question.
|
|
15474
15415
|
*
|
|
15475
15416
|
* @tags site-questions
|
|
15476
15417
|
* @name ListSiteQuestionSources
|
|
15477
|
-
* @summary List sources
|
|
15418
|
+
* @summary List the documentation sources used to answer a question
|
|
15478
15419
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/questions/{siteQuestionId}/sources
|
|
15479
15420
|
* @secure
|
|
15480
15421
|
*/
|
|
@@ -15501,11 +15442,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
15501
15442
|
items: SiteQuestionAnswerSource[];
|
|
15502
15443
|
}, any>>;
|
|
15503
15444
|
/**
|
|
15504
|
-
*
|
|
15445
|
+
* @description Returns aggregate statistics about the questions visitors asked a site's Ask AI assistant over a time range, optionally filtered by topic, relevance, or channel. Use it for a high-level view of AI-assistant usage before drilling into individual questions.
|
|
15505
15446
|
*
|
|
15506
15447
|
* @tags site-questions
|
|
15507
15448
|
* @name GetSiteQuestionStats
|
|
15508
|
-
* @summary Get question
|
|
15449
|
+
* @summary Get aggregate Ask AI question statistics for a site
|
|
15509
15450
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/question-stats
|
|
15510
15451
|
* @secure
|
|
15511
15452
|
*/
|
|
@@ -15524,11 +15465,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
15524
15465
|
answered?: SiteQuestionAnswerResolution[];
|
|
15525
15466
|
}, params?: RequestParams) => Promise<HttpResponse<SiteQuestionStats, any>>;
|
|
15526
15467
|
/**
|
|
15527
|
-
*
|
|
15468
|
+
* @description Returns a paginated list of individual Ask AI answers generated for a site. Each is the assistant's response to a specific asked question, with the raw question text, channel, and feedback. Use it to review answer quality and what users asked across the site.
|
|
15528
15469
|
*
|
|
15529
15470
|
* @tags site-questions
|
|
15530
15471
|
* @name ListSiteQuestionAnswers
|
|
15531
|
-
* @summary List
|
|
15472
|
+
* @summary List the answers a site's Ask AI assistant generated
|
|
15532
15473
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/answers
|
|
15533
15474
|
* @secure
|
|
15534
15475
|
*/
|
|
@@ -15567,31 +15508,31 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
15567
15508
|
items: SiteQuestionAnswer[];
|
|
15568
15509
|
}, any>>;
|
|
15569
15510
|
/**
|
|
15570
|
-
*
|
|
15511
|
+
* @description Retrieves one Ask AI answer, including the question that prompted it, the response, and its feedback. Use it to inspect a specific answer discovered via listSiteQuestionAnswers.
|
|
15571
15512
|
*
|
|
15572
15513
|
* @tags site-questions
|
|
15573
15514
|
* @name GetSiteQuestionAnswerById
|
|
15574
|
-
* @summary Get a
|
|
15515
|
+
* @summary Get a single Ask AI answer by ID
|
|
15575
15516
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/answers/{siteQuestionAnswerId}
|
|
15576
15517
|
* @secure
|
|
15577
15518
|
*/
|
|
15578
15519
|
getSiteQuestionAnswerById: (organizationId: EntityId, siteId: string, siteQuestionAnswerId: string, params?: RequestParams) => Promise<HttpResponse<SiteQuestionAnswerWithResponse, any>>;
|
|
15579
15520
|
/**
|
|
15580
|
-
*
|
|
15521
|
+
* @description Returns the full conversation thread for a given Ask AI answer: the sequence of follow-up questions and responses in that exchange.
|
|
15581
15522
|
*
|
|
15582
15523
|
* @tags site-questions
|
|
15583
15524
|
* @name GetSiteQuestionAnswerThreadById
|
|
15584
|
-
* @summary Get
|
|
15525
|
+
* @summary Get the conversation thread for an Ask AI answer
|
|
15585
15526
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/answers/{siteQuestionAnswerId}/thread
|
|
15586
15527
|
* @secure
|
|
15587
15528
|
*/
|
|
15588
15529
|
getSiteQuestionAnswerThreadById: (organizationId: EntityId, siteId: string, siteQuestionAnswerId: string, params?: RequestParams) => Promise<HttpResponse<SiteQuestionAnswerWithResponse[], any>>;
|
|
15589
15530
|
/**
|
|
15590
|
-
*
|
|
15531
|
+
* @description Returns the documentation pages the Ask AI assistant cited to produce a given answer. Use it to see exactly which content grounded that specific answer.
|
|
15591
15532
|
*
|
|
15592
15533
|
* @tags site-questions
|
|
15593
15534
|
* @name ListSiteQuestionAnswerSources
|
|
15594
|
-
* @summary List the sources for an answer
|
|
15535
|
+
* @summary List the documentation sources cited for an answer
|
|
15595
15536
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/answers/{siteQuestionAnswerId}/sources
|
|
15596
15537
|
* @secure
|
|
15597
15538
|
*/
|
|
@@ -15608,11 +15549,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
15608
15549
|
items: SiteQuestionAnswerSource[];
|
|
15609
15550
|
}, any>>;
|
|
15610
15551
|
/**
|
|
15611
|
-
*
|
|
15552
|
+
* @description Updates the configuration of a site space. Use this to remap a site space to a different space, hide it from navigation, or promote it from draft to live.
|
|
15612
15553
|
*
|
|
15613
15554
|
* @tags site-spaces
|
|
15614
15555
|
* @name UpdateSiteSpaceById
|
|
15615
|
-
* @summary Update a site
|
|
15556
|
+
* @summary Update a space linked to a site
|
|
15616
15557
|
* @request PATCH:/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}
|
|
15617
15558
|
* @secure
|
|
15618
15559
|
*/
|
|
@@ -15639,11 +15580,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
15639
15580
|
*/
|
|
15640
15581
|
deleteSiteSpaceById: (organizationId: EntityId, siteId: string, siteSpaceId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
15641
15582
|
/**
|
|
15642
|
-
*
|
|
15583
|
+
* @description Retrieves the customization settings that override the site-level branding for a specific site space, such as a language variant or content version. Returns the effective settings with site-level defaults where no override is set. Use this before applying or removing overrides.
|
|
15643
15584
|
*
|
|
15644
15585
|
* @tags site-customization
|
|
15645
15586
|
* @name GetSiteSpaceCustomizationById
|
|
15646
|
-
* @summary Get a site space
|
|
15587
|
+
* @summary Get the customization overrides for a site space
|
|
15647
15588
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/customization
|
|
15648
15589
|
* @secure
|
|
15649
15590
|
*/
|
|
@@ -15662,11 +15603,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
15662
15603
|
};
|
|
15663
15604
|
}>>;
|
|
15664
15605
|
/**
|
|
15665
|
-
*
|
|
15606
|
+
* @description Applies customization overrides to a specific site space, such as a language variant or content version, that take precedence over the site-level settings. Only provided fields are overridden; set a field to null to clear its override and fall back to the site-level value.
|
|
15666
15607
|
*
|
|
15667
15608
|
* @tags site-customization
|
|
15668
15609
|
* @name OverrideSiteSpaceCustomizationById
|
|
15669
|
-
* @summary Override a site space
|
|
15610
|
+
* @summary Override branding and customization settings for a specific site space
|
|
15670
15611
|
* @request PATCH:/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/customization
|
|
15671
15612
|
* @secure
|
|
15672
15613
|
*/
|
|
@@ -15911,6 +15852,22 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
15911
15852
|
* @max 1000
|
|
15912
15853
|
*/
|
|
15913
15854
|
limit?: number;
|
|
15855
|
+
/**
|
|
15856
|
+
* An order for the items in the list
|
|
15857
|
+
* @default "desc"
|
|
15858
|
+
*/
|
|
15859
|
+
order?: "asc" | "desc";
|
|
15860
|
+
/** The role to filter the list by */
|
|
15861
|
+
role?: MemberRole | "guest";
|
|
15862
|
+
/** A query to filter the list by display name and email */
|
|
15863
|
+
search?: string;
|
|
15864
|
+
/**
|
|
15865
|
+
* The property to sort the list by
|
|
15866
|
+
* @default "joinedAt"
|
|
15867
|
+
*/
|
|
15868
|
+
sort?: "joinedAt" | "lastSeenAt" | "name";
|
|
15869
|
+
/** Team identifier. Filter the list to members of a specific team. */
|
|
15870
|
+
team?: string;
|
|
15914
15871
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
15915
15872
|
items: UserSitePermission[];
|
|
15916
15873
|
}, any>>;
|
|
@@ -16069,11 +16026,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
16069
16026
|
};
|
|
16070
16027
|
}, params?: RequestParams) => EventIterator<AIStreamResponse>;
|
|
16071
16028
|
/**
|
|
16072
|
-
*
|
|
16029
|
+
* @description Retrieves the configuration for the AI built into the GitBook editor that assists authors with drafting and refining content changes. Use this before updating agent settings to understand the current configuration.
|
|
16073
16030
|
*
|
|
16074
16031
|
* @tags site-agent-settings
|
|
16075
16032
|
* @name GetSiteAgentSettingsById
|
|
16076
|
-
* @summary Get
|
|
16033
|
+
* @summary Get the AI agent configuration for a site
|
|
16077
16034
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/agent-settings
|
|
16078
16035
|
* @secure
|
|
16079
16036
|
*/
|
|
@@ -16085,11 +16042,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
16085
16042
|
};
|
|
16086
16043
|
}>>;
|
|
16087
16044
|
/**
|
|
16088
|
-
*
|
|
16045
|
+
* @description Replaces the configuration for the AI built into the GitBook editor that helps authors draft, review, and refine content changes. Use this to customize how the AI behaves when assisting authors working on content for this site.
|
|
16089
16046
|
*
|
|
16090
16047
|
* @tags site-agent-settings
|
|
16091
16048
|
* @name UpdateSiteAgentSettingsById
|
|
16092
|
-
* @summary Update
|
|
16049
|
+
* @summary Update the AI agent configuration for a site
|
|
16093
16050
|
* @request PUT:/orgs/{organizationId}/sites/{siteId}/agent-settings
|
|
16094
16051
|
* @secure
|
|
16095
16052
|
*/
|
|
@@ -16101,31 +16058,18 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
16101
16058
|
};
|
|
16102
16059
|
}>>;
|
|
16103
16060
|
/**
|
|
16104
|
-
* @description Ensures the site has a
|
|
16061
|
+
* @description Ensures the site has a dedicated styleguide space and returns it. The styleguide defines writing style and tone guidelines that the AI editor agent references when generating or refining content for the site. If a styleguide already exists, this is idempotent and returns the existing space.
|
|
16105
16062
|
*
|
|
16106
16063
|
* @tags sites
|
|
16107
16064
|
* @name CreateSiteStyleguideById
|
|
16108
|
-
* @summary Create or
|
|
16065
|
+
* @summary Create or retrieve the styleguide space for a site
|
|
16109
16066
|
* @request POST:/orgs/{organizationId}/sites/{siteId}/styleguide
|
|
16110
16067
|
* @secure
|
|
16111
16068
|
*/
|
|
16112
|
-
createSiteStyleguideById: (organizationId: EntityId, siteId: string,
|
|
16113
|
-
|
|
16114
|
-
|
|
16115
|
-
|
|
16116
|
-
message: string;
|
|
16117
|
-
};
|
|
16118
|
-
}>>;
|
|
16119
|
-
/**
|
|
16120
|
-
* @description Clears the site's styleguide reference and soft-deletes the space.
|
|
16121
|
-
*
|
|
16122
|
-
* @tags sites
|
|
16123
|
-
* @name DeleteSiteStyleguideById
|
|
16124
|
-
* @summary Delete a site's styleguide
|
|
16125
|
-
* @request DELETE:/orgs/{organizationId}/sites/{siteId}/styleguide
|
|
16126
|
-
* @secure
|
|
16127
|
-
*/
|
|
16128
|
-
deleteSiteStyleguideById: (organizationId: EntityId, siteId: string, params?: RequestParams) => Promise<HttpResponse<void, {
|
|
16069
|
+
createSiteStyleguideById: (organizationId: EntityId, siteId: string, data?: {
|
|
16070
|
+
/** Built-in template id to seed the styleguide content with. Omit (or send no body) to create a blank styleguide. */
|
|
16071
|
+
template?: string;
|
|
16072
|
+
}, params?: RequestParams) => Promise<HttpResponse<Space, {
|
|
16129
16073
|
error: {
|
|
16130
16074
|
/** @format int32 */
|
|
16131
16075
|
code: 404;
|
|
@@ -16145,11 +16089,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
16145
16089
|
events: SiteInsightsEvent[];
|
|
16146
16090
|
}, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
16147
16091
|
/**
|
|
16148
|
-
*
|
|
16092
|
+
* @description Runs an aggregation query over a published site's Insights events, grouped and filtered over a time range. Use it to answer analytics questions about how visitors engage with a site's documentation.
|
|
16149
16093
|
*
|
|
16150
16094
|
* @tags site-insights
|
|
16151
16095
|
* @name AggregateSiteEvents
|
|
16152
|
-
* @summary Query site events
|
|
16096
|
+
* @summary Query a site's analytics events
|
|
16153
16097
|
* @request POST:/orgs/{organizationId}/sites/{siteId}/insights/events/aggregate
|
|
16154
16098
|
* @secure
|
|
16155
16099
|
*/
|
|
@@ -16167,11 +16111,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
16167
16111
|
items: SiteInsightsVisitorSegment[];
|
|
16168
16112
|
}, any>>;
|
|
16169
16113
|
/**
|
|
16170
|
-
*
|
|
16114
|
+
* @description Updates the advertising configuration for a site, including the review status and topic category used to select relevant ads. This controls GitBook's monetization feature for sites opted into the ads program.
|
|
16171
16115
|
*
|
|
16172
16116
|
* @tags site-ads
|
|
16173
16117
|
* @name UpdateSiteAdsById
|
|
16174
|
-
* @summary Update a site
|
|
16118
|
+
* @summary Update the advertising settings for a site
|
|
16175
16119
|
* @request POST:/orgs/{organizationId}/sites/{siteId}/ads
|
|
16176
16120
|
* @secure
|
|
16177
16121
|
*/
|
|
@@ -16181,11 +16125,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
16181
16125
|
topic?: SiteAdsTopic;
|
|
16182
16126
|
}, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
16183
16127
|
/**
|
|
16184
|
-
*
|
|
16128
|
+
* @description Creates a new redirect rule mapping a source path to a destination URL or content reference. Use the bulk upsert endpoint instead when creating many redirects at once.
|
|
16185
16129
|
*
|
|
16186
16130
|
* @tags site-redirects
|
|
16187
16131
|
* @name CreateSiteRedirect
|
|
16188
|
-
* @summary Create a
|
|
16132
|
+
* @summary Create a URL redirect rule for a site
|
|
16189
16133
|
* @request POST:/orgs/{organizationId}/sites/{siteId}/redirects
|
|
16190
16134
|
* @secure
|
|
16191
16135
|
*/
|
|
@@ -16205,11 +16149,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
16205
16149
|
destination: SiteRedirectInputDestination;
|
|
16206
16150
|
}, params?: RequestParams) => Promise<HttpResponse<SiteRedirect, any>>;
|
|
16207
16151
|
/**
|
|
16208
|
-
*
|
|
16152
|
+
* @description Processes up to 500 redirect operations in a single request. Each redirect in the array is processed independently and the response includes per-item status. Prefer this over individual create/update calls when managing large sets of redirects.
|
|
16209
16153
|
*
|
|
16210
16154
|
* @tags site-redirects
|
|
16211
16155
|
* @name BulkUpsertSiteRedirects
|
|
16212
|
-
* @summary Create or
|
|
16156
|
+
* @summary Create, update, delete, or publish site redirect rules in bulk
|
|
16213
16157
|
* @request PUT:/orgs/{organizationId}/sites/{siteId}/redirects
|
|
16214
16158
|
* @secure
|
|
16215
16159
|
*/
|
|
@@ -16288,11 +16232,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
16288
16232
|
})[];
|
|
16289
16233
|
}, any>>;
|
|
16290
16234
|
/**
|
|
16291
|
-
*
|
|
16235
|
+
* @description Returns a paginated list of redirect rules for the site. Supports filtering by draft status and searching by path. Use this to audit redirects, find a specific rule before updating it, or check whether draft redirects are pending publication.
|
|
16292
16236
|
*
|
|
16293
16237
|
* @tags site-redirects
|
|
16294
16238
|
* @name ListSiteRedirects
|
|
16295
|
-
* @summary List all site
|
|
16239
|
+
* @summary List all URL redirect rules configured for a site
|
|
16296
16240
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/redirects
|
|
16297
16241
|
* @secure
|
|
16298
16242
|
*/
|
|
@@ -16316,11 +16260,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
16316
16260
|
items: SiteRedirect[];
|
|
16317
16261
|
}, any>>;
|
|
16318
16262
|
/**
|
|
16319
|
-
*
|
|
16263
|
+
* @description Updates an existing redirect rule for a site. Only provided fields are updated.
|
|
16320
16264
|
*
|
|
16321
16265
|
* @tags site-redirects
|
|
16322
16266
|
* @name UpdateSiteRedirectById
|
|
16323
|
-
* @summary Update a
|
|
16267
|
+
* @summary Update a URL redirect rule for a site
|
|
16324
16268
|
* @request PATCH:/orgs/{organizationId}/sites/{siteId}/redirects/{siteRedirectId}
|
|
16325
16269
|
* @secure
|
|
16326
16270
|
*/
|
|
@@ -16344,11 +16288,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
16344
16288
|
*/
|
|
16345
16289
|
deleteSiteRedirectById: (organizationId: EntityId, siteId: string, siteRedirectId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
16346
16290
|
/**
|
|
16347
|
-
*
|
|
16291
|
+
* @description Looks up a redirect rule by its source URL path and returns both the redirect configuration and the resolved destination URL. Use this to check whether a specific path has a redirect configured, or to resolve where a path currently points before updating or removing the redirect.
|
|
16348
16292
|
*
|
|
16349
16293
|
* @tags site-redirects
|
|
16350
16294
|
* @name GetSiteRedirectBySource
|
|
16351
|
-
* @summary
|
|
16295
|
+
* @summary Resolve a site redirect rule by its source path
|
|
16352
16296
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/redirect
|
|
16353
16297
|
* @secure
|
|
16354
16298
|
*/
|
|
@@ -16369,11 +16313,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
16369
16313
|
};
|
|
16370
16314
|
}>>;
|
|
16371
16315
|
/**
|
|
16372
|
-
*
|
|
16316
|
+
* @description Returns a paginated list of Model Context Protocol (MCP) server configurations attached to the site. MCP servers expose tools and resources that the AI Assistant can call when helping site visitors find information. Use this to audit or manage the AI tool integrations available on a site.
|
|
16373
16317
|
*
|
|
16374
16318
|
* @tags site-mcp-servers
|
|
16375
16319
|
* @name ListSiteMcpServers
|
|
16376
|
-
* @summary List all MCP servers for a site
|
|
16320
|
+
* @summary List all MCP servers configured for a site
|
|
16377
16321
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/mcp-servers
|
|
16378
16322
|
* @secure
|
|
16379
16323
|
*/
|
|
@@ -16390,11 +16334,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
16390
16334
|
items: SiteMcpServer[];
|
|
16391
16335
|
}, any>>;
|
|
16392
16336
|
/**
|
|
16393
|
-
*
|
|
16337
|
+
* @description Registers a new Model Context Protocol (MCP) server with the site, providing its URL, transport type, request headers, and an optional conditional expression to control visibility per visitor. Once added, the MCP server's tools become available to the AI Assistant when helping visitors of this site.
|
|
16394
16338
|
*
|
|
16395
16339
|
* @tags site-mcp-servers
|
|
16396
16340
|
* @name CreateSiteMcpServer
|
|
16397
|
-
* @summary
|
|
16341
|
+
* @summary Add a new MCP server configuration to a site
|
|
16398
16342
|
* @request POST:/orgs/{organizationId}/sites/{siteId}/mcp-servers
|
|
16399
16343
|
* @secure
|
|
16400
16344
|
*/
|
|
@@ -16410,21 +16354,21 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
16410
16354
|
condition?: Expression | null;
|
|
16411
16355
|
}, params?: RequestParams) => Promise<HttpResponse<SiteMcpServer, any>>;
|
|
16412
16356
|
/**
|
|
16413
|
-
*
|
|
16357
|
+
* @description Retrieves the configuration of a specific MCP server registered with the site. Use this to inspect an MCP server's details before updating or removing it.
|
|
16414
16358
|
*
|
|
16415
16359
|
* @tags site-mcp-servers
|
|
16416
16360
|
* @name GetSiteMcpServerById
|
|
16417
|
-
* @summary Get a site
|
|
16361
|
+
* @summary Get an MCP server configuration for a site by its ID
|
|
16418
16362
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/mcp-servers/{siteMcpServerId}
|
|
16419
16363
|
* @secure
|
|
16420
16364
|
*/
|
|
16421
16365
|
getSiteMcpServerById: (organizationId: EntityId, siteId: string, siteMcpServerId: string, params?: RequestParams) => Promise<HttpResponse<SiteMcpServer, any>>;
|
|
16422
16366
|
/**
|
|
16423
|
-
*
|
|
16367
|
+
* @description Modifies an existing MCP server's configuration. Only provided fields are updated; omitting a field leaves it unchanged. Set condition to null to remove it and make the MCP server available to all visitors.
|
|
16424
16368
|
*
|
|
16425
16369
|
* @tags site-mcp-servers
|
|
16426
16370
|
* @name UpdateSiteMcpServerById
|
|
16427
|
-
* @summary Update
|
|
16371
|
+
* @summary Update an MCP server configuration for a site
|
|
16428
16372
|
* @request PATCH:/orgs/{organizationId}/sites/{siteId}/mcp-servers/{siteMcpServerId}
|
|
16429
16373
|
* @secure
|
|
16430
16374
|
*/
|
|
@@ -16454,11 +16398,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
16454
16398
|
*/
|
|
16455
16399
|
deleteSiteMcpServerById: (organizationId: EntityId, siteId: string, siteMcpServerId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
16456
16400
|
/**
|
|
16457
|
-
*
|
|
16401
|
+
* @description Returns a paginated list of channels configured for the site. Channels are integrations that allow GitBook Agent to operate within external tools your team already uses, bringing documentation assistance directly into existing workflows. Each channel has a role that determines whether the Agent answers questions from the site's documentation or actively collaborates by opening and managing content changes. Use this to inspect or manage the Agent channel integrations for a site.
|
|
16458
16402
|
*
|
|
16459
16403
|
* @tags site-channels
|
|
16460
16404
|
* @name ListSiteChannels
|
|
16461
|
-
* @summary List all
|
|
16405
|
+
* @summary List all GitBook Agent channels for a site
|
|
16462
16406
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/channels
|
|
16463
16407
|
* @secure
|
|
16464
16408
|
*/
|
|
@@ -16475,11 +16419,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
16475
16419
|
items: SiteChannel[];
|
|
16476
16420
|
}, any>>;
|
|
16477
16421
|
/**
|
|
16478
|
-
*
|
|
16422
|
+
* @description Configures a new channel integration that allows GitBook Agent to operate within an external tool connected to this site. The channel role determines whether the Agent acts as a support assistant — answering questions sourced from the site's documentation — or as a collaborator that can open change requests and sync documentation updates directly from the connected platform.
|
|
16479
16423
|
*
|
|
16480
16424
|
* @tags site-channels
|
|
16481
16425
|
* @name CreateSiteChannel
|
|
16482
|
-
* @summary Create a
|
|
16426
|
+
* @summary Create a new GitBook Agent channel for a site
|
|
16483
16427
|
* @request POST:/orgs/{organizationId}/sites/{siteId}/channels
|
|
16484
16428
|
* @secure
|
|
16485
16429
|
*/
|
|
@@ -16487,21 +16431,21 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
16487
16431
|
role?: SiteChannelRole;
|
|
16488
16432
|
}, params?: RequestParams) => Promise<HttpResponse<SiteChannel, any>>;
|
|
16489
16433
|
/**
|
|
16490
|
-
*
|
|
16434
|
+
* @description Retrieves the configuration of a specific GitBook Agent channel integration, including its connected platform type and role. Use this to inspect or verify the channel's setup before updating it.
|
|
16491
16435
|
*
|
|
16492
16436
|
* @tags site-channels
|
|
16493
16437
|
* @name GetSiteChannelById
|
|
16494
|
-
* @summary Get a site
|
|
16438
|
+
* @summary Get a GitBook Agent channel for a site by its ID
|
|
16495
16439
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/channels/{siteChannelId}
|
|
16496
16440
|
* @secure
|
|
16497
16441
|
*/
|
|
16498
16442
|
getSiteChannelById: (organizationId: EntityId, siteId: string, siteChannelId: string, params?: RequestParams) => Promise<HttpResponse<SiteChannel, any>>;
|
|
16499
16443
|
/**
|
|
16500
|
-
*
|
|
16444
|
+
* @description Modifies the configuration of a specific GitBook Agent channel integration, including its role. Use this to change whether the Agent answers documentation questions or actively collaborates on content changes through the connected platform.
|
|
16501
16445
|
*
|
|
16502
16446
|
* @tags site-channels
|
|
16503
16447
|
* @name UpdateSiteChannelById
|
|
16504
|
-
* @summary Update a
|
|
16448
|
+
* @summary Update a GitBook Agent channel for a site
|
|
16505
16449
|
* @request PATCH:/orgs/{organizationId}/sites/{siteId}/channels/{siteChannelId}
|
|
16506
16450
|
* @secure
|
|
16507
16451
|
*/
|
|
@@ -16513,7 +16457,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
16513
16457
|
*
|
|
16514
16458
|
* @tags site-channels
|
|
16515
16459
|
* @name DeleteSiteChannelById
|
|
16516
|
-
* @summary Delete a
|
|
16460
|
+
* @summary Delete a GitBook Agent channel from a site
|
|
16517
16461
|
* @request DELETE:/orgs/{organizationId}/sites/{siteId}/channels/{siteChannelId}
|
|
16518
16462
|
* @secure
|
|
16519
16463
|
*/
|