@gitbook/api 0.9.0 → 0.10.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 +35 -25
- package/dist/index.cjs +9 -8
- package/dist/index.js +9 -8
- package/package.json +1 -1
- package/spec/openapi.json +164 -80
- package/spec/openapi.yaml +104 -47
package/dist/client.d.ts
CHANGED
|
@@ -79,7 +79,7 @@ export interface RequestPublishIntegration {
|
|
|
79
79
|
/** Content of the script to use */
|
|
80
80
|
script: string;
|
|
81
81
|
/** The ID or subdomain of the organization under which the integration should be published */
|
|
82
|
-
organization
|
|
82
|
+
organization: string;
|
|
83
83
|
/** Secrets stored on the integration and passed at runtime. */
|
|
84
84
|
secrets?: IntegrationSecrets;
|
|
85
85
|
/**
|
|
@@ -304,9 +304,6 @@ export interface UserAPIToken {
|
|
|
304
304
|
export declare type UserAPITokenExtended = UserAPIToken & {
|
|
305
305
|
token: string;
|
|
306
306
|
};
|
|
307
|
-
export interface UserTarget {
|
|
308
|
-
user: string;
|
|
309
|
-
}
|
|
310
307
|
export interface Team {
|
|
311
308
|
/** Type of Object, always equals to "team" */
|
|
312
309
|
object: 'team';
|
|
@@ -458,11 +455,7 @@ export interface Space {
|
|
|
458
455
|
public?: string;
|
|
459
456
|
};
|
|
460
457
|
/** ID of the organization owning this space */
|
|
461
|
-
organization
|
|
462
|
-
/** ID of the user owning this space */
|
|
463
|
-
user?: string;
|
|
464
|
-
/** If the space is part of the private content of a user, the property is equal to the ID of the user owning it */
|
|
465
|
-
private?: string;
|
|
458
|
+
organization: string;
|
|
466
459
|
/** ID of the parent collection. */
|
|
467
460
|
parent?: string;
|
|
468
461
|
}
|
|
@@ -804,6 +797,7 @@ export interface Capture {
|
|
|
804
797
|
speech?: number;
|
|
805
798
|
'thread.message'?: number;
|
|
806
799
|
};
|
|
800
|
+
/** An array of contributors to the capture. The first contributor is the one who triggered the capture (either a user or an integration). */
|
|
807
801
|
contributors: (Integration | User)[];
|
|
808
802
|
/** Output document for the capture. Is not set when capture is not finished. */
|
|
809
803
|
output?: Document;
|
|
@@ -1033,6 +1027,9 @@ export interface SearchAIQuery {
|
|
|
1033
1027
|
export interface SearchAIAnswer {
|
|
1034
1028
|
text: string;
|
|
1035
1029
|
followupQuestions: string[];
|
|
1030
|
+
/** The sources used to generate the answer. */
|
|
1031
|
+
sources: SearchAIAnswerSource[];
|
|
1032
|
+
/** The pages used to generate the answer. Deprecated - use sources instead. */
|
|
1036
1033
|
pages: {
|
|
1037
1034
|
page: string;
|
|
1038
1035
|
revision: string;
|
|
@@ -1040,6 +1037,23 @@ export interface SearchAIAnswer {
|
|
|
1040
1037
|
sections: string[];
|
|
1041
1038
|
}[];
|
|
1042
1039
|
}
|
|
1040
|
+
export declare type SearchAIAnswerSource = {
|
|
1041
|
+
type: 'page' | 'entity' | 'capture';
|
|
1042
|
+
} & ({
|
|
1043
|
+
type: 'page';
|
|
1044
|
+
page: string;
|
|
1045
|
+
revision: string;
|
|
1046
|
+
space: string;
|
|
1047
|
+
sections: string[];
|
|
1048
|
+
} | {
|
|
1049
|
+
type: 'entity';
|
|
1050
|
+
id: string;
|
|
1051
|
+
integration?: string;
|
|
1052
|
+
} | {
|
|
1053
|
+
type: 'capture';
|
|
1054
|
+
id: string;
|
|
1055
|
+
source: string;
|
|
1056
|
+
});
|
|
1043
1057
|
/**
|
|
1044
1058
|
* Questions recommended by the AI for the given content.
|
|
1045
1059
|
*/
|
|
@@ -1384,7 +1398,7 @@ export interface IntegrationEnvironment {
|
|
|
1384
1398
|
installation?: string;
|
|
1385
1399
|
};
|
|
1386
1400
|
}
|
|
1387
|
-
export declare type IntegrationInstallationTarget =
|
|
1401
|
+
export declare type IntegrationInstallationTarget = OrganizationTarget;
|
|
1388
1402
|
/**
|
|
1389
1403
|
* Configuration of the integration at the account level
|
|
1390
1404
|
*/
|
|
@@ -2666,21 +2680,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
2666
2680
|
updatePreferencesForAuthenticatedUser: (data: {
|
|
2667
2681
|
theme: UserPreferencesTheme;
|
|
2668
2682
|
}, params?: RequestParams) => Promise<HttpResponse<UserPreferences, Error>>;
|
|
2669
|
-
/**
|
|
2670
|
-
* @description Lists spaces that the authenticated user explicitly own.
|
|
2671
|
-
*
|
|
2672
|
-
* @tags users
|
|
2673
|
-
* @name ListSpacesForAuthenticatedUser
|
|
2674
|
-
* @summary List spaces for the authenticated user
|
|
2675
|
-
* @request GET:/user/spaces
|
|
2676
|
-
* @secure
|
|
2677
|
-
*/
|
|
2678
|
-
listSpacesForAuthenticatedUser: (query?: {
|
|
2679
|
-
page?: string;
|
|
2680
|
-
limit?: number;
|
|
2681
|
-
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
2682
|
-
items: Space[];
|
|
2683
|
-
}, Error>>;
|
|
2684
2683
|
};
|
|
2685
2684
|
users: {
|
|
2686
2685
|
/**
|
|
@@ -4698,6 +4697,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4698
4697
|
capture: Capture;
|
|
4699
4698
|
followupQuestions?: string[];
|
|
4700
4699
|
}, Error>>;
|
|
4700
|
+
/**
|
|
4701
|
+
* No description
|
|
4702
|
+
*
|
|
4703
|
+
* @name AskInOrganization
|
|
4704
|
+
* @summary Ask a question.
|
|
4705
|
+
* @request POST:/orgs/{organizationId}/ask
|
|
4706
|
+
* @secure
|
|
4707
|
+
*/
|
|
4708
|
+
askInOrganization: (organizationId: string, data: SearchAIQuery, params?: RequestParams) => Promise<HttpResponse<{
|
|
4709
|
+
answer?: SearchAIAnswer;
|
|
4710
|
+
}, Error>>;
|
|
4701
4711
|
};
|
|
4702
4712
|
internal: {
|
|
4703
4713
|
/**
|
package/dist/index.cjs
CHANGED
|
@@ -497,14 +497,6 @@ var Api = class extends HttpClient {
|
|
|
497
497
|
type: "application/json" /* Json */,
|
|
498
498
|
format: "json",
|
|
499
499
|
...params
|
|
500
|
-
}),
|
|
501
|
-
listSpacesForAuthenticatedUser: (query, params = {}) => this.request({
|
|
502
|
-
path: `/user/spaces`,
|
|
503
|
-
method: "GET",
|
|
504
|
-
query,
|
|
505
|
-
secure: true,
|
|
506
|
-
format: "json",
|
|
507
|
-
...params
|
|
508
500
|
})
|
|
509
501
|
};
|
|
510
502
|
this.users = {
|
|
@@ -1746,6 +1738,15 @@ var Api = class extends HttpClient {
|
|
|
1746
1738
|
type: "application/json" /* Json */,
|
|
1747
1739
|
format: "json",
|
|
1748
1740
|
...params
|
|
1741
|
+
}),
|
|
1742
|
+
askInOrganization: (organizationId, data, params = {}) => this.request({
|
|
1743
|
+
path: `/orgs/${organizationId}/ask`,
|
|
1744
|
+
method: "POST",
|
|
1745
|
+
body: data,
|
|
1746
|
+
secure: true,
|
|
1747
|
+
type: "application/json" /* Json */,
|
|
1748
|
+
format: "json",
|
|
1749
|
+
...params
|
|
1749
1750
|
})
|
|
1750
1751
|
};
|
|
1751
1752
|
this.internal = {
|
package/dist/index.js
CHANGED
|
@@ -439,14 +439,6 @@ var Api = class extends HttpClient {
|
|
|
439
439
|
type: "application/json" /* Json */,
|
|
440
440
|
format: "json",
|
|
441
441
|
...params
|
|
442
|
-
}),
|
|
443
|
-
listSpacesForAuthenticatedUser: (query, params = {}) => this.request({
|
|
444
|
-
path: `/user/spaces`,
|
|
445
|
-
method: "GET",
|
|
446
|
-
query,
|
|
447
|
-
secure: true,
|
|
448
|
-
format: "json",
|
|
449
|
-
...params
|
|
450
442
|
})
|
|
451
443
|
};
|
|
452
444
|
this.users = {
|
|
@@ -1688,6 +1680,15 @@ var Api = class extends HttpClient {
|
|
|
1688
1680
|
type: "application/json" /* Json */,
|
|
1689
1681
|
format: "json",
|
|
1690
1682
|
...params
|
|
1683
|
+
}),
|
|
1684
|
+
askInOrganization: (organizationId, data, params = {}) => this.request({
|
|
1685
|
+
path: `/orgs/${organizationId}/ask`,
|
|
1686
|
+
method: "POST",
|
|
1687
|
+
body: data,
|
|
1688
|
+
secure: true,
|
|
1689
|
+
type: "application/json" /* Json */,
|
|
1690
|
+
format: "json",
|
|
1691
|
+
...params
|
|
1691
1692
|
})
|
|
1692
1693
|
};
|
|
1693
1694
|
this.internal = {
|
package/package.json
CHANGED
package/spec/openapi.json
CHANGED
|
@@ -505,6 +505,7 @@
|
|
|
505
505
|
}
|
|
506
506
|
},
|
|
507
507
|
"required": [
|
|
508
|
+
"organization",
|
|
508
509
|
"title",
|
|
509
510
|
"description",
|
|
510
511
|
"script",
|
|
@@ -1006,17 +1007,6 @@
|
|
|
1006
1007
|
}
|
|
1007
1008
|
]
|
|
1008
1009
|
},
|
|
1009
|
-
"UserTarget": {
|
|
1010
|
-
"type": "object",
|
|
1011
|
-
"required": [
|
|
1012
|
-
"user"
|
|
1013
|
-
],
|
|
1014
|
-
"properties": {
|
|
1015
|
-
"user": {
|
|
1016
|
-
"type": "string"
|
|
1017
|
-
}
|
|
1018
|
-
}
|
|
1019
|
-
},
|
|
1020
1010
|
"Team": {
|
|
1021
1011
|
"type": "object",
|
|
1022
1012
|
"properties": {
|
|
@@ -1471,16 +1461,6 @@
|
|
|
1471
1461
|
"type": "string",
|
|
1472
1462
|
"description": "ID of the organization owning this space"
|
|
1473
1463
|
},
|
|
1474
|
-
"user": {
|
|
1475
|
-
"type": "string",
|
|
1476
|
-
"description": "ID of the user owning this space",
|
|
1477
|
-
"deprecated": true
|
|
1478
|
-
},
|
|
1479
|
-
"private": {
|
|
1480
|
-
"type": "string",
|
|
1481
|
-
"description": "If the space is part of the private content of a user, the property is equal to the ID of the user owning it",
|
|
1482
|
-
"deprecated": true
|
|
1483
|
-
},
|
|
1484
1464
|
"parent": {
|
|
1485
1465
|
"type": "string",
|
|
1486
1466
|
"description": "ID of the parent collection."
|
|
@@ -1491,6 +1471,7 @@
|
|
|
1491
1471
|
"id",
|
|
1492
1472
|
"type",
|
|
1493
1473
|
"title",
|
|
1474
|
+
"organization",
|
|
1494
1475
|
"visibility",
|
|
1495
1476
|
"createdAt",
|
|
1496
1477
|
"updatedAt",
|
|
@@ -2461,6 +2442,7 @@
|
|
|
2461
2442
|
}
|
|
2462
2443
|
},
|
|
2463
2444
|
"contributors": {
|
|
2445
|
+
"description": "An array of contributors to the capture. The first contributor is the one who triggered the capture (either a user or an integration).",
|
|
2464
2446
|
"type": "array",
|
|
2465
2447
|
"minItems": 1,
|
|
2466
2448
|
"items": {
|
|
@@ -3203,6 +3185,7 @@
|
|
|
3203
3185
|
},
|
|
3204
3186
|
"previousQueries": {
|
|
3205
3187
|
"type": "array",
|
|
3188
|
+
"deprecated": true,
|
|
3206
3189
|
"maxItems": 10,
|
|
3207
3190
|
"items": {
|
|
3208
3191
|
"type": "string"
|
|
@@ -3226,8 +3209,17 @@
|
|
|
3226
3209
|
"type": "string"
|
|
3227
3210
|
}
|
|
3228
3211
|
},
|
|
3212
|
+
"sources": {
|
|
3213
|
+
"type": "array",
|
|
3214
|
+
"description": "The sources used to generate the answer.",
|
|
3215
|
+
"items": {
|
|
3216
|
+
"$ref": "#/components/schemas/SearchAIAnswerSource"
|
|
3217
|
+
}
|
|
3218
|
+
},
|
|
3229
3219
|
"pages": {
|
|
3230
3220
|
"type": "array",
|
|
3221
|
+
"deprecated": true,
|
|
3222
|
+
"description": "The pages used to generate the answer. Deprecated - use sources instead.",
|
|
3231
3223
|
"items": {
|
|
3232
3224
|
"type": "object",
|
|
3233
3225
|
"properties": {
|
|
@@ -3259,9 +3251,114 @@
|
|
|
3259
3251
|
"required": [
|
|
3260
3252
|
"text",
|
|
3261
3253
|
"pages",
|
|
3254
|
+
"sources",
|
|
3262
3255
|
"followupQuestions"
|
|
3263
3256
|
]
|
|
3264
3257
|
},
|
|
3258
|
+
"SearchAIAnswerSource": {
|
|
3259
|
+
"allOf": [
|
|
3260
|
+
{
|
|
3261
|
+
"type": "object",
|
|
3262
|
+
"properties": {
|
|
3263
|
+
"type": {
|
|
3264
|
+
"type": "string",
|
|
3265
|
+
"enum": [
|
|
3266
|
+
"page",
|
|
3267
|
+
"entity",
|
|
3268
|
+
"capture"
|
|
3269
|
+
]
|
|
3270
|
+
}
|
|
3271
|
+
},
|
|
3272
|
+
"required": [
|
|
3273
|
+
"type"
|
|
3274
|
+
]
|
|
3275
|
+
},
|
|
3276
|
+
{
|
|
3277
|
+
"oneOf": [
|
|
3278
|
+
{
|
|
3279
|
+
"type": "object",
|
|
3280
|
+
"properties": {
|
|
3281
|
+
"type": {
|
|
3282
|
+
"type": "string",
|
|
3283
|
+
"enum": [
|
|
3284
|
+
"page"
|
|
3285
|
+
]
|
|
3286
|
+
},
|
|
3287
|
+
"page": {
|
|
3288
|
+
"type": "string"
|
|
3289
|
+
},
|
|
3290
|
+
"revision": {
|
|
3291
|
+
"type": "string"
|
|
3292
|
+
},
|
|
3293
|
+
"space": {
|
|
3294
|
+
"type": "string"
|
|
3295
|
+
},
|
|
3296
|
+
"sections": {
|
|
3297
|
+
"type": "array",
|
|
3298
|
+
"items": {
|
|
3299
|
+
"type": "string"
|
|
3300
|
+
}
|
|
3301
|
+
}
|
|
3302
|
+
},
|
|
3303
|
+
"required": [
|
|
3304
|
+
"type",
|
|
3305
|
+
"page",
|
|
3306
|
+
"revision",
|
|
3307
|
+
"space",
|
|
3308
|
+
"sections"
|
|
3309
|
+
]
|
|
3310
|
+
},
|
|
3311
|
+
{
|
|
3312
|
+
"type": "object",
|
|
3313
|
+
"properties": {
|
|
3314
|
+
"type": {
|
|
3315
|
+
"type": "string",
|
|
3316
|
+
"enum": [
|
|
3317
|
+
"entity"
|
|
3318
|
+
]
|
|
3319
|
+
},
|
|
3320
|
+
"id": {
|
|
3321
|
+
"type": "string",
|
|
3322
|
+
"description": "ID of the entity"
|
|
3323
|
+
},
|
|
3324
|
+
"integration": {
|
|
3325
|
+
"description": "The name of the integration that manages this entity. If undefined, this entity is not managed by an integration.",
|
|
3326
|
+
"type": "string"
|
|
3327
|
+
}
|
|
3328
|
+
},
|
|
3329
|
+
"required": [
|
|
3330
|
+
"id",
|
|
3331
|
+
"type"
|
|
3332
|
+
]
|
|
3333
|
+
},
|
|
3334
|
+
{
|
|
3335
|
+
"type": "object",
|
|
3336
|
+
"properties": {
|
|
3337
|
+
"type": {
|
|
3338
|
+
"type": "string",
|
|
3339
|
+
"enum": [
|
|
3340
|
+
"capture"
|
|
3341
|
+
]
|
|
3342
|
+
},
|
|
3343
|
+
"id": {
|
|
3344
|
+
"type": "string",
|
|
3345
|
+
"description": "ID of the capture"
|
|
3346
|
+
},
|
|
3347
|
+
"source": {
|
|
3348
|
+
"type": "string",
|
|
3349
|
+
"description": "Source of the capture"
|
|
3350
|
+
}
|
|
3351
|
+
},
|
|
3352
|
+
"required": [
|
|
3353
|
+
"type",
|
|
3354
|
+
"id",
|
|
3355
|
+
"source"
|
|
3356
|
+
]
|
|
3357
|
+
}
|
|
3358
|
+
]
|
|
3359
|
+
}
|
|
3360
|
+
]
|
|
3361
|
+
},
|
|
3265
3362
|
"SearchAIRecommendedQuestions": {
|
|
3266
3363
|
"type": "object",
|
|
3267
3364
|
"description": "Questions recommended by the AI for the given content.",
|
|
@@ -4157,9 +4254,6 @@
|
|
|
4157
4254
|
},
|
|
4158
4255
|
"IntegrationInstallationTarget": {
|
|
4159
4256
|
"oneOf": [
|
|
4160
|
-
{
|
|
4161
|
-
"$ref": "#/components/schemas/UserTarget"
|
|
4162
|
-
},
|
|
4163
4257
|
{
|
|
4164
4258
|
"$ref": "#/components/schemas/OrganizationTarget"
|
|
4165
4259
|
}
|
|
@@ -8519,62 +8613,6 @@
|
|
|
8519
8613
|
}
|
|
8520
8614
|
}
|
|
8521
8615
|
},
|
|
8522
|
-
"/user/spaces": {
|
|
8523
|
-
"get": {
|
|
8524
|
-
"operationId": "listSpacesForAuthenticatedUser",
|
|
8525
|
-
"summary": "List spaces for the authenticated user",
|
|
8526
|
-
"description": "Lists spaces that the authenticated user explicitly own.\n",
|
|
8527
|
-
"tags": [
|
|
8528
|
-
"users"
|
|
8529
|
-
],
|
|
8530
|
-
"security": [
|
|
8531
|
-
{
|
|
8532
|
-
"user": []
|
|
8533
|
-
}
|
|
8534
|
-
],
|
|
8535
|
-
"parameters": [
|
|
8536
|
-
{
|
|
8537
|
-
"$ref": "#/components/parameters/listPage"
|
|
8538
|
-
},
|
|
8539
|
-
{
|
|
8540
|
-
"$ref": "#/components/parameters/listLimit"
|
|
8541
|
-
}
|
|
8542
|
-
],
|
|
8543
|
-
"responses": {
|
|
8544
|
-
"200": {
|
|
8545
|
-
"description": "OK",
|
|
8546
|
-
"content": {
|
|
8547
|
-
"application/json": {
|
|
8548
|
-
"schema": {
|
|
8549
|
-
"allOf": [
|
|
8550
|
-
{
|
|
8551
|
-
"$ref": "#/components/schemas/List"
|
|
8552
|
-
},
|
|
8553
|
-
{
|
|
8554
|
-
"type": "object",
|
|
8555
|
-
"required": [
|
|
8556
|
-
"items"
|
|
8557
|
-
],
|
|
8558
|
-
"properties": {
|
|
8559
|
-
"items": {
|
|
8560
|
-
"type": "array",
|
|
8561
|
-
"items": {
|
|
8562
|
-
"$ref": "#/components/schemas/Space"
|
|
8563
|
-
}
|
|
8564
|
-
}
|
|
8565
|
-
}
|
|
8566
|
-
}
|
|
8567
|
-
]
|
|
8568
|
-
}
|
|
8569
|
-
}
|
|
8570
|
-
}
|
|
8571
|
-
},
|
|
8572
|
-
"default": {
|
|
8573
|
-
"$ref": "#/components/responses/UnexpectedError"
|
|
8574
|
-
}
|
|
8575
|
-
}
|
|
8576
|
-
}
|
|
8577
|
-
},
|
|
8578
8616
|
"/users/{userId}": {
|
|
8579
8617
|
"get": {
|
|
8580
8618
|
"operationId": "getUserById",
|
|
@@ -16092,6 +16130,52 @@
|
|
|
16092
16130
|
}
|
|
16093
16131
|
}
|
|
16094
16132
|
},
|
|
16133
|
+
"/orgs/{organizationId}/ask": {
|
|
16134
|
+
"post": {
|
|
16135
|
+
"operationId": "askInOrganization",
|
|
16136
|
+
"summary": "Ask a question.",
|
|
16137
|
+
"security": [
|
|
16138
|
+
{
|
|
16139
|
+
"user": []
|
|
16140
|
+
}
|
|
16141
|
+
],
|
|
16142
|
+
"parameters": [
|
|
16143
|
+
{
|
|
16144
|
+
"$ref": "#/components/parameters/organizationId"
|
|
16145
|
+
}
|
|
16146
|
+
],
|
|
16147
|
+
"requestBody": {
|
|
16148
|
+
"required": true,
|
|
16149
|
+
"content": {
|
|
16150
|
+
"application/json": {
|
|
16151
|
+
"schema": {
|
|
16152
|
+
"$ref": "#/components/schemas/SearchAIQuery"
|
|
16153
|
+
}
|
|
16154
|
+
}
|
|
16155
|
+
}
|
|
16156
|
+
},
|
|
16157
|
+
"responses": {
|
|
16158
|
+
"200": {
|
|
16159
|
+
"description": "OK",
|
|
16160
|
+
"content": {
|
|
16161
|
+
"application/json": {
|
|
16162
|
+
"schema": {
|
|
16163
|
+
"type": "object",
|
|
16164
|
+
"properties": {
|
|
16165
|
+
"answer": {
|
|
16166
|
+
"$ref": "#/components/schemas/SearchAIAnswer"
|
|
16167
|
+
}
|
|
16168
|
+
}
|
|
16169
|
+
}
|
|
16170
|
+
}
|
|
16171
|
+
}
|
|
16172
|
+
},
|
|
16173
|
+
"default": {
|
|
16174
|
+
"$ref": "#/components/responses/UnexpectedError"
|
|
16175
|
+
}
|
|
16176
|
+
}
|
|
16177
|
+
}
|
|
16178
|
+
},
|
|
16095
16179
|
"/internal/hive/token": {
|
|
16096
16180
|
"post": {
|
|
16097
16181
|
"operationId": "generateHiveAccessToken",
|
package/spec/openapi.yaml
CHANGED
|
@@ -362,6 +362,7 @@ components:
|
|
|
362
362
|
items:
|
|
363
363
|
$ref: "#/components/schemas/EntityRawSchema"
|
|
364
364
|
required:
|
|
365
|
+
- organization
|
|
365
366
|
- title
|
|
366
367
|
- description
|
|
367
368
|
- script
|
|
@@ -713,13 +714,6 @@ components:
|
|
|
713
714
|
description: The actual token value.
|
|
714
715
|
required:
|
|
715
716
|
- token
|
|
716
|
-
UserTarget:
|
|
717
|
-
type: object
|
|
718
|
-
required:
|
|
719
|
-
- user
|
|
720
|
-
properties:
|
|
721
|
-
user:
|
|
722
|
-
type: string
|
|
723
717
|
Team:
|
|
724
718
|
type: object
|
|
725
719
|
properties:
|
|
@@ -1044,14 +1038,6 @@ components:
|
|
|
1044
1038
|
organization:
|
|
1045
1039
|
type: string
|
|
1046
1040
|
description: ID of the organization owning this space
|
|
1047
|
-
user:
|
|
1048
|
-
type: string
|
|
1049
|
-
description: ID of the user owning this space
|
|
1050
|
-
deprecated: true
|
|
1051
|
-
private:
|
|
1052
|
-
type: string
|
|
1053
|
-
description: If the space is part of the private content of a user, the property is equal to the ID of the user owning it
|
|
1054
|
-
deprecated: true
|
|
1055
1041
|
parent:
|
|
1056
1042
|
type: string
|
|
1057
1043
|
description: ID of the parent collection.
|
|
@@ -1060,6 +1046,7 @@ components:
|
|
|
1060
1046
|
- id
|
|
1061
1047
|
- type
|
|
1062
1048
|
- title
|
|
1049
|
+
- organization
|
|
1063
1050
|
- visibility
|
|
1064
1051
|
- createdAt
|
|
1065
1052
|
- updatedAt
|
|
@@ -1731,6 +1718,7 @@ components:
|
|
|
1731
1718
|
thread.message:
|
|
1732
1719
|
type: integer
|
|
1733
1720
|
contributors:
|
|
1721
|
+
description: An array of contributors to the capture. The first contributor is the one who triggered the capture (either a user or an integration).
|
|
1734
1722
|
type: array
|
|
1735
1723
|
minItems: 1
|
|
1736
1724
|
items:
|
|
@@ -2218,6 +2206,7 @@ components:
|
|
|
2218
2206
|
type: string
|
|
2219
2207
|
previousQueries:
|
|
2220
2208
|
type: array
|
|
2209
|
+
deprecated: true
|
|
2221
2210
|
maxItems: 10
|
|
2222
2211
|
items:
|
|
2223
2212
|
type: string
|
|
@@ -2233,8 +2222,15 @@ components:
|
|
|
2233
2222
|
type: array
|
|
2234
2223
|
items:
|
|
2235
2224
|
type: string
|
|
2225
|
+
sources:
|
|
2226
|
+
type: array
|
|
2227
|
+
description: The sources used to generate the answer.
|
|
2228
|
+
items:
|
|
2229
|
+
$ref: "#/components/schemas/SearchAIAnswerSource"
|
|
2236
2230
|
pages:
|
|
2237
2231
|
type: array
|
|
2232
|
+
deprecated: true
|
|
2233
|
+
description: The pages used to generate the answer. Deprecated - use sources instead.
|
|
2238
2234
|
items:
|
|
2239
2235
|
type: object
|
|
2240
2236
|
properties:
|
|
@@ -2256,7 +2252,74 @@ components:
|
|
|
2256
2252
|
required:
|
|
2257
2253
|
- text
|
|
2258
2254
|
- pages
|
|
2255
|
+
- sources
|
|
2259
2256
|
- followupQuestions
|
|
2257
|
+
SearchAIAnswerSource:
|
|
2258
|
+
allOf:
|
|
2259
|
+
- type: object
|
|
2260
|
+
properties:
|
|
2261
|
+
type:
|
|
2262
|
+
type: string
|
|
2263
|
+
enum:
|
|
2264
|
+
- page
|
|
2265
|
+
- entity
|
|
2266
|
+
- capture
|
|
2267
|
+
required:
|
|
2268
|
+
- type
|
|
2269
|
+
- oneOf:
|
|
2270
|
+
- type: object
|
|
2271
|
+
properties:
|
|
2272
|
+
type:
|
|
2273
|
+
type: string
|
|
2274
|
+
enum:
|
|
2275
|
+
- page
|
|
2276
|
+
page:
|
|
2277
|
+
type: string
|
|
2278
|
+
revision:
|
|
2279
|
+
type: string
|
|
2280
|
+
space:
|
|
2281
|
+
type: string
|
|
2282
|
+
sections:
|
|
2283
|
+
type: array
|
|
2284
|
+
items:
|
|
2285
|
+
type: string
|
|
2286
|
+
required:
|
|
2287
|
+
- type
|
|
2288
|
+
- page
|
|
2289
|
+
- revision
|
|
2290
|
+
- space
|
|
2291
|
+
- sections
|
|
2292
|
+
- type: object
|
|
2293
|
+
properties:
|
|
2294
|
+
type:
|
|
2295
|
+
type: string
|
|
2296
|
+
enum:
|
|
2297
|
+
- entity
|
|
2298
|
+
id:
|
|
2299
|
+
type: string
|
|
2300
|
+
description: ID of the entity
|
|
2301
|
+
integration:
|
|
2302
|
+
description: The name of the integration that manages this entity. If undefined, this entity is not managed by an integration.
|
|
2303
|
+
type: string
|
|
2304
|
+
required:
|
|
2305
|
+
- id
|
|
2306
|
+
- type
|
|
2307
|
+
- type: object
|
|
2308
|
+
properties:
|
|
2309
|
+
type:
|
|
2310
|
+
type: string
|
|
2311
|
+
enum:
|
|
2312
|
+
- capture
|
|
2313
|
+
id:
|
|
2314
|
+
type: string
|
|
2315
|
+
description: ID of the capture
|
|
2316
|
+
source:
|
|
2317
|
+
type: string
|
|
2318
|
+
description: Source of the capture
|
|
2319
|
+
required:
|
|
2320
|
+
- type
|
|
2321
|
+
- id
|
|
2322
|
+
- source
|
|
2260
2323
|
SearchAIRecommendedQuestions:
|
|
2261
2324
|
type: object
|
|
2262
2325
|
description: Questions recommended by the AI for the given content.
|
|
@@ -2892,7 +2955,6 @@ components:
|
|
|
2892
2955
|
- secrets
|
|
2893
2956
|
IntegrationInstallationTarget:
|
|
2894
2957
|
oneOf:
|
|
2895
|
-
- $ref: "#/components/schemas/UserTarget"
|
|
2896
2958
|
- $ref: "#/components/schemas/OrganizationTarget"
|
|
2897
2959
|
IntegrationInstallationConfiguration:
|
|
2898
2960
|
type: object
|
|
@@ -5655,37 +5717,6 @@ paths:
|
|
|
5655
5717
|
$ref: "#/components/schemas/UserPreferences"
|
|
5656
5718
|
default:
|
|
5657
5719
|
$ref: "#/components/responses/UnexpectedError"
|
|
5658
|
-
/user/spaces:
|
|
5659
|
-
get:
|
|
5660
|
-
operationId: listSpacesForAuthenticatedUser
|
|
5661
|
-
summary: List spaces for the authenticated user
|
|
5662
|
-
description: |
|
|
5663
|
-
Lists spaces that the authenticated user explicitly own.
|
|
5664
|
-
tags:
|
|
5665
|
-
- users
|
|
5666
|
-
security:
|
|
5667
|
-
- user: []
|
|
5668
|
-
parameters:
|
|
5669
|
-
- $ref: "#/components/parameters/listPage"
|
|
5670
|
-
- $ref: "#/components/parameters/listLimit"
|
|
5671
|
-
responses:
|
|
5672
|
-
"200":
|
|
5673
|
-
description: OK
|
|
5674
|
-
content:
|
|
5675
|
-
application/json:
|
|
5676
|
-
schema:
|
|
5677
|
-
allOf:
|
|
5678
|
-
- $ref: "#/components/schemas/List"
|
|
5679
|
-
- type: object
|
|
5680
|
-
required:
|
|
5681
|
-
- items
|
|
5682
|
-
properties:
|
|
5683
|
-
items:
|
|
5684
|
-
type: array
|
|
5685
|
-
items:
|
|
5686
|
-
$ref: "#/components/schemas/Space"
|
|
5687
|
-
default:
|
|
5688
|
-
$ref: "#/components/responses/UnexpectedError"
|
|
5689
5720
|
"/users/{userId}":
|
|
5690
5721
|
get:
|
|
5691
5722
|
operationId: getUserById
|
|
@@ -9888,6 +9919,32 @@ paths:
|
|
|
9888
9919
|
- capture
|
|
9889
9920
|
default:
|
|
9890
9921
|
$ref: "#/components/responses/UnexpectedError"
|
|
9922
|
+
"/orgs/{organizationId}/ask":
|
|
9923
|
+
post:
|
|
9924
|
+
operationId: askInOrganization
|
|
9925
|
+
summary: Ask a question.
|
|
9926
|
+
security:
|
|
9927
|
+
- user: []
|
|
9928
|
+
parameters:
|
|
9929
|
+
- $ref: "#/components/parameters/organizationId"
|
|
9930
|
+
requestBody:
|
|
9931
|
+
required: true
|
|
9932
|
+
content:
|
|
9933
|
+
application/json:
|
|
9934
|
+
schema:
|
|
9935
|
+
$ref: "#/components/schemas/SearchAIQuery"
|
|
9936
|
+
responses:
|
|
9937
|
+
"200":
|
|
9938
|
+
description: OK
|
|
9939
|
+
content:
|
|
9940
|
+
application/json:
|
|
9941
|
+
schema:
|
|
9942
|
+
type: object
|
|
9943
|
+
properties:
|
|
9944
|
+
answer:
|
|
9945
|
+
$ref: "#/components/schemas/SearchAIAnswer"
|
|
9946
|
+
default:
|
|
9947
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
9891
9948
|
/internal/hive/token:
|
|
9892
9949
|
post:
|
|
9893
9950
|
operationId: generateHiveAccessToken
|