@gitbook/api 0.119.0 → 0.121.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 +217 -309
- package/dist/index.cjs +63 -66
- package/dist/index.js +62 -65
- package/package.json +1 -1
- package/spec/openapi.json +556 -993
- package/spec/openapi.yaml +360 -668
package/dist/client.d.ts
CHANGED
|
@@ -580,6 +580,24 @@ export interface DocumentInlineEmoji {
|
|
|
580
580
|
};
|
|
581
581
|
isVoid: true;
|
|
582
582
|
}
|
|
583
|
+
export interface DocumentInlineIcon {
|
|
584
|
+
object: 'inline';
|
|
585
|
+
type: 'icon';
|
|
586
|
+
key?: string;
|
|
587
|
+
data: {
|
|
588
|
+
icon: string;
|
|
589
|
+
};
|
|
590
|
+
isVoid: true;
|
|
591
|
+
}
|
|
592
|
+
export interface DocumentInlineExpression {
|
|
593
|
+
object: 'inline';
|
|
594
|
+
type: 'expression';
|
|
595
|
+
key?: string;
|
|
596
|
+
data: {
|
|
597
|
+
expression: string;
|
|
598
|
+
};
|
|
599
|
+
isVoid: true;
|
|
600
|
+
}
|
|
583
601
|
export interface DocumentInlineMath {
|
|
584
602
|
object: 'inline';
|
|
585
603
|
type: 'inline-math';
|
|
@@ -597,7 +615,7 @@ export interface DocumentBlockParagraph {
|
|
|
597
615
|
isVoid?: false;
|
|
598
616
|
data?: object;
|
|
599
617
|
}
|
|
600
|
-
export type DocumentInline = DocumentInlineLink | DocumentInlineEmoji | DocumentInlineMath | DocumentInlineImage | DocumentInlineAnnotation | DocumentInlineMention | DocumentInlineButton;
|
|
618
|
+
export type DocumentInline = DocumentInlineLink | DocumentInlineEmoji | DocumentInlineIcon | DocumentInlineExpression | DocumentInlineMath | DocumentInlineImage | DocumentInlineAnnotation | DocumentInlineMention | DocumentInlineButton;
|
|
601
619
|
export interface DocumentBlockHeading {
|
|
602
620
|
object: 'block';
|
|
603
621
|
type: 'heading-1' | 'heading-2' | 'heading-3';
|
|
@@ -631,7 +649,7 @@ export interface DocumentBlockCodeLine {
|
|
|
631
649
|
object: 'block';
|
|
632
650
|
type: 'code-line';
|
|
633
651
|
key?: string;
|
|
634
|
-
nodes: (DocumentText | DocumentInlineAnnotation)[];
|
|
652
|
+
nodes: (DocumentText | DocumentInlineAnnotation | DocumentInlineExpression)[];
|
|
635
653
|
data: {
|
|
636
654
|
highlighted?: boolean;
|
|
637
655
|
};
|
|
@@ -1177,6 +1195,7 @@ export type RevisionPageDocument = RevisionPageBase & Document & {
|
|
|
1177
1195
|
git?: GitSyncBlob;
|
|
1178
1196
|
layout: RevisionPageLayoutOptions;
|
|
1179
1197
|
cover?: RevisionPageDocumentCover;
|
|
1198
|
+
variables?: Variables;
|
|
1180
1199
|
/**
|
|
1181
1200
|
* If true, the page is not displayed in the navigation, while still being accessible.
|
|
1182
1201
|
* @default false
|
|
@@ -1377,9 +1396,14 @@ export interface RevisionPageDocumentCover {
|
|
|
1377
1396
|
ref?: ContentRefFile | ContentRefURL;
|
|
1378
1397
|
/** Content reference pointing to the source image for dark mode. */
|
|
1379
1398
|
refDark?: ContentRefFile | ContentRefURL;
|
|
1380
|
-
/**
|
|
1399
|
+
/**
|
|
1400
|
+
* Vertical position of the cover image.
|
|
1401
|
+
* @default 0
|
|
1402
|
+
*/
|
|
1381
1403
|
yPos: number;
|
|
1382
1404
|
}
|
|
1405
|
+
export type VariableValue = string | number | boolean;
|
|
1406
|
+
export type Variables = Record<string, VariableValue>;
|
|
1383
1407
|
/** Parameters for an OpenAPI computed document */
|
|
1384
1408
|
export type ComputedContentSourceDocumentOpenAPI = ComputedContentSourceOpenAPIBase & {
|
|
1385
1409
|
props: {
|
|
@@ -1464,6 +1488,7 @@ export interface RevisionBase {
|
|
|
1464
1488
|
pages: RevisionPage[];
|
|
1465
1489
|
files: RevisionFile[];
|
|
1466
1490
|
reusableContents: RevisionReusableContent[];
|
|
1491
|
+
variables?: Variables;
|
|
1467
1492
|
/** When the revision was created. */
|
|
1468
1493
|
createdAt: Timestamp;
|
|
1469
1494
|
/** Metadata about a potential associated git commit. */
|
|
@@ -2208,14 +2233,9 @@ export interface ChangeAttributeRevisionPageLayout {
|
|
|
2208
2233
|
before?: RevisionPageLayout;
|
|
2209
2234
|
after?: RevisionPageLayout;
|
|
2210
2235
|
}
|
|
2211
|
-
export
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
value: CustomFieldValue;
|
|
2215
|
-
}>;
|
|
2216
|
-
after?: Record<string, {
|
|
2217
|
-
value: CustomFieldValue;
|
|
2218
|
-
}>;
|
|
2236
|
+
export interface ChangeAttributeVariables {
|
|
2237
|
+
before?: Variables;
|
|
2238
|
+
after?: Variables;
|
|
2219
2239
|
}
|
|
2220
2240
|
export interface RevisionPageDocumentChangeAttributes {
|
|
2221
2241
|
title?: ChangeAttributeString;
|
|
@@ -2225,13 +2245,12 @@ export interface RevisionPageDocumentChangeAttributes {
|
|
|
2225
2245
|
cover?: ChangeAttributeRevisionPageDocumentCover;
|
|
2226
2246
|
emoji?: ChangeAttributeString;
|
|
2227
2247
|
layout?: ChangeAttributeRevisionPageLayout;
|
|
2228
|
-
|
|
2248
|
+
variables?: ChangeAttributeVariables;
|
|
2229
2249
|
}
|
|
2230
2250
|
export interface RevisionPageGroupChangeAttributes {
|
|
2231
2251
|
title?: ChangeAttributeString;
|
|
2232
2252
|
emoji?: ChangeAttributeString;
|
|
2233
2253
|
slug?: ChangeAttributeString;
|
|
2234
|
-
customFields?: ChangeAttributeCustomFields;
|
|
2235
2254
|
}
|
|
2236
2255
|
export interface ChangeAttributeContentReference {
|
|
2237
2256
|
/** A relative reference to content in GitBook. */
|
|
@@ -2243,7 +2262,6 @@ export interface RevisionPageLinkChangeAttributes {
|
|
|
2243
2262
|
title?: ChangeAttributeString;
|
|
2244
2263
|
emoji?: ChangeAttributeString;
|
|
2245
2264
|
target?: ChangeAttributeContentReference;
|
|
2246
|
-
customFields?: ChangeAttributeCustomFields;
|
|
2247
2265
|
}
|
|
2248
2266
|
export interface RevisionSemanticChangePageEdited {
|
|
2249
2267
|
type: 'page_edited';
|
|
@@ -2300,9 +2318,13 @@ export interface RevisionSemanticChangeFileDeleted {
|
|
|
2300
2318
|
type: 'file_deleted';
|
|
2301
2319
|
file: ChangedRevisionFile;
|
|
2302
2320
|
}
|
|
2303
|
-
export interface
|
|
2304
|
-
|
|
2305
|
-
|
|
2321
|
+
export interface ChangeAttributeVariable {
|
|
2322
|
+
before?: VariableValue;
|
|
2323
|
+
after?: VariableValue;
|
|
2324
|
+
}
|
|
2325
|
+
export interface RevisionSemanticChangeVariablesEdited {
|
|
2326
|
+
type: 'variables_edited';
|
|
2327
|
+
variables: Record<string, ChangeAttributeVariable>;
|
|
2306
2328
|
}
|
|
2307
2329
|
export interface ChangedRevisionReusableContent {
|
|
2308
2330
|
id: string;
|
|
@@ -2326,7 +2348,7 @@ export interface RevisionSemanticChangeReusableContentEdited {
|
|
|
2326
2348
|
reusableContent: ChangedRevisionReusableContent;
|
|
2327
2349
|
attributes: RevisionReusableContentChangeAttributes;
|
|
2328
2350
|
}
|
|
2329
|
-
export type RevisionSemanticChange = RevisionSemanticChangePageCreated | RevisionSemanticChangePageEdited | RevisionSemanticChangePageDeleted | RevisionSemanticChangePageMoved | RevisionSemanticChangeFileCreated | RevisionSemanticChangeFileEdited | RevisionSemanticChangeFileDeleted |
|
|
2351
|
+
export type RevisionSemanticChange = RevisionSemanticChangePageCreated | RevisionSemanticChangePageEdited | RevisionSemanticChangePageDeleted | RevisionSemanticChangePageMoved | RevisionSemanticChangeFileCreated | RevisionSemanticChangeFileEdited | RevisionSemanticChangeFileDeleted | RevisionSemanticChangeVariablesEdited | RevisionSemanticChangeReusableContentCreated | RevisionSemanticChangeReusableContentDeleted | RevisionSemanticChangeReusableContentEdited;
|
|
2330
2352
|
export interface RevisionSemanticChanges {
|
|
2331
2353
|
changes: RevisionSemanticChange[];
|
|
2332
2354
|
/** How many changes were omitted because above the result limit */
|
|
@@ -2614,67 +2636,6 @@ export interface SpaceIntegrationScript {
|
|
|
2614
2636
|
/** If true, the script will potentially load use cookies and visitors should be aware. */
|
|
2615
2637
|
cookies: boolean;
|
|
2616
2638
|
}
|
|
2617
|
-
/**
|
|
2618
|
-
* @minLength 1
|
|
2619
|
-
* @maxLength 50
|
|
2620
|
-
* @pattern ^[a-z_\-0-9]+$
|
|
2621
|
-
*/
|
|
2622
|
-
export type CustomFieldName = string;
|
|
2623
|
-
/** @maxLength 100 */
|
|
2624
|
-
export type CustomFieldTitle = string;
|
|
2625
|
-
/** @maxLength 200 */
|
|
2626
|
-
export type CustomFieldDescription = string;
|
|
2627
|
-
export declare enum CustomFieldType {
|
|
2628
|
-
Text = "text",
|
|
2629
|
-
Number = "number",
|
|
2630
|
-
Boolean = "boolean",
|
|
2631
|
-
Tags = "tags",
|
|
2632
|
-
SelectMulti = "select:multi",
|
|
2633
|
-
SelectSingle = "select:single"
|
|
2634
|
-
}
|
|
2635
|
-
/** @maxLength 100 */
|
|
2636
|
-
export type CustomFieldPlaceholder = string;
|
|
2637
|
-
/**
|
|
2638
|
-
* @maxItems 50
|
|
2639
|
-
* @minItems 1
|
|
2640
|
-
*/
|
|
2641
|
-
export type CustomFieldOptions = string[];
|
|
2642
|
-
/** Custom field */
|
|
2643
|
-
export interface CustomField {
|
|
2644
|
-
id: string;
|
|
2645
|
-
name: CustomFieldName;
|
|
2646
|
-
title: CustomFieldTitle;
|
|
2647
|
-
description: CustomFieldDescription;
|
|
2648
|
-
type: CustomFieldType;
|
|
2649
|
-
placeholder: CustomFieldPlaceholder;
|
|
2650
|
-
options?: CustomFieldOptions;
|
|
2651
|
-
createdAt: Timestamp;
|
|
2652
|
-
updatedAt: Timestamp;
|
|
2653
|
-
/** URLs associated with the object */
|
|
2654
|
-
urls: {
|
|
2655
|
-
/**
|
|
2656
|
-
* URL of the custom field in the API
|
|
2657
|
-
* @format uri
|
|
2658
|
-
*/
|
|
2659
|
-
location: string;
|
|
2660
|
-
};
|
|
2661
|
-
permissions?: {
|
|
2662
|
-
/** Whether the user can view the object */
|
|
2663
|
-
view: boolean;
|
|
2664
|
-
/** Whether the user can edit the object */
|
|
2665
|
-
edit: boolean;
|
|
2666
|
-
};
|
|
2667
|
-
}
|
|
2668
|
-
export type CustomFieldValues = {
|
|
2669
|
-
/** Custom field */
|
|
2670
|
-
customField: CustomField;
|
|
2671
|
-
value?: CustomFieldValue;
|
|
2672
|
-
}[];
|
|
2673
|
-
export interface UpdateCustomFieldValues {
|
|
2674
|
-
values: Record<string, {
|
|
2675
|
-
value: CustomFieldValue;
|
|
2676
|
-
}>;
|
|
2677
|
-
}
|
|
2678
2639
|
/** Secrets stored on the integration and passed at runtime. */
|
|
2679
2640
|
export type IntegrationSecrets = Record<string, string>;
|
|
2680
2641
|
export interface PublishIntegration {
|
|
@@ -3216,6 +3177,36 @@ export declare enum SiteAgentsContext {
|
|
|
3216
3177
|
Excluded = "excluded",
|
|
3217
3178
|
Included = "included"
|
|
3218
3179
|
}
|
|
3180
|
+
/** The site feature identifier */
|
|
3181
|
+
export declare enum SiteFeatureKey {
|
|
3182
|
+
SitesAdaptiveContent = "sites-adaptive-content",
|
|
3183
|
+
SitesAdvancedCustomization = "sites-advanced-customization",
|
|
3184
|
+
SitesAdvancedInsights = "sites-advanced-insights",
|
|
3185
|
+
SitesAds = "sites-ads",
|
|
3186
|
+
SitesAiSearch = "sites-ai-search",
|
|
3187
|
+
SitesApiPlayground = "sites-api-playground",
|
|
3188
|
+
SitesBasicCustomization = "sites-basic-customization",
|
|
3189
|
+
SitesCustomDomain = "sites-custom-domain",
|
|
3190
|
+
SitesCustomFonts = "sites-custom-fonts",
|
|
3191
|
+
SitesCustomSubdirectory = "sites-custom-subdirectory",
|
|
3192
|
+
SitesFullTextSearch = "sites-full-text-search",
|
|
3193
|
+
SitesMultivariantSite = "sites-multivariant-site",
|
|
3194
|
+
SitesNoCustomDomain = "sites-no-custom-domain",
|
|
3195
|
+
SitesPageFeedback = "sites-page-feedback",
|
|
3196
|
+
SitesPageTrafficInsights = "sites-page-traffic-insights",
|
|
3197
|
+
SitesPdfExport = "sites-pdf-export",
|
|
3198
|
+
SitesPreviewDeployments = "sites-preview-deployments",
|
|
3199
|
+
SitesPublicVisibility = "sites-public-visibility",
|
|
3200
|
+
SitesRedirects = "sites-redirects",
|
|
3201
|
+
SitesSearchInsights = "sites-search-insights",
|
|
3202
|
+
SitesSections = "sites-sections",
|
|
3203
|
+
SitesSeo = "sites-seo",
|
|
3204
|
+
SitesShareLinks = "sites-share-links",
|
|
3205
|
+
SitesUnlistedVisibility = "sites-unlisted-visibility",
|
|
3206
|
+
SitesUserContribution = "sites-user-contribution",
|
|
3207
|
+
SitesVisitorAuthentication = "sites-visitor-authentication",
|
|
3208
|
+
SitesVisitors = "sites-visitors"
|
|
3209
|
+
}
|
|
3219
3210
|
/** A list of all premium customizations. */
|
|
3220
3211
|
export declare enum SiteCustomizationFeature {
|
|
3221
3212
|
HeaderLogo = "header-logo",
|
|
@@ -3228,23 +3219,16 @@ export declare enum SiteCustomizationFeature {
|
|
|
3228
3219
|
SemanticColors = "semantic-colors"
|
|
3229
3220
|
}
|
|
3230
3221
|
/** A site feature and the plan it is available on. */
|
|
3231
|
-
export
|
|
3232
|
-
/** The feature identifier
|
|
3233
|
-
id:
|
|
3234
|
-
/** The type of the site */
|
|
3235
|
-
plan: SiteType;
|
|
3236
|
-
/** A frozen feature is still enabled but cannot be changed or modified. */
|
|
3237
|
-
frozen: boolean;
|
|
3238
|
-
} | {
|
|
3239
|
-
/** The feature identifier, always set to `sites-advanced-customization` */
|
|
3240
|
-
id: 'sites-advanced-customization';
|
|
3222
|
+
export interface SiteFeature {
|
|
3223
|
+
/** The site feature identifier */
|
|
3224
|
+
id: SiteFeatureKey;
|
|
3241
3225
|
/** The type of the site */
|
|
3242
3226
|
plan: SiteType;
|
|
3243
3227
|
/** A frozen feature is still enabled but cannot be changed or modified. */
|
|
3244
3228
|
frozen: boolean;
|
|
3245
|
-
/** A list of the actual advanced customizations used */
|
|
3246
|
-
customizations
|
|
3247
|
-
}
|
|
3229
|
+
/** A list of the actual advanced customizations used (only applicable for sites-advanced-customization) */
|
|
3230
|
+
customizations?: SiteCustomizationFeature[];
|
|
3231
|
+
}
|
|
3248
3232
|
export interface Site {
|
|
3249
3233
|
object: 'site';
|
|
3250
3234
|
/** Unique identifier of the site */
|
|
@@ -4616,12 +4600,6 @@ export type BillingOperationPreviewResponse = {
|
|
|
4616
4600
|
/** User must checkout to complete the operation. */
|
|
4617
4601
|
type: 'checkout';
|
|
4618
4602
|
invoice?: BillingInvoicePreview;
|
|
4619
|
-
} | {
|
|
4620
|
-
/** User needs to go through the legacy upgrade flow. */
|
|
4621
|
-
type: 'legacy-upgrade';
|
|
4622
|
-
/** The plan the user must upgrade to. */
|
|
4623
|
-
plan: BillingProduct;
|
|
4624
|
-
invoice?: BillingInvoicePreview;
|
|
4625
4603
|
};
|
|
4626
4604
|
export type SiteAdaptiveJSONSchemaClaimsProperties = {
|
|
4627
4605
|
type: 'boolean';
|
|
@@ -4660,6 +4638,13 @@ export interface SiteAdaptiveSchema {
|
|
|
4660
4638
|
/** When the adaptive schema was updated. */
|
|
4661
4639
|
updatedAt: Timestamp;
|
|
4662
4640
|
}
|
|
4641
|
+
/** A template condition based on the site visitor schema. */
|
|
4642
|
+
export interface SiteAdaptiveTemplateCondition {
|
|
4643
|
+
/** A short description of the suggested condition. */
|
|
4644
|
+
description: string;
|
|
4645
|
+
/** The suggested condition. */
|
|
4646
|
+
condition: string;
|
|
4647
|
+
}
|
|
4663
4648
|
/**
|
|
4664
4649
|
* The theme to apply to the site. Supercedes the old header preset themes.
|
|
4665
4650
|
* - `clean`: Modern theme featuring translucency and minimally-styled elements.
|
|
@@ -5007,6 +4992,24 @@ export interface ShareLink {
|
|
|
5007
4992
|
published?: string;
|
|
5008
4993
|
};
|
|
5009
4994
|
}
|
|
4995
|
+
export interface SiteStructureItemPointer {
|
|
4996
|
+
type: 'site-space' | 'site-section' | 'site-section-group';
|
|
4997
|
+
/** Unique identifier for the site structure item (site space, site section or site section group). */
|
|
4998
|
+
id: string;
|
|
4999
|
+
}
|
|
5000
|
+
/** Position at which to move the site structure item (site space, site section or site section group). */
|
|
5001
|
+
export interface SiteStructureItemMovePosition {
|
|
5002
|
+
before?: SiteStructureItemPointer;
|
|
5003
|
+
after?: SiteStructureItemPointer;
|
|
5004
|
+
}
|
|
5005
|
+
/**
|
|
5006
|
+
* Site Structure Item
|
|
5007
|
+
* A site structure item can be a site space, a site section or a site section group.
|
|
5008
|
+
* It is used to represent the structure of a site.
|
|
5009
|
+
*/
|
|
5010
|
+
export type SiteStructureItem = SiteSpace | SiteSection | SiteSectionGroup;
|
|
5011
|
+
/** The reason or feature that triggered the site upgrade */
|
|
5012
|
+
export type SiteUpgradeReason = SiteFeatureKey | 'settings' | 'publish-downgrade' | 'from-billing-modal' | 'payment-failed-modal';
|
|
5010
5013
|
export type SitePublishingAuth = (VisitorAuthCustomBackend | VisitorAuthIntegrationBackend) & {
|
|
5011
5014
|
/** Type of Object, always equals to "publishing-auth" */
|
|
5012
5015
|
object: 'publishing-auth';
|
|
@@ -6132,30 +6135,10 @@ export interface UpdateContentPublishingAuth {
|
|
|
6132
6135
|
*/
|
|
6133
6136
|
fallbackURL?: string;
|
|
6134
6137
|
}
|
|
6135
|
-
/** The context to send when triggering a content indexing. */
|
|
6136
|
-
export interface TriggerContentIndexingContext {
|
|
6137
|
-
/** The unique identifier of the Space to index. */
|
|
6138
|
-
spaceId: string;
|
|
6139
|
-
/** Whether to force a complete re-indexing of the Space. */
|
|
6140
|
-
force: boolean;
|
|
6141
|
-
}
|
|
6142
6138
|
/** Predefined GitBook user identifiers */
|
|
6143
6139
|
export declare enum GitBookUsers {
|
|
6144
6140
|
GitbookAgent = "gitbook:agent"
|
|
6145
6141
|
}
|
|
6146
|
-
export interface ContentPublishingAuth {
|
|
6147
|
-
/** Type of Object, always equals to "publishing-auth" */
|
|
6148
|
-
object: 'publishing-auth';
|
|
6149
|
-
/** Unique identifier for the content. */
|
|
6150
|
-
id: string;
|
|
6151
|
-
/** Private key used to sign JWT tokens. */
|
|
6152
|
-
privateKey: string;
|
|
6153
|
-
/**
|
|
6154
|
-
* URL to redirect to when the visitor auth secret is invalid.
|
|
6155
|
-
* @format uri
|
|
6156
|
-
*/
|
|
6157
|
-
fallbackURL?: string;
|
|
6158
|
-
}
|
|
6159
6142
|
export type ComputedContentSource = ComputedContentSourceDocument | ComputedContentSourceRevision;
|
|
6160
6143
|
export type InputPageBase = {
|
|
6161
6144
|
/**
|
|
@@ -6283,12 +6266,6 @@ export interface GitSyncOperation {
|
|
|
6283
6266
|
/** Error details, defined if state is `failure`. */
|
|
6284
6267
|
error?: string;
|
|
6285
6268
|
}
|
|
6286
|
-
export interface OrganizationTransferResponse {
|
|
6287
|
-
/** The unique id of the collection created in the target organization containing the content of the source organization. */
|
|
6288
|
-
collection: string;
|
|
6289
|
-
/** The new hostname if the source organization needed to change hostname. */
|
|
6290
|
-
newSourceHostname?: string;
|
|
6291
|
-
}
|
|
6292
6269
|
export type IntegrationEnvironmentSpaceInstallation = IntegrationContentInstallationBase & {
|
|
6293
6270
|
/** The space the integration is installed on. */
|
|
6294
6271
|
space: string;
|
|
@@ -6406,10 +6383,6 @@ export interface SpacePublishingCustomizationChannel {
|
|
|
6406
6383
|
channel: 'space-publishing-customization';
|
|
6407
6384
|
space: string;
|
|
6408
6385
|
}
|
|
6409
|
-
export interface SpaceCustomFieldsChannel {
|
|
6410
|
-
channel: 'space-customfields';
|
|
6411
|
-
space: string;
|
|
6412
|
-
}
|
|
6413
6386
|
export interface SpaceContentRefsChannel {
|
|
6414
6387
|
channel: 'space-content-refs';
|
|
6415
6388
|
space: string;
|
|
@@ -6418,10 +6391,6 @@ export interface SpaceIntegrationsChannel {
|
|
|
6418
6391
|
channel: 'space-integrations';
|
|
6419
6392
|
space: string;
|
|
6420
6393
|
}
|
|
6421
|
-
export interface OrganizationCustomFieldsChannel {
|
|
6422
|
-
channel: 'organization-customfields';
|
|
6423
|
-
organization: string;
|
|
6424
|
-
}
|
|
6425
6394
|
export interface UserAPITokensChannel {
|
|
6426
6395
|
channel: 'user-api-tokens';
|
|
6427
6396
|
user: string;
|
|
@@ -6699,7 +6668,7 @@ export interface AgentTasksChannel {
|
|
|
6699
6668
|
organization: string;
|
|
6700
6669
|
}
|
|
6701
6670
|
/** Channel to subscribe to for realtime updates. */
|
|
6702
|
-
export type SubscriptionChannel = SpaceInfoChannel | SpaceContentChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel |
|
|
6671
|
+
export type SubscriptionChannel = SpaceInfoChannel | SpaceContentChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel | SpaceContentRefsChannel | SpaceIntegrationsChannel | UserAPITokensChannel | UserOrganizationsChannel | UserProfileChannel | ChangeRequestChannel | ChangeRequestsChannel | ChangeRequestReviewsChannel | ChangeRequestContentRefsChannel | CollectionChannel | CollectionPublishingCustomizationChannel | OrganizationInfoChannel | OrganizationInviteLinksChannel | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationSAMLChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | OrganizationSitesChannel | OrganizationAIIndexationChannel | OrganizationOpenAPISpecsChannel | OrganizationTranslationSettingsChannel | OrganizationCustomFontsChannel | SpaceCommentsChannel | ChangeRequestCommentsChannel | CommentInfoChannel | CommentReplyInfoChannel | CommentRepliesChannel | IntegrationChannel | IntegrationInstallationChannel | IntegrationSpaceInstallationChannel | IntegrationSpaceInstallationsChannel | IntegrationSiteInstallationChannel | IntegrationSiteInstallationsChannel | PublishedContentSiteChannel | SiteRedirectsChannel | SiteChannel | SiteCustomizationChannel | SiteIntegrationsChannel | SiteSpaceChannel | SiteSpaceCustomizationChannel | SiteStructureChannel | SiteAdaptiveSchemaChannel | SitePublishingAuthChannel | SiteShareLinksChannel | SiteShareLinkChannel | SiteSectionChannel | CustomHostnameChannel | GitSyncSettingsChannel | GitSyncOperationChannel | OpenAPISpecChannel | SubdomainChannel | TranslationSettingsChannel | AgentTaskChannel | AgentTasksChannel;
|
|
6703
6672
|
export interface GitSyncOperationChannelData {
|
|
6704
6673
|
channel: 'space-gitsync-operation';
|
|
6705
6674
|
data: GitSyncOperation;
|
|
@@ -6739,75 +6708,6 @@ export interface APIChannelMutationData {
|
|
|
6739
6708
|
}
|
|
6740
6709
|
/** Data passed through a realtime channel */
|
|
6741
6710
|
export type SubscriptionChannelData = GitSyncOperationChannelData | SpaceContentRefsChannelData | ChangeRequestContentRefsChannelData | OrganizationAIIndexationChannelData | APIChannelMutationData;
|
|
6742
|
-
export interface CustomizationSettings {
|
|
6743
|
-
/** Inherit customization settings from the parent collection. */
|
|
6744
|
-
inherit: boolean;
|
|
6745
|
-
/** Title to use for the published content. If not defined, it'll fallback to the content title. */
|
|
6746
|
-
title?: string;
|
|
6747
|
-
styling: {
|
|
6748
|
-
primaryColor: CustomizationThemedColor;
|
|
6749
|
-
corners: CustomizationCorners;
|
|
6750
|
-
font: CustomizationDefaultFont;
|
|
6751
|
-
/** The background style has been deprecated and will be removed in a future release. Use the `tint` settings instead. */
|
|
6752
|
-
background?: CustomizationBackground;
|
|
6753
|
-
};
|
|
6754
|
-
internationalization: {
|
|
6755
|
-
/** Language for the UI element */
|
|
6756
|
-
locale: CustomizationLocale;
|
|
6757
|
-
/** Inherit locale from the parent collection. */
|
|
6758
|
-
inherit: boolean;
|
|
6759
|
-
};
|
|
6760
|
-
favicon: CustomizationFavicon;
|
|
6761
|
-
header: {
|
|
6762
|
-
/** The header preset to use for the site. This is a legacy setting and the site styling theme should be used instead. */
|
|
6763
|
-
preset: CustomizationHeaderPreset;
|
|
6764
|
-
logo?: CustomizationThemedURL;
|
|
6765
|
-
backgroundColor?: CustomizationThemedColor;
|
|
6766
|
-
linkColor?: CustomizationThemedColor;
|
|
6767
|
-
links: CustomizationHeaderItem[];
|
|
6768
|
-
};
|
|
6769
|
-
footer: {
|
|
6770
|
-
logo?: CustomizationThemedURL;
|
|
6771
|
-
groups: CustomizationFooterGroup[];
|
|
6772
|
-
/** @maxLength 300 */
|
|
6773
|
-
copyright?: string;
|
|
6774
|
-
};
|
|
6775
|
-
themes: {
|
|
6776
|
-
default: CustomizationThemeMode;
|
|
6777
|
-
/** Should the reader be able to switch between dark and light mode */
|
|
6778
|
-
toggeable: boolean;
|
|
6779
|
-
};
|
|
6780
|
-
pdf: {
|
|
6781
|
-
/** If true, PDF export is enabled for the published content. */
|
|
6782
|
-
enabled: boolean;
|
|
6783
|
-
};
|
|
6784
|
-
feedback: {
|
|
6785
|
-
/** If true, feedback gathering is enabled */
|
|
6786
|
-
enabled: boolean;
|
|
6787
|
-
};
|
|
6788
|
-
aiSearch: {
|
|
6789
|
-
/** If true, AI search is enabled */
|
|
6790
|
-
enabled: boolean;
|
|
6791
|
-
};
|
|
6792
|
-
git: {
|
|
6793
|
-
/** Whether the public content should show a link to edit the content on the git provider set up in the GitSync */
|
|
6794
|
-
showEditLink: boolean;
|
|
6795
|
-
};
|
|
6796
|
-
pagination: {
|
|
6797
|
-
/** Whether the pagination navigation should be displayed on pages. */
|
|
6798
|
-
enabled: boolean;
|
|
6799
|
-
};
|
|
6800
|
-
trademark: {
|
|
6801
|
-
/** Whether the GitBook trademark ("Powered by GitBook") should be visible */
|
|
6802
|
-
enabled: boolean;
|
|
6803
|
-
};
|
|
6804
|
-
privacyPolicy: {
|
|
6805
|
-
url?: URL;
|
|
6806
|
-
};
|
|
6807
|
-
socialPreview: {
|
|
6808
|
-
url?: URL;
|
|
6809
|
-
};
|
|
6810
|
-
}
|
|
6811
6711
|
/** The status of ads on the site */
|
|
6812
6712
|
export declare enum SiteAdsStatus {
|
|
6813
6713
|
Pending = "pending",
|
|
@@ -7546,6 +7446,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7546
7446
|
getPageById: (spaceId: string, pageId: string, query?: {
|
|
7547
7447
|
/** Output format for the content. */
|
|
7548
7448
|
format?: "document" | "markdown";
|
|
7449
|
+
/**
|
|
7450
|
+
* If `true` is passed, the document will be evaluated
|
|
7451
|
+
* @default false
|
|
7452
|
+
*/
|
|
7453
|
+
evaluated?: boolean;
|
|
7549
7454
|
/**
|
|
7550
7455
|
* If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
|
|
7551
7456
|
* @default true
|
|
@@ -7629,6 +7534,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7629
7534
|
getPageByPath: (spaceId: string, pagePath: string, query?: {
|
|
7630
7535
|
/** Output format for the content. */
|
|
7631
7536
|
format?: "document" | "markdown";
|
|
7537
|
+
/**
|
|
7538
|
+
* If `true` is passed, the document will be evaluated
|
|
7539
|
+
* @default false
|
|
7540
|
+
*/
|
|
7541
|
+
evaluated?: boolean;
|
|
7632
7542
|
/**
|
|
7633
7543
|
* If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
|
|
7634
7544
|
* @default true
|
|
@@ -7892,6 +7802,22 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7892
7802
|
/** The user requests that were sent. */
|
|
7893
7803
|
users?: ChangeRequestRequestedReviewer[];
|
|
7894
7804
|
}, any>>;
|
|
7805
|
+
/**
|
|
7806
|
+
* No description
|
|
7807
|
+
*
|
|
7808
|
+
* @tags change-request-reviewers
|
|
7809
|
+
* @name RemoveRequestedReviewerFromChangeRequest
|
|
7810
|
+
* @summary Remove a reviewer from a change request
|
|
7811
|
+
* @request DELETE:/spaces/{spaceId}/change-requests/{changeRequestId}/requested-reviewers/{userId}
|
|
7812
|
+
* @secure
|
|
7813
|
+
*/
|
|
7814
|
+
removeRequestedReviewerFromChangeRequest: (spaceId: string, changeRequestId: string, userId: string, params?: RequestParams) => Promise<HttpResponse<void, {
|
|
7815
|
+
error: {
|
|
7816
|
+
/** @format int32 */
|
|
7817
|
+
code: 404;
|
|
7818
|
+
message: string;
|
|
7819
|
+
};
|
|
7820
|
+
}>>;
|
|
7895
7821
|
/**
|
|
7896
7822
|
* No description
|
|
7897
7823
|
*
|
|
@@ -8234,6 +8160,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8234
8160
|
getPageInChangeRequestById: (spaceId: string, changeRequestId: string, pageId: string, query?: {
|
|
8235
8161
|
/** Output format for the content. */
|
|
8236
8162
|
format?: "document" | "markdown";
|
|
8163
|
+
/**
|
|
8164
|
+
* If `true` is passed, the document will be evaluated
|
|
8165
|
+
* @default false
|
|
8166
|
+
*/
|
|
8167
|
+
evaluated?: boolean;
|
|
8237
8168
|
/**
|
|
8238
8169
|
* If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
|
|
8239
8170
|
* @default true
|
|
@@ -8310,6 +8241,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8310
8241
|
getPageInChangeRequestByPath: (spaceId: string, changeRequestId: string, pagePath: string, query?: {
|
|
8311
8242
|
/** Output format for the content. */
|
|
8312
8243
|
format?: "document" | "markdown";
|
|
8244
|
+
/**
|
|
8245
|
+
* If `true` is passed, the document will be evaluated
|
|
8246
|
+
* @default false
|
|
8247
|
+
*/
|
|
8248
|
+
evaluated?: boolean;
|
|
8313
8249
|
/**
|
|
8314
8250
|
* If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
|
|
8315
8251
|
* @default true
|
|
@@ -8494,6 +8430,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8494
8430
|
getPageInRevisionById: (spaceId: string, revisionId: string, pageId: string, query?: {
|
|
8495
8431
|
/** Output format for the content. */
|
|
8496
8432
|
format?: "document" | "markdown";
|
|
8433
|
+
/**
|
|
8434
|
+
* If `true` is passed, the document will be evaluated
|
|
8435
|
+
* @default false
|
|
8436
|
+
*/
|
|
8437
|
+
evaluated?: boolean;
|
|
8497
8438
|
/**
|
|
8498
8439
|
* If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
|
|
8499
8440
|
* @default true
|
|
@@ -8505,6 +8446,22 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8505
8446
|
*/
|
|
8506
8447
|
computed?: boolean;
|
|
8507
8448
|
}, params?: RequestParams) => Promise<HttpResponse<RevisionPage, any>>;
|
|
8449
|
+
/**
|
|
8450
|
+
* No description
|
|
8451
|
+
*
|
|
8452
|
+
* @tags space-content
|
|
8453
|
+
* @name GetPageDocumentInRevisionById
|
|
8454
|
+
* @summary Get the document of a page in a revision
|
|
8455
|
+
* @request GET:/spaces/{spaceId}/revisions/{revisionId}/page/{pageId}/document
|
|
8456
|
+
* @secure
|
|
8457
|
+
*/
|
|
8458
|
+
getPageDocumentInRevisionById: (spaceId: string, revisionId: string, pageId: string, query?: {
|
|
8459
|
+
/**
|
|
8460
|
+
* If `true` is passed, the document will be evaluated
|
|
8461
|
+
* @default false
|
|
8462
|
+
*/
|
|
8463
|
+
evaluated?: boolean;
|
|
8464
|
+
}, params?: RequestParams) => Promise<HttpResponse<JSONDocument, any>>;
|
|
8508
8465
|
/**
|
|
8509
8466
|
* No description
|
|
8510
8467
|
*
|
|
@@ -8517,6 +8474,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8517
8474
|
getPageInRevisionByPath: (spaceId: string, revisionId: string, pagePath: string, query?: {
|
|
8518
8475
|
/** Output format for the content. */
|
|
8519
8476
|
format?: "document" | "markdown";
|
|
8477
|
+
/**
|
|
8478
|
+
* If `true` is passed, the document will be evaluated
|
|
8479
|
+
* @default false
|
|
8480
|
+
*/
|
|
8481
|
+
evaluated?: boolean;
|
|
8520
8482
|
/**
|
|
8521
8483
|
* If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
|
|
8522
8484
|
* @default true
|
|
@@ -8807,26 +8769,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8807
8769
|
message: string;
|
|
8808
8770
|
};
|
|
8809
8771
|
}>>;
|
|
8810
|
-
/**
|
|
8811
|
-
* No description
|
|
8812
|
-
*
|
|
8813
|
-
* @tags custom-fields
|
|
8814
|
-
* @name GetSpaceCustomFields
|
|
8815
|
-
* @summary Get a space custom fields
|
|
8816
|
-
* @request GET:/spaces/{spaceId}/custom-fields
|
|
8817
|
-
* @secure
|
|
8818
|
-
*/
|
|
8819
|
-
getSpaceCustomFields: (spaceId: string, params?: RequestParams) => Promise<HttpResponse<CustomFieldValues, any>>;
|
|
8820
|
-
/**
|
|
8821
|
-
* No description
|
|
8822
|
-
*
|
|
8823
|
-
* @tags custom-fields
|
|
8824
|
-
* @name UpdateSpaceCustomFields
|
|
8825
|
-
* @summary Update a space custom fields
|
|
8826
|
-
* @request PATCH:/spaces/{spaceId}/custom-fields
|
|
8827
|
-
* @secure
|
|
8828
|
-
*/
|
|
8829
|
-
updateSpaceCustomFields: (spaceId: string, data: UpdateCustomFieldValues, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
8830
8772
|
/**
|
|
8831
8773
|
* No description
|
|
8832
8774
|
*
|
|
@@ -9211,6 +9153,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9211
9153
|
owner?: string;
|
|
9212
9154
|
/** Filter the integrations by scope */
|
|
9213
9155
|
scope?: IntegrationScope;
|
|
9156
|
+
/** Filter the integrations by target */
|
|
9157
|
+
target?: IntegrationTarget;
|
|
9214
9158
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
9215
9159
|
items: Integration[];
|
|
9216
9160
|
}, any>>;
|
|
@@ -10267,85 +10211,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10267
10211
|
/** ID of a parent collection */
|
|
10268
10212
|
parent?: string;
|
|
10269
10213
|
}, params?: RequestParams) => Promise<HttpResponse<Collection, any>>;
|
|
10270
|
-
/**
|
|
10271
|
-
* No description
|
|
10272
|
-
*
|
|
10273
|
-
* @tags custom-fields
|
|
10274
|
-
* @name ListOrganizationCustomFields
|
|
10275
|
-
* @summary List all custom fields
|
|
10276
|
-
* @request GET:/orgs/{organizationId}/custom-fields
|
|
10277
|
-
* @secure
|
|
10278
|
-
*/
|
|
10279
|
-
listOrganizationCustomFields: (organizationId: string, query?: {
|
|
10280
|
-
/** Identifier of the page results to fetch. */
|
|
10281
|
-
page?: string;
|
|
10282
|
-
/**
|
|
10283
|
-
* The number of results per page
|
|
10284
|
-
* @min 0
|
|
10285
|
-
* @max 1000
|
|
10286
|
-
*/
|
|
10287
|
-
limit?: number;
|
|
10288
|
-
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
10289
|
-
items: CustomField[];
|
|
10290
|
-
}, any>>;
|
|
10291
|
-
/**
|
|
10292
|
-
* No description
|
|
10293
|
-
*
|
|
10294
|
-
* @tags custom-fields
|
|
10295
|
-
* @name CreateOrganizationCustomField
|
|
10296
|
-
* @summary Create a custom field
|
|
10297
|
-
* @request POST:/orgs/{organizationId}/custom-fields
|
|
10298
|
-
* @secure
|
|
10299
|
-
*/
|
|
10300
|
-
createOrganizationCustomField: (organizationId: string, data: {
|
|
10301
|
-
name: CustomFieldName;
|
|
10302
|
-
type: CustomFieldType;
|
|
10303
|
-
title?: CustomFieldTitle;
|
|
10304
|
-
description?: CustomFieldDescription;
|
|
10305
|
-
placeholder?: CustomFieldPlaceholder;
|
|
10306
|
-
options?: CustomFieldOptions;
|
|
10307
|
-
}, params?: RequestParams) => Promise<HttpResponse<CustomField, any>>;
|
|
10308
|
-
/**
|
|
10309
|
-
* No description
|
|
10310
|
-
*
|
|
10311
|
-
* @tags custom-fields
|
|
10312
|
-
* @name GetOrganizationCustomFieldByName
|
|
10313
|
-
* @summary Get a custom field by its name
|
|
10314
|
-
* @request GET:/orgs/{organizationId}/custom-fields/{fieldName}
|
|
10315
|
-
* @secure
|
|
10316
|
-
*/
|
|
10317
|
-
getOrganizationCustomFieldByName: (organizationId: string, fieldName: string, params?: RequestParams) => Promise<HttpResponse<CustomField, {
|
|
10318
|
-
error: {
|
|
10319
|
-
/** @format int32 */
|
|
10320
|
-
code: 404;
|
|
10321
|
-
message: string;
|
|
10322
|
-
};
|
|
10323
|
-
}>>;
|
|
10324
|
-
/**
|
|
10325
|
-
* No description
|
|
10326
|
-
*
|
|
10327
|
-
* @tags custom-fields
|
|
10328
|
-
* @name UpdateOrganizationCustomField
|
|
10329
|
-
* @summary Update a custom field
|
|
10330
|
-
* @request PATCH:/orgs/{organizationId}/custom-fields/{fieldName}
|
|
10331
|
-
* @secure
|
|
10332
|
-
*/
|
|
10333
|
-
updateOrganizationCustomField: (organizationId: string, fieldName: string, data: {
|
|
10334
|
-
title?: CustomFieldTitle;
|
|
10335
|
-
description?: CustomFieldDescription;
|
|
10336
|
-
placeholder?: CustomFieldPlaceholder;
|
|
10337
|
-
options?: CustomFieldOptions;
|
|
10338
|
-
}, params?: RequestParams) => Promise<HttpResponse<CustomField, any>>;
|
|
10339
|
-
/**
|
|
10340
|
-
* No description
|
|
10341
|
-
*
|
|
10342
|
-
* @tags custom-fields
|
|
10343
|
-
* @name DeleteOrganizationCustomField
|
|
10344
|
-
* @summary Delete a custom field
|
|
10345
|
-
* @request DELETE:/orgs/{organizationId}/custom-fields/{fieldName}
|
|
10346
|
-
* @secure
|
|
10347
|
-
*/
|
|
10348
|
-
deleteOrganizationCustomField: (organizationId: string, fieldName: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
10349
10214
|
/**
|
|
10350
10215
|
* No description
|
|
10351
10216
|
*
|
|
@@ -10382,6 +10247,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10382
10247
|
owner?: string;
|
|
10383
10248
|
/** Filter the integrations by scope */
|
|
10384
10249
|
scope?: IntegrationScope;
|
|
10250
|
+
/** Filter the integrations by target */
|
|
10251
|
+
target?: IntegrationTarget;
|
|
10385
10252
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
10386
10253
|
items: Integration[];
|
|
10387
10254
|
}, any>>;
|
|
@@ -11398,6 +11265,18 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11398
11265
|
message: string;
|
|
11399
11266
|
};
|
|
11400
11267
|
}>>;
|
|
11268
|
+
/**
|
|
11269
|
+
* No description
|
|
11270
|
+
*
|
|
11271
|
+
* @tags sites
|
|
11272
|
+
* @name ListSiteAdaptiveTemplateConditions
|
|
11273
|
+
* @summary List templates of conditions generated based on the site visitor schema that can be used in adaptive content expressions.
|
|
11274
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/adaptive-schema/template-conditions
|
|
11275
|
+
* @secure
|
|
11276
|
+
*/
|
|
11277
|
+
listSiteAdaptiveTemplateConditions: (organizationId: string, siteId: string, params?: RequestParams) => Promise<HttpResponse<{
|
|
11278
|
+
items: SiteAdaptiveTemplateCondition[];
|
|
11279
|
+
}, any>>;
|
|
11401
11280
|
/**
|
|
11402
11281
|
* @description Get the complete profile of a site in an organization to provide the published experience. It includes site, customization, structure, integration scripts etc.
|
|
11403
11282
|
*
|
|
@@ -11518,6 +11397,33 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11518
11397
|
message: string;
|
|
11519
11398
|
};
|
|
11520
11399
|
}>>;
|
|
11400
|
+
/**
|
|
11401
|
+
* No description
|
|
11402
|
+
*
|
|
11403
|
+
* @tags sites
|
|
11404
|
+
* @name SortSiteStructure
|
|
11405
|
+
* @summary Move a site space, site section or site section group to a new position in the site structure.
|
|
11406
|
+
* @request PATCH:/orgs/{organizationId}/sites/{siteId}/structure/sort
|
|
11407
|
+
* @secure
|
|
11408
|
+
*/
|
|
11409
|
+
sortSiteStructure: (organizationId: string, siteId: string, data: {
|
|
11410
|
+
/** pointer to the item (site space, site section or site section group) being moved. */
|
|
11411
|
+
item: SiteStructureItemPointer;
|
|
11412
|
+
/** The position to move the item to. When not provided the item is moved to the end of the site structure. */
|
|
11413
|
+
position: SiteStructureItemMovePosition;
|
|
11414
|
+
}, params?: RequestParams) => Promise<HttpResponse<SiteStructureItem, Error | {
|
|
11415
|
+
error: {
|
|
11416
|
+
/** @format int32 */
|
|
11417
|
+
code: 400;
|
|
11418
|
+
message: string;
|
|
11419
|
+
};
|
|
11420
|
+
} | {
|
|
11421
|
+
error: {
|
|
11422
|
+
/** @format int32 */
|
|
11423
|
+
code: 404;
|
|
11424
|
+
message: string;
|
|
11425
|
+
};
|
|
11426
|
+
}>>;
|
|
11521
11427
|
/**
|
|
11522
11428
|
* No description
|
|
11523
11429
|
*
|
|
@@ -11795,11 +11701,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11795
11701
|
addSectionToSite: (organizationId: string, siteId: string, data: {
|
|
11796
11702
|
/** ID of the space to be added to the section as a site space variant */
|
|
11797
11703
|
spaceId: string;
|
|
11798
|
-
|
|
11799
|
-
|
|
11800
|
-
* @maxLength 64
|
|
11801
|
-
*/
|
|
11802
|
-
title?: string;
|
|
11704
|
+
title?: SiteSectionTitle | null;
|
|
11705
|
+
icon?: Icon | null;
|
|
11803
11706
|
}, params?: RequestParams) => Promise<HttpResponse<SiteSection, any>>;
|
|
11804
11707
|
/**
|
|
11805
11708
|
* No description
|
|
@@ -11948,6 +11851,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11948
11851
|
path?: SiteSpacePath;
|
|
11949
11852
|
/** Conditional expression used to evaluate whether the site space should be shown to the site's visitor (should evaluate to a boolean). If not set, the condition will remain unchanged. If set to null, the condition will be removed. */
|
|
11950
11853
|
condition?: Condition | null;
|
|
11854
|
+
/** The content that this site space points to. If not set, the space will remain unchanged. */
|
|
11855
|
+
spaceId?: string;
|
|
11951
11856
|
}, params?: RequestParams) => Promise<HttpResponse<SiteSpace, any>>;
|
|
11952
11857
|
/**
|
|
11953
11858
|
* No description
|
|
@@ -12125,8 +12030,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
12125
12030
|
*
|
|
12126
12031
|
* @tags site-section-groups
|
|
12127
12032
|
* @name MoveSiteSectionGroup
|
|
12128
|
-
* @summary Move a site section group to a new position
|
|
12033
|
+
* @summary Move a site section group to a new position. (Deprecated) use sortSiteStructure instead.
|
|
12129
12034
|
* @request POST:/orgs/{organizationId}/sites/{siteId}/section-groups/{siteSectionGroupId}/move
|
|
12035
|
+
* @deprecated
|
|
12130
12036
|
* @secure
|
|
12131
12037
|
*/
|
|
12132
12038
|
moveSiteSectionGroup: (organizationId: string, siteId: string, siteSectionGroupId: string, data: {
|
|
@@ -12150,8 +12056,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
12150
12056
|
*
|
|
12151
12057
|
* @tags site-sections
|
|
12152
12058
|
* @name MoveSiteSection
|
|
12153
|
-
* @summary Move a site section to a new position
|
|
12059
|
+
* @summary Move a site section to a new position. (Deprecated) use sortSiteStructure instead.
|
|
12154
12060
|
* @request POST:/orgs/{organizationId}/sites/{siteId}/sections/{siteSectionId}/move
|
|
12061
|
+
* @deprecated
|
|
12155
12062
|
* @secure
|
|
12156
12063
|
*/
|
|
12157
12064
|
moveSiteSection: (organizationId: string, siteId: string, siteSectionId: string, data: {
|
|
@@ -12175,8 +12082,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
12175
12082
|
*
|
|
12176
12083
|
* @tags site-spaces
|
|
12177
12084
|
* @name MoveSiteSpace
|
|
12178
|
-
* @summary Move a site space to a new position
|
|
12085
|
+
* @summary Move a site space to a new position. (Deprecated) use sortSiteStructure instead.
|
|
12179
12086
|
* @request POST:/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/move
|
|
12087
|
+
* @deprecated
|
|
12180
12088
|
* @secure
|
|
12181
12089
|
*/
|
|
12182
12090
|
moveSiteSpace: (organizationId: string, siteId: string, siteSpaceId: string, data: {
|