@gitbook/api 0.129.0 → 0.131.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 +111 -55
- package/dist/index.cjs +54 -51
- package/dist/index.js +53 -50
- package/package.json +1 -1
- package/spec/openapi.json +338 -119
- package/spec/openapi.yaml +225 -92
package/dist/client.d.ts
CHANGED
|
@@ -93,6 +93,45 @@ export declare enum SpaceEditMode {
|
|
|
93
93
|
Live = "live",
|
|
94
94
|
Locked = "locked"
|
|
95
95
|
}
|
|
96
|
+
export declare enum TranslationLanguage {
|
|
97
|
+
En = "en",
|
|
98
|
+
Fr = "fr",
|
|
99
|
+
De = "de",
|
|
100
|
+
Es = "es",
|
|
101
|
+
It = "it",
|
|
102
|
+
Pt = "pt",
|
|
103
|
+
PtBr = "pt-br",
|
|
104
|
+
Ru = "ru",
|
|
105
|
+
Ja = "ja",
|
|
106
|
+
Zh = "zh",
|
|
107
|
+
Ko = "ko",
|
|
108
|
+
Ar = "ar",
|
|
109
|
+
Hi = "hi",
|
|
110
|
+
Nl = "nl",
|
|
111
|
+
Pl = "pl",
|
|
112
|
+
Tr = "tr",
|
|
113
|
+
Sv = "sv",
|
|
114
|
+
No = "no",
|
|
115
|
+
Da = "da",
|
|
116
|
+
Fi = "fi",
|
|
117
|
+
El = "el",
|
|
118
|
+
Cs = "cs",
|
|
119
|
+
Hu = "hu",
|
|
120
|
+
Ro = "ro",
|
|
121
|
+
Th = "th",
|
|
122
|
+
Vi = "vi",
|
|
123
|
+
Id = "id",
|
|
124
|
+
Ms = "ms",
|
|
125
|
+
He = "he",
|
|
126
|
+
Uk = "uk",
|
|
127
|
+
Sk = "sk",
|
|
128
|
+
Bg = "bg",
|
|
129
|
+
Hr = "hr",
|
|
130
|
+
Lt = "lt",
|
|
131
|
+
Lv = "lv",
|
|
132
|
+
Et = "et",
|
|
133
|
+
Sl = "sl"
|
|
134
|
+
}
|
|
96
135
|
/** The provider of the Git Sync installation. */
|
|
97
136
|
export declare enum GitSyncProvider {
|
|
98
137
|
Github = "github",
|
|
@@ -203,6 +242,7 @@ export interface Space {
|
|
|
203
242
|
organization: string;
|
|
204
243
|
/** ID of the parent collection. */
|
|
205
244
|
parent?: string;
|
|
245
|
+
language?: TranslationLanguage;
|
|
206
246
|
gitSync?: GitSyncState;
|
|
207
247
|
visitorAuth?: VisitorAuth;
|
|
208
248
|
/** ID of the active revision in the space. */
|
|
@@ -480,8 +520,8 @@ export interface DocumentMarkColor {
|
|
|
480
520
|
object: 'mark';
|
|
481
521
|
type: 'color';
|
|
482
522
|
data: {
|
|
483
|
-
text: 'default' | 'green' | 'blue' | 'red' | 'orange' | 'yellow' | 'purple';
|
|
484
|
-
background: 'default' | 'green' | 'blue' | 'red' | 'orange' | 'yellow' | 'purple';
|
|
523
|
+
text: 'default' | 'green' | 'blue' | 'red' | 'orange' | 'yellow' | 'purple' | '$primary' | '$info' | '$success' | '$warning' | '$danger';
|
|
524
|
+
background: 'default' | 'green' | 'blue' | 'red' | 'orange' | 'yellow' | 'purple' | '$primary' | '$info' | '$success' | '$warning' | '$danger';
|
|
485
525
|
};
|
|
486
526
|
}
|
|
487
527
|
export interface DocumentMarkSuperscript {
|
|
@@ -1211,8 +1251,6 @@ export type RevisionPageDocument = RevisionPageBase & Document & {
|
|
|
1211
1251
|
/** Complete path to access the page in the revision. */
|
|
1212
1252
|
path: string;
|
|
1213
1253
|
description?: string;
|
|
1214
|
-
/** ID of the document with the page body. If undefined, the page is empty. */
|
|
1215
|
-
documentId?: string;
|
|
1216
1254
|
pages: (RevisionPageDocument | RevisionPageLink | RevisionPageComputed)[];
|
|
1217
1255
|
git?: GitSyncBlob;
|
|
1218
1256
|
layout: RevisionPageLayoutOptions;
|
|
@@ -1449,12 +1487,18 @@ export interface RevisionFile {
|
|
|
1449
1487
|
};
|
|
1450
1488
|
git?: GitSyncBlob;
|
|
1451
1489
|
}
|
|
1452
|
-
export
|
|
1490
|
+
export type RevisionReusableContent = {
|
|
1453
1491
|
id: string;
|
|
1454
1492
|
title: string;
|
|
1455
|
-
document?: string;
|
|
1456
1493
|
git?: GitSyncBlob;
|
|
1457
|
-
}
|
|
1494
|
+
} & ({
|
|
1495
|
+
computed: ComputedContentSourceDocument;
|
|
1496
|
+
/** Seed to use for the generation of IDs. */
|
|
1497
|
+
computedSeed: string;
|
|
1498
|
+
} | {
|
|
1499
|
+
/** ID of the document with the content body. If undefined, the reusable content is empty. */
|
|
1500
|
+
document?: string;
|
|
1501
|
+
});
|
|
1458
1502
|
export interface GitSyncCommit {
|
|
1459
1503
|
/** SHA for the commit */
|
|
1460
1504
|
oid: string;
|
|
@@ -1600,9 +1644,15 @@ export interface ImportContentResult {
|
|
|
1600
1644
|
/** How many resources were processed */
|
|
1601
1645
|
totalResources: number;
|
|
1602
1646
|
}
|
|
1647
|
+
/** Parameters for a space template */
|
|
1648
|
+
export interface SpaceTemplateParams {
|
|
1649
|
+
contentRefs?: Record<string, ContentRef>;
|
|
1650
|
+
}
|
|
1603
1651
|
export interface ApplySpaceTemplate {
|
|
1604
1652
|
/** The ID of the template to use for the space */
|
|
1605
1653
|
id: string;
|
|
1654
|
+
/** Parameters for a space template */
|
|
1655
|
+
params?: SpaceTemplateParams;
|
|
1606
1656
|
}
|
|
1607
1657
|
/**
|
|
1608
1658
|
* Name of the organization
|
|
@@ -1804,6 +1854,8 @@ export interface Organization {
|
|
|
1804
1854
|
listTeams: boolean;
|
|
1805
1855
|
/** Can the user list the integrations in the organization. */
|
|
1806
1856
|
listIntegrations: boolean;
|
|
1857
|
+
/** Can the user list the integration installations in the organization. */
|
|
1858
|
+
listInstallations: boolean;
|
|
1807
1859
|
};
|
|
1808
1860
|
}
|
|
1809
1861
|
export interface ContentLocationRevisionContext {
|
|
@@ -2063,6 +2115,11 @@ export interface EmojiReaction {
|
|
|
2063
2115
|
}[];
|
|
2064
2116
|
}
|
|
2065
2117
|
export type EmojiReactions = EmojiReaction[];
|
|
2118
|
+
/** Details about the table cell this comment is attached to, if any. */
|
|
2119
|
+
export interface TableCellTarget {
|
|
2120
|
+
record: string;
|
|
2121
|
+
definition: string;
|
|
2122
|
+
}
|
|
2066
2123
|
export type Comment = {
|
|
2067
2124
|
/** Type of Object, always equals to "comment" */
|
|
2068
2125
|
object: 'comment';
|
|
@@ -2087,6 +2144,8 @@ export type Comment = {
|
|
|
2087
2144
|
id: string;
|
|
2088
2145
|
preview?: string;
|
|
2089
2146
|
};
|
|
2147
|
+
/** Details about the table cell this comment is attached to, if any. */
|
|
2148
|
+
tableCell?: TableCellTarget;
|
|
2090
2149
|
/** The change request containing this comment, if the comment was made inside a change request. */
|
|
2091
2150
|
changeRequest?: string;
|
|
2092
2151
|
/** The review containing this comment, if this comment was made as part of a review. */
|
|
@@ -2180,6 +2239,8 @@ export interface PostCommentSchema {
|
|
|
2180
2239
|
page?: string;
|
|
2181
2240
|
/** The content of the comment. */
|
|
2182
2241
|
body: Document;
|
|
2242
|
+
/** Details about the table cell this comment is attached to, if any. */
|
|
2243
|
+
tableCell?: TableCellTarget;
|
|
2183
2244
|
}
|
|
2184
2245
|
export interface UpdateCommentSchema {
|
|
2185
2246
|
/** Whether the comment is resolved or not. */
|
|
@@ -4088,17 +4149,21 @@ export interface SearchSpaceResult {
|
|
|
4088
4149
|
title: string;
|
|
4089
4150
|
pages: SearchPageResult[];
|
|
4090
4151
|
}
|
|
4091
|
-
export
|
|
4152
|
+
export type CreateSpace = {
|
|
4092
4153
|
/** @maxLength 50 */
|
|
4093
4154
|
title?: string;
|
|
4094
4155
|
/** Unicode codepoint or character of the emoji */
|
|
4095
4156
|
emoji?: Emoji;
|
|
4096
4157
|
/** ID of a parent collection */
|
|
4097
4158
|
parent?: string;
|
|
4159
|
+
language?: TranslationLanguage;
|
|
4098
4160
|
/** The edit mode of the space */
|
|
4099
4161
|
editMode?: SpaceEditMode;
|
|
4100
|
-
|
|
4101
|
-
|
|
4162
|
+
} & (Record<string, any> | ({
|
|
4163
|
+
template: ApplySpaceTemplate;
|
|
4164
|
+
} | {
|
|
4165
|
+
computedSource: ComputedContentSourceRevision;
|
|
4166
|
+
}));
|
|
4102
4167
|
/**
|
|
4103
4168
|
* @minLength 1
|
|
4104
4169
|
* @maxLength 30
|
|
@@ -4529,44 +4594,6 @@ export declare enum TranslationStatus {
|
|
|
4529
4594
|
Running = "running",
|
|
4530
4595
|
Completed = "completed"
|
|
4531
4596
|
}
|
|
4532
|
-
export declare enum TranslationLanguage {
|
|
4533
|
-
En = "en",
|
|
4534
|
-
Fr = "fr",
|
|
4535
|
-
De = "de",
|
|
4536
|
-
Es = "es",
|
|
4537
|
-
It = "it",
|
|
4538
|
-
Pt = "pt",
|
|
4539
|
-
Ru = "ru",
|
|
4540
|
-
Ja = "ja",
|
|
4541
|
-
Zh = "zh",
|
|
4542
|
-
Ko = "ko",
|
|
4543
|
-
Ar = "ar",
|
|
4544
|
-
Hi = "hi",
|
|
4545
|
-
Nl = "nl",
|
|
4546
|
-
Pl = "pl",
|
|
4547
|
-
Tr = "tr",
|
|
4548
|
-
Sv = "sv",
|
|
4549
|
-
No = "no",
|
|
4550
|
-
Da = "da",
|
|
4551
|
-
Fi = "fi",
|
|
4552
|
-
El = "el",
|
|
4553
|
-
Cs = "cs",
|
|
4554
|
-
Hu = "hu",
|
|
4555
|
-
Ro = "ro",
|
|
4556
|
-
Th = "th",
|
|
4557
|
-
Vi = "vi",
|
|
4558
|
-
Id = "id",
|
|
4559
|
-
Ms = "ms",
|
|
4560
|
-
He = "he",
|
|
4561
|
-
Uk = "uk",
|
|
4562
|
-
Sk = "sk",
|
|
4563
|
-
Bg = "bg",
|
|
4564
|
-
Hr = "hr",
|
|
4565
|
-
Lt = "lt",
|
|
4566
|
-
Lv = "lv",
|
|
4567
|
-
Et = "et",
|
|
4568
|
-
Sl = "sl"
|
|
4569
|
-
}
|
|
4570
4597
|
export interface TranslationSource {
|
|
4571
4598
|
/** ID of the source space */
|
|
4572
4599
|
space: string;
|
|
@@ -4918,7 +4945,8 @@ export declare enum CustomizationLocale {
|
|
|
4918
4945
|
De = "de",
|
|
4919
4946
|
Nl = "nl",
|
|
4920
4947
|
No = "no",
|
|
4921
|
-
PtBr = "pt-br"
|
|
4948
|
+
PtBr = "pt-br",
|
|
4949
|
+
Ru = "ru"
|
|
4922
4950
|
}
|
|
4923
4951
|
/**
|
|
4924
4952
|
* The header preset to use for the site. This is a legacy setting and the site styling theme should be used instead.
|
|
@@ -5338,12 +5366,16 @@ export interface AIToolCallGetPageContent {
|
|
|
5338
5366
|
tool: 'getPageContent';
|
|
5339
5367
|
/** The ID of the space being accessed. */
|
|
5340
5368
|
spaceId: string;
|
|
5369
|
+
/** The ID of the revision within which the page content is being fetched. */
|
|
5370
|
+
revisionId: string;
|
|
5341
5371
|
page: ChangedRevisionPage;
|
|
5342
5372
|
}
|
|
5343
5373
|
export interface AIToolCallGetPages {
|
|
5344
5374
|
tool: 'getPages';
|
|
5345
5375
|
/** The ID of the space being accessed. */
|
|
5346
5376
|
spaceId: string;
|
|
5377
|
+
/** The revision ID of the space. */
|
|
5378
|
+
revisionId: string;
|
|
5347
5379
|
}
|
|
5348
5380
|
/** Result of a search */
|
|
5349
5381
|
export interface AIToolCallSearchResult {
|
|
@@ -5351,6 +5383,8 @@ export interface AIToolCallSearchResult {
|
|
|
5351
5383
|
spaceId: string;
|
|
5352
5384
|
/** The ID of the page */
|
|
5353
5385
|
pageId: string;
|
|
5386
|
+
/** The revision ID of the result */
|
|
5387
|
+
revisionId: string;
|
|
5354
5388
|
/** The anchor of the result */
|
|
5355
5389
|
anchor?: string;
|
|
5356
5390
|
/** The title of the result */
|
|
@@ -5916,13 +5950,18 @@ export declare enum SiteInsightsQueryOperator {
|
|
|
5916
5950
|
export type SiteInsightsQueryEventsFilter = SiteInsightsQueryEventsValues & {
|
|
5917
5951
|
operator?: SiteInsightsQueryOperator;
|
|
5918
5952
|
};
|
|
5919
|
-
export declare enum
|
|
5953
|
+
export declare enum SiteInsightsQueryRangePreset {
|
|
5920
5954
|
LastYear = "lastYear",
|
|
5921
5955
|
Last3Months = "last3Months",
|
|
5922
5956
|
Last30Days = "last30Days",
|
|
5923
5957
|
Last7Days = "last7Days",
|
|
5924
5958
|
Last24Hours = "last24Hours"
|
|
5925
5959
|
}
|
|
5960
|
+
export interface SiteInsightsQueryRangeCustom {
|
|
5961
|
+
from: Timestamp;
|
|
5962
|
+
to: Timestamp;
|
|
5963
|
+
}
|
|
5964
|
+
export type SiteInsightsQueryRange = SiteInsightsQueryRangePreset | SiteInsightsQueryRangeCustom;
|
|
5926
5965
|
export interface SiteInsightsQueryEventsAggregation {
|
|
5927
5966
|
select?: SiteInsightsQueryEventsColumn[];
|
|
5928
5967
|
where?: SiteInsightsQueryEventsFilter[];
|
|
@@ -6896,6 +6935,10 @@ export interface TranslationChannel {
|
|
|
6896
6935
|
channel: 'translation';
|
|
6897
6936
|
translation: string;
|
|
6898
6937
|
}
|
|
6938
|
+
export interface TranslationRunChannel {
|
|
6939
|
+
channel: 'translation-run';
|
|
6940
|
+
translation: string;
|
|
6941
|
+
}
|
|
6899
6942
|
/** Subscription channel for an agent task. */
|
|
6900
6943
|
export interface AgentTaskChannel {
|
|
6901
6944
|
channel: 'agent-task';
|
|
@@ -6911,7 +6954,16 @@ export interface AgentTasksChannel {
|
|
|
6911
6954
|
organization: string;
|
|
6912
6955
|
}
|
|
6913
6956
|
/** Channel to subscribe to for realtime updates. */
|
|
6914
|
-
export type SubscriptionChannel = SpaceInfoChannel | SpaceContentChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel | SpaceContentRefsChannel | SpaceIntegrationsChannel | UserAPITokensChannel | UserOrganizationsChannel | UserProfileChannel | ChangeRequestChannel | ChangeRequestsChannel | ChangeRequestReviewsChannel | ChangeRequestContentRefsChannel | CollectionChannel | CollectionPublishingCustomizationChannel | OrganizationInfoChannel | OrganizationInviteLinksChannel | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationSAMLChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | OrganizationSitesChannel | OrganizationAIIndexationChannel | OrganizationOpenAPISpecsChannel | OrganizationTranslationsChannel | OrganizationTranslationsGlossaryChannel | OrganizationCustomFontsChannel | SpaceCommentsChannel | ChangeRequestCommentsChannel | CommentInfoChannel | CommentReplyInfoChannel | CommentRepliesChannel | IntegrationChannel | IntegrationInstallationChannel | IntegrationSpaceInstallationChannel | IntegrationSpaceInstallationsChannel | IntegrationSiteInstallationChannel | IntegrationSiteInstallationsChannel | PublishedContentSiteChannel | SiteRedirectsChannel | SiteChannel | SiteCustomizationChannel | SiteIntegrationsChannel | SiteSpaceChannel | SiteSpaceCustomizationChannel | SiteStructureChannel | SiteAdaptiveSchemaChannel | SitePublishingAuthChannel | SiteShareLinksChannel | SiteShareLinkChannel | SiteMcpServersChannel | SiteMcpServerChannel | SiteSectionChannel | CustomHostnameChannel | GitSyncOperationChannel | OpenAPISpecChannel | SubdomainChannel | TranslationChannel | AgentTaskChannel | AgentTasksChannel;
|
|
6957
|
+
export type SubscriptionChannel = SpaceInfoChannel | SpaceContentChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel | SpaceContentRefsChannel | SpaceIntegrationsChannel | UserAPITokensChannel | UserOrganizationsChannel | UserProfileChannel | ChangeRequestChannel | ChangeRequestsChannel | ChangeRequestReviewsChannel | ChangeRequestContentRefsChannel | CollectionChannel | CollectionPublishingCustomizationChannel | OrganizationInfoChannel | OrganizationInviteLinksChannel | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationSAMLChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | OrganizationSitesChannel | OrganizationAIIndexationChannel | OrganizationOpenAPISpecsChannel | OrganizationTranslationsChannel | OrganizationTranslationsGlossaryChannel | OrganizationCustomFontsChannel | SpaceCommentsChannel | ChangeRequestCommentsChannel | CommentInfoChannel | CommentReplyInfoChannel | CommentRepliesChannel | IntegrationChannel | IntegrationInstallationChannel | IntegrationSpaceInstallationChannel | IntegrationSpaceInstallationsChannel | IntegrationSiteInstallationChannel | IntegrationSiteInstallationsChannel | PublishedContentSiteChannel | SiteRedirectsChannel | SiteChannel | SiteCustomizationChannel | SiteIntegrationsChannel | SiteSpaceChannel | SiteSpaceCustomizationChannel | SiteStructureChannel | SiteAdaptiveSchemaChannel | SitePublishingAuthChannel | SiteShareLinksChannel | SiteShareLinkChannel | SiteMcpServersChannel | SiteMcpServerChannel | SiteSectionChannel | CustomHostnameChannel | GitSyncOperationChannel | OpenAPISpecChannel | SubdomainChannel | TranslationChannel | TranslationRunChannel | AgentTaskChannel | AgentTasksChannel;
|
|
6958
|
+
export interface TranslationRunChannelData {
|
|
6959
|
+
channel: 'translation-run';
|
|
6960
|
+
data: {
|
|
6961
|
+
/** The progress of the translation run, between 0 and 100. */
|
|
6962
|
+
progress: number;
|
|
6963
|
+
startedAt: Timestamp;
|
|
6964
|
+
updatedAt: Timestamp;
|
|
6965
|
+
};
|
|
6966
|
+
}
|
|
6915
6967
|
export interface GitSyncOperationChannelData {
|
|
6916
6968
|
channel: 'space-gitsync-operation';
|
|
6917
6969
|
data: GitSyncOperation;
|
|
@@ -6950,7 +7002,7 @@ export interface APIChannelMutationData {
|
|
|
6950
7002
|
};
|
|
6951
7003
|
}
|
|
6952
7004
|
/** Data passed through a realtime channel */
|
|
6953
|
-
export type SubscriptionChannelData = GitSyncOperationChannelData | SpaceContentRefsChannelData | ChangeRequestContentRefsChannelData | OrganizationAIIndexationChannelData | APIChannelMutationData;
|
|
7005
|
+
export type SubscriptionChannelData = GitSyncOperationChannelData | SpaceContentRefsChannelData | ChangeRequestContentRefsChannelData | OrganizationAIIndexationChannelData | TranslationRunChannelData | APIChannelMutationData;
|
|
6954
7006
|
export type SiteAdaptiveDeterministicJSONSchemaClaimsProperties = SiteAdaptiveDeterministicJSONSchemaPrimitives | {
|
|
6955
7007
|
type: 'object';
|
|
6956
7008
|
description: string;
|
|
@@ -7051,7 +7103,6 @@ export type RequestPurgeCDNCacheContext = PurgeCDNCacheContext;
|
|
|
7051
7103
|
export type SpaceVisitorAuth = VisitorAuth;
|
|
7052
7104
|
export type SpaceVisitorAuthCustomBackend = VisitorAuthCustomBackend;
|
|
7053
7105
|
export type SpaceVisitorAuthIntegrationBackend = VisitorAuthIntegrationBackend;
|
|
7054
|
-
export type ApplyTemplate = ApplySpaceTemplate;
|
|
7055
7106
|
export type UserPermissions = Index;
|
|
7056
7107
|
export type SiteRedirectDestinationSpace = SiteRedirectDestinationSiteSpace;
|
|
7057
7108
|
export type OpenAPISpecSourceURL = URL;
|
|
@@ -7229,6 +7280,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7229
7280
|
title?: SpaceTitle;
|
|
7230
7281
|
/** Default level for a piece of content */
|
|
7231
7282
|
defaultLevel?: DefaultLevel;
|
|
7283
|
+
language?: TranslationLanguage;
|
|
7232
7284
|
} & ({
|
|
7233
7285
|
/** Unicode codepoint or character of the emoji */
|
|
7234
7286
|
emoji: Emoji;
|
|
@@ -7867,6 +7919,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7867
7919
|
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
7868
7920
|
pages: RevisionPage[];
|
|
7869
7921
|
files: RevisionFile[];
|
|
7922
|
+
reusableContents: RevisionReusableContent[];
|
|
7870
7923
|
}, any>>;
|
|
7871
7924
|
/**
|
|
7872
7925
|
* No description
|
|
@@ -12092,7 +12145,10 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
12092
12145
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/ask/questions
|
|
12093
12146
|
* @secure
|
|
12094
12147
|
*/
|
|
12095
|
-
streamRecommendedQuestionsInSite: (organizationId: string, siteId: string,
|
|
12148
|
+
streamRecommendedQuestionsInSite: (organizationId: string, siteId: string, query?: {
|
|
12149
|
+
/** The ID of the space to filter the recommended questions for. */
|
|
12150
|
+
spaceId?: string;
|
|
12151
|
+
}, params?: RequestParams) => EventIterator<SearchAIRecommendedQuestionStream>;
|
|
12096
12152
|
/**
|
|
12097
12153
|
* No description
|
|
12098
12154
|
*
|
|
@@ -12681,7 +12737,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
12681
12737
|
* @secure
|
|
12682
12738
|
*/
|
|
12683
12739
|
getOrganizationsForEmailDomain: (emailDomain: string, params?: RequestParams) => Promise<HttpResponse<{
|
|
12684
|
-
organizations
|
|
12740
|
+
organizations: Organization[];
|
|
12685
12741
|
}, any>>;
|
|
12686
12742
|
};
|
|
12687
12743
|
ads: {
|
package/dist/index.cjs
CHANGED
|
@@ -260,7 +260,7 @@ __export(src_exports, {
|
|
|
260
260
|
SiteInsightsEventType: () => SiteInsightsEventType,
|
|
261
261
|
SiteInsightsLinkPosition: () => SiteInsightsLinkPosition,
|
|
262
262
|
SiteInsightsQueryOperator: () => SiteInsightsQueryOperator,
|
|
263
|
-
|
|
263
|
+
SiteInsightsQueryRangePreset: () => SiteInsightsQueryRangePreset,
|
|
264
264
|
SiteInsightsTrademarkPlacement: () => SiteInsightsTrademarkPlacement,
|
|
265
265
|
SiteInsightsVisitorBot: () => SiteInsightsVisitorBot,
|
|
266
266
|
SiteInsightsVisitorBrowser: () => SiteInsightsVisitorBrowser,
|
|
@@ -279,7 +279,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
279
279
|
|
|
280
280
|
// package.json
|
|
281
281
|
var name = "@gitbook/api";
|
|
282
|
-
var version = "0.
|
|
282
|
+
var version = "0.131.0";
|
|
283
283
|
|
|
284
284
|
// src/client.ts
|
|
285
285
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -393,6 +393,46 @@ var SpaceEditMode = /* @__PURE__ */ ((SpaceEditMode2) => {
|
|
|
393
393
|
SpaceEditMode2["Locked"] = "locked";
|
|
394
394
|
return SpaceEditMode2;
|
|
395
395
|
})(SpaceEditMode || {});
|
|
396
|
+
var TranslationLanguage = /* @__PURE__ */ ((TranslationLanguage2) => {
|
|
397
|
+
TranslationLanguage2["En"] = "en";
|
|
398
|
+
TranslationLanguage2["Fr"] = "fr";
|
|
399
|
+
TranslationLanguage2["De"] = "de";
|
|
400
|
+
TranslationLanguage2["Es"] = "es";
|
|
401
|
+
TranslationLanguage2["It"] = "it";
|
|
402
|
+
TranslationLanguage2["Pt"] = "pt";
|
|
403
|
+
TranslationLanguage2["PtBr"] = "pt-br";
|
|
404
|
+
TranslationLanguage2["Ru"] = "ru";
|
|
405
|
+
TranslationLanguage2["Ja"] = "ja";
|
|
406
|
+
TranslationLanguage2["Zh"] = "zh";
|
|
407
|
+
TranslationLanguage2["Ko"] = "ko";
|
|
408
|
+
TranslationLanguage2["Ar"] = "ar";
|
|
409
|
+
TranslationLanguage2["Hi"] = "hi";
|
|
410
|
+
TranslationLanguage2["Nl"] = "nl";
|
|
411
|
+
TranslationLanguage2["Pl"] = "pl";
|
|
412
|
+
TranslationLanguage2["Tr"] = "tr";
|
|
413
|
+
TranslationLanguage2["Sv"] = "sv";
|
|
414
|
+
TranslationLanguage2["No"] = "no";
|
|
415
|
+
TranslationLanguage2["Da"] = "da";
|
|
416
|
+
TranslationLanguage2["Fi"] = "fi";
|
|
417
|
+
TranslationLanguage2["El"] = "el";
|
|
418
|
+
TranslationLanguage2["Cs"] = "cs";
|
|
419
|
+
TranslationLanguage2["Hu"] = "hu";
|
|
420
|
+
TranslationLanguage2["Ro"] = "ro";
|
|
421
|
+
TranslationLanguage2["Th"] = "th";
|
|
422
|
+
TranslationLanguage2["Vi"] = "vi";
|
|
423
|
+
TranslationLanguage2["Id"] = "id";
|
|
424
|
+
TranslationLanguage2["Ms"] = "ms";
|
|
425
|
+
TranslationLanguage2["He"] = "he";
|
|
426
|
+
TranslationLanguage2["Uk"] = "uk";
|
|
427
|
+
TranslationLanguage2["Sk"] = "sk";
|
|
428
|
+
TranslationLanguage2["Bg"] = "bg";
|
|
429
|
+
TranslationLanguage2["Hr"] = "hr";
|
|
430
|
+
TranslationLanguage2["Lt"] = "lt";
|
|
431
|
+
TranslationLanguage2["Lv"] = "lv";
|
|
432
|
+
TranslationLanguage2["Et"] = "et";
|
|
433
|
+
TranslationLanguage2["Sl"] = "sl";
|
|
434
|
+
return TranslationLanguage2;
|
|
435
|
+
})(TranslationLanguage || {});
|
|
396
436
|
var GitSyncProvider = /* @__PURE__ */ ((GitSyncProvider2) => {
|
|
397
437
|
GitSyncProvider2["Github"] = "github";
|
|
398
438
|
GitSyncProvider2["Gitlab"] = "gitlab";
|
|
@@ -728,45 +768,6 @@ var TranslationStatus = /* @__PURE__ */ ((TranslationStatus2) => {
|
|
|
728
768
|
TranslationStatus2["Completed"] = "completed";
|
|
729
769
|
return TranslationStatus2;
|
|
730
770
|
})(TranslationStatus || {});
|
|
731
|
-
var TranslationLanguage = /* @__PURE__ */ ((TranslationLanguage2) => {
|
|
732
|
-
TranslationLanguage2["En"] = "en";
|
|
733
|
-
TranslationLanguage2["Fr"] = "fr";
|
|
734
|
-
TranslationLanguage2["De"] = "de";
|
|
735
|
-
TranslationLanguage2["Es"] = "es";
|
|
736
|
-
TranslationLanguage2["It"] = "it";
|
|
737
|
-
TranslationLanguage2["Pt"] = "pt";
|
|
738
|
-
TranslationLanguage2["Ru"] = "ru";
|
|
739
|
-
TranslationLanguage2["Ja"] = "ja";
|
|
740
|
-
TranslationLanguage2["Zh"] = "zh";
|
|
741
|
-
TranslationLanguage2["Ko"] = "ko";
|
|
742
|
-
TranslationLanguage2["Ar"] = "ar";
|
|
743
|
-
TranslationLanguage2["Hi"] = "hi";
|
|
744
|
-
TranslationLanguage2["Nl"] = "nl";
|
|
745
|
-
TranslationLanguage2["Pl"] = "pl";
|
|
746
|
-
TranslationLanguage2["Tr"] = "tr";
|
|
747
|
-
TranslationLanguage2["Sv"] = "sv";
|
|
748
|
-
TranslationLanguage2["No"] = "no";
|
|
749
|
-
TranslationLanguage2["Da"] = "da";
|
|
750
|
-
TranslationLanguage2["Fi"] = "fi";
|
|
751
|
-
TranslationLanguage2["El"] = "el";
|
|
752
|
-
TranslationLanguage2["Cs"] = "cs";
|
|
753
|
-
TranslationLanguage2["Hu"] = "hu";
|
|
754
|
-
TranslationLanguage2["Ro"] = "ro";
|
|
755
|
-
TranslationLanguage2["Th"] = "th";
|
|
756
|
-
TranslationLanguage2["Vi"] = "vi";
|
|
757
|
-
TranslationLanguage2["Id"] = "id";
|
|
758
|
-
TranslationLanguage2["Ms"] = "ms";
|
|
759
|
-
TranslationLanguage2["He"] = "he";
|
|
760
|
-
TranslationLanguage2["Uk"] = "uk";
|
|
761
|
-
TranslationLanguage2["Sk"] = "sk";
|
|
762
|
-
TranslationLanguage2["Bg"] = "bg";
|
|
763
|
-
TranslationLanguage2["Hr"] = "hr";
|
|
764
|
-
TranslationLanguage2["Lt"] = "lt";
|
|
765
|
-
TranslationLanguage2["Lv"] = "lv";
|
|
766
|
-
TranslationLanguage2["Et"] = "et";
|
|
767
|
-
TranslationLanguage2["Sl"] = "sl";
|
|
768
|
-
return TranslationLanguage2;
|
|
769
|
-
})(TranslationLanguage || {});
|
|
770
771
|
var StorageUploadKind = /* @__PURE__ */ ((StorageUploadKind2) => {
|
|
771
772
|
StorageUploadKind2["CustomizationFont"] = "customization_font";
|
|
772
773
|
return StorageUploadKind2;
|
|
@@ -862,6 +863,7 @@ var CustomizationLocale = /* @__PURE__ */ ((CustomizationLocale2) => {
|
|
|
862
863
|
CustomizationLocale2["Nl"] = "nl";
|
|
863
864
|
CustomizationLocale2["No"] = "no";
|
|
864
865
|
CustomizationLocale2["PtBr"] = "pt-br";
|
|
866
|
+
CustomizationLocale2["Ru"] = "ru";
|
|
865
867
|
return CustomizationLocale2;
|
|
866
868
|
})(CustomizationLocale || {});
|
|
867
869
|
var CustomizationHeaderPreset = /* @__PURE__ */ ((CustomizationHeaderPreset2) => {
|
|
@@ -983,14 +985,14 @@ var SiteInsightsQueryOperator = /* @__PURE__ */ ((SiteInsightsQueryOperator2) =>
|
|
|
983
985
|
SiteInsightsQueryOperator2["LessThanOrEqual"] = "lessThanOrEqual";
|
|
984
986
|
return SiteInsightsQueryOperator2;
|
|
985
987
|
})(SiteInsightsQueryOperator || {});
|
|
986
|
-
var
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
return
|
|
993
|
-
})(
|
|
988
|
+
var SiteInsightsQueryRangePreset = /* @__PURE__ */ ((SiteInsightsQueryRangePreset2) => {
|
|
989
|
+
SiteInsightsQueryRangePreset2["LastYear"] = "lastYear";
|
|
990
|
+
SiteInsightsQueryRangePreset2["Last3Months"] = "last3Months";
|
|
991
|
+
SiteInsightsQueryRangePreset2["Last30Days"] = "last30Days";
|
|
992
|
+
SiteInsightsQueryRangePreset2["Last7Days"] = "last7Days";
|
|
993
|
+
SiteInsightsQueryRangePreset2["Last24Hours"] = "last24Hours";
|
|
994
|
+
return SiteInsightsQueryRangePreset2;
|
|
995
|
+
})(SiteInsightsQueryRangePreset || {});
|
|
994
996
|
var CustomHostnameDnsStatus = /* @__PURE__ */ ((CustomHostnameDnsStatus2) => {
|
|
995
997
|
CustomHostnameDnsStatus2["DnsPassed"] = "dns_passed";
|
|
996
998
|
CustomHostnameDnsStatus2["DnsWrongCname"] = "dns_wrong_cname";
|
|
@@ -3408,9 +3410,10 @@ var Api = class extends HttpClient {
|
|
|
3408
3410
|
type: "application/json" /* Json */,
|
|
3409
3411
|
...params
|
|
3410
3412
|
}),
|
|
3411
|
-
streamRecommendedQuestionsInSite: (organizationId, siteId, params = {}) => this.streamRequest({
|
|
3413
|
+
streamRecommendedQuestionsInSite: (organizationId, siteId, query, params = {}) => this.streamRequest({
|
|
3412
3414
|
path: `/orgs/${organizationId}/sites/${siteId}/ask/questions`,
|
|
3413
3415
|
method: "GET",
|
|
3416
|
+
query,
|
|
3414
3417
|
secure: true,
|
|
3415
3418
|
...params
|
|
3416
3419
|
}),
|
|
@@ -3872,7 +3875,7 @@ var GitBookAPI = class extends Api {
|
|
|
3872
3875
|
SiteInsightsEventType,
|
|
3873
3876
|
SiteInsightsLinkPosition,
|
|
3874
3877
|
SiteInsightsQueryOperator,
|
|
3875
|
-
|
|
3878
|
+
SiteInsightsQueryRangePreset,
|
|
3876
3879
|
SiteInsightsTrademarkPlacement,
|
|
3877
3880
|
SiteInsightsVisitorBot,
|
|
3878
3881
|
SiteInsightsVisitorBrowser,
|
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.131.0";
|
|
176
176
|
|
|
177
177
|
// src/client.ts
|
|
178
178
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -286,6 +286,46 @@ var SpaceEditMode = /* @__PURE__ */ ((SpaceEditMode2) => {
|
|
|
286
286
|
SpaceEditMode2["Locked"] = "locked";
|
|
287
287
|
return SpaceEditMode2;
|
|
288
288
|
})(SpaceEditMode || {});
|
|
289
|
+
var TranslationLanguage = /* @__PURE__ */ ((TranslationLanguage2) => {
|
|
290
|
+
TranslationLanguage2["En"] = "en";
|
|
291
|
+
TranslationLanguage2["Fr"] = "fr";
|
|
292
|
+
TranslationLanguage2["De"] = "de";
|
|
293
|
+
TranslationLanguage2["Es"] = "es";
|
|
294
|
+
TranslationLanguage2["It"] = "it";
|
|
295
|
+
TranslationLanguage2["Pt"] = "pt";
|
|
296
|
+
TranslationLanguage2["PtBr"] = "pt-br";
|
|
297
|
+
TranslationLanguage2["Ru"] = "ru";
|
|
298
|
+
TranslationLanguage2["Ja"] = "ja";
|
|
299
|
+
TranslationLanguage2["Zh"] = "zh";
|
|
300
|
+
TranslationLanguage2["Ko"] = "ko";
|
|
301
|
+
TranslationLanguage2["Ar"] = "ar";
|
|
302
|
+
TranslationLanguage2["Hi"] = "hi";
|
|
303
|
+
TranslationLanguage2["Nl"] = "nl";
|
|
304
|
+
TranslationLanguage2["Pl"] = "pl";
|
|
305
|
+
TranslationLanguage2["Tr"] = "tr";
|
|
306
|
+
TranslationLanguage2["Sv"] = "sv";
|
|
307
|
+
TranslationLanguage2["No"] = "no";
|
|
308
|
+
TranslationLanguage2["Da"] = "da";
|
|
309
|
+
TranslationLanguage2["Fi"] = "fi";
|
|
310
|
+
TranslationLanguage2["El"] = "el";
|
|
311
|
+
TranslationLanguage2["Cs"] = "cs";
|
|
312
|
+
TranslationLanguage2["Hu"] = "hu";
|
|
313
|
+
TranslationLanguage2["Ro"] = "ro";
|
|
314
|
+
TranslationLanguage2["Th"] = "th";
|
|
315
|
+
TranslationLanguage2["Vi"] = "vi";
|
|
316
|
+
TranslationLanguage2["Id"] = "id";
|
|
317
|
+
TranslationLanguage2["Ms"] = "ms";
|
|
318
|
+
TranslationLanguage2["He"] = "he";
|
|
319
|
+
TranslationLanguage2["Uk"] = "uk";
|
|
320
|
+
TranslationLanguage2["Sk"] = "sk";
|
|
321
|
+
TranslationLanguage2["Bg"] = "bg";
|
|
322
|
+
TranslationLanguage2["Hr"] = "hr";
|
|
323
|
+
TranslationLanguage2["Lt"] = "lt";
|
|
324
|
+
TranslationLanguage2["Lv"] = "lv";
|
|
325
|
+
TranslationLanguage2["Et"] = "et";
|
|
326
|
+
TranslationLanguage2["Sl"] = "sl";
|
|
327
|
+
return TranslationLanguage2;
|
|
328
|
+
})(TranslationLanguage || {});
|
|
289
329
|
var GitSyncProvider = /* @__PURE__ */ ((GitSyncProvider2) => {
|
|
290
330
|
GitSyncProvider2["Github"] = "github";
|
|
291
331
|
GitSyncProvider2["Gitlab"] = "gitlab";
|
|
@@ -621,45 +661,6 @@ var TranslationStatus = /* @__PURE__ */ ((TranslationStatus2) => {
|
|
|
621
661
|
TranslationStatus2["Completed"] = "completed";
|
|
622
662
|
return TranslationStatus2;
|
|
623
663
|
})(TranslationStatus || {});
|
|
624
|
-
var TranslationLanguage = /* @__PURE__ */ ((TranslationLanguage2) => {
|
|
625
|
-
TranslationLanguage2["En"] = "en";
|
|
626
|
-
TranslationLanguage2["Fr"] = "fr";
|
|
627
|
-
TranslationLanguage2["De"] = "de";
|
|
628
|
-
TranslationLanguage2["Es"] = "es";
|
|
629
|
-
TranslationLanguage2["It"] = "it";
|
|
630
|
-
TranslationLanguage2["Pt"] = "pt";
|
|
631
|
-
TranslationLanguage2["Ru"] = "ru";
|
|
632
|
-
TranslationLanguage2["Ja"] = "ja";
|
|
633
|
-
TranslationLanguage2["Zh"] = "zh";
|
|
634
|
-
TranslationLanguage2["Ko"] = "ko";
|
|
635
|
-
TranslationLanguage2["Ar"] = "ar";
|
|
636
|
-
TranslationLanguage2["Hi"] = "hi";
|
|
637
|
-
TranslationLanguage2["Nl"] = "nl";
|
|
638
|
-
TranslationLanguage2["Pl"] = "pl";
|
|
639
|
-
TranslationLanguage2["Tr"] = "tr";
|
|
640
|
-
TranslationLanguage2["Sv"] = "sv";
|
|
641
|
-
TranslationLanguage2["No"] = "no";
|
|
642
|
-
TranslationLanguage2["Da"] = "da";
|
|
643
|
-
TranslationLanguage2["Fi"] = "fi";
|
|
644
|
-
TranslationLanguage2["El"] = "el";
|
|
645
|
-
TranslationLanguage2["Cs"] = "cs";
|
|
646
|
-
TranslationLanguage2["Hu"] = "hu";
|
|
647
|
-
TranslationLanguage2["Ro"] = "ro";
|
|
648
|
-
TranslationLanguage2["Th"] = "th";
|
|
649
|
-
TranslationLanguage2["Vi"] = "vi";
|
|
650
|
-
TranslationLanguage2["Id"] = "id";
|
|
651
|
-
TranslationLanguage2["Ms"] = "ms";
|
|
652
|
-
TranslationLanguage2["He"] = "he";
|
|
653
|
-
TranslationLanguage2["Uk"] = "uk";
|
|
654
|
-
TranslationLanguage2["Sk"] = "sk";
|
|
655
|
-
TranslationLanguage2["Bg"] = "bg";
|
|
656
|
-
TranslationLanguage2["Hr"] = "hr";
|
|
657
|
-
TranslationLanguage2["Lt"] = "lt";
|
|
658
|
-
TranslationLanguage2["Lv"] = "lv";
|
|
659
|
-
TranslationLanguage2["Et"] = "et";
|
|
660
|
-
TranslationLanguage2["Sl"] = "sl";
|
|
661
|
-
return TranslationLanguage2;
|
|
662
|
-
})(TranslationLanguage || {});
|
|
663
664
|
var StorageUploadKind = /* @__PURE__ */ ((StorageUploadKind2) => {
|
|
664
665
|
StorageUploadKind2["CustomizationFont"] = "customization_font";
|
|
665
666
|
return StorageUploadKind2;
|
|
@@ -755,6 +756,7 @@ var CustomizationLocale = /* @__PURE__ */ ((CustomizationLocale2) => {
|
|
|
755
756
|
CustomizationLocale2["Nl"] = "nl";
|
|
756
757
|
CustomizationLocale2["No"] = "no";
|
|
757
758
|
CustomizationLocale2["PtBr"] = "pt-br";
|
|
759
|
+
CustomizationLocale2["Ru"] = "ru";
|
|
758
760
|
return CustomizationLocale2;
|
|
759
761
|
})(CustomizationLocale || {});
|
|
760
762
|
var CustomizationHeaderPreset = /* @__PURE__ */ ((CustomizationHeaderPreset2) => {
|
|
@@ -876,14 +878,14 @@ var SiteInsightsQueryOperator = /* @__PURE__ */ ((SiteInsightsQueryOperator2) =>
|
|
|
876
878
|
SiteInsightsQueryOperator2["LessThanOrEqual"] = "lessThanOrEqual";
|
|
877
879
|
return SiteInsightsQueryOperator2;
|
|
878
880
|
})(SiteInsightsQueryOperator || {});
|
|
879
|
-
var
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
return
|
|
886
|
-
})(
|
|
881
|
+
var SiteInsightsQueryRangePreset = /* @__PURE__ */ ((SiteInsightsQueryRangePreset2) => {
|
|
882
|
+
SiteInsightsQueryRangePreset2["LastYear"] = "lastYear";
|
|
883
|
+
SiteInsightsQueryRangePreset2["Last3Months"] = "last3Months";
|
|
884
|
+
SiteInsightsQueryRangePreset2["Last30Days"] = "last30Days";
|
|
885
|
+
SiteInsightsQueryRangePreset2["Last7Days"] = "last7Days";
|
|
886
|
+
SiteInsightsQueryRangePreset2["Last24Hours"] = "last24Hours";
|
|
887
|
+
return SiteInsightsQueryRangePreset2;
|
|
888
|
+
})(SiteInsightsQueryRangePreset || {});
|
|
887
889
|
var CustomHostnameDnsStatus = /* @__PURE__ */ ((CustomHostnameDnsStatus2) => {
|
|
888
890
|
CustomHostnameDnsStatus2["DnsPassed"] = "dns_passed";
|
|
889
891
|
CustomHostnameDnsStatus2["DnsWrongCname"] = "dns_wrong_cname";
|
|
@@ -3301,9 +3303,10 @@ var Api = class extends HttpClient {
|
|
|
3301
3303
|
type: "application/json" /* Json */,
|
|
3302
3304
|
...params
|
|
3303
3305
|
}),
|
|
3304
|
-
streamRecommendedQuestionsInSite: (organizationId, siteId, params = {}) => this.streamRequest({
|
|
3306
|
+
streamRecommendedQuestionsInSite: (organizationId, siteId, query, params = {}) => this.streamRequest({
|
|
3305
3307
|
path: `/orgs/${organizationId}/sites/${siteId}/ask/questions`,
|
|
3306
3308
|
method: "GET",
|
|
3309
|
+
query,
|
|
3307
3310
|
secure: true,
|
|
3308
3311
|
...params
|
|
3309
3312
|
}),
|
|
@@ -3764,7 +3767,7 @@ export {
|
|
|
3764
3767
|
SiteInsightsEventType,
|
|
3765
3768
|
SiteInsightsLinkPosition,
|
|
3766
3769
|
SiteInsightsQueryOperator,
|
|
3767
|
-
|
|
3770
|
+
SiteInsightsQueryRangePreset,
|
|
3768
3771
|
SiteInsightsTrademarkPlacement,
|
|
3769
3772
|
SiteInsightsVisitorBot,
|
|
3770
3773
|
SiteInsightsVisitorBrowser,
|