@epilot/sdk 2.1.0-rc.0 → 2.1.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/definitions/app.json +38 -0
- package/definitions/automation.json +2 -37
- package/definitions/blueprint-manifest-runtime.json +1 -1
- package/definitions/blueprint-manifest.json +115 -1
- package/definitions/customer-portal-runtime.json +1 -1
- package/definitions/customer-portal.json +279 -42
- package/definitions/data-management.json +10 -0
- package/definitions/email-template.json +25 -3
- package/definitions/entity.json +205 -3
- package/definitions/erp-integration-runtime.json +1 -1
- package/definitions/erp-integration.json +472 -13
- package/definitions/journey.json +257 -12
- package/definitions/kanban.json +630 -78
- package/definitions/organization-runtime.json +1 -1
- package/definitions/organization.json +614 -51
- package/definitions/workflow.json +40 -0
- package/dist/README-VG67PX4R.js +7 -0
- package/dist/README-W4B35MRN.cjs +7 -0
- package/dist/_index-AMVZBT2K.cjs +99 -0
- package/dist/_index-S6LFD3ER.js +99 -0
- package/dist/access-token-6BJDZSFE.cjs +7 -0
- package/dist/access-token-GSQZLDXR.js +7 -0
- package/dist/address-HA4RMRNQ.cjs +7 -0
- package/dist/address-QVJUGMOG.js +7 -0
- package/dist/address-suggestions-74244BAJ.js +7 -0
- package/dist/address-suggestions-IUQMYF27.cjs +7 -0
- package/dist/ai-agents-IZWFEUSH.js +7 -0
- package/dist/ai-agents-PWHKNRCX.cjs +7 -0
- package/dist/apis/access-token.cjs +10 -13
- package/dist/apis/access-token.js +7 -10
- package/dist/apis/address-suggestions.cjs +10 -13
- package/dist/apis/address-suggestions.js +7 -10
- package/dist/apis/address.cjs +10 -13
- package/dist/apis/address.js +7 -10
- package/dist/apis/ai-agents.cjs +10 -13
- package/dist/apis/ai-agents.js +7 -10
- package/dist/apis/app.cjs +10 -13
- package/dist/apis/app.js +7 -10
- package/dist/apis/audit-logs.cjs +10 -13
- package/dist/apis/audit-logs.js +7 -10
- package/dist/apis/automation.cjs +10 -13
- package/dist/apis/automation.js +7 -10
- package/dist/apis/billing.cjs +10 -13
- package/dist/apis/billing.js +7 -10
- package/dist/apis/blueprint-manifest.cjs +10 -13
- package/dist/apis/blueprint-manifest.js +7 -10
- package/dist/apis/consent.cjs +10 -13
- package/dist/apis/consent.js +7 -10
- package/dist/apis/customer-portal.cjs +10 -13
- package/dist/apis/customer-portal.js +7 -10
- package/dist/apis/dashboard.cjs +10 -13
- package/dist/apis/dashboard.js +7 -10
- package/dist/apis/data-management.cjs +10 -13
- package/dist/apis/data-management.js +7 -10
- package/dist/apis/deduplication.cjs +10 -13
- package/dist/apis/deduplication.js +7 -10
- package/dist/apis/design.cjs +10 -13
- package/dist/apis/design.js +7 -10
- package/dist/apis/document.cjs +10 -13
- package/dist/apis/document.js +7 -10
- package/dist/apis/email-settings.cjs +10 -13
- package/dist/apis/email-settings.js +7 -10
- package/dist/apis/email-template.cjs +10 -13
- package/dist/apis/email-template.js +7 -10
- package/dist/apis/entity-mapping.cjs +10 -13
- package/dist/apis/entity-mapping.js +7 -10
- package/dist/apis/entity.cjs +10 -13
- package/dist/apis/entity.js +7 -10
- package/dist/apis/environments.cjs +10 -13
- package/dist/apis/environments.js +7 -10
- package/dist/apis/erp-integration.cjs +10 -13
- package/dist/apis/erp-integration.js +7 -10
- package/dist/apis/event-catalog.cjs +10 -13
- package/dist/apis/event-catalog.js +7 -10
- package/dist/apis/file.cjs +10 -13
- package/dist/apis/file.js +7 -10
- package/dist/apis/iban.cjs +10 -13
- package/dist/apis/iban.js +7 -10
- package/dist/apis/journey.cjs +10 -13
- package/dist/apis/journey.js +7 -10
- package/dist/apis/kanban.cjs +10 -13
- package/dist/apis/kanban.js +7 -10
- package/dist/apis/message.cjs +10 -13
- package/dist/apis/message.js +7 -10
- package/dist/apis/metering.cjs +10 -13
- package/dist/apis/metering.js +7 -10
- package/dist/apis/notes.cjs +10 -13
- package/dist/apis/notes.js +7 -10
- package/dist/apis/notification.cjs +10 -13
- package/dist/apis/notification.js +7 -10
- package/dist/apis/organization.cjs +10 -13
- package/dist/apis/organization.d.cts +2 -2
- package/dist/apis/organization.d.ts +2 -2
- package/dist/apis/organization.js +7 -10
- package/dist/apis/partner-directory.cjs +10 -13
- package/dist/apis/partner-directory.js +7 -10
- package/dist/apis/permissions.cjs +10 -13
- package/dist/apis/permissions.js +7 -10
- package/dist/apis/pricing-tier.cjs +10 -13
- package/dist/apis/pricing-tier.js +7 -10
- package/dist/apis/pricing.cjs +10 -13
- package/dist/apis/pricing.js +7 -10
- package/dist/apis/purpose.cjs +10 -13
- package/dist/apis/purpose.js +7 -10
- package/dist/apis/sandbox.cjs +10 -13
- package/dist/apis/sandbox.js +7 -10
- package/dist/apis/submission.cjs +10 -13
- package/dist/apis/submission.js +7 -10
- package/dist/apis/targeting.cjs +10 -13
- package/dist/apis/targeting.js +7 -10
- package/dist/apis/template-variables.cjs +10 -13
- package/dist/apis/template-variables.js +7 -10
- package/dist/apis/user.cjs +10 -13
- package/dist/apis/user.js +7 -10
- package/dist/apis/validation-rules.cjs +10 -13
- package/dist/apis/validation-rules.js +7 -10
- package/dist/apis/webhooks.cjs +10 -13
- package/dist/apis/webhooks.js +7 -10
- package/dist/apis/workflow-definition.cjs +10 -13
- package/dist/apis/workflow-definition.js +7 -10
- package/dist/apis/workflow.cjs +10 -13
- package/dist/apis/workflow.js +7 -10
- package/dist/app-IKHWU222.cjs +7 -0
- package/dist/app-VLM3SWKA.js +7 -0
- package/dist/audit-logs-5VXHOQ7S.js +7 -0
- package/dist/audit-logs-D2LFUA2R.cjs +7 -0
- package/dist/automation-3HGCK725.cjs +7 -0
- package/dist/automation-72VGEJCY.js +7 -0
- package/dist/billing-DUWDISHP.cjs +7 -0
- package/dist/billing-IPALEAG2.js +7 -0
- package/dist/blueprint-manifest-CXSCRQ5X.js +7 -0
- package/dist/blueprint-manifest-SHNZPK5O.cjs +7 -0
- package/dist/chunk-2HOJWFQ4.js +14 -0
- package/dist/chunk-372VUPHN.js +14 -0
- package/dist/chunk-3HJEWWPS.cjs +14 -0
- package/dist/chunk-3N67SSL3.js +14 -0
- package/dist/chunk-3XEP56SV.cjs +204 -0
- package/dist/chunk-3ZZ57K3S.cjs +14 -0
- package/dist/chunk-4SWC43JO.cjs +14 -0
- package/dist/chunk-4VFQTSJQ.js +14 -0
- package/dist/chunk-57QIBYDN.js +14 -0
- package/dist/chunk-5SNJAD6F.cjs +14 -0
- package/dist/chunk-73H6TVKN.js +14 -0
- package/dist/chunk-A6JOROUC.cjs +14 -0
- package/dist/chunk-AJKH25H2.cjs +14 -0
- package/dist/chunk-ARWMTXJV.cjs +14 -0
- package/dist/chunk-B3ZGAG7B.js +14 -0
- package/dist/chunk-BH5ZXK4J.cjs +14 -0
- package/dist/chunk-BWFXLUK5.cjs +14 -0
- package/dist/chunk-C6UTZEHH.js +14 -0
- package/dist/chunk-CPKBR34V.js +14 -0
- package/dist/chunk-CWSHYFVZ.js +14 -0
- package/dist/chunk-DJKSULPK.js +14 -0
- package/dist/chunk-DNJ54L2G.js +14 -0
- package/dist/chunk-DY2D2IW5.cjs +14 -0
- package/dist/chunk-E26ZO7QM.cjs +14 -0
- package/dist/chunk-EBCHCYUO.js +14 -0
- package/dist/chunk-EPAIOB5U.cjs +14 -0
- package/dist/chunk-EQZMT2HF.cjs +14 -0
- package/dist/chunk-F376L6PP.cjs +14 -0
- package/dist/chunk-F472YLJG.cjs +14 -0
- package/dist/chunk-FXOX3X7E.cjs +14 -0
- package/dist/chunk-G2REP2VZ.cjs +14 -0
- package/dist/chunk-GLO477NZ.js +14 -0
- package/dist/chunk-H4VSK4KF.js +14 -0
- package/dist/chunk-HPSGM6QP.js +14 -0
- package/dist/chunk-HPYHWTTA.cjs +14 -0
- package/dist/chunk-IH4CMOML.js +14 -0
- package/dist/chunk-IMT3IE5M.cjs +14 -0
- package/dist/chunk-IP2WWEOU.js +14 -0
- package/dist/chunk-IS2VB342.js +14 -0
- package/dist/chunk-ITX53XAZ.js +14 -0
- package/dist/chunk-JXBXDTFG.cjs +14 -0
- package/dist/chunk-K62XK7KU.js +14 -0
- package/dist/chunk-KA3TGFJP.js +14 -0
- package/dist/chunk-KBOVBUBM.js +14 -0
- package/dist/chunk-KPGC2D6E.js +14 -0
- package/dist/chunk-KSXTBGIV.js +14 -0
- package/dist/chunk-LCIJ4TJ4.cjs +14 -0
- package/dist/chunk-LQOLYXGQ.cjs +14 -0
- package/dist/chunk-LSIWCIQV.js +14 -0
- package/dist/chunk-MHNSZ4HE.js +14 -0
- package/dist/chunk-MKX4CKAB.cjs +14 -0
- package/dist/chunk-MRTAFRO7.js +14 -0
- package/dist/chunk-MRZ7LGKZ.js +14 -0
- package/dist/chunk-MSASBR2Y.js +14 -0
- package/dist/chunk-NAWLLC3T.cjs +14 -0
- package/dist/chunk-NJK5F5TF.cjs +21 -0
- package/dist/chunk-NLSZVGHK.cjs +14 -0
- package/dist/chunk-O4LRVGOY.js +14 -0
- package/dist/chunk-OG2DMGU6.cjs +14 -0
- package/dist/chunk-OGQKJTXF.js +14 -0
- package/dist/chunk-PETLAONH.js +14 -0
- package/dist/chunk-PVSS2WPM.cjs +14 -0
- package/dist/chunk-PXITFTJA.cjs +14 -0
- package/dist/chunk-QDVPPRWI.cjs +14 -0
- package/dist/chunk-QKERXNJJ.cjs +14 -0
- package/dist/chunk-QLML3IP5.cjs +14 -0
- package/dist/chunk-QVAJ5JP4.js +14 -0
- package/dist/chunk-RD7E4OSJ.cjs +14 -0
- package/dist/chunk-RWSA3LXE.cjs +14 -0
- package/dist/chunk-RXSS67VI.cjs +14 -0
- package/dist/chunk-S3ZNESMC.cjs +14 -0
- package/dist/chunk-S7NDMDRX.js +14 -0
- package/dist/chunk-SK3VYIZ6.cjs +14 -0
- package/dist/chunk-SMGHAG5C.cjs +14 -0
- package/dist/chunk-T46LODOF.js +14 -0
- package/dist/chunk-TIJWJVKZ.js +14 -0
- package/dist/chunk-TLWCYLNA.js +14 -0
- package/dist/chunk-TRJLYZHD.js +14 -0
- package/dist/chunk-UKKJMCNH.js +14 -0
- package/dist/chunk-ULBEEHG4.js +204 -0
- package/dist/chunk-VGTUK3QD.cjs +14 -0
- package/dist/chunk-VQ7R36AC.js +14 -0
- package/dist/chunk-VVQB5W7U.cjs +14 -0
- package/dist/chunk-VVVATFGK.cjs +14 -0
- package/dist/chunk-WMTYO5OX.cjs +14 -0
- package/dist/chunk-WOSSSFXB.js +14 -0
- package/dist/chunk-WOXXNKTE.js +14 -0
- package/dist/chunk-XKI2OAYV.cjs +14 -0
- package/dist/chunk-XR4QF6KQ.cjs +14 -0
- package/dist/chunk-XYHTQ523.cjs +14 -0
- package/dist/chunk-XZYZLSUO.cjs +14 -0
- package/dist/chunk-YPSWSI3M.js +21 -0
- package/dist/chunk-YYBIU5BQ.js +14 -0
- package/dist/chunk-YZA5WZUS.js +14 -0
- package/dist/chunk-Z4LUE424.cjs +14 -0
- package/dist/chunk-ZV6XYUXS.js +14 -0
- package/dist/consent-CS2ZBZX4.cjs +7 -0
- package/dist/consent-NNYHF2N4.js +7 -0
- package/dist/customer-portal-D3SLPAHZ.js +7 -0
- package/dist/customer-portal-UR3GN4VU.cjs +7 -0
- package/dist/dashboard-UHYR5RTY.cjs +7 -0
- package/dist/dashboard-UTPGXFW5.js +7 -0
- package/dist/data-management-QH2IJ5QV.js +7 -0
- package/dist/data-management-TEFRLGSU.cjs +7 -0
- package/dist/deduplication-ECVAZVVA.cjs +7 -0
- package/dist/deduplication-GYIST22B.js +7 -0
- package/dist/design-KUVXMFFK.cjs +7 -0
- package/dist/design-YKBXRW5C.js +7 -0
- package/dist/document-CY2A2OE7.js +7 -0
- package/dist/document-RYQ7MF6U.cjs +7 -0
- package/dist/email-settings-TQ5GGDYG.js +7 -0
- package/dist/email-settings-TQC34GST.cjs +7 -0
- package/dist/email-template-M2VVL4TI.cjs +7 -0
- package/dist/email-template-WYROV3UG.js +7 -0
- package/dist/entity-FA6PZX6S.js +7 -0
- package/dist/entity-IX5NSHPX.cjs +7 -0
- package/dist/entity-mapping-7J3IAGKQ.js +7 -0
- package/dist/entity-mapping-ZNMFCUKK.cjs +7 -0
- package/dist/environments-E3X6NYGX.js +7 -0
- package/dist/environments-P2JS4F5N.cjs +7 -0
- package/dist/erp-integration-EP2XFEH5.js +7 -0
- package/dist/erp-integration-NNV72VFI.cjs +7 -0
- package/dist/event-catalog-C45ISVMP.cjs +7 -0
- package/dist/event-catalog-D7VJ7WRS.js +7 -0
- package/dist/file-UOWBTDIU.cjs +7 -0
- package/dist/file-XSN3NAVZ.js +7 -0
- package/dist/iban-24GHLFDB.cjs +7 -0
- package/dist/iban-LDKYDVQV.js +7 -0
- package/dist/index.cjs +199 -58
- package/dist/index.d.cts +17 -2
- package/dist/index.d.ts +17 -2
- package/dist/index.js +197 -56
- package/dist/journey-7CKX67M7.js +7 -0
- package/dist/journey-EUZ6MVHG.cjs +7 -0
- package/dist/kanban-CHTH2ZSY.cjs +7 -0
- package/dist/kanban-HI6LL5WY.js +7 -0
- package/dist/message-3XZLJR6R.cjs +7 -0
- package/dist/message-ZNMCS5YH.js +7 -0
- package/dist/metering-DZNZPPY6.cjs +7 -0
- package/dist/metering-KOSCPPKB.js +7 -0
- package/dist/notes-3AO5GXIT.js +7 -0
- package/dist/notes-MPWOQC5J.cjs +7 -0
- package/dist/notification-PZOCUYD5.cjs +7 -0
- package/dist/notification-VWDZRSFZ.js +7 -0
- package/dist/organization-RARYYG2E.cjs +7 -0
- package/dist/organization-ZERPH2IH.js +7 -0
- package/dist/{organization.d-Bd2Hmk8v.d.cts → organization.d-DqwnNxMg.d.cts} +34 -7
- package/dist/{organization.d-Bd2Hmk8v.d.ts → organization.d-DqwnNxMg.d.ts} +34 -7
- package/dist/partner-directory-2XMPQWWX.js +7 -0
- package/dist/partner-directory-WHNTKQ5E.cjs +7 -0
- package/dist/permissions-4T3GFNB4.js +7 -0
- package/dist/permissions-FGBIJNN7.cjs +7 -0
- package/dist/pricing-4Z4TOETA.cjs +7 -0
- package/dist/pricing-C65DTZSX.js +7 -0
- package/dist/pricing-tier-NI35WOUP.cjs +7 -0
- package/dist/pricing-tier-VUOFK5Q7.js +7 -0
- package/dist/purpose-AKOEUHZ4.cjs +7 -0
- package/dist/purpose-RBRV3AQZ.js +7 -0
- package/dist/sandbox-2KN4X66E.cjs +7 -0
- package/dist/sandbox-L2SOOGGR.js +7 -0
- package/dist/submission-7BISSPO6.js +7 -0
- package/dist/submission-Q24BU4GS.cjs +7 -0
- package/dist/targeting-EYGYZD6M.cjs +7 -0
- package/dist/targeting-GEJTJN5Z.js +7 -0
- package/dist/template-variables-OAYS2E3G.cjs +1148 -0
- package/dist/template-variables-VKDJJZUT.js +1148 -0
- package/dist/user-EIEOI3OG.js +7 -0
- package/dist/user-NJJ7XVKB.cjs +7 -0
- package/dist/validation-rules-P6F5P73P.js +7 -0
- package/dist/validation-rules-VDU3CIZV.cjs +7 -0
- package/dist/webhooks-I7JWU34X.cjs +7 -0
- package/dist/webhooks-WPLEHVPX.js +7 -0
- package/dist/workflow-3LLURW3H.js +7 -0
- package/dist/workflow-RAGQDYXT.cjs +7 -0
- package/dist/workflow-definition-B6ELOZUR.cjs +7 -0
- package/dist/workflow-definition-D24CRCK2.js +7 -0
- package/docs/access-token.md +440 -0
- package/docs/address-suggestions.md +256 -0
- package/docs/address.md +284 -0
- package/docs/ai-agents.md +1891 -0
- package/docs/app.md +3388 -0
- package/docs/audit-logs.md +242 -0
- package/docs/automation.md +4044 -0
- package/docs/billing.md +783 -0
- package/docs/blueprint-manifest.md +3234 -0
- package/docs/consent.md +213 -0
- package/docs/customer-portal.md +11399 -0
- package/docs/dashboard.md +640 -0
- package/docs/data-management.md +883 -0
- package/docs/deduplication.md +135 -0
- package/docs/design.md +1273 -0
- package/docs/document.md +590 -0
- package/docs/email-settings.md +1544 -0
- package/docs/email-template.md +1197 -0
- package/docs/entity-mapping.md +2864 -0
- package/docs/entity.md +9595 -0
- package/docs/environments.md +259 -0
- package/docs/erp-integration.md +4572 -0
- package/docs/event-catalog.md +835 -0
- package/docs/file.md +1453 -0
- package/docs/iban.md +61 -0
- package/docs/journey.md +2268 -0
- package/docs/kanban.md +882 -0
- package/docs/message.md +2122 -0
- package/docs/metering.md +1431 -0
- package/docs/notes.md +670 -0
- package/docs/notification.md +1207 -0
- package/docs/organization.md +733 -0
- package/docs/partner-directory.md +1197 -0
- package/docs/permissions.md +1047 -0
- package/docs/pricing-tier.md +81 -0
- package/docs/pricing.md +5923 -0
- package/docs/purpose.md +283 -0
- package/docs/sandbox.md +389 -0
- package/docs/submission.md +195 -0
- package/docs/targeting.md +959 -0
- package/docs/template-variables.md +1141 -0
- package/docs/user.md +2555 -0
- package/docs/validation-rules.md +1597 -0
- package/docs/webhooks.md +996 -0
- package/docs/workflow-definition.md +3842 -0
- package/docs/workflow.md +4465 -0
- package/package.json +3 -2
- package/dist/chunk-XE25WERA.js +0 -125
- package/dist/chunk-XEQMAKGA.cjs +0 -125
|
@@ -0,0 +1,733 @@
|
|
|
1
|
+
# Organization API
|
|
2
|
+
|
|
3
|
+
- **Base URL:** `https://organization-v2.sls.epilot.io`
|
|
4
|
+
- **Full API Docs:** [https://docs.epilot.io/api/organization](https://docs.epilot.io/api/organization)
|
|
5
|
+
|
|
6
|
+
## Usage
|
|
7
|
+
|
|
8
|
+
```ts
|
|
9
|
+
import { epilot } from '@epilot/sdk'
|
|
10
|
+
|
|
11
|
+
epilot.authorize(() => '<token>')
|
|
12
|
+
const { data } = await epilot.organization.getCurrentOrganization(...)
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
### Tree-shakeable import
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
import { getClient, authorize } from '@epilot/sdk/organization'
|
|
19
|
+
|
|
20
|
+
const organizationClient = getClient()
|
|
21
|
+
authorize(organizationClient, () => '<token>')
|
|
22
|
+
const { data } = await organizationClient.getCurrentOrganization(...)
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Operations
|
|
26
|
+
|
|
27
|
+
**Organization**
|
|
28
|
+
- [`getCurrentOrganization`](#getcurrentorganization)
|
|
29
|
+
- [`getOrganization`](#getorganization)
|
|
30
|
+
- [`updateOrganization`](#updateorganization)
|
|
31
|
+
|
|
32
|
+
**Organization Settings**
|
|
33
|
+
- [`getSettings`](#getsettings)
|
|
34
|
+
- [`putSettingsValue`](#putsettingsvalue)
|
|
35
|
+
- [`deleteSettingsValue`](#deletesettingsvalue)
|
|
36
|
+
|
|
37
|
+
**Feature Settings**
|
|
38
|
+
- [`getOrganizationFeatureSettings`](#getorganizationfeaturesettings)
|
|
39
|
+
|
|
40
|
+
**Schemas**
|
|
41
|
+
- [`OrganizationId`](#organizationid)
|
|
42
|
+
- [`Organization`](#organization)
|
|
43
|
+
- [`InternalOrganization`](#internalorganization)
|
|
44
|
+
- [`SettingKey`](#settingkey)
|
|
45
|
+
- [`Settings`](#settings)
|
|
46
|
+
- [`SettingsValue`](#settingsvalue)
|
|
47
|
+
- [`CreateOrganizationRequest`](#createorganizationrequest)
|
|
48
|
+
- [`DataPointsResponse`](#datapointsresponse)
|
|
49
|
+
- [`DataPoint`](#datapoint)
|
|
50
|
+
- [`OrganizationToCleanup`](#organizationtocleanup)
|
|
51
|
+
- [`OrganizationCleanupStatus`](#organizationcleanupstatus)
|
|
52
|
+
- [`HubspotCompany`](#hubspotcompany)
|
|
53
|
+
- [`HubspotCompaniesResponse`](#hubspotcompaniesresponse)
|
|
54
|
+
- [`HubspotOrganizationData`](#hubspotorganizationdata)
|
|
55
|
+
- [`FeatureSettings`](#featuresettings)
|
|
56
|
+
- [`FeatureFlagMetadata`](#featureflagmetadata)
|
|
57
|
+
- [`I18nString`](#i18nstring)
|
|
58
|
+
- [`VisibilityRule`](#visibilityrule)
|
|
59
|
+
|
|
60
|
+
### `getCurrentOrganization`
|
|
61
|
+
|
|
62
|
+
Retrieves the organization associated with the authenticated user's current session.
|
|
63
|
+
|
|
64
|
+
`GET /v2/organization/current`
|
|
65
|
+
|
|
66
|
+
```ts
|
|
67
|
+
const { data } = await client.getCurrentOrganization()
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
<details>
|
|
71
|
+
<summary>Response</summary>
|
|
72
|
+
|
|
73
|
+
```json
|
|
74
|
+
{
|
|
75
|
+
"id": "739224",
|
|
76
|
+
"name": "Epilot",
|
|
77
|
+
"email": "someone@epilot.cloud",
|
|
78
|
+
"phone": "+49123123123",
|
|
79
|
+
"website": "https://epilot.cloud",
|
|
80
|
+
"address": {
|
|
81
|
+
"country": "string",
|
|
82
|
+
"city": "string",
|
|
83
|
+
"postal_code": "string",
|
|
84
|
+
"street": "string",
|
|
85
|
+
"street_number": "string"
|
|
86
|
+
},
|
|
87
|
+
"organization_use": "Production",
|
|
88
|
+
"parent_production_org_id": "string",
|
|
89
|
+
"created_date": "1970-01-01T00:00:00.000Z",
|
|
90
|
+
"logo_url": "https://epilot-playground-organization-data.s3.eu-central-1.amazonaws.com/epilot-logo.png",
|
|
91
|
+
"logo_thumbnail_url": "https://epilot-playground-organization-data.s3.eu-central-1.amazonaws.com/epilot-logo.png",
|
|
92
|
+
"signature": "<p>Thanks</p>",
|
|
93
|
+
"is_unlicensed_org": false,
|
|
94
|
+
"style": {},
|
|
95
|
+
"type": "Vendor",
|
|
96
|
+
"symbol": "EPI",
|
|
97
|
+
"pricing_tier": "professional",
|
|
98
|
+
"free_user_limit": 50,
|
|
99
|
+
"tags": ["test org"]
|
|
100
|
+
}
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
</details>
|
|
104
|
+
|
|
105
|
+
---
|
|
106
|
+
|
|
107
|
+
### `getOrganization`
|
|
108
|
+
|
|
109
|
+
Retrieves detailed information about a specific organization by its unique identifier.
|
|
110
|
+
|
|
111
|
+
`GET /v2/organization/{org_id}`
|
|
112
|
+
|
|
113
|
+
```ts
|
|
114
|
+
const { data } = await client.getOrganization({
|
|
115
|
+
org_id: 'example',
|
|
116
|
+
})
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
<details>
|
|
120
|
+
<summary>Response</summary>
|
|
121
|
+
|
|
122
|
+
```json
|
|
123
|
+
{
|
|
124
|
+
"id": "739224",
|
|
125
|
+
"name": "Epilot",
|
|
126
|
+
"email": "someone@epilot.cloud",
|
|
127
|
+
"phone": "+49123123123",
|
|
128
|
+
"website": "https://epilot.cloud",
|
|
129
|
+
"address": {
|
|
130
|
+
"country": "string",
|
|
131
|
+
"city": "string",
|
|
132
|
+
"postal_code": "string",
|
|
133
|
+
"street": "string",
|
|
134
|
+
"street_number": "string"
|
|
135
|
+
},
|
|
136
|
+
"organization_use": "Production",
|
|
137
|
+
"parent_production_org_id": "string",
|
|
138
|
+
"created_date": "1970-01-01T00:00:00.000Z",
|
|
139
|
+
"logo_url": "https://epilot-playground-organization-data.s3.eu-central-1.amazonaws.com/epilot-logo.png",
|
|
140
|
+
"logo_thumbnail_url": "https://epilot-playground-organization-data.s3.eu-central-1.amazonaws.com/epilot-logo.png",
|
|
141
|
+
"signature": "<p>Thanks</p>",
|
|
142
|
+
"is_unlicensed_org": false,
|
|
143
|
+
"style": {},
|
|
144
|
+
"type": "Vendor",
|
|
145
|
+
"symbol": "EPI",
|
|
146
|
+
"pricing_tier": "professional",
|
|
147
|
+
"free_user_limit": 50,
|
|
148
|
+
"tags": ["test org"]
|
|
149
|
+
}
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
</details>
|
|
153
|
+
|
|
154
|
+
---
|
|
155
|
+
|
|
156
|
+
### `updateOrganization`
|
|
157
|
+
|
|
158
|
+
Updates an organization's profile information.
|
|
159
|
+
|
|
160
|
+
`PATCH /v2/organization/{org_id}`
|
|
161
|
+
|
|
162
|
+
```ts
|
|
163
|
+
const { data } = await client.updateOrganization(
|
|
164
|
+
{
|
|
165
|
+
org_id: 'example',
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
id: '739224',
|
|
169
|
+
name: 'Epilot',
|
|
170
|
+
email: 'someone@epilot.cloud',
|
|
171
|
+
phone: '+49123123123',
|
|
172
|
+
website: 'https://epilot.cloud',
|
|
173
|
+
address: {
|
|
174
|
+
country: 'string',
|
|
175
|
+
city: 'string',
|
|
176
|
+
postal_code: 'string',
|
|
177
|
+
street: 'string',
|
|
178
|
+
street_number: 'string'
|
|
179
|
+
},
|
|
180
|
+
organization_use: 'Production',
|
|
181
|
+
parent_production_org_id: 'string',
|
|
182
|
+
created_date: '1970-01-01T00:00:00.000Z',
|
|
183
|
+
logo_url: 'https://epilot-playground-organization-data.s3.eu-central-1.amazonaws.com/epilot-logo.png',
|
|
184
|
+
logo_thumbnail_url: 'https://epilot-playground-organization-data.s3.eu-central-1.amazonaws.com/epilot-logo.png',
|
|
185
|
+
signature: '<p>Thanks</p>',
|
|
186
|
+
is_unlicensed_org: false,
|
|
187
|
+
style: {},
|
|
188
|
+
type: 'Vendor',
|
|
189
|
+
symbol: 'EPI',
|
|
190
|
+
pricing_tier: 'professional',
|
|
191
|
+
free_user_limit: 50,
|
|
192
|
+
tags: ['test org']
|
|
193
|
+
},
|
|
194
|
+
)
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
<details>
|
|
198
|
+
<summary>Response</summary>
|
|
199
|
+
|
|
200
|
+
```json
|
|
201
|
+
{
|
|
202
|
+
"id": "739224",
|
|
203
|
+
"name": "Epilot",
|
|
204
|
+
"email": "someone@epilot.cloud",
|
|
205
|
+
"phone": "+49123123123",
|
|
206
|
+
"website": "https://epilot.cloud",
|
|
207
|
+
"address": {
|
|
208
|
+
"country": "string",
|
|
209
|
+
"city": "string",
|
|
210
|
+
"postal_code": "string",
|
|
211
|
+
"street": "string",
|
|
212
|
+
"street_number": "string"
|
|
213
|
+
},
|
|
214
|
+
"organization_use": "Production",
|
|
215
|
+
"parent_production_org_id": "string",
|
|
216
|
+
"created_date": "1970-01-01T00:00:00.000Z",
|
|
217
|
+
"logo_url": "https://epilot-playground-organization-data.s3.eu-central-1.amazonaws.com/epilot-logo.png",
|
|
218
|
+
"logo_thumbnail_url": "https://epilot-playground-organization-data.s3.eu-central-1.amazonaws.com/epilot-logo.png",
|
|
219
|
+
"signature": "<p>Thanks</p>",
|
|
220
|
+
"is_unlicensed_org": false,
|
|
221
|
+
"style": {},
|
|
222
|
+
"type": "Vendor",
|
|
223
|
+
"symbol": "EPI",
|
|
224
|
+
"pricing_tier": "professional",
|
|
225
|
+
"free_user_limit": 50,
|
|
226
|
+
"tags": ["test org"]
|
|
227
|
+
}
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
</details>
|
|
231
|
+
|
|
232
|
+
---
|
|
233
|
+
|
|
234
|
+
### `getSettings`
|
|
235
|
+
|
|
236
|
+
Retrieves all configuration settings for an organization.
|
|
237
|
+
|
|
238
|
+
`GET /v2/organization/{org_id}/settings`
|
|
239
|
+
|
|
240
|
+
```ts
|
|
241
|
+
const { data } = await client.getSettings({
|
|
242
|
+
org_id: 'example',
|
|
243
|
+
})
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
<details>
|
|
247
|
+
<summary>Response</summary>
|
|
248
|
+
|
|
249
|
+
```json
|
|
250
|
+
{
|
|
251
|
+
"double_opt_in": {
|
|
252
|
+
"enabled": true
|
|
253
|
+
},
|
|
254
|
+
"email_tracking": {
|
|
255
|
+
"enabled": true,
|
|
256
|
+
"track_opens": true
|
|
257
|
+
},
|
|
258
|
+
"default_language": "de"
|
|
259
|
+
}
|
|
260
|
+
```
|
|
261
|
+
|
|
262
|
+
</details>
|
|
263
|
+
|
|
264
|
+
---
|
|
265
|
+
|
|
266
|
+
### `putSettingsValue`
|
|
267
|
+
|
|
268
|
+
Creates or updates a specific organization setting identified by its key.
|
|
269
|
+
|
|
270
|
+
`PUT /v2/organization/{org_id}/settings/{key}`
|
|
271
|
+
|
|
272
|
+
```ts
|
|
273
|
+
const { data } = await client.putSettingsValue(
|
|
274
|
+
{
|
|
275
|
+
org_id: 'example',
|
|
276
|
+
key: 'example',
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
enabled: true
|
|
280
|
+
},
|
|
281
|
+
)
|
|
282
|
+
```
|
|
283
|
+
|
|
284
|
+
<details>
|
|
285
|
+
<summary>Response</summary>
|
|
286
|
+
|
|
287
|
+
```json
|
|
288
|
+
{
|
|
289
|
+
"enabled": true
|
|
290
|
+
}
|
|
291
|
+
```
|
|
292
|
+
|
|
293
|
+
</details>
|
|
294
|
+
|
|
295
|
+
---
|
|
296
|
+
|
|
297
|
+
### `deleteSettingsValue`
|
|
298
|
+
|
|
299
|
+
Removes a specific organization setting identified by its key.
|
|
300
|
+
|
|
301
|
+
`DELETE /v2/organization/{org_id}/settings/{key}`
|
|
302
|
+
|
|
303
|
+
```ts
|
|
304
|
+
const { data } = await client.deleteSettingsValue({
|
|
305
|
+
org_id: 'example',
|
|
306
|
+
key: 'example',
|
|
307
|
+
})
|
|
308
|
+
```
|
|
309
|
+
|
|
310
|
+
---
|
|
311
|
+
|
|
312
|
+
### `getOrganizationFeatureSettings`
|
|
313
|
+
|
|
314
|
+
Get organization feature settings
|
|
315
|
+
|
|
316
|
+
`GET /v2/organization/feature-settings`
|
|
317
|
+
|
|
318
|
+
```ts
|
|
319
|
+
const { data } = await client.getOrganizationFeatureSettings()
|
|
320
|
+
```
|
|
321
|
+
|
|
322
|
+
---
|
|
323
|
+
|
|
324
|
+
## Schemas
|
|
325
|
+
|
|
326
|
+
### `OrganizationId`
|
|
327
|
+
|
|
328
|
+
Unique identifier for an organization (tenant) in the epilot platform
|
|
329
|
+
|
|
330
|
+
```ts
|
|
331
|
+
type OrganizationId = string
|
|
332
|
+
```
|
|
333
|
+
|
|
334
|
+
### `Organization`
|
|
335
|
+
|
|
336
|
+
Represents an epilot organization (tenant).
|
|
337
|
+
|
|
338
|
+
An organization contains all the configuration, branding, and contact information
|
|
339
|
+
for a tenant account on the epilot platform.
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
```ts
|
|
343
|
+
type Organization = {
|
|
344
|
+
id?: string
|
|
345
|
+
name?: string
|
|
346
|
+
email?: string
|
|
347
|
+
phone?: string
|
|
348
|
+
website?: string
|
|
349
|
+
address?: {
|
|
350
|
+
country?: string
|
|
351
|
+
city?: string
|
|
352
|
+
postal_code?: string
|
|
353
|
+
street?: string
|
|
354
|
+
street_number?: string
|
|
355
|
+
}
|
|
356
|
+
organization_use?: "Production" | "Sandbox"
|
|
357
|
+
parent_production_org_id?: string
|
|
358
|
+
created_date?: string // date-time
|
|
359
|
+
logo_url?: string
|
|
360
|
+
logo_thumbnail_url?: string
|
|
361
|
+
signature?: string
|
|
362
|
+
is_unlicensed_org?: boolean
|
|
363
|
+
style?: Record<string, unknown>
|
|
364
|
+
type?: "Vendor" | "Partner"
|
|
365
|
+
symbol?: string
|
|
366
|
+
pricing_tier?: string
|
|
367
|
+
free_user_limit?: number
|
|
368
|
+
tags?: string[]
|
|
369
|
+
}
|
|
370
|
+
```
|
|
371
|
+
|
|
372
|
+
### `InternalOrganization`
|
|
373
|
+
|
|
374
|
+
Extended organization object with internal-only fields.
|
|
375
|
+
|
|
376
|
+
Includes all fields from the base Organization schema plus additional
|
|
377
|
+
internal metadata used for platform administration and support.
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
```ts
|
|
381
|
+
type InternalOrganization = {
|
|
382
|
+
id?: string
|
|
383
|
+
name?: string
|
|
384
|
+
email?: string
|
|
385
|
+
phone?: string
|
|
386
|
+
website?: string
|
|
387
|
+
address?: {
|
|
388
|
+
country?: string
|
|
389
|
+
city?: string
|
|
390
|
+
postal_code?: string
|
|
391
|
+
street?: string
|
|
392
|
+
street_number?: string
|
|
393
|
+
}
|
|
394
|
+
organization_use?: "Production" | "Sandbox"
|
|
395
|
+
parent_production_org_id?: string
|
|
396
|
+
created_date?: string // date-time
|
|
397
|
+
logo_url?: string
|
|
398
|
+
logo_thumbnail_url?: string
|
|
399
|
+
signature?: string
|
|
400
|
+
is_unlicensed_org?: boolean
|
|
401
|
+
style?: Record<string, unknown>
|
|
402
|
+
type?: "Vendor" | "Partner"
|
|
403
|
+
symbol?: string
|
|
404
|
+
pricing_tier?: string
|
|
405
|
+
free_user_limit?: number
|
|
406
|
+
tags?: string[]
|
|
407
|
+
}
|
|
408
|
+
```
|
|
409
|
+
|
|
410
|
+
### `SettingKey`
|
|
411
|
+
|
|
412
|
+
A unique key identifying an organization setting.
|
|
413
|
+
Common setting keys include: double_opt_in, email_tracking, default_language, workflow_notifications
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
```ts
|
|
417
|
+
type SettingKey = string
|
|
418
|
+
```
|
|
419
|
+
|
|
420
|
+
### `Settings`
|
|
421
|
+
|
|
422
|
+
A key-value map of all organization settings.
|
|
423
|
+
Keys are setting identifiers and values can be any valid JSON type.
|
|
424
|
+
|
|
425
|
+
|
|
426
|
+
```ts
|
|
427
|
+
type Settings = Record<string, unknown>
|
|
428
|
+
```
|
|
429
|
+
|
|
430
|
+
### `SettingsValue`
|
|
431
|
+
|
|
432
|
+
The value of an organization setting.
|
|
433
|
+
Can be any valid JSON type: string, number, boolean, array, or object.
|
|
434
|
+
|
|
435
|
+
|
|
436
|
+
```ts
|
|
437
|
+
type SettingsValue = string | number | boolean | Record<string, unknown>[] | Record<string, unknown>
|
|
438
|
+
```
|
|
439
|
+
|
|
440
|
+
### `CreateOrganizationRequest`
|
|
441
|
+
|
|
442
|
+
Request payload for creating a new organization
|
|
443
|
+
|
|
444
|
+
```ts
|
|
445
|
+
type CreateOrganizationRequest = {
|
|
446
|
+
organization_detail?: {
|
|
447
|
+
name: string
|
|
448
|
+
email_address?: string
|
|
449
|
+
type: string
|
|
450
|
+
organization_use?: "Production" | "Sandbox"
|
|
451
|
+
pricing_tier_id: string
|
|
452
|
+
}
|
|
453
|
+
owner_user?: {
|
|
454
|
+
full_name?: string
|
|
455
|
+
email_address: string
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
```
|
|
459
|
+
|
|
460
|
+
### `DataPointsResponse`
|
|
461
|
+
|
|
462
|
+
List of data point metrics for all organizations
|
|
463
|
+
|
|
464
|
+
```ts
|
|
465
|
+
type DataPointsResponse = Array<{
|
|
466
|
+
id?: number
|
|
467
|
+
max_customer?: number
|
|
468
|
+
actual_customer?: number
|
|
469
|
+
}>
|
|
470
|
+
```
|
|
471
|
+
|
|
472
|
+
### `DataPoint`
|
|
473
|
+
|
|
474
|
+
Data point metrics for a single organization, used for usage tracking and billing
|
|
475
|
+
|
|
476
|
+
```ts
|
|
477
|
+
type DataPoint = {
|
|
478
|
+
id?: number
|
|
479
|
+
max_customer?: number
|
|
480
|
+
actual_customer?: number
|
|
481
|
+
}
|
|
482
|
+
```
|
|
483
|
+
|
|
484
|
+
### `OrganizationToCleanup`
|
|
485
|
+
|
|
486
|
+
Represents an organization that has been marked for deletion and requires cleanup.
|
|
487
|
+
Contains metadata about the deletion request.
|
|
488
|
+
|
|
489
|
+
|
|
490
|
+
```ts
|
|
491
|
+
type OrganizationToCleanup = {
|
|
492
|
+
org_id: string
|
|
493
|
+
deleted_at: string // date-time
|
|
494
|
+
deleted_by: string
|
|
495
|
+
}
|
|
496
|
+
```
|
|
497
|
+
|
|
498
|
+
### `OrganizationCleanupStatus`
|
|
499
|
+
|
|
500
|
+
Records the cleanup status reported by a specific service for an organization.
|
|
501
|
+
Each service that stores organization data reports its cleanup operations here.
|
|
502
|
+
|
|
503
|
+
|
|
504
|
+
```ts
|
|
505
|
+
type OrganizationCleanupStatus = {
|
|
506
|
+
org_id: string
|
|
507
|
+
service_name: string
|
|
508
|
+
operations?: Array<{
|
|
509
|
+
action?: string
|
|
510
|
+
resource?: string
|
|
511
|
+
extra_info?: string | number | boolean | Record<string, unknown>[] | Record<string, unknown>
|
|
512
|
+
}>
|
|
513
|
+
}
|
|
514
|
+
```
|
|
515
|
+
|
|
516
|
+
### `HubspotCompany`
|
|
517
|
+
|
|
518
|
+
Represents a company record from HubSpot CRM synchronized to the epilot data warehouse.
|
|
519
|
+
Used for CRM integration and organization mapping.
|
|
520
|
+
|
|
521
|
+
|
|
522
|
+
```ts
|
|
523
|
+
type HubspotCompany = {
|
|
524
|
+
company_id?: string
|
|
525
|
+
company_name?: string
|
|
526
|
+
domain?: string
|
|
527
|
+
}
|
|
528
|
+
```
|
|
529
|
+
|
|
530
|
+
### `HubspotCompaniesResponse`
|
|
531
|
+
|
|
532
|
+
Response containing a list of HubSpot companies matching the search criteria
|
|
533
|
+
|
|
534
|
+
```ts
|
|
535
|
+
type HubspotCompaniesResponse = {
|
|
536
|
+
results?: Array<{
|
|
537
|
+
company_id?: string
|
|
538
|
+
company_name?: string
|
|
539
|
+
domain?: string
|
|
540
|
+
}>
|
|
541
|
+
total?: number
|
|
542
|
+
}
|
|
543
|
+
```
|
|
544
|
+
|
|
545
|
+
### `HubspotOrganizationData`
|
|
546
|
+
|
|
547
|
+
HubSpot company data associated with an epilot organization.
|
|
548
|
+
Contains business metrics and CRM properties synced from HubSpot.
|
|
549
|
+
|
|
550
|
+
|
|
551
|
+
```ts
|
|
552
|
+
type HubspotOrganizationData = {
|
|
553
|
+
company_id?: string
|
|
554
|
+
company_name?: string
|
|
555
|
+
domain?: string
|
|
556
|
+
current_mrr?: string
|
|
557
|
+
potential_mrr?: string
|
|
558
|
+
company_size?: string
|
|
559
|
+
pricing_tier?: string
|
|
560
|
+
lifecyclestage?: string
|
|
561
|
+
industry?: string
|
|
562
|
+
numberofemployees?: string
|
|
563
|
+
customer_number?: string
|
|
564
|
+
no_of_users?: string
|
|
565
|
+
activation_rate?: string
|
|
566
|
+
active_features?: string
|
|
567
|
+
usecases_implemented?: string
|
|
568
|
+
buyer_journey?: string
|
|
569
|
+
country?: string
|
|
570
|
+
city?: string
|
|
571
|
+
properties?: Record<string, unknown>
|
|
572
|
+
}
|
|
573
|
+
```
|
|
574
|
+
|
|
575
|
+
### `FeatureSettings`
|
|
576
|
+
|
|
577
|
+
Feature settings metadata served to frontend applications.
|
|
578
|
+
|
|
579
|
+
```ts
|
|
580
|
+
type FeatureSettings = {
|
|
581
|
+
version: string
|
|
582
|
+
feature_flags: Array<{
|
|
583
|
+
feature_name: string
|
|
584
|
+
title?: {
|
|
585
|
+
key: { ... }
|
|
586
|
+
default_value?: { ... }
|
|
587
|
+
}
|
|
588
|
+
description?: {
|
|
589
|
+
key: { ... }
|
|
590
|
+
default_value?: { ... }
|
|
591
|
+
}
|
|
592
|
+
badge?: "alpha" | "beta" | "new" | "advanced" | "experiment" | "deprecated"
|
|
593
|
+
confetti?: boolean
|
|
594
|
+
one_way?: boolean
|
|
595
|
+
reverse_checked?: boolean
|
|
596
|
+
is_visible_for_partner?: boolean
|
|
597
|
+
visibility_rules: Array<{
|
|
598
|
+
type: { ... }
|
|
599
|
+
setting_key?: { ... }
|
|
600
|
+
flag_name?: { ... }
|
|
601
|
+
action?: { ... }
|
|
602
|
+
resource?: { ... }
|
|
603
|
+
rule?: { ... }
|
|
604
|
+
rules?: { ... }
|
|
605
|
+
}>
|
|
606
|
+
}>
|
|
607
|
+
}
|
|
608
|
+
```
|
|
609
|
+
|
|
610
|
+
### `FeatureFlagMetadata`
|
|
611
|
+
|
|
612
|
+
Metadata for a single feature flag toggle
|
|
613
|
+
|
|
614
|
+
```ts
|
|
615
|
+
type FeatureFlagMetadata = {
|
|
616
|
+
feature_name: string
|
|
617
|
+
title?: {
|
|
618
|
+
key: string
|
|
619
|
+
default_value?: string
|
|
620
|
+
}
|
|
621
|
+
description?: {
|
|
622
|
+
key: string
|
|
623
|
+
default_value?: string
|
|
624
|
+
}
|
|
625
|
+
badge?: "alpha" | "beta" | "new" | "advanced" | "experiment" | "deprecated"
|
|
626
|
+
confetti?: boolean
|
|
627
|
+
one_way?: boolean
|
|
628
|
+
reverse_checked?: boolean
|
|
629
|
+
is_visible_for_partner?: boolean
|
|
630
|
+
visibility_rules: Array<{
|
|
631
|
+
type: "always" | "never" | "advanced_mode" | "pricing_tier" | "feature_flag" | "permission" | "setting_enabled" | "flag_enabled" | "not" | "and" | "or"
|
|
632
|
+
setting_key?: string
|
|
633
|
+
flag_name?: string
|
|
634
|
+
action?: string
|
|
635
|
+
resource?: string
|
|
636
|
+
rule?: {
|
|
637
|
+
type: { ... }
|
|
638
|
+
setting_key?: { ... }
|
|
639
|
+
flag_name?: { ... }
|
|
640
|
+
action?: { ... }
|
|
641
|
+
resource?: { ... }
|
|
642
|
+
rule?: { ... }
|
|
643
|
+
rules?: { ... }
|
|
644
|
+
}
|
|
645
|
+
rules?: Array<{
|
|
646
|
+
type: { ... }
|
|
647
|
+
setting_key?: { ... }
|
|
648
|
+
flag_name?: { ... }
|
|
649
|
+
action?: { ... }
|
|
650
|
+
resource?: { ... }
|
|
651
|
+
rule?: { ... }
|
|
652
|
+
rules?: { ... }
|
|
653
|
+
}>
|
|
654
|
+
}>
|
|
655
|
+
}
|
|
656
|
+
```
|
|
657
|
+
|
|
658
|
+
### `I18nString`
|
|
659
|
+
|
|
660
|
+
Internationalized string with a translation key and optional default value
|
|
661
|
+
|
|
662
|
+
```ts
|
|
663
|
+
type I18nString = {
|
|
664
|
+
key: string
|
|
665
|
+
default_value?: string
|
|
666
|
+
}
|
|
667
|
+
```
|
|
668
|
+
|
|
669
|
+
### `VisibilityRule`
|
|
670
|
+
|
|
671
|
+
A rule that determines feature visibility. Rules are combined with AND logic
|
|
672
|
+
at the top level. Supports boolean combinators (and, or, not) for complex logic.
|
|
673
|
+
|
|
674
|
+
|
|
675
|
+
```ts
|
|
676
|
+
type VisibilityRule = {
|
|
677
|
+
type: "always" | "never" | "advanced_mode" | "pricing_tier" | "feature_flag" | "permission" | "setting_enabled" | "flag_enabled" | "not" | "and" | "or"
|
|
678
|
+
setting_key?: string
|
|
679
|
+
flag_name?: string
|
|
680
|
+
action?: string
|
|
681
|
+
resource?: string
|
|
682
|
+
rule?: {
|
|
683
|
+
type: "always" | "never" | "advanced_mode" | "pricing_tier" | "feature_flag" | "permission" | "setting_enabled" | "flag_enabled" | "not" | "and" | "or"
|
|
684
|
+
setting_key?: string
|
|
685
|
+
flag_name?: string
|
|
686
|
+
action?: string
|
|
687
|
+
resource?: string
|
|
688
|
+
rule?: {
|
|
689
|
+
type: { ... }
|
|
690
|
+
setting_key?: { ... }
|
|
691
|
+
flag_name?: { ... }
|
|
692
|
+
action?: { ... }
|
|
693
|
+
resource?: { ... }
|
|
694
|
+
rule?: { ... }
|
|
695
|
+
rules?: { ... }
|
|
696
|
+
}
|
|
697
|
+
rules?: Array<{
|
|
698
|
+
type: { ... }
|
|
699
|
+
setting_key?: { ... }
|
|
700
|
+
flag_name?: { ... }
|
|
701
|
+
action?: { ... }
|
|
702
|
+
resource?: { ... }
|
|
703
|
+
rule?: { ... }
|
|
704
|
+
rules?: { ... }
|
|
705
|
+
}>
|
|
706
|
+
}
|
|
707
|
+
rules?: Array<{
|
|
708
|
+
type: "always" | "never" | "advanced_mode" | "pricing_tier" | "feature_flag" | "permission" | "setting_enabled" | "flag_enabled" | "not" | "and" | "or"
|
|
709
|
+
setting_key?: string
|
|
710
|
+
flag_name?: string
|
|
711
|
+
action?: string
|
|
712
|
+
resource?: string
|
|
713
|
+
rule?: {
|
|
714
|
+
type: { ... }
|
|
715
|
+
setting_key?: { ... }
|
|
716
|
+
flag_name?: { ... }
|
|
717
|
+
action?: { ... }
|
|
718
|
+
resource?: { ... }
|
|
719
|
+
rule?: { ... }
|
|
720
|
+
rules?: { ... }
|
|
721
|
+
}
|
|
722
|
+
rules?: Array<{
|
|
723
|
+
type: { ... }
|
|
724
|
+
setting_key?: { ... }
|
|
725
|
+
flag_name?: { ... }
|
|
726
|
+
action?: { ... }
|
|
727
|
+
resource?: { ... }
|
|
728
|
+
rule?: { ... }
|
|
729
|
+
rules?: { ... }
|
|
730
|
+
}>
|
|
731
|
+
}>
|
|
732
|
+
}
|
|
733
|
+
```
|