@gitbook/api 0.28.0 → 0.30.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 +271 -54
- package/dist/index.cjs +174 -19
- package/dist/index.js +172 -19
- package/package.json +1 -1
- package/spec/openapi.json +950 -239
- package/spec/openapi.yaml +590 -148
package/dist/client.d.ts
CHANGED
|
@@ -241,6 +241,10 @@ export interface ApiInformation {
|
|
|
241
241
|
/** Date of the latest release in ISO format */
|
|
242
242
|
build: string;
|
|
243
243
|
}
|
|
244
|
+
/** The context to send when blocking/unblocking */
|
|
245
|
+
export interface BlockContext {
|
|
246
|
+
block: boolean;
|
|
247
|
+
}
|
|
244
248
|
/** The context to send when purging the CDN Cache */
|
|
245
249
|
export interface RequestPurgeCDNCacheContext {
|
|
246
250
|
/** The type of purge, e.g by tags or hosts */
|
|
@@ -248,10 +252,6 @@ export interface RequestPurgeCDNCacheContext {
|
|
|
248
252
|
/** The list of tags or hosts to purge */
|
|
249
253
|
values: string[];
|
|
250
254
|
}
|
|
251
|
-
/** The context to send when blocking/unblocking a user */
|
|
252
|
-
export interface RequestBlockUserContext {
|
|
253
|
-
block: boolean;
|
|
254
|
-
}
|
|
255
255
|
/** The context to send when triggering a content indexing. */
|
|
256
256
|
export interface TriggerContentIndexingContext {
|
|
257
257
|
/** The unique identifier of the Space to index. */
|
|
@@ -465,6 +465,8 @@ export interface ContentPosition {
|
|
|
465
465
|
before?: SpacePointer | CollectionPointer;
|
|
466
466
|
after?: SpacePointer | CollectionPointer;
|
|
467
467
|
}
|
|
468
|
+
/** Default level for a piece of content */
|
|
469
|
+
export declare type DefaultLevel = MemberRoleOrGuest | 'inherit';
|
|
468
470
|
export declare type Document = MarkdownDocument | {
|
|
469
471
|
document: JSONDocument;
|
|
470
472
|
} | object;
|
|
@@ -1068,6 +1070,10 @@ export interface Space {
|
|
|
1068
1070
|
/** Name of integration being used as the backend for Visitor Authentication */
|
|
1069
1071
|
integration: string;
|
|
1070
1072
|
};
|
|
1073
|
+
/** ID of the active revision in the space. */
|
|
1074
|
+
revision: string;
|
|
1075
|
+
/** Default level for a piece of content */
|
|
1076
|
+
defaultLevel: DefaultLevel;
|
|
1071
1077
|
}
|
|
1072
1078
|
/**
|
|
1073
1079
|
* Determines how a Space can be edited.
|
|
@@ -1444,6 +1450,12 @@ export interface Organization {
|
|
|
1444
1450
|
defaultRole?: MemberRoleOrGuest;
|
|
1445
1451
|
/** The default content for the organization */
|
|
1446
1452
|
defaultContent?: OrganizationDefaultContent;
|
|
1453
|
+
/** Whether SSO is enforced organization wide */
|
|
1454
|
+
sso?: boolean;
|
|
1455
|
+
/** If true, the organization is configured to use all our AI features. */
|
|
1456
|
+
ai?: boolean;
|
|
1457
|
+
/** If true, the organization is configured to run content audits on any space update */
|
|
1458
|
+
aiInsights?: boolean;
|
|
1447
1459
|
/** URLs associated with the object */
|
|
1448
1460
|
urls: {
|
|
1449
1461
|
/**
|
|
@@ -1456,6 +1468,8 @@ export interface Organization {
|
|
|
1456
1468
|
* @format uri
|
|
1457
1469
|
*/
|
|
1458
1470
|
app: string;
|
|
1471
|
+
/** URL of the logo of this organization, if defined. */
|
|
1472
|
+
logo?: URL;
|
|
1459
1473
|
};
|
|
1460
1474
|
}
|
|
1461
1475
|
export declare enum OrganizationType {
|
|
@@ -1580,6 +1594,36 @@ export interface OrganizationTeamMember {
|
|
|
1580
1594
|
}
|
|
1581
1595
|
/** The default content for the organization */
|
|
1582
1596
|
export declare type OrganizationDefaultContent = SpacePointer | CollectionPointer;
|
|
1597
|
+
export declare type OrganizationInvite = {
|
|
1598
|
+
/** Type of Object, always equals to "invite" */
|
|
1599
|
+
object: 'invite';
|
|
1600
|
+
/** Unique identifier for the organization invite */
|
|
1601
|
+
id: string;
|
|
1602
|
+
/** The role of the member in the organization */
|
|
1603
|
+
role: MemberRoleOrGuest;
|
|
1604
|
+
} | {
|
|
1605
|
+
/** Type of Object, always equals to "invite" */
|
|
1606
|
+
object: 'invite';
|
|
1607
|
+
/** Unique identifier for the organization invite */
|
|
1608
|
+
id: string;
|
|
1609
|
+
/** The role of the member in the organization */
|
|
1610
|
+
role: MemberRoleOrGuest;
|
|
1611
|
+
/** The role of the member in the target space */
|
|
1612
|
+
contentLevel: MemberRoleOrGuest;
|
|
1613
|
+
/** The space the member has been invited to */
|
|
1614
|
+
space: Space;
|
|
1615
|
+
} | {
|
|
1616
|
+
/** Type of Object, always equals to "invite" */
|
|
1617
|
+
object: 'invite';
|
|
1618
|
+
/** Unique identifier for the organization invite */
|
|
1619
|
+
id: string;
|
|
1620
|
+
/** The role of the member in the organization */
|
|
1621
|
+
role: MemberRoleOrGuest;
|
|
1622
|
+
/** The role of the member in the target collection */
|
|
1623
|
+
contentLevel: MemberRoleOrGuest;
|
|
1624
|
+
/** The collection the member has been invited to */
|
|
1625
|
+
collection: Collection;
|
|
1626
|
+
};
|
|
1583
1627
|
export interface Capture {
|
|
1584
1628
|
/** Unique identifier for the capture */
|
|
1585
1629
|
id: string;
|
|
@@ -1685,13 +1729,7 @@ export declare type CaptureFileRemovedEvent = BaseCaptureEvent & {
|
|
|
1685
1729
|
filename: string;
|
|
1686
1730
|
fileSnapshot: string;
|
|
1687
1731
|
};
|
|
1688
|
-
export interface
|
|
1689
|
-
/** A new title for the capture. */
|
|
1690
|
-
title?: string;
|
|
1691
|
-
/** Content of the capture. */
|
|
1692
|
-
body?: Document;
|
|
1693
|
-
}
|
|
1694
|
-
export declare type Snippet = Document & {
|
|
1732
|
+
export interface Snippet {
|
|
1695
1733
|
/** Unique identifier for the snippet */
|
|
1696
1734
|
id: string;
|
|
1697
1735
|
/** ID of the organization owning this snippet */
|
|
@@ -1733,12 +1771,10 @@ export declare type Snippet = Document & {
|
|
|
1733
1771
|
/** URL of the snippet in the app */
|
|
1734
1772
|
app: URL;
|
|
1735
1773
|
};
|
|
1736
|
-
}
|
|
1774
|
+
}
|
|
1737
1775
|
export interface UpdateSnippetSchema {
|
|
1738
1776
|
/** A new title for the snippet. */
|
|
1739
1777
|
title?: string;
|
|
1740
|
-
/** Content of the snippet. */
|
|
1741
|
-
body?: Document;
|
|
1742
1778
|
}
|
|
1743
1779
|
/** Content audit relation */
|
|
1744
1780
|
export interface ContentAuditRelation {
|
|
@@ -1784,15 +1820,13 @@ export interface ChangeRequest {
|
|
|
1784
1820
|
/** Incremental identifier of the change request */
|
|
1785
1821
|
number: number;
|
|
1786
1822
|
status: ChangeRequestStatus;
|
|
1787
|
-
/**
|
|
1788
|
-
|
|
1789
|
-
* @minLength 0
|
|
1790
|
-
* @maxLength 100
|
|
1791
|
-
*/
|
|
1792
|
-
subject: string;
|
|
1823
|
+
/** Subject of the change request */
|
|
1824
|
+
subject: ChangeRequestSubject;
|
|
1793
1825
|
createdBy: User;
|
|
1794
1826
|
createdAt: Timestamp;
|
|
1795
1827
|
updatedAt: Timestamp;
|
|
1828
|
+
/** ID of the active revision in the change request. */
|
|
1829
|
+
revision: string;
|
|
1796
1830
|
/** URLs associated with the object */
|
|
1797
1831
|
urls: {
|
|
1798
1832
|
/**
|
|
@@ -1847,6 +1881,12 @@ export declare type ChangeRequestRequestedReviewer = {
|
|
|
1847
1881
|
/** The team who was requested to review. */
|
|
1848
1882
|
team: Team;
|
|
1849
1883
|
});
|
|
1884
|
+
/**
|
|
1885
|
+
* Subject of the change request
|
|
1886
|
+
* @minLength 0
|
|
1887
|
+
* @maxLength 100
|
|
1888
|
+
*/
|
|
1889
|
+
export declare type ChangeRequestSubject = string;
|
|
1850
1890
|
export interface UpdateCommentSchema {
|
|
1851
1891
|
/** Whether the comment is resolved or not. */
|
|
1852
1892
|
resolved?: boolean;
|
|
@@ -1968,6 +2008,11 @@ export interface SearchAIAnswer {
|
|
|
1968
2008
|
sections: string[];
|
|
1969
2009
|
}[];
|
|
1970
2010
|
}
|
|
2011
|
+
export interface SearchAIAnswerStream {
|
|
2012
|
+
type: 'answer';
|
|
2013
|
+
/** Answer from AI for a question asked on a content. */
|
|
2014
|
+
answer?: SearchAIAnswer;
|
|
2015
|
+
}
|
|
1971
2016
|
export declare type SearchAIAnswerSource = {
|
|
1972
2017
|
type: 'page' | 'entity' | 'capture';
|
|
1973
2018
|
} & ({
|
|
@@ -2091,6 +2136,8 @@ export interface Collection {
|
|
|
2091
2136
|
* @deprecated
|
|
2092
2137
|
*/
|
|
2093
2138
|
collection?: string;
|
|
2139
|
+
/** Default level for a piece of content */
|
|
2140
|
+
defaultLevel: DefaultLevel;
|
|
2094
2141
|
/** URLs associated with the object */
|
|
2095
2142
|
urls: {
|
|
2096
2143
|
/**
|
|
@@ -2218,6 +2265,8 @@ export declare enum IntegrationScope {
|
|
|
2218
2265
|
SpaceGitSync = "space:git:sync",
|
|
2219
2266
|
SpaceVisitorAuth = "space:visitor:auth"
|
|
2220
2267
|
}
|
|
2268
|
+
/** A search string to filter integrations by name */
|
|
2269
|
+
export declare type IntegrationSearchQuery = any;
|
|
2221
2270
|
/** Categories for which the integration is listed in the marketplace */
|
|
2222
2271
|
export declare type IntegrationCategories = IntegrationCategory[];
|
|
2223
2272
|
/** Format the custom block as a codeblock */
|
|
@@ -2975,6 +3024,14 @@ export interface UserRiskEvaluation {
|
|
|
2975
3024
|
emailVerified: boolean;
|
|
2976
3025
|
activeDaysRemaining: number;
|
|
2977
3026
|
}
|
|
3027
|
+
/** Reason for a space to be blocked */
|
|
3028
|
+
export declare enum SpaceBlockReason {
|
|
3029
|
+
DMCA = "DMCA",
|
|
3030
|
+
THREAT_TYPE_UNSPECIFIED = "THREAT_TYPE_UNSPECIFIED",
|
|
3031
|
+
MALWARE = "MALWARE",
|
|
3032
|
+
SOCIAL_ENGINEERING = "SOCIAL_ENGINEERING",
|
|
3033
|
+
UNWANTED_SOFTWARE = "UNWANTED_SOFTWARE"
|
|
3034
|
+
}
|
|
2978
3035
|
/** JWT tokens to authenticate in Hive for all content. */
|
|
2979
3036
|
export interface HiveAccessToken {
|
|
2980
3037
|
contents: Record<string, string>;
|
|
@@ -3059,6 +3116,7 @@ export interface ContentKitButton {
|
|
|
3059
3116
|
/** Text input to prompt the user. */
|
|
3060
3117
|
export interface ContentKitTextInput {
|
|
3061
3118
|
type: 'textinput';
|
|
3119
|
+
disabled?: boolean;
|
|
3062
3120
|
/** State binding. The value of the input will be stored as a property in the state named after this ID. */
|
|
3063
3121
|
state: string;
|
|
3064
3122
|
/** Text value to initialize the input with. */
|
|
@@ -3247,6 +3305,7 @@ export interface ContentKitSelectOption {
|
|
|
3247
3305
|
/** Creates a drop down menu with a list of options for a user to choose. */
|
|
3248
3306
|
export interface ContentKitSelect {
|
|
3249
3307
|
type: 'select';
|
|
3308
|
+
disabled?: boolean;
|
|
3250
3309
|
/** State binding. The value of the input will be stored as a property in the state named after this ID. */
|
|
3251
3310
|
state: string;
|
|
3252
3311
|
/** Value to initialize the select with. */
|
|
@@ -3268,6 +3327,7 @@ export interface ContentKitSelect {
|
|
|
3268
3327
|
/** Renders a boolean input. */
|
|
3269
3328
|
export interface ContentKitSwitch {
|
|
3270
3329
|
type: 'switch';
|
|
3330
|
+
disabled?: boolean;
|
|
3271
3331
|
/** State binding. The value of the input will be stored as a property in the state named after this ID. */
|
|
3272
3332
|
state: string;
|
|
3273
3333
|
/** Value to initialize the switch with. */
|
|
@@ -3288,6 +3348,7 @@ export interface ContentKitCheckbox {
|
|
|
3288
3348
|
}
|
|
3289
3349
|
export interface ContentKitRadio {
|
|
3290
3350
|
type: 'radio';
|
|
3351
|
+
disabled?: boolean;
|
|
3291
3352
|
/** State binding. The value of the input will be stored as a property in the state named after this ID. */
|
|
3292
3353
|
state: string;
|
|
3293
3354
|
/** Value to store in th state when the checkbox is selected. */
|
|
@@ -3335,7 +3396,7 @@ export interface ContentKitURL {
|
|
|
3335
3396
|
query?: Record<string, string | ContentKitDynamicBinding>;
|
|
3336
3397
|
}
|
|
3337
3398
|
/** Channel to subscribe to for API updates. */
|
|
3338
|
-
export declare type SubscriptionChannel = SpaceInfoChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel | SpaceEntitiesChannel | SpaceCustomFieldsChannel | BackofficeUserInfoChannel | SpaceIntegrationsChannel | OrganizationCustomFieldsChannel | UserAPITokensChannel | UserOrganizationsChannel | UserProfileChannel | ChangeRequestReviewsChannel | CollectionChannel | CollectionPublishingCustomizationChannel | {
|
|
3399
|
+
export declare type SubscriptionChannel = SpaceInfoChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel | SpaceEntitiesChannel | SpaceCustomFieldsChannel | BackofficeUserInfoChannel | SpaceIntegrationsChannel | OrganizationCustomFieldsChannel | UserAPITokensChannel | UserOrganizationsChannel | UserProfileChannel | ChangeRequestChannel | ChangeRequestsChannel | ChangeRequestReviewsChannel | CollectionChannel | CollectionPublishingCustomizationChannel | {
|
|
3339
3400
|
channel: 'organization';
|
|
3340
3401
|
organization: string;
|
|
3341
3402
|
} | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationEntitiesChannel | OrganizationSchemasChannel | OrganizationCapturesChannel | OrganizationContentAuditsChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | {
|
|
@@ -3414,6 +3475,15 @@ export interface CollectionPublishingCustomizationChannel {
|
|
|
3414
3475
|
channel: 'collection-publishing-customization';
|
|
3415
3476
|
collection: string;
|
|
3416
3477
|
}
|
|
3478
|
+
export interface ChangeRequestChannel {
|
|
3479
|
+
channel: 'space-change-request';
|
|
3480
|
+
space: string;
|
|
3481
|
+
changeRequest: string;
|
|
3482
|
+
}
|
|
3483
|
+
export interface ChangeRequestsChannel {
|
|
3484
|
+
channel: 'space-change-requests';
|
|
3485
|
+
space: string;
|
|
3486
|
+
}
|
|
3417
3487
|
export interface ChangeRequestReviewsChannel {
|
|
3418
3488
|
channel: 'space-change-request-reviews';
|
|
3419
3489
|
space: string;
|
|
@@ -3574,6 +3644,7 @@ export interface CustomizationSettings {
|
|
|
3574
3644
|
primaryColor: CustomizationThemedColor;
|
|
3575
3645
|
corners: CustomizationCorners;
|
|
3576
3646
|
font: CustomizationFont;
|
|
3647
|
+
background?: CustomizationBackground;
|
|
3577
3648
|
};
|
|
3578
3649
|
internationalization: {
|
|
3579
3650
|
/** Language for the UI element */
|
|
@@ -3693,6 +3764,10 @@ export declare enum CustomizationCorners {
|
|
|
3693
3764
|
Straight = "straight",
|
|
3694
3765
|
Rounded = "rounded"
|
|
3695
3766
|
}
|
|
3767
|
+
export declare enum CustomizationBackground {
|
|
3768
|
+
Plain = "plain",
|
|
3769
|
+
Match = "match"
|
|
3770
|
+
}
|
|
3696
3771
|
export interface CustomizationThemedURL {
|
|
3697
3772
|
light: URL;
|
|
3698
3773
|
dark: URL;
|
|
@@ -3723,6 +3798,22 @@ export declare enum PageFeedbackRating {
|
|
|
3723
3798
|
Ok = "ok",
|
|
3724
3799
|
Good = "good"
|
|
3725
3800
|
}
|
|
3801
|
+
export interface ShareLink {
|
|
3802
|
+
/** Type of Object, always equals to "share-link" */
|
|
3803
|
+
object: 'share-link';
|
|
3804
|
+
/** Unique identifier for the share-link */
|
|
3805
|
+
id: string;
|
|
3806
|
+
createdAt: Timestamp;
|
|
3807
|
+
/** Name of the share link */
|
|
3808
|
+
name?: ShareLinkName;
|
|
3809
|
+
active?: boolean;
|
|
3810
|
+
}
|
|
3811
|
+
/**
|
|
3812
|
+
* Name of the share link
|
|
3813
|
+
* @minLength 0
|
|
3814
|
+
* @maxLength 50
|
|
3815
|
+
*/
|
|
3816
|
+
export declare type ShareLinkName = string;
|
|
3726
3817
|
export declare type QueryParamsType = Record<string | number, any>;
|
|
3727
3818
|
export declare type ResponseFormat = keyof Omit<Body, 'body' | 'bodyUsed'>;
|
|
3728
3819
|
export interface FullRequestParams extends Omit<RequestInit, 'body'> {
|
|
@@ -3780,6 +3871,7 @@ export declare class HttpClient<SecurityDataType = unknown> {
|
|
|
3780
3871
|
protected createAbortSignal: (cancelToken: CancelToken) => AbortSignal | undefined;
|
|
3781
3872
|
abortRequest: (cancelToken: CancelToken) => void;
|
|
3782
3873
|
request: <T = any, E = any>({ body, secure, path, type, query, format, baseUrl, cancelToken, ...params }: FullRequestParams) => Promise<HttpResponse<T, E>>;
|
|
3874
|
+
streamRequest: <T, E>({ path, baseUrl, cancelToken, secure, ...params }: FullRequestParams) => AsyncGenerator<T, void, unknown>;
|
|
3783
3875
|
}
|
|
3784
3876
|
/**
|
|
3785
3877
|
* @title GitBook API
|
|
@@ -3934,6 +4026,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3934
4026
|
visibility?: ContentVisibility;
|
|
3935
4027
|
/** The integration property, if set, is ignored. */
|
|
3936
4028
|
visitorAuth?: any;
|
|
4029
|
+
/** Default level for a piece of content */
|
|
4030
|
+
defaultLevel?: DefaultLevel;
|
|
3937
4031
|
} & ({
|
|
3938
4032
|
/** Unicode codepoint or character of the emoji */
|
|
3939
4033
|
emoji: Emoji;
|
|
@@ -4090,6 +4184,19 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4090
4184
|
/** Answer from AI for a question asked on a content. */
|
|
4091
4185
|
answer?: SearchAIAnswer;
|
|
4092
4186
|
}, Error>>;
|
|
4187
|
+
/**
|
|
4188
|
+
* No description
|
|
4189
|
+
*
|
|
4190
|
+
* @name StreamAskInSpace
|
|
4191
|
+
* @summary Ask a question to an AI within the context of the space and stream the answer as a Server-Sent Events URL.
|
|
4192
|
+
* @request GET:/spaces/{spaceId}/search/ask/stream
|
|
4193
|
+
* @secure
|
|
4194
|
+
*/
|
|
4195
|
+
streamAskInSpace: (spaceId: string, query: {
|
|
4196
|
+
query: string;
|
|
4197
|
+
/** Output format for the content. */
|
|
4198
|
+
format?: 'document' | 'markdown';
|
|
4199
|
+
}, params?: RequestParams) => AsyncGenerator<SearchAIAnswerStream, void, unknown>;
|
|
4093
4200
|
/**
|
|
4094
4201
|
* No description
|
|
4095
4202
|
*
|
|
@@ -4273,7 +4380,10 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4273
4380
|
* @request GET:/spaces/{spaceId}/documents/{documentId}
|
|
4274
4381
|
* @secure
|
|
4275
4382
|
*/
|
|
4276
|
-
getDocumentById: (spaceId: string, documentId: string,
|
|
4383
|
+
getDocumentById: (spaceId: string, documentId: string, query?: {
|
|
4384
|
+
/** Version of the schema used for the document. */
|
|
4385
|
+
schema?: 'current' | 'next';
|
|
4386
|
+
}, params?: RequestParams) => Promise<HttpResponse<JSONDocument, Error>>;
|
|
4277
4387
|
/**
|
|
4278
4388
|
* No description
|
|
4279
4389
|
*
|
|
@@ -4283,10 +4393,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4283
4393
|
* @request POST:/spaces/{spaceId}/change-requests
|
|
4284
4394
|
* @secure
|
|
4285
4395
|
*/
|
|
4286
|
-
createChangeRequest: (spaceId: string, data: RequestCreateChangeRequest, params?: RequestParams) => Promise<HttpResponse<ChangeRequest
|
|
4287
|
-
/** @deprecated */
|
|
4288
|
-
changeRequest: string;
|
|
4289
|
-
}, Error>>;
|
|
4396
|
+
createChangeRequest: (spaceId: string, data: RequestCreateChangeRequest, params?: RequestParams) => Promise<HttpResponse<ChangeRequest, Error>>;
|
|
4290
4397
|
/**
|
|
4291
4398
|
* No description
|
|
4292
4399
|
*
|
|
@@ -4325,6 +4432,19 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4325
4432
|
message: string;
|
|
4326
4433
|
};
|
|
4327
4434
|
}>>;
|
|
4435
|
+
/**
|
|
4436
|
+
* No description
|
|
4437
|
+
*
|
|
4438
|
+
* @tags spaces
|
|
4439
|
+
* @name UpdateChangeRequestById
|
|
4440
|
+
* @summary Update the details of a change request
|
|
4441
|
+
* @request PATCH:/spaces/{spaceId}/change-requests/{changeRequestId}
|
|
4442
|
+
* @secure
|
|
4443
|
+
*/
|
|
4444
|
+
updateChangeRequestById: (spaceId: string, changeRequestId: string | number, data: {
|
|
4445
|
+
/** Subject of the change request */
|
|
4446
|
+
subject?: ChangeRequestSubject;
|
|
4447
|
+
}, params?: RequestParams) => Promise<HttpResponse<ChangeRequest, Error>>;
|
|
4328
4448
|
/**
|
|
4329
4449
|
* No description
|
|
4330
4450
|
*
|
|
@@ -5076,6 +5196,43 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5076
5196
|
/** Temporary URL to print the content. The URL will work for 1h. */
|
|
5077
5197
|
url: URL;
|
|
5078
5198
|
}, Error>>;
|
|
5199
|
+
/**
|
|
5200
|
+
* No description
|
|
5201
|
+
*
|
|
5202
|
+
* @tags spaces
|
|
5203
|
+
* @name CreateSpaceShareLink
|
|
5204
|
+
* @summary Creates a new space share link
|
|
5205
|
+
* @request POST:/spaces/{spaceId}/share-links
|
|
5206
|
+
* @secure
|
|
5207
|
+
*/
|
|
5208
|
+
createSpaceShareLink: (spaceId: string, data: {
|
|
5209
|
+
/** Name of the share link */
|
|
5210
|
+
name: ShareLinkName;
|
|
5211
|
+
}, params?: RequestParams) => Promise<HttpResponse<ShareLink, Error>>;
|
|
5212
|
+
/**
|
|
5213
|
+
* No description
|
|
5214
|
+
*
|
|
5215
|
+
* @tags spaces
|
|
5216
|
+
* @name UpdateSpaceShareLinkById
|
|
5217
|
+
* @summary Update the details of a space share link
|
|
5218
|
+
* @request PATCH:/spaces/{spaceId}/share-links/{shareLinkId}
|
|
5219
|
+
* @secure
|
|
5220
|
+
*/
|
|
5221
|
+
updateSpaceShareLinkById: (spaceId: string, shareLinkId: string, data: {
|
|
5222
|
+
active?: boolean;
|
|
5223
|
+
/** Name of the share link */
|
|
5224
|
+
name?: ShareLinkName;
|
|
5225
|
+
}, params?: RequestParams) => Promise<HttpResponse<ShareLink, Error>>;
|
|
5226
|
+
/**
|
|
5227
|
+
* No description
|
|
5228
|
+
*
|
|
5229
|
+
* @tags spaces
|
|
5230
|
+
* @name DeleteSpaceShareLinkById
|
|
5231
|
+
* @summary Deletes a space share link
|
|
5232
|
+
* @request DELETE:/spaces/{spaceId}/share-links/{shareLinkId}
|
|
5233
|
+
* @secure
|
|
5234
|
+
*/
|
|
5235
|
+
deleteSpaceShareLinkById: (spaceId: string, shareLinkId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
5079
5236
|
};
|
|
5080
5237
|
collections: {
|
|
5081
5238
|
/**
|
|
@@ -5112,6 +5269,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5112
5269
|
title?: CollectionTitle;
|
|
5113
5270
|
/** Description of the collection */
|
|
5114
5271
|
description?: CollectionDescription;
|
|
5272
|
+
/** Default level for a piece of content */
|
|
5273
|
+
defaultLevel?: DefaultLevel;
|
|
5115
5274
|
}, params?: RequestParams) => Promise<HttpResponse<Collection, Error>>;
|
|
5116
5275
|
/**
|
|
5117
5276
|
* No description
|
|
@@ -5281,6 +5440,43 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5281
5440
|
message: string;
|
|
5282
5441
|
};
|
|
5283
5442
|
}>>;
|
|
5443
|
+
/**
|
|
5444
|
+
* No description
|
|
5445
|
+
*
|
|
5446
|
+
* @tags collections
|
|
5447
|
+
* @name CreateCollectionShareLink
|
|
5448
|
+
* @summary Creates a new collection share link
|
|
5449
|
+
* @request POST:/collections/{collectionId}/share-links
|
|
5450
|
+
* @secure
|
|
5451
|
+
*/
|
|
5452
|
+
createCollectionShareLink: (collectionId: string, data: {
|
|
5453
|
+
/** Name of the share link */
|
|
5454
|
+
name: ShareLinkName;
|
|
5455
|
+
}, params?: RequestParams) => Promise<HttpResponse<ShareLink, Error>>;
|
|
5456
|
+
/**
|
|
5457
|
+
* No description
|
|
5458
|
+
*
|
|
5459
|
+
* @tags collections
|
|
5460
|
+
* @name UpdateCollectionShareLinkById
|
|
5461
|
+
* @summary Update the details of a collection share link
|
|
5462
|
+
* @request PATCH:/collections/{collectionId}/share-links/{shareLinkId}
|
|
5463
|
+
* @secure
|
|
5464
|
+
*/
|
|
5465
|
+
updateCollectionShareLinkById: (collectionId: string, shareLinkId: string, data: {
|
|
5466
|
+
active?: boolean;
|
|
5467
|
+
/** Name of the share link */
|
|
5468
|
+
name?: ShareLinkName;
|
|
5469
|
+
}, params?: RequestParams) => Promise<HttpResponse<ShareLink, Error>>;
|
|
5470
|
+
/**
|
|
5471
|
+
* No description
|
|
5472
|
+
*
|
|
5473
|
+
* @tags collections
|
|
5474
|
+
* @name DeleteCollectionShareLinkById
|
|
5475
|
+
* @summary Deletes a collection share link
|
|
5476
|
+
* @request DELETE:/collections/{collectionId}/share-links/{shareLinkId}
|
|
5477
|
+
* @secure
|
|
5478
|
+
*/
|
|
5479
|
+
deleteCollectionShareLinkById: (collectionId: string, shareLinkId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
5284
5480
|
};
|
|
5285
5481
|
integrations: {
|
|
5286
5482
|
/**
|
|
@@ -5297,6 +5493,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5297
5493
|
page?: string;
|
|
5298
5494
|
/** The number of results per page */
|
|
5299
5495
|
limit?: number;
|
|
5496
|
+
/** A search string to filter integrations by name */
|
|
5497
|
+
search?: any;
|
|
5300
5498
|
/** Filter the integrations by category */
|
|
5301
5499
|
category?: IntegrationCategory;
|
|
5302
5500
|
/**
|
|
@@ -5729,6 +5927,10 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5729
5927
|
/** The role of a member in an organization, null for guests */
|
|
5730
5928
|
defaultRole?: MemberRoleOrGuest;
|
|
5731
5929
|
defaultContent?: OrganizationDefaultContent | null;
|
|
5930
|
+
logo?: URL | null;
|
|
5931
|
+
sso?: boolean;
|
|
5932
|
+
ai?: boolean;
|
|
5933
|
+
aiInsights?: boolean;
|
|
5732
5934
|
}, params?: RequestParams) => Promise<HttpResponse<Organization, Error | {
|
|
5733
5935
|
error: {
|
|
5734
5936
|
/** @format int32 */
|
|
@@ -6006,6 +6208,31 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6006
6208
|
* @secure
|
|
6007
6209
|
*/
|
|
6008
6210
|
joinOrganizationWithInvite: (organizationId: string, inviteId: string, params?: RequestParams) => Promise<HttpResponse<object, Error>>;
|
|
6211
|
+
/**
|
|
6212
|
+
* No description
|
|
6213
|
+
*
|
|
6214
|
+
* @tags organizations
|
|
6215
|
+
* @name UpdateOrganizationInviteById
|
|
6216
|
+
* @summary Update an organization invite.
|
|
6217
|
+
* @request PATCH:/orgs/{organizationId}/invites/{inviteId}
|
|
6218
|
+
* @secure
|
|
6219
|
+
*/
|
|
6220
|
+
updateOrganizationInviteById: (organizationId: string, inviteId: string, data: {
|
|
6221
|
+
/** The role of a member in an organization, null for guests */
|
|
6222
|
+
role?: MemberRoleOrGuest;
|
|
6223
|
+
/** The role of a member in an organization, null for guests */
|
|
6224
|
+
contentLevel?: MemberRoleOrGuest;
|
|
6225
|
+
}, params?: RequestParams) => Promise<HttpResponse<OrganizationInvite, Error>>;
|
|
6226
|
+
/**
|
|
6227
|
+
* No description
|
|
6228
|
+
*
|
|
6229
|
+
* @tags organizations
|
|
6230
|
+
* @name DeleteOrganizationInviteById
|
|
6231
|
+
* @summary Deletes an organization invite.
|
|
6232
|
+
* @request DELETE:/orgs/{organizationId}/invites/{inviteId}
|
|
6233
|
+
* @secure
|
|
6234
|
+
*/
|
|
6235
|
+
deleteOrganizationInviteById: (organizationId: string, inviteId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
6009
6236
|
/**
|
|
6010
6237
|
* No description
|
|
6011
6238
|
*
|
|
@@ -6252,6 +6479,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6252
6479
|
page?: string;
|
|
6253
6480
|
/** The number of results per page */
|
|
6254
6481
|
limit?: number;
|
|
6482
|
+
/** A search string to filter integrations by name */
|
|
6483
|
+
search?: any;
|
|
6255
6484
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
6256
6485
|
items: Integration[];
|
|
6257
6486
|
}, Error>>;
|
|
@@ -6287,6 +6516,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6287
6516
|
page?: string;
|
|
6288
6517
|
/** The number of results per page */
|
|
6289
6518
|
limit?: number;
|
|
6519
|
+
/** A search string to filter integrations by name */
|
|
6520
|
+
search?: any;
|
|
6290
6521
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
6291
6522
|
items: {
|
|
6292
6523
|
/** Installation of an integration on an account */
|
|
@@ -6462,28 +6693,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6462
6693
|
/** Output format for the content. */
|
|
6463
6694
|
format?: 'document' | 'markdown';
|
|
6464
6695
|
}, params?: RequestParams) => Promise<HttpResponse<Capture, Error>>;
|
|
6465
|
-
/**
|
|
6466
|
-
* No description
|
|
6467
|
-
*
|
|
6468
|
-
* @tags organizations
|
|
6469
|
-
* @name DeleteCapture
|
|
6470
|
-
* @summary Delete a capture by its ID. Deprecated, use deleteSnippet.
|
|
6471
|
-
* @request DELETE:/orgs/{organizationId}/captures/{captureId}
|
|
6472
|
-
* @deprecated
|
|
6473
|
-
* @secure
|
|
6474
|
-
*/
|
|
6475
|
-
deleteCapture: (organizationId: string, captureId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
6476
|
-
/**
|
|
6477
|
-
* No description
|
|
6478
|
-
*
|
|
6479
|
-
* @tags organizations
|
|
6480
|
-
* @name UpdateCapture
|
|
6481
|
-
* @summary Update an existing capture. Deprecated, use updateSnippet.
|
|
6482
|
-
* @request PUT:/orgs/{organizationId}/captures/{captureId}
|
|
6483
|
-
* @deprecated
|
|
6484
|
-
* @secure
|
|
6485
|
-
*/
|
|
6486
|
-
updateCapture: (organizationId: string, captureId: string, data: UpdateCaptureSchema, params?: RequestParams) => Promise<HttpResponse<Capture, Error>>;
|
|
6487
6696
|
/**
|
|
6488
6697
|
* No description
|
|
6489
6698
|
*
|
|
@@ -6523,8 +6732,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6523
6732
|
* @secure
|
|
6524
6733
|
*/
|
|
6525
6734
|
listSnippets: (organizationId: string, query?: {
|
|
6526
|
-
/** Output format for the content. */
|
|
6527
|
-
format?: 'document' | 'markdown';
|
|
6528
6735
|
/** Identifier of the page results to fetch. */
|
|
6529
6736
|
page?: string;
|
|
6530
6737
|
/** The number of results per page */
|
|
@@ -6553,10 +6760,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6553
6760
|
* @request GET:/orgs/{organizationId}/snippets/{snippetId}
|
|
6554
6761
|
* @secure
|
|
6555
6762
|
*/
|
|
6556
|
-
getSnippet: (organizationId: string, snippetId: string,
|
|
6557
|
-
/** Output format for the content. */
|
|
6558
|
-
format?: 'document' | 'markdown';
|
|
6559
|
-
}, params?: RequestParams) => Promise<HttpResponse<Snippet, Error>>;
|
|
6763
|
+
getSnippet: (organizationId: string, snippetId: string, params?: RequestParams) => Promise<HttpResponse<Snippet, Error>>;
|
|
6560
6764
|
/**
|
|
6561
6765
|
* No description
|
|
6562
6766
|
*
|
|
@@ -6655,6 +6859,19 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6655
6859
|
* @secure
|
|
6656
6860
|
*/
|
|
6657
6861
|
getRecommendedQuestionsInOrganization: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<SearchAIRecommendedQuestions, Error>>;
|
|
6862
|
+
/**
|
|
6863
|
+
* No description
|
|
6864
|
+
*
|
|
6865
|
+
* @name StreamAskInOrganization
|
|
6866
|
+
* @summary Ask a question to an AI across spaces that is accessible by the currently authenticated target and stream the answer as a Server-Sent Events URL.
|
|
6867
|
+
* @request GET:/orgs/{organizationId}/ask/stream
|
|
6868
|
+
* @secure
|
|
6869
|
+
*/
|
|
6870
|
+
streamAskInOrganization: (organizationId: string, query: {
|
|
6871
|
+
query: string;
|
|
6872
|
+
/** Output format for the content. */
|
|
6873
|
+
format?: 'document' | 'markdown';
|
|
6874
|
+
}, params?: RequestParams) => AsyncGenerator<SearchAIAnswerStream, void, unknown>;
|
|
6658
6875
|
/**
|
|
6659
6876
|
* No description
|
|
6660
6877
|
*
|