@epilot/sdk 2.15.3 → 2.15.5

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.
Files changed (126) hide show
  1. package/definitions/customer-portal-runtime.json +1 -1
  2. package/definitions/customer-portal.json +313 -8
  3. package/dist/apis/access-token.cjs +6 -6
  4. package/dist/apis/access-token.js +1 -1
  5. package/dist/apis/address-suggestions.cjs +6 -6
  6. package/dist/apis/address-suggestions.js +1 -1
  7. package/dist/apis/address.cjs +6 -6
  8. package/dist/apis/address.js +1 -1
  9. package/dist/apis/ai-agents.cjs +6 -6
  10. package/dist/apis/ai-agents.js +1 -1
  11. package/dist/apis/app.cjs +6 -6
  12. package/dist/apis/app.js +1 -1
  13. package/dist/apis/audit-logs.cjs +6 -6
  14. package/dist/apis/audit-logs.js +1 -1
  15. package/dist/apis/automation.cjs +6 -6
  16. package/dist/apis/automation.js +1 -1
  17. package/dist/apis/billing.cjs +6 -6
  18. package/dist/apis/billing.js +1 -1
  19. package/dist/apis/blueprint-manifest.cjs +6 -6
  20. package/dist/apis/blueprint-manifest.js +1 -1
  21. package/dist/apis/calendar.cjs +6 -6
  22. package/dist/apis/calendar.js +1 -1
  23. package/dist/apis/configuration-hub.cjs +6 -6
  24. package/dist/apis/configuration-hub.js +1 -1
  25. package/dist/apis/consent.cjs +6 -6
  26. package/dist/apis/consent.js +1 -1
  27. package/dist/apis/customer-portal.cjs +8 -8
  28. package/dist/apis/customer-portal.d.cts +2 -2
  29. package/dist/apis/customer-portal.d.ts +2 -2
  30. package/dist/apis/customer-portal.js +2 -2
  31. package/dist/apis/dashboard.cjs +6 -6
  32. package/dist/apis/dashboard.js +1 -1
  33. package/dist/apis/data-governance.cjs +6 -6
  34. package/dist/apis/data-governance.js +1 -1
  35. package/dist/apis/deduplication.cjs +6 -6
  36. package/dist/apis/deduplication.js +1 -1
  37. package/dist/apis/design.cjs +6 -6
  38. package/dist/apis/design.js +1 -1
  39. package/dist/apis/document.cjs +6 -6
  40. package/dist/apis/document.js +1 -1
  41. package/dist/apis/email-settings.cjs +6 -6
  42. package/dist/apis/email-settings.js +1 -1
  43. package/dist/apis/email-template.cjs +6 -6
  44. package/dist/apis/email-template.js +1 -1
  45. package/dist/apis/entity-mapping.cjs +6 -6
  46. package/dist/apis/entity-mapping.js +1 -1
  47. package/dist/apis/entity.cjs +6 -6
  48. package/dist/apis/entity.js +1 -1
  49. package/dist/apis/environments.cjs +6 -6
  50. package/dist/apis/environments.js +1 -1
  51. package/dist/apis/event-catalog.cjs +6 -6
  52. package/dist/apis/event-catalog.js +1 -1
  53. package/dist/apis/file.cjs +6 -6
  54. package/dist/apis/file.js +1 -1
  55. package/dist/apis/iban.cjs +6 -6
  56. package/dist/apis/iban.js +1 -1
  57. package/dist/apis/integration-toolkit.cjs +6 -6
  58. package/dist/apis/integration-toolkit.js +1 -1
  59. package/dist/apis/journey.cjs +6 -6
  60. package/dist/apis/journey.js +1 -1
  61. package/dist/apis/kanban.cjs +6 -6
  62. package/dist/apis/kanban.js +1 -1
  63. package/dist/apis/message.cjs +6 -6
  64. package/dist/apis/message.js +1 -1
  65. package/dist/apis/metering.cjs +6 -6
  66. package/dist/apis/metering.js +1 -1
  67. package/dist/apis/notes.cjs +6 -6
  68. package/dist/apis/notes.js +1 -1
  69. package/dist/apis/notification.cjs +6 -6
  70. package/dist/apis/notification.js +1 -1
  71. package/dist/apis/organization.cjs +6 -6
  72. package/dist/apis/organization.js +1 -1
  73. package/dist/apis/partner-directory.cjs +6 -6
  74. package/dist/apis/partner-directory.js +1 -1
  75. package/dist/apis/permissions.cjs +6 -6
  76. package/dist/apis/permissions.js +1 -1
  77. package/dist/apis/pricing-tier.cjs +6 -6
  78. package/dist/apis/pricing-tier.js +1 -1
  79. package/dist/apis/pricing.cjs +6 -6
  80. package/dist/apis/pricing.js +1 -1
  81. package/dist/apis/purpose.cjs +6 -6
  82. package/dist/apis/purpose.js +1 -1
  83. package/dist/apis/query.cjs +6 -6
  84. package/dist/apis/query.js +1 -1
  85. package/dist/apis/sandbox.cjs +6 -6
  86. package/dist/apis/sandbox.js +1 -1
  87. package/dist/apis/sharing.cjs +6 -6
  88. package/dist/apis/sharing.js +1 -1
  89. package/dist/apis/snapshot.cjs +6 -6
  90. package/dist/apis/snapshot.js +1 -1
  91. package/dist/apis/submission.cjs +6 -6
  92. package/dist/apis/submission.js +1 -1
  93. package/dist/apis/target.cjs +6 -6
  94. package/dist/apis/target.js +1 -1
  95. package/dist/apis/targeting.cjs +6 -6
  96. package/dist/apis/targeting.js +1 -1
  97. package/dist/apis/template-variables.cjs +6 -6
  98. package/dist/apis/template-variables.js +1 -1
  99. package/dist/apis/user.cjs +6 -6
  100. package/dist/apis/user.js +1 -1
  101. package/dist/apis/validation-rules.cjs +6 -6
  102. package/dist/apis/validation-rules.js +1 -1
  103. package/dist/apis/webhooks.cjs +6 -6
  104. package/dist/apis/webhooks.js +1 -1
  105. package/dist/apis/workflow-definition.cjs +6 -6
  106. package/dist/apis/workflow-definition.js +1 -1
  107. package/dist/apis/workflow.cjs +6 -6
  108. package/dist/apis/workflow.js +1 -1
  109. package/dist/{chunk-L4XLUNUO.js → chunk-EPDH37RS.js} +1 -1
  110. package/dist/{chunk-OGBOIHHV.cjs → chunk-FZPSCUHJ.cjs} +2 -2
  111. package/dist/{chunk-IZ52TBS7.cjs → chunk-LKV3RKOP.cjs} +1 -1
  112. package/dist/{chunk-47HX62Q6.js → chunk-Y3RQQ4SE.js} +2 -2
  113. package/dist/customer-portal-JDIXJD6C.cjs +7 -0
  114. package/dist/customer-portal-WIRQ7UCN.js +7 -0
  115. package/dist/{customer-portal-runtime-SOZ4QOVZ.cjs → customer-portal-runtime-7WW3YRWJ.cjs} +2 -2
  116. package/dist/{customer-portal-runtime-QM3MLBPV.js → customer-portal-runtime-FZQLCEJQ.js} +1 -1
  117. package/dist/{customer-portal.d-CJgDRoOo.d.cts → customer-portal.d-JVkJjm_e.d.cts} +276 -23
  118. package/dist/{customer-portal.d-CJgDRoOo.d.ts → customer-portal.d-JVkJjm_e.d.ts} +276 -23
  119. package/dist/index.cjs +10 -10
  120. package/dist/index.d.cts +1 -1
  121. package/dist/index.d.ts +1 -1
  122. package/dist/index.js +2 -2
  123. package/docs/customer-portal.md +224 -2
  124. package/package.json +1 -1
  125. package/dist/customer-portal-2KYG4NWA.js +0 -7
  126. package/dist/customer-portal-WAHU36H2.cjs +0 -7
@@ -140,6 +140,7 @@ const { data } = await customerPortalClient.upsertPortal(...)
140
140
  - [`getAutomationContext`](#getautomationcontext)
141
141
  - [`updateWorkflowStepAsDone`](#updateworkflowstepasdone)
142
142
  - [`getEntityWorkflows`](#getentityworkflows)
143
+ - [`getEntityPortalWorkflows`](#getentityportalworkflows)
143
144
  - [`uploadMeterReadingPhoto`](#uploadmeterreadingphoto)
144
145
  - [`createMeterReading`](#createmeterreading)
145
146
  - [`getAllowedMeterReadingRange`](#getallowedmeterreadingrange)
@@ -253,6 +254,9 @@ const { data } = await customerPortalClient.upsertPortal(...)
253
254
  - [`ExternalLink`](#externallink)
254
255
  - [`WorkflowExecution`](#workflowexecution)
255
256
  - [`WorkflowStep`](#workflowstep)
257
+ - [`PortalWorkflow`](#portalworkflow)
258
+ - [`PortalWorkflowTask`](#portalworkflowtask)
259
+ - [`PortalTaskConfig`](#portaltaskconfig)
256
260
  - [`BaseBillingEvent`](#basebillingevent)
257
261
  - [`InstallmentEvent`](#installmentevent)
258
262
  - [`ReimbursementEvent`](#reimbursementevent)
@@ -1774,6 +1778,7 @@ const { data } = await client.getPublicPortalExtensionDetails({
1774
1778
  },
1775
1779
  "hook": {
1776
1780
  "id": "string",
1781
+ "change_mode": "asynchronous",
1777
1782
  "require_password_confirmation": true,
1778
1783
  "explanation": {}
1779
1784
  }
@@ -2008,6 +2013,7 @@ const { data } = await client.getPublicPortalExtensionDetailsV3({
2008
2013
  },
2009
2014
  "hook": {
2010
2015
  "id": "string",
2016
+ "change_mode": "asynchronous",
2011
2017
  "require_password_confirmation": true,
2012
2018
  "explanation": {}
2013
2019
  }
@@ -6440,6 +6446,95 @@ const { data } = await client.getEntityWorkflows({
6440
6446
 
6441
6447
  ---
6442
6448
 
6449
+ ### `getEntityPortalWorkflows`
6450
+
6451
+ Get linearized workflows for an entity
6452
+
6453
+ `GET /v2/portal/entity/{slug}/{id}/workflows/linearized`
6454
+
6455
+ ```ts
6456
+ const { data } = await client.getEntityPortalWorkflows({
6457
+ slug: 'example',
6458
+ id: '123e4567-e89b-12d3-a456-426614174000',
6459
+ })
6460
+ ```
6461
+
6462
+ <details>
6463
+ <summary>Response</summary>
6464
+
6465
+ ```json
6466
+ {
6467
+ "portal_workflows": [
6468
+ {
6469
+ "id": "string",
6470
+ "definition_id": "string",
6471
+ "name": "string",
6472
+ "status": "STARTED",
6473
+ "version": 2,
6474
+ "created_at": "string",
6475
+ "updated_at": "string",
6476
+ "completed_at": "string",
6477
+ "due_date": "string",
6478
+ "assigned_to": ["string"],
6479
+ "contexts": [
6480
+ {
6481
+ "entity_id": "string",
6482
+ "entity_schema": "string",
6483
+ "is_primary": true
6484
+ }
6485
+ ],
6486
+ "is_path_complete": true,
6487
+ "tasks": [
6488
+ {
6489
+ "id": "string",
6490
+ "name": "string",
6491
+ "order": 0,
6492
+ "status": "COMPLETED",
6493
+ "is_active": true,
6494
+ "ecp": {
6495
+ "enabled": true,
6496
+ "label": "string",
6497
+ "description": "string",
6498
+ "journey": {
6499
+ "id": "string",
6500
+ "journeyId": "string",
6501
+ "name": "string",
6502
+ "complete_task_automatically": true
6503
+ }
6504
+ },
6505
+ "installer": {
6506
+ "enabled": true,
6507
+ "label": "string",
6508
+ "description": "string",
6509
+ "journey": {
6510
+ "id": "string",
6511
+ "journeyId": "string",
6512
+ "name": "string",
6513
+ "complete_task_automatically": true
6514
+ }
6515
+ },
6516
+ "journey": {
6517
+ "id": "string",
6518
+ "journeyId": "string",
6519
+ "name": "string",
6520
+ "complete_task_automatically": true
6521
+ },
6522
+ "assigned_to": ["string"],
6523
+ "phase_id": "string",
6524
+ "phase_name": "string",
6525
+ "completed_at": "string",
6526
+ "updated_at": "string"
6527
+ }
6528
+ ]
6529
+ }
6530
+ ]
6531
+ }
6532
+ ```
6533
+
6534
+ </details>
6535
+
6536
+ ---
6537
+
6443
6538
  ### `uploadMeterReadingPhoto`
6444
6539
 
6445
6540
  Upload Meter Reading Photo
@@ -11938,6 +12033,129 @@ type WorkflowExecution = Record<string, unknown>
11938
12033
  type WorkflowStep = Record<string, unknown>
11939
12034
  ```
11940
12035
 
12036
+ ### `PortalWorkflow`
12037
+
12038
+ A portal-facing projection of a workflow execution (V1 or V2), with the execution
12039
+ graph already linearized by the Workflows API into a flat, ordered list of
12040
+ portal-visible tasks.
12041
+
12042
+
12043
+ ```ts
12044
+ type PortalWorkflow = {
12045
+ id: string
12046
+ definition_id?: string
12047
+ name: string
12048
+ status: "STARTED" | "DONE" | "CLOSED"
12049
+ version: 2 | 3
12050
+ created_at?: string
12051
+ updated_at?: string
12052
+ completed_at?: string
12053
+ due_date?: string
12054
+ assigned_to?: string[]
12055
+ contexts?: Array<{
12056
+ entity_id?: string
12057
+ entity_schema?: string
12058
+ is_primary?: boolean
12059
+ }>
12060
+ is_path_complete: boolean
12061
+ tasks: Array<{
12062
+ id: string
12063
+ name: string
12064
+ order: number
12065
+ status: "COMPLETED" | "SKIPPED" | "IN_PROGRESS" | "PENDING"
12066
+ is_active: boolean
12067
+ ecp?: {
12068
+ enabled?: { ... }
12069
+ label?: { ... }
12070
+ description?: { ... }
12071
+ journey?: { ... }
12072
+ }
12073
+ installer?: {
12074
+ enabled?: { ... }
12075
+ label?: { ... }
12076
+ description?: { ... }
12077
+ journey?: { ... }
12078
+ }
12079
+ journey?: {
12080
+ id?: { ... }
12081
+ journeyId?: { ... }
12082
+ name?: { ... }
12083
+ complete_task_automatically?: { ... }
12084
+ }
12085
+ assigned_to?: string[]
12086
+ phase_id?: string
12087
+ phase_name?: string
12088
+ completed_at?: string
12089
+ updated_at?: string
12090
+ }>
12091
+ }
12092
+ ```
12093
+
12094
+ ### `PortalWorkflowTask`
12095
+
12096
+ A single portal-visible task of a linearized workflow execution
12097
+
12098
+ ```ts
12099
+ type PortalWorkflowTask = {
12100
+ id: string
12101
+ name: string
12102
+ order: number
12103
+ status: "COMPLETED" | "SKIPPED" | "IN_PROGRESS" | "PENDING"
12104
+ is_active: boolean
12105
+ ecp?: {
12106
+ enabled?: boolean
12107
+ label?: string
12108
+ description?: string
12109
+ journey?: {
12110
+ id?: { ... }
12111
+ journeyId?: { ... }
12112
+ name?: { ... }
12113
+ complete_task_automatically?: { ... }
12114
+ }
12115
+ }
12116
+ installer?: {
12117
+ enabled?: boolean
12118
+ label?: string
12119
+ description?: string
12120
+ journey?: {
12121
+ id?: { ... }
12122
+ journeyId?: { ... }
12123
+ name?: { ... }
12124
+ complete_task_automatically?: { ... }
12125
+ }
12126
+ }
12127
+ journey?: {
12128
+ id?: string
12129
+ journeyId?: string
12130
+ name?: string
12131
+ complete_task_automatically?: boolean
12132
+ }
12133
+ assigned_to?: string[]
12134
+ phase_id?: string
12135
+ phase_name?: string
12136
+ completed_at?: string
12137
+ updated_at?: string
12138
+ }
12139
+ ```
12140
+
12141
+ ### `PortalTaskConfig`
12142
+
12143
+ Portal-specific (ECP / installer) display config of a workflow task
12144
+
12145
+ ```ts
12146
+ type PortalTaskConfig = {
12147
+ enabled?: boolean
12148
+ label?: string
12149
+ description?: string
12150
+ journey?: {
12151
+ id?: string
12152
+ journeyId?: string
12153
+ name?: string
12154
+ complete_task_automatically?: boolean
12155
+ }
12156
+ }
12157
+ ```
12158
+
11941
12159
  ### `BaseBillingEvent`
11942
12160
 
11943
12161
  A base billing event to be inherited by all billing events.
@@ -12302,8 +12520,8 @@ type PublicExtensionCapabilities = {
12302
12520
  }
12303
12521
  hook?: {
12304
12522
  id?: { ... }
12523
+ change_mode?: { ... }
12305
12524
  require_password_confirmation?: { ... }
12306
- explanation?: { ... }
12307
12525
  // ...
12308
12526
  }
12309
12527
  ```
@@ -12323,6 +12541,7 @@ type PublicSelfManagementExplanation = {
12323
12541
  ```ts
12324
12542
  type PublicChangeEmailDetails = {
12325
12543
  id?: string
12544
+ change_mode?: "synchronous" | "asynchronous"
12326
12545
  require_password_confirmation?: boolean
12327
12546
  explanation?: {
12328
12547
  en: string
@@ -12907,11 +13126,13 @@ type ExtensionHookCostDataRetrieval = {
12907
13126
 
12908
13127
  ### `ExtensionHookChangeEmail`
12909
13128
 
12910
- Hook that replaces the built-in change email functionality for portal users. When configured, the portal does not change the user's login email itself. Instead, this hook makes an HTTP call to the third-party system, which is expected to handle the email change (most likely by sending the user instr
13129
+ Hook that replaces the built-in change email functionality for portal users. When configured, the portal does not run its own change email flow. Instead, this hook makes an HTTP call to the third-party system, which is expected to handle the email change.
13130
+ The `change_mode` controls what the portal d
12911
13131
 
12912
13132
  ```ts
12913
13133
  type ExtensionHookChangeEmail = {
12914
13134
  type: "changeEmail"
13135
+ change_mode?: "synchronous" | "asynchronous"
12915
13136
  require_password_confirmation?: boolean
12916
13137
  explanation?: {
12917
13138
  en: string
@@ -12992,6 +13213,7 @@ The `deletion_mode` controls what the portal does aft
12992
13213
  type ExtensionHookDeleteAccount = {
12993
13214
  type: "deleteAccount"
12994
13215
  deletion_mode?: "synchronous" | "asynchronous"
13216
+ delete_contact?: "none" | "soft" | "hard"
12995
13217
  explanation?: {
12996
13218
  en: string
12997
13219
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/sdk",
3
- "version": "2.15.3",
3
+ "version": "2.15.5",
4
4
  "description": "JavaScript/TypeScript SDK for epilot APIs",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",