@gitbook/api 0.150.0 → 0.152.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 +176 -24
- package/dist/constants.d.ts +4 -1
- package/dist/index.cjs +35 -2
- package/dist/index.js +31 -2
- package/package.json +1 -1
- package/spec/openapi.json +276 -49
- package/spec/openapi.yaml +186 -38
package/dist/client.d.ts
CHANGED
|
@@ -627,6 +627,8 @@ export interface ContentRefURL {
|
|
|
627
627
|
export interface ContentRefFile {
|
|
628
628
|
kind: 'file';
|
|
629
629
|
file: string;
|
|
630
|
+
/** ID of the space the file is in. The file is considered as in the current space if none is provided. */
|
|
631
|
+
space?: string;
|
|
630
632
|
}
|
|
631
633
|
export interface DocumentInlineImage {
|
|
632
634
|
object: 'inline';
|
|
@@ -1332,7 +1334,6 @@ export interface DocumentBlockUpdates {
|
|
|
1332
1334
|
data: {
|
|
1333
1335
|
/** @default "full" */
|
|
1334
1336
|
format: 'numeric' | 'full' | 'short';
|
|
1335
|
-
sticky: boolean;
|
|
1336
1337
|
};
|
|
1337
1338
|
}
|
|
1338
1339
|
export type DocumentBlock = DocumentBlockParagraph | DocumentBlockHeading | DocumentBlockListOrdered | DocumentBlockListUnordered | DocumentBlockListTasks | DocumentBlockListItem | DocumentBlockDivider | DocumentBlockQuote | DocumentBlockHint | DocumentBlockIf | DocumentBlockImages | DocumentBlockImage | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockCodeLine | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTabsItem | DocumentBlockTable | DocumentBlockOpenAPI | DocumentBlockOpenAPIOperation | DocumentBlockOpenAPISchemas | DocumentBlockOpenAPIWebhook | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockReusableContent | DocumentBlockStepper | DocumentBlockStepperStep | DocumentBlockColumns | DocumentBlockColumn | DocumentBlockUpdates | DocumentBlockUpdate;
|
|
@@ -1369,10 +1370,20 @@ export interface JSONDocument {
|
|
|
1369
1370
|
[key: string]: any;
|
|
1370
1371
|
};
|
|
1371
1372
|
nodes: DocumentBlocksTopLevels[];
|
|
1373
|
+
meta?: {
|
|
1374
|
+
/** A content token that can be used to fetch the content referenced in this document from the API. */
|
|
1375
|
+
token?: string;
|
|
1376
|
+
};
|
|
1372
1377
|
}
|
|
1373
1378
|
export type Document = MarkdownDocument | {
|
|
1374
1379
|
document: JSONDocument;
|
|
1375
1380
|
} | object;
|
|
1381
|
+
/**
|
|
1382
|
+
* Page's slug in its direct parent
|
|
1383
|
+
* @minLength 0
|
|
1384
|
+
* @maxLength 100
|
|
1385
|
+
*/
|
|
1386
|
+
export type RevisionPageSlug = string;
|
|
1376
1387
|
export type RevisionPageDocument = RevisionPageBase & Document & {
|
|
1377
1388
|
/** @deprecated */
|
|
1378
1389
|
kind: 'sheet';
|
|
@@ -1382,7 +1393,7 @@ export type RevisionPageDocument = RevisionPageBase & Document & {
|
|
|
1382
1393
|
app: URL;
|
|
1383
1394
|
};
|
|
1384
1395
|
/** Page's slug in its direct parent */
|
|
1385
|
-
slug:
|
|
1396
|
+
slug: RevisionPageSlug;
|
|
1386
1397
|
/** Complete path to access the page in the revision. */
|
|
1387
1398
|
path: string;
|
|
1388
1399
|
description?: string;
|
|
@@ -4002,6 +4013,8 @@ export interface SiteSpace {
|
|
|
4002
4013
|
*/
|
|
4003
4014
|
published?: string;
|
|
4004
4015
|
};
|
|
4016
|
+
/** Whether the site space is hidden. If true, the site space will not be shown in the site's navigation. */
|
|
4017
|
+
hidden?: boolean;
|
|
4005
4018
|
}
|
|
4006
4019
|
export interface SiteSection {
|
|
4007
4020
|
/** The object type, which is always "site-section" */
|
|
@@ -4292,16 +4305,12 @@ export interface BillingDiscount {
|
|
|
4292
4305
|
/** Percent that will be deducted from the subtotal of the invoice */
|
|
4293
4306
|
percentOff: number;
|
|
4294
4307
|
}
|
|
4295
|
-
export interface
|
|
4296
|
-
object: 'site-
|
|
4297
|
-
site
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
/** Number of pageviews in the past 30 days */
|
|
4302
|
-
pageviews: number;
|
|
4303
|
-
};
|
|
4304
|
-
features: SiteFeature[];
|
|
4308
|
+
export interface SitePageviews {
|
|
4309
|
+
object: 'site-pageviews';
|
|
4310
|
+
/** The identifier of the site */
|
|
4311
|
+
siteId: string;
|
|
4312
|
+
/** Number of pageviews in the past 30 days */
|
|
4313
|
+
pageviews: number;
|
|
4305
4314
|
}
|
|
4306
4315
|
export interface BillingPortal {
|
|
4307
4316
|
/** URL to the billing portal for an organization */
|
|
@@ -4591,6 +4600,18 @@ export interface OpenAPISpecContent {
|
|
|
4591
4600
|
filesystem: object;
|
|
4592
4601
|
url: URL;
|
|
4593
4602
|
}
|
|
4603
|
+
/**
|
|
4604
|
+
* Estimated end-user impact of a conversation issue.
|
|
4605
|
+
*
|
|
4606
|
+
* - low: Minor friction or small polish issues; users can proceed with little to no guidance.
|
|
4607
|
+
* - medium: Noticeable friction or partial blocking; users can proceed with workarounds or extra guidance.
|
|
4608
|
+
* - high: Fully or near-fully blocking, severe regression, repeated failures, or risk of data loss; no viable workaround.
|
|
4609
|
+
*/
|
|
4610
|
+
export declare enum ConversationIssueImpact {
|
|
4611
|
+
Low = "low",
|
|
4612
|
+
Medium = "medium",
|
|
4613
|
+
High = "high"
|
|
4614
|
+
}
|
|
4594
4615
|
export interface ConversationsIssuesCluster {
|
|
4595
4616
|
object: 'issues-cluster';
|
|
4596
4617
|
/** The ID of the conversations issues cluster */
|
|
@@ -4601,8 +4622,17 @@ export interface ConversationsIssuesCluster {
|
|
|
4601
4622
|
updatedAt: Timestamp;
|
|
4602
4623
|
/** Name of the icon */
|
|
4603
4624
|
icon: Icon;
|
|
4604
|
-
|
|
4605
|
-
|
|
4625
|
+
summary: JSONDocument;
|
|
4626
|
+
/** Whether the cluster is muted for change request creation */
|
|
4627
|
+
muted: boolean;
|
|
4628
|
+
/**
|
|
4629
|
+
* Estimated end-user impact of a conversation issue.
|
|
4630
|
+
*
|
|
4631
|
+
* - low: Minor friction or small polish issues; users can proceed with little to no guidance.
|
|
4632
|
+
* - medium: Noticeable friction or partial blocking; users can proceed with workarounds or extra guidance.
|
|
4633
|
+
* - high: Fully or near-fully blocking, severe regression, repeated failures, or risk of data loss; no viable workaround.
|
|
4634
|
+
*/
|
|
4635
|
+
impact: ConversationIssueImpact;
|
|
4606
4636
|
/**
|
|
4607
4637
|
* The weekly pulse of the conversations issues cluster for the past 3 months
|
|
4608
4638
|
* @maxItems 13
|
|
@@ -4638,6 +4668,14 @@ export interface Conversation {
|
|
|
4638
4668
|
processedAt?: Timestamp;
|
|
4639
4669
|
/** Integration source */
|
|
4640
4670
|
source: ConversationSource;
|
|
4671
|
+
/**
|
|
4672
|
+
* Estimated end-user impact of a conversation issue.
|
|
4673
|
+
*
|
|
4674
|
+
* - low: Minor friction or small polish issues; users can proceed with little to no guidance.
|
|
4675
|
+
* - medium: Noticeable friction or partial blocking; users can proceed with workarounds or extra guidance.
|
|
4676
|
+
* - high: Fully or near-fully blocking, severe regression, repeated failures, or risk of data loss; no viable workaround.
|
|
4677
|
+
*/
|
|
4678
|
+
impact: ConversationIssueImpact;
|
|
4641
4679
|
/** URLs associated with the conversation */
|
|
4642
4680
|
urls: {
|
|
4643
4681
|
/**
|
|
@@ -4688,8 +4726,15 @@ export interface ConversationIssue {
|
|
|
4688
4726
|
id: string;
|
|
4689
4727
|
/** The title of the conversation issue */
|
|
4690
4728
|
title: string;
|
|
4691
|
-
|
|
4692
|
-
|
|
4729
|
+
details: JSONDocument;
|
|
4730
|
+
/**
|
|
4731
|
+
* Estimated end-user impact of a conversation issue.
|
|
4732
|
+
*
|
|
4733
|
+
* - low: Minor friction or small polish issues; users can proceed with little to no guidance.
|
|
4734
|
+
* - medium: Noticeable friction or partial blocking; users can proceed with workarounds or extra guidance.
|
|
4735
|
+
* - high: Fully or near-fully blocking, severe regression, repeated failures, or risk of data loss; no viable workaround.
|
|
4736
|
+
*/
|
|
4737
|
+
impact: ConversationIssueImpact;
|
|
4693
4738
|
createdAt: Timestamp;
|
|
4694
4739
|
ingestedAt: Timestamp;
|
|
4695
4740
|
/** The ID of the conversation the issue belongs to */
|
|
@@ -5586,6 +5631,12 @@ export type AIMessageTask = {
|
|
|
5586
5631
|
spaceId: string;
|
|
5587
5632
|
/** The ID of the change request to review. */
|
|
5588
5633
|
changeRequestId: string;
|
|
5634
|
+
} | {
|
|
5635
|
+
type: 'implement_change_request';
|
|
5636
|
+
/** The ID of the space the change request is in. */
|
|
5637
|
+
spaceId: string;
|
|
5638
|
+
/** The ID of the change request to implement the task in. */
|
|
5639
|
+
changeRequestId: string;
|
|
5589
5640
|
};
|
|
5590
5641
|
/** Message emitted by the server to indicate the start of the AI response. */
|
|
5591
5642
|
export interface AIStreamResponseStart {
|
|
@@ -5595,13 +5646,25 @@ export interface AIStreamResponseStart {
|
|
|
5595
5646
|
/** When the agent is responding to a comment. */
|
|
5596
5647
|
task?: AIMessageTask;
|
|
5597
5648
|
}
|
|
5649
|
+
/** The response that generated this message. */
|
|
5650
|
+
export interface AIMessageResponseMetadata {
|
|
5651
|
+
/** The ID of the response that generated this message. */
|
|
5652
|
+
id: string;
|
|
5653
|
+
/** The ID of the previous response that this message is based on. */
|
|
5654
|
+
previous?: string;
|
|
5655
|
+
}
|
|
5598
5656
|
/** Message emitted by the server to indicate the end of the AI response. It contains the ID of the response to be referenced for followup requests. */
|
|
5599
5657
|
export interface AIStreamResponseFinish {
|
|
5600
5658
|
type: 'response_finish';
|
|
5601
5659
|
/** The ID of the message that this event is composing. */
|
|
5602
5660
|
messageId: string;
|
|
5603
|
-
/**
|
|
5661
|
+
/**
|
|
5662
|
+
* The ID of the response
|
|
5663
|
+
* @deprecated
|
|
5664
|
+
*/
|
|
5604
5665
|
responseId: string;
|
|
5666
|
+
/** The response that generated this message. */
|
|
5667
|
+
response: AIMessageResponseMetadata;
|
|
5605
5668
|
}
|
|
5606
5669
|
/** Message emitted by the server to indicate the latest block of the document. The block can either be a new block or an update to the previous block. */
|
|
5607
5670
|
export interface AIStreamResponseDocument {
|
|
@@ -5983,7 +6046,8 @@ export declare enum SiteInsightsTrademarkPlacement {
|
|
|
5983
6046
|
Sidebar = "sidebar",
|
|
5984
6047
|
Ad = "ad",
|
|
5985
6048
|
Footer = "footer",
|
|
5986
|
-
Pdf = "pdf"
|
|
6049
|
+
Pdf = "pdf",
|
|
6050
|
+
Embed = "embed"
|
|
5987
6051
|
}
|
|
5988
6052
|
export type SiteInsightsEventTrademarkClick = SiteInsightsEventBase & {
|
|
5989
6053
|
type: 'trademark_click';
|
|
@@ -7072,6 +7136,11 @@ export interface OrganizationInfoChannel {
|
|
|
7072
7136
|
channel: 'organization';
|
|
7073
7137
|
organization: string;
|
|
7074
7138
|
}
|
|
7139
|
+
/** Subscription channel for changes in Docs Agent data in an organization. */
|
|
7140
|
+
export interface OrganizationAgentDataChannel {
|
|
7141
|
+
channel: 'organization-agent-data';
|
|
7142
|
+
organization: string;
|
|
7143
|
+
}
|
|
7075
7144
|
export interface OrganizationInviteLinksChannel {
|
|
7076
7145
|
channel: 'organization-link-invites';
|
|
7077
7146
|
organization: string;
|
|
@@ -7314,7 +7383,7 @@ export interface ImportRunChannel {
|
|
|
7314
7383
|
runId: string;
|
|
7315
7384
|
}
|
|
7316
7385
|
/** Channel to subscribe to for realtime updates. */
|
|
7317
|
-
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 | OrganizationAgentInstructionsChannel | OrganizationChangeRequestsChannel | SpaceCommentsChannel | ChangeRequestCommentsChannel | CommentInfoChannel | CommentRepliesChannel | IntegrationChannel | IntegrationInstallationChannel | IntegrationSpaceInstallationChannel | IntegrationSpaceInstallationsChannel | IntegrationSiteInstallationChannel | IntegrationSiteInstallationsChannel | PublishedContentSiteChannel | SiteRedirectsChannel | SiteChannel | SiteCustomizationChannel | SiteIntegrationsChannel | SiteSpaceChannel | SiteSpaceCustomizationChannel | SiteStructureChannel | SiteAdaptiveSchemaChannel | SitePublishingAuthChannel | SiteShareLinksChannel | SiteShareLinkChannel | SiteMcpServersChannel | SiteMcpServerChannel | SiteSectionChannel | CustomHostnameChannel | GitSyncOperationChannel | OpenAPISpecChannel | SubdomainChannel | TranslationChannel | TranslationRunChannel | ImportRunChannel;
|
|
7386
|
+
export type SubscriptionChannel = SpaceInfoChannel | SpaceContentChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel | SpaceContentRefsChannel | SpaceIntegrationsChannel | UserAPITokensChannel | UserOrganizationsChannel | UserProfileChannel | ChangeRequestChannel | ChangeRequestsChannel | ChangeRequestReviewsChannel | ChangeRequestContentRefsChannel | CollectionChannel | CollectionPublishingCustomizationChannel | OrganizationInfoChannel | OrganizationAgentDataChannel | OrganizationInviteLinksChannel | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationSAMLChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | OrganizationSitesChannel | OrganizationAIIndexationChannel | OrganizationOpenAPISpecsChannel | OrganizationTranslationsChannel | OrganizationTranslationsGlossaryChannel | OrganizationCustomFontsChannel | OrganizationAgentInstructionsChannel | OrganizationChangeRequestsChannel | SpaceCommentsChannel | ChangeRequestCommentsChannel | CommentInfoChannel | CommentRepliesChannel | IntegrationChannel | IntegrationInstallationChannel | IntegrationSpaceInstallationChannel | IntegrationSpaceInstallationsChannel | IntegrationSiteInstallationChannel | IntegrationSiteInstallationsChannel | PublishedContentSiteChannel | SiteRedirectsChannel | SiteChannel | SiteCustomizationChannel | SiteIntegrationsChannel | SiteSpaceChannel | SiteSpaceCustomizationChannel | SiteStructureChannel | SiteAdaptiveSchemaChannel | SitePublishingAuthChannel | SiteShareLinksChannel | SiteShareLinkChannel | SiteMcpServersChannel | SiteMcpServerChannel | SiteSectionChannel | CustomHostnameChannel | GitSyncOperationChannel | OpenAPISpecChannel | SubdomainChannel | TranslationChannel | TranslationRunChannel | ImportRunChannel;
|
|
7318
7387
|
export interface TranslationRunChannelData {
|
|
7319
7388
|
channel: 'translation-run';
|
|
7320
7389
|
data: {
|
|
@@ -7409,6 +7478,8 @@ export interface AIMessage {
|
|
|
7409
7478
|
steps: AIMessageStep[];
|
|
7410
7479
|
/** When the agent is responding to a comment. */
|
|
7411
7480
|
task?: AIMessageTask;
|
|
7481
|
+
/** The response that generated this message. */
|
|
7482
|
+
response?: AIMessageResponseMetadata;
|
|
7412
7483
|
}
|
|
7413
7484
|
/** Payload emitted by the agent to reset the messages. */
|
|
7414
7485
|
export interface AgentStreamMessages {
|
|
@@ -8131,6 +8202,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8131
8202
|
* @default false
|
|
8132
8203
|
*/
|
|
8133
8204
|
evaluated?: boolean | "deterministic-only";
|
|
8205
|
+
/**
|
|
8206
|
+
* Controls whether the document should be deferenced (eference to other content will be resolved and expanded).
|
|
8207
|
+
* - When set to `true`, the entire document will be deferenced
|
|
8208
|
+
* - When set to `reusable-contents`, only reusable contents will be deferenced.
|
|
8209
|
+
* @default false
|
|
8210
|
+
*/
|
|
8211
|
+
dereferenced?: boolean | "reusable-contents";
|
|
8134
8212
|
/**
|
|
8135
8213
|
* If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
|
|
8136
8214
|
* @default true
|
|
@@ -8222,6 +8300,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8222
8300
|
* @default false
|
|
8223
8301
|
*/
|
|
8224
8302
|
evaluated?: boolean | "deterministic-only";
|
|
8303
|
+
/**
|
|
8304
|
+
* Controls whether the document should be deferenced (eference to other content will be resolved and expanded).
|
|
8305
|
+
* - When set to `true`, the entire document will be deferenced
|
|
8306
|
+
* - When set to `reusable-contents`, only reusable contents will be deferenced.
|
|
8307
|
+
* @default false
|
|
8308
|
+
*/
|
|
8309
|
+
dereferenced?: boolean | "reusable-contents";
|
|
8225
8310
|
/**
|
|
8226
8311
|
* If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
|
|
8227
8312
|
* @default true
|
|
@@ -8867,6 +8952,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8867
8952
|
* @default false
|
|
8868
8953
|
*/
|
|
8869
8954
|
evaluated?: boolean | "deterministic-only";
|
|
8955
|
+
/**
|
|
8956
|
+
* Controls whether the document should be deferenced (eference to other content will be resolved and expanded).
|
|
8957
|
+
* - When set to `true`, the entire document will be deferenced
|
|
8958
|
+
* - When set to `reusable-contents`, only reusable contents will be deferenced.
|
|
8959
|
+
* @default false
|
|
8960
|
+
*/
|
|
8961
|
+
dereferenced?: boolean | "reusable-contents";
|
|
8870
8962
|
/**
|
|
8871
8963
|
* If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
|
|
8872
8964
|
* @default true
|
|
@@ -9134,6 +9226,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9134
9226
|
* @default false
|
|
9135
9227
|
*/
|
|
9136
9228
|
evaluated?: boolean | "deterministic-only";
|
|
9229
|
+
/**
|
|
9230
|
+
* Controls whether the document should be deferenced (eference to other content will be resolved and expanded).
|
|
9231
|
+
* - When set to `true`, the entire document will be deferenced
|
|
9232
|
+
* - When set to `reusable-contents`, only reusable contents will be deferenced.
|
|
9233
|
+
* @default false
|
|
9234
|
+
*/
|
|
9235
|
+
dereferenced?: boolean | "reusable-contents";
|
|
9137
9236
|
/**
|
|
9138
9237
|
* If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
|
|
9139
9238
|
* @default true
|
|
@@ -9163,6 +9262,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9163
9262
|
* @default false
|
|
9164
9263
|
*/
|
|
9165
9264
|
evaluated?: boolean | "deterministic-only";
|
|
9265
|
+
/**
|
|
9266
|
+
* Controls whether the document should be deferenced (eference to other content will be resolved and expanded).
|
|
9267
|
+
* - When set to `true`, the entire document will be deferenced
|
|
9268
|
+
* - When set to `reusable-contents`, only reusable contents will be deferenced.
|
|
9269
|
+
* @default false
|
|
9270
|
+
*/
|
|
9271
|
+
dereferenced?: boolean | "reusable-contents";
|
|
9166
9272
|
}, params?: RequestParams) => Promise<HttpResponse<JSONDocument, any>>;
|
|
9167
9273
|
/**
|
|
9168
9274
|
* No description
|
|
@@ -9184,6 +9290,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9184
9290
|
* @default false
|
|
9185
9291
|
*/
|
|
9186
9292
|
evaluated?: boolean | "deterministic-only";
|
|
9293
|
+
/**
|
|
9294
|
+
* Controls whether the document should be deferenced (eference to other content will be resolved and expanded).
|
|
9295
|
+
* - When set to `true`, the entire document will be deferenced
|
|
9296
|
+
* - When set to `reusable-contents`, only reusable contents will be deferenced.
|
|
9297
|
+
* @default false
|
|
9298
|
+
*/
|
|
9299
|
+
dereferenced?: boolean | "reusable-contents";
|
|
9187
9300
|
/**
|
|
9188
9301
|
* If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
|
|
9189
9302
|
* @default true
|
|
@@ -9225,6 +9338,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9225
9338
|
* @default false
|
|
9226
9339
|
*/
|
|
9227
9340
|
evaluated?: boolean | "deterministic-only";
|
|
9341
|
+
/**
|
|
9342
|
+
* Controls whether the document should be deferenced (eference to other content will be resolved and expanded).
|
|
9343
|
+
* - When set to `true`, the entire document will be deferenced
|
|
9344
|
+
* - When set to `reusable-contents`, only reusable contents will be deferenced.
|
|
9345
|
+
* @default false
|
|
9346
|
+
*/
|
|
9347
|
+
dereferenced?: boolean | "reusable-contents";
|
|
9228
9348
|
/**
|
|
9229
9349
|
* If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
|
|
9230
9350
|
* @default true
|
|
@@ -9275,6 +9395,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9275
9395
|
* @default false
|
|
9276
9396
|
*/
|
|
9277
9397
|
evaluated?: boolean | "deterministic-only";
|
|
9398
|
+
/**
|
|
9399
|
+
* Controls whether the document should be deferenced (eference to other content will be resolved and expanded).
|
|
9400
|
+
* - When set to `true`, the entire document will be deferenced
|
|
9401
|
+
* - When set to `reusable-contents`, only reusable contents will be deferenced.
|
|
9402
|
+
* @default false
|
|
9403
|
+
*/
|
|
9404
|
+
dereferenced?: boolean | "reusable-contents";
|
|
9278
9405
|
}, params?: RequestParams) => Promise<HttpResponse<JSONDocument, any>>;
|
|
9279
9406
|
/**
|
|
9280
9407
|
* No description
|
|
@@ -10912,10 +11039,10 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10912
11039
|
*/
|
|
10913
11040
|
limit?: number;
|
|
10914
11041
|
/**
|
|
10915
|
-
* If defined, only change requests matching
|
|
10916
|
-
* @default "open"
|
|
11042
|
+
* If defined, only change requests matching the statuses will be returned.
|
|
11043
|
+
* @default ["open"]
|
|
10917
11044
|
*/
|
|
10918
|
-
status?: ChangeRequestStatus;
|
|
11045
|
+
status?: ChangeRequestStatus[];
|
|
10919
11046
|
/** If defined, only change requests created by this user will be returned. */
|
|
10920
11047
|
creator?: string;
|
|
10921
11048
|
/** If defined, only change requests with contributions from this user will be returned. */
|
|
@@ -11491,7 +11618,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11491
11618
|
*/
|
|
11492
11619
|
order?: "asc" | "desc";
|
|
11493
11620
|
/** @default "updatedAt" */
|
|
11494
|
-
orderBy?: "updatedAt" | "issues" | "conversations";
|
|
11621
|
+
orderBy?: "updatedAt" | "issues" | "conversations" | "impact";
|
|
11495
11622
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
11496
11623
|
items: ConversationsIssuesCluster[];
|
|
11497
11624
|
}, {
|
|
@@ -11504,13 +11631,26 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11504
11631
|
/**
|
|
11505
11632
|
* No description
|
|
11506
11633
|
*
|
|
11507
|
-
* @tags
|
|
11634
|
+
* @tags conversations
|
|
11508
11635
|
* @name GetConversationsIssuesCluster
|
|
11509
11636
|
* @summary Get a conversations issues cluster by its identifier
|
|
11510
11637
|
* @request GET:/orgs/{organizationId}/conversations-clusters/{clusterId}
|
|
11511
11638
|
* @secure
|
|
11512
11639
|
*/
|
|
11513
11640
|
getConversationsIssuesCluster: (organizationId: string, clusterId: string, params?: RequestParams) => Promise<HttpResponse<ConversationsIssuesCluster, any>>;
|
|
11641
|
+
/**
|
|
11642
|
+
* No description
|
|
11643
|
+
*
|
|
11644
|
+
* @tags conversations
|
|
11645
|
+
* @name UpdateConversationsIssuesCluster
|
|
11646
|
+
* @summary Update a conversations issues cluster
|
|
11647
|
+
* @request PATCH:/orgs/{organizationId}/conversations-clusters/{clusterId}
|
|
11648
|
+
* @secure
|
|
11649
|
+
*/
|
|
11650
|
+
updateConversationsIssuesCluster: (organizationId: string, clusterId: string, data: {
|
|
11651
|
+
/** Whether the cluster is muted for change request creation */
|
|
11652
|
+
muted: boolean;
|
|
11653
|
+
}, params?: RequestParams) => Promise<HttpResponse<ConversationsIssuesCluster, any>>;
|
|
11514
11654
|
/**
|
|
11515
11655
|
* No description
|
|
11516
11656
|
*
|
|
@@ -11621,6 +11761,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11621
11761
|
* @secure
|
|
11622
11762
|
*/
|
|
11623
11763
|
getAgentSetupState: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<AgentSetupState, any>>;
|
|
11764
|
+
/**
|
|
11765
|
+
* @description Delete all the conversations, conversation issues, and issue clusters used by Docs Agent for an organization.
|
|
11766
|
+
*
|
|
11767
|
+
* @tags agents, critical
|
|
11768
|
+
* @name DeleteAgentSetup
|
|
11769
|
+
* @summary Delete the agents setup data
|
|
11770
|
+
* @request DELETE:/orgs/{organizationId}/agents-setup
|
|
11771
|
+
* @secure
|
|
11772
|
+
*/
|
|
11773
|
+
deleteAgentSetup: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
11624
11774
|
/**
|
|
11625
11775
|
* No description
|
|
11626
11776
|
*
|
|
@@ -12682,6 +12832,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
12682
12832
|
condition?: Expression | null;
|
|
12683
12833
|
/** The content that this site space points to. If not set, the space will remain unchanged. */
|
|
12684
12834
|
spaceId?: string;
|
|
12835
|
+
/** Whether the site space is hidden. If true, the site space will not be shown in the site's navigation. If not set, the hidden state will remain unchanged. If set to false, the site space will be shown in site navigation. */
|
|
12836
|
+
hidden?: boolean;
|
|
12685
12837
|
}, params?: RequestParams) => Promise<HttpResponse<SiteSpace, any>>;
|
|
12686
12838
|
/**
|
|
12687
12839
|
* No description
|
package/dist/constants.d.ts
CHANGED
|
@@ -17,6 +17,8 @@ export declare const DOCUMENT_TEXT_BACKGROUND_COLOR_ENUM: ["default", "green", "
|
|
|
17
17
|
export declare const TEXT_ALIGNMENT_ENUM: ["start", "center", "end"];
|
|
18
18
|
export declare const CARDS_IMAGE_OBJECT_FIT_ENUM: ["contain", "fill", "cover"];
|
|
19
19
|
export declare const VERTICAL_ALIGNMENT_ENUM: ["top", "middle", "bottom"];
|
|
20
|
+
export declare const REVISION_PAGE_SLUG_MAX_LENGTH = 100;
|
|
21
|
+
export declare const REVISION_PAGE_SLUG_MIN_LENGTH = 0;
|
|
20
22
|
export declare const REVISION_PAGE_LAYOUT_OPTIONS_WIDTH_ENUM: ["default", "wide"];
|
|
21
23
|
export declare const REVISION_PAGE_LAYOUT_OPTIONS_COVER_SIZE_ENUM: ["hero", "full"];
|
|
22
24
|
export declare const CHANGE_REQUEST_STATUS_ENUM: ["draft", "open", "archived", "merged"];
|
|
@@ -94,6 +96,7 @@ export declare const SAMLPROVIDER_LABEL_MIN_LENGTH = 1;
|
|
|
94
96
|
export declare const SAMLPROVIDER_ENTITY_ID_MAX_LENGTH = 1024;
|
|
95
97
|
export declare const SAMLPROVIDER_CERTIFICATE_MAX_LENGTH = 10000;
|
|
96
98
|
export declare const SAMLPROVIDER_STATUS_ENUM: ["active", "pending"];
|
|
99
|
+
export declare const CONVERSATION_ISSUE_IMPACT_ENUM: ["low", "medium", "high"];
|
|
97
100
|
export declare const TRANSLATION_STATUS_ENUM: ["pending", "running", "completed"];
|
|
98
101
|
export declare const STORAGE_UPLOAD_KIND_ENUM: ["customization_font", "import_file"];
|
|
99
102
|
export declare const FONT_FAMILY_MAX_LENGTH = 50;
|
|
@@ -125,7 +128,7 @@ export declare const SHARE_LINK_NAME_MIN_LENGTH = 0;
|
|
|
125
128
|
export declare const AIMODEL_ENUM: ["fast", "reasoning-low", "reasoning-medium", "reasoning-high"];
|
|
126
129
|
export declare const SITE_INSIGHTS_DISPLAY_CONTEXT_ENUM: ["site", "embed"];
|
|
127
130
|
export declare const SITE_INSIGHTS_LINK_POSITION_ENUM: ["announcement", "header", "footer", "sidebar", "content"];
|
|
128
|
-
export declare const SITE_INSIGHTS_TRADEMARK_PLACEMENT_ENUM: ["sidebar", "ad", "footer", "pdf"];
|
|
131
|
+
export declare const SITE_INSIGHTS_TRADEMARK_PLACEMENT_ENUM: ["sidebar", "ad", "footer", "pdf", "embed"];
|
|
129
132
|
export declare const SITE_INSIGHTS_AD_PLACEMENT_ENUM: ["aside"];
|
|
130
133
|
export declare const SITE_INSIGHTS_EVENT_TYPE_ENUM: ["page_view", "search_open", "search_type_query", "search_open_result", "page_post_feedback", "page_post_feedback_comment", "ask_question", "ask_view", "ask_rate_response", "link_click", "api_client_open", "api_client_request", "ad_click", "ad_display", "trademark_click"];
|
|
131
134
|
export declare const SITE_INSIGHTS_VISITOR_BROWSER_ENUM: ["chrome", "firefox", "safari", "edge", "ie", "opera", "unknown"];
|
package/dist/index.cjs
CHANGED
|
@@ -221,6 +221,7 @@ __export(src_exports, {
|
|
|
221
221
|
CONTENT_REFERENCE_RELATION_ENUM: () => CONTENT_REFERENCE_RELATION_ENUM,
|
|
222
222
|
CONTENT_REFERENCE_STATUS_ENUM: () => CONTENT_REFERENCE_STATUS_ENUM,
|
|
223
223
|
CONTENT_VISIBILITY_ENUM: () => CONTENT_VISIBILITY_ENUM,
|
|
224
|
+
CONVERSATION_ISSUE_IMPACT_ENUM: () => CONVERSATION_ISSUE_IMPACT_ENUM,
|
|
224
225
|
CUSTOMIZATION_AIMODE_ENUM: () => CUSTOMIZATION_AIMODE_ENUM,
|
|
225
226
|
CUSTOMIZATION_ANNOUNCEMENT_MESSAGE_MAX_LENGTH: () => CUSTOMIZATION_ANNOUNCEMENT_MESSAGE_MAX_LENGTH,
|
|
226
227
|
CUSTOMIZATION_ANNOUNCEMENT_MESSAGE_MIN_LENGTH: () => CUSTOMIZATION_ANNOUNCEMENT_MESSAGE_MIN_LENGTH,
|
|
@@ -253,6 +254,7 @@ __export(src_exports, {
|
|
|
253
254
|
ContentReferenceStatus: () => ContentReferenceStatus,
|
|
254
255
|
ContentType: () => ContentType,
|
|
255
256
|
ContentVisibility: () => ContentVisibility,
|
|
257
|
+
ConversationIssueImpact: () => ConversationIssueImpact,
|
|
256
258
|
CustomHostnameDnsStatus: () => CustomHostnameDnsStatus,
|
|
257
259
|
CustomHostnameErrorStatus: () => CustomHostnameErrorStatus,
|
|
258
260
|
CustomHostnameSslStatus: () => CustomHostnameSslStatus,
|
|
@@ -341,6 +343,8 @@ __export(src_exports, {
|
|
|
341
343
|
REVISION_PAGE_LAYOUT_OPTIONS_COVER_SIZE_ENUM: () => REVISION_PAGE_LAYOUT_OPTIONS_COVER_SIZE_ENUM,
|
|
342
344
|
REVISION_PAGE_LAYOUT_OPTIONS_WIDTH_ENUM: () => REVISION_PAGE_LAYOUT_OPTIONS_WIDTH_ENUM,
|
|
343
345
|
REVISION_PAGE_LAYOUT_PRESET_ENUM: () => REVISION_PAGE_LAYOUT_PRESET_ENUM,
|
|
346
|
+
REVISION_PAGE_SLUG_MAX_LENGTH: () => REVISION_PAGE_SLUG_MAX_LENGTH,
|
|
347
|
+
REVISION_PAGE_SLUG_MIN_LENGTH: () => REVISION_PAGE_SLUG_MIN_LENGTH,
|
|
344
348
|
REVISION_PAGE_TYPE_ENUM: () => REVISION_PAGE_TYPE_ENUM,
|
|
345
349
|
REVISION_SEMANTIC_CHANGE_TYPE_ENUM: () => REVISION_SEMANTIC_CHANGE_TYPE_ENUM,
|
|
346
350
|
RevisionPageLayoutOptionsCoverSize: () => RevisionPageLayoutOptionsCoverSize,
|
|
@@ -441,7 +445,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
441
445
|
|
|
442
446
|
// package.json
|
|
443
447
|
var name = "@gitbook/api";
|
|
444
|
-
var version = "0.
|
|
448
|
+
var version = "0.152.0";
|
|
445
449
|
|
|
446
450
|
// src/client.ts
|
|
447
451
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -963,6 +967,12 @@ var SAMLProviderStatus = /* @__PURE__ */ ((SAMLProviderStatus2) => {
|
|
|
963
967
|
SAMLProviderStatus2["Pending"] = "pending";
|
|
964
968
|
return SAMLProviderStatus2;
|
|
965
969
|
})(SAMLProviderStatus || {});
|
|
970
|
+
var ConversationIssueImpact = /* @__PURE__ */ ((ConversationIssueImpact2) => {
|
|
971
|
+
ConversationIssueImpact2["Low"] = "low";
|
|
972
|
+
ConversationIssueImpact2["Medium"] = "medium";
|
|
973
|
+
ConversationIssueImpact2["High"] = "high";
|
|
974
|
+
return ConversationIssueImpact2;
|
|
975
|
+
})(ConversationIssueImpact || {});
|
|
966
976
|
var TranslationStatus = /* @__PURE__ */ ((TranslationStatus2) => {
|
|
967
977
|
TranslationStatus2["Pending"] = "pending";
|
|
968
978
|
TranslationStatus2["Running"] = "running";
|
|
@@ -1117,6 +1127,7 @@ var SiteInsightsTrademarkPlacement = /* @__PURE__ */ ((SiteInsightsTrademarkPlac
|
|
|
1117
1127
|
SiteInsightsTrademarkPlacement2["Ad"] = "ad";
|
|
1118
1128
|
SiteInsightsTrademarkPlacement2["Footer"] = "footer";
|
|
1119
1129
|
SiteInsightsTrademarkPlacement2["Pdf"] = "pdf";
|
|
1130
|
+
SiteInsightsTrademarkPlacement2["Embed"] = "embed";
|
|
1120
1131
|
return SiteInsightsTrademarkPlacement2;
|
|
1121
1132
|
})(SiteInsightsTrademarkPlacement || {});
|
|
1122
1133
|
var SiteInsightsAdPlacement = /* @__PURE__ */ ((SiteInsightsAdPlacement2) => {
|
|
@@ -3163,6 +3174,15 @@ var Api = class extends HttpClient {
|
|
|
3163
3174
|
format: "json",
|
|
3164
3175
|
...params
|
|
3165
3176
|
}),
|
|
3177
|
+
updateConversationsIssuesCluster: (organizationId, clusterId, data, params = {}) => this.request({
|
|
3178
|
+
path: `/orgs/${organizationId}/conversations-clusters/${clusterId}`,
|
|
3179
|
+
method: "PATCH",
|
|
3180
|
+
body: data,
|
|
3181
|
+
secure: true,
|
|
3182
|
+
type: "application/json" /* Json */,
|
|
3183
|
+
format: "json",
|
|
3184
|
+
...params
|
|
3185
|
+
}),
|
|
3166
3186
|
listConversations: (organizationId, query, params = {}) => this.request({
|
|
3167
3187
|
path: `/orgs/${organizationId}/conversations`,
|
|
3168
3188
|
method: "GET",
|
|
@@ -3208,6 +3228,12 @@ var Api = class extends HttpClient {
|
|
|
3208
3228
|
format: "json",
|
|
3209
3229
|
...params
|
|
3210
3230
|
}),
|
|
3231
|
+
deleteAgentSetup: (organizationId, params = {}) => this.request({
|
|
3232
|
+
path: `/orgs/${organizationId}/agents-setup`,
|
|
3233
|
+
method: "DELETE",
|
|
3234
|
+
secure: true,
|
|
3235
|
+
...params
|
|
3236
|
+
}),
|
|
3211
3237
|
getOrganizationAgentInstructions: (organizationId, params = {}) => this.request({
|
|
3212
3238
|
path: `/orgs/${organizationId}/agent-instructions`,
|
|
3213
3239
|
method: "GET",
|
|
@@ -4003,6 +4029,8 @@ var DOCUMENT_TEXT_BACKGROUND_COLOR_ENUM = ["default", "green", "blue", "red", "o
|
|
|
4003
4029
|
var TEXT_ALIGNMENT_ENUM = ["start", "center", "end"];
|
|
4004
4030
|
var CARDS_IMAGE_OBJECT_FIT_ENUM = ["contain", "fill", "cover"];
|
|
4005
4031
|
var VERTICAL_ALIGNMENT_ENUM = ["top", "middle", "bottom"];
|
|
4032
|
+
var REVISION_PAGE_SLUG_MAX_LENGTH = 100;
|
|
4033
|
+
var REVISION_PAGE_SLUG_MIN_LENGTH = 0;
|
|
4006
4034
|
var REVISION_PAGE_LAYOUT_OPTIONS_WIDTH_ENUM = ["default", "wide"];
|
|
4007
4035
|
var REVISION_PAGE_LAYOUT_OPTIONS_COVER_SIZE_ENUM = ["hero", "full"];
|
|
4008
4036
|
var CHANGE_REQUEST_STATUS_ENUM = ["draft", "open", "archived", "merged"];
|
|
@@ -4080,6 +4108,7 @@ var SAMLPROVIDER_LABEL_MIN_LENGTH = 1;
|
|
|
4080
4108
|
var SAMLPROVIDER_ENTITY_ID_MAX_LENGTH = 1024;
|
|
4081
4109
|
var SAMLPROVIDER_CERTIFICATE_MAX_LENGTH = 1e4;
|
|
4082
4110
|
var SAMLPROVIDER_STATUS_ENUM = ["active", "pending"];
|
|
4111
|
+
var CONVERSATION_ISSUE_IMPACT_ENUM = ["low", "medium", "high"];
|
|
4083
4112
|
var TRANSLATION_STATUS_ENUM = ["pending", "running", "completed"];
|
|
4084
4113
|
var STORAGE_UPLOAD_KIND_ENUM = ["customization_font", "import_file"];
|
|
4085
4114
|
var FONT_FAMILY_MAX_LENGTH = 50;
|
|
@@ -4111,7 +4140,7 @@ var SHARE_LINK_NAME_MIN_LENGTH = 0;
|
|
|
4111
4140
|
var AIMODEL_ENUM = ["fast", "reasoning-low", "reasoning-medium", "reasoning-high"];
|
|
4112
4141
|
var SITE_INSIGHTS_DISPLAY_CONTEXT_ENUM = ["site", "embed"];
|
|
4113
4142
|
var SITE_INSIGHTS_LINK_POSITION_ENUM = ["announcement", "header", "footer", "sidebar", "content"];
|
|
4114
|
-
var SITE_INSIGHTS_TRADEMARK_PLACEMENT_ENUM = ["sidebar", "ad", "footer", "pdf"];
|
|
4143
|
+
var SITE_INSIGHTS_TRADEMARK_PLACEMENT_ENUM = ["sidebar", "ad", "footer", "pdf", "embed"];
|
|
4115
4144
|
var SITE_INSIGHTS_AD_PLACEMENT_ENUM = ["aside"];
|
|
4116
4145
|
var SITE_INSIGHTS_EVENT_TYPE_ENUM = ["page_view", "search_open", "search_type_query", "search_open_result", "page_post_feedback", "page_post_feedback_comment", "ask_question", "ask_view", "ask_rate_response", "link_click", "api_client_open", "api_client_request", "ad_click", "ad_display", "trademark_click"];
|
|
4117
4146
|
var SITE_INSIGHTS_VISITOR_BROWSER_ENUM = ["chrome", "firefox", "safari", "edge", "ie", "opera", "unknown"];
|
|
@@ -4254,6 +4283,7 @@ var GitBookAPI = class extends Api {
|
|
|
4254
4283
|
CONTENT_REFERENCE_RELATION_ENUM,
|
|
4255
4284
|
CONTENT_REFERENCE_STATUS_ENUM,
|
|
4256
4285
|
CONTENT_VISIBILITY_ENUM,
|
|
4286
|
+
CONVERSATION_ISSUE_IMPACT_ENUM,
|
|
4257
4287
|
CUSTOMIZATION_AIMODE_ENUM,
|
|
4258
4288
|
CUSTOMIZATION_ANNOUNCEMENT_MESSAGE_MAX_LENGTH,
|
|
4259
4289
|
CUSTOMIZATION_ANNOUNCEMENT_MESSAGE_MIN_LENGTH,
|
|
@@ -4286,6 +4316,7 @@ var GitBookAPI = class extends Api {
|
|
|
4286
4316
|
ContentReferenceStatus,
|
|
4287
4317
|
ContentType,
|
|
4288
4318
|
ContentVisibility,
|
|
4319
|
+
ConversationIssueImpact,
|
|
4289
4320
|
CustomHostnameDnsStatus,
|
|
4290
4321
|
CustomHostnameErrorStatus,
|
|
4291
4322
|
CustomHostnameSslStatus,
|
|
@@ -4374,6 +4405,8 @@ var GitBookAPI = class extends Api {
|
|
|
4374
4405
|
REVISION_PAGE_LAYOUT_OPTIONS_COVER_SIZE_ENUM,
|
|
4375
4406
|
REVISION_PAGE_LAYOUT_OPTIONS_WIDTH_ENUM,
|
|
4376
4407
|
REVISION_PAGE_LAYOUT_PRESET_ENUM,
|
|
4408
|
+
REVISION_PAGE_SLUG_MAX_LENGTH,
|
|
4409
|
+
REVISION_PAGE_SLUG_MIN_LENGTH,
|
|
4377
4410
|
REVISION_PAGE_TYPE_ENUM,
|
|
4378
4411
|
REVISION_SEMANTIC_CHANGE_TYPE_ENUM,
|
|
4379
4412
|
RevisionPageLayoutOptionsCoverSize,
|