@epilot/sdk 2.15.0 → 2.15.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.
Files changed (147) hide show
  1. package/definitions/app-runtime.json +1 -1
  2. package/definitions/app.json +458 -3
  3. package/definitions/email-settings-runtime.json +1 -1
  4. package/definitions/email-settings.json +853 -16
  5. package/dist/apis/access-token.cjs +6 -6
  6. package/dist/apis/access-token.js +1 -1
  7. package/dist/apis/address-suggestions.cjs +6 -6
  8. package/dist/apis/address-suggestions.js +1 -1
  9. package/dist/apis/address.cjs +6 -6
  10. package/dist/apis/address.js +1 -1
  11. package/dist/apis/ai-agents.cjs +6 -6
  12. package/dist/apis/ai-agents.js +1 -1
  13. package/dist/apis/app.cjs +8 -8
  14. package/dist/apis/app.d.cts +2 -2
  15. package/dist/apis/app.d.ts +2 -2
  16. package/dist/apis/app.js +2 -2
  17. package/dist/apis/audit-logs.cjs +6 -6
  18. package/dist/apis/audit-logs.js +1 -1
  19. package/dist/apis/automation.cjs +6 -6
  20. package/dist/apis/automation.js +1 -1
  21. package/dist/apis/billing.cjs +6 -6
  22. package/dist/apis/billing.js +1 -1
  23. package/dist/apis/blueprint-manifest.cjs +6 -6
  24. package/dist/apis/blueprint-manifest.js +1 -1
  25. package/dist/apis/calendar.cjs +6 -6
  26. package/dist/apis/calendar.js +1 -1
  27. package/dist/apis/configuration-hub.cjs +6 -6
  28. package/dist/apis/configuration-hub.js +1 -1
  29. package/dist/apis/consent.cjs +6 -6
  30. package/dist/apis/consent.js +1 -1
  31. package/dist/apis/customer-portal.cjs +6 -6
  32. package/dist/apis/customer-portal.js +1 -1
  33. package/dist/apis/dashboard.cjs +6 -6
  34. package/dist/apis/dashboard.js +1 -1
  35. package/dist/apis/data-governance.cjs +6 -6
  36. package/dist/apis/data-governance.js +1 -1
  37. package/dist/apis/deduplication.cjs +6 -6
  38. package/dist/apis/deduplication.js +1 -1
  39. package/dist/apis/design.cjs +6 -6
  40. package/dist/apis/design.js +1 -1
  41. package/dist/apis/document.cjs +6 -6
  42. package/dist/apis/document.js +1 -1
  43. package/dist/apis/email-settings.cjs +8 -8
  44. package/dist/apis/email-settings.d.cts +2 -2
  45. package/dist/apis/email-settings.d.ts +2 -2
  46. package/dist/apis/email-settings.js +2 -2
  47. package/dist/apis/email-template.cjs +6 -6
  48. package/dist/apis/email-template.js +1 -1
  49. package/dist/apis/entity-mapping.cjs +6 -6
  50. package/dist/apis/entity-mapping.js +1 -1
  51. package/dist/apis/entity.cjs +6 -6
  52. package/dist/apis/entity.js +1 -1
  53. package/dist/apis/environments.cjs +6 -6
  54. package/dist/apis/environments.js +1 -1
  55. package/dist/apis/event-catalog.cjs +6 -6
  56. package/dist/apis/event-catalog.js +1 -1
  57. package/dist/apis/file.cjs +6 -6
  58. package/dist/apis/file.js +1 -1
  59. package/dist/apis/iban.cjs +6 -6
  60. package/dist/apis/iban.js +1 -1
  61. package/dist/apis/integration-toolkit.cjs +6 -6
  62. package/dist/apis/integration-toolkit.js +1 -1
  63. package/dist/apis/journey.cjs +6 -6
  64. package/dist/apis/journey.js +1 -1
  65. package/dist/apis/kanban.cjs +6 -6
  66. package/dist/apis/kanban.js +1 -1
  67. package/dist/apis/message.cjs +6 -6
  68. package/dist/apis/message.js +1 -1
  69. package/dist/apis/metering.cjs +6 -6
  70. package/dist/apis/metering.js +1 -1
  71. package/dist/apis/notes.cjs +6 -6
  72. package/dist/apis/notes.js +1 -1
  73. package/dist/apis/notification.cjs +6 -6
  74. package/dist/apis/notification.js +1 -1
  75. package/dist/apis/organization.cjs +6 -6
  76. package/dist/apis/organization.js +1 -1
  77. package/dist/apis/partner-directory.cjs +6 -6
  78. package/dist/apis/partner-directory.js +1 -1
  79. package/dist/apis/permissions.cjs +6 -6
  80. package/dist/apis/permissions.js +1 -1
  81. package/dist/apis/pricing-tier.cjs +6 -6
  82. package/dist/apis/pricing-tier.js +1 -1
  83. package/dist/apis/pricing.cjs +6 -6
  84. package/dist/apis/pricing.js +1 -1
  85. package/dist/apis/purpose.cjs +6 -6
  86. package/dist/apis/purpose.js +1 -1
  87. package/dist/apis/query.cjs +6 -6
  88. package/dist/apis/query.js +1 -1
  89. package/dist/apis/sandbox.cjs +6 -6
  90. package/dist/apis/sandbox.js +1 -1
  91. package/dist/apis/sharing.cjs +6 -6
  92. package/dist/apis/sharing.js +1 -1
  93. package/dist/apis/snapshot.cjs +6 -6
  94. package/dist/apis/snapshot.js +1 -1
  95. package/dist/apis/submission.cjs +6 -6
  96. package/dist/apis/submission.js +1 -1
  97. package/dist/apis/target.cjs +6 -6
  98. package/dist/apis/target.js +1 -1
  99. package/dist/apis/targeting.cjs +6 -6
  100. package/dist/apis/targeting.js +1 -1
  101. package/dist/apis/template-variables.cjs +6 -6
  102. package/dist/apis/template-variables.js +1 -1
  103. package/dist/apis/user.cjs +6 -6
  104. package/dist/apis/user.js +1 -1
  105. package/dist/apis/validation-rules.cjs +6 -6
  106. package/dist/apis/validation-rules.js +1 -1
  107. package/dist/apis/webhooks.cjs +6 -6
  108. package/dist/apis/webhooks.js +1 -1
  109. package/dist/apis/workflow-definition.cjs +6 -6
  110. package/dist/apis/workflow-definition.js +1 -1
  111. package/dist/apis/workflow.cjs +6 -6
  112. package/dist/apis/workflow.js +1 -1
  113. package/dist/app-2PHMS5XK.js +7 -0
  114. package/dist/app-J4RJL6KV.cjs +7 -0
  115. package/dist/app-runtime-2QBLB4AK.cjs +5 -0
  116. package/dist/{app-runtime-DBUXZL6E.js → app-runtime-6T473MHJ.js} +1 -1
  117. package/dist/{app.d-BOR23dso.d.cts → app.d-E1es05Ga.d.cts} +380 -4
  118. package/dist/{app.d-BOR23dso.d.ts → app.d-E1es05Ga.d.ts} +380 -4
  119. package/dist/chunk-KHKNOPEX.js +14 -0
  120. package/dist/{chunk-GB3RZYS2.js → chunk-LNQHT4WZ.js} +4 -4
  121. package/dist/{chunk-KMVJYNLB.cjs → chunk-W6BCTQLU.cjs} +1 -1
  122. package/dist/chunk-YNJPE3SS.cjs +14 -0
  123. package/dist/{chunk-C4HXUTOU.cjs → chunk-YYWUKE4L.cjs} +4 -4
  124. package/dist/{chunk-Z4H2FZ2K.js → chunk-ZEOU24C3.js} +1 -1
  125. package/dist/email-settings-ECSU7KWC.js +7 -0
  126. package/dist/email-settings-RHMYC2KT.cjs +7 -0
  127. package/dist/{email-settings-runtime-BXRZV4M5.js → email-settings-runtime-4BT72ADN.js} +1 -1
  128. package/dist/{email-settings-runtime-FWJQBQBK.cjs → email-settings-runtime-J7JLYDMU.cjs} +2 -2
  129. package/dist/{email-settings.d-UJ0C3jPI.d.ts → email-settings.d-CR4lORuR.d.cts} +721 -2
  130. package/dist/{email-settings.d-UJ0C3jPI.d.cts → email-settings.d-CR4lORuR.d.ts} +721 -2
  131. package/dist/index.cjs +12 -12
  132. package/dist/index.d.cts +2 -2
  133. package/dist/index.d.ts +2 -2
  134. package/dist/index.js +3 -3
  135. package/dist/js-yaml-DLCVPJ7G.js +0 -0
  136. package/docs/app.md +215 -10
  137. package/docs/email-settings.md +584 -1
  138. package/package.json +11 -12
  139. package/definitions/focus-pocus-runtime.json +0 -1
  140. package/definitions/focus-pocus.json +0 -757
  141. package/dist/app-74LECFMK.cjs +0 -7
  142. package/dist/app-GNUHCGPO.js +0 -7
  143. package/dist/app-runtime-AFNM67YN.cjs +0 -5
  144. package/dist/chunk-KCPVNRDL.js +0 -14
  145. package/dist/chunk-YI5YGTAH.cjs +0 -14
  146. package/dist/email-settings-YJ4X5VFU.cjs +0 -7
  147. package/dist/email-settings-YUK3DXFJ.js +0 -7
package/dist/index.cjs CHANGED
@@ -93,7 +93,7 @@ var _chunkWHXYES2Dcjs = require('./chunk-WHXYES2D.cjs');
93
93
  var _chunkM56QQHVAcjs = require('./chunk-M56QQHVA.cjs');
94
94
 
95
95
 
96
- var _chunkYI5YGTAHcjs = require('./chunk-YI5YGTAH.cjs');
96
+ var _chunkYNJPE3SScjs = require('./chunk-YNJPE3SS.cjs');
97
97
 
98
98
 
99
99
  var _chunkK2UZPY6Ucjs = require('./chunk-K2UZPY6U.cjs');
@@ -144,7 +144,7 @@ var _chunkT67ZXTVGcjs = require('./chunk-T67ZXTVG.cjs');
144
144
  var _chunkYEBEA6XUcjs = require('./chunk-YEBEA6XU.cjs');
145
145
 
146
146
 
147
- var _chunkKMVJYNLBcjs = require('./chunk-KMVJYNLB.cjs');
147
+ var _chunkW6BCTQLUcjs = require('./chunk-W6BCTQLU.cjs');
148
148
 
149
149
 
150
150
  var _chunkRUZRPIHWcjs = require('./chunk-RUZRPIHW.cjs');
@@ -158,7 +158,7 @@ var _chunkDVM27A7Ecjs = require('./chunk-DVM27A7E.cjs');
158
158
 
159
159
 
160
160
 
161
- var _chunkC4HXUTOUcjs = require('./chunk-C4HXUTOU.cjs');
161
+ var _chunkYYWUKE4Lcjs = require('./chunk-YYWUKE4L.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 = _chunkC4HXUTOUcjs.createApiClient.call(void 0, {
228
+ entry.instance = _chunkYYWUKE4Lcjs.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) => _chunkC4HXUTOUcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
261
+ var expandDef = (mod) => _chunkYYWUKE4Lcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
262
262
  var registerBuiltinApis = (registry) => {
263
263
  registerApi({
264
264
  registry,
@@ -283,7 +283,7 @@ var registerBuiltinApis = (registry) => {
283
283
  registerApi({
284
284
  registry,
285
285
  name: "app",
286
- loader: () => expandDef(_chunkKMVJYNLBcjs.require_app_runtime.call(void 0, ))
286
+ loader: () => expandDef(_chunkW6BCTQLUcjs.require_app_runtime.call(void 0, ))
287
287
  });
288
288
  registerApi({
289
289
  registry,
@@ -353,7 +353,7 @@ var registerBuiltinApis = (registry) => {
353
353
  registerApi({
354
354
  registry,
355
355
  name: "emailSettings",
356
- loader: () => expandDef(_chunkYI5YGTAHcjs.require_email_settings_runtime.call(void 0, ))
356
+ loader: () => expandDef(_chunkYNJPE3SScjs.require_email_settings_runtime.call(void 0, ))
357
357
  });
358
358
  registerApi({
359
359
  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 _chunkC4HXUTOUcjs.createApiHandle.call(void 0, {
604
+ return _chunkYYWUKE4Lcjs.createApiHandle.call(void 0, {
605
605
  resolveClient: () => resolveClient({ registry, name, state }),
606
- createClient: () => _chunkC4HXUTOUcjs.createApiClient.call(void 0, { definition: entry.loader(), apiName: name }),
606
+ createClient: () => _chunkYYWUKE4Lcjs.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) => _chunkC4HXUTOUcjs.help.call(void 0, apiName);
654
+ return (apiName) => _chunkYYWUKE4Lcjs.help.call(void 0, apiName);
655
655
  case "openapi":
656
- return (apiName) => _chunkC4HXUTOUcjs.openapi.call(void 0, apiName);
656
+ return (apiName) => _chunkYYWUKE4Lcjs.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 = _chunkC4HXUTOUcjs.authorize; exports.createSDK = createSDK; exports.epilot = epilot; exports.help = _chunkC4HXUTOUcjs.help; exports.openapi = _chunkC4HXUTOUcjs.openapi;
686
+ exports.applyLargeResponseInterceptor = applyLargeResponseInterceptor; exports.applyRetryInterceptor = applyRetryInterceptor; exports.authorize = _chunkYYWUKE4Lcjs.authorize; exports.createSDK = createSDK; exports.epilot = epilot; exports.help = _chunkYYWUKE4Lcjs.help; exports.openapi = _chunkYYWUKE4Lcjs.openapi;
package/dist/index.d.cts CHANGED
@@ -7,7 +7,7 @@ import { C as Client } from './access-token.d-BhRUc8I-.cjs';
7
7
  import { C as Client$1 } from './address.d-CwAPOVxa.cjs';
8
8
  import { C as Client$2 } from './address-suggestions.d-_YwTOR-9.cjs';
9
9
  import { C as Client$3 } from './ai-agents.d-D-7bTH-9.cjs';
10
- import { C as Client$4 } from './app.d-BOR23dso.cjs';
10
+ import { C as Client$4 } from './app.d-E1es05Ga.cjs';
11
11
  import { C as Client$5 } from './audit-logs.d-BRToFqeX.cjs';
12
12
  import { C as Client$6 } from './automation.d-Beojxb43.cjs';
13
13
  import { C as Client$7 } from './billing.d-N_1F759g.cjs';
@@ -21,7 +21,7 @@ import { C as Client$e } from './data-governance.d-BbZ466j5.cjs';
21
21
  import { C as Client$f } from './deduplication.d-D5GYddVu.cjs';
22
22
  import { C as Client$g } from './design.d-DzSDu8cy.cjs';
23
23
  import { C as Client$h } from './document.d-DN37pjdx.cjs';
24
- import { C as Client$i } from './email-settings.d-UJ0C3jPI.cjs';
24
+ import { C as Client$i } from './email-settings.d-CR4lORuR.cjs';
25
25
  import { C as Client$j } from './email-template.d-gtQkdaXM.cjs';
26
26
  import { C as Client$k } from './entity.d-fospShiN.cjs';
27
27
  import { C as Client$l } from './entity-mapping.d-DKSW3sfy.cjs';
package/dist/index.d.ts CHANGED
@@ -7,7 +7,7 @@ import { C as Client } from './access-token.d-BhRUc8I-.js';
7
7
  import { C as Client$1 } from './address.d-CwAPOVxa.js';
8
8
  import { C as Client$2 } from './address-suggestions.d-_YwTOR-9.js';
9
9
  import { C as Client$3 } from './ai-agents.d-D-7bTH-9.js';
10
- import { C as Client$4 } from './app.d-BOR23dso.js';
10
+ import { C as Client$4 } from './app.d-E1es05Ga.js';
11
11
  import { C as Client$5 } from './audit-logs.d-BRToFqeX.js';
12
12
  import { C as Client$6 } from './automation.d-Beojxb43.js';
13
13
  import { C as Client$7 } from './billing.d-N_1F759g.js';
@@ -21,7 +21,7 @@ import { C as Client$e } from './data-governance.d-BbZ466j5.js';
21
21
  import { C as Client$f } from './deduplication.d-D5GYddVu.js';
22
22
  import { C as Client$g } from './design.d-DzSDu8cy.js';
23
23
  import { C as Client$h } from './document.d-DN37pjdx.js';
24
- import { C as Client$i } from './email-settings.d-UJ0C3jPI.js';
24
+ import { C as Client$i } from './email-settings.d-CR4lORuR.js';
25
25
  import { C as Client$j } from './email-template.d-gtQkdaXM.js';
26
26
  import { C as Client$k } from './entity.d-fospShiN.js';
27
27
  import { C as Client$l } from './entity-mapping.d-DKSW3sfy.js';
package/dist/index.js CHANGED
@@ -93,7 +93,7 @@ import {
93
93
  } from "./chunk-75EI2Q64.js";
94
94
  import {
95
95
  require_email_settings_runtime
96
- } from "./chunk-KCPVNRDL.js";
96
+ } from "./chunk-KHKNOPEX.js";
97
97
  import {
98
98
  require_email_template_runtime
99
99
  } from "./chunk-JJWJLY42.js";
@@ -144,7 +144,7 @@ import {
144
144
  } from "./chunk-BRWY3QHG.js";
145
145
  import {
146
146
  require_app_runtime
147
- } from "./chunk-Z4H2FZ2K.js";
147
+ } from "./chunk-ZEOU24C3.js";
148
148
  import {
149
149
  require_audit_logs_runtime
150
150
  } from "./chunk-RELUU5QZ.js";
@@ -158,7 +158,7 @@ import {
158
158
  expand,
159
159
  help,
160
160
  openapi
161
- } from "./chunk-GB3RZYS2.js";
161
+ } from "./chunk-LNQHT4WZ.js";
162
162
  import {
163
163
  __require
164
164
  } from "./chunk-YPSWSI3M.js";
File without changes
package/docs/app.md CHANGED
@@ -63,6 +63,9 @@ const { data } = await appClient.getPublicFacingComponent(...)
63
63
  **App Proxy**
64
64
  - [`publicProxyGet`](#publicproxyget)
65
65
  - [`publicProxyPost`](#publicproxypost)
66
+ - [`publicProxyPut`](#publicproxyput)
67
+ - [`publicProxyPatch`](#publicproxypatch)
68
+ - [`publicProxyDelete`](#publicproxydelete)
66
69
 
67
70
  **Schemas**
68
71
  - [`Role`](#role)
@@ -103,6 +106,9 @@ const { data } = await appClient.getPublicFacingComponent(...)
103
106
  - [`PortalExtensionHookDataExport`](#portalextensionhookdataexport)
104
107
  - [`PortalExtensionHookVisualizationMetadata`](#portalextensionhookvisualizationmetadata)
105
108
  - [`PortalExtensionHookCostDataRetrieval`](#portalextensionhookcostdataretrieval)
109
+ - [`PortalExtensionHookChangeEmail`](#portalextensionhookchangeemail)
110
+ - [`PortalExtensionHookChangePassword`](#portalextensionhookchangepassword)
111
+ - [`PortalExtensionHookDeleteAccount`](#portalextensionhookdeleteaccount)
106
112
  - [`PortalExtensionSeamlessLink`](#portalextensionseamlesslink)
107
113
  - [`PortalExtensionAuthBlock`](#portalextensionauthblock)
108
114
  - [`PortalExtensionSecureProxy`](#portalextensionsecureproxy)
@@ -1713,6 +1719,60 @@ const { data } = await client.publicProxyPost(
1713
1719
 
1714
1720
  ---
1715
1721
 
1722
+ ### `publicProxyPut`
1723
+
1724
+ Forward a PUT request to a registered proxy target from a public-facing component
1725
+
1726
+ `PUT /v1/public/app/{appId}/proxy/{proxyName}/{path}`
1727
+
1728
+ ```ts
1729
+ const { data } = await client.publicProxyPut(
1730
+ {
1731
+ appId: 'example',
1732
+ proxyName: 'example',
1733
+ path: 'example',
1734
+ },
1735
+ {},
1736
+ )
1737
+ ```
1738
+
1739
+ ---
1740
+
1741
+ ### `publicProxyPatch`
1742
+
1743
+ Forward a PATCH request to a registered proxy target from a public-facing component
1744
+
1745
+ `PATCH /v1/public/app/{appId}/proxy/{proxyName}/{path}`
1746
+
1747
+ ```ts
1748
+ const { data } = await client.publicProxyPatch(
1749
+ {
1750
+ appId: 'example',
1751
+ proxyName: 'example',
1752
+ path: 'example',
1753
+ },
1754
+ {},
1755
+ )
1756
+ ```
1757
+
1758
+ ---
1759
+
1760
+ ### `publicProxyDelete`
1761
+
1762
+ Forward a DELETE request to a registered proxy target from a public-facing component
1763
+
1764
+ `DELETE /v1/public/app/{appId}/proxy/{proxyName}/{path}`
1765
+
1766
+ ```ts
1767
+ const { data } = await client.publicProxyDelete({
1768
+ appId: 'example',
1769
+ proxyName: 'example',
1770
+ path: 'example',
1771
+ })
1772
+ ```
1773
+
1774
+ ---
1775
+
1716
1776
  ## Schemas
1717
1777
 
1718
1778
  ### `Role`
@@ -1902,10 +1962,11 @@ type ApiProxyComponent = {
1902
1962
  component_type: "API_PROXY"
1903
1963
  configuration: {
1904
1964
  name: string
1905
- target: string // uri
1965
+ target: string
1906
1966
  auth_type: "header" | "bearer" | "oauth2" | "none"
1907
1967
  auth_header?: string
1908
1968
  token_url?: string // uri
1969
+ headers?: Record<string, string>
1909
1970
  }
1910
1971
  }
1911
1972
  ```
@@ -2327,17 +2388,24 @@ type PortalExtensionComponent = {
2327
2388
  resolved?: { ... }
2328
2389
  use_static_ips?: { ... }
2329
2390
  secure_proxy?: { ... }
2330
- }>
2331
- links?: Array<{
2391
+ } | {
2332
2392
  id: { ... }
2333
- name: { ... }
2334
- description?: { ... }
2393
+ name?: { ... }
2335
2394
  type: { ... }
2336
- condition?: { ... }
2395
+ change_mode?: { ... }
2396
+ require_password_confirmation?: { ... }
2397
+ explanation?: { ... }
2337
2398
  auth?: { ... }
2338
- redirect: { ... }
2339
- }>
2340
- }
2399
+ call: { ... }
2400
+ resolved?: { ... }
2401
+ secure_proxy?: { ... }
2402
+ } | {
2403
+ id: { ... }
2404
+ name?: { ... }
2405
+ type: { ... }
2406
+ require_new_password?: { ... }
2407
+ explanation?: { ... }
2408
+ // ...
2341
2409
  }
2342
2410
  ```
2343
2411
 
@@ -2819,6 +2887,142 @@ type PortalExtensionHookCostDataRetrieval = {
2819
2887
  }
2820
2888
  ```
2821
2889
 
2890
+ ### `PortalExtensionHookChangeEmail`
2891
+
2892
+ 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.
2893
+ The `change_mode` controls what the portal d
2894
+
2895
+ ```ts
2896
+ type PortalExtensionHookChangeEmail = {
2897
+ id: string
2898
+ name?: {
2899
+ en?: string
2900
+ de: string
2901
+ }
2902
+ type: "changeEmail"
2903
+ change_mode?: "synchronous" | "asynchronous"
2904
+ require_password_confirmation?: boolean
2905
+ explanation?: {
2906
+ en: string
2907
+ }
2908
+ auth?: {
2909
+ method?: string
2910
+ url: string
2911
+ params?: Record<string, string>
2912
+ headers?: Record<string, string>
2913
+ body?: Record<string, unknown>
2914
+ cache?: {
2915
+ key: { ... }
2916
+ ttl: { ... }
2917
+ }
2918
+ }
2919
+ call: {
2920
+ method?: string
2921
+ url: string
2922
+ params?: Record<string, string>
2923
+ headers: Record<string, string>
2924
+ body?: object
2925
+ }
2926
+ resolved?: {
2927
+ error_message_path?: string
2928
+ }
2929
+ secure_proxy?: {
2930
+ integration_id: string // uuid
2931
+ use_case_slug: string
2932
+ }
2933
+ }
2934
+ ```
2935
+
2936
+ ### `PortalExtensionHookChangePassword`
2937
+
2938
+ Hook that replaces the built-in change password functionality for portal users. When configured, the portal does not change the user's password itself. Instead, this hook makes an HTTP call to the third-party system, which is expected to handle the password change (most likely by sending the user in
2939
+
2940
+ ```ts
2941
+ type PortalExtensionHookChangePassword = {
2942
+ id: string
2943
+ name?: {
2944
+ en?: string
2945
+ de: string
2946
+ }
2947
+ type: "changePassword"
2948
+ require_new_password?: boolean
2949
+ explanation?: {
2950
+ en: string
2951
+ }
2952
+ auth?: {
2953
+ method?: string
2954
+ url: string
2955
+ params?: Record<string, string>
2956
+ headers?: Record<string, string>
2957
+ body?: Record<string, unknown>
2958
+ cache?: {
2959
+ key: { ... }
2960
+ ttl: { ... }
2961
+ }
2962
+ }
2963
+ call: {
2964
+ method?: string
2965
+ url: string
2966
+ params?: Record<string, string>
2967
+ headers: Record<string, string>
2968
+ body?: object
2969
+ }
2970
+ resolved?: {
2971
+ error_message_path?: string
2972
+ }
2973
+ secure_proxy?: {
2974
+ integration_id: string // uuid
2975
+ use_case_slug: string
2976
+ }
2977
+ }
2978
+ ```
2979
+
2980
+ ### `PortalExtensionHookDeleteAccount`
2981
+
2982
+ Hook that replaces the built-in delete account functionality for portal users. When configured, the portal does not delete the user itself. Instead, this hook makes an HTTP call to the third-party system, which is expected to handle the deletion.
2983
+ The `deletion_mode` controls what the portal does aft
2984
+
2985
+ ```ts
2986
+ type PortalExtensionHookDeleteAccount = {
2987
+ id: string
2988
+ name?: {
2989
+ en?: string
2990
+ de: string
2991
+ }
2992
+ type: "deleteAccount"
2993
+ deletion_mode?: "synchronous" | "asynchronous"
2994
+ delete_contact?: "none" | "soft" | "hard"
2995
+ explanation?: {
2996
+ en: string
2997
+ }
2998
+ auth?: {
2999
+ method?: string
3000
+ url: string
3001
+ params?: Record<string, string>
3002
+ headers?: Record<string, string>
3003
+ body?: Record<string, unknown>
3004
+ cache?: {
3005
+ key: { ... }
3006
+ ttl: { ... }
3007
+ }
3008
+ }
3009
+ call: {
3010
+ method?: string
3011
+ url: string
3012
+ params?: Record<string, string>
3013
+ headers: Record<string, string>
3014
+ body?: object
3015
+ }
3016
+ resolved?: {
3017
+ error_message_path?: string
3018
+ }
3019
+ secure_proxy?: {
3020
+ integration_id: string // uuid
3021
+ use_case_slug: string
3022
+ }
3023
+ }
3024
+ ```
3025
+
2822
3026
  ### `PortalExtensionSeamlessLink`
2823
3027
 
2824
3028
  ```ts
@@ -3174,10 +3378,11 @@ Configuration for an API proxy component
3174
3378
  ```ts
3175
3379
  type ApiProxyConfig = {
3176
3380
  name: string
3177
- target: string // uri
3381
+ target: string
3178
3382
  auth_type: "header" | "bearer" | "oauth2" | "none"
3179
3383
  auth_header?: string
3180
3384
  token_url?: string // uri
3385
+ headers?: Record<string, string>
3181
3386
  }
3182
3387
  ```
3183
3388