@epilot/customer-portal-client 0.35.0 → 0.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/definition.js +1 -1
- package/dist/openapi-runtime.json +132 -6
- package/dist/openapi.d.ts +816 -25
- package/package.json +1 -1
- package/src/openapi-runtime.json +132 -6
- package/src/openapi.json +478 -23
package/src/openapi.json
CHANGED
|
@@ -137,6 +137,7 @@
|
|
|
137
137
|
"operationId": "createUser",
|
|
138
138
|
"summary": "createUser",
|
|
139
139
|
"description": "Registers a portal user",
|
|
140
|
+
"deprecated": true,
|
|
140
141
|
"security": [],
|
|
141
142
|
"tags": [
|
|
142
143
|
"Public"
|
|
@@ -199,7 +200,7 @@
|
|
|
199
200
|
"post": {
|
|
200
201
|
"operationId": "createUserV3",
|
|
201
202
|
"summary": "createUserV3",
|
|
202
|
-
"description": "Registers a portal user
|
|
203
|
+
"description": "Registers a portal user.\nSupports two identification methods:\n1. Using portal_id\n2. Using domain\n",
|
|
203
204
|
"security": [],
|
|
204
205
|
"tags": [
|
|
205
206
|
"Public"
|
|
@@ -208,11 +209,20 @@
|
|
|
208
209
|
{
|
|
209
210
|
"in": "query",
|
|
210
211
|
"name": "portal_id",
|
|
211
|
-
"required":
|
|
212
|
+
"required": false,
|
|
212
213
|
"schema": {
|
|
213
214
|
"$ref": "#/components/schemas/PortalId"
|
|
214
215
|
},
|
|
215
|
-
"description": "
|
|
216
|
+
"description": "Portal ID (required if domain is not provided)"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"in": "query",
|
|
220
|
+
"name": "domain",
|
|
221
|
+
"required": false,
|
|
222
|
+
"schema": {
|
|
223
|
+
"type": "string"
|
|
224
|
+
},
|
|
225
|
+
"description": "Portal domain for identification (alternative to portal_id)"
|
|
216
226
|
}
|
|
217
227
|
],
|
|
218
228
|
"requestBody": {
|
|
@@ -2160,6 +2170,68 @@
|
|
|
2160
2170
|
}
|
|
2161
2171
|
}
|
|
2162
2172
|
},
|
|
2173
|
+
"/v3/portal/public/widgets": {
|
|
2174
|
+
"get": {
|
|
2175
|
+
"operationId": "getPublicPortalWidgetsV3",
|
|
2176
|
+
"summary": "getPublicPortalWidgetsV3",
|
|
2177
|
+
"description": "Retrieves the public widgets of a portal.\nSupports two identification methods:\n1. Using org_id + portal_id\n2. Using domain\n",
|
|
2178
|
+
"tags": [
|
|
2179
|
+
"Public"
|
|
2180
|
+
],
|
|
2181
|
+
"security": [],
|
|
2182
|
+
"parameters": [
|
|
2183
|
+
{
|
|
2184
|
+
"in": "query",
|
|
2185
|
+
"name": "org_id",
|
|
2186
|
+
"required": false,
|
|
2187
|
+
"schema": {
|
|
2188
|
+
"type": "string",
|
|
2189
|
+
"example": 12324
|
|
2190
|
+
},
|
|
2191
|
+
"description": "Organization ID (required if domain is not provided)"
|
|
2192
|
+
},
|
|
2193
|
+
{
|
|
2194
|
+
"in": "query",
|
|
2195
|
+
"name": "portal_id",
|
|
2196
|
+
"required": false,
|
|
2197
|
+
"schema": {
|
|
2198
|
+
"$ref": "#/components/schemas/PortalId"
|
|
2199
|
+
},
|
|
2200
|
+
"description": "Portal ID (required if domain is not provided)"
|
|
2201
|
+
},
|
|
2202
|
+
{
|
|
2203
|
+
"in": "query",
|
|
2204
|
+
"name": "domain",
|
|
2205
|
+
"required": false,
|
|
2206
|
+
"schema": {
|
|
2207
|
+
"type": "string"
|
|
2208
|
+
},
|
|
2209
|
+
"description": "Portal domain for identification (alternative to org_id + portal_id)"
|
|
2210
|
+
}
|
|
2211
|
+
],
|
|
2212
|
+
"responses": {
|
|
2213
|
+
"200": {
|
|
2214
|
+
"description": "Retrieved the portal public widgets successfully.",
|
|
2215
|
+
"content": {
|
|
2216
|
+
"application/json": {
|
|
2217
|
+
"schema": {
|
|
2218
|
+
"$ref": "#/components/schemas/UpsertPortalWidget"
|
|
2219
|
+
}
|
|
2220
|
+
}
|
|
2221
|
+
}
|
|
2222
|
+
},
|
|
2223
|
+
"401": {
|
|
2224
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
2225
|
+
},
|
|
2226
|
+
"403": {
|
|
2227
|
+
"$ref": "#/components/responses/Forbidden"
|
|
2228
|
+
},
|
|
2229
|
+
"500": {
|
|
2230
|
+
"$ref": "#/components/responses/InternalServerError"
|
|
2231
|
+
}
|
|
2232
|
+
}
|
|
2233
|
+
}
|
|
2234
|
+
},
|
|
2163
2235
|
"/v2/portal/widgets": {
|
|
2164
2236
|
"post": {
|
|
2165
2237
|
"operationId": "upsertPortalWidget",
|
|
@@ -2278,6 +2350,194 @@
|
|
|
2278
2350
|
}
|
|
2279
2351
|
}
|
|
2280
2352
|
},
|
|
2353
|
+
"/v3/portal/widgets": {
|
|
2354
|
+
"get": {
|
|
2355
|
+
"operationId": "getPortalWidgetsV3",
|
|
2356
|
+
"summary": "getPortalWidgetsV3",
|
|
2357
|
+
"description": "Retrieves the widgets of a portal by portal_id.",
|
|
2358
|
+
"tags": [
|
|
2359
|
+
"ECP Admin",
|
|
2360
|
+
"ECP"
|
|
2361
|
+
],
|
|
2362
|
+
"security": [
|
|
2363
|
+
{
|
|
2364
|
+
"EitherAuth": []
|
|
2365
|
+
}
|
|
2366
|
+
],
|
|
2367
|
+
"parameters": [
|
|
2368
|
+
{
|
|
2369
|
+
"in": "query",
|
|
2370
|
+
"name": "portal_id",
|
|
2371
|
+
"required": true,
|
|
2372
|
+
"schema": {
|
|
2373
|
+
"$ref": "#/components/schemas/PortalId"
|
|
2374
|
+
},
|
|
2375
|
+
"description": "PortalId of the portal"
|
|
2376
|
+
},
|
|
2377
|
+
{
|
|
2378
|
+
"in": "query",
|
|
2379
|
+
"name": "contract_id",
|
|
2380
|
+
"required": false,
|
|
2381
|
+
"schema": {
|
|
2382
|
+
"$ref": "#/components/schemas/EntityId"
|
|
2383
|
+
},
|
|
2384
|
+
"description": "Contract context for widgets"
|
|
2385
|
+
}
|
|
2386
|
+
],
|
|
2387
|
+
"responses": {
|
|
2388
|
+
"200": {
|
|
2389
|
+
"description": "Retrieved the portal widgets successfully.",
|
|
2390
|
+
"content": {
|
|
2391
|
+
"application/json": {
|
|
2392
|
+
"schema": {
|
|
2393
|
+
"$ref": "#/components/schemas/UpsertPortalWidget"
|
|
2394
|
+
}
|
|
2395
|
+
}
|
|
2396
|
+
}
|
|
2397
|
+
},
|
|
2398
|
+
"401": {
|
|
2399
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
2400
|
+
},
|
|
2401
|
+
"403": {
|
|
2402
|
+
"$ref": "#/components/responses/Forbidden"
|
|
2403
|
+
},
|
|
2404
|
+
"500": {
|
|
2405
|
+
"$ref": "#/components/responses/InternalServerError"
|
|
2406
|
+
}
|
|
2407
|
+
}
|
|
2408
|
+
},
|
|
2409
|
+
"post": {
|
|
2410
|
+
"operationId": "upsertPortalWidgetV3",
|
|
2411
|
+
"summary": "upsertPortalWidgetV3",
|
|
2412
|
+
"description": "Upsert widget for a portal by portal_id.",
|
|
2413
|
+
"security": [
|
|
2414
|
+
{
|
|
2415
|
+
"EpilotAuth": []
|
|
2416
|
+
}
|
|
2417
|
+
],
|
|
2418
|
+
"tags": [
|
|
2419
|
+
"ECP Admin"
|
|
2420
|
+
],
|
|
2421
|
+
"parameters": [
|
|
2422
|
+
{
|
|
2423
|
+
"in": "query",
|
|
2424
|
+
"name": "portal_id",
|
|
2425
|
+
"required": true,
|
|
2426
|
+
"schema": {
|
|
2427
|
+
"$ref": "#/components/schemas/PortalId"
|
|
2428
|
+
},
|
|
2429
|
+
"description": "PortalId of the portal"
|
|
2430
|
+
}
|
|
2431
|
+
],
|
|
2432
|
+
"requestBody": {
|
|
2433
|
+
"description": "Portal widgets payload",
|
|
2434
|
+
"required": true,
|
|
2435
|
+
"content": {
|
|
2436
|
+
"application/json": {
|
|
2437
|
+
"schema": {
|
|
2438
|
+
"$ref": "#/components/schemas/UpsertPortalWidget"
|
|
2439
|
+
}
|
|
2440
|
+
}
|
|
2441
|
+
}
|
|
2442
|
+
},
|
|
2443
|
+
"responses": {
|
|
2444
|
+
"201": {
|
|
2445
|
+
"description": "Portal widget configuration upserted successfully.",
|
|
2446
|
+
"content": {
|
|
2447
|
+
"application/json": {
|
|
2448
|
+
"schema": {
|
|
2449
|
+
"$ref": "#/components/schemas/UpsertPortalWidget"
|
|
2450
|
+
}
|
|
2451
|
+
}
|
|
2452
|
+
}
|
|
2453
|
+
},
|
|
2454
|
+
"400": {
|
|
2455
|
+
"$ref": "#/components/responses/InvalidRequest"
|
|
2456
|
+
},
|
|
2457
|
+
"401": {
|
|
2458
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
2459
|
+
},
|
|
2460
|
+
"403": {
|
|
2461
|
+
"$ref": "#/components/responses/Forbidden"
|
|
2462
|
+
},
|
|
2463
|
+
"500": {
|
|
2464
|
+
"$ref": "#/components/responses/InternalServerError"
|
|
2465
|
+
}
|
|
2466
|
+
}
|
|
2467
|
+
}
|
|
2468
|
+
},
|
|
2469
|
+
"/v3/portal/portal/files": {
|
|
2470
|
+
"post": {
|
|
2471
|
+
"operationId": "savePortalFilesV3",
|
|
2472
|
+
"summary": "savePortalFilesV3",
|
|
2473
|
+
"description": "Add files to portal by portal_id",
|
|
2474
|
+
"tags": [
|
|
2475
|
+
"ECP Admin"
|
|
2476
|
+
],
|
|
2477
|
+
"security": [
|
|
2478
|
+
{
|
|
2479
|
+
"EpilotAuth": []
|
|
2480
|
+
}
|
|
2481
|
+
],
|
|
2482
|
+
"parameters": [
|
|
2483
|
+
{
|
|
2484
|
+
"in": "query",
|
|
2485
|
+
"name": "portal_id",
|
|
2486
|
+
"required": true,
|
|
2487
|
+
"schema": {
|
|
2488
|
+
"$ref": "#/components/schemas/PortalId"
|
|
2489
|
+
},
|
|
2490
|
+
"description": "PortalId of the portal"
|
|
2491
|
+
}
|
|
2492
|
+
],
|
|
2493
|
+
"requestBody": {
|
|
2494
|
+
"description": "portal files request",
|
|
2495
|
+
"required": true,
|
|
2496
|
+
"content": {
|
|
2497
|
+
"application/json": {
|
|
2498
|
+
"schema": {
|
|
2499
|
+
"$ref": "#/components/schemas/SavePortalFile"
|
|
2500
|
+
}
|
|
2501
|
+
}
|
|
2502
|
+
}
|
|
2503
|
+
},
|
|
2504
|
+
"responses": {
|
|
2505
|
+
"201": {
|
|
2506
|
+
"description": "The files have been saved to the portal successfully.",
|
|
2507
|
+
"content": {
|
|
2508
|
+
"application/json": {
|
|
2509
|
+
"schema": {
|
|
2510
|
+
"type": "object",
|
|
2511
|
+
"properties": {
|
|
2512
|
+
"createdFiles": {
|
|
2513
|
+
"type": "array",
|
|
2514
|
+
"items": {
|
|
2515
|
+
"$ref": "#/components/schemas/File"
|
|
2516
|
+
}
|
|
2517
|
+
}
|
|
2518
|
+
}
|
|
2519
|
+
}
|
|
2520
|
+
}
|
|
2521
|
+
}
|
|
2522
|
+
},
|
|
2523
|
+
"400": {
|
|
2524
|
+
"$ref": "#/components/responses/InvalidRequest"
|
|
2525
|
+
},
|
|
2526
|
+
"401": {
|
|
2527
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
2528
|
+
},
|
|
2529
|
+
"403": {
|
|
2530
|
+
"$ref": "#/components/responses/Forbidden"
|
|
2531
|
+
},
|
|
2532
|
+
"404": {
|
|
2533
|
+
"$ref": "#/components/responses/NotFound"
|
|
2534
|
+
},
|
|
2535
|
+
"500": {
|
|
2536
|
+
"$ref": "#/components/responses/InternalServerError"
|
|
2537
|
+
}
|
|
2538
|
+
}
|
|
2539
|
+
}
|
|
2540
|
+
},
|
|
2281
2541
|
"/v2/portal/replace-ecp-template-variables": {
|
|
2282
2542
|
"post": {
|
|
2283
2543
|
"operationId": "replaceECPTemplateVariables",
|
|
@@ -2551,6 +2811,76 @@
|
|
|
2551
2811
|
}
|
|
2552
2812
|
}
|
|
2553
2813
|
},
|
|
2814
|
+
"/v3/portal/public/schemas": {
|
|
2815
|
+
"get": {
|
|
2816
|
+
"operationId": "getPublicSchemasV3",
|
|
2817
|
+
"summary": "getPublicSchemasV3",
|
|
2818
|
+
"description": "Retrieves schemas by portal. Only schemas and attributes used on public pages are returned.\nSupports two identification methods:\n1. Using org_id + portal_id\n2. Using domain\n",
|
|
2819
|
+
"tags": [
|
|
2820
|
+
"Public"
|
|
2821
|
+
],
|
|
2822
|
+
"security": [],
|
|
2823
|
+
"parameters": [
|
|
2824
|
+
{
|
|
2825
|
+
"in": "query",
|
|
2826
|
+
"name": "org_id",
|
|
2827
|
+
"required": false,
|
|
2828
|
+
"schema": {
|
|
2829
|
+
"type": "string",
|
|
2830
|
+
"example": 12324
|
|
2831
|
+
},
|
|
2832
|
+
"description": "Organization ID (required if domain is not provided)"
|
|
2833
|
+
},
|
|
2834
|
+
{
|
|
2835
|
+
"in": "query",
|
|
2836
|
+
"name": "portal_id",
|
|
2837
|
+
"required": false,
|
|
2838
|
+
"schema": {
|
|
2839
|
+
"$ref": "#/components/schemas/PortalId"
|
|
2840
|
+
},
|
|
2841
|
+
"description": "Portal ID (required if domain is not provided)"
|
|
2842
|
+
},
|
|
2843
|
+
{
|
|
2844
|
+
"in": "query",
|
|
2845
|
+
"name": "domain",
|
|
2846
|
+
"required": false,
|
|
2847
|
+
"schema": {
|
|
2848
|
+
"type": "string"
|
|
2849
|
+
},
|
|
2850
|
+
"description": "Portal domain for identification (alternative to org_id + portal_id)"
|
|
2851
|
+
}
|
|
2852
|
+
],
|
|
2853
|
+
"responses": {
|
|
2854
|
+
"200": {
|
|
2855
|
+
"description": "Retrieved schemas for an organization successfully.",
|
|
2856
|
+
"content": {
|
|
2857
|
+
"application/json": {
|
|
2858
|
+
"schema": {
|
|
2859
|
+
"type": "object",
|
|
2860
|
+
"properties": {
|
|
2861
|
+
"schemas": {
|
|
2862
|
+
"type": "array",
|
|
2863
|
+
"items": {
|
|
2864
|
+
"$ref": "#/components/schemas/Schema"
|
|
2865
|
+
}
|
|
2866
|
+
}
|
|
2867
|
+
}
|
|
2868
|
+
}
|
|
2869
|
+
}
|
|
2870
|
+
}
|
|
2871
|
+
},
|
|
2872
|
+
"401": {
|
|
2873
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
2874
|
+
},
|
|
2875
|
+
"403": {
|
|
2876
|
+
"$ref": "#/components/responses/Forbidden"
|
|
2877
|
+
},
|
|
2878
|
+
"500": {
|
|
2879
|
+
"$ref": "#/components/responses/InternalServerError"
|
|
2880
|
+
}
|
|
2881
|
+
}
|
|
2882
|
+
}
|
|
2883
|
+
},
|
|
2554
2884
|
"/v2/portal/public/org/settings": {
|
|
2555
2885
|
"get": {
|
|
2556
2886
|
"operationId": "getOrganizationSettingsByDomain",
|
|
@@ -3001,7 +3331,7 @@
|
|
|
3001
3331
|
"post": {
|
|
3002
3332
|
"operationId": "checkContactExistsV3",
|
|
3003
3333
|
"summary": "checkContactExistsV3",
|
|
3004
|
-
"description": "True if contact with given identifiers exists.",
|
|
3334
|
+
"description": "True if contact with given identifiers exists.\nSupports two identification methods:\n1. Using portal_id\n2. Using domain\n",
|
|
3005
3335
|
"security": [],
|
|
3006
3336
|
"tags": [
|
|
3007
3337
|
"Public"
|
|
@@ -3010,11 +3340,20 @@
|
|
|
3010
3340
|
{
|
|
3011
3341
|
"in": "query",
|
|
3012
3342
|
"name": "portal_id",
|
|
3013
|
-
"required":
|
|
3343
|
+
"required": false,
|
|
3014
3344
|
"schema": {
|
|
3015
3345
|
"$ref": "#/components/schemas/PortalId"
|
|
3016
3346
|
},
|
|
3017
|
-
"description": "PortalId of the portal"
|
|
3347
|
+
"description": "PortalId of the portal (required if domain is not provided)"
|
|
3348
|
+
},
|
|
3349
|
+
{
|
|
3350
|
+
"in": "query",
|
|
3351
|
+
"name": "domain",
|
|
3352
|
+
"required": false,
|
|
3353
|
+
"schema": {
|
|
3354
|
+
"type": "string"
|
|
3355
|
+
},
|
|
3356
|
+
"description": "Portal domain for identification (alternative to portal_id)"
|
|
3018
3357
|
}
|
|
3019
3358
|
],
|
|
3020
3359
|
"requestBody": {
|
|
@@ -3617,7 +3956,7 @@
|
|
|
3617
3956
|
"get": {
|
|
3618
3957
|
"operationId": "userExistsV3",
|
|
3619
3958
|
"summary": "userExistsV3",
|
|
3620
|
-
"description": "Checks whether a user exists in the portal",
|
|
3959
|
+
"description": "Checks whether a user exists in the portal.\nSupports two identification methods:\n1. Using org_id + portal_id\n2. Using domain\n",
|
|
3621
3960
|
"tags": [
|
|
3622
3961
|
"Public"
|
|
3623
3962
|
],
|
|
@@ -3636,10 +3975,10 @@
|
|
|
3636
3975
|
{
|
|
3637
3976
|
"in": "query",
|
|
3638
3977
|
"name": "org_id",
|
|
3639
|
-
"required":
|
|
3978
|
+
"required": false,
|
|
3640
3979
|
"schema": {
|
|
3641
3980
|
"type": "string",
|
|
3642
|
-
"description": "Organization ID",
|
|
3981
|
+
"description": "Organization ID (required if domain is not provided)",
|
|
3643
3982
|
"example": 123
|
|
3644
3983
|
}
|
|
3645
3984
|
},
|
|
@@ -3647,10 +3986,19 @@
|
|
|
3647
3986
|
"in": "query",
|
|
3648
3987
|
"name": "portal_id",
|
|
3649
3988
|
"required": false,
|
|
3650
|
-
"description": "
|
|
3989
|
+
"description": "Checks if user exists in the given portal ID. If not provided, checks in all portals.",
|
|
3651
3990
|
"schema": {
|
|
3652
3991
|
"$ref": "#/components/schemas/PortalId"
|
|
3653
3992
|
}
|
|
3993
|
+
},
|
|
3994
|
+
{
|
|
3995
|
+
"in": "query",
|
|
3996
|
+
"name": "domain",
|
|
3997
|
+
"required": false,
|
|
3998
|
+
"schema": {
|
|
3999
|
+
"type": "string"
|
|
4000
|
+
},
|
|
4001
|
+
"description": "Portal domain for identification (alternative to org_id + portal_id)"
|
|
3654
4002
|
}
|
|
3655
4003
|
],
|
|
3656
4004
|
"responses": {
|
|
@@ -6119,7 +6467,7 @@
|
|
|
6119
6467
|
"post": {
|
|
6120
6468
|
"operationId": "loginToPortalAsUser",
|
|
6121
6469
|
"summary": "loginToPortalAsUser",
|
|
6122
|
-
"description": "Generate a token to log in to a portal impersonating a users.\n\nToken is valid for 5 minutes.\n",
|
|
6470
|
+
"description": "Generate a token to log in to a portal impersonating a users.\n\nToken is valid for 5 minutes.\n\nSupports three identification methods (at least one required):\n1. Using portal_id (takes precedence)\n2. Using domain\n3. Using origin (legacy)\n",
|
|
6123
6471
|
"tags": [
|
|
6124
6472
|
"ECP Admin"
|
|
6125
6473
|
],
|
|
@@ -6147,6 +6495,10 @@
|
|
|
6147
6495
|
"portal_id": {
|
|
6148
6496
|
"type": "string",
|
|
6149
6497
|
"description": "The portal ID to look up the portal config. When provided, takes precedence over origin."
|
|
6498
|
+
},
|
|
6499
|
+
"domain": {
|
|
6500
|
+
"type": "string",
|
|
6501
|
+
"description": "Portal domain for identification. Alternative to portal_id or origin."
|
|
6150
6502
|
}
|
|
6151
6503
|
}
|
|
6152
6504
|
}
|
|
@@ -6241,7 +6593,7 @@
|
|
|
6241
6593
|
"post": {
|
|
6242
6594
|
"operationId": "triggerEntityAccessEventV3",
|
|
6243
6595
|
"summary": "triggerEntityAccessEventV3",
|
|
6244
|
-
"description": "Trigger entity access event for a portal user",
|
|
6596
|
+
"description": "Trigger entity access event for a portal user.\nSupports two identification methods:\n1. Using portal_id\n2. Using domain\n",
|
|
6245
6597
|
"tags": [
|
|
6246
6598
|
"ECP"
|
|
6247
6599
|
],
|
|
@@ -6273,11 +6625,20 @@
|
|
|
6273
6625
|
{
|
|
6274
6626
|
"name": "portal_id",
|
|
6275
6627
|
"in": "query",
|
|
6276
|
-
"required":
|
|
6277
|
-
"description": "Portal ID",
|
|
6628
|
+
"required": false,
|
|
6629
|
+
"description": "Portal ID (required if domain is not provided)",
|
|
6278
6630
|
"schema": {
|
|
6279
6631
|
"$ref": "#/components/schemas/PortalId"
|
|
6280
6632
|
}
|
|
6633
|
+
},
|
|
6634
|
+
{
|
|
6635
|
+
"name": "domain",
|
|
6636
|
+
"in": "query",
|
|
6637
|
+
"required": false,
|
|
6638
|
+
"description": "Portal domain for identification (alternative to portal_id)",
|
|
6639
|
+
"schema": {
|
|
6640
|
+
"type": "string"
|
|
6641
|
+
}
|
|
6281
6642
|
}
|
|
6282
6643
|
],
|
|
6283
6644
|
"responses": {
|
|
@@ -6772,7 +7133,7 @@
|
|
|
6772
7133
|
"/v2/portal/metering/reading/allowed-range/{meter_id}": {
|
|
6773
7134
|
"get": {
|
|
6774
7135
|
"operationId": "getAllowedMeterReadingRange",
|
|
6775
|
-
"description": "Get allowed reading range for all counters of a meter from the configured
|
|
7136
|
+
"description": "Get allowed reading range for all counters of a meter from the configured\nthird-party plausibility check hook using 'range' mode. This endpoint requires\na plausibility check hook to be configured for the portal.\n",
|
|
6776
7137
|
"tags": [
|
|
6777
7138
|
"ECP"
|
|
6778
7139
|
],
|
|
@@ -6957,7 +7318,7 @@
|
|
|
6957
7318
|
"post": {
|
|
6958
7319
|
"operationId": "ssoLoginV3",
|
|
6959
7320
|
"summary": "ssoLoginV3",
|
|
6960
|
-
"description": "Initiate login using external SSO identity.\n\nVerifies the user with the issuer and matches the identity to an epilot user (or creates a new user).\n\nReturns parameters to be used with CUSTOM_AUTH flow against Cognito\n",
|
|
7321
|
+
"description": "Initiate login using external SSO identity.\n\nVerifies the user with the issuer and matches the identity to an epilot user (or creates a new user).\n\nReturns parameters to be used with CUSTOM_AUTH flow against Cognito.\n\nSupports two identification methods:\n1. Using org_id + portal_id\n2. Using domain\n",
|
|
6961
7322
|
"security": [
|
|
6962
7323
|
{
|
|
6963
7324
|
"ExternalOIDCAuth": []
|
|
@@ -6967,8 +7328,8 @@
|
|
|
6967
7328
|
{
|
|
6968
7329
|
"in": "query",
|
|
6969
7330
|
"name": "portal_id",
|
|
6970
|
-
"required":
|
|
6971
|
-
"description": "ID of the Portal",
|
|
7331
|
+
"required": false,
|
|
7332
|
+
"description": "ID of the Portal (required if domain is not provided)",
|
|
6972
7333
|
"schema": {
|
|
6973
7334
|
"$ref": "#/components/schemas/PortalId"
|
|
6974
7335
|
}
|
|
@@ -6976,13 +7337,22 @@
|
|
|
6976
7337
|
{
|
|
6977
7338
|
"in": "query",
|
|
6978
7339
|
"name": "org_id",
|
|
6979
|
-
"description": "epilot organization id",
|
|
6980
|
-
"required":
|
|
7340
|
+
"description": "epilot organization id (required if domain is not provided)",
|
|
7341
|
+
"required": false,
|
|
6981
7342
|
"schema": {
|
|
6982
7343
|
"type": "string",
|
|
6983
7344
|
"example": 123
|
|
6984
7345
|
}
|
|
6985
7346
|
},
|
|
7347
|
+
{
|
|
7348
|
+
"in": "query",
|
|
7349
|
+
"name": "domain",
|
|
7350
|
+
"description": "Portal domain for identification (alternative to org_id + portal_id)",
|
|
7351
|
+
"required": false,
|
|
7352
|
+
"schema": {
|
|
7353
|
+
"type": "string"
|
|
7354
|
+
}
|
|
7355
|
+
},
|
|
6986
7356
|
{
|
|
6987
7357
|
"in": "query",
|
|
6988
7358
|
"name": "contact_id",
|
|
@@ -9699,6 +10069,14 @@
|
|
|
9699
10069
|
"type": "boolean",
|
|
9700
10070
|
"description": "Mark true if the domain is an Epilot domain"
|
|
9701
10071
|
},
|
|
10072
|
+
"epilot_domain": {
|
|
10073
|
+
"type": "string",
|
|
10074
|
+
"description": "The URL on which the portal is accessible",
|
|
10075
|
+
"example": "example-portal-12345.ecp.epilot.cloud"
|
|
10076
|
+
},
|
|
10077
|
+
"domain_settings": {
|
|
10078
|
+
"$ref": "#/components/schemas/DomainSettings"
|
|
10079
|
+
},
|
|
9702
10080
|
"design_id": {
|
|
9703
10081
|
"$ref": "#/components/schemas/EntityId",
|
|
9704
10082
|
"description": "ID of the design used to build the portal"
|
|
@@ -10247,6 +10625,24 @@
|
|
|
10247
10625
|
}
|
|
10248
10626
|
}
|
|
10249
10627
|
},
|
|
10628
|
+
"DomainSettings": {
|
|
10629
|
+
"type": "object",
|
|
10630
|
+
"description": "Domain settings for the portal",
|
|
10631
|
+
"properties": {
|
|
10632
|
+
"is_custom_domain_enabled": {
|
|
10633
|
+
"type": "boolean",
|
|
10634
|
+
"description": "Whether the custom domain is enabled"
|
|
10635
|
+
},
|
|
10636
|
+
"is_epilot_domain_enabled": {
|
|
10637
|
+
"type": "boolean",
|
|
10638
|
+
"description": "Whether the Epilot domain is enabled"
|
|
10639
|
+
},
|
|
10640
|
+
"is_redirection_enabled": {
|
|
10641
|
+
"type": "boolean",
|
|
10642
|
+
"description": "Whether the redirection is enabled"
|
|
10643
|
+
}
|
|
10644
|
+
}
|
|
10645
|
+
},
|
|
10250
10646
|
"WidgetBase": {
|
|
10251
10647
|
"type": "object",
|
|
10252
10648
|
"required": [
|
|
@@ -11008,8 +11404,45 @@
|
|
|
11008
11404
|
},
|
|
11009
11405
|
"Entity": {
|
|
11010
11406
|
"type": "object",
|
|
11011
|
-
"
|
|
11012
|
-
"
|
|
11407
|
+
"additionalProperties": true,
|
|
11408
|
+
"properties": {
|
|
11409
|
+
"templates_output_highlighted": {
|
|
11410
|
+
"type": "object",
|
|
11411
|
+
"readOnly": true,
|
|
11412
|
+
"description": "Template outputs with search highlight <em> tags merged in. Only present when highlight is requested and matches exist.",
|
|
11413
|
+
"additionalProperties": {
|
|
11414
|
+
"oneOf": [
|
|
11415
|
+
{
|
|
11416
|
+
"type": "string"
|
|
11417
|
+
},
|
|
11418
|
+
{
|
|
11419
|
+
"type": "object",
|
|
11420
|
+
"additionalProperties": {
|
|
11421
|
+
"type": "string"
|
|
11422
|
+
}
|
|
11423
|
+
}
|
|
11424
|
+
]
|
|
11425
|
+
}
|
|
11426
|
+
},
|
|
11427
|
+
"search_snippets": {
|
|
11428
|
+
"type": "array",
|
|
11429
|
+
"readOnly": true,
|
|
11430
|
+
"description": "Highlighted fragments for search matches on fields not shown in template content. Max 1 entry.",
|
|
11431
|
+
"items": {
|
|
11432
|
+
"type": "object",
|
|
11433
|
+
"properties": {
|
|
11434
|
+
"field": {
|
|
11435
|
+
"type": "string",
|
|
11436
|
+
"description": "Human-readable field label"
|
|
11437
|
+
},
|
|
11438
|
+
"fragment": {
|
|
11439
|
+
"type": "string",
|
|
11440
|
+
"description": "Highlighted text fragment with <em> tags"
|
|
11441
|
+
}
|
|
11442
|
+
}
|
|
11443
|
+
}
|
|
11444
|
+
}
|
|
11445
|
+
}
|
|
11013
11446
|
},
|
|
11014
11447
|
"EntityTemplates": {
|
|
11015
11448
|
"type": "object",
|
|
@@ -12712,6 +13145,10 @@
|
|
|
12712
13145
|
"example": [
|
|
12713
13146
|
"active_workflow"
|
|
12714
13147
|
]
|
|
13148
|
+
},
|
|
13149
|
+
"highlight": {
|
|
13150
|
+
"type": "object",
|
|
13151
|
+
"description": "Elasticsearch highlight configuration passed through to the Entity API. When provided, matching results include a `highlight` object with field names as keys and arrays of highlighted fragments as values."
|
|
12715
13152
|
}
|
|
12716
13153
|
},
|
|
12717
13154
|
"required": [
|
|
@@ -13956,7 +14393,7 @@
|
|
|
13956
14393
|
"timestamp": {
|
|
13957
14394
|
"type": "string",
|
|
13958
14395
|
"description": "If the value is not provided, the system will be set with the time the request is processed.",
|
|
13959
|
-
"example": "2022-10-
|
|
14396
|
+
"example": "2022-10-10T00:00:00.000Z"
|
|
13960
14397
|
},
|
|
13961
14398
|
"source": {
|
|
13962
14399
|
"$ref": "#/components/schemas/Source",
|
|
@@ -14786,6 +15223,11 @@
|
|
|
14786
15223
|
"format": "date-time",
|
|
14787
15224
|
"description": "Last modified timestamp of the Page",
|
|
14788
15225
|
"example": "2021-02-09T12:41:43.662Z"
|
|
15226
|
+
},
|
|
15227
|
+
"portal_id": {
|
|
15228
|
+
"type": "string",
|
|
15229
|
+
"description": "The id of the portal",
|
|
15230
|
+
"example": "453ad7bf-86d5-46c8-8252-bcc868df5e3c"
|
|
14789
15231
|
}
|
|
14790
15232
|
}
|
|
14791
15233
|
}
|
|
@@ -14812,6 +15254,14 @@
|
|
|
14812
15254
|
"type": "boolean",
|
|
14813
15255
|
"description": "Mark true if the domain is an Epilot domain"
|
|
14814
15256
|
},
|
|
15257
|
+
"epilot_domain": {
|
|
15258
|
+
"type": "string",
|
|
15259
|
+
"description": "The Epilot domain on which the portal is accessible",
|
|
15260
|
+
"example": "example-portal-1.ecp.epilot.io"
|
|
15261
|
+
},
|
|
15262
|
+
"domain_settings": {
|
|
15263
|
+
"$ref": "#/components/schemas/DomainSettings"
|
|
15264
|
+
},
|
|
14815
15265
|
"design_id": {
|
|
14816
15266
|
"$ref": "#/components/schemas/EntityId",
|
|
14817
15267
|
"description": "ID of the design used to build the portal"
|
|
@@ -15368,6 +15818,11 @@
|
|
|
15368
15818
|
"is_canary": {
|
|
15369
15819
|
"type": "boolean",
|
|
15370
15820
|
"description": "Whether the org is in canary mode"
|
|
15821
|
+
},
|
|
15822
|
+
"redirect_to": {
|
|
15823
|
+
"type": "string",
|
|
15824
|
+
"description": "The URL to redirect to",
|
|
15825
|
+
"example": "https://example.com"
|
|
15371
15826
|
}
|
|
15372
15827
|
}
|
|
15373
15828
|
},
|