@gitbook/api 0.159.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 +401 -17
- package/dist/constants.d.ts +9 -2
- package/dist/index.cjs +127 -8
- package/dist/index.js +118 -8
- package/package.json +5 -1
- package/spec/openapi.json +1173 -14
- package/spec/openapi.yaml +734 -11
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;
|
|
@@ -5676,6 +5737,166 @@ export type SiteSearchScope = {
|
|
|
5676
5737
|
/** Search in all sections and site spaces. This scope is wide and deep. */
|
|
5677
5738
|
mode: 'all';
|
|
5678
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
|
+
}
|
|
5679
5900
|
export type SiteSpaceCustomizationSettings = SiteCustomizationSettings & {
|
|
5680
5901
|
/** Indicates whether the site customization settings have been overridden. */
|
|
5681
5902
|
hasOverrides: boolean;
|
|
@@ -7096,7 +7317,10 @@ export declare enum RevisionSemanticChangeType {
|
|
|
7096
7317
|
FileCreated = "file_created",
|
|
7097
7318
|
FileEdited = "file_edited",
|
|
7098
7319
|
FileDeleted = "file_deleted",
|
|
7099
|
-
CustomFieldsEdited = "custom_fields_edited"
|
|
7320
|
+
CustomFieldsEdited = "custom_fields_edited",
|
|
7321
|
+
TagCreated = "tag_created",
|
|
7322
|
+
TagDeleted = "tag_deleted",
|
|
7323
|
+
TagEdited = "tag_edited"
|
|
7100
7324
|
}
|
|
7101
7325
|
/**
|
|
7102
7326
|
* * `running`: The operation is still running
|
|
@@ -7500,6 +7724,11 @@ export interface SiteChannel {
|
|
|
7500
7724
|
channel: 'site';
|
|
7501
7725
|
site: string;
|
|
7502
7726
|
}
|
|
7727
|
+
/** Subscription channel for changes in site context. */
|
|
7728
|
+
export interface SiteContextChannel {
|
|
7729
|
+
channel: 'site-context';
|
|
7730
|
+
site: string;
|
|
7731
|
+
}
|
|
7503
7732
|
export interface SiteCustomizationChannel {
|
|
7504
7733
|
channel: 'site-customization';
|
|
7505
7734
|
site: string;
|
|
@@ -7585,7 +7814,7 @@ export interface ImportRunChannel {
|
|
|
7585
7814
|
runId: string;
|
|
7586
7815
|
}
|
|
7587
7816
|
/** Channel to subscribe to for realtime updates. */
|
|
7588
|
-
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;
|
|
7589
7818
|
export interface TranslationRunChannelData {
|
|
7590
7819
|
channel: 'translation-run';
|
|
7591
7820
|
data: {
|
|
@@ -7831,7 +8060,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7831
8060
|
/**
|
|
7832
8061
|
* @description Returns details about the user associated with the authentication provided in the request's authorization header.
|
|
7833
8062
|
*
|
|
7834
|
-
* @tags users
|
|
8063
|
+
* @tags users, critical
|
|
7835
8064
|
* @name GetAuthenticatedUser
|
|
7836
8065
|
* @summary Get profile of authenticated user
|
|
7837
8066
|
* @request GET:/user
|
|
@@ -12119,6 +12348,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
12119
12348
|
* @max 1000
|
|
12120
12349
|
*/
|
|
12121
12350
|
limit?: number;
|
|
12351
|
+
/** Sort results by language key */
|
|
12352
|
+
orderBy?: TranslationLanguage;
|
|
12122
12353
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
12123
12354
|
items: GlossaryEntry[];
|
|
12124
12355
|
}, any>>;
|
|
@@ -13024,6 +13255,159 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13024
13255
|
*/
|
|
13025
13256
|
spaceId?: string;
|
|
13026
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>>;
|
|
13027
13411
|
/**
|
|
13028
13412
|
* No description
|
|
13029
13413
|
*
|
package/dist/constants.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export declare const CARDS_IMAGE_OBJECT_FIT_ENUM: ["contain", "fill", "cover"];
|
|
|
18
18
|
export declare const VERTICAL_ALIGNMENT_ENUM: ["top", "middle", "bottom"];
|
|
19
19
|
export declare const REVISION_PAGE_SLUG_MAX_LENGTH = 100;
|
|
20
20
|
export declare const REVISION_PAGE_SLUG_MIN_LENGTH = 0;
|
|
21
|
+
export declare const OPEN_APISPEC_VISIBILITY_ENUM: ["private", "public"];
|
|
21
22
|
export declare const REVISION_PAGE_LAYOUT_OPTIONS_WIDTH_ENUM: ["default", "wide"];
|
|
22
23
|
export declare const REVISION_PAGE_LAYOUT_OPTIONS_COVER_SIZE_ENUM: ["hero", "full"];
|
|
23
24
|
export declare const CHANGE_REQUEST_STATUS_ENUM: ["draft", "open", "archived", "merged"];
|
|
@@ -43,7 +44,6 @@ export declare const OPEN_APISPEC_SLUG_MAX_LENGTH = 100;
|
|
|
43
44
|
export declare const OPEN_APISPEC_SLUG_MIN_LENGTH = 1;
|
|
44
45
|
export declare const OPEN_APISPEC_SLUG_PATTERN = "^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$";
|
|
45
46
|
export declare const OPEN_APISPEC_PROCESSING_STATE_ENUM: ["pending", "progress", "complete"];
|
|
46
|
-
export declare const OPEN_APISPEC_VISIBILITY_ENUM: ["private", "public"];
|
|
47
47
|
export declare const OPEN_APISPEC_PROCESSING_ERROR_CODE_ENUM: ["FETCH_TIMEOUT", "FETCH_ERROR", "PARSE_ERROR"];
|
|
48
48
|
export declare const CONTENT_REFERENCE_STATUS_ENUM: ["ok", "broken", "in-app"];
|
|
49
49
|
export declare const CONTENT_REFERENCE_RELATION_ENUM: ["reference", "dependsOn"];
|
|
@@ -133,6 +133,13 @@ export declare const SITE_SOCIAL_ACCOUNT_HANDLE_MAX_LENGTH = 128;
|
|
|
133
133
|
export declare const SITE_SOCIAL_ACCOUNT_HANDLE_MIN_LENGTH = 1;
|
|
134
134
|
export declare const SHARE_LINK_NAME_MAX_LENGTH = 50;
|
|
135
135
|
export declare const SHARE_LINK_NAME_MIN_LENGTH = 0;
|
|
136
|
+
export declare const CONTEXT_RECORD_TYPE_ENUM: ["ticket", "document"];
|
|
137
|
+
export declare const CONTEXT_RECORD_TITLE_MAX_LENGTH = 256;
|
|
138
|
+
export declare const CONTEXT_RECORD_TITLE_MIN_LENGTH = 1;
|
|
139
|
+
export declare const CONTEXT_RECORD_DESCRIPTION_MAX_LENGTH = 512;
|
|
140
|
+
export declare const CONTEXT_CONNECTION_LABEL_MAX_LENGTH = 128;
|
|
141
|
+
export declare const CONTEXT_CONNECTION_LABEL_MIN_LENGTH = 0;
|
|
142
|
+
export declare const CONTEXT_CONNECTION_STATUS_ENUM: ["pending", "syncing", "succeeded", "failed"];
|
|
136
143
|
export declare const AIMODEL_ENUM: ["fast", "reasoning-low", "reasoning-medium", "reasoning-high"];
|
|
137
144
|
export declare const SITE_INSIGHTS_DISPLAY_CONTEXT_ENUM: ["site", "embed"];
|
|
138
145
|
export declare const SITE_INSIGHTS_LINK_POSITION_ENUM: ["announcement", "header", "footer", "sidebar", "content"];
|
|
@@ -158,7 +165,7 @@ export declare const CLOUDFLARE_HOSTNAME_TLSVALIDATION_METHOD_ENUM: ["http", "tx
|
|
|
158
165
|
export declare const SHA256_MAX_LENGTH = 64;
|
|
159
166
|
export declare const SHA256_MIN_LENGTH = 64;
|
|
160
167
|
export declare const GIT_BOOK_USERS_ENUM: ["gitbook:agent"];
|
|
161
|
-
export declare const REVISION_SEMANTIC_CHANGE_TYPE_ENUM: ["page_created", "page_edited", "page_deleted", "page_moved", "file_created", "file_edited", "file_deleted", "custom_fields_edited"];
|
|
168
|
+
export declare const REVISION_SEMANTIC_CHANGE_TYPE_ENUM: ["page_created", "page_edited", "page_deleted", "page_moved", "file_created", "file_edited", "file_deleted", "custom_fields_edited", "tag_created", "tag_deleted", "tag_edited"];
|
|
162
169
|
export declare const GIT_SYNC_OPERATION_STATE_ENUM: ["running", "failure", "success"];
|
|
163
170
|
export declare const GIT_SYNC_OPERATION_DIRECTION_ENUM: ["export", "import"];
|
|
164
171
|
export declare const GIT_SYNC_OPERATION_STAGE_ENUM: ["repo_fetch", "config_check", "content_process", "finalize"];
|