@gitbook/api 0.6.0 → 0.8.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 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,23 +496,6 @@ 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
499
  export interface RevisionBase {
516
500
  /** Type of Object, always equals to "revision" */
517
501
  object: 'revision';
@@ -798,6 +782,7 @@ export interface Recording {
798
782
  events: {
799
783
  'terminal.command'?: number;
800
784
  speech?: number;
785
+ 'thread.message'?: number;
801
786
  };
802
787
  contributors: (Integration | User)[];
803
788
  /** 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. */
@@ -820,8 +805,8 @@ export interface RecordingOutput {
820
805
  space: Space;
821
806
  page: RevisionPageDocument;
822
807
  }
823
- export declare type RecordingEvent = RecordingTerminalCommandEvent | RecordingSpeechEvent;
824
- export declare type RecordingContext = 'meeting' | 'conversation' | 'walkthrough';
808
+ export declare type RecordingEvent = RecordingTerminalCommandEvent | RecordingSpeechEvent | RecordingThreadMessageEvent | RecordingFileAddedEvent | RecordingFileChangedEvent | RecordingFileRemovedEvent;
809
+ export declare type RecordingContext = 'meeting' | 'thread' | 'walkthrough';
825
810
  export interface BaseRecordingEvent {
826
811
  /** The type of event */
827
812
  type: string;
@@ -849,6 +834,26 @@ export declare type RecordingTerminalCommandEvent = BaseRecordingEvent & {
849
834
  command: string;
850
835
  stdout: string;
851
836
  };
837
+ export declare type RecordingThreadMessageEvent = BaseRecordingEvent & {
838
+ type: 'thread.message';
839
+ isFirst?: boolean;
840
+ text: string;
841
+ };
842
+ export declare type RecordingFileAddedEvent = BaseRecordingEvent & {
843
+ type: 'file.added';
844
+ filename: string;
845
+ fileSnapshot: string;
846
+ };
847
+ export declare type RecordingFileChangedEvent = BaseRecordingEvent & {
848
+ type: 'file.changed';
849
+ filename: string;
850
+ fileDiff: string;
851
+ };
852
+ export declare type RecordingFileRemovedEvent = BaseRecordingEvent & {
853
+ type: 'file.removed';
854
+ filename: string;
855
+ fileSnapshot: string;
856
+ };
852
857
  export interface ChangeRequest {
853
858
  /** Type of Object, always equals to "change-request" */
854
859
  object: 'change-request';
@@ -1121,6 +1126,8 @@ export interface Integration {
1121
1126
  object: 'integration';
1122
1127
  /** Unique named identifier for the integration */
1123
1128
  name: string;
1129
+ /** Version of the integration */
1130
+ version: number;
1124
1131
  /** Title of the integration */
1125
1132
  title: IntegrationTitle;
1126
1133
  /** Description of the integration */
@@ -1170,7 +1177,7 @@ export declare type IntegrationSummary = string;
1170
1177
  */
1171
1178
  export declare type IntegrationScopes = IntegrationScope[];
1172
1179
  export declare enum IntegrationScope {
1173
- OrganizationEntitiesWrite = "organization:entities:write",
1180
+ EntitiesWrite = "entities:write",
1174
1181
  RecordingWrite = "recording:write",
1175
1182
  SpaceViewsRead = "space:views:read",
1176
1183
  SpaceContentRead = "space:content:read",
@@ -1252,6 +1259,7 @@ export declare enum IntegrationCategory {
1252
1259
  Collaboration = "collaboration",
1253
1260
  Marketing = "marketing",
1254
1261
  Content = "content",
1262
+ Gitsync = "gitsync",
1255
1263
  Other = "other"
1256
1264
  }
1257
1265
  export interface IntegrationConfigurations {
@@ -1318,6 +1326,10 @@ export interface IntegrationInstallation {
1318
1326
  * Installation of an integration at a space level
1319
1327
  */
1320
1328
  export interface IntegrationSpaceInstallation {
1329
+ /** Unique name identifier of the integration */
1330
+ integration: string;
1331
+ /** ID of the integration installation */
1332
+ installation: string;
1321
1333
  /** ID of the space the integration is installed on. */
1322
1334
  space: string;
1323
1335
  status: IntegrationInstallationStatus;
@@ -1352,6 +1364,8 @@ export interface IntegrationEnvironment {
1352
1364
  spaceInstallation?: IntegrationSpaceInstallation;
1353
1365
  /** Secrets stored on the integration and passed at runtime. */
1354
1366
  secrets: IntegrationSecrets;
1367
+ /** Secret that can be used to verify the authenticity of incoming HTTP requests to the integration. */
1368
+ signingSecret?: string;
1355
1369
  /** URL of the HTTP API */
1356
1370
  apiEndpoint: string;
1357
1371
  apiTokens: {
@@ -1412,32 +1426,92 @@ export declare type SpaceIntegrationBlocks = {
1412
1426
  /**
1413
1427
  * Entity to create or update in an integration's installation.
1414
1428
  */
1415
- export interface UpsertIntegrationEntity {
1416
- /** Unique ID of the entity in the context of the integration's installation */
1417
- entityId: string;
1418
- /** Title of the entity */
1419
- title: string;
1420
- /** Longer text description of the entity */
1421
- description: string;
1422
- /**
1423
- * URL to open the entity
1424
- * @format uri
1425
- */
1426
- target: string;
1427
- /** Metadata stored by the integration on the entity */
1428
- metadata: Record<string, string | number | boolean>;
1429
+ export interface UpsertEntity {
1430
+ /** Unique ID of the entity in the context of the integration's entity type */
1431
+ entityId: EntityId;
1432
+ /** Map of values stored as properties on the entity */
1433
+ properties: Record<string, string | number | boolean | {
1434
+ entityId: string;
1435
+ }>;
1429
1436
  }
1430
1437
  /**
1431
- * Entity created and managed by an integration, representing a resource on an external service.
1438
+ * Entity created and managed by an integration, representing an external element.
1432
1439
  */
1433
- export declare type IntegrationEntity = UpsertIntegrationEntity & {
1440
+ export declare type Entity = UpsertEntity & {
1434
1441
  id: string;
1435
- integration: string;
1442
+ type: EntityType;
1443
+ urls: {
1444
+ location: string;
1445
+ };
1436
1446
  };
1447
+ /**
1448
+ * Type of an entity
1449
+ */
1450
+ export declare type EntityType = string;
1451
+ /**
1452
+ * Unique ID of the entity in the context of the integration's entity type
1453
+ */
1454
+ export declare type EntityId = string;
1455
+ export declare type EntitySchemaTitle = string;
1456
+ /**
1457
+ * Schema for a type of entities
1458
+ */
1459
+ export interface EntityRawSchema {
1460
+ /** Type of an entity */
1461
+ type: EntityType;
1462
+ /** Title of the entity type */
1463
+ title: {
1464
+ singular: EntitySchemaTitle;
1465
+ plural: EntitySchemaTitle;
1466
+ };
1467
+ /** Ordered list of all properties stored in entities. */
1468
+ properties: EntityPropertySchema[];
1469
+ }
1470
+ export declare type EntitySchema = EntityRawSchema & {
1471
+ entities: number;
1472
+ integration?: Integration;
1473
+ urls: {
1474
+ location: string;
1475
+ };
1476
+ };
1477
+ export declare type EntityPropertySchema = {
1478
+ name: string;
1479
+ title: string;
1480
+ description?: string;
1481
+ deprecated?: boolean;
1482
+ } & ({
1483
+ type: 'text';
1484
+ role?: 'title';
1485
+ } | {
1486
+ type: 'longtext';
1487
+ role?: 'body';
1488
+ } | {
1489
+ type: 'url';
1490
+ role?: 'target' | 'icon';
1491
+ } | {
1492
+ type: 'number';
1493
+ } | {
1494
+ type: 'boolean';
1495
+ } | {
1496
+ type: 'enum';
1497
+ values: {
1498
+ label: string;
1499
+ value: string;
1500
+ }[];
1501
+ } | {
1502
+ type: 'date';
1503
+ } | {
1504
+ type: 'user';
1505
+ } | {
1506
+ type: 'relation';
1507
+ entity: {
1508
+ type: EntityType;
1509
+ };
1510
+ });
1437
1511
  /**
1438
1512
  * Any event that can be received from GitBook.
1439
1513
  */
1440
- export declare type Event = InstallationSetupEvent | SpaceInstallationSetupEvent | SpaceViewEvent | SpaceContentUpdatedEvent | SpaceGitSyncCompletedEvent | SpaceGitSyncStartedEvent | SpaceVisibilityUpdatedEvent | FetchEvent | FetchPublishedScriptEvent | UIRenderEvent;
1514
+ export declare type Event = InstallationSetupEvent | SpaceInstallationSetupEvent | SpaceInstallationDeletedEvent | SpaceViewEvent | SpaceContentUpdatedEvent | SpaceGitSyncCompletedEvent | SpaceGitSyncStartedEvent | SpaceVisibilityUpdatedEvent | FetchEvent | FetchPublishedScriptEvent | UIRenderEvent;
1441
1515
  /**
1442
1516
  * Common properties for all events.
1443
1517
  */
@@ -1481,6 +1555,15 @@ export declare type SpaceInstallationSetupEvent = SpaceEvent & {
1481
1555
  configuration?: object;
1482
1556
  };
1483
1557
  };
1558
+ /**
1559
+ * Event received when integration has been uninstalled from a space.
1560
+ */
1561
+ export declare type SpaceInstallationDeletedEvent = SpaceEvent & {
1562
+ type: 'space_installation_deleted';
1563
+ previous: {
1564
+ configuration?: object;
1565
+ };
1566
+ };
1484
1567
  /**
1485
1568
  * Event received when a page has been visited.
1486
1569
  */
@@ -1966,7 +2049,8 @@ export declare enum ContentKitIcon {
1966
2049
  Warning = "warning",
1967
2050
  Link = "link",
1968
2051
  LinkExternal = "link-external",
1969
- Eye = "eye"
2052
+ Eye = "eye",
2053
+ Lock = "lock"
1970
2054
  }
1971
2055
  /**
1972
2056
  * Overlay modal.
@@ -2060,7 +2144,7 @@ export interface ContentKitLink {
2060
2144
  target: {
2061
2145
  url: string | ContentKitURL;
2062
2146
  };
2063
- children: string[];
2147
+ children: string | string[];
2064
2148
  }
2065
2149
  /**
2066
2150
  * Field for an input.
@@ -2177,7 +2261,7 @@ export interface ContentKitURL {
2177
2261
  /**
2178
2262
  * Channel to subscribe to for API updates.
2179
2263
  */
2180
- 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 | OrganizationRecordingsChannel | {
2264
+ 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 | {
2181
2265
  channel: 'space-comments';
2182
2266
  space: string;
2183
2267
  changeRequest?: string;
@@ -2287,11 +2371,19 @@ export interface OrganizationSpacesChannel {
2287
2371
  organization: string;
2288
2372
  }
2289
2373
  /**
2290
- * Subscription channel for all integration entities in an organization.
2374
+ * Subscription channel for entities in an organization.
2291
2375
  */
2292
2376
  export interface OrganizationEntitiesChannel {
2293
2377
  channel: 'organization-entities';
2294
2378
  organization: string;
2379
+ entityType: string;
2380
+ }
2381
+ /**
2382
+ * Subscription channel for all entity schemas in an organization.
2383
+ */
2384
+ export interface OrganizationSchemasChannel {
2385
+ channel: 'organization-schemas';
2386
+ organization: string;
2295
2387
  }
2296
2388
  export interface OrganizationEnvironmentsChannel {
2297
2389
  channel: 'organization-environments';
@@ -2310,6 +2402,8 @@ export interface CustomField {
2310
2402
  title: CustomFieldTitle;
2311
2403
  description: CustomFieldDescription;
2312
2404
  type: CustomFieldType;
2405
+ placeholder: CustomFieldPlaceholder;
2406
+ options?: CustomFieldOptions;
2313
2407
  createdAt: Date;
2314
2408
  updatedAt: Date;
2315
2409
  /** URLs associated with the object */
@@ -2318,7 +2412,7 @@ export interface CustomField {
2318
2412
  };
2319
2413
  }
2320
2414
  /**
2321
- * @pattern ^[a-zA-Z_\-0-9]+$
2415
+ * @pattern ^[a-z_\-0-9]+$
2322
2416
  */
2323
2417
  export declare type CustomFieldName = string;
2324
2418
  export declare type CustomFieldTitle = string;
@@ -2326,9 +2420,12 @@ export declare type CustomFieldDescription = string;
2326
2420
  export declare enum CustomFieldType {
2327
2421
  Text = "text",
2328
2422
  Number = "number",
2329
- Boolean = "boolean"
2423
+ Boolean = "boolean",
2424
+ Tags = "tags",
2425
+ SelectMulti = "select:multi",
2426
+ SelectSingle = "select:single"
2330
2427
  }
2331
- export declare type CustomFieldValue = string | number | boolean;
2428
+ export declare type CustomFieldValue = string | number | boolean | string[];
2332
2429
  export declare type CustomFieldValues = {
2333
2430
  customField: CustomField;
2334
2431
  value?: CustomFieldValue;
@@ -2338,6 +2435,8 @@ export interface UpdateCustomFieldValues {
2338
2435
  value: CustomFieldValue;
2339
2436
  }>;
2340
2437
  }
2438
+ export declare type CustomFieldOptions = string[];
2439
+ export declare type CustomFieldPlaceholder = string;
2341
2440
  /**
2342
2441
  * An environment
2343
2442
  */
@@ -3416,69 +3515,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3416
3515
  * @secure
3417
3516
  */
3418
3517
  updateSpaceCustomFields: (spaceId: string, data: UpdateCustomFieldValues, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
3419
- /**
3420
- * No description
3421
- *
3422
- * @tags spaces
3423
- * @name ListSpaceEntities
3424
- * @summary List all entities linked to a space
3425
- * @request GET:/spaces/{spaceId}/entities
3426
- * @secure
3427
- */
3428
- listSpaceEntities: (spaceId: string, query?: {
3429
- page?: string;
3430
- limit?: number;
3431
- }, params?: RequestParams) => Promise<HttpResponse<List & {
3432
- items: SpaceEntity[];
3433
- }, Error>>;
3434
- /**
3435
- * No description
3436
- *
3437
- * @tags spaces
3438
- * @name AddSpaceEntities
3439
- * @summary Link the space to entities
3440
- * @request POST:/spaces/{spaceId}/entities
3441
- * @secure
3442
- */
3443
- addSpaceEntities: (spaceId: string, data: {
3444
- entities: {
3445
- integration: string;
3446
- entityId: string;
3447
- environments: string[];
3448
- }[];
3449
- }, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
3450
- /**
3451
- * No description
3452
- *
3453
- * @tags spaces
3454
- * @name GetSpaceEntity
3455
- * @summary Get a space entity
3456
- * @request GET:/spaces/{spaceId}/entities/{integrationName}/{entityId}
3457
- * @secure
3458
- */
3459
- getSpaceEntity: (spaceId: string, integrationName: string, entityId: string, params?: RequestParams) => Promise<HttpResponse<SpaceEntity, Error>>;
3460
- /**
3461
- * No description
3462
- *
3463
- * @tags spaces
3464
- * @name UpdateSpaceEntity
3465
- * @summary Update a space entity
3466
- * @request PATCH:/spaces/{spaceId}/entities/{integrationName}/{entityId}
3467
- * @secure
3468
- */
3469
- updateSpaceEntity: (spaceId: string, integrationName: string, entityId: string, data: {
3470
- environments: SpaceEntityEnvironments;
3471
- }, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
3472
- /**
3473
- * No description
3474
- *
3475
- * @tags spaces
3476
- * @name DeleteSpaceEntity
3477
- * @summary Delete a space entity
3478
- * @request DELETE:/spaces/{spaceId}/entities/{integrationName}/{entityId}
3479
- * @secure
3480
- */
3481
- deleteSpaceEntity: (spaceId: string, integrationName: string, entityId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
3482
3518
  };
3483
3519
  collections: {
3484
3520
  /**
@@ -3753,6 +3789,24 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3753
3789
  * @secure
3754
3790
  */
3755
3791
  renderIntegrationUiWithPost: (integrationName: string, data: RequestRenderIntegrationUI, params?: RequestParams) => Promise<HttpResponse<ContentKitRenderOutput, Error>>;
3792
+ /**
3793
+ * No description
3794
+ *
3795
+ * @tags integrations
3796
+ * @name QueueIntegrationTask
3797
+ * @summary Queue a task for an integration to be executed later
3798
+ * @request POST:/integrations/{integrationName}/tasks
3799
+ * @secure
3800
+ */
3801
+ queueIntegrationTask: (integrationName: string, data: {
3802
+ task: object;
3803
+ schedule?: number;
3804
+ }, params?: RequestParams) => Promise<HttpResponse<void, Error | {
3805
+ error: {
3806
+ code: 404;
3807
+ message: string;
3808
+ };
3809
+ }>>;
3756
3810
  /**
3757
3811
  * No description
3758
3812
  *
@@ -3824,6 +3878,21 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3824
3878
  message: string;
3825
3879
  };
3826
3880
  }>>;
3881
+ /**
3882
+ * No description
3883
+ *
3884
+ * @tags integrations
3885
+ * @name GetIntegrationSpaceInstallation
3886
+ * @summary Get a specific integration's space installation
3887
+ * @request GET:/integrations/{integrationName}/installations/{installationId}/spaces/{spaceId}
3888
+ * @secure
3889
+ */
3890
+ getIntegrationSpaceInstallation: (integrationName: string, installationId: string, spaceId: string, params?: RequestParams) => Promise<HttpResponse<IntegrationSpaceInstallation, Error | {
3891
+ error: {
3892
+ code: 404;
3893
+ message: string;
3894
+ };
3895
+ }>>;
3827
3896
  /**
3828
3897
  * No description
3829
3898
  *
@@ -3842,40 +3911,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3842
3911
  * @secure
3843
3912
  */
3844
3913
  uninstallIntegrationFromSpace: (integrationName: string, installationId: string, spaceId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
3845
- /**
3846
- * No description
3847
- *
3848
- * @tags integrations
3849
- * @name GetIntegrationEntities
3850
- * @summary List entities managed by an integration in an installation.
3851
- * @request GET:/integrations/{integrationName}/installations/{installationId}/entities
3852
- * @secure
3853
- */
3854
- getIntegrationEntities: (integrationName: string, installationId: string, params?: RequestParams) => Promise<HttpResponse<List & {
3855
- items: IntegrationEntity[];
3856
- }, Error | {
3857
- error: {
3858
- code: 404;
3859
- message: string;
3860
- };
3861
- }>>;
3862
- /**
3863
- * @description Update all entities for an integration installation. Entities will be created and updated, missing entities will be deleted.
3864
- *
3865
- * @tags integrations
3866
- * @name SyncIntegrationEntities
3867
- * @summary Update all entities for an integration installation.
3868
- * @request POST:/integrations/{integrationName}/installations/{installationId}/entities
3869
- * @secure
3870
- */
3871
- syncIntegrationEntities: (integrationName: string, installationId: string, data: {
3872
- entities: UpsertIntegrationEntity[];
3873
- }, params?: RequestParams) => Promise<HttpResponse<void, Error | {
3874
- error: {
3875
- code: 404;
3876
- message: string;
3877
- };
3878
- }>>;
3879
3914
  };
3880
3915
  orgs: {
3881
3916
  /**
@@ -4350,6 +4385,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4350
4385
  type: CustomFieldType;
4351
4386
  title?: CustomFieldTitle;
4352
4387
  description?: CustomFieldDescription;
4388
+ placeholder?: CustomFieldPlaceholder;
4389
+ options?: CustomFieldOptions;
4353
4390
  }, params?: RequestParams) => Promise<HttpResponse<CustomField, Error>>;
4354
4391
  /**
4355
4392
  * No description
@@ -4378,6 +4415,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4378
4415
  updateOrganizationCustomField: (organizationId: string, fieldName: string, data: {
4379
4416
  title?: CustomFieldTitle;
4380
4417
  description?: CustomFieldDescription;
4418
+ placeholder?: CustomFieldPlaceholder;
4419
+ options?: CustomFieldOptions;
4381
4420
  }, params?: RequestParams) => Promise<HttpResponse<CustomField, Error>>;
4382
4421
  /**
4383
4422
  * No description
@@ -4404,21 +4443,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4404
4443
  }, params?: RequestParams) => Promise<HttpResponse<List & {
4405
4444
  items: SpaceRelationPair[];
4406
4445
  }, Error>>;
4407
- /**
4408
- * No description
4409
- *
4410
- * @tags spaces
4411
- * @name ListEntitiesInOrganization
4412
- * @summary List all entities in an organization.
4413
- * @request GET:/orgs/{organizationId}/entities
4414
- * @secure
4415
- */
4416
- listEntitiesInOrganization: (organizationId: string, query?: {
4417
- page?: string;
4418
- limit?: number;
4419
- }, params?: RequestParams) => Promise<HttpResponse<List & {
4420
- items: IntegrationEntity[];
4421
- }, Error>>;
4422
4446
  /**
4423
4447
  * No description
4424
4448
  *
@@ -4479,6 +4503,90 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4479
4503
  * @secure
4480
4504
  */
4481
4505
  deleteEnvironment: (organizationId: string, environmentName: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
4506
+ /**
4507
+ * No description
4508
+ *
4509
+ * @tags organizations
4510
+ * @name ListEntitySchemas
4511
+ * @summary List the entity schemas in an organization.
4512
+ * @request GET:/orgs/{organizationId}/schemas
4513
+ * @secure
4514
+ */
4515
+ listEntitySchemas: (organizationId: string, query?: {
4516
+ page?: string;
4517
+ limit?: number;
4518
+ }, params?: RequestParams) => Promise<HttpResponse<List & {
4519
+ items: EntitySchema[];
4520
+ }, Error>>;
4521
+ /**
4522
+ * No description
4523
+ *
4524
+ * @tags organizations
4525
+ * @name GetEntitySchema
4526
+ * @summary Get an entity schema by its type.
4527
+ * @request GET:/orgs/{organizationId}/schemas/{entityType}
4528
+ * @secure
4529
+ */
4530
+ getEntitySchema: (organizationId: string, entityType: EntityType, params?: RequestParams) => Promise<HttpResponse<EntitySchema, Error>>;
4531
+ /**
4532
+ * No description
4533
+ *
4534
+ * @tags organizations
4535
+ * @name SetEntitySchema
4536
+ * @summary Create or update an entity schema.
4537
+ * @request PUT:/orgs/{organizationId}/schemas/{entityType}
4538
+ * @secure
4539
+ */
4540
+ setEntitySchema: (organizationId: string, entityType: EntityType, data: EntityRawSchema, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
4541
+ /**
4542
+ * No description
4543
+ *
4544
+ * @tags organizations
4545
+ * @name DeleteEntitySchema
4546
+ * @summary Delete an entity schema.
4547
+ * @request DELETE:/orgs/{organizationId}/schemas/{entityType}
4548
+ * @secure
4549
+ */
4550
+ deleteEntitySchema: (organizationId: string, entityType: EntityType, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
4551
+ /**
4552
+ * No description
4553
+ *
4554
+ * @tags organizations
4555
+ * @name ListSchemaEntities
4556
+ * @summary List entities in an organization for a given type.
4557
+ * @request GET:/orgs/{organizationId}/schemas/{entityType}/entities
4558
+ * @secure
4559
+ */
4560
+ listSchemaEntities: (organizationId: string, entityType: EntityType, query?: {
4561
+ page?: string;
4562
+ limit?: number;
4563
+ query?: string;
4564
+ }, params?: RequestParams) => Promise<HttpResponse<List & {
4565
+ items: Entity[];
4566
+ }, Error>>;
4567
+ /**
4568
+ * No description
4569
+ *
4570
+ * @tags organizations
4571
+ * @name UpsertSchemaEntities
4572
+ * @summary Update/Create/Delete entities in a schema.
4573
+ * @request PUT:/orgs/{organizationId}/schemas/{entityType}/entities
4574
+ * @secure
4575
+ */
4576
+ upsertSchemaEntities: (organizationId: string, entityType: EntityType, data: {
4577
+ delete?: boolean | EntityId[];
4578
+ entities?: UpsertEntity[];
4579
+ }, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
4580
+ /**
4581
+ * No description
4582
+ *
4583
+ * @tags organizations
4584
+ * @name GetEntity
4585
+ * @summary Get an entity using its ID.
4586
+ * @request GET:/orgs/{organizationId}/schemas/{entityType}/entities/{entityId}
4587
+ * @secure
4588
+ */
4589
+ getEntity: (organizationId: string, entityType: EntityType, entityId: EntityId, params?: RequestParams) => Promise<HttpResponse<Entity, Error>>;
4482
4590
  /**
4483
4591
  * @description List recordings in an organization.
4484
4592
  *
@@ -4542,7 +4650,10 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4542
4650
  */
4543
4651
  stopRecording: (organizationId: string, recordingId: string, data: {
4544
4652
  space: string;
4545
- }, params?: RequestParams) => Promise<HttpResponse<RecordingOutput, Error>>;
4653
+ }, params?: RequestParams) => Promise<HttpResponse<{
4654
+ recording: RecordingOutput;
4655
+ followupQuestions?: string[];
4656
+ }, Error>>;
4546
4657
  };
4547
4658
  internal: {
4548
4659
  /**