@epilot/sdk 2.15.4 → 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 +280 -3
  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-E7FFVRBQ.cjs → chunk-FZPSCUHJ.cjs} +2 -2
  111. package/dist/{chunk-IZ52TBS7.cjs → chunk-LKV3RKOP.cjs} +1 -1
  112. package/dist/{chunk-7LWNOS5V.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-DsB3qJro.d.cts → customer-portal.d-JVkJjm_e.d.cts} +225 -5
  118. package/dist/{customer-portal.d-DsB3qJro.d.ts → customer-portal.d-JVkJjm_e.d.ts} +225 -5
  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 +216 -0
  124. package/package.json +1 -1
  125. package/dist/customer-portal-7ZNROWXS.js +0 -7
  126. package/dist/customer-portal-ZW4I52KG.cjs +0 -7
package/dist/index.cjs CHANGED
@@ -123,7 +123,7 @@ var _chunkMOLFG5L4cjs = require('./chunk-MOLFG5L4.cjs');
123
123
  var _chunkBM6NCHPLcjs = require('./chunk-BM6NCHPL.cjs');
124
124
 
125
125
 
126
- var _chunkIZ52TBS7cjs = require('./chunk-IZ52TBS7.cjs');
126
+ var _chunkLKV3RKOPcjs = require('./chunk-LKV3RKOP.cjs');
127
127
 
128
128
 
129
129
  var _chunkM2UDF7PYcjs = require('./chunk-M2UDF7PY.cjs');
@@ -158,7 +158,7 @@ var _chunkDVM27A7Ecjs = require('./chunk-DVM27A7E.cjs');
158
158
 
159
159
 
160
160
 
161
- var _chunkE7FFVRBQcjs = require('./chunk-E7FFVRBQ.cjs');
161
+ var _chunkFZPSCUHJcjs = require('./chunk-FZPSCUHJ.cjs');
162
162
 
163
163
 
164
164
  var _chunkNJK5F5TFcjs = require('./chunk-NJK5F5TF.cjs');
@@ -225,7 +225,7 @@ var resolveClient = (params) => {
225
225
  }
226
226
  if (!entry.instance) {
227
227
  const definition = entry.loader();
228
- entry.instance = _chunkE7FFVRBQcjs.createApiClient.call(void 0, {
228
+ entry.instance = _chunkFZPSCUHJcjs.createApiClient.call(void 0, {
229
229
  definition,
230
230
  token: state.token,
231
231
  headers: state.globalHeaders,
@@ -258,7 +258,7 @@ var resetAllClients = (registry) => {
258
258
  };
259
259
 
260
260
  // src/apis/_registry.ts
261
- var expandDef = (mod) => _chunkE7FFVRBQcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
261
+ var expandDef = (mod) => _chunkFZPSCUHJcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
262
262
  var registerBuiltinApis = (registry) => {
263
263
  registerApi({
264
264
  registry,
@@ -323,7 +323,7 @@ var registerBuiltinApis = (registry) => {
323
323
  registerApi({
324
324
  registry,
325
325
  name: "customerPortal",
326
- loader: () => expandDef(_chunkIZ52TBS7cjs.require_customer_portal_runtime.call(void 0, ))
326
+ loader: () => expandDef(_chunkLKV3RKOPcjs.require_customer_portal_runtime.call(void 0, ))
327
327
  });
328
328
  registerApi({
329
329
  registry,
@@ -601,9 +601,9 @@ var createSDK = () => {
601
601
  const available = [...registry.keys()].join(", ");
602
602
  throw new Error(`Unknown API: "${name}". Available: ${available}`);
603
603
  }
604
- return _chunkE7FFVRBQcjs.createApiHandle.call(void 0, {
604
+ return _chunkFZPSCUHJcjs.createApiHandle.call(void 0, {
605
605
  resolveClient: () => resolveClient({ registry, name, state }),
606
- createClient: () => _chunkE7FFVRBQcjs.createApiClient.call(void 0, { definition: entry.loader(), apiName: name }),
606
+ createClient: () => _chunkFZPSCUHJcjs.createApiClient.call(void 0, { definition: entry.loader(), apiName: name }),
607
607
  apiName: name
608
608
  });
609
609
  };
@@ -651,9 +651,9 @@ var createSDK = () => {
651
651
  return interceptorUse;
652
652
  }
653
653
  case "help":
654
- return (apiName) => _chunkE7FFVRBQcjs.help.call(void 0, apiName);
654
+ return (apiName) => _chunkFZPSCUHJcjs.help.call(void 0, apiName);
655
655
  case "openapi":
656
- return (apiName) => _chunkE7FFVRBQcjs.openapi.call(void 0, apiName);
656
+ return (apiName) => _chunkFZPSCUHJcjs.openapi.call(void 0, apiName);
657
657
  case "then":
658
658
  case "catch":
659
659
  case "finally":
@@ -683,4 +683,4 @@ var epilot = createSDK();
683
683
 
684
684
 
685
685
 
686
- exports.applyLargeResponseInterceptor = applyLargeResponseInterceptor; exports.applyRetryInterceptor = applyRetryInterceptor; exports.authorize = _chunkE7FFVRBQcjs.authorize; exports.createSDK = createSDK; exports.epilot = epilot; exports.help = _chunkE7FFVRBQcjs.help; exports.openapi = _chunkE7FFVRBQcjs.openapi;
686
+ exports.applyLargeResponseInterceptor = applyLargeResponseInterceptor; exports.applyRetryInterceptor = applyRetryInterceptor; exports.authorize = _chunkFZPSCUHJcjs.authorize; exports.createSDK = createSDK; exports.epilot = epilot; exports.help = _chunkFZPSCUHJcjs.help; exports.openapi = _chunkFZPSCUHJcjs.openapi;
package/dist/index.d.cts CHANGED
@@ -15,7 +15,7 @@ import { C as Client$8 } from './blueprint-manifest.d-D2I9nhZa.cjs';
15
15
  import { C as Client$9 } from './calendar.d-BEjLDagH.cjs';
16
16
  import { C as Client$a } from './configuration-hub.d-CbSJDa7k.cjs';
17
17
  import { C as Client$b } from './consent.d-C2PROHhX.cjs';
18
- import { C as Client$c } from './customer-portal.d-DsB3qJro.cjs';
18
+ import { C as Client$c } from './customer-portal.d-JVkJjm_e.cjs';
19
19
  import { C as Client$d } from './dashboard.d-CsGcA74I.cjs';
20
20
  import { C as Client$e } from './data-governance.d-BbZ466j5.cjs';
21
21
  import { C as Client$f } from './deduplication.d-D5GYddVu.cjs';
package/dist/index.d.ts CHANGED
@@ -15,7 +15,7 @@ import { C as Client$8 } from './blueprint-manifest.d-D2I9nhZa.js';
15
15
  import { C as Client$9 } from './calendar.d-BEjLDagH.js';
16
16
  import { C as Client$a } from './configuration-hub.d-CbSJDa7k.js';
17
17
  import { C as Client$b } from './consent.d-C2PROHhX.js';
18
- import { C as Client$c } from './customer-portal.d-DsB3qJro.js';
18
+ import { C as Client$c } from './customer-portal.d-JVkJjm_e.js';
19
19
  import { C as Client$d } from './dashboard.d-CsGcA74I.js';
20
20
  import { C as Client$e } from './data-governance.d-BbZ466j5.js';
21
21
  import { C as Client$f } from './deduplication.d-D5GYddVu.js';
package/dist/index.js CHANGED
@@ -123,7 +123,7 @@ import {
123
123
  } from "./chunk-2BPBDRRO.js";
124
124
  import {
125
125
  require_customer_portal_runtime
126
- } from "./chunk-L4XLUNUO.js";
126
+ } from "./chunk-EPDH37RS.js";
127
127
  import {
128
128
  require_dashboard_runtime
129
129
  } from "./chunk-SZMCMLOQ.js";
@@ -158,7 +158,7 @@ import {
158
158
  expand,
159
159
  help,
160
160
  openapi
161
- } from "./chunk-7LWNOS5V.js";
161
+ } from "./chunk-Y3RQQ4SE.js";
162
162
  import {
163
163
  __require
164
164
  } from "./chunk-YPSWSI3M.js";
@@ -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)
@@ -6442,6 +6446,95 @@ const { data } = await client.getEntityWorkflows({
6442
6446
 
6443
6447
  ---
6444
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
+
6445
6538
  ### `uploadMeterReadingPhoto`
6446
6539
 
6447
6540
  Upload Meter Reading Photo
@@ -11940,6 +12033,129 @@ type WorkflowExecution = Record<string, unknown>
11940
12033
  type WorkflowStep = Record<string, unknown>
11941
12034
  ```
11942
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
+
11943
12159
  ### `BaseBillingEvent`
11944
12160
 
11945
12161
  A base billing event to be inherited by all billing events.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/sdk",
3
- "version": "2.15.4",
3
+ "version": "2.15.5",
4
4
  "description": "JavaScript/TypeScript SDK for epilot APIs",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",