@epilot/entity-client 6.7.0 → 6.8.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/definition.js +1 -1
- package/dist/openapi-runtime.json +0 -75
- package/dist/openapi.d.ts +217 -369
- package/dist/openapi.json +38 -304
- package/package.json +1 -1
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": "1.
|
|
5
|
+
"version": "1.3.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": [
|
|
@@ -45,10 +45,6 @@
|
|
|
45
45
|
{
|
|
46
46
|
"name": "Public",
|
|
47
47
|
"description": "Public"
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"name": "File Collections",
|
|
51
|
-
"description": "Collections of files associated with the entity"
|
|
52
48
|
}
|
|
53
49
|
],
|
|
54
50
|
"security": [
|
|
@@ -3055,6 +3051,9 @@
|
|
|
3055
3051
|
}
|
|
3056
3052
|
}
|
|
3057
3053
|
},
|
|
3054
|
+
"409": {
|
|
3055
|
+
"description": "Taxonomy classification already exists"
|
|
3056
|
+
},
|
|
3058
3057
|
"429": {
|
|
3059
3058
|
"$ref": "#/components/responses/TooManyRequestsError"
|
|
3060
3059
|
}
|
|
@@ -4315,180 +4314,6 @@
|
|
|
4315
4314
|
}
|
|
4316
4315
|
}
|
|
4317
4316
|
}
|
|
4318
|
-
},
|
|
4319
|
-
"/v1/entity/{id}/collections": {
|
|
4320
|
-
"get": {
|
|
4321
|
-
"operationId": "getFileCollections",
|
|
4322
|
-
"summary": "getFileCollections",
|
|
4323
|
-
"description": "Gets a list of collections that exist for an entity",
|
|
4324
|
-
"tags": [
|
|
4325
|
-
"File Collections"
|
|
4326
|
-
],
|
|
4327
|
-
"parameters": [
|
|
4328
|
-
{
|
|
4329
|
-
"$ref": "#/components/parameters/EntityIdPathParam"
|
|
4330
|
-
}
|
|
4331
|
-
],
|
|
4332
|
-
"responses": {
|
|
4333
|
-
"200": {
|
|
4334
|
-
"description": "List of collections the entity is part of",
|
|
4335
|
-
"content": {
|
|
4336
|
-
"application/json": {
|
|
4337
|
-
"schema": {
|
|
4338
|
-
"type": "object",
|
|
4339
|
-
"properties": {
|
|
4340
|
-
"results": {
|
|
4341
|
-
"type": "array",
|
|
4342
|
-
"items": {
|
|
4343
|
-
"$ref": "#/components/schemas/FileCollectionItem"
|
|
4344
|
-
}
|
|
4345
|
-
}
|
|
4346
|
-
}
|
|
4347
|
-
}
|
|
4348
|
-
}
|
|
4349
|
-
}
|
|
4350
|
-
},
|
|
4351
|
-
"404": {
|
|
4352
|
-
"$ref": "#/components/responses/NotFoundError"
|
|
4353
|
-
}
|
|
4354
|
-
}
|
|
4355
|
-
},
|
|
4356
|
-
"post": {
|
|
4357
|
-
"operationId": "createFileCollection",
|
|
4358
|
-
"summary": "createFileCollection",
|
|
4359
|
-
"description": "Creates a new file collection for the specified entity",
|
|
4360
|
-
"tags": [
|
|
4361
|
-
"File Collections"
|
|
4362
|
-
],
|
|
4363
|
-
"parameters": [
|
|
4364
|
-
{
|
|
4365
|
-
"$ref": "#/components/parameters/EntityIdPathParam"
|
|
4366
|
-
}
|
|
4367
|
-
],
|
|
4368
|
-
"requestBody": {
|
|
4369
|
-
"required": true,
|
|
4370
|
-
"content": {
|
|
4371
|
-
"application/json": {
|
|
4372
|
-
"schema": {
|
|
4373
|
-
"$ref": "#/components/schemas/FileCollectionCreateRequest"
|
|
4374
|
-
}
|
|
4375
|
-
}
|
|
4376
|
-
}
|
|
4377
|
-
},
|
|
4378
|
-
"responses": {
|
|
4379
|
-
"201": {
|
|
4380
|
-
"description": "File collection created successfully",
|
|
4381
|
-
"content": {
|
|
4382
|
-
"application/json": {
|
|
4383
|
-
"schema": {
|
|
4384
|
-
"$ref": "#/components/schemas/FileCollectionItem"
|
|
4385
|
-
}
|
|
4386
|
-
}
|
|
4387
|
-
}
|
|
4388
|
-
},
|
|
4389
|
-
"404": {
|
|
4390
|
-
"$ref": "#/components/responses/NotFoundError"
|
|
4391
|
-
}
|
|
4392
|
-
}
|
|
4393
|
-
}
|
|
4394
|
-
},
|
|
4395
|
-
"/v1/entity/{id}/collections/{collection_id}": {
|
|
4396
|
-
"get": {
|
|
4397
|
-
"operationId": "getFileCollection",
|
|
4398
|
-
"summary": "getFileCollection",
|
|
4399
|
-
"description": "Gets a specific file collection by ID",
|
|
4400
|
-
"tags": [
|
|
4401
|
-
"File Collections"
|
|
4402
|
-
],
|
|
4403
|
-
"parameters": [
|
|
4404
|
-
{
|
|
4405
|
-
"$ref": "#/components/parameters/EntityIdPathParam"
|
|
4406
|
-
},
|
|
4407
|
-
{
|
|
4408
|
-
"$ref": "#/components/parameters/CollectionIdPathParam"
|
|
4409
|
-
}
|
|
4410
|
-
],
|
|
4411
|
-
"responses": {
|
|
4412
|
-
"200": {
|
|
4413
|
-
"description": "File collection found",
|
|
4414
|
-
"content": {
|
|
4415
|
-
"application/json": {
|
|
4416
|
-
"schema": {
|
|
4417
|
-
"$ref": "#/components/schemas/FileCollectionItem"
|
|
4418
|
-
}
|
|
4419
|
-
}
|
|
4420
|
-
}
|
|
4421
|
-
},
|
|
4422
|
-
"404": {
|
|
4423
|
-
"$ref": "#/components/responses/NotFoundError"
|
|
4424
|
-
}
|
|
4425
|
-
}
|
|
4426
|
-
},
|
|
4427
|
-
"put": {
|
|
4428
|
-
"operationId": "updateFileCollection",
|
|
4429
|
-
"summary": "updateFileCollection",
|
|
4430
|
-
"description": "Updates a specific file collection by ID",
|
|
4431
|
-
"tags": [
|
|
4432
|
-
"File Collections"
|
|
4433
|
-
],
|
|
4434
|
-
"parameters": [
|
|
4435
|
-
{
|
|
4436
|
-
"$ref": "#/components/parameters/EntityIdPathParam"
|
|
4437
|
-
},
|
|
4438
|
-
{
|
|
4439
|
-
"$ref": "#/components/parameters/CollectionIdPathParam"
|
|
4440
|
-
}
|
|
4441
|
-
],
|
|
4442
|
-
"requestBody": {
|
|
4443
|
-
"required": true,
|
|
4444
|
-
"content": {
|
|
4445
|
-
"application/json": {
|
|
4446
|
-
"schema": {
|
|
4447
|
-
"$ref": "#/components/schemas/FileCollectionAttributes"
|
|
4448
|
-
}
|
|
4449
|
-
}
|
|
4450
|
-
}
|
|
4451
|
-
},
|
|
4452
|
-
"responses": {
|
|
4453
|
-
"200": {
|
|
4454
|
-
"description": "File collection updated successfully",
|
|
4455
|
-
"content": {
|
|
4456
|
-
"application/json": {
|
|
4457
|
-
"schema": {
|
|
4458
|
-
"$ref": "#/components/schemas/FileCollectionItem"
|
|
4459
|
-
}
|
|
4460
|
-
}
|
|
4461
|
-
}
|
|
4462
|
-
},
|
|
4463
|
-
"404": {
|
|
4464
|
-
"$ref": "#/components/responses/NotFoundError"
|
|
4465
|
-
}
|
|
4466
|
-
}
|
|
4467
|
-
},
|
|
4468
|
-
"delete": {
|
|
4469
|
-
"operationId": "deleteFileCollection",
|
|
4470
|
-
"summary": "deleteFileCollection",
|
|
4471
|
-
"description": "Deletes a specific file collection by ID",
|
|
4472
|
-
"tags": [
|
|
4473
|
-
"File Collections"
|
|
4474
|
-
],
|
|
4475
|
-
"parameters": [
|
|
4476
|
-
{
|
|
4477
|
-
"$ref": "#/components/parameters/EntityIdPathParam"
|
|
4478
|
-
},
|
|
4479
|
-
{
|
|
4480
|
-
"$ref": "#/components/parameters/CollectionIdPathParam"
|
|
4481
|
-
}
|
|
4482
|
-
],
|
|
4483
|
-
"responses": {
|
|
4484
|
-
"200": {
|
|
4485
|
-
"description": "File collection deleted successfully"
|
|
4486
|
-
},
|
|
4487
|
-
"404": {
|
|
4488
|
-
"$ref": "#/components/responses/NotFoundError"
|
|
4489
|
-
}
|
|
4490
|
-
}
|
|
4491
|
-
}
|
|
4492
4317
|
}
|
|
4493
4318
|
},
|
|
4494
4319
|
"components": {
|
|
@@ -5142,6 +4967,9 @@
|
|
|
5142
4967
|
{
|
|
5143
4968
|
"$ref": "#/components/schemas/PartnerOrganisationAttribute"
|
|
5144
4969
|
},
|
|
4970
|
+
{
|
|
4971
|
+
"$ref": "#/components/schemas/PortalAccessAttribute"
|
|
4972
|
+
},
|
|
5145
4973
|
{
|
|
5146
4974
|
"$ref": "#/components/schemas/PhoneAttribute"
|
|
5147
4975
|
},
|
|
@@ -6042,6 +5870,25 @@
|
|
|
6042
5870
|
}
|
|
6043
5871
|
]
|
|
6044
5872
|
},
|
|
5873
|
+
"PortalAccessAttribute": {
|
|
5874
|
+
"allOf": [
|
|
5875
|
+
{
|
|
5876
|
+
"$ref": "#/components/schemas/BaseAttribute"
|
|
5877
|
+
},
|
|
5878
|
+
{
|
|
5879
|
+
"type": "object",
|
|
5880
|
+
"description": "Portal access configuration",
|
|
5881
|
+
"properties": {
|
|
5882
|
+
"type": {
|
|
5883
|
+
"type": "string",
|
|
5884
|
+
"enum": [
|
|
5885
|
+
"portal_access"
|
|
5886
|
+
]
|
|
5887
|
+
}
|
|
5888
|
+
}
|
|
5889
|
+
}
|
|
5890
|
+
]
|
|
5891
|
+
},
|
|
6045
5892
|
"DefaultAddressFields": {
|
|
6046
5893
|
"type": "array",
|
|
6047
5894
|
"nullable": true,
|
|
@@ -6659,6 +6506,7 @@
|
|
|
6659
6506
|
"EntitySlug": {
|
|
6660
6507
|
"description": "URL-friendly identifier for the entity schema",
|
|
6661
6508
|
"type": "string",
|
|
6509
|
+
"pattern": "^[a-zA-Z0-9_-]+$",
|
|
6662
6510
|
"example": "contact"
|
|
6663
6511
|
},
|
|
6664
6512
|
"EntityCapability": {
|
|
@@ -7604,6 +7452,11 @@
|
|
|
7604
7452
|
{
|
|
7605
7453
|
"type": "object",
|
|
7606
7454
|
"properties": {
|
|
7455
|
+
"q": {
|
|
7456
|
+
"description": "Lucene [queries supported with ElasticSearch](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html#query-string-syntax)",
|
|
7457
|
+
"type": "string",
|
|
7458
|
+
"example": "status:active"
|
|
7459
|
+
},
|
|
7607
7460
|
"filter": {
|
|
7608
7461
|
"$ref": "#/components/schemas/SearchFilter"
|
|
7609
7462
|
},
|
|
@@ -7619,6 +7472,7 @@
|
|
|
7619
7472
|
"fields": {},
|
|
7620
7473
|
"aggs": {},
|
|
7621
7474
|
"include_deleted": {},
|
|
7475
|
+
"include_scores": {},
|
|
7622
7476
|
"highlight": {},
|
|
7623
7477
|
"stable_for": {},
|
|
7624
7478
|
"stable_query_id": {},
|
|
@@ -7856,6 +7710,11 @@
|
|
|
7856
7710
|
"include_deleted": {
|
|
7857
7711
|
"$ref": "#/components/schemas/EntitySearchIncludeDeletedParam"
|
|
7858
7712
|
},
|
|
7713
|
+
"include_scores": {
|
|
7714
|
+
"type": "boolean",
|
|
7715
|
+
"description": "Adds a `_score` number field to results that can be used to rank by match score",
|
|
7716
|
+
"default": false
|
|
7717
|
+
},
|
|
7859
7718
|
"stable_for": {
|
|
7860
7719
|
"type": "integer",
|
|
7861
7720
|
"minimum": 0,
|
|
@@ -8790,121 +8649,6 @@
|
|
|
8790
8649
|
"example": "Bad Request"
|
|
8791
8650
|
}
|
|
8792
8651
|
}
|
|
8793
|
-
},
|
|
8794
|
-
"FileCollectionId": {
|
|
8795
|
-
"description": "Generated uuid for a file collection",
|
|
8796
|
-
"type": "string",
|
|
8797
|
-
"format": "uuid"
|
|
8798
|
-
},
|
|
8799
|
-
"FileCollectionItem": {
|
|
8800
|
-
"description": "A file collection with identifiers and timestamps",
|
|
8801
|
-
"type": "object",
|
|
8802
|
-
"properties": {
|
|
8803
|
-
"id": {
|
|
8804
|
-
"$ref": "#/components/schemas/FileCollectionId"
|
|
8805
|
-
},
|
|
8806
|
-
"orgId": {
|
|
8807
|
-
"type": "string",
|
|
8808
|
-
"description": "Organization ID",
|
|
8809
|
-
"example": "123"
|
|
8810
|
-
},
|
|
8811
|
-
"entityId": {
|
|
8812
|
-
"$ref": "#/components/schemas/EntityId"
|
|
8813
|
-
},
|
|
8814
|
-
"type": {
|
|
8815
|
-
"type": "string",
|
|
8816
|
-
"description": "Logical type for this item (e.g. \"collection\")",
|
|
8817
|
-
"example": "collection"
|
|
8818
|
-
},
|
|
8819
|
-
"name": {
|
|
8820
|
-
"type": "string",
|
|
8821
|
-
"example": "MyCollectionOfImportantFiles"
|
|
8822
|
-
},
|
|
8823
|
-
"entity_id": {
|
|
8824
|
-
"$ref": "#/components/schemas/EntityId"
|
|
8825
|
-
},
|
|
8826
|
-
"starred": {
|
|
8827
|
-
"type": "boolean",
|
|
8828
|
-
"example": false
|
|
8829
|
-
},
|
|
8830
|
-
"files": {
|
|
8831
|
-
"type": "array",
|
|
8832
|
-
"description": "Array of file IDs in this collection",
|
|
8833
|
-
"items": {
|
|
8834
|
-
"type": "string",
|
|
8835
|
-
"format": "uuid"
|
|
8836
|
-
},
|
|
8837
|
-
"example": [
|
|
8838
|
-
"123e4567-e89b-12d3-a456-426614174000"
|
|
8839
|
-
]
|
|
8840
|
-
},
|
|
8841
|
-
"created_by": {
|
|
8842
|
-
"type": "string",
|
|
8843
|
-
"description": "User ID who created the collection",
|
|
8844
|
-
"example": "17622"
|
|
8845
|
-
},
|
|
8846
|
-
"created_at": {
|
|
8847
|
-
"type": "string",
|
|
8848
|
-
"format": "date-time",
|
|
8849
|
-
"example": "2025-08-20T12:01:00Z"
|
|
8850
|
-
},
|
|
8851
|
-
"updated_at": {
|
|
8852
|
-
"type": "string",
|
|
8853
|
-
"format": "date-time",
|
|
8854
|
-
"example": "2025-08-20T12:01:00Z"
|
|
8855
|
-
}
|
|
8856
|
-
},
|
|
8857
|
-
"required": [
|
|
8858
|
-
"id",
|
|
8859
|
-
"orgId",
|
|
8860
|
-
"entityId",
|
|
8861
|
-
"type",
|
|
8862
|
-
"name",
|
|
8863
|
-
"entity_id",
|
|
8864
|
-
"starred",
|
|
8865
|
-
"files",
|
|
8866
|
-
"created_by",
|
|
8867
|
-
"created_at",
|
|
8868
|
-
"updated_at"
|
|
8869
|
-
]
|
|
8870
|
-
},
|
|
8871
|
-
"FileCollectionAttributes": {
|
|
8872
|
-
"type": "object",
|
|
8873
|
-
"properties": {
|
|
8874
|
-
"name": {
|
|
8875
|
-
"type": "string",
|
|
8876
|
-
"description": "Name of the file collection"
|
|
8877
|
-
},
|
|
8878
|
-
"starred": {
|
|
8879
|
-
"type": "boolean",
|
|
8880
|
-
"description": "Whether the collection is starred"
|
|
8881
|
-
},
|
|
8882
|
-
"files": {
|
|
8883
|
-
"type": "array",
|
|
8884
|
-
"description": "Array of file IDs in this collection",
|
|
8885
|
-
"items": {
|
|
8886
|
-
"type": "string",
|
|
8887
|
-
"format": "uuid"
|
|
8888
|
-
}
|
|
8889
|
-
}
|
|
8890
|
-
},
|
|
8891
|
-
"additionalProperties": false
|
|
8892
|
-
},
|
|
8893
|
-
"FileCollectionCreateRequest": {
|
|
8894
|
-
"description": "Request body for creating a file collection",
|
|
8895
|
-
"allOf": [
|
|
8896
|
-
{
|
|
8897
|
-
"$ref": "#/components/schemas/FileCollectionAttributes"
|
|
8898
|
-
},
|
|
8899
|
-
{
|
|
8900
|
-
"type": "object",
|
|
8901
|
-
"required": [
|
|
8902
|
-
"name",
|
|
8903
|
-
"starred",
|
|
8904
|
-
"files"
|
|
8905
|
-
]
|
|
8906
|
-
}
|
|
8907
|
-
]
|
|
8908
8652
|
}
|
|
8909
8653
|
},
|
|
8910
8654
|
"parameters": {
|
|
@@ -9141,16 +8885,6 @@
|
|
|
9141
8885
|
"default": false,
|
|
9142
8886
|
"type": "boolean"
|
|
9143
8887
|
}
|
|
9144
|
-
},
|
|
9145
|
-
"CollectionIdPathParam": {
|
|
9146
|
-
"name": "collection_id",
|
|
9147
|
-
"description": "Collection Id",
|
|
9148
|
-
"in": "path",
|
|
9149
|
-
"required": true,
|
|
9150
|
-
"schema": {
|
|
9151
|
-
"type": "string",
|
|
9152
|
-
"format": "uuid"
|
|
9153
|
-
}
|
|
9154
8888
|
}
|
|
9155
8889
|
},
|
|
9156
8890
|
"examples": {
|