@gitbook/api 0.115.0 → 0.117.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 +649 -164
- package/dist/index.cjs +114 -34
- package/dist/index.js +111 -30
- package/package.json +1 -1
- package/spec/openapi.json +2279 -791
- package/spec/openapi.yaml +1418 -438
package/dist/client.d.ts
CHANGED
|
@@ -48,6 +48,11 @@ export type UserAPITokenExtended = UserAPIToken & {
|
|
|
48
48
|
/** The actual token value. */
|
|
49
49
|
token: string;
|
|
50
50
|
};
|
|
51
|
+
/**
|
|
52
|
+
* @format uri
|
|
53
|
+
* @maxLength 2048
|
|
54
|
+
*/
|
|
55
|
+
export type URL = string;
|
|
51
56
|
/**
|
|
52
57
|
* Title of the space
|
|
53
58
|
* @maxLength 50
|
|
@@ -86,11 +91,6 @@ export declare enum SpaceEditMode {
|
|
|
86
91
|
Live = "live",
|
|
87
92
|
Locked = "locked"
|
|
88
93
|
}
|
|
89
|
-
/**
|
|
90
|
-
* @format uri
|
|
91
|
-
* @maxLength 2048
|
|
92
|
-
*/
|
|
93
|
-
export type URL = string;
|
|
94
94
|
/** The provider of the Git Sync installation. */
|
|
95
95
|
export declare enum GitSyncProvider {
|
|
96
96
|
Github = "github",
|
|
@@ -1101,7 +1101,25 @@ export interface DocumentBlockStepper {
|
|
|
1101
1101
|
isVoid?: false;
|
|
1102
1102
|
data?: object;
|
|
1103
1103
|
}
|
|
1104
|
-
export
|
|
1104
|
+
export interface DocumentBlockColumn {
|
|
1105
|
+
object: 'block';
|
|
1106
|
+
type: 'column';
|
|
1107
|
+
key?: string;
|
|
1108
|
+
nodes: (DocumentBlocksEssentials | DocumentBlockImages)[];
|
|
1109
|
+
isVoid?: false;
|
|
1110
|
+
data: object;
|
|
1111
|
+
}
|
|
1112
|
+
export interface DocumentBlockColumns {
|
|
1113
|
+
object: 'block';
|
|
1114
|
+
type: 'columns';
|
|
1115
|
+
key?: string;
|
|
1116
|
+
data: {
|
|
1117
|
+
fullWidth?: boolean;
|
|
1118
|
+
};
|
|
1119
|
+
nodes: DocumentBlockColumn[];
|
|
1120
|
+
isVoid: false;
|
|
1121
|
+
}
|
|
1122
|
+
export type DocumentBlock = DocumentBlockParagraph | DocumentBlockHeading | DocumentBlockListOrdered | DocumentBlockListUnordered | DocumentBlockListTasks | DocumentBlockListItem | DocumentBlockDivider | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockImage | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockCodeLine | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTabsItem | DocumentBlockTable | DocumentBlockOpenAPI | DocumentBlockOpenAPIOperation | DocumentBlockOpenAPISchemas | DocumentBlockOpenAPIWebhook | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockReusableContent | DocumentBlockStepper | DocumentBlockStepperStep | DocumentBlockColumns | DocumentBlockColumn;
|
|
1105
1123
|
export interface DocumentInlineMention {
|
|
1106
1124
|
object: 'inline';
|
|
1107
1125
|
type: 'mention';
|
|
@@ -1733,6 +1751,8 @@ export interface Organization {
|
|
|
1733
1751
|
createContent: boolean;
|
|
1734
1752
|
/** Can the user create new OpenAPI specifications. */
|
|
1735
1753
|
createOpenAPISpec: boolean;
|
|
1754
|
+
/** Can the user ingest conversations in the organization. */
|
|
1755
|
+
ingestConversations: boolean;
|
|
1736
1756
|
/** Can the user view the billing details of the organization. */
|
|
1737
1757
|
viewBilling: boolean;
|
|
1738
1758
|
/** Can the user list the members of the organization. */
|
|
@@ -1962,10 +1982,6 @@ export interface ContentReferenceUsage {
|
|
|
1962
1982
|
/** Pages locations where a link to the target is found. */
|
|
1963
1983
|
locationReferences: ContentLocation[];
|
|
1964
1984
|
}
|
|
1965
|
-
export interface CreateChangeRequest {
|
|
1966
|
-
/** Subject of the change-request */
|
|
1967
|
-
subject?: string;
|
|
1968
|
-
}
|
|
1969
1985
|
/** Status of a change request review. */
|
|
1970
1986
|
export declare enum ChangeRequestReviewStatus {
|
|
1971
1987
|
ChangesRequested = "changes-requested",
|
|
@@ -2153,25 +2169,6 @@ export interface UserContributor {
|
|
|
2153
2169
|
count: number;
|
|
2154
2170
|
user: User;
|
|
2155
2171
|
}
|
|
2156
|
-
/**
|
|
2157
|
-
* The status of the session.
|
|
2158
|
-
* - pending: The session is pending for input from the user.
|
|
2159
|
-
* - running: The session is being processed by GitBook.
|
|
2160
|
-
* - failed: The session processing has failed.
|
|
2161
|
-
*/
|
|
2162
|
-
export declare enum ChangeRequestBrainstormStatus {
|
|
2163
|
-
Pending = "pending",
|
|
2164
|
-
Failed = "failed",
|
|
2165
|
-
Running = "running"
|
|
2166
|
-
}
|
|
2167
|
-
export declare enum ChangeRequestBrainstormActor {
|
|
2168
|
-
User = "user",
|
|
2169
|
-
Agent = "agent"
|
|
2170
|
-
}
|
|
2171
|
-
export interface ChangeRequestBrainstormContext {
|
|
2172
|
-
/** Path of the page the user is currently viewing. */
|
|
2173
|
-
page: string;
|
|
2174
|
-
}
|
|
2175
2172
|
export declare enum RevisionPageType {
|
|
2176
2173
|
Document = "document",
|
|
2177
2174
|
Group = "group",
|
|
@@ -2184,111 +2181,6 @@ export interface ChangedRevisionPage {
|
|
|
2184
2181
|
title: string;
|
|
2185
2182
|
path?: string;
|
|
2186
2183
|
}
|
|
2187
|
-
export type ChangeRequestBrainstormLog = {
|
|
2188
|
-
tool: 'get-page';
|
|
2189
|
-
intent: string;
|
|
2190
|
-
page: ChangedRevisionPage;
|
|
2191
|
-
} | {
|
|
2192
|
-
tool: 'search-keyword';
|
|
2193
|
-
intent: string;
|
|
2194
|
-
query: string;
|
|
2195
|
-
} | {
|
|
2196
|
-
tool: 'search-semantic';
|
|
2197
|
-
intent: string;
|
|
2198
|
-
query: string;
|
|
2199
|
-
} | {
|
|
2200
|
-
tool: 'create-page';
|
|
2201
|
-
page: ChangedRevisionPage;
|
|
2202
|
-
} | {
|
|
2203
|
-
tool: 'delete-page';
|
|
2204
|
-
page: ChangedRevisionPage;
|
|
2205
|
-
} | {
|
|
2206
|
-
tool: 'edit-page';
|
|
2207
|
-
page: ChangedRevisionPage;
|
|
2208
|
-
};
|
|
2209
|
-
/**
|
|
2210
|
-
* The status of the plan.
|
|
2211
|
-
* - pending: The task is pending for input from the user.
|
|
2212
|
-
* - running: The task is being processed by GitBook.
|
|
2213
|
-
* - failed: The task processing has failed.
|
|
2214
|
-
* - completed: The task has been completed.
|
|
2215
|
-
*/
|
|
2216
|
-
export declare enum ChangeRequestBrainstormPlanStatus {
|
|
2217
|
-
Pending = "pending",
|
|
2218
|
-
Failed = "failed",
|
|
2219
|
-
Running = "running",
|
|
2220
|
-
Completed = "completed"
|
|
2221
|
-
}
|
|
2222
|
-
/**
|
|
2223
|
-
* @minLength 1
|
|
2224
|
-
* @maxLength 100
|
|
2225
|
-
*/
|
|
2226
|
-
export type ChangeRequestBrainstormPlanStepTitle = string;
|
|
2227
|
-
export declare enum ChangeRequestBrainstormPlanStepStatus {
|
|
2228
|
-
Pending = "pending",
|
|
2229
|
-
Succeeded = "succeeded",
|
|
2230
|
-
Failed = "failed",
|
|
2231
|
-
Running = "running"
|
|
2232
|
-
}
|
|
2233
|
-
export interface ChangeRequestBrainstormPlanStep {
|
|
2234
|
-
title: ChangeRequestBrainstormPlanStepTitle;
|
|
2235
|
-
status: ChangeRequestBrainstormPlanStepStatus;
|
|
2236
|
-
instruction: JSONDocument;
|
|
2237
|
-
/** Logs related to the implementation phase of the step. */
|
|
2238
|
-
implementation?: {
|
|
2239
|
-
/** A summary of the execution phase. */
|
|
2240
|
-
summary?: JSONDocument;
|
|
2241
|
-
/** Logs related to the execution phase of the step. */
|
|
2242
|
-
logs: ChangeRequestBrainstormLog[];
|
|
2243
|
-
};
|
|
2244
|
-
}
|
|
2245
|
-
export interface ChangeRequestBrainstormPlan {
|
|
2246
|
-
/**
|
|
2247
|
-
* The status of the plan.
|
|
2248
|
-
* - pending: The task is pending for input from the user.
|
|
2249
|
-
* - running: The task is being processed by GitBook.
|
|
2250
|
-
* - failed: The task processing has failed.
|
|
2251
|
-
* - completed: The task has been completed.
|
|
2252
|
-
*/
|
|
2253
|
-
status: ChangeRequestBrainstormPlanStatus;
|
|
2254
|
-
/** The title of the plan. */
|
|
2255
|
-
title: string;
|
|
2256
|
-
/** The steps of the plan to execute the plan. */
|
|
2257
|
-
steps: ChangeRequestBrainstormPlanStep[];
|
|
2258
|
-
context?: ChangeRequestBrainstormContext;
|
|
2259
|
-
}
|
|
2260
|
-
export interface ChangeRequestBrainstormAttachmentPlan {
|
|
2261
|
-
type: 'plan';
|
|
2262
|
-
plan: ChangeRequestBrainstormPlan;
|
|
2263
|
-
}
|
|
2264
|
-
export interface ChangeRequestBrainstormAttachmentMessage {
|
|
2265
|
-
type: 'message';
|
|
2266
|
-
suggestions: string[];
|
|
2267
|
-
}
|
|
2268
|
-
export type ChangeRequestBrainstormAttachment = ChangeRequestBrainstormAttachmentPlan | ChangeRequestBrainstormAttachmentMessage;
|
|
2269
|
-
export interface ChangeRequestBrainstormMessage {
|
|
2270
|
-
/** The unique identifier of the chat message. */
|
|
2271
|
-
id: string;
|
|
2272
|
-
actor: ChangeRequestBrainstormActor;
|
|
2273
|
-
message: JSONDocument;
|
|
2274
|
-
context?: ChangeRequestBrainstormContext;
|
|
2275
|
-
/** Logs related to the processing of the message. */
|
|
2276
|
-
logs?: ChangeRequestBrainstormLog[];
|
|
2277
|
-
attachment?: ChangeRequestBrainstormAttachment;
|
|
2278
|
-
}
|
|
2279
|
-
export interface ChangeRequestBrainstormSession {
|
|
2280
|
-
/** The unique identifier of the session. */
|
|
2281
|
-
id: string;
|
|
2282
|
-
/**
|
|
2283
|
-
* The status of the session.
|
|
2284
|
-
* - pending: The session is pending for input from the user.
|
|
2285
|
-
* - running: The session is being processed by GitBook.
|
|
2286
|
-
* - failed: The session processing has failed.
|
|
2287
|
-
*/
|
|
2288
|
-
status: ChangeRequestBrainstormStatus;
|
|
2289
|
-
/** Conversation messages related to the brainstorming phase of the task. */
|
|
2290
|
-
messages: ChangeRequestBrainstormMessage[];
|
|
2291
|
-
}
|
|
2292
2184
|
export interface RevisionSemanticChangePageCreated {
|
|
2293
2185
|
type: 'page_created';
|
|
2294
2186
|
page: ChangedRevisionPage;
|
|
@@ -2444,6 +2336,25 @@ export interface UpdateCommentReplySchema {
|
|
|
2444
2336
|
/** Reactions to remove from the comment. */
|
|
2445
2337
|
removedReactions?: string[];
|
|
2446
2338
|
}
|
|
2339
|
+
export interface OrganizationMember {
|
|
2340
|
+
/** Type of Object, always equals to "member" */
|
|
2341
|
+
object: 'member';
|
|
2342
|
+
/** Unique identifier for the user. */
|
|
2343
|
+
id: string;
|
|
2344
|
+
/** The role of a member in an organization, null for guests */
|
|
2345
|
+
role: MemberRoleOrGuest;
|
|
2346
|
+
user: User;
|
|
2347
|
+
/** Whatever the membership of this user is disabled and prevent them from accessing content. */
|
|
2348
|
+
disabled: boolean;
|
|
2349
|
+
/** Date at which the user joined the organization. */
|
|
2350
|
+
joinedAt: Timestamp;
|
|
2351
|
+
/** Date at which the user was last seen active in the organization. */
|
|
2352
|
+
lastSeenAt?: Timestamp;
|
|
2353
|
+
/** Whether the user can login with SSO. */
|
|
2354
|
+
sso: boolean;
|
|
2355
|
+
spaces: number;
|
|
2356
|
+
teams: number;
|
|
2357
|
+
}
|
|
2447
2358
|
/**
|
|
2448
2359
|
* Title of the integration
|
|
2449
2360
|
* @minLength 2
|
|
@@ -2490,7 +2401,8 @@ export declare enum IntegrationScope {
|
|
|
2490
2401
|
SiteAdaptiveRead = "site:adaptive:read",
|
|
2491
2402
|
SiteAdaptiveWrite = "site:adaptive:write",
|
|
2492
2403
|
OpenapiRead = "openapi:read",
|
|
2493
|
-
OpenapiWrite = "openapi:write"
|
|
2404
|
+
OpenapiWrite = "openapi:write",
|
|
2405
|
+
ConversationsIngest = "conversations:ingest"
|
|
2494
2406
|
}
|
|
2495
2407
|
/** Permissions that should be granted to the integration */
|
|
2496
2408
|
export type IntegrationScopes = IntegrationScope[];
|
|
@@ -3880,25 +3792,6 @@ export interface OrganizationAllContent {
|
|
|
3880
3792
|
/** List of soft-deleted spaces. */
|
|
3881
3793
|
deletedSpaces: OrganizationAllSpace[];
|
|
3882
3794
|
}
|
|
3883
|
-
export interface OrganizationMember {
|
|
3884
|
-
/** Type of Object, always equals to "member" */
|
|
3885
|
-
object: 'member';
|
|
3886
|
-
/** Unique identifier for the user. */
|
|
3887
|
-
id: string;
|
|
3888
|
-
/** The role of a member in an organization, null for guests */
|
|
3889
|
-
role: MemberRoleOrGuest;
|
|
3890
|
-
user: User;
|
|
3891
|
-
/** Whatever the membership of this user is disabled and prevent them from accessing content. */
|
|
3892
|
-
disabled: boolean;
|
|
3893
|
-
/** Date at which the user joined the organization. */
|
|
3894
|
-
joinedAt: Timestamp;
|
|
3895
|
-
/** Date at which the user was last seen active in the organization. */
|
|
3896
|
-
lastSeenAt?: Timestamp;
|
|
3897
|
-
/** Whether the user can login with SSO. */
|
|
3898
|
-
sso: boolean;
|
|
3899
|
-
spaces: number;
|
|
3900
|
-
teams: number;
|
|
3901
|
-
}
|
|
3902
3795
|
/** Permission of a member in a content. */
|
|
3903
3796
|
export interface MemberContentPermission {
|
|
3904
3797
|
/**
|
|
@@ -4152,6 +4045,15 @@ export type SAMLProviderLabel = string;
|
|
|
4152
4045
|
export type SAMLProviderEntityID = string;
|
|
4153
4046
|
/** @maxLength 10000 */
|
|
4154
4047
|
export type SAMLProviderCertificate = string;
|
|
4048
|
+
/**
|
|
4049
|
+
* Status of the provider.
|
|
4050
|
+
* - `active`: The provider is active and can be used to authenticate users.
|
|
4051
|
+
* - `pending`: The provider is pending and is not yet fully configured.
|
|
4052
|
+
*/
|
|
4053
|
+
export declare enum SAMLProviderStatus {
|
|
4054
|
+
Active = "active",
|
|
4055
|
+
Pending = "pending"
|
|
4056
|
+
}
|
|
4155
4057
|
export interface OrganizationSAMLProvider {
|
|
4156
4058
|
/** Type of Object, always equals to "saml-provider" */
|
|
4157
4059
|
object: 'saml-provider';
|
|
@@ -4166,6 +4068,12 @@ export interface OrganizationSAMLProvider {
|
|
|
4166
4068
|
defaultRole: MemberRoleOrGuest;
|
|
4167
4069
|
/** Date at which the provider was created. */
|
|
4168
4070
|
createdAt: Timestamp;
|
|
4071
|
+
/**
|
|
4072
|
+
* Status of the provider.
|
|
4073
|
+
* - `active`: The provider is active and can be used to authenticate users.
|
|
4074
|
+
* - `pending`: The provider is pending and is not yet fully configured.
|
|
4075
|
+
*/
|
|
4076
|
+
status: SAMLProviderStatus;
|
|
4169
4077
|
/** Metadata about the service provider. */
|
|
4170
4078
|
service: {
|
|
4171
4079
|
/**
|
|
@@ -4359,6 +4267,200 @@ export interface OpenAPISpecContent {
|
|
|
4359
4267
|
filesystem: object;
|
|
4360
4268
|
url: URL;
|
|
4361
4269
|
}
|
|
4270
|
+
export interface ConversationsIssuesCluster {
|
|
4271
|
+
object: 'issues-cluster';
|
|
4272
|
+
/** The ID of the conversations issues cluster */
|
|
4273
|
+
id: string;
|
|
4274
|
+
/** The label of the conversations issues cluster */
|
|
4275
|
+
label: string;
|
|
4276
|
+
createdAt: Timestamp;
|
|
4277
|
+
updatedAt: Timestamp;
|
|
4278
|
+
/** Name of the icon */
|
|
4279
|
+
icon: Icon;
|
|
4280
|
+
/** The summary of the conversations issues cluster */
|
|
4281
|
+
summary: string;
|
|
4282
|
+
/**
|
|
4283
|
+
* The weekly pulse of the conversations issues cluster for the past 3 months
|
|
4284
|
+
* @maxItems 13
|
|
4285
|
+
* @minItems 13
|
|
4286
|
+
*/
|
|
4287
|
+
weeklyPulse: number[];
|
|
4288
|
+
sources: Record<string, number>;
|
|
4289
|
+
/** The stats of the conversations issues cluster */
|
|
4290
|
+
stats: {
|
|
4291
|
+
/** The number of issues in the conversations issues cluster */
|
|
4292
|
+
issues: number;
|
|
4293
|
+
/** The number of conversations in the conversations issues cluster */
|
|
4294
|
+
conversations: number;
|
|
4295
|
+
/** The number of tasks in the conversations issues cluster */
|
|
4296
|
+
tasksTotal: number;
|
|
4297
|
+
/** The number of tasks in the backlog in the conversations issues cluster */
|
|
4298
|
+
tasksBacklog: number;
|
|
4299
|
+
/** The number of tasks done in the conversations issues cluster */
|
|
4300
|
+
tasksStarted: number;
|
|
4301
|
+
/** The number of tasks completed in the conversations issues cluster */
|
|
4302
|
+
tasksCompleted: number;
|
|
4303
|
+
/** The number of tasks canceled in the conversations issues cluster */
|
|
4304
|
+
tasksCancelled: number;
|
|
4305
|
+
};
|
|
4306
|
+
/** URLs associated with the conversations issues cluster */
|
|
4307
|
+
urls: {
|
|
4308
|
+
/**
|
|
4309
|
+
* URL of the conversations issues cluster in the API
|
|
4310
|
+
* @format uri
|
|
4311
|
+
*/
|
|
4312
|
+
location: string;
|
|
4313
|
+
/**
|
|
4314
|
+
* URL of the conversations issues cluster in the application
|
|
4315
|
+
* @format uri
|
|
4316
|
+
*/
|
|
4317
|
+
app: string;
|
|
4318
|
+
};
|
|
4319
|
+
}
|
|
4320
|
+
export interface ConversationIssue {
|
|
4321
|
+
object: 'conversation-issue';
|
|
4322
|
+
/** The ID of the conversation issue */
|
|
4323
|
+
id: string;
|
|
4324
|
+
/** The title of the conversation issue */
|
|
4325
|
+
title: string;
|
|
4326
|
+
/** The summary of the conversation issue */
|
|
4327
|
+
summary: string;
|
|
4328
|
+
createdAt: Timestamp;
|
|
4329
|
+
ingestedAt: Timestamp;
|
|
4330
|
+
/** The ID of the conversation the issue belongs to */
|
|
4331
|
+
conversation: string;
|
|
4332
|
+
/** The ID of the cluster the issue has been linked to */
|
|
4333
|
+
cluster?: string;
|
|
4334
|
+
/** URLs associated with the conversation issue */
|
|
4335
|
+
urls: {
|
|
4336
|
+
/**
|
|
4337
|
+
* URL of the conversation issue in the API
|
|
4338
|
+
* @format uri
|
|
4339
|
+
*/
|
|
4340
|
+
location: string;
|
|
4341
|
+
};
|
|
4342
|
+
}
|
|
4343
|
+
/** Integration source */
|
|
4344
|
+
export type ConversationSource = string | 'email';
|
|
4345
|
+
export interface Conversation {
|
|
4346
|
+
object: 'conversation';
|
|
4347
|
+
/** The ID of the conversation */
|
|
4348
|
+
id: string;
|
|
4349
|
+
/** The subject of the conversation */
|
|
4350
|
+
subject?: string;
|
|
4351
|
+
createdAt: Timestamp;
|
|
4352
|
+
processedAt?: Timestamp;
|
|
4353
|
+
/** Integration source */
|
|
4354
|
+
source: ConversationSource;
|
|
4355
|
+
/** URLs associated with the conversation */
|
|
4356
|
+
urls: {
|
|
4357
|
+
/**
|
|
4358
|
+
* URL of the conversation in the API
|
|
4359
|
+
* @format uri
|
|
4360
|
+
*/
|
|
4361
|
+
location: string;
|
|
4362
|
+
/**
|
|
4363
|
+
* URL of the conversation in the source
|
|
4364
|
+
* @format uri
|
|
4365
|
+
*/
|
|
4366
|
+
source?: string;
|
|
4367
|
+
};
|
|
4368
|
+
}
|
|
4369
|
+
export interface ConversationMetadata {
|
|
4370
|
+
/** URL to the conversation */
|
|
4371
|
+
url?: string;
|
|
4372
|
+
attributes?: Record<string, string>;
|
|
4373
|
+
/** Date of the conversation creation */
|
|
4374
|
+
createdAt?: Timestamp;
|
|
4375
|
+
}
|
|
4376
|
+
/** A message posted in the conversation by a user or a team member. */
|
|
4377
|
+
export interface ConversationPartMessage {
|
|
4378
|
+
type: 'message';
|
|
4379
|
+
role: 'user' | 'assistant' | 'team-member';
|
|
4380
|
+
/** Markdown or HTML body of the message. */
|
|
4381
|
+
body: string;
|
|
4382
|
+
}
|
|
4383
|
+
export type ConversationPart = ConversationPartMessage;
|
|
4384
|
+
export interface ConversationInput {
|
|
4385
|
+
/**
|
|
4386
|
+
* The unique identifier for the conversation, relative to the source in which it was created.
|
|
4387
|
+
* @minLength 1
|
|
4388
|
+
* @maxLength 255
|
|
4389
|
+
*/
|
|
4390
|
+
id: string;
|
|
4391
|
+
metadata?: ConversationMetadata;
|
|
4392
|
+
/**
|
|
4393
|
+
* The subject of the conversation.
|
|
4394
|
+
* @maxLength 512
|
|
4395
|
+
*/
|
|
4396
|
+
subject?: string;
|
|
4397
|
+
parts: ConversationPart[];
|
|
4398
|
+
}
|
|
4399
|
+
/** State and settings of the agent */
|
|
4400
|
+
export interface AgentsSetupState {
|
|
4401
|
+
/** The email address of the agent. Emails can be forwarded to it to ingest conversations. */
|
|
4402
|
+
email: string;
|
|
4403
|
+
/** The stats of the agent. */
|
|
4404
|
+
stats: {
|
|
4405
|
+
/** The number of tasks in the backlog. */
|
|
4406
|
+
backlogTasks: number;
|
|
4407
|
+
/** The number of tasks in progress. */
|
|
4408
|
+
startedTasks: number;
|
|
4409
|
+
/** The number of tasks that have been completed. */
|
|
4410
|
+
completedTasks: number;
|
|
4411
|
+
/** The number of tasks that have been canceled. */
|
|
4412
|
+
canceledTasks: number;
|
|
4413
|
+
/** The number of conversations the agent has indexed. */
|
|
4414
|
+
conversations: number;
|
|
4415
|
+
/** The number of issues the agent has indexed. */
|
|
4416
|
+
issues: number;
|
|
4417
|
+
/** The number of issues clusters the agent has indexed. */
|
|
4418
|
+
issuesClusters: number;
|
|
4419
|
+
sources: Record<string, number>;
|
|
4420
|
+
};
|
|
4421
|
+
/** The settings for the agent. */
|
|
4422
|
+
settings: object;
|
|
4423
|
+
}
|
|
4424
|
+
/** 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. */
|
|
4425
|
+
export declare enum AgentTaskStatus {
|
|
4426
|
+
Backlog = "backlog",
|
|
4427
|
+
Started = "started",
|
|
4428
|
+
Completed = "completed",
|
|
4429
|
+
Canceled = "canceled"
|
|
4430
|
+
}
|
|
4431
|
+
export interface AgentTask {
|
|
4432
|
+
object: 'agent-task';
|
|
4433
|
+
/** The ID of the agent task */
|
|
4434
|
+
id: string;
|
|
4435
|
+
/** The title of the agent task */
|
|
4436
|
+
title: string;
|
|
4437
|
+
/** The description of the agent task */
|
|
4438
|
+
description: string;
|
|
4439
|
+
instructions: JSONDocument;
|
|
4440
|
+
/** 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. */
|
|
4441
|
+
status: AgentTaskStatus;
|
|
4442
|
+
createdAt: Timestamp;
|
|
4443
|
+
updatedAt: Timestamp;
|
|
4444
|
+
/** ID of the cluster the agent task is associated with. */
|
|
4445
|
+
cluster?: string;
|
|
4446
|
+
/** ID of the space the agent task will act on. */
|
|
4447
|
+
space: string;
|
|
4448
|
+
/** ID of the change request the agent task is associated with. */
|
|
4449
|
+
changeRequest?: string;
|
|
4450
|
+
/** URLs associated with the agent task */
|
|
4451
|
+
urls: {
|
|
4452
|
+
/**
|
|
4453
|
+
* URL of the agent task in the API
|
|
4454
|
+
* @format uri
|
|
4455
|
+
*/
|
|
4456
|
+
location: string;
|
|
4457
|
+
/**
|
|
4458
|
+
* URL of the agent task in the application
|
|
4459
|
+
* @format uri
|
|
4460
|
+
*/
|
|
4461
|
+
app: string;
|
|
4462
|
+
};
|
|
4463
|
+
}
|
|
4362
4464
|
/**
|
|
4363
4465
|
* Title of the translation settings
|
|
4364
4466
|
* @minLength 1
|
|
@@ -4490,9 +4592,6 @@ export type BillingOperationPreviewResponse = {
|
|
|
4490
4592
|
/** User must checkout to complete the operation. */
|
|
4491
4593
|
type: 'checkout';
|
|
4492
4594
|
invoice?: BillingInvoicePreview;
|
|
4493
|
-
} | {
|
|
4494
|
-
/** User cannot proceed with the operation due to lack of permissions. */
|
|
4495
|
-
type: 'no-permissions';
|
|
4496
4595
|
} | {
|
|
4497
4596
|
/** User needs to go through the legacy upgrade flow. */
|
|
4498
4597
|
type: 'legacy-upgrade';
|
|
@@ -4886,10 +4985,10 @@ export type SitePublishingAuth = (VisitorAuthCustomBackend | VisitorAuthIntegrat
|
|
|
4886
4985
|
};
|
|
4887
4986
|
export type SitePublishingAuthUpdate = (VisitorAuthCustomBackend | VisitorAuthIntegrationBackend) & {
|
|
4888
4987
|
/**
|
|
4889
|
-
* A fallback URL that will be used if authentication fails.
|
|
4988
|
+
* A fallback URL that will be used if authentication fails. If not provided, the fallback URL will not be changed. If set to null, the fallback URL will be unset.
|
|
4890
4989
|
* @format uri
|
|
4891
4990
|
*/
|
|
4892
|
-
fallbackURL?: string;
|
|
4991
|
+
fallbackURL?: string | null;
|
|
4893
4992
|
};
|
|
4894
4993
|
export type SiteSearchScope = {
|
|
4895
4994
|
/** Search across all sections of a site, only including the default content of each section. This scope is wide and shallow. You may optionally specify a list of additional site spaces to search in alongside the default content. */
|
|
@@ -4953,6 +5052,7 @@ export interface UserSitePermission {
|
|
|
4953
5052
|
}
|
|
4954
5053
|
export declare enum AIMessageRole {
|
|
4955
5054
|
User = "user",
|
|
5055
|
+
Assistant = "assistant",
|
|
4956
5056
|
Developer = "developer"
|
|
4957
5057
|
}
|
|
4958
5058
|
/** Attachment to attach search results to a message. */
|
|
@@ -4980,10 +5080,22 @@ export interface AIMessageAttachmentPages {
|
|
|
4980
5080
|
spaceId: string;
|
|
4981
5081
|
}
|
|
4982
5082
|
export type AIMessageAttachment = AIMessageAttachmentSearch | AIMessageAttachmentVisitorProfile | AIMessageAttachmentPage | AIMessageAttachmentPages;
|
|
5083
|
+
/** Context about the current user sending a message. */
|
|
5084
|
+
export interface AIMessageContext {
|
|
5085
|
+
location?: {
|
|
5086
|
+
/** ID of the current space. */
|
|
5087
|
+
spaceId: string;
|
|
5088
|
+
/** ID of the current page. */
|
|
5089
|
+
pageId: string;
|
|
5090
|
+
};
|
|
5091
|
+
}
|
|
5092
|
+
/** Input version of an AI message. */
|
|
4983
5093
|
export interface AIMessageInput {
|
|
4984
5094
|
role: AIMessageRole;
|
|
4985
5095
|
content: string | JSONDocument;
|
|
4986
5096
|
attachments?: AIMessageAttachment[];
|
|
5097
|
+
/** Context about the current user sending a message. */
|
|
5098
|
+
context?: AIMessageContext;
|
|
4987
5099
|
}
|
|
4988
5100
|
/** Indicate that the AI should response with a JSON object corresponding to the provided schema. */
|
|
4989
5101
|
export interface AIOutputObject {
|
|
@@ -5014,18 +5126,26 @@ export interface AIToolCapabilities {
|
|
|
5014
5126
|
/** 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. */
|
|
5015
5127
|
export interface AIStreamResponseFinish {
|
|
5016
5128
|
type: 'response_finish';
|
|
5129
|
+
/** The ID of the message that this event is composing. */
|
|
5130
|
+
messageId: string;
|
|
5017
5131
|
/** The ID of the response */
|
|
5018
5132
|
responseId: string;
|
|
5019
5133
|
}
|
|
5020
5134
|
/** 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. */
|
|
5021
5135
|
export interface AIStreamResponseDocument {
|
|
5022
5136
|
type: 'response_document';
|
|
5137
|
+
/** The ID of the message that this event is composing. */
|
|
5138
|
+
messageId: string;
|
|
5139
|
+
/** The index of the step of the message that this event is composing. */
|
|
5140
|
+
stepIndex: number;
|
|
5023
5141
|
operation: 'insert' | 'update';
|
|
5024
|
-
blocks:
|
|
5142
|
+
blocks: DocumentBlocksTopLevels[];
|
|
5025
5143
|
}
|
|
5026
5144
|
/** Message emitted by the server to indicate a chunk of the JSON object response. */
|
|
5027
5145
|
export interface AIStreamResponseObject {
|
|
5028
5146
|
type: 'response_object';
|
|
5147
|
+
/** The ID of the message that this event is composing. */
|
|
5148
|
+
messageId: string;
|
|
5029
5149
|
/** The chunk of the JSON object response */
|
|
5030
5150
|
jsonChunk: string;
|
|
5031
5151
|
}
|
|
@@ -5060,10 +5180,77 @@ export interface AIToolCallSearch {
|
|
|
5060
5180
|
query: string;
|
|
5061
5181
|
results: AIToolCallSearchResult[];
|
|
5062
5182
|
}
|
|
5063
|
-
export
|
|
5183
|
+
export interface AIToolCallEditPage {
|
|
5184
|
+
tool: 'editPage';
|
|
5185
|
+
/** The ID of the space being edited. */
|
|
5186
|
+
spaceId: string;
|
|
5187
|
+
page: ChangedRevisionPage;
|
|
5188
|
+
}
|
|
5189
|
+
export interface AIToolCallCreatePage {
|
|
5190
|
+
tool: 'createPage';
|
|
5191
|
+
/** The ID of the space being edited. */
|
|
5192
|
+
spaceId: string;
|
|
5193
|
+
page: ChangedRevisionPage;
|
|
5194
|
+
}
|
|
5195
|
+
export interface AIToolCallDeletePage {
|
|
5196
|
+
tool: 'deletePage';
|
|
5197
|
+
/** The ID of the space being edited. */
|
|
5198
|
+
spaceId: string;
|
|
5199
|
+
page: ChangedRevisionPage;
|
|
5200
|
+
}
|
|
5201
|
+
export interface AIToolCallRenamePage {
|
|
5202
|
+
tool: 'renamePage';
|
|
5203
|
+
/** The ID of the space being edited. */
|
|
5204
|
+
spaceId: string;
|
|
5205
|
+
page: ChangedRevisionPage;
|
|
5206
|
+
/** The new title of the page. */
|
|
5207
|
+
title: string;
|
|
5208
|
+
}
|
|
5209
|
+
export interface AIToolCallMovePage {
|
|
5210
|
+
tool: 'movePage';
|
|
5211
|
+
/** The ID of the space being edited. */
|
|
5212
|
+
spaceId: string;
|
|
5213
|
+
page: ChangedRevisionPage;
|
|
5214
|
+
to?: ChangedRevisionPage;
|
|
5215
|
+
/**
|
|
5216
|
+
* Indicates how the page was moved relative to the "to" page.
|
|
5217
|
+
* - `within`: moved as the last child of the target page (or to the root when `to` is omitted)
|
|
5218
|
+
* - `before`: moved directly before the target page
|
|
5219
|
+
* - `after`: moved directly after the target page
|
|
5220
|
+
*/
|
|
5221
|
+
moveType: 'within' | 'before' | 'after';
|
|
5222
|
+
}
|
|
5223
|
+
export interface AIToolCallListModifiedPages {
|
|
5224
|
+
tool: 'listModifiedPages';
|
|
5225
|
+
/** The ID of the space being accessed. */
|
|
5226
|
+
spaceId: string;
|
|
5227
|
+
}
|
|
5228
|
+
export interface AIToolCallGetPageDiff {
|
|
5229
|
+
tool: 'getPageDiff';
|
|
5230
|
+
/** The ID of the space being accessed. */
|
|
5231
|
+
spaceId: string;
|
|
5232
|
+
page: ChangedRevisionPage;
|
|
5233
|
+
}
|
|
5234
|
+
export interface AIToolCallCreateAgentTask {
|
|
5235
|
+
tool: 'createAgentTask';
|
|
5236
|
+
/** The ID of the space the task belongs to. */
|
|
5237
|
+
spaceId: string;
|
|
5238
|
+
action: 'create' | 'update';
|
|
5239
|
+
task: {
|
|
5240
|
+
/** The unique identifier of the task. */
|
|
5241
|
+
id: string;
|
|
5242
|
+
/** The title of the task. */
|
|
5243
|
+
title: string;
|
|
5244
|
+
};
|
|
5245
|
+
}
|
|
5246
|
+
export type AIToolCall = AIToolCallGetPageContent | AIToolCallGetPages | AIToolCallSearch | AIToolCallEditPage | AIToolCallCreatePage | AIToolCallDeletePage | AIToolCallRenamePage | AIToolCallMovePage | AIToolCallListModifiedPages | AIToolCallGetPageDiff | AIToolCallCreateAgentTask;
|
|
5064
5247
|
/** Message emitted by the server to indicate that the AI has called a tool. */
|
|
5065
5248
|
export interface AIStreamResponseToolCall {
|
|
5066
5249
|
type: 'response_tool_call';
|
|
5250
|
+
/** The ID of the message that this event is composing. */
|
|
5251
|
+
messageId: string;
|
|
5252
|
+
/** The index of the step of the message that this event is composing. */
|
|
5253
|
+
stepIndex: number;
|
|
5067
5254
|
toolCall: AIToolCall;
|
|
5068
5255
|
}
|
|
5069
5256
|
export type AIStreamResponse = AIStreamResponseFinish | AIStreamResponseDocument | AIStreamResponseObject | AIStreamResponseToolCall;
|
|
@@ -6453,8 +6640,22 @@ export interface TranslationSettingsChannel {
|
|
|
6453
6640
|
channel: 'translation-settings';
|
|
6454
6641
|
translation: string;
|
|
6455
6642
|
}
|
|
6643
|
+
/** Subscription channel for an agent task. */
|
|
6644
|
+
export interface AgentTaskChannel {
|
|
6645
|
+
channel: 'agent-task';
|
|
6646
|
+
/** The ID of the organization. */
|
|
6647
|
+
organization: string;
|
|
6648
|
+
/** The ID of the agent task. */
|
|
6649
|
+
agentTask: string;
|
|
6650
|
+
}
|
|
6651
|
+
/** Subscription channel for agent tasks. */
|
|
6652
|
+
export interface AgentTasksChannel {
|
|
6653
|
+
channel: 'agent-tasks';
|
|
6654
|
+
/** The ID of the organization. */
|
|
6655
|
+
organization: string;
|
|
6656
|
+
}
|
|
6456
6657
|
/** Channel to subscribe to for realtime updates. */
|
|
6457
|
-
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;
|
|
6658
|
+
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;
|
|
6458
6659
|
export interface GitSyncOperationChannelData {
|
|
6459
6660
|
channel: 'space-gitsync-operation';
|
|
6460
6661
|
data: GitSyncOperation;
|
|
@@ -6582,6 +6783,55 @@ export interface Seat {
|
|
|
6582
6783
|
/** @format date-time */
|
|
6583
6784
|
updatedAt: string;
|
|
6584
6785
|
}
|
|
6786
|
+
/** A step in a message from the AI agent. */
|
|
6787
|
+
export interface AIMessageStep {
|
|
6788
|
+
content: JSONDocument;
|
|
6789
|
+
toolCalls?: AIToolCall[];
|
|
6790
|
+
}
|
|
6791
|
+
export interface AIMessage {
|
|
6792
|
+
id: string;
|
|
6793
|
+
role: AIMessageRole;
|
|
6794
|
+
steps: AIMessageStep[];
|
|
6795
|
+
}
|
|
6796
|
+
/** Request to reset the chat. */
|
|
6797
|
+
export interface AgentRequestReset {
|
|
6798
|
+
type: 'reset';
|
|
6799
|
+
}
|
|
6800
|
+
/** Request to post a message to the agent. */
|
|
6801
|
+
export interface AgentRequestPostMessage {
|
|
6802
|
+
type: 'post_message';
|
|
6803
|
+
/** Input version of an AI message. */
|
|
6804
|
+
message: AIMessageInput;
|
|
6805
|
+
}
|
|
6806
|
+
/** Payload to send to the agent. */
|
|
6807
|
+
export type AgentRequest = AgentRequestReset | AgentRequestPostMessage;
|
|
6808
|
+
/** Payload emitted by the agent to reset the messages. */
|
|
6809
|
+
export interface AgentStreamMessages {
|
|
6810
|
+
type: 'messages';
|
|
6811
|
+
operation: 'append' | 'replace';
|
|
6812
|
+
messages: AIMessage[];
|
|
6813
|
+
}
|
|
6814
|
+
/** Payload emitted by the agent with a partial message. */
|
|
6815
|
+
export interface AgentStreamMessageResponse {
|
|
6816
|
+
type: 'message_response';
|
|
6817
|
+
response: AIStreamResponse;
|
|
6818
|
+
}
|
|
6819
|
+
export declare enum AgentStatus {
|
|
6820
|
+
Idle = "idle",
|
|
6821
|
+
Processing = "processing",
|
|
6822
|
+
Errored = "errored"
|
|
6823
|
+
}
|
|
6824
|
+
export interface AgentState {
|
|
6825
|
+
status: AgentStatus;
|
|
6826
|
+
/** A list of response suggestions for the user to select from. */
|
|
6827
|
+
suggestions: string[];
|
|
6828
|
+
}
|
|
6829
|
+
/** Payload emitted by the agent with its current state. */
|
|
6830
|
+
export interface AgentStreamState {
|
|
6831
|
+
type: 'state';
|
|
6832
|
+
state: AgentState;
|
|
6833
|
+
}
|
|
6834
|
+
export type AgentStream = AgentStreamMessages | AgentStreamMessageResponse | AgentStreamState;
|
|
6585
6835
|
export type RequestSpaceTrackPageView = SpaceTrackPageView;
|
|
6586
6836
|
export type RequestSiteTrackPageView = SiteTrackPageView;
|
|
6587
6837
|
export type RequestPublishIntegration = PublishIntegration;
|
|
@@ -6594,7 +6844,6 @@ export type RequestImportGitRepository = ImportGitRepository;
|
|
|
6594
6844
|
export type RequestExportToGitRepository = ExportToGitRepository;
|
|
6595
6845
|
export type RequestImportContent = ImportContent;
|
|
6596
6846
|
export type RequestCreateSpace = CreateSpace;
|
|
6597
|
-
export type RequestCreateChangeRequest = CreateChangeRequest;
|
|
6598
6847
|
export type RequestRenderIntegrationUI = RenderIntegrationUI;
|
|
6599
6848
|
export type RequestUpdateContentPublishingAuth = UpdateContentPublishingAuth;
|
|
6600
6849
|
export type RequestCreateOrganization = CreateOrganization;
|
|
@@ -6721,6 +6970,30 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6721
6970
|
message: string;
|
|
6722
6971
|
};
|
|
6723
6972
|
}>>;
|
|
6973
|
+
/**
|
|
6974
|
+
* @description Update a GitBook account's details.
|
|
6975
|
+
*
|
|
6976
|
+
* @tags users, critical
|
|
6977
|
+
* @name UpdateUserById
|
|
6978
|
+
* @summary Update a user by its ID
|
|
6979
|
+
* @request PATCH:/users/{userId}
|
|
6980
|
+
* @secure
|
|
6981
|
+
*/
|
|
6982
|
+
updateUserById: (userId: string, data: {
|
|
6983
|
+
/**
|
|
6984
|
+
* Full name for the user
|
|
6985
|
+
* @minLength 1
|
|
6986
|
+
* @maxLength 64
|
|
6987
|
+
*/
|
|
6988
|
+
displayName?: string;
|
|
6989
|
+
photoURL?: URL;
|
|
6990
|
+
}, params?: RequestParams) => Promise<HttpResponse<User, {
|
|
6991
|
+
error: {
|
|
6992
|
+
/** @format int32 */
|
|
6993
|
+
code: 404;
|
|
6994
|
+
message: string;
|
|
6995
|
+
};
|
|
6996
|
+
}>>;
|
|
6724
6997
|
};
|
|
6725
6998
|
spaces: {
|
|
6726
6999
|
/**
|
|
@@ -7399,7 +7672,12 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7399
7672
|
* @request POST:/spaces/{spaceId}/change-requests
|
|
7400
7673
|
* @secure
|
|
7401
7674
|
*/
|
|
7402
|
-
createChangeRequest: (spaceId: string, data:
|
|
7675
|
+
createChangeRequest: (spaceId: string, data: {
|
|
7676
|
+
/** Subject of the change-request */
|
|
7677
|
+
subject?: string;
|
|
7678
|
+
/** ID of the agent task to implement */
|
|
7679
|
+
agentTaskId?: string;
|
|
7680
|
+
}, params?: RequestParams) => Promise<HttpResponse<ChangeRequest, any>>;
|
|
7403
7681
|
/**
|
|
7404
7682
|
* No description
|
|
7405
7683
|
*
|
|
@@ -7637,6 +7915,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7637
7915
|
status?: "all" | "open" | "resolved";
|
|
7638
7916
|
/** The target page of the comment */
|
|
7639
7917
|
targetPage?: string;
|
|
7918
|
+
/** User IDs to filter queried comments on */
|
|
7919
|
+
authors?: string[];
|
|
7640
7920
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
7641
7921
|
items: Comment[];
|
|
7642
7922
|
}, any>>;
|
|
@@ -8256,6 +8536,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8256
8536
|
format?: "document" | "markdown";
|
|
8257
8537
|
/** The target page of the comment */
|
|
8258
8538
|
targetPage?: string;
|
|
8539
|
+
/** User IDs to filter queried comments on */
|
|
8540
|
+
authors?: string[];
|
|
8259
8541
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
8260
8542
|
items: Comment[];
|
|
8261
8543
|
}, any>>;
|
|
@@ -8368,6 +8650,48 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8368
8650
|
* @secure
|
|
8369
8651
|
*/
|
|
8370
8652
|
deleteCommentReplyInSpace: (spaceId: string, commentId: string, commentReplyId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
8653
|
+
/**
|
|
8654
|
+
* No description
|
|
8655
|
+
*
|
|
8656
|
+
* @tags space-comments, critical
|
|
8657
|
+
* @name ListCommentersInSpace
|
|
8658
|
+
* @summary List all users who commented in a space
|
|
8659
|
+
* @request GET:/spaces/{spaceId}/commenters
|
|
8660
|
+
* @secure
|
|
8661
|
+
*/
|
|
8662
|
+
listCommentersInSpace: (spaceId: string, query?: {
|
|
8663
|
+
/** Identifier of the page results to fetch. */
|
|
8664
|
+
page?: string;
|
|
8665
|
+
/**
|
|
8666
|
+
* The number of results per page
|
|
8667
|
+
* @min 0
|
|
8668
|
+
* @max 1000
|
|
8669
|
+
*/
|
|
8670
|
+
limit?: number;
|
|
8671
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
8672
|
+
items: OrganizationMember[];
|
|
8673
|
+
}, any>>;
|
|
8674
|
+
/**
|
|
8675
|
+
* No description
|
|
8676
|
+
*
|
|
8677
|
+
* @tags change-request-comments, critical
|
|
8678
|
+
* @name ListCommentersInChangeRequest
|
|
8679
|
+
* @summary List all users who commented in a CR
|
|
8680
|
+
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/commenters
|
|
8681
|
+
* @secure
|
|
8682
|
+
*/
|
|
8683
|
+
listCommentersInChangeRequest: (spaceId: string, changeRequestId: string, query?: {
|
|
8684
|
+
/** Identifier of the page results to fetch. */
|
|
8685
|
+
page?: string;
|
|
8686
|
+
/**
|
|
8687
|
+
* The number of results per page
|
|
8688
|
+
* @min 0
|
|
8689
|
+
* @max 1000
|
|
8690
|
+
*/
|
|
8691
|
+
limit?: number;
|
|
8692
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
8693
|
+
items: OrganizationMember[];
|
|
8694
|
+
}, any>>;
|
|
8371
8695
|
/**
|
|
8372
8696
|
* No description
|
|
8373
8697
|
*
|
|
@@ -8840,6 +9164,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8840
9164
|
contentSources?: boolean;
|
|
8841
9165
|
/** If defined, only list integrations owned by the given organization. */
|
|
8842
9166
|
owner?: string;
|
|
9167
|
+
/** Filter the integrations by scope */
|
|
9168
|
+
scope?: IntegrationScope;
|
|
8843
9169
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
8844
9170
|
items: Integration[];
|
|
8845
9171
|
}, any>>;
|
|
@@ -10410,6 +10736,163 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10410
10736
|
message: string;
|
|
10411
10737
|
};
|
|
10412
10738
|
}>>;
|
|
10739
|
+
/**
|
|
10740
|
+
* No description
|
|
10741
|
+
*
|
|
10742
|
+
* @tags agents
|
|
10743
|
+
* @name ListConversationsIssuesClusters
|
|
10744
|
+
* @summary List conversations issues clusters
|
|
10745
|
+
* @request GET:/orgs/{organizationId}/conversations-clusters
|
|
10746
|
+
* @secure
|
|
10747
|
+
*/
|
|
10748
|
+
listConversationsIssuesClusters: (organizationId: string, query?: {
|
|
10749
|
+
/** Identifier of the page results to fetch. */
|
|
10750
|
+
page?: string;
|
|
10751
|
+
/**
|
|
10752
|
+
* The number of results per page
|
|
10753
|
+
* @min 0
|
|
10754
|
+
* @max 1000
|
|
10755
|
+
*/
|
|
10756
|
+
limit?: number;
|
|
10757
|
+
/**
|
|
10758
|
+
* An order for the items in the list
|
|
10759
|
+
* @default "desc"
|
|
10760
|
+
*/
|
|
10761
|
+
order?: "asc" | "desc";
|
|
10762
|
+
/** @default "updatedAt" */
|
|
10763
|
+
orderBy?: "updatedAt" | "issues" | "conversations" | "tasksTotal" | "tasksBacklog" | "tasksStarted";
|
|
10764
|
+
/** Filter by status */
|
|
10765
|
+
status?: "pending" | "analysing";
|
|
10766
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
10767
|
+
items: ConversationsIssuesCluster[];
|
|
10768
|
+
}, {
|
|
10769
|
+
error: {
|
|
10770
|
+
/** @format int32 */
|
|
10771
|
+
code: 404;
|
|
10772
|
+
message: string;
|
|
10773
|
+
};
|
|
10774
|
+
}>>;
|
|
10775
|
+
/**
|
|
10776
|
+
* No description
|
|
10777
|
+
*
|
|
10778
|
+
* @tags agents
|
|
10779
|
+
* @name GetConversationsIssuesCluster
|
|
10780
|
+
* @summary Get a conversations issues cluster by its identifier
|
|
10781
|
+
* @request GET:/orgs/{organizationId}/conversations-clusters/{clusterId}
|
|
10782
|
+
* @secure
|
|
10783
|
+
*/
|
|
10784
|
+
getConversationsIssuesCluster: (organizationId: string, clusterId: string, params?: RequestParams) => Promise<HttpResponse<ConversationsIssuesCluster, any>>;
|
|
10785
|
+
/**
|
|
10786
|
+
* No description
|
|
10787
|
+
*
|
|
10788
|
+
* @tags agents
|
|
10789
|
+
* @name ListConversationsIssuesInCluster
|
|
10790
|
+
* @summary List conversations issues in a cluster
|
|
10791
|
+
* @request GET:/orgs/{organizationId}/conversations-clusters/{clusterId}/issues
|
|
10792
|
+
* @secure
|
|
10793
|
+
*/
|
|
10794
|
+
listConversationsIssuesInCluster: (organizationId: string, clusterId: string, query?: {
|
|
10795
|
+
/** Identifier of the page results to fetch. */
|
|
10796
|
+
page?: string;
|
|
10797
|
+
/**
|
|
10798
|
+
* The number of results per page
|
|
10799
|
+
* @min 0
|
|
10800
|
+
* @max 1000
|
|
10801
|
+
*/
|
|
10802
|
+
limit?: number;
|
|
10803
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
10804
|
+
items: {
|
|
10805
|
+
issue: ConversationIssue;
|
|
10806
|
+
conversation: Conversation;
|
|
10807
|
+
}[];
|
|
10808
|
+
}, {
|
|
10809
|
+
error: {
|
|
10810
|
+
/** @format int32 */
|
|
10811
|
+
code: 404;
|
|
10812
|
+
message: string;
|
|
10813
|
+
};
|
|
10814
|
+
}>>;
|
|
10815
|
+
/**
|
|
10816
|
+
* No description
|
|
10817
|
+
*
|
|
10818
|
+
* @tags conversations
|
|
10819
|
+
* @name IngestConversation
|
|
10820
|
+
* @summary Ingest conversations
|
|
10821
|
+
* @request POST:/orgs/{organizationId}/conversations
|
|
10822
|
+
* @secure
|
|
10823
|
+
*/
|
|
10824
|
+
ingestConversation: (organizationId: string, data: ConversationInput | ConversationInput[], params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
10825
|
+
/**
|
|
10826
|
+
* @description Get the state of the agent.
|
|
10827
|
+
*
|
|
10828
|
+
* @tags agents, critical
|
|
10829
|
+
* @name GetAgentSetupState
|
|
10830
|
+
* @summary Get the agents setup state
|
|
10831
|
+
* @request GET:/orgs/{organizationId}/agents-setup
|
|
10832
|
+
* @secure
|
|
10833
|
+
*/
|
|
10834
|
+
getAgentSetupState: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<AgentsSetupState, any>>;
|
|
10835
|
+
/**
|
|
10836
|
+
* No description
|
|
10837
|
+
*
|
|
10838
|
+
* @tags agents
|
|
10839
|
+
* @name ListAgentTasks
|
|
10840
|
+
* @summary List agent tasks
|
|
10841
|
+
* @request GET:/orgs/{organizationId}/agent-tasks
|
|
10842
|
+
* @secure
|
|
10843
|
+
*/
|
|
10844
|
+
listAgentTasks: (organizationId: string, query?: {
|
|
10845
|
+
/** Identifier of the page results to fetch. */
|
|
10846
|
+
page?: string;
|
|
10847
|
+
/**
|
|
10848
|
+
* The number of results per page
|
|
10849
|
+
* @min 0
|
|
10850
|
+
* @max 1000
|
|
10851
|
+
*/
|
|
10852
|
+
limit?: number;
|
|
10853
|
+
/** The ID of the conversations issues cluster to filter the agent tasks by */
|
|
10854
|
+
cluster?: string;
|
|
10855
|
+
/** The ID of the space to filter the agent tasks by */
|
|
10856
|
+
space?: string;
|
|
10857
|
+
/** The statuses of the agent tasks to filter by */
|
|
10858
|
+
status?: AgentTaskStatus[];
|
|
10859
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
10860
|
+
items: AgentTask[];
|
|
10861
|
+
}, {
|
|
10862
|
+
error: {
|
|
10863
|
+
/** @format int32 */
|
|
10864
|
+
code: 404;
|
|
10865
|
+
message: string;
|
|
10866
|
+
};
|
|
10867
|
+
}>>;
|
|
10868
|
+
/**
|
|
10869
|
+
* No description
|
|
10870
|
+
*
|
|
10871
|
+
* @tags agents
|
|
10872
|
+
* @name GetAgentTask
|
|
10873
|
+
* @summary Get an agent task by its identifier
|
|
10874
|
+
* @request GET:/orgs/{organizationId}/agent-tasks/{agentTaskId}
|
|
10875
|
+
* @secure
|
|
10876
|
+
*/
|
|
10877
|
+
getAgentTask: (organizationId: string, agentTaskId: string, params?: RequestParams) => Promise<HttpResponse<AgentTask, {
|
|
10878
|
+
error: {
|
|
10879
|
+
/** @format int32 */
|
|
10880
|
+
code: 404;
|
|
10881
|
+
message: string;
|
|
10882
|
+
};
|
|
10883
|
+
}>>;
|
|
10884
|
+
/**
|
|
10885
|
+
* No description
|
|
10886
|
+
*
|
|
10887
|
+
* @tags agents
|
|
10888
|
+
* @name UpdateAgentTask
|
|
10889
|
+
* @summary Update an agent task by its identifier
|
|
10890
|
+
* @request PATCH:/orgs/{organizationId}/agent-tasks/{agentTaskId}
|
|
10891
|
+
* @secure
|
|
10892
|
+
*/
|
|
10893
|
+
updateAgentTask: (organizationId: string, agentTaskId: string, data: {
|
|
10894
|
+
status: "backlog" | "started" | "canceled";
|
|
10895
|
+
}, params?: RequestParams) => Promise<HttpResponse<AgentTask, any>>;
|
|
10413
10896
|
/**
|
|
10414
10897
|
* No description
|
|
10415
10898
|
*
|
|
@@ -11690,6 +12173,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11690
12173
|
streamAiResponseInSite: (organizationId: string, siteId: string, data: {
|
|
11691
12174
|
/** The ID of the previous response to continue from */
|
|
11692
12175
|
previousResponseId?: string;
|
|
12176
|
+
/** Instructions for the AI */
|
|
12177
|
+
instructions?: string;
|
|
11693
12178
|
input: AIMessageInput[];
|
|
11694
12179
|
output: AIOutputFormat;
|
|
11695
12180
|
model?: AIModel;
|