@gitbook/api 0.147.0 → 0.149.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 +96 -162
- package/dist/constants.d.ts +1 -1
- package/dist/index.cjs +56 -49
- package/dist/index.js +54 -47
- package/package.json +1 -1
- package/spec/openapi.json +360 -455
- package/spec/openapi.yaml +214 -297
package/dist/client.d.ts
CHANGED
|
@@ -1277,7 +1277,7 @@ export interface DocumentBlockStepperStep {
|
|
|
1277
1277
|
object: 'block';
|
|
1278
1278
|
type: 'stepper-step';
|
|
1279
1279
|
key?: string;
|
|
1280
|
-
nodes: (DocumentBlocksEssentials | DocumentBlockContentRef | DocumentBlockCode | DocumentBlockEmbed | DocumentBlockFile | DocumentBlockImages | DocumentBlockDrawing | DocumentBlockHint | DocumentBlockQuote | DocumentBlockMath | DocumentBlockIntegration)[];
|
|
1280
|
+
nodes: (DocumentBlocksEssentials | DocumentBlockContentRef | DocumentBlockCode | DocumentBlockEmbed | DocumentBlockFile | DocumentBlockImages | DocumentBlockDrawing | DocumentBlockHint | DocumentBlockQuote | DocumentBlockMath | DocumentBlockIntegration | DocumentBlockExpandable)[];
|
|
1281
1281
|
data: {
|
|
1282
1282
|
icon?: string;
|
|
1283
1283
|
};
|
|
@@ -1295,7 +1295,7 @@ export interface DocumentBlockColumn {
|
|
|
1295
1295
|
object: 'block';
|
|
1296
1296
|
type: 'column';
|
|
1297
1297
|
key?: string;
|
|
1298
|
-
nodes: (DocumentBlocksEssentials | DocumentBlockImages | DocumentBlockCode | DocumentBlockHint | DocumentBlockContentRef | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockFile | DocumentBlockIntegration | DocumentBlockMath | DocumentBlockQuote | DocumentBlockTable)[];
|
|
1298
|
+
nodes: (DocumentBlocksEssentials | DocumentBlockImages | DocumentBlockCode | DocumentBlockHint | DocumentBlockContentRef | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockFile | DocumentBlockIntegration | DocumentBlockMath | DocumentBlockQuote | DocumentBlockTable | DocumentBlockExpandable)[];
|
|
1299
1299
|
isVoid?: false;
|
|
1300
1300
|
data: {
|
|
1301
1301
|
width?: Length;
|
|
@@ -1312,7 +1312,29 @@ export interface DocumentBlockColumns {
|
|
|
1312
1312
|
nodes: DocumentBlockColumn[];
|
|
1313
1313
|
isVoid: false;
|
|
1314
1314
|
}
|
|
1315
|
-
export
|
|
1315
|
+
export interface DocumentBlockUpdate {
|
|
1316
|
+
object: 'block';
|
|
1317
|
+
type: 'update';
|
|
1318
|
+
key?: string;
|
|
1319
|
+
nodes: (DocumentBlocksEssentials | DocumentBlockContentRef | DocumentBlockCode | DocumentBlockEmbed | DocumentBlockFile | DocumentBlockImages | DocumentBlockDrawing | DocumentBlockHint | DocumentBlockQuote | DocumentBlockMath | DocumentBlockIntegration | DocumentBlockTabs | DocumentBlockExpandable)[];
|
|
1320
|
+
data: {
|
|
1321
|
+
date: Timestamp;
|
|
1322
|
+
tags?: string[];
|
|
1323
|
+
};
|
|
1324
|
+
isVoid?: false;
|
|
1325
|
+
}
|
|
1326
|
+
export interface DocumentBlockUpdates {
|
|
1327
|
+
object: 'block';
|
|
1328
|
+
type: 'updates';
|
|
1329
|
+
key?: string;
|
|
1330
|
+
nodes: DocumentBlockUpdate[];
|
|
1331
|
+
isVoid?: false;
|
|
1332
|
+
data?: {
|
|
1333
|
+
/** @default "full" */
|
|
1334
|
+
format?: 'numeric' | 'full';
|
|
1335
|
+
};
|
|
1336
|
+
}
|
|
1337
|
+
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;
|
|
1316
1338
|
export interface DocumentInlineMention {
|
|
1317
1339
|
object: 'inline';
|
|
1318
1340
|
type: 'mention';
|
|
@@ -1383,6 +1405,8 @@ export type RevisionPageDocument = RevisionPageBase & Document & {
|
|
|
1383
1405
|
* @default false
|
|
1384
1406
|
*/
|
|
1385
1407
|
noRobotsIndex?: boolean;
|
|
1408
|
+
/** Meta links associated with the page. */
|
|
1409
|
+
metaLinks?: RevisionPageMetaLinks;
|
|
1386
1410
|
} & ({
|
|
1387
1411
|
computed: ComputedContentSourceDocument;
|
|
1388
1412
|
/** Seed to use for the generation of IDs. */
|
|
@@ -1550,6 +1574,11 @@ export interface RevisionPageDocumentCover {
|
|
|
1550
1574
|
}
|
|
1551
1575
|
export type VariableValue = string | number | boolean;
|
|
1552
1576
|
export type Variables = Record<string, VariableValue>;
|
|
1577
|
+
export type RevisionPageMetaLinkTarget = ContentRefPage | ContentRefURL;
|
|
1578
|
+
export interface RevisionPageMetaLinks {
|
|
1579
|
+
canonical?: RevisionPageMetaLinkTarget;
|
|
1580
|
+
alternates?: RevisionPageMetaLinkTarget[];
|
|
1581
|
+
}
|
|
1553
1582
|
/** Parameters for an OpenAPI computed document */
|
|
1554
1583
|
export type ComputedContentSourceDocumentOpenAPI = ComputedContentSourceOpenAPIBase & {
|
|
1555
1584
|
props: {
|
|
@@ -1939,11 +1968,6 @@ export interface Organization {
|
|
|
1939
1968
|
/** A short description giving context on the reason for the block. */
|
|
1940
1969
|
reason: BlockReason;
|
|
1941
1970
|
};
|
|
1942
|
-
/**
|
|
1943
|
-
* Deprecated. Always true. All organizations are on new trials.
|
|
1944
|
-
* @deprecated
|
|
1945
|
-
*/
|
|
1946
|
-
internal_isOnNewTrial?: true;
|
|
1947
1971
|
internal_billingMigration?: {
|
|
1948
1972
|
/** When we will upgrade the organization onto new pricing, if they haven't already. */
|
|
1949
1973
|
deadline?: Timestamp;
|
|
@@ -4590,16 +4614,6 @@ export interface ConversationsIssuesCluster {
|
|
|
4590
4614
|
issues: number;
|
|
4591
4615
|
/** The number of conversations in the conversations issues cluster */
|
|
4592
4616
|
conversations: number;
|
|
4593
|
-
/** The number of tasks in the conversations issues cluster */
|
|
4594
|
-
tasksTotal: number;
|
|
4595
|
-
/** The number of tasks in the backlog in the conversations issues cluster */
|
|
4596
|
-
tasksBacklog: number;
|
|
4597
|
-
/** The number of tasks done in the conversations issues cluster */
|
|
4598
|
-
tasksStarted: number;
|
|
4599
|
-
/** The number of tasks completed in the conversations issues cluster */
|
|
4600
|
-
tasksCompleted: number;
|
|
4601
|
-
/** The number of tasks canceled in the conversations issues cluster */
|
|
4602
|
-
tasksCancelled: number;
|
|
4603
4617
|
};
|
|
4604
4618
|
/** URLs associated with the conversations issues cluster */
|
|
4605
4619
|
urls: {
|
|
@@ -4608,11 +4622,6 @@ export interface ConversationsIssuesCluster {
|
|
|
4608
4622
|
* @format uri
|
|
4609
4623
|
*/
|
|
4610
4624
|
location: string;
|
|
4611
|
-
/**
|
|
4612
|
-
* URL of the conversations issues cluster in the application
|
|
4613
|
-
* @format uri
|
|
4614
|
-
*/
|
|
4615
|
-
app: string;
|
|
4616
4625
|
};
|
|
4617
4626
|
}
|
|
4618
4627
|
/** Integration source */
|
|
@@ -4695,24 +4704,16 @@ export interface ConversationIssue {
|
|
|
4695
4704
|
};
|
|
4696
4705
|
}
|
|
4697
4706
|
/** State and settings of the agent */
|
|
4698
|
-
export interface
|
|
4707
|
+
export interface AgentSetupState {
|
|
4699
4708
|
/** The email address of the agent. Emails can be forwarded to it to ingest conversations. */
|
|
4700
4709
|
email: string;
|
|
4701
4710
|
/** The stats of the agent. */
|
|
4702
4711
|
stats: {
|
|
4703
|
-
/** The number of tasks in the backlog. */
|
|
4704
|
-
backlogTasks: number;
|
|
4705
|
-
/** The number of tasks in progress. */
|
|
4706
|
-
startedTasks: number;
|
|
4707
|
-
/** The number of tasks that have been completed. */
|
|
4708
|
-
completedTasks: number;
|
|
4709
|
-
/** The number of tasks that have been canceled. */
|
|
4710
|
-
canceledTasks: number;
|
|
4711
4712
|
/** The number of conversations the agent has indexed. */
|
|
4712
4713
|
conversations: number;
|
|
4713
4714
|
/** The number of issues the agent has indexed. */
|
|
4714
4715
|
issues: number;
|
|
4715
|
-
/** The number of
|
|
4716
|
+
/** The number of issue clusters the agent has indexed. */
|
|
4716
4717
|
issuesClusters: number;
|
|
4717
4718
|
sources: Record<string, number>;
|
|
4718
4719
|
};
|
|
@@ -4732,46 +4733,6 @@ export interface OrganizationAgentInstructions {
|
|
|
4732
4733
|
location: string;
|
|
4733
4734
|
};
|
|
4734
4735
|
}
|
|
4735
|
-
/** The status of the agent task. - `backlog`: The task has not been started yet, a human should review its specification. - `started`: The task is open, a change request is associated with it. - `completed`: The task is completed. - `canceled`: The task has been canceled by a human. */
|
|
4736
|
-
export declare enum AgentTaskStatus {
|
|
4737
|
-
Backlog = "backlog",
|
|
4738
|
-
Started = "started",
|
|
4739
|
-
Completed = "completed",
|
|
4740
|
-
Canceled = "canceled"
|
|
4741
|
-
}
|
|
4742
|
-
export interface AgentTask {
|
|
4743
|
-
object: 'agent-task';
|
|
4744
|
-
/** The ID of the agent task */
|
|
4745
|
-
id: string;
|
|
4746
|
-
/** The title of the agent task */
|
|
4747
|
-
title: string;
|
|
4748
|
-
/** The description of the agent task */
|
|
4749
|
-
description: string;
|
|
4750
|
-
instructions: JSONDocument;
|
|
4751
|
-
/** The status of the agent task. - `backlog`: The task has not been started yet, a human should review its specification. - `started`: The task is open, a change request is associated with it. - `completed`: The task is completed. - `canceled`: The task has been canceled by a human. */
|
|
4752
|
-
status: AgentTaskStatus;
|
|
4753
|
-
createdAt: Timestamp;
|
|
4754
|
-
updatedAt: Timestamp;
|
|
4755
|
-
/** ID of the cluster the agent task is associated with. */
|
|
4756
|
-
cluster?: string;
|
|
4757
|
-
/** ID of the space the agent task will act on. */
|
|
4758
|
-
space: string;
|
|
4759
|
-
/** ID of the change request the agent task is associated with. */
|
|
4760
|
-
changeRequest?: string;
|
|
4761
|
-
/** URLs associated with the agent task */
|
|
4762
|
-
urls: {
|
|
4763
|
-
/**
|
|
4764
|
-
* URL of the agent task in the API
|
|
4765
|
-
* @format uri
|
|
4766
|
-
*/
|
|
4767
|
-
location: string;
|
|
4768
|
-
/**
|
|
4769
|
-
* URL of the agent task in the application
|
|
4770
|
-
* @format uri
|
|
4771
|
-
*/
|
|
4772
|
-
app: string;
|
|
4773
|
-
};
|
|
4774
|
-
}
|
|
4775
4736
|
export declare enum TranslationStatus {
|
|
4776
4737
|
Pending = "pending",
|
|
4777
4738
|
Running = "running",
|
|
@@ -4941,6 +4902,10 @@ export type ContentImportSource = {
|
|
|
4941
4902
|
url: URL;
|
|
4942
4903
|
} | {
|
|
4943
4904
|
type: 'file';
|
|
4905
|
+
/**
|
|
4906
|
+
* Files to import
|
|
4907
|
+
* @maxItems 50
|
|
4908
|
+
*/
|
|
4944
4909
|
files: string[];
|
|
4945
4910
|
};
|
|
4946
4911
|
export interface ContentImportTarget {
|
|
@@ -4960,12 +4925,16 @@ export interface ContentImportRun {
|
|
|
4960
4925
|
completedAt?: Timestamp;
|
|
4961
4926
|
/** Status of the import */
|
|
4962
4927
|
status: 'pending' | 'in-progress' | 'completed' | 'failed' | 'cancelled';
|
|
4963
|
-
/**
|
|
4928
|
+
/** Pages included in the import */
|
|
4964
4929
|
pages?: {
|
|
4965
4930
|
/** ID of page */
|
|
4966
4931
|
id: string;
|
|
4967
4932
|
/** Source URL where the page has been imported from */
|
|
4968
4933
|
sourceURL?: string;
|
|
4934
|
+
/** Type of page */
|
|
4935
|
+
type: 'page' | 'folder';
|
|
4936
|
+
/** Status of the page */
|
|
4937
|
+
status: 'complete' | 'pending';
|
|
4969
4938
|
}[];
|
|
4970
4939
|
}
|
|
4971
4940
|
/** A response to a request to preview the publishing of a site. It indicates whether the operation can proceed immediately, requires checkout, if a trial is available or if a trial extension is available. */
|
|
@@ -6977,6 +6946,15 @@ export interface ContentComputeRevisionEventResponse {
|
|
|
6977
6946
|
pages?: InputPage[];
|
|
6978
6947
|
files?: InputFile[];
|
|
6979
6948
|
}
|
|
6949
|
+
export declare enum BillingStatus {
|
|
6950
|
+
Trialing = "trialing",
|
|
6951
|
+
Active = "active",
|
|
6952
|
+
PastDue = "past_due",
|
|
6953
|
+
IncompleteExpired = "incomplete_expired",
|
|
6954
|
+
Canceled = "canceled",
|
|
6955
|
+
Unpaid = "unpaid",
|
|
6956
|
+
Paused = "paused"
|
|
6957
|
+
}
|
|
6980
6958
|
export declare enum APIIntegrationScope {
|
|
6981
6959
|
IntegrationRead = "integration:read",
|
|
6982
6960
|
IntegrationUpdate = "integration:update",
|
|
@@ -7327,26 +7305,12 @@ export interface TranslationRunChannel {
|
|
|
7327
7305
|
channel: 'translation-run';
|
|
7328
7306
|
translation: string;
|
|
7329
7307
|
}
|
|
7330
|
-
/** Subscription channel for an agent task. */
|
|
7331
|
-
export interface AgentTaskChannel {
|
|
7332
|
-
channel: 'agent-task';
|
|
7333
|
-
/** The ID of the organization. */
|
|
7334
|
-
organization: string;
|
|
7335
|
-
/** The ID of the agent task. */
|
|
7336
|
-
agentTask: string;
|
|
7337
|
-
}
|
|
7338
|
-
/** Subscription channel for agent tasks. */
|
|
7339
|
-
export interface AgentTasksChannel {
|
|
7340
|
-
channel: 'agent-tasks';
|
|
7341
|
-
/** The ID of the organization. */
|
|
7342
|
-
organization: string;
|
|
7343
|
-
}
|
|
7344
7308
|
export interface ImportRunChannel {
|
|
7345
7309
|
channel: 'import-run';
|
|
7346
7310
|
runId: string;
|
|
7347
7311
|
}
|
|
7348
7312
|
/** Channel to subscribe to for realtime updates. */
|
|
7349
|
-
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 |
|
|
7313
|
+
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;
|
|
7350
7314
|
export interface TranslationRunChannelData {
|
|
7351
7315
|
channel: 'translation-run';
|
|
7352
7316
|
data: {
|
|
@@ -7505,6 +7469,7 @@ export type SpaceVisitorAuthIntegrationBackend = VisitorAuthIntegrationBackend;
|
|
|
7505
7469
|
export type UserPermissions = Index;
|
|
7506
7470
|
export type SiteRedirectDestinationSpace = SiteRedirectDestinationSiteSpace;
|
|
7507
7471
|
export type OpenAPISpecSourceURL = URL;
|
|
7472
|
+
export type AgentsSetupState = AgentSetupState;
|
|
7508
7473
|
import { EventIterator } from 'event-iterator';
|
|
7509
7474
|
export type QueryParamsType = Record<string | number, any>;
|
|
7510
7475
|
export type ResponseFormat = keyof Omit<Body, 'body' | 'bodyUsed'>;
|
|
@@ -8223,6 +8188,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8223
8188
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
8224
8189
|
items: ContentLocation[];
|
|
8225
8190
|
}, any>>;
|
|
8191
|
+
/**
|
|
8192
|
+
* No description
|
|
8193
|
+
*
|
|
8194
|
+
* @tags space-content
|
|
8195
|
+
* @name ListSpacePageMetaLinks
|
|
8196
|
+
* @summary List all meta links for a space page
|
|
8197
|
+
* @request GET:/spaces/{spaceId}/content/page/{pageId}/meta-links
|
|
8198
|
+
* @secure
|
|
8199
|
+
*/
|
|
8200
|
+
listSpacePageMetaLinks: (spaceId: string, pageId: string, params?: RequestParams) => Promise<HttpResponse<RevisionPageMetaLinks, any>>;
|
|
8226
8201
|
/**
|
|
8227
8202
|
* No description
|
|
8228
8203
|
*
|
|
@@ -8335,13 +8310,10 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8335
8310
|
createChangeRequest: (spaceId: string, data: {
|
|
8336
8311
|
/** Subject of the change-request */
|
|
8337
8312
|
subject?: string;
|
|
8338
|
-
} & (Record<string, any> | ({
|
|
8339
|
-
/** ID of the agent task to implement */
|
|
8340
|
-
agentTaskId: string;
|
|
8341
|
-
} | {
|
|
8342
8313
|
/** Template to apply to the change request */
|
|
8343
|
-
template
|
|
8344
|
-
|
|
8314
|
+
template?: ApplySpaceTemplate;
|
|
8315
|
+
[key: string]: any;
|
|
8316
|
+
}, params?: RequestParams) => Promise<HttpResponse<ChangeRequest, any>>;
|
|
8345
8317
|
/**
|
|
8346
8318
|
* No description
|
|
8347
8319
|
*
|
|
@@ -8945,6 +8917,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8945
8917
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
8946
8918
|
items: ContentLocation[];
|
|
8947
8919
|
}, any>>;
|
|
8920
|
+
/**
|
|
8921
|
+
* No description
|
|
8922
|
+
*
|
|
8923
|
+
* @tags change-request-content
|
|
8924
|
+
* @name ListChangeRequestPageMetaLinks
|
|
8925
|
+
* @summary List all meta links of a change request page
|
|
8926
|
+
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}/meta-links
|
|
8927
|
+
* @secure
|
|
8928
|
+
*/
|
|
8929
|
+
listChangeRequestPageMetaLinks: (spaceId: string, changeRequestId: string, pageId: string, params?: RequestParams) => Promise<HttpResponse<RevisionPageMetaLinks, any>>;
|
|
8948
8930
|
/**
|
|
8949
8931
|
* No description
|
|
8950
8932
|
*
|
|
@@ -9209,6 +9191,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9209
9191
|
*/
|
|
9210
9192
|
computed?: boolean;
|
|
9211
9193
|
}, params?: RequestParams) => Promise<HttpResponse<RevisionPageDocument | RevisionPageGroup, any>>;
|
|
9194
|
+
/**
|
|
9195
|
+
* No description
|
|
9196
|
+
*
|
|
9197
|
+
* @tags space-content
|
|
9198
|
+
* @name ListRevisionPageMetaLinks
|
|
9199
|
+
* @summary List all meta links for a revision page
|
|
9200
|
+
* @request GET:/spaces/{spaceId}/revisions/{revisionId}/page/{pageId}/meta-links
|
|
9201
|
+
* @secure
|
|
9202
|
+
*/
|
|
9203
|
+
listRevisionPageMetaLinks: (spaceId: string, revisionId: string, pageId: string, params?: RequestParams) => Promise<HttpResponse<RevisionPageMetaLinks, any>>;
|
|
9212
9204
|
/**
|
|
9213
9205
|
* No description
|
|
9214
9206
|
*
|
|
@@ -11495,9 +11487,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11495
11487
|
*/
|
|
11496
11488
|
order?: "asc" | "desc";
|
|
11497
11489
|
/** @default "updatedAt" */
|
|
11498
|
-
orderBy?: "updatedAt" | "issues" | "conversations"
|
|
11499
|
-
/** Filter by status */
|
|
11500
|
-
status?: "pending" | "analysing";
|
|
11490
|
+
orderBy?: "updatedAt" | "issues" | "conversations";
|
|
11501
11491
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
11502
11492
|
items: ConversationsIssuesCluster[];
|
|
11503
11493
|
}, {
|
|
@@ -11626,7 +11616,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11626
11616
|
* @request GET:/orgs/{organizationId}/agents-setup
|
|
11627
11617
|
* @secure
|
|
11628
11618
|
*/
|
|
11629
|
-
getAgentSetupState: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<
|
|
11619
|
+
getAgentSetupState: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<AgentSetupState, any>>;
|
|
11630
11620
|
/**
|
|
11631
11621
|
* No description
|
|
11632
11622
|
*
|
|
@@ -11650,67 +11640,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11650
11640
|
/** Document describing the Docs agent instructions. */
|
|
11651
11641
|
instructions: JSONDocument;
|
|
11652
11642
|
}, params?: RequestParams) => Promise<HttpResponse<OrganizationAgentInstructions, any>>;
|
|
11653
|
-
/**
|
|
11654
|
-
* No description
|
|
11655
|
-
*
|
|
11656
|
-
* @tags agents
|
|
11657
|
-
* @name ListAgentTasks
|
|
11658
|
-
* @summary List agent tasks
|
|
11659
|
-
* @request GET:/orgs/{organizationId}/agent-tasks
|
|
11660
|
-
* @secure
|
|
11661
|
-
*/
|
|
11662
|
-
listAgentTasks: (organizationId: string, query?: {
|
|
11663
|
-
/** Identifier of the page results to fetch. */
|
|
11664
|
-
page?: string;
|
|
11665
|
-
/**
|
|
11666
|
-
* The number of results per page
|
|
11667
|
-
* @min 0
|
|
11668
|
-
* @max 1000
|
|
11669
|
-
*/
|
|
11670
|
-
limit?: number;
|
|
11671
|
-
/** The ID of the conversations issues cluster to filter the agent tasks by */
|
|
11672
|
-
cluster?: string;
|
|
11673
|
-
/** The ID of the space to filter the agent tasks by */
|
|
11674
|
-
space?: string;
|
|
11675
|
-
/** The statuses of the agent tasks to filter by */
|
|
11676
|
-
status?: AgentTaskStatus[];
|
|
11677
|
-
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
11678
|
-
items: AgentTask[];
|
|
11679
|
-
}, {
|
|
11680
|
-
error: {
|
|
11681
|
-
/** @format int32 */
|
|
11682
|
-
code: 404;
|
|
11683
|
-
message: string;
|
|
11684
|
-
};
|
|
11685
|
-
}>>;
|
|
11686
|
-
/**
|
|
11687
|
-
* No description
|
|
11688
|
-
*
|
|
11689
|
-
* @tags agents
|
|
11690
|
-
* @name GetAgentTask
|
|
11691
|
-
* @summary Get an agent task by its identifier
|
|
11692
|
-
* @request GET:/orgs/{organizationId}/agent-tasks/{agentTaskId}
|
|
11693
|
-
* @secure
|
|
11694
|
-
*/
|
|
11695
|
-
getAgentTask: (organizationId: string, agentTaskId: string, params?: RequestParams) => Promise<HttpResponse<AgentTask, {
|
|
11696
|
-
error: {
|
|
11697
|
-
/** @format int32 */
|
|
11698
|
-
code: 404;
|
|
11699
|
-
message: string;
|
|
11700
|
-
};
|
|
11701
|
-
}>>;
|
|
11702
|
-
/**
|
|
11703
|
-
* No description
|
|
11704
|
-
*
|
|
11705
|
-
* @tags agents
|
|
11706
|
-
* @name UpdateAgentTask
|
|
11707
|
-
* @summary Update an agent task by its identifier
|
|
11708
|
-
* @request PATCH:/orgs/{organizationId}/agent-tasks/{agentTaskId}
|
|
11709
|
-
* @secure
|
|
11710
|
-
*/
|
|
11711
|
-
updateAgentTask: (organizationId: string, agentTaskId: string, data: {
|
|
11712
|
-
status: "backlog" | "started" | "canceled";
|
|
11713
|
-
}, params?: RequestParams) => Promise<HttpResponse<AgentTask, any>>;
|
|
11714
11643
|
/**
|
|
11715
11644
|
* No description
|
|
11716
11645
|
*
|
|
@@ -13022,7 +12951,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13022
12951
|
/**
|
|
13023
12952
|
* @description Generate an AI response in a conversation.
|
|
13024
12953
|
*
|
|
13025
|
-
* @tags
|
|
12954
|
+
* @tags site-ai
|
|
13026
12955
|
* @name StreamAiResponseInSite
|
|
13027
12956
|
* @summary Generate an AI response in a site
|
|
13028
12957
|
* @request POST:/orgs/{organizationId}/sites/{siteId}/ai/response
|
|
@@ -13042,7 +12971,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13042
12971
|
/**
|
|
13043
12972
|
* @description Experimental operation to get an existing AI response in a site.
|
|
13044
12973
|
*
|
|
13045
|
-
* @tags
|
|
12974
|
+
* @tags site-ai
|
|
13046
12975
|
* @name StreamExistingAiResponseInSite
|
|
13047
12976
|
* @summary Get an existing AI response in a site
|
|
13048
12977
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/ai/response/{responseId}
|
|
@@ -13274,6 +13203,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13274
13203
|
startImportRun: (organizationId: string, data: {
|
|
13275
13204
|
source: ContentImportSource;
|
|
13276
13205
|
target: ContentImportTarget;
|
|
13206
|
+
/**
|
|
13207
|
+
* Enhance the imported content with AI
|
|
13208
|
+
* @default true
|
|
13209
|
+
*/
|
|
13210
|
+
enhance?: boolean;
|
|
13277
13211
|
}, params?: RequestParams) => Promise<HttpResponse<ContentImportRun, {
|
|
13278
13212
|
error: {
|
|
13279
13213
|
/** @format int32 */
|
package/dist/constants.d.ts
CHANGED
|
@@ -94,7 +94,6 @@ export declare const SAMLPROVIDER_LABEL_MIN_LENGTH = 1;
|
|
|
94
94
|
export declare const SAMLPROVIDER_ENTITY_ID_MAX_LENGTH = 1024;
|
|
95
95
|
export declare const SAMLPROVIDER_CERTIFICATE_MAX_LENGTH = 10000;
|
|
96
96
|
export declare const SAMLPROVIDER_STATUS_ENUM: ["active", "pending"];
|
|
97
|
-
export declare const AGENT_TASK_STATUS_ENUM: ["backlog", "started", "completed", "canceled"];
|
|
98
97
|
export declare const TRANSLATION_STATUS_ENUM: ["pending", "running", "completed"];
|
|
99
98
|
export declare const STORAGE_UPLOAD_KIND_ENUM: ["customization_font", "import_file"];
|
|
100
99
|
export declare const FONT_FAMILY_MAX_LENGTH = 50;
|
|
@@ -152,6 +151,7 @@ export declare const REVISION_SEMANTIC_CHANGE_TYPE_ENUM: ["page_created", "page_
|
|
|
152
151
|
export declare const GIT_SYNC_OPERATION_STATE_ENUM: ["running", "failure", "success"];
|
|
153
152
|
export declare const GIT_SYNC_OPERATION_DIRECTION_ENUM: ["export", "import"];
|
|
154
153
|
export declare const GIT_SYNC_OPERATION_STAGE_ENUM: ["repo_fetch", "config_check", "content_process", "finalize"];
|
|
154
|
+
export declare const BILLING_STATUS_ENUM: ["trialing", "active", "past_due", "incomplete_expired", "canceled", "unpaid", "paused"];
|
|
155
155
|
export declare const APIINTEGRATION_SCOPE_ENUM: ["integration:read", "integration:update", "integration:installation:read", "integration:installation:update"];
|
|
156
156
|
export declare const SITE_ADS_STATUS_ENUM: ["pending", "in-review", "live", "rejected", "disabled"];
|
|
157
157
|
export declare const AIMESSAGE_ROLE_ENUM: ["user", "assistant", "developer"];
|