@epilot/entity-client 4.29.1 → 4.29.2

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/openapi.json CHANGED
@@ -730,6 +730,9 @@
730
730
  {
731
731
  "$ref": "#/components/parameters/ActivityIdQueryParam"
732
732
  },
733
+ {
734
+ "$ref": "#/components/parameters/FillActivityQueryParam"
735
+ },
733
736
  {
734
737
  "$ref": "#/components/parameters/AsyncOperationQueryParam"
735
738
  }
@@ -861,6 +864,9 @@
861
864
  {
862
865
  "$ref": "#/components/parameters/ActivityIdQueryParam"
863
866
  },
867
+ {
868
+ "$ref": "#/components/parameters/FillActivityQueryParam"
869
+ },
864
870
  {
865
871
  "$ref": "#/components/parameters/DryRunQueryParam"
866
872
  },
@@ -1037,6 +1043,9 @@
1037
1043
  {
1038
1044
  "$ref": "#/components/parameters/ActivityIdQueryParam"
1039
1045
  },
1046
+ {
1047
+ "$ref": "#/components/parameters/FillActivityQueryParam"
1048
+ },
1040
1049
  {
1041
1050
  "$ref": "#/components/parameters/AsyncOperationQueryParam"
1042
1051
  }
@@ -1081,6 +1090,9 @@
1081
1090
  {
1082
1091
  "$ref": "#/components/parameters/ActivityIdQueryParam"
1083
1092
  },
1093
+ {
1094
+ "$ref": "#/components/parameters/FillActivityQueryParam"
1095
+ },
1084
1096
  {
1085
1097
  "$ref": "#/components/parameters/DryRunQueryParam"
1086
1098
  },
@@ -1559,6 +1571,9 @@
1559
1571
  },
1560
1572
  {
1561
1573
  "$ref": "#/components/parameters/AsyncOperationQueryParam"
1574
+ },
1575
+ {
1576
+ "$ref": "#/components/parameters/ActivityIdQueryParam"
1562
1577
  }
1563
1578
  ],
1564
1579
  "requestBody": {
@@ -2708,6 +2723,37 @@
2708
2723
  }
2709
2724
  }
2710
2725
  },
2726
+ "/v1/entity/schemas/attributes": {
2727
+ "post": {
2728
+ "operationId": "createSchemaAttribute",
2729
+ "summary": "createSchemaAttribute",
2730
+ "description": "Create a schema attribute",
2731
+ "tags": [
2732
+ "Schemas"
2733
+ ],
2734
+ "requestBody": {
2735
+ "content": {
2736
+ "application/json": {
2737
+ "schema": {
2738
+ "$ref": "#/components/schemas/AttributeWithCompositeID"
2739
+ }
2740
+ }
2741
+ }
2742
+ },
2743
+ "responses": {
2744
+ "201": {
2745
+ "description": "Success",
2746
+ "content": {
2747
+ "application/json": {
2748
+ "schema": {
2749
+ "$ref": "#/components/schemas/AttributeWithCompositeID"
2750
+ }
2751
+ }
2752
+ }
2753
+ }
2754
+ }
2755
+ }
2756
+ },
2711
2757
  "/v1/entity/schemas/attributes/{composite_id}": {
2712
2758
  "get": {
2713
2759
  "operationId": "getSchemaAttribute",
@@ -2818,6 +2864,37 @@
2818
2864
  }
2819
2865
  }
2820
2866
  },
2867
+ "/v1/entity/schemas/capabilities": {
2868
+ "post": {
2869
+ "operationId": "createSchemaCapability",
2870
+ "summary": "createSchemaCapability",
2871
+ "description": "Create a schema capability",
2872
+ "tags": [
2873
+ "Schemas"
2874
+ ],
2875
+ "requestBody": {
2876
+ "content": {
2877
+ "application/json": {
2878
+ "schema": {
2879
+ "$ref": "#/components/schemas/EntityCapabilityWithCompositeID"
2880
+ }
2881
+ }
2882
+ }
2883
+ },
2884
+ "responses": {
2885
+ "201": {
2886
+ "description": "Success",
2887
+ "content": {
2888
+ "application/json": {
2889
+ "schema": {
2890
+ "$ref": "#/components/schemas/EntityCapabilityWithCompositeID"
2891
+ }
2892
+ }
2893
+ }
2894
+ }
2895
+ }
2896
+ }
2897
+ },
2821
2898
  "/v1/entity/schemas/capabilities/{composite_id}": {
2822
2899
  "get": {
2823
2900
  "operationId": "getSchemaCapability",
@@ -2928,6 +3005,37 @@
2928
3005
  }
2929
3006
  }
2930
3007
  },
3008
+ "/v1/entity/schemas/group": {
3009
+ "post": {
3010
+ "operationId": "createSchemaGroup",
3011
+ "summary": "createSchemaGroup",
3012
+ "description": "Create a schema group",
3013
+ "tags": [
3014
+ "Schemas"
3015
+ ],
3016
+ "requestBody": {
3017
+ "content": {
3018
+ "application/json": {
3019
+ "schema": {
3020
+ "$ref": "#/components/schemas/EntitySchemaGroupWithCompositeID"
3021
+ }
3022
+ }
3023
+ }
3024
+ },
3025
+ "responses": {
3026
+ "201": {
3027
+ "description": "Success",
3028
+ "content": {
3029
+ "application/json": {
3030
+ "schema": {
3031
+ "$ref": "#/components/schemas/EntitySchemaGroupWithCompositeID"
3032
+ }
3033
+ }
3034
+ }
3035
+ }
3036
+ }
3037
+ }
3038
+ },
2931
3039
  "/v1/entity/schemas/group/{composite_id}": {
2932
3040
  "get": {
2933
3041
  "operationId": "getSchemaGroup",
@@ -3037,6 +3145,98 @@
3037
3145
  }
3038
3146
  }
3039
3147
  }
3148
+ },
3149
+ "/v1/entity/public/idp/.well-known/jwks.json": {
3150
+ "get": {
3151
+ "operationId": "getESPublicJwks",
3152
+ "summary": "getESPublicJwks",
3153
+ "description": "Get jwks public key set to verify tokens generated by this API for Elasticsearch authentication",
3154
+ "tags": [
3155
+ "Public"
3156
+ ],
3157
+ "security": [],
3158
+ "responses": {
3159
+ "200": {
3160
+ "description": "Set of jwks",
3161
+ "content": {
3162
+ "application/json": {
3163
+ "schema": {
3164
+ "type": "object",
3165
+ "properties": {
3166
+ "keys": {
3167
+ "type": "array",
3168
+ "items": {
3169
+ "type": "object",
3170
+ "properties": {
3171
+ "alg": {
3172
+ "type": "string",
3173
+ "example": "RS256"
3174
+ },
3175
+ "e": {
3176
+ "type": "string",
3177
+ "example": "AQAB"
3178
+ },
3179
+ "kid": {
3180
+ "type": "string",
3181
+ "example": "tXWU5mPMbRPczpbQwi6vbhLF4GgF3wlMDSyqo7pfeiw="
3182
+ },
3183
+ "kty": {
3184
+ "type": "string",
3185
+ "example": "RSA"
3186
+ },
3187
+ "n": {
3188
+ "type": "string",
3189
+ "example": "h_QDoCjZ8W_trtYXaP7_S22wf5r5Wd9XBLED78oT44bJjQXn8ddcFV8Hik65_4IYXVX_hTTU4zpxe3H8vx2j7-Zz3O59mYMp5S0MzODNEdf5Y_2o19eis0brmAJniixsNlQ9LlYkdrVamrgaxHu3ZpP_99zkfFybYeuYoQNzb3PyrT8xVnz_USs_nlFMHpGUxvvz7gfKPqxcLvgLJr4cwI9yzaSY9CD4qW181QVcnL_WzpQ8xx6AuhhHZQ1l_3GG4InTk8ahE7U2ZHVu8RrX6d01pMgc3piEcet9RgFLnhbTg3YIiKGoAbN42wJn_x3lgIAC42T9mbmTsHyUdS6nUQ"
3190
+ },
3191
+ "use": {
3192
+ "type": "string",
3193
+ "example": "sig"
3194
+ }
3195
+ }
3196
+ }
3197
+ }
3198
+ }
3199
+ }
3200
+ }
3201
+ }
3202
+ }
3203
+ }
3204
+ }
3205
+ },
3206
+ "/v1/entity/public/idp/.well-known/openid-configuration": {
3207
+ "get": {
3208
+ "operationId": "getESTokenOIDC",
3209
+ "summary": "getESTokenOIDC",
3210
+ "description": "OpenID Connect configuration for Entity API serving as public identity provider\n\nNote: This API is not a fully compliant OAuth2.0 / OIDC identity provider, but this endpoint is useful to\nautomate the process of verifying JWT tokens.\n",
3211
+ "tags": [
3212
+ "Public"
3213
+ ],
3214
+ "security": [],
3215
+ "responses": {
3216
+ "200": {
3217
+ "description": "OpenID Configuration",
3218
+ "content": {
3219
+ "application/json": {
3220
+ "schema": {
3221
+ "type": "object",
3222
+ "properties": {
3223
+ "issuer": {
3224
+ "type": "string",
3225
+ "format": "uri",
3226
+ "example": "https://entity.dev.sls.epilot.io/v1/entity/public/idp"
3227
+ },
3228
+ "jwks_uri": {
3229
+ "type": "string",
3230
+ "format": "uri",
3231
+ "example": "https://entity.dev.sls.epilot.io/v1/entity/public/idp/.well-known/jwks.json"
3232
+ }
3233
+ }
3234
+ }
3235
+ }
3236
+ }
3237
+ }
3238
+ }
3239
+ }
3040
3240
  }
3041
3241
  },
3042
3242
  "components": {
@@ -3372,6 +3572,39 @@
3372
3572
  }
3373
3573
  ]
3374
3574
  },
3575
+ "GenerateEntityTableAIFiltersRequest": {
3576
+ "type": "object",
3577
+ "properties": {
3578
+ "prompt": {
3579
+ "type": "string",
3580
+ "description": "The prompt to generate the filters",
3581
+ "example": "Show me all contacts that are not customers",
3582
+ "maxLength": 300
3583
+ },
3584
+ "main_entity_slug": {
3585
+ "type": "string",
3586
+ "description": "The main entity slug",
3587
+ "example": "order"
3588
+ },
3589
+ "filter_options": {
3590
+ "type": "array",
3591
+ "items": {
3592
+ "$ref": "#/components/schemas/EntityTableFilterOption"
3593
+ }
3594
+ }
3595
+ },
3596
+ "required": [
3597
+ "prompt",
3598
+ "main_entity_slug",
3599
+ "filter_options"
3600
+ ]
3601
+ },
3602
+ "GenerateEntityTableAIFiltersResponse": {
3603
+ "type": "array",
3604
+ "items": {
3605
+ "$ref": "#/components/schemas/EntityTableFilterSearch"
3606
+ }
3607
+ },
3375
3608
  "EntityTableFilterSearch": {
3376
3609
  "type": "object",
3377
3610
  "properties": {
@@ -3500,8 +3733,7 @@
3500
3733
  }
3501
3734
  },
3502
3735
  "required": [
3503
- "label",
3504
- "id"
3736
+ "label"
3505
3737
  ]
3506
3738
  },
3507
3739
  "EntitySchemaGroupWithCompositeID": {
@@ -3517,6 +3749,11 @@
3517
3749
  "type": "string",
3518
3750
  "readOnly": true,
3519
3751
  "example": "contact:e18a532b-ae79-4d86-a6a5-e5dbfb579d14"
3752
+ },
3753
+ "schema": {
3754
+ "type": "string",
3755
+ "description": "Schema slug the group belongs to",
3756
+ "example": "contact"
3520
3757
  }
3521
3758
  }
3522
3759
  }
@@ -3623,6 +3860,11 @@
3623
3860
  "type": "string",
3624
3861
  "readOnly": true,
3625
3862
  "example": "contact:97644baa-083f-4e49-9188-fcff2ecaad7d"
3863
+ },
3864
+ "schema": {
3865
+ "type": "string",
3866
+ "description": "Schema slug the attribute belongs to",
3867
+ "example": "contact"
3626
3868
  }
3627
3869
  }
3628
3870
  }
@@ -4934,6 +5176,11 @@
4934
5176
  "type": "string",
4935
5177
  "readOnly": true,
4936
5178
  "example": "contact:97644baa-083f-4e49-9188-fcff2ecaad7d"
5179
+ },
5180
+ "schema": {
5181
+ "type": "string",
5182
+ "description": "Schema slug the capability belongs to",
5183
+ "example": "contact"
4937
5184
  }
4938
5185
  }
4939
5186
  }
@@ -5419,6 +5666,26 @@
5419
5666
  "errors"
5420
5667
  ]
5421
5668
  },
5669
+ "EntityValidationResult": {
5670
+ "oneOf": [
5671
+ {
5672
+ "$ref": "#/components/schemas/EntityValidationResultSuccess"
5673
+ },
5674
+ {
5675
+ "$ref": "#/components/schemas/EntityValidationResultError"
5676
+ }
5677
+ ]
5678
+ },
5679
+ "HydratedEntityItem": {
5680
+ "allOf": [
5681
+ {
5682
+ "$ref": "#/components/schemas/BaseEntity"
5683
+ },
5684
+ {
5685
+ "$ref": "#/components/schemas/HydratedEntity"
5686
+ }
5687
+ ]
5688
+ },
5422
5689
  "GetRelationsResp": {
5423
5690
  "type": "array",
5424
5691
  "items": {
@@ -5730,8 +5997,18 @@
5730
5997
  "type": "object",
5731
5998
  "properties": {
5732
5999
  "sort": {
5733
- "type": "string",
5734
- "example": "_created_at:desc"
6000
+ "description": "You can pass one sort field or an array of sort fields. Each sort field can be a string",
6001
+ "oneOf": [
6002
+ {
6003
+ "type": "string"
6004
+ },
6005
+ {
6006
+ "type": "array",
6007
+ "items": {
6008
+ "type": "string"
6009
+ }
6010
+ }
6011
+ ]
5735
6012
  },
5736
6013
  "from": {
5737
6014
  "type": "integer",
@@ -5973,6 +6250,11 @@
5973
6250
  "schema": "contact"
5974
6251
  }
5975
6252
  }
6253
+ },
6254
+ "pending": {
6255
+ "type": "boolean",
6256
+ "description": "Indicates whether the activity is in the pending state.\nPending activities are not yet visible in the activity feed and events are not yet dispatched.\n",
6257
+ "default": false
5976
6258
  }
5977
6259
  },
5978
6260
  "required": [
@@ -6377,6 +6659,11 @@
6377
6659
  "type": "string",
6378
6660
  "example": "taxonomy-slug:classification-slug"
6379
6661
  },
6662
+ "ClassificationSlug": {
6663
+ "type": "string",
6664
+ "description": "URL-friendly identifier for the classification",
6665
+ "example": "wallbox-pv"
6666
+ },
6380
6667
  "TaxonomySlug": {
6381
6668
  "type": "string",
6382
6669
  "description": "URL-friendly name for taxonomy",
@@ -6413,6 +6700,19 @@
6413
6700
  }
6414
6701
  }
6415
6702
  },
6703
+ "ESClusterAssignment": {
6704
+ "type": "object",
6705
+ "properties": {
6706
+ "orgId": {
6707
+ "type": "string",
6708
+ "description": "The organization for which the cluster assignment is returned"
6709
+ },
6710
+ "cluster": {
6711
+ "type": "string",
6712
+ "description": "Name of the elastic cluster the organization is assigned to"
6713
+ }
6714
+ }
6715
+ },
6416
6716
  "SettingFlag": {
6417
6717
  "type": "object",
6418
6718
  "properties": {
@@ -6460,6 +6760,15 @@
6460
6760
  "example": "price"
6461
6761
  }
6462
6762
  },
6763
+ "TaxonomySlugQueryParam": {
6764
+ "name": "taxonomySlug",
6765
+ "description": "Taxonomy slug",
6766
+ "in": "query",
6767
+ "schema": {
6768
+ "type": "string"
6769
+ },
6770
+ "required": true
6771
+ },
6463
6772
  "TaxonomySlugPathParam": {
6464
6773
  "name": "taxonomySlug",
6465
6774
  "description": "Taxonomy slug",
@@ -6615,6 +6924,16 @@
6615
6924
  "type": "boolean",
6616
6925
  "default": false
6617
6926
  }
6927
+ },
6928
+ "FillActivityQueryParam": {
6929
+ "name": "fill_activity",
6930
+ "description": "Update the diff and entity for the custom activity included in the query.\nPending state on activity is automatically ended when activity is filled.\n",
6931
+ "in": "query",
6932
+ "required": false,
6933
+ "schema": {
6934
+ "type": "boolean",
6935
+ "default": false
6936
+ }
6618
6937
  }
6619
6938
  },
6620
6939
  "examples": {
@@ -7270,6 +7589,9 @@
7270
7589
  }
7271
7590
  },
7272
7591
  "servers": [
7592
+ {
7593
+ "url": "https://entity.sls.epilot.io"
7594
+ },
7273
7595
  {
7274
7596
  "url": "https://entity.sls.epilot.io"
7275
7597
  }
File without changes
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/entity-client",
3
- "version": "4.29.1",
3
+ "version": "4.29.2",
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",
@@ -27,7 +27,7 @@
27
27
  "openapi": "node ../../scripts/update-openapi.js https://docs.api.epilot.io/entity.yaml",
28
28
  "typegen": "openapi typegen src/openapi.json --client -b '/* eslint-disable */' > src/openapi.d.ts",
29
29
  "build": "tsc && npm run build:patch && npm run bundle-definition",
30
- "build:patch": "sed -i '/^__exportStar.*openapi.*$/d' dist/index.js",
30
+ "build:patch": "sed -i '' '/^__exportStar.*openapi.*$/d' dist/index.js",
31
31
  "build:watch": "npm run build && tsc -w",
32
32
  "release-alpha": "npm version prerelease --preid alpha",
33
33
  "lint": "../../node_modules/eslint/bin/eslint.js src"
@@ -71,5 +71,5 @@
71
71
  "webpack": "^5.18.0",
72
72
  "webpack-cli": "^4.4.0"
73
73
  },
74
- "gitHead": "cb7e6acc938eb178e531c19834ea8bd0d6445e6f"
74
+ "gitHead": "39426e86cfb320fa3227dc03f60ee6a10848e7c7"
75
75
  }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2022 epilot GmbH
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.