@gitbook/api 0.116.0 → 0.117.1
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 +420 -52
- package/dist/index.cjs +84 -9
- package/dist/index.js +82 -9
- package/package.json +1 -1
- package/spec/openapi.json +1194 -196
- package/spec/openapi.yaml +766 -108
package/dist/client.d.ts
CHANGED
|
@@ -825,7 +825,7 @@ export interface DocumentBlockDivider {
|
|
|
825
825
|
isVoid: true;
|
|
826
826
|
data: object;
|
|
827
827
|
}
|
|
828
|
-
export type
|
|
828
|
+
export type Length = number | {
|
|
829
829
|
unit: string;
|
|
830
830
|
value: number;
|
|
831
831
|
};
|
|
@@ -836,8 +836,8 @@ export interface DocumentBlockImage {
|
|
|
836
836
|
data: {
|
|
837
837
|
ref: ContentRefURL | ContentRefFile;
|
|
838
838
|
refDark?: ContentRefURL | ContentRefFile;
|
|
839
|
-
width?:
|
|
840
|
-
height?:
|
|
839
|
+
width?: Length;
|
|
840
|
+
height?: Length;
|
|
841
841
|
alt?: string;
|
|
842
842
|
};
|
|
843
843
|
fragments: (DocumentFragment & {
|
|
@@ -1105,8 +1105,11 @@ export interface DocumentBlockColumn {
|
|
|
1105
1105
|
object: 'block';
|
|
1106
1106
|
type: 'column';
|
|
1107
1107
|
key?: string;
|
|
1108
|
-
nodes: DocumentBlocksEssentials[];
|
|
1108
|
+
nodes: (DocumentBlocksEssentials | DocumentBlockImages)[];
|
|
1109
1109
|
isVoid?: false;
|
|
1110
|
+
data: {
|
|
1111
|
+
width?: Length;
|
|
1112
|
+
};
|
|
1110
1113
|
}
|
|
1111
1114
|
export interface DocumentBlockColumns {
|
|
1112
1115
|
object: 'block';
|
|
@@ -1750,6 +1753,8 @@ export interface Organization {
|
|
|
1750
1753
|
createContent: boolean;
|
|
1751
1754
|
/** Can the user create new OpenAPI specifications. */
|
|
1752
1755
|
createOpenAPISpec: boolean;
|
|
1756
|
+
/** Can the user ingest conversations in the organization. */
|
|
1757
|
+
ingestConversations: boolean;
|
|
1753
1758
|
/** Can the user view the billing details of the organization. */
|
|
1754
1759
|
viewBilling: boolean;
|
|
1755
1760
|
/** Can the user list the members of the organization. */
|
|
@@ -1979,10 +1984,6 @@ export interface ContentReferenceUsage {
|
|
|
1979
1984
|
/** Pages locations where a link to the target is found. */
|
|
1980
1985
|
locationReferences: ContentLocation[];
|
|
1981
1986
|
}
|
|
1982
|
-
export interface CreateChangeRequest {
|
|
1983
|
-
/** Subject of the change-request */
|
|
1984
|
-
subject?: string;
|
|
1985
|
-
}
|
|
1986
1987
|
/** Status of a change request review. */
|
|
1987
1988
|
export declare enum ChangeRequestReviewStatus {
|
|
1988
1989
|
ChangesRequested = "changes-requested",
|
|
@@ -2402,7 +2403,8 @@ export declare enum IntegrationScope {
|
|
|
2402
2403
|
SiteAdaptiveRead = "site:adaptive:read",
|
|
2403
2404
|
SiteAdaptiveWrite = "site:adaptive:write",
|
|
2404
2405
|
OpenapiRead = "openapi:read",
|
|
2405
|
-
OpenapiWrite = "openapi:write"
|
|
2406
|
+
OpenapiWrite = "openapi:write",
|
|
2407
|
+
ConversationsIngest = "conversations:ingest"
|
|
2406
2408
|
}
|
|
2407
2409
|
/** Permissions that should be granted to the integration */
|
|
2408
2410
|
export type IntegrationScopes = IntegrationScope[];
|
|
@@ -2674,6 +2676,11 @@ export interface UpdateCustomFieldValues {
|
|
|
2674
2676
|
/** Secrets stored on the integration and passed at runtime. */
|
|
2675
2677
|
export type IntegrationSecrets = Record<string, string>;
|
|
2676
2678
|
export interface PublishIntegration {
|
|
2679
|
+
/**
|
|
2680
|
+
* The runtime version to use for the integration. If not specified, the integration will use the default runtime.
|
|
2681
|
+
* @default "v1"
|
|
2682
|
+
*/
|
|
2683
|
+
runtime?: 'v1' | 'v2';
|
|
2677
2684
|
/**
|
|
2678
2685
|
* Base64 content of the icon
|
|
2679
2686
|
* @format byte
|
|
@@ -3198,6 +3205,15 @@ export type SiteAds = {
|
|
|
3198
3205
|
/** The ad network zone ID */
|
|
3199
3206
|
zoneId: string;
|
|
3200
3207
|
};
|
|
3208
|
+
/**
|
|
3209
|
+
* Defines if the site will be included in the agent's context.
|
|
3210
|
+
* - `excluded` means that the agent will not be able to access the site.
|
|
3211
|
+
* - `included` means that the agent will be able to access the site.
|
|
3212
|
+
*/
|
|
3213
|
+
export declare enum SiteAgentsContext {
|
|
3214
|
+
Excluded = "excluded",
|
|
3215
|
+
Included = "included"
|
|
3216
|
+
}
|
|
3201
3217
|
/** A list of all premium customizations. */
|
|
3202
3218
|
export declare enum SiteCustomizationFeature {
|
|
3203
3219
|
HeaderLogo = "header-logo",
|
|
@@ -3256,6 +3272,12 @@ export interface Site {
|
|
|
3256
3272
|
createdAt: string;
|
|
3257
3273
|
adaptiveContent?: SiteAdaptiveContent;
|
|
3258
3274
|
ads?: SiteAds;
|
|
3275
|
+
/**
|
|
3276
|
+
* Defines if the site will be included in the agent's context.
|
|
3277
|
+
* - `excluded` means that the agent will not be able to access the site.
|
|
3278
|
+
* - `included` means that the agent will be able to access the site.
|
|
3279
|
+
*/
|
|
3280
|
+
agentsContext: SiteAgentsContext;
|
|
3259
3281
|
/** A list of all premium features enabled on this site. For each feature we list the plan they belong to and whether the feature is frozen. A frozen feature is still enabled but cannot be changed or modified. */
|
|
3260
3282
|
features: SiteFeature[];
|
|
3261
3283
|
/** URLs associated with the object */
|
|
@@ -4267,6 +4289,200 @@ export interface OpenAPISpecContent {
|
|
|
4267
4289
|
filesystem: object;
|
|
4268
4290
|
url: URL;
|
|
4269
4291
|
}
|
|
4292
|
+
export interface ConversationsIssuesCluster {
|
|
4293
|
+
object: 'issues-cluster';
|
|
4294
|
+
/** The ID of the conversations issues cluster */
|
|
4295
|
+
id: string;
|
|
4296
|
+
/** The label of the conversations issues cluster */
|
|
4297
|
+
label: string;
|
|
4298
|
+
createdAt: Timestamp;
|
|
4299
|
+
updatedAt: Timestamp;
|
|
4300
|
+
/** Name of the icon */
|
|
4301
|
+
icon: Icon;
|
|
4302
|
+
/** The summary of the conversations issues cluster */
|
|
4303
|
+
summary: string;
|
|
4304
|
+
/**
|
|
4305
|
+
* The weekly pulse of the conversations issues cluster for the past 3 months
|
|
4306
|
+
* @maxItems 13
|
|
4307
|
+
* @minItems 13
|
|
4308
|
+
*/
|
|
4309
|
+
weeklyPulse: number[];
|
|
4310
|
+
sources: Record<string, number>;
|
|
4311
|
+
/** The stats of the conversations issues cluster */
|
|
4312
|
+
stats: {
|
|
4313
|
+
/** The number of issues in the conversations issues cluster */
|
|
4314
|
+
issues: number;
|
|
4315
|
+
/** The number of conversations in the conversations issues cluster */
|
|
4316
|
+
conversations: number;
|
|
4317
|
+
/** The number of tasks in the conversations issues cluster */
|
|
4318
|
+
tasksTotal: number;
|
|
4319
|
+
/** The number of tasks in the backlog in the conversations issues cluster */
|
|
4320
|
+
tasksBacklog: number;
|
|
4321
|
+
/** The number of tasks done in the conversations issues cluster */
|
|
4322
|
+
tasksStarted: number;
|
|
4323
|
+
/** The number of tasks completed in the conversations issues cluster */
|
|
4324
|
+
tasksCompleted: number;
|
|
4325
|
+
/** The number of tasks canceled in the conversations issues cluster */
|
|
4326
|
+
tasksCancelled: number;
|
|
4327
|
+
};
|
|
4328
|
+
/** URLs associated with the conversations issues cluster */
|
|
4329
|
+
urls: {
|
|
4330
|
+
/**
|
|
4331
|
+
* URL of the conversations issues cluster in the API
|
|
4332
|
+
* @format uri
|
|
4333
|
+
*/
|
|
4334
|
+
location: string;
|
|
4335
|
+
/**
|
|
4336
|
+
* URL of the conversations issues cluster in the application
|
|
4337
|
+
* @format uri
|
|
4338
|
+
*/
|
|
4339
|
+
app: string;
|
|
4340
|
+
};
|
|
4341
|
+
}
|
|
4342
|
+
export interface ConversationIssue {
|
|
4343
|
+
object: 'conversation-issue';
|
|
4344
|
+
/** The ID of the conversation issue */
|
|
4345
|
+
id: string;
|
|
4346
|
+
/** The title of the conversation issue */
|
|
4347
|
+
title: string;
|
|
4348
|
+
/** The summary of the conversation issue */
|
|
4349
|
+
summary: string;
|
|
4350
|
+
createdAt: Timestamp;
|
|
4351
|
+
ingestedAt: Timestamp;
|
|
4352
|
+
/** The ID of the conversation the issue belongs to */
|
|
4353
|
+
conversation: string;
|
|
4354
|
+
/** The ID of the cluster the issue has been linked to */
|
|
4355
|
+
cluster?: string;
|
|
4356
|
+
/** URLs associated with the conversation issue */
|
|
4357
|
+
urls: {
|
|
4358
|
+
/**
|
|
4359
|
+
* URL of the conversation issue in the API
|
|
4360
|
+
* @format uri
|
|
4361
|
+
*/
|
|
4362
|
+
location: string;
|
|
4363
|
+
};
|
|
4364
|
+
}
|
|
4365
|
+
/** Integration source */
|
|
4366
|
+
export type ConversationSource = string | 'email';
|
|
4367
|
+
export interface Conversation {
|
|
4368
|
+
object: 'conversation';
|
|
4369
|
+
/** The ID of the conversation */
|
|
4370
|
+
id: string;
|
|
4371
|
+
/** The subject of the conversation */
|
|
4372
|
+
subject?: string;
|
|
4373
|
+
createdAt: Timestamp;
|
|
4374
|
+
processedAt?: Timestamp;
|
|
4375
|
+
/** Integration source */
|
|
4376
|
+
source: ConversationSource;
|
|
4377
|
+
/** URLs associated with the conversation */
|
|
4378
|
+
urls: {
|
|
4379
|
+
/**
|
|
4380
|
+
* URL of the conversation in the API
|
|
4381
|
+
* @format uri
|
|
4382
|
+
*/
|
|
4383
|
+
location: string;
|
|
4384
|
+
/**
|
|
4385
|
+
* URL of the conversation in the source
|
|
4386
|
+
* @format uri
|
|
4387
|
+
*/
|
|
4388
|
+
source?: string;
|
|
4389
|
+
};
|
|
4390
|
+
}
|
|
4391
|
+
export interface ConversationMetadata {
|
|
4392
|
+
/** URL to the conversation */
|
|
4393
|
+
url?: string;
|
|
4394
|
+
attributes?: Record<string, string>;
|
|
4395
|
+
/** Date of the conversation creation */
|
|
4396
|
+
createdAt?: Timestamp;
|
|
4397
|
+
}
|
|
4398
|
+
/** A message posted in the conversation by a user or a team member. */
|
|
4399
|
+
export interface ConversationPartMessage {
|
|
4400
|
+
type: 'message';
|
|
4401
|
+
role: 'user' | 'assistant' | 'team-member';
|
|
4402
|
+
/** Markdown or HTML body of the message. */
|
|
4403
|
+
body: string;
|
|
4404
|
+
}
|
|
4405
|
+
export type ConversationPart = ConversationPartMessage;
|
|
4406
|
+
export interface ConversationInput {
|
|
4407
|
+
/**
|
|
4408
|
+
* The unique identifier for the conversation, relative to the source in which it was created.
|
|
4409
|
+
* @minLength 1
|
|
4410
|
+
* @maxLength 255
|
|
4411
|
+
*/
|
|
4412
|
+
id: string;
|
|
4413
|
+
metadata?: ConversationMetadata;
|
|
4414
|
+
/**
|
|
4415
|
+
* The subject of the conversation.
|
|
4416
|
+
* @maxLength 512
|
|
4417
|
+
*/
|
|
4418
|
+
subject?: string;
|
|
4419
|
+
parts: ConversationPart[];
|
|
4420
|
+
}
|
|
4421
|
+
/** State and settings of the agent */
|
|
4422
|
+
export interface AgentsSetupState {
|
|
4423
|
+
/** The email address of the agent. Emails can be forwarded to it to ingest conversations. */
|
|
4424
|
+
email: string;
|
|
4425
|
+
/** The stats of the agent. */
|
|
4426
|
+
stats: {
|
|
4427
|
+
/** The number of tasks in the backlog. */
|
|
4428
|
+
backlogTasks: number;
|
|
4429
|
+
/** The number of tasks in progress. */
|
|
4430
|
+
startedTasks: number;
|
|
4431
|
+
/** The number of tasks that have been completed. */
|
|
4432
|
+
completedTasks: number;
|
|
4433
|
+
/** The number of tasks that have been canceled. */
|
|
4434
|
+
canceledTasks: number;
|
|
4435
|
+
/** The number of conversations the agent has indexed. */
|
|
4436
|
+
conversations: number;
|
|
4437
|
+
/** The number of issues the agent has indexed. */
|
|
4438
|
+
issues: number;
|
|
4439
|
+
/** The number of issues clusters the agent has indexed. */
|
|
4440
|
+
issuesClusters: number;
|
|
4441
|
+
sources: Record<string, number>;
|
|
4442
|
+
};
|
|
4443
|
+
/** The settings for the agent. */
|
|
4444
|
+
settings: object;
|
|
4445
|
+
}
|
|
4446
|
+
/** 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. */
|
|
4447
|
+
export declare enum AgentTaskStatus {
|
|
4448
|
+
Backlog = "backlog",
|
|
4449
|
+
Started = "started",
|
|
4450
|
+
Completed = "completed",
|
|
4451
|
+
Canceled = "canceled"
|
|
4452
|
+
}
|
|
4453
|
+
export interface AgentTask {
|
|
4454
|
+
object: 'agent-task';
|
|
4455
|
+
/** The ID of the agent task */
|
|
4456
|
+
id: string;
|
|
4457
|
+
/** The title of the agent task */
|
|
4458
|
+
title: string;
|
|
4459
|
+
/** The description of the agent task */
|
|
4460
|
+
description: string;
|
|
4461
|
+
instructions: JSONDocument;
|
|
4462
|
+
/** 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. */
|
|
4463
|
+
status: AgentTaskStatus;
|
|
4464
|
+
createdAt: Timestamp;
|
|
4465
|
+
updatedAt: Timestamp;
|
|
4466
|
+
/** ID of the cluster the agent task is associated with. */
|
|
4467
|
+
cluster?: string;
|
|
4468
|
+
/** ID of the space the agent task will act on. */
|
|
4469
|
+
space: string;
|
|
4470
|
+
/** ID of the change request the agent task is associated with. */
|
|
4471
|
+
changeRequest?: string;
|
|
4472
|
+
/** URLs associated with the agent task */
|
|
4473
|
+
urls: {
|
|
4474
|
+
/**
|
|
4475
|
+
* URL of the agent task in the API
|
|
4476
|
+
* @format uri
|
|
4477
|
+
*/
|
|
4478
|
+
location: string;
|
|
4479
|
+
/**
|
|
4480
|
+
* URL of the agent task in the application
|
|
4481
|
+
* @format uri
|
|
4482
|
+
*/
|
|
4483
|
+
app: string;
|
|
4484
|
+
};
|
|
4485
|
+
}
|
|
4270
4486
|
/**
|
|
4271
4487
|
* Title of the translation settings
|
|
4272
4488
|
* @minLength 1
|
|
@@ -4939,7 +5155,7 @@ export interface AIStreamResponseFinish {
|
|
|
4939
5155
|
}
|
|
4940
5156
|
/** 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. */
|
|
4941
5157
|
export interface AIStreamResponseDocument {
|
|
4942
|
-
type: 'response_document';
|
|
5158
|
+
type: 'response_document' | 'response_reasoning';
|
|
4943
5159
|
/** The ID of the message that this event is composing. */
|
|
4944
5160
|
messageId: string;
|
|
4945
5161
|
/** The index of the step of the message that this event is composing. */
|
|
@@ -5905,6 +6121,10 @@ export interface TriggerContentIndexingContext {
|
|
|
5905
6121
|
/** Whether to force a complete re-indexing of the Space. */
|
|
5906
6122
|
force: boolean;
|
|
5907
6123
|
}
|
|
6124
|
+
/** Predefined GitBook user identifiers */
|
|
6125
|
+
export declare enum GitBookUsers {
|
|
6126
|
+
GitbookAgent = "gitbook:agent"
|
|
6127
|
+
}
|
|
5908
6128
|
export interface ContentPublishingAuth {
|
|
5909
6129
|
/** Type of Object, always equals to "publishing-auth" */
|
|
5910
6130
|
object: 'publishing-auth';
|
|
@@ -6446,8 +6666,22 @@ export interface TranslationSettingsChannel {
|
|
|
6446
6666
|
channel: 'translation-settings';
|
|
6447
6667
|
translation: string;
|
|
6448
6668
|
}
|
|
6669
|
+
/** Subscription channel for an agent task. */
|
|
6670
|
+
export interface AgentTaskChannel {
|
|
6671
|
+
channel: 'agent-task';
|
|
6672
|
+
/** The ID of the organization. */
|
|
6673
|
+
organization: string;
|
|
6674
|
+
/** The ID of the agent task. */
|
|
6675
|
+
agentTask: string;
|
|
6676
|
+
}
|
|
6677
|
+
/** Subscription channel for agent tasks. */
|
|
6678
|
+
export interface AgentTasksChannel {
|
|
6679
|
+
channel: 'agent-tasks';
|
|
6680
|
+
/** The ID of the organization. */
|
|
6681
|
+
organization: string;
|
|
6682
|
+
}
|
|
6449
6683
|
/** Channel to subscribe to for realtime updates. */
|
|
6450
|
-
export type SubscriptionChannel = SpaceInfoChannel | SpaceContentChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel | SpaceCustomFieldsChannel | SpaceContentRefsChannel | SpaceIntegrationsChannel | OrganizationCustomFieldsChannel | 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 | OrganizationTranslationSettingsChannel | OrganizationCustomFontsChannel | SpaceCommentsChannel | ChangeRequestCommentsChannel | CommentInfoChannel | CommentReplyInfoChannel | CommentRepliesChannel | IntegrationChannel | IntegrationInstallationChannel | IntegrationSpaceInstallationChannel | IntegrationSpaceInstallationsChannel | IntegrationSiteInstallationChannel | IntegrationSiteInstallationsChannel | PublishedContentSiteChannel | SiteRedirectsChannel | SiteChannel | SiteCustomizationChannel | SiteIntegrationsChannel | SiteSpaceChannel | SiteSpaceCustomizationChannel | SiteStructureChannel | SiteAdaptiveSchemaChannel | SitePublishingAuthChannel | SiteShareLinksChannel | SiteShareLinkChannel | SiteSectionChannel | CustomHostnameChannel | GitSyncSettingsChannel | GitSyncOperationChannel | OpenAPISpecChannel | SubdomainChannel | TranslationSettingsChannel;
|
|
6684
|
+
export type SubscriptionChannel = SpaceInfoChannel | SpaceContentChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel | SpaceCustomFieldsChannel | SpaceContentRefsChannel | SpaceIntegrationsChannel | OrganizationCustomFieldsChannel | 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 | OrganizationTranslationSettingsChannel | OrganizationCustomFontsChannel | SpaceCommentsChannel | ChangeRequestCommentsChannel | CommentInfoChannel | CommentReplyInfoChannel | CommentRepliesChannel | IntegrationChannel | IntegrationInstallationChannel | IntegrationSpaceInstallationChannel | IntegrationSpaceInstallationsChannel | IntegrationSiteInstallationChannel | IntegrationSiteInstallationsChannel | PublishedContentSiteChannel | SiteRedirectsChannel | SiteChannel | SiteCustomizationChannel | SiteIntegrationsChannel | SiteSpaceChannel | SiteSpaceCustomizationChannel | SiteStructureChannel | SiteAdaptiveSchemaChannel | SitePublishingAuthChannel | SiteShareLinksChannel | SiteShareLinkChannel | SiteSectionChannel | CustomHostnameChannel | GitSyncSettingsChannel | GitSyncOperationChannel | OpenAPISpecChannel | SubdomainChannel | TranslationSettingsChannel | AgentTaskChannel | AgentTasksChannel;
|
|
6451
6685
|
export interface GitSyncOperationChannelData {
|
|
6452
6686
|
channel: 'space-gitsync-operation';
|
|
6453
6687
|
data: GitSyncOperation;
|
|
@@ -6578,6 +6812,7 @@ export interface Seat {
|
|
|
6578
6812
|
/** A step in a message from the AI agent. */
|
|
6579
6813
|
export interface AIMessageStep {
|
|
6580
6814
|
content: JSONDocument;
|
|
6815
|
+
reasoning?: JSONDocument;
|
|
6581
6816
|
toolCalls?: AIToolCall[];
|
|
6582
6817
|
}
|
|
6583
6818
|
export interface AIMessage {
|
|
@@ -6624,44 +6859,6 @@ export interface AgentStreamState {
|
|
|
6624
6859
|
state: AgentState;
|
|
6625
6860
|
}
|
|
6626
6861
|
export type AgentStream = AgentStreamMessages | AgentStreamMessageResponse | AgentStreamState;
|
|
6627
|
-
export interface ConversationMetadata {
|
|
6628
|
-
/** URL to the conversation */
|
|
6629
|
-
url?: string;
|
|
6630
|
-
attributes?: Record<string, string>;
|
|
6631
|
-
/** Date of the conversation creation */
|
|
6632
|
-
createdAt?: Timestamp;
|
|
6633
|
-
}
|
|
6634
|
-
/** A message posted in the conversation by a user or a team member. */
|
|
6635
|
-
export interface ConversationPartMessage {
|
|
6636
|
-
type: 'message';
|
|
6637
|
-
role: 'user' | 'assistant' | 'team-member';
|
|
6638
|
-
/** Markdown or HTML body of the message. */
|
|
6639
|
-
body: string;
|
|
6640
|
-
}
|
|
6641
|
-
export type ConversationPart = ConversationPartMessage;
|
|
6642
|
-
export interface ConversationInput {
|
|
6643
|
-
/**
|
|
6644
|
-
* The unique identifier for the conversation, relative to the source in which it was created.
|
|
6645
|
-
* @minLength 1
|
|
6646
|
-
* @maxLength 255
|
|
6647
|
-
*/
|
|
6648
|
-
id: string;
|
|
6649
|
-
metadata?: ConversationMetadata;
|
|
6650
|
-
/**
|
|
6651
|
-
* The subject of the conversation.
|
|
6652
|
-
* @maxLength 512
|
|
6653
|
-
*/
|
|
6654
|
-
subject?: string;
|
|
6655
|
-
parts: ConversationPart[];
|
|
6656
|
-
}
|
|
6657
|
-
/** The status of the agent task. - `backlog`: The task has not been started yet, a human should review its specification. - `in-progress`: The task is in progress. - `in-review`: The task is completed, a human should review the result. - `done`: The task is completed. - `rejected`: The task has been rejected by a human. */
|
|
6658
|
-
export declare enum AgentTaskStatus {
|
|
6659
|
-
Backlog = "backlog",
|
|
6660
|
-
InProgress = "in-progress",
|
|
6661
|
-
InReview = "in-review",
|
|
6662
|
-
Done = "done",
|
|
6663
|
-
Rejected = "rejected"
|
|
6664
|
-
}
|
|
6665
6862
|
export type RequestSpaceTrackPageView = SpaceTrackPageView;
|
|
6666
6863
|
export type RequestSiteTrackPageView = SiteTrackPageView;
|
|
6667
6864
|
export type RequestPublishIntegration = PublishIntegration;
|
|
@@ -6674,7 +6871,6 @@ export type RequestImportGitRepository = ImportGitRepository;
|
|
|
6674
6871
|
export type RequestExportToGitRepository = ExportToGitRepository;
|
|
6675
6872
|
export type RequestImportContent = ImportContent;
|
|
6676
6873
|
export type RequestCreateSpace = CreateSpace;
|
|
6677
|
-
export type RequestCreateChangeRequest = CreateChangeRequest;
|
|
6678
6874
|
export type RequestRenderIntegrationUI = RenderIntegrationUI;
|
|
6679
6875
|
export type RequestUpdateContentPublishingAuth = UpdateContentPublishingAuth;
|
|
6680
6876
|
export type RequestCreateOrganization = CreateOrganization;
|
|
@@ -7503,7 +7699,12 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7503
7699
|
* @request POST:/spaces/{spaceId}/change-requests
|
|
7504
7700
|
* @secure
|
|
7505
7701
|
*/
|
|
7506
|
-
createChangeRequest: (spaceId: string, data:
|
|
7702
|
+
createChangeRequest: (spaceId: string, data: {
|
|
7703
|
+
/** Subject of the change-request */
|
|
7704
|
+
subject?: string;
|
|
7705
|
+
/** ID of the agent task to implement */
|
|
7706
|
+
agentTaskId?: string;
|
|
7707
|
+
}, params?: RequestParams) => Promise<HttpResponse<ChangeRequest, any>>;
|
|
7507
7708
|
/**
|
|
7508
7709
|
* No description
|
|
7509
7710
|
*
|
|
@@ -8990,6 +9191,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8990
9191
|
contentSources?: boolean;
|
|
8991
9192
|
/** If defined, only list integrations owned by the given organization. */
|
|
8992
9193
|
owner?: string;
|
|
9194
|
+
/** Filter the integrations by scope */
|
|
9195
|
+
scope?: IntegrationScope;
|
|
8993
9196
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
8994
9197
|
items: Integration[];
|
|
8995
9198
|
}, any>>;
|
|
@@ -10130,7 +10333,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10130
10333
|
*
|
|
10131
10334
|
* @tags integrations
|
|
10132
10335
|
* @name ListOrganizationIntegrations
|
|
10133
|
-
* @summary List all integrations
|
|
10336
|
+
* @summary List all public integrations along with private ones trusted by the specific org.
|
|
10134
10337
|
* @request GET:/orgs/{organizationId}/integrations
|
|
10135
10338
|
* @secure
|
|
10136
10339
|
*/
|
|
@@ -10159,6 +10362,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10159
10362
|
contentSources?: boolean;
|
|
10160
10363
|
/** If defined, only list integrations owned by the given organization. */
|
|
10161
10364
|
owner?: string;
|
|
10365
|
+
/** Filter the integrations by scope */
|
|
10366
|
+
scope?: IntegrationScope;
|
|
10162
10367
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
10163
10368
|
items: Integration[];
|
|
10164
10369
|
}, any>>;
|
|
@@ -10560,6 +10765,163 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10560
10765
|
message: string;
|
|
10561
10766
|
};
|
|
10562
10767
|
}>>;
|
|
10768
|
+
/**
|
|
10769
|
+
* No description
|
|
10770
|
+
*
|
|
10771
|
+
* @tags agents
|
|
10772
|
+
* @name ListConversationsIssuesClusters
|
|
10773
|
+
* @summary List conversations issues clusters
|
|
10774
|
+
* @request GET:/orgs/{organizationId}/conversations-clusters
|
|
10775
|
+
* @secure
|
|
10776
|
+
*/
|
|
10777
|
+
listConversationsIssuesClusters: (organizationId: string, query?: {
|
|
10778
|
+
/** Identifier of the page results to fetch. */
|
|
10779
|
+
page?: string;
|
|
10780
|
+
/**
|
|
10781
|
+
* The number of results per page
|
|
10782
|
+
* @min 0
|
|
10783
|
+
* @max 1000
|
|
10784
|
+
*/
|
|
10785
|
+
limit?: number;
|
|
10786
|
+
/**
|
|
10787
|
+
* An order for the items in the list
|
|
10788
|
+
* @default "desc"
|
|
10789
|
+
*/
|
|
10790
|
+
order?: "asc" | "desc";
|
|
10791
|
+
/** @default "updatedAt" */
|
|
10792
|
+
orderBy?: "updatedAt" | "issues" | "conversations" | "tasksTotal" | "tasksBacklog" | "tasksStarted";
|
|
10793
|
+
/** Filter by status */
|
|
10794
|
+
status?: "pending" | "analysing";
|
|
10795
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
10796
|
+
items: ConversationsIssuesCluster[];
|
|
10797
|
+
}, {
|
|
10798
|
+
error: {
|
|
10799
|
+
/** @format int32 */
|
|
10800
|
+
code: 404;
|
|
10801
|
+
message: string;
|
|
10802
|
+
};
|
|
10803
|
+
}>>;
|
|
10804
|
+
/**
|
|
10805
|
+
* No description
|
|
10806
|
+
*
|
|
10807
|
+
* @tags agents
|
|
10808
|
+
* @name GetConversationsIssuesCluster
|
|
10809
|
+
* @summary Get a conversations issues cluster by its identifier
|
|
10810
|
+
* @request GET:/orgs/{organizationId}/conversations-clusters/{clusterId}
|
|
10811
|
+
* @secure
|
|
10812
|
+
*/
|
|
10813
|
+
getConversationsIssuesCluster: (organizationId: string, clusterId: string, params?: RequestParams) => Promise<HttpResponse<ConversationsIssuesCluster, any>>;
|
|
10814
|
+
/**
|
|
10815
|
+
* No description
|
|
10816
|
+
*
|
|
10817
|
+
* @tags agents
|
|
10818
|
+
* @name ListConversationsIssuesInCluster
|
|
10819
|
+
* @summary List conversations issues in a cluster
|
|
10820
|
+
* @request GET:/orgs/{organizationId}/conversations-clusters/{clusterId}/issues
|
|
10821
|
+
* @secure
|
|
10822
|
+
*/
|
|
10823
|
+
listConversationsIssuesInCluster: (organizationId: string, clusterId: string, query?: {
|
|
10824
|
+
/** Identifier of the page results to fetch. */
|
|
10825
|
+
page?: string;
|
|
10826
|
+
/**
|
|
10827
|
+
* The number of results per page
|
|
10828
|
+
* @min 0
|
|
10829
|
+
* @max 1000
|
|
10830
|
+
*/
|
|
10831
|
+
limit?: number;
|
|
10832
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
10833
|
+
items: {
|
|
10834
|
+
issue: ConversationIssue;
|
|
10835
|
+
conversation: Conversation;
|
|
10836
|
+
}[];
|
|
10837
|
+
}, {
|
|
10838
|
+
error: {
|
|
10839
|
+
/** @format int32 */
|
|
10840
|
+
code: 404;
|
|
10841
|
+
message: string;
|
|
10842
|
+
};
|
|
10843
|
+
}>>;
|
|
10844
|
+
/**
|
|
10845
|
+
* No description
|
|
10846
|
+
*
|
|
10847
|
+
* @tags conversations
|
|
10848
|
+
* @name IngestConversation
|
|
10849
|
+
* @summary Ingest conversations
|
|
10850
|
+
* @request POST:/orgs/{organizationId}/conversations
|
|
10851
|
+
* @secure
|
|
10852
|
+
*/
|
|
10853
|
+
ingestConversation: (organizationId: string, data: ConversationInput | ConversationInput[], params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
10854
|
+
/**
|
|
10855
|
+
* @description Get the state of the agent.
|
|
10856
|
+
*
|
|
10857
|
+
* @tags agents, critical
|
|
10858
|
+
* @name GetAgentSetupState
|
|
10859
|
+
* @summary Get the agents setup state
|
|
10860
|
+
* @request GET:/orgs/{organizationId}/agents-setup
|
|
10861
|
+
* @secure
|
|
10862
|
+
*/
|
|
10863
|
+
getAgentSetupState: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<AgentsSetupState, any>>;
|
|
10864
|
+
/**
|
|
10865
|
+
* No description
|
|
10866
|
+
*
|
|
10867
|
+
* @tags agents
|
|
10868
|
+
* @name ListAgentTasks
|
|
10869
|
+
* @summary List agent tasks
|
|
10870
|
+
* @request GET:/orgs/{organizationId}/agent-tasks
|
|
10871
|
+
* @secure
|
|
10872
|
+
*/
|
|
10873
|
+
listAgentTasks: (organizationId: string, query?: {
|
|
10874
|
+
/** Identifier of the page results to fetch. */
|
|
10875
|
+
page?: string;
|
|
10876
|
+
/**
|
|
10877
|
+
* The number of results per page
|
|
10878
|
+
* @min 0
|
|
10879
|
+
* @max 1000
|
|
10880
|
+
*/
|
|
10881
|
+
limit?: number;
|
|
10882
|
+
/** The ID of the conversations issues cluster to filter the agent tasks by */
|
|
10883
|
+
cluster?: string;
|
|
10884
|
+
/** The ID of the space to filter the agent tasks by */
|
|
10885
|
+
space?: string;
|
|
10886
|
+
/** The statuses of the agent tasks to filter by */
|
|
10887
|
+
status?: AgentTaskStatus[];
|
|
10888
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
10889
|
+
items: AgentTask[];
|
|
10890
|
+
}, {
|
|
10891
|
+
error: {
|
|
10892
|
+
/** @format int32 */
|
|
10893
|
+
code: 404;
|
|
10894
|
+
message: string;
|
|
10895
|
+
};
|
|
10896
|
+
}>>;
|
|
10897
|
+
/**
|
|
10898
|
+
* No description
|
|
10899
|
+
*
|
|
10900
|
+
* @tags agents
|
|
10901
|
+
* @name GetAgentTask
|
|
10902
|
+
* @summary Get an agent task by its identifier
|
|
10903
|
+
* @request GET:/orgs/{organizationId}/agent-tasks/{agentTaskId}
|
|
10904
|
+
* @secure
|
|
10905
|
+
*/
|
|
10906
|
+
getAgentTask: (organizationId: string, agentTaskId: string, params?: RequestParams) => Promise<HttpResponse<AgentTask, {
|
|
10907
|
+
error: {
|
|
10908
|
+
/** @format int32 */
|
|
10909
|
+
code: 404;
|
|
10910
|
+
message: string;
|
|
10911
|
+
};
|
|
10912
|
+
}>>;
|
|
10913
|
+
/**
|
|
10914
|
+
* No description
|
|
10915
|
+
*
|
|
10916
|
+
* @tags agents
|
|
10917
|
+
* @name UpdateAgentTask
|
|
10918
|
+
* @summary Update an agent task by its identifier
|
|
10919
|
+
* @request PATCH:/orgs/{organizationId}/agent-tasks/{agentTaskId}
|
|
10920
|
+
* @secure
|
|
10921
|
+
*/
|
|
10922
|
+
updateAgentTask: (organizationId: string, agentTaskId: string, data: {
|
|
10923
|
+
status: "backlog" | "started" | "canceled";
|
|
10924
|
+
}, params?: RequestParams) => Promise<HttpResponse<AgentTask, any>>;
|
|
10563
10925
|
/**
|
|
10564
10926
|
* No description
|
|
10565
10927
|
*
|
|
@@ -10957,6 +11319,12 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10957
11319
|
/** Basename for the site. For e.g. api */
|
|
10958
11320
|
basename?: SiteBasename;
|
|
10959
11321
|
adaptiveContent?: SiteAdaptiveContent;
|
|
11322
|
+
/**
|
|
11323
|
+
* Defines if the site will be included in the agent's context.
|
|
11324
|
+
* - `excluded` means that the agent will not be able to access the site.
|
|
11325
|
+
* - `included` means that the agent will be able to access the site.
|
|
11326
|
+
*/
|
|
11327
|
+
agentsContext?: SiteAgentsContext;
|
|
10960
11328
|
/** ID of the site-space to be used as the default at the root level. If site has sections, this will mark the default site space in the site's default section. */
|
|
10961
11329
|
defaultSiteSpace?: string;
|
|
10962
11330
|
/** ID of the site-section to be used as the default. */
|