@gitbook/api 0.159.0 → 0.161.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 +689 -47
- package/dist/constants.d.ts +9 -2
- package/dist/index.cjs +185 -8
- package/dist/index.js +176 -8
- package/package.json +5 -1
- package/spec/openapi.json +1858 -88
- package/spec/openapi.yaml +1186 -106
package/dist/client.d.ts
CHANGED
|
@@ -302,6 +302,8 @@ export interface Space {
|
|
|
302
302
|
changeRequestsDraft: number;
|
|
303
303
|
/** Whether the space is powered by V2 of the content system. */
|
|
304
304
|
internal_poweredByV2?: boolean;
|
|
305
|
+
/** Whether the space uses a single websocket connection for all real-time communication. */
|
|
306
|
+
internal_singleWebsocket?: boolean;
|
|
305
307
|
/** The set of permissions for the space */
|
|
306
308
|
permissions: {
|
|
307
309
|
/** Can the user view the space content. */
|
|
@@ -431,7 +433,10 @@ export interface ImportGitRepository {
|
|
|
431
433
|
url: string;
|
|
432
434
|
/** Git ref to import in the format "refs/heads/main" */
|
|
433
435
|
ref: string;
|
|
434
|
-
/**
|
|
436
|
+
/**
|
|
437
|
+
* Unique identifier to use to cache the Git repository across multiple operations.
|
|
438
|
+
* @deprecated
|
|
439
|
+
*/
|
|
435
440
|
repoCacheID?: string;
|
|
436
441
|
/** URL to use as a prefix for external file references. */
|
|
437
442
|
repoTreeURL?: string;
|
|
@@ -454,7 +459,10 @@ export interface ExportToGitRepository {
|
|
|
454
459
|
ref: string;
|
|
455
460
|
/** Message for the commit generated by the export */
|
|
456
461
|
commitMessage: string;
|
|
457
|
-
/**
|
|
462
|
+
/**
|
|
463
|
+
* Unique identifier to use to cache the Git repository across multiple operations.
|
|
464
|
+
* @deprecated
|
|
465
|
+
*/
|
|
458
466
|
repoCacheID?: string;
|
|
459
467
|
/** URL to use as a prefix for external file references. */
|
|
460
468
|
repoTreeURL?: string;
|
|
@@ -808,6 +816,8 @@ export interface DocumentBlockHint {
|
|
|
808
816
|
key?: string;
|
|
809
817
|
data: {
|
|
810
818
|
style: 'info' | 'warning' | 'danger' | 'success';
|
|
819
|
+
/** Name of the icon */
|
|
820
|
+
icon?: Icon;
|
|
811
821
|
};
|
|
812
822
|
nodes: DocumentBlocksEssentials[];
|
|
813
823
|
isVoid?: false;
|
|
@@ -1089,7 +1099,9 @@ export interface DocumentBlockExpandable {
|
|
|
1089
1099
|
type: 'expandable';
|
|
1090
1100
|
key?: string;
|
|
1091
1101
|
isVoid: true;
|
|
1092
|
-
data:
|
|
1102
|
+
data: {
|
|
1103
|
+
defaultExpanded?: boolean;
|
|
1104
|
+
};
|
|
1093
1105
|
fragments: ((DocumentFragment & {
|
|
1094
1106
|
fragment: 'expandable-title';
|
|
1095
1107
|
type: 'expandable-title';
|
|
@@ -1308,6 +1320,13 @@ export interface DocumentBlockColumns {
|
|
|
1308
1320
|
nodes: DocumentBlockColumn[];
|
|
1309
1321
|
isVoid: false;
|
|
1310
1322
|
}
|
|
1323
|
+
export interface ContentRefTag {
|
|
1324
|
+
kind: 'tag';
|
|
1325
|
+
/** The slug of the tag, also used as the ID, and references the tags defined on a revision. */
|
|
1326
|
+
tag: string;
|
|
1327
|
+
/** The space in which the tag is defined. If undefined, the tag is assumed to be in the same space as the content reference. */
|
|
1328
|
+
space?: string;
|
|
1329
|
+
}
|
|
1311
1330
|
export interface DocumentBlockUpdate {
|
|
1312
1331
|
object: 'block';
|
|
1313
1332
|
type: 'update';
|
|
@@ -1315,7 +1334,8 @@ export interface DocumentBlockUpdate {
|
|
|
1315
1334
|
nodes: (DocumentBlocksEssentials | DocumentBlockContentRef | DocumentBlockCode | DocumentBlockEmbed | DocumentBlockFile | DocumentBlockImages | DocumentBlockDrawing | DocumentBlockHint | DocumentBlockQuote | DocumentBlockMath | DocumentBlockIntegration | DocumentBlockTabs | DocumentBlockExpandable)[];
|
|
1316
1335
|
data: {
|
|
1317
1336
|
date: Timestamp;
|
|
1318
|
-
tags
|
|
1337
|
+
/** Array of tags. Each tag is id'ed by its slug. */
|
|
1338
|
+
tags?: ContentRefTag[];
|
|
1319
1339
|
};
|
|
1320
1340
|
isVoid?: false;
|
|
1321
1341
|
}
|
|
@@ -1422,6 +1442,8 @@ export type RevisionPageDocument = RevisionPageBase & Document & {
|
|
|
1422
1442
|
noRobotsIndex?: boolean;
|
|
1423
1443
|
/** Meta links associated with the page. */
|
|
1424
1444
|
metaLinks?: RevisionPageMetaLinks;
|
|
1445
|
+
/** A list of all the tags added to this page */
|
|
1446
|
+
tags: RevisionPageTag[];
|
|
1425
1447
|
} & ({
|
|
1426
1448
|
computed: ComputedContentSourceDocument;
|
|
1427
1449
|
/** Seed to use for the generation of IDs. */
|
|
@@ -1443,6 +1465,15 @@ export type RevisionPageLink = RevisionPageBase & {
|
|
|
1443
1465
|
*/
|
|
1444
1466
|
hidden?: boolean;
|
|
1445
1467
|
};
|
|
1468
|
+
/**
|
|
1469
|
+
* The visibility setting of the OpenAPI spec.
|
|
1470
|
+
* * `private`: The spec is not publicly available.
|
|
1471
|
+
* * `public`: The spec is available to anyone with a public link.
|
|
1472
|
+
*/
|
|
1473
|
+
export declare enum OpenAPISpecVisibility {
|
|
1474
|
+
Private = "private",
|
|
1475
|
+
Public = "public"
|
|
1476
|
+
}
|
|
1446
1477
|
export interface ComputedContentDependencyOpenAPI {
|
|
1447
1478
|
ref: ContentRefOpenAPI;
|
|
1448
1479
|
/** See `OpenAPI` schema component. */
|
|
@@ -1451,6 +1482,12 @@ export interface ComputedContentDependencyOpenAPI {
|
|
|
1451
1482
|
id: string;
|
|
1452
1483
|
slug: string;
|
|
1453
1484
|
lastVersion?: string;
|
|
1485
|
+
/**
|
|
1486
|
+
* The visibility setting of the OpenAPI spec.
|
|
1487
|
+
* * `private`: The spec is not publicly available.
|
|
1488
|
+
* * `public`: The spec is available to anyone with a public link.
|
|
1489
|
+
*/
|
|
1490
|
+
visibility?: OpenAPISpecVisibility;
|
|
1454
1491
|
} | null;
|
|
1455
1492
|
}
|
|
1456
1493
|
/** Generic parameters from an OpenAPI computed content source */
|
|
@@ -1568,6 +1605,8 @@ export interface RevisionPageLayoutOptions {
|
|
|
1568
1605
|
pagination: boolean;
|
|
1569
1606
|
/** Should the page metadata (last modified, author, etc.) be visible? */
|
|
1570
1607
|
metadata: boolean;
|
|
1608
|
+
/** Should the tags be visible on the page? */
|
|
1609
|
+
tags: boolean;
|
|
1571
1610
|
}
|
|
1572
1611
|
export interface RevisionPageDocumentCover {
|
|
1573
1612
|
/** Content reference pointing to the source image. */
|
|
@@ -1594,6 +1633,12 @@ export interface RevisionPageMetaLinks {
|
|
|
1594
1633
|
canonical?: RevisionPageMetaLinkTarget;
|
|
1595
1634
|
alternates?: RevisionPageMetaLinkTarget[];
|
|
1596
1635
|
}
|
|
1636
|
+
/** A reference to a tag with optional primary flag for page-level tags. */
|
|
1637
|
+
export interface RevisionPageTag {
|
|
1638
|
+
tag: ContentRefTag;
|
|
1639
|
+
/** Whether this is the primary tag for display in table of contents. */
|
|
1640
|
+
primary?: boolean;
|
|
1641
|
+
}
|
|
1597
1642
|
/** Parameters for an OpenAPI computed document */
|
|
1598
1643
|
export type ComputedContentSourceDocumentOpenAPI = ComputedContentSourceOpenAPIBase & {
|
|
1599
1644
|
props: {
|
|
@@ -1664,6 +1709,13 @@ export type RevisionReusableContent = {
|
|
|
1664
1709
|
/** ID of the document with the content body. If undefined, the reusable content is empty. */
|
|
1665
1710
|
document?: string;
|
|
1666
1711
|
});
|
|
1712
|
+
/** A reusable tag that different types of content can be associated to (e.g. pages, update entries) */
|
|
1713
|
+
export interface RevisionTag {
|
|
1714
|
+
/** The slug identifier for the tag, immutable after creation. */
|
|
1715
|
+
slug: string;
|
|
1716
|
+
/** Display label for the tag. Can be renamed and differ from the slug. */
|
|
1717
|
+
label: string;
|
|
1718
|
+
}
|
|
1667
1719
|
export interface GitSyncCommit {
|
|
1668
1720
|
/** SHA for the commit */
|
|
1669
1721
|
oid: string;
|
|
@@ -1686,6 +1738,8 @@ export interface RevisionBase {
|
|
|
1686
1738
|
pages: RevisionPage[];
|
|
1687
1739
|
files: RevisionFile[];
|
|
1688
1740
|
reusableContents: RevisionReusableContent[];
|
|
1741
|
+
/** List of available tags within this revision */
|
|
1742
|
+
tags: RevisionTag[];
|
|
1689
1743
|
variables?: Variables;
|
|
1690
1744
|
/** When the revision was created. */
|
|
1691
1745
|
createdAt: Timestamp;
|
|
@@ -2001,6 +2055,8 @@ export interface Organization {
|
|
|
2001
2055
|
permissions: {
|
|
2002
2056
|
/** Can the user view the organization. */
|
|
2003
2057
|
view: boolean;
|
|
2058
|
+
/** Can the user view the organization in the application. */
|
|
2059
|
+
access: boolean;
|
|
2004
2060
|
/** Can the user manage the title, members, etc. */
|
|
2005
2061
|
admin: boolean;
|
|
2006
2062
|
/** Is the user a team owner. */
|
|
@@ -2147,15 +2203,6 @@ export declare enum OpenAPISpecProcessingState {
|
|
|
2147
2203
|
Progress = "progress",
|
|
2148
2204
|
Complete = "complete"
|
|
2149
2205
|
}
|
|
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
2206
|
/** OpenAPI processing error code */
|
|
2160
2207
|
export declare enum OpenAPISpecProcessingErrorCode {
|
|
2161
2208
|
FETCH_TIMEOUT = "FETCH_TIMEOUT",
|
|
@@ -2638,7 +2685,27 @@ export interface RevisionSemanticChangeReusableContentEdited {
|
|
|
2638
2685
|
reusableContent: ChangedRevisionReusableContent;
|
|
2639
2686
|
attributes: RevisionReusableContentChangeAttributes;
|
|
2640
2687
|
}
|
|
2641
|
-
export
|
|
2688
|
+
export interface ChangedRevisionTag {
|
|
2689
|
+
slug: string;
|
|
2690
|
+
label: string;
|
|
2691
|
+
}
|
|
2692
|
+
export interface RevisionSemanticChangeTagCreated {
|
|
2693
|
+
type: 'tag_created';
|
|
2694
|
+
tag: ChangedRevisionTag;
|
|
2695
|
+
}
|
|
2696
|
+
export interface RevisionSemanticChangeTagDeleted {
|
|
2697
|
+
type: 'tag_deleted';
|
|
2698
|
+
tag: ChangedRevisionTag;
|
|
2699
|
+
}
|
|
2700
|
+
export interface RevisionTagChangeAttributes {
|
|
2701
|
+
label?: ChangeAttributeString;
|
|
2702
|
+
}
|
|
2703
|
+
export interface RevisionSemanticChangeTagEdited {
|
|
2704
|
+
type: 'tag_edited';
|
|
2705
|
+
tag: ChangedRevisionTag;
|
|
2706
|
+
attributes: RevisionTagChangeAttributes;
|
|
2707
|
+
}
|
|
2708
|
+
export type RevisionSemanticChange = RevisionSemanticChangePageCreated | RevisionSemanticChangePageEdited | RevisionSemanticChangePageDeleted | RevisionSemanticChangePageMoved | RevisionSemanticChangeFileCreated | RevisionSemanticChangeFileEdited | RevisionSemanticChangeFileDeleted | RevisionSemanticChangeVariablesEdited | RevisionSemanticChangeReusableContentCreated | RevisionSemanticChangeReusableContentDeleted | RevisionSemanticChangeReusableContentEdited | RevisionSemanticChangeTagCreated | RevisionSemanticChangeTagDeleted | RevisionSemanticChangeTagEdited;
|
|
2642
2709
|
export interface RevisionSemanticChanges {
|
|
2643
2710
|
/** The change request object that initiated the changes in the case of a merge revision. */
|
|
2644
2711
|
mergedFrom?: ChangeRequest;
|
|
@@ -4575,7 +4642,7 @@ export interface SearchAIQuery {
|
|
|
4575
4642
|
* Page source
|
|
4576
4643
|
* The source points to a page in a space.
|
|
4577
4644
|
*/
|
|
4578
|
-
export interface
|
|
4645
|
+
export interface SearchAIAnswerSourcePage {
|
|
4579
4646
|
type: 'page';
|
|
4580
4647
|
/** Short explanation of how the source was used to answer. */
|
|
4581
4648
|
reason?: string;
|
|
@@ -4588,6 +4655,27 @@ export interface SearchAIAnswerSource {
|
|
|
4588
4655
|
/** The IDs of the sections of the page that were used to answer the question. */
|
|
4589
4656
|
sections: string[];
|
|
4590
4657
|
}
|
|
4658
|
+
/**
|
|
4659
|
+
* Site context record source
|
|
4660
|
+
* The source points to an ingested site context record.
|
|
4661
|
+
*/
|
|
4662
|
+
export interface SearchAIAnswerSourceRecord {
|
|
4663
|
+
type: 'record';
|
|
4664
|
+
/** Short explanation of how the source was used to answer. */
|
|
4665
|
+
reason?: string;
|
|
4666
|
+
/** The context record ID of the source. */
|
|
4667
|
+
record: string;
|
|
4668
|
+
/** The site ID owning the source record. */
|
|
4669
|
+
site: string;
|
|
4670
|
+
/** The title of the source record. */
|
|
4671
|
+
title: string;
|
|
4672
|
+
/**
|
|
4673
|
+
* The source URL of the context record.
|
|
4674
|
+
* @format uri
|
|
4675
|
+
*/
|
|
4676
|
+
url: string;
|
|
4677
|
+
}
|
|
4678
|
+
export type SearchAIAnswerSource = SearchAIAnswerSourcePage | SearchAIAnswerSourceRecord;
|
|
4591
4679
|
/** Answer from AI for a question asked on a content. */
|
|
4592
4680
|
export interface SearchAIAnswer {
|
|
4593
4681
|
answer?: Document;
|
|
@@ -5676,6 +5764,172 @@ export type SiteSearchScope = {
|
|
|
5676
5764
|
/** Search in all sections and site spaces. This scope is wide and deep. */
|
|
5677
5765
|
mode: 'all';
|
|
5678
5766
|
};
|
|
5767
|
+
export declare enum ContextRecordType {
|
|
5768
|
+
Ticket = "ticket",
|
|
5769
|
+
Document = "document"
|
|
5770
|
+
}
|
|
5771
|
+
/** Integration source */
|
|
5772
|
+
export type ContextConnector = string | 'builtin:email' | 'builtin:api' | 'builtin:website' | 'builtin:youtube';
|
|
5773
|
+
/**
|
|
5774
|
+
* Title for the context record
|
|
5775
|
+
* @minLength 1
|
|
5776
|
+
* @maxLength 256
|
|
5777
|
+
*/
|
|
5778
|
+
export type ContextRecordTitle = string;
|
|
5779
|
+
/**
|
|
5780
|
+
* Optional short description of the context record
|
|
5781
|
+
* @maxLength 512
|
|
5782
|
+
*/
|
|
5783
|
+
export type ContextRecordDescription = string;
|
|
5784
|
+
export interface ContextRecord {
|
|
5785
|
+
object: 'context-record';
|
|
5786
|
+
/** The ID of the record */
|
|
5787
|
+
id: string;
|
|
5788
|
+
/** Title for the context record */
|
|
5789
|
+
title: ContextRecordTitle;
|
|
5790
|
+
/** Optional short description of the context record */
|
|
5791
|
+
description?: ContextRecordDescription;
|
|
5792
|
+
type: ContextRecordType;
|
|
5793
|
+
createdAt: Timestamp;
|
|
5794
|
+
processedAt?: Timestamp;
|
|
5795
|
+
/** The connection ID associated with the record */
|
|
5796
|
+
connection: string;
|
|
5797
|
+
/** The connector type associated with the record */
|
|
5798
|
+
connector: ContextConnector;
|
|
5799
|
+
/** The associated topics of the record */
|
|
5800
|
+
topics?: string[];
|
|
5801
|
+
/** URLs associated with the record */
|
|
5802
|
+
urls: {
|
|
5803
|
+
/**
|
|
5804
|
+
* URL of the record in the API
|
|
5805
|
+
* @format uri
|
|
5806
|
+
*/
|
|
5807
|
+
location: string;
|
|
5808
|
+
/**
|
|
5809
|
+
* URL of the record in the source
|
|
5810
|
+
* @format uri
|
|
5811
|
+
*/
|
|
5812
|
+
source?: string;
|
|
5813
|
+
};
|
|
5814
|
+
}
|
|
5815
|
+
/** Input to ingest a new context record */
|
|
5816
|
+
export interface ContextRecordInput {
|
|
5817
|
+
/** Unique local identifier for the record */
|
|
5818
|
+
id: string;
|
|
5819
|
+
type: ContextRecordType;
|
|
5820
|
+
/** Title for the context record */
|
|
5821
|
+
title: ContextRecordTitle;
|
|
5822
|
+
/** Optional short description of the context record */
|
|
5823
|
+
description?: ContextRecordDescription;
|
|
5824
|
+
/** Body content of the record as markdown */
|
|
5825
|
+
body: string;
|
|
5826
|
+
/**
|
|
5827
|
+
* URL of the record
|
|
5828
|
+
* @format uri
|
|
5829
|
+
*/
|
|
5830
|
+
url?: string;
|
|
5831
|
+
metadata?: Record<string, string>;
|
|
5832
|
+
}
|
|
5833
|
+
/**
|
|
5834
|
+
* Optional label for the connection
|
|
5835
|
+
* @minLength 0
|
|
5836
|
+
* @maxLength 128
|
|
5837
|
+
*/
|
|
5838
|
+
export type ContextConnectionLabel = string;
|
|
5839
|
+
export declare enum ContextConnectionStatus {
|
|
5840
|
+
Pending = "pending",
|
|
5841
|
+
Syncing = "syncing",
|
|
5842
|
+
Succeeded = "succeeded",
|
|
5843
|
+
Failed = "failed"
|
|
5844
|
+
}
|
|
5845
|
+
export interface ContextUsageSettings {
|
|
5846
|
+
/** Whether to use context to propose change requests */
|
|
5847
|
+
changeRequests: boolean;
|
|
5848
|
+
/** Whether to expose records in search results */
|
|
5849
|
+
search: boolean;
|
|
5850
|
+
}
|
|
5851
|
+
export type ContextConnectorSetup = {
|
|
5852
|
+
connector: 'builtin:email' | 'builtin:api';
|
|
5853
|
+
} | {
|
|
5854
|
+
/** @pattern ^integration:[^:]+$ */
|
|
5855
|
+
connector: string;
|
|
5856
|
+
} | {
|
|
5857
|
+
connector: 'builtin:website';
|
|
5858
|
+
setupSettings: {
|
|
5859
|
+
/** @format uri */
|
|
5860
|
+
url: string;
|
|
5861
|
+
};
|
|
5862
|
+
} | {
|
|
5863
|
+
connector: 'builtin:youtube';
|
|
5864
|
+
setupSettings: {
|
|
5865
|
+
/** @pattern ^UC[A-Za-z0-9_-]{22}$ */
|
|
5866
|
+
channelId: string;
|
|
5867
|
+
};
|
|
5868
|
+
};
|
|
5869
|
+
export type ContextConnection = {
|
|
5870
|
+
object: 'context-connection';
|
|
5871
|
+
/** The ID of the connection */
|
|
5872
|
+
id: string;
|
|
5873
|
+
createdAt: Timestamp;
|
|
5874
|
+
syncedAt?: Timestamp;
|
|
5875
|
+
/** Optional label for the connection */
|
|
5876
|
+
label?: ContextConnectionLabel;
|
|
5877
|
+
status: ContextConnectionStatus;
|
|
5878
|
+
/** Number of records ingested from this connection */
|
|
5879
|
+
records: number;
|
|
5880
|
+
/** Failure message when synchronization fails */
|
|
5881
|
+
failureMessage?: string;
|
|
5882
|
+
/** Parameters associated with the connection when it is an email connection */
|
|
5883
|
+
email?: {
|
|
5884
|
+
/**
|
|
5885
|
+
* Inbound email address for the connection
|
|
5886
|
+
* @format email
|
|
5887
|
+
*/
|
|
5888
|
+
ingestionAddress?: string;
|
|
5889
|
+
};
|
|
5890
|
+
usageSettings: ContextUsageSettings;
|
|
5891
|
+
/** URLs associated with the connection */
|
|
5892
|
+
urls: {
|
|
5893
|
+
/**
|
|
5894
|
+
* URL of the connection in the API
|
|
5895
|
+
* @format uri
|
|
5896
|
+
*/
|
|
5897
|
+
location: string;
|
|
5898
|
+
};
|
|
5899
|
+
} & ContextConnectorSetup;
|
|
5900
|
+
export interface ContextTopic {
|
|
5901
|
+
object: 'context-topic';
|
|
5902
|
+
/** The ID of the topic */
|
|
5903
|
+
id: string;
|
|
5904
|
+
/** The label of the topic */
|
|
5905
|
+
label: string;
|
|
5906
|
+
createdAt: Timestamp;
|
|
5907
|
+
updatedAt: Timestamp;
|
|
5908
|
+
/** Name of the icon */
|
|
5909
|
+
icon: Icon;
|
|
5910
|
+
summary: JSONDocument;
|
|
5911
|
+
usageSettings: ContextUsageSettings;
|
|
5912
|
+
/**
|
|
5913
|
+
* The weekly pulse of the records for the past 3 months
|
|
5914
|
+
* @maxItems 13
|
|
5915
|
+
* @minItems 13
|
|
5916
|
+
*/
|
|
5917
|
+
weeklyPulse: number[];
|
|
5918
|
+
connectors: Record<string, number>;
|
|
5919
|
+
/** The stats of the topic */
|
|
5920
|
+
stats: {
|
|
5921
|
+
/** The number of records in the topic */
|
|
5922
|
+
records: number;
|
|
5923
|
+
};
|
|
5924
|
+
/** URLs associated with the topic */
|
|
5925
|
+
urls: {
|
|
5926
|
+
/**
|
|
5927
|
+
* URL of the topic in the API
|
|
5928
|
+
* @format uri
|
|
5929
|
+
*/
|
|
5930
|
+
location: string;
|
|
5931
|
+
};
|
|
5932
|
+
}
|
|
5679
5933
|
export type SiteSpaceCustomizationSettings = SiteCustomizationSettings & {
|
|
5680
5934
|
/** Indicates whether the site customization settings have been overridden. */
|
|
5681
5935
|
hasOverrides: boolean;
|
|
@@ -5710,6 +5964,16 @@ export interface SiteSpaceMovePosition {
|
|
|
5710
5964
|
before?: SiteSpacePointer;
|
|
5711
5965
|
after?: SiteSpacePointer;
|
|
5712
5966
|
}
|
|
5967
|
+
export type InviteSiteUsersAndTeams = ({
|
|
5968
|
+
/** @minItems 1 */
|
|
5969
|
+
teams: string[];
|
|
5970
|
+
} | {
|
|
5971
|
+
/** @minItems 1 */
|
|
5972
|
+
users: string[];
|
|
5973
|
+
}) & {
|
|
5974
|
+
/** Role to set. */
|
|
5975
|
+
role: MemberRole;
|
|
5976
|
+
};
|
|
5713
5977
|
export interface OrganizationPointer {
|
|
5714
5978
|
type: 'organization';
|
|
5715
5979
|
/** Unique identifier for the organization */
|
|
@@ -5723,6 +5987,34 @@ export interface UserSitePermission {
|
|
|
5723
5987
|
/** The content or organization that enforced this permission level. */
|
|
5724
5988
|
origin: SpacePointer | OrganizationPointer;
|
|
5725
5989
|
}
|
|
5990
|
+
/** Permission override of a user in a site. */
|
|
5991
|
+
export interface UserSitePermissionOverride {
|
|
5992
|
+
/**
|
|
5993
|
+
* "The role of a member in an organization.
|
|
5994
|
+
* "admin": Can administrate the content: create, delete spaces, ...
|
|
5995
|
+
* "create": Can create content.
|
|
5996
|
+
* "review": Can review content.
|
|
5997
|
+
* "edit": Can edit the content (live or change requests).
|
|
5998
|
+
* "comment": Can access the content and its discussions.
|
|
5999
|
+
* "read": Can access the content, but cannot update it in any way.
|
|
6000
|
+
*/
|
|
6001
|
+
permission: MemberRole;
|
|
6002
|
+
user: User;
|
|
6003
|
+
}
|
|
6004
|
+
/** Permission override of a team in a site. */
|
|
6005
|
+
export interface TeamSitePermissionOverride {
|
|
6006
|
+
/**
|
|
6007
|
+
* "The role of a member in an organization.
|
|
6008
|
+
* "admin": Can administrate the content: create, delete spaces, ...
|
|
6009
|
+
* "create": Can create content.
|
|
6010
|
+
* "review": Can review content.
|
|
6011
|
+
* "edit": Can edit the content (live or change requests).
|
|
6012
|
+
* "comment": Can access the content and its discussions.
|
|
6013
|
+
* "read": Can access the content, but cannot update it in any way.
|
|
6014
|
+
*/
|
|
6015
|
+
permission: MemberRole;
|
|
6016
|
+
team: OrganizationTeam;
|
|
6017
|
+
}
|
|
5726
6018
|
/** Context about the current user sending a message. */
|
|
5727
6019
|
export interface AIMessageContext {
|
|
5728
6020
|
location?: {
|
|
@@ -5885,8 +6177,12 @@ export interface AIToolCallGetReusableContents {
|
|
|
5885
6177
|
/** The revision ID of the space. */
|
|
5886
6178
|
revisionId: string;
|
|
5887
6179
|
}
|
|
5888
|
-
/**
|
|
5889
|
-
|
|
6180
|
+
/**
|
|
6181
|
+
* Page result
|
|
6182
|
+
* Result of a search matching a page.
|
|
6183
|
+
*/
|
|
6184
|
+
export interface AIToolCallSearchResultPage {
|
|
6185
|
+
type: 'page';
|
|
5890
6186
|
/** The ID of the space */
|
|
5891
6187
|
spaceId: string;
|
|
5892
6188
|
/** The ID of the page */
|
|
@@ -5900,6 +6196,28 @@ export interface AIToolCallSearchResult {
|
|
|
5900
6196
|
/** The description of the result */
|
|
5901
6197
|
description?: string;
|
|
5902
6198
|
}
|
|
6199
|
+
/**
|
|
6200
|
+
* Site context record result
|
|
6201
|
+
* Result of a search matching a site context record.
|
|
6202
|
+
*/
|
|
6203
|
+
export interface AIToolCallSearchResultRecord {
|
|
6204
|
+
type: 'record';
|
|
6205
|
+
/** The ID of the site owning the context record */
|
|
6206
|
+
siteId: string;
|
|
6207
|
+
/** The ID of the context record */
|
|
6208
|
+
recordId: string;
|
|
6209
|
+
/** The title of the record */
|
|
6210
|
+
title: string;
|
|
6211
|
+
/** The description of the record */
|
|
6212
|
+
description?: string;
|
|
6213
|
+
/**
|
|
6214
|
+
* URL of the record in its original source
|
|
6215
|
+
* @format uri
|
|
6216
|
+
*/
|
|
6217
|
+
url?: string;
|
|
6218
|
+
}
|
|
6219
|
+
/** Result of a search */
|
|
6220
|
+
export type AIToolCallSearchResult = AIToolCallSearchResultPage | AIToolCallSearchResultRecord;
|
|
5903
6221
|
/** Tool to search for content */
|
|
5904
6222
|
export interface AIToolCallSearch {
|
|
5905
6223
|
tool: 'search';
|
|
@@ -6867,6 +7185,17 @@ export type BackOfficeSite = Site & {
|
|
|
6867
7185
|
/** ID of the organization owning this site */
|
|
6868
7186
|
organization: string;
|
|
6869
7187
|
};
|
|
7188
|
+
export type PublishedContentRedirect = {
|
|
7189
|
+
/** Type of target for the redirect */
|
|
7190
|
+
target: 'application' | 'content';
|
|
7191
|
+
redirect: URL;
|
|
7192
|
+
} | {
|
|
7193
|
+
/** Type of target for the redirect */
|
|
7194
|
+
target: 'external';
|
|
7195
|
+
/** ID of the resolved site. */
|
|
7196
|
+
site: string;
|
|
7197
|
+
redirect: URL;
|
|
7198
|
+
};
|
|
6870
7199
|
/** Site Content */
|
|
6871
7200
|
export interface PublishedSiteContent {
|
|
6872
7201
|
/** ID of the site matching. */
|
|
@@ -6900,11 +7229,7 @@ export interface PublishedSiteContent {
|
|
|
6900
7229
|
/** The canonical URL of the resolution. */
|
|
6901
7230
|
canonicalUrl: string;
|
|
6902
7231
|
}
|
|
6903
|
-
export type PublishedSiteContentLookup =
|
|
6904
|
-
/** Type of target for the redirect */
|
|
6905
|
-
target: 'application' | 'content' | 'external';
|
|
6906
|
-
redirect: URL;
|
|
6907
|
-
} | PublishedSiteContent;
|
|
7232
|
+
export type PublishedSiteContentLookup = PublishedContentRedirect | PublishedSiteContent;
|
|
6908
7233
|
/** An object that describes the payload of site visitor info. It can include a jwt token with signed claims and/or a record of its unsigned claims. */
|
|
6909
7234
|
export interface SiteVisitorPayload {
|
|
6910
7235
|
/** JWT token generated for a authenticated access session. */
|
|
@@ -7096,7 +7421,10 @@ export declare enum RevisionSemanticChangeType {
|
|
|
7096
7421
|
FileCreated = "file_created",
|
|
7097
7422
|
FileEdited = "file_edited",
|
|
7098
7423
|
FileDeleted = "file_deleted",
|
|
7099
|
-
CustomFieldsEdited = "custom_fields_edited"
|
|
7424
|
+
CustomFieldsEdited = "custom_fields_edited",
|
|
7425
|
+
TagCreated = "tag_created",
|
|
7426
|
+
TagDeleted = "tag_deleted",
|
|
7427
|
+
TagEdited = "tag_edited"
|
|
7100
7428
|
}
|
|
7101
7429
|
/**
|
|
7102
7430
|
* * `running`: The operation is still running
|
|
@@ -7500,6 +7828,11 @@ export interface SiteChannel {
|
|
|
7500
7828
|
channel: 'site';
|
|
7501
7829
|
site: string;
|
|
7502
7830
|
}
|
|
7831
|
+
/** Subscription channel for changes in site context. */
|
|
7832
|
+
export interface SiteContextChannel {
|
|
7833
|
+
channel: 'site-context';
|
|
7834
|
+
site: string;
|
|
7835
|
+
}
|
|
7503
7836
|
export interface SiteCustomizationChannel {
|
|
7504
7837
|
channel: 'site-customization';
|
|
7505
7838
|
site: string;
|
|
@@ -7585,7 +7918,7 @@ export interface ImportRunChannel {
|
|
|
7585
7918
|
runId: string;
|
|
7586
7919
|
}
|
|
7587
7920
|
/** 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;
|
|
7921
|
+
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
7922
|
export interface TranslationRunChannelData {
|
|
7590
7923
|
channel: 'translation-run';
|
|
7591
7924
|
data: {
|
|
@@ -7831,7 +8164,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7831
8164
|
/**
|
|
7832
8165
|
* @description Returns details about the user associated with the authentication provided in the request's authorization header.
|
|
7833
8166
|
*
|
|
7834
|
-
* @tags users
|
|
8167
|
+
* @tags users, critical
|
|
7835
8168
|
* @name GetAuthenticatedUser
|
|
7836
8169
|
* @summary Get profile of authenticated user
|
|
7837
8170
|
* @request GET:/user
|
|
@@ -8111,7 +8444,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8111
8444
|
/**
|
|
8112
8445
|
* No description
|
|
8113
8446
|
*
|
|
8114
|
-
* @tags space-
|
|
8447
|
+
* @tags space-permissions
|
|
8115
8448
|
* @name InviteToSpace
|
|
8116
8449
|
* @summary Invite a user or a team to a space
|
|
8117
8450
|
* @request POST:/spaces/{spaceId}/permissions
|
|
@@ -8127,9 +8460,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8127
8460
|
/**
|
|
8128
8461
|
* No description
|
|
8129
8462
|
*
|
|
8130
|
-
* @tags space-
|
|
8463
|
+
* @tags space-permissions
|
|
8131
8464
|
* @name UpdateTeamPermissionInSpace
|
|
8132
|
-
* @summary Update
|
|
8465
|
+
* @summary Update an org team's permission in a space
|
|
8133
8466
|
* @request PATCH:/spaces/{spaceId}/permissions/teams/{teamId}
|
|
8134
8467
|
* @secure
|
|
8135
8468
|
*/
|
|
@@ -8146,9 +8479,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8146
8479
|
/**
|
|
8147
8480
|
* No description
|
|
8148
8481
|
*
|
|
8149
|
-
* @tags space-
|
|
8482
|
+
* @tags space-permissions
|
|
8150
8483
|
* @name RemoveTeamFromSpace
|
|
8151
|
-
* @summary Remove a space
|
|
8484
|
+
* @summary Remove an org team from a space
|
|
8152
8485
|
* @request DELETE:/spaces/{spaceId}/permissions/teams/{teamId}
|
|
8153
8486
|
* @secure
|
|
8154
8487
|
*/
|
|
@@ -8162,7 +8495,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8162
8495
|
/**
|
|
8163
8496
|
* No description
|
|
8164
8497
|
*
|
|
8165
|
-
* @tags space-
|
|
8498
|
+
* @tags space-permissions
|
|
8166
8499
|
* @name ListUserPermissionsInSpace
|
|
8167
8500
|
* @summary List space user permissions
|
|
8168
8501
|
* @request GET:/spaces/{spaceId}/permissions/users
|
|
@@ -8189,7 +8522,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8189
8522
|
/**
|
|
8190
8523
|
* No description
|
|
8191
8524
|
*
|
|
8192
|
-
* @tags space-
|
|
8525
|
+
* @tags space-permissions
|
|
8193
8526
|
* @name UpdateUserPermissionInSpace
|
|
8194
8527
|
* @summary Update space user permissions
|
|
8195
8528
|
* @request PATCH:/spaces/{spaceId}/permissions/users/{userId}
|
|
@@ -8208,7 +8541,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8208
8541
|
/**
|
|
8209
8542
|
* No description
|
|
8210
8543
|
*
|
|
8211
|
-
* @tags space-
|
|
8544
|
+
* @tags space-permissions
|
|
8212
8545
|
* @name RemoveUserFromSpace
|
|
8213
8546
|
* @summary Remove a space user
|
|
8214
8547
|
* @request DELETE:/spaces/{spaceId}/permissions/users/{userId}
|
|
@@ -8218,9 +8551,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8218
8551
|
/**
|
|
8219
8552
|
* No description
|
|
8220
8553
|
*
|
|
8221
|
-
* @tags space-
|
|
8554
|
+
* @tags space-permissions
|
|
8222
8555
|
* @name ListTeamPermissionsInSpace
|
|
8223
|
-
* @summary List
|
|
8556
|
+
* @summary List an org team's permission in a space
|
|
8224
8557
|
* @request GET:/spaces/{spaceId}/permissions/teams
|
|
8225
8558
|
* @secure
|
|
8226
8559
|
*/
|
|
@@ -9798,7 +10131,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9798
10131
|
/**
|
|
9799
10132
|
* No description
|
|
9800
10133
|
*
|
|
9801
|
-
* @tags space-
|
|
10134
|
+
* @tags space-permissions
|
|
9802
10135
|
* @name ListPermissionsAggregateInSpace
|
|
9803
10136
|
* @summary List all space users permissions
|
|
9804
10137
|
* @request GET:/spaces/{spaceId}/permissions/aggregate
|
|
@@ -10029,7 +10362,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10029
10362
|
/**
|
|
10030
10363
|
* No description
|
|
10031
10364
|
*
|
|
10032
|
-
* @tags collection-
|
|
10365
|
+
* @tags collection-permissions
|
|
10033
10366
|
* @name InviteToCollection
|
|
10034
10367
|
* @summary Invite to a collection
|
|
10035
10368
|
* @request POST:/collections/{collectionId}/permissions
|
|
@@ -10045,9 +10378,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10045
10378
|
/**
|
|
10046
10379
|
* No description
|
|
10047
10380
|
*
|
|
10048
|
-
* @tags collection-
|
|
10381
|
+
* @tags collection-permissions
|
|
10049
10382
|
* @name ListTeamPermissionsInCollection
|
|
10050
|
-
* @summary List
|
|
10383
|
+
* @summary List an org team's permission in collection
|
|
10051
10384
|
* @request GET:/collections/{collectionId}/permissions/teams
|
|
10052
10385
|
* @secure
|
|
10053
10386
|
*/
|
|
@@ -10078,9 +10411,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10078
10411
|
/**
|
|
10079
10412
|
* No description
|
|
10080
10413
|
*
|
|
10081
|
-
* @tags collection-
|
|
10414
|
+
* @tags collection-permissions
|
|
10082
10415
|
* @name UpdateTeamPermissionInCollection
|
|
10083
|
-
* @summary Update
|
|
10416
|
+
* @summary Update an org team's permission in a collection
|
|
10084
10417
|
* @request PATCH:/collections/{collectionId}/permissions/teams/{teamId}
|
|
10085
10418
|
* @secure
|
|
10086
10419
|
*/
|
|
@@ -10097,9 +10430,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10097
10430
|
/**
|
|
10098
10431
|
* No description
|
|
10099
10432
|
*
|
|
10100
|
-
* @tags collection-
|
|
10433
|
+
* @tags collection-permissions
|
|
10101
10434
|
* @name RemoveTeamFromCollection
|
|
10102
|
-
* @summary Remove
|
|
10435
|
+
* @summary Remove an org team from a collection
|
|
10103
10436
|
* @request DELETE:/collections/{collectionId}/permissions/teams/{teamId}
|
|
10104
10437
|
* @secure
|
|
10105
10438
|
*/
|
|
@@ -10107,7 +10440,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10107
10440
|
/**
|
|
10108
10441
|
* No description
|
|
10109
10442
|
*
|
|
10110
|
-
* @tags collection-
|
|
10443
|
+
* @tags collection-permissions
|
|
10111
10444
|
* @name ListUserPermissionsInCollection
|
|
10112
10445
|
* @summary List collection user permissions
|
|
10113
10446
|
* @request GET:/collections/{collectionId}/permissions/users
|
|
@@ -10134,7 +10467,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10134
10467
|
/**
|
|
10135
10468
|
* No description
|
|
10136
10469
|
*
|
|
10137
|
-
* @tags collection-
|
|
10470
|
+
* @tags collection-permissions
|
|
10138
10471
|
* @name UpdateUserPermissionInCollection
|
|
10139
10472
|
* @summary Update a collection user permission
|
|
10140
10473
|
* @request PATCH:/collections/{collectionId}/permissions/users/{userId}
|
|
@@ -10153,7 +10486,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10153
10486
|
/**
|
|
10154
10487
|
* No description
|
|
10155
10488
|
*
|
|
10156
|
-
* @tags collection-
|
|
10489
|
+
* @tags collection-permissions
|
|
10157
10490
|
* @name RemoveUserFromCollection
|
|
10158
10491
|
* @summary Remove a user from a collection
|
|
10159
10492
|
* @request DELETE:/collections/{collectionId}/permissions/users/{userId}
|
|
@@ -10163,7 +10496,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10163
10496
|
/**
|
|
10164
10497
|
* No description
|
|
10165
10498
|
*
|
|
10166
|
-
* @tags
|
|
10499
|
+
* @tags space-permissions
|
|
10167
10500
|
* @name ListPermissionsAggregateInCollection
|
|
10168
10501
|
* @summary List all collections users permissions
|
|
10169
10502
|
* @request GET:/collections/{collectionId}/permissions/aggregate
|
|
@@ -12119,6 +12452,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
12119
12452
|
* @max 1000
|
|
12120
12453
|
*/
|
|
12121
12454
|
limit?: number;
|
|
12455
|
+
/** Sort results by language key */
|
|
12456
|
+
orderBy?: TranslationLanguage;
|
|
12122
12457
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
12123
12458
|
items: GlossaryEntry[];
|
|
12124
12459
|
}, any>>;
|
|
@@ -13024,6 +13359,169 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13024
13359
|
*/
|
|
13025
13360
|
spaceId?: string;
|
|
13026
13361
|
}, params?: RequestParams) => EventIterator<SearchAIRecommendedQuestionStream>;
|
|
13362
|
+
/**
|
|
13363
|
+
* No description
|
|
13364
|
+
*
|
|
13365
|
+
* @tags site-context
|
|
13366
|
+
* @name ListSiteContextRecords
|
|
13367
|
+
* @summary List all context records
|
|
13368
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/context-records
|
|
13369
|
+
* @secure
|
|
13370
|
+
*/
|
|
13371
|
+
listSiteContextRecords: (organizationId: string, siteId: string, query?: {
|
|
13372
|
+
/** Identifier of the page results to fetch. */
|
|
13373
|
+
page?: string;
|
|
13374
|
+
/**
|
|
13375
|
+
* The number of results per page
|
|
13376
|
+
* @min 0
|
|
13377
|
+
* @max 1000
|
|
13378
|
+
*/
|
|
13379
|
+
limit?: number;
|
|
13380
|
+
/** Filter context records by type. */
|
|
13381
|
+
type?: ContextRecordType;
|
|
13382
|
+
/** Filter context records by connector type. */
|
|
13383
|
+
connector?: ContextConnector;
|
|
13384
|
+
/** Filter context records by connection id. */
|
|
13385
|
+
connection?: string;
|
|
13386
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
13387
|
+
items: ContextRecord[];
|
|
13388
|
+
}, any>>;
|
|
13389
|
+
/**
|
|
13390
|
+
* No description
|
|
13391
|
+
*
|
|
13392
|
+
* @tags site-context
|
|
13393
|
+
* @name UpsertSiteContextRecords
|
|
13394
|
+
* @summary Create or update context records
|
|
13395
|
+
* @request PUT:/orgs/{organizationId}/sites/{siteId}/context-records
|
|
13396
|
+
* @secure
|
|
13397
|
+
*/
|
|
13398
|
+
upsertSiteContextRecords: (organizationId: string, siteId: string, data: ContextRecordInput[], params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
13399
|
+
/**
|
|
13400
|
+
* No description
|
|
13401
|
+
*
|
|
13402
|
+
* @tags site-context
|
|
13403
|
+
* @name ListSiteContextConnections
|
|
13404
|
+
* @summary List all context connections
|
|
13405
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/context-connections
|
|
13406
|
+
* @secure
|
|
13407
|
+
*/
|
|
13408
|
+
listSiteContextConnections: (organizationId: string, siteId: string, query?: {
|
|
13409
|
+
/** Identifier of the page results to fetch. */
|
|
13410
|
+
page?: string;
|
|
13411
|
+
/**
|
|
13412
|
+
* The number of results per page
|
|
13413
|
+
* @min 0
|
|
13414
|
+
* @max 1000
|
|
13415
|
+
*/
|
|
13416
|
+
limit?: number;
|
|
13417
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
13418
|
+
items: ContextConnection[];
|
|
13419
|
+
}, any>>;
|
|
13420
|
+
/**
|
|
13421
|
+
* No description
|
|
13422
|
+
*
|
|
13423
|
+
* @tags site-context
|
|
13424
|
+
* @name CreateSiteContextConnection
|
|
13425
|
+
* @summary Create a context connection
|
|
13426
|
+
* @request POST:/orgs/{organizationId}/sites/{siteId}/context-connections
|
|
13427
|
+
* @secure
|
|
13428
|
+
*/
|
|
13429
|
+
createSiteContextConnection: (organizationId: string, siteId: string, data: ContextConnectorSetup & {
|
|
13430
|
+
usageSettings?: ContextUsageSettings;
|
|
13431
|
+
}, params?: RequestParams) => Promise<HttpResponse<ContextConnection, any>>;
|
|
13432
|
+
/**
|
|
13433
|
+
* No description
|
|
13434
|
+
*
|
|
13435
|
+
* @tags site-context
|
|
13436
|
+
* @name GetSiteContextConnectionById
|
|
13437
|
+
* @summary Get a context connection
|
|
13438
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/context-connections/{siteContextConnectionId}
|
|
13439
|
+
* @secure
|
|
13440
|
+
*/
|
|
13441
|
+
getSiteContextConnectionById: (organizationId: string, siteId: string, siteContextConnectionId: string, params?: RequestParams) => Promise<HttpResponse<ContextConnection, any>>;
|
|
13442
|
+
/**
|
|
13443
|
+
* No description
|
|
13444
|
+
*
|
|
13445
|
+
* @tags site-context
|
|
13446
|
+
* @name UpdateSiteContextConnectionById
|
|
13447
|
+
* @summary Update a context connection
|
|
13448
|
+
* @request PATCH:/orgs/{organizationId}/sites/{siteId}/context-connections/{siteContextConnectionId}
|
|
13449
|
+
* @secure
|
|
13450
|
+
*/
|
|
13451
|
+
updateSiteContextConnectionById: (organizationId: string, siteId: string, siteContextConnectionId: string, data: ContextConnectorSetup | {
|
|
13452
|
+
usageSettings?: ContextUsageSettings;
|
|
13453
|
+
/** Optional label for the connection */
|
|
13454
|
+
label?: ContextConnectionLabel;
|
|
13455
|
+
}, params?: RequestParams) => Promise<HttpResponse<ContextConnection, any>>;
|
|
13456
|
+
/**
|
|
13457
|
+
* No description
|
|
13458
|
+
*
|
|
13459
|
+
* @tags site-context
|
|
13460
|
+
* @name DeleteSiteContextConnectionById
|
|
13461
|
+
* @summary Delete a context connection
|
|
13462
|
+
* @request DELETE:/orgs/{organizationId}/sites/{siteId}/context-connections/{siteContextConnectionId}
|
|
13463
|
+
* @secure
|
|
13464
|
+
*/
|
|
13465
|
+
deleteSiteContextConnectionById: (organizationId: string, siteId: string, siteContextConnectionId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
13466
|
+
/**
|
|
13467
|
+
* No description
|
|
13468
|
+
*
|
|
13469
|
+
* @tags site-context
|
|
13470
|
+
* @name SyncSiteContextConnection
|
|
13471
|
+
* @summary Trigger a sync for a context connection
|
|
13472
|
+
* @request POST:/orgs/{organizationId}/sites/{siteId}/context-connections/{siteContextConnectionId}/sync
|
|
13473
|
+
* @secure
|
|
13474
|
+
*/
|
|
13475
|
+
syncSiteContextConnection: (organizationId: string, siteId: string, siteContextConnectionId: string, params?: RequestParams) => Promise<HttpResponse<void, {
|
|
13476
|
+
error: {
|
|
13477
|
+
/** @format int32 */
|
|
13478
|
+
code: 400;
|
|
13479
|
+
message: string;
|
|
13480
|
+
};
|
|
13481
|
+
}>>;
|
|
13482
|
+
/**
|
|
13483
|
+
* No description
|
|
13484
|
+
*
|
|
13485
|
+
* @tags site-context
|
|
13486
|
+
* @name ListSiteContextTopics
|
|
13487
|
+
* @summary List all context topics
|
|
13488
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/context-topics
|
|
13489
|
+
* @secure
|
|
13490
|
+
*/
|
|
13491
|
+
listSiteContextTopics: (organizationId: string, siteId: string, query?: {
|
|
13492
|
+
/** Identifier of the page results to fetch. */
|
|
13493
|
+
page?: string;
|
|
13494
|
+
/**
|
|
13495
|
+
* The number of results per page
|
|
13496
|
+
* @min 0
|
|
13497
|
+
* @max 1000
|
|
13498
|
+
*/
|
|
13499
|
+
limit?: number;
|
|
13500
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
13501
|
+
items: ContextTopic[];
|
|
13502
|
+
}, any>>;
|
|
13503
|
+
/**
|
|
13504
|
+
* No description
|
|
13505
|
+
*
|
|
13506
|
+
* @tags site-context
|
|
13507
|
+
* @name GetSiteContextTopicById
|
|
13508
|
+
* @summary Get a context topic
|
|
13509
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/context-topics/{siteContextTopicId}
|
|
13510
|
+
* @secure
|
|
13511
|
+
*/
|
|
13512
|
+
getSiteContextTopicById: (organizationId: string, siteId: string, siteContextTopicId: string, params?: RequestParams) => Promise<HttpResponse<ContextTopic, any>>;
|
|
13513
|
+
/**
|
|
13514
|
+
* No description
|
|
13515
|
+
*
|
|
13516
|
+
* @tags site-context
|
|
13517
|
+
* @name UpdateSiteContextTopicById
|
|
13518
|
+
* @summary Update a context topic
|
|
13519
|
+
* @request PATCH:/orgs/{organizationId}/sites/{siteId}/context-topics/{siteContextTopicId}
|
|
13520
|
+
* @secure
|
|
13521
|
+
*/
|
|
13522
|
+
updateSiteContextTopicById: (organizationId: string, siteId: string, siteContextTopicId: string, data: {
|
|
13523
|
+
usageSettings: ContextUsageSettings;
|
|
13524
|
+
}, params?: RequestParams) => Promise<HttpResponse<ContextTopic, any>>;
|
|
13027
13525
|
/**
|
|
13028
13526
|
* No description
|
|
13029
13527
|
*
|
|
@@ -13298,6 +13796,22 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13298
13796
|
message: string;
|
|
13299
13797
|
};
|
|
13300
13798
|
}>>;
|
|
13799
|
+
/**
|
|
13800
|
+
* No description
|
|
13801
|
+
*
|
|
13802
|
+
* @tags site-permissions
|
|
13803
|
+
* @name InviteToSite
|
|
13804
|
+
* @summary Invite a user or a team to a site
|
|
13805
|
+
* @request POST:/orgs/{organizationId}/sites/{siteId}/permissions
|
|
13806
|
+
* @secure
|
|
13807
|
+
*/
|
|
13808
|
+
inviteToSite: (organizationId: string, siteId: string, data: InviteSiteUsersAndTeams, params?: RequestParams) => Promise<HttpResponse<void, {
|
|
13809
|
+
error: {
|
|
13810
|
+
/** @format int32 */
|
|
13811
|
+
code: 404;
|
|
13812
|
+
message: string;
|
|
13813
|
+
};
|
|
13814
|
+
}>>;
|
|
13301
13815
|
/**
|
|
13302
13816
|
* No description
|
|
13303
13817
|
*
|
|
@@ -13319,6 +13833,134 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13319
13833
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
13320
13834
|
items: UserSitePermission[];
|
|
13321
13835
|
}, any>>;
|
|
13836
|
+
/**
|
|
13837
|
+
* No description
|
|
13838
|
+
*
|
|
13839
|
+
* @tags site-users
|
|
13840
|
+
* @name ListUserPermissionsInSite
|
|
13841
|
+
* @summary List site user permissions
|
|
13842
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/permissions/users
|
|
13843
|
+
* @secure
|
|
13844
|
+
*/
|
|
13845
|
+
listUserPermissionsInSite: (organizationId: string, siteId: string, query?: {
|
|
13846
|
+
/** Identifier of the page results to fetch. */
|
|
13847
|
+
page?: string;
|
|
13848
|
+
/**
|
|
13849
|
+
* The number of results per page
|
|
13850
|
+
* @min 0
|
|
13851
|
+
* @max 1000
|
|
13852
|
+
*/
|
|
13853
|
+
limit?: number;
|
|
13854
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
13855
|
+
items: UserSitePermissionOverride[];
|
|
13856
|
+
}, {
|
|
13857
|
+
error: {
|
|
13858
|
+
/** @format int32 */
|
|
13859
|
+
code: 404;
|
|
13860
|
+
message: string;
|
|
13861
|
+
};
|
|
13862
|
+
}>>;
|
|
13863
|
+
/**
|
|
13864
|
+
* No description
|
|
13865
|
+
*
|
|
13866
|
+
* @tags site-users
|
|
13867
|
+
* @name UpdateUserPermissionInSite
|
|
13868
|
+
* @summary Update site user permissions
|
|
13869
|
+
* @request PATCH:/orgs/{organizationId}/sites/{siteId}/permissions/users/{userId}
|
|
13870
|
+
* @secure
|
|
13871
|
+
*/
|
|
13872
|
+
updateUserPermissionInSite: (organizationId: string, siteId: string, userId: string, data: {
|
|
13873
|
+
/**
|
|
13874
|
+
* "The role of a member in an organization.
|
|
13875
|
+
* "admin": Can administrate the content: create, delete spaces, ...
|
|
13876
|
+
* "create": Can create content.
|
|
13877
|
+
* "review": Can review content.
|
|
13878
|
+
* "edit": Can edit the content (live or change requests).
|
|
13879
|
+
* "comment": Can access the content and its discussions.
|
|
13880
|
+
* "read": Can access the content, but cannot update it in any way.
|
|
13881
|
+
*/
|
|
13882
|
+
role?: MemberRole;
|
|
13883
|
+
}, params?: RequestParams) => Promise<HttpResponse<void, {
|
|
13884
|
+
error: {
|
|
13885
|
+
/** @format int32 */
|
|
13886
|
+
code: 404;
|
|
13887
|
+
message: string;
|
|
13888
|
+
};
|
|
13889
|
+
}>>;
|
|
13890
|
+
/**
|
|
13891
|
+
* No description
|
|
13892
|
+
*
|
|
13893
|
+
* @tags site-users
|
|
13894
|
+
* @name RemoveUserFromSite
|
|
13895
|
+
* @summary Remove a site user
|
|
13896
|
+
* @request DELETE:/orgs/{organizationId}/sites/{siteId}/permissions/users/{userId}
|
|
13897
|
+
* @secure
|
|
13898
|
+
*/
|
|
13899
|
+
removeUserFromSite: (organizationId: string, siteId: string, userId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
13900
|
+
/**
|
|
13901
|
+
* No description
|
|
13902
|
+
*
|
|
13903
|
+
* @tags site-permissions
|
|
13904
|
+
* @name ListTeamPermissionsInSite
|
|
13905
|
+
* @summary List an org team's permission in a site
|
|
13906
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/permissions/teams
|
|
13907
|
+
* @secure
|
|
13908
|
+
*/
|
|
13909
|
+
listTeamPermissionsInSite: (organizationId: string, siteId: string, query?: {
|
|
13910
|
+
/** Identifier of the page results to fetch. */
|
|
13911
|
+
page?: string;
|
|
13912
|
+
/**
|
|
13913
|
+
* The number of results per page
|
|
13914
|
+
* @min 0
|
|
13915
|
+
* @max 1000
|
|
13916
|
+
*/
|
|
13917
|
+
limit?: number;
|
|
13918
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
13919
|
+
items: TeamSitePermissionOverride[];
|
|
13920
|
+
}, {
|
|
13921
|
+
error: {
|
|
13922
|
+
/** @format int32 */
|
|
13923
|
+
code: 404;
|
|
13924
|
+
message: string;
|
|
13925
|
+
};
|
|
13926
|
+
}>>;
|
|
13927
|
+
/**
|
|
13928
|
+
* No description
|
|
13929
|
+
*
|
|
13930
|
+
* @tags site-permissions
|
|
13931
|
+
* @name UpdateTeamPermissionInSite
|
|
13932
|
+
* @summary Update an org team's permission in a site
|
|
13933
|
+
* @request PATCH:/orgs/{organizationId}/sites/{siteId}/permissions/teams/{teamId}
|
|
13934
|
+
* @secure
|
|
13935
|
+
*/
|
|
13936
|
+
updateTeamPermissionInSite: (organizationId: string, siteId: string, teamId: string, data: {
|
|
13937
|
+
/**
|
|
13938
|
+
* "The role of a member in an organization.
|
|
13939
|
+
* "admin": Can administrate the content: create, delete spaces, ...
|
|
13940
|
+
* "create": Can create content.
|
|
13941
|
+
* "review": Can review content.
|
|
13942
|
+
* "edit": Can edit the content (live or change requests).
|
|
13943
|
+
* "comment": Can access the content and its discussions.
|
|
13944
|
+
* "read": Can access the content, but cannot update it in any way.
|
|
13945
|
+
*/
|
|
13946
|
+
role?: MemberRole;
|
|
13947
|
+
}, params?: RequestParams) => Promise<HttpResponse<void, {
|
|
13948
|
+
error: {
|
|
13949
|
+
/** @format int32 */
|
|
13950
|
+
code: 404;
|
|
13951
|
+
message: string;
|
|
13952
|
+
};
|
|
13953
|
+
}>>;
|
|
13954
|
+
/**
|
|
13955
|
+
* No description
|
|
13956
|
+
*
|
|
13957
|
+
* @tags site-permissions
|
|
13958
|
+
* @name RemoveTeamFromSite
|
|
13959
|
+
* @summary Remove an org team from a site
|
|
13960
|
+
* @request DELETE:/orgs/{organizationId}/sites/{siteId}/permissions/teams/{teamId}
|
|
13961
|
+
* @secure
|
|
13962
|
+
*/
|
|
13963
|
+
removeTeamFromSite: (organizationId: string, siteId: string, teamId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
13322
13964
|
/**
|
|
13323
13965
|
* @description Generate an AI response in a conversation.
|
|
13324
13966
|
*
|