@gitbook/api 0.6.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 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';
@@ -1121,6 +1105,8 @@ export interface Integration {
1121
1105
  object: 'integration';
1122
1106
  /** Unique named identifier for the integration */
1123
1107
  name: string;
1108
+ /** Version of the integration */
1109
+ version: number;
1124
1110
  /** Title of the integration */
1125
1111
  title: IntegrationTitle;
1126
1112
  /** Description of the integration */
@@ -1170,7 +1156,7 @@ export declare type IntegrationSummary = string;
1170
1156
  */
1171
1157
  export declare type IntegrationScopes = IntegrationScope[];
1172
1158
  export declare enum IntegrationScope {
1173
- OrganizationEntitiesWrite = "organization:entities:write",
1159
+ EntitiesWrite = "entities:write",
1174
1160
  RecordingWrite = "recording:write",
1175
1161
  SpaceViewsRead = "space:views:read",
1176
1162
  SpaceContentRead = "space:content:read",
@@ -1318,6 +1304,10 @@ export interface IntegrationInstallation {
1318
1304
  * Installation of an integration at a space level
1319
1305
  */
1320
1306
  export interface IntegrationSpaceInstallation {
1307
+ /** Unique name identifier of the integration */
1308
+ integration: string;
1309
+ /** ID of the integration installation */
1310
+ installation: string;
1321
1311
  /** ID of the space the integration is installed on. */
1322
1312
  space: string;
1323
1313
  status: IntegrationInstallationStatus;
@@ -1412,28 +1402,88 @@ export declare type SpaceIntegrationBlocks = {
1412
1402
  /**
1413
1403
  * Entity to create or update in an integration's installation.
1414
1404
  */
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>;
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
+ }>;
1429
1412
  }
1430
1413
  /**
1431
- * Entity created and managed by an integration, representing a resource on an external service.
1414
+ * Entity created and managed by an integration, representing an external element.
1432
1415
  */
1433
- export declare type IntegrationEntity = UpsertIntegrationEntity & {
1416
+ export declare type Entity = UpsertEntity & {
1434
1417
  id: string;
1435
- integration: string;
1418
+ type: EntityType;
1419
+ urls: {
1420
+ location: string;
1421
+ };
1436
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
+ });
1437
1487
  /**
1438
1488
  * Any event that can be received from GitBook.
1439
1489
  */
@@ -2060,7 +2110,7 @@ export interface ContentKitLink {
2060
2110
  target: {
2061
2111
  url: string | ContentKitURL;
2062
2112
  };
2063
- children: string[];
2113
+ children: string | string[];
2064
2114
  }
2065
2115
  /**
2066
2116
  * Field for an input.
@@ -2177,7 +2227,7 @@ export interface ContentKitURL {
2177
2227
  /**
2178
2228
  * Channel to subscribe to for API updates.
2179
2229
  */
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 | {
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 | {
2181
2231
  channel: 'space-comments';
2182
2232
  space: string;
2183
2233
  changeRequest?: string;
@@ -2287,11 +2337,19 @@ export interface OrganizationSpacesChannel {
2287
2337
  organization: string;
2288
2338
  }
2289
2339
  /**
2290
- * Subscription channel for all integration entities in an organization.
2340
+ * Subscription channel for entities in an organization.
2291
2341
  */
2292
2342
  export interface OrganizationEntitiesChannel {
2293
2343
  channel: 'organization-entities';
2294
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;
2295
2353
  }
2296
2354
  export interface OrganizationEnvironmentsChannel {
2297
2355
  channel: 'organization-environments';
@@ -2326,9 +2384,10 @@ export declare type CustomFieldDescription = string;
2326
2384
  export declare enum CustomFieldType {
2327
2385
  Text = "text",
2328
2386
  Number = "number",
2329
- Boolean = "boolean"
2387
+ Boolean = "boolean",
2388
+ Tags = "tags"
2330
2389
  }
2331
- export declare type CustomFieldValue = string | number | boolean;
2390
+ export declare type CustomFieldValue = string | number | boolean | string[];
2332
2391
  export declare type CustomFieldValues = {
2333
2392
  customField: CustomField;
2334
2393
  value?: CustomFieldValue;
@@ -3416,69 +3475,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3416
3475
  * @secure
3417
3476
  */
3418
3477
  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
3478
  };
3483
3479
  collections: {
3484
3480
  /**
@@ -3824,6 +3820,21 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3824
3820
  message: string;
3825
3821
  };
3826
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
+ }>>;
3827
3838
  /**
3828
3839
  * No description
3829
3840
  *
@@ -3842,40 +3853,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3842
3853
  * @secure
3843
3854
  */
3844
3855
  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
3856
  };
3880
3857
  orgs: {
3881
3858
  /**
@@ -4404,21 +4381,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4404
4381
  }, params?: RequestParams) => Promise<HttpResponse<List & {
4405
4382
  items: SpaceRelationPair[];
4406
4383
  }, 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
4384
  /**
4423
4385
  * No description
4424
4386
  *
@@ -4479,6 +4441,90 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4479
4441
  * @secure
4480
4442
  */
4481
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>>;
4482
4528
  /**
4483
4529
  * @description List recordings in an organization.
4484
4530
  *
@@ -4542,7 +4588,10 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4542
4588
  */
4543
4589
  stopRecording: (organizationId: string, recordingId: string, data: {
4544
4590
  space: string;
4545
- }, params?: RequestParams) => Promise<HttpResponse<RecordingOutput, Error>>;
4591
+ }, params?: RequestParams) => Promise<HttpResponse<{
4592
+ recording: RecordingOutput;
4593
+ followupQuestions?: string[];
4594
+ }, Error>>;
4546
4595
  };
4547
4596
  internal: {
4548
4597
  /**
package/dist/index.cjs CHANGED
@@ -162,7 +162,7 @@ var AnalyticsTrafficInterval = /* @__PURE__ */ ((AnalyticsTrafficInterval2) => {
162
162
  return AnalyticsTrafficInterval2;
163
163
  })(AnalyticsTrafficInterval || {});
164
164
  var IntegrationScope = /* @__PURE__ */ ((IntegrationScope2) => {
165
- IntegrationScope2["OrganizationEntitiesWrite"] = "organization:entities:write";
165
+ IntegrationScope2["EntitiesWrite"] = "entities:write";
166
166
  IntegrationScope2["RecordingWrite"] = "recording:write";
167
167
  IntegrationScope2["SpaceViewsRead"] = "space:views:read";
168
168
  IntegrationScope2["SpaceContentRead"] = "space:content:read";
@@ -273,6 +273,7 @@ var CustomFieldType = /* @__PURE__ */ ((CustomFieldType2) => {
273
273
  CustomFieldType2["Text"] = "text";
274
274
  CustomFieldType2["Number"] = "number";
275
275
  CustomFieldType2["Boolean"] = "boolean";
276
+ CustomFieldType2["Tags"] = "tags";
276
277
  return CustomFieldType2;
277
278
  })(CustomFieldType || {});
278
279
  var ContentType = /* @__PURE__ */ ((ContentType2) => {
@@ -1048,43 +1049,6 @@ var Api = class extends HttpClient {
1048
1049
  secure: true,
1049
1050
  type: "application/json" /* Json */,
1050
1051
  ...params
1051
- }),
1052
- listSpaceEntities: (spaceId, query, params = {}) => this.request({
1053
- path: `/spaces/${spaceId}/entities`,
1054
- method: "GET",
1055
- query,
1056
- secure: true,
1057
- format: "json",
1058
- ...params
1059
- }),
1060
- addSpaceEntities: (spaceId, data, params = {}) => this.request({
1061
- path: `/spaces/${spaceId}/entities`,
1062
- method: "POST",
1063
- body: data,
1064
- secure: true,
1065
- type: "application/json" /* Json */,
1066
- ...params
1067
- }),
1068
- getSpaceEntity: (spaceId, integrationName, entityId, params = {}) => this.request({
1069
- path: `/spaces/${spaceId}/entities/${integrationName}/${entityId}`,
1070
- method: "GET",
1071
- secure: true,
1072
- format: "json",
1073
- ...params
1074
- }),
1075
- updateSpaceEntity: (spaceId, integrationName, entityId, data, params = {}) => this.request({
1076
- path: `/spaces/${spaceId}/entities/${integrationName}/${entityId}`,
1077
- method: "PATCH",
1078
- body: data,
1079
- secure: true,
1080
- type: "application/json" /* Json */,
1081
- ...params
1082
- }),
1083
- deleteSpaceEntity: (spaceId, integrationName, entityId, params = {}) => this.request({
1084
- path: `/spaces/${spaceId}/entities/${integrationName}/${entityId}`,
1085
- method: "DELETE",
1086
- secure: true,
1087
- ...params
1088
1052
  })
1089
1053
  };
1090
1054
  this.collections = {
@@ -1277,6 +1241,13 @@ var Api = class extends HttpClient {
1277
1241
  format: "json",
1278
1242
  ...params
1279
1243
  }),
1244
+ getIntegrationSpaceInstallation: (integrationName, installationId, spaceId, params = {}) => this.request({
1245
+ path: `/integrations/${integrationName}/installations/${installationId}/spaces/${spaceId}`,
1246
+ method: "GET",
1247
+ secure: true,
1248
+ format: "json",
1249
+ ...params
1250
+ }),
1280
1251
  updateIntegrationSpaceInstallation: (integrationName, installationId, spaceId, data, params = {}) => this.request({
1281
1252
  path: `/integrations/${integrationName}/installations/${installationId}/spaces/${spaceId}`,
1282
1253
  method: "PATCH",
@@ -1291,21 +1262,6 @@ var Api = class extends HttpClient {
1291
1262
  method: "DELETE",
1292
1263
  secure: true,
1293
1264
  ...params
1294
- }),
1295
- getIntegrationEntities: (integrationName, installationId, params = {}) => this.request({
1296
- path: `/integrations/${integrationName}/installations/${installationId}/entities`,
1297
- method: "GET",
1298
- secure: true,
1299
- format: "json",
1300
- ...params
1301
- }),
1302
- syncIntegrationEntities: (integrationName, installationId, data, params = {}) => this.request({
1303
- path: `/integrations/${integrationName}/installations/${installationId}/entities`,
1304
- method: "POST",
1305
- body: data,
1306
- secure: true,
1307
- type: "application/json" /* Json */,
1308
- ...params
1309
1265
  })
1310
1266
  };
1311
1267
  this.orgs = {
@@ -1622,14 +1578,6 @@ var Api = class extends HttpClient {
1622
1578
  format: "json",
1623
1579
  ...params
1624
1580
  }),
1625
- listEntitiesInOrganization: (organizationId, query, params = {}) => this.request({
1626
- path: `/orgs/${organizationId}/entities`,
1627
- method: "GET",
1628
- query,
1629
- secure: true,
1630
- format: "json",
1631
- ...params
1632
- }),
1633
1581
  listEnvironments: (organizationId, query, params = {}) => this.request({
1634
1582
  path: `/orgs/${organizationId}/environments`,
1635
1583
  method: "GET",
@@ -1669,6 +1617,58 @@ var Api = class extends HttpClient {
1669
1617
  secure: true,
1670
1618
  ...params
1671
1619
  }),
1620
+ listEntitySchemas: (organizationId, query, params = {}) => this.request({
1621
+ path: `/orgs/${organizationId}/schemas`,
1622
+ method: "GET",
1623
+ query,
1624
+ secure: true,
1625
+ format: "json",
1626
+ ...params
1627
+ }),
1628
+ getEntitySchema: (organizationId, entityType, params = {}) => this.request({
1629
+ path: `/orgs/${organizationId}/schemas/${entityType}`,
1630
+ method: "GET",
1631
+ secure: true,
1632
+ format: "json",
1633
+ ...params
1634
+ }),
1635
+ setEntitySchema: (organizationId, entityType, data, params = {}) => this.request({
1636
+ path: `/orgs/${organizationId}/schemas/${entityType}`,
1637
+ method: "PUT",
1638
+ body: data,
1639
+ secure: true,
1640
+ type: "application/json" /* Json */,
1641
+ ...params
1642
+ }),
1643
+ deleteEntitySchema: (organizationId, entityType, params = {}) => this.request({
1644
+ path: `/orgs/${organizationId}/schemas/${entityType}`,
1645
+ method: "DELETE",
1646
+ secure: true,
1647
+ ...params
1648
+ }),
1649
+ listSchemaEntities: (organizationId, entityType, query, params = {}) => this.request({
1650
+ path: `/orgs/${organizationId}/schemas/${entityType}/entities`,
1651
+ method: "GET",
1652
+ query,
1653
+ secure: true,
1654
+ format: "json",
1655
+ ...params
1656
+ }),
1657
+ upsertSchemaEntities: (organizationId, entityType, data, params = {}) => this.request({
1658
+ path: `/orgs/${organizationId}/schemas/${entityType}/entities`,
1659
+ method: "PUT",
1660
+ body: data,
1661
+ secure: true,
1662
+ type: "application/json" /* Json */,
1663
+ ...params
1664
+ }),
1665
+ getEntity: (organizationId, entityType, entityId, params = {}) => this.request({
1666
+ path: `/orgs/${organizationId}/schemas/${entityType}/entities/${entityId}`,
1667
+ method: "GET",
1668
+ secure: true,
1669
+ format: "json",
1670
+ ...params
1671
+ }),
1672
1672
  listRecordings: (organizationId, query, params = {}) => this.request({
1673
1673
  path: `/orgs/${organizationId}/recordings`,
1674
1674
  method: "GET",