@gitbook/api 0.153.0 → 0.155.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 +73 -35
- package/dist/constants.d.ts +3 -1
- package/dist/index.cjs +17 -27
- package/dist/index.js +13 -25
- package/package.json +1 -1
- package/spec/openapi.json +215 -70
- package/spec/openapi.yaml +143 -47
package/dist/client.d.ts
CHANGED
|
@@ -117,7 +117,7 @@ export type MergeRule = {
|
|
|
117
117
|
/** List of user IDs. */
|
|
118
118
|
users: string[];
|
|
119
119
|
} | {
|
|
120
|
-
rule: 'require_at_least_one_review' | 'require_all_reviews_approved' | 'require_agent_review' | 'require_up_to_date_change_request' | 'require_change_request_subject' | 'require_change_request_description' | 'require_author_to_merge';
|
|
120
|
+
rule: 'require_at_least_one_review' | 'require_at_least_one_approved_review' | 'require_all_reviews_approved' | 'require_agent_review' | 'require_up_to_date_change_request' | 'require_change_request_subject' | 'require_change_request_description' | 'require_author_to_merge';
|
|
121
121
|
} | {
|
|
122
122
|
rule: 'custom';
|
|
123
123
|
/** Expression to evaluate */
|
|
@@ -585,26 +585,12 @@ export declare enum DocumentTextColor {
|
|
|
585
585
|
Warning = "$warning",
|
|
586
586
|
Danger = "$danger"
|
|
587
587
|
}
|
|
588
|
-
export declare enum DocumentTextBackgroundColor {
|
|
589
|
-
Default = "default",
|
|
590
|
-
Green = "green",
|
|
591
|
-
Blue = "blue",
|
|
592
|
-
Red = "red",
|
|
593
|
-
Orange = "orange",
|
|
594
|
-
Yellow = "yellow",
|
|
595
|
-
Purple = "purple",
|
|
596
|
-
Primary = "$primary",
|
|
597
|
-
Info = "$info",
|
|
598
|
-
Success = "$success",
|
|
599
|
-
Warning = "$warning",
|
|
600
|
-
Danger = "$danger"
|
|
601
|
-
}
|
|
602
588
|
export interface DocumentMarkColor {
|
|
603
589
|
object: 'mark';
|
|
604
590
|
type: 'color';
|
|
605
591
|
data: {
|
|
606
592
|
text: DocumentTextColor;
|
|
607
|
-
background:
|
|
593
|
+
background: DocumentTextColor;
|
|
608
594
|
};
|
|
609
595
|
}
|
|
610
596
|
export interface DocumentMarkSuperscript {
|
|
@@ -1011,7 +997,7 @@ export interface DocumentBlockDivider {
|
|
|
1011
997
|
isVoid: true;
|
|
1012
998
|
data: object;
|
|
1013
999
|
}
|
|
1014
|
-
export type DocumentBlocksTopLevels = DocumentBlocksEssentials | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTable | DocumentBlockOpenAPI | DocumentBlockOpenAPIOperation | DocumentBlockOpenAPISchemas | DocumentBlockOpenAPIWebhook | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockReusableContent | DocumentBlockStepper;
|
|
1000
|
+
export type DocumentBlocksTopLevels = DocumentBlocksEssentials | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTable | DocumentBlockOpenAPI | DocumentBlockOpenAPIOperation | DocumentBlockOpenAPISchemas | DocumentBlockOpenAPIWebhook | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockReusableContent | DocumentBlockStepper | DocumentBlockIf;
|
|
1015
1001
|
export interface DocumentBlockIf {
|
|
1016
1002
|
object: 'block';
|
|
1017
1003
|
type: 'if';
|
|
@@ -1303,7 +1289,7 @@ export interface DocumentBlockColumn {
|
|
|
1303
1289
|
object: 'block';
|
|
1304
1290
|
type: 'column';
|
|
1305
1291
|
key?: string;
|
|
1306
|
-
nodes: (DocumentBlocksEssentials | DocumentBlockImages | DocumentBlockCode | DocumentBlockHint | DocumentBlockContentRef | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockFile | DocumentBlockIntegration | DocumentBlockMath | DocumentBlockQuote | DocumentBlockTable | DocumentBlockExpandable)[];
|
|
1292
|
+
nodes: (DocumentBlocksEssentials | DocumentBlockImages | DocumentBlockCode | DocumentBlockHint | DocumentBlockContentRef | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockFile | DocumentBlockIntegration | DocumentBlockMath | DocumentBlockQuote | DocumentBlockTable | DocumentBlockExpandable | DocumentBlockStepper)[];
|
|
1307
1293
|
isVoid?: false;
|
|
1308
1294
|
data: {
|
|
1309
1295
|
width?: Length;
|
|
@@ -1353,6 +1339,13 @@ export interface DocumentInlineMention {
|
|
|
1353
1339
|
};
|
|
1354
1340
|
isVoid: true;
|
|
1355
1341
|
}
|
|
1342
|
+
export type DocumentAction = {
|
|
1343
|
+
action: 'search';
|
|
1344
|
+
query?: string;
|
|
1345
|
+
} | {
|
|
1346
|
+
action: 'ask';
|
|
1347
|
+
query?: string;
|
|
1348
|
+
};
|
|
1356
1349
|
export interface DocumentInlineButton {
|
|
1357
1350
|
object: 'inline';
|
|
1358
1351
|
type: 'button';
|
|
@@ -1362,10 +1355,12 @@ export interface DocumentInlineButton {
|
|
|
1362
1355
|
kind: 'primary' | 'secondary';
|
|
1363
1356
|
/** Name of the icon */
|
|
1364
1357
|
icon?: Icon;
|
|
1365
|
-
} & {
|
|
1358
|
+
} & ({
|
|
1366
1359
|
/** A relative reference to content in GitBook. */
|
|
1367
1360
|
ref: ContentRef;
|
|
1368
|
-
}
|
|
1361
|
+
} | {
|
|
1362
|
+
action: DocumentAction;
|
|
1363
|
+
});
|
|
1369
1364
|
isVoid: true;
|
|
1370
1365
|
}
|
|
1371
1366
|
export interface JSONDocument {
|
|
@@ -2275,6 +2270,14 @@ export interface ContentReferenceUsage {
|
|
|
2275
2270
|
/** Pages locations where a link to the target is found. */
|
|
2276
2271
|
locationReferences: ContentLocation[];
|
|
2277
2272
|
}
|
|
2273
|
+
/**
|
|
2274
|
+
* The field to sort change requests by. Defaults to 'updatedAt'.
|
|
2275
|
+
* @default "updatedAt"
|
|
2276
|
+
*/
|
|
2277
|
+
export declare enum ChangeRequestOrderBy {
|
|
2278
|
+
UpdatedAt = "updatedAt",
|
|
2279
|
+
CreatedAt = "createdAt"
|
|
2280
|
+
}
|
|
2278
2281
|
/** Status of a change request review. */
|
|
2279
2282
|
export declare enum ChangeRequestReviewStatus {
|
|
2280
2283
|
ChangesRequested = "changes-requested",
|
|
@@ -3549,6 +3552,8 @@ export interface Site {
|
|
|
3549
3552
|
id: string;
|
|
3550
3553
|
/** The type of the site */
|
|
3551
3554
|
type: SiteType;
|
|
3555
|
+
/** The currently applied type of the site. For example, frozen sites will have this set to Basic. */
|
|
3556
|
+
appliedType: SiteType;
|
|
3552
3557
|
/** Title of the site */
|
|
3553
3558
|
title: SiteTitle;
|
|
3554
3559
|
icon?: CustomizationFavicon | null;
|
|
@@ -5266,6 +5271,16 @@ export declare enum CustomizationAIMode {
|
|
|
5266
5271
|
Search = "search",
|
|
5267
5272
|
Assistant = "assistant"
|
|
5268
5273
|
}
|
|
5274
|
+
/**
|
|
5275
|
+
* @minLength 3
|
|
5276
|
+
* @maxLength 64
|
|
5277
|
+
*/
|
|
5278
|
+
export type CustomizationSuggestedQuestion = string;
|
|
5279
|
+
/**
|
|
5280
|
+
* Suggested questions to display at the start of the chosen AI mode.
|
|
5281
|
+
* @maxItems 5
|
|
5282
|
+
*/
|
|
5283
|
+
export type CustomizationSuggestedQuestions = CustomizationSuggestedQuestion[];
|
|
5269
5284
|
/**
|
|
5270
5285
|
* How external links should open when clicked.
|
|
5271
5286
|
* - `self`: External links open in the current tab.
|
|
@@ -5381,6 +5396,8 @@ export interface SiteCustomizationSettings {
|
|
|
5381
5396
|
};
|
|
5382
5397
|
ai: {
|
|
5383
5398
|
mode: CustomizationAIMode;
|
|
5399
|
+
/** Suggested questions to display at the start of the chosen AI mode. */
|
|
5400
|
+
suggestions?: CustomizationSuggestedQuestions;
|
|
5384
5401
|
};
|
|
5385
5402
|
advancedCustomization: {
|
|
5386
5403
|
/** If true, Advanced customization is enabled */
|
|
@@ -5593,12 +5610,18 @@ export interface AIMessageContext {
|
|
|
5593
5610
|
pageId: string;
|
|
5594
5611
|
};
|
|
5595
5612
|
}
|
|
5613
|
+
export interface AIAttachmentImage {
|
|
5614
|
+
type: 'image';
|
|
5615
|
+
url: URL;
|
|
5616
|
+
}
|
|
5617
|
+
export type AIAttachment = AIAttachmentImage;
|
|
5596
5618
|
/** Input version of an AI message. */
|
|
5597
5619
|
export interface AIMessageInput {
|
|
5598
5620
|
role: 'user';
|
|
5599
5621
|
content: string | JSONDocument;
|
|
5600
5622
|
/** Context about the current user sending a message. */
|
|
5601
5623
|
context?: AIMessageContext;
|
|
5624
|
+
attachments?: AIAttachment[];
|
|
5602
5625
|
}
|
|
5603
5626
|
export declare enum AIModel {
|
|
5604
5627
|
Fast = "fast",
|
|
@@ -5673,8 +5696,10 @@ export interface AIStreamResponseStart {
|
|
|
5673
5696
|
}
|
|
5674
5697
|
/** The response that generated this message. */
|
|
5675
5698
|
export interface AIMessageResponseMetadata {
|
|
5676
|
-
/** The
|
|
5677
|
-
|
|
5699
|
+
/** The reason the response was stopped. If not defined, the response finished normally. */
|
|
5700
|
+
stopReason?: 'aborted';
|
|
5701
|
+
/** The ID of the response that generated this message. It can be undefined if the stream was aborted. */
|
|
5702
|
+
id?: string;
|
|
5678
5703
|
/** The ID of the previous response that this message is based on. */
|
|
5679
5704
|
previous?: string;
|
|
5680
5705
|
}
|
|
@@ -5687,8 +5712,8 @@ export interface AIStreamResponseFinish {
|
|
|
5687
5712
|
* The ID of the response
|
|
5688
5713
|
* @deprecated
|
|
5689
5714
|
*/
|
|
5690
|
-
responseId
|
|
5691
|
-
/** The response
|
|
5715
|
+
responseId?: string;
|
|
5716
|
+
/** The response metadata associated with the message. */
|
|
5692
5717
|
response: AIMessageResponseMetadata;
|
|
5693
5718
|
}
|
|
5694
5719
|
/** Message emitted by the server to indicate the latest block of the document. The block can either be a new block or an update to the previous block. */
|
|
@@ -5914,7 +5939,16 @@ export interface AIStreamResponseFollowupSuggestion {
|
|
|
5914
5939
|
messageId: string;
|
|
5915
5940
|
suggestions: string[];
|
|
5916
5941
|
}
|
|
5917
|
-
|
|
5942
|
+
/** Message emitted by the server to indicate that the AI has attached an image. */
|
|
5943
|
+
export interface AIStreamResponseAttachment {
|
|
5944
|
+
type: 'response_attachment';
|
|
5945
|
+
/** The ID of the message that this event is composing. */
|
|
5946
|
+
messageId: string;
|
|
5947
|
+
/** The index of the step of the message that this event is composing. */
|
|
5948
|
+
stepIndex: number;
|
|
5949
|
+
attachment: AIAttachment;
|
|
5950
|
+
}
|
|
5951
|
+
export type AIStreamResponse = AIStreamResponseStart | AIStreamResponseFinish | AIStreamResponseDocument | AIStreamResponseObject | AIStreamResponseToolCall | AIStreamResponseToolCallPending | AIStreamResponseFollowupSuggestion | AIStreamResponseAttachment;
|
|
5918
5952
|
/** Analytics info on the GitBook's site session. */
|
|
5919
5953
|
export interface SiteInsightsEventSession {
|
|
5920
5954
|
/** GitBook's unique identifier of the visitor. */
|
|
@@ -6741,6 +6775,10 @@ export interface SiteVisitorPayload {
|
|
|
6741
6775
|
jwtToken?: string;
|
|
6742
6776
|
unsignedClaims?: PlainObject;
|
|
6743
6777
|
}
|
|
6778
|
+
export interface Timerange {
|
|
6779
|
+
start: Timestamp;
|
|
6780
|
+
end: Timestamp;
|
|
6781
|
+
}
|
|
6744
6782
|
/**
|
|
6745
6783
|
* @minLength 64
|
|
6746
6784
|
* @maxLength 64
|
|
@@ -7492,6 +7530,11 @@ export interface AIMessageStep {
|
|
|
7492
7530
|
content: JSONDocument;
|
|
7493
7531
|
reasoning?: JSONDocument;
|
|
7494
7532
|
toolCalls?: AIToolCall[];
|
|
7533
|
+
/** The timing of the step. */
|
|
7534
|
+
timing?: {
|
|
7535
|
+
reasoning?: Timerange;
|
|
7536
|
+
};
|
|
7537
|
+
attachments?: AIAttachment[];
|
|
7495
7538
|
}
|
|
7496
7539
|
export interface AIMessage {
|
|
7497
7540
|
id: string;
|
|
@@ -7559,6 +7602,7 @@ export type RequestUpdateContentPublishingAuth = UpdateContentPublishingAuth;
|
|
|
7559
7602
|
export type RequestCreateOrganization = CreateOrganization;
|
|
7560
7603
|
export type RequestUpdateSpaceGitInfo = UpdateSpaceGitInfo;
|
|
7561
7604
|
export type RequestPurgeCDNCacheContext = PurgeCDNCacheContext;
|
|
7605
|
+
export type DocumentTextBackgroundColor = DocumentTextColor;
|
|
7562
7606
|
export type SpaceVisitorAuth = VisitorAuth;
|
|
7563
7607
|
export type SpaceVisitorAuthCustomBackend = VisitorAuthCustomBackend;
|
|
7564
7608
|
export type SpaceVisitorAuthIntegrationBackend = VisitorAuthIntegrationBackend;
|
|
@@ -8455,6 +8499,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8455
8499
|
requestedReviewer?: string;
|
|
8456
8500
|
/** If defined, only change requests associated with this conversations issues cluster will be returned. */
|
|
8457
8501
|
conversationsIssuesCluster?: string;
|
|
8502
|
+
/** The field to sort change requests by. Defaults to 'updatedAt'. */
|
|
8503
|
+
orderBy?: ChangeRequestOrderBy;
|
|
8458
8504
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
8459
8505
|
items: ChangeRequest[];
|
|
8460
8506
|
}, any>>;
|
|
@@ -11072,6 +11118,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11072
11118
|
requestedReviewer?: string;
|
|
11073
11119
|
/** If defined, only change requests associated with this conversations issues cluster will be returned. */
|
|
11074
11120
|
conversationsIssuesCluster?: string;
|
|
11121
|
+
/** The field to sort change requests by. Defaults to 'updatedAt'. */
|
|
11122
|
+
orderBy?: ChangeRequestOrderBy;
|
|
11075
11123
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
11076
11124
|
items: ChangeRequest[];
|
|
11077
11125
|
}, any>>;
|
|
@@ -13147,16 +13195,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13147
13195
|
/** Result of a tool call. */
|
|
13148
13196
|
toolCall?: AIToolCallResult;
|
|
13149
13197
|
}, params?: RequestParams) => EventIterator<AIStreamResponse>;
|
|
13150
|
-
/**
|
|
13151
|
-
* @description Experimental operation to get an existing AI response in a site.
|
|
13152
|
-
*
|
|
13153
|
-
* @tags site-ai
|
|
13154
|
-
* @name StreamExistingAiResponseInSite
|
|
13155
|
-
* @summary Get an existing AI response in a site
|
|
13156
|
-
* @request GET:/orgs/{organizationId}/sites/{siteId}/ai/response/{responseId}
|
|
13157
|
-
* @secure
|
|
13158
|
-
*/
|
|
13159
|
-
streamExistingAiResponseInSite: (organizationId: string, siteId: string, responseId: string, params?: RequestParams) => EventIterator<AIStreamResponse>;
|
|
13160
13198
|
/**
|
|
13161
13199
|
* No description
|
|
13162
13200
|
*
|
package/dist/constants.d.ts
CHANGED
|
@@ -13,7 +13,6 @@ export declare const ORGANIZATION_TEAM_TITLE_MAX_LENGTH = 64;
|
|
|
13
13
|
export declare const ORGANIZATION_TEAM_TITLE_MIN_LENGTH = 1;
|
|
14
14
|
export declare const ICON_MAX_LENGTH = 50;
|
|
15
15
|
export declare const DOCUMENT_TEXT_COLOR_ENUM: ["default", "green", "blue", "red", "orange", "yellow", "purple", "$primary", "$info", "$success", "$warning", "$danger"];
|
|
16
|
-
export declare const DOCUMENT_TEXT_BACKGROUND_COLOR_ENUM: ["default", "green", "blue", "red", "orange", "yellow", "purple", "$primary", "$info", "$success", "$warning", "$danger"];
|
|
17
16
|
export declare const TEXT_ALIGNMENT_ENUM: ["start", "center", "end"];
|
|
18
17
|
export declare const CARDS_IMAGE_OBJECT_FIT_ENUM: ["contain", "fill", "cover"];
|
|
19
18
|
export declare const VERTICAL_ALIGNMENT_ENUM: ["top", "middle", "bottom"];
|
|
@@ -48,6 +47,7 @@ export declare const OPEN_APISPEC_VISIBILITY_ENUM: ["private", "public"];
|
|
|
48
47
|
export declare const OPEN_APISPEC_PROCESSING_ERROR_CODE_ENUM: ["FETCH_TIMEOUT", "FETCH_ERROR", "PARSE_ERROR"];
|
|
49
48
|
export declare const CONTENT_REFERENCE_STATUS_ENUM: ["ok", "broken", "in-app"];
|
|
50
49
|
export declare const CONTENT_REFERENCE_RELATION_ENUM: ["reference", "dependsOn"];
|
|
50
|
+
export declare const CHANGE_REQUEST_ORDER_BY_ENUM: ["updatedAt", "createdAt"];
|
|
51
51
|
export declare const CHANGE_REQUEST_REVIEW_STATUS_ENUM: ["changes-requested", "approved"];
|
|
52
52
|
export declare const REVISION_PAGE_TYPE_ENUM: ["document", "group", "link", "computed"];
|
|
53
53
|
export declare const REVISION_PAGE_LAYOUT_PRESET_ENUM: ["docs", "editorial", "landing"];
|
|
@@ -122,6 +122,8 @@ export declare const CUSTOMIZATION_ANNOUNCEMENT_MESSAGE_MAX_LENGTH = 128;
|
|
|
122
122
|
export declare const CUSTOMIZATION_ANNOUNCEMENT_MESSAGE_MIN_LENGTH = 2;
|
|
123
123
|
export declare const CUSTOMIZATION_THEME_MODE_ENUM: ["light", "dark"];
|
|
124
124
|
export declare const CUSTOMIZATION_AIMODE_ENUM: ["none", "search", "assistant"];
|
|
125
|
+
export declare const CUSTOMIZATION_SUGGESTED_QUESTION_MAX_LENGTH = 64;
|
|
126
|
+
export declare const CUSTOMIZATION_SUGGESTED_QUESTION_MIN_LENGTH = 3;
|
|
125
127
|
export declare const SITE_EXTERNAL_LINKS_TARGET_ENUM: ["self", "blank"];
|
|
126
128
|
export declare const SHARE_LINK_NAME_MAX_LENGTH = 50;
|
|
127
129
|
export declare const SHARE_LINK_NAME_MIN_LENGTH = 0;
|
package/dist/index.cjs
CHANGED
|
@@ -206,6 +206,7 @@ __export(src_exports, {
|
|
|
206
206
|
BillingTrialStatus: () => BillingTrialStatus,
|
|
207
207
|
BlockSource: () => BlockSource,
|
|
208
208
|
CARDS_IMAGE_OBJECT_FIT_ENUM: () => CARDS_IMAGE_OBJECT_FIT_ENUM,
|
|
209
|
+
CHANGE_REQUEST_ORDER_BY_ENUM: () => CHANGE_REQUEST_ORDER_BY_ENUM,
|
|
209
210
|
CHANGE_REQUEST_REVIEW_STATUS_ENUM: () => CHANGE_REQUEST_REVIEW_STATUS_ENUM,
|
|
210
211
|
CHANGE_REQUEST_STATUS_ENUM: () => CHANGE_REQUEST_STATUS_ENUM,
|
|
211
212
|
CHANGE_REQUEST_SUBJECT_MAX_LENGTH: () => CHANGE_REQUEST_SUBJECT_MAX_LENGTH,
|
|
@@ -238,12 +239,15 @@ __export(src_exports, {
|
|
|
238
239
|
CUSTOMIZATION_SEARCH_STYLE_ENUM: () => CUSTOMIZATION_SEARCH_STYLE_ENUM,
|
|
239
240
|
CUSTOMIZATION_SIDEBAR_BACKGROUND_STYLE_ENUM: () => CUSTOMIZATION_SIDEBAR_BACKGROUND_STYLE_ENUM,
|
|
240
241
|
CUSTOMIZATION_SIDEBAR_LIST_STYLE_ENUM: () => CUSTOMIZATION_SIDEBAR_LIST_STYLE_ENUM,
|
|
242
|
+
CUSTOMIZATION_SUGGESTED_QUESTION_MAX_LENGTH: () => CUSTOMIZATION_SUGGESTED_QUESTION_MAX_LENGTH,
|
|
243
|
+
CUSTOMIZATION_SUGGESTED_QUESTION_MIN_LENGTH: () => CUSTOMIZATION_SUGGESTED_QUESTION_MIN_LENGTH,
|
|
241
244
|
CUSTOMIZATION_THEME_ENUM: () => CUSTOMIZATION_THEME_ENUM,
|
|
242
245
|
CUSTOMIZATION_THEME_MODE_ENUM: () => CUSTOMIZATION_THEME_MODE_ENUM,
|
|
243
246
|
CUSTOM_HOSTNAME_DNS_STATUS_ENUM: () => CUSTOM_HOSTNAME_DNS_STATUS_ENUM,
|
|
244
247
|
CUSTOM_HOSTNAME_ERROR_STATUS_ENUM: () => CUSTOM_HOSTNAME_ERROR_STATUS_ENUM,
|
|
245
248
|
CUSTOM_HOSTNAME_SSL_STATUS_ENUM: () => CUSTOM_HOSTNAME_SSL_STATUS_ENUM,
|
|
246
249
|
CardsImageObjectFit: () => CardsImageObjectFit,
|
|
250
|
+
ChangeRequestOrderBy: () => ChangeRequestOrderBy,
|
|
247
251
|
ChangeRequestReviewStatus: () => ChangeRequestReviewStatus,
|
|
248
252
|
ChangeRequestStatus: () => ChangeRequestStatus,
|
|
249
253
|
CloudflareHostnameStatus: () => CloudflareHostnameStatus,
|
|
@@ -273,9 +277,7 @@ __export(src_exports, {
|
|
|
273
277
|
CustomizationSidebarListStyle: () => CustomizationSidebarListStyle,
|
|
274
278
|
CustomizationTheme: () => CustomizationTheme,
|
|
275
279
|
CustomizationThemeMode: () => CustomizationThemeMode,
|
|
276
|
-
DOCUMENT_TEXT_BACKGROUND_COLOR_ENUM: () => DOCUMENT_TEXT_BACKGROUND_COLOR_ENUM,
|
|
277
280
|
DOCUMENT_TEXT_COLOR_ENUM: () => DOCUMENT_TEXT_COLOR_ENUM,
|
|
278
|
-
DocumentTextBackgroundColor: () => DocumentTextBackgroundColor,
|
|
279
281
|
DocumentTextColor: () => DocumentTextColor,
|
|
280
282
|
EMOJI_MAX_LENGTH: () => EMOJI_MAX_LENGTH,
|
|
281
283
|
EXPRESSION_MAX_LENGTH: () => EXPRESSION_MAX_LENGTH,
|
|
@@ -445,7 +447,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
445
447
|
|
|
446
448
|
// package.json
|
|
447
449
|
var name = "@gitbook/api";
|
|
448
|
-
var version = "0.
|
|
450
|
+
var version = "0.155.0";
|
|
449
451
|
|
|
450
452
|
// src/client.ts
|
|
451
453
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -637,21 +639,6 @@ var DocumentTextColor = /* @__PURE__ */ ((DocumentTextColor2) => {
|
|
|
637
639
|
DocumentTextColor2["Danger"] = "$danger";
|
|
638
640
|
return DocumentTextColor2;
|
|
639
641
|
})(DocumentTextColor || {});
|
|
640
|
-
var DocumentTextBackgroundColor = /* @__PURE__ */ ((DocumentTextBackgroundColor2) => {
|
|
641
|
-
DocumentTextBackgroundColor2["Default"] = "default";
|
|
642
|
-
DocumentTextBackgroundColor2["Green"] = "green";
|
|
643
|
-
DocumentTextBackgroundColor2["Blue"] = "blue";
|
|
644
|
-
DocumentTextBackgroundColor2["Red"] = "red";
|
|
645
|
-
DocumentTextBackgroundColor2["Orange"] = "orange";
|
|
646
|
-
DocumentTextBackgroundColor2["Yellow"] = "yellow";
|
|
647
|
-
DocumentTextBackgroundColor2["Purple"] = "purple";
|
|
648
|
-
DocumentTextBackgroundColor2["Primary"] = "$primary";
|
|
649
|
-
DocumentTextBackgroundColor2["Info"] = "$info";
|
|
650
|
-
DocumentTextBackgroundColor2["Success"] = "$success";
|
|
651
|
-
DocumentTextBackgroundColor2["Warning"] = "$warning";
|
|
652
|
-
DocumentTextBackgroundColor2["Danger"] = "$danger";
|
|
653
|
-
return DocumentTextBackgroundColor2;
|
|
654
|
-
})(DocumentTextBackgroundColor || {});
|
|
655
642
|
var TextAlignment = /* @__PURE__ */ ((TextAlignment2) => {
|
|
656
643
|
TextAlignment2["Start"] = "start";
|
|
657
644
|
TextAlignment2["Center"] = "center";
|
|
@@ -769,6 +756,11 @@ var ContentReferenceRelation = /* @__PURE__ */ ((ContentReferenceRelation2) => {
|
|
|
769
756
|
ContentReferenceRelation2["DependsOn"] = "dependsOn";
|
|
770
757
|
return ContentReferenceRelation2;
|
|
771
758
|
})(ContentReferenceRelation || {});
|
|
759
|
+
var ChangeRequestOrderBy = /* @__PURE__ */ ((ChangeRequestOrderBy2) => {
|
|
760
|
+
ChangeRequestOrderBy2["UpdatedAt"] = "updatedAt";
|
|
761
|
+
ChangeRequestOrderBy2["CreatedAt"] = "createdAt";
|
|
762
|
+
return ChangeRequestOrderBy2;
|
|
763
|
+
})(ChangeRequestOrderBy || {});
|
|
772
764
|
var ChangeRequestReviewStatus = /* @__PURE__ */ ((ChangeRequestReviewStatus2) => {
|
|
773
765
|
ChangeRequestReviewStatus2["ChangesRequested"] = "changes-requested";
|
|
774
766
|
ChangeRequestReviewStatus2["Approved"] = "approved";
|
|
@@ -3764,12 +3756,6 @@ var Api = class extends HttpClient {
|
|
|
3764
3756
|
type: "application/json" /* Json */,
|
|
3765
3757
|
...params
|
|
3766
3758
|
}),
|
|
3767
|
-
streamExistingAiResponseInSite: (organizationId, siteId, responseId, params = {}) => this.streamRequest({
|
|
3768
|
-
path: `/orgs/${organizationId}/sites/${siteId}/ai/response/${responseId}`,
|
|
3769
|
-
method: "GET",
|
|
3770
|
-
secure: true,
|
|
3771
|
-
...params
|
|
3772
|
-
}),
|
|
3773
3759
|
trackEventsInSiteById: (organizationId, siteId, data, params = {}) => this.request({
|
|
3774
3760
|
path: `/orgs/${organizationId}/sites/${siteId}/insights/events`,
|
|
3775
3761
|
method: "POST",
|
|
@@ -4025,7 +4011,6 @@ var ORGANIZATION_TEAM_TITLE_MAX_LENGTH = 64;
|
|
|
4025
4011
|
var ORGANIZATION_TEAM_TITLE_MIN_LENGTH = 1;
|
|
4026
4012
|
var ICON_MAX_LENGTH = 50;
|
|
4027
4013
|
var DOCUMENT_TEXT_COLOR_ENUM = ["default", "green", "blue", "red", "orange", "yellow", "purple", "$primary", "$info", "$success", "$warning", "$danger"];
|
|
4028
|
-
var DOCUMENT_TEXT_BACKGROUND_COLOR_ENUM = ["default", "green", "blue", "red", "orange", "yellow", "purple", "$primary", "$info", "$success", "$warning", "$danger"];
|
|
4029
4014
|
var TEXT_ALIGNMENT_ENUM = ["start", "center", "end"];
|
|
4030
4015
|
var CARDS_IMAGE_OBJECT_FIT_ENUM = ["contain", "fill", "cover"];
|
|
4031
4016
|
var VERTICAL_ALIGNMENT_ENUM = ["top", "middle", "bottom"];
|
|
@@ -4060,6 +4045,7 @@ var OPEN_APISPEC_VISIBILITY_ENUM = ["private", "public"];
|
|
|
4060
4045
|
var OPEN_APISPEC_PROCESSING_ERROR_CODE_ENUM = ["FETCH_TIMEOUT", "FETCH_ERROR", "PARSE_ERROR"];
|
|
4061
4046
|
var CONTENT_REFERENCE_STATUS_ENUM = ["ok", "broken", "in-app"];
|
|
4062
4047
|
var CONTENT_REFERENCE_RELATION_ENUM = ["reference", "dependsOn"];
|
|
4048
|
+
var CHANGE_REQUEST_ORDER_BY_ENUM = ["updatedAt", "createdAt"];
|
|
4063
4049
|
var CHANGE_REQUEST_REVIEW_STATUS_ENUM = ["changes-requested", "approved"];
|
|
4064
4050
|
var REVISION_PAGE_TYPE_ENUM = ["document", "group", "link", "computed"];
|
|
4065
4051
|
var REVISION_PAGE_LAYOUT_PRESET_ENUM = ["docs", "editorial", "landing"];
|
|
@@ -4134,6 +4120,8 @@ var CUSTOMIZATION_ANNOUNCEMENT_MESSAGE_MAX_LENGTH = 128;
|
|
|
4134
4120
|
var CUSTOMIZATION_ANNOUNCEMENT_MESSAGE_MIN_LENGTH = 2;
|
|
4135
4121
|
var CUSTOMIZATION_THEME_MODE_ENUM = ["light", "dark"];
|
|
4136
4122
|
var CUSTOMIZATION_AIMODE_ENUM = ["none", "search", "assistant"];
|
|
4123
|
+
var CUSTOMIZATION_SUGGESTED_QUESTION_MAX_LENGTH = 64;
|
|
4124
|
+
var CUSTOMIZATION_SUGGESTED_QUESTION_MIN_LENGTH = 3;
|
|
4137
4125
|
var SITE_EXTERNAL_LINKS_TARGET_ENUM = ["self", "blank"];
|
|
4138
4126
|
var SHARE_LINK_NAME_MAX_LENGTH = 50;
|
|
4139
4127
|
var SHARE_LINK_NAME_MIN_LENGTH = 0;
|
|
@@ -4268,6 +4256,7 @@ var GitBookAPI = class extends Api {
|
|
|
4268
4256
|
BillingTrialStatus,
|
|
4269
4257
|
BlockSource,
|
|
4270
4258
|
CARDS_IMAGE_OBJECT_FIT_ENUM,
|
|
4259
|
+
CHANGE_REQUEST_ORDER_BY_ENUM,
|
|
4271
4260
|
CHANGE_REQUEST_REVIEW_STATUS_ENUM,
|
|
4272
4261
|
CHANGE_REQUEST_STATUS_ENUM,
|
|
4273
4262
|
CHANGE_REQUEST_SUBJECT_MAX_LENGTH,
|
|
@@ -4300,12 +4289,15 @@ var GitBookAPI = class extends Api {
|
|
|
4300
4289
|
CUSTOMIZATION_SEARCH_STYLE_ENUM,
|
|
4301
4290
|
CUSTOMIZATION_SIDEBAR_BACKGROUND_STYLE_ENUM,
|
|
4302
4291
|
CUSTOMIZATION_SIDEBAR_LIST_STYLE_ENUM,
|
|
4292
|
+
CUSTOMIZATION_SUGGESTED_QUESTION_MAX_LENGTH,
|
|
4293
|
+
CUSTOMIZATION_SUGGESTED_QUESTION_MIN_LENGTH,
|
|
4303
4294
|
CUSTOMIZATION_THEME_ENUM,
|
|
4304
4295
|
CUSTOMIZATION_THEME_MODE_ENUM,
|
|
4305
4296
|
CUSTOM_HOSTNAME_DNS_STATUS_ENUM,
|
|
4306
4297
|
CUSTOM_HOSTNAME_ERROR_STATUS_ENUM,
|
|
4307
4298
|
CUSTOM_HOSTNAME_SSL_STATUS_ENUM,
|
|
4308
4299
|
CardsImageObjectFit,
|
|
4300
|
+
ChangeRequestOrderBy,
|
|
4309
4301
|
ChangeRequestReviewStatus,
|
|
4310
4302
|
ChangeRequestStatus,
|
|
4311
4303
|
CloudflareHostnameStatus,
|
|
@@ -4335,9 +4327,7 @@ var GitBookAPI = class extends Api {
|
|
|
4335
4327
|
CustomizationSidebarListStyle,
|
|
4336
4328
|
CustomizationTheme,
|
|
4337
4329
|
CustomizationThemeMode,
|
|
4338
|
-
DOCUMENT_TEXT_BACKGROUND_COLOR_ENUM,
|
|
4339
4330
|
DOCUMENT_TEXT_COLOR_ENUM,
|
|
4340
|
-
DocumentTextBackgroundColor,
|
|
4341
4331
|
DocumentTextColor,
|
|
4342
4332
|
EMOJI_MAX_LENGTH,
|
|
4343
4333
|
EXPRESSION_MAX_LENGTH,
|
package/dist/index.js
CHANGED
|
@@ -172,7 +172,7 @@ var require_node = __commonJS({
|
|
|
172
172
|
|
|
173
173
|
// package.json
|
|
174
174
|
var name = "@gitbook/api";
|
|
175
|
-
var version = "0.
|
|
175
|
+
var version = "0.155.0";
|
|
176
176
|
|
|
177
177
|
// src/client.ts
|
|
178
178
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -364,21 +364,6 @@ var DocumentTextColor = /* @__PURE__ */ ((DocumentTextColor2) => {
|
|
|
364
364
|
DocumentTextColor2["Danger"] = "$danger";
|
|
365
365
|
return DocumentTextColor2;
|
|
366
366
|
})(DocumentTextColor || {});
|
|
367
|
-
var DocumentTextBackgroundColor = /* @__PURE__ */ ((DocumentTextBackgroundColor2) => {
|
|
368
|
-
DocumentTextBackgroundColor2["Default"] = "default";
|
|
369
|
-
DocumentTextBackgroundColor2["Green"] = "green";
|
|
370
|
-
DocumentTextBackgroundColor2["Blue"] = "blue";
|
|
371
|
-
DocumentTextBackgroundColor2["Red"] = "red";
|
|
372
|
-
DocumentTextBackgroundColor2["Orange"] = "orange";
|
|
373
|
-
DocumentTextBackgroundColor2["Yellow"] = "yellow";
|
|
374
|
-
DocumentTextBackgroundColor2["Purple"] = "purple";
|
|
375
|
-
DocumentTextBackgroundColor2["Primary"] = "$primary";
|
|
376
|
-
DocumentTextBackgroundColor2["Info"] = "$info";
|
|
377
|
-
DocumentTextBackgroundColor2["Success"] = "$success";
|
|
378
|
-
DocumentTextBackgroundColor2["Warning"] = "$warning";
|
|
379
|
-
DocumentTextBackgroundColor2["Danger"] = "$danger";
|
|
380
|
-
return DocumentTextBackgroundColor2;
|
|
381
|
-
})(DocumentTextBackgroundColor || {});
|
|
382
367
|
var TextAlignment = /* @__PURE__ */ ((TextAlignment2) => {
|
|
383
368
|
TextAlignment2["Start"] = "start";
|
|
384
369
|
TextAlignment2["Center"] = "center";
|
|
@@ -496,6 +481,11 @@ var ContentReferenceRelation = /* @__PURE__ */ ((ContentReferenceRelation2) => {
|
|
|
496
481
|
ContentReferenceRelation2["DependsOn"] = "dependsOn";
|
|
497
482
|
return ContentReferenceRelation2;
|
|
498
483
|
})(ContentReferenceRelation || {});
|
|
484
|
+
var ChangeRequestOrderBy = /* @__PURE__ */ ((ChangeRequestOrderBy2) => {
|
|
485
|
+
ChangeRequestOrderBy2["UpdatedAt"] = "updatedAt";
|
|
486
|
+
ChangeRequestOrderBy2["CreatedAt"] = "createdAt";
|
|
487
|
+
return ChangeRequestOrderBy2;
|
|
488
|
+
})(ChangeRequestOrderBy || {});
|
|
499
489
|
var ChangeRequestReviewStatus = /* @__PURE__ */ ((ChangeRequestReviewStatus2) => {
|
|
500
490
|
ChangeRequestReviewStatus2["ChangesRequested"] = "changes-requested";
|
|
501
491
|
ChangeRequestReviewStatus2["Approved"] = "approved";
|
|
@@ -3491,12 +3481,6 @@ var Api = class extends HttpClient {
|
|
|
3491
3481
|
type: "application/json" /* Json */,
|
|
3492
3482
|
...params
|
|
3493
3483
|
}),
|
|
3494
|
-
streamExistingAiResponseInSite: (organizationId, siteId, responseId, params = {}) => this.streamRequest({
|
|
3495
|
-
path: `/orgs/${organizationId}/sites/${siteId}/ai/response/${responseId}`,
|
|
3496
|
-
method: "GET",
|
|
3497
|
-
secure: true,
|
|
3498
|
-
...params
|
|
3499
|
-
}),
|
|
3500
3484
|
trackEventsInSiteById: (organizationId, siteId, data, params = {}) => this.request({
|
|
3501
3485
|
path: `/orgs/${organizationId}/sites/${siteId}/insights/events`,
|
|
3502
3486
|
method: "POST",
|
|
@@ -3752,7 +3736,6 @@ var ORGANIZATION_TEAM_TITLE_MAX_LENGTH = 64;
|
|
|
3752
3736
|
var ORGANIZATION_TEAM_TITLE_MIN_LENGTH = 1;
|
|
3753
3737
|
var ICON_MAX_LENGTH = 50;
|
|
3754
3738
|
var DOCUMENT_TEXT_COLOR_ENUM = ["default", "green", "blue", "red", "orange", "yellow", "purple", "$primary", "$info", "$success", "$warning", "$danger"];
|
|
3755
|
-
var DOCUMENT_TEXT_BACKGROUND_COLOR_ENUM = ["default", "green", "blue", "red", "orange", "yellow", "purple", "$primary", "$info", "$success", "$warning", "$danger"];
|
|
3756
3739
|
var TEXT_ALIGNMENT_ENUM = ["start", "center", "end"];
|
|
3757
3740
|
var CARDS_IMAGE_OBJECT_FIT_ENUM = ["contain", "fill", "cover"];
|
|
3758
3741
|
var VERTICAL_ALIGNMENT_ENUM = ["top", "middle", "bottom"];
|
|
@@ -3787,6 +3770,7 @@ var OPEN_APISPEC_VISIBILITY_ENUM = ["private", "public"];
|
|
|
3787
3770
|
var OPEN_APISPEC_PROCESSING_ERROR_CODE_ENUM = ["FETCH_TIMEOUT", "FETCH_ERROR", "PARSE_ERROR"];
|
|
3788
3771
|
var CONTENT_REFERENCE_STATUS_ENUM = ["ok", "broken", "in-app"];
|
|
3789
3772
|
var CONTENT_REFERENCE_RELATION_ENUM = ["reference", "dependsOn"];
|
|
3773
|
+
var CHANGE_REQUEST_ORDER_BY_ENUM = ["updatedAt", "createdAt"];
|
|
3790
3774
|
var CHANGE_REQUEST_REVIEW_STATUS_ENUM = ["changes-requested", "approved"];
|
|
3791
3775
|
var REVISION_PAGE_TYPE_ENUM = ["document", "group", "link", "computed"];
|
|
3792
3776
|
var REVISION_PAGE_LAYOUT_PRESET_ENUM = ["docs", "editorial", "landing"];
|
|
@@ -3861,6 +3845,8 @@ var CUSTOMIZATION_ANNOUNCEMENT_MESSAGE_MAX_LENGTH = 128;
|
|
|
3861
3845
|
var CUSTOMIZATION_ANNOUNCEMENT_MESSAGE_MIN_LENGTH = 2;
|
|
3862
3846
|
var CUSTOMIZATION_THEME_MODE_ENUM = ["light", "dark"];
|
|
3863
3847
|
var CUSTOMIZATION_AIMODE_ENUM = ["none", "search", "assistant"];
|
|
3848
|
+
var CUSTOMIZATION_SUGGESTED_QUESTION_MAX_LENGTH = 64;
|
|
3849
|
+
var CUSTOMIZATION_SUGGESTED_QUESTION_MIN_LENGTH = 3;
|
|
3864
3850
|
var SITE_EXTERNAL_LINKS_TARGET_ENUM = ["self", "blank"];
|
|
3865
3851
|
var SHARE_LINK_NAME_MAX_LENGTH = 50;
|
|
3866
3852
|
var SHARE_LINK_NAME_MIN_LENGTH = 0;
|
|
@@ -3994,6 +3980,7 @@ export {
|
|
|
3994
3980
|
BillingTrialStatus,
|
|
3995
3981
|
BlockSource,
|
|
3996
3982
|
CARDS_IMAGE_OBJECT_FIT_ENUM,
|
|
3983
|
+
CHANGE_REQUEST_ORDER_BY_ENUM,
|
|
3997
3984
|
CHANGE_REQUEST_REVIEW_STATUS_ENUM,
|
|
3998
3985
|
CHANGE_REQUEST_STATUS_ENUM,
|
|
3999
3986
|
CHANGE_REQUEST_SUBJECT_MAX_LENGTH,
|
|
@@ -4026,12 +4013,15 @@ export {
|
|
|
4026
4013
|
CUSTOMIZATION_SEARCH_STYLE_ENUM,
|
|
4027
4014
|
CUSTOMIZATION_SIDEBAR_BACKGROUND_STYLE_ENUM,
|
|
4028
4015
|
CUSTOMIZATION_SIDEBAR_LIST_STYLE_ENUM,
|
|
4016
|
+
CUSTOMIZATION_SUGGESTED_QUESTION_MAX_LENGTH,
|
|
4017
|
+
CUSTOMIZATION_SUGGESTED_QUESTION_MIN_LENGTH,
|
|
4029
4018
|
CUSTOMIZATION_THEME_ENUM,
|
|
4030
4019
|
CUSTOMIZATION_THEME_MODE_ENUM,
|
|
4031
4020
|
CUSTOM_HOSTNAME_DNS_STATUS_ENUM,
|
|
4032
4021
|
CUSTOM_HOSTNAME_ERROR_STATUS_ENUM,
|
|
4033
4022
|
CUSTOM_HOSTNAME_SSL_STATUS_ENUM,
|
|
4034
4023
|
CardsImageObjectFit,
|
|
4024
|
+
ChangeRequestOrderBy,
|
|
4035
4025
|
ChangeRequestReviewStatus,
|
|
4036
4026
|
ChangeRequestStatus,
|
|
4037
4027
|
CloudflareHostnameStatus,
|
|
@@ -4061,9 +4051,7 @@ export {
|
|
|
4061
4051
|
CustomizationSidebarListStyle,
|
|
4062
4052
|
CustomizationTheme,
|
|
4063
4053
|
CustomizationThemeMode,
|
|
4064
|
-
DOCUMENT_TEXT_BACKGROUND_COLOR_ENUM,
|
|
4065
4054
|
DOCUMENT_TEXT_COLOR_ENUM,
|
|
4066
|
-
DocumentTextBackgroundColor,
|
|
4067
4055
|
DocumentTextColor,
|
|
4068
4056
|
EMOJI_MAX_LENGTH,
|
|
4069
4057
|
EXPRESSION_MAX_LENGTH,
|
package/package.json
CHANGED
package/spec/openapi.json
CHANGED
|
@@ -2418,6 +2418,14 @@
|
|
|
2418
2418
|
"type": "string"
|
|
2419
2419
|
},
|
|
2420
2420
|
"description": "If defined, only change requests associated with this conversations issues cluster will be returned."
|
|
2421
|
+
},
|
|
2422
|
+
{
|
|
2423
|
+
"name": "orderBy",
|
|
2424
|
+
"in": "query",
|
|
2425
|
+
"required": false,
|
|
2426
|
+
"schema": {
|
|
2427
|
+
"$ref": "#/components/schemas/ChangeRequestOrderBy"
|
|
2428
|
+
}
|
|
2421
2429
|
}
|
|
2422
2430
|
],
|
|
2423
2431
|
"responses": {
|
|
@@ -9168,6 +9176,14 @@
|
|
|
9168
9176
|
"type": "string"
|
|
9169
9177
|
},
|
|
9170
9178
|
"description": "If defined, only change requests associated with this conversations issues cluster will be returned."
|
|
9179
|
+
},
|
|
9180
|
+
{
|
|
9181
|
+
"name": "orderBy",
|
|
9182
|
+
"in": "query",
|
|
9183
|
+
"required": false,
|
|
9184
|
+
"schema": {
|
|
9185
|
+
"$ref": "#/components/schemas/ChangeRequestOrderBy"
|
|
9186
|
+
}
|
|
9171
9187
|
}
|
|
9172
9188
|
],
|
|
9173
9189
|
"responses": {
|
|
@@ -15486,51 +15502,6 @@
|
|
|
15486
15502
|
}
|
|
15487
15503
|
}
|
|
15488
15504
|
},
|
|
15489
|
-
"/orgs/{organizationId}/sites/{siteId}/ai/response/{responseId}": {
|
|
15490
|
-
"get": {
|
|
15491
|
-
"operationId": "streamExistingAIResponseInSite",
|
|
15492
|
-
"summary": "Get an existing AI response in a site",
|
|
15493
|
-
"description": "Experimental operation to get an existing AI response in a site.\n",
|
|
15494
|
-
"tags": [
|
|
15495
|
-
"site-ai"
|
|
15496
|
-
],
|
|
15497
|
-
"x-internal": true,
|
|
15498
|
-
"security": [
|
|
15499
|
-
{
|
|
15500
|
-
"user": []
|
|
15501
|
-
}
|
|
15502
|
-
],
|
|
15503
|
-
"parameters": [
|
|
15504
|
-
{
|
|
15505
|
-
"$ref": "#/components/parameters/organizationId"
|
|
15506
|
-
},
|
|
15507
|
-
{
|
|
15508
|
-
"$ref": "#/components/parameters/siteId"
|
|
15509
|
-
},
|
|
15510
|
-
{
|
|
15511
|
-
"name": "responseId",
|
|
15512
|
-
"in": "path",
|
|
15513
|
-
"required": true,
|
|
15514
|
-
"description": "The unique id of the AI response",
|
|
15515
|
-
"schema": {
|
|
15516
|
-
"type": "string"
|
|
15517
|
-
}
|
|
15518
|
-
}
|
|
15519
|
-
],
|
|
15520
|
-
"responses": {
|
|
15521
|
-
"200": {
|
|
15522
|
-
"description": "OK",
|
|
15523
|
-
"content": {
|
|
15524
|
-
"text/event-stream": {
|
|
15525
|
-
"schema": {
|
|
15526
|
-
"$ref": "#/components/schemas/AIStreamResponse"
|
|
15527
|
-
}
|
|
15528
|
-
}
|
|
15529
|
-
}
|
|
15530
|
-
}
|
|
15531
|
-
}
|
|
15532
|
-
}
|
|
15533
|
-
},
|
|
15534
15505
|
"/orgs/{organizationId}/sites/{siteId}/insights/events": {
|
|
15535
15506
|
"post": {
|
|
15536
15507
|
"operationId": "trackEventsInSiteById",
|
|
@@ -17769,6 +17740,7 @@
|
|
|
17769
17740
|
"type": "string",
|
|
17770
17741
|
"enum": [
|
|
17771
17742
|
"require_at_least_one_review",
|
|
17743
|
+
"require_at_least_one_approved_review",
|
|
17772
17744
|
"require_all_reviews_approved",
|
|
17773
17745
|
"require_agent_review",
|
|
17774
17746
|
"require_up_to_date_change_request",
|
|
@@ -18954,23 +18926,6 @@
|
|
|
18954
18926
|
"$danger"
|
|
18955
18927
|
]
|
|
18956
18928
|
},
|
|
18957
|
-
"DocumentTextBackgroundColor": {
|
|
18958
|
-
"type": "string",
|
|
18959
|
-
"enum": [
|
|
18960
|
-
"default",
|
|
18961
|
-
"green",
|
|
18962
|
-
"blue",
|
|
18963
|
-
"red",
|
|
18964
|
-
"orange",
|
|
18965
|
-
"yellow",
|
|
18966
|
-
"purple",
|
|
18967
|
-
"$primary",
|
|
18968
|
-
"$info",
|
|
18969
|
-
"$success",
|
|
18970
|
-
"$warning",
|
|
18971
|
-
"$danger"
|
|
18972
|
-
]
|
|
18973
|
-
},
|
|
18974
18929
|
"DocumentMarkColor": {
|
|
18975
18930
|
"type": "object",
|
|
18976
18931
|
"properties": {
|
|
@@ -18993,7 +18948,7 @@
|
|
|
18993
18948
|
"$ref": "#/components/schemas/DocumentTextColor"
|
|
18994
18949
|
},
|
|
18995
18950
|
"background": {
|
|
18996
|
-
"$ref": "#/components/schemas/
|
|
18951
|
+
"$ref": "#/components/schemas/DocumentTextColor"
|
|
18997
18952
|
}
|
|
18998
18953
|
},
|
|
18999
18954
|
"required": [
|
|
@@ -21063,6 +21018,9 @@
|
|
|
21063
21018
|
},
|
|
21064
21019
|
{
|
|
21065
21020
|
"$ref": "#/components/schemas/DocumentBlockStepper"
|
|
21021
|
+
},
|
|
21022
|
+
{
|
|
21023
|
+
"$ref": "#/components/schemas/DocumentBlockIf"
|
|
21066
21024
|
}
|
|
21067
21025
|
]
|
|
21068
21026
|
},
|
|
@@ -22550,6 +22508,9 @@
|
|
|
22550
22508
|
},
|
|
22551
22509
|
{
|
|
22552
22510
|
"$ref": "#/components/schemas/DocumentBlockExpandable"
|
|
22511
|
+
},
|
|
22512
|
+
{
|
|
22513
|
+
"$ref": "#/components/schemas/DocumentBlockStepper"
|
|
22553
22514
|
}
|
|
22554
22515
|
]
|
|
22555
22516
|
}
|
|
@@ -22930,6 +22891,47 @@
|
|
|
22930
22891
|
"isVoid"
|
|
22931
22892
|
]
|
|
22932
22893
|
},
|
|
22894
|
+
"DocumentAction": {
|
|
22895
|
+
"type": "object",
|
|
22896
|
+
"oneOf": [
|
|
22897
|
+
{
|
|
22898
|
+
"type": "object",
|
|
22899
|
+
"properties": {
|
|
22900
|
+
"action": {
|
|
22901
|
+
"type": "string",
|
|
22902
|
+
"enum": [
|
|
22903
|
+
"search"
|
|
22904
|
+
]
|
|
22905
|
+
},
|
|
22906
|
+
"query": {
|
|
22907
|
+
"type": "string"
|
|
22908
|
+
}
|
|
22909
|
+
},
|
|
22910
|
+
"required": [
|
|
22911
|
+
"action"
|
|
22912
|
+
],
|
|
22913
|
+
"additionalProperties": false
|
|
22914
|
+
},
|
|
22915
|
+
{
|
|
22916
|
+
"type": "object",
|
|
22917
|
+
"properties": {
|
|
22918
|
+
"action": {
|
|
22919
|
+
"type": "string",
|
|
22920
|
+
"enum": [
|
|
22921
|
+
"ask"
|
|
22922
|
+
]
|
|
22923
|
+
},
|
|
22924
|
+
"query": {
|
|
22925
|
+
"type": "string"
|
|
22926
|
+
}
|
|
22927
|
+
},
|
|
22928
|
+
"required": [
|
|
22929
|
+
"action"
|
|
22930
|
+
],
|
|
22931
|
+
"additionalProperties": false
|
|
22932
|
+
}
|
|
22933
|
+
]
|
|
22934
|
+
},
|
|
22933
22935
|
"DocumentInlineButton": {
|
|
22934
22936
|
"type": "object",
|
|
22935
22937
|
"properties": {
|
|
@@ -22983,7 +22985,20 @@
|
|
|
22983
22985
|
},
|
|
22984
22986
|
"required": [
|
|
22985
22987
|
"ref"
|
|
22986
|
-
]
|
|
22988
|
+
],
|
|
22989
|
+
"additionalProperties": false
|
|
22990
|
+
},
|
|
22991
|
+
{
|
|
22992
|
+
"type": "object",
|
|
22993
|
+
"properties": {
|
|
22994
|
+
"action": {
|
|
22995
|
+
"$ref": "#/components/schemas/DocumentAction"
|
|
22996
|
+
}
|
|
22997
|
+
},
|
|
22998
|
+
"required": [
|
|
22999
|
+
"action"
|
|
23000
|
+
],
|
|
23001
|
+
"additionalProperties": false
|
|
22987
23002
|
}
|
|
22988
23003
|
]
|
|
22989
23004
|
}
|
|
@@ -25613,6 +25628,15 @@
|
|
|
25613
25628
|
"locationReferences"
|
|
25614
25629
|
]
|
|
25615
25630
|
},
|
|
25631
|
+
"ChangeRequestOrderBy": {
|
|
25632
|
+
"type": "string",
|
|
25633
|
+
"enum": [
|
|
25634
|
+
"updatedAt",
|
|
25635
|
+
"createdAt"
|
|
25636
|
+
],
|
|
25637
|
+
"default": "updatedAt",
|
|
25638
|
+
"description": "The field to sort change requests by. Defaults to 'updatedAt'."
|
|
25639
|
+
},
|
|
25616
25640
|
"ChangeRequestReviewStatus": {
|
|
25617
25641
|
"type": "string",
|
|
25618
25642
|
"description": "Status of a change request review.",
|
|
@@ -29308,6 +29332,10 @@
|
|
|
29308
29332
|
"type": {
|
|
29309
29333
|
"$ref": "#/components/schemas/SiteType"
|
|
29310
29334
|
},
|
|
29335
|
+
"appliedType": {
|
|
29336
|
+
"$ref": "#/components/schemas/SiteType",
|
|
29337
|
+
"description": "The currently applied type of the site. For example, frozen sites will have this set to Basic."
|
|
29338
|
+
},
|
|
29311
29339
|
"title": {
|
|
29312
29340
|
"$ref": "#/components/schemas/SiteTitle"
|
|
29313
29341
|
},
|
|
@@ -29394,6 +29422,7 @@
|
|
|
29394
29422
|
"object",
|
|
29395
29423
|
"id",
|
|
29396
29424
|
"type",
|
|
29425
|
+
"appliedType",
|
|
29397
29426
|
"title",
|
|
29398
29427
|
"visibility",
|
|
29399
29428
|
"published",
|
|
@@ -34296,6 +34325,19 @@
|
|
|
34296
34325
|
"assistant"
|
|
34297
34326
|
]
|
|
34298
34327
|
},
|
|
34328
|
+
"CustomizationSuggestedQuestion": {
|
|
34329
|
+
"type": "string",
|
|
34330
|
+
"minLength": 3,
|
|
34331
|
+
"maxLength": 64
|
|
34332
|
+
},
|
|
34333
|
+
"CustomizationSuggestedQuestions": {
|
|
34334
|
+
"type": "array",
|
|
34335
|
+
"description": "Suggested questions to display at the start of the chosen AI mode.",
|
|
34336
|
+
"items": {
|
|
34337
|
+
"$ref": "#/components/schemas/CustomizationSuggestedQuestion"
|
|
34338
|
+
},
|
|
34339
|
+
"maxItems": 5
|
|
34340
|
+
},
|
|
34299
34341
|
"SiteExternalLinksTarget": {
|
|
34300
34342
|
"type": "string",
|
|
34301
34343
|
"description": "How external links should open when clicked.\n- `self`: External links open in the current tab.\n- `blank`: External links open in a new browser tab.\n",
|
|
@@ -34514,6 +34556,9 @@
|
|
|
34514
34556
|
"properties": {
|
|
34515
34557
|
"mode": {
|
|
34516
34558
|
"$ref": "#/components/schemas/CustomizationAIMode"
|
|
34559
|
+
},
|
|
34560
|
+
"suggestions": {
|
|
34561
|
+
"$ref": "#/components/schemas/CustomizationSuggestedQuestions"
|
|
34517
34562
|
}
|
|
34518
34563
|
},
|
|
34519
34564
|
"required": [
|
|
@@ -35200,6 +35245,31 @@
|
|
|
35200
35245
|
}
|
|
35201
35246
|
}
|
|
35202
35247
|
},
|
|
35248
|
+
"AIAttachmentImage": {
|
|
35249
|
+
"type": "object",
|
|
35250
|
+
"properties": {
|
|
35251
|
+
"type": {
|
|
35252
|
+
"type": "string",
|
|
35253
|
+
"enum": [
|
|
35254
|
+
"image"
|
|
35255
|
+
]
|
|
35256
|
+
},
|
|
35257
|
+
"url": {
|
|
35258
|
+
"$ref": "#/components/schemas/URL"
|
|
35259
|
+
}
|
|
35260
|
+
},
|
|
35261
|
+
"required": [
|
|
35262
|
+
"type",
|
|
35263
|
+
"url"
|
|
35264
|
+
]
|
|
35265
|
+
},
|
|
35266
|
+
"AIAttachment": {
|
|
35267
|
+
"oneOf": [
|
|
35268
|
+
{
|
|
35269
|
+
"$ref": "#/components/schemas/AIAttachmentImage"
|
|
35270
|
+
}
|
|
35271
|
+
]
|
|
35272
|
+
},
|
|
35203
35273
|
"AIMessageInput": {
|
|
35204
35274
|
"type": "object",
|
|
35205
35275
|
"description": "Input version of an AI message.",
|
|
@@ -35223,6 +35293,12 @@
|
|
|
35223
35293
|
},
|
|
35224
35294
|
"context": {
|
|
35225
35295
|
"$ref": "#/components/schemas/AIMessageContext"
|
|
35296
|
+
},
|
|
35297
|
+
"attachments": {
|
|
35298
|
+
"type": "array",
|
|
35299
|
+
"items": {
|
|
35300
|
+
"$ref": "#/components/schemas/AIAttachment"
|
|
35301
|
+
}
|
|
35226
35302
|
}
|
|
35227
35303
|
},
|
|
35228
35304
|
"required": [
|
|
@@ -35453,18 +35529,22 @@
|
|
|
35453
35529
|
"description": "The response that generated this message.",
|
|
35454
35530
|
"type": "object",
|
|
35455
35531
|
"properties": {
|
|
35532
|
+
"stopReason": {
|
|
35533
|
+
"type": "string",
|
|
35534
|
+
"description": "The reason the response was stopped. If not defined, the response finished normally.",
|
|
35535
|
+
"enum": [
|
|
35536
|
+
"aborted"
|
|
35537
|
+
]
|
|
35538
|
+
},
|
|
35456
35539
|
"id": {
|
|
35457
35540
|
"type": "string",
|
|
35458
|
-
"description": "The ID of the response that generated this message."
|
|
35541
|
+
"description": "The ID of the response that generated this message. It can be undefined if the stream was aborted."
|
|
35459
35542
|
},
|
|
35460
35543
|
"previous": {
|
|
35461
35544
|
"type": "string",
|
|
35462
35545
|
"description": "The ID of the previous response that this message is based on."
|
|
35463
35546
|
}
|
|
35464
|
-
}
|
|
35465
|
-
"required": [
|
|
35466
|
-
"id"
|
|
35467
|
-
]
|
|
35547
|
+
}
|
|
35468
35548
|
},
|
|
35469
35549
|
"AIStreamResponseFinish": {
|
|
35470
35550
|
"type": "object",
|
|
@@ -35486,13 +35566,13 @@
|
|
|
35486
35566
|
"description": "The ID of the response"
|
|
35487
35567
|
},
|
|
35488
35568
|
"response": {
|
|
35569
|
+
"description": "The response metadata associated with the message.",
|
|
35489
35570
|
"$ref": "#/components/schemas/AIMessageResponseMetadata"
|
|
35490
35571
|
}
|
|
35491
35572
|
},
|
|
35492
35573
|
"required": [
|
|
35493
35574
|
"type",
|
|
35494
35575
|
"messageId",
|
|
35495
|
-
"responseId",
|
|
35496
35576
|
"response"
|
|
35497
35577
|
]
|
|
35498
35578
|
},
|
|
@@ -36291,6 +36371,35 @@
|
|
|
36291
36371
|
"suggestions"
|
|
36292
36372
|
]
|
|
36293
36373
|
},
|
|
36374
|
+
"AIStreamResponseAttachment": {
|
|
36375
|
+
"type": "object",
|
|
36376
|
+
"description": "Message emitted by the server to indicate that the AI has attached an image.\n",
|
|
36377
|
+
"properties": {
|
|
36378
|
+
"type": {
|
|
36379
|
+
"type": "string",
|
|
36380
|
+
"enum": [
|
|
36381
|
+
"response_attachment"
|
|
36382
|
+
]
|
|
36383
|
+
},
|
|
36384
|
+
"messageId": {
|
|
36385
|
+
"type": "string",
|
|
36386
|
+
"description": "The ID of the message that this event is composing.\n"
|
|
36387
|
+
},
|
|
36388
|
+
"stepIndex": {
|
|
36389
|
+
"type": "integer",
|
|
36390
|
+
"description": "The index of the step of the message that this event is composing.\n"
|
|
36391
|
+
},
|
|
36392
|
+
"attachment": {
|
|
36393
|
+
"$ref": "#/components/schemas/AIAttachment"
|
|
36394
|
+
}
|
|
36395
|
+
},
|
|
36396
|
+
"required": [
|
|
36397
|
+
"type",
|
|
36398
|
+
"messageId",
|
|
36399
|
+
"stepIndex",
|
|
36400
|
+
"attachment"
|
|
36401
|
+
]
|
|
36402
|
+
},
|
|
36294
36403
|
"AIStreamResponse": {
|
|
36295
36404
|
"oneOf": [
|
|
36296
36405
|
{
|
|
@@ -36313,6 +36422,9 @@
|
|
|
36313
36422
|
},
|
|
36314
36423
|
{
|
|
36315
36424
|
"$ref": "#/components/schemas/AIStreamResponseFollowupSuggestion"
|
|
36425
|
+
},
|
|
36426
|
+
{
|
|
36427
|
+
"$ref": "#/components/schemas/AIStreamResponseAttachment"
|
|
36316
36428
|
}
|
|
36317
36429
|
]
|
|
36318
36430
|
},
|
|
@@ -39703,6 +39815,21 @@
|
|
|
39703
39815
|
}
|
|
39704
39816
|
}
|
|
39705
39817
|
},
|
|
39818
|
+
"Timerange": {
|
|
39819
|
+
"type": "object",
|
|
39820
|
+
"properties": {
|
|
39821
|
+
"start": {
|
|
39822
|
+
"$ref": "#/components/schemas/Timestamp"
|
|
39823
|
+
},
|
|
39824
|
+
"end": {
|
|
39825
|
+
"$ref": "#/components/schemas/Timestamp"
|
|
39826
|
+
}
|
|
39827
|
+
},
|
|
39828
|
+
"required": [
|
|
39829
|
+
"start",
|
|
39830
|
+
"end"
|
|
39831
|
+
]
|
|
39832
|
+
},
|
|
39706
39833
|
"SHA256": {
|
|
39707
39834
|
"type": "string",
|
|
39708
39835
|
"minLength": 64,
|
|
@@ -42500,6 +42627,21 @@
|
|
|
42500
42627
|
"items": {
|
|
42501
42628
|
"$ref": "#/components/schemas/AIToolCall"
|
|
42502
42629
|
}
|
|
42630
|
+
},
|
|
42631
|
+
"timing": {
|
|
42632
|
+
"type": "object",
|
|
42633
|
+
"description": "The timing of the step.",
|
|
42634
|
+
"properties": {
|
|
42635
|
+
"reasoning": {
|
|
42636
|
+
"$ref": "#/components/schemas/Timerange"
|
|
42637
|
+
}
|
|
42638
|
+
}
|
|
42639
|
+
},
|
|
42640
|
+
"attachments": {
|
|
42641
|
+
"type": "array",
|
|
42642
|
+
"items": {
|
|
42643
|
+
"$ref": "#/components/schemas/AIAttachment"
|
|
42644
|
+
}
|
|
42503
42645
|
}
|
|
42504
42646
|
},
|
|
42505
42647
|
"required": [
|
|
@@ -42748,6 +42890,9 @@
|
|
|
42748
42890
|
"RequestPurgeCDNCacheContext": {
|
|
42749
42891
|
"$ref": "#/components/schemas/PurgeCDNCacheContext"
|
|
42750
42892
|
},
|
|
42893
|
+
"DocumentTextBackgroundColor": {
|
|
42894
|
+
"$ref": "#/components/schemas/DocumentTextColor"
|
|
42895
|
+
},
|
|
42751
42896
|
"SpaceVisitorAuth": {
|
|
42752
42897
|
"$ref": "#/components/schemas/VisitorAuth"
|
|
42753
42898
|
},
|
package/spec/openapi.yaml
CHANGED
|
@@ -1590,6 +1590,11 @@ paths:
|
|
|
1590
1590
|
schema:
|
|
1591
1591
|
type: string
|
|
1592
1592
|
description: If defined, only change requests associated with this conversations issues cluster will be returned.
|
|
1593
|
+
- name: orderBy
|
|
1594
|
+
in: query
|
|
1595
|
+
required: false
|
|
1596
|
+
schema:
|
|
1597
|
+
$ref: "#/components/schemas/ChangeRequestOrderBy"
|
|
1593
1598
|
responses:
|
|
1594
1599
|
"200":
|
|
1595
1600
|
description: List of the space's change requests
|
|
@@ -5236,6 +5241,11 @@ paths:
|
|
|
5236
5241
|
schema:
|
|
5237
5242
|
type: string
|
|
5238
5243
|
description: If defined, only change requests associated with this conversations issues cluster will be returned.
|
|
5244
|
+
- name: orderBy
|
|
5245
|
+
in: query
|
|
5246
|
+
required: false
|
|
5247
|
+
schema:
|
|
5248
|
+
$ref: "#/components/schemas/ChangeRequestOrderBy"
|
|
5239
5249
|
responses:
|
|
5240
5250
|
"200":
|
|
5241
5251
|
description: List of the organization's change requests
|
|
@@ -8762,33 +8772,6 @@ paths:
|
|
|
8762
8772
|
text/event-stream:
|
|
8763
8773
|
schema:
|
|
8764
8774
|
$ref: "#/components/schemas/AIStreamResponse"
|
|
8765
|
-
"/orgs/{organizationId}/sites/{siteId}/ai/response/{responseId}":
|
|
8766
|
-
get:
|
|
8767
|
-
operationId: streamExistingAIResponseInSite
|
|
8768
|
-
summary: Get an existing AI response in a site
|
|
8769
|
-
description: |
|
|
8770
|
-
Experimental operation to get an existing AI response in a site.
|
|
8771
|
-
tags:
|
|
8772
|
-
- site-ai
|
|
8773
|
-
x-internal: true
|
|
8774
|
-
security:
|
|
8775
|
-
- user: []
|
|
8776
|
-
parameters:
|
|
8777
|
-
- $ref: "#/components/parameters/organizationId"
|
|
8778
|
-
- $ref: "#/components/parameters/siteId"
|
|
8779
|
-
- name: responseId
|
|
8780
|
-
in: path
|
|
8781
|
-
required: true
|
|
8782
|
-
description: The unique id of the AI response
|
|
8783
|
-
schema:
|
|
8784
|
-
type: string
|
|
8785
|
-
responses:
|
|
8786
|
-
"200":
|
|
8787
|
-
description: OK
|
|
8788
|
-
content:
|
|
8789
|
-
text/event-stream:
|
|
8790
|
-
schema:
|
|
8791
|
-
$ref: "#/components/schemas/AIStreamResponse"
|
|
8792
8775
|
"/orgs/{organizationId}/sites/{siteId}/insights/events":
|
|
8793
8776
|
post:
|
|
8794
8777
|
operationId: trackEventsInSiteById
|
|
@@ -10245,6 +10228,7 @@ components:
|
|
|
10245
10228
|
type: string
|
|
10246
10229
|
enum:
|
|
10247
10230
|
- require_at_least_one_review
|
|
10231
|
+
- require_at_least_one_approved_review
|
|
10248
10232
|
- require_all_reviews_approved
|
|
10249
10233
|
- require_agent_review
|
|
10250
10234
|
- require_up_to_date_change_request
|
|
@@ -11078,21 +11062,6 @@ components:
|
|
|
11078
11062
|
- $success
|
|
11079
11063
|
- $warning
|
|
11080
11064
|
- $danger
|
|
11081
|
-
DocumentTextBackgroundColor:
|
|
11082
|
-
type: string
|
|
11083
|
-
enum:
|
|
11084
|
-
- default
|
|
11085
|
-
- green
|
|
11086
|
-
- blue
|
|
11087
|
-
- red
|
|
11088
|
-
- orange
|
|
11089
|
-
- yellow
|
|
11090
|
-
- purple
|
|
11091
|
-
- $primary
|
|
11092
|
-
- $info
|
|
11093
|
-
- $success
|
|
11094
|
-
- $warning
|
|
11095
|
-
- $danger
|
|
11096
11065
|
DocumentMarkColor:
|
|
11097
11066
|
type: object
|
|
11098
11067
|
properties:
|
|
@@ -11110,7 +11079,7 @@ components:
|
|
|
11110
11079
|
text:
|
|
11111
11080
|
$ref: "#/components/schemas/DocumentTextColor"
|
|
11112
11081
|
background:
|
|
11113
|
-
$ref: "#/components/schemas/
|
|
11082
|
+
$ref: "#/components/schemas/DocumentTextColor"
|
|
11114
11083
|
required:
|
|
11115
11084
|
- text
|
|
11116
11085
|
- background
|
|
@@ -12386,6 +12355,7 @@ components:
|
|
|
12386
12355
|
- $ref: "#/components/schemas/DocumentBlockIntegration"
|
|
12387
12356
|
- $ref: "#/components/schemas/DocumentBlockReusableContent"
|
|
12388
12357
|
- $ref: "#/components/schemas/DocumentBlockStepper"
|
|
12358
|
+
- $ref: "#/components/schemas/DocumentBlockIf"
|
|
12389
12359
|
DocumentBlockIf:
|
|
12390
12360
|
type: object
|
|
12391
12361
|
properties:
|
|
@@ -13301,6 +13271,7 @@ components:
|
|
|
13301
13271
|
- $ref: "#/components/schemas/DocumentBlockQuote"
|
|
13302
13272
|
- $ref: "#/components/schemas/DocumentBlockTable"
|
|
13303
13273
|
- $ref: "#/components/schemas/DocumentBlockExpandable"
|
|
13274
|
+
- $ref: "#/components/schemas/DocumentBlockStepper"
|
|
13304
13275
|
isVoid:
|
|
13305
13276
|
type: boolean
|
|
13306
13277
|
enum:
|
|
@@ -13505,6 +13476,31 @@ components:
|
|
|
13505
13476
|
- type
|
|
13506
13477
|
- data
|
|
13507
13478
|
- isVoid
|
|
13479
|
+
DocumentAction:
|
|
13480
|
+
type: object
|
|
13481
|
+
oneOf:
|
|
13482
|
+
- type: object
|
|
13483
|
+
properties:
|
|
13484
|
+
action:
|
|
13485
|
+
type: string
|
|
13486
|
+
enum:
|
|
13487
|
+
- search
|
|
13488
|
+
query:
|
|
13489
|
+
type: string
|
|
13490
|
+
required:
|
|
13491
|
+
- action
|
|
13492
|
+
additionalProperties: false
|
|
13493
|
+
- type: object
|
|
13494
|
+
properties:
|
|
13495
|
+
action:
|
|
13496
|
+
type: string
|
|
13497
|
+
enum:
|
|
13498
|
+
- ask
|
|
13499
|
+
query:
|
|
13500
|
+
type: string
|
|
13501
|
+
required:
|
|
13502
|
+
- action
|
|
13503
|
+
additionalProperties: false
|
|
13508
13504
|
DocumentInlineButton:
|
|
13509
13505
|
type: object
|
|
13510
13506
|
properties:
|
|
@@ -13541,6 +13537,14 @@ components:
|
|
|
13541
13537
|
$ref: "#/components/schemas/ContentRef"
|
|
13542
13538
|
required:
|
|
13543
13539
|
- ref
|
|
13540
|
+
additionalProperties: false
|
|
13541
|
+
- type: object
|
|
13542
|
+
properties:
|
|
13543
|
+
action:
|
|
13544
|
+
$ref: "#/components/schemas/DocumentAction"
|
|
13545
|
+
required:
|
|
13546
|
+
- action
|
|
13547
|
+
additionalProperties: false
|
|
13544
13548
|
isVoid:
|
|
13545
13549
|
type: boolean
|
|
13546
13550
|
enum:
|
|
@@ -15299,6 +15303,13 @@ components:
|
|
|
15299
15303
|
- relation
|
|
15300
15304
|
- status
|
|
15301
15305
|
- locationReferences
|
|
15306
|
+
ChangeRequestOrderBy:
|
|
15307
|
+
type: string
|
|
15308
|
+
enum:
|
|
15309
|
+
- updatedAt
|
|
15310
|
+
- createdAt
|
|
15311
|
+
default: updatedAt
|
|
15312
|
+
description: The field to sort change requests by. Defaults to 'updatedAt'.
|
|
15302
15313
|
ChangeRequestReviewStatus:
|
|
15303
15314
|
type: string
|
|
15304
15315
|
description: Status of a change request review.
|
|
@@ -17763,6 +17774,9 @@ components:
|
|
|
17763
17774
|
description: Unique identifier of the site
|
|
17764
17775
|
type:
|
|
17765
17776
|
$ref: "#/components/schemas/SiteType"
|
|
17777
|
+
appliedType:
|
|
17778
|
+
$ref: "#/components/schemas/SiteType"
|
|
17779
|
+
description: The currently applied type of the site. For example, frozen sites will have this set to Basic.
|
|
17766
17780
|
title:
|
|
17767
17781
|
$ref: "#/components/schemas/SiteTitle"
|
|
17768
17782
|
icon:
|
|
@@ -17823,6 +17837,7 @@ components:
|
|
|
17823
17837
|
- object
|
|
17824
17838
|
- id
|
|
17825
17839
|
- type
|
|
17840
|
+
- appliedType
|
|
17826
17841
|
- title
|
|
17827
17842
|
- visibility
|
|
17828
17843
|
- published
|
|
@@ -21160,6 +21175,16 @@ components:
|
|
|
21160
21175
|
- none
|
|
21161
21176
|
- search
|
|
21162
21177
|
- assistant
|
|
21178
|
+
CustomizationSuggestedQuestion:
|
|
21179
|
+
type: string
|
|
21180
|
+
minLength: 3
|
|
21181
|
+
maxLength: 64
|
|
21182
|
+
CustomizationSuggestedQuestions:
|
|
21183
|
+
type: array
|
|
21184
|
+
description: Suggested questions to display at the start of the chosen AI mode.
|
|
21185
|
+
items:
|
|
21186
|
+
$ref: "#/components/schemas/CustomizationSuggestedQuestion"
|
|
21187
|
+
maxItems: 5
|
|
21163
21188
|
SiteExternalLinksTarget:
|
|
21164
21189
|
type: string
|
|
21165
21190
|
description: |
|
|
@@ -21320,6 +21345,8 @@ components:
|
|
|
21320
21345
|
properties:
|
|
21321
21346
|
mode:
|
|
21322
21347
|
$ref: "#/components/schemas/CustomizationAIMode"
|
|
21348
|
+
suggestions:
|
|
21349
|
+
$ref: "#/components/schemas/CustomizationSuggestedQuestions"
|
|
21323
21350
|
required:
|
|
21324
21351
|
- mode
|
|
21325
21352
|
advancedCustomization:
|
|
@@ -21773,6 +21800,21 @@ components:
|
|
|
21773
21800
|
required:
|
|
21774
21801
|
- spaceId
|
|
21775
21802
|
- pageId
|
|
21803
|
+
AIAttachmentImage:
|
|
21804
|
+
type: object
|
|
21805
|
+
properties:
|
|
21806
|
+
type:
|
|
21807
|
+
type: string
|
|
21808
|
+
enum:
|
|
21809
|
+
- image
|
|
21810
|
+
url:
|
|
21811
|
+
$ref: "#/components/schemas/URL"
|
|
21812
|
+
required:
|
|
21813
|
+
- type
|
|
21814
|
+
- url
|
|
21815
|
+
AIAttachment:
|
|
21816
|
+
oneOf:
|
|
21817
|
+
- $ref: "#/components/schemas/AIAttachmentImage"
|
|
21776
21818
|
AIMessageInput:
|
|
21777
21819
|
type: object
|
|
21778
21820
|
description: Input version of an AI message.
|
|
@@ -21788,6 +21830,10 @@ components:
|
|
|
21788
21830
|
- $ref: "#/components/schemas/JSONDocument"
|
|
21789
21831
|
context:
|
|
21790
21832
|
$ref: "#/components/schemas/AIMessageContext"
|
|
21833
|
+
attachments:
|
|
21834
|
+
type: array
|
|
21835
|
+
items:
|
|
21836
|
+
$ref: "#/components/schemas/AIAttachment"
|
|
21791
21837
|
required:
|
|
21792
21838
|
- role
|
|
21793
21839
|
- content
|
|
@@ -21951,14 +21997,17 @@ components:
|
|
|
21951
21997
|
description: The response that generated this message.
|
|
21952
21998
|
type: object
|
|
21953
21999
|
properties:
|
|
22000
|
+
stopReason:
|
|
22001
|
+
type: string
|
|
22002
|
+
description: The reason the response was stopped. If not defined, the response finished normally.
|
|
22003
|
+
enum:
|
|
22004
|
+
- aborted
|
|
21954
22005
|
id:
|
|
21955
22006
|
type: string
|
|
21956
|
-
description: The ID of the response that generated this message.
|
|
22007
|
+
description: The ID of the response that generated this message. It can be undefined if the stream was aborted.
|
|
21957
22008
|
previous:
|
|
21958
22009
|
type: string
|
|
21959
22010
|
description: The ID of the previous response that this message is based on.
|
|
21960
|
-
required:
|
|
21961
|
-
- id
|
|
21962
22011
|
AIStreamResponseFinish:
|
|
21963
22012
|
type: object
|
|
21964
22013
|
description: |
|
|
@@ -21977,11 +22026,11 @@ components:
|
|
|
21977
22026
|
deprecated: true
|
|
21978
22027
|
description: The ID of the response
|
|
21979
22028
|
response:
|
|
22029
|
+
description: The response metadata associated with the message.
|
|
21980
22030
|
$ref: "#/components/schemas/AIMessageResponseMetadata"
|
|
21981
22031
|
required:
|
|
21982
22032
|
- type
|
|
21983
22033
|
- messageId
|
|
21984
|
-
- responseId
|
|
21985
22034
|
- response
|
|
21986
22035
|
AIStreamResponseDocument:
|
|
21987
22036
|
type: object
|
|
@@ -22548,6 +22597,30 @@ components:
|
|
|
22548
22597
|
- type
|
|
22549
22598
|
- messageId
|
|
22550
22599
|
- suggestions
|
|
22600
|
+
AIStreamResponseAttachment:
|
|
22601
|
+
type: object
|
|
22602
|
+
description: |
|
|
22603
|
+
Message emitted by the server to indicate that the AI has attached an image.
|
|
22604
|
+
properties:
|
|
22605
|
+
type:
|
|
22606
|
+
type: string
|
|
22607
|
+
enum:
|
|
22608
|
+
- response_attachment
|
|
22609
|
+
messageId:
|
|
22610
|
+
type: string
|
|
22611
|
+
description: |
|
|
22612
|
+
The ID of the message that this event is composing.
|
|
22613
|
+
stepIndex:
|
|
22614
|
+
type: integer
|
|
22615
|
+
description: |
|
|
22616
|
+
The index of the step of the message that this event is composing.
|
|
22617
|
+
attachment:
|
|
22618
|
+
$ref: "#/components/schemas/AIAttachment"
|
|
22619
|
+
required:
|
|
22620
|
+
- type
|
|
22621
|
+
- messageId
|
|
22622
|
+
- stepIndex
|
|
22623
|
+
- attachment
|
|
22551
22624
|
AIStreamResponse:
|
|
22552
22625
|
oneOf:
|
|
22553
22626
|
- $ref: "#/components/schemas/AIStreamResponseStart"
|
|
@@ -22557,6 +22630,7 @@ components:
|
|
|
22557
22630
|
- $ref: "#/components/schemas/AIStreamResponseToolCall"
|
|
22558
22631
|
- $ref: "#/components/schemas/AIStreamResponseToolCallPending"
|
|
22559
22632
|
- $ref: "#/components/schemas/AIStreamResponseFollowupSuggestion"
|
|
22633
|
+
- $ref: "#/components/schemas/AIStreamResponseAttachment"
|
|
22560
22634
|
SiteInsightsEventSession:
|
|
22561
22635
|
type: object
|
|
22562
22636
|
description: Analytics info on the GitBook's site session.
|
|
@@ -24721,6 +24795,16 @@ components:
|
|
|
24721
24795
|
description: JWT token generated for a authenticated access session.
|
|
24722
24796
|
unsignedClaims:
|
|
24723
24797
|
$ref: "#/components/schemas/PlainObject"
|
|
24798
|
+
Timerange:
|
|
24799
|
+
type: object
|
|
24800
|
+
properties:
|
|
24801
|
+
start:
|
|
24802
|
+
$ref: "#/components/schemas/Timestamp"
|
|
24803
|
+
end:
|
|
24804
|
+
$ref: "#/components/schemas/Timestamp"
|
|
24805
|
+
required:
|
|
24806
|
+
- start
|
|
24807
|
+
- end
|
|
24724
24808
|
SHA256:
|
|
24725
24809
|
type: string
|
|
24726
24810
|
minLength: 64
|
|
@@ -26536,6 +26620,16 @@ components:
|
|
|
26536
26620
|
type: array
|
|
26537
26621
|
items:
|
|
26538
26622
|
$ref: "#/components/schemas/AIToolCall"
|
|
26623
|
+
timing:
|
|
26624
|
+
type: object
|
|
26625
|
+
description: The timing of the step.
|
|
26626
|
+
properties:
|
|
26627
|
+
reasoning:
|
|
26628
|
+
$ref: "#/components/schemas/Timerange"
|
|
26629
|
+
attachments:
|
|
26630
|
+
type: array
|
|
26631
|
+
items:
|
|
26632
|
+
$ref: "#/components/schemas/AIAttachment"
|
|
26539
26633
|
required:
|
|
26540
26634
|
- content
|
|
26541
26635
|
AIMessage:
|
|
@@ -26701,6 +26795,8 @@ components:
|
|
|
26701
26795
|
$ref: "#/components/schemas/UpdateSpaceGitInfo"
|
|
26702
26796
|
RequestPurgeCDNCacheContext:
|
|
26703
26797
|
$ref: "#/components/schemas/PurgeCDNCacheContext"
|
|
26798
|
+
DocumentTextBackgroundColor:
|
|
26799
|
+
$ref: "#/components/schemas/DocumentTextColor"
|
|
26704
26800
|
SpaceVisitorAuth:
|
|
26705
26801
|
$ref: "#/components/schemas/VisitorAuth"
|
|
26706
26802
|
SpaceVisitorAuthCustomBackend:
|