@epilot/entity-client 7.3.2 → 7.5.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.
@@ -1 +1 @@
1
- (()=>{"use strict";var e={438(e,t,a){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var n=r(a(466));t.default=n.default},466(e){e.exports=JSON.parse('{"openapi":"3.0.2","info":{"title":"","version":""},"paths":{"/v1/entity/schemas":{"get":{"operationId":"listSchemas","parameters":[{"in":"query","name":"unpublished","deprecated":true},{"in":"query","name":"latest"},{"in":"query","name":"exclude","style":"form","explode":false},{"in":"query","name":"include","style":"form","explode":false}],"responses":{}}},"/v2/entity/schemas":{"get":{"operationId":"listSchemasV2","parameters":[{"in":"query","name":"full"},{"in":"query","name":"unpublished","deprecated":true},{"in":"query","name":"latest"},{"in":"query","name":"exclude","style":"form","explode":false},{"in":"query","name":"include","style":"form","explode":false}],"responses":{}}},"/v1/entity/schemas/{slug}":{"get":{"operationId":"getSchema","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"in":"query","name":"id"},{"in":"query","name":"latest"}],"responses":{}},"put":{"operationId":"putSchema","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"in":"query","name":"draft","deprecated":true}],"requestBody":{"content":{"application/json":{}}},"responses":{}},"delete":{"operationId":"deleteSchema","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"}],"responses":{}}},"/v1/entity/schemas/{slug}/json/schema":{"get":{"operationId":"getJsonSchema","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"in":"query","name":"dereference"}],"responses":{}}},"/v1/entity/schemas/{slug}/json/example":{"get":{"operationId":"getSchemaExample","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"}],"responses":{}}},"/v1/entity/schemas/{slug}/versions":{"get":{"operationId":"getSchemaVersions","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"in":"query","name":"versions_from"},{"in":"query","name":"versions_size"},{"in":"query","name":"drafts_from"},{"in":"query","name":"drafts_size"},{"in":"query","name":"fields","required":false,"style":"form","explode":false}],"responses":{}}},"/v1/entity/schemas/{slug}/freeze":{"post":{"operationId":"freezeSchema","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/entity/schemas/{slug}/unfreeze":{"post":{"operationId":"unfreezeSchema","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"}],"responses":{}}},"/v1/entity/schemas/{slug}/capabilities/available":{"get":{"operationId":"listAvailableCapabilities","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"}],"responses":{}}},"/v1/entity/schemas/blueprints":{"get":{"operationId":"listSchemaBlueprints","responses":{}}},"/v1/entity:search":{"post":{"operationId":"searchEntities","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/entity:list":{"post":{"operationId":"listEntities","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/entity:graph":{"post":{"operationId":"queryEntityGraph","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/entity/{slug}":{"post":{"operationId":"createEntity","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/ActivityIdQueryParam"},{"$ref":"#/components/parameters/FillActivityQueryParam"},{"$ref":"#/components/parameters/AsyncOperationQueryParam"},{"$ref":"#/components/parameters/ValidateEntityQueryParam"}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/entity/{slug}:validate":{"post":{"operationId":"validateEntity","parameters":[{"$ref":"#/components/parameters/EntitySlugPathPriceParam"}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v2/entity/{slug}:validate":{"post":{"operationId":"validateEntityV2","parameters":[{"$ref":"#/components/parameters/EntitySlugPathPriceParam"}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/entity/{slug}:upsert":{"patch":{"operationId":"upsertEntity","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/ActivityIdQueryParam"},{"$ref":"#/components/parameters/FillActivityQueryParam"},{"$ref":"#/components/parameters/DryRunQueryParam"},{"$ref":"#/components/parameters/AsyncOperationQueryParam"},{"$ref":"#/components/parameters/ValidateEntityQueryParam"},{"name":"strict","in":"query","required":false}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v2/entity/{slug}/{id}":{"get":{"operationId":"getEntityV2","parameters":[{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/HydrateEntitiesQueryParam"},{"$ref":"#/components/parameters/AnonymizeQueryParam"},{"in":"query","name":"fields","style":"form","explode":false},{"$ref":"#/components/parameters/ApplyChangesetsQueryParam"}],"responses":{}}},"/v1/entity/{slug}/{id}:restore":{"patch":{"operationId":"restoreEntity","parameters":[{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/ActivityIdQueryParam"}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/entity/{slug}/{id}:reindex":{"post":{"operationId":"reindexEntity","parameters":[{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/EntitySlugPathParam"}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/entity/{slug}/{id}":{"get":{"operationId":"getEntity","parameters":[{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/HydrateEntitiesQueryParam"},{"$ref":"#/components/parameters/AnonymizeQueryParam"}],"responses":{}},"put":{"operationId":"updateEntity","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/ActivityIdQueryParam"},{"$ref":"#/components/parameters/FillActivityQueryParam"},{"$ref":"#/components/parameters/AsyncOperationQueryParam"},{"$ref":"#/components/parameters/ValidateEntityQueryParam"},{"$ref":"#/components/parameters/DirectQueryParam"}],"requestBody":{"content":{"application/json":{}}},"responses":{}},"patch":{"operationId":"patchEntity","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/ActivityIdQueryParam"},{"$ref":"#/components/parameters/FillActivityQueryParam"},{"$ref":"#/components/parameters/DryRunQueryParam"},{"$ref":"#/components/parameters/AsyncOperationQueryParam"},{"$ref":"#/components/parameters/ValidateEntityQueryParam"},{"$ref":"#/components/parameters/DirectQueryParam"}],"requestBody":{"content":{"application/json":{}},"required":true},"responses":{}},"delete":{"operationId":"deleteEntity","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/ActivityIdQueryParam"},{"in":"query","name":"purge"}],"responses":{}}},"/v1/entity:autocomplete":{"get":{"operationId":"autocomplete","parameters":[{"$ref":"#/components/parameters/AnonymizeQueryParam"},{"name":"input","in":"query"},{"name":"attribute","in":"query","required":true},{"name":"slug","in":"query"},{"name":"size","in":"query"}],"responses":{}}},"/v1/entity:wipeAllEntities":{"post":{"operationId":"wipeAllEntities","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/entity/activity":{"post":{"operationId":"createActivity","parameters":[{"in":"query","name":"entities","style":"form","explode":false}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/entity/activity/{id}":{"get":{"operationId":"getActivity","parameters":[{"$ref":"#/components/parameters/AnonymizeQueryParam"},{"$ref":"#/components/parameters/ActivityIdPathParam"},{"in":"query","name":"operations_size"},{"in":"query","name":"operations_from"}],"responses":{}}},"/v1/entity/activity/{id}:attach":{"post":{"operationId":"attachActivity","parameters":[{"$ref":"#/components/parameters/ActivityIdPathParam"},{"in":"query","name":"entities","style":"form","explode":false}],"responses":{}}},"/v1/entity/{slug}/{id}/changesets/{attribute}:apply":{"post":{"operationId":"applyChangeset","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"in":"path","name":"attribute","required":true}],"responses":{}}},"/v1/entity/{slug}/{id}/changesets/{attribute}:dismiss":{"post":{"operationId":"dismissChangeset","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"in":"path","name":"attribute","required":true}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/entity/{slug}/{id}/changesets":{"get":{"operationId":"listChangesets","parameters":[{"$ref":"#/components/parameters/AnonymizeQueryParam"},{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"}],"responses":{}}},"/v1/entity/{slug}/{id}/activity":{"get":{"operationId":"getEntityActivityFeed","parameters":[{"$ref":"#/components/parameters/AnonymizeQueryParam"},{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"in":"query","name":"after"},{"in":"query","name":"before"},{"in":"query","name":"start_date"},{"in":"query","name":"end_date"},{"in":"query","name":"preset_range"},{"$ref":"#/components/parameters/FromPageQueryParam"},{"in":"query","name":"size"},{"in":"query","name":"type","style":"form","explode":false},{"in":"query","name":"include_relations"},{"in":"query","name":"exclude_activity_groups"}],"responses":{}}},"/v1/entity/{slug}/{id}/relations":{"get":{"operationId":"getRelations","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/HydrateEntitiesQueryParam"},{"$ref":"#/components/parameters/AnonymizeQueryParam"},{"$ref":"#/components/parameters/IncludeReverseQueryParam"},{"$ref":"#/components/parameters/FromPageQueryParam"},{"in":"query","name":"size","required":false},{"$ref":"#/components/parameters/IncludeSchemasQueryParam"},{"$ref":"#/components/parameters/ExcludeSchemasQueryParam"}],"responses":{}},"post":{"operationId":"addRelations","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/AsyncOperationQueryParam"},{"$ref":"#/components/parameters/ActivityIdQueryParam"}],"requestBody":{"content":{"application/json":{}}},"responses":{}},"delete":{"operationId":"removeRelations","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/AsyncOperationQueryParam"},{"$ref":"#/components/parameters/ActivityIdQueryParam"}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v2/entity/{slug}/{id}/relations":{"get":{"operationId":"getRelationsV2","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/HydrateEntitiesQueryParam"},{"$ref":"#/components/parameters/AnonymizeQueryParam"},{"in":"query","name":"query"},{"$ref":"#/components/parameters/IncludeReverseQueryParam"},{"$ref":"#/components/parameters/FromPageQueryParam"},{"in":"query","name":"size"},{"in":"query","name":"fields"}],"responses":{}}},"/v3/entity/{slug}/{id}/relations":{"get":{"operationId":"getRelationsV3","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/HydrateEntitiesQueryParam"},{"$ref":"#/components/parameters/AnonymizeQueryParam"},{"$ref":"#/components/parameters/IncludeReverseDeprecatedQueryParam"},{"$ref":"#/components/parameters/FromPageQueryParam"},{"in":"query","name":"size","required":false},{"$ref":"#/components/parameters/IncludeSchemasQueryParam"},{"$ref":"#/components/parameters/ExcludeSchemasQueryParam"},{"$ref":"#/components/parameters/EntityRelationsModeQueryParam"},{"in":"query","name":"fields"},{"in":"query","name":"include_deleted","required":false}],"responses":{}}},"/v2/entity/{slug}/{id}/relations/count":{"get":{"operationId":"getRelatedEntitiesCount","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/ExcludeSchemasQueryParam"}],"responses":{}}},"/v1/entity/{slug}/{id}/relations/{attribute}/{entity_id}":{"put":{"operationId":"updateRelation","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"in":"path","name":"attribute","required":true},{"in":"path","name":"entity_id","required":true},{"$ref":"#/components/parameters/AsyncOperationQueryParam"},{"$ref":"#/components/parameters/ActivityIdQueryParam"}],"requestBody":{"content":{"application/json":{}}},"responses":{}},"delete":{"operationId":"deleteRelation","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"in":"path","name":"attribute","required":true},{"in":"path","name":"entity_id","required":true},{"$ref":"#/components/parameters/AsyncOperationQueryParam"},{"$ref":"#/components/parameters/ActivityIdQueryParam"}],"responses":{}}},"/v1/entity:export":{"post":{"operationId":"exportEntities","parameters":[{"in":"query","name":"job_id"},{"in":"query","name":"is_template"},{"in":"query","name":"language"}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/entity:import":{"post":{"operationId":"importEntities","parameters":[{"in":"query","name":"job_id"}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/entity:abortImport":{"post":{"operationId":"abortEntityImport","parameters":[{"in":"query","name":"job_id","required":true},{"in":"query","name":"schema","required":true}],"responses":{}}},"/v1/entity/views":{"get":{"operationId":"listSavedViews","parameters":[{"in":"query","name":"slug","required":false},{"in":"query","name":"sort","required":false},{"in":"query","name":"from","required":false},{"in":"query","name":"size","required":false},{"in":"query","name":"q","required":false},{"in":"query","name":"fields","required":false}],"responses":{}}},"/v1/entity/view":{"post":{"operationId":"createSavedView","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/entity/view/{id}":{"get":{"operationId":"getSavedView","parameters":[{"$ref":"#/components/parameters/SavedViewIdPathParam"}],"responses":{}},"put":{"operationId":"updateSavedView","parameters":[{"$ref":"#/components/parameters/SavedViewIdPathParam"}],"requestBody":{"content":{"application/json":{}}},"responses":{}},"patch":{"operationId":"patchSavedView","parameters":[{"$ref":"#/components/parameters/SavedViewIdPathParam"}],"requestBody":{"content":{"application/json":{}}},"responses":{}},"delete":{"operationId":"deleteSavedView","parameters":[{"$ref":"#/components/parameters/SavedViewIdPathParam"}],"responses":{}}},"/v1/entity/views/favorites":{"get":{"operationId":"listFavoriteViewsForUser","responses":{}}},"/v1/entity/taxonomies":{"get":{"operationId":"listTaxonomies","parameters":[{"in":"query","name":"include_disabled"},{"in":"query","name":"type"}],"responses":{}},"post":{"operationId":"createTaxonomy","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/entity/taxonomies/{taxonomySlug}":{"get":{"operationId":"getTaxonomy","parameters":[{"$ref":"#/components/parameters/TaxonomySlugPathParam"}],"responses":{}},"put":{"operationId":"updateTaxonomy","parameters":[{"$ref":"#/components/parameters/TaxonomySlugPathParam"}],"requestBody":{"content":{"application/json":{}}},"responses":{}},"delete":{"operationId":"deleteTaxonomy","parameters":[{"$ref":"#/components/parameters/TaxonomySlugPathParam"},{"in":"query","name":"permanent"}],"responses":{}}},"/v1/entity/taxonomies/{taxonomySlug}/classifications":{"post":{"operationId":"updateClassificationsForTaxonomy","parameters":[{"$ref":"#/components/parameters/TaxonomySlugPathParam"}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v2/entity/taxonomies/classifications":{"post":{"operationId":"createTaxonomyClassification","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v2/entity/taxonomies/classifications/{classificationSlug}":{"get":{"operationId":"getTaxonomyClassification","parameters":[{"$ref":"#/components/parameters/TaxonomyClassificationSlugPathParam"}],"responses":{}},"put":{"operationId":"updateTaxonomyClassification","parameters":[{"$ref":"#/components/parameters/TaxonomyClassificationSlugPathParam"}],"requestBody":{"content":{"application/json":{}}},"responses":{}},"delete":{"operationId":"deleteTaxonomyClassification","parameters":[{"$ref":"#/components/parameters/TaxonomyClassificationSlugPathParam"}],"responses":{}}},"/v1/entity/taxonomies/{taxonomySlug}:autocomplete":{"get":{"operationId":"taxonomyAutocomplete","parameters":[{"$ref":"#/components/parameters/TaxonomySlugPathParam"},{"in":"query","name":"query"},{"in":"query","name":"size"}],"responses":{}}},"/v1/entity/taxonomies/classifications:search":{"post":{"operationId":"taxonomiesClassificationsSearch","parameters":[{"in":"query","name":"taxonomySlug"},{"in":"query","name":"query"},{"in":"query","name":"archived","deprecated":true},{"in":"query","name":"include_archived"},{"in":"query","name":"exclude_types"}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/entity/schemas/{slug}/taxonomy/{taxonomySlug}":{"get":{"operationId":"listTaxonomyClassificationsForSchema","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/TaxonomySlugPathParam"},{"in":"query","name":"query"},{"in":"query","name":"size"}],"responses":{}}},"/v1/entity/taxonomies/bulk-jobs":{"get":{"operationId":"getTaxonomyBulkActionJobs","parameters":[{"in":"query","name":"status"},{"in":"query","name":"size"},{"in":"query","name":"created_after"},{"in":"query","name":"sort_pending_first"},{"in":"query","name":"scope"}],"responses":{}}},"/v1/entity/taxonomies/bulk-jobs/{job_id}":{"get":{"operationId":"getTaxonomyBulkActionJobById","parameters":[{"in":"path","name":"job_id","required":true}],"responses":{}}},"/v1/entity/taxonomies/bulk-jobs/{job_id}/cancel":{"post":{"operationId":"cancelBulkAction","parameters":[{"name":"job_id","in":"path","required":true}],"responses":{}}},"/v1/entity/taxonomies/classifications:move":{"post":{"operationId":"bulkMoveClassifications","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/entity/taxonomies/classifications:merge":{"post":{"operationId":"bulkMergeClassifications","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/entity/taxonomies/classifications:delete":{"post":{"operationId":"bulkDeleteClassifications","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/entity/schemas/attributes":{"post":{"operationId":"createSchemaAttribute","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/entity/schemas/attributes/{composite_id}":{"get":{"operationId":"getSchemaAttribute","parameters":[{"name":"composite_id","in":"path","required":true}],"responses":{}},"put":{"operationId":"putSchemaAttribute","parameters":[{"name":"composite_id","in":"path","required":true}],"requestBody":{"content":{"application/json":{}}},"responses":{}},"delete":{"operationId":"deleteSchemaAttribute","parameters":[{"name":"composite_id","in":"path","required":true}],"responses":{}}},"/v1/entity/schemas/capabilities":{"post":{"operationId":"createSchemaCapability","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/entity/schemas/capabilities/{composite_id}":{"get":{"operationId":"getSchemaCapability","parameters":[{"name":"composite_id","in":"path","required":true}],"responses":{}},"put":{"operationId":"putSchemaCapability","parameters":[{"name":"composite_id","in":"path","required":true}],"requestBody":{"content":{"application/json":{}}},"responses":{}},"delete":{"operationId":"deleteSchemaCapability","parameters":[{"name":"composite_id","in":"path","required":true}],"responses":{}}},"/v1/entity/schemas/group":{"post":{"operationId":"createSchemaGroup","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/entity/schemas/group/{composite_id}":{"get":{"operationId":"getSchemaGroup","parameters":[{"name":"composite_id","in":"path","required":true}],"responses":{}},"put":{"operationId":"putSchemaGroup","parameters":[{"name":"composite_id","in":"path","required":true}],"requestBody":{"content":{"application/json":{}}},"responses":{}},"delete":{"operationId":"deleteSchemaGroup","parameters":[{"name":"composite_id","in":"path","required":true}],"responses":{}}},"/v1/entity/schemas/headline":{"post":{"operationId":"createSchemaGroupHeadline","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/entity/schemas/headline/{composite_id}":{"get":{"operationId":"getSchemaGroupHeadline","parameters":[{"name":"composite_id","in":"path","required":true}],"responses":{}},"put":{"operationId":"putSchemaGroupHeadline","parameters":[{"name":"composite_id","in":"path","required":true}],"requestBody":{"content":{"application/json":{}}},"responses":{}},"delete":{"operationId":"deleteSchemaGroupHeadline","parameters":[{"name":"composite_id","in":"path","required":true}],"responses":{}}}},"components":{"parameters":{"AnonymizeQueryParam":{"name":"anonymize","in":"query","required":false},"EntityIdPathParam":{"name":"id","in":"path","required":true},"EntitySlugPathParam":{"name":"slug","in":"path","required":true},"EntitySlugPathPriceParam":{"name":"slug","in":"path","required":true},"TaxonomySlugQueryParam":{"name":"taxonomySlug","in":"query","required":true},"TaxonomySlugPathParam":{"name":"taxonomySlug","in":"path","required":true},"TaxonomySlugQueryParamOptional":{"name":"taxonomySlug","in":"query"},"TaxonomyClassificationSlugPathParam":{"name":"classificationSlug","in":"path","required":true},"SavedViewIdPathParam":{"name":"id","in":"path","required":true},"AsyncOperationQueryParam":{"name":"async","in":"query","required":false},"HydrateEntitiesQueryParam":{"name":"hydrate","in":"query"},"ActivityIdQueryParam":{"name":"activity_id","in":"query","required":false},"ActivityIdPathParam":{"name":"id","in":"path","required":true},"FromPageQueryParam":{"name":"from","in":"query"},"IncludeReverseDeprecatedQueryParam":{"name":"include_reverse","in":"query","deprecated":true},"IncludeReverseQueryParam":{"name":"include_reverse","in":"query"},"IncludeSchemasQueryParam":{"name":"include_schemas","in":"query","required":false,"style":"form","explode":false},"ExcludeSchemasQueryParam":{"name":"exclude_schemas","in":"query","required":false,"style":"form","explode":false},"EntityRelationsModeQueryParam":{"name":"mode","in":"query","required":false},"DryRunQueryParam":{"name":"dry_run","in":"query","required":false},"FillActivityQueryParam":{"name":"fill_activity","in":"query","required":false},"ValidateEntityQueryParam":{"name":"validate","in":"query"},"DirectQueryParam":{"name":"direct","in":"query","required":false},"ApplyChangesetsQueryParam":{"name":"apply_changesets","in":"query","required":false}},"responses":{"BadRequestError":{"content":{"application/json":{}}},"NotFoundError":{"content":{"application/json":{}}},"TooManyRequestsError":{"headers":{"Retry-After":{}},"content":{"application/json":{}}}}},"servers":[{"url":"https://entity.sls.epilot.io"}]}')}},t={},a=function a(r){var n=t[r];if(void 0!==n)return n.exports;var s=t[r]={exports:{}};return e[r].call(s.exports,s,s.exports,a),s.exports}(438),r=exports;for(var n in a)r[n]=a[n];a.__esModule&&Object.defineProperty(r,"__esModule",{value:!0})})();
1
+ (()=>{"use strict";var e={438(e,t,a){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var n=r(a(466));t.default=n.default},466(e){e.exports=JSON.parse('{"openapi":"3.0.2","info":{"title":"","version":""},"paths":{"/v1/entity/schemas":{"get":{"operationId":"listSchemas","parameters":[{"in":"query","name":"unpublished","deprecated":true},{"in":"query","name":"latest","deprecated":true},{"in":"query","name":"exclude","style":"form","explode":false},{"in":"query","name":"include","style":"form","explode":false}],"responses":{}}},"/v2/entity/schemas":{"get":{"operationId":"listSchemasV2","parameters":[{"in":"query","name":"full"},{"in":"query","name":"unpublished","deprecated":true},{"in":"query","name":"latest","deprecated":true},{"in":"query","name":"exclude","style":"form","explode":false},{"in":"query","name":"include","style":"form","explode":false}],"responses":{}}},"/v1/entity/schemas/{slug}":{"get":{"operationId":"getSchema","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"in":"query","name":"id"},{"in":"query","name":"latest","deprecated":true}],"responses":{}},"put":{"operationId":"putSchema","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"in":"query","name":"draft","deprecated":true}],"requestBody":{"content":{"application/json":{}}},"responses":{}},"delete":{"operationId":"deleteSchema","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"}],"responses":{}}},"/v1/entity/schemas/{slug}/json/schema":{"get":{"operationId":"getJsonSchema","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"in":"query","name":"dereference"}],"responses":{}}},"/v1/entity/schemas/{slug}/json/example":{"get":{"operationId":"getSchemaExample","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"}],"responses":{}}},"/v1/entity/schemas/{slug}/versions":{"get":{"operationId":"getSchemaVersions","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"in":"query","name":"versions_from"},{"in":"query","name":"versions_size"},{"in":"query","name":"drafts_from"},{"in":"query","name":"drafts_size"},{"in":"query","name":"fields","required":false,"style":"form","explode":false}],"responses":{}}},"/v1/entity/schemas/{slug}/freeze":{"post":{"operationId":"freezeSchema","deprecated":true,"parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/entity/schemas/{slug}/unfreeze":{"post":{"operationId":"unfreezeSchema","deprecated":true,"parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"}],"responses":{}}},"/v1/entity/schemas/{slug}/capabilities/available":{"get":{"operationId":"listAvailableCapabilities","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"}],"responses":{}}},"/v1/entity/schemas/blueprints":{"get":{"operationId":"listSchemaBlueprints","responses":{}}},"/v1/entity:search":{"post":{"operationId":"searchEntities","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/entity:list":{"post":{"operationId":"listEntities","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/entity:graph":{"post":{"operationId":"queryEntityGraph","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/entity/{slug}":{"post":{"operationId":"createEntity","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/ActivityIdQueryParam"},{"$ref":"#/components/parameters/FillActivityQueryParam"},{"$ref":"#/components/parameters/AsyncOperationQueryParam"},{"$ref":"#/components/parameters/ValidateEntityQueryParam"}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/entity/{slug}:validate":{"post":{"operationId":"validateEntity","parameters":[{"$ref":"#/components/parameters/EntitySlugPathPriceParam"}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v2/entity/{slug}:validate":{"post":{"operationId":"validateEntityV2","parameters":[{"$ref":"#/components/parameters/EntitySlugPathPriceParam"}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/entity/{slug}:upsert":{"patch":{"operationId":"upsertEntity","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/ActivityIdQueryParam"},{"$ref":"#/components/parameters/FillActivityQueryParam"},{"$ref":"#/components/parameters/DryRunQueryParam"},{"$ref":"#/components/parameters/AsyncOperationQueryParam"},{"$ref":"#/components/parameters/ValidateEntityQueryParam"},{"name":"strict","in":"query","required":false}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v2/entity/{slug}/{id}":{"get":{"operationId":"getEntityV2","parameters":[{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/HydrateEntitiesQueryParam"},{"$ref":"#/components/parameters/AnonymizeQueryParam"},{"in":"query","name":"fields","style":"form","explode":false},{"$ref":"#/components/parameters/ApplyChangesetsQueryParam"}],"responses":{}}},"/v1/entity/{slug}/{id}:restore":{"patch":{"operationId":"restoreEntity","parameters":[{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/ActivityIdQueryParam"}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/entity/{slug}/{id}:reindex":{"post":{"operationId":"reindexEntity","parameters":[{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/EntitySlugPathParam"}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/entity/{slug}/{id}":{"get":{"operationId":"getEntity","parameters":[{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/HydrateEntitiesQueryParam"},{"$ref":"#/components/parameters/AnonymizeQueryParam"}],"responses":{}},"put":{"operationId":"updateEntity","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/ActivityIdQueryParam"},{"$ref":"#/components/parameters/FillActivityQueryParam"},{"$ref":"#/components/parameters/AsyncOperationQueryParam"},{"$ref":"#/components/parameters/ValidateEntityQueryParam"},{"$ref":"#/components/parameters/DirectQueryParam"}],"requestBody":{"content":{"application/json":{}}},"responses":{}},"patch":{"operationId":"patchEntity","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/ActivityIdQueryParam"},{"$ref":"#/components/parameters/FillActivityQueryParam"},{"$ref":"#/components/parameters/DryRunQueryParam"},{"$ref":"#/components/parameters/AsyncOperationQueryParam"},{"$ref":"#/components/parameters/ValidateEntityQueryParam"},{"$ref":"#/components/parameters/DirectQueryParam"}],"requestBody":{"content":{"application/json":{}},"required":true},"responses":{}},"delete":{"operationId":"deleteEntity","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/ActivityIdQueryParam"},{"in":"query","name":"purge"}],"responses":{}}},"/v1/entity:autocomplete":{"get":{"operationId":"autocomplete","parameters":[{"$ref":"#/components/parameters/AnonymizeQueryParam"},{"name":"input","in":"query"},{"name":"attribute","in":"query","required":true},{"name":"slug","in":"query"},{"name":"size","in":"query"}],"responses":{}}},"/v1/entity:wipeAllEntities":{"post":{"operationId":"wipeAllEntities","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/entity/activity":{"post":{"operationId":"createActivity","parameters":[{"in":"query","name":"entities","style":"form","explode":false}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/entity/activity/{id}":{"get":{"operationId":"getActivity","parameters":[{"$ref":"#/components/parameters/AnonymizeQueryParam"},{"$ref":"#/components/parameters/ActivityIdPathParam"},{"in":"query","name":"operations_size"},{"in":"query","name":"operations_from"}],"responses":{}}},"/v1/entity/activity/{id}:attach":{"post":{"operationId":"attachActivity","parameters":[{"$ref":"#/components/parameters/ActivityIdPathParam"},{"in":"query","name":"entities","style":"form","explode":false}],"responses":{}}},"/v1/entity/{slug}/{id}/changesets/{attribute}:apply":{"post":{"operationId":"applyChangeset","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"in":"path","name":"attribute","required":true}],"responses":{}}},"/v1/entity/{slug}/{id}/changesets/{attribute}:dismiss":{"post":{"operationId":"dismissChangeset","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"in":"path","name":"attribute","required":true}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/entity/{slug}/{id}/changesets":{"get":{"operationId":"listChangesets","parameters":[{"$ref":"#/components/parameters/AnonymizeQueryParam"},{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"}],"responses":{}}},"/v1/entity/{slug}/{id}/activity":{"get":{"operationId":"getEntityActivityFeed","parameters":[{"$ref":"#/components/parameters/AnonymizeQueryParam"},{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"in":"query","name":"after"},{"in":"query","name":"before"},{"in":"query","name":"start_date"},{"in":"query","name":"end_date"},{"in":"query","name":"preset_range"},{"$ref":"#/components/parameters/FromPageQueryParam"},{"in":"query","name":"size"},{"in":"query","name":"type","style":"form","explode":false},{"in":"query","name":"include_relations"},{"in":"query","name":"exclude_activity_groups"}],"responses":{}}},"/v1/entity/{slug}/{id}/relations":{"get":{"operationId":"getRelations","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/HydrateEntitiesQueryParam"},{"$ref":"#/components/parameters/AnonymizeQueryParam"},{"$ref":"#/components/parameters/IncludeReverseQueryParam"},{"$ref":"#/components/parameters/FromPageQueryParam"},{"in":"query","name":"size","required":false},{"$ref":"#/components/parameters/IncludeSchemasQueryParam"},{"$ref":"#/components/parameters/ExcludeSchemasQueryParam"}],"responses":{}},"post":{"operationId":"addRelations","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/AsyncOperationQueryParam"},{"$ref":"#/components/parameters/ActivityIdQueryParam"}],"requestBody":{"content":{"application/json":{}}},"responses":{}},"delete":{"operationId":"removeRelations","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/AsyncOperationQueryParam"},{"$ref":"#/components/parameters/ActivityIdQueryParam"}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v2/entity/{slug}/{id}/relations":{"get":{"operationId":"getRelationsV2","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/HydrateEntitiesQueryParam"},{"$ref":"#/components/parameters/AnonymizeQueryParam"},{"in":"query","name":"query"},{"$ref":"#/components/parameters/IncludeReverseQueryParam"},{"$ref":"#/components/parameters/FromPageQueryParam"},{"in":"query","name":"size"},{"in":"query","name":"fields"}],"responses":{}}},"/v3/entity/{slug}/{id}/relations":{"get":{"operationId":"getRelationsV3","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/HydrateEntitiesQueryParam"},{"$ref":"#/components/parameters/AnonymizeQueryParam"},{"$ref":"#/components/parameters/IncludeReverseDeprecatedQueryParam"},{"$ref":"#/components/parameters/FromPageQueryParam"},{"in":"query","name":"size","required":false},{"$ref":"#/components/parameters/IncludeSchemasQueryParam"},{"$ref":"#/components/parameters/ExcludeSchemasQueryParam"},{"$ref":"#/components/parameters/EntityRelationsModeQueryParam"},{"in":"query","name":"fields"},{"in":"query","name":"include_deleted","required":false}],"responses":{}}},"/v2/entity/{slug}/{id}/relations/count":{"get":{"operationId":"getRelatedEntitiesCount","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/ExcludeSchemasQueryParam"}],"responses":{}}},"/v1/entity/{slug}/{id}/relations/{attribute}/{entity_id}":{"put":{"operationId":"updateRelation","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"in":"path","name":"attribute","required":true},{"in":"path","name":"entity_id","required":true},{"$ref":"#/components/parameters/AsyncOperationQueryParam"},{"$ref":"#/components/parameters/ActivityIdQueryParam"}],"requestBody":{"content":{"application/json":{}}},"responses":{}},"delete":{"operationId":"deleteRelation","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"in":"path","name":"attribute","required":true},{"in":"path","name":"entity_id","required":true},{"$ref":"#/components/parameters/AsyncOperationQueryParam"},{"$ref":"#/components/parameters/ActivityIdQueryParam"}],"responses":{}}},"/v1/entity:export":{"post":{"operationId":"exportEntities","parameters":[{"in":"query","name":"job_id"},{"in":"query","name":"is_template"},{"in":"query","name":"language"}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/entity:import":{"post":{"operationId":"importEntities","parameters":[{"in":"query","name":"job_id"}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/entity:abortImport":{"post":{"operationId":"abortEntityImport","parameters":[{"in":"query","name":"job_id","required":true},{"in":"query","name":"schema","required":true}],"responses":{}}},"/v1/entity/views":{"get":{"operationId":"listSavedViews","parameters":[{"in":"query","name":"slug","required":false},{"in":"query","name":"sort","required":false},{"in":"query","name":"from","required":false},{"in":"query","name":"size","required":false},{"in":"query","name":"q","required":false},{"in":"query","name":"fields","required":false}],"responses":{}}},"/v1/entity/view":{"post":{"operationId":"createSavedView","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/entity/view/{id}":{"get":{"operationId":"getSavedView","parameters":[{"$ref":"#/components/parameters/SavedViewIdPathParam"}],"responses":{}},"put":{"operationId":"updateSavedView","parameters":[{"$ref":"#/components/parameters/SavedViewIdPathParam"}],"requestBody":{"content":{"application/json":{}}},"responses":{}},"patch":{"operationId":"patchSavedView","parameters":[{"$ref":"#/components/parameters/SavedViewIdPathParam"}],"requestBody":{"content":{"application/json":{}}},"responses":{}},"delete":{"operationId":"deleteSavedView","parameters":[{"$ref":"#/components/parameters/SavedViewIdPathParam"}],"responses":{}}},"/v1/entity/views/favorites":{"get":{"operationId":"listFavoriteViewsForUser","responses":{}}},"/v1/entity/taxonomies":{"get":{"operationId":"listTaxonomies","parameters":[{"in":"query","name":"include_disabled"},{"in":"query","name":"type"}],"responses":{}},"post":{"operationId":"createTaxonomy","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/entity/taxonomies/{taxonomySlug}":{"get":{"operationId":"getTaxonomy","parameters":[{"$ref":"#/components/parameters/TaxonomySlugPathParam"}],"responses":{}},"put":{"operationId":"updateTaxonomy","parameters":[{"$ref":"#/components/parameters/TaxonomySlugPathParam"}],"requestBody":{"content":{"application/json":{}}},"responses":{}},"delete":{"operationId":"deleteTaxonomy","parameters":[{"$ref":"#/components/parameters/TaxonomySlugPathParam"},{"in":"query","name":"permanent"}],"responses":{}}},"/v1/entity/taxonomies/{taxonomySlug}/classifications":{"post":{"operationId":"updateClassificationsForTaxonomy","parameters":[{"$ref":"#/components/parameters/TaxonomySlugPathParam"}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v2/entity/taxonomies/classifications":{"post":{"operationId":"createTaxonomyClassification","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v2/entity/taxonomies/classifications/{classificationSlug}":{"get":{"operationId":"getTaxonomyClassification","parameters":[{"$ref":"#/components/parameters/TaxonomyClassificationSlugPathParam"}],"responses":{}},"put":{"operationId":"updateTaxonomyClassification","parameters":[{"$ref":"#/components/parameters/TaxonomyClassificationSlugPathParam"}],"requestBody":{"content":{"application/json":{}}},"responses":{}},"delete":{"operationId":"deleteTaxonomyClassification","parameters":[{"$ref":"#/components/parameters/TaxonomyClassificationSlugPathParam"}],"responses":{}}},"/v1/entity/taxonomies/{taxonomySlug}:autocomplete":{"get":{"operationId":"taxonomyAutocomplete","parameters":[{"$ref":"#/components/parameters/TaxonomySlugPathParam"},{"in":"query","name":"query"},{"in":"query","name":"size"}],"responses":{}}},"/v1/entity/taxonomies/classifications:search":{"post":{"operationId":"taxonomiesClassificationsSearch","parameters":[{"in":"query","name":"taxonomySlug"},{"in":"query","name":"query"},{"in":"query","name":"archived","deprecated":true},{"in":"query","name":"include_archived"},{"in":"query","name":"exclude_types"}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/entity/schemas/{slug}/taxonomy/{taxonomySlug}":{"get":{"operationId":"listTaxonomyClassificationsForSchema","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/TaxonomySlugPathParam"},{"in":"query","name":"query"},{"in":"query","name":"size"}],"responses":{}}},"/v1/entity/taxonomies/bulk-jobs":{"get":{"operationId":"getTaxonomyBulkActionJobs","parameters":[{"in":"query","name":"status"},{"in":"query","name":"size"},{"in":"query","name":"created_after"},{"in":"query","name":"sort_pending_first"},{"in":"query","name":"scope"}],"responses":{}}},"/v1/entity/taxonomies/bulk-jobs/{job_id}":{"get":{"operationId":"getTaxonomyBulkActionJobById","parameters":[{"in":"path","name":"job_id","required":true}],"responses":{}}},"/v1/entity/taxonomies/bulk-jobs/{job_id}/cancel":{"post":{"operationId":"cancelBulkAction","parameters":[{"name":"job_id","in":"path","required":true}],"responses":{}}},"/v1/entity/taxonomies/classifications:move":{"post":{"operationId":"bulkMoveClassifications","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/entity/taxonomies/classifications:merge":{"post":{"operationId":"bulkMergeClassifications","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/entity/taxonomies/classifications:delete":{"post":{"operationId":"bulkDeleteClassifications","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/entity/schemas/attributes":{"post":{"operationId":"createSchemaAttribute","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/entity/schemas/attributes/{composite_id}":{"get":{"operationId":"getSchemaAttribute","parameters":[{"name":"composite_id","in":"path","required":true}],"responses":{}},"put":{"operationId":"putSchemaAttribute","parameters":[{"name":"composite_id","in":"path","required":true}],"requestBody":{"content":{"application/json":{}}},"responses":{}},"delete":{"operationId":"deleteSchemaAttribute","parameters":[{"name":"composite_id","in":"path","required":true}],"responses":{}}},"/v1/entity/schemas/capabilities":{"post":{"operationId":"createSchemaCapability","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/entity/schemas/capabilities/{composite_id}":{"get":{"operationId":"getSchemaCapability","parameters":[{"name":"composite_id","in":"path","required":true}],"responses":{}},"put":{"operationId":"putSchemaCapability","parameters":[{"name":"composite_id","in":"path","required":true}],"requestBody":{"content":{"application/json":{}}},"responses":{}},"delete":{"operationId":"deleteSchemaCapability","parameters":[{"name":"composite_id","in":"path","required":true}],"responses":{}}},"/v1/entity/schemas/group":{"post":{"operationId":"createSchemaGroup","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/entity/schemas/group/{composite_id}":{"get":{"operationId":"getSchemaGroup","parameters":[{"name":"composite_id","in":"path","required":true}],"responses":{}},"put":{"operationId":"putSchemaGroup","parameters":[{"name":"composite_id","in":"path","required":true}],"requestBody":{"content":{"application/json":{}}},"responses":{}},"delete":{"operationId":"deleteSchemaGroup","parameters":[{"name":"composite_id","in":"path","required":true}],"responses":{}}},"/v1/entity/schemas/headline":{"post":{"operationId":"createSchemaGroupHeadline","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/entity/schemas/headline/{composite_id}":{"get":{"operationId":"getSchemaGroupHeadline","parameters":[{"name":"composite_id","in":"path","required":true}],"responses":{}},"put":{"operationId":"putSchemaGroupHeadline","parameters":[{"name":"composite_id","in":"path","required":true}],"requestBody":{"content":{"application/json":{}}},"responses":{}},"delete":{"operationId":"deleteSchemaGroupHeadline","parameters":[{"name":"composite_id","in":"path","required":true}],"responses":{}}}},"components":{"parameters":{"AnonymizeQueryParam":{"name":"anonymize","in":"query","required":false},"EntityIdPathParam":{"name":"id","in":"path","required":true},"EntitySlugPathParam":{"name":"slug","in":"path","required":true},"EntitySlugPathPriceParam":{"name":"slug","in":"path","required":true},"TaxonomySlugQueryParam":{"name":"taxonomySlug","in":"query","required":true},"TaxonomySlugPathParam":{"name":"taxonomySlug","in":"path","required":true},"TaxonomySlugQueryParamOptional":{"name":"taxonomySlug","in":"query"},"TaxonomyClassificationSlugPathParam":{"name":"classificationSlug","in":"path","required":true},"SavedViewIdPathParam":{"name":"id","in":"path","required":true},"AsyncOperationQueryParam":{"name":"async","in":"query","required":false},"HydrateEntitiesQueryParam":{"name":"hydrate","in":"query"},"ActivityIdQueryParam":{"name":"activity_id","in":"query","required":false},"ActivityIdPathParam":{"name":"id","in":"path","required":true},"FromPageQueryParam":{"name":"from","in":"query"},"IncludeReverseDeprecatedQueryParam":{"name":"include_reverse","in":"query","deprecated":true},"IncludeReverseQueryParam":{"name":"include_reverse","in":"query"},"IncludeSchemasQueryParam":{"name":"include_schemas","in":"query","required":false,"style":"form","explode":false},"ExcludeSchemasQueryParam":{"name":"exclude_schemas","in":"query","required":false,"style":"form","explode":false},"EntityRelationsModeQueryParam":{"name":"mode","in":"query","required":false},"DryRunQueryParam":{"name":"dry_run","in":"query","required":false},"FillActivityQueryParam":{"name":"fill_activity","in":"query","required":false},"ValidateEntityQueryParam":{"name":"validate","in":"query"},"DirectQueryParam":{"name":"direct","in":"query","required":false},"ApplyChangesetsQueryParam":{"name":"apply_changesets","in":"query","required":false}},"responses":{"BadRequestError":{"content":{"application/json":{}}},"NotFoundError":{"content":{"application/json":{}}},"TooManyRequestsError":{"headers":{"Retry-After":{}},"content":{"application/json":{}}}}},"servers":[{"url":"https://entity.sls.epilot.io"}]}')}},t={},a=function a(r){var n=t[r];if(void 0!==n)return n.exports;var s=t[r]={exports:{}};return e[r].call(s.exports,s,s.exports,a),s.exports}(438),r=exports;for(var n in a)r[n]=a[n];a.__esModule&&Object.defineProperty(r,"__esModule",{value:!0})})();
@@ -16,7 +16,8 @@
16
16
  },
17
17
  {
18
18
  "in": "query",
19
- "name": "latest"
19
+ "name": "latest",
20
+ "deprecated": true
20
21
  },
21
22
  {
22
23
  "in": "query",
@@ -49,7 +50,8 @@
49
50
  },
50
51
  {
51
52
  "in": "query",
52
- "name": "latest"
53
+ "name": "latest",
54
+ "deprecated": true
53
55
  },
54
56
  {
55
57
  "in": "query",
@@ -80,7 +82,8 @@
80
82
  },
81
83
  {
82
84
  "in": "query",
83
- "name": "latest"
85
+ "name": "latest",
86
+ "deprecated": true
84
87
  }
85
88
  ],
86
89
  "responses": {}
@@ -177,6 +180,7 @@
177
180
  "/v1/entity/schemas/{slug}/freeze": {
178
181
  "post": {
179
182
  "operationId": "freezeSchema",
183
+ "deprecated": true,
180
184
  "parameters": [
181
185
  {
182
186
  "$ref": "#/components/parameters/EntitySlugPathParam"
@@ -193,6 +197,7 @@
193
197
  "/v1/entity/schemas/{slug}/unfreeze": {
194
198
  "post": {
195
199
  "operationId": "unfreezeSchema",
200
+ "deprecated": true,
196
201
  "parameters": [
197
202
  {
198
203
  "$ref": "#/components/parameters/EntitySlugPathParam"
package/dist/openapi.d.ts CHANGED
@@ -398,7 +398,7 @@ declare namespace Components {
398
398
  * fixed on the base entity.
399
399
  *
400
400
  */
401
- variant_overridable?: boolean;
401
+ overridable_attribute?: boolean;
402
402
  default_value?: any;
403
403
  /**
404
404
  * Which group the attribute should appear in. Accepts group ID or group name
@@ -633,7 +633,7 @@ declare namespace Components {
633
633
  * fixed on the base entity.
634
634
  *
635
635
  */
636
- variant_overridable?: boolean;
636
+ overridable_attribute?: boolean;
637
637
  default_value?: any;
638
638
  /**
639
639
  * Which group the attribute should appear in. Accepts group ID or group name
@@ -898,7 +898,7 @@ declare namespace Components {
898
898
  * fixed on the base entity.
899
899
  *
900
900
  */
901
- variant_overridable?: boolean;
901
+ overridable_attribute?: boolean;
902
902
  default_value?: any;
903
903
  /**
904
904
  * Which group the attribute should appear in. Accepts group ID or group name
@@ -1165,7 +1165,7 @@ declare namespace Components {
1165
1165
  * fixed on the base entity.
1166
1166
  *
1167
1167
  */
1168
- variant_overridable?: boolean;
1168
+ overridable_attribute?: boolean;
1169
1169
  default_value?: any;
1170
1170
  /**
1171
1171
  * Which group the attribute should appear in. Accepts group ID or group name
@@ -1497,7 +1497,7 @@ declare namespace Components {
1497
1497
  * fixed on the base entity.
1498
1498
  *
1499
1499
  */
1500
- variant_overridable?: boolean;
1500
+ overridable_attribute?: boolean;
1501
1501
  default_value?: any;
1502
1502
  /**
1503
1503
  * Which group the attribute should appear in. Accepts group ID or group name
@@ -1809,7 +1809,7 @@ declare namespace Components {
1809
1809
  * fixed on the base entity.
1810
1810
  *
1811
1811
  */
1812
- variant_overridable?: boolean;
1812
+ overridable_attribute?: boolean;
1813
1813
  default_value?: any;
1814
1814
  /**
1815
1815
  * Which group the attribute should appear in. Accepts group ID or group name
@@ -2050,7 +2050,7 @@ declare namespace Components {
2050
2050
  * fixed on the base entity.
2051
2051
  *
2052
2052
  */
2053
- variant_overridable?: boolean;
2053
+ overridable_attribute?: boolean;
2054
2054
  default_value?: any;
2055
2055
  /**
2056
2056
  * Which group the attribute should appear in. Accepts group ID or group name
@@ -2261,7 +2261,7 @@ declare namespace Components {
2261
2261
  * fixed on the base entity.
2262
2262
  *
2263
2263
  */
2264
- variant_overridable?: boolean;
2264
+ overridable_attribute?: boolean;
2265
2265
  default_value?: any;
2266
2266
  /**
2267
2267
  * Which group the attribute should appear in. Accepts group ID or group name
@@ -2470,7 +2470,7 @@ declare namespace Components {
2470
2470
  * fixed on the base entity.
2471
2471
  *
2472
2472
  */
2473
- variant_overridable?: boolean;
2473
+ overridable_attribute?: boolean;
2474
2474
  default_value?: any;
2475
2475
  /**
2476
2476
  * Which group the attribute should appear in. Accepts group ID or group name
@@ -2689,7 +2689,7 @@ declare namespace Components {
2689
2689
  * fixed on the base entity.
2690
2690
  *
2691
2691
  */
2692
- variant_overridable?: boolean;
2692
+ overridable_attribute?: boolean;
2693
2693
  default_value?: any;
2694
2694
  /**
2695
2695
  * Which group the attribute should appear in. Accepts group ID or group name
@@ -2979,7 +2979,7 @@ declare namespace Components {
2979
2979
  * fixed on the base entity.
2980
2980
  *
2981
2981
  */
2982
- variant_overridable?: boolean;
2982
+ overridable_attribute?: boolean;
2983
2983
  default_value?: any;
2984
2984
  /**
2985
2985
  * Which group the attribute should appear in. Accepts group ID or group name
@@ -3315,10 +3315,10 @@ declare namespace Components {
3315
3315
  * capability. Only meaningful on schemas that declare `conditions` and on capabilities
3316
3316
  * that render an attribute group (`EntityAttributes:Group` ui hook), e.g. pricing tiers.
3317
3317
  * Attributes carried by the capability opt in individually via their own
3318
- * `variant_overridable` flag.
3318
+ * `overridable_attribute` flag.
3319
3319
  *
3320
3320
  */
3321
- variant_overridable?: boolean;
3321
+ overridable_attribute?: boolean;
3322
3322
  _purpose?: /**
3323
3323
  * example:
3324
3324
  * taxonomy-slug:classification-slug
@@ -3431,6 +3431,12 @@ declare namespace Components {
3431
3431
  * false
3432
3432
  */
3433
3433
  default_visible?: boolean;
3434
+ /**
3435
+ * How wide this widget is by default in the entity-details widget grid. Only meaningful on the `EntityDetailsV2:Widget` and `EntityDetailsV2:Header` hooks. Defaults to `full_width` when omitted — deliberately unlike the attribute layout default of `half_width`, because a full-width widget can never leave a hole in a row. An admin's explicit choice in the entity builder is stored in the schema's `ui_config.widget_widths` and wins over this.
3436
+ * example:
3437
+ * half_width
3438
+ */
3439
+ default_width?: "one_third_width" | "half_width" | "two_third_width" | "full_width";
3434
3440
  /**
3435
3441
  * The pricing-tier settings key an organisation must have enabled to use this widget. Omit for widgets available to everyone. Resolved against `GET /v2/pricing-tiers/me` as `override_settings[key].enabled ?? settings[key].enabled`. Note this is commercial packaging enforced in the UI, not a security control — the key must also be added to the pricing tier settings list in epilot-admin-portal, or it can never be switched on for a tier.
3436
3442
  * example:
@@ -3489,10 +3495,10 @@ declare namespace Components {
3489
3495
  * capability. Only meaningful on schemas that declare `conditions` and on capabilities
3490
3496
  * that render an attribute group (`EntityAttributes:Group` ui hook), e.g. pricing tiers.
3491
3497
  * Attributes carried by the capability opt in individually via their own
3492
- * `variant_overridable` flag.
3498
+ * `overridable_attribute` flag.
3493
3499
  *
3494
3500
  */
3495
- variant_overridable?: boolean;
3501
+ overridable_attribute?: boolean;
3496
3502
  _purpose?: /**
3497
3503
  * example:
3498
3504
  * taxonomy-slug:classification-slug
@@ -3605,6 +3611,12 @@ declare namespace Components {
3605
3611
  * false
3606
3612
  */
3607
3613
  default_visible?: boolean;
3614
+ /**
3615
+ * How wide this widget is by default in the entity-details widget grid. Only meaningful on the `EntityDetailsV2:Widget` and `EntityDetailsV2:Header` hooks. Defaults to `full_width` when omitted — deliberately unlike the attribute layout default of `half_width`, because a full-width widget can never leave a hole in a row. An admin's explicit choice in the entity builder is stored in the schema's `ui_config.widget_widths` and wins over this.
3616
+ * example:
3617
+ * half_width
3618
+ */
3619
+ default_width?: "one_third_width" | "half_width" | "two_third_width" | "full_width";
3608
3620
  /**
3609
3621
  * The pricing-tier settings key an organisation must have enabled to use this widget. Omit for widgets available to everyone. Resolved against `GET /v2/pricing-tiers/me` as `override_settings[key].enabled ?? settings[key].enabled`. Note this is commercial packaging enforced in the UI, not a security control — the key must also be added to the pricing tier settings list in epilot-admin-portal, or it can never be switched on for a tier.
3610
3622
  * example:
@@ -4606,7 +4618,7 @@ declare namespace Components {
4606
4618
  show_sharing_button?: boolean;
4607
4619
  };
4608
4620
  /**
4609
- * Widget-grid layout for the entity-details page (builder-authored); columns/cells drive the grid geometry.
4621
+ * Superseded by `widget_widths`. A whole-grid layout preset that assigned each widget a width by its POSITION, so a widget that rendered nothing shifted every width after it. Neither the entity app nor the entity builder reads it any more; values stored before it was replaced are left in place rather than migrated.
4610
4622
  */
4611
4623
  grid_layout?: {
4612
4624
  /**
@@ -4637,6 +4649,17 @@ declare namespace Components {
4637
4649
  widget_visibility?: {
4638
4650
  [name: string]: boolean;
4639
4651
  };
4652
+ /**
4653
+ * Per-widget width in the entity-details widget grid, keyed by widget id (a capability widget's `component`, or `summary` for the synthesized summary card). Spans a 12-column grid: `one_third_width` = 4, `half_width` = 6, `two_third_width` = 8, `full_width` = 12. Holds only the admin's deviations from each widget's declared default: a widget absent from this map falls back to its ui_hook `default_width`, and then to `full_width`. Do not seed this map from migrations — doing so would freeze today's defaults into the schema. Replaces the positional `grid_layout` preset.
4654
+ * example:
4655
+ * {
4656
+ * "address_map": "full_width",
4657
+ * "recent_communications": "one_third_width"
4658
+ * }
4659
+ */
4660
+ widget_widths?: {
4661
+ [name: string]: "one_third_width" | "half_width" | "two_third_width" | "full_width";
4662
+ };
4640
4663
  };
4641
4664
  capabilities: /* Capabilities the Entity has. Turn features on/off for entities. */ EntityCapability[];
4642
4665
  /**
@@ -4752,7 +4775,7 @@ declare namespace Components {
4752
4775
  * Dimensions that conditional variants of this entity type are keyed by.
4753
4776
  *
4754
4777
  * Absent or `null` means entities of this type are not conditional. Attributes whose
4755
- * values a variant may override are marked with `variant_overridable`.
4778
+ * values a variant may override are marked with `overridable_attribute`.
4756
4779
  *
4757
4780
  */
4758
4781
  conditions?: /**
@@ -4906,11 +4929,13 @@ declare namespace Components {
4906
4929
  type?: string;
4907
4930
  };
4908
4931
  /**
4909
- * Indicates this schema is currently frozen. Present when the returned version is the frozen version.
4932
+ * No longer returned: schema freezing is retired.
4933
+ *
4910
4934
  */
4911
4935
  frozen?: boolean;
4912
4936
  /**
4913
- * Indicates this is the latest version of the schema. Both frozen and latest can be true if no changes were made since freezing.
4937
+ * No longer returned: every read returns the latest version.
4938
+ *
4914
4939
  */
4915
4940
  latest?: boolean;
4916
4941
  /**
@@ -5048,7 +5073,7 @@ declare namespace Components {
5048
5073
  show_sharing_button?: boolean;
5049
5074
  };
5050
5075
  /**
5051
- * Widget-grid layout for the entity-details page (builder-authored); columns/cells drive the grid geometry.
5076
+ * Superseded by `widget_widths`. A whole-grid layout preset that assigned each widget a width by its POSITION, so a widget that rendered nothing shifted every width after it. Neither the entity app nor the entity builder reads it any more; values stored before it was replaced are left in place rather than migrated.
5052
5077
  */
5053
5078
  grid_layout?: {
5054
5079
  /**
@@ -5079,6 +5104,17 @@ declare namespace Components {
5079
5104
  widget_visibility?: {
5080
5105
  [name: string]: boolean;
5081
5106
  };
5107
+ /**
5108
+ * Per-widget width in the entity-details widget grid, keyed by widget id (a capability widget's `component`, or `summary` for the synthesized summary card). Spans a 12-column grid: `one_third_width` = 4, `half_width` = 6, `two_third_width` = 8, `full_width` = 12. Holds only the admin's deviations from each widget's declared default: a widget absent from this map falls back to its ui_hook `default_width`, and then to `full_width`. Do not seed this map from migrations — doing so would freeze today's defaults into the schema. Replaces the positional `grid_layout` preset.
5109
+ * example:
5110
+ * {
5111
+ * "address_map": "full_width",
5112
+ * "recent_communications": "one_third_width"
5113
+ * }
5114
+ */
5115
+ widget_widths?: {
5116
+ [name: string]: "one_third_width" | "half_width" | "two_third_width" | "full_width";
5117
+ };
5082
5118
  };
5083
5119
  capabilities: /* Capabilities the Entity has. Turn features on/off for entities. */ EntityCapability[];
5084
5120
  /**
@@ -5194,7 +5230,7 @@ declare namespace Components {
5194
5230
  * Dimensions that conditional variants of this entity type are keyed by.
5195
5231
  *
5196
5232
  * Absent or `null` means entities of this type are not conditional. Attributes whose
5197
- * values a variant may override are marked with `variant_overridable`.
5233
+ * values a variant may override are marked with `overridable_attribute`.
5198
5234
  *
5199
5235
  */
5200
5236
  conditions?: /**
@@ -5754,7 +5790,7 @@ declare namespace Components {
5754
5790
  * fixed on the base entity.
5755
5791
  *
5756
5792
  */
5757
- variant_overridable?: boolean;
5793
+ overridable_attribute?: boolean;
5758
5794
  default_value?: any;
5759
5795
  /**
5760
5796
  * Which group the attribute should appear in. Accepts group ID or group name
@@ -6169,6 +6205,34 @@ declare namespace Components {
6169
6205
  * ]
6170
6206
  */
6171
6207
  fields?: string[];
6208
+ /**
6209
+ * Narrows this node's traversal results to entities matching every filter (AND semantics). Useful for
6210
+ * disambiguating among multiple entities reachable via the same graph edge.
6211
+ *
6212
+ */
6213
+ filter?: /* Entities are included in this node's result only if `attribute` exactly equals the literal `value`. */ GraphNodeFilter[];
6214
+ }
6215
+ /**
6216
+ * Entities are included in this node's result only if `attribute` exactly equals the literal `value`.
6217
+ */
6218
+ export interface GraphNodeFilter {
6219
+ /**
6220
+ * Entity attribute name to match against. Must be a plain attribute name, not an Elasticsearch field path.
6221
+ * example:
6222
+ * order_number
6223
+ */
6224
+ attribute: string;
6225
+ /**
6226
+ * Literal value the attribute must exactly equal for the entity to be included in this node's result.
6227
+ * example:
6228
+ * OR-113
6229
+ */
6230
+ value: /**
6231
+ * Literal value the attribute must exactly equal for the entity to be included in this node's result.
6232
+ * example:
6233
+ * OR-113
6234
+ */
6235
+ (string | null) | number | boolean;
6172
6236
  }
6173
6237
  export interface GraphQueryRequest {
6174
6238
  seed: GraphSeed;
@@ -6648,7 +6712,7 @@ declare namespace Components {
6648
6712
  * fixed on the base entity.
6649
6713
  *
6650
6714
  */
6651
- variant_overridable?: boolean;
6715
+ overridable_attribute?: boolean;
6652
6716
  default_value?: any;
6653
6717
  /**
6654
6718
  * Which group the attribute should appear in. Accepts group ID or group name
@@ -6857,7 +6921,7 @@ declare namespace Components {
6857
6921
  * fixed on the base entity.
6858
6922
  *
6859
6923
  */
6860
- variant_overridable?: boolean;
6924
+ overridable_attribute?: boolean;
6861
6925
  default_value?: any;
6862
6926
  /**
6863
6927
  * Which group the attribute should appear in. Accepts group ID or group name
@@ -7066,7 +7130,7 @@ declare namespace Components {
7066
7130
  * fixed on the base entity.
7067
7131
  *
7068
7132
  */
7069
- variant_overridable?: boolean;
7133
+ overridable_attribute?: boolean;
7070
7134
  default_value?: any;
7071
7135
  /**
7072
7136
  * Which group the attribute should appear in. Accepts group ID or group name
@@ -7283,7 +7347,7 @@ declare namespace Components {
7283
7347
  * fixed on the base entity.
7284
7348
  *
7285
7349
  */
7286
- variant_overridable?: boolean;
7350
+ overridable_attribute?: boolean;
7287
7351
  default_value?: any;
7288
7352
  /**
7289
7353
  * Which group the attribute should appear in. Accepts group ID or group name
@@ -7547,7 +7611,7 @@ declare namespace Components {
7547
7611
  * fixed on the base entity.
7548
7612
  *
7549
7613
  */
7550
- variant_overridable?: boolean;
7614
+ overridable_attribute?: boolean;
7551
7615
  default_value?: any;
7552
7616
  /**
7553
7617
  * Which group the attribute should appear in. Accepts group ID or group name
@@ -7843,7 +7907,7 @@ declare namespace Components {
7843
7907
  * fixed on the base entity.
7844
7908
  *
7845
7909
  */
7846
- variant_overridable?: boolean;
7910
+ overridable_attribute?: boolean;
7847
7911
  default_value?: any;
7848
7912
  /**
7849
7913
  * Which group the attribute should appear in. Accepts group ID or group name
@@ -8163,7 +8227,7 @@ declare namespace Components {
8163
8227
  * fixed on the base entity.
8164
8228
  *
8165
8229
  */
8166
- variant_overridable?: boolean;
8230
+ overridable_attribute?: boolean;
8167
8231
  default_value?: any;
8168
8232
  /**
8169
8233
  * Which group the attribute should appear in. Accepts group ID or group name
@@ -8381,7 +8445,7 @@ declare namespace Components {
8381
8445
  * fixed on the base entity.
8382
8446
  *
8383
8447
  */
8384
- variant_overridable?: boolean;
8448
+ overridable_attribute?: boolean;
8385
8449
  default_value?: any;
8386
8450
  /**
8387
8451
  * Which group the attribute should appear in. Accepts group ID or group name
@@ -8590,7 +8654,7 @@ declare namespace Components {
8590
8654
  * fixed on the base entity.
8591
8655
  *
8592
8656
  */
8593
- variant_overridable?: boolean;
8657
+ overridable_attribute?: boolean;
8594
8658
  default_value?: any;
8595
8659
  /**
8596
8660
  * Which group the attribute should appear in. Accepts group ID or group name
@@ -8799,7 +8863,7 @@ declare namespace Components {
8799
8863
  * fixed on the base entity.
8800
8864
  *
8801
8865
  */
8802
- variant_overridable?: boolean;
8866
+ overridable_attribute?: boolean;
8803
8867
  default_value?: any;
8804
8868
  /**
8805
8869
  * Which group the attribute should appear in. Accepts group ID or group name
@@ -9008,7 +9072,7 @@ declare namespace Components {
9008
9072
  * fixed on the base entity.
9009
9073
  *
9010
9074
  */
9011
- variant_overridable?: boolean;
9075
+ overridable_attribute?: boolean;
9012
9076
  default_value?: any;
9013
9077
  /**
9014
9078
  * Which group the attribute should appear in. Accepts group ID or group name
@@ -9217,7 +9281,7 @@ declare namespace Components {
9217
9281
  * fixed on the base entity.
9218
9282
  *
9219
9283
  */
9220
- variant_overridable?: boolean;
9284
+ overridable_attribute?: boolean;
9221
9285
  default_value?: any;
9222
9286
  /**
9223
9287
  * Which group the attribute should appear in. Accepts group ID or group name
@@ -9426,7 +9490,7 @@ declare namespace Components {
9426
9490
  * fixed on the base entity.
9427
9491
  *
9428
9492
  */
9429
- variant_overridable?: boolean;
9493
+ overridable_attribute?: boolean;
9430
9494
  default_value?: any;
9431
9495
  /**
9432
9496
  * Which group the attribute should appear in. Accepts group ID or group name
@@ -9635,7 +9699,7 @@ declare namespace Components {
9635
9699
  * fixed on the base entity.
9636
9700
  *
9637
9701
  */
9638
- variant_overridable?: boolean;
9702
+ overridable_attribute?: boolean;
9639
9703
  default_value?: any;
9640
9704
  /**
9641
9705
  * Which group the attribute should appear in. Accepts group ID or group name
@@ -9844,7 +9908,7 @@ declare namespace Components {
9844
9908
  * fixed on the base entity.
9845
9909
  *
9846
9910
  */
9847
- variant_overridable?: boolean;
9911
+ overridable_attribute?: boolean;
9848
9912
  default_value?: any;
9849
9913
  /**
9850
9914
  * Which group the attribute should appear in. Accepts group ID or group name
@@ -10053,7 +10117,7 @@ declare namespace Components {
10053
10117
  * fixed on the base entity.
10054
10118
  *
10055
10119
  */
10056
- variant_overridable?: boolean;
10120
+ overridable_attribute?: boolean;
10057
10121
  default_value?: any;
10058
10122
  /**
10059
10123
  * Which group the attribute should appear in. Accepts group ID or group name
@@ -10277,7 +10341,7 @@ declare namespace Components {
10277
10341
  * fixed on the base entity.
10278
10342
  *
10279
10343
  */
10280
- variant_overridable?: boolean;
10344
+ overridable_attribute?: boolean;
10281
10345
  default_value?: any;
10282
10346
  /**
10283
10347
  * Which group the attribute should appear in. Accepts group ID or group name
@@ -10712,7 +10776,7 @@ declare namespace Components {
10712
10776
  * fixed on the base entity.
10713
10777
  *
10714
10778
  */
10715
- variant_overridable?: boolean;
10779
+ overridable_attribute?: boolean;
10716
10780
  default_value?: any;
10717
10781
  /**
10718
10782
  * Which group the attribute should appear in. Accepts group ID or group name
@@ -11375,7 +11439,7 @@ declare namespace Components {
11375
11439
  * fixed on the base entity.
11376
11440
  *
11377
11441
  */
11378
- variant_overridable?: boolean;
11442
+ overridable_attribute?: boolean;
11379
11443
  default_value?: any;
11380
11444
  /**
11381
11445
  * Which group the attribute should appear in. Accepts group ID or group name
@@ -11633,7 +11697,7 @@ declare namespace Components {
11633
11697
  * fixed on the base entity.
11634
11698
  *
11635
11699
  */
11636
- variant_overridable?: boolean;
11700
+ overridable_attribute?: boolean;
11637
11701
  default_value?: any;
11638
11702
  /**
11639
11703
  * Which group the attribute should appear in. Accepts group ID or group name
@@ -11859,7 +11923,7 @@ declare namespace Components {
11859
11923
  * fixed on the base entity.
11860
11924
  *
11861
11925
  */
11862
- variant_overridable?: boolean;
11926
+ overridable_attribute?: boolean;
11863
11927
  default_value?: any;
11864
11928
  /**
11865
11929
  * Which group the attribute should appear in. Accepts group ID or group name
@@ -12164,7 +12228,7 @@ declare namespace Components {
12164
12228
  * fixed on the base entity.
12165
12229
  *
12166
12230
  */
12167
- variant_overridable?: boolean;
12231
+ overridable_attribute?: boolean;
12168
12232
  default_value?: any;
12169
12233
  /**
12170
12234
  * Which group the attribute should appear in. Accepts group ID or group name
@@ -12429,7 +12493,7 @@ declare namespace Components {
12429
12493
  * fixed on the base entity.
12430
12494
  *
12431
12495
  */
12432
- variant_overridable?: boolean;
12496
+ overridable_attribute?: boolean;
12433
12497
  default_value?: any;
12434
12498
  /**
12435
12499
  * Which group the attribute should appear in. Accepts group ID or group name
@@ -12840,7 +12904,7 @@ declare namespace Components {
12840
12904
  * fixed on the base entity.
12841
12905
  *
12842
12906
  */
12843
- variant_overridable?: boolean;
12907
+ overridable_attribute?: boolean;
12844
12908
  default_value?: any;
12845
12909
  /**
12846
12910
  * Which group the attribute should appear in. Accepts group ID or group name
@@ -13062,7 +13126,7 @@ declare namespace Components {
13062
13126
  * fixed on the base entity.
13063
13127
  *
13064
13128
  */
13065
- variant_overridable?: boolean;
13129
+ overridable_attribute?: boolean;
13066
13130
  default_value?: any;
13067
13131
  /**
13068
13132
  * Which group the attribute should appear in. Accepts group ID or group name
@@ -15459,7 +15523,8 @@ declare namespace Paths {
15459
15523
  */
15460
15524
  drafts_more?: boolean;
15461
15525
  /**
15462
- * The version ID that is currently frozen, if any
15526
+ * No longer returned: schema freezing is retired.
15527
+ *
15463
15528
  */
15464
15529
  frozen_version?: string; // uuid
15465
15530
  }
@@ -15513,7 +15578,7 @@ declare namespace Paths {
15513
15578
  /**
15514
15579
  * ISO 8601 timestamp to filter jobs created after this time (e.g., 2023-01-01T00:00:00Z).
15515
15580
  * example:
15516
- * 2023-01-01T00:00:00.000Z
15581
+ * 2023-01-01T00:00:00Z
15517
15582
  */
15518
15583
  export type CreatedAfter = string; // date-time
15519
15584
  /**
@@ -15539,7 +15604,7 @@ declare namespace Paths {
15539
15604
  created_after?: /**
15540
15605
  * ISO 8601 timestamp to filter jobs created after this time (e.g., 2023-01-01T00:00:00Z).
15541
15606
  * example:
15542
- * 2023-01-01T00:00:00.000Z
15607
+ * 2023-01-01T00:00:00Z
15543
15608
  */
15544
15609
  Parameters.CreatedAfter /* date-time */;
15545
15610
  sort_pending_first?: /* When true, sorts PENDING status jobs to the top of the results. */ Parameters.SortPendingFirst;
@@ -17026,8 +17091,7 @@ export interface OperationMethods {
17026
17091
  /**
17027
17092
  * getSchema - getSchema
17028
17093
  *
17029
- * By default gets the current version of the Schema (frozen version if frozen, otherwise latest).
17030
- * Pass ?latest=true to get the latest version when the schema is frozen.
17094
+ * Gets the latest version of the Schema.
17031
17095
  * Pass ?id= to get a specific version by ID.
17032
17096
  *
17033
17097
  */
@@ -17040,7 +17104,6 @@ export interface OperationMethods {
17040
17104
  * putSchema - putSchema
17041
17105
  *
17042
17106
  * Create or update a schema with a new version.
17043
- * When the schema is frozen, writes update the latest version without affecting the frozen version.
17044
17107
  *
17045
17108
  */
17046
17109
  'putSchema'(
@@ -17091,9 +17154,8 @@ export interface OperationMethods {
17091
17154
  /**
17092
17155
  * freezeSchema - freezeSchema
17093
17156
  *
17094
- * Freeze a schema at its current version, or at a specific version.
17095
- * When frozen, getSchema returns the frozen version by default.
17096
- * New edits via putSchema update the latest version without affecting the frozen version.
17157
+ * Deprecated no-op: schema freezing is retired and every read returns the latest version.
17158
+ * Returns the latest version of the schema unchanged. This endpoint will be removed.
17097
17159
  *
17098
17160
  */
17099
17161
  'freezeSchema'(
@@ -17104,7 +17166,9 @@ export interface OperationMethods {
17104
17166
  /**
17105
17167
  * unfreezeSchema - unfreezeSchema
17106
17168
  *
17107
- * Unfreeze a schema. Promotes the latest version to the current version for all users.
17169
+ * Deprecated: schema freezing is retired. Cleans up a leftover frozen pointer by promoting the
17170
+ * latest version to the current version, and succeeds when there is nothing to clean up.
17171
+ * This endpoint will be removed.
17108
17172
  *
17109
17173
  */
17110
17174
  'unfreezeSchema'(
@@ -18227,8 +18291,7 @@ export interface PathsDictionary {
18227
18291
  /**
18228
18292
  * getSchema - getSchema
18229
18293
  *
18230
- * By default gets the current version of the Schema (frozen version if frozen, otherwise latest).
18231
- * Pass ?latest=true to get the latest version when the schema is frozen.
18294
+ * Gets the latest version of the Schema.
18232
18295
  * Pass ?id= to get a specific version by ID.
18233
18296
  *
18234
18297
  */
@@ -18241,7 +18304,6 @@ export interface PathsDictionary {
18241
18304
  * putSchema - putSchema
18242
18305
  *
18243
18306
  * Create or update a schema with a new version.
18244
- * When the schema is frozen, writes update the latest version without affecting the frozen version.
18245
18307
  *
18246
18308
  */
18247
18309
  'put'(
@@ -18300,9 +18362,8 @@ export interface PathsDictionary {
18300
18362
  /**
18301
18363
  * freezeSchema - freezeSchema
18302
18364
  *
18303
- * Freeze a schema at its current version, or at a specific version.
18304
- * When frozen, getSchema returns the frozen version by default.
18305
- * New edits via putSchema update the latest version without affecting the frozen version.
18365
+ * Deprecated no-op: schema freezing is retired and every read returns the latest version.
18366
+ * Returns the latest version of the schema unchanged. This endpoint will be removed.
18306
18367
  *
18307
18368
  */
18308
18369
  'post'(
@@ -18315,7 +18376,9 @@ export interface PathsDictionary {
18315
18376
  /**
18316
18377
  * unfreezeSchema - unfreezeSchema
18317
18378
  *
18318
- * Unfreeze a schema. Promotes the latest version to the current version for all users.
18379
+ * Deprecated: schema freezing is retired. Cleans up a leftover frozen pointer by promoting the
18380
+ * latest version to the current version, and succeeds when there is nothing to clean up.
18381
+ * This endpoint will be removed.
18319
18382
  *
18320
18383
  */
18321
18384
  'post'(
@@ -19605,6 +19668,7 @@ export type GetRelationsRespWithPagination = Components.Schemas.GetRelationsResp
19605
19668
  export type GraphDefinition = Components.Schemas.GraphDefinition;
19606
19669
  export type GraphEdge = Components.Schemas.GraphEdge;
19607
19670
  export type GraphNode = Components.Schemas.GraphNode;
19671
+ export type GraphNodeFilter = Components.Schemas.GraphNodeFilter;
19608
19672
  export type GraphQueryRequest = Components.Schemas.GraphQueryRequest;
19609
19673
  export type GraphQueryResponse = Components.Schemas.GraphQueryResponse;
19610
19674
  export type GraphSeed = Components.Schemas.GraphSeed;
package/dist/openapi.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "openapi": "3.0.2",
3
3
  "info": {
4
4
  "title": "Entity API",
5
- "version": "2.9.0",
5
+ "version": "2.10.0",
6
6
  "description": "Flexible data layer for epilot Entities.\n\nUse this API configure and access your business objects like Contacts, Opportunities and Products.\n\n[Feature Documentation](https://docs.epilot.io/docs/entities/flexible-entities)\n"
7
7
  },
8
8
  "tags": [
@@ -75,7 +75,8 @@
75
75
  {
76
76
  "in": "query",
77
77
  "name": "latest",
78
- "description": "When true, return the latest version instead of the frozen version for frozen schemas.",
78
+ "deprecated": true,
79
+ "description": "No longer has any effect: schema freezing is retired and the latest version is always returned.\n",
79
80
  "schema": {
80
81
  "type": "boolean",
81
82
  "default": false
@@ -161,7 +162,8 @@
161
162
  {
162
163
  "in": "query",
163
164
  "name": "latest",
164
- "description": "When true, return the latest version instead of the frozen version for frozen schemas.",
165
+ "deprecated": true,
166
+ "description": "No longer has any effect: schema freezing is retired and the latest version is always returned.\n",
165
167
  "schema": {
166
168
  "type": "boolean",
167
169
  "default": false
@@ -223,7 +225,7 @@
223
225
  "get": {
224
226
  "operationId": "getSchema",
225
227
  "summary": "getSchema",
226
- "description": "By default gets the current version of the Schema (frozen version if frozen, otherwise latest).\nPass ?latest=true to get the latest version when the schema is frozen.\nPass ?id= to get a specific version by ID.\n",
228
+ "description": "Gets the latest version of the Schema.\nPass ?id= to get a specific version by ID.\n",
227
229
  "tags": [
228
230
  "Schemas"
229
231
  ],
@@ -241,7 +243,8 @@
241
243
  {
242
244
  "in": "query",
243
245
  "name": "latest",
244
- "description": "When true, return the latest version instead of the frozen version for frozen schemas.",
246
+ "deprecated": true,
247
+ "description": "No longer has any effect: schema freezing is retired and the latest version is always returned.\n",
245
248
  "schema": {
246
249
  "type": "boolean",
247
250
  "default": false
@@ -267,7 +270,7 @@
267
270
  "put": {
268
271
  "operationId": "putSchema",
269
272
  "summary": "putSchema",
270
- "description": "Create or update a schema with a new version.\nWhen the schema is frozen, writes update the latest version without affecting the frozen version.\n",
273
+ "description": "Create or update a schema with a new version.\n",
271
274
  "tags": [
272
275
  "Schemas"
273
276
  ],
@@ -792,7 +795,8 @@
792
795
  "type": "boolean"
793
796
  },
794
797
  "frozen_version": {
795
- "description": "The version ID that is currently frozen, if any",
798
+ "deprecated": true,
799
+ "description": "No longer returned: schema freezing is retired.\n",
796
800
  "allOf": [
797
801
  {
798
802
  "$ref": "#/components/schemas/SchemaId"
@@ -815,7 +819,8 @@
815
819
  "post": {
816
820
  "operationId": "freezeSchema",
817
821
  "summary": "freezeSchema",
818
- "description": "Freeze a schema at its current version, or at a specific version.\nWhen frozen, getSchema returns the frozen version by default.\nNew edits via putSchema update the latest version without affecting the frozen version.\n",
822
+ "deprecated": true,
823
+ "description": "Deprecated no-op: schema freezing is retired and every read returns the latest version.\nReturns the latest version of the schema unchanged. This endpoint will be removed.\n",
819
824
  "tags": [
820
825
  "Schemas"
821
826
  ],
@@ -864,7 +869,8 @@
864
869
  "post": {
865
870
  "operationId": "unfreezeSchema",
866
871
  "summary": "unfreezeSchema",
867
- "description": "Unfreeze a schema. Promotes the latest version to the current version for all users.\n",
872
+ "deprecated": true,
873
+ "description": "Deprecated: schema freezing is retired. Cleans up a leftover frozen pointer by promoting the\nlatest version to the current version, and succeeds when there is nothing to clean up.\nThis endpoint will be removed.\n",
868
874
  "tags": [
869
875
  "Schemas"
870
876
  ],
@@ -3947,7 +3953,7 @@
3947
3953
  "description": "ISO 8601 timestamp to filter jobs created after this time (e.g., 2023-01-01T00:00:00Z).",
3948
3954
  "type": "string",
3949
3955
  "format": "date-time",
3950
- "example": "2023-01-01T00:00:00.000Z"
3956
+ "example": "2023-01-01T00:00:00Z"
3951
3957
  }
3952
3958
  },
3953
3959
  {
@@ -5072,7 +5078,8 @@
5072
5078
  },
5073
5079
  "grid_layout": {
5074
5080
  "type": "object",
5075
- "description": "Widget-grid layout for the entity-details page (builder-authored); columns/cells drive the grid geometry.",
5081
+ "deprecated": true,
5082
+ "description": "Superseded by `widget_widths`. A whole-grid layout preset that assigned each widget a width by its POSITION, so a widget that rendered nothing shifted every width after it. Neither the entity app nor the entity builder reads it any more; values stored before it was replaced are left in place rather than migrated.",
5076
5083
  "properties": {
5077
5084
  "id": {
5078
5085
  "type": "string",
@@ -5108,6 +5115,23 @@
5108
5115
  "next_best_action": true,
5109
5116
  "address_map": false
5110
5117
  }
5118
+ },
5119
+ "widget_widths": {
5120
+ "type": "object",
5121
+ "description": "Per-widget width in the entity-details widget grid, keyed by widget id (a capability widget's `component`, or `summary` for the synthesized summary card). Spans a 12-column grid: `one_third_width` = 4, `half_width` = 6, `two_third_width` = 8, `full_width` = 12. Holds only the admin's deviations from each widget's declared default: a widget absent from this map falls back to its ui_hook `default_width`, and then to `full_width`. Do not seed this map from migrations — doing so would freeze today's defaults into the schema. Replaces the positional `grid_layout` preset.",
5122
+ "additionalProperties": {
5123
+ "type": "string",
5124
+ "enum": [
5125
+ "one_third_width",
5126
+ "half_width",
5127
+ "two_third_width",
5128
+ "full_width"
5129
+ ]
5130
+ },
5131
+ "example": {
5132
+ "address_map": "full_width",
5133
+ "recent_communications": "one_third_width"
5134
+ }
5111
5135
  }
5112
5136
  }
5113
5137
  },
@@ -5239,7 +5263,7 @@
5239
5263
  "conditions": {
5240
5264
  "type": "array",
5241
5265
  "nullable": true,
5242
- "description": "Dimensions that conditional variants of this entity type are keyed by.\n\nAbsent or `null` means entities of this type are not conditional. Attributes whose\nvalues a variant may override are marked with `variant_overridable`.\n",
5266
+ "description": "Dimensions that conditional variants of this entity type are keyed by.\n\nAbsent or `null` means entities of this type are not conditional. Attributes whose\nvalues a variant may override are marked with `overridable_attribute`.\n",
5243
5267
  "items": {
5244
5268
  "$ref": "#/components/schemas/ConditionDefinition"
5245
5269
  }
@@ -5282,11 +5306,13 @@
5282
5306
  }
5283
5307
  },
5284
5308
  "frozen": {
5285
- "description": "Indicates this schema is currently frozen. Present when the returned version is the frozen version.",
5309
+ "deprecated": true,
5310
+ "description": "No longer returned: schema freezing is retired.\n",
5286
5311
  "type": "boolean"
5287
5312
  },
5288
5313
  "latest": {
5289
- "description": "Indicates this is the latest version of the schema. Both frozen and latest can be true if no changes were made since freezing.",
5314
+ "deprecated": true,
5315
+ "description": "No longer returned: every read returns the latest version.\n",
5290
5316
  "type": "boolean"
5291
5317
  },
5292
5318
  "_summary": {
@@ -5672,7 +5698,7 @@
5672
5698
  "type": "boolean",
5673
5699
  "default": false
5674
5700
  },
5675
- "variant_overridable": {
5701
+ "overridable_attribute": {
5676
5702
  "type": "boolean",
5677
5703
  "default": false,
5678
5704
  "description": "Allow conditional variants of the entity to override this attribute's value.\nOnly meaningful on schemas that declare `conditions`. Unflagged attributes stay\nfixed on the base entity.\n"
@@ -7459,10 +7485,10 @@
7459
7485
  "$ref": "#/components/schemas/Attribute"
7460
7486
  }
7461
7487
  },
7462
- "variant_overridable": {
7488
+ "overridable_attribute": {
7463
7489
  "type": "boolean",
7464
7490
  "default": false,
7465
- "description": "Allow conditional variants of the entity to override the values managed by this\ncapability. Only meaningful on schemas that declare `conditions` and on capabilities\nthat render an attribute group (`EntityAttributes:Group` ui hook), e.g. pricing tiers.\nAttributes carried by the capability opt in individually via their own\n`variant_overridable` flag.\n"
7491
+ "description": "Allow conditional variants of the entity to override the values managed by this\ncapability. Only meaningful on schemas that declare `conditions` and on capabilities\nthat render an attribute group (`EntityAttributes:Group` ui hook), e.g. pricing tiers.\nAttributes carried by the capability opt in individually via their own\n`overridable_attribute` flag.\n"
7466
7492
  },
7467
7493
  "_purpose": {
7468
7494
  "type": "array",
@@ -7577,6 +7603,17 @@
7577
7603
  "description": "Whether this widget is switched on by default for entity types that have the capability. Only meaningful on the `EntityDetailsV2:Widget` hook. Defaults to true when omitted. An admin's explicit choice in the entity builder is stored in the schema's `ui_config.widget_visibility` and wins over this.",
7578
7604
  "example": false
7579
7605
  },
7606
+ "default_width": {
7607
+ "type": "string",
7608
+ "enum": [
7609
+ "one_third_width",
7610
+ "half_width",
7611
+ "two_third_width",
7612
+ "full_width"
7613
+ ],
7614
+ "description": "How wide this widget is by default in the entity-details widget grid. Only meaningful on the `EntityDetailsV2:Widget` and `EntityDetailsV2:Header` hooks. Defaults to `full_width` when omitted — deliberately unlike the attribute layout default of `half_width`, because a full-width widget can never leave a hole in a row. An admin's explicit choice in the entity builder is stored in the schema's `ui_config.widget_widths` and wins over this.",
7615
+ "example": "half_width"
7616
+ },
7580
7617
  "pricing_tier_setting": {
7581
7618
  "type": "string",
7582
7619
  "description": "The pricing-tier settings key an organisation must have enabled to use this widget. Omit for widgets available to everyone. Resolved against `GET /v2/pricing-tiers/me` as `override_settings[key].enabled ?? settings[key].enabled`. Note this is commercial packaging enforced in the UI, not a security control — the key must also be added to the pricing tier settings list in epilot-admin-portal, or it can never be switched on for a tier.",
@@ -8964,6 +9001,39 @@
8964
9001
  "description": "Optional array of field names to include in the hydrated entity response for this node.\nWhen specified, only the requested fields plus required internal fields (_id, _schema, _org) will be returned.\nOnly applies when hydrate=true.\n"
8965
9002
  }
8966
9003
  ]
9004
+ },
9005
+ "filter": {
9006
+ "type": "array",
9007
+ "description": "Narrows this node's traversal results to entities matching every filter (AND semantics). Useful for\ndisambiguating among multiple entities reachable via the same graph edge.\n",
9008
+ "items": {
9009
+ "$ref": "#/components/schemas/GraphNodeFilter"
9010
+ }
9011
+ }
9012
+ }
9013
+ },
9014
+ "GraphNodeFilter": {
9015
+ "type": "object",
9016
+ "description": "Entities are included in this node's result only if `attribute` exactly equals the literal `value`.",
9017
+ "required": [
9018
+ "attribute",
9019
+ "value"
9020
+ ],
9021
+ "properties": {
9022
+ "attribute": {
9023
+ "type": "string",
9024
+ "description": "Entity attribute name to match against. Must be a plain attribute name, not an Elasticsearch field path.",
9025
+ "example": "order_number"
9026
+ },
9027
+ "value": {
9028
+ "allOf": [
9029
+ {
9030
+ "$ref": "#/components/schemas/SearchFilterValue"
9031
+ },
9032
+ {
9033
+ "description": "Literal value the attribute must exactly equal for the entity to be included in this node's result."
9034
+ }
9035
+ ],
9036
+ "example": "OR-113"
8967
9037
  }
8968
9038
  }
8969
9039
  },
@@ -1,8 +1,13 @@
1
+ import type { Attribute } from './openapi';
2
+ /** Every `type` an entity schema attribute can have. */
3
+ export type AttributeType = NonNullable<Attribute['type']>;
1
4
  export declare enum RelationAffinityMode {
2
- /**
3
- * For strong affinity mode on a relation attribute, deleting or creating the parent or the relation linkage will trigger a CASCADE delete or create to the relation entity itself.
4
- * For weak affinity mode on a relation attribute, deleting or creating the parent or the relation linkage will NOT trigger a CASCADE delete or create to the relation entity itself.
5
- */
5
+ /** Deleting or creating the parent or the linkage does NOT cascade to the relation entity. */
6
6
  WEAK = "weak",
7
+ /** Deleting or creating the parent or the linkage cascades to the relation entity. */
7
8
  STRONG = "strong"
8
9
  }
10
+ /** Types that point at another entity. A repeatable relation is still a relation. */
11
+ export declare const RELATION_ATTRIBUTE_TYPE_LIST: readonly ["relation", "relation_user", "relation_address", "relation_payment_method"];
12
+ /** `string`, not `AttributeType`, so callers can test an unnarrowed `attribute.type`. */
13
+ export declare const RELATION_ATTRIBUTE_TYPES: ReadonlySet<string>;
@@ -1,13 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RelationAffinityMode = void 0;
3
+ exports.RELATION_ATTRIBUTE_TYPES = exports.RELATION_ATTRIBUTE_TYPE_LIST = exports.RelationAffinityMode = void 0;
4
4
  var RelationAffinityMode;
5
5
  (function (RelationAffinityMode) {
6
- /**
7
- * For strong affinity mode on a relation attribute, deleting or creating the parent or the relation linkage will trigger a CASCADE delete or create to the relation entity itself.
8
- * For weak affinity mode on a relation attribute, deleting or creating the parent or the relation linkage will NOT trigger a CASCADE delete or create to the relation entity itself.
9
- */
6
+ /** Deleting or creating the parent or the linkage does NOT cascade to the relation entity. */
10
7
  RelationAffinityMode["WEAK"] = "weak";
8
+ /** Deleting or creating the parent or the linkage cascades to the relation entity. */
11
9
  RelationAffinityMode["STRONG"] = "strong";
12
10
  })(RelationAffinityMode = exports.RelationAffinityMode || (exports.RelationAffinityMode = {}));
11
+ /** Types that point at another entity. A repeatable relation is still a relation. */
12
+ exports.RELATION_ATTRIBUTE_TYPE_LIST = [
13
+ 'relation',
14
+ 'relation_user',
15
+ 'relation_address',
16
+ 'relation_payment_method',
17
+ ];
18
+ /** `string`, not `AttributeType`, so callers can test an unnarrowed `attribute.type`. */
19
+ exports.RELATION_ATTRIBUTE_TYPES = new Set(exports.RELATION_ATTRIBUTE_TYPE_LIST);
13
20
  //# sourceMappingURL=schema-model.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/entity-client",
3
- "version": "7.3.2",
3
+ "version": "7.5.0",
4
4
  "description": "JavaScript client library for the epilot Core Entity API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -21,19 +21,6 @@
21
21
  "sdk",
22
22
  "entity"
23
23
  ],
24
- "scripts": {
25
- "test": "vitest",
26
- "typescript": "tsc",
27
- "bundle-definition": "webpack",
28
- "prepublishOnly": "npm run typegen && npm run build",
29
- "openapi": "node ../../scripts/update-openapi.js https://docs.api.epilot.io/entity.yaml",
30
- "typegen": "openapi typegen src/openapi.json --client > src/openapi.d.ts",
31
- "build": "tsc && npm run build:patch && npm run bundle-definition",
32
- "build:patch": "sed -i'' -e '/^__exportStar.*openapi.*$/d' dist/index.js",
33
- "build:watch": "npm run build && tsc -w",
34
- "release-alpha": "npm version prerelease --preid alpha",
35
- "lint": "biome check src"
36
- },
37
24
  "files": [
38
25
  "*.js",
39
26
  "*.d.ts",
@@ -70,5 +57,17 @@
70
57
  "webpack": "^5.18.0",
71
58
  "webpack-cli": "^4.4.0"
72
59
  },
73
- "gitHead": "39426e86cfb320fa3227dc03f60ee6a10848e7c7"
74
- }
60
+ "gitHead": "39426e86cfb320fa3227dc03f60ee6a10848e7c7",
61
+ "scripts": {
62
+ "test": "vitest",
63
+ "typescript": "tsc",
64
+ "bundle-definition": "webpack",
65
+ "openapi": "node ../../scripts/update-openapi.js https://docs.api.epilot.io/entity.yaml",
66
+ "typegen": "openapi typegen src/openapi.json --client > src/openapi.d.ts",
67
+ "build": "tsc && npm run build:patch && npm run bundle-definition",
68
+ "build:patch": "sed -i'' -e '/^__exportStar.*openapi.*$/d' dist/index.js",
69
+ "build:watch": "npm run build && tsc -w",
70
+ "release-alpha": "npm version prerelease --preid alpha",
71
+ "lint": "biome check src"
72
+ }
73
+ }