@epilot/customer-portal-client 0.33.2 → 0.34.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/LICENSE +21 -0
- package/dist/client.d.ts +1 -1
- package/dist/definition.js +1 -1
- package/dist/openapi-runtime.json +12 -0
- package/dist/openapi.d.ts +594 -17
- package/package.json +13 -17
- package/src/openapi-runtime.json +12 -0
- package/src/openapi.d.ts +15754 -0
- package/src/openapi.json +278 -2
package/src/openapi.json
CHANGED
|
@@ -7464,6 +7464,70 @@
|
|
|
7464
7464
|
}
|
|
7465
7465
|
}
|
|
7466
7466
|
},
|
|
7467
|
+
"/v2/portal/pages/interpolate": {
|
|
7468
|
+
"post": {
|
|
7469
|
+
"operationId": "interpolatePortalPages",
|
|
7470
|
+
"summary": "interpolatePortalPages",
|
|
7471
|
+
"description": "Interpolate template variables in portal pages without reading from the database. Accepts pages in the request body and returns them with templates resolved.",
|
|
7472
|
+
"tags": [
|
|
7473
|
+
"ECP Admin"
|
|
7474
|
+
],
|
|
7475
|
+
"security": [
|
|
7476
|
+
{
|
|
7477
|
+
"EitherAuth": []
|
|
7478
|
+
}
|
|
7479
|
+
],
|
|
7480
|
+
"requestBody": {
|
|
7481
|
+
"required": true,
|
|
7482
|
+
"content": {
|
|
7483
|
+
"application/json": {
|
|
7484
|
+
"schema": {
|
|
7485
|
+
"type": "object",
|
|
7486
|
+
"required": [
|
|
7487
|
+
"pages"
|
|
7488
|
+
],
|
|
7489
|
+
"properties": {
|
|
7490
|
+
"pages": {
|
|
7491
|
+
"type": "array",
|
|
7492
|
+
"items": {
|
|
7493
|
+
"$ref": "#/components/schemas/Page"
|
|
7494
|
+
},
|
|
7495
|
+
"description": "The pages to interpolate"
|
|
7496
|
+
},
|
|
7497
|
+
"context_entities": {
|
|
7498
|
+
"$ref": "#/components/schemas/ContextEntities"
|
|
7499
|
+
}
|
|
7500
|
+
}
|
|
7501
|
+
}
|
|
7502
|
+
}
|
|
7503
|
+
}
|
|
7504
|
+
},
|
|
7505
|
+
"responses": {
|
|
7506
|
+
"200": {
|
|
7507
|
+
"description": "The portal pages have been interpolated successfully.",
|
|
7508
|
+
"content": {
|
|
7509
|
+
"application/json": {
|
|
7510
|
+
"schema": {
|
|
7511
|
+
"type": "array",
|
|
7512
|
+
"items": {
|
|
7513
|
+
"$ref": "#/components/schemas/Page"
|
|
7514
|
+
}
|
|
7515
|
+
}
|
|
7516
|
+
}
|
|
7517
|
+
}
|
|
7518
|
+
},
|
|
7519
|
+
"401": {
|
|
7520
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
7521
|
+
},
|
|
7522
|
+
"403": {
|
|
7523
|
+
"$ref": "#/components/responses/Forbidden"
|
|
7524
|
+
},
|
|
7525
|
+
"500": {
|
|
7526
|
+
"$ref": "#/components/responses/InternalServerError"
|
|
7527
|
+
}
|
|
7528
|
+
}
|
|
7529
|
+
}
|
|
7530
|
+
},
|
|
7467
7531
|
"/v2/portal/pages/default": {
|
|
7468
7532
|
"get": {
|
|
7469
7533
|
"operationId": "getDefaultPages",
|
|
@@ -8544,6 +8608,13 @@
|
|
|
8544
8608
|
"$ref": "#/components/schemas/EntityId",
|
|
8545
8609
|
"description": "List of contact IDs representing the contacts / business partners the invited user should be added to.\nWhen omitted, the user is automatically added to all contacts / business partners linked to the account.\n"
|
|
8546
8610
|
}
|
|
8611
|
+
},
|
|
8612
|
+
"contact_data": {
|
|
8613
|
+
"type": "object",
|
|
8614
|
+
"description": "Additional contact entity fields to set when creating the contact for the invited user.\nThese are mapped directly to contact entity attributes (e.g. first_name, last_name, phone).\n",
|
|
8615
|
+
"additionalProperties": {
|
|
8616
|
+
"type": "string"
|
|
8617
|
+
}
|
|
8547
8618
|
}
|
|
8548
8619
|
}
|
|
8549
8620
|
}
|
|
@@ -9159,6 +9230,7 @@
|
|
|
9159
9230
|
"properties": {
|
|
9160
9231
|
"confirmAccount": {
|
|
9161
9232
|
"$ref": "#/components/schemas/EntityId",
|
|
9233
|
+
"nullable": true,
|
|
9162
9234
|
"description": "ID of the confirmation email template upon registration"
|
|
9163
9235
|
},
|
|
9164
9236
|
"advancedAuth": {
|
|
@@ -9190,10 +9262,12 @@
|
|
|
9190
9262
|
},
|
|
9191
9263
|
"forgotPassword": {
|
|
9192
9264
|
"$ref": "#/components/schemas/EntityId",
|
|
9265
|
+
"nullable": true,
|
|
9193
9266
|
"description": "ID of the email template for forgot password"
|
|
9194
9267
|
},
|
|
9195
9268
|
"invitation": {
|
|
9196
9269
|
"$ref": "#/components/schemas/EntityId",
|
|
9270
|
+
"nullable": true,
|
|
9197
9271
|
"description": "ID of the email template for invitation when the user is just invited to register on the portal."
|
|
9198
9272
|
},
|
|
9199
9273
|
"partnerInvitation": {
|
|
@@ -9203,26 +9277,32 @@
|
|
|
9203
9277
|
},
|
|
9204
9278
|
"onNewQuote": {
|
|
9205
9279
|
"$ref": "#/components/schemas/EntityId",
|
|
9280
|
+
"nullable": true,
|
|
9206
9281
|
"description": "ID of the email template for new quote"
|
|
9207
9282
|
},
|
|
9208
9283
|
"onMapAPendingUser": {
|
|
9209
9284
|
"$ref": "#/components/schemas/EntityId",
|
|
9285
|
+
"nullable": true,
|
|
9210
9286
|
"description": "ID of the email template for mapping a pending portal user with a contact"
|
|
9211
9287
|
},
|
|
9212
9288
|
"onDocUpload": {
|
|
9213
9289
|
"$ref": "#/components/schemas/EntityId",
|
|
9290
|
+
"nullable": true,
|
|
9214
9291
|
"description": "ID of the email template for document upload"
|
|
9215
9292
|
},
|
|
9216
9293
|
"onWorkflowStepAssigned": {
|
|
9217
9294
|
"$ref": "#/components/schemas/EntityId",
|
|
9295
|
+
"nullable": true,
|
|
9218
9296
|
"description": "ID of the email template for workflow step assignment"
|
|
9219
9297
|
},
|
|
9220
9298
|
"confirmEmailUpdate": {
|
|
9221
9299
|
"$ref": "#/components/schemas/EntityId",
|
|
9300
|
+
"nullable": true,
|
|
9222
9301
|
"description": "ID of the email template for setting password while updating email"
|
|
9223
9302
|
},
|
|
9224
9303
|
"verifyCodeToSetPassword": {
|
|
9225
9304
|
"$ref": "#/components/schemas/EntityId",
|
|
9305
|
+
"nullable": true,
|
|
9226
9306
|
"description": "ID of the email template for setting password while verifying code"
|
|
9227
9307
|
}
|
|
9228
9308
|
}
|
|
@@ -9571,6 +9651,17 @@
|
|
|
9571
9651
|
"$ref": "#/components/schemas/EntityId",
|
|
9572
9652
|
"description": "ID of the design used to build the portal"
|
|
9573
9653
|
},
|
|
9654
|
+
"allowed_portal_entities": {
|
|
9655
|
+
"type": "array",
|
|
9656
|
+
"items": {
|
|
9657
|
+
"type": "string"
|
|
9658
|
+
},
|
|
9659
|
+
"description": "Allowed portal entities for the portal",
|
|
9660
|
+
"example": [
|
|
9661
|
+
"contact",
|
|
9662
|
+
"contract"
|
|
9663
|
+
]
|
|
9664
|
+
},
|
|
9574
9665
|
"self_registration_setting": {
|
|
9575
9666
|
"type": "string",
|
|
9576
9667
|
"enum": [
|
|
@@ -9673,6 +9764,48 @@
|
|
|
9673
9764
|
"example": "eu-central-1_CUEQRNbUb",
|
|
9674
9765
|
"description": "Cognito user pool ID"
|
|
9675
9766
|
},
|
|
9767
|
+
"timeouts": {
|
|
9768
|
+
"type": "object",
|
|
9769
|
+
"description": "Timeouts for the cognito tokens",
|
|
9770
|
+
"properties": {
|
|
9771
|
+
"refresh_token": {
|
|
9772
|
+
"type": "integer",
|
|
9773
|
+
"example": 300,
|
|
9774
|
+
"description": "Timeout for the refresh token"
|
|
9775
|
+
},
|
|
9776
|
+
"access_token": {
|
|
9777
|
+
"type": "integer",
|
|
9778
|
+
"example": 300,
|
|
9779
|
+
"description": "Timeout for the access token"
|
|
9780
|
+
},
|
|
9781
|
+
"id_token": {
|
|
9782
|
+
"type": "integer",
|
|
9783
|
+
"example": 300,
|
|
9784
|
+
"description": "Timeout for the id token"
|
|
9785
|
+
}
|
|
9786
|
+
}
|
|
9787
|
+
},
|
|
9788
|
+
"advanced_authentication": {
|
|
9789
|
+
"type": "object",
|
|
9790
|
+
"description": "Advanced authentication settings for the portal",
|
|
9791
|
+
"properties": {
|
|
9792
|
+
"user_activity_logging": {
|
|
9793
|
+
"type": "boolean",
|
|
9794
|
+
"example": true,
|
|
9795
|
+
"description": "Enables detailed logging of user authentication attempts including risk assessments, IP addresses, user agents, and device information. These logs can be used for security analysis and monitoring."
|
|
9796
|
+
},
|
|
9797
|
+
"adaptive_authentication": {
|
|
9798
|
+
"type": "boolean",
|
|
9799
|
+
"example": true,
|
|
9800
|
+
"description": "Automatically assesses risk for every authentication session. Based on risk ratings, can block authentication or require MFA for suspicious sign-in attempts. Helps protect user accounts from potential attacks by adapting security measures in real-time."
|
|
9801
|
+
},
|
|
9802
|
+
"compromised_credentials_detection": {
|
|
9803
|
+
"type": "boolean",
|
|
9804
|
+
"example": true,
|
|
9805
|
+
"description": "Checks passwords against databases of leaked and commonly-guessed passwords during sign-up, sign-in, and password reset. Blocks or warns users when insecure passwords are detected, preventing unauthorized access from compromised credentials."
|
|
9806
|
+
}
|
|
9807
|
+
}
|
|
9808
|
+
},
|
|
9676
9809
|
"password_policy": {
|
|
9677
9810
|
"type": "object",
|
|
9678
9811
|
"description": "Password policy for the portal",
|
|
@@ -10084,7 +10217,8 @@
|
|
|
10084
10217
|
"PAYMENT_WIDGET",
|
|
10085
10218
|
"METER_READING_WIDGET",
|
|
10086
10219
|
"METER_CHART_WIDGET",
|
|
10087
|
-
"CAMPAIGN_WIDGET"
|
|
10220
|
+
"CAMPAIGN_WIDGET",
|
|
10221
|
+
"PRODUCT_RECOMMENDATIONS_WIDGET"
|
|
10088
10222
|
]
|
|
10089
10223
|
},
|
|
10090
10224
|
"listIndex": {
|
|
@@ -10314,6 +10448,22 @@
|
|
|
10314
10448
|
}
|
|
10315
10449
|
]
|
|
10316
10450
|
},
|
|
10451
|
+
"ProductRecommendationsWidget": {
|
|
10452
|
+
"allOf": [
|
|
10453
|
+
{
|
|
10454
|
+
"$ref": "#/components/schemas/TeaserWidget"
|
|
10455
|
+
},
|
|
10456
|
+
{
|
|
10457
|
+
"type": "object",
|
|
10458
|
+
"properties": {
|
|
10459
|
+
"campaign_id": {
|
|
10460
|
+
"type": "string",
|
|
10461
|
+
"description": "ID of the campaign"
|
|
10462
|
+
}
|
|
10463
|
+
}
|
|
10464
|
+
}
|
|
10465
|
+
]
|
|
10466
|
+
},
|
|
10317
10467
|
"PortalWidget": {
|
|
10318
10468
|
"anyOf": [
|
|
10319
10469
|
{
|
|
@@ -10342,6 +10492,9 @@
|
|
|
10342
10492
|
},
|
|
10343
10493
|
{
|
|
10344
10494
|
"$ref": "#/components/schemas/CampaignWidget"
|
|
10495
|
+
},
|
|
10496
|
+
{
|
|
10497
|
+
"$ref": "#/components/schemas/ProductRecommendationsWidget"
|
|
10345
10498
|
}
|
|
10346
10499
|
]
|
|
10347
10500
|
},
|
|
@@ -10709,6 +10862,31 @@
|
|
|
10709
10862
|
"type": "string",
|
|
10710
10863
|
"example": "contact"
|
|
10711
10864
|
},
|
|
10865
|
+
"EntitySlugConfig": {
|
|
10866
|
+
"description": "Per-slug search configuration with scoped targets and templates",
|
|
10867
|
+
"type": "object",
|
|
10868
|
+
"required": [
|
|
10869
|
+
"slug"
|
|
10870
|
+
],
|
|
10871
|
+
"properties": {
|
|
10872
|
+
"slug": {
|
|
10873
|
+
"$ref": "#/components/schemas/EntitySlug"
|
|
10874
|
+
},
|
|
10875
|
+
"targets": {
|
|
10876
|
+
"type": "array",
|
|
10877
|
+
"items": {
|
|
10878
|
+
"type": "string",
|
|
10879
|
+
"format": "uuid"
|
|
10880
|
+
}
|
|
10881
|
+
},
|
|
10882
|
+
"templates": {
|
|
10883
|
+
"type": "object",
|
|
10884
|
+
"additionalProperties": {
|
|
10885
|
+
"type": "string"
|
|
10886
|
+
}
|
|
10887
|
+
}
|
|
10888
|
+
}
|
|
10889
|
+
},
|
|
10712
10890
|
"EntityId": {
|
|
10713
10891
|
"type": "string",
|
|
10714
10892
|
"format": "uuid",
|
|
@@ -10885,6 +11063,9 @@
|
|
|
10885
11063
|
"type": "number",
|
|
10886
11064
|
"description": "Number of entities returned in this response",
|
|
10887
11065
|
"example": 10
|
|
11066
|
+
},
|
|
11067
|
+
"includes": {
|
|
11068
|
+
"$ref": "#/components/schemas/SearchIncludes"
|
|
10888
11069
|
}
|
|
10889
11070
|
}
|
|
10890
11071
|
},
|
|
@@ -10967,6 +11148,22 @@
|
|
|
10967
11148
|
"type": "number",
|
|
10968
11149
|
"description": "Number of groups returned in this response",
|
|
10969
11150
|
"example": 5
|
|
11151
|
+
},
|
|
11152
|
+
"includes": {
|
|
11153
|
+
"$ref": "#/components/schemas/SearchIncludes"
|
|
11154
|
+
}
|
|
11155
|
+
}
|
|
11156
|
+
},
|
|
11157
|
+
"SearchIncludes": {
|
|
11158
|
+
"type": "object",
|
|
11159
|
+
"description": "Side-loaded enrichment data requested via the `include` parameter.",
|
|
11160
|
+
"properties": {
|
|
11161
|
+
"active_workflow": {
|
|
11162
|
+
"type": "object",
|
|
11163
|
+
"description": "The active workflow execution for each entity, keyed by entity ID. Only entities with an active workflow are present.",
|
|
11164
|
+
"additionalProperties": {
|
|
11165
|
+
"type": "object"
|
|
11166
|
+
}
|
|
10970
11167
|
}
|
|
10971
11168
|
}
|
|
10972
11169
|
},
|
|
@@ -12277,9 +12474,16 @@
|
|
|
12277
12474
|
"$ref": "#/components/schemas/EntitySlug"
|
|
12278
12475
|
},
|
|
12279
12476
|
"minItems": 1
|
|
12477
|
+
},
|
|
12478
|
+
{
|
|
12479
|
+
"type": "array",
|
|
12480
|
+
"items": {
|
|
12481
|
+
"$ref": "#/components/schemas/EntitySlugConfig"
|
|
12482
|
+
},
|
|
12483
|
+
"minItems": 1
|
|
12280
12484
|
}
|
|
12281
12485
|
],
|
|
12282
|
-
"description": "
|
|
12486
|
+
"description": "Entity slug, array of slugs, or array of per-slug configurations"
|
|
12283
12487
|
},
|
|
12284
12488
|
"q": {
|
|
12285
12489
|
"type": "string",
|
|
@@ -12443,6 +12647,19 @@
|
|
|
12443
12647
|
"example": [
|
|
12444
12648
|
"3ec28ab5-8598-41ef-9486-b57fca1d5e2a"
|
|
12445
12649
|
]
|
|
12650
|
+
},
|
|
12651
|
+
"include": {
|
|
12652
|
+
"type": "array",
|
|
12653
|
+
"description": "Optional enrichment data to side-load alongside results under the `includes` response key.",
|
|
12654
|
+
"items": {
|
|
12655
|
+
"type": "string",
|
|
12656
|
+
"enum": [
|
|
12657
|
+
"active_workflow"
|
|
12658
|
+
]
|
|
12659
|
+
},
|
|
12660
|
+
"example": [
|
|
12661
|
+
"active_workflow"
|
|
12662
|
+
]
|
|
12446
12663
|
}
|
|
12447
12664
|
},
|
|
12448
12665
|
"required": [
|
|
@@ -14323,6 +14540,11 @@
|
|
|
14323
14540
|
"description": "The schema of the detail page",
|
|
14324
14541
|
"example": "contact"
|
|
14325
14542
|
},
|
|
14543
|
+
"show_in_navigation": {
|
|
14544
|
+
"type": "boolean",
|
|
14545
|
+
"description": "Whether the detail page should appear in the main navigation",
|
|
14546
|
+
"example": false
|
|
14547
|
+
},
|
|
14326
14548
|
"is_public": {
|
|
14327
14549
|
"type": "boolean",
|
|
14328
14550
|
"description": "Whether the page is public",
|
|
@@ -14330,6 +14552,7 @@
|
|
|
14330
14552
|
},
|
|
14331
14553
|
"parentId": {
|
|
14332
14554
|
"type": "string",
|
|
14555
|
+
"nullable": true,
|
|
14333
14556
|
"description": "The id of the parent page",
|
|
14334
14557
|
"example": "c495fef9-eeca-4019-a989-8390dcd9825b"
|
|
14335
14558
|
},
|
|
@@ -14396,6 +14619,17 @@
|
|
|
14396
14619
|
"$ref": "#/components/schemas/EntityId",
|
|
14397
14620
|
"description": "ID of the design used to build the portal"
|
|
14398
14621
|
},
|
|
14622
|
+
"allowed_portal_entities": {
|
|
14623
|
+
"type": "array",
|
|
14624
|
+
"items": {
|
|
14625
|
+
"type": "string"
|
|
14626
|
+
},
|
|
14627
|
+
"description": "Allowed portal entities for the portal",
|
|
14628
|
+
"example": [
|
|
14629
|
+
"contact",
|
|
14630
|
+
"contract"
|
|
14631
|
+
]
|
|
14632
|
+
},
|
|
14399
14633
|
"self_registration_setting": {
|
|
14400
14634
|
"type": "string",
|
|
14401
14635
|
"enum": [
|
|
@@ -14498,6 +14732,48 @@
|
|
|
14498
14732
|
"example": "eu-central-1_CUEQRNbUb",
|
|
14499
14733
|
"description": "Cognito user pool ID"
|
|
14500
14734
|
},
|
|
14735
|
+
"timeouts": {
|
|
14736
|
+
"type": "object",
|
|
14737
|
+
"description": "Timeouts for the cognito tokens",
|
|
14738
|
+
"properties": {
|
|
14739
|
+
"refresh_token": {
|
|
14740
|
+
"type": "integer",
|
|
14741
|
+
"example": 300,
|
|
14742
|
+
"description": "Timeout for the refresh token"
|
|
14743
|
+
},
|
|
14744
|
+
"access_token": {
|
|
14745
|
+
"type": "integer",
|
|
14746
|
+
"example": 300,
|
|
14747
|
+
"description": "Timeout for the access token"
|
|
14748
|
+
},
|
|
14749
|
+
"id_token": {
|
|
14750
|
+
"type": "integer",
|
|
14751
|
+
"example": 300,
|
|
14752
|
+
"description": "Timeout for the id token"
|
|
14753
|
+
}
|
|
14754
|
+
}
|
|
14755
|
+
},
|
|
14756
|
+
"advanced_authentication": {
|
|
14757
|
+
"type": "object",
|
|
14758
|
+
"description": "Advanced authentication settings for the portal",
|
|
14759
|
+
"properties": {
|
|
14760
|
+
"user_activity_logging": {
|
|
14761
|
+
"type": "boolean",
|
|
14762
|
+
"example": true,
|
|
14763
|
+
"description": "Enables detailed logging of user authentication attempts including risk assessments, IP addresses, user agents, and device information. These logs can be used for security analysis and monitoring."
|
|
14764
|
+
},
|
|
14765
|
+
"adaptive_authentication": {
|
|
14766
|
+
"type": "boolean",
|
|
14767
|
+
"example": true,
|
|
14768
|
+
"description": "Automatically assesses risk for every authentication session. Based on risk ratings, can block authentication or require MFA for suspicious sign-in attempts. Helps protect user accounts from potential attacks by adapting security measures in real-time."
|
|
14769
|
+
},
|
|
14770
|
+
"compromised_credentials_detection": {
|
|
14771
|
+
"type": "boolean",
|
|
14772
|
+
"example": true,
|
|
14773
|
+
"description": "Checks passwords against databases of leaked and commonly-guessed passwords during sign-up, sign-in, and password reset. Blocks or warns users when insecure passwords are detected, preventing unauthorized access from compromised credentials."
|
|
14774
|
+
}
|
|
14775
|
+
}
|
|
14776
|
+
},
|
|
14501
14777
|
"password_policy": {
|
|
14502
14778
|
"type": "object",
|
|
14503
14779
|
"description": "Password policy for the portal",
|