@gitbook/api 0.186.0 → 0.187.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 +473 -335
- package/dist/constants.d.ts +4 -2
- package/dist/index.cjs +14 -10
- package/dist/index.js +12 -10
- package/package.json +1 -1
- package/spec/openapi.json +1924 -245
- package/spec/openapi.yaml +1088 -223
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",
|
|
@@ -360,8 +361,15 @@ export declare enum SiteFindingType {
|
|
|
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"
|
|
@@ -1132,7 +1140,9 @@ export type ChangeRequestContentChange = ({
|
|
|
1132
1140
|
operation: "insert_page";
|
|
1133
1141
|
} & ChangeRequestContentChangeInsertPage) | ({
|
|
1134
1142
|
operation: "delete_page";
|
|
1135
|
-
} & ChangeRequestContentChangeDeletePage)
|
|
1143
|
+
} & ChangeRequestContentChangeDeletePage) | ({
|
|
1144
|
+
operation: "revert_page";
|
|
1145
|
+
} & ChangeRequestContentChangeRevertPage);
|
|
1136
1146
|
/** An absolute reference to content in GitBook. */
|
|
1137
1147
|
export type ContentLocation = ContentLocationFile | ContentLocationURL | ContentLocationPage | ContentLocationUser | ContentLocationCollection | ContentLocationSpace | ContentLocationReusableContent | ContentLocationOpenAPI;
|
|
1138
1148
|
export type Revision = RevisionTypeEdits | RevisionTypeMerge | RevisionTypeRollback | RevisionTypeUpdate | RevisionTypeComputed;
|
|
@@ -1322,6 +1332,8 @@ export interface Space {
|
|
|
1322
1332
|
* * `locked`: All edits are locked for this space.
|
|
1323
1333
|
*/
|
|
1324
1334
|
editMode?: SpaceEditMode;
|
|
1335
|
+
/** Kind of space. Only set to `styleguide` for spaces holding a team's writing styleguide; omitted for regular spaces. */
|
|
1336
|
+
type?: "styleguide";
|
|
1325
1337
|
mergeRules: MergeRulesSpaceConfiguration;
|
|
1326
1338
|
/** URLs associated with the object */
|
|
1327
1339
|
urls: {
|
|
@@ -3533,6 +3545,8 @@ export interface AgentConversation {
|
|
|
3533
3545
|
id: string;
|
|
3534
3546
|
/** The title of the conversation, generated from the first message. Absent until generated. */
|
|
3535
3547
|
title?: string;
|
|
3548
|
+
/** 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. */
|
|
3549
|
+
shared: boolean;
|
|
3536
3550
|
createdAt: Timestamp;
|
|
3537
3551
|
updatedAt: Timestamp;
|
|
3538
3552
|
}
|
|
@@ -3630,6 +3644,19 @@ export interface ChangeRequestContentChangeDeletePage {
|
|
|
3630
3644
|
/** ID of the page to delete. */
|
|
3631
3645
|
page: string;
|
|
3632
3646
|
}
|
|
3647
|
+
/**
|
|
3648
|
+
* 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.
|
|
3649
|
+
* @example {"operation":"revert_page","page":"page_id"}
|
|
3650
|
+
*/
|
|
3651
|
+
export interface ChangeRequestContentChangeRevertPage {
|
|
3652
|
+
operation: "revert_page";
|
|
3653
|
+
/** ID of the page to revert. */
|
|
3654
|
+
page: string;
|
|
3655
|
+
/** ID of the revision to revert the page to. If omitted, the change request's base revision is used. */
|
|
3656
|
+
revision?: string;
|
|
3657
|
+
/** 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. */
|
|
3658
|
+
block?: string[];
|
|
3659
|
+
}
|
|
3633
3660
|
export interface ChangedRevisionPage {
|
|
3634
3661
|
id: string;
|
|
3635
3662
|
type: RevisionPageType;
|
|
@@ -4613,6 +4640,21 @@ export interface Site {
|
|
|
4613
4640
|
permissionsModel: SitePermissionsModel;
|
|
4614
4641
|
/** Default level for a piece of content */
|
|
4615
4642
|
defaultLevel: DefaultLevel;
|
|
4643
|
+
/** The set of permissions for the site. */
|
|
4644
|
+
permissions: {
|
|
4645
|
+
/** Can the user view the site. */
|
|
4646
|
+
view: boolean;
|
|
4647
|
+
/** Can the user access the site in the application. */
|
|
4648
|
+
access: boolean;
|
|
4649
|
+
/** Can the user edit the site and manage its settings. */
|
|
4650
|
+
admin: boolean;
|
|
4651
|
+
/** Can the user install integrations on the site. */
|
|
4652
|
+
installIntegration: boolean;
|
|
4653
|
+
/** Can the user view the adaptive schema of the site. */
|
|
4654
|
+
viewAdaptiveSchema: boolean;
|
|
4655
|
+
/** Can the user edit the adaptive schema of the site. */
|
|
4656
|
+
editAdaptiveSchema: boolean;
|
|
4657
|
+
};
|
|
4616
4658
|
/** Whether the site is live or not. If true, the site is accessible to the audience defined by the visibility setting. */
|
|
4617
4659
|
published: boolean;
|
|
4618
4660
|
siteSpaces: number;
|
|
@@ -5174,6 +5216,31 @@ export interface OrganizationAllContent {
|
|
|
5174
5216
|
/** List of soft-deleted spaces. */
|
|
5175
5217
|
deletedSpaces: OrganizationAllSpace[];
|
|
5176
5218
|
}
|
|
5219
|
+
/** A styleguide space and all the sites referencing it. */
|
|
5220
|
+
export interface OrganizationStyleguide {
|
|
5221
|
+
space: Space;
|
|
5222
|
+
/** Sites in the organization that reference this styleguide. */
|
|
5223
|
+
sites: Site[];
|
|
5224
|
+
}
|
|
5225
|
+
export interface OrganizationStyleguides {
|
|
5226
|
+
styleguides: OrganizationStyleguide[];
|
|
5227
|
+
}
|
|
5228
|
+
/** A built-in styleguide starter template used to seed and preview a styleguide. */
|
|
5229
|
+
export interface StyleguideTemplate {
|
|
5230
|
+
/** Identifier of the template, passed to createSiteStyleguideById to seed a styleguide from it. */
|
|
5231
|
+
id: string;
|
|
5232
|
+
/** Human-readable name of the template. */
|
|
5233
|
+
title: string;
|
|
5234
|
+
/** Short one-line description of the template. */
|
|
5235
|
+
subtitle?: string;
|
|
5236
|
+
/** Emoji illustrating the template. */
|
|
5237
|
+
emoji?: string;
|
|
5238
|
+
/** Markdown content of the template, rendered as a preview. */
|
|
5239
|
+
markdown: string;
|
|
5240
|
+
}
|
|
5241
|
+
export interface StyleguideTemplates {
|
|
5242
|
+
templates: StyleguideTemplate[];
|
|
5243
|
+
}
|
|
5177
5244
|
/** Permission of a member in a content. */
|
|
5178
5245
|
export interface MemberContentPermission {
|
|
5179
5246
|
/**
|
|
@@ -6263,9 +6330,11 @@ export interface SiteCustomizationSettingsBase {
|
|
|
6263
6330
|
* Ordered list of the page actions enabled in the page menu. This is the source of truth for
|
|
6264
6331
|
* which actions are enabled and in which order: the position defines the display order, the
|
|
6265
6332
|
* 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
|
-
*
|
|
6333
|
+
* present in the list are disabled. An empty list turns the page menu off entirely: no action
|
|
6334
|
+
* is shown, not even the `assistant`. On a non-empty list the `assistant` action follows the
|
|
6335
|
+
* `ai.mode` setting rather than its own presence: it is kept (prepended by default if missing,
|
|
6336
|
+
* otherwise keeping its position) when the assistant is enabled and absent when it is disabled.
|
|
6337
|
+
* When the menu is off, the assistant stays reachable from the header via `ai.mode`.
|
|
6269
6338
|
*/
|
|
6270
6339
|
items: CustomizationPageActionType[];
|
|
6271
6340
|
};
|
|
@@ -6450,7 +6519,7 @@ export interface SiteInsightsSession {
|
|
|
6450
6519
|
sessionId: string;
|
|
6451
6520
|
}
|
|
6452
6521
|
/** 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";
|
|
6522
|
+
export type ContextConnector = string | "builtin:email" | "builtin:api" | "builtin:website" | "builtin:youtube" | "builtin:github-discussions" | "builtin:github-issues" | "builtin:intercom" | "builtin:zendesk" | "builtin:pylon" | "builtin:linear";
|
|
6454
6523
|
/**
|
|
6455
6524
|
* Title for the context record
|
|
6456
6525
|
* @minLength 1
|
|
@@ -6566,7 +6635,13 @@ export interface SiteFinding {
|
|
|
6566
6635
|
records: number;
|
|
6567
6636
|
/** Number of questions linked to the finding */
|
|
6568
6637
|
questions: number;
|
|
6569
|
-
/**
|
|
6638
|
+
/**
|
|
6639
|
+
* Status of a site finding.
|
|
6640
|
+
* - `candidate` is a finding that has been raised but not yet confirmed. Typically these are not shown to users.
|
|
6641
|
+
* - `open` is a finding that has been surfaced to users and is still under investigation.
|
|
6642
|
+
* - `done` is a finding that has been resolved and is no longer under investigation.
|
|
6643
|
+
* - `canceled` is a finding that has been canceled and is no longer under investigation.
|
|
6644
|
+
*/
|
|
6570
6645
|
status: SiteFindingStatus;
|
|
6571
6646
|
/**
|
|
6572
6647
|
* Classification of a site finding:
|
|
@@ -6683,6 +6758,12 @@ export interface SiteQuestion {
|
|
|
6683
6758
|
* @maxLength 128
|
|
6684
6759
|
*/
|
|
6685
6760
|
export type ContextConnectionLabel = string;
|
|
6761
|
+
/**
|
|
6762
|
+
* 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.
|
|
6763
|
+
* @minLength 0
|
|
6764
|
+
* @maxLength 1024
|
|
6765
|
+
*/
|
|
6766
|
+
export type ContextConnectionFilter = string;
|
|
6686
6767
|
export interface ContextUsageSettings {
|
|
6687
6768
|
/** Whether to use context to propose change requests */
|
|
6688
6769
|
changeRequests: boolean;
|
|
@@ -6754,6 +6835,18 @@ export type ContextConnectorSetup = {
|
|
|
6754
6835
|
/** @minLength 1 */
|
|
6755
6836
|
apiToken: string;
|
|
6756
6837
|
};
|
|
6838
|
+
} | {
|
|
6839
|
+
connector: "builtin:pylon";
|
|
6840
|
+
setupSettings: {
|
|
6841
|
+
/** @minLength 1 */
|
|
6842
|
+
token: string;
|
|
6843
|
+
};
|
|
6844
|
+
} | {
|
|
6845
|
+
connector: "builtin:linear";
|
|
6846
|
+
setupSettings: {
|
|
6847
|
+
/** @minLength 1 */
|
|
6848
|
+
token: string;
|
|
6849
|
+
};
|
|
6757
6850
|
};
|
|
6758
6851
|
export type ContextConnection = {
|
|
6759
6852
|
object: "context-connection";
|
|
@@ -6763,6 +6856,8 @@ export type ContextConnection = {
|
|
|
6763
6856
|
syncedAt?: Timestamp;
|
|
6764
6857
|
/** Optional label for the connection */
|
|
6765
6858
|
label?: ContextConnectionLabel;
|
|
6859
|
+
/** 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. */
|
|
6860
|
+
filter?: ContextConnectionFilter;
|
|
6766
6861
|
status: ContextConnectionStatus;
|
|
6767
6862
|
/** Number of records ingested from this connection */
|
|
6768
6863
|
records: number;
|
|
@@ -7371,6 +7466,10 @@ export interface UserSitePermission {
|
|
|
7371
7466
|
user: User;
|
|
7372
7467
|
/** The origin that enforced the effective permission level for a user in a site. */
|
|
7373
7468
|
origin: UserSitePermissionOrigin;
|
|
7469
|
+
/** Whether the user is disabled */
|
|
7470
|
+
disabled: boolean;
|
|
7471
|
+
/** Date at which the user was last seen */
|
|
7472
|
+
lastSeenAt?: Timestamp;
|
|
7374
7473
|
}
|
|
7375
7474
|
/** Permission override of a user in a site. */
|
|
7376
7475
|
export interface UserSitePermissionOverride {
|
|
@@ -7654,10 +7753,30 @@ export type SiteInsightsEventPagePostFeedbackComment = SiteInsightsEventBase & {
|
|
|
7654
7753
|
comment: string;
|
|
7655
7754
|
};
|
|
7656
7755
|
};
|
|
7756
|
+
export type SiteInsightsEventAgentFeedback = SiteInsightsEventBase & {
|
|
7757
|
+
type: "agent_feedback";
|
|
7758
|
+
feedback: {
|
|
7759
|
+
/**
|
|
7760
|
+
* @minLength 1
|
|
7761
|
+
* @maxLength 2048
|
|
7762
|
+
*/
|
|
7763
|
+
content: string;
|
|
7764
|
+
/**
|
|
7765
|
+
* Classification of a site finding:
|
|
7766
|
+
* - Outdated content: The content is no longer up to date with external context and may be misleading or incorrect.
|
|
7767
|
+
* - Incoherent content: The content contains information that is inconsistent or contradictory.
|
|
7768
|
+
* - Content gap: The content is missing important information that should be present to answer user questions effectively.
|
|
7769
|
+
* - Other: Any other type of finding not covered by the above categories.
|
|
7770
|
+
*/
|
|
7771
|
+
category: SiteFindingType;
|
|
7772
|
+
};
|
|
7773
|
+
};
|
|
7657
7774
|
export type SiteInsightsEventAskQuestion = SiteInsightsEventBase & {
|
|
7658
7775
|
type: "ask_question";
|
|
7659
7776
|
/** Question being asked. */
|
|
7660
7777
|
query: string;
|
|
7778
|
+
/** 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. */
|
|
7779
|
+
goal?: string;
|
|
7661
7780
|
};
|
|
7662
7781
|
/** Event when a user views the ask UI. */
|
|
7663
7782
|
export type SiteInsightsEventAskView = SiteInsightsEventBase & {
|
|
@@ -7716,7 +7835,7 @@ export type SiteInsightsEventMCPRequest = SiteInsightsEventBase & {
|
|
|
7716
7835
|
export type SiteInsightsEventRSSRequest = SiteInsightsEventBase & {
|
|
7717
7836
|
type: "rss_request";
|
|
7718
7837
|
};
|
|
7719
|
-
export type SiteInsightsEvent = SiteInsightsEventPageView | SiteInsightsEventPageMarkdownRequest | SiteInsightsEventSearchOpen | SiteInsightsEventSearchTypeQuery | SiteInsightsEventSearchOpenResult | SiteInsightsEventPagePostFeedback | SiteInsightsEventPagePostFeedbackComment | SiteInsightsEventAskQuestion | SiteInsightsEventAskView | SiteInsightsEventAskRateResponse | SiteInsightsEventLinkClick | SiteInsightsEventAPIClientOpen | SiteInsightsEventAPIClientRequest | SiteInsightsEventTrademarkClick | SiteInsightsEventAdClick | SiteInsightsEventAdDisplay | SiteInsightsEventLLMSRequest | SiteInsightsEventMCPRequest | SiteInsightsEventRSSRequest;
|
|
7838
|
+
export type SiteInsightsEvent = SiteInsightsEventPageView | SiteInsightsEventPageMarkdownRequest | SiteInsightsEventSearchOpen | SiteInsightsEventSearchTypeQuery | SiteInsightsEventSearchOpenResult | SiteInsightsEventPagePostFeedback | SiteInsightsEventPagePostFeedbackComment | SiteInsightsEventAgentFeedback | SiteInsightsEventAskQuestion | SiteInsightsEventAskView | SiteInsightsEventAskRateResponse | SiteInsightsEventLinkClick | SiteInsightsEventAPIClientOpen | SiteInsightsEventAPIClientRequest | SiteInsightsEventTrademarkClick | SiteInsightsEventAdClick | SiteInsightsEventAdDisplay | SiteInsightsEventLLMSRequest | SiteInsightsEventMCPRequest | SiteInsightsEventRSSRequest;
|
|
7720
7839
|
export interface SiteInsightsQueryDateTimeColumn {
|
|
7721
7840
|
column: "datetime";
|
|
7722
7841
|
interval?: "hour" | "day" | "week" | "month";
|
|
@@ -8251,7 +8370,6 @@ export interface BlockContext {
|
|
|
8251
8370
|
block: boolean;
|
|
8252
8371
|
/** A short description giving context on the reason for the block. */
|
|
8253
8372
|
reason?: BlockReason;
|
|
8254
|
-
blockPaidOrg?: boolean;
|
|
8255
8373
|
}
|
|
8256
8374
|
/** The GitBook User impersonation info. */
|
|
8257
8375
|
export interface UserImpersonationInfo {
|
|
@@ -9937,11 +10055,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9937
10055
|
};
|
|
9938
10056
|
spaces: {
|
|
9939
10057
|
/**
|
|
9940
|
-
*
|
|
10058
|
+
* @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
10059
|
*
|
|
9942
10060
|
* @tags spaces, critical
|
|
9943
10061
|
* @name GetSpaceById
|
|
9944
|
-
* @summary Get a space by its ID
|
|
10062
|
+
* @summary Get full details of a space by its ID
|
|
9945
10063
|
* @request GET:/spaces/{spaceId}
|
|
9946
10064
|
* @secure
|
|
9947
10065
|
*/
|
|
@@ -9950,11 +10068,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9950
10068
|
shareKey?: string;
|
|
9951
10069
|
}, params?: RequestParams) => Promise<HttpResponse<Space, any>>;
|
|
9952
10070
|
/**
|
|
9953
|
-
*
|
|
10071
|
+
* @description Updates a space's metadata and settings. To update page content, use the change-request workflow instead.
|
|
9954
10072
|
*
|
|
9955
10073
|
* @tags spaces
|
|
9956
10074
|
* @name UpdateSpaceById
|
|
9957
|
-
* @summary Update a space
|
|
10075
|
+
* @summary Update a space's title, icon, or settings
|
|
9958
10076
|
* @request PATCH:/spaces/{spaceId}
|
|
9959
10077
|
* @secure
|
|
9960
10078
|
*/
|
|
@@ -9991,31 +10109,31 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9991
10109
|
*/
|
|
9992
10110
|
deleteSpaceById: (spaceId: EntityId, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
9993
10111
|
/**
|
|
9994
|
-
*
|
|
10112
|
+
* @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
10113
|
*
|
|
9996
10114
|
* @tags spaces
|
|
9997
10115
|
* @name DuplicateSpace
|
|
9998
|
-
* @summary
|
|
10116
|
+
* @summary Create a full copy of a space
|
|
9999
10117
|
* @request POST:/spaces/{spaceId}/duplicate
|
|
10000
10118
|
* @secure
|
|
10001
10119
|
*/
|
|
10002
10120
|
duplicateSpace: (spaceId: EntityId, params?: RequestParams) => Promise<HttpResponse<Space, any>>;
|
|
10003
10121
|
/**
|
|
10004
|
-
* @description Only spaces deleted
|
|
10122
|
+
* @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
10123
|
*
|
|
10006
10124
|
* @tags spaces
|
|
10007
10125
|
* @name RestoreSpace
|
|
10008
|
-
* @summary Restore a deleted space
|
|
10126
|
+
* @summary Restore a recently deleted space from the trash
|
|
10009
10127
|
* @request POST:/spaces/{spaceId}/restore
|
|
10010
10128
|
* @secure
|
|
10011
10129
|
*/
|
|
10012
10130
|
restoreSpace: (spaceId: EntityId, params?: RequestParams) => Promise<HttpResponse<Space, any>>;
|
|
10013
10131
|
/**
|
|
10014
|
-
*
|
|
10132
|
+
* @description Moves a space to a new parent collection and/or a new position within the hierarchy.
|
|
10015
10133
|
*
|
|
10016
10134
|
* @tags spaces
|
|
10017
10135
|
* @name MoveSpace
|
|
10018
|
-
* @summary Move a space to a
|
|
10136
|
+
* @summary Move a space to a different collection or position
|
|
10019
10137
|
* @request POST:/spaces/{spaceId}/move
|
|
10020
10138
|
* @secure
|
|
10021
10139
|
*/
|
|
@@ -10044,11 +10162,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10044
10162
|
};
|
|
10045
10163
|
}>>;
|
|
10046
10164
|
/**
|
|
10047
|
-
*
|
|
10165
|
+
* @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
10166
|
*
|
|
10049
10167
|
* @tags space-embeds
|
|
10050
10168
|
* @name GetEmbedByUrlInSpace
|
|
10051
|
-
* @summary Resolve a URL to an
|
|
10169
|
+
* @summary Resolve a URL to an oEmbed object within a space
|
|
10052
10170
|
* @request GET:/spaces/{spaceId}/embed
|
|
10053
10171
|
* @secure
|
|
10054
10172
|
*/
|
|
@@ -10057,11 +10175,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10057
10175
|
url: string;
|
|
10058
10176
|
}, params?: RequestParams) => Promise<HttpResponse<Embed, any>>;
|
|
10059
10177
|
/**
|
|
10060
|
-
*
|
|
10178
|
+
* @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
10179
|
*
|
|
10062
10180
|
* @tags space-content
|
|
10063
10181
|
* @name SearchSpaceContent
|
|
10064
|
-
* @summary
|
|
10182
|
+
* @summary Full-text search across all pages in a space
|
|
10065
10183
|
* @request GET:/spaces/{spaceId}/search
|
|
10066
10184
|
* @secure
|
|
10067
10185
|
*/
|
|
@@ -10080,31 +10198,31 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10080
10198
|
items: SearchPageResult[];
|
|
10081
10199
|
}, any>>;
|
|
10082
10200
|
/**
|
|
10083
|
-
*
|
|
10201
|
+
* @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
10202
|
*
|
|
10085
10203
|
* @tags space-git
|
|
10086
10204
|
* @name ImportGitRepository
|
|
10087
|
-
* @summary
|
|
10205
|
+
* @summary Pull content into a space from a connected Git repository
|
|
10088
10206
|
* @request POST:/spaces/{spaceId}/git/import
|
|
10089
10207
|
* @secure
|
|
10090
10208
|
*/
|
|
10091
10209
|
importGitRepository: (spaceId: EntityId, data: ImportGitRepository, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
10092
10210
|
/**
|
|
10093
|
-
*
|
|
10211
|
+
* @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
10212
|
*
|
|
10095
10213
|
* @tags space-git
|
|
10096
10214
|
* @name ExportToGitRepository
|
|
10097
|
-
* @summary
|
|
10215
|
+
* @summary Push space content to a connected Git repository
|
|
10098
10216
|
* @request POST:/spaces/{spaceId}/git/export
|
|
10099
10217
|
* @secure
|
|
10100
10218
|
*/
|
|
10101
10219
|
exportToGitRepository: (spaceId: EntityId, data: ExportToGitRepository, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
10102
10220
|
/**
|
|
10103
|
-
* @description
|
|
10221
|
+
* @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
10222
|
*
|
|
10105
10223
|
* @tags space-git
|
|
10106
10224
|
* @name GetSpaceGitInfo
|
|
10107
|
-
* @summary Get
|
|
10225
|
+
* @summary Get the Git Sync configuration and status for a space
|
|
10108
10226
|
* @request GET:/spaces/{spaceId}/git/info
|
|
10109
10227
|
* @secure
|
|
10110
10228
|
*/
|
|
@@ -10272,11 +10390,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10272
10390
|
};
|
|
10273
10391
|
}>>;
|
|
10274
10392
|
/**
|
|
10275
|
-
*
|
|
10393
|
+
* @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
10394
|
*
|
|
10277
10395
|
* @tags space-content
|
|
10278
10396
|
* @name GetCurrentRevision
|
|
10279
|
-
* @summary Get
|
|
10397
|
+
* @summary Get the current published content revision of a space
|
|
10280
10398
|
* @request GET:/spaces/{spaceId}/content
|
|
10281
10399
|
* @secure
|
|
10282
10400
|
*/
|
|
@@ -10293,11 +10411,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10293
10411
|
computed?: boolean;
|
|
10294
10412
|
}, params?: RequestParams) => Promise<HttpResponse<Revision, any>>;
|
|
10295
10413
|
/**
|
|
10296
|
-
*
|
|
10414
|
+
* @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
10415
|
*
|
|
10298
10416
|
* @tags space-content
|
|
10299
10417
|
* @name ApplyTemplateToSpace
|
|
10300
|
-
* @summary Apply a template to a space
|
|
10418
|
+
* @summary Apply a content template to populate a space with initial pages
|
|
10301
10419
|
* @request POST:/spaces/{spaceId}/content/template
|
|
10302
10420
|
* @secure
|
|
10303
10421
|
*/
|
|
@@ -10306,11 +10424,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10306
10424
|
changeRequestId?: string;
|
|
10307
10425
|
}, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
10308
10426
|
/**
|
|
10309
|
-
*
|
|
10427
|
+
* @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
10428
|
*
|
|
10311
10429
|
* @tags space-content
|
|
10312
10430
|
* @name ListPages
|
|
10313
|
-
* @summary List all space
|
|
10431
|
+
* @summary List all pages in a space with their hierarchy and metadata
|
|
10314
10432
|
* @request GET:/spaces/{spaceId}/content/pages
|
|
10315
10433
|
* @secure
|
|
10316
10434
|
*/
|
|
@@ -10329,11 +10447,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10329
10447
|
pages: RevisionPage[];
|
|
10330
10448
|
}, any>>;
|
|
10331
10449
|
/**
|
|
10332
|
-
*
|
|
10450
|
+
* @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
10451
|
*
|
|
10334
10452
|
* @tags space-content
|
|
10335
10453
|
* @name ListFiles
|
|
10336
|
-
* @summary List all
|
|
10454
|
+
* @summary List all uploaded files and assets in a space
|
|
10337
10455
|
* @request GET:/spaces/{spaceId}/content/files
|
|
10338
10456
|
* @secure
|
|
10339
10457
|
*/
|
|
@@ -10360,11 +10478,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10360
10478
|
items: RevisionFile[];
|
|
10361
10479
|
}, any>>;
|
|
10362
10480
|
/**
|
|
10363
|
-
*
|
|
10481
|
+
* @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
10482
|
*
|
|
10365
10483
|
* @tags space-content
|
|
10366
10484
|
* @name GetFileById
|
|
10367
|
-
* @summary Get a
|
|
10485
|
+
* @summary Get a specific uploaded file from a space by its ID
|
|
10368
10486
|
* @request GET:/spaces/{spaceId}/content/files/{fileId}
|
|
10369
10487
|
* @secure
|
|
10370
10488
|
*/
|
|
@@ -10381,11 +10499,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10381
10499
|
computed?: boolean;
|
|
10382
10500
|
}, params?: RequestParams) => Promise<HttpResponse<RevisionFile, any>>;
|
|
10383
10501
|
/**
|
|
10384
|
-
*
|
|
10502
|
+
* @description Returns the content locations (pages and inline positions) within the space that link to or embed the specified file. Use this to find where an asset is used before deleting or replacing it.
|
|
10385
10503
|
*
|
|
10386
10504
|
* @tags space-content
|
|
10387
10505
|
* @name ListSpaceFileBacklinks
|
|
10388
|
-
* @summary List all space
|
|
10506
|
+
* @summary List all pages in a space that reference a specific file
|
|
10389
10507
|
* @request GET:/spaces/{spaceId}/content/files/{fileId}/backlinks
|
|
10390
10508
|
* @secure
|
|
10391
10509
|
*/
|
|
@@ -10402,11 +10520,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10402
10520
|
items: ContentLocation[];
|
|
10403
10521
|
}, any>>;
|
|
10404
10522
|
/**
|
|
10405
|
-
*
|
|
10523
|
+
* @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
10524
|
*
|
|
10407
10525
|
* @tags space-content
|
|
10408
10526
|
* @name GetPageById
|
|
10409
|
-
* @summary Get a
|
|
10527
|
+
* @summary Get a single page from a space by its ID
|
|
10410
10528
|
* @request GET:/spaces/{spaceId}/content/page/{pageId}
|
|
10411
10529
|
* @secure
|
|
10412
10530
|
*/
|
|
@@ -10448,11 +10566,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10448
10566
|
computed?: boolean;
|
|
10449
10567
|
}, params?: RequestParams) => Promise<HttpResponse<RevisionPage, any>>;
|
|
10450
10568
|
/**
|
|
10451
|
-
*
|
|
10569
|
+
* @description Returns all content references (internal links, cross-space links, and external URLs) originating from the specified page. Use this to audit link health or detect broken references on a page.
|
|
10452
10570
|
*
|
|
10453
10571
|
* @tags space-content, links, critical
|
|
10454
10572
|
* @name ListPageLinksInSpace
|
|
10455
|
-
* @summary List all
|
|
10573
|
+
* @summary List all outbound links from a specific page in a space
|
|
10456
10574
|
* @request GET:/spaces/{spaceId}/content/page/{pageId}/links
|
|
10457
10575
|
* @secure
|
|
10458
10576
|
*/
|
|
@@ -10477,11 +10595,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10477
10595
|
items: ContentReferenceUsage[];
|
|
10478
10596
|
}, any>>;
|
|
10479
10597
|
/**
|
|
10480
|
-
*
|
|
10598
|
+
* @description Returns the content locations (pages and inline positions) within the space that contain links pointing to the specified page. Use this to understand a page's incoming references before moving, deleting, or renaming it.
|
|
10481
10599
|
*
|
|
10482
10600
|
* @tags space-content
|
|
10483
10601
|
* @name ListSpacePageBacklinks
|
|
10484
|
-
* @summary List all space
|
|
10602
|
+
* @summary List all pages in a space that link to a specific page
|
|
10485
10603
|
* @request GET:/spaces/{spaceId}/content/page/{pageId}/backlinks
|
|
10486
10604
|
* @secure
|
|
10487
10605
|
*/
|
|
@@ -10498,21 +10616,21 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10498
10616
|
items: ContentLocation[];
|
|
10499
10617
|
}, any>>;
|
|
10500
10618
|
/**
|
|
10501
|
-
*
|
|
10619
|
+
* @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
10620
|
*
|
|
10503
10621
|
* @tags space-content
|
|
10504
10622
|
* @name ListSpacePageMetaLinks
|
|
10505
|
-
* @summary
|
|
10623
|
+
* @summary Get navigation metadata links for a page (previous, next, parent)
|
|
10506
10624
|
* @request GET:/spaces/{spaceId}/content/page/{pageId}/meta-links
|
|
10507
10625
|
* @secure
|
|
10508
10626
|
*/
|
|
10509
10627
|
listSpacePageMetaLinks: (spaceId: EntityId, pageId: EntityId, params?: RequestParams) => Promise<HttpResponse<RevisionPageMetaLinks, any>>;
|
|
10510
10628
|
/**
|
|
10511
|
-
*
|
|
10629
|
+
* @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
10630
|
*
|
|
10513
10631
|
* @tags space-content
|
|
10514
10632
|
* @name GetPageByPath
|
|
10515
|
-
* @summary Get a space
|
|
10633
|
+
* @summary Get a page from a space by its URL path
|
|
10516
10634
|
* @request GET:/spaces/{spaceId}/content/path/{pagePath}
|
|
10517
10635
|
* @secure
|
|
10518
10636
|
*/
|
|
@@ -10554,11 +10672,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10554
10672
|
computed?: boolean;
|
|
10555
10673
|
}, params?: RequestParams) => Promise<HttpResponse<RevisionPageDocument | RevisionPageGroup, any>>;
|
|
10556
10674
|
/**
|
|
10557
|
-
*
|
|
10675
|
+
* @description Retrieves a reusable content block (a shared snippet that can be embedded across multiple pages) from a space's current revision by its ID. Use this to read the content of a reusable block when you have its ID. To find which pages reference it, check the page backlinks endpoint.
|
|
10558
10676
|
*
|
|
10559
10677
|
* @tags space-content
|
|
10560
10678
|
* @name GetReusableContentById
|
|
10561
|
-
* @summary Get a
|
|
10679
|
+
* @summary Get a reusable content block from a space by its ID
|
|
10562
10680
|
* @request GET:/spaces/{spaceId}/content/reusable-contents/{reusableContentId}
|
|
10563
10681
|
* @secure
|
|
10564
10682
|
*/
|
|
@@ -10575,11 +10693,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10575
10693
|
computed?: boolean;
|
|
10576
10694
|
}, params?: RequestParams) => Promise<HttpResponse<RevisionReusableContent, any>>;
|
|
10577
10695
|
/**
|
|
10578
|
-
*
|
|
10696
|
+
* @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
10697
|
*
|
|
10580
10698
|
* @tags space-content
|
|
10581
10699
|
* @name GetComputedDocument
|
|
10582
|
-
* @summary
|
|
10700
|
+
* @summary Compute and render a document from a structured content source
|
|
10583
10701
|
* @request POST:/spaces/{spaceId}/content/computed/document
|
|
10584
10702
|
* @secure
|
|
10585
10703
|
*/
|
|
@@ -10592,11 +10710,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10592
10710
|
schema?: "current" | "next";
|
|
10593
10711
|
}, params?: RequestParams) => Promise<HttpResponse<JSONDocument, any>>;
|
|
10594
10712
|
/**
|
|
10595
|
-
*
|
|
10713
|
+
* @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
10714
|
*
|
|
10597
10715
|
* @tags space-content
|
|
10598
10716
|
* @name GetComputedRevision
|
|
10599
|
-
* @summary
|
|
10717
|
+
* @summary Compute and render a full revision from a structured content source
|
|
10600
10718
|
* @request POST:/spaces/{spaceId}/content/computed/revision
|
|
10601
10719
|
* @secure
|
|
10602
10720
|
*/
|
|
@@ -10610,11 +10728,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10610
10728
|
reusableContents: RevisionReusableContent[];
|
|
10611
10729
|
}, any>>;
|
|
10612
10730
|
/**
|
|
10613
|
-
*
|
|
10731
|
+
* @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
10732
|
*
|
|
10615
10733
|
* @tags space-content
|
|
10616
10734
|
* @name GetDocumentById
|
|
10617
|
-
* @summary Get a
|
|
10735
|
+
* @summary Get a raw document from a space by its document ID
|
|
10618
10736
|
* @request GET:/spaces/{spaceId}/documents/{documentId}
|
|
10619
10737
|
* @secure
|
|
10620
10738
|
*/
|
|
@@ -10623,27 +10741,27 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10623
10741
|
schema?: "current" | "next";
|
|
10624
10742
|
}, params?: RequestParams) => Promise<HttpResponse<JSONDocument, any>>;
|
|
10625
10743
|
/**
|
|
10626
|
-
*
|
|
10744
|
+
* @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
10745
|
*
|
|
10628
10746
|
* @tags change-requests
|
|
10629
10747
|
* @name CreateChangeRequest
|
|
10630
|
-
* @summary Create a change request
|
|
10748
|
+
* @summary Create a new change request in a space
|
|
10631
10749
|
* @request POST:/spaces/{spaceId}/change-requests
|
|
10632
10750
|
* @secure
|
|
10633
10751
|
*/
|
|
10634
10752
|
createChangeRequest: (spaceId: EntityId, data: {
|
|
10635
|
-
/** Subject of the change
|
|
10753
|
+
/** Subject of the change request */
|
|
10636
10754
|
subject?: string;
|
|
10637
10755
|
/** Template to apply to the change request */
|
|
10638
10756
|
template?: ApplySpaceTemplate;
|
|
10639
10757
|
[key: string]: any;
|
|
10640
10758
|
}, params?: RequestParams) => Promise<HttpResponse<ChangeRequest, any>>;
|
|
10641
10759
|
/**
|
|
10642
|
-
*
|
|
10760
|
+
* @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
10761
|
*
|
|
10644
10762
|
* @tags change-requests
|
|
10645
10763
|
* @name ListChangeRequestsForSpace
|
|
10646
|
-
* @summary List all change requests
|
|
10764
|
+
* @summary List all change requests for a space
|
|
10647
10765
|
* @request GET:/spaces/{spaceId}/change-requests
|
|
10648
10766
|
* @secure
|
|
10649
10767
|
*/
|
|
@@ -10675,7 +10793,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10675
10793
|
items: ChangeRequest[];
|
|
10676
10794
|
}, any>>;
|
|
10677
10795
|
/**
|
|
10678
|
-
*
|
|
10796
|
+
* @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
10797
|
*
|
|
10680
10798
|
* @tags change-requests
|
|
10681
10799
|
* @name GetChangeRequestById
|
|
@@ -10691,11 +10809,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10691
10809
|
};
|
|
10692
10810
|
}>>;
|
|
10693
10811
|
/**
|
|
10694
|
-
*
|
|
10812
|
+
* @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
10813
|
*
|
|
10696
10814
|
* @tags change-requests
|
|
10697
10815
|
* @name UpdateChangeRequestById
|
|
10698
|
-
* @summary Update a change request
|
|
10816
|
+
* @summary Update a change request's subject, description, or status
|
|
10699
10817
|
* @request PATCH:/spaces/{spaceId}/change-requests/{changeRequestId}
|
|
10700
10818
|
* @secure
|
|
10701
10819
|
*/
|
|
@@ -10708,11 +10826,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10708
10826
|
status?: "draft" | "open" | "archived";
|
|
10709
10827
|
}, params?: RequestParams) => Promise<HttpResponse<ChangeRequest, any>>;
|
|
10710
10828
|
/**
|
|
10711
|
-
*
|
|
10829
|
+
* @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
10830
|
*
|
|
10713
10831
|
* @tags change-requests
|
|
10714
10832
|
* @name MergeChangeRequest
|
|
10715
|
-
* @summary Merge a change request
|
|
10833
|
+
* @summary Merge a change request into the space's live content
|
|
10716
10834
|
* @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/merge
|
|
10717
10835
|
* @secure
|
|
10718
10836
|
*/
|
|
@@ -10722,11 +10840,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10722
10840
|
result: "merge" | "conflicts";
|
|
10723
10841
|
}, any>>;
|
|
10724
10842
|
/**
|
|
10725
|
-
*
|
|
10843
|
+
* @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
10844
|
*
|
|
10727
10845
|
* @tags change-requests
|
|
10728
10846
|
* @name UpdateChangeRequest
|
|
10729
|
-
* @summary
|
|
10847
|
+
* @summary Sync a change request with the latest live space content
|
|
10730
10848
|
* @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/update
|
|
10731
10849
|
* @secure
|
|
10732
10850
|
*/
|
|
@@ -10736,11 +10854,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10736
10854
|
result: "update" | "conflicts";
|
|
10737
10855
|
}, any>>;
|
|
10738
10856
|
/**
|
|
10739
|
-
*
|
|
10857
|
+
* @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
10858
|
*
|
|
10741
10859
|
* @tags change-requests-reviews
|
|
10742
10860
|
* @name GetReviewsByChangeRequestId
|
|
10743
|
-
* @summary List all change request
|
|
10861
|
+
* @summary List all formal reviews submitted for a change request
|
|
10744
10862
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/reviews
|
|
10745
10863
|
* @secure
|
|
10746
10864
|
*/
|
|
@@ -10767,11 +10885,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10767
10885
|
};
|
|
10768
10886
|
}>>;
|
|
10769
10887
|
/**
|
|
10770
|
-
*
|
|
10888
|
+
* @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
10889
|
*
|
|
10772
10890
|
* @tags change-requests-reviews
|
|
10773
10891
|
* @name SubmitChangeRequestReview
|
|
10774
|
-
* @summary Submit a change request
|
|
10892
|
+
* @summary Submit an approve or request-changes review for a change request
|
|
10775
10893
|
* @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/reviews
|
|
10776
10894
|
* @secure
|
|
10777
10895
|
*/
|
|
@@ -10782,11 +10900,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10782
10900
|
comment?: Document;
|
|
10783
10901
|
}, params?: RequestParams) => Promise<HttpResponse<ChangeRequestReview, any>>;
|
|
10784
10902
|
/**
|
|
10785
|
-
*
|
|
10903
|
+
* @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
10904
|
*
|
|
10787
10905
|
* @tags change-requests-reviews
|
|
10788
10906
|
* @name GetChangeRequestReviewById
|
|
10789
|
-
* @summary Get a change request
|
|
10907
|
+
* @summary Get a specific review on a change request by its ID
|
|
10790
10908
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/reviews/{reviewId}
|
|
10791
10909
|
* @secure
|
|
10792
10910
|
*/
|
|
@@ -10801,11 +10919,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10801
10919
|
};
|
|
10802
10920
|
}>>;
|
|
10803
10921
|
/**
|
|
10804
|
-
*
|
|
10922
|
+
* @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
10923
|
*
|
|
10806
10924
|
* @tags change-request-reviewers
|
|
10807
10925
|
* @name GetRequestedReviewersByChangeRequestId
|
|
10808
|
-
* @summary
|
|
10926
|
+
* @summary List all users requested to review a change request
|
|
10809
10927
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/requested-reviewers
|
|
10810
10928
|
* @secure
|
|
10811
10929
|
*/
|
|
@@ -10822,11 +10940,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10822
10940
|
items: ChangeRequestRequestedReviewer[];
|
|
10823
10941
|
}, any>>;
|
|
10824
10942
|
/**
|
|
10825
|
-
*
|
|
10943
|
+
* @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
10944
|
*
|
|
10827
10945
|
* @tags change-request-reviewers
|
|
10828
10946
|
* @name RequestReviewersForChangeRequest
|
|
10829
|
-
* @summary
|
|
10947
|
+
* @summary Send review requests to users for a change request
|
|
10830
10948
|
* @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/requested-reviewers
|
|
10831
10949
|
* @secure
|
|
10832
10950
|
*/
|
|
@@ -10852,11 +10970,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10852
10970
|
*/
|
|
10853
10971
|
removeRequestedReviewerFromChangeRequest: (spaceId: EntityId, changeRequestId: EntityId, userId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
10854
10972
|
/**
|
|
10855
|
-
*
|
|
10973
|
+
* @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
10974
|
*
|
|
10857
10975
|
* @tags change-request-conversations
|
|
10858
10976
|
* @name ListChangeRequestConversations
|
|
10859
|
-
* @summary List
|
|
10977
|
+
* @summary List AI agent conversations associated with a change request
|
|
10860
10978
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/conversations
|
|
10861
10979
|
* @secure
|
|
10862
10980
|
*/
|
|
@@ -10873,11 +10991,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10873
10991
|
items: AgentConversation[];
|
|
10874
10992
|
}, any>>;
|
|
10875
10993
|
/**
|
|
10876
|
-
*
|
|
10994
|
+
* @description Updates a specific AI agent conversation associated with a change request. Use this to rename the conversation.
|
|
10877
10995
|
*
|
|
10878
10996
|
* @tags change-request-conversations
|
|
10879
10997
|
* @name UpdateChangeRequestConversation
|
|
10880
|
-
* @summary Update an agent conversation
|
|
10998
|
+
* @summary Update an AI agent conversation on a change request
|
|
10881
10999
|
* @request PATCH:/spaces/{spaceId}/change-requests/{changeRequestId}/conversations/{conversationId}
|
|
10882
11000
|
* @secure
|
|
10883
11001
|
*/
|
|
@@ -10896,11 +11014,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10896
11014
|
*/
|
|
10897
11015
|
deleteChangeRequestConversation: (spaceId: EntityId, changeRequestId: EntityId, conversationId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
10898
11016
|
/**
|
|
10899
|
-
*
|
|
11017
|
+
* @description Returns a paginated list of all outbound content references (links) across all pages in the change request. Use this to audit link health across the entire draft before merging.
|
|
10900
11018
|
*
|
|
10901
11019
|
* @tags change-requests-links, links, critical
|
|
10902
11020
|
* @name ListChangeRequestLinks
|
|
10903
|
-
* @summary List all change request
|
|
11021
|
+
* @summary List all content references across an entire change request
|
|
10904
11022
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/links
|
|
10905
11023
|
* @secure
|
|
10906
11024
|
*/
|
|
@@ -10932,11 +11050,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10932
11050
|
};
|
|
10933
11051
|
}>>;
|
|
10934
11052
|
/**
|
|
10935
|
-
*
|
|
11053
|
+
* @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
11054
|
*
|
|
10937
11055
|
* @tags change-request-comments
|
|
10938
11056
|
* @name ListCommentsInChangeRequest
|
|
10939
|
-
* @summary List all change request
|
|
11057
|
+
* @summary List all top-level comments in a change request
|
|
10940
11058
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/comments
|
|
10941
11059
|
* @secure
|
|
10942
11060
|
*/
|
|
@@ -10969,21 +11087,21 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10969
11087
|
items: Comment[];
|
|
10970
11088
|
}, any>>;
|
|
10971
11089
|
/**
|
|
10972
|
-
*
|
|
11090
|
+
* @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
11091
|
*
|
|
10974
11092
|
* @tags change-request-comments
|
|
10975
11093
|
* @name PostCommentInChangeRequest
|
|
10976
|
-
* @summary
|
|
11094
|
+
* @summary Post a new comment on a change request
|
|
10977
11095
|
* @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/comments
|
|
10978
11096
|
* @secure
|
|
10979
11097
|
*/
|
|
10980
11098
|
postCommentInChangeRequest: (spaceId: EntityId, changeRequestId: EntityId, data: PostCommentSchema, params?: RequestParams) => Promise<HttpResponse<Comment, any>>;
|
|
10981
11099
|
/**
|
|
10982
|
-
*
|
|
11100
|
+
* @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
11101
|
*
|
|
10984
11102
|
* @tags change-request-comments
|
|
10985
11103
|
* @name GetCommentInChangeRequest
|
|
10986
|
-
* @summary Get a change request
|
|
11104
|
+
* @summary Get a single comment from a change request by its ID
|
|
10987
11105
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}
|
|
10988
11106
|
* @secure
|
|
10989
11107
|
*/
|
|
@@ -11002,21 +11120,21 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11002
11120
|
*/
|
|
11003
11121
|
deleteCommentInChangeRequest: (spaceId: EntityId, changeRequestId: EntityId, commentId: EntityId, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
11004
11122
|
/**
|
|
11005
|
-
*
|
|
11123
|
+
* @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
11124
|
*
|
|
11007
11125
|
* @tags change-request-comments
|
|
11008
11126
|
* @name UpdateCommentInChangeRequest
|
|
11009
|
-
* @summary Update a change request comment
|
|
11127
|
+
* @summary Update the content or status of a change request comment
|
|
11010
11128
|
* @request PUT:/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}
|
|
11011
11129
|
* @secure
|
|
11012
11130
|
*/
|
|
11013
11131
|
updateCommentInChangeRequest: (spaceId: EntityId, changeRequestId: EntityId, commentId: EntityId, data: UpdateCommentSchema, params?: RequestParams) => Promise<HttpResponse<Comment, any>>;
|
|
11014
11132
|
/**
|
|
11015
|
-
*
|
|
11133
|
+
* @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
11134
|
*
|
|
11017
11135
|
* @tags change-request-comments
|
|
11018
11136
|
* @name ListCommentRepliesInChangeRequest
|
|
11019
|
-
* @summary List all change request comment
|
|
11137
|
+
* @summary List all replies to a change request comment
|
|
11020
11138
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}/replies
|
|
11021
11139
|
* @secure
|
|
11022
11140
|
*/
|
|
@@ -11035,11 +11153,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11035
11153
|
items: CommentReply[];
|
|
11036
11154
|
}, any>>;
|
|
11037
11155
|
/**
|
|
11038
|
-
*
|
|
11156
|
+
* @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
11157
|
*
|
|
11040
11158
|
* @tags change-request-comments
|
|
11041
11159
|
* @name PostCommentReplyInChangeRequest
|
|
11042
|
-
* @summary
|
|
11160
|
+
* @summary Post a reply to a change request comment
|
|
11043
11161
|
* @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}/replies
|
|
11044
11162
|
* @secure
|
|
11045
11163
|
*/
|
|
@@ -11048,11 +11166,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11048
11166
|
format?: "document" | "markdown";
|
|
11049
11167
|
}, params?: RequestParams) => Promise<HttpResponse<CommentReply, any>>;
|
|
11050
11168
|
/**
|
|
11051
|
-
*
|
|
11169
|
+
* @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
11170
|
*
|
|
11053
11171
|
* @tags change-request-comments
|
|
11054
11172
|
* @name GetCommentReplyInChangeRequest
|
|
11055
|
-
* @summary Get a change request comment
|
|
11173
|
+
* @summary Get a single reply to a change request comment
|
|
11056
11174
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}/replies/{commentReplyId}
|
|
11057
11175
|
* @secure
|
|
11058
11176
|
*/
|
|
@@ -11061,11 +11179,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11061
11179
|
format?: "document" | "markdown";
|
|
11062
11180
|
}, params?: RequestParams) => Promise<HttpResponse<CommentReply, any>>;
|
|
11063
11181
|
/**
|
|
11064
|
-
*
|
|
11182
|
+
* @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
11183
|
*
|
|
11066
11184
|
* @tags change-request-comments
|
|
11067
11185
|
* @name UpdateCommentReplyInChangeRequest
|
|
11068
|
-
* @summary Update a change request comment reply
|
|
11186
|
+
* @summary Update the content of a change request comment reply
|
|
11069
11187
|
* @request PUT:/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}/replies/{commentReplyId}
|
|
11070
11188
|
* @secure
|
|
11071
11189
|
*/
|
|
@@ -11081,11 +11199,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11081
11199
|
*/
|
|
11082
11200
|
deleteCommentReplyInChangeRequest: (spaceId: EntityId, changeRequestId: EntityId, commentId: EntityId, commentReplyId: EntityId, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
11083
11201
|
/**
|
|
11084
|
-
*
|
|
11202
|
+
* @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
11203
|
*
|
|
11086
11204
|
* @tags change-request-contributors
|
|
11087
11205
|
* @name GetContributorsByChangeRequestId
|
|
11088
|
-
* @summary
|
|
11206
|
+
* @summary List all users who have made edits to a change request
|
|
11089
11207
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/contributors
|
|
11090
11208
|
* @secure
|
|
11091
11209
|
*/
|
|
@@ -11099,11 +11217,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11099
11217
|
};
|
|
11100
11218
|
}>>;
|
|
11101
11219
|
/**
|
|
11102
|
-
*
|
|
11220
|
+
* @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
11221
|
*
|
|
11104
11222
|
* @tags change-request-content
|
|
11105
11223
|
* @name GetRevisionOfChangeRequestById
|
|
11106
|
-
* @summary Get
|
|
11224
|
+
* @summary Get the latest content revision of a change request
|
|
11107
11225
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content
|
|
11108
11226
|
* @secure
|
|
11109
11227
|
*/
|
|
@@ -11120,11 +11238,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11120
11238
|
computed?: boolean;
|
|
11121
11239
|
}, params?: RequestParams) => Promise<HttpResponse<Revision, any>>;
|
|
11122
11240
|
/**
|
|
11123
|
-
* @description
|
|
11241
|
+
* @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
11242
|
*
|
|
11125
11243
|
* @tags change-request-content
|
|
11126
11244
|
* @name UpdateChangeRequestContent
|
|
11127
|
-
* @summary
|
|
11245
|
+
* @summary Apply a batch of content changes to a change request
|
|
11128
11246
|
* @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/content
|
|
11129
11247
|
* @secure
|
|
11130
11248
|
*/
|
|
@@ -11142,11 +11260,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11142
11260
|
};
|
|
11143
11261
|
}>>;
|
|
11144
11262
|
/**
|
|
11145
|
-
*
|
|
11263
|
+
* @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
11264
|
*
|
|
11147
11265
|
* @tags change-request-content
|
|
11148
11266
|
* @name ListPagesInChangeRequest
|
|
11149
|
-
* @summary List all change request
|
|
11267
|
+
* @summary List all pages in a change request as a flat list
|
|
11150
11268
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/pages
|
|
11151
11269
|
* @secure
|
|
11152
11270
|
*/
|
|
@@ -11165,11 +11283,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11165
11283
|
pages: RevisionPage[];
|
|
11166
11284
|
}, any>>;
|
|
11167
11285
|
/**
|
|
11168
|
-
*
|
|
11286
|
+
* @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
11287
|
*
|
|
11170
11288
|
* @tags change-request-content
|
|
11171
11289
|
* @name ListFilesInChangeRequestById
|
|
11172
|
-
* @summary List all change request
|
|
11290
|
+
* @summary List all files (images/attachments) in a change request
|
|
11173
11291
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/files
|
|
11174
11292
|
* @secure
|
|
11175
11293
|
*/
|
|
@@ -11196,11 +11314,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11196
11314
|
items: RevisionFile[];
|
|
11197
11315
|
}, any>>;
|
|
11198
11316
|
/**
|
|
11199
|
-
*
|
|
11317
|
+
* @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
11318
|
*
|
|
11201
11319
|
* @tags change-request-content
|
|
11202
11320
|
* @name GetFileInChangeRequestById
|
|
11203
|
-
* @summary Get a change request
|
|
11321
|
+
* @summary Get a specific file in a change request by its ID
|
|
11204
11322
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/files/{fileId}
|
|
11205
11323
|
* @secure
|
|
11206
11324
|
*/
|
|
@@ -11217,11 +11335,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11217
11335
|
computed?: boolean;
|
|
11218
11336
|
}, params?: RequestParams) => Promise<HttpResponse<RevisionFile, any>>;
|
|
11219
11337
|
/**
|
|
11220
|
-
*
|
|
11338
|
+
* @description Returns a paginated list of content locations (pages and inline positions) within the change request that link to or embed the specified file. Use this to find all usages of an asset before renaming or removing it.
|
|
11221
11339
|
*
|
|
11222
11340
|
* @tags change-request-content
|
|
11223
11341
|
* @name ListChangeRequestFileBacklinks
|
|
11224
|
-
* @summary List all
|
|
11342
|
+
* @summary List all pages in a change request that reference a file
|
|
11225
11343
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/files/{fileId}/backlinks
|
|
11226
11344
|
* @secure
|
|
11227
11345
|
*/
|
|
@@ -11238,11 +11356,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11238
11356
|
items: ContentLocation[];
|
|
11239
11357
|
}, any>>;
|
|
11240
11358
|
/**
|
|
11241
|
-
*
|
|
11359
|
+
* @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
11360
|
*
|
|
11243
11361
|
* @tags change-request-content
|
|
11244
11362
|
* @name GetPageInChangeRequestById
|
|
11245
|
-
* @summary Get a change request
|
|
11363
|
+
* @summary Get a page in a change request by its ID
|
|
11246
11364
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}
|
|
11247
11365
|
* @secure
|
|
11248
11366
|
*/
|
|
@@ -11284,11 +11402,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11284
11402
|
computed?: boolean;
|
|
11285
11403
|
}, params?: RequestParams) => Promise<HttpResponse<RevisionPage, any>>;
|
|
11286
11404
|
/**
|
|
11287
|
-
*
|
|
11405
|
+
* @description Returns all outbound content references from a specific page within the change request, including their status (valid, broken) and usage context. Use this to audit link health on a draft page before merging. Also returns aggregate stats about broken vs healthy references on the page.
|
|
11288
11406
|
*
|
|
11289
11407
|
* @tags change-request-content, critical
|
|
11290
11408
|
* @name ListPageLinksInChangeRequest
|
|
11291
|
-
* @summary List all change request
|
|
11409
|
+
* @summary List all content references (links) on a change request page
|
|
11292
11410
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}/links
|
|
11293
11411
|
* @secure
|
|
11294
11412
|
*/
|
|
@@ -11306,11 +11424,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11306
11424
|
items: ContentReferenceUsage[];
|
|
11307
11425
|
}, any>>;
|
|
11308
11426
|
/**
|
|
11309
|
-
*
|
|
11427
|
+
* @description Returns a paginated list of content locations within the change request that contain links pointing to the specified page. Use this to check what pages would be affected by renaming or removing a page before applying the change.
|
|
11310
11428
|
*
|
|
11311
11429
|
* @tags change-request-content
|
|
11312
11430
|
* @name ListChangeRequestPageBacklinks
|
|
11313
|
-
* @summary List all
|
|
11431
|
+
* @summary List all pages in a change request that link to a specific page
|
|
11314
11432
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}/backlinks
|
|
11315
11433
|
* @secure
|
|
11316
11434
|
*/
|
|
@@ -11327,21 +11445,21 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11327
11445
|
items: ContentLocation[];
|
|
11328
11446
|
}, any>>;
|
|
11329
11447
|
/**
|
|
11330
|
-
*
|
|
11448
|
+
* @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
11449
|
*
|
|
11332
11450
|
* @tags change-request-content
|
|
11333
11451
|
* @name ListChangeRequestPageMetaLinks
|
|
11334
|
-
* @summary
|
|
11452
|
+
* @summary Get navigation meta-links (prev/next/parent) for a change request page
|
|
11335
11453
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}/meta-links
|
|
11336
11454
|
* @secure
|
|
11337
11455
|
*/
|
|
11338
11456
|
listChangeRequestPageMetaLinks: (spaceId: EntityId, changeRequestId: EntityId, pageId: EntityId, params?: RequestParams) => Promise<HttpResponse<RevisionPageMetaLinks, any>>;
|
|
11339
11457
|
/**
|
|
11340
|
-
*
|
|
11458
|
+
* @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
11459
|
*
|
|
11342
11460
|
* @tags change-request-content
|
|
11343
11461
|
* @name GetReusableContentInChangeRequestById
|
|
11344
|
-
* @summary Get a change request
|
|
11462
|
+
* @summary Get a reusable content block in a change request by its ID
|
|
11345
11463
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/reusable-contents/{reusableContentId}
|
|
11346
11464
|
* @secure
|
|
11347
11465
|
*/
|
|
@@ -11358,11 +11476,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11358
11476
|
computed?: boolean;
|
|
11359
11477
|
}, params?: RequestParams) => Promise<HttpResponse<RevisionReusableContent, any>>;
|
|
11360
11478
|
/**
|
|
11361
|
-
* @description
|
|
11479
|
+
* @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
11480
|
*
|
|
11363
11481
|
* @tags change-request-content
|
|
11364
11482
|
* @name GetChangeRequestChanges
|
|
11365
|
-
* @summary
|
|
11483
|
+
* @summary List semantic content changes in a change request vs its base
|
|
11366
11484
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/changes
|
|
11367
11485
|
* @secure
|
|
11368
11486
|
*/
|
|
@@ -11380,11 +11498,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11380
11498
|
};
|
|
11381
11499
|
}>>;
|
|
11382
11500
|
/**
|
|
11383
|
-
*
|
|
11501
|
+
* @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
11502
|
*
|
|
11385
11503
|
* @tags change-requests
|
|
11386
11504
|
* @name GetChangeRequestPdf
|
|
11387
|
-
* @summary Get a URL
|
|
11505
|
+
* @summary Get a temporary URL to download a change request's content as PDF
|
|
11388
11506
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/pdf
|
|
11389
11507
|
* @secure
|
|
11390
11508
|
*/
|
|
@@ -11398,11 +11516,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11398
11516
|
url: URL;
|
|
11399
11517
|
}, any>>;
|
|
11400
11518
|
/**
|
|
11401
|
-
*
|
|
11519
|
+
* @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
11520
|
*
|
|
11403
11521
|
* @tags space-content
|
|
11404
11522
|
* @name GetRevisionById
|
|
11405
|
-
* @summary Get a
|
|
11523
|
+
* @summary Get a specific historical revision of a space
|
|
11406
11524
|
* @request GET:/spaces/{spaceId}/revisions/{revisionId}
|
|
11407
11525
|
* @secure
|
|
11408
11526
|
*/
|
|
@@ -11419,11 +11537,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11419
11537
|
computed?: boolean;
|
|
11420
11538
|
}, params?: RequestParams) => Promise<HttpResponse<Revision, any>>;
|
|
11421
11539
|
/**
|
|
11422
|
-
* @description
|
|
11540
|
+
* @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
11541
|
*
|
|
11424
11542
|
* @tags space-content
|
|
11425
11543
|
* @name GetRevisionSemanticChanges
|
|
11426
|
-
* @summary Get
|
|
11544
|
+
* @summary Get semantic content changes introduced by a revision
|
|
11427
11545
|
* @request GET:/spaces/{spaceId}/revisions/{revisionId}/changes
|
|
11428
11546
|
* @secure
|
|
11429
11547
|
*/
|
|
@@ -11445,11 +11563,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11445
11563
|
limit?: number;
|
|
11446
11564
|
}, params?: RequestParams) => Promise<HttpResponse<RevisionSemanticChanges, any>>;
|
|
11447
11565
|
/**
|
|
11448
|
-
*
|
|
11566
|
+
* @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
11567
|
*
|
|
11450
11568
|
* @tags space-content
|
|
11451
11569
|
* @name ListPagesInRevisionById
|
|
11452
|
-
* @summary List all pages in a
|
|
11570
|
+
* @summary List all pages in a specific historical revision of a space
|
|
11453
11571
|
* @request GET:/spaces/{spaceId}/revisions/{revisionId}/pages
|
|
11454
11572
|
* @secure
|
|
11455
11573
|
*/
|
|
@@ -11468,11 +11586,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11468
11586
|
pages: RevisionPage[];
|
|
11469
11587
|
}, any>>;
|
|
11470
11588
|
/**
|
|
11471
|
-
*
|
|
11589
|
+
* @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
11590
|
*
|
|
11473
11591
|
* @tags space-content
|
|
11474
11592
|
* @name ListFilesInRevisionById
|
|
11475
|
-
* @summary List all space revision
|
|
11593
|
+
* @summary List all files (images, assets) in a specific space revision
|
|
11476
11594
|
* @request GET:/spaces/{spaceId}/revisions/{revisionId}/files
|
|
11477
11595
|
* @secure
|
|
11478
11596
|
*/
|
|
@@ -11499,11 +11617,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11499
11617
|
items: RevisionFile[];
|
|
11500
11618
|
}, any>>;
|
|
11501
11619
|
/**
|
|
11502
|
-
*
|
|
11620
|
+
* @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
11621
|
*
|
|
11504
11622
|
* @tags space-content
|
|
11505
11623
|
* @name GetFileInRevisionById
|
|
11506
|
-
* @summary Get a space revision
|
|
11624
|
+
* @summary Get a specific file from a space revision by its file ID
|
|
11507
11625
|
* @request GET:/spaces/{spaceId}/revisions/{revisionId}/files/{fileId}
|
|
11508
11626
|
* @secure
|
|
11509
11627
|
*/
|
|
@@ -11520,11 +11638,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11520
11638
|
computed?: boolean;
|
|
11521
11639
|
}, params?: RequestParams) => Promise<HttpResponse<RevisionFile, any>>;
|
|
11522
11640
|
/**
|
|
11523
|
-
*
|
|
11641
|
+
* @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
11642
|
*
|
|
11525
11643
|
* @tags space-content
|
|
11526
11644
|
* @name GetPageInRevisionById
|
|
11527
|
-
* @summary Get a
|
|
11645
|
+
* @summary Get a page from a specific historical revision by its page ID
|
|
11528
11646
|
* @request GET:/spaces/{spaceId}/revisions/{revisionId}/page/{pageId}
|
|
11529
11647
|
* @secure
|
|
11530
11648
|
*/
|
|
@@ -11566,11 +11684,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11566
11684
|
computed?: boolean;
|
|
11567
11685
|
}, params?: RequestParams) => Promise<HttpResponse<RevisionPage, any>>;
|
|
11568
11686
|
/**
|
|
11569
|
-
*
|
|
11687
|
+
* @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
11688
|
*
|
|
11571
11689
|
* @tags space-content
|
|
11572
11690
|
* @name GetPageDocumentInRevisionById
|
|
11573
|
-
* @summary Get the document of a page in a revision
|
|
11691
|
+
* @summary Get the raw document body of a page in a historical revision
|
|
11574
11692
|
* @request GET:/spaces/{spaceId}/revisions/{revisionId}/page/{pageId}/document
|
|
11575
11693
|
* @secure
|
|
11576
11694
|
*/
|
|
@@ -11592,11 +11710,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11592
11710
|
dereferenced?: boolean | "reusable-contents";
|
|
11593
11711
|
}, params?: RequestParams) => Promise<HttpResponse<JSONDocument, any>>;
|
|
11594
11712
|
/**
|
|
11595
|
-
*
|
|
11713
|
+
* @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
11714
|
*
|
|
11597
11715
|
* @tags space-content
|
|
11598
11716
|
* @name GetPageInRevisionByPath
|
|
11599
|
-
* @summary Get a
|
|
11717
|
+
* @summary Get a page from a specific historical revision by its URL path
|
|
11600
11718
|
* @request GET:/spaces/{spaceId}/revisions/{revisionId}/path/{pagePath}
|
|
11601
11719
|
* @secure
|
|
11602
11720
|
*/
|
|
@@ -11638,21 +11756,21 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11638
11756
|
computed?: boolean;
|
|
11639
11757
|
}, params?: RequestParams) => Promise<HttpResponse<RevisionPageDocument | RevisionPageGroup, any>>;
|
|
11640
11758
|
/**
|
|
11641
|
-
*
|
|
11759
|
+
* @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
11760
|
*
|
|
11643
11761
|
* @tags space-content
|
|
11644
11762
|
* @name ListRevisionPageMetaLinks
|
|
11645
|
-
* @summary List all meta links for a revision
|
|
11763
|
+
* @summary List all meta links (prev/next navigation) for a page in a revision
|
|
11646
11764
|
* @request GET:/spaces/{spaceId}/revisions/{revisionId}/page/{pageId}/meta-links
|
|
11647
11765
|
* @secure
|
|
11648
11766
|
*/
|
|
11649
11767
|
listRevisionPageMetaLinks: (spaceId: EntityId, revisionId: EntityId, pageId: EntityId, params?: RequestParams) => Promise<HttpResponse<RevisionPageMetaLinks, any>>;
|
|
11650
11768
|
/**
|
|
11651
|
-
*
|
|
11769
|
+
* @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
11770
|
*
|
|
11653
11771
|
* @tags change-request-content
|
|
11654
11772
|
* @name GetPageInChangeRequestByPath
|
|
11655
|
-
* @summary Get a change request
|
|
11773
|
+
* @summary Get a page in a change request by its URL path
|
|
11656
11774
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/path/{pagePath}
|
|
11657
11775
|
* @secure
|
|
11658
11776
|
*/
|
|
@@ -11694,11 +11812,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11694
11812
|
computed?: boolean;
|
|
11695
11813
|
}, params?: RequestParams) => Promise<HttpResponse<RevisionPageDocument | RevisionPageGroup, any>>;
|
|
11696
11814
|
/**
|
|
11697
|
-
*
|
|
11815
|
+
* @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
11816
|
*
|
|
11699
11817
|
* @tags space-content
|
|
11700
11818
|
* @name GetReusableContentInRevisionById
|
|
11701
|
-
* @summary Get a
|
|
11819
|
+
* @summary Get a reusable content block from a historical revision by its ID
|
|
11702
11820
|
* @request GET:/spaces/{spaceId}/revisions/{revisionId}/reusable-contents/{reusableContentId}
|
|
11703
11821
|
* @secure
|
|
11704
11822
|
*/
|
|
@@ -11715,11 +11833,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11715
11833
|
computed?: boolean;
|
|
11716
11834
|
}, params?: RequestParams) => Promise<HttpResponse<RevisionReusableContent, any>>;
|
|
11717
11835
|
/**
|
|
11718
|
-
*
|
|
11836
|
+
* @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
11837
|
*
|
|
11720
11838
|
* @tags space-content
|
|
11721
11839
|
* @name GetReusableContentDocumentInRevisionById
|
|
11722
|
-
* @summary Get the document of a reusable content in a revision
|
|
11840
|
+
* @summary Get the document body of a reusable content block in a historical revision
|
|
11723
11841
|
* @request GET:/spaces/{spaceId}/revisions/{revisionId}/reusable-contents/{reusableContentId}/document
|
|
11724
11842
|
* @secure
|
|
11725
11843
|
*/
|
|
@@ -11741,11 +11859,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11741
11859
|
dereferenced?: boolean | "reusable-contents";
|
|
11742
11860
|
}, params?: RequestParams) => Promise<HttpResponse<JSONDocument, any>>;
|
|
11743
11861
|
/**
|
|
11744
|
-
*
|
|
11862
|
+
* @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
11863
|
*
|
|
11746
11864
|
* @tags space-comments, critical
|
|
11747
11865
|
* @name ListCommentsInSpace
|
|
11748
|
-
* @summary List all
|
|
11866
|
+
* @summary List all top-level comments posted on a space
|
|
11749
11867
|
* @request GET:/spaces/{spaceId}/comments
|
|
11750
11868
|
* @secure
|
|
11751
11869
|
*/
|
|
@@ -11778,21 +11896,21 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11778
11896
|
items: Comment[];
|
|
11779
11897
|
}, any>>;
|
|
11780
11898
|
/**
|
|
11781
|
-
*
|
|
11899
|
+
* @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
11900
|
*
|
|
11783
11901
|
* @tags space-comments
|
|
11784
11902
|
* @name PostCommentInSpace
|
|
11785
|
-
* @summary
|
|
11903
|
+
* @summary Post a new comment on a space or a specific page
|
|
11786
11904
|
* @request POST:/spaces/{spaceId}/comments
|
|
11787
11905
|
* @secure
|
|
11788
11906
|
*/
|
|
11789
11907
|
postCommentInSpace: (spaceId: EntityId, data: PostCommentSchema, params?: RequestParams) => Promise<HttpResponse<Comment, any>>;
|
|
11790
11908
|
/**
|
|
11791
|
-
*
|
|
11909
|
+
* @description Returns a specific comment posted on a space. To list all comments in a space, use the space comments list endpoint.
|
|
11792
11910
|
*
|
|
11793
11911
|
* @tags space-comments
|
|
11794
11912
|
* @name GetCommentInSpace
|
|
11795
|
-
* @summary Get a space
|
|
11913
|
+
* @summary Get a single comment from a space by its ID
|
|
11796
11914
|
* @request GET:/spaces/{spaceId}/comments/{commentId}
|
|
11797
11915
|
* @secure
|
|
11798
11916
|
*/
|
|
@@ -11811,21 +11929,21 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11811
11929
|
*/
|
|
11812
11930
|
deleteCommentInSpace: (spaceId: EntityId, commentId: EntityId, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
11813
11931
|
/**
|
|
11814
|
-
*
|
|
11932
|
+
* @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
11933
|
*
|
|
11816
11934
|
* @tags space-comments
|
|
11817
11935
|
* @name UpdateCommentInSpace
|
|
11818
|
-
* @summary Update a space comment
|
|
11936
|
+
* @summary Update the body or status of a space comment
|
|
11819
11937
|
* @request PUT:/spaces/{spaceId}/comments/{commentId}
|
|
11820
11938
|
* @secure
|
|
11821
11939
|
*/
|
|
11822
11940
|
updateCommentInSpace: (spaceId: EntityId, commentId: EntityId, data: UpdateCommentSchema, params?: RequestParams) => Promise<HttpResponse<Comment, any>>;
|
|
11823
11941
|
/**
|
|
11824
|
-
*
|
|
11942
|
+
* @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
11943
|
*
|
|
11826
11944
|
* @tags space-comment
|
|
11827
11945
|
* @name ListCommentRepliesInSpace
|
|
11828
|
-
* @summary List all
|
|
11946
|
+
* @summary List all replies to a comment in a space
|
|
11829
11947
|
* @request GET:/spaces/{spaceId}/comments/{commentId}/replies
|
|
11830
11948
|
* @secure
|
|
11831
11949
|
*/
|
|
@@ -11844,21 +11962,21 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11844
11962
|
items: CommentReply[];
|
|
11845
11963
|
}, any>>;
|
|
11846
11964
|
/**
|
|
11847
|
-
*
|
|
11965
|
+
* @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
11966
|
*
|
|
11849
11967
|
* @tags space-comments
|
|
11850
11968
|
* @name PostCommentReplyInSpace
|
|
11851
|
-
* @summary
|
|
11969
|
+
* @summary Post a reply to an existing space comment
|
|
11852
11970
|
* @request POST:/spaces/{spaceId}/comments/{commentId}/replies
|
|
11853
11971
|
* @secure
|
|
11854
11972
|
*/
|
|
11855
11973
|
postCommentReplyInSpace: (spaceId: EntityId, commentId: EntityId, data: PostCommentReplySchema, params?: RequestParams) => Promise<HttpResponse<CommentReply, any>>;
|
|
11856
11974
|
/**
|
|
11857
|
-
*
|
|
11975
|
+
* @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
11976
|
*
|
|
11859
11977
|
* @tags space-comments
|
|
11860
11978
|
* @name GetCommentReplyInSpace
|
|
11861
|
-
* @summary Get a space comment
|
|
11979
|
+
* @summary Get a single reply to a space comment by its ID
|
|
11862
11980
|
* @request GET:/spaces/{spaceId}/comments/{commentId}/replies/{commentReplyId}
|
|
11863
11981
|
* @secure
|
|
11864
11982
|
*/
|
|
@@ -11867,11 +11985,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11867
11985
|
format?: "document" | "markdown";
|
|
11868
11986
|
}, params?: RequestParams) => Promise<HttpResponse<CommentReply, any>>;
|
|
11869
11987
|
/**
|
|
11870
|
-
*
|
|
11988
|
+
* @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
11989
|
*
|
|
11872
11990
|
* @tags space-comments
|
|
11873
11991
|
* @name UpdateCommentReplyInSpace
|
|
11874
|
-
* @summary Update a space comment
|
|
11992
|
+
* @summary Update the body of a reply to a space comment
|
|
11875
11993
|
* @request PUT:/spaces/{spaceId}/comments/{commentId}/replies/{commentReplyId}
|
|
11876
11994
|
* @secure
|
|
11877
11995
|
*/
|
|
@@ -11887,11 +12005,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11887
12005
|
*/
|
|
11888
12006
|
deleteCommentReplyInSpace: (spaceId: EntityId, commentId: EntityId, commentReplyId: EntityId, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
11889
12007
|
/**
|
|
11890
|
-
*
|
|
12008
|
+
* @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
12009
|
*
|
|
11892
12010
|
* @tags space-comments, critical
|
|
11893
12011
|
* @name ListCommentersInSpace
|
|
11894
|
-
* @summary List all users who
|
|
12012
|
+
* @summary List all users who have posted comments in a space
|
|
11895
12013
|
* @request GET:/spaces/{spaceId}/commenters
|
|
11896
12014
|
* @secure
|
|
11897
12015
|
*/
|
|
@@ -11908,11 +12026,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11908
12026
|
items: OrganizationMember[];
|
|
11909
12027
|
}, any>>;
|
|
11910
12028
|
/**
|
|
11911
|
-
*
|
|
12029
|
+
* @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
12030
|
*
|
|
11913
12031
|
* @tags change-request-comments, critical
|
|
11914
12032
|
* @name ListCommentersInChangeRequest
|
|
11915
|
-
* @summary List all users who commented in a
|
|
12033
|
+
* @summary List all users who have commented in a change request
|
|
11916
12034
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/commenters
|
|
11917
12035
|
* @secure
|
|
11918
12036
|
*/
|
|
@@ -11952,11 +12070,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11952
12070
|
items: UserContentPermission[];
|
|
11953
12071
|
}, any>>;
|
|
11954
12072
|
/**
|
|
11955
|
-
*
|
|
12073
|
+
* @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
12074
|
*
|
|
11957
12075
|
* @tags space-integrations
|
|
11958
12076
|
* @name ListSpaceIntegrations
|
|
11959
|
-
* @summary List integrations enabled
|
|
12077
|
+
* @summary List all third-party integrations enabled on a space
|
|
11960
12078
|
* @request GET:/spaces/{spaceId}/integrations
|
|
11961
12079
|
* @secure
|
|
11962
12080
|
*/
|
|
@@ -11967,11 +12085,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11967
12085
|
items: Integration[];
|
|
11968
12086
|
}, any>>;
|
|
11969
12087
|
/**
|
|
11970
|
-
*
|
|
12088
|
+
* @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
12089
|
*
|
|
11972
12090
|
* @tags space-integrations
|
|
11973
12091
|
* @name ListSpaceIntegrationsBlocks
|
|
11974
|
-
* @summary List all
|
|
12092
|
+
* @summary List all custom content blocks provided by integrations in a space
|
|
11975
12093
|
* @request GET:/spaces/{spaceId}/integration-blocks
|
|
11976
12094
|
* @secure
|
|
11977
12095
|
*/
|
|
@@ -11983,11 +12101,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11983
12101
|
};
|
|
11984
12102
|
}>>;
|
|
11985
12103
|
/**
|
|
11986
|
-
*
|
|
12104
|
+
* @description Returns a short-lived URL (valid for 1 hour) to download the space's content as a PDF file.
|
|
11987
12105
|
*
|
|
11988
12106
|
* @tags space-content
|
|
11989
12107
|
* @name GetSpacePdf
|
|
11990
|
-
* @summary Get a URL
|
|
12108
|
+
* @summary Get a temporary URL to download a space or page as PDF
|
|
11991
12109
|
* @request GET:/spaces/{spaceId}/pdf
|
|
11992
12110
|
* @secure
|
|
11993
12111
|
*/
|
|
@@ -12001,11 +12119,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
12001
12119
|
url: URL;
|
|
12002
12120
|
}, any>>;
|
|
12003
12121
|
/**
|
|
12004
|
-
*
|
|
12122
|
+
* @description Returns a paginated list of all internal and external links found in the space's content. Use this to audit link health across an entire space.
|
|
12005
12123
|
*
|
|
12006
12124
|
* @tags spaces, links, critical
|
|
12007
12125
|
* @name ListSpaceLinks
|
|
12008
|
-
* @summary
|
|
12126
|
+
* @summary List all links in a space with their status and location
|
|
12009
12127
|
* @request GET:/spaces/{spaceId}/links
|
|
12010
12128
|
* @secure
|
|
12011
12129
|
*/
|
|
@@ -12963,15 +13081,15 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
12963
13081
|
* @default "desc"
|
|
12964
13082
|
*/
|
|
12965
13083
|
order?: "asc" | "desc";
|
|
12966
|
-
/** The
|
|
13084
|
+
/** The role to filter the list by */
|
|
12967
13085
|
role?: MemberRole | "guest";
|
|
12968
|
-
/** A query to filter the
|
|
13086
|
+
/** A query to filter the list by display name and email */
|
|
12969
13087
|
search?: string;
|
|
12970
13088
|
/**
|
|
12971
|
-
* The property to sort the
|
|
13089
|
+
* The property to sort the list by
|
|
12972
13090
|
* @default "joinedAt"
|
|
12973
13091
|
*/
|
|
12974
|
-
sort?: "joinedAt" | "lastSeenAt";
|
|
13092
|
+
sort?: "joinedAt" | "lastSeenAt" | "name";
|
|
12975
13093
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
12976
13094
|
items: OrganizationMember[];
|
|
12977
13095
|
}, any>>;
|
|
@@ -13358,11 +13476,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13358
13476
|
items: SearchSpaceResult[];
|
|
13359
13477
|
}, any>>;
|
|
13360
13478
|
/**
|
|
13361
|
-
*
|
|
13479
|
+
* @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
13480
|
*
|
|
13363
13481
|
* @tags change-requests
|
|
13364
13482
|
* @name ListChangeRequestsForOrganization
|
|
13365
|
-
* @summary List all change requests
|
|
13483
|
+
* @summary List all change requests across an entire organization
|
|
13366
13484
|
* @request GET:/orgs/{organizationId}/change-requests
|
|
13367
13485
|
* @secure
|
|
13368
13486
|
*/
|
|
@@ -13400,11 +13518,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13400
13518
|
items: ChangeRequest[];
|
|
13401
13519
|
}, any>>;
|
|
13402
13520
|
/**
|
|
13403
|
-
*
|
|
13521
|
+
* @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
13522
|
*
|
|
13405
13523
|
* @tags spaces
|
|
13406
13524
|
* @name ListSpacesInOrganizationById
|
|
13407
|
-
* @summary List all spaces
|
|
13525
|
+
* @summary List all spaces in an organization
|
|
13408
13526
|
* @request GET:/orgs/{organizationId}/spaces
|
|
13409
13527
|
* @secure
|
|
13410
13528
|
*/
|
|
@@ -13421,11 +13539,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13421
13539
|
items: Space[];
|
|
13422
13540
|
}, any>>;
|
|
13423
13541
|
/**
|
|
13424
|
-
*
|
|
13542
|
+
* @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
13543
|
*
|
|
13426
13544
|
* @tags spaces
|
|
13427
13545
|
* @name CreateSpace
|
|
13428
|
-
* @summary Create a space
|
|
13546
|
+
* @summary Create a new documentation space in an organization
|
|
13429
13547
|
* @request POST:/orgs/{organizationId}/spaces
|
|
13430
13548
|
* @secure
|
|
13431
13549
|
*/
|
|
@@ -14251,11 +14369,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14251
14369
|
*/
|
|
14252
14370
|
deleteCustomFont: (organizationId: EntityId, fontId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
14253
14371
|
/**
|
|
14254
|
-
*
|
|
14372
|
+
* @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
14373
|
*
|
|
14256
14374
|
* @tags sites, critical
|
|
14257
14375
|
* @name ListSites
|
|
14258
|
-
* @summary List all sites
|
|
14376
|
+
* @summary List all documentation sites in an organization
|
|
14259
14377
|
* @request GET:/orgs/{organizationId}/sites
|
|
14260
14378
|
* @secure
|
|
14261
14379
|
*/
|
|
@@ -14280,16 +14398,20 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14280
14398
|
items: Site[];
|
|
14281
14399
|
}, any>>;
|
|
14282
14400
|
/**
|
|
14283
|
-
*
|
|
14401
|
+
* @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
14402
|
*
|
|
14285
14403
|
* @tags sites
|
|
14286
14404
|
* @name CreateSite
|
|
14287
|
-
* @summary Create a site
|
|
14405
|
+
* @summary Create a new documentation site in an organization
|
|
14288
14406
|
* @request POST:/orgs/{organizationId}/sites
|
|
14289
14407
|
* @secure
|
|
14290
14408
|
*/
|
|
14291
14409
|
createSite: (organizationId: EntityId, data: {
|
|
14292
|
-
/**
|
|
14410
|
+
/**
|
|
14411
|
+
* The type of the site. Defaults to:
|
|
14412
|
+
* - Sponsored for community organizations
|
|
14413
|
+
* - Ultimate for all other organizations
|
|
14414
|
+
*/
|
|
14293
14415
|
type?: SiteType;
|
|
14294
14416
|
/** Title of the site */
|
|
14295
14417
|
title?: SiteTitle;
|
|
@@ -14305,11 +14427,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14305
14427
|
spaces?: string[];
|
|
14306
14428
|
}, params?: RequestParams) => Promise<HttpResponse<Site, any>>;
|
|
14307
14429
|
/**
|
|
14308
|
-
*
|
|
14430
|
+
* @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
14431
|
*
|
|
14310
14432
|
* @tags sites
|
|
14311
14433
|
* @name GetSiteById
|
|
14312
|
-
* @summary Get a site by its ID
|
|
14434
|
+
* @summary Get a documentation site by its ID
|
|
14313
14435
|
* @request GET:/orgs/{organizationId}/sites/{siteId}
|
|
14314
14436
|
* @secure
|
|
14315
14437
|
*/
|
|
@@ -14321,11 +14443,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14321
14443
|
};
|
|
14322
14444
|
}>>;
|
|
14323
14445
|
/**
|
|
14324
|
-
*
|
|
14446
|
+
* @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
14447
|
*
|
|
14326
14448
|
* @tags sites
|
|
14327
14449
|
* @name UpdateSiteById
|
|
14328
|
-
* @summary Update a site
|
|
14450
|
+
* @summary Update the properties of a documentation site
|
|
14329
14451
|
* @request PATCH:/orgs/{organizationId}/sites/{siteId}
|
|
14330
14452
|
* @secure
|
|
14331
14453
|
*/
|
|
@@ -14356,6 +14478,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14356
14478
|
* Use `null` to remove the proxy.
|
|
14357
14479
|
*/
|
|
14358
14480
|
proxy?: SiteProxyOrigin | null;
|
|
14481
|
+
/** 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. */
|
|
14482
|
+
styleguide?: string | null;
|
|
14359
14483
|
}, params?: RequestParams) => Promise<HttpResponse<Site, any>>;
|
|
14360
14484
|
/**
|
|
14361
14485
|
* No description
|
|
@@ -14398,11 +14522,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14398
14522
|
};
|
|
14399
14523
|
}>>;
|
|
14400
14524
|
/**
|
|
14401
|
-
*
|
|
14525
|
+
* @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
14526
|
*
|
|
14403
14527
|
* @tags sites
|
|
14404
14528
|
* @name GetSiteAdaptiveSchema
|
|
14405
|
-
* @summary Get the JSON schema
|
|
14529
|
+
* @summary Get the visitor attributes JSON schema for an adaptive content site
|
|
14406
14530
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/adaptive-schema
|
|
14407
14531
|
* @secure
|
|
14408
14532
|
*/
|
|
@@ -14414,11 +14538,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14414
14538
|
};
|
|
14415
14539
|
}>>;
|
|
14416
14540
|
/**
|
|
14417
|
-
*
|
|
14541
|
+
* @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
14542
|
*
|
|
14419
14543
|
* @tags sites
|
|
14420
14544
|
* @name UpdateSiteAdaptiveSchema
|
|
14421
|
-
* @summary Update the JSON schema
|
|
14545
|
+
* @summary Update the visitor attributes JSON schema for an adaptive content site
|
|
14422
14546
|
* @request PUT:/orgs/{organizationId}/sites/{siteId}/adaptive-schema
|
|
14423
14547
|
* @secure
|
|
14424
14548
|
*/
|
|
@@ -14433,11 +14557,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14433
14557
|
};
|
|
14434
14558
|
}>>;
|
|
14435
14559
|
/**
|
|
14436
|
-
*
|
|
14560
|
+
* @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
14561
|
*
|
|
14438
14562
|
* @tags sites
|
|
14439
14563
|
* @name ListSiteAdaptiveTemplateConditions
|
|
14440
|
-
* @summary List templates
|
|
14564
|
+
* @summary List condition templates for adaptive content expressions in a site
|
|
14441
14565
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/adaptive-schema/template-conditions
|
|
14442
14566
|
* @secure
|
|
14443
14567
|
*/
|
|
@@ -14445,11 +14569,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14445
14569
|
items: SiteAdaptiveTemplateCondition[];
|
|
14446
14570
|
}, any>>;
|
|
14447
14571
|
/**
|
|
14448
|
-
* @description
|
|
14572
|
+
* @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
14573
|
*
|
|
14450
14574
|
* @tags sites
|
|
14451
14575
|
* @name GetPublishedContentSite
|
|
14452
|
-
* @summary Get
|
|
14576
|
+
* @summary Get the full published profile of a site including structure and customization
|
|
14453
14577
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/published
|
|
14454
14578
|
* @secure
|
|
14455
14579
|
*/
|
|
@@ -14464,11 +14588,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14464
14588
|
};
|
|
14465
14589
|
}>>;
|
|
14466
14590
|
/**
|
|
14467
|
-
*
|
|
14591
|
+
* @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
14592
|
*
|
|
14469
14593
|
* @tags sites
|
|
14470
14594
|
* @name PublishSite
|
|
14471
|
-
* @summary Publish a site
|
|
14595
|
+
* @summary Publish a site to make it publicly accessible
|
|
14472
14596
|
* @request POST:/orgs/{organizationId}/sites/{siteId}/publish
|
|
14473
14597
|
* @secure
|
|
14474
14598
|
*/
|
|
@@ -14478,21 +14602,21 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14478
14602
|
sessionId: string;
|
|
14479
14603
|
}, any>>;
|
|
14480
14604
|
/**
|
|
14481
|
-
*
|
|
14605
|
+
* @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
14606
|
*
|
|
14483
14607
|
* @tags sites
|
|
14484
14608
|
* @name UnpublishSite
|
|
14485
|
-
* @summary
|
|
14609
|
+
* @summary Take a site offline by unpublishing it
|
|
14486
14610
|
* @request POST:/orgs/{organizationId}/sites/{siteId}/unpublish
|
|
14487
14611
|
* @secure
|
|
14488
14612
|
*/
|
|
14489
14613
|
unpublishSite: (organizationId: EntityId, siteId: string, params?: RequestParams) => Promise<HttpResponse<Site, any>>;
|
|
14490
14614
|
/**
|
|
14491
|
-
*
|
|
14615
|
+
* @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
14616
|
*
|
|
14493
14617
|
* @tags site-share-links
|
|
14494
14618
|
* @name ListSiteShareLinks
|
|
14495
|
-
* @summary List all share links
|
|
14619
|
+
* @summary List all private share links for a site
|
|
14496
14620
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/share-links
|
|
14497
14621
|
* @secure
|
|
14498
14622
|
*/
|
|
@@ -14511,11 +14635,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14511
14635
|
items: ShareLink[];
|
|
14512
14636
|
}, any>>;
|
|
14513
14637
|
/**
|
|
14514
|
-
*
|
|
14638
|
+
* @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
14639
|
*
|
|
14516
14640
|
* @tags site-share-links
|
|
14517
14641
|
* @name CreateSiteShareLink
|
|
14518
|
-
* @summary Create a share link
|
|
14642
|
+
* @summary Create a private share link for a site
|
|
14519
14643
|
* @request POST:/orgs/{organizationId}/sites/{siteId}/share-links
|
|
14520
14644
|
* @secure
|
|
14521
14645
|
*/
|
|
@@ -14524,11 +14648,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14524
14648
|
name: ShareLinkName;
|
|
14525
14649
|
}, params?: RequestParams) => Promise<HttpResponse<ShareLink, any>>;
|
|
14526
14650
|
/**
|
|
14527
|
-
*
|
|
14651
|
+
* @description Updates a share link's properties. Use this to temporarily disable a share link without losing its configuration.
|
|
14528
14652
|
*
|
|
14529
14653
|
* @tags site-share-links
|
|
14530
14654
|
* @name UpdateSiteShareLinkById
|
|
14531
|
-
* @summary Update a share link
|
|
14655
|
+
* @summary Update a private share link for a site
|
|
14532
14656
|
* @request PATCH:/orgs/{organizationId}/sites/{siteId}/share-links/{shareLinkId}
|
|
14533
14657
|
* @secure
|
|
14534
14658
|
*/
|
|
@@ -14548,11 +14672,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14548
14672
|
*/
|
|
14549
14673
|
deleteSiteShareLinkById: (organizationId: EntityId, siteId: string, shareLinkId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
14550
14674
|
/**
|
|
14551
|
-
* @description
|
|
14675
|
+
* @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
14676
|
*
|
|
14553
14677
|
* @tags site-structure
|
|
14554
14678
|
* @name GetSiteStructure
|
|
14555
|
-
* @summary Get a site
|
|
14679
|
+
* @summary Get the full navigation structure of a site
|
|
14556
14680
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/structure
|
|
14557
14681
|
* @secure
|
|
14558
14682
|
*/
|
|
@@ -14567,11 +14691,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14567
14691
|
};
|
|
14568
14692
|
}>>;
|
|
14569
14693
|
/**
|
|
14570
|
-
*
|
|
14694
|
+
* @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
14695
|
*
|
|
14572
14696
|
* @tags sites
|
|
14573
14697
|
* @name SortSiteStructure
|
|
14574
|
-
* @summary Move a site space,
|
|
14698
|
+
* @summary Move a site space, section, or section group to a new position
|
|
14575
14699
|
* @request PATCH:/orgs/{organizationId}/sites/{siteId}/structure/sort
|
|
14576
14700
|
* @secure
|
|
14577
14701
|
*/
|
|
@@ -14594,11 +14718,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14594
14718
|
};
|
|
14595
14719
|
}>>;
|
|
14596
14720
|
/**
|
|
14597
|
-
*
|
|
14721
|
+
* @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
14722
|
*
|
|
14599
14723
|
* @tags site-publishing-auth
|
|
14600
14724
|
* @name GetSitePublishingAuthById
|
|
14601
|
-
* @summary Get a site
|
|
14725
|
+
* @summary Get the published content authentication configuration for a site
|
|
14602
14726
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/publishing/auth
|
|
14603
14727
|
* @secure
|
|
14604
14728
|
*/
|
|
@@ -14610,11 +14734,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14610
14734
|
};
|
|
14611
14735
|
}>>;
|
|
14612
14736
|
/**
|
|
14613
|
-
*
|
|
14737
|
+
* @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
14738
|
*
|
|
14615
14739
|
* @tags site-publishing-auth
|
|
14616
14740
|
* @name UpdateSitePublishingAuthById
|
|
14617
|
-
* @summary Update a site
|
|
14741
|
+
* @summary Update the published content authentication configuration for a site
|
|
14618
14742
|
* @request PATCH:/orgs/{organizationId}/sites/{siteId}/publishing/auth
|
|
14619
14743
|
* @secure
|
|
14620
14744
|
*/
|
|
@@ -14626,11 +14750,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14626
14750
|
};
|
|
14627
14751
|
}>>;
|
|
14628
14752
|
/**
|
|
14629
|
-
* @description
|
|
14753
|
+
* @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
14754
|
*
|
|
14631
14755
|
* @tags site-publishing-auth
|
|
14632
14756
|
* @name RegenerateSitePublishingAuthById
|
|
14633
|
-
* @summary Regenerate a site
|
|
14757
|
+
* @summary Regenerate the private key for a site's published content authentication
|
|
14634
14758
|
* @request POST:/orgs/{organizationId}/sites/{siteId}/publishing/auth/regenerate
|
|
14635
14759
|
* @secure
|
|
14636
14760
|
*/
|
|
@@ -14642,11 +14766,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14642
14766
|
};
|
|
14643
14767
|
}>>;
|
|
14644
14768
|
/**
|
|
14645
|
-
* @description
|
|
14769
|
+
* @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
14770
|
*
|
|
14647
14771
|
* @tags site-preview
|
|
14648
14772
|
* @name GetSitePublishingPreviewById
|
|
14649
|
-
* @summary
|
|
14773
|
+
* @summary Generate a temporary preview URL for a site's published content
|
|
14650
14774
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/publishing/preview
|
|
14651
14775
|
* @secure
|
|
14652
14776
|
*/
|
|
@@ -14672,11 +14796,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14672
14796
|
};
|
|
14673
14797
|
}>>;
|
|
14674
14798
|
/**
|
|
14675
|
-
*
|
|
14799
|
+
* @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
14800
|
*
|
|
14677
14801
|
* @tags site-customization
|
|
14678
14802
|
* @name GetSiteCustomizationById
|
|
14679
|
-
* @summary Get
|
|
14803
|
+
* @summary Get the branding and visual customization settings for a site
|
|
14680
14804
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/customization
|
|
14681
14805
|
* @secure
|
|
14682
14806
|
*/
|
|
@@ -14695,11 +14819,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14695
14819
|
};
|
|
14696
14820
|
}>>;
|
|
14697
14821
|
/**
|
|
14698
|
-
*
|
|
14822
|
+
* @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
14823
|
*
|
|
14700
14824
|
* @tags site-customization
|
|
14701
14825
|
* @name UpdateSiteCustomizationById
|
|
14702
|
-
* @summary Update
|
|
14826
|
+
* @summary Update the branding and visual customization settings for a site
|
|
14703
14827
|
* @request PUT:/orgs/{organizationId}/sites/{siteId}/customization
|
|
14704
14828
|
* @secure
|
|
14705
14829
|
*/
|
|
@@ -14711,11 +14835,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14711
14835
|
};
|
|
14712
14836
|
}>>;
|
|
14713
14837
|
/**
|
|
14714
|
-
*
|
|
14838
|
+
* @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
14839
|
*
|
|
14716
14840
|
* @tags integrations, sites
|
|
14717
14841
|
* @name ListSiteIntegrationScripts
|
|
14718
|
-
* @summary List
|
|
14842
|
+
* @summary List custom scripts injected into a site's published pages
|
|
14719
14843
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/integration-scripts
|
|
14720
14844
|
* @secure
|
|
14721
14845
|
*/
|
|
@@ -14727,11 +14851,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14727
14851
|
};
|
|
14728
14852
|
}>>;
|
|
14729
14853
|
/**
|
|
14730
|
-
*
|
|
14854
|
+
* @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
14855
|
*
|
|
14732
14856
|
* @tags integrations, sites
|
|
14733
14857
|
* @name ListSiteIntegrations
|
|
14734
|
-
* @summary List integrations enabled
|
|
14858
|
+
* @summary List third-party integrations enabled on a site
|
|
14735
14859
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/integrations
|
|
14736
14860
|
* @secure
|
|
14737
14861
|
*/
|
|
@@ -14742,11 +14866,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14742
14866
|
items: Integration[];
|
|
14743
14867
|
}, any>>;
|
|
14744
14868
|
/**
|
|
14745
|
-
*
|
|
14869
|
+
* @description Links an existing space to the site by creating a site space relationship.
|
|
14746
14870
|
*
|
|
14747
14871
|
* @tags site-spaces
|
|
14748
14872
|
* @name AddSpaceToSite
|
|
14749
|
-
* @summary Add a space to a site
|
|
14873
|
+
* @summary Add a space to a site as a content source
|
|
14750
14874
|
* @request POST:/orgs/{organizationId}/sites/{siteId}/site-spaces
|
|
14751
14875
|
* @secure
|
|
14752
14876
|
*/
|
|
@@ -14762,11 +14886,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14762
14886
|
draft?: boolean;
|
|
14763
14887
|
}, params?: RequestParams) => Promise<HttpResponse<SiteSpace, any>>;
|
|
14764
14888
|
/**
|
|
14765
|
-
*
|
|
14889
|
+
* @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
14890
|
*
|
|
14767
14891
|
* @tags site-spaces, critical
|
|
14768
14892
|
* @name ListSiteSpaces
|
|
14769
|
-
* @summary List all
|
|
14893
|
+
* @summary List all spaces linked to a site as content sources
|
|
14770
14894
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/site-spaces
|
|
14771
14895
|
* @secure
|
|
14772
14896
|
*/
|
|
@@ -14787,11 +14911,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14787
14911
|
items: SiteSpace[];
|
|
14788
14912
|
}, any>>;
|
|
14789
14913
|
/**
|
|
14790
|
-
*
|
|
14914
|
+
* @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
14915
|
*
|
|
14792
14916
|
* @tags site-section-groups
|
|
14793
14917
|
* @name ListSiteSectionGroups
|
|
14794
|
-
* @summary List all site
|
|
14918
|
+
* @summary List all section groups in a site's navigation structure
|
|
14795
14919
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/section-groups
|
|
14796
14920
|
* @secure
|
|
14797
14921
|
*/
|
|
@@ -14808,11 +14932,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14808
14932
|
items: SiteSectionGroup[];
|
|
14809
14933
|
}, any>>;
|
|
14810
14934
|
/**
|
|
14811
|
-
*
|
|
14935
|
+
* @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
14936
|
*
|
|
14813
14937
|
* @tags site-section-groups
|
|
14814
14938
|
* @name AddSectionGroupToSite
|
|
14815
|
-
* @summary Add a section group to a site
|
|
14939
|
+
* @summary Add a section group to a site's navigation structure
|
|
14816
14940
|
* @request POST:/orgs/{organizationId}/sites/{siteId}/section-groups
|
|
14817
14941
|
* @secure
|
|
14818
14942
|
*/
|
|
@@ -14828,11 +14952,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14828
14952
|
draft?: boolean;
|
|
14829
14953
|
}, params?: RequestParams) => Promise<HttpResponse<SiteSectionGroup, any>>;
|
|
14830
14954
|
/**
|
|
14831
|
-
*
|
|
14955
|
+
* @description Updates a section group's properties in the site's navigation structure.
|
|
14832
14956
|
*
|
|
14833
14957
|
* @tags site-section-groups
|
|
14834
14958
|
* @name UpdateSiteSectionGroupById
|
|
14835
|
-
* @summary Update a site
|
|
14959
|
+
* @summary Update a section group in a site's navigation structure
|
|
14836
14960
|
* @request PATCH:/orgs/{organizationId}/sites/{siteId}/section-groups/{siteSectionGroupId}
|
|
14837
14961
|
* @secure
|
|
14838
14962
|
*/
|
|
@@ -14856,11 +14980,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14856
14980
|
*/
|
|
14857
14981
|
deleteSiteSectionGroupById: (organizationId: EntityId, siteId: string, siteSectionGroupId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
14858
14982
|
/**
|
|
14859
|
-
*
|
|
14983
|
+
* @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
14984
|
*
|
|
14861
14985
|
* @tags site-sections
|
|
14862
14986
|
* @name AddSectionToSite
|
|
14863
|
-
* @summary Add a section to a site
|
|
14987
|
+
* @summary Add a new navigation section to a site backed by a space
|
|
14864
14988
|
* @request POST:/orgs/{organizationId}/sites/{siteId}/sections
|
|
14865
14989
|
* @secure
|
|
14866
14990
|
*/
|
|
@@ -14875,11 +14999,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14875
14999
|
siteSectionGroupId?: string;
|
|
14876
15000
|
}, params?: RequestParams) => Promise<HttpResponse<SiteSection, any>>;
|
|
14877
15001
|
/**
|
|
14878
|
-
*
|
|
15002
|
+
* @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
15003
|
*
|
|
14880
15004
|
* @tags site-sections
|
|
14881
15005
|
* @name ListSiteSections
|
|
14882
|
-
* @summary List all
|
|
15006
|
+
* @summary List all navigation sections in a site
|
|
14883
15007
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/sections
|
|
14884
15008
|
* @secure
|
|
14885
15009
|
*/
|
|
@@ -14898,11 +15022,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14898
15022
|
items: SiteSection[];
|
|
14899
15023
|
}, any>>;
|
|
14900
15024
|
/**
|
|
14901
|
-
*
|
|
15025
|
+
* @description Updates a navigation section's configuration in the site structure.
|
|
14902
15026
|
*
|
|
14903
15027
|
* @tags site-sections
|
|
14904
15028
|
* @name UpdateSiteSectionById
|
|
14905
|
-
* @summary Update a
|
|
15029
|
+
* @summary Update a navigation section in a site
|
|
14906
15030
|
* @request PATCH:/orgs/{organizationId}/sites/{siteId}/sections/{siteSectionId}
|
|
14907
15031
|
* @secure
|
|
14908
15032
|
*/
|
|
@@ -14937,11 +15061,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14937
15061
|
*/
|
|
14938
15062
|
deleteSiteSectionById: (organizationId: EntityId, siteId: string, siteSectionId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
14939
15063
|
/**
|
|
14940
|
-
*
|
|
15064
|
+
* @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
15065
|
*
|
|
14942
15066
|
* @tags sites
|
|
14943
15067
|
* @name SearchSiteContent
|
|
14944
|
-
* @summary
|
|
15068
|
+
* @summary Full-text search across all content in a site
|
|
14945
15069
|
* @request POST:/orgs/{organizationId}/sites/{siteId}/search
|
|
14946
15070
|
* @secure
|
|
14947
15071
|
*/
|
|
@@ -15178,7 +15302,14 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
15178
15302
|
* @secure
|
|
15179
15303
|
*/
|
|
15180
15304
|
updateSiteFindingById: (organizationId: EntityId, siteId: string, siteFindingId: string, data: {
|
|
15181
|
-
|
|
15305
|
+
/**
|
|
15306
|
+
* Status of a site finding.
|
|
15307
|
+
* - `candidate` is a finding that has been raised but not yet confirmed. Typically these are not shown to users.
|
|
15308
|
+
* - `open` is a finding that has been surfaced to users and is still under investigation.
|
|
15309
|
+
* - `done` is a finding that has been resolved and is no longer under investigation.
|
|
15310
|
+
* - `canceled` is a finding that has been canceled and is no longer under investigation.
|
|
15311
|
+
*/
|
|
15312
|
+
status: SiteFindingStatus;
|
|
15182
15313
|
}, params?: RequestParams) => Promise<HttpResponse<SiteFinding, any>>;
|
|
15183
15314
|
/**
|
|
15184
15315
|
* No description
|
|
@@ -15306,6 +15437,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
15306
15437
|
*/
|
|
15307
15438
|
createSiteContextConnection: (organizationId: EntityId, siteId: string, data: ContextConnectorSetup & {
|
|
15308
15439
|
usageSettings?: ContextUsageSettings;
|
|
15440
|
+
/** 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. */
|
|
15441
|
+
filter?: ContextConnectionFilter;
|
|
15309
15442
|
}, params?: RequestParams) => Promise<HttpResponse<ContextConnection, any>>;
|
|
15310
15443
|
/**
|
|
15311
15444
|
* No description
|
|
@@ -15330,6 +15463,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
15330
15463
|
usageSettings?: ContextUsageSettings;
|
|
15331
15464
|
/** Optional label for the connection */
|
|
15332
15465
|
label?: ContextConnectionLabel;
|
|
15466
|
+
/** 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. */
|
|
15467
|
+
filter?: ContextConnectionFilter;
|
|
15333
15468
|
}, params?: RequestParams) => Promise<HttpResponse<ContextConnection, any>>;
|
|
15334
15469
|
/**
|
|
15335
15470
|
* No description
|
|
@@ -15407,11 +15542,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
15407
15542
|
*/
|
|
15408
15543
|
deleteSiteTopicFindings: (organizationId: EntityId, siteId: string, siteTopicId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
15409
15544
|
/**
|
|
15410
|
-
*
|
|
15545
|
+
* @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
15546
|
*
|
|
15412
15547
|
* @tags site-questions
|
|
15413
15548
|
* @name ListSiteQuestions
|
|
15414
|
-
* @summary List
|
|
15549
|
+
* @summary List the questions visitors asked a site's Ask AI assistant
|
|
15415
15550
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/questions
|
|
15416
15551
|
* @secure
|
|
15417
15552
|
*/
|
|
@@ -15449,11 +15584,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
15449
15584
|
items: SiteQuestion[];
|
|
15450
15585
|
}, any>>;
|
|
15451
15586
|
/**
|
|
15452
|
-
*
|
|
15587
|
+
* @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
15588
|
*
|
|
15454
15589
|
* @tags site-questions
|
|
15455
15590
|
* @name GetSiteQuestionById
|
|
15456
|
-
* @summary Get a
|
|
15591
|
+
* @summary Get a single Ask AI question by ID
|
|
15457
15592
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/questions/{siteQuestionId}
|
|
15458
15593
|
* @secure
|
|
15459
15594
|
*/
|
|
@@ -15470,11 +15605,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
15470
15605
|
answered?: SiteQuestionAnswerResolution[];
|
|
15471
15606
|
}, params?: RequestParams) => Promise<HttpResponse<SiteQuestion, any>>;
|
|
15472
15607
|
/**
|
|
15473
|
-
*
|
|
15608
|
+
* @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
15609
|
*
|
|
15475
15610
|
* @tags site-questions
|
|
15476
15611
|
* @name ListSiteQuestionSources
|
|
15477
|
-
* @summary List sources
|
|
15612
|
+
* @summary List the documentation sources used to answer a question
|
|
15478
15613
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/questions/{siteQuestionId}/sources
|
|
15479
15614
|
* @secure
|
|
15480
15615
|
*/
|
|
@@ -15501,11 +15636,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
15501
15636
|
items: SiteQuestionAnswerSource[];
|
|
15502
15637
|
}, any>>;
|
|
15503
15638
|
/**
|
|
15504
|
-
*
|
|
15639
|
+
* @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
15640
|
*
|
|
15506
15641
|
* @tags site-questions
|
|
15507
15642
|
* @name GetSiteQuestionStats
|
|
15508
|
-
* @summary Get question
|
|
15643
|
+
* @summary Get aggregate Ask AI question statistics for a site
|
|
15509
15644
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/question-stats
|
|
15510
15645
|
* @secure
|
|
15511
15646
|
*/
|
|
@@ -15524,11 +15659,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
15524
15659
|
answered?: SiteQuestionAnswerResolution[];
|
|
15525
15660
|
}, params?: RequestParams) => Promise<HttpResponse<SiteQuestionStats, any>>;
|
|
15526
15661
|
/**
|
|
15527
|
-
*
|
|
15662
|
+
* @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
15663
|
*
|
|
15529
15664
|
* @tags site-questions
|
|
15530
15665
|
* @name ListSiteQuestionAnswers
|
|
15531
|
-
* @summary List
|
|
15666
|
+
* @summary List the answers a site's Ask AI assistant generated
|
|
15532
15667
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/answers
|
|
15533
15668
|
* @secure
|
|
15534
15669
|
*/
|
|
@@ -15567,31 +15702,31 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
15567
15702
|
items: SiteQuestionAnswer[];
|
|
15568
15703
|
}, any>>;
|
|
15569
15704
|
/**
|
|
15570
|
-
*
|
|
15705
|
+
* @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
15706
|
*
|
|
15572
15707
|
* @tags site-questions
|
|
15573
15708
|
* @name GetSiteQuestionAnswerById
|
|
15574
|
-
* @summary Get a
|
|
15709
|
+
* @summary Get a single Ask AI answer by ID
|
|
15575
15710
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/answers/{siteQuestionAnswerId}
|
|
15576
15711
|
* @secure
|
|
15577
15712
|
*/
|
|
15578
15713
|
getSiteQuestionAnswerById: (organizationId: EntityId, siteId: string, siteQuestionAnswerId: string, params?: RequestParams) => Promise<HttpResponse<SiteQuestionAnswerWithResponse, any>>;
|
|
15579
15714
|
/**
|
|
15580
|
-
*
|
|
15715
|
+
* @description Returns the full conversation thread for a given Ask AI answer: the sequence of follow-up questions and responses in that exchange.
|
|
15581
15716
|
*
|
|
15582
15717
|
* @tags site-questions
|
|
15583
15718
|
* @name GetSiteQuestionAnswerThreadById
|
|
15584
|
-
* @summary Get
|
|
15719
|
+
* @summary Get the conversation thread for an Ask AI answer
|
|
15585
15720
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/answers/{siteQuestionAnswerId}/thread
|
|
15586
15721
|
* @secure
|
|
15587
15722
|
*/
|
|
15588
15723
|
getSiteQuestionAnswerThreadById: (organizationId: EntityId, siteId: string, siteQuestionAnswerId: string, params?: RequestParams) => Promise<HttpResponse<SiteQuestionAnswerWithResponse[], any>>;
|
|
15589
15724
|
/**
|
|
15590
|
-
*
|
|
15725
|
+
* @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
15726
|
*
|
|
15592
15727
|
* @tags site-questions
|
|
15593
15728
|
* @name ListSiteQuestionAnswerSources
|
|
15594
|
-
* @summary List the sources for an answer
|
|
15729
|
+
* @summary List the documentation sources cited for an answer
|
|
15595
15730
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/answers/{siteQuestionAnswerId}/sources
|
|
15596
15731
|
* @secure
|
|
15597
15732
|
*/
|
|
@@ -15608,11 +15743,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
15608
15743
|
items: SiteQuestionAnswerSource[];
|
|
15609
15744
|
}, any>>;
|
|
15610
15745
|
/**
|
|
15611
|
-
*
|
|
15746
|
+
* @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
15747
|
*
|
|
15613
15748
|
* @tags site-spaces
|
|
15614
15749
|
* @name UpdateSiteSpaceById
|
|
15615
|
-
* @summary Update a site
|
|
15750
|
+
* @summary Update a space linked to a site
|
|
15616
15751
|
* @request PATCH:/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}
|
|
15617
15752
|
* @secure
|
|
15618
15753
|
*/
|
|
@@ -15639,11 +15774,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
15639
15774
|
*/
|
|
15640
15775
|
deleteSiteSpaceById: (organizationId: EntityId, siteId: string, siteSpaceId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
15641
15776
|
/**
|
|
15642
|
-
*
|
|
15777
|
+
* @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
15778
|
*
|
|
15644
15779
|
* @tags site-customization
|
|
15645
15780
|
* @name GetSiteSpaceCustomizationById
|
|
15646
|
-
* @summary Get a site space
|
|
15781
|
+
* @summary Get the customization overrides for a site space
|
|
15647
15782
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/customization
|
|
15648
15783
|
* @secure
|
|
15649
15784
|
*/
|
|
@@ -15662,11 +15797,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
15662
15797
|
};
|
|
15663
15798
|
}>>;
|
|
15664
15799
|
/**
|
|
15665
|
-
*
|
|
15800
|
+
* @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
15801
|
*
|
|
15667
15802
|
* @tags site-customization
|
|
15668
15803
|
* @name OverrideSiteSpaceCustomizationById
|
|
15669
|
-
* @summary Override a site space
|
|
15804
|
+
* @summary Override branding and customization settings for a specific site space
|
|
15670
15805
|
* @request PATCH:/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/customization
|
|
15671
15806
|
* @secure
|
|
15672
15807
|
*/
|
|
@@ -15911,6 +16046,22 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
15911
16046
|
* @max 1000
|
|
15912
16047
|
*/
|
|
15913
16048
|
limit?: number;
|
|
16049
|
+
/**
|
|
16050
|
+
* An order for the items in the list
|
|
16051
|
+
* @default "desc"
|
|
16052
|
+
*/
|
|
16053
|
+
order?: "asc" | "desc";
|
|
16054
|
+
/** The role to filter the list by */
|
|
16055
|
+
role?: MemberRole | "guest";
|
|
16056
|
+
/** A query to filter the list by display name and email */
|
|
16057
|
+
search?: string;
|
|
16058
|
+
/**
|
|
16059
|
+
* The property to sort the list by
|
|
16060
|
+
* @default "joinedAt"
|
|
16061
|
+
*/
|
|
16062
|
+
sort?: "joinedAt" | "lastSeenAt" | "name";
|
|
16063
|
+
/** Team identifier. Filter the list to members of a specific team. */
|
|
16064
|
+
team?: string;
|
|
15914
16065
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
15915
16066
|
items: UserSitePermission[];
|
|
15916
16067
|
}, any>>;
|
|
@@ -16069,11 +16220,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
16069
16220
|
};
|
|
16070
16221
|
}, params?: RequestParams) => EventIterator<AIStreamResponse>;
|
|
16071
16222
|
/**
|
|
16072
|
-
*
|
|
16223
|
+
* @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
16224
|
*
|
|
16074
16225
|
* @tags site-agent-settings
|
|
16075
16226
|
* @name GetSiteAgentSettingsById
|
|
16076
|
-
* @summary Get
|
|
16227
|
+
* @summary Get the AI agent configuration for a site
|
|
16077
16228
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/agent-settings
|
|
16078
16229
|
* @secure
|
|
16079
16230
|
*/
|
|
@@ -16085,11 +16236,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
16085
16236
|
};
|
|
16086
16237
|
}>>;
|
|
16087
16238
|
/**
|
|
16088
|
-
*
|
|
16239
|
+
* @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
16240
|
*
|
|
16090
16241
|
* @tags site-agent-settings
|
|
16091
16242
|
* @name UpdateSiteAgentSettingsById
|
|
16092
|
-
* @summary Update
|
|
16243
|
+
* @summary Update the AI agent configuration for a site
|
|
16093
16244
|
* @request PUT:/orgs/{organizationId}/sites/{siteId}/agent-settings
|
|
16094
16245
|
* @secure
|
|
16095
16246
|
*/
|
|
@@ -16101,31 +16252,18 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
16101
16252
|
};
|
|
16102
16253
|
}>>;
|
|
16103
16254
|
/**
|
|
16104
|
-
* @description Ensures the site has a
|
|
16255
|
+
* @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
16256
|
*
|
|
16106
16257
|
* @tags sites
|
|
16107
16258
|
* @name CreateSiteStyleguideById
|
|
16108
|
-
* @summary Create or
|
|
16259
|
+
* @summary Create or retrieve the styleguide space for a site
|
|
16109
16260
|
* @request POST:/orgs/{organizationId}/sites/{siteId}/styleguide
|
|
16110
16261
|
* @secure
|
|
16111
16262
|
*/
|
|
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, {
|
|
16263
|
+
createSiteStyleguideById: (organizationId: EntityId, siteId: string, data?: {
|
|
16264
|
+
/** Built-in template id to seed the styleguide content with. Omit (or send no body) to create a blank styleguide. */
|
|
16265
|
+
template?: string;
|
|
16266
|
+
}, params?: RequestParams) => Promise<HttpResponse<Space, {
|
|
16129
16267
|
error: {
|
|
16130
16268
|
/** @format int32 */
|
|
16131
16269
|
code: 404;
|
|
@@ -16145,11 +16283,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
16145
16283
|
events: SiteInsightsEvent[];
|
|
16146
16284
|
}, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
16147
16285
|
/**
|
|
16148
|
-
*
|
|
16286
|
+
* @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
16287
|
*
|
|
16150
16288
|
* @tags site-insights
|
|
16151
16289
|
* @name AggregateSiteEvents
|
|
16152
|
-
* @summary Query site events
|
|
16290
|
+
* @summary Query a site's analytics events
|
|
16153
16291
|
* @request POST:/orgs/{organizationId}/sites/{siteId}/insights/events/aggregate
|
|
16154
16292
|
* @secure
|
|
16155
16293
|
*/
|
|
@@ -16167,11 +16305,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
16167
16305
|
items: SiteInsightsVisitorSegment[];
|
|
16168
16306
|
}, any>>;
|
|
16169
16307
|
/**
|
|
16170
|
-
*
|
|
16308
|
+
* @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
16309
|
*
|
|
16172
16310
|
* @tags site-ads
|
|
16173
16311
|
* @name UpdateSiteAdsById
|
|
16174
|
-
* @summary Update a site
|
|
16312
|
+
* @summary Update the advertising settings for a site
|
|
16175
16313
|
* @request POST:/orgs/{organizationId}/sites/{siteId}/ads
|
|
16176
16314
|
* @secure
|
|
16177
16315
|
*/
|
|
@@ -16181,11 +16319,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
16181
16319
|
topic?: SiteAdsTopic;
|
|
16182
16320
|
}, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
16183
16321
|
/**
|
|
16184
|
-
*
|
|
16322
|
+
* @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
16323
|
*
|
|
16186
16324
|
* @tags site-redirects
|
|
16187
16325
|
* @name CreateSiteRedirect
|
|
16188
|
-
* @summary Create a
|
|
16326
|
+
* @summary Create a URL redirect rule for a site
|
|
16189
16327
|
* @request POST:/orgs/{organizationId}/sites/{siteId}/redirects
|
|
16190
16328
|
* @secure
|
|
16191
16329
|
*/
|
|
@@ -16205,11 +16343,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
16205
16343
|
destination: SiteRedirectInputDestination;
|
|
16206
16344
|
}, params?: RequestParams) => Promise<HttpResponse<SiteRedirect, any>>;
|
|
16207
16345
|
/**
|
|
16208
|
-
*
|
|
16346
|
+
* @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
16347
|
*
|
|
16210
16348
|
* @tags site-redirects
|
|
16211
16349
|
* @name BulkUpsertSiteRedirects
|
|
16212
|
-
* @summary Create or
|
|
16350
|
+
* @summary Create, update, delete, or publish site redirect rules in bulk
|
|
16213
16351
|
* @request PUT:/orgs/{organizationId}/sites/{siteId}/redirects
|
|
16214
16352
|
* @secure
|
|
16215
16353
|
*/
|
|
@@ -16288,11 +16426,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
16288
16426
|
})[];
|
|
16289
16427
|
}, any>>;
|
|
16290
16428
|
/**
|
|
16291
|
-
*
|
|
16429
|
+
* @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
16430
|
*
|
|
16293
16431
|
* @tags site-redirects
|
|
16294
16432
|
* @name ListSiteRedirects
|
|
16295
|
-
* @summary List all site
|
|
16433
|
+
* @summary List all URL redirect rules configured for a site
|
|
16296
16434
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/redirects
|
|
16297
16435
|
* @secure
|
|
16298
16436
|
*/
|
|
@@ -16316,11 +16454,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
16316
16454
|
items: SiteRedirect[];
|
|
16317
16455
|
}, any>>;
|
|
16318
16456
|
/**
|
|
16319
|
-
*
|
|
16457
|
+
* @description Updates an existing redirect rule for a site. Only provided fields are updated.
|
|
16320
16458
|
*
|
|
16321
16459
|
* @tags site-redirects
|
|
16322
16460
|
* @name UpdateSiteRedirectById
|
|
16323
|
-
* @summary Update a
|
|
16461
|
+
* @summary Update a URL redirect rule for a site
|
|
16324
16462
|
* @request PATCH:/orgs/{organizationId}/sites/{siteId}/redirects/{siteRedirectId}
|
|
16325
16463
|
* @secure
|
|
16326
16464
|
*/
|
|
@@ -16344,11 +16482,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
16344
16482
|
*/
|
|
16345
16483
|
deleteSiteRedirectById: (organizationId: EntityId, siteId: string, siteRedirectId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
16346
16484
|
/**
|
|
16347
|
-
*
|
|
16485
|
+
* @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
16486
|
*
|
|
16349
16487
|
* @tags site-redirects
|
|
16350
16488
|
* @name GetSiteRedirectBySource
|
|
16351
|
-
* @summary
|
|
16489
|
+
* @summary Resolve a site redirect rule by its source path
|
|
16352
16490
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/redirect
|
|
16353
16491
|
* @secure
|
|
16354
16492
|
*/
|
|
@@ -16369,11 +16507,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
16369
16507
|
};
|
|
16370
16508
|
}>>;
|
|
16371
16509
|
/**
|
|
16372
|
-
*
|
|
16510
|
+
* @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
16511
|
*
|
|
16374
16512
|
* @tags site-mcp-servers
|
|
16375
16513
|
* @name ListSiteMcpServers
|
|
16376
|
-
* @summary List all MCP servers for a site
|
|
16514
|
+
* @summary List all MCP servers configured for a site
|
|
16377
16515
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/mcp-servers
|
|
16378
16516
|
* @secure
|
|
16379
16517
|
*/
|
|
@@ -16390,11 +16528,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
16390
16528
|
items: SiteMcpServer[];
|
|
16391
16529
|
}, any>>;
|
|
16392
16530
|
/**
|
|
16393
|
-
*
|
|
16531
|
+
* @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
16532
|
*
|
|
16395
16533
|
* @tags site-mcp-servers
|
|
16396
16534
|
* @name CreateSiteMcpServer
|
|
16397
|
-
* @summary
|
|
16535
|
+
* @summary Add a new MCP server configuration to a site
|
|
16398
16536
|
* @request POST:/orgs/{organizationId}/sites/{siteId}/mcp-servers
|
|
16399
16537
|
* @secure
|
|
16400
16538
|
*/
|
|
@@ -16410,21 +16548,21 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
16410
16548
|
condition?: Expression | null;
|
|
16411
16549
|
}, params?: RequestParams) => Promise<HttpResponse<SiteMcpServer, any>>;
|
|
16412
16550
|
/**
|
|
16413
|
-
*
|
|
16551
|
+
* @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
16552
|
*
|
|
16415
16553
|
* @tags site-mcp-servers
|
|
16416
16554
|
* @name GetSiteMcpServerById
|
|
16417
|
-
* @summary Get a site
|
|
16555
|
+
* @summary Get an MCP server configuration for a site by its ID
|
|
16418
16556
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/mcp-servers/{siteMcpServerId}
|
|
16419
16557
|
* @secure
|
|
16420
16558
|
*/
|
|
16421
16559
|
getSiteMcpServerById: (organizationId: EntityId, siteId: string, siteMcpServerId: string, params?: RequestParams) => Promise<HttpResponse<SiteMcpServer, any>>;
|
|
16422
16560
|
/**
|
|
16423
|
-
*
|
|
16561
|
+
* @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
16562
|
*
|
|
16425
16563
|
* @tags site-mcp-servers
|
|
16426
16564
|
* @name UpdateSiteMcpServerById
|
|
16427
|
-
* @summary Update
|
|
16565
|
+
* @summary Update an MCP server configuration for a site
|
|
16428
16566
|
* @request PATCH:/orgs/{organizationId}/sites/{siteId}/mcp-servers/{siteMcpServerId}
|
|
16429
16567
|
* @secure
|
|
16430
16568
|
*/
|
|
@@ -16454,11 +16592,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
16454
16592
|
*/
|
|
16455
16593
|
deleteSiteMcpServerById: (organizationId: EntityId, siteId: string, siteMcpServerId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
16456
16594
|
/**
|
|
16457
|
-
*
|
|
16595
|
+
* @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
16596
|
*
|
|
16459
16597
|
* @tags site-channels
|
|
16460
16598
|
* @name ListSiteChannels
|
|
16461
|
-
* @summary List all
|
|
16599
|
+
* @summary List all GitBook Agent channels for a site
|
|
16462
16600
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/channels
|
|
16463
16601
|
* @secure
|
|
16464
16602
|
*/
|
|
@@ -16475,11 +16613,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
16475
16613
|
items: SiteChannel[];
|
|
16476
16614
|
}, any>>;
|
|
16477
16615
|
/**
|
|
16478
|
-
*
|
|
16616
|
+
* @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
16617
|
*
|
|
16480
16618
|
* @tags site-channels
|
|
16481
16619
|
* @name CreateSiteChannel
|
|
16482
|
-
* @summary Create a
|
|
16620
|
+
* @summary Create a new GitBook Agent channel for a site
|
|
16483
16621
|
* @request POST:/orgs/{organizationId}/sites/{siteId}/channels
|
|
16484
16622
|
* @secure
|
|
16485
16623
|
*/
|
|
@@ -16487,21 +16625,21 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
16487
16625
|
role?: SiteChannelRole;
|
|
16488
16626
|
}, params?: RequestParams) => Promise<HttpResponse<SiteChannel, any>>;
|
|
16489
16627
|
/**
|
|
16490
|
-
*
|
|
16628
|
+
* @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
16629
|
*
|
|
16492
16630
|
* @tags site-channels
|
|
16493
16631
|
* @name GetSiteChannelById
|
|
16494
|
-
* @summary Get a site
|
|
16632
|
+
* @summary Get a GitBook Agent channel for a site by its ID
|
|
16495
16633
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/channels/{siteChannelId}
|
|
16496
16634
|
* @secure
|
|
16497
16635
|
*/
|
|
16498
16636
|
getSiteChannelById: (organizationId: EntityId, siteId: string, siteChannelId: string, params?: RequestParams) => Promise<HttpResponse<SiteChannel, any>>;
|
|
16499
16637
|
/**
|
|
16500
|
-
*
|
|
16638
|
+
* @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
16639
|
*
|
|
16502
16640
|
* @tags site-channels
|
|
16503
16641
|
* @name UpdateSiteChannelById
|
|
16504
|
-
* @summary Update a
|
|
16642
|
+
* @summary Update a GitBook Agent channel for a site
|
|
16505
16643
|
* @request PATCH:/orgs/{organizationId}/sites/{siteId}/channels/{siteChannelId}
|
|
16506
16644
|
* @secure
|
|
16507
16645
|
*/
|
|
@@ -16513,7 +16651,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
16513
16651
|
*
|
|
16514
16652
|
* @tags site-channels
|
|
16515
16653
|
* @name DeleteSiteChannelById
|
|
16516
|
-
* @summary Delete a
|
|
16654
|
+
* @summary Delete a GitBook Agent channel from a site
|
|
16517
16655
|
* @request DELETE:/orgs/{organizationId}/sites/{siteId}/channels/{siteChannelId}
|
|
16518
16656
|
* @secure
|
|
16519
16657
|
*/
|