@gitbook/api 0.158.0 → 0.160.1
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 +480 -17
- package/dist/constants.d.ts +10 -2
- package/dist/index.cjs +199 -8
- package/dist/index.js +188 -8
- package/package.json +5 -1
- package/spec/openapi.json +1307 -14
- package/spec/openapi.yaml +841 -12
package/dist/client.d.ts
CHANGED
|
@@ -431,7 +431,10 @@ export interface ImportGitRepository {
|
|
|
431
431
|
url: string;
|
|
432
432
|
/** Git ref to import in the format "refs/heads/main" */
|
|
433
433
|
ref: string;
|
|
434
|
-
/**
|
|
434
|
+
/**
|
|
435
|
+
* Unique identifier to use to cache the Git repository across multiple operations.
|
|
436
|
+
* @deprecated
|
|
437
|
+
*/
|
|
435
438
|
repoCacheID?: string;
|
|
436
439
|
/** URL to use as a prefix for external file references. */
|
|
437
440
|
repoTreeURL?: string;
|
|
@@ -454,7 +457,10 @@ export interface ExportToGitRepository {
|
|
|
454
457
|
ref: string;
|
|
455
458
|
/** Message for the commit generated by the export */
|
|
456
459
|
commitMessage: string;
|
|
457
|
-
/**
|
|
460
|
+
/**
|
|
461
|
+
* Unique identifier to use to cache the Git repository across multiple operations.
|
|
462
|
+
* @deprecated
|
|
463
|
+
*/
|
|
458
464
|
repoCacheID?: string;
|
|
459
465
|
/** URL to use as a prefix for external file references. */
|
|
460
466
|
repoTreeURL?: string;
|
|
@@ -1089,7 +1095,9 @@ export interface DocumentBlockExpandable {
|
|
|
1089
1095
|
type: 'expandable';
|
|
1090
1096
|
key?: string;
|
|
1091
1097
|
isVoid: true;
|
|
1092
|
-
data:
|
|
1098
|
+
data: {
|
|
1099
|
+
defaultExpanded?: boolean;
|
|
1100
|
+
};
|
|
1093
1101
|
fragments: ((DocumentFragment & {
|
|
1094
1102
|
fragment: 'expandable-title';
|
|
1095
1103
|
type: 'expandable-title';
|
|
@@ -1308,6 +1316,13 @@ export interface DocumentBlockColumns {
|
|
|
1308
1316
|
nodes: DocumentBlockColumn[];
|
|
1309
1317
|
isVoid: false;
|
|
1310
1318
|
}
|
|
1319
|
+
export interface ContentRefTag {
|
|
1320
|
+
kind: 'tag';
|
|
1321
|
+
/** The slug of the tag, also used as the ID, and references the tags defined on a revision. */
|
|
1322
|
+
tag: string;
|
|
1323
|
+
/** The space in which the tag is defined. If undefined, the tag is assumed to be in the same space as the content reference. */
|
|
1324
|
+
space?: string;
|
|
1325
|
+
}
|
|
1311
1326
|
export interface DocumentBlockUpdate {
|
|
1312
1327
|
object: 'block';
|
|
1313
1328
|
type: 'update';
|
|
@@ -1315,7 +1330,8 @@ export interface DocumentBlockUpdate {
|
|
|
1315
1330
|
nodes: (DocumentBlocksEssentials | DocumentBlockContentRef | DocumentBlockCode | DocumentBlockEmbed | DocumentBlockFile | DocumentBlockImages | DocumentBlockDrawing | DocumentBlockHint | DocumentBlockQuote | DocumentBlockMath | DocumentBlockIntegration | DocumentBlockTabs | DocumentBlockExpandable)[];
|
|
1316
1331
|
data: {
|
|
1317
1332
|
date: Timestamp;
|
|
1318
|
-
tags
|
|
1333
|
+
/** Array of tags. Each tag is id'ed by its slug. */
|
|
1334
|
+
tags?: ContentRefTag[];
|
|
1319
1335
|
};
|
|
1320
1336
|
isVoid?: false;
|
|
1321
1337
|
}
|
|
@@ -1422,6 +1438,8 @@ export type RevisionPageDocument = RevisionPageBase & Document & {
|
|
|
1422
1438
|
noRobotsIndex?: boolean;
|
|
1423
1439
|
/** Meta links associated with the page. */
|
|
1424
1440
|
metaLinks?: RevisionPageMetaLinks;
|
|
1441
|
+
/** A list of all the tags added to this page */
|
|
1442
|
+
tags?: RevisionPageTag[];
|
|
1425
1443
|
} & ({
|
|
1426
1444
|
computed: ComputedContentSourceDocument;
|
|
1427
1445
|
/** Seed to use for the generation of IDs. */
|
|
@@ -1443,6 +1461,15 @@ export type RevisionPageLink = RevisionPageBase & {
|
|
|
1443
1461
|
*/
|
|
1444
1462
|
hidden?: boolean;
|
|
1445
1463
|
};
|
|
1464
|
+
/**
|
|
1465
|
+
* The visibility setting of the OpenAPI spec.
|
|
1466
|
+
* * `private`: The spec is not publicly available.
|
|
1467
|
+
* * `public`: The spec is available to anyone with a public link.
|
|
1468
|
+
*/
|
|
1469
|
+
export declare enum OpenAPISpecVisibility {
|
|
1470
|
+
Private = "private",
|
|
1471
|
+
Public = "public"
|
|
1472
|
+
}
|
|
1446
1473
|
export interface ComputedContentDependencyOpenAPI {
|
|
1447
1474
|
ref: ContentRefOpenAPI;
|
|
1448
1475
|
/** See `OpenAPI` schema component. */
|
|
@@ -1451,6 +1478,12 @@ export interface ComputedContentDependencyOpenAPI {
|
|
|
1451
1478
|
id: string;
|
|
1452
1479
|
slug: string;
|
|
1453
1480
|
lastVersion?: string;
|
|
1481
|
+
/**
|
|
1482
|
+
* The visibility setting of the OpenAPI spec.
|
|
1483
|
+
* * `private`: The spec is not publicly available.
|
|
1484
|
+
* * `public`: The spec is available to anyone with a public link.
|
|
1485
|
+
*/
|
|
1486
|
+
visibility?: OpenAPISpecVisibility;
|
|
1454
1487
|
} | null;
|
|
1455
1488
|
}
|
|
1456
1489
|
/** Generic parameters from an OpenAPI computed content source */
|
|
@@ -1594,6 +1627,12 @@ export interface RevisionPageMetaLinks {
|
|
|
1594
1627
|
canonical?: RevisionPageMetaLinkTarget;
|
|
1595
1628
|
alternates?: RevisionPageMetaLinkTarget[];
|
|
1596
1629
|
}
|
|
1630
|
+
/** A reference to a tag with optional primary flag for page-level tags. */
|
|
1631
|
+
export interface RevisionPageTag {
|
|
1632
|
+
tag: ContentRefTag;
|
|
1633
|
+
/** Whether this is the primary tag for display in table of contents. */
|
|
1634
|
+
primary?: boolean;
|
|
1635
|
+
}
|
|
1597
1636
|
/** Parameters for an OpenAPI computed document */
|
|
1598
1637
|
export type ComputedContentSourceDocumentOpenAPI = ComputedContentSourceOpenAPIBase & {
|
|
1599
1638
|
props: {
|
|
@@ -1664,6 +1703,13 @@ export type RevisionReusableContent = {
|
|
|
1664
1703
|
/** ID of the document with the content body. If undefined, the reusable content is empty. */
|
|
1665
1704
|
document?: string;
|
|
1666
1705
|
});
|
|
1706
|
+
/** A reusable tag that different types of content can be associated to (e.g. pages, update entries) */
|
|
1707
|
+
export interface RevisionTag {
|
|
1708
|
+
/** The slug identifier for the tag, immutable after creation. */
|
|
1709
|
+
slug: string;
|
|
1710
|
+
/** Display label for the tag. Can be renamed and differ from the slug. */
|
|
1711
|
+
label: string;
|
|
1712
|
+
}
|
|
1667
1713
|
export interface GitSyncCommit {
|
|
1668
1714
|
/** SHA for the commit */
|
|
1669
1715
|
oid: string;
|
|
@@ -1686,6 +1732,8 @@ export interface RevisionBase {
|
|
|
1686
1732
|
pages: RevisionPage[];
|
|
1687
1733
|
files: RevisionFile[];
|
|
1688
1734
|
reusableContents: RevisionReusableContent[];
|
|
1735
|
+
/** List of available tags within this revision */
|
|
1736
|
+
tags?: RevisionTag[];
|
|
1689
1737
|
variables?: Variables;
|
|
1690
1738
|
/** When the revision was created. */
|
|
1691
1739
|
createdAt: Timestamp;
|
|
@@ -2001,6 +2049,8 @@ export interface Organization {
|
|
|
2001
2049
|
permissions: {
|
|
2002
2050
|
/** Can the user view the organization. */
|
|
2003
2051
|
view: boolean;
|
|
2052
|
+
/** Can the user view the organization in the application. */
|
|
2053
|
+
access: boolean;
|
|
2004
2054
|
/** Can the user manage the title, members, etc. */
|
|
2005
2055
|
admin: boolean;
|
|
2006
2056
|
/** Is the user a team owner. */
|
|
@@ -2147,15 +2197,6 @@ export declare enum OpenAPISpecProcessingState {
|
|
|
2147
2197
|
Progress = "progress",
|
|
2148
2198
|
Complete = "complete"
|
|
2149
2199
|
}
|
|
2150
|
-
/**
|
|
2151
|
-
* The visibility setting of the OpenAPI spec.
|
|
2152
|
-
* * `private`: The spec is not publicly available.
|
|
2153
|
-
* * `public`: The spec is available to anyone with a public link.
|
|
2154
|
-
*/
|
|
2155
|
-
export declare enum OpenAPISpecVisibility {
|
|
2156
|
-
Private = "private",
|
|
2157
|
-
Public = "public"
|
|
2158
|
-
}
|
|
2159
2200
|
/** OpenAPI processing error code */
|
|
2160
2201
|
export declare enum OpenAPISpecProcessingErrorCode {
|
|
2161
2202
|
FETCH_TIMEOUT = "FETCH_TIMEOUT",
|
|
@@ -2638,7 +2679,27 @@ export interface RevisionSemanticChangeReusableContentEdited {
|
|
|
2638
2679
|
reusableContent: ChangedRevisionReusableContent;
|
|
2639
2680
|
attributes: RevisionReusableContentChangeAttributes;
|
|
2640
2681
|
}
|
|
2641
|
-
export
|
|
2682
|
+
export interface ChangedRevisionTag {
|
|
2683
|
+
slug: string;
|
|
2684
|
+
label: string;
|
|
2685
|
+
}
|
|
2686
|
+
export interface RevisionSemanticChangeTagCreated {
|
|
2687
|
+
type: 'tag_created';
|
|
2688
|
+
tag: ChangedRevisionTag;
|
|
2689
|
+
}
|
|
2690
|
+
export interface RevisionSemanticChangeTagDeleted {
|
|
2691
|
+
type: 'tag_deleted';
|
|
2692
|
+
tag: ChangedRevisionTag;
|
|
2693
|
+
}
|
|
2694
|
+
export interface RevisionTagChangeAttributes {
|
|
2695
|
+
label?: ChangeAttributeString;
|
|
2696
|
+
}
|
|
2697
|
+
export interface RevisionSemanticChangeTagEdited {
|
|
2698
|
+
type: 'tag_edited';
|
|
2699
|
+
tag: ChangedRevisionTag;
|
|
2700
|
+
attributes: RevisionTagChangeAttributes;
|
|
2701
|
+
}
|
|
2702
|
+
export type RevisionSemanticChange = RevisionSemanticChangePageCreated | RevisionSemanticChangePageEdited | RevisionSemanticChangePageDeleted | RevisionSemanticChangePageMoved | RevisionSemanticChangeFileCreated | RevisionSemanticChangeFileEdited | RevisionSemanticChangeFileDeleted | RevisionSemanticChangeVariablesEdited | RevisionSemanticChangeReusableContentCreated | RevisionSemanticChangeReusableContentDeleted | RevisionSemanticChangeReusableContentEdited | RevisionSemanticChangeTagCreated | RevisionSemanticChangeTagDeleted | RevisionSemanticChangeTagEdited;
|
|
2642
2703
|
export interface RevisionSemanticChanges {
|
|
2643
2704
|
/** The change request object that initiated the changes in the case of a merge revision. */
|
|
2644
2705
|
mergedFrom?: ChangeRequest;
|
|
@@ -5181,6 +5242,76 @@ export declare enum CustomizationIconsStyle {
|
|
|
5181
5242
|
Light = "light",
|
|
5182
5243
|
Thin = "thin"
|
|
5183
5244
|
}
|
|
5245
|
+
export declare enum CustomizationCodeTheme {
|
|
5246
|
+
DefaultLight = "default-light",
|
|
5247
|
+
DefaultDark = "default-dark",
|
|
5248
|
+
MonochromeLight = "monochrome-light",
|
|
5249
|
+
MonochromeDark = "monochrome-dark",
|
|
5250
|
+
Andromeeda = "andromeeda",
|
|
5251
|
+
AuroraX = "aurora-x",
|
|
5252
|
+
AyuDark = "ayu-dark",
|
|
5253
|
+
CatppuccinFrappe = "catppuccin-frappe",
|
|
5254
|
+
CatppuccinLatte = "catppuccin-latte",
|
|
5255
|
+
CatppuccinMacchiato = "catppuccin-macchiato",
|
|
5256
|
+
CatppuccinMocha = "catppuccin-mocha",
|
|
5257
|
+
DarkPlus = "dark-plus",
|
|
5258
|
+
Dracula = "dracula",
|
|
5259
|
+
DraculaSoft = "dracula-soft",
|
|
5260
|
+
EverforestDark = "everforest-dark",
|
|
5261
|
+
EverforestLight = "everforest-light",
|
|
5262
|
+
GithubDark = "github-dark",
|
|
5263
|
+
GithubDarkDefault = "github-dark-default",
|
|
5264
|
+
GithubDarkDimmed = "github-dark-dimmed",
|
|
5265
|
+
GithubDarkHighContrast = "github-dark-high-contrast",
|
|
5266
|
+
GithubLight = "github-light",
|
|
5267
|
+
GithubLightDefault = "github-light-default",
|
|
5268
|
+
GithubLightHighContrast = "github-light-high-contrast",
|
|
5269
|
+
GruvboxDarkHard = "gruvbox-dark-hard",
|
|
5270
|
+
GruvboxDarkMedium = "gruvbox-dark-medium",
|
|
5271
|
+
GruvboxDarkSoft = "gruvbox-dark-soft",
|
|
5272
|
+
GruvboxLightHard = "gruvbox-light-hard",
|
|
5273
|
+
GruvboxLightMedium = "gruvbox-light-medium",
|
|
5274
|
+
GruvboxLightSoft = "gruvbox-light-soft",
|
|
5275
|
+
Houston = "houston",
|
|
5276
|
+
KanagawaDragon = "kanagawa-dragon",
|
|
5277
|
+
KanagawaLotus = "kanagawa-lotus",
|
|
5278
|
+
KanagawaWave = "kanagawa-wave",
|
|
5279
|
+
Laserwave = "laserwave",
|
|
5280
|
+
LightPlus = "light-plus",
|
|
5281
|
+
MaterialTheme = "material-theme",
|
|
5282
|
+
MaterialThemeDarker = "material-theme-darker",
|
|
5283
|
+
MaterialThemeLighter = "material-theme-lighter",
|
|
5284
|
+
MaterialThemeOcean = "material-theme-ocean",
|
|
5285
|
+
MaterialThemePalenight = "material-theme-palenight",
|
|
5286
|
+
MinDark = "min-dark",
|
|
5287
|
+
MinLight = "min-light",
|
|
5288
|
+
Monokai = "monokai",
|
|
5289
|
+
NightOwl = "night-owl",
|
|
5290
|
+
Nord = "nord",
|
|
5291
|
+
OneDarkPro = "one-dark-pro",
|
|
5292
|
+
OneLight = "one-light",
|
|
5293
|
+
Plastic = "plastic",
|
|
5294
|
+
Poimandres = "poimandres",
|
|
5295
|
+
Red = "red",
|
|
5296
|
+
RosePine = "rose-pine",
|
|
5297
|
+
RosePineDawn = "rose-pine-dawn",
|
|
5298
|
+
RosePineMoon = "rose-pine-moon",
|
|
5299
|
+
SlackDark = "slack-dark",
|
|
5300
|
+
SlackOchin = "slack-ochin",
|
|
5301
|
+
SnazzyLight = "snazzy-light",
|
|
5302
|
+
SolarizedDark = "solarized-dark",
|
|
5303
|
+
SolarizedLight = "solarized-light",
|
|
5304
|
+
Synthwave84 = "synthwave-84",
|
|
5305
|
+
TokyoNight = "tokyo-night",
|
|
5306
|
+
Vesper = "vesper",
|
|
5307
|
+
VitesseBlack = "vitesse-black",
|
|
5308
|
+
VitesseDark = "vitesse-dark",
|
|
5309
|
+
VitesseLight = "vitesse-light"
|
|
5310
|
+
}
|
|
5311
|
+
export interface CustomizationThemedCodeTheme {
|
|
5312
|
+
light: CustomizationCodeTheme;
|
|
5313
|
+
dark: CustomizationCodeTheme;
|
|
5314
|
+
}
|
|
5184
5315
|
/**
|
|
5185
5316
|
* - `default`: No background, content sits directly against sidebar edge.
|
|
5186
5317
|
* - `filled`: Muted background color that extends to sidebar edges.
|
|
@@ -5375,6 +5506,10 @@ export interface SiteCustomizationSettings {
|
|
|
5375
5506
|
*/
|
|
5376
5507
|
background: CustomizationBackground;
|
|
5377
5508
|
icons: CustomizationIconsStyle;
|
|
5509
|
+
codeTheme: {
|
|
5510
|
+
default: CustomizationThemedCodeTheme;
|
|
5511
|
+
openapi: CustomizationThemedCodeTheme;
|
|
5512
|
+
};
|
|
5378
5513
|
sidebar: {
|
|
5379
5514
|
/**
|
|
5380
5515
|
* - `default`: No background, content sits directly against sidebar edge.
|
|
@@ -5602,6 +5737,166 @@ export type SiteSearchScope = {
|
|
|
5602
5737
|
/** Search in all sections and site spaces. This scope is wide and deep. */
|
|
5603
5738
|
mode: 'all';
|
|
5604
5739
|
};
|
|
5740
|
+
export declare enum ContextRecordType {
|
|
5741
|
+
Ticket = "ticket",
|
|
5742
|
+
Document = "document"
|
|
5743
|
+
}
|
|
5744
|
+
/** Integration source */
|
|
5745
|
+
export type ContextConnector = string | 'builtin:email' | 'builtin:api' | 'builtin:website';
|
|
5746
|
+
/**
|
|
5747
|
+
* Title for the context record
|
|
5748
|
+
* @minLength 1
|
|
5749
|
+
* @maxLength 256
|
|
5750
|
+
*/
|
|
5751
|
+
export type ContextRecordTitle = string;
|
|
5752
|
+
/**
|
|
5753
|
+
* Optional short description of the context record
|
|
5754
|
+
* @maxLength 512
|
|
5755
|
+
*/
|
|
5756
|
+
export type ContextRecordDescription = string;
|
|
5757
|
+
export interface ContextRecord {
|
|
5758
|
+
object: 'context-record';
|
|
5759
|
+
/** The ID of the record */
|
|
5760
|
+
id: string;
|
|
5761
|
+
/** Title for the context record */
|
|
5762
|
+
title: ContextRecordTitle;
|
|
5763
|
+
/** Optional short description of the context record */
|
|
5764
|
+
description?: ContextRecordDescription;
|
|
5765
|
+
type: ContextRecordType;
|
|
5766
|
+
createdAt: Timestamp;
|
|
5767
|
+
processedAt?: Timestamp;
|
|
5768
|
+
/** The connection ID associated with the record */
|
|
5769
|
+
connection: string;
|
|
5770
|
+
/** The connector type associated with the record */
|
|
5771
|
+
connector: ContextConnector;
|
|
5772
|
+
/** The associated topics of the record */
|
|
5773
|
+
topics?: string[];
|
|
5774
|
+
/** URLs associated with the record */
|
|
5775
|
+
urls: {
|
|
5776
|
+
/**
|
|
5777
|
+
* URL of the record in the API
|
|
5778
|
+
* @format uri
|
|
5779
|
+
*/
|
|
5780
|
+
location: string;
|
|
5781
|
+
/**
|
|
5782
|
+
* URL of the record in the source
|
|
5783
|
+
* @format uri
|
|
5784
|
+
*/
|
|
5785
|
+
source?: string;
|
|
5786
|
+
};
|
|
5787
|
+
}
|
|
5788
|
+
/** Input to ingest a new context record */
|
|
5789
|
+
export interface ContextRecordInput {
|
|
5790
|
+
/** Unique local identifier for the record */
|
|
5791
|
+
id: string;
|
|
5792
|
+
type: ContextRecordType;
|
|
5793
|
+
/** Title for the context record */
|
|
5794
|
+
title: ContextRecordTitle;
|
|
5795
|
+
/** Optional short description of the context record */
|
|
5796
|
+
description?: ContextRecordDescription;
|
|
5797
|
+
/** Body content of the record as markdown */
|
|
5798
|
+
body: string;
|
|
5799
|
+
/**
|
|
5800
|
+
* URL of the record
|
|
5801
|
+
* @format uri
|
|
5802
|
+
*/
|
|
5803
|
+
url?: string;
|
|
5804
|
+
metadata?: Record<string, string>;
|
|
5805
|
+
}
|
|
5806
|
+
/**
|
|
5807
|
+
* Optional label for the connection
|
|
5808
|
+
* @minLength 0
|
|
5809
|
+
* @maxLength 128
|
|
5810
|
+
*/
|
|
5811
|
+
export type ContextConnectionLabel = string;
|
|
5812
|
+
export declare enum ContextConnectionStatus {
|
|
5813
|
+
Pending = "pending",
|
|
5814
|
+
Syncing = "syncing",
|
|
5815
|
+
Succeeded = "succeeded",
|
|
5816
|
+
Failed = "failed"
|
|
5817
|
+
}
|
|
5818
|
+
export interface ContextUsageSettings {
|
|
5819
|
+
/** Whether to use context to propose change requests */
|
|
5820
|
+
changeRequests: boolean;
|
|
5821
|
+
/** Whether to expose records in search results */
|
|
5822
|
+
search: boolean;
|
|
5823
|
+
}
|
|
5824
|
+
export type ContextConnectorSetup = {
|
|
5825
|
+
connector: 'builtin:email' | 'builtin:api';
|
|
5826
|
+
} | {
|
|
5827
|
+
/** @pattern ^integration:[^:]+$ */
|
|
5828
|
+
connector: string;
|
|
5829
|
+
} | {
|
|
5830
|
+
connector: 'builtin:website';
|
|
5831
|
+
setupSettings: {
|
|
5832
|
+
/** @format uri */
|
|
5833
|
+
url: string;
|
|
5834
|
+
};
|
|
5835
|
+
};
|
|
5836
|
+
export type ContextConnection = {
|
|
5837
|
+
object: 'context-connection';
|
|
5838
|
+
/** The ID of the connection */
|
|
5839
|
+
id: string;
|
|
5840
|
+
createdAt: Timestamp;
|
|
5841
|
+
syncedAt?: Timestamp;
|
|
5842
|
+
/** Optional label for the connection */
|
|
5843
|
+
label?: ContextConnectionLabel;
|
|
5844
|
+
status: ContextConnectionStatus;
|
|
5845
|
+
/** Number of records ingested from this connection */
|
|
5846
|
+
records: number;
|
|
5847
|
+
/** Failure message when synchronization fails */
|
|
5848
|
+
failureMessage?: string;
|
|
5849
|
+
/** Parameters associated with the connection when it is an email connection */
|
|
5850
|
+
email?: {
|
|
5851
|
+
/**
|
|
5852
|
+
* Inbound email address for the connection
|
|
5853
|
+
* @format email
|
|
5854
|
+
*/
|
|
5855
|
+
ingestionAddress?: string;
|
|
5856
|
+
};
|
|
5857
|
+
usageSettings: ContextUsageSettings;
|
|
5858
|
+
/** URLs associated with the connection */
|
|
5859
|
+
urls: {
|
|
5860
|
+
/**
|
|
5861
|
+
* URL of the connection in the API
|
|
5862
|
+
* @format uri
|
|
5863
|
+
*/
|
|
5864
|
+
location: string;
|
|
5865
|
+
};
|
|
5866
|
+
} & ContextConnectorSetup;
|
|
5867
|
+
export interface ContextTopic {
|
|
5868
|
+
object: 'context-topic';
|
|
5869
|
+
/** The ID of the topic */
|
|
5870
|
+
id: string;
|
|
5871
|
+
/** The label of the topic */
|
|
5872
|
+
label: string;
|
|
5873
|
+
createdAt: Timestamp;
|
|
5874
|
+
updatedAt: Timestamp;
|
|
5875
|
+
/** Name of the icon */
|
|
5876
|
+
icon: Icon;
|
|
5877
|
+
summary: JSONDocument;
|
|
5878
|
+
usageSettings: ContextUsageSettings;
|
|
5879
|
+
/**
|
|
5880
|
+
* The weekly pulse of the records for the past 3 months
|
|
5881
|
+
* @maxItems 13
|
|
5882
|
+
* @minItems 13
|
|
5883
|
+
*/
|
|
5884
|
+
weeklyPulse: number[];
|
|
5885
|
+
connectors: Record<string, number>;
|
|
5886
|
+
/** The stats of the topic */
|
|
5887
|
+
stats: {
|
|
5888
|
+
/** The number of records in the topic */
|
|
5889
|
+
records: number;
|
|
5890
|
+
};
|
|
5891
|
+
/** URLs associated with the topic */
|
|
5892
|
+
urls: {
|
|
5893
|
+
/**
|
|
5894
|
+
* URL of the topic in the API
|
|
5895
|
+
* @format uri
|
|
5896
|
+
*/
|
|
5897
|
+
location: string;
|
|
5898
|
+
};
|
|
5899
|
+
}
|
|
5605
5900
|
export type SiteSpaceCustomizationSettings = SiteCustomizationSettings & {
|
|
5606
5901
|
/** Indicates whether the site customization settings have been overridden. */
|
|
5607
5902
|
hasOverrides: boolean;
|
|
@@ -7022,7 +7317,10 @@ export declare enum RevisionSemanticChangeType {
|
|
|
7022
7317
|
FileCreated = "file_created",
|
|
7023
7318
|
FileEdited = "file_edited",
|
|
7024
7319
|
FileDeleted = "file_deleted",
|
|
7025
|
-
CustomFieldsEdited = "custom_fields_edited"
|
|
7320
|
+
CustomFieldsEdited = "custom_fields_edited",
|
|
7321
|
+
TagCreated = "tag_created",
|
|
7322
|
+
TagDeleted = "tag_deleted",
|
|
7323
|
+
TagEdited = "tag_edited"
|
|
7026
7324
|
}
|
|
7027
7325
|
/**
|
|
7028
7326
|
* * `running`: The operation is still running
|
|
@@ -7426,6 +7724,11 @@ export interface SiteChannel {
|
|
|
7426
7724
|
channel: 'site';
|
|
7427
7725
|
site: string;
|
|
7428
7726
|
}
|
|
7727
|
+
/** Subscription channel for changes in site context. */
|
|
7728
|
+
export interface SiteContextChannel {
|
|
7729
|
+
channel: 'site-context';
|
|
7730
|
+
site: string;
|
|
7731
|
+
}
|
|
7429
7732
|
export interface SiteCustomizationChannel {
|
|
7430
7733
|
channel: 'site-customization';
|
|
7431
7734
|
site: string;
|
|
@@ -7511,7 +7814,7 @@ export interface ImportRunChannel {
|
|
|
7511
7814
|
runId: string;
|
|
7512
7815
|
}
|
|
7513
7816
|
/** Channel to subscribe to for realtime updates. */
|
|
7514
|
-
export type SubscriptionChannel = SpaceInfoChannel | SpaceContentChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel | SpaceContentRefsChannel | SpaceIntegrationsChannel | UserAPITokensChannel | UserOrganizationsChannel | UserProfileChannel | ChangeRequestChannel | ChangeRequestsChannel | ChangeRequestReviewsChannel | ChangeRequestContentRefsChannel | CollectionChannel | CollectionPublishingCustomizationChannel | OrganizationInfoChannel | OrganizationAgentDataChannel | OrganizationInviteLinksChannel | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationSAMLChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | OrganizationSitesChannel | OrganizationOpenAPISpecsChannel | OrganizationTranslationsChannel | OrganizationTranslationsGlossaryChannel | OrganizationCustomFontsChannel | OrganizationAgentInstructionsChannel | OrganizationChangeRequestsChannel | SpaceCommentsChannel | ChangeRequestCommentsChannel | CommentInfoChannel | CommentRepliesChannel | IntegrationChannel | IntegrationInstallationChannel | IntegrationSpaceInstallationChannel | IntegrationSpaceInstallationsChannel | IntegrationSiteInstallationChannel | IntegrationSiteInstallationsChannel | PublishedContentSiteChannel | SiteRedirectsChannel | SiteChannel | SiteCustomizationChannel | SiteIntegrationsChannel | SiteSpaceChannel | SiteSpaceCustomizationChannel | SiteStructureChannel | SiteAdaptiveSchemaChannel | SitePublishingAuthChannel | SiteShareLinksChannel | SiteShareLinkChannel | SiteMcpServersChannel | SiteMcpServerChannel | SiteSectionChannel | CustomHostnameChannel | GitSyncOperationChannel | OpenAPISpecChannel | SubdomainChannel | TranslationChannel | TranslationRunChannel | ImportRunChannel;
|
|
7817
|
+
export type SubscriptionChannel = SpaceInfoChannel | SpaceContentChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel | SpaceContentRefsChannel | SpaceIntegrationsChannel | UserAPITokensChannel | UserOrganizationsChannel | UserProfileChannel | ChangeRequestChannel | ChangeRequestsChannel | ChangeRequestReviewsChannel | ChangeRequestContentRefsChannel | CollectionChannel | CollectionPublishingCustomizationChannel | OrganizationInfoChannel | OrganizationAgentDataChannel | OrganizationInviteLinksChannel | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationSAMLChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | OrganizationSitesChannel | OrganizationOpenAPISpecsChannel | OrganizationTranslationsChannel | OrganizationTranslationsGlossaryChannel | OrganizationCustomFontsChannel | OrganizationAgentInstructionsChannel | OrganizationChangeRequestsChannel | SpaceCommentsChannel | ChangeRequestCommentsChannel | CommentInfoChannel | CommentRepliesChannel | IntegrationChannel | IntegrationInstallationChannel | IntegrationSpaceInstallationChannel | IntegrationSpaceInstallationsChannel | IntegrationSiteInstallationChannel | IntegrationSiteInstallationsChannel | PublishedContentSiteChannel | SiteRedirectsChannel | SiteChannel | SiteContextChannel | SiteCustomizationChannel | SiteIntegrationsChannel | SiteSpaceChannel | SiteSpaceCustomizationChannel | SiteStructureChannel | SiteAdaptiveSchemaChannel | SitePublishingAuthChannel | SiteShareLinksChannel | SiteShareLinkChannel | SiteMcpServersChannel | SiteMcpServerChannel | SiteSectionChannel | CustomHostnameChannel | GitSyncOperationChannel | OpenAPISpecChannel | SubdomainChannel | TranslationChannel | TranslationRunChannel | ImportRunChannel;
|
|
7515
7818
|
export interface TranslationRunChannelData {
|
|
7516
7819
|
channel: 'translation-run';
|
|
7517
7820
|
data: {
|
|
@@ -7757,7 +8060,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7757
8060
|
/**
|
|
7758
8061
|
* @description Returns details about the user associated with the authentication provided in the request's authorization header.
|
|
7759
8062
|
*
|
|
7760
|
-
* @tags users
|
|
8063
|
+
* @tags users, critical
|
|
7761
8064
|
* @name GetAuthenticatedUser
|
|
7762
8065
|
* @summary Get profile of authenticated user
|
|
7763
8066
|
* @request GET:/user
|
|
@@ -12045,6 +12348,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
12045
12348
|
* @max 1000
|
|
12046
12349
|
*/
|
|
12047
12350
|
limit?: number;
|
|
12351
|
+
/** Sort results by language key */
|
|
12352
|
+
orderBy?: TranslationLanguage;
|
|
12048
12353
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
12049
12354
|
items: GlossaryEntry[];
|
|
12050
12355
|
}, any>>;
|
|
@@ -12950,6 +13255,159 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
12950
13255
|
*/
|
|
12951
13256
|
spaceId?: string;
|
|
12952
13257
|
}, params?: RequestParams) => EventIterator<SearchAIRecommendedQuestionStream>;
|
|
13258
|
+
/**
|
|
13259
|
+
* No description
|
|
13260
|
+
*
|
|
13261
|
+
* @tags site-context
|
|
13262
|
+
* @name ListSiteContextRecords
|
|
13263
|
+
* @summary List all context records
|
|
13264
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/context-records
|
|
13265
|
+
* @secure
|
|
13266
|
+
*/
|
|
13267
|
+
listSiteContextRecords: (organizationId: string, siteId: string, query?: {
|
|
13268
|
+
/** Identifier of the page results to fetch. */
|
|
13269
|
+
page?: string;
|
|
13270
|
+
/**
|
|
13271
|
+
* The number of results per page
|
|
13272
|
+
* @min 0
|
|
13273
|
+
* @max 1000
|
|
13274
|
+
*/
|
|
13275
|
+
limit?: number;
|
|
13276
|
+
/** Filter context records by type. */
|
|
13277
|
+
type?: ContextRecordType;
|
|
13278
|
+
/** Filter context records by connector type. */
|
|
13279
|
+
connector?: ContextConnector;
|
|
13280
|
+
/** Filter context records by connection id. */
|
|
13281
|
+
connection?: string;
|
|
13282
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
13283
|
+
items: ContextRecord[];
|
|
13284
|
+
}, any>>;
|
|
13285
|
+
/**
|
|
13286
|
+
* No description
|
|
13287
|
+
*
|
|
13288
|
+
* @tags site-context
|
|
13289
|
+
* @name UpsertSiteContextRecords
|
|
13290
|
+
* @summary Create or update context records
|
|
13291
|
+
* @request PUT:/orgs/{organizationId}/sites/{siteId}/context-records
|
|
13292
|
+
* @secure
|
|
13293
|
+
*/
|
|
13294
|
+
upsertSiteContextRecords: (organizationId: string, siteId: string, data: ContextRecordInput[], params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
13295
|
+
/**
|
|
13296
|
+
* No description
|
|
13297
|
+
*
|
|
13298
|
+
* @tags site-context
|
|
13299
|
+
* @name ListSiteContextConnections
|
|
13300
|
+
* @summary List all context connections
|
|
13301
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/context-connections
|
|
13302
|
+
* @secure
|
|
13303
|
+
*/
|
|
13304
|
+
listSiteContextConnections: (organizationId: string, siteId: string, query?: {
|
|
13305
|
+
/** Identifier of the page results to fetch. */
|
|
13306
|
+
page?: string;
|
|
13307
|
+
/**
|
|
13308
|
+
* The number of results per page
|
|
13309
|
+
* @min 0
|
|
13310
|
+
* @max 1000
|
|
13311
|
+
*/
|
|
13312
|
+
limit?: number;
|
|
13313
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
13314
|
+
items: ContextConnection[];
|
|
13315
|
+
}, any>>;
|
|
13316
|
+
/**
|
|
13317
|
+
* No description
|
|
13318
|
+
*
|
|
13319
|
+
* @tags site-context
|
|
13320
|
+
* @name CreateSiteContextConnection
|
|
13321
|
+
* @summary Create a context connection
|
|
13322
|
+
* @request POST:/orgs/{organizationId}/sites/{siteId}/context-connections
|
|
13323
|
+
* @secure
|
|
13324
|
+
*/
|
|
13325
|
+
createSiteContextConnection: (organizationId: string, siteId: string, data: ContextConnectorSetup & {
|
|
13326
|
+
usageSettings?: ContextUsageSettings;
|
|
13327
|
+
}, params?: RequestParams) => Promise<HttpResponse<ContextConnection, any>>;
|
|
13328
|
+
/**
|
|
13329
|
+
* No description
|
|
13330
|
+
*
|
|
13331
|
+
* @tags site-context
|
|
13332
|
+
* @name GetSiteContextConnectionById
|
|
13333
|
+
* @summary Get a context connection
|
|
13334
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/context-connections/{siteContextConnectionId}
|
|
13335
|
+
* @secure
|
|
13336
|
+
*/
|
|
13337
|
+
getSiteContextConnectionById: (organizationId: string, siteId: string, siteContextConnectionId: string, params?: RequestParams) => Promise<HttpResponse<ContextConnection, any>>;
|
|
13338
|
+
/**
|
|
13339
|
+
* No description
|
|
13340
|
+
*
|
|
13341
|
+
* @tags site-context
|
|
13342
|
+
* @name UpdateSiteContextConnectionById
|
|
13343
|
+
* @summary Update a context connection
|
|
13344
|
+
* @request PATCH:/orgs/{organizationId}/sites/{siteId}/context-connections/{siteContextConnectionId}
|
|
13345
|
+
* @secure
|
|
13346
|
+
*/
|
|
13347
|
+
updateSiteContextConnectionById: (organizationId: string, siteId: string, siteContextConnectionId: string, data: ContextConnectorSetup | {
|
|
13348
|
+
usageSettings?: ContextUsageSettings;
|
|
13349
|
+
/** Optional label for the connection */
|
|
13350
|
+
label?: ContextConnectionLabel;
|
|
13351
|
+
}, params?: RequestParams) => Promise<HttpResponse<ContextConnection, any>>;
|
|
13352
|
+
/**
|
|
13353
|
+
* No description
|
|
13354
|
+
*
|
|
13355
|
+
* @tags site-context
|
|
13356
|
+
* @name SyncSiteContextConnection
|
|
13357
|
+
* @summary Trigger a sync for a context connection
|
|
13358
|
+
* @request POST:/orgs/{organizationId}/sites/{siteId}/context-connections/{siteContextConnectionId}/sync
|
|
13359
|
+
* @secure
|
|
13360
|
+
*/
|
|
13361
|
+
syncSiteContextConnection: (organizationId: string, siteId: string, siteContextConnectionId: string, params?: RequestParams) => Promise<HttpResponse<void, {
|
|
13362
|
+
error: {
|
|
13363
|
+
/** @format int32 */
|
|
13364
|
+
code: 400;
|
|
13365
|
+
message: string;
|
|
13366
|
+
};
|
|
13367
|
+
}>>;
|
|
13368
|
+
/**
|
|
13369
|
+
* No description
|
|
13370
|
+
*
|
|
13371
|
+
* @tags site-context
|
|
13372
|
+
* @name ListSiteContextTopics
|
|
13373
|
+
* @summary List all context topics
|
|
13374
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/context-topics
|
|
13375
|
+
* @secure
|
|
13376
|
+
*/
|
|
13377
|
+
listSiteContextTopics: (organizationId: string, siteId: string, query?: {
|
|
13378
|
+
/** Identifier of the page results to fetch. */
|
|
13379
|
+
page?: string;
|
|
13380
|
+
/**
|
|
13381
|
+
* The number of results per page
|
|
13382
|
+
* @min 0
|
|
13383
|
+
* @max 1000
|
|
13384
|
+
*/
|
|
13385
|
+
limit?: number;
|
|
13386
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
13387
|
+
items: ContextTopic[];
|
|
13388
|
+
}, any>>;
|
|
13389
|
+
/**
|
|
13390
|
+
* No description
|
|
13391
|
+
*
|
|
13392
|
+
* @tags site-context
|
|
13393
|
+
* @name GetSiteContextTopicById
|
|
13394
|
+
* @summary Get a context topic
|
|
13395
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/context-topics/{siteContextTopicId}
|
|
13396
|
+
* @secure
|
|
13397
|
+
*/
|
|
13398
|
+
getSiteContextTopicById: (organizationId: string, siteId: string, siteContextTopicId: string, params?: RequestParams) => Promise<HttpResponse<ContextTopic, any>>;
|
|
13399
|
+
/**
|
|
13400
|
+
* No description
|
|
13401
|
+
*
|
|
13402
|
+
* @tags site-context
|
|
13403
|
+
* @name UpdateSiteContextTopicById
|
|
13404
|
+
* @summary Update a context topic
|
|
13405
|
+
* @request PATCH:/orgs/{organizationId}/sites/{siteId}/context-topics/{siteContextTopicId}
|
|
13406
|
+
* @secure
|
|
13407
|
+
*/
|
|
13408
|
+
updateSiteContextTopicById: (organizationId: string, siteId: string, siteContextTopicId: string, data: {
|
|
13409
|
+
usageSettings: ContextUsageSettings;
|
|
13410
|
+
}, params?: RequestParams) => Promise<HttpResponse<ContextTopic, any>>;
|
|
12953
13411
|
/**
|
|
12954
13412
|
* No description
|
|
12955
13413
|
*
|
|
@@ -13046,6 +13504,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13046
13504
|
search?: CustomizationSearchStyle | null;
|
|
13047
13505
|
/** The style of background to use. Set to null to reset the override. */
|
|
13048
13506
|
background?: CustomizationBackground | null;
|
|
13507
|
+
/** The code theme to use. Set to null to reset the override. */
|
|
13508
|
+
codeTheme?: {
|
|
13509
|
+
default?: CustomizationThemedCodeTheme | null;
|
|
13510
|
+
openapi?: CustomizationThemedCodeTheme | null;
|
|
13511
|
+
};
|
|
13049
13512
|
};
|
|
13050
13513
|
/** @deprecated */
|
|
13051
13514
|
internationalization?: {
|