@gitbook/api 0.174.0 → 0.175.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 +57 -40
- package/dist/constants.d.ts +6 -3
- package/dist/index.cjs +29 -26
- package/dist/index.js +25 -26
- package/package.json +1 -1
- package/spec/openapi.json +161 -121
- package/spec/openapi.yaml +107 -71
package/dist/client.d.ts
CHANGED
|
@@ -16,6 +16,10 @@ export declare enum SiteAdsStatus {
|
|
|
16
16
|
Rejected = "rejected",
|
|
17
17
|
Disabled = "disabled"
|
|
18
18
|
}
|
|
19
|
+
export declare enum CustomizationThemeMode {
|
|
20
|
+
Light = "light",
|
|
21
|
+
Dark = "dark"
|
|
22
|
+
}
|
|
19
23
|
export declare enum APIIntegrationScope {
|
|
20
24
|
IntegrationRead = "integration:read",
|
|
21
25
|
IntegrationUpdate = "integration:update",
|
|
@@ -258,12 +262,12 @@ export declare enum AIModel {
|
|
|
258
262
|
}
|
|
259
263
|
export declare enum AIMessageRole {
|
|
260
264
|
User = "user",
|
|
261
|
-
Assistant = "assistant"
|
|
262
|
-
Developer = "developer"
|
|
265
|
+
Assistant = "assistant"
|
|
263
266
|
}
|
|
264
267
|
export declare enum SiteConfigurableChannelType {
|
|
265
268
|
BuiltinSlack = "builtin:slack",
|
|
266
|
-
BuiltinDiscord = "builtin:discord"
|
|
269
|
+
BuiltinDiscord = "builtin:discord",
|
|
270
|
+
BuiltinGithub = "builtin:github"
|
|
267
271
|
}
|
|
268
272
|
export declare enum SiteCoreChannelType {
|
|
269
273
|
Site = "site",
|
|
@@ -376,9 +380,10 @@ export declare enum CustomizationAIMode {
|
|
|
376
380
|
Search = "search",
|
|
377
381
|
Assistant = "assistant"
|
|
378
382
|
}
|
|
379
|
-
export declare enum
|
|
383
|
+
export declare enum CustomizationDefaultThemeMode {
|
|
380
384
|
Light = "light",
|
|
381
|
-
Dark = "dark"
|
|
385
|
+
Dark = "dark",
|
|
386
|
+
System = "system"
|
|
382
387
|
}
|
|
383
388
|
/**
|
|
384
389
|
* The header preset to use for the site. This is a legacy setting and the site styling theme should be used instead.
|
|
@@ -5904,7 +5909,7 @@ export interface SiteCustomizationSettingsBase {
|
|
|
5904
5909
|
announcement?: CustomizationAnnouncement;
|
|
5905
5910
|
/** Customization options for the dark/light theme modes. */
|
|
5906
5911
|
themes: {
|
|
5907
|
-
default:
|
|
5912
|
+
default: CustomizationDefaultThemeMode;
|
|
5908
5913
|
/** Should the reader be able to switch between dark and light mode */
|
|
5909
5914
|
toggeable: boolean;
|
|
5910
5915
|
};
|
|
@@ -6934,7 +6939,7 @@ export interface AIMessageContext {
|
|
|
6934
6939
|
}
|
|
6935
6940
|
/** Input version of an AI message. */
|
|
6936
6941
|
export interface AIMessageInput {
|
|
6937
|
-
role:
|
|
6942
|
+
role: AIMessageRole;
|
|
6938
6943
|
content: string | JSONDocument;
|
|
6939
6944
|
/** Context about the current user sending a message. */
|
|
6940
6945
|
context?: AIMessageContext;
|
|
@@ -7610,17 +7615,33 @@ export interface SiteMcpServer {
|
|
|
7610
7615
|
location: string;
|
|
7611
7616
|
};
|
|
7612
7617
|
}
|
|
7618
|
+
/**
|
|
7619
|
+
* A generic channel name or pattern. For example, "general" or "support-*".
|
|
7620
|
+
* @pattern ^[a-zA-Z0-9_\*-]+$
|
|
7621
|
+
*/
|
|
7622
|
+
export type GenericChannelPattern = string;
|
|
7623
|
+
/**
|
|
7624
|
+
* A GitHub repository name or pattern in the format "owner/repository". For example, "my-org/my-repo" or "my-org/*" to allow all repositories under "my-org".
|
|
7625
|
+
* @pattern ^[a-zA-Z0-9._*-]+\/[a-zA-Z0-9._*-]+$
|
|
7626
|
+
*/
|
|
7627
|
+
export type GitHubRepositoryPattern = string;
|
|
7613
7628
|
export type SiteChannelSetup = {
|
|
7614
7629
|
type: "builtin:slack";
|
|
7615
7630
|
setupSettings: {
|
|
7616
7631
|
/** List of allowed Slack channel names or patterns. If empty, all channels are allowed. */
|
|
7617
|
-
allowedChannels?:
|
|
7632
|
+
allowedChannels?: GenericChannelPattern[];
|
|
7633
|
+
};
|
|
7634
|
+
} | {
|
|
7635
|
+
type: "builtin:github";
|
|
7636
|
+
setupSettings: {
|
|
7637
|
+
/** List of allowed GitHub repository names or patterns. If empty, all repositories are allowed. */
|
|
7638
|
+
allowedRepositories?: GitHubRepositoryPattern[];
|
|
7618
7639
|
};
|
|
7619
7640
|
} | {
|
|
7620
7641
|
type: "builtin:discord";
|
|
7621
7642
|
setupSettings: {
|
|
7622
7643
|
/** List of allowed Discord channel names or patterns. If empty, all channels are allowed. */
|
|
7623
|
-
allowedChannels?:
|
|
7644
|
+
allowedChannels?: GenericChannelPattern[];
|
|
7624
7645
|
};
|
|
7625
7646
|
};
|
|
7626
7647
|
export type SiteChannel = SiteChannelSetup & {
|
|
@@ -13502,31 +13523,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13502
13523
|
* @secure
|
|
13503
13524
|
*/
|
|
13504
13525
|
deleteSiteSectionGroupById: (organizationId: EntityId, siteId: string, siteSectionGroupId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
13505
|
-
/**
|
|
13506
|
-
* No description
|
|
13507
|
-
*
|
|
13508
|
-
* @tags site-section-groups
|
|
13509
|
-
* @name AddSectionToGroup
|
|
13510
|
-
* @summary Add a section to a section group
|
|
13511
|
-
* @request POST:/orgs/{organizationId}/sites/{siteId}/section-groups/{siteSectionGroupId}/sections
|
|
13512
|
-
* @deprecated
|
|
13513
|
-
* @secure
|
|
13514
|
-
*/
|
|
13515
|
-
addSectionToGroup: (organizationId: EntityId, siteId: string, siteSectionGroupId: string, data: {
|
|
13516
|
-
/** ID of the section to add to the section group */
|
|
13517
|
-
sectionId: string;
|
|
13518
|
-
}, params?: RequestParams) => Promise<HttpResponse<SiteSectionGroup, any>>;
|
|
13519
|
-
/**
|
|
13520
|
-
* No description
|
|
13521
|
-
*
|
|
13522
|
-
* @tags site-section-groups
|
|
13523
|
-
* @name RemoveSectionFromGroup
|
|
13524
|
-
* @summary Remove a section from a section group
|
|
13525
|
-
* @request DELETE:/orgs/{organizationId}/sites/{siteId}/section-groups/{siteSectionGroupId}/sections/{siteSectionId}
|
|
13526
|
-
* @deprecated
|
|
13527
|
-
* @secure
|
|
13528
|
-
*/
|
|
13529
|
-
removeSectionFromGroup: (organizationId: EntityId, siteId: string, siteSectionGroupId: string, siteSectionId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
13530
13526
|
/**
|
|
13531
13527
|
* No description
|
|
13532
13528
|
*
|
|
@@ -14089,8 +14085,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14089
14085
|
relevance?: SiteQuestionAnswerRelevance[];
|
|
14090
14086
|
/** Filter questions by answer resolution. */
|
|
14091
14087
|
answered?: SiteQuestionAnswerResolution[];
|
|
14092
|
-
/** Filter questions by associated site topic
|
|
14093
|
-
topic?: string;
|
|
14088
|
+
/** Filter questions by associated site topic IDs. */
|
|
14089
|
+
topic?: string[];
|
|
14094
14090
|
/**
|
|
14095
14091
|
* An order for the items in the list
|
|
14096
14092
|
* @default "desc"
|
|
@@ -14118,7 +14114,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14118
14114
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/questions/{siteQuestionId}
|
|
14119
14115
|
* @secure
|
|
14120
14116
|
*/
|
|
14121
|
-
getSiteQuestionById: (organizationId: EntityId, siteId: string, siteQuestionId: string,
|
|
14117
|
+
getSiteQuestionById: (organizationId: EntityId, siteId: string, siteQuestionId: string, query?: {
|
|
14118
|
+
/** Filter stats to answers created at or after this timestamp. */
|
|
14119
|
+
from?: Timestamp;
|
|
14120
|
+
/** Filter stats to answers created at or before this timestamp. */
|
|
14121
|
+
to?: Timestamp;
|
|
14122
|
+
/** Filter stats by question relevance. */
|
|
14123
|
+
relevance?: SiteQuestionAnswerRelevance[];
|
|
14124
|
+
/** Filter stats by answer resolution. */
|
|
14125
|
+
answered?: SiteQuestionAnswerResolution[];
|
|
14126
|
+
}, params?: RequestParams) => Promise<HttpResponse<SiteQuestion, any>>;
|
|
14122
14127
|
/**
|
|
14123
14128
|
* No description
|
|
14124
14129
|
*
|
|
@@ -14137,6 +14142,14 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14137
14142
|
* @max 1000
|
|
14138
14143
|
*/
|
|
14139
14144
|
limit?: number;
|
|
14145
|
+
/** Filter sources to answers created at or after this timestamp. */
|
|
14146
|
+
from?: Timestamp;
|
|
14147
|
+
/** Filter sources to answers created at or before this timestamp. */
|
|
14148
|
+
to?: Timestamp;
|
|
14149
|
+
/** Filter answer sources by question relevance. */
|
|
14150
|
+
relevance?: SiteQuestionAnswerRelevance[];
|
|
14151
|
+
/** Filter answer sources by answer resolution. */
|
|
14152
|
+
answered?: SiteQuestionAnswerResolution[];
|
|
14140
14153
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
14141
14154
|
items: SiteQuestionAnswerSource[];
|
|
14142
14155
|
}, any>>;
|
|
@@ -14173,14 +14186,18 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14173
14186
|
listSiteQuestionAnswers: (organizationId: EntityId, siteId: string, query?: {
|
|
14174
14187
|
/** Filter answers to a specific site question ID. */
|
|
14175
14188
|
question?: string;
|
|
14189
|
+
/** Filter answers created at or after this timestamp. */
|
|
14190
|
+
from?: Timestamp;
|
|
14191
|
+
/** Filter answers created at or before this timestamp. */
|
|
14192
|
+
to?: Timestamp;
|
|
14176
14193
|
/** Filter answers by ISO language code. */
|
|
14177
14194
|
language?: string;
|
|
14178
14195
|
/** Filter answers by answered resolution. */
|
|
14179
|
-
answered?: SiteQuestionAnswerResolution;
|
|
14196
|
+
answered?: SiteQuestionAnswerResolution[];
|
|
14180
14197
|
/** Filter answers by answered helpfulness. */
|
|
14181
14198
|
helpfulness?: SiteQuestionAnswerHelpfulness;
|
|
14182
14199
|
/** Filter answers by question relevance. */
|
|
14183
|
-
relevance?: SiteQuestionAnswerRelevance;
|
|
14200
|
+
relevance?: SiteQuestionAnswerRelevance[];
|
|
14184
14201
|
/** Filter answers by question type. */
|
|
14185
14202
|
"question.type"?: SiteQuestionType;
|
|
14186
14203
|
/** Filter answers by associated site topic ID. */
|
|
@@ -14380,7 +14397,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14380
14397
|
};
|
|
14381
14398
|
themes?: {
|
|
14382
14399
|
/** The theme mode default value. Set to null to reset the override. */
|
|
14383
|
-
default?:
|
|
14400
|
+
default?: CustomizationDefaultThemeMode | null;
|
|
14384
14401
|
/** Should the reader be able to switch between dark and light mode. Set to null to reset the override. */
|
|
14385
14402
|
toggeable?: boolean | null;
|
|
14386
14403
|
};
|
package/dist/constants.d.ts
CHANGED
|
@@ -126,7 +126,7 @@ export declare const CUSTOMIZATION_HEADER_PRESET_ENUM: ["default", "bold", "cont
|
|
|
126
126
|
export declare const CUSTOMIZATION_CONTENT_LINK_TITLE_MAX_LENGTH = 64;
|
|
127
127
|
export declare const CUSTOMIZATION_ANNOUNCEMENT_MESSAGE_MAX_LENGTH = 128;
|
|
128
128
|
export declare const CUSTOMIZATION_ANNOUNCEMENT_MESSAGE_MIN_LENGTH = 2;
|
|
129
|
-
export declare const
|
|
129
|
+
export declare const CUSTOMIZATION_DEFAULT_THEME_MODE_ENUM: ["light", "dark", "system"];
|
|
130
130
|
export declare const CUSTOMIZATION_AIMODE_ENUM: ["none", "search", "assistant"];
|
|
131
131
|
export declare const CUSTOMIZATION_SUGGESTED_QUESTION_MAX_LENGTH = 64;
|
|
132
132
|
export declare const CUSTOMIZATION_SUGGESTED_QUESTION_MIN_LENGTH = 3;
|
|
@@ -154,8 +154,8 @@ export declare const SITE_QUESTION_ANSWER_RELEVANCE_ENUM: ["relevant", "spam", "
|
|
|
154
154
|
export declare const SITE_QUESTION_ANSWER_RESOLUTION_ENUM: ["no", "partially", "yes"];
|
|
155
155
|
export declare const SITE_QUESTION_ANSWER_HELPFULNESS_ENUM: ["low", "medium", "high"];
|
|
156
156
|
export declare const SITE_CORE_CHANNEL_TYPE_ENUM: ["site", "embed", "api"];
|
|
157
|
-
export declare const SITE_CONFIGURABLE_CHANNEL_TYPE_ENUM: ["builtin:slack", "builtin:discord"];
|
|
158
|
-
export declare const AIMESSAGE_ROLE_ENUM: ["user", "assistant"
|
|
157
|
+
export declare const SITE_CONFIGURABLE_CHANNEL_TYPE_ENUM: ["builtin:slack", "builtin:discord", "builtin:github"];
|
|
158
|
+
export declare const AIMESSAGE_ROLE_ENUM: ["user", "assistant"];
|
|
159
159
|
export declare const AIMODEL_ENUM: ["fast", "reasoning-low", "reasoning-medium", "reasoning-high"];
|
|
160
160
|
export declare const SITE_SETTINGS_SCAN_TOPICS_ENUM: ["auto", "never"];
|
|
161
161
|
export declare const SITE_SETTINGS_FINDING_CHANGE_REQUESTS_ENUM: ["always", "auto-fixable", "never"];
|
|
@@ -174,6 +174,8 @@ export declare const SITE_REDIRECT_SOURCE_PATH_MAX_LENGTH = 512;
|
|
|
174
174
|
export declare const SITE_REDIRECT_SOURCE_PATH_PATTERN = "^\\/(?!\\*)(?!.*\\*.+)(?:[A-Za-z0-9\\-._~]|%[0-9A-Fa-f]{2})+(?:\\/(?:[A-Za-z0-9\\-._~]|%[0-9A-Fa-f]{2})+)*(?:\\/\\*|\\*)?$";
|
|
175
175
|
export declare const SITE_MCP_SERVER_NAME_MAX_LENGTH = 100;
|
|
176
176
|
export declare const SITE_MCP_SERVER_NAME_MIN_LENGTH = 1;
|
|
177
|
+
export declare const GENERIC_CHANNEL_PATTERN_PATTERN = "^[a-zA-Z0-9_\\*-]+$";
|
|
178
|
+
export declare const GIT_HUB_REPOSITORY_PATTERN_PATTERN = "^[a-zA-Z0-9._*-]+\\/[a-zA-Z0-9._*-]+$";
|
|
177
179
|
export declare const SITE_CHANNEL_STATUS_ENUM: ["active", "pending"];
|
|
178
180
|
export declare const SITE_CHANNEL_ROLE_ENUM: ["collaborator", "support"];
|
|
179
181
|
export declare const CUSTOM_HOSTNAME_DNS_STATUS_ENUM: ["dns_passed", "dns_wrong_cname", "dns_no_cname", "dns_cloudflare_proxied", "dns_wrong_caa"];
|
|
@@ -191,6 +193,7 @@ export declare const GIT_SYNC_OPERATION_DIRECTION_ENUM: ["export", "import"];
|
|
|
191
193
|
export declare const GIT_SYNC_OPERATION_STAGE_ENUM: ["repo_fetch", "config_check", "content_process", "finalize"];
|
|
192
194
|
export declare const BILLING_STATUS_ENUM: ["trialing", "active", "past_due", "incomplete_expired", "canceled", "unpaid", "paused"];
|
|
193
195
|
export declare const APIINTEGRATION_SCOPE_ENUM: ["integration:read", "integration:update", "integration:installation:read", "integration:installation:update"];
|
|
196
|
+
export declare const CUSTOMIZATION_THEME_MODE_ENUM: ["light", "dark"];
|
|
194
197
|
export declare const SITE_ADS_STATUS_ENUM: ["pending", "in-review", "live", "rejected", "disabled"];
|
|
195
198
|
export declare const SITE_QUESTION_ANSWER_SOURCE_TYPE_ENUM: ["page", "record"];
|
|
196
199
|
export declare const AGENT_STATUS_ENUM: ["idle", "processing", "errored"];
|
package/dist/index.cjs
CHANGED
|
@@ -241,6 +241,7 @@ __export(src_exports, {
|
|
|
241
241
|
CUSTOMIZATION_CORNERS_ENUM: () => CUSTOMIZATION_CORNERS_ENUM,
|
|
242
242
|
CUSTOMIZATION_DEFAULT_FONT_ENUM: () => CUSTOMIZATION_DEFAULT_FONT_ENUM,
|
|
243
243
|
CUSTOMIZATION_DEFAULT_MONOSPACE_FONT_ENUM: () => CUSTOMIZATION_DEFAULT_MONOSPACE_FONT_ENUM,
|
|
244
|
+
CUSTOMIZATION_DEFAULT_THEME_MODE_ENUM: () => CUSTOMIZATION_DEFAULT_THEME_MODE_ENUM,
|
|
244
245
|
CUSTOMIZATION_DEPTH_ENUM: () => CUSTOMIZATION_DEPTH_ENUM,
|
|
245
246
|
CUSTOMIZATION_HEADER_PRESET_ENUM: () => CUSTOMIZATION_HEADER_PRESET_ENUM,
|
|
246
247
|
CUSTOMIZATION_ICONS_STYLE_ENUM: () => CUSTOMIZATION_ICONS_STYLE_ENUM,
|
|
@@ -280,6 +281,7 @@ __export(src_exports, {
|
|
|
280
281
|
CustomizationCorners: () => CustomizationCorners,
|
|
281
282
|
CustomizationDefaultFont: () => CustomizationDefaultFont,
|
|
282
283
|
CustomizationDefaultMonospaceFont: () => CustomizationDefaultMonospaceFont,
|
|
284
|
+
CustomizationDefaultThemeMode: () => CustomizationDefaultThemeMode,
|
|
283
285
|
CustomizationDepth: () => CustomizationDepth,
|
|
284
286
|
CustomizationHeaderPreset: () => CustomizationHeaderPreset,
|
|
285
287
|
CustomizationIconsStyle: () => CustomizationIconsStyle,
|
|
@@ -298,8 +300,10 @@ __export(src_exports, {
|
|
|
298
300
|
EXPRESSION_MIN_LENGTH: () => EXPRESSION_MIN_LENGTH,
|
|
299
301
|
FONT_FAMILY_MAX_LENGTH: () => FONT_FAMILY_MAX_LENGTH,
|
|
300
302
|
FONT_FAMILY_MIN_LENGTH: () => FONT_FAMILY_MIN_LENGTH,
|
|
303
|
+
GENERIC_CHANNEL_PATTERN_PATTERN: () => GENERIC_CHANNEL_PATTERN_PATTERN,
|
|
301
304
|
GITBOOK_DEFAULT_ENDPOINT: () => GITBOOK_DEFAULT_ENDPOINT,
|
|
302
305
|
GIT_BOOK_USERS_ENUM: () => GIT_BOOK_USERS_ENUM,
|
|
306
|
+
GIT_HUB_REPOSITORY_PATTERN_PATTERN: () => GIT_HUB_REPOSITORY_PATTERN_PATTERN,
|
|
303
307
|
GIT_SYNC_OPERATION_DIRECTION_ENUM: () => GIT_SYNC_OPERATION_DIRECTION_ENUM,
|
|
304
308
|
GIT_SYNC_OPERATION_STAGE_ENUM: () => GIT_SYNC_OPERATION_STAGE_ENUM,
|
|
305
309
|
GIT_SYNC_OPERATION_STATE_ENUM: () => GIT_SYNC_OPERATION_STATE_ENUM,
|
|
@@ -500,7 +504,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
500
504
|
|
|
501
505
|
// package.json
|
|
502
506
|
var name = "@gitbook/api";
|
|
503
|
-
var version = "0.
|
|
507
|
+
var version = "0.175.0";
|
|
504
508
|
|
|
505
509
|
// src/client.ts
|
|
506
510
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -626,6 +630,11 @@ var SiteAdsStatus = /* @__PURE__ */ ((SiteAdsStatus2) => {
|
|
|
626
630
|
SiteAdsStatus2["Disabled"] = "disabled";
|
|
627
631
|
return SiteAdsStatus2;
|
|
628
632
|
})(SiteAdsStatus || {});
|
|
633
|
+
var CustomizationThemeMode = /* @__PURE__ */ ((CustomizationThemeMode2) => {
|
|
634
|
+
CustomizationThemeMode2["Light"] = "light";
|
|
635
|
+
CustomizationThemeMode2["Dark"] = "dark";
|
|
636
|
+
return CustomizationThemeMode2;
|
|
637
|
+
})(CustomizationThemeMode || {});
|
|
629
638
|
var APIIntegrationScope = /* @__PURE__ */ ((APIIntegrationScope2) => {
|
|
630
639
|
APIIntegrationScope2["IntegrationRead"] = "integration:read";
|
|
631
640
|
APIIntegrationScope2["IntegrationUpdate"] = "integration:update";
|
|
@@ -877,12 +886,12 @@ var AIModel = /* @__PURE__ */ ((AIModel2) => {
|
|
|
877
886
|
var AIMessageRole = /* @__PURE__ */ ((AIMessageRole2) => {
|
|
878
887
|
AIMessageRole2["User"] = "user";
|
|
879
888
|
AIMessageRole2["Assistant"] = "assistant";
|
|
880
|
-
AIMessageRole2["Developer"] = "developer";
|
|
881
889
|
return AIMessageRole2;
|
|
882
890
|
})(AIMessageRole || {});
|
|
883
891
|
var SiteConfigurableChannelType = /* @__PURE__ */ ((SiteConfigurableChannelType2) => {
|
|
884
892
|
SiteConfigurableChannelType2["BuiltinSlack"] = "builtin:slack";
|
|
885
893
|
SiteConfigurableChannelType2["BuiltinDiscord"] = "builtin:discord";
|
|
894
|
+
SiteConfigurableChannelType2["BuiltinGithub"] = "builtin:github";
|
|
886
895
|
return SiteConfigurableChannelType2;
|
|
887
896
|
})(SiteConfigurableChannelType || {});
|
|
888
897
|
var SiteCoreChannelType = /* @__PURE__ */ ((SiteCoreChannelType2) => {
|
|
@@ -990,11 +999,12 @@ var CustomizationAIMode = /* @__PURE__ */ ((CustomizationAIMode2) => {
|
|
|
990
999
|
CustomizationAIMode2["Assistant"] = "assistant";
|
|
991
1000
|
return CustomizationAIMode2;
|
|
992
1001
|
})(CustomizationAIMode || {});
|
|
993
|
-
var
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
1002
|
+
var CustomizationDefaultThemeMode = /* @__PURE__ */ ((CustomizationDefaultThemeMode2) => {
|
|
1003
|
+
CustomizationDefaultThemeMode2["Light"] = "light";
|
|
1004
|
+
CustomizationDefaultThemeMode2["Dark"] = "dark";
|
|
1005
|
+
CustomizationDefaultThemeMode2["System"] = "system";
|
|
1006
|
+
return CustomizationDefaultThemeMode2;
|
|
1007
|
+
})(CustomizationDefaultThemeMode || {});
|
|
998
1008
|
var CustomizationHeaderPreset = /* @__PURE__ */ ((CustomizationHeaderPreset2) => {
|
|
999
1009
|
CustomizationHeaderPreset2["Default"] = "default";
|
|
1000
1010
|
CustomizationHeaderPreset2["Bold"] = "bold";
|
|
@@ -3785,21 +3795,6 @@ var Api = class extends HttpClient {
|
|
|
3785
3795
|
secure: true,
|
|
3786
3796
|
...params
|
|
3787
3797
|
}),
|
|
3788
|
-
addSectionToGroup: (organizationId, siteId, siteSectionGroupId, data, params = {}) => this.request({
|
|
3789
|
-
path: `/orgs/${organizationId}/sites/${siteId}/section-groups/${siteSectionGroupId}/sections`,
|
|
3790
|
-
method: "POST",
|
|
3791
|
-
body: data,
|
|
3792
|
-
secure: true,
|
|
3793
|
-
type: "application/json" /* Json */,
|
|
3794
|
-
format: "json",
|
|
3795
|
-
...params
|
|
3796
|
-
}),
|
|
3797
|
-
removeSectionFromGroup: (organizationId, siteId, siteSectionGroupId, siteSectionId, params = {}) => this.request({
|
|
3798
|
-
path: `/orgs/${organizationId}/sites/${siteId}/section-groups/${siteSectionGroupId}/sections/${siteSectionId}`,
|
|
3799
|
-
method: "DELETE",
|
|
3800
|
-
secure: true,
|
|
3801
|
-
...params
|
|
3802
|
-
}),
|
|
3803
3798
|
addSectionToSite: (organizationId, siteId, data, params = {}) => this.request({
|
|
3804
3799
|
path: `/orgs/${organizationId}/sites/${siteId}/sections`,
|
|
3805
3800
|
method: "POST",
|
|
@@ -4050,9 +4045,10 @@ var Api = class extends HttpClient {
|
|
|
4050
4045
|
format: "json",
|
|
4051
4046
|
...params
|
|
4052
4047
|
}),
|
|
4053
|
-
getSiteQuestionById: (organizationId, siteId, siteQuestionId, params = {}) => this.request({
|
|
4048
|
+
getSiteQuestionById: (organizationId, siteId, siteQuestionId, query, params = {}) => this.request({
|
|
4054
4049
|
path: `/orgs/${organizationId}/sites/${siteId}/questions/${siteQuestionId}`,
|
|
4055
4050
|
method: "GET",
|
|
4051
|
+
query,
|
|
4056
4052
|
secure: true,
|
|
4057
4053
|
format: "json",
|
|
4058
4054
|
...params
|
|
@@ -4668,7 +4664,7 @@ var CUSTOMIZATION_HEADER_PRESET_ENUM = ["default", "bold", "contrast", "custom",
|
|
|
4668
4664
|
var CUSTOMIZATION_CONTENT_LINK_TITLE_MAX_LENGTH = 64;
|
|
4669
4665
|
var CUSTOMIZATION_ANNOUNCEMENT_MESSAGE_MAX_LENGTH = 128;
|
|
4670
4666
|
var CUSTOMIZATION_ANNOUNCEMENT_MESSAGE_MIN_LENGTH = 2;
|
|
4671
|
-
var
|
|
4667
|
+
var CUSTOMIZATION_DEFAULT_THEME_MODE_ENUM = ["light", "dark", "system"];
|
|
4672
4668
|
var CUSTOMIZATION_AIMODE_ENUM = ["none", "search", "assistant"];
|
|
4673
4669
|
var CUSTOMIZATION_SUGGESTED_QUESTION_MAX_LENGTH = 64;
|
|
4674
4670
|
var CUSTOMIZATION_SUGGESTED_QUESTION_MIN_LENGTH = 3;
|
|
@@ -4696,8 +4692,8 @@ var SITE_QUESTION_ANSWER_RELEVANCE_ENUM = ["relevant", "spam", "off-topic", "unc
|
|
|
4696
4692
|
var SITE_QUESTION_ANSWER_RESOLUTION_ENUM = ["no", "partially", "yes"];
|
|
4697
4693
|
var SITE_QUESTION_ANSWER_HELPFULNESS_ENUM = ["low", "medium", "high"];
|
|
4698
4694
|
var SITE_CORE_CHANNEL_TYPE_ENUM = ["site", "embed", "api"];
|
|
4699
|
-
var SITE_CONFIGURABLE_CHANNEL_TYPE_ENUM = ["builtin:slack", "builtin:discord"];
|
|
4700
|
-
var AIMESSAGE_ROLE_ENUM = ["user", "assistant"
|
|
4695
|
+
var SITE_CONFIGURABLE_CHANNEL_TYPE_ENUM = ["builtin:slack", "builtin:discord", "builtin:github"];
|
|
4696
|
+
var AIMESSAGE_ROLE_ENUM = ["user", "assistant"];
|
|
4701
4697
|
var AIMODEL_ENUM = ["fast", "reasoning-low", "reasoning-medium", "reasoning-high"];
|
|
4702
4698
|
var SITE_SETTINGS_SCAN_TOPICS_ENUM = ["auto", "never"];
|
|
4703
4699
|
var SITE_SETTINGS_FINDING_CHANGE_REQUESTS_ENUM = ["always", "auto-fixable", "never"];
|
|
@@ -4716,6 +4712,8 @@ var SITE_REDIRECT_SOURCE_PATH_MAX_LENGTH = 512;
|
|
|
4716
4712
|
var SITE_REDIRECT_SOURCE_PATH_PATTERN = "^\\/(?!\\*)(?!.*\\*.+)(?:[A-Za-z0-9\\-._~]|%[0-9A-Fa-f]{2})+(?:\\/(?:[A-Za-z0-9\\-._~]|%[0-9A-Fa-f]{2})+)*(?:\\/\\*|\\*)?$";
|
|
4717
4713
|
var SITE_MCP_SERVER_NAME_MAX_LENGTH = 100;
|
|
4718
4714
|
var SITE_MCP_SERVER_NAME_MIN_LENGTH = 1;
|
|
4715
|
+
var GENERIC_CHANNEL_PATTERN_PATTERN = "^[a-zA-Z0-9_\\*-]+$";
|
|
4716
|
+
var GIT_HUB_REPOSITORY_PATTERN_PATTERN = "^[a-zA-Z0-9._*-]+\\/[a-zA-Z0-9._*-]+$";
|
|
4719
4717
|
var SITE_CHANNEL_STATUS_ENUM = ["active", "pending"];
|
|
4720
4718
|
var SITE_CHANNEL_ROLE_ENUM = ["collaborator", "support"];
|
|
4721
4719
|
var CUSTOM_HOSTNAME_DNS_STATUS_ENUM = ["dns_passed", "dns_wrong_cname", "dns_no_cname", "dns_cloudflare_proxied", "dns_wrong_caa"];
|
|
@@ -4733,6 +4731,7 @@ var GIT_SYNC_OPERATION_DIRECTION_ENUM = ["export", "import"];
|
|
|
4733
4731
|
var GIT_SYNC_OPERATION_STAGE_ENUM = ["repo_fetch", "config_check", "content_process", "finalize"];
|
|
4734
4732
|
var BILLING_STATUS_ENUM = ["trialing", "active", "past_due", "incomplete_expired", "canceled", "unpaid", "paused"];
|
|
4735
4733
|
var APIINTEGRATION_SCOPE_ENUM = ["integration:read", "integration:update", "integration:installation:read", "integration:installation:update"];
|
|
4734
|
+
var CUSTOMIZATION_THEME_MODE_ENUM = ["light", "dark"];
|
|
4736
4735
|
var SITE_ADS_STATUS_ENUM = ["pending", "in-review", "live", "rejected", "disabled"];
|
|
4737
4736
|
var SITE_QUESTION_ANSWER_SOURCE_TYPE_ENUM = ["page", "record"];
|
|
4738
4737
|
var AGENT_STATUS_ENUM = ["idle", "processing", "errored"];
|
|
@@ -4868,6 +4867,7 @@ var GitBookAPI = class extends Api {
|
|
|
4868
4867
|
CUSTOMIZATION_CORNERS_ENUM,
|
|
4869
4868
|
CUSTOMIZATION_DEFAULT_FONT_ENUM,
|
|
4870
4869
|
CUSTOMIZATION_DEFAULT_MONOSPACE_FONT_ENUM,
|
|
4870
|
+
CUSTOMIZATION_DEFAULT_THEME_MODE_ENUM,
|
|
4871
4871
|
CUSTOMIZATION_DEPTH_ENUM,
|
|
4872
4872
|
CUSTOMIZATION_HEADER_PRESET_ENUM,
|
|
4873
4873
|
CUSTOMIZATION_ICONS_STYLE_ENUM,
|
|
@@ -4907,6 +4907,7 @@ var GitBookAPI = class extends Api {
|
|
|
4907
4907
|
CustomizationCorners,
|
|
4908
4908
|
CustomizationDefaultFont,
|
|
4909
4909
|
CustomizationDefaultMonospaceFont,
|
|
4910
|
+
CustomizationDefaultThemeMode,
|
|
4910
4911
|
CustomizationDepth,
|
|
4911
4912
|
CustomizationHeaderPreset,
|
|
4912
4913
|
CustomizationIconsStyle,
|
|
@@ -4925,8 +4926,10 @@ var GitBookAPI = class extends Api {
|
|
|
4925
4926
|
EXPRESSION_MIN_LENGTH,
|
|
4926
4927
|
FONT_FAMILY_MAX_LENGTH,
|
|
4927
4928
|
FONT_FAMILY_MIN_LENGTH,
|
|
4929
|
+
GENERIC_CHANNEL_PATTERN_PATTERN,
|
|
4928
4930
|
GITBOOK_DEFAULT_ENDPOINT,
|
|
4929
4931
|
GIT_BOOK_USERS_ENUM,
|
|
4932
|
+
GIT_HUB_REPOSITORY_PATTERN_PATTERN,
|
|
4930
4933
|
GIT_SYNC_OPERATION_DIRECTION_ENUM,
|
|
4931
4934
|
GIT_SYNC_OPERATION_STAGE_ENUM,
|
|
4932
4935
|
GIT_SYNC_OPERATION_STATE_ENUM,
|
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.175.0";
|
|
176
176
|
|
|
177
177
|
// src/client.ts
|
|
178
178
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -298,6 +298,11 @@ var SiteAdsStatus = /* @__PURE__ */ ((SiteAdsStatus2) => {
|
|
|
298
298
|
SiteAdsStatus2["Disabled"] = "disabled";
|
|
299
299
|
return SiteAdsStatus2;
|
|
300
300
|
})(SiteAdsStatus || {});
|
|
301
|
+
var CustomizationThemeMode = /* @__PURE__ */ ((CustomizationThemeMode2) => {
|
|
302
|
+
CustomizationThemeMode2["Light"] = "light";
|
|
303
|
+
CustomizationThemeMode2["Dark"] = "dark";
|
|
304
|
+
return CustomizationThemeMode2;
|
|
305
|
+
})(CustomizationThemeMode || {});
|
|
301
306
|
var APIIntegrationScope = /* @__PURE__ */ ((APIIntegrationScope2) => {
|
|
302
307
|
APIIntegrationScope2["IntegrationRead"] = "integration:read";
|
|
303
308
|
APIIntegrationScope2["IntegrationUpdate"] = "integration:update";
|
|
@@ -549,12 +554,12 @@ var AIModel = /* @__PURE__ */ ((AIModel2) => {
|
|
|
549
554
|
var AIMessageRole = /* @__PURE__ */ ((AIMessageRole2) => {
|
|
550
555
|
AIMessageRole2["User"] = "user";
|
|
551
556
|
AIMessageRole2["Assistant"] = "assistant";
|
|
552
|
-
AIMessageRole2["Developer"] = "developer";
|
|
553
557
|
return AIMessageRole2;
|
|
554
558
|
})(AIMessageRole || {});
|
|
555
559
|
var SiteConfigurableChannelType = /* @__PURE__ */ ((SiteConfigurableChannelType2) => {
|
|
556
560
|
SiteConfigurableChannelType2["BuiltinSlack"] = "builtin:slack";
|
|
557
561
|
SiteConfigurableChannelType2["BuiltinDiscord"] = "builtin:discord";
|
|
562
|
+
SiteConfigurableChannelType2["BuiltinGithub"] = "builtin:github";
|
|
558
563
|
return SiteConfigurableChannelType2;
|
|
559
564
|
})(SiteConfigurableChannelType || {});
|
|
560
565
|
var SiteCoreChannelType = /* @__PURE__ */ ((SiteCoreChannelType2) => {
|
|
@@ -662,11 +667,12 @@ var CustomizationAIMode = /* @__PURE__ */ ((CustomizationAIMode2) => {
|
|
|
662
667
|
CustomizationAIMode2["Assistant"] = "assistant";
|
|
663
668
|
return CustomizationAIMode2;
|
|
664
669
|
})(CustomizationAIMode || {});
|
|
665
|
-
var
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
+
var CustomizationDefaultThemeMode = /* @__PURE__ */ ((CustomizationDefaultThemeMode2) => {
|
|
671
|
+
CustomizationDefaultThemeMode2["Light"] = "light";
|
|
672
|
+
CustomizationDefaultThemeMode2["Dark"] = "dark";
|
|
673
|
+
CustomizationDefaultThemeMode2["System"] = "system";
|
|
674
|
+
return CustomizationDefaultThemeMode2;
|
|
675
|
+
})(CustomizationDefaultThemeMode || {});
|
|
670
676
|
var CustomizationHeaderPreset = /* @__PURE__ */ ((CustomizationHeaderPreset2) => {
|
|
671
677
|
CustomizationHeaderPreset2["Default"] = "default";
|
|
672
678
|
CustomizationHeaderPreset2["Bold"] = "bold";
|
|
@@ -3457,21 +3463,6 @@ var Api = class extends HttpClient {
|
|
|
3457
3463
|
secure: true,
|
|
3458
3464
|
...params
|
|
3459
3465
|
}),
|
|
3460
|
-
addSectionToGroup: (organizationId, siteId, siteSectionGroupId, data, params = {}) => this.request({
|
|
3461
|
-
path: `/orgs/${organizationId}/sites/${siteId}/section-groups/${siteSectionGroupId}/sections`,
|
|
3462
|
-
method: "POST",
|
|
3463
|
-
body: data,
|
|
3464
|
-
secure: true,
|
|
3465
|
-
type: "application/json" /* Json */,
|
|
3466
|
-
format: "json",
|
|
3467
|
-
...params
|
|
3468
|
-
}),
|
|
3469
|
-
removeSectionFromGroup: (organizationId, siteId, siteSectionGroupId, siteSectionId, params = {}) => this.request({
|
|
3470
|
-
path: `/orgs/${organizationId}/sites/${siteId}/section-groups/${siteSectionGroupId}/sections/${siteSectionId}`,
|
|
3471
|
-
method: "DELETE",
|
|
3472
|
-
secure: true,
|
|
3473
|
-
...params
|
|
3474
|
-
}),
|
|
3475
3466
|
addSectionToSite: (organizationId, siteId, data, params = {}) => this.request({
|
|
3476
3467
|
path: `/orgs/${organizationId}/sites/${siteId}/sections`,
|
|
3477
3468
|
method: "POST",
|
|
@@ -3722,9 +3713,10 @@ var Api = class extends HttpClient {
|
|
|
3722
3713
|
format: "json",
|
|
3723
3714
|
...params
|
|
3724
3715
|
}),
|
|
3725
|
-
getSiteQuestionById: (organizationId, siteId, siteQuestionId, params = {}) => this.request({
|
|
3716
|
+
getSiteQuestionById: (organizationId, siteId, siteQuestionId, query, params = {}) => this.request({
|
|
3726
3717
|
path: `/orgs/${organizationId}/sites/${siteId}/questions/${siteQuestionId}`,
|
|
3727
3718
|
method: "GET",
|
|
3719
|
+
query,
|
|
3728
3720
|
secure: true,
|
|
3729
3721
|
format: "json",
|
|
3730
3722
|
...params
|
|
@@ -4340,7 +4332,7 @@ var CUSTOMIZATION_HEADER_PRESET_ENUM = ["default", "bold", "contrast", "custom",
|
|
|
4340
4332
|
var CUSTOMIZATION_CONTENT_LINK_TITLE_MAX_LENGTH = 64;
|
|
4341
4333
|
var CUSTOMIZATION_ANNOUNCEMENT_MESSAGE_MAX_LENGTH = 128;
|
|
4342
4334
|
var CUSTOMIZATION_ANNOUNCEMENT_MESSAGE_MIN_LENGTH = 2;
|
|
4343
|
-
var
|
|
4335
|
+
var CUSTOMIZATION_DEFAULT_THEME_MODE_ENUM = ["light", "dark", "system"];
|
|
4344
4336
|
var CUSTOMIZATION_AIMODE_ENUM = ["none", "search", "assistant"];
|
|
4345
4337
|
var CUSTOMIZATION_SUGGESTED_QUESTION_MAX_LENGTH = 64;
|
|
4346
4338
|
var CUSTOMIZATION_SUGGESTED_QUESTION_MIN_LENGTH = 3;
|
|
@@ -4368,8 +4360,8 @@ var SITE_QUESTION_ANSWER_RELEVANCE_ENUM = ["relevant", "spam", "off-topic", "unc
|
|
|
4368
4360
|
var SITE_QUESTION_ANSWER_RESOLUTION_ENUM = ["no", "partially", "yes"];
|
|
4369
4361
|
var SITE_QUESTION_ANSWER_HELPFULNESS_ENUM = ["low", "medium", "high"];
|
|
4370
4362
|
var SITE_CORE_CHANNEL_TYPE_ENUM = ["site", "embed", "api"];
|
|
4371
|
-
var SITE_CONFIGURABLE_CHANNEL_TYPE_ENUM = ["builtin:slack", "builtin:discord"];
|
|
4372
|
-
var AIMESSAGE_ROLE_ENUM = ["user", "assistant"
|
|
4363
|
+
var SITE_CONFIGURABLE_CHANNEL_TYPE_ENUM = ["builtin:slack", "builtin:discord", "builtin:github"];
|
|
4364
|
+
var AIMESSAGE_ROLE_ENUM = ["user", "assistant"];
|
|
4373
4365
|
var AIMODEL_ENUM = ["fast", "reasoning-low", "reasoning-medium", "reasoning-high"];
|
|
4374
4366
|
var SITE_SETTINGS_SCAN_TOPICS_ENUM = ["auto", "never"];
|
|
4375
4367
|
var SITE_SETTINGS_FINDING_CHANGE_REQUESTS_ENUM = ["always", "auto-fixable", "never"];
|
|
@@ -4388,6 +4380,8 @@ var SITE_REDIRECT_SOURCE_PATH_MAX_LENGTH = 512;
|
|
|
4388
4380
|
var SITE_REDIRECT_SOURCE_PATH_PATTERN = "^\\/(?!\\*)(?!.*\\*.+)(?:[A-Za-z0-9\\-._~]|%[0-9A-Fa-f]{2})+(?:\\/(?:[A-Za-z0-9\\-._~]|%[0-9A-Fa-f]{2})+)*(?:\\/\\*|\\*)?$";
|
|
4389
4381
|
var SITE_MCP_SERVER_NAME_MAX_LENGTH = 100;
|
|
4390
4382
|
var SITE_MCP_SERVER_NAME_MIN_LENGTH = 1;
|
|
4383
|
+
var GENERIC_CHANNEL_PATTERN_PATTERN = "^[a-zA-Z0-9_\\*-]+$";
|
|
4384
|
+
var GIT_HUB_REPOSITORY_PATTERN_PATTERN = "^[a-zA-Z0-9._*-]+\\/[a-zA-Z0-9._*-]+$";
|
|
4391
4385
|
var SITE_CHANNEL_STATUS_ENUM = ["active", "pending"];
|
|
4392
4386
|
var SITE_CHANNEL_ROLE_ENUM = ["collaborator", "support"];
|
|
4393
4387
|
var CUSTOM_HOSTNAME_DNS_STATUS_ENUM = ["dns_passed", "dns_wrong_cname", "dns_no_cname", "dns_cloudflare_proxied", "dns_wrong_caa"];
|
|
@@ -4405,6 +4399,7 @@ var GIT_SYNC_OPERATION_DIRECTION_ENUM = ["export", "import"];
|
|
|
4405
4399
|
var GIT_SYNC_OPERATION_STAGE_ENUM = ["repo_fetch", "config_check", "content_process", "finalize"];
|
|
4406
4400
|
var BILLING_STATUS_ENUM = ["trialing", "active", "past_due", "incomplete_expired", "canceled", "unpaid", "paused"];
|
|
4407
4401
|
var APIINTEGRATION_SCOPE_ENUM = ["integration:read", "integration:update", "integration:installation:read", "integration:installation:update"];
|
|
4402
|
+
var CUSTOMIZATION_THEME_MODE_ENUM = ["light", "dark"];
|
|
4408
4403
|
var SITE_ADS_STATUS_ENUM = ["pending", "in-review", "live", "rejected", "disabled"];
|
|
4409
4404
|
var SITE_QUESTION_ANSWER_SOURCE_TYPE_ENUM = ["page", "record"];
|
|
4410
4405
|
var AGENT_STATUS_ENUM = ["idle", "processing", "errored"];
|
|
@@ -4539,6 +4534,7 @@ export {
|
|
|
4539
4534
|
CUSTOMIZATION_CORNERS_ENUM,
|
|
4540
4535
|
CUSTOMIZATION_DEFAULT_FONT_ENUM,
|
|
4541
4536
|
CUSTOMIZATION_DEFAULT_MONOSPACE_FONT_ENUM,
|
|
4537
|
+
CUSTOMIZATION_DEFAULT_THEME_MODE_ENUM,
|
|
4542
4538
|
CUSTOMIZATION_DEPTH_ENUM,
|
|
4543
4539
|
CUSTOMIZATION_HEADER_PRESET_ENUM,
|
|
4544
4540
|
CUSTOMIZATION_ICONS_STYLE_ENUM,
|
|
@@ -4578,6 +4574,7 @@ export {
|
|
|
4578
4574
|
CustomizationCorners,
|
|
4579
4575
|
CustomizationDefaultFont,
|
|
4580
4576
|
CustomizationDefaultMonospaceFont,
|
|
4577
|
+
CustomizationDefaultThemeMode,
|
|
4581
4578
|
CustomizationDepth,
|
|
4582
4579
|
CustomizationHeaderPreset,
|
|
4583
4580
|
CustomizationIconsStyle,
|
|
@@ -4596,8 +4593,10 @@ export {
|
|
|
4596
4593
|
EXPRESSION_MIN_LENGTH,
|
|
4597
4594
|
FONT_FAMILY_MAX_LENGTH,
|
|
4598
4595
|
FONT_FAMILY_MIN_LENGTH,
|
|
4596
|
+
GENERIC_CHANNEL_PATTERN_PATTERN,
|
|
4599
4597
|
GITBOOK_DEFAULT_ENDPOINT,
|
|
4600
4598
|
GIT_BOOK_USERS_ENUM,
|
|
4599
|
+
GIT_HUB_REPOSITORY_PATTERN_PATTERN,
|
|
4601
4600
|
GIT_SYNC_OPERATION_DIRECTION_ENUM,
|
|
4602
4601
|
GIT_SYNC_OPERATION_STAGE_ENUM,
|
|
4603
4602
|
GIT_SYNC_OPERATION_STATE_ENUM,
|
package/package.json
CHANGED
package/spec/openapi.json
CHANGED
|
@@ -13181,108 +13181,6 @@
|
|
|
13181
13181
|
}
|
|
13182
13182
|
}
|
|
13183
13183
|
},
|
|
13184
|
-
"/orgs/{organizationId}/sites/{siteId}/section-groups/{siteSectionGroupId}/sections": {
|
|
13185
|
-
"post": {
|
|
13186
|
-
"operationId": "addSectionToGroup",
|
|
13187
|
-
"deprecated": true,
|
|
13188
|
-
"summary": "Add a section to a section group",
|
|
13189
|
-
"tags": [
|
|
13190
|
-
"site-section-groups"
|
|
13191
|
-
],
|
|
13192
|
-
"security": [
|
|
13193
|
-
{
|
|
13194
|
-
"user": []
|
|
13195
|
-
}
|
|
13196
|
-
],
|
|
13197
|
-
"parameters": [
|
|
13198
|
-
{
|
|
13199
|
-
"$ref": "#/components/parameters/organizationId"
|
|
13200
|
-
},
|
|
13201
|
-
{
|
|
13202
|
-
"$ref": "#/components/parameters/siteId"
|
|
13203
|
-
},
|
|
13204
|
-
{
|
|
13205
|
-
"$ref": "#/components/parameters/siteSectionGroupId"
|
|
13206
|
-
}
|
|
13207
|
-
],
|
|
13208
|
-
"requestBody": {
|
|
13209
|
-
"required": true,
|
|
13210
|
-
"content": {
|
|
13211
|
-
"application/json": {
|
|
13212
|
-
"schema": {
|
|
13213
|
-
"type": "object",
|
|
13214
|
-
"properties": {
|
|
13215
|
-
"sectionId": {
|
|
13216
|
-
"type": "string",
|
|
13217
|
-
"description": "ID of the section to add to the section group"
|
|
13218
|
-
}
|
|
13219
|
-
},
|
|
13220
|
-
"required": [
|
|
13221
|
-
"sectionId"
|
|
13222
|
-
]
|
|
13223
|
-
}
|
|
13224
|
-
}
|
|
13225
|
-
}
|
|
13226
|
-
},
|
|
13227
|
-
"responses": {
|
|
13228
|
-
"201": {
|
|
13229
|
-
"description": "Section added to the section group",
|
|
13230
|
-
"headers": {
|
|
13231
|
-
"Location": {
|
|
13232
|
-
"description": "API URL for the newly created site-section-group relationship",
|
|
13233
|
-
"schema": {
|
|
13234
|
-
"type": "string"
|
|
13235
|
-
}
|
|
13236
|
-
}
|
|
13237
|
-
},
|
|
13238
|
-
"content": {
|
|
13239
|
-
"application/json": {
|
|
13240
|
-
"schema": {
|
|
13241
|
-
"$ref": "#/components/schemas/SiteSectionGroup"
|
|
13242
|
-
}
|
|
13243
|
-
}
|
|
13244
|
-
}
|
|
13245
|
-
}
|
|
13246
|
-
}
|
|
13247
|
-
}
|
|
13248
|
-
},
|
|
13249
|
-
"/orgs/{organizationId}/sites/{siteId}/section-groups/{siteSectionGroupId}/sections/{siteSectionId}": {
|
|
13250
|
-
"delete": {
|
|
13251
|
-
"operationId": "removeSectionFromGroup",
|
|
13252
|
-
"deprecated": true,
|
|
13253
|
-
"summary": "Remove a section from a section group",
|
|
13254
|
-
"tags": [
|
|
13255
|
-
"site-section-groups"
|
|
13256
|
-
],
|
|
13257
|
-
"security": [
|
|
13258
|
-
{
|
|
13259
|
-
"user": []
|
|
13260
|
-
}
|
|
13261
|
-
],
|
|
13262
|
-
"parameters": [
|
|
13263
|
-
{
|
|
13264
|
-
"$ref": "#/components/parameters/organizationId"
|
|
13265
|
-
},
|
|
13266
|
-
{
|
|
13267
|
-
"$ref": "#/components/parameters/siteId"
|
|
13268
|
-
},
|
|
13269
|
-
{
|
|
13270
|
-
"$ref": "#/components/parameters/siteSectionGroupId"
|
|
13271
|
-
},
|
|
13272
|
-
{
|
|
13273
|
-
"$ref": "#/components/parameters/siteSectionId"
|
|
13274
|
-
}
|
|
13275
|
-
],
|
|
13276
|
-
"responses": {
|
|
13277
|
-
"204": {
|
|
13278
|
-
"description": "Section was not part of the group"
|
|
13279
|
-
},
|
|
13280
|
-
"205": {
|
|
13281
|
-
"description": "Section has been removed from the section group"
|
|
13282
|
-
}
|
|
13283
|
-
}
|
|
13284
|
-
}
|
|
13285
|
-
},
|
|
13286
13184
|
"/orgs/{organizationId}/sites/{siteId}/sections": {
|
|
13287
13185
|
"post": {
|
|
13288
13186
|
"operationId": "addSectionToSite",
|
|
@@ -15170,9 +15068,12 @@
|
|
|
15170
15068
|
{
|
|
15171
15069
|
"name": "topic",
|
|
15172
15070
|
"in": "query",
|
|
15173
|
-
"description": "Filter questions by associated site topic
|
|
15071
|
+
"description": "Filter questions by associated site topic IDs.",
|
|
15174
15072
|
"schema": {
|
|
15175
|
-
"type": "
|
|
15073
|
+
"type": "array",
|
|
15074
|
+
"items": {
|
|
15075
|
+
"type": "string"
|
|
15076
|
+
}
|
|
15176
15077
|
}
|
|
15177
15078
|
},
|
|
15178
15079
|
{
|
|
@@ -15251,6 +15152,44 @@
|
|
|
15251
15152
|
},
|
|
15252
15153
|
{
|
|
15253
15154
|
"$ref": "#/components/parameters/siteQuestionId"
|
|
15155
|
+
},
|
|
15156
|
+
{
|
|
15157
|
+
"name": "from",
|
|
15158
|
+
"in": "query",
|
|
15159
|
+
"description": "Filter stats to answers created at or after this timestamp.",
|
|
15160
|
+
"schema": {
|
|
15161
|
+
"$ref": "#/components/schemas/Timestamp"
|
|
15162
|
+
}
|
|
15163
|
+
},
|
|
15164
|
+
{
|
|
15165
|
+
"name": "to",
|
|
15166
|
+
"in": "query",
|
|
15167
|
+
"description": "Filter stats to answers created at or before this timestamp.",
|
|
15168
|
+
"schema": {
|
|
15169
|
+
"$ref": "#/components/schemas/Timestamp"
|
|
15170
|
+
}
|
|
15171
|
+
},
|
|
15172
|
+
{
|
|
15173
|
+
"name": "relevance",
|
|
15174
|
+
"in": "query",
|
|
15175
|
+
"description": "Filter stats by question relevance.",
|
|
15176
|
+
"schema": {
|
|
15177
|
+
"type": "array",
|
|
15178
|
+
"items": {
|
|
15179
|
+
"$ref": "#/components/schemas/SiteQuestionAnswerRelevance"
|
|
15180
|
+
}
|
|
15181
|
+
}
|
|
15182
|
+
},
|
|
15183
|
+
{
|
|
15184
|
+
"name": "answered",
|
|
15185
|
+
"in": "query",
|
|
15186
|
+
"description": "Filter stats by answer resolution.",
|
|
15187
|
+
"schema": {
|
|
15188
|
+
"type": "array",
|
|
15189
|
+
"items": {
|
|
15190
|
+
"$ref": "#/components/schemas/SiteQuestionAnswerResolution"
|
|
15191
|
+
}
|
|
15192
|
+
}
|
|
15254
15193
|
}
|
|
15255
15194
|
],
|
|
15256
15195
|
"responses": {
|
|
@@ -15294,6 +15233,44 @@
|
|
|
15294
15233
|
},
|
|
15295
15234
|
{
|
|
15296
15235
|
"$ref": "#/components/parameters/listLimit"
|
|
15236
|
+
},
|
|
15237
|
+
{
|
|
15238
|
+
"name": "from",
|
|
15239
|
+
"in": "query",
|
|
15240
|
+
"description": "Filter sources to answers created at or after this timestamp.",
|
|
15241
|
+
"schema": {
|
|
15242
|
+
"$ref": "#/components/schemas/Timestamp"
|
|
15243
|
+
}
|
|
15244
|
+
},
|
|
15245
|
+
{
|
|
15246
|
+
"name": "to",
|
|
15247
|
+
"in": "query",
|
|
15248
|
+
"description": "Filter sources to answers created at or before this timestamp.",
|
|
15249
|
+
"schema": {
|
|
15250
|
+
"$ref": "#/components/schemas/Timestamp"
|
|
15251
|
+
}
|
|
15252
|
+
},
|
|
15253
|
+
{
|
|
15254
|
+
"name": "relevance",
|
|
15255
|
+
"in": "query",
|
|
15256
|
+
"description": "Filter answer sources by question relevance.",
|
|
15257
|
+
"schema": {
|
|
15258
|
+
"type": "array",
|
|
15259
|
+
"items": {
|
|
15260
|
+
"$ref": "#/components/schemas/SiteQuestionAnswerRelevance"
|
|
15261
|
+
}
|
|
15262
|
+
}
|
|
15263
|
+
},
|
|
15264
|
+
{
|
|
15265
|
+
"name": "answered",
|
|
15266
|
+
"in": "query",
|
|
15267
|
+
"description": "Filter answer sources by answer resolution.",
|
|
15268
|
+
"schema": {
|
|
15269
|
+
"type": "array",
|
|
15270
|
+
"items": {
|
|
15271
|
+
"$ref": "#/components/schemas/SiteQuestionAnswerResolution"
|
|
15272
|
+
}
|
|
15273
|
+
}
|
|
15297
15274
|
}
|
|
15298
15275
|
],
|
|
15299
15276
|
"responses": {
|
|
@@ -15438,6 +15415,22 @@
|
|
|
15438
15415
|
"type": "string"
|
|
15439
15416
|
}
|
|
15440
15417
|
},
|
|
15418
|
+
{
|
|
15419
|
+
"name": "from",
|
|
15420
|
+
"in": "query",
|
|
15421
|
+
"description": "Filter answers created at or after this timestamp.",
|
|
15422
|
+
"schema": {
|
|
15423
|
+
"$ref": "#/components/schemas/Timestamp"
|
|
15424
|
+
}
|
|
15425
|
+
},
|
|
15426
|
+
{
|
|
15427
|
+
"name": "to",
|
|
15428
|
+
"in": "query",
|
|
15429
|
+
"description": "Filter answers created at or before this timestamp.",
|
|
15430
|
+
"schema": {
|
|
15431
|
+
"$ref": "#/components/schemas/Timestamp"
|
|
15432
|
+
}
|
|
15433
|
+
},
|
|
15441
15434
|
{
|
|
15442
15435
|
"name": "language",
|
|
15443
15436
|
"in": "query",
|
|
@@ -15451,7 +15444,10 @@
|
|
|
15451
15444
|
"in": "query",
|
|
15452
15445
|
"description": "Filter answers by answered resolution.",
|
|
15453
15446
|
"schema": {
|
|
15454
|
-
"
|
|
15447
|
+
"type": "array",
|
|
15448
|
+
"items": {
|
|
15449
|
+
"$ref": "#/components/schemas/SiteQuestionAnswerResolution"
|
|
15450
|
+
}
|
|
15455
15451
|
}
|
|
15456
15452
|
},
|
|
15457
15453
|
{
|
|
@@ -15467,7 +15463,10 @@
|
|
|
15467
15463
|
"in": "query",
|
|
15468
15464
|
"description": "Filter answers by question relevance.",
|
|
15469
15465
|
"schema": {
|
|
15470
|
-
"
|
|
15466
|
+
"type": "array",
|
|
15467
|
+
"items": {
|
|
15468
|
+
"$ref": "#/components/schemas/SiteQuestionAnswerRelevance"
|
|
15469
|
+
}
|
|
15471
15470
|
}
|
|
15472
15471
|
},
|
|
15473
15472
|
{
|
|
@@ -16216,7 +16215,7 @@
|
|
|
16216
16215
|
"description": "The theme mode default value. Set to null to reset the override.",
|
|
16217
16216
|
"oneOf": [
|
|
16218
16217
|
{
|
|
16219
|
-
"$ref": "#/components/schemas/
|
|
16218
|
+
"$ref": "#/components/schemas/CustomizationDefaultThemeMode"
|
|
16220
16219
|
},
|
|
16221
16220
|
{
|
|
16222
16221
|
"type": "null"
|
|
@@ -36761,11 +36760,12 @@
|
|
|
36761
36760
|
"style"
|
|
36762
36761
|
]
|
|
36763
36762
|
},
|
|
36764
|
-
"
|
|
36763
|
+
"CustomizationDefaultThemeMode": {
|
|
36765
36764
|
"type": "string",
|
|
36766
36765
|
"enum": [
|
|
36767
36766
|
"light",
|
|
36768
|
-
"dark"
|
|
36767
|
+
"dark",
|
|
36768
|
+
"system"
|
|
36769
36769
|
]
|
|
36770
36770
|
},
|
|
36771
36771
|
"CustomizationAIMode": {
|
|
@@ -37053,7 +37053,7 @@
|
|
|
37053
37053
|
"type": "object",
|
|
37054
37054
|
"properties": {
|
|
37055
37055
|
"default": {
|
|
37056
|
-
"$ref": "#/components/schemas/
|
|
37056
|
+
"$ref": "#/components/schemas/CustomizationDefaultThemeMode"
|
|
37057
37057
|
},
|
|
37058
37058
|
"toggeable": {
|
|
37059
37059
|
"description": "Should the reader be able to switch between dark and light mode",
|
|
@@ -38924,7 +38924,8 @@
|
|
|
38924
38924
|
"type": "string",
|
|
38925
38925
|
"enum": [
|
|
38926
38926
|
"builtin:slack",
|
|
38927
|
-
"builtin:discord"
|
|
38927
|
+
"builtin:discord",
|
|
38928
|
+
"builtin:github"
|
|
38928
38929
|
]
|
|
38929
38930
|
},
|
|
38930
38931
|
"SiteQuestionAnswer": {
|
|
@@ -39108,8 +39109,7 @@
|
|
|
39108
39109
|
"type": "string",
|
|
39109
39110
|
"enum": [
|
|
39110
39111
|
"user",
|
|
39111
|
-
"assistant"
|
|
39112
|
-
"developer"
|
|
39112
|
+
"assistant"
|
|
39113
39113
|
]
|
|
39114
39114
|
},
|
|
39115
39115
|
"AIToolCallGetPageContent": {
|
|
@@ -40404,10 +40404,7 @@
|
|
|
40404
40404
|
"description": "Input version of an AI message.",
|
|
40405
40405
|
"properties": {
|
|
40406
40406
|
"role": {
|
|
40407
|
-
"
|
|
40408
|
-
"enum": [
|
|
40409
|
-
"user"
|
|
40410
|
-
]
|
|
40407
|
+
"$ref": "#/components/schemas/AIMessageRole"
|
|
40411
40408
|
},
|
|
40412
40409
|
"content": {
|
|
40413
40410
|
"oneOf": [
|
|
@@ -43929,6 +43926,16 @@
|
|
|
43929
43926
|
"urls"
|
|
43930
43927
|
]
|
|
43931
43928
|
},
|
|
43929
|
+
"GenericChannelPattern": {
|
|
43930
|
+
"type": "string",
|
|
43931
|
+
"description": "A generic channel name or pattern. For example, \"general\" or \"support-*\".",
|
|
43932
|
+
"pattern": "^[a-zA-Z0-9_\\*-]+$"
|
|
43933
|
+
},
|
|
43934
|
+
"GitHubRepositoryPattern": {
|
|
43935
|
+
"type": "string",
|
|
43936
|
+
"description": "A GitHub repository name or pattern in the format \"owner/repository\". For example, \"my-org/my-repo\" or \"my-org/*\" to allow all repositories under \"my-org\".",
|
|
43937
|
+
"pattern": "^[a-zA-Z0-9._*-]+\\/[a-zA-Z0-9._*-]+$"
|
|
43938
|
+
},
|
|
43932
43939
|
"SiteChannelSetup": {
|
|
43933
43940
|
"oneOf": [
|
|
43934
43941
|
{
|
|
@@ -43948,8 +43955,35 @@
|
|
|
43948
43955
|
"description": "List of allowed Slack channel names or patterns. If empty, all channels are allowed.",
|
|
43949
43956
|
"type": "array",
|
|
43950
43957
|
"items": {
|
|
43951
|
-
"
|
|
43952
|
-
|
|
43958
|
+
"$ref": "#/components/schemas/GenericChannelPattern"
|
|
43959
|
+
}
|
|
43960
|
+
}
|
|
43961
|
+
}
|
|
43962
|
+
}
|
|
43963
|
+
},
|
|
43964
|
+
"required": [
|
|
43965
|
+
"type",
|
|
43966
|
+
"setupSettings"
|
|
43967
|
+
]
|
|
43968
|
+
},
|
|
43969
|
+
{
|
|
43970
|
+
"type": "object",
|
|
43971
|
+
"properties": {
|
|
43972
|
+
"type": {
|
|
43973
|
+
"type": "string",
|
|
43974
|
+
"enum": [
|
|
43975
|
+
"builtin:github"
|
|
43976
|
+
]
|
|
43977
|
+
},
|
|
43978
|
+
"setupSettings": {
|
|
43979
|
+
"type": "object",
|
|
43980
|
+
"additionalProperties": false,
|
|
43981
|
+
"properties": {
|
|
43982
|
+
"allowedRepositories": {
|
|
43983
|
+
"description": "List of allowed GitHub repository names or patterns. If empty, all repositories are allowed.",
|
|
43984
|
+
"type": "array",
|
|
43985
|
+
"items": {
|
|
43986
|
+
"$ref": "#/components/schemas/GitHubRepositoryPattern"
|
|
43953
43987
|
}
|
|
43954
43988
|
}
|
|
43955
43989
|
}
|
|
@@ -43977,8 +44011,7 @@
|
|
|
43977
44011
|
"description": "List of allowed Discord channel names or patterns. If empty, all channels are allowed.",
|
|
43978
44012
|
"type": "array",
|
|
43979
44013
|
"items": {
|
|
43980
|
-
"
|
|
43981
|
-
"pattern": "^[a-zA-Z0-9_\\*-]+$"
|
|
44014
|
+
"$ref": "#/components/schemas/GenericChannelPattern"
|
|
43982
44015
|
}
|
|
43983
44016
|
}
|
|
43984
44017
|
}
|
|
@@ -47559,6 +47592,13 @@
|
|
|
47559
47592
|
"propertyName": "channel"
|
|
47560
47593
|
}
|
|
47561
47594
|
},
|
|
47595
|
+
"CustomizationThemeMode": {
|
|
47596
|
+
"type": "string",
|
|
47597
|
+
"enum": [
|
|
47598
|
+
"light",
|
|
47599
|
+
"dark"
|
|
47600
|
+
]
|
|
47601
|
+
},
|
|
47562
47602
|
"SiteAdaptiveDeterministicJSONSchemaClaimsProperties": {
|
|
47563
47603
|
"oneOf": [
|
|
47564
47604
|
{
|
package/spec/openapi.yaml
CHANGED
|
@@ -7483,62 +7483,6 @@ paths:
|
|
|
7483
7483
|
description: Site section group did not exist
|
|
7484
7484
|
"205":
|
|
7485
7485
|
description: Site section group has been deleted
|
|
7486
|
-
"/orgs/{organizationId}/sites/{siteId}/section-groups/{siteSectionGroupId}/sections":
|
|
7487
|
-
post:
|
|
7488
|
-
operationId: addSectionToGroup
|
|
7489
|
-
deprecated: true
|
|
7490
|
-
summary: Add a section to a section group
|
|
7491
|
-
tags:
|
|
7492
|
-
- site-section-groups
|
|
7493
|
-
security:
|
|
7494
|
-
- user: []
|
|
7495
|
-
parameters:
|
|
7496
|
-
- $ref: "#/components/parameters/organizationId"
|
|
7497
|
-
- $ref: "#/components/parameters/siteId"
|
|
7498
|
-
- $ref: "#/components/parameters/siteSectionGroupId"
|
|
7499
|
-
requestBody:
|
|
7500
|
-
required: true
|
|
7501
|
-
content:
|
|
7502
|
-
application/json:
|
|
7503
|
-
schema:
|
|
7504
|
-
type: object
|
|
7505
|
-
properties:
|
|
7506
|
-
sectionId:
|
|
7507
|
-
type: string
|
|
7508
|
-
description: ID of the section to add to the section group
|
|
7509
|
-
required:
|
|
7510
|
-
- sectionId
|
|
7511
|
-
responses:
|
|
7512
|
-
"201":
|
|
7513
|
-
description: Section added to the section group
|
|
7514
|
-
headers:
|
|
7515
|
-
Location:
|
|
7516
|
-
description: API URL for the newly created site-section-group relationship
|
|
7517
|
-
schema:
|
|
7518
|
-
type: string
|
|
7519
|
-
content:
|
|
7520
|
-
application/json:
|
|
7521
|
-
schema:
|
|
7522
|
-
$ref: "#/components/schemas/SiteSectionGroup"
|
|
7523
|
-
"/orgs/{organizationId}/sites/{siteId}/section-groups/{siteSectionGroupId}/sections/{siteSectionId}":
|
|
7524
|
-
delete:
|
|
7525
|
-
operationId: removeSectionFromGroup
|
|
7526
|
-
deprecated: true
|
|
7527
|
-
summary: Remove a section from a section group
|
|
7528
|
-
tags:
|
|
7529
|
-
- site-section-groups
|
|
7530
|
-
security:
|
|
7531
|
-
- user: []
|
|
7532
|
-
parameters:
|
|
7533
|
-
- $ref: "#/components/parameters/organizationId"
|
|
7534
|
-
- $ref: "#/components/parameters/siteId"
|
|
7535
|
-
- $ref: "#/components/parameters/siteSectionGroupId"
|
|
7536
|
-
- $ref: "#/components/parameters/siteSectionId"
|
|
7537
|
-
responses:
|
|
7538
|
-
"204":
|
|
7539
|
-
description: Section was not part of the group
|
|
7540
|
-
"205":
|
|
7541
|
-
description: Section has been removed from the section group
|
|
7542
7486
|
"/orgs/{organizationId}/sites/{siteId}/sections":
|
|
7543
7487
|
post:
|
|
7544
7488
|
operationId: addSectionToSite
|
|
@@ -8548,9 +8492,11 @@ paths:
|
|
|
8548
8492
|
$ref: "#/components/schemas/SiteQuestionAnswerResolution"
|
|
8549
8493
|
- name: topic
|
|
8550
8494
|
in: query
|
|
8551
|
-
description: Filter questions by associated site topic
|
|
8495
|
+
description: Filter questions by associated site topic IDs.
|
|
8552
8496
|
schema:
|
|
8553
|
-
type:
|
|
8497
|
+
type: array
|
|
8498
|
+
items:
|
|
8499
|
+
type: string
|
|
8554
8500
|
- $ref: "#/components/parameters/listOrder"
|
|
8555
8501
|
- name: sort
|
|
8556
8502
|
in: query
|
|
@@ -8591,6 +8537,30 @@ paths:
|
|
|
8591
8537
|
- $ref: "#/components/parameters/organizationId"
|
|
8592
8538
|
- $ref: "#/components/parameters/siteId"
|
|
8593
8539
|
- $ref: "#/components/parameters/siteQuestionId"
|
|
8540
|
+
- name: from
|
|
8541
|
+
in: query
|
|
8542
|
+
description: Filter stats to answers created at or after this timestamp.
|
|
8543
|
+
schema:
|
|
8544
|
+
$ref: "#/components/schemas/Timestamp"
|
|
8545
|
+
- name: to
|
|
8546
|
+
in: query
|
|
8547
|
+
description: Filter stats to answers created at or before this timestamp.
|
|
8548
|
+
schema:
|
|
8549
|
+
$ref: "#/components/schemas/Timestamp"
|
|
8550
|
+
- name: relevance
|
|
8551
|
+
in: query
|
|
8552
|
+
description: Filter stats by question relevance.
|
|
8553
|
+
schema:
|
|
8554
|
+
type: array
|
|
8555
|
+
items:
|
|
8556
|
+
$ref: "#/components/schemas/SiteQuestionAnswerRelevance"
|
|
8557
|
+
- name: answered
|
|
8558
|
+
in: query
|
|
8559
|
+
description: Filter stats by answer resolution.
|
|
8560
|
+
schema:
|
|
8561
|
+
type: array
|
|
8562
|
+
items:
|
|
8563
|
+
$ref: "#/components/schemas/SiteQuestionAnswerResolution"
|
|
8594
8564
|
responses:
|
|
8595
8565
|
"200":
|
|
8596
8566
|
description: OK
|
|
@@ -8612,6 +8582,30 @@ paths:
|
|
|
8612
8582
|
- $ref: "#/components/parameters/siteQuestionId"
|
|
8613
8583
|
- $ref: "#/components/parameters/listPage"
|
|
8614
8584
|
- $ref: "#/components/parameters/listLimit"
|
|
8585
|
+
- name: from
|
|
8586
|
+
in: query
|
|
8587
|
+
description: Filter sources to answers created at or after this timestamp.
|
|
8588
|
+
schema:
|
|
8589
|
+
$ref: "#/components/schemas/Timestamp"
|
|
8590
|
+
- name: to
|
|
8591
|
+
in: query
|
|
8592
|
+
description: Filter sources to answers created at or before this timestamp.
|
|
8593
|
+
schema:
|
|
8594
|
+
$ref: "#/components/schemas/Timestamp"
|
|
8595
|
+
- name: relevance
|
|
8596
|
+
in: query
|
|
8597
|
+
description: Filter answer sources by question relevance.
|
|
8598
|
+
schema:
|
|
8599
|
+
type: array
|
|
8600
|
+
items:
|
|
8601
|
+
$ref: "#/components/schemas/SiteQuestionAnswerRelevance"
|
|
8602
|
+
- name: answered
|
|
8603
|
+
in: query
|
|
8604
|
+
description: Filter answer sources by answer resolution.
|
|
8605
|
+
schema:
|
|
8606
|
+
type: array
|
|
8607
|
+
items:
|
|
8608
|
+
$ref: "#/components/schemas/SiteQuestionAnswerResolution"
|
|
8615
8609
|
responses:
|
|
8616
8610
|
"200":
|
|
8617
8611
|
description: OK
|
|
@@ -8693,6 +8687,16 @@ paths:
|
|
|
8693
8687
|
description: Filter answers to a specific site question ID.
|
|
8694
8688
|
schema:
|
|
8695
8689
|
type: string
|
|
8690
|
+
- name: from
|
|
8691
|
+
in: query
|
|
8692
|
+
description: Filter answers created at or after this timestamp.
|
|
8693
|
+
schema:
|
|
8694
|
+
$ref: "#/components/schemas/Timestamp"
|
|
8695
|
+
- name: to
|
|
8696
|
+
in: query
|
|
8697
|
+
description: Filter answers created at or before this timestamp.
|
|
8698
|
+
schema:
|
|
8699
|
+
$ref: "#/components/schemas/Timestamp"
|
|
8696
8700
|
- name: language
|
|
8697
8701
|
in: query
|
|
8698
8702
|
description: Filter answers by ISO language code.
|
|
@@ -8702,7 +8706,9 @@ paths:
|
|
|
8702
8706
|
in: query
|
|
8703
8707
|
description: Filter answers by answered resolution.
|
|
8704
8708
|
schema:
|
|
8705
|
-
|
|
8709
|
+
type: array
|
|
8710
|
+
items:
|
|
8711
|
+
$ref: "#/components/schemas/SiteQuestionAnswerResolution"
|
|
8706
8712
|
- name: helpfulness
|
|
8707
8713
|
in: query
|
|
8708
8714
|
description: Filter answers by answered helpfulness.
|
|
@@ -8712,7 +8718,9 @@ paths:
|
|
|
8712
8718
|
in: query
|
|
8713
8719
|
description: Filter answers by question relevance.
|
|
8714
8720
|
schema:
|
|
8715
|
-
|
|
8721
|
+
type: array
|
|
8722
|
+
items:
|
|
8723
|
+
$ref: "#/components/schemas/SiteQuestionAnswerRelevance"
|
|
8716
8724
|
- name: question.type
|
|
8717
8725
|
in: query
|
|
8718
8726
|
description: Filter answers by question type.
|
|
@@ -9097,7 +9105,7 @@ paths:
|
|
|
9097
9105
|
default:
|
|
9098
9106
|
description: The theme mode default value. Set to null to reset the override.
|
|
9099
9107
|
oneOf:
|
|
9100
|
-
- $ref: "#/components/schemas/
|
|
9108
|
+
- $ref: "#/components/schemas/CustomizationDefaultThemeMode"
|
|
9101
9109
|
- type: "null"
|
|
9102
9110
|
toggeable:
|
|
9103
9111
|
description: Should the reader be able to switch between dark and light mode. Set to null to reset the override.
|
|
@@ -22511,11 +22519,12 @@ components:
|
|
|
22511
22519
|
- enabled
|
|
22512
22520
|
- message
|
|
22513
22521
|
- style
|
|
22514
|
-
|
|
22522
|
+
CustomizationDefaultThemeMode:
|
|
22515
22523
|
type: string
|
|
22516
22524
|
enum:
|
|
22517
22525
|
- light
|
|
22518
22526
|
- dark
|
|
22527
|
+
- system
|
|
22519
22528
|
CustomizationAIMode:
|
|
22520
22529
|
type: string
|
|
22521
22530
|
enum:
|
|
@@ -22730,7 +22739,7 @@ components:
|
|
|
22730
22739
|
type: object
|
|
22731
22740
|
properties:
|
|
22732
22741
|
default:
|
|
22733
|
-
$ref: "#/components/schemas/
|
|
22742
|
+
$ref: "#/components/schemas/CustomizationDefaultThemeMode"
|
|
22734
22743
|
toggeable:
|
|
22735
22744
|
description: Should the reader be able to switch between dark and light mode
|
|
22736
22745
|
type: boolean
|
|
@@ -24030,6 +24039,7 @@ components:
|
|
|
24030
24039
|
enum:
|
|
24031
24040
|
- builtin:slack
|
|
24032
24041
|
- builtin:discord
|
|
24042
|
+
- builtin:github
|
|
24033
24043
|
SiteQuestionAnswer:
|
|
24034
24044
|
type: object
|
|
24035
24045
|
properties:
|
|
@@ -24158,7 +24168,6 @@ components:
|
|
|
24158
24168
|
enum:
|
|
24159
24169
|
- user
|
|
24160
24170
|
- assistant
|
|
24161
|
-
- developer
|
|
24162
24171
|
AIToolCallGetPageContent:
|
|
24163
24172
|
type: object
|
|
24164
24173
|
properties:
|
|
@@ -25031,9 +25040,7 @@ components:
|
|
|
25031
25040
|
description: Input version of an AI message.
|
|
25032
25041
|
properties:
|
|
25033
25042
|
role:
|
|
25034
|
-
|
|
25035
|
-
enum:
|
|
25036
|
-
- user
|
|
25043
|
+
$ref: "#/components/schemas/AIMessageRole"
|
|
25037
25044
|
content:
|
|
25038
25045
|
oneOf:
|
|
25039
25046
|
- type: string
|
|
@@ -27270,6 +27277,14 @@ components:
|
|
|
27270
27277
|
- url
|
|
27271
27278
|
- headers
|
|
27272
27279
|
- urls
|
|
27280
|
+
GenericChannelPattern:
|
|
27281
|
+
type: string
|
|
27282
|
+
description: A generic channel name or pattern. For example, "general" or "support-*".
|
|
27283
|
+
pattern: ^[a-zA-Z0-9_\*-]+$
|
|
27284
|
+
GitHubRepositoryPattern:
|
|
27285
|
+
type: string
|
|
27286
|
+
description: A GitHub repository name or pattern in the format "owner/repository". For example, "my-org/my-repo" or "my-org/*" to allow all repositories under "my-org".
|
|
27287
|
+
pattern: ^[a-zA-Z0-9._*-]+\/[a-zA-Z0-9._*-]+$
|
|
27273
27288
|
SiteChannelSetup:
|
|
27274
27289
|
oneOf:
|
|
27275
27290
|
- type: object
|
|
@@ -27286,8 +27301,25 @@ components:
|
|
|
27286
27301
|
description: List of allowed Slack channel names or patterns. If empty, all channels are allowed.
|
|
27287
27302
|
type: array
|
|
27288
27303
|
items:
|
|
27289
|
-
|
|
27290
|
-
|
|
27304
|
+
$ref: "#/components/schemas/GenericChannelPattern"
|
|
27305
|
+
required:
|
|
27306
|
+
- type
|
|
27307
|
+
- setupSettings
|
|
27308
|
+
- type: object
|
|
27309
|
+
properties:
|
|
27310
|
+
type:
|
|
27311
|
+
type: string
|
|
27312
|
+
enum:
|
|
27313
|
+
- builtin:github
|
|
27314
|
+
setupSettings:
|
|
27315
|
+
type: object
|
|
27316
|
+
additionalProperties: false
|
|
27317
|
+
properties:
|
|
27318
|
+
allowedRepositories:
|
|
27319
|
+
description: List of allowed GitHub repository names or patterns. If empty, all repositories are allowed.
|
|
27320
|
+
type: array
|
|
27321
|
+
items:
|
|
27322
|
+
$ref: "#/components/schemas/GitHubRepositoryPattern"
|
|
27291
27323
|
required:
|
|
27292
27324
|
- type
|
|
27293
27325
|
- setupSettings
|
|
@@ -27305,8 +27337,7 @@ components:
|
|
|
27305
27337
|
description: List of allowed Discord channel names or patterns. If empty, all channels are allowed.
|
|
27306
27338
|
type: array
|
|
27307
27339
|
items:
|
|
27308
|
-
|
|
27309
|
-
pattern: ^[a-zA-Z0-9_\*-]+$
|
|
27340
|
+
$ref: "#/components/schemas/GenericChannelPattern"
|
|
27310
27341
|
required:
|
|
27311
27342
|
- type
|
|
27312
27343
|
- setupSettings
|
|
@@ -29647,6 +29678,11 @@ components:
|
|
|
29647
29678
|
- $ref: "#/components/schemas/APIChannelMutationData"
|
|
29648
29679
|
discriminator:
|
|
29649
29680
|
propertyName: channel
|
|
29681
|
+
CustomizationThemeMode:
|
|
29682
|
+
type: string
|
|
29683
|
+
enum:
|
|
29684
|
+
- light
|
|
29685
|
+
- dark
|
|
29650
29686
|
SiteAdaptiveDeterministicJSONSchemaClaimsProperties:
|
|
29651
29687
|
oneOf:
|
|
29652
29688
|
- $ref: "#/components/schemas/SiteAdaptiveDeterministicJSONSchemaPrimitives"
|