@gitbook/api 0.5.0 → 0.7.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 +303 -165
- package/dist/index.cjs +82 -70
- package/dist/index.js +82 -69
- package/package.json +1 -1
- package/spec/openapi.json +1579 -836
- package/spec/openapi.yaml +825 -391
package/dist/client.d.ts
CHANGED
|
@@ -88,6 +88,7 @@ export interface RequestPublishIntegration {
|
|
|
88
88
|
*
|
|
89
89
|
*/
|
|
90
90
|
contentSecurityPolicy?: IntegrationContentSecurityPolicy;
|
|
91
|
+
entities?: EntityRawSchema[];
|
|
91
92
|
}
|
|
92
93
|
export interface RequestUpdateIntegrationInstallation {
|
|
93
94
|
/** External IDs assigned by the integration. */
|
|
@@ -495,24 +496,7 @@ export declare type SpaceRelationPair = SpaceRelation & {
|
|
|
495
496
|
target: SpaceRelationEdge;
|
|
496
497
|
source: SpaceRelationEdge;
|
|
497
498
|
};
|
|
498
|
-
|
|
499
|
-
* Environments the entity is linked to
|
|
500
|
-
*/
|
|
501
|
-
export declare type SpaceEntityEnvironments = string[];
|
|
502
|
-
/**
|
|
503
|
-
* Link between an integration entity and a space.
|
|
504
|
-
*/
|
|
505
|
-
export interface SpaceEntity {
|
|
506
|
-
/** Entity created and managed by an integration, representing a resource on an external service. */
|
|
507
|
-
entity: IntegrationEntity;
|
|
508
|
-
/** Environments the entity is linked to */
|
|
509
|
-
environments: SpaceEntityEnvironments;
|
|
510
|
-
/** URLs associated with the object */
|
|
511
|
-
urls: {
|
|
512
|
-
location: string;
|
|
513
|
-
};
|
|
514
|
-
}
|
|
515
|
-
export interface Revision {
|
|
499
|
+
export interface RevisionBase {
|
|
516
500
|
/** Type of Object, always equals to "revision" */
|
|
517
501
|
object: 'revision';
|
|
518
502
|
/** Unique identifier for the revision */
|
|
@@ -534,6 +518,20 @@ export interface Revision {
|
|
|
534
518
|
public?: string;
|
|
535
519
|
};
|
|
536
520
|
}
|
|
521
|
+
export declare type RevisionTypeMerge = RevisionBase & {
|
|
522
|
+
type: 'merge';
|
|
523
|
+
mergedFrom: ChangeRequest;
|
|
524
|
+
};
|
|
525
|
+
export declare type RevisionTypeRollback = RevisionBase & {
|
|
526
|
+
type: 'rollback';
|
|
527
|
+
};
|
|
528
|
+
export declare type RevisionTypeUpdate = RevisionBase & {
|
|
529
|
+
type: 'update';
|
|
530
|
+
};
|
|
531
|
+
export declare type RevisionTypeEdits = RevisionBase & {
|
|
532
|
+
type: 'edits';
|
|
533
|
+
};
|
|
534
|
+
export declare type Revision = RevisionTypeEdits | RevisionTypeMerge | RevisionTypeRollback | RevisionTypeUpdate;
|
|
537
535
|
export declare type RevisionPage = RevisionPageDocument | RevisionPageGroup | RevisionPageLink;
|
|
538
536
|
export interface RevisionPageBase {
|
|
539
537
|
/** Unique identifier for the page in the revision */
|
|
@@ -762,20 +760,52 @@ export declare enum TeamMemberRole {
|
|
|
762
760
|
Participant = "participant"
|
|
763
761
|
}
|
|
764
762
|
export interface Recording {
|
|
763
|
+
/** Type of Object, always equals to "recording" */
|
|
764
|
+
object: 'recording';
|
|
765
765
|
/** Unique identifier for the recording */
|
|
766
766
|
id: string;
|
|
767
|
+
/** Optional title describing the recording */
|
|
768
|
+
title: RecordingTitle;
|
|
767
769
|
context: RecordingContext;
|
|
770
|
+
/** ID in the original source of the recording. */
|
|
771
|
+
externalId?: string;
|
|
772
|
+
/**
|
|
773
|
+
* URL of the source from which the recording originated
|
|
774
|
+
* @format uri
|
|
775
|
+
*/
|
|
776
|
+
externalURL?: string;
|
|
768
777
|
/** @format date-time */
|
|
769
|
-
|
|
778
|
+
createdAt: string;
|
|
770
779
|
/** @format date-time */
|
|
771
780
|
stoppedAt?: string;
|
|
781
|
+
/** Count of events recorded. */
|
|
782
|
+
events: {
|
|
783
|
+
'terminal.command'?: number;
|
|
784
|
+
speech?: number;
|
|
785
|
+
};
|
|
786
|
+
contributors: (Integration | User)[];
|
|
787
|
+
/** Output document for the recording. Is not set when recording is not finished, the user has not access to the space, or content has been deleted. */
|
|
788
|
+
output?: RecordingOutput;
|
|
789
|
+
/** URLs associated with the object */
|
|
790
|
+
urls: {
|
|
791
|
+
location: string;
|
|
792
|
+
};
|
|
772
793
|
}
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
794
|
+
/**
|
|
795
|
+
* Optional title describing the recording
|
|
796
|
+
*/
|
|
797
|
+
export declare type RecordingTitle = string;
|
|
798
|
+
export interface RecordingOutput {
|
|
799
|
+
/**
|
|
800
|
+
* URL of the generated page
|
|
801
|
+
* @format uri
|
|
802
|
+
*/
|
|
803
|
+
url: string;
|
|
804
|
+
space: Space;
|
|
805
|
+
page: RevisionPageDocument;
|
|
778
806
|
}
|
|
807
|
+
export declare type RecordingEvent = RecordingTerminalCommandEvent | RecordingSpeechEvent;
|
|
808
|
+
export declare type RecordingContext = 'meeting' | 'conversation' | 'walkthrough';
|
|
779
809
|
export interface BaseRecordingEvent {
|
|
780
810
|
/** The type of event */
|
|
781
811
|
type: string;
|
|
@@ -1075,6 +1105,8 @@ export interface Integration {
|
|
|
1075
1105
|
object: 'integration';
|
|
1076
1106
|
/** Unique named identifier for the integration */
|
|
1077
1107
|
name: string;
|
|
1108
|
+
/** Version of the integration */
|
|
1109
|
+
version: number;
|
|
1078
1110
|
/** Title of the integration */
|
|
1079
1111
|
title: IntegrationTitle;
|
|
1080
1112
|
/** Description of the integration */
|
|
@@ -1124,7 +1156,8 @@ export declare type IntegrationSummary = string;
|
|
|
1124
1156
|
*/
|
|
1125
1157
|
export declare type IntegrationScopes = IntegrationScope[];
|
|
1126
1158
|
export declare enum IntegrationScope {
|
|
1127
|
-
|
|
1159
|
+
EntitiesWrite = "entities:write",
|
|
1160
|
+
RecordingWrite = "recording:write",
|
|
1128
1161
|
SpaceViewsRead = "space:views:read",
|
|
1129
1162
|
SpaceContentRead = "space:content:read",
|
|
1130
1163
|
SpaceContentWrite = "space:content:write",
|
|
@@ -1271,6 +1304,10 @@ export interface IntegrationInstallation {
|
|
|
1271
1304
|
* Installation of an integration at a space level
|
|
1272
1305
|
*/
|
|
1273
1306
|
export interface IntegrationSpaceInstallation {
|
|
1307
|
+
/** Unique name identifier of the integration */
|
|
1308
|
+
integration: string;
|
|
1309
|
+
/** ID of the integration installation */
|
|
1310
|
+
installation: string;
|
|
1274
1311
|
/** ID of the space the integration is installed on. */
|
|
1275
1312
|
space: string;
|
|
1276
1313
|
status: IntegrationInstallationStatus;
|
|
@@ -1365,28 +1402,88 @@ export declare type SpaceIntegrationBlocks = {
|
|
|
1365
1402
|
/**
|
|
1366
1403
|
* Entity to create or update in an integration's installation.
|
|
1367
1404
|
*/
|
|
1368
|
-
export interface
|
|
1369
|
-
/** Unique ID of the entity in the context of the integration's
|
|
1370
|
-
entityId:
|
|
1371
|
-
/**
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
/**
|
|
1376
|
-
* URL to open the entity
|
|
1377
|
-
* @format uri
|
|
1378
|
-
*/
|
|
1379
|
-
target: string;
|
|
1380
|
-
/** Metadata stored by the integration on the entity */
|
|
1381
|
-
metadata: Record<string, string | number | boolean>;
|
|
1405
|
+
export interface UpsertEntity {
|
|
1406
|
+
/** Unique ID of the entity in the context of the integration's entity type */
|
|
1407
|
+
entityId: EntityId;
|
|
1408
|
+
/** Map of values stored as properties on the entity */
|
|
1409
|
+
properties: Record<string, string | number | boolean | {
|
|
1410
|
+
entityId: string;
|
|
1411
|
+
}>;
|
|
1382
1412
|
}
|
|
1383
1413
|
/**
|
|
1384
|
-
* Entity created and managed by an integration, representing
|
|
1414
|
+
* Entity created and managed by an integration, representing an external element.
|
|
1385
1415
|
*/
|
|
1386
|
-
export declare type
|
|
1416
|
+
export declare type Entity = UpsertEntity & {
|
|
1387
1417
|
id: string;
|
|
1388
|
-
|
|
1418
|
+
type: EntityType;
|
|
1419
|
+
urls: {
|
|
1420
|
+
location: string;
|
|
1421
|
+
};
|
|
1389
1422
|
};
|
|
1423
|
+
/**
|
|
1424
|
+
* Type of an entity
|
|
1425
|
+
*/
|
|
1426
|
+
export declare type EntityType = string;
|
|
1427
|
+
/**
|
|
1428
|
+
* Unique ID of the entity in the context of the integration's entity type
|
|
1429
|
+
*/
|
|
1430
|
+
export declare type EntityId = string;
|
|
1431
|
+
export declare type EntitySchemaTitle = string;
|
|
1432
|
+
/**
|
|
1433
|
+
* Schema for a type of entities
|
|
1434
|
+
*/
|
|
1435
|
+
export interface EntityRawSchema {
|
|
1436
|
+
/** Type of an entity */
|
|
1437
|
+
type: EntityType;
|
|
1438
|
+
/** Title of the entity type */
|
|
1439
|
+
title: {
|
|
1440
|
+
singular: EntitySchemaTitle;
|
|
1441
|
+
plural: EntitySchemaTitle;
|
|
1442
|
+
};
|
|
1443
|
+
/** Ordered list of all properties stored in entities. */
|
|
1444
|
+
properties: EntityPropertySchema[];
|
|
1445
|
+
}
|
|
1446
|
+
export declare type EntitySchema = EntityRawSchema & {
|
|
1447
|
+
entities: number;
|
|
1448
|
+
integration?: Integration;
|
|
1449
|
+
urls: {
|
|
1450
|
+
location: string;
|
|
1451
|
+
};
|
|
1452
|
+
};
|
|
1453
|
+
export declare type EntityPropertySchema = {
|
|
1454
|
+
name: string;
|
|
1455
|
+
title: string;
|
|
1456
|
+
description?: string;
|
|
1457
|
+
deprecated?: boolean;
|
|
1458
|
+
} & ({
|
|
1459
|
+
type: 'text';
|
|
1460
|
+
role?: 'title';
|
|
1461
|
+
} | {
|
|
1462
|
+
type: 'longtext';
|
|
1463
|
+
role?: 'body';
|
|
1464
|
+
} | {
|
|
1465
|
+
type: 'url';
|
|
1466
|
+
role?: 'target' | 'icon';
|
|
1467
|
+
} | {
|
|
1468
|
+
type: 'number';
|
|
1469
|
+
} | {
|
|
1470
|
+
type: 'boolean';
|
|
1471
|
+
} | {
|
|
1472
|
+
type: 'enum';
|
|
1473
|
+
values: {
|
|
1474
|
+
label: string;
|
|
1475
|
+
value: string;
|
|
1476
|
+
}[];
|
|
1477
|
+
} | {
|
|
1478
|
+
type: 'date';
|
|
1479
|
+
} | {
|
|
1480
|
+
type: 'user';
|
|
1481
|
+
} | {
|
|
1482
|
+
type: 'relation';
|
|
1483
|
+
entity: {
|
|
1484
|
+
type: EntityType;
|
|
1485
|
+
};
|
|
1486
|
+
});
|
|
1390
1487
|
/**
|
|
1391
1488
|
* Any event that can be received from GitBook.
|
|
1392
1489
|
*/
|
|
@@ -1837,7 +1934,7 @@ export interface ContentKitTextInput {
|
|
|
1837
1934
|
export interface ContentKitText {
|
|
1838
1935
|
type: 'text';
|
|
1839
1936
|
style?: 'bold' | 'italic' | 'code' | 'strikethrough';
|
|
1840
|
-
children: (string | ContentKitText)[];
|
|
1937
|
+
children: string | (string | ContentKitText | ContentKitLink)[];
|
|
1841
1938
|
}
|
|
1842
1939
|
export interface ContentKitBox {
|
|
1843
1940
|
type: 'box';
|
|
@@ -1909,6 +2006,7 @@ export declare enum ContentKitIcon {
|
|
|
1909
2006
|
Close = "close",
|
|
1910
2007
|
Edit = "edit",
|
|
1911
2008
|
Github = "github",
|
|
2009
|
+
Gitlab = "gitlab",
|
|
1912
2010
|
Maximize = "maximize",
|
|
1913
2011
|
Email = "email",
|
|
1914
2012
|
Settings = "settings",
|
|
@@ -1917,7 +2015,8 @@ export declare enum ContentKitIcon {
|
|
|
1917
2015
|
Star = "star",
|
|
1918
2016
|
Warning = "warning",
|
|
1919
2017
|
Link = "link",
|
|
1920
|
-
LinkExternal = "link-external"
|
|
2018
|
+
LinkExternal = "link-external",
|
|
2019
|
+
Eye = "eye"
|
|
1921
2020
|
}
|
|
1922
2021
|
/**
|
|
1923
2022
|
* Overlay modal.
|
|
@@ -2006,6 +2105,13 @@ export interface ContentKitImage {
|
|
|
2006
2105
|
};
|
|
2007
2106
|
aspectRatio: number;
|
|
2008
2107
|
}
|
|
2108
|
+
export interface ContentKitLink {
|
|
2109
|
+
type: 'link';
|
|
2110
|
+
target: {
|
|
2111
|
+
url: string | ContentKitURL;
|
|
2112
|
+
};
|
|
2113
|
+
children: string | string[];
|
|
2114
|
+
}
|
|
2009
2115
|
/**
|
|
2010
2116
|
* Field for an input.
|
|
2011
2117
|
*/
|
|
@@ -2039,6 +2145,8 @@ export interface ContentKitSelect {
|
|
|
2039
2145
|
placeholder?: string;
|
|
2040
2146
|
/** Should the select accept the selection of multiple options. If true, the state will be an array. */
|
|
2041
2147
|
multiple?: boolean;
|
|
2148
|
+
/** Should the filter input be allowed to be selected as an option. */
|
|
2149
|
+
acceptInput?: boolean;
|
|
2042
2150
|
/** Array of options to display in the select. */
|
|
2043
2151
|
options: ContentKitSelectOption[] | {
|
|
2044
2152
|
url: string | ContentKitURL;
|
|
@@ -2095,11 +2203,11 @@ export declare type ContentKitRootElement = ContentKitBlock | ContentKitModal;
|
|
|
2095
2203
|
/**
|
|
2096
2204
|
* Any element that can be used as children.
|
|
2097
2205
|
*/
|
|
2098
|
-
export declare type ContentKitDescendantElement = ContentKitButton | ContentKitTextInput | ContentKitHStack | ContentKitVStack | ContentKitBox | ContentKitDivider | ContentKitWebFrame | ContentKitCodeBlock | ContentKitMarkdown | ContentKitCard | ContentKitImage | ContentKitInput | ContentKitSelect | ContentKitSwitch | ContentKitCheckbox | ContentKitRadio | ContentKitText | ContentKitHint;
|
|
2206
|
+
export declare type ContentKitDescendantElement = ContentKitButton | ContentKitTextInput | ContentKitHStack | ContentKitVStack | ContentKitBox | ContentKitDivider | ContentKitWebFrame | ContentKitCodeBlock | ContentKitMarkdown | ContentKitCard | ContentKitImage | ContentKitInput | ContentKitSelect | ContentKitSwitch | ContentKitCheckbox | ContentKitRadio | ContentKitText | ContentKitHint | ContentKitLink;
|
|
2099
2207
|
/**
|
|
2100
2208
|
* Any element that is inline.
|
|
2101
2209
|
*/
|
|
2102
|
-
export declare type ContentKitInlineElement = ContentKitText | ContentKitImage;
|
|
2210
|
+
export declare type ContentKitInlineElement = ContentKitText | ContentKitImage | ContentKitLink;
|
|
2103
2211
|
/**
|
|
2104
2212
|
* Specification for an URL in ContentKit.
|
|
2105
2213
|
*/
|
|
@@ -2119,7 +2227,7 @@ export interface ContentKitURL {
|
|
|
2119
2227
|
/**
|
|
2120
2228
|
* Channel to subscribe to for API updates.
|
|
2121
2229
|
*/
|
|
2122
|
-
export declare type SubscriptionChannel = SpaceInfoChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpaceRelationsChannel | SpaceEntitiesChannel | SpaceCustomFieldsChannel | BackofficeUserInfoChannel | SpaceIntegrationsChannel | OrganizationCustomFieldsChannel | OrganizationEnvironmentsChannel | UserAPITokensChannel | ChangeRequestReviewsChannel | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpaceRelationsChannel | OrganizationSpacesChannel | OrganizationEntitiesChannel | {
|
|
2230
|
+
export declare type SubscriptionChannel = SpaceInfoChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpaceRelationsChannel | SpaceEntitiesChannel | SpaceCustomFieldsChannel | BackofficeUserInfoChannel | SpaceIntegrationsChannel | OrganizationCustomFieldsChannel | OrganizationEnvironmentsChannel | UserAPITokensChannel | ChangeRequestReviewsChannel | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpaceRelationsChannel | OrganizationSpacesChannel | OrganizationEntitiesChannel | OrganizationSchemasChannel | OrganizationRecordingsChannel | {
|
|
2123
2231
|
channel: 'space-comments';
|
|
2124
2232
|
space: string;
|
|
2125
2233
|
changeRequest?: string;
|
|
@@ -2229,16 +2337,28 @@ export interface OrganizationSpacesChannel {
|
|
|
2229
2337
|
organization: string;
|
|
2230
2338
|
}
|
|
2231
2339
|
/**
|
|
2232
|
-
* Subscription channel for
|
|
2340
|
+
* Subscription channel for entities in an organization.
|
|
2233
2341
|
*/
|
|
2234
2342
|
export interface OrganizationEntitiesChannel {
|
|
2235
2343
|
channel: 'organization-entities';
|
|
2236
2344
|
organization: string;
|
|
2345
|
+
entityType: string;
|
|
2346
|
+
}
|
|
2347
|
+
/**
|
|
2348
|
+
* Subscription channel for all entity schemas in an organization.
|
|
2349
|
+
*/
|
|
2350
|
+
export interface OrganizationSchemasChannel {
|
|
2351
|
+
channel: 'organization-schemas';
|
|
2352
|
+
organization: string;
|
|
2237
2353
|
}
|
|
2238
2354
|
export interface OrganizationEnvironmentsChannel {
|
|
2239
2355
|
channel: 'organization-environments';
|
|
2240
2356
|
organization: string;
|
|
2241
2357
|
}
|
|
2358
|
+
export interface OrganizationRecordingsChannel {
|
|
2359
|
+
channel: 'organization-recordings';
|
|
2360
|
+
organization: string;
|
|
2361
|
+
}
|
|
2242
2362
|
/**
|
|
2243
2363
|
* Custom field
|
|
2244
2364
|
*/
|
|
@@ -2264,9 +2384,10 @@ export declare type CustomFieldDescription = string;
|
|
|
2264
2384
|
export declare enum CustomFieldType {
|
|
2265
2385
|
Text = "text",
|
|
2266
2386
|
Number = "number",
|
|
2267
|
-
Boolean = "boolean"
|
|
2387
|
+
Boolean = "boolean",
|
|
2388
|
+
Tags = "tags"
|
|
2268
2389
|
}
|
|
2269
|
-
export declare type CustomFieldValue = string | number | boolean;
|
|
2390
|
+
export declare type CustomFieldValue = string | number | boolean | string[];
|
|
2270
2391
|
export declare type CustomFieldValues = {
|
|
2271
2392
|
customField: CustomField;
|
|
2272
2393
|
value?: CustomFieldValue;
|
|
@@ -3354,69 +3475,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3354
3475
|
* @secure
|
|
3355
3476
|
*/
|
|
3356
3477
|
updateSpaceCustomFields: (spaceId: string, data: UpdateCustomFieldValues, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
3357
|
-
/**
|
|
3358
|
-
* No description
|
|
3359
|
-
*
|
|
3360
|
-
* @tags spaces
|
|
3361
|
-
* @name ListSpaceEntities
|
|
3362
|
-
* @summary List all entities linked to a space
|
|
3363
|
-
* @request GET:/spaces/{spaceId}/entities
|
|
3364
|
-
* @secure
|
|
3365
|
-
*/
|
|
3366
|
-
listSpaceEntities: (spaceId: string, query?: {
|
|
3367
|
-
page?: string;
|
|
3368
|
-
limit?: number;
|
|
3369
|
-
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
3370
|
-
items: SpaceEntity[];
|
|
3371
|
-
}, Error>>;
|
|
3372
|
-
/**
|
|
3373
|
-
* No description
|
|
3374
|
-
*
|
|
3375
|
-
* @tags spaces
|
|
3376
|
-
* @name AddSpaceEntities
|
|
3377
|
-
* @summary Link the space to entities
|
|
3378
|
-
* @request POST:/spaces/{spaceId}/entities
|
|
3379
|
-
* @secure
|
|
3380
|
-
*/
|
|
3381
|
-
addSpaceEntities: (spaceId: string, data: {
|
|
3382
|
-
entities: {
|
|
3383
|
-
integration: string;
|
|
3384
|
-
entityId: string;
|
|
3385
|
-
environments: string[];
|
|
3386
|
-
}[];
|
|
3387
|
-
}, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
3388
|
-
/**
|
|
3389
|
-
* No description
|
|
3390
|
-
*
|
|
3391
|
-
* @tags spaces
|
|
3392
|
-
* @name GetSpaceEntity
|
|
3393
|
-
* @summary Get a space entity
|
|
3394
|
-
* @request GET:/spaces/{spaceId}/entities/{integrationName}/{entityId}
|
|
3395
|
-
* @secure
|
|
3396
|
-
*/
|
|
3397
|
-
getSpaceEntity: (spaceId: string, integrationName: string, entityId: string, params?: RequestParams) => Promise<HttpResponse<SpaceEntity, Error>>;
|
|
3398
|
-
/**
|
|
3399
|
-
* No description
|
|
3400
|
-
*
|
|
3401
|
-
* @tags spaces
|
|
3402
|
-
* @name UpdateSpaceEntity
|
|
3403
|
-
* @summary Update a space entity
|
|
3404
|
-
* @request PATCH:/spaces/{spaceId}/entities/{integrationName}/{entityId}
|
|
3405
|
-
* @secure
|
|
3406
|
-
*/
|
|
3407
|
-
updateSpaceEntity: (spaceId: string, integrationName: string, entityId: string, data: {
|
|
3408
|
-
environments: SpaceEntityEnvironments;
|
|
3409
|
-
}, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
3410
|
-
/**
|
|
3411
|
-
* No description
|
|
3412
|
-
*
|
|
3413
|
-
* @tags spaces
|
|
3414
|
-
* @name DeleteSpaceEntity
|
|
3415
|
-
* @summary Delete a space entity
|
|
3416
|
-
* @request DELETE:/spaces/{spaceId}/entities/{integrationName}/{entityId}
|
|
3417
|
-
* @secure
|
|
3418
|
-
*/
|
|
3419
|
-
deleteSpaceEntity: (spaceId: string, integrationName: string, entityId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
3420
3478
|
};
|
|
3421
3479
|
collections: {
|
|
3422
3480
|
/**
|
|
@@ -3762,6 +3820,21 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3762
3820
|
message: string;
|
|
3763
3821
|
};
|
|
3764
3822
|
}>>;
|
|
3823
|
+
/**
|
|
3824
|
+
* No description
|
|
3825
|
+
*
|
|
3826
|
+
* @tags integrations
|
|
3827
|
+
* @name GetIntegrationSpaceInstallation
|
|
3828
|
+
* @summary Get a specific integration's space installation
|
|
3829
|
+
* @request GET:/integrations/{integrationName}/installations/{installationId}/spaces/{spaceId}
|
|
3830
|
+
* @secure
|
|
3831
|
+
*/
|
|
3832
|
+
getIntegrationSpaceInstallation: (integrationName: string, installationId: string, spaceId: string, params?: RequestParams) => Promise<HttpResponse<IntegrationSpaceInstallation, Error | {
|
|
3833
|
+
error: {
|
|
3834
|
+
code: 404;
|
|
3835
|
+
message: string;
|
|
3836
|
+
};
|
|
3837
|
+
}>>;
|
|
3765
3838
|
/**
|
|
3766
3839
|
* No description
|
|
3767
3840
|
*
|
|
@@ -3780,40 +3853,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3780
3853
|
* @secure
|
|
3781
3854
|
*/
|
|
3782
3855
|
uninstallIntegrationFromSpace: (integrationName: string, installationId: string, spaceId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
3783
|
-
/**
|
|
3784
|
-
* No description
|
|
3785
|
-
*
|
|
3786
|
-
* @tags integrations
|
|
3787
|
-
* @name GetIntegrationEntities
|
|
3788
|
-
* @summary List entities managed by an integration in an installation.
|
|
3789
|
-
* @request GET:/integrations/{integrationName}/installations/{installationId}/entities
|
|
3790
|
-
* @secure
|
|
3791
|
-
*/
|
|
3792
|
-
getIntegrationEntities: (integrationName: string, installationId: string, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
3793
|
-
items: IntegrationEntity[];
|
|
3794
|
-
}, Error | {
|
|
3795
|
-
error: {
|
|
3796
|
-
code: 404;
|
|
3797
|
-
message: string;
|
|
3798
|
-
};
|
|
3799
|
-
}>>;
|
|
3800
|
-
/**
|
|
3801
|
-
* @description Update all entities for an integration installation. Entities will be created and updated, missing entities will be deleted.
|
|
3802
|
-
*
|
|
3803
|
-
* @tags integrations
|
|
3804
|
-
* @name SyncIntegrationEntities
|
|
3805
|
-
* @summary Update all entities for an integration installation.
|
|
3806
|
-
* @request POST:/integrations/{integrationName}/installations/{installationId}/entities
|
|
3807
|
-
* @secure
|
|
3808
|
-
*/
|
|
3809
|
-
syncIntegrationEntities: (integrationName: string, installationId: string, data: {
|
|
3810
|
-
entities: UpsertIntegrationEntity[];
|
|
3811
|
-
}, params?: RequestParams) => Promise<HttpResponse<void, Error | {
|
|
3812
|
-
error: {
|
|
3813
|
-
code: 404;
|
|
3814
|
-
message: string;
|
|
3815
|
-
};
|
|
3816
|
-
}>>;
|
|
3817
3856
|
};
|
|
3818
3857
|
orgs: {
|
|
3819
3858
|
/**
|
|
@@ -4342,21 +4381,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4342
4381
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
4343
4382
|
items: SpaceRelationPair[];
|
|
4344
4383
|
}, Error>>;
|
|
4345
|
-
/**
|
|
4346
|
-
* No description
|
|
4347
|
-
*
|
|
4348
|
-
* @tags spaces
|
|
4349
|
-
* @name ListEntitiesInOrganization
|
|
4350
|
-
* @summary List all entities in an organization.
|
|
4351
|
-
* @request GET:/orgs/{organizationId}/entities
|
|
4352
|
-
* @secure
|
|
4353
|
-
*/
|
|
4354
|
-
listEntitiesInOrganization: (organizationId: string, query?: {
|
|
4355
|
-
page?: string;
|
|
4356
|
-
limit?: number;
|
|
4357
|
-
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
4358
|
-
items: IntegrationEntity[];
|
|
4359
|
-
}, Error>>;
|
|
4360
4384
|
/**
|
|
4361
4385
|
* No description
|
|
4362
4386
|
*
|
|
@@ -4417,6 +4441,105 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4417
4441
|
* @secure
|
|
4418
4442
|
*/
|
|
4419
4443
|
deleteEnvironment: (organizationId: string, environmentName: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
4444
|
+
/**
|
|
4445
|
+
* No description
|
|
4446
|
+
*
|
|
4447
|
+
* @tags organizations
|
|
4448
|
+
* @name ListEntitySchemas
|
|
4449
|
+
* @summary List the entity schemas in an organization.
|
|
4450
|
+
* @request GET:/orgs/{organizationId}/schemas
|
|
4451
|
+
* @secure
|
|
4452
|
+
*/
|
|
4453
|
+
listEntitySchemas: (organizationId: string, query?: {
|
|
4454
|
+
page?: string;
|
|
4455
|
+
limit?: number;
|
|
4456
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
4457
|
+
items: EntitySchema[];
|
|
4458
|
+
}, Error>>;
|
|
4459
|
+
/**
|
|
4460
|
+
* No description
|
|
4461
|
+
*
|
|
4462
|
+
* @tags organizations
|
|
4463
|
+
* @name GetEntitySchema
|
|
4464
|
+
* @summary Get an entity schema by its type.
|
|
4465
|
+
* @request GET:/orgs/{organizationId}/schemas/{entityType}
|
|
4466
|
+
* @secure
|
|
4467
|
+
*/
|
|
4468
|
+
getEntitySchema: (organizationId: string, entityType: EntityType, params?: RequestParams) => Promise<HttpResponse<EntitySchema, Error>>;
|
|
4469
|
+
/**
|
|
4470
|
+
* No description
|
|
4471
|
+
*
|
|
4472
|
+
* @tags organizations
|
|
4473
|
+
* @name SetEntitySchema
|
|
4474
|
+
* @summary Create or update an entity schema.
|
|
4475
|
+
* @request PUT:/orgs/{organizationId}/schemas/{entityType}
|
|
4476
|
+
* @secure
|
|
4477
|
+
*/
|
|
4478
|
+
setEntitySchema: (organizationId: string, entityType: EntityType, data: EntityRawSchema, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
4479
|
+
/**
|
|
4480
|
+
* No description
|
|
4481
|
+
*
|
|
4482
|
+
* @tags organizations
|
|
4483
|
+
* @name DeleteEntitySchema
|
|
4484
|
+
* @summary Delete an entity schema.
|
|
4485
|
+
* @request DELETE:/orgs/{organizationId}/schemas/{entityType}
|
|
4486
|
+
* @secure
|
|
4487
|
+
*/
|
|
4488
|
+
deleteEntitySchema: (organizationId: string, entityType: EntityType, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
4489
|
+
/**
|
|
4490
|
+
* No description
|
|
4491
|
+
*
|
|
4492
|
+
* @tags organizations
|
|
4493
|
+
* @name ListSchemaEntities
|
|
4494
|
+
* @summary List entities in an organization for a given type.
|
|
4495
|
+
* @request GET:/orgs/{organizationId}/schemas/{entityType}/entities
|
|
4496
|
+
* @secure
|
|
4497
|
+
*/
|
|
4498
|
+
listSchemaEntities: (organizationId: string, entityType: EntityType, query?: {
|
|
4499
|
+
page?: string;
|
|
4500
|
+
limit?: number;
|
|
4501
|
+
query?: string;
|
|
4502
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
4503
|
+
items: Entity[];
|
|
4504
|
+
}, Error>>;
|
|
4505
|
+
/**
|
|
4506
|
+
* No description
|
|
4507
|
+
*
|
|
4508
|
+
* @tags organizations
|
|
4509
|
+
* @name UpsertSchemaEntities
|
|
4510
|
+
* @summary Update/Create/Delete entities in a schema.
|
|
4511
|
+
* @request PUT:/orgs/{organizationId}/schemas/{entityType}/entities
|
|
4512
|
+
* @secure
|
|
4513
|
+
*/
|
|
4514
|
+
upsertSchemaEntities: (organizationId: string, entityType: EntityType, data: {
|
|
4515
|
+
delete?: boolean | EntityId[];
|
|
4516
|
+
entities: UpsertEntity[];
|
|
4517
|
+
}, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
4518
|
+
/**
|
|
4519
|
+
* No description
|
|
4520
|
+
*
|
|
4521
|
+
* @tags organizations
|
|
4522
|
+
* @name GetEntity
|
|
4523
|
+
* @summary Get an entity using its ID.
|
|
4524
|
+
* @request GET:/orgs/{organizationId}/schemas/{entityType}/entities/{entityId}
|
|
4525
|
+
* @secure
|
|
4526
|
+
*/
|
|
4527
|
+
getEntity: (organizationId: string, entityType: EntityType, entityId: EntityId, params?: RequestParams) => Promise<HttpResponse<Entity, Error>>;
|
|
4528
|
+
/**
|
|
4529
|
+
* @description List recordings in an organization.
|
|
4530
|
+
*
|
|
4531
|
+
* @tags organizations
|
|
4532
|
+
* @name ListRecordings
|
|
4533
|
+
* @summary List recordings
|
|
4534
|
+
* @request GET:/orgs/{organizationId}/recordings
|
|
4535
|
+
* @secure
|
|
4536
|
+
*/
|
|
4537
|
+
listRecordings: (organizationId: string, query?: {
|
|
4538
|
+
page?: string;
|
|
4539
|
+
limit?: number;
|
|
4540
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
4541
|
+
items: Recording[];
|
|
4542
|
+
}, Error>>;
|
|
4420
4543
|
/**
|
|
4421
4544
|
* No description
|
|
4422
4545
|
*
|
|
@@ -4427,9 +4550,21 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4427
4550
|
* @secure
|
|
4428
4551
|
*/
|
|
4429
4552
|
startRecording: (organizationId: string, data: {
|
|
4430
|
-
|
|
4553
|
+
title?: RecordingTitle;
|
|
4431
4554
|
context: RecordingContext;
|
|
4555
|
+
externalId?: string;
|
|
4556
|
+
externalURL?: string;
|
|
4432
4557
|
}, params?: RequestParams) => Promise<HttpResponse<Recording, Error>>;
|
|
4558
|
+
/**
|
|
4559
|
+
* No description
|
|
4560
|
+
*
|
|
4561
|
+
* @tags organizations
|
|
4562
|
+
* @name GetRecording
|
|
4563
|
+
* @summary Get a recording by its ID
|
|
4564
|
+
* @request GET:/orgs/{organizationId}/recordings/{recordingId}
|
|
4565
|
+
* @secure
|
|
4566
|
+
*/
|
|
4567
|
+
getRecording: (organizationId: string, recordingId: string, params?: RequestParams) => Promise<HttpResponse<Recording, Error>>;
|
|
4433
4568
|
/**
|
|
4434
4569
|
* No description
|
|
4435
4570
|
*
|
|
@@ -4451,8 +4586,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4451
4586
|
* @request POST:/orgs/{organizationId}/recordings/{recordingId}/stop
|
|
4452
4587
|
* @secure
|
|
4453
4588
|
*/
|
|
4454
|
-
stopRecording: (organizationId: string, recordingId: string,
|
|
4455
|
-
|
|
4589
|
+
stopRecording: (organizationId: string, recordingId: string, data: {
|
|
4590
|
+
space: string;
|
|
4591
|
+
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
4592
|
+
recording: RecordingOutput;
|
|
4593
|
+
followupQuestions?: string[];
|
|
4456
4594
|
}, Error>>;
|
|
4457
4595
|
};
|
|
4458
4596
|
internal: {
|