@epilot/sdk 2.3.8 → 2.3.10
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/configuration-hub-runtime.json +1 -1
- package/definitions/configuration-hub.json +220 -8
- package/definitions/workflow-definition.json +52 -0
- package/definitions/workflow.json +24 -0
- 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 +6 -6
- package/dist/apis/app.js +1 -1
- 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/configuration-hub.cjs +8 -8
- package/dist/apis/configuration-hub.d.cts +2 -2
- package/dist/apis/configuration-hub.d.ts +2 -2
- package/dist/apis/configuration-hub.js +2 -2
- 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 +6 -6
- package/dist/apis/email-settings.js +1 -1
- 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/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.d.cts +2 -2
- package/dist/apis/workflow-definition.d.ts +2 -2
- package/dist/apis/workflow-definition.js +1 -1
- package/dist/apis/workflow.cjs +6 -6
- package/dist/apis/workflow.d.cts +2 -2
- package/dist/apis/workflow.d.ts +2 -2
- package/dist/apis/workflow.js +1 -1
- package/dist/{chunk-6DZXWV2A.cjs → chunk-MDLNRFJV.cjs} +4 -4
- package/dist/chunk-ONOGGR6Q.js +14 -0
- package/dist/{chunk-7TFVO6SP.js → chunk-W7YCS4FU.js} +4 -4
- package/dist/chunk-ZSONBZIF.cjs +14 -0
- package/dist/configuration-hub-A3S6ND6R.cjs +7 -0
- package/dist/configuration-hub-PMAW44U5.js +7 -0
- package/dist/{configuration-hub-runtime-B7KKIHHY.cjs → configuration-hub-runtime-I5Y67CXD.cjs} +2 -2
- package/dist/{configuration-hub-runtime-TEDEKI7E.js → configuration-hub-runtime-L6IOERSP.js} +1 -1
- package/dist/configuration-hub.d-Cqaq2F-W.d.cts +478 -0
- package/dist/configuration-hub.d-Cqaq2F-W.d.ts +478 -0
- package/dist/index.cjs +10 -10
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/workflow-3WBD74WR.js +7 -0
- package/dist/workflow-WIUZ5TOX.cjs +7 -0
- package/dist/workflow-definition-2VF7S23G.js +7 -0
- package/dist/workflow-definition-U6YXD42W.cjs +7 -0
- package/dist/{workflow-definition.d-ByCJK9_x.d.ts → workflow-definition.d-DOeb0KVV.d.cts} +37 -1
- package/dist/{workflow-definition.d-ByCJK9_x.d.cts → workflow-definition.d-DOeb0KVV.d.ts} +37 -1
- package/dist/{workflow.d-pD8ISOg-.d.ts → workflow.d-CMSKt8oN.d.cts} +22 -1
- package/dist/{workflow.d-pD8ISOg-.d.cts → workflow.d-CMSKt8oN.d.ts} +22 -1
- package/docs/configuration-hub.md +159 -11
- package/docs/workflow-definition.md +40 -8
- package/docs/workflow.md +57 -11
- package/package.json +1 -1
- package/dist/chunk-4JAOFRYX.js +0 -14
- package/dist/chunk-Q7OKRNUG.cjs +0 -14
- package/dist/configuration-hub-LKSRCGYT.cjs +0 -7
- package/dist/configuration-hub-TZ2ULWV4.js +0 -7
- package/dist/configuration-hub.d-CqvhcMOn.d.cts +0 -166
- package/dist/configuration-hub.d-CqvhcMOn.d.ts +0 -166
- package/dist/workflow-CQOBZ25C.cjs +0 -7
- package/dist/workflow-G7VFCXY7.js +0 -7
- package/dist/workflow-definition-CVBYKAUY.cjs +0 -7
- package/dist/workflow-definition-GNAKDNG7.js +0 -7
package/dist/chunk-Q7OKRNUG.cjs
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
var _chunkNJK5F5TFcjs = require('./chunk-NJK5F5TF.cjs');
|
|
4
|
-
|
|
5
|
-
// src/definitions/configuration-hub-runtime.json
|
|
6
|
-
var require_configuration_hub_runtime = _chunkNJK5F5TFcjs.__commonJS.call(void 0, {
|
|
7
|
-
"src/definitions/configuration-hub-runtime.json"(exports, module) {
|
|
8
|
-
module.exports = { s: "https://configuration-hub.dev.sls.epilot.io", o: [["listConfigTypes", "get", "/v1/configs/types"], ["listConfigs", "get", "/v1/configs/{type}", [["ConfigType"], ["CursorParam"], ["SizeParam"]]], ["getConfigDependencies", "get", "/v1/configs/{type}/{id}/dependencies", [["ConfigType"], ["ConfigId"], ["CursorParam"], ["SizeParam"]]]], v: "3.0.3", cp: { ConfigType: ["type", "p", true], ConfigId: ["id", "p", true], CursorParam: ["cursor", "q"], SizeParam: ["size", "q"] } };
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
exports.require_configuration_hub_runtime = require_configuration_hub_runtime;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-NJK5F5TF.cjs');
|
|
2
|
-
|
|
3
|
-
// src/docs/configuration-hub.json
|
|
4
|
-
var configuration_hub_default = '# Configuration Hub API\n\n- **Base URL:** `https://configuration-hub.dev.sls.epilot.io`\n- **Full API Docs:** [https://docs.epilot.io/api/configuration-hub](https://docs.epilot.io/api/configuration-hub)\n\n## Usage\n\n```ts\nimport { epilot } from \'@epilot/sdk\'\n\nepilot.authorize(() => \'<token>\')\nconst { data } = await epilot.configurationHub.listConfigTypes(...)\n```\n\n### Tree-shakeable import\n\n```ts\nimport { getClient, authorize } from \'@epilot/sdk/configuration-hub\'\n\nconst configurationHubClient = getClient()\nauthorize(configurationHubClient, () => \'<token>\')\nconst { data } = await configurationHubClient.listConfigTypes(...)\n```\n\n## Operations\n\n**Configs**\n- [`listConfigTypes`](#listconfigtypes)\n- [`listConfigs`](#listconfigs)\n- [`getConfigDependencies`](#getconfigdependencies)\n\n**Schemas**\n- [`ResourceType`](#resourcetype)\n- [`ConfigTypeInfo`](#configtypeinfo)\n- [`ConfigNode`](#confignode)\n- [`ConfigListResponse`](#configlistresponse)\n- [`ConfigDependenciesResponse`](#configdependenciesresponse)\n- [`ErrorResponse`](#errorresponse)\n\n### `listConfigTypes`\n\nReturns the static list of available configuration types with display metadata.\nThis is a cheap call \u2014 no fan-out to downstream APIs. Returns all known types\nwith labels and icons. The frontend should\n\n`GET /v1/configs/types`\n\n```ts\nconst { data } = await client.listConfigTypes()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "results": [\n {\n "type": "journey",\n "label": "Journeys",\n "icon": "Route",\n "source_api": "https://journey.sls.epilot.io",\n "sdk_client": "@epilot/sdk/journey"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `listConfigs`\n\nList configs of a given type with pagination. Returns summary metadata only\n(not full payloads). The frontend calls this per type folder when expanding.\n\n`GET /v1/configs/{type}`\n\n```ts\nconst { data } = await client.listConfigs({\n type: \'example\',\n cursor: \'example\',\n size: 1,\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "type": "journey",\n "label": "string",\n "icon": "string",\n "total": 0,\n "next_cursor": "string",\n "items": [\n {\n "type": "journey",\n "id": "string",\n "title": "string",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "updated_by": "string",\n "tags": ["string"],\n "purposes": ["string"],\n "link": "https://example.com/path"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `getConfigDependencies`\n\nGet configs that are referenced by the given config.\nUsed to render children when expanding a config node in the tree.\n\n`GET /v1/configs/{type}/{id}/dependencies`\n\n```ts\nconst { data } = await client.getConfigDependencies({\n type: \'example\',\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n cursor: \'example\',\n size: 1,\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "total": 0,\n "next_cursor": "string",\n "results": [\n {\n "type": "journey",\n "id": "string",\n "title": "string",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "updated_by": "string",\n "tags": ["string"],\n "purposes": ["string"],\n "link": "https://example.com/path"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n## Schemas\n\n### `ResourceType`\n\nConfiguration resource type identifier.\nMatches blueprint-manifest-api V3 naming conventions.\n\n\n```ts\ntype ResourceType = "journey" | "automation_flow" | "workflow_definition" | "closing_reason" | "flow_template" | "schema" | "emailtemplate" | "product" | "price" | "tax" | "coupon" | "file" | "webhook" | "saved_view" | "dashboard" | "kanban" | "role" | "usergroup" | "validation_rule" | "integration" | "app" | "designbuilder" | "notification_template" | "custom_variable" | "environment_variable" | "taxonomy" | "taxonomy_classification" | "entity_mapping" | "portal_config" | "target" | "product_recommendation"\n```\n\n### `ConfigTypeInfo`\n\nStatic metadata for a config type folder in the tree.\nNo downstream API calls \u2014 just type + label + icon + source API info.\n\n\n```ts\ntype ConfigTypeInfo = {\n type: "journey" | "automation_flow" | "workflow_definition" | "closing_reason" | "flow_template" | "schema" | "emailtemplate" | "product" | "price" | "tax" | "coupon" | "file" | "webhook" | "saved_view" | "dashboard" | "kanban" | "role" | "usergroup" | "validation_rule" | "integration" | "app" | "designbuilder" | "notification_template" | "custom_variable" | "environment_variable" | "taxonomy" | "taxonomy_classification" | "entity_mapping" | "portal_config" | "target" | "product_recommendation"\n label: string\n icon: string\n source_api: string\n sdk_client: string\n}\n```\n\n### `ConfigNode`\n\nSummary metadata for a single configuration item in the tree\n\n```ts\ntype ConfigNode = {\n type: "journey" | "automation_flow" | "workflow_definition" | "closing_reason" | "flow_template" | "schema" | "emailtemplate" | "product" | "price" | "tax" | "coupon" | "file" | "webhook" | "saved_view" | "dashboard" | "kanban" | "role" | "usergroup" | "validation_rule" | "integration" | "app" | "designbuilder" | "notification_template" | "custom_variable" | "environment_variable" | "taxonomy" | "taxonomy_classification" | "entity_mapping" | "portal_config" | "target" | "product_recommendation"\n id: string\n title: string\n updated_at?: string // date-time\n updated_by?: string\n tags?: string[]\n purposes?: string[]\n link?: string // uri\n}\n```\n\n### `ConfigListResponse`\n\nCursor-paginated list of configs for a specific type\n\n```ts\ntype ConfigListResponse = {\n type: "journey" | "automation_flow" | "workflow_definition" | "closing_reason" | "flow_template" | "schema" | "emailtemplate" | "product" | "price" | "tax" | "coupon" | "file" | "webhook" | "saved_view" | "dashboard" | "kanban" | "role" | "usergroup" | "validation_rule" | "integration" | "app" | "designbuilder" | "notification_template" | "custom_variable" | "environment_variable" | "taxonomy" | "taxonomy_classification" | "entity_mapping" | "portal_config" | "target" | "product_recommendation"\n label: string\n icon: string\n total?: number\n next_cursor?: string\n items: Array<{\n type: "journey" | "automation_flow" | "workflow_definition" | "closing_reason" | "flow_template" | "schema" | "emailtemplate" | "product" | "price" | "tax" | "coupon" | "file" | "webhook" | "saved_view" | "dashboard" | "kanban" | "role" | "usergroup" | "validation_rule" | "integration" | "app" | "designbuilder" | "notification_template" | "custom_variable" | "environment_variable" | "taxonomy" | "taxonomy_classification" | "entity_mapping" | "portal_config" | "target" | "product_recommendation"\n id: string\n title: string\n updated_at?: string // date-time\n updated_by?: string\n tags?: string[]\n purposes?: string[]\n link?: string // uri\n }>\n}\n```\n\n### `ConfigDependenciesResponse`\n\nCursor-paginated list of configs referenced by a given config\n\n```ts\ntype ConfigDependenciesResponse = {\n total?: number\n next_cursor?: string\n results: Array<{\n type: "journey" | "automation_flow" | "workflow_definition" | "closing_reason" | "flow_template" | "schema" | "emailtemplate" | "product" | "price" | "tax" | "coupon" | "file" | "webhook" | "saved_view" | "dashboard" | "kanban" | "role" | "usergroup" | "validation_rule" | "integration" | "app" | "designbuilder" | "notification_template" | "custom_variable" | "environment_variable" | "taxonomy" | "taxonomy_classification" | "entity_mapping" | "portal_config" | "target" | "product_recommendation"\n id: string\n title: string\n updated_at?: string // date-time\n updated_by?: string\n tags?: string[]\n purposes?: string[]\n link?: string // uri\n }>\n}\n```\n\n### `ErrorResponse`\n\n```ts\ntype ErrorResponse = {\n status: number\n error: string\n}\n```\n';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
exports.default = configuration_hub_default;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import "./chunk-YPSWSI3M.js";
|
|
2
|
-
|
|
3
|
-
// src/docs/configuration-hub.json
|
|
4
|
-
var configuration_hub_default = '# Configuration Hub API\n\n- **Base URL:** `https://configuration-hub.dev.sls.epilot.io`\n- **Full API Docs:** [https://docs.epilot.io/api/configuration-hub](https://docs.epilot.io/api/configuration-hub)\n\n## Usage\n\n```ts\nimport { epilot } from \'@epilot/sdk\'\n\nepilot.authorize(() => \'<token>\')\nconst { data } = await epilot.configurationHub.listConfigTypes(...)\n```\n\n### Tree-shakeable import\n\n```ts\nimport { getClient, authorize } from \'@epilot/sdk/configuration-hub\'\n\nconst configurationHubClient = getClient()\nauthorize(configurationHubClient, () => \'<token>\')\nconst { data } = await configurationHubClient.listConfigTypes(...)\n```\n\n## Operations\n\n**Configs**\n- [`listConfigTypes`](#listconfigtypes)\n- [`listConfigs`](#listconfigs)\n- [`getConfigDependencies`](#getconfigdependencies)\n\n**Schemas**\n- [`ResourceType`](#resourcetype)\n- [`ConfigTypeInfo`](#configtypeinfo)\n- [`ConfigNode`](#confignode)\n- [`ConfigListResponse`](#configlistresponse)\n- [`ConfigDependenciesResponse`](#configdependenciesresponse)\n- [`ErrorResponse`](#errorresponse)\n\n### `listConfigTypes`\n\nReturns the static list of available configuration types with display metadata.\nThis is a cheap call \u2014 no fan-out to downstream APIs. Returns all known types\nwith labels and icons. The frontend should\n\n`GET /v1/configs/types`\n\n```ts\nconst { data } = await client.listConfigTypes()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "results": [\n {\n "type": "journey",\n "label": "Journeys",\n "icon": "Route",\n "source_api": "https://journey.sls.epilot.io",\n "sdk_client": "@epilot/sdk/journey"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `listConfigs`\n\nList configs of a given type with pagination. Returns summary metadata only\n(not full payloads). The frontend calls this per type folder when expanding.\n\n`GET /v1/configs/{type}`\n\n```ts\nconst { data } = await client.listConfigs({\n type: \'example\',\n cursor: \'example\',\n size: 1,\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "type": "journey",\n "label": "string",\n "icon": "string",\n "total": 0,\n "next_cursor": "string",\n "items": [\n {\n "type": "journey",\n "id": "string",\n "title": "string",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "updated_by": "string",\n "tags": ["string"],\n "purposes": ["string"],\n "link": "https://example.com/path"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `getConfigDependencies`\n\nGet configs that are referenced by the given config.\nUsed to render children when expanding a config node in the tree.\n\n`GET /v1/configs/{type}/{id}/dependencies`\n\n```ts\nconst { data } = await client.getConfigDependencies({\n type: \'example\',\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n cursor: \'example\',\n size: 1,\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "total": 0,\n "next_cursor": "string",\n "results": [\n {\n "type": "journey",\n "id": "string",\n "title": "string",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "updated_by": "string",\n "tags": ["string"],\n "purposes": ["string"],\n "link": "https://example.com/path"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n## Schemas\n\n### `ResourceType`\n\nConfiguration resource type identifier.\nMatches blueprint-manifest-api V3 naming conventions.\n\n\n```ts\ntype ResourceType = "journey" | "automation_flow" | "workflow_definition" | "closing_reason" | "flow_template" | "schema" | "emailtemplate" | "product" | "price" | "tax" | "coupon" | "file" | "webhook" | "saved_view" | "dashboard" | "kanban" | "role" | "usergroup" | "validation_rule" | "integration" | "app" | "designbuilder" | "notification_template" | "custom_variable" | "environment_variable" | "taxonomy" | "taxonomy_classification" | "entity_mapping" | "portal_config" | "target" | "product_recommendation"\n```\n\n### `ConfigTypeInfo`\n\nStatic metadata for a config type folder in the tree.\nNo downstream API calls \u2014 just type + label + icon + source API info.\n\n\n```ts\ntype ConfigTypeInfo = {\n type: "journey" | "automation_flow" | "workflow_definition" | "closing_reason" | "flow_template" | "schema" | "emailtemplate" | "product" | "price" | "tax" | "coupon" | "file" | "webhook" | "saved_view" | "dashboard" | "kanban" | "role" | "usergroup" | "validation_rule" | "integration" | "app" | "designbuilder" | "notification_template" | "custom_variable" | "environment_variable" | "taxonomy" | "taxonomy_classification" | "entity_mapping" | "portal_config" | "target" | "product_recommendation"\n label: string\n icon: string\n source_api: string\n sdk_client: string\n}\n```\n\n### `ConfigNode`\n\nSummary metadata for a single configuration item in the tree\n\n```ts\ntype ConfigNode = {\n type: "journey" | "automation_flow" | "workflow_definition" | "closing_reason" | "flow_template" | "schema" | "emailtemplate" | "product" | "price" | "tax" | "coupon" | "file" | "webhook" | "saved_view" | "dashboard" | "kanban" | "role" | "usergroup" | "validation_rule" | "integration" | "app" | "designbuilder" | "notification_template" | "custom_variable" | "environment_variable" | "taxonomy" | "taxonomy_classification" | "entity_mapping" | "portal_config" | "target" | "product_recommendation"\n id: string\n title: string\n updated_at?: string // date-time\n updated_by?: string\n tags?: string[]\n purposes?: string[]\n link?: string // uri\n}\n```\n\n### `ConfigListResponse`\n\nCursor-paginated list of configs for a specific type\n\n```ts\ntype ConfigListResponse = {\n type: "journey" | "automation_flow" | "workflow_definition" | "closing_reason" | "flow_template" | "schema" | "emailtemplate" | "product" | "price" | "tax" | "coupon" | "file" | "webhook" | "saved_view" | "dashboard" | "kanban" | "role" | "usergroup" | "validation_rule" | "integration" | "app" | "designbuilder" | "notification_template" | "custom_variable" | "environment_variable" | "taxonomy" | "taxonomy_classification" | "entity_mapping" | "portal_config" | "target" | "product_recommendation"\n label: string\n icon: string\n total?: number\n next_cursor?: string\n items: Array<{\n type: "journey" | "automation_flow" | "workflow_definition" | "closing_reason" | "flow_template" | "schema" | "emailtemplate" | "product" | "price" | "tax" | "coupon" | "file" | "webhook" | "saved_view" | "dashboard" | "kanban" | "role" | "usergroup" | "validation_rule" | "integration" | "app" | "designbuilder" | "notification_template" | "custom_variable" | "environment_variable" | "taxonomy" | "taxonomy_classification" | "entity_mapping" | "portal_config" | "target" | "product_recommendation"\n id: string\n title: string\n updated_at?: string // date-time\n updated_by?: string\n tags?: string[]\n purposes?: string[]\n link?: string // uri\n }>\n}\n```\n\n### `ConfigDependenciesResponse`\n\nCursor-paginated list of configs referenced by a given config\n\n```ts\ntype ConfigDependenciesResponse = {\n total?: number\n next_cursor?: string\n results: Array<{\n type: "journey" | "automation_flow" | "workflow_definition" | "closing_reason" | "flow_template" | "schema" | "emailtemplate" | "product" | "price" | "tax" | "coupon" | "file" | "webhook" | "saved_view" | "dashboard" | "kanban" | "role" | "usergroup" | "validation_rule" | "integration" | "app" | "designbuilder" | "notification_template" | "custom_variable" | "environment_variable" | "taxonomy" | "taxonomy_classification" | "entity_mapping" | "portal_config" | "target" | "product_recommendation"\n id: string\n title: string\n updated_at?: string // date-time\n updated_by?: string\n tags?: string[]\n purposes?: string[]\n link?: string // uri\n }>\n}\n```\n\n### `ErrorResponse`\n\n```ts\ntype ErrorResponse = {\n status: number\n error: string\n}\n```\n';
|
|
5
|
-
export {
|
|
6
|
-
configuration_hub_default as default
|
|
7
|
-
};
|
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
import { OpenAPIClient, Parameters, UnknownParamsObject, AxiosRequestConfig, OperationResponse } from 'openapi-client-axios';
|
|
2
|
-
|
|
3
|
-
/* Auto-copied from configuration-hub-client */
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
declare namespace Components {
|
|
7
|
-
namespace Schemas {
|
|
8
|
-
export type ResourceType =
|
|
9
|
-
| 'journey'
|
|
10
|
-
| 'automation_flow'
|
|
11
|
-
| 'workflow_definition'
|
|
12
|
-
| 'closing_reason'
|
|
13
|
-
| 'flow_template'
|
|
14
|
-
| 'schema'
|
|
15
|
-
| 'emailtemplate'
|
|
16
|
-
| 'product'
|
|
17
|
-
| 'price'
|
|
18
|
-
| 'tax'
|
|
19
|
-
| 'coupon'
|
|
20
|
-
| 'file'
|
|
21
|
-
| 'webhook'
|
|
22
|
-
| 'saved_view'
|
|
23
|
-
| 'dashboard'
|
|
24
|
-
| 'kanban'
|
|
25
|
-
| 'role'
|
|
26
|
-
| 'usergroup'
|
|
27
|
-
| 'validation_rule'
|
|
28
|
-
| 'integration'
|
|
29
|
-
| 'app'
|
|
30
|
-
| 'designbuilder'
|
|
31
|
-
| 'notification_template'
|
|
32
|
-
| 'custom_variable'
|
|
33
|
-
| 'environment_variable'
|
|
34
|
-
| 'taxonomy'
|
|
35
|
-
| 'taxonomy_classification'
|
|
36
|
-
| 'entity_mapping'
|
|
37
|
-
| 'portal_config'
|
|
38
|
-
| 'target'
|
|
39
|
-
| 'product_recommendation';
|
|
40
|
-
|
|
41
|
-
export interface ConfigTypeInfo {
|
|
42
|
-
type: ResourceType;
|
|
43
|
-
label: string;
|
|
44
|
-
icon: string;
|
|
45
|
-
source_api: string;
|
|
46
|
-
sdk_client: string;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export interface ConfigNode {
|
|
50
|
-
type: ResourceType;
|
|
51
|
-
id: string;
|
|
52
|
-
title: string;
|
|
53
|
-
updated_at?: string;
|
|
54
|
-
updated_by?: string;
|
|
55
|
-
tags?: string[];
|
|
56
|
-
purposes?: string[];
|
|
57
|
-
link?: string;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export interface ConfigListResponse {
|
|
61
|
-
type: ResourceType;
|
|
62
|
-
label: string;
|
|
63
|
-
icon: string;
|
|
64
|
-
total?: number;
|
|
65
|
-
next_cursor?: string;
|
|
66
|
-
items: ConfigNode[];
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export interface ConfigDependenciesResponse {
|
|
70
|
-
total?: number;
|
|
71
|
-
next_cursor?: string;
|
|
72
|
-
results: ConfigNode[];
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export interface ErrorResponse {
|
|
76
|
-
status: number;
|
|
77
|
-
error: string;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
declare namespace Paths {
|
|
83
|
-
namespace ListConfigTypes {
|
|
84
|
-
namespace Responses {
|
|
85
|
-
export interface $200 {
|
|
86
|
-
results: Components.Schemas.ConfigTypeInfo[];
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
namespace ListConfigs {
|
|
92
|
-
namespace Parameters {
|
|
93
|
-
export type Type = Components.Schemas.ResourceType;
|
|
94
|
-
export type Cursor = string;
|
|
95
|
-
export type Size = number;
|
|
96
|
-
}
|
|
97
|
-
export interface PathParameters {
|
|
98
|
-
type: Parameters.Type;
|
|
99
|
-
}
|
|
100
|
-
export interface QueryParameters {
|
|
101
|
-
cursor?: Parameters.Cursor;
|
|
102
|
-
size?: Parameters.Size;
|
|
103
|
-
}
|
|
104
|
-
namespace Responses {
|
|
105
|
-
export type $200 = Components.Schemas.ConfigListResponse;
|
|
106
|
-
export type $400 = Components.Schemas.ErrorResponse;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
namespace GetConfigDependencies {
|
|
111
|
-
namespace Parameters {
|
|
112
|
-
export type Type = Components.Schemas.ResourceType;
|
|
113
|
-
export type Id = string;
|
|
114
|
-
export type Cursor = string;
|
|
115
|
-
export type Size = number;
|
|
116
|
-
}
|
|
117
|
-
export interface PathParameters {
|
|
118
|
-
type: Parameters.Type;
|
|
119
|
-
id: Parameters.Id;
|
|
120
|
-
}
|
|
121
|
-
export interface QueryParameters {
|
|
122
|
-
cursor?: Parameters.Cursor;
|
|
123
|
-
size?: Parameters.Size;
|
|
124
|
-
}
|
|
125
|
-
namespace Responses {
|
|
126
|
-
export type $200 = Components.Schemas.ConfigDependenciesResponse;
|
|
127
|
-
export type $404 = Components.Schemas.ErrorResponse;
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
interface OperationMethods {
|
|
133
|
-
'listConfigTypes'(
|
|
134
|
-
parameters?: Parameters<UnknownParamsObject> | null,
|
|
135
|
-
data?: unknown,
|
|
136
|
-
config?: AxiosRequestConfig,
|
|
137
|
-
): OperationResponse<Paths.ListConfigTypes.Responses.$200>;
|
|
138
|
-
|
|
139
|
-
'listConfigs'(
|
|
140
|
-
parameters: Parameters<Paths.ListConfigs.PathParameters & Paths.ListConfigs.QueryParameters>,
|
|
141
|
-
data?: unknown,
|
|
142
|
-
config?: AxiosRequestConfig,
|
|
143
|
-
): OperationResponse<Paths.ListConfigs.Responses.$200>;
|
|
144
|
-
|
|
145
|
-
'getConfigDependencies'(
|
|
146
|
-
parameters: Parameters<Paths.GetConfigDependencies.PathParameters & Paths.GetConfigDependencies.QueryParameters>,
|
|
147
|
-
data?: unknown,
|
|
148
|
-
config?: AxiosRequestConfig,
|
|
149
|
-
): OperationResponse<Paths.GetConfigDependencies.Responses.$200>;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
interface PathsDictionary {
|
|
153
|
-
['/v1/configs/types']: {
|
|
154
|
-
get: OperationMethods['listConfigTypes'];
|
|
155
|
-
};
|
|
156
|
-
['/v1/configs/{type}']: {
|
|
157
|
-
get: OperationMethods['listConfigs'];
|
|
158
|
-
};
|
|
159
|
-
['/v1/configs/{type}/{id}/dependencies']: {
|
|
160
|
-
get: OperationMethods['getConfigDependencies'];
|
|
161
|
-
};
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
type Client = OpenAPIClient<OperationMethods, PathsDictionary>;
|
|
165
|
-
|
|
166
|
-
export { type Client as C, type OperationMethods as O, Paths as P, Components as a, type PathsDictionary as b };
|
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
import { OpenAPIClient, Parameters, UnknownParamsObject, AxiosRequestConfig, OperationResponse } from 'openapi-client-axios';
|
|
2
|
-
|
|
3
|
-
/* Auto-copied from configuration-hub-client */
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
declare namespace Components {
|
|
7
|
-
namespace Schemas {
|
|
8
|
-
export type ResourceType =
|
|
9
|
-
| 'journey'
|
|
10
|
-
| 'automation_flow'
|
|
11
|
-
| 'workflow_definition'
|
|
12
|
-
| 'closing_reason'
|
|
13
|
-
| 'flow_template'
|
|
14
|
-
| 'schema'
|
|
15
|
-
| 'emailtemplate'
|
|
16
|
-
| 'product'
|
|
17
|
-
| 'price'
|
|
18
|
-
| 'tax'
|
|
19
|
-
| 'coupon'
|
|
20
|
-
| 'file'
|
|
21
|
-
| 'webhook'
|
|
22
|
-
| 'saved_view'
|
|
23
|
-
| 'dashboard'
|
|
24
|
-
| 'kanban'
|
|
25
|
-
| 'role'
|
|
26
|
-
| 'usergroup'
|
|
27
|
-
| 'validation_rule'
|
|
28
|
-
| 'integration'
|
|
29
|
-
| 'app'
|
|
30
|
-
| 'designbuilder'
|
|
31
|
-
| 'notification_template'
|
|
32
|
-
| 'custom_variable'
|
|
33
|
-
| 'environment_variable'
|
|
34
|
-
| 'taxonomy'
|
|
35
|
-
| 'taxonomy_classification'
|
|
36
|
-
| 'entity_mapping'
|
|
37
|
-
| 'portal_config'
|
|
38
|
-
| 'target'
|
|
39
|
-
| 'product_recommendation';
|
|
40
|
-
|
|
41
|
-
export interface ConfigTypeInfo {
|
|
42
|
-
type: ResourceType;
|
|
43
|
-
label: string;
|
|
44
|
-
icon: string;
|
|
45
|
-
source_api: string;
|
|
46
|
-
sdk_client: string;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export interface ConfigNode {
|
|
50
|
-
type: ResourceType;
|
|
51
|
-
id: string;
|
|
52
|
-
title: string;
|
|
53
|
-
updated_at?: string;
|
|
54
|
-
updated_by?: string;
|
|
55
|
-
tags?: string[];
|
|
56
|
-
purposes?: string[];
|
|
57
|
-
link?: string;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export interface ConfigListResponse {
|
|
61
|
-
type: ResourceType;
|
|
62
|
-
label: string;
|
|
63
|
-
icon: string;
|
|
64
|
-
total?: number;
|
|
65
|
-
next_cursor?: string;
|
|
66
|
-
items: ConfigNode[];
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export interface ConfigDependenciesResponse {
|
|
70
|
-
total?: number;
|
|
71
|
-
next_cursor?: string;
|
|
72
|
-
results: ConfigNode[];
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export interface ErrorResponse {
|
|
76
|
-
status: number;
|
|
77
|
-
error: string;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
declare namespace Paths {
|
|
83
|
-
namespace ListConfigTypes {
|
|
84
|
-
namespace Responses {
|
|
85
|
-
export interface $200 {
|
|
86
|
-
results: Components.Schemas.ConfigTypeInfo[];
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
namespace ListConfigs {
|
|
92
|
-
namespace Parameters {
|
|
93
|
-
export type Type = Components.Schemas.ResourceType;
|
|
94
|
-
export type Cursor = string;
|
|
95
|
-
export type Size = number;
|
|
96
|
-
}
|
|
97
|
-
export interface PathParameters {
|
|
98
|
-
type: Parameters.Type;
|
|
99
|
-
}
|
|
100
|
-
export interface QueryParameters {
|
|
101
|
-
cursor?: Parameters.Cursor;
|
|
102
|
-
size?: Parameters.Size;
|
|
103
|
-
}
|
|
104
|
-
namespace Responses {
|
|
105
|
-
export type $200 = Components.Schemas.ConfigListResponse;
|
|
106
|
-
export type $400 = Components.Schemas.ErrorResponse;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
namespace GetConfigDependencies {
|
|
111
|
-
namespace Parameters {
|
|
112
|
-
export type Type = Components.Schemas.ResourceType;
|
|
113
|
-
export type Id = string;
|
|
114
|
-
export type Cursor = string;
|
|
115
|
-
export type Size = number;
|
|
116
|
-
}
|
|
117
|
-
export interface PathParameters {
|
|
118
|
-
type: Parameters.Type;
|
|
119
|
-
id: Parameters.Id;
|
|
120
|
-
}
|
|
121
|
-
export interface QueryParameters {
|
|
122
|
-
cursor?: Parameters.Cursor;
|
|
123
|
-
size?: Parameters.Size;
|
|
124
|
-
}
|
|
125
|
-
namespace Responses {
|
|
126
|
-
export type $200 = Components.Schemas.ConfigDependenciesResponse;
|
|
127
|
-
export type $404 = Components.Schemas.ErrorResponse;
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
interface OperationMethods {
|
|
133
|
-
'listConfigTypes'(
|
|
134
|
-
parameters?: Parameters<UnknownParamsObject> | null,
|
|
135
|
-
data?: unknown,
|
|
136
|
-
config?: AxiosRequestConfig,
|
|
137
|
-
): OperationResponse<Paths.ListConfigTypes.Responses.$200>;
|
|
138
|
-
|
|
139
|
-
'listConfigs'(
|
|
140
|
-
parameters: Parameters<Paths.ListConfigs.PathParameters & Paths.ListConfigs.QueryParameters>,
|
|
141
|
-
data?: unknown,
|
|
142
|
-
config?: AxiosRequestConfig,
|
|
143
|
-
): OperationResponse<Paths.ListConfigs.Responses.$200>;
|
|
144
|
-
|
|
145
|
-
'getConfigDependencies'(
|
|
146
|
-
parameters: Parameters<Paths.GetConfigDependencies.PathParameters & Paths.GetConfigDependencies.QueryParameters>,
|
|
147
|
-
data?: unknown,
|
|
148
|
-
config?: AxiosRequestConfig,
|
|
149
|
-
): OperationResponse<Paths.GetConfigDependencies.Responses.$200>;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
interface PathsDictionary {
|
|
153
|
-
['/v1/configs/types']: {
|
|
154
|
-
get: OperationMethods['listConfigTypes'];
|
|
155
|
-
};
|
|
156
|
-
['/v1/configs/{type}']: {
|
|
157
|
-
get: OperationMethods['listConfigs'];
|
|
158
|
-
};
|
|
159
|
-
['/v1/configs/{type}/{id}/dependencies']: {
|
|
160
|
-
get: OperationMethods['getConfigDependencies'];
|
|
161
|
-
};
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
type Client = OpenAPIClient<OperationMethods, PathsDictionary>;
|
|
165
|
-
|
|
166
|
-
export { type Client as C, type OperationMethods as O, Paths as P, Components as a, type PathsDictionary as b };
|