@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.
- package/definitions/app-runtime.json +1 -1
- package/definitions/app.json +458 -3
- package/definitions/email-settings-runtime.json +1 -1
- package/definitions/email-settings.json +853 -16
- package/dist/apis/access-token.cjs +6 -6
- package/dist/apis/access-token.js +1 -1
- package/dist/apis/address-suggestions.cjs +6 -6
- package/dist/apis/address-suggestions.js +1 -1
- package/dist/apis/address.cjs +6 -6
- package/dist/apis/address.js +1 -1
- package/dist/apis/ai-agents.cjs +6 -6
- package/dist/apis/ai-agents.js +1 -1
- package/dist/apis/app.cjs +8 -8
- package/dist/apis/app.d.cts +2 -2
- package/dist/apis/app.d.ts +2 -2
- package/dist/apis/app.js +2 -2
- package/dist/apis/audit-logs.cjs +6 -6
- package/dist/apis/audit-logs.js +1 -1
- package/dist/apis/automation.cjs +6 -6
- package/dist/apis/automation.js +1 -1
- package/dist/apis/billing.cjs +6 -6
- package/dist/apis/billing.js +1 -1
- package/dist/apis/blueprint-manifest.cjs +6 -6
- package/dist/apis/blueprint-manifest.js +1 -1
- package/dist/apis/calendar.cjs +6 -6
- package/dist/apis/calendar.js +1 -1
- package/dist/apis/configuration-hub.cjs +6 -6
- package/dist/apis/configuration-hub.js +1 -1
- package/dist/apis/consent.cjs +6 -6
- package/dist/apis/consent.js +1 -1
- package/dist/apis/customer-portal.cjs +6 -6
- package/dist/apis/customer-portal.js +1 -1
- package/dist/apis/dashboard.cjs +6 -6
- package/dist/apis/dashboard.js +1 -1
- package/dist/apis/data-governance.cjs +6 -6
- package/dist/apis/data-governance.js +1 -1
- package/dist/apis/deduplication.cjs +6 -6
- package/dist/apis/deduplication.js +1 -1
- package/dist/apis/design.cjs +6 -6
- package/dist/apis/design.js +1 -1
- package/dist/apis/document.cjs +6 -6
- package/dist/apis/document.js +1 -1
- package/dist/apis/email-settings.cjs +8 -8
- package/dist/apis/email-settings.d.cts +2 -2
- package/dist/apis/email-settings.d.ts +2 -2
- package/dist/apis/email-settings.js +2 -2
- package/dist/apis/email-template.cjs +6 -6
- package/dist/apis/email-template.js +1 -1
- package/dist/apis/entity-mapping.cjs +6 -6
- package/dist/apis/entity-mapping.js +1 -1
- package/dist/apis/entity.cjs +6 -6
- package/dist/apis/entity.js +1 -1
- package/dist/apis/environments.cjs +6 -6
- package/dist/apis/environments.js +1 -1
- package/dist/apis/event-catalog.cjs +6 -6
- package/dist/apis/event-catalog.js +1 -1
- package/dist/apis/file.cjs +6 -6
- package/dist/apis/file.js +1 -1
- package/dist/apis/iban.cjs +6 -6
- package/dist/apis/iban.js +1 -1
- package/dist/apis/integration-toolkit.cjs +6 -6
- package/dist/apis/integration-toolkit.js +1 -1
- package/dist/apis/journey.cjs +6 -6
- package/dist/apis/journey.js +1 -1
- package/dist/apis/kanban.cjs +6 -6
- package/dist/apis/kanban.js +1 -1
- package/dist/apis/message.cjs +6 -6
- package/dist/apis/message.js +1 -1
- package/dist/apis/metering.cjs +6 -6
- package/dist/apis/metering.js +1 -1
- package/dist/apis/notes.cjs +6 -6
- package/dist/apis/notes.js +1 -1
- package/dist/apis/notification.cjs +6 -6
- package/dist/apis/notification.js +1 -1
- package/dist/apis/organization.cjs +6 -6
- package/dist/apis/organization.js +1 -1
- package/dist/apis/partner-directory.cjs +6 -6
- package/dist/apis/partner-directory.js +1 -1
- package/dist/apis/permissions.cjs +6 -6
- package/dist/apis/permissions.js +1 -1
- package/dist/apis/pricing-tier.cjs +6 -6
- package/dist/apis/pricing-tier.js +1 -1
- package/dist/apis/pricing.cjs +6 -6
- package/dist/apis/pricing.js +1 -1
- package/dist/apis/purpose.cjs +6 -6
- package/dist/apis/purpose.js +1 -1
- package/dist/apis/query.cjs +6 -6
- package/dist/apis/query.js +1 -1
- package/dist/apis/sandbox.cjs +6 -6
- package/dist/apis/sandbox.js +1 -1
- package/dist/apis/sharing.cjs +6 -6
- package/dist/apis/sharing.js +1 -1
- package/dist/apis/snapshot.cjs +6 -6
- package/dist/apis/snapshot.js +1 -1
- package/dist/apis/submission.cjs +6 -6
- package/dist/apis/submission.js +1 -1
- package/dist/apis/target.cjs +6 -6
- package/dist/apis/target.js +1 -1
- package/dist/apis/targeting.cjs +6 -6
- package/dist/apis/targeting.js +1 -1
- package/dist/apis/template-variables.cjs +6 -6
- package/dist/apis/template-variables.js +1 -1
- package/dist/apis/user.cjs +6 -6
- package/dist/apis/user.js +1 -1
- package/dist/apis/validation-rules.cjs +6 -6
- package/dist/apis/validation-rules.js +1 -1
- package/dist/apis/webhooks.cjs +6 -6
- package/dist/apis/webhooks.js +1 -1
- package/dist/apis/workflow-definition.cjs +6 -6
- package/dist/apis/workflow-definition.js +1 -1
- package/dist/apis/workflow.cjs +6 -6
- package/dist/apis/workflow.js +1 -1
- package/dist/app-2PHMS5XK.js +7 -0
- package/dist/app-J4RJL6KV.cjs +7 -0
- package/dist/app-runtime-2QBLB4AK.cjs +5 -0
- package/dist/{app-runtime-DBUXZL6E.js → app-runtime-6T473MHJ.js} +1 -1
- package/dist/{app.d-BOR23dso.d.cts → app.d-E1es05Ga.d.cts} +380 -4
- package/dist/{app.d-BOR23dso.d.ts → app.d-E1es05Ga.d.ts} +380 -4
- package/dist/chunk-KHKNOPEX.js +14 -0
- package/dist/{chunk-GB3RZYS2.js → chunk-LNQHT4WZ.js} +4 -4
- package/dist/{chunk-KMVJYNLB.cjs → chunk-W6BCTQLU.cjs} +1 -1
- package/dist/chunk-YNJPE3SS.cjs +14 -0
- package/dist/{chunk-C4HXUTOU.cjs → chunk-YYWUKE4L.cjs} +4 -4
- package/dist/{chunk-Z4H2FZ2K.js → chunk-ZEOU24C3.js} +1 -1
- package/dist/email-settings-ECSU7KWC.js +7 -0
- package/dist/email-settings-RHMYC2KT.cjs +7 -0
- package/dist/{email-settings-runtime-BXRZV4M5.js → email-settings-runtime-4BT72ADN.js} +1 -1
- package/dist/{email-settings-runtime-FWJQBQBK.cjs → email-settings-runtime-J7JLYDMU.cjs} +2 -2
- package/dist/{email-settings.d-UJ0C3jPI.d.ts → email-settings.d-CR4lORuR.d.cts} +721 -2
- package/dist/{email-settings.d-UJ0C3jPI.d.cts → email-settings.d-CR4lORuR.d.ts} +721 -2
- package/dist/index.cjs +12 -12
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/dist/js-yaml-DLCVPJ7G.js +0 -0
- package/docs/app.md +215 -10
- package/docs/email-settings.md +584 -1
- package/package.json +11 -12
- package/definitions/focus-pocus-runtime.json +0 -1
- package/definitions/focus-pocus.json +0 -757
- package/dist/app-74LECFMK.cjs +0 -7
- package/dist/app-GNUHCGPO.js +0 -7
- package/dist/app-runtime-AFNM67YN.cjs +0 -5
- package/dist/chunk-KCPVNRDL.js +0 -14
- package/dist/chunk-YI5YGTAH.cjs +0 -14
- package/dist/email-settings-YJ4X5VFU.cjs +0 -7
- 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
|
|
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
|
|
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
|
|
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 =
|
|
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) =>
|
|
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(
|
|
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(
|
|
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
|
|
604
|
+
return _chunkYYWUKE4Lcjs.createApiHandle.call(void 0, {
|
|
605
605
|
resolveClient: () => resolveClient({ registry, name, state }),
|
|
606
|
-
createClient: () =>
|
|
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) =>
|
|
654
|
+
return (apiName) => _chunkYYWUKE4Lcjs.help.call(void 0, apiName);
|
|
655
655
|
case "openapi":
|
|
656
|
-
return (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 =
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
161
|
+
} from "./chunk-LNQHT4WZ.js";
|
|
162
162
|
import {
|
|
163
163
|
__require
|
|
164
164
|
} from "./chunk-YPSWSI3M.js";
|
package/dist/js-yaml-DLCVPJ7G.js
CHANGED
|
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
|
|
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
|
-
|
|
2395
|
+
change_mode?: { ... }
|
|
2396
|
+
require_password_confirmation?: { ... }
|
|
2397
|
+
explanation?: { ... }
|
|
2337
2398
|
auth?: { ... }
|
|
2338
|
-
|
|
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
|
|
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
|
|