@epilot/entity-client 6.13.0 → 7.0.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/client.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { Client } from './openapi';
1
+ import type { Client } from './openapi';
2
2
  export declare const getClient: () => Client;
3
3
  export declare const createClient: () => Client;
@@ -1 +1 @@
1
- (()=>{"use strict";var e={330:function(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"}],"responses":{}}},"/v1/entity/schemas/{slug}":{"get":{"operationId":"getSchema","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"in":"query","name":"id"}],"responses":{}},"put":{"operationId":"putSchema","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"in":"query","name":"draft"}],"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}/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"},{"in":"query","name":"fields","style":"form","explode":false}],"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"}],"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"}],"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"}],"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":[{"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/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}/activity":{"get":{"operationId":"getEntityActivityFeed","parameters":[{"$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/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"},{"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/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/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":"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"}],"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":{"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"}},"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}(330),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"},{"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"},{"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"}],"responses":{}},"put":{"operationId":"putSchema","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"in":"query","name":"draft"}],"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}/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"},{"in":"query","name":"fields","style":"form","explode":false}],"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"}],"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"}],"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"}],"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":[{"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/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}/activity":{"get":{"operationId":"getEntityActivityFeed","parameters":[{"$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/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"},{"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/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/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":"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"}],"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":{"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"}},"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})})();
@@ -12,6 +12,46 @@
12
12
  {
13
13
  "in": "query",
14
14
  "name": "unpublished"
15
+ },
16
+ {
17
+ "in": "query",
18
+ "name": "exclude",
19
+ "style": "form",
20
+ "explode": false
21
+ },
22
+ {
23
+ "in": "query",
24
+ "name": "include",
25
+ "style": "form",
26
+ "explode": false
27
+ }
28
+ ],
29
+ "responses": {}
30
+ }
31
+ },
32
+ "/v2/entity/schemas": {
33
+ "get": {
34
+ "operationId": "listSchemasV2",
35
+ "parameters": [
36
+ {
37
+ "in": "query",
38
+ "name": "full"
39
+ },
40
+ {
41
+ "in": "query",
42
+ "name": "unpublished"
43
+ },
44
+ {
45
+ "in": "query",
46
+ "name": "exclude",
47
+ "style": "form",
48
+ "explode": false
49
+ },
50
+ {
51
+ "in": "query",
52
+ "name": "include",
53
+ "style": "form",
54
+ "explode": false
15
55
  }
16
56
  ],
17
57
  "responses": {}
package/dist/openapi.d.ts CHANGED
@@ -1,5 +1,3 @@
1
- /* eslint-disable */
2
-
3
1
  import type {
4
2
  OpenAPIClient,
5
3
  Parameters,
@@ -710,7 +708,7 @@ declare namespace Components {
710
708
  */
711
709
  DefaultAddressFields;
712
710
  }
713
- export type Attribute = /* Textarea or text input */ TextAttribute | /* Link with title and href */ LinkAttribute | /* Date or Datetime picker */ DateAttribute | /* Country picker */ CountryAttribute | /* Yes / No Toggle */ BooleanAttribute | /* Dropdown select */ SelectAttribute | /* Multi Choice Selection */ MultiSelectAttribute | /* Status select */ StatusAttribute | /* Sequence of unique identifiers */ SequenceAttribute | /* Entity Relationship */ RelationAttribute | /* User Relationship */ UserRelationAttribute | /* Address attribute */ AddressAttribute | /* Reference to an address attribute of another entity */ AddressRelationAttribute | /* Reference to a payment method attribute of another entity */ PaymentMethodRelationAttribute | /* Currency input */ CurrencyAttribute | /* Tags */ TagsAttribute | /* Message emil address */ MessageEmailAddressAttribute | /* Numeric input */ NumberAttribute | /* Consent Management */ ConsentAttribute | /* No UI representation */ InternalAttribute | /* Type of attribute to render N number of ordered fields */ OrderedListAttribute | /* File or Image Attachment */ FileAttribute | /* An attribute that is computed from the entity data. For more details on how to use them, check the docs [here](https://e-pilot.atlassian.net/wiki/spaces/EO/pages/5642977476/How+To+Computed+Schema+Attributes) */ ComputedAttribute | /* Partner Status */ PartnerStatusAttribute | /* Email address for send invitation */ InvitationEmailAttribute | /* Automation entity */ AutomationAttribute | /* Epilot internal user info */ InternalUserAttribute | /* Entity Taxonomy */ PurposeAttribute | /* Shared Partner Organisations */ PartnerOrganisationAttribute | /* Portal access configuration */ PortalAccessAttribute | /* Phone number */ PhoneAttribute | /* Email address */ EmailAttribute | /* Payment method */ PaymentAttribute | /* Price component */ PriceComponentAttribute;
711
+ export type Attribute = /* Textarea or text input */ TextAttribute | /* Link with title and href */ LinkAttribute | /* Date or Datetime picker */ DateAttribute | /* Country picker */ CountryAttribute | /* Yes / No Toggle */ BooleanAttribute | /* Dropdown select */ SelectAttribute | /* Multi Choice Selection */ MultiSelectAttribute | /* Status select */ StatusAttribute | /* Sequence of unique identifiers */ SequenceAttribute | /* Entity Relationship */ RelationAttribute | /* User Relationship */ UserRelationAttribute | /* Address attribute */ AddressAttribute | /* Reference to an address attribute of another entity */ AddressRelationAttribute | /* Reference to a payment method attribute of another entity */ PaymentMethodRelationAttribute | /* Currency input */ CurrencyAttribute | /* Tags */ TagsAttribute | /* Message emil address */ MessageEmailAddressAttribute | /* Numeric input */ NumberAttribute | /* Dynamic data table with configurable columns. Data is stored as an array of objects where each object represents a row. */ TableAttribute | /* Consent Management */ ConsentAttribute | /* No UI representation */ InternalAttribute | /* Type of attribute to render N number of ordered fields */ OrderedListAttribute | /* File or Image Attachment */ FileAttribute | /* An attribute that is computed from the entity data. For more details on how to use them, check the docs [here](https://e-pilot.atlassian.net/wiki/spaces/EO/pages/5642977476/How+To+Computed+Schema+Attributes) */ ComputedAttribute | /* Partner Status */ PartnerStatusAttribute | /* Email address for send invitation */ InvitationEmailAttribute | /* Automation entity */ AutomationAttribute | /* Epilot internal user info */ InternalUserAttribute | /* Entity Taxonomy */ PurposeAttribute | /* Shared Partner Organisations */ PartnerOrganisationAttribute | /* Portal access configuration */ PortalAccessAttribute | /* Phone number */ PhoneAttribute | /* Email address */ EmailAttribute | /* Payment method */ PaymentAttribute | /* Price component */ PriceComponentAttribute;
714
712
  /**
715
713
  * a readonly computed ID for the attribute including schema slug and the attribute ID
716
714
  */
@@ -726,7 +724,7 @@ declare namespace Components {
726
724
  * contact
727
725
  */
728
726
  schema?: string;
729
- } & (/* a readonly computed ID for the attribute including schema slug and the attribute ID */ /* Textarea or text input */ TextAttribute | /* Link with title and href */ LinkAttribute | /* Date or Datetime picker */ DateAttribute | /* Country picker */ CountryAttribute | /* Yes / No Toggle */ BooleanAttribute | /* Dropdown select */ SelectAttribute | /* Multi Choice Selection */ MultiSelectAttribute | /* Status select */ StatusAttribute | /* Sequence of unique identifiers */ SequenceAttribute | /* Entity Relationship */ RelationAttribute | /* User Relationship */ UserRelationAttribute | /* Address attribute */ AddressAttribute | /* Reference to an address attribute of another entity */ AddressRelationAttribute | /* Reference to a payment method attribute of another entity */ PaymentMethodRelationAttribute | /* Currency input */ CurrencyAttribute | /* Tags */ TagsAttribute | /* Message emil address */ MessageEmailAddressAttribute | /* Numeric input */ NumberAttribute | /* Consent Management */ ConsentAttribute | /* No UI representation */ InternalAttribute | /* Type of attribute to render N number of ordered fields */ OrderedListAttribute | /* File or Image Attachment */ FileAttribute | /* An attribute that is computed from the entity data. For more details on how to use them, check the docs [here](https://e-pilot.atlassian.net/wiki/spaces/EO/pages/5642977476/How+To+Computed+Schema+Attributes) */ ComputedAttribute | /* Partner Status */ PartnerStatusAttribute | /* Email address for send invitation */ InvitationEmailAttribute | /* Automation entity */ AutomationAttribute | /* Epilot internal user info */ InternalUserAttribute | /* Entity Taxonomy */ PurposeAttribute | /* Shared Partner Organisations */ PartnerOrganisationAttribute | /* Portal access configuration */ PortalAccessAttribute | /* Phone number */ PhoneAttribute | /* Email address */ EmailAttribute | /* Payment method */ PaymentAttribute | /* Price component */ PriceComponentAttribute);
727
+ } & (/* a readonly computed ID for the attribute including schema slug and the attribute ID */ /* Textarea or text input */ TextAttribute | /* Link with title and href */ LinkAttribute | /* Date or Datetime picker */ DateAttribute | /* Country picker */ CountryAttribute | /* Yes / No Toggle */ BooleanAttribute | /* Dropdown select */ SelectAttribute | /* Multi Choice Selection */ MultiSelectAttribute | /* Status select */ StatusAttribute | /* Sequence of unique identifiers */ SequenceAttribute | /* Entity Relationship */ RelationAttribute | /* User Relationship */ UserRelationAttribute | /* Address attribute */ AddressAttribute | /* Reference to an address attribute of another entity */ AddressRelationAttribute | /* Reference to a payment method attribute of another entity */ PaymentMethodRelationAttribute | /* Currency input */ CurrencyAttribute | /* Tags */ TagsAttribute | /* Message emil address */ MessageEmailAddressAttribute | /* Numeric input */ NumberAttribute | /* Dynamic data table with configurable columns. Data is stored as an array of objects where each object represents a row. */ TableAttribute | /* Consent Management */ ConsentAttribute | /* No UI representation */ InternalAttribute | /* Type of attribute to render N number of ordered fields */ OrderedListAttribute | /* File or Image Attachment */ FileAttribute | /* An attribute that is computed from the entity data. For more details on how to use them, check the docs [here](https://e-pilot.atlassian.net/wiki/spaces/EO/pages/5642977476/How+To+Computed+Schema+Attributes) */ ComputedAttribute | /* Partner Status */ PartnerStatusAttribute | /* Email address for send invitation */ InvitationEmailAttribute | /* Automation entity */ AutomationAttribute | /* Epilot internal user info */ InternalUserAttribute | /* Entity Taxonomy */ PurposeAttribute | /* Shared Partner Organisations */ PartnerOrganisationAttribute | /* Portal access configuration */ PortalAccessAttribute | /* Phone number */ PhoneAttribute | /* Email address */ EmailAttribute | /* Payment method */ PaymentAttribute | /* Price component */ PriceComponentAttribute);
730
728
  /**
731
729
  * Automation entity
732
730
  */
@@ -2613,6 +2611,18 @@ declare namespace Components {
2613
2611
  * This capability should only be active when all the settings have the correct value
2614
2612
  */
2615
2613
  settings_flag?: SettingFlag[];
2614
+ /**
2615
+ * Schema-specific configuration for the capability
2616
+ */
2617
+ schemas?: {
2618
+ [name: string]: any;
2619
+ /**
2620
+ * Entity schema slug
2621
+ * example:
2622
+ * contact
2623
+ */
2624
+ schema: string;
2625
+ }[];
2616
2626
  }
2617
2627
  /**
2618
2628
  * a readonly computed ID for the entity capability including schema slug and the capability ID
@@ -2746,6 +2756,18 @@ declare namespace Components {
2746
2756
  * This capability should only be active when all the settings have the correct value
2747
2757
  */
2748
2758
  settings_flag?: SettingFlag[];
2759
+ /**
2760
+ * Schema-specific configuration for the capability
2761
+ */
2762
+ schemas?: {
2763
+ [name: string]: any;
2764
+ /**
2765
+ * Entity schema slug
2766
+ * example:
2767
+ * contact
2768
+ */
2769
+ schema: string;
2770
+ }[];
2749
2771
  /**
2750
2772
  * example:
2751
2773
  * contact:97644baa-083f-4e49-9188-fcff2ecaad7d
@@ -3443,6 +3465,22 @@ declare namespace Components {
3443
3465
  _manifest?: string /* uuid */[] | null;
3444
3466
  };
3445
3467
  };
3468
+ /**
3469
+ * Internal property for workflow origin tracking and infinite loop prevention.
3470
+ * Populated when an entity update originates from a workflow execution.
3471
+ * This allows downstream automation services to prevent circular triggering.
3472
+ *
3473
+ */
3474
+ _workflow_origin?: {
3475
+ /**
3476
+ * The ID of the workflow execution that triggered this entity update
3477
+ */
3478
+ workflow_exec_id?: string;
3479
+ /**
3480
+ * The flow template ID - used to detect and prevent circular triggering
3481
+ */
3482
+ flow_template_id?: string;
3483
+ };
3446
3484
  }
3447
3485
  /**
3448
3486
  * The user / organization owning this entity.
@@ -3846,6 +3884,10 @@ declare namespace Components {
3846
3884
  id?: string;
3847
3885
  type?: string;
3848
3886
  };
3887
+ /**
3888
+ * Indicates this is a truncated summary schema (attributes trimmed to summary_attributes only, no capabilities or group_settings)
3889
+ */
3890
+ _summary?: boolean;
3849
3891
  slug: /**
3850
3892
  * URL-friendly identifier for the entity schema
3851
3893
  * example:
@@ -4946,8 +4988,8 @@ declare namespace Components {
4946
4988
  };
4947
4989
  /**
4948
4990
  * Map of node IDs to entity objects or arrays of entity objects (present when hydrate=true).
4949
- * The seed node always returns a single Entity object.
4950
- * Other nodes return a single Entity object if they contain exactly one entity, or an array of Entity objects if they contain multiple entities.
4991
+ * The seed node and nodes with cardinality="one" return a single Entity object, or null if no entity was found.
4992
+ * Nodes with cardinality="many" return an array of Entity objects.
4951
4993
  *
4952
4994
  * example:
4953
4995
  * {
@@ -5007,7 +5049,7 @@ declare namespace Components {
5007
5049
  * ]
5008
5050
  * }
5009
5051
  */
5010
- Entity | /**
5052
+ NullableEntity | /**
5011
5053
  * example:
5012
5054
  * {
5013
5055
  * "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
@@ -6308,6 +6350,88 @@ declare namespace Components {
6308
6350
  */
6309
6351
  allow_any?: boolean;
6310
6352
  }
6353
+ /**
6354
+ * example:
6355
+ * {
6356
+ * "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
6357
+ * "_org": "123",
6358
+ * "_owners": [
6359
+ * {
6360
+ * "org_id": "123",
6361
+ * "user_id": "123"
6362
+ * }
6363
+ * ],
6364
+ * "_schema": "contact",
6365
+ * "_tags": [
6366
+ * "example",
6367
+ * "mock"
6368
+ * ],
6369
+ * "_created_at": "2021-02-09T12:41:43.662Z",
6370
+ * "_updated_at": "2021-02-09T12:41:43.662Z",
6371
+ * "_acl": {
6372
+ * "view": [
6373
+ * "org:456",
6374
+ * "org:789"
6375
+ * ],
6376
+ * "edit": [
6377
+ * "org:456"
6378
+ * ],
6379
+ * "delete": [
6380
+ * "org:456"
6381
+ * ]
6382
+ * },
6383
+ * "_manifest": [
6384
+ * "123e4567-e89b-12d3-a456-426614174000"
6385
+ * ]
6386
+ * }
6387
+ */
6388
+ export type NullableEntity = {
6389
+ [name: string]: any;
6390
+ _id?: string; // uuid
6391
+ /**
6392
+ * Organization Id the entity belongs to
6393
+ */
6394
+ _org?: string;
6395
+ _owners?: /**
6396
+ * The user / organization owning this entity.
6397
+ *
6398
+ * Note: Owner implicitly has access to the entity regardless of ACLs.
6399
+ *
6400
+ */
6401
+ EntityOwner[];
6402
+ _schema?: /**
6403
+ * URL-friendly identifier for the entity schema
6404
+ * example:
6405
+ * contact
6406
+ */
6407
+ EntitySlug /* ^[a-zA-Z0-9_-]+$ */;
6408
+ /**
6409
+ * Title of entity
6410
+ */
6411
+ _title?: string | null;
6412
+ _tags?: string[] | null;
6413
+ _created_at?: string | null; // date-time
6414
+ _updated_at?: string | null; // date-time
6415
+ _deleted_at?: string | null; // date-time
6416
+ /**
6417
+ * Access control list (ACL) for an entity. Defines sharing access to external orgs or users.
6418
+ */
6419
+ _acl?: {
6420
+ [name: string]: any;
6421
+ view?: string[];
6422
+ edit?: string[];
6423
+ delete?: string[];
6424
+ };
6425
+ _purpose?: string[] | null;
6426
+ /**
6427
+ * Automatically computed purpose names from _purpose attribute
6428
+ */
6429
+ _purpose_name?: string[] | null;
6430
+ /**
6431
+ * Manifest ID used to create/update the entity
6432
+ */
6433
+ _manifest?: string /* uuid */[] | null;
6434
+ } | null;
6311
6435
  /**
6312
6436
  * Numeric input
6313
6437
  */
@@ -9392,6 +9516,194 @@ declare namespace Components {
9392
9516
  */
9393
9517
  display_as?: string;
9394
9518
  }
9519
+ /**
9520
+ * Dynamic data table with configurable columns. Data is stored as an array of objects where each object represents a row.
9521
+ */
9522
+ export interface TableAttribute {
9523
+ /**
9524
+ * ID for the entity attribute
9525
+ * example:
9526
+ * d5839b94-ba20-4225-a78e-76951d352bd6
9527
+ */
9528
+ id?: string;
9529
+ name: string;
9530
+ label: string;
9531
+ placeholder?: string;
9532
+ /**
9533
+ * Do not render attribute in entity views
9534
+ */
9535
+ hidden?: boolean;
9536
+ /**
9537
+ * Render as a column in table views. When defined, overrides `hidden`
9538
+ */
9539
+ show_in_table?: boolean;
9540
+ /**
9541
+ * Allow sorting by this attribute in table views if `show_in_table` is true
9542
+ */
9543
+ sortable?: boolean;
9544
+ required?: boolean;
9545
+ readonly?: boolean;
9546
+ deprecated?: boolean;
9547
+ default_value?: any;
9548
+ /**
9549
+ * Which group the attribute should appear in. Accepts group ID or group name
9550
+ */
9551
+ group?: string;
9552
+ /**
9553
+ * Attribute sort order (ascending) in group
9554
+ * example:
9555
+ * 0
9556
+ */
9557
+ order?: number;
9558
+ /**
9559
+ * example:
9560
+ * full_width
9561
+ */
9562
+ layout?: string;
9563
+ /**
9564
+ * When set to true, will hide the label of the field.
9565
+ */
9566
+ hide_label?: boolean;
9567
+ /**
9568
+ * Code name of the icon to used to represent this attribute.
9569
+ * The value must be a valid @epilot/base-elements Icon name
9570
+ *
9571
+ */
9572
+ icon?: string;
9573
+ /**
9574
+ * Defines the conditional rendering expression for showing this field.
9575
+ * When a valid expression is parsed, their evaluation defines the visibility of this attribute.
9576
+ * Note: Empty or invalid expression have no effect on the field visibility.
9577
+ *
9578
+ */
9579
+ render_condition?: string;
9580
+ _purpose?: /**
9581
+ * example:
9582
+ * taxonomy-slug:classification-slug
9583
+ */
9584
+ ClassificationId[];
9585
+ /**
9586
+ * Manifest ID used to create/update the schema attribute
9587
+ */
9588
+ _manifest?: string /* uuid */[] | null;
9589
+ /**
9590
+ * A set of constraints applicable to the attribute.
9591
+ * These constraints should and will be enforced by the attribute renderer.
9592
+ *
9593
+ * example:
9594
+ * {
9595
+ * "disablePast": true
9596
+ * }
9597
+ */
9598
+ constraints?: {
9599
+ [key: string]: any;
9600
+ };
9601
+ /**
9602
+ * This attribute should only be active when the feature flag is enabled
9603
+ * example:
9604
+ * FF_MY_FEATURE_FLAG
9605
+ */
9606
+ feature_flag?: string;
9607
+ /**
9608
+ * This attribute should only be active when one of the provided settings have the correct value
9609
+ */
9610
+ settings_flag?: SettingFlag[];
9611
+ value_formatter?: string;
9612
+ preview_value_formatter?: string;
9613
+ /**
9614
+ * Setting to `true` disables editing the attribute on the entity builder UI
9615
+ */
9616
+ entity_builder_disable_edit?: boolean;
9617
+ /**
9618
+ * Setting to `true` prevents the attribute from being modified / deleted
9619
+ */
9620
+ protected?: boolean;
9621
+ /**
9622
+ * A set of configurations meant to document and assist the user in filling the attribute.
9623
+ */
9624
+ info_helpers?: {
9625
+ /**
9626
+ * The text to be displayed in the attribute hint helper.
9627
+ * When specified it overrides the `hint_text_key` configuration.
9628
+ *
9629
+ */
9630
+ hint_text?: string;
9631
+ /**
9632
+ * The key of the hint text to be displayed in the attribute hint helper.
9633
+ * The key should be a valid i18n key.
9634
+ *
9635
+ */
9636
+ hint_text_key?: string;
9637
+ /**
9638
+ * The name of the custom component to be used as the hint helper.
9639
+ * The component should be registered in the `@epilot360/entity-ui` on the index of the components directory.
9640
+ * When specified it overrides the `hint_text` or `hint_text_key` configuration.
9641
+ *
9642
+ */
9643
+ hint_custom_component?: string;
9644
+ /**
9645
+ * The placement of the hint tooltip.
9646
+ * The value should be a valid `@mui/core` tooltip placement.
9647
+ *
9648
+ * example:
9649
+ * top
9650
+ */
9651
+ hint_tooltip_placement?: string;
9652
+ };
9653
+ /**
9654
+ * When set to true, this attribute will always be searchable regardless of
9655
+ * the ELASTIC_MAX_SEARCH_FIELDS limit. Use this for critical search fields
9656
+ * that must always be included in search operations.
9657
+ *
9658
+ */
9659
+ explicit_searchable?: boolean;
9660
+ /**
9661
+ * When set to true, this attribute will be excluded from search fields.
9662
+ * Use this for fields that should not be matched during entity search operations,
9663
+ * such as internal hashes or identifiers that might accidentally match search terms.
9664
+ *
9665
+ */
9666
+ exclude_from_search?: boolean;
9667
+ /**
9668
+ * The attribute is a repeatable
9669
+ */
9670
+ repeatable?: boolean;
9671
+ has_primary?: boolean;
9672
+ type: "table";
9673
+ /**
9674
+ * Column definitions for the table
9675
+ */
9676
+ columns?: {
9677
+ /**
9678
+ * The column identifier (used as object key in row data)
9679
+ */
9680
+ name: string;
9681
+ /**
9682
+ * Display label for the column header
9683
+ */
9684
+ label: string;
9685
+ /**
9686
+ * The data type for cells in this column
9687
+ */
9688
+ type?: "string" | "number" | "date" | "boolean";
9689
+ /**
9690
+ * Optional column width (e.g., "100px", "20%")
9691
+ */
9692
+ width?: string;
9693
+ /**
9694
+ * Whether this column is required for each row
9695
+ */
9696
+ required?: boolean;
9697
+ }[];
9698
+ /**
9699
+ * Minimum number of rows required
9700
+ */
9701
+ min_rows?: number;
9702
+ /**
9703
+ * Maximum number of rows allowed
9704
+ */
9705
+ max_rows?: number;
9706
+ }
9395
9707
  /**
9396
9708
  * Tags
9397
9709
  */
@@ -12089,7 +12401,7 @@ declare namespace Paths {
12089
12401
  /**
12090
12402
  * ISO 8601 timestamp to filter jobs created after this time (e.g., 2023-01-01T00:00:00Z).
12091
12403
  * example:
12092
- * 2023-01-01T00:00:00.000Z
12404
+ * 2023-01-01T00:00:00Z
12093
12405
  */
12094
12406
  export type CreatedAfter = string; // date-time
12095
12407
  /**
@@ -12115,7 +12427,7 @@ declare namespace Paths {
12115
12427
  created_after?: /**
12116
12428
  * ISO 8601 timestamp to filter jobs created after this time (e.g., 2023-01-01T00:00:00Z).
12117
12429
  * example:
12118
- * 2023-01-01T00:00:00.000Z
12430
+ * 2023-01-01T00:00:00Z
12119
12431
  */
12120
12432
  Parameters.CreatedAfter /* date-time */;
12121
12433
  sort_pending_first?: /* When true, sorts PENDING status jobs to the top of the results. */ Parameters.SortPendingFirst;
@@ -12274,10 +12586,33 @@ declare namespace Paths {
12274
12586
  }
12275
12587
  namespace ListSchemas {
12276
12588
  namespace Parameters {
12589
+ export type Exclude = string[];
12590
+ export type Include = string[];
12591
+ export type Unpublished = boolean;
12592
+ }
12593
+ export interface QueryParameters {
12594
+ unpublished?: Parameters.Unpublished;
12595
+ exclude?: Parameters.Exclude;
12596
+ include?: Parameters.Include;
12597
+ }
12598
+ namespace Responses {
12599
+ export interface $200 {
12600
+ results?: /* The "type" of an Entity. Describes the shape. Includes Entity Attributes, Relations and Capabilities. */ Components.Schemas.EntitySchemaItem[];
12601
+ }
12602
+ }
12603
+ }
12604
+ namespace ListSchemasV2 {
12605
+ namespace Parameters {
12606
+ export type Exclude = string[];
12607
+ export type Full = boolean;
12608
+ export type Include = string[];
12277
12609
  export type Unpublished = boolean;
12278
12610
  }
12279
12611
  export interface QueryParameters {
12612
+ full?: Parameters.Full;
12280
12613
  unpublished?: Parameters.Unpublished;
12614
+ exclude?: Parameters.Exclude;
12615
+ include?: Parameters.Include;
12281
12616
  }
12282
12617
  namespace Responses {
12283
12618
  export interface $200 {
@@ -12921,9 +13256,11 @@ declare namespace Paths {
12921
13256
  export interface $200 {
12922
13257
  created?: Components.Schemas.TaxonomyClassification[];
12923
13258
  updated?: Components.Schemas.TaxonomyClassification[];
12924
- deleted?: {
12925
- [key: string]: any;
12926
- };
13259
+ deleted?: /**
13260
+ * example:
13261
+ * taxonomy-slug:classification-slug
13262
+ */
13263
+ Components.Schemas.ClassificationId[];
12927
13264
  }
12928
13265
  export type $404 = /**
12929
13266
  * A generic error returned by the API
@@ -13493,6 +13830,19 @@ export interface OperationMethods {
13493
13830
  data?: any,
13494
13831
  config?: AxiosRequestConfig
13495
13832
  ): OperationResponse<Paths.ListSchemas.Responses.$200>
13833
+ /**
13834
+ * listSchemasV2 - listSchemasV2
13835
+ *
13836
+ * Get the latest versions of all schemas.
13837
+ * Returns summary schemas by default (only summary attributes, no capabilities).
13838
+ * Use ?full=true for complete schemas.
13839
+ *
13840
+ */
13841
+ 'listSchemasV2'(
13842
+ parameters?: Parameters<Paths.ListSchemasV2.QueryParameters> | null,
13843
+ data?: any,
13844
+ config?: AxiosRequestConfig
13845
+ ): OperationResponse<Paths.ListSchemasV2.Responses.$200>
13496
13846
  /**
13497
13847
  * getSchema - getSchema
13498
13848
  *
@@ -14596,6 +14946,21 @@ export interface PathsDictionary {
14596
14946
  config?: AxiosRequestConfig
14597
14947
  ): OperationResponse<Paths.ListSchemas.Responses.$200>
14598
14948
  }
14949
+ ['/v2/entity/schemas']: {
14950
+ /**
14951
+ * listSchemasV2 - listSchemasV2
14952
+ *
14953
+ * Get the latest versions of all schemas.
14954
+ * Returns summary schemas by default (only summary attributes, no capabilities).
14955
+ * Use ?full=true for complete schemas.
14956
+ *
14957
+ */
14958
+ 'get'(
14959
+ parameters?: Parameters<Paths.ListSchemasV2.QueryParameters> | null,
14960
+ data?: any,
14961
+ config?: AxiosRequestConfig
14962
+ ): OperationResponse<Paths.ListSchemasV2.Responses.$200>
14963
+ }
14599
14964
  ['/v1/entity/schemas/{slug}']: {
14600
14965
  /**
14601
14966
  * getSchema - getSchema
@@ -15890,6 +16255,7 @@ export type LinkAttribute = Components.Schemas.LinkAttribute;
15890
16255
  export type ListSavedViewsResults = Components.Schemas.ListSavedViewsResults;
15891
16256
  export type MessageEmailAddressAttribute = Components.Schemas.MessageEmailAddressAttribute;
15892
16257
  export type MultiSelectAttribute = Components.Schemas.MultiSelectAttribute;
16258
+ export type NullableEntity = Components.Schemas.NullableEntity;
15893
16259
  export type NumberAttribute = Components.Schemas.NumberAttribute;
15894
16260
  export type OrderedListAttribute = Components.Schemas.OrderedListAttribute;
15895
16261
  export type PartnerOrganisationAttribute = Components.Schemas.PartnerOrganisationAttribute;
@@ -15919,6 +16285,7 @@ export type SettingFlag = Components.Schemas.SettingFlag;
15919
16285
  export type StatusAttribute = Components.Schemas.StatusAttribute;
15920
16286
  export type SummaryAttribute = Components.Schemas.SummaryAttribute;
15921
16287
  export type SummaryField = Components.Schemas.SummaryField;
16288
+ export type TableAttribute = Components.Schemas.TableAttribute;
15922
16289
  export type TagsAttribute = Components.Schemas.TagsAttribute;
15923
16290
  export type Taxonomy = Components.Schemas.Taxonomy;
15924
16291
  export type TaxonomyBulkJob = Components.Schemas.TaxonomyBulkJob;
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.7.0",
5
+ "version": "2.8.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": [
@@ -70,6 +70,108 @@
70
70
  "type": "boolean",
71
71
  "default": false
72
72
  }
73
+ },
74
+ {
75
+ "in": "query",
76
+ "name": "exclude",
77
+ "description": "List of schema slugs to exclude from the results. Accepts a comma-separated list of slugs to exclude from the results.",
78
+ "schema": {
79
+ "type": "array",
80
+ "items": {
81
+ "type": "string"
82
+ }
83
+ },
84
+ "style": "form",
85
+ "explode": false
86
+ },
87
+ {
88
+ "in": "query",
89
+ "name": "include",
90
+ "description": "List of schema slugs to include in the results. When provided, only these schemas are returned. Accepts a comma-separated list of slugs.",
91
+ "schema": {
92
+ "type": "array",
93
+ "items": {
94
+ "type": "string"
95
+ }
96
+ },
97
+ "style": "form",
98
+ "explode": false
99
+ }
100
+ ],
101
+ "tags": [
102
+ "Schemas"
103
+ ],
104
+ "responses": {
105
+ "200": {
106
+ "description": "Success",
107
+ "content": {
108
+ "application/json": {
109
+ "schema": {
110
+ "type": "object",
111
+ "properties": {
112
+ "results": {
113
+ "type": "array",
114
+ "items": {
115
+ "$ref": "#/components/schemas/EntitySchemaItem"
116
+ }
117
+ }
118
+ }
119
+ }
120
+ }
121
+ }
122
+ }
123
+ }
124
+ }
125
+ },
126
+ "/v2/entity/schemas": {
127
+ "get": {
128
+ "operationId": "listSchemasV2",
129
+ "summary": "listSchemasV2",
130
+ "description": "Get the latest versions of all schemas.\nReturns summary schemas by default (only summary attributes, no capabilities).\nUse ?full=true for complete schemas.\n",
131
+ "parameters": [
132
+ {
133
+ "in": "query",
134
+ "name": "full",
135
+ "description": "Return full schemas including all attributes and capabilities",
136
+ "schema": {
137
+ "type": "boolean",
138
+ "default": false
139
+ }
140
+ },
141
+ {
142
+ "in": "query",
143
+ "name": "unpublished",
144
+ "description": "Return unpublished draft schemas",
145
+ "schema": {
146
+ "type": "boolean",
147
+ "default": false
148
+ }
149
+ },
150
+ {
151
+ "in": "query",
152
+ "name": "exclude",
153
+ "description": "List of schema slugs to exclude from the results. Accepts a comma-separated list of slugs to exclude from the results.",
154
+ "schema": {
155
+ "type": "array",
156
+ "items": {
157
+ "type": "string"
158
+ }
159
+ },
160
+ "style": "form",
161
+ "explode": false
162
+ },
163
+ {
164
+ "in": "query",
165
+ "name": "include",
166
+ "description": "List of schema slugs to include in the results. When provided, only these schemas are returned. Accepts a comma-separated list of slugs.",
167
+ "schema": {
168
+ "type": "array",
169
+ "items": {
170
+ "type": "string"
171
+ }
172
+ },
173
+ "style": "form",
174
+ "explode": false
73
175
  }
74
176
  ],
75
177
  "tags": [
@@ -3061,7 +3163,7 @@
3061
3163
  }
3062
3164
  },
3063
3165
  "deleted": {
3064
- "type": "object",
3166
+ "type": "array",
3065
3167
  "items": {
3066
3168
  "$ref": "#/components/schemas/ClassificationId"
3067
3169
  }
@@ -3455,7 +3557,7 @@
3455
3557
  "description": "ISO 8601 timestamp to filter jobs created after this time (e.g., 2023-01-01T00:00:00Z).",
3456
3558
  "type": "string",
3457
3559
  "format": "date-time",
3458
- "example": "2023-01-01T00:00:00.000Z"
3560
+ "example": "2023-01-01T00:00:00Z"
3459
3561
  }
3460
3562
  },
3461
3563
  {
@@ -4730,6 +4832,10 @@
4730
4832
  "type": "string"
4731
4833
  }
4732
4834
  }
4835
+ },
4836
+ "_summary": {
4837
+ "description": "Indicates this is a truncated summary schema (attributes trimmed to summary_attributes only, no capabilities or group_settings)",
4838
+ "type": "boolean"
4733
4839
  }
4734
4840
  }
4735
4841
  },
@@ -4991,6 +5097,9 @@
4991
5097
  {
4992
5098
  "$ref": "#/components/schemas/NumberAttribute"
4993
5099
  },
5100
+ {
5101
+ "$ref": "#/components/schemas/TableAttribute"
5102
+ },
4994
5103
  {
4995
5104
  "$ref": "#/components/schemas/ConsentAttribute"
4996
5105
  },
@@ -6231,6 +6340,77 @@
6231
6340
  }
6232
6341
  ]
6233
6342
  },
6343
+ "TableAttribute": {
6344
+ "allOf": [
6345
+ {
6346
+ "$ref": "#/components/schemas/BaseAttribute"
6347
+ },
6348
+ {
6349
+ "type": "object",
6350
+ "description": "Dynamic data table with configurable columns. Data is stored as an array of objects where each object represents a row.",
6351
+ "properties": {
6352
+ "type": {
6353
+ "type": "string",
6354
+ "enum": [
6355
+ "table"
6356
+ ]
6357
+ },
6358
+ "columns": {
6359
+ "type": "array",
6360
+ "description": "Column definitions for the table",
6361
+ "items": {
6362
+ "type": "object",
6363
+ "properties": {
6364
+ "name": {
6365
+ "type": "string",
6366
+ "description": "The column identifier (used as object key in row data)"
6367
+ },
6368
+ "label": {
6369
+ "type": "string",
6370
+ "description": "Display label for the column header"
6371
+ },
6372
+ "type": {
6373
+ "type": "string",
6374
+ "description": "The data type for cells in this column",
6375
+ "enum": [
6376
+ "string",
6377
+ "number",
6378
+ "date",
6379
+ "boolean"
6380
+ ],
6381
+ "default": "string"
6382
+ },
6383
+ "width": {
6384
+ "type": "string",
6385
+ "description": "Optional column width (e.g., \"100px\", \"20%\")"
6386
+ },
6387
+ "required": {
6388
+ "type": "boolean",
6389
+ "description": "Whether this column is required for each row",
6390
+ "default": false
6391
+ }
6392
+ },
6393
+ "required": [
6394
+ "name",
6395
+ "label"
6396
+ ]
6397
+ }
6398
+ },
6399
+ "min_rows": {
6400
+ "type": "integer",
6401
+ "description": "Minimum number of rows required",
6402
+ "minimum": 0,
6403
+ "default": 0
6404
+ },
6405
+ "max_rows": {
6406
+ "type": "integer",
6407
+ "description": "Maximum number of rows allowed",
6408
+ "minimum": 1
6409
+ }
6410
+ }
6411
+ }
6412
+ ]
6413
+ },
6234
6414
  "ConsentAttribute": {
6235
6415
  "allOf": [
6236
6416
  {
@@ -6733,6 +6913,24 @@
6733
6913
  "items": {
6734
6914
  "$ref": "#/components/schemas/SettingFlag"
6735
6915
  }
6916
+ },
6917
+ "schemas": {
6918
+ "type": "array",
6919
+ "description": "Schema-specific configuration for the capability",
6920
+ "items": {
6921
+ "type": "object",
6922
+ "additionalProperties": true,
6923
+ "required": [
6924
+ "schema"
6925
+ ],
6926
+ "properties": {
6927
+ "schema": {
6928
+ "type": "string",
6929
+ "description": "Entity schema slug",
6930
+ "example": "contact"
6931
+ }
6932
+ }
6933
+ }
6736
6934
  }
6737
6935
  },
6738
6936
  "required": [
@@ -7056,6 +7254,17 @@
7056
7254
  ]
7057
7255
  }
7058
7256
  },
7257
+ "NullableEntity": {
7258
+ "allOf": [
7259
+ {
7260
+ "$ref": "#/components/schemas/Entity"
7261
+ },
7262
+ {
7263
+ "type": "object",
7264
+ "nullable": true
7265
+ }
7266
+ ]
7267
+ },
7059
7268
  "EntityOwner": {
7060
7269
  "description": "The user / organization owning this entity.\n\nNote: Owner implicitly has access to the entity regardless of ACLs.\n",
7061
7270
  "type": "object",
@@ -8097,11 +8306,11 @@
8097
8306
  },
8098
8307
  "entityNodes": {
8099
8308
  "type": "object",
8100
- "description": "Map of node IDs to entity objects or arrays of entity objects (present when hydrate=true).\nThe seed node always returns a single Entity object.\nOther nodes return a single Entity object if they contain exactly one entity, or an array of Entity objects if they contain multiple entities.\n",
8309
+ "description": "Map of node IDs to entity objects or arrays of entity objects (present when hydrate=true).\nThe seed node and nodes with cardinality=\"one\" return a single Entity object, or null if no entity was found.\nNodes with cardinality=\"many\" return an array of Entity objects.\n",
8101
8310
  "additionalProperties": {
8102
8311
  "oneOf": [
8103
8312
  {
8104
- "$ref": "#/components/schemas/Entity"
8313
+ "$ref": "#/components/schemas/NullableEntity"
8105
8314
  },
8106
8315
  {
8107
8316
  "type": "array",
@@ -8446,6 +8655,20 @@
8446
8655
  ]
8447
8656
  }
8448
8657
  }
8658
+ },
8659
+ "_workflow_origin": {
8660
+ "type": "object",
8661
+ "description": "Internal property for workflow origin tracking and infinite loop prevention.\nPopulated when an entity update originates from a workflow execution.\nThis allows downstream automation services to prevent circular triggering.\n",
8662
+ "properties": {
8663
+ "workflow_exec_id": {
8664
+ "type": "string",
8665
+ "description": "The ID of the workflow execution that triggered this entity update"
8666
+ },
8667
+ "flow_template_id": {
8668
+ "type": "string",
8669
+ "description": "The flow template ID - used to detect and prevent circular triggering"
8670
+ }
8671
+ }
8449
8672
  }
8450
8673
  },
8451
8674
  "required": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/entity-client",
3
- "version": "6.13.0",
3
+ "version": "7.0.0-rc.1",
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",
@@ -22,17 +22,17 @@
22
22
  "entity"
23
23
  ],
24
24
  "scripts": {
25
- "test": "jest",
25
+ "test": "vitest",
26
26
  "typescript": "tsc",
27
27
  "bundle-definition": "webpack",
28
28
  "prepublishOnly": "npm run typegen && npm run build",
29
29
  "openapi": "node ../../scripts/update-openapi.js https://docs.api.epilot.io/entity.yaml",
30
- "typegen": "openapi typegen src/openapi.json --client -b '/* eslint-disable */' > src/openapi.d.ts",
30
+ "typegen": "openapi typegen src/openapi.json --client > src/openapi.d.ts",
31
31
  "build": "tsc && npm run build:patch && npm run bundle-definition",
32
32
  "build:patch": "sed -i'' -e '/^__exportStar.*openapi.*$/d' dist/index.js",
33
33
  "build:watch": "npm run build && tsc -w",
34
34
  "release-alpha": "npm version prerelease --preid alpha",
35
- "lint": "pnpm exec eslint src"
35
+ "lint": "biome check src"
36
36
  },
37
37
  "files": [
38
38
  "*.js",
@@ -60,13 +60,10 @@
60
60
  "util": "^0.12.3"
61
61
  },
62
62
  "devDependencies": {
63
- "@types/jest": "^26.0.20",
64
63
  "axios": "^1.11.0",
65
64
  "copy-webpack-plugin": "^7.0.0",
66
- "jest": "^29.6.2",
67
65
  "json-loader": "^0.5.7",
68
66
  "openapicmd": "^2.7.0",
69
- "ts-jest": "^29.4.1",
70
67
  "ts-loader": "^8.0.14",
71
68
  "ts-node": "^10.9.1",
72
69
  "typescript": "^4.1.3",