@gitbook/api 0.9.0 → 0.11.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 +55 -26
- package/dist/index.cjs +22 -8
- package/dist/index.js +21 -8
- package/package.json +1 -1
- package/spec/openapi.json +221 -82
- package/spec/openapi.yaml +141 -48
package/dist/client.d.ts
CHANGED
|
@@ -67,6 +67,8 @@ export interface RequestPublishIntegration {
|
|
|
67
67
|
summary?: IntegrationSummary;
|
|
68
68
|
previewImages?: string[];
|
|
69
69
|
visibility?: IntegrationVisibility;
|
|
70
|
+
/** Allowed installation target for the integration. If not specified, the integration can be installed at `all` targets (org, spaces etc) */
|
|
71
|
+
target?: IntegrationTarget;
|
|
70
72
|
/** Permissions that should be granted to the integration */
|
|
71
73
|
scopes: IntegrationScopes;
|
|
72
74
|
/** Categories for which the integration is listed in the marketplace */
|
|
@@ -79,7 +81,7 @@ export interface RequestPublishIntegration {
|
|
|
79
81
|
/** Content of the script to use */
|
|
80
82
|
script: string;
|
|
81
83
|
/** The ID or subdomain of the organization under which the integration should be published */
|
|
82
|
-
organization
|
|
84
|
+
organization: string;
|
|
83
85
|
/** Secrets stored on the integration and passed at runtime. */
|
|
84
86
|
secrets?: IntegrationSecrets;
|
|
85
87
|
/**
|
|
@@ -304,9 +306,6 @@ export interface UserAPIToken {
|
|
|
304
306
|
export declare type UserAPITokenExtended = UserAPIToken & {
|
|
305
307
|
token: string;
|
|
306
308
|
};
|
|
307
|
-
export interface UserTarget {
|
|
308
|
-
user: string;
|
|
309
|
-
}
|
|
310
309
|
export interface Team {
|
|
311
310
|
/** Type of Object, always equals to "team" */
|
|
312
311
|
object: 'team';
|
|
@@ -458,11 +457,7 @@ export interface Space {
|
|
|
458
457
|
public?: string;
|
|
459
458
|
};
|
|
460
459
|
/** 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;
|
|
460
|
+
organization: string;
|
|
466
461
|
/** ID of the parent collection. */
|
|
467
462
|
parent?: string;
|
|
468
463
|
}
|
|
@@ -804,12 +799,14 @@ export interface Capture {
|
|
|
804
799
|
speech?: number;
|
|
805
800
|
'thread.message'?: number;
|
|
806
801
|
};
|
|
802
|
+
/** An array of contributors to the capture. The first contributor is the one who triggered the capture (either a user or an integration). */
|
|
807
803
|
contributors: (Integration | User)[];
|
|
808
804
|
/** Output document for the capture. Is not set when capture is not finished. */
|
|
809
805
|
output?: Document;
|
|
810
806
|
/** URLs associated with the object */
|
|
811
807
|
urls: {
|
|
812
808
|
location: string;
|
|
809
|
+
app: string;
|
|
813
810
|
};
|
|
814
811
|
}
|
|
815
812
|
/**
|
|
@@ -1033,6 +1030,9 @@ export interface SearchAIQuery {
|
|
|
1033
1030
|
export interface SearchAIAnswer {
|
|
1034
1031
|
text: string;
|
|
1035
1032
|
followupQuestions: string[];
|
|
1033
|
+
/** The sources used to generate the answer. */
|
|
1034
|
+
sources: SearchAIAnswerSource[];
|
|
1035
|
+
/** The pages used to generate the answer. Deprecated - use sources instead. */
|
|
1036
1036
|
pages: {
|
|
1037
1037
|
page: string;
|
|
1038
1038
|
revision: string;
|
|
@@ -1040,6 +1040,24 @@ export interface SearchAIAnswer {
|
|
|
1040
1040
|
sections: string[];
|
|
1041
1041
|
}[];
|
|
1042
1042
|
}
|
|
1043
|
+
export declare type SearchAIAnswerSource = {
|
|
1044
|
+
type: 'page' | 'entity' | 'capture';
|
|
1045
|
+
} & ({
|
|
1046
|
+
type: 'page';
|
|
1047
|
+
page: string;
|
|
1048
|
+
revision: string;
|
|
1049
|
+
space: string;
|
|
1050
|
+
sections: string[];
|
|
1051
|
+
} | {
|
|
1052
|
+
type: 'entity';
|
|
1053
|
+
entityId: string;
|
|
1054
|
+
entityType: EntityType;
|
|
1055
|
+
integration?: string;
|
|
1056
|
+
} | {
|
|
1057
|
+
type: 'capture';
|
|
1058
|
+
id: string;
|
|
1059
|
+
source: string;
|
|
1060
|
+
});
|
|
1043
1061
|
/**
|
|
1044
1062
|
* Questions recommended by the AI for the given content.
|
|
1045
1063
|
*/
|
|
@@ -1384,7 +1402,11 @@ export interface IntegrationEnvironment {
|
|
|
1384
1402
|
installation?: string;
|
|
1385
1403
|
};
|
|
1386
1404
|
}
|
|
1387
|
-
export declare
|
|
1405
|
+
export declare enum IntegrationTarget {
|
|
1406
|
+
Organization = "organization",
|
|
1407
|
+
All = "all"
|
|
1408
|
+
}
|
|
1409
|
+
export declare type IntegrationInstallationTarget = OrganizationTarget;
|
|
1388
1410
|
/**
|
|
1389
1411
|
* Configuration of the integration at the account level
|
|
1390
1412
|
*/
|
|
@@ -1451,6 +1473,7 @@ export interface UpsertEntity {
|
|
|
1451
1473
|
export declare type Entity = UpsertEntity & {
|
|
1452
1474
|
id: string;
|
|
1453
1475
|
type: EntityType;
|
|
1476
|
+
entityType: EntityType;
|
|
1454
1477
|
urls: {
|
|
1455
1478
|
location: string;
|
|
1456
1479
|
};
|
|
@@ -2666,21 +2689,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
2666
2689
|
updatePreferencesForAuthenticatedUser: (data: {
|
|
2667
2690
|
theme: UserPreferencesTheme;
|
|
2668
2691
|
}, 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
2692
|
};
|
|
2685
2693
|
users: {
|
|
2686
2694
|
/**
|
|
@@ -4629,7 +4637,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4629
4637
|
*/
|
|
4630
4638
|
getEntity: (organizationId: string, entityType: EntityType, entityId: EntityId, params?: RequestParams) => Promise<HttpResponse<Entity, Error>>;
|
|
4631
4639
|
/**
|
|
4632
|
-
* @description List captures in an organization.
|
|
4640
|
+
* @description List captures in an organization, newest first.
|
|
4633
4641
|
*
|
|
4634
4642
|
* @tags organizations
|
|
4635
4643
|
* @name ListCaptures
|
|
@@ -4671,6 +4679,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4671
4679
|
getCapture: (organizationId: string, captureId: string, query?: {
|
|
4672
4680
|
format?: 'document' | 'markdown';
|
|
4673
4681
|
}, params?: RequestParams) => Promise<HttpResponse<Capture, Error>>;
|
|
4682
|
+
/**
|
|
4683
|
+
* No description
|
|
4684
|
+
*
|
|
4685
|
+
* @tags organizations
|
|
4686
|
+
* @name DeleteCapture
|
|
4687
|
+
* @summary Delete a capture by its ID
|
|
4688
|
+
* @request DELETE:/orgs/{organizationId}/captures/{captureId}
|
|
4689
|
+
* @secure
|
|
4690
|
+
*/
|
|
4691
|
+
deleteCapture: (organizationId: string, captureId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
4674
4692
|
/**
|
|
4675
4693
|
* No description
|
|
4676
4694
|
*
|
|
@@ -4698,6 +4716,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4698
4716
|
capture: Capture;
|
|
4699
4717
|
followupQuestions?: string[];
|
|
4700
4718
|
}, Error>>;
|
|
4719
|
+
/**
|
|
4720
|
+
* No description
|
|
4721
|
+
*
|
|
4722
|
+
* @name AskInOrganization
|
|
4723
|
+
* @summary Ask a question.
|
|
4724
|
+
* @request POST:/orgs/{organizationId}/ask
|
|
4725
|
+
* @secure
|
|
4726
|
+
*/
|
|
4727
|
+
askInOrganization: (organizationId: string, data: SearchAIQuery, params?: RequestParams) => Promise<HttpResponse<{
|
|
4728
|
+
answer?: SearchAIAnswer;
|
|
4729
|
+
}, Error>>;
|
|
4701
4730
|
};
|
|
4702
4731
|
internal: {
|
|
4703
4732
|
/**
|
package/dist/index.cjs
CHANGED
|
@@ -43,6 +43,7 @@ __export(src_exports, {
|
|
|
43
43
|
IntegrationInstallationSpaceSelection: () => IntegrationInstallationSpaceSelection,
|
|
44
44
|
IntegrationInstallationStatus: () => IntegrationInstallationStatus,
|
|
45
45
|
IntegrationScope: () => IntegrationScope,
|
|
46
|
+
IntegrationTarget: () => IntegrationTarget,
|
|
46
47
|
IntegrationVisibility: () => IntegrationVisibility,
|
|
47
48
|
MemberRole: () => MemberRole,
|
|
48
49
|
OrganizationCommunityType: () => OrganizationCommunityType,
|
|
@@ -207,6 +208,11 @@ var IntegrationInstallationStatus = /* @__PURE__ */ ((IntegrationInstallationSta
|
|
|
207
208
|
IntegrationInstallationStatus2["Paused"] = "paused";
|
|
208
209
|
return IntegrationInstallationStatus2;
|
|
209
210
|
})(IntegrationInstallationStatus || {});
|
|
211
|
+
var IntegrationTarget = /* @__PURE__ */ ((IntegrationTarget2) => {
|
|
212
|
+
IntegrationTarget2["Organization"] = "organization";
|
|
213
|
+
IntegrationTarget2["All"] = "all";
|
|
214
|
+
return IntegrationTarget2;
|
|
215
|
+
})(IntegrationTarget || {});
|
|
210
216
|
var BillingInterval = /* @__PURE__ */ ((BillingInterval2) => {
|
|
211
217
|
BillingInterval2["Monthly"] = "monthly";
|
|
212
218
|
BillingInterval2["Yearly"] = "yearly";
|
|
@@ -497,14 +503,6 @@ var Api = class extends HttpClient {
|
|
|
497
503
|
type: "application/json" /* Json */,
|
|
498
504
|
format: "json",
|
|
499
505
|
...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
506
|
})
|
|
509
507
|
};
|
|
510
508
|
this.users = {
|
|
@@ -1729,6 +1727,12 @@ var Api = class extends HttpClient {
|
|
|
1729
1727
|
format: "json",
|
|
1730
1728
|
...params
|
|
1731
1729
|
}),
|
|
1730
|
+
deleteCapture: (organizationId, captureId, params = {}) => this.request({
|
|
1731
|
+
path: `/orgs/${organizationId}/captures/${captureId}`,
|
|
1732
|
+
method: "DELETE",
|
|
1733
|
+
secure: true,
|
|
1734
|
+
...params
|
|
1735
|
+
}),
|
|
1732
1736
|
addEventsToCapture: (organizationId, captureId, data, params = {}) => this.request({
|
|
1733
1737
|
path: `/orgs/${organizationId}/captures/${captureId}/events`,
|
|
1734
1738
|
method: "POST",
|
|
@@ -1746,6 +1750,15 @@ var Api = class extends HttpClient {
|
|
|
1746
1750
|
type: "application/json" /* Json */,
|
|
1747
1751
|
format: "json",
|
|
1748
1752
|
...params
|
|
1753
|
+
}),
|
|
1754
|
+
askInOrganization: (organizationId, data, params = {}) => this.request({
|
|
1755
|
+
path: `/orgs/${organizationId}/ask`,
|
|
1756
|
+
method: "POST",
|
|
1757
|
+
body: data,
|
|
1758
|
+
secure: true,
|
|
1759
|
+
type: "application/json" /* Json */,
|
|
1760
|
+
format: "json",
|
|
1761
|
+
...params
|
|
1749
1762
|
})
|
|
1750
1763
|
};
|
|
1751
1764
|
this.internal = {
|
|
@@ -1854,6 +1867,7 @@ var GitBookAPI = class extends Api {
|
|
|
1854
1867
|
IntegrationInstallationSpaceSelection,
|
|
1855
1868
|
IntegrationInstallationStatus,
|
|
1856
1869
|
IntegrationScope,
|
|
1870
|
+
IntegrationTarget,
|
|
1857
1871
|
IntegrationVisibility,
|
|
1858
1872
|
MemberRole,
|
|
1859
1873
|
OrganizationCommunityType,
|
package/dist/index.js
CHANGED
|
@@ -149,6 +149,11 @@ var IntegrationInstallationStatus = /* @__PURE__ */ ((IntegrationInstallationSta
|
|
|
149
149
|
IntegrationInstallationStatus2["Paused"] = "paused";
|
|
150
150
|
return IntegrationInstallationStatus2;
|
|
151
151
|
})(IntegrationInstallationStatus || {});
|
|
152
|
+
var IntegrationTarget = /* @__PURE__ */ ((IntegrationTarget2) => {
|
|
153
|
+
IntegrationTarget2["Organization"] = "organization";
|
|
154
|
+
IntegrationTarget2["All"] = "all";
|
|
155
|
+
return IntegrationTarget2;
|
|
156
|
+
})(IntegrationTarget || {});
|
|
152
157
|
var BillingInterval = /* @__PURE__ */ ((BillingInterval2) => {
|
|
153
158
|
BillingInterval2["Monthly"] = "monthly";
|
|
154
159
|
BillingInterval2["Yearly"] = "yearly";
|
|
@@ -439,14 +444,6 @@ var Api = class extends HttpClient {
|
|
|
439
444
|
type: "application/json" /* Json */,
|
|
440
445
|
format: "json",
|
|
441
446
|
...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
447
|
})
|
|
451
448
|
};
|
|
452
449
|
this.users = {
|
|
@@ -1671,6 +1668,12 @@ var Api = class extends HttpClient {
|
|
|
1671
1668
|
format: "json",
|
|
1672
1669
|
...params
|
|
1673
1670
|
}),
|
|
1671
|
+
deleteCapture: (organizationId, captureId, params = {}) => this.request({
|
|
1672
|
+
path: `/orgs/${organizationId}/captures/${captureId}`,
|
|
1673
|
+
method: "DELETE",
|
|
1674
|
+
secure: true,
|
|
1675
|
+
...params
|
|
1676
|
+
}),
|
|
1674
1677
|
addEventsToCapture: (organizationId, captureId, data, params = {}) => this.request({
|
|
1675
1678
|
path: `/orgs/${organizationId}/captures/${captureId}/events`,
|
|
1676
1679
|
method: "POST",
|
|
@@ -1688,6 +1691,15 @@ var Api = class extends HttpClient {
|
|
|
1688
1691
|
type: "application/json" /* Json */,
|
|
1689
1692
|
format: "json",
|
|
1690
1693
|
...params
|
|
1694
|
+
}),
|
|
1695
|
+
askInOrganization: (organizationId, data, params = {}) => this.request({
|
|
1696
|
+
path: `/orgs/${organizationId}/ask`,
|
|
1697
|
+
method: "POST",
|
|
1698
|
+
body: data,
|
|
1699
|
+
secure: true,
|
|
1700
|
+
type: "application/json" /* Json */,
|
|
1701
|
+
format: "json",
|
|
1702
|
+
...params
|
|
1691
1703
|
})
|
|
1692
1704
|
};
|
|
1693
1705
|
this.internal = {
|
|
@@ -1795,6 +1807,7 @@ export {
|
|
|
1795
1807
|
IntegrationInstallationSpaceSelection,
|
|
1796
1808
|
IntegrationInstallationStatus,
|
|
1797
1809
|
IntegrationScope,
|
|
1810
|
+
IntegrationTarget,
|
|
1798
1811
|
IntegrationVisibility,
|
|
1799
1812
|
MemberRole,
|
|
1800
1813
|
OrganizationCommunityType,
|
package/package.json
CHANGED
package/spec/openapi.json
CHANGED
|
@@ -467,6 +467,10 @@
|
|
|
467
467
|
"visibility": {
|
|
468
468
|
"$ref": "#/components/schemas/IntegrationVisibility"
|
|
469
469
|
},
|
|
470
|
+
"target": {
|
|
471
|
+
"description": "Allowed installation target for the integration. If not specified, the integration can be installed at `all` targets (org, spaces etc)",
|
|
472
|
+
"$ref": "#/components/schemas/IntegrationTarget"
|
|
473
|
+
},
|
|
470
474
|
"scopes": {
|
|
471
475
|
"$ref": "#/components/schemas/IntegrationScopes"
|
|
472
476
|
},
|
|
@@ -505,6 +509,7 @@
|
|
|
505
509
|
}
|
|
506
510
|
},
|
|
507
511
|
"required": [
|
|
512
|
+
"organization",
|
|
508
513
|
"title",
|
|
509
514
|
"description",
|
|
510
515
|
"script",
|
|
@@ -1006,17 +1011,6 @@
|
|
|
1006
1011
|
}
|
|
1007
1012
|
]
|
|
1008
1013
|
},
|
|
1009
|
-
"UserTarget": {
|
|
1010
|
-
"type": "object",
|
|
1011
|
-
"required": [
|
|
1012
|
-
"user"
|
|
1013
|
-
],
|
|
1014
|
-
"properties": {
|
|
1015
|
-
"user": {
|
|
1016
|
-
"type": "string"
|
|
1017
|
-
}
|
|
1018
|
-
}
|
|
1019
|
-
},
|
|
1020
1014
|
"Team": {
|
|
1021
1015
|
"type": "object",
|
|
1022
1016
|
"properties": {
|
|
@@ -1471,16 +1465,6 @@
|
|
|
1471
1465
|
"type": "string",
|
|
1472
1466
|
"description": "ID of the organization owning this space"
|
|
1473
1467
|
},
|
|
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
1468
|
"parent": {
|
|
1485
1469
|
"type": "string",
|
|
1486
1470
|
"description": "ID of the parent collection."
|
|
@@ -1491,6 +1475,7 @@
|
|
|
1491
1475
|
"id",
|
|
1492
1476
|
"type",
|
|
1493
1477
|
"title",
|
|
1478
|
+
"organization",
|
|
1494
1479
|
"visibility",
|
|
1495
1480
|
"createdAt",
|
|
1496
1481
|
"updatedAt",
|
|
@@ -2461,6 +2446,7 @@
|
|
|
2461
2446
|
}
|
|
2462
2447
|
},
|
|
2463
2448
|
"contributors": {
|
|
2449
|
+
"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
2450
|
"type": "array",
|
|
2465
2451
|
"minItems": 1,
|
|
2466
2452
|
"items": {
|
|
@@ -2486,10 +2472,16 @@
|
|
|
2486
2472
|
"type": "string",
|
|
2487
2473
|
"description": "URL of the capture in the API",
|
|
2488
2474
|
"format": "uri"
|
|
2475
|
+
},
|
|
2476
|
+
"app": {
|
|
2477
|
+
"type": "string",
|
|
2478
|
+
"description": "URL of the capture in the app",
|
|
2479
|
+
"format": "uri"
|
|
2489
2480
|
}
|
|
2490
2481
|
},
|
|
2491
2482
|
"required": [
|
|
2492
|
-
"location"
|
|
2483
|
+
"location",
|
|
2484
|
+
"app"
|
|
2493
2485
|
]
|
|
2494
2486
|
}
|
|
2495
2487
|
},
|
|
@@ -3203,6 +3195,7 @@
|
|
|
3203
3195
|
},
|
|
3204
3196
|
"previousQueries": {
|
|
3205
3197
|
"type": "array",
|
|
3198
|
+
"deprecated": true,
|
|
3206
3199
|
"maxItems": 10,
|
|
3207
3200
|
"items": {
|
|
3208
3201
|
"type": "string"
|
|
@@ -3226,8 +3219,17 @@
|
|
|
3226
3219
|
"type": "string"
|
|
3227
3220
|
}
|
|
3228
3221
|
},
|
|
3222
|
+
"sources": {
|
|
3223
|
+
"type": "array",
|
|
3224
|
+
"description": "The sources used to generate the answer.",
|
|
3225
|
+
"items": {
|
|
3226
|
+
"$ref": "#/components/schemas/SearchAIAnswerSource"
|
|
3227
|
+
}
|
|
3228
|
+
},
|
|
3229
3229
|
"pages": {
|
|
3230
3230
|
"type": "array",
|
|
3231
|
+
"deprecated": true,
|
|
3232
|
+
"description": "The pages used to generate the answer. Deprecated - use sources instead.",
|
|
3231
3233
|
"items": {
|
|
3232
3234
|
"type": "object",
|
|
3233
3235
|
"properties": {
|
|
@@ -3259,9 +3261,118 @@
|
|
|
3259
3261
|
"required": [
|
|
3260
3262
|
"text",
|
|
3261
3263
|
"pages",
|
|
3264
|
+
"sources",
|
|
3262
3265
|
"followupQuestions"
|
|
3263
3266
|
]
|
|
3264
3267
|
},
|
|
3268
|
+
"SearchAIAnswerSource": {
|
|
3269
|
+
"allOf": [
|
|
3270
|
+
{
|
|
3271
|
+
"type": "object",
|
|
3272
|
+
"properties": {
|
|
3273
|
+
"type": {
|
|
3274
|
+
"type": "string",
|
|
3275
|
+
"enum": [
|
|
3276
|
+
"page",
|
|
3277
|
+
"entity",
|
|
3278
|
+
"capture"
|
|
3279
|
+
]
|
|
3280
|
+
}
|
|
3281
|
+
},
|
|
3282
|
+
"required": [
|
|
3283
|
+
"type"
|
|
3284
|
+
]
|
|
3285
|
+
},
|
|
3286
|
+
{
|
|
3287
|
+
"oneOf": [
|
|
3288
|
+
{
|
|
3289
|
+
"type": "object",
|
|
3290
|
+
"properties": {
|
|
3291
|
+
"type": {
|
|
3292
|
+
"type": "string",
|
|
3293
|
+
"enum": [
|
|
3294
|
+
"page"
|
|
3295
|
+
]
|
|
3296
|
+
},
|
|
3297
|
+
"page": {
|
|
3298
|
+
"type": "string"
|
|
3299
|
+
},
|
|
3300
|
+
"revision": {
|
|
3301
|
+
"type": "string"
|
|
3302
|
+
},
|
|
3303
|
+
"space": {
|
|
3304
|
+
"type": "string"
|
|
3305
|
+
},
|
|
3306
|
+
"sections": {
|
|
3307
|
+
"type": "array",
|
|
3308
|
+
"items": {
|
|
3309
|
+
"type": "string"
|
|
3310
|
+
}
|
|
3311
|
+
}
|
|
3312
|
+
},
|
|
3313
|
+
"required": [
|
|
3314
|
+
"type",
|
|
3315
|
+
"page",
|
|
3316
|
+
"revision",
|
|
3317
|
+
"space",
|
|
3318
|
+
"sections"
|
|
3319
|
+
]
|
|
3320
|
+
},
|
|
3321
|
+
{
|
|
3322
|
+
"type": "object",
|
|
3323
|
+
"properties": {
|
|
3324
|
+
"type": {
|
|
3325
|
+
"type": "string",
|
|
3326
|
+
"enum": [
|
|
3327
|
+
"entity"
|
|
3328
|
+
]
|
|
3329
|
+
},
|
|
3330
|
+
"entityId": {
|
|
3331
|
+
"type": "string",
|
|
3332
|
+
"description": "ID of the entity"
|
|
3333
|
+
},
|
|
3334
|
+
"entityType": {
|
|
3335
|
+
"$ref": "#/components/schemas/EntityType"
|
|
3336
|
+
},
|
|
3337
|
+
"integration": {
|
|
3338
|
+
"description": "The name of the integration that manages this entity. If undefined, this entity is not managed by an integration.",
|
|
3339
|
+
"type": "string"
|
|
3340
|
+
}
|
|
3341
|
+
},
|
|
3342
|
+
"required": [
|
|
3343
|
+
"type",
|
|
3344
|
+
"entityId",
|
|
3345
|
+
"entityType"
|
|
3346
|
+
]
|
|
3347
|
+
},
|
|
3348
|
+
{
|
|
3349
|
+
"type": "object",
|
|
3350
|
+
"properties": {
|
|
3351
|
+
"type": {
|
|
3352
|
+
"type": "string",
|
|
3353
|
+
"enum": [
|
|
3354
|
+
"capture"
|
|
3355
|
+
]
|
|
3356
|
+
},
|
|
3357
|
+
"id": {
|
|
3358
|
+
"type": "string",
|
|
3359
|
+
"description": "ID of the capture"
|
|
3360
|
+
},
|
|
3361
|
+
"source": {
|
|
3362
|
+
"type": "string",
|
|
3363
|
+
"description": "Source of the capture"
|
|
3364
|
+
}
|
|
3365
|
+
},
|
|
3366
|
+
"required": [
|
|
3367
|
+
"type",
|
|
3368
|
+
"id",
|
|
3369
|
+
"source"
|
|
3370
|
+
]
|
|
3371
|
+
}
|
|
3372
|
+
]
|
|
3373
|
+
}
|
|
3374
|
+
]
|
|
3375
|
+
},
|
|
3265
3376
|
"SearchAIRecommendedQuestions": {
|
|
3266
3377
|
"type": "object",
|
|
3267
3378
|
"description": "Questions recommended by the AI for the given content.",
|
|
@@ -4155,11 +4266,15 @@
|
|
|
4155
4266
|
"secrets"
|
|
4156
4267
|
]
|
|
4157
4268
|
},
|
|
4269
|
+
"IntegrationTarget": {
|
|
4270
|
+
"type": "string",
|
|
4271
|
+
"enum": [
|
|
4272
|
+
"organization",
|
|
4273
|
+
"all"
|
|
4274
|
+
]
|
|
4275
|
+
},
|
|
4158
4276
|
"IntegrationInstallationTarget": {
|
|
4159
4277
|
"oneOf": [
|
|
4160
|
-
{
|
|
4161
|
-
"$ref": "#/components/schemas/UserTarget"
|
|
4162
|
-
},
|
|
4163
4278
|
{
|
|
4164
4279
|
"$ref": "#/components/schemas/OrganizationTarget"
|
|
4165
4280
|
}
|
|
@@ -4361,6 +4476,11 @@
|
|
|
4361
4476
|
"description": "Unique ID for the entity in GitBook"
|
|
4362
4477
|
},
|
|
4363
4478
|
"type": {
|
|
4479
|
+
"deprecated": true,
|
|
4480
|
+
"description": "Type of an entity. Deprecated, use entityType.",
|
|
4481
|
+
"$ref": "#/components/schemas/EntityType"
|
|
4482
|
+
},
|
|
4483
|
+
"entityType": {
|
|
4364
4484
|
"$ref": "#/components/schemas/EntityType"
|
|
4365
4485
|
},
|
|
4366
4486
|
"urls": {
|
|
@@ -4381,6 +4501,7 @@
|
|
|
4381
4501
|
"required": [
|
|
4382
4502
|
"id",
|
|
4383
4503
|
"type",
|
|
4504
|
+
"entityType",
|
|
4384
4505
|
"urls"
|
|
4385
4506
|
]
|
|
4386
4507
|
}
|
|
@@ -8519,62 +8640,6 @@
|
|
|
8519
8640
|
}
|
|
8520
8641
|
}
|
|
8521
8642
|
},
|
|
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
8643
|
"/users/{userId}": {
|
|
8579
8644
|
"get": {
|
|
8580
8645
|
"operationId": "getUserById",
|
|
@@ -15810,7 +15875,7 @@
|
|
|
15810
15875
|
"get": {
|
|
15811
15876
|
"operationId": "listCaptures",
|
|
15812
15877
|
"summary": "List captures",
|
|
15813
|
-
"description": "List captures in an organization.\n",
|
|
15878
|
+
"description": "List captures in an organization, newest first.\n",
|
|
15814
15879
|
"tags": [
|
|
15815
15880
|
"organizations"
|
|
15816
15881
|
],
|
|
@@ -15975,6 +16040,34 @@
|
|
|
15975
16040
|
"$ref": "#/components/responses/UnexpectedError"
|
|
15976
16041
|
}
|
|
15977
16042
|
}
|
|
16043
|
+
},
|
|
16044
|
+
"delete": {
|
|
16045
|
+
"operationId": "deleteCapture",
|
|
16046
|
+
"summary": "Delete a capture by its ID",
|
|
16047
|
+
"tags": [
|
|
16048
|
+
"organizations"
|
|
16049
|
+
],
|
|
16050
|
+
"security": [
|
|
16051
|
+
{
|
|
16052
|
+
"user": []
|
|
16053
|
+
}
|
|
16054
|
+
],
|
|
16055
|
+
"parameters": [
|
|
16056
|
+
{
|
|
16057
|
+
"$ref": "#/components/parameters/organizationId"
|
|
16058
|
+
},
|
|
16059
|
+
{
|
|
16060
|
+
"$ref": "#/components/parameters/captureId"
|
|
16061
|
+
}
|
|
16062
|
+
],
|
|
16063
|
+
"responses": {
|
|
16064
|
+
"200": {
|
|
16065
|
+
"description": "OK"
|
|
16066
|
+
},
|
|
16067
|
+
"default": {
|
|
16068
|
+
"$ref": "#/components/responses/UnexpectedError"
|
|
16069
|
+
}
|
|
16070
|
+
}
|
|
15978
16071
|
}
|
|
15979
16072
|
},
|
|
15980
16073
|
"/orgs/{organizationId}/captures/{captureId}/events": {
|
|
@@ -16092,6 +16185,52 @@
|
|
|
16092
16185
|
}
|
|
16093
16186
|
}
|
|
16094
16187
|
},
|
|
16188
|
+
"/orgs/{organizationId}/ask": {
|
|
16189
|
+
"post": {
|
|
16190
|
+
"operationId": "askInOrganization",
|
|
16191
|
+
"summary": "Ask a question.",
|
|
16192
|
+
"security": [
|
|
16193
|
+
{
|
|
16194
|
+
"user": []
|
|
16195
|
+
}
|
|
16196
|
+
],
|
|
16197
|
+
"parameters": [
|
|
16198
|
+
{
|
|
16199
|
+
"$ref": "#/components/parameters/organizationId"
|
|
16200
|
+
}
|
|
16201
|
+
],
|
|
16202
|
+
"requestBody": {
|
|
16203
|
+
"required": true,
|
|
16204
|
+
"content": {
|
|
16205
|
+
"application/json": {
|
|
16206
|
+
"schema": {
|
|
16207
|
+
"$ref": "#/components/schemas/SearchAIQuery"
|
|
16208
|
+
}
|
|
16209
|
+
}
|
|
16210
|
+
}
|
|
16211
|
+
},
|
|
16212
|
+
"responses": {
|
|
16213
|
+
"200": {
|
|
16214
|
+
"description": "OK",
|
|
16215
|
+
"content": {
|
|
16216
|
+
"application/json": {
|
|
16217
|
+
"schema": {
|
|
16218
|
+
"type": "object",
|
|
16219
|
+
"properties": {
|
|
16220
|
+
"answer": {
|
|
16221
|
+
"$ref": "#/components/schemas/SearchAIAnswer"
|
|
16222
|
+
}
|
|
16223
|
+
}
|
|
16224
|
+
}
|
|
16225
|
+
}
|
|
16226
|
+
}
|
|
16227
|
+
},
|
|
16228
|
+
"default": {
|
|
16229
|
+
"$ref": "#/components/responses/UnexpectedError"
|
|
16230
|
+
}
|
|
16231
|
+
}
|
|
16232
|
+
}
|
|
16233
|
+
},
|
|
16095
16234
|
"/internal/hive/token": {
|
|
16096
16235
|
"post": {
|
|
16097
16236
|
"operationId": "generateHiveAccessToken",
|
package/spec/openapi.yaml
CHANGED
|
@@ -336,6 +336,9 @@ components:
|
|
|
336
336
|
description: Base64 content of the image
|
|
337
337
|
visibility:
|
|
338
338
|
$ref: "#/components/schemas/IntegrationVisibility"
|
|
339
|
+
target:
|
|
340
|
+
description: Allowed installation target for the integration. If not specified, the integration can be installed at `all` targets (org, spaces etc)
|
|
341
|
+
$ref: "#/components/schemas/IntegrationTarget"
|
|
339
342
|
scopes:
|
|
340
343
|
$ref: "#/components/schemas/IntegrationScopes"
|
|
341
344
|
categories:
|
|
@@ -362,6 +365,7 @@ components:
|
|
|
362
365
|
items:
|
|
363
366
|
$ref: "#/components/schemas/EntityRawSchema"
|
|
364
367
|
required:
|
|
368
|
+
- organization
|
|
365
369
|
- title
|
|
366
370
|
- description
|
|
367
371
|
- script
|
|
@@ -713,13 +717,6 @@ components:
|
|
|
713
717
|
description: The actual token value.
|
|
714
718
|
required:
|
|
715
719
|
- token
|
|
716
|
-
UserTarget:
|
|
717
|
-
type: object
|
|
718
|
-
required:
|
|
719
|
-
- user
|
|
720
|
-
properties:
|
|
721
|
-
user:
|
|
722
|
-
type: string
|
|
723
720
|
Team:
|
|
724
721
|
type: object
|
|
725
722
|
properties:
|
|
@@ -1044,14 +1041,6 @@ components:
|
|
|
1044
1041
|
organization:
|
|
1045
1042
|
type: string
|
|
1046
1043
|
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
1044
|
parent:
|
|
1056
1045
|
type: string
|
|
1057
1046
|
description: ID of the parent collection.
|
|
@@ -1060,6 +1049,7 @@ components:
|
|
|
1060
1049
|
- id
|
|
1061
1050
|
- type
|
|
1062
1051
|
- title
|
|
1052
|
+
- organization
|
|
1063
1053
|
- visibility
|
|
1064
1054
|
- createdAt
|
|
1065
1055
|
- updatedAt
|
|
@@ -1731,6 +1721,7 @@ components:
|
|
|
1731
1721
|
thread.message:
|
|
1732
1722
|
type: integer
|
|
1733
1723
|
contributors:
|
|
1724
|
+
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
1725
|
type: array
|
|
1735
1726
|
minItems: 1
|
|
1736
1727
|
items:
|
|
@@ -1748,8 +1739,13 @@ components:
|
|
|
1748
1739
|
type: string
|
|
1749
1740
|
description: URL of the capture in the API
|
|
1750
1741
|
format: uri
|
|
1742
|
+
app:
|
|
1743
|
+
type: string
|
|
1744
|
+
description: URL of the capture in the app
|
|
1745
|
+
format: uri
|
|
1751
1746
|
required:
|
|
1752
1747
|
- location
|
|
1748
|
+
- app
|
|
1753
1749
|
required:
|
|
1754
1750
|
- object
|
|
1755
1751
|
- id
|
|
@@ -2218,6 +2214,7 @@ components:
|
|
|
2218
2214
|
type: string
|
|
2219
2215
|
previousQueries:
|
|
2220
2216
|
type: array
|
|
2217
|
+
deprecated: true
|
|
2221
2218
|
maxItems: 10
|
|
2222
2219
|
items:
|
|
2223
2220
|
type: string
|
|
@@ -2233,8 +2230,15 @@ components:
|
|
|
2233
2230
|
type: array
|
|
2234
2231
|
items:
|
|
2235
2232
|
type: string
|
|
2233
|
+
sources:
|
|
2234
|
+
type: array
|
|
2235
|
+
description: The sources used to generate the answer.
|
|
2236
|
+
items:
|
|
2237
|
+
$ref: "#/components/schemas/SearchAIAnswerSource"
|
|
2236
2238
|
pages:
|
|
2237
2239
|
type: array
|
|
2240
|
+
deprecated: true
|
|
2241
|
+
description: The pages used to generate the answer. Deprecated - use sources instead.
|
|
2238
2242
|
items:
|
|
2239
2243
|
type: object
|
|
2240
2244
|
properties:
|
|
@@ -2256,7 +2260,77 @@ components:
|
|
|
2256
2260
|
required:
|
|
2257
2261
|
- text
|
|
2258
2262
|
- pages
|
|
2263
|
+
- sources
|
|
2259
2264
|
- followupQuestions
|
|
2265
|
+
SearchAIAnswerSource:
|
|
2266
|
+
allOf:
|
|
2267
|
+
- type: object
|
|
2268
|
+
properties:
|
|
2269
|
+
type:
|
|
2270
|
+
type: string
|
|
2271
|
+
enum:
|
|
2272
|
+
- page
|
|
2273
|
+
- entity
|
|
2274
|
+
- capture
|
|
2275
|
+
required:
|
|
2276
|
+
- type
|
|
2277
|
+
- oneOf:
|
|
2278
|
+
- type: object
|
|
2279
|
+
properties:
|
|
2280
|
+
type:
|
|
2281
|
+
type: string
|
|
2282
|
+
enum:
|
|
2283
|
+
- page
|
|
2284
|
+
page:
|
|
2285
|
+
type: string
|
|
2286
|
+
revision:
|
|
2287
|
+
type: string
|
|
2288
|
+
space:
|
|
2289
|
+
type: string
|
|
2290
|
+
sections:
|
|
2291
|
+
type: array
|
|
2292
|
+
items:
|
|
2293
|
+
type: string
|
|
2294
|
+
required:
|
|
2295
|
+
- type
|
|
2296
|
+
- page
|
|
2297
|
+
- revision
|
|
2298
|
+
- space
|
|
2299
|
+
- sections
|
|
2300
|
+
- type: object
|
|
2301
|
+
properties:
|
|
2302
|
+
type:
|
|
2303
|
+
type: string
|
|
2304
|
+
enum:
|
|
2305
|
+
- entity
|
|
2306
|
+
entityId:
|
|
2307
|
+
type: string
|
|
2308
|
+
description: ID of the entity
|
|
2309
|
+
entityType:
|
|
2310
|
+
$ref: "#/components/schemas/EntityType"
|
|
2311
|
+
integration:
|
|
2312
|
+
description: The name of the integration that manages this entity. If undefined, this entity is not managed by an integration.
|
|
2313
|
+
type: string
|
|
2314
|
+
required:
|
|
2315
|
+
- type
|
|
2316
|
+
- entityId
|
|
2317
|
+
- entityType
|
|
2318
|
+
- type: object
|
|
2319
|
+
properties:
|
|
2320
|
+
type:
|
|
2321
|
+
type: string
|
|
2322
|
+
enum:
|
|
2323
|
+
- capture
|
|
2324
|
+
id:
|
|
2325
|
+
type: string
|
|
2326
|
+
description: ID of the capture
|
|
2327
|
+
source:
|
|
2328
|
+
type: string
|
|
2329
|
+
description: Source of the capture
|
|
2330
|
+
required:
|
|
2331
|
+
- type
|
|
2332
|
+
- id
|
|
2333
|
+
- source
|
|
2260
2334
|
SearchAIRecommendedQuestions:
|
|
2261
2335
|
type: object
|
|
2262
2336
|
description: Questions recommended by the AI for the given content.
|
|
@@ -2890,9 +2964,13 @@ components:
|
|
|
2890
2964
|
- apiTokens
|
|
2891
2965
|
- integration
|
|
2892
2966
|
- secrets
|
|
2967
|
+
IntegrationTarget:
|
|
2968
|
+
type: string
|
|
2969
|
+
enum:
|
|
2970
|
+
- organization
|
|
2971
|
+
- all
|
|
2893
2972
|
IntegrationInstallationTarget:
|
|
2894
2973
|
oneOf:
|
|
2895
|
-
- $ref: "#/components/schemas/UserTarget"
|
|
2896
2974
|
- $ref: "#/components/schemas/OrganizationTarget"
|
|
2897
2975
|
IntegrationInstallationConfiguration:
|
|
2898
2976
|
type: object
|
|
@@ -3022,6 +3100,10 @@ components:
|
|
|
3022
3100
|
type: string
|
|
3023
3101
|
description: Unique ID for the entity in GitBook
|
|
3024
3102
|
type:
|
|
3103
|
+
deprecated: true
|
|
3104
|
+
description: Type of an entity. Deprecated, use entityType.
|
|
3105
|
+
$ref: "#/components/schemas/EntityType"
|
|
3106
|
+
entityType:
|
|
3025
3107
|
$ref: "#/components/schemas/EntityType"
|
|
3026
3108
|
urls:
|
|
3027
3109
|
type: object
|
|
@@ -3036,6 +3118,7 @@ components:
|
|
|
3036
3118
|
required:
|
|
3037
3119
|
- id
|
|
3038
3120
|
- type
|
|
3121
|
+
- entityType
|
|
3039
3122
|
- urls
|
|
3040
3123
|
EntityType:
|
|
3041
3124
|
type: string
|
|
@@ -5655,37 +5738,6 @@ paths:
|
|
|
5655
5738
|
$ref: "#/components/schemas/UserPreferences"
|
|
5656
5739
|
default:
|
|
5657
5740
|
$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
5741
|
"/users/{userId}":
|
|
5690
5742
|
get:
|
|
5691
5743
|
operationId: getUserById
|
|
@@ -9732,7 +9784,7 @@ paths:
|
|
|
9732
9784
|
operationId: listCaptures
|
|
9733
9785
|
summary: List captures
|
|
9734
9786
|
description: |
|
|
9735
|
-
List captures in an organization.
|
|
9787
|
+
List captures in an organization, newest first.
|
|
9736
9788
|
tags:
|
|
9737
9789
|
- organizations
|
|
9738
9790
|
security:
|
|
@@ -9823,6 +9875,21 @@ paths:
|
|
|
9823
9875
|
$ref: "#/components/schemas/Capture"
|
|
9824
9876
|
default:
|
|
9825
9877
|
$ref: "#/components/responses/UnexpectedError"
|
|
9878
|
+
delete:
|
|
9879
|
+
operationId: deleteCapture
|
|
9880
|
+
summary: Delete a capture by its ID
|
|
9881
|
+
tags:
|
|
9882
|
+
- organizations
|
|
9883
|
+
security:
|
|
9884
|
+
- user: []
|
|
9885
|
+
parameters:
|
|
9886
|
+
- $ref: "#/components/parameters/organizationId"
|
|
9887
|
+
- $ref: "#/components/parameters/captureId"
|
|
9888
|
+
responses:
|
|
9889
|
+
"200":
|
|
9890
|
+
description: OK
|
|
9891
|
+
default:
|
|
9892
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
9826
9893
|
"/orgs/{organizationId}/captures/{captureId}/events":
|
|
9827
9894
|
post:
|
|
9828
9895
|
operationId: addEventsToCapture
|
|
@@ -9888,6 +9955,32 @@ paths:
|
|
|
9888
9955
|
- capture
|
|
9889
9956
|
default:
|
|
9890
9957
|
$ref: "#/components/responses/UnexpectedError"
|
|
9958
|
+
"/orgs/{organizationId}/ask":
|
|
9959
|
+
post:
|
|
9960
|
+
operationId: askInOrganization
|
|
9961
|
+
summary: Ask a question.
|
|
9962
|
+
security:
|
|
9963
|
+
- user: []
|
|
9964
|
+
parameters:
|
|
9965
|
+
- $ref: "#/components/parameters/organizationId"
|
|
9966
|
+
requestBody:
|
|
9967
|
+
required: true
|
|
9968
|
+
content:
|
|
9969
|
+
application/json:
|
|
9970
|
+
schema:
|
|
9971
|
+
$ref: "#/components/schemas/SearchAIQuery"
|
|
9972
|
+
responses:
|
|
9973
|
+
"200":
|
|
9974
|
+
description: OK
|
|
9975
|
+
content:
|
|
9976
|
+
application/json:
|
|
9977
|
+
schema:
|
|
9978
|
+
type: object
|
|
9979
|
+
properties:
|
|
9980
|
+
answer:
|
|
9981
|
+
$ref: "#/components/schemas/SearchAIAnswer"
|
|
9982
|
+
default:
|
|
9983
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
9891
9984
|
/internal/hive/token:
|
|
9892
9985
|
post:
|
|
9893
9986
|
operationId: generateHiveAccessToken
|