@epilot/sdk 2.3.4 → 2.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/definitions/blueprint-manifest-runtime.json +1 -1
- package/definitions/blueprint-manifest.json +239 -12
- package/definitions/configuration-hub-runtime.json +1 -0
- package/definitions/configuration-hub.json +399 -0
- package/dist/README-6MG272KM.cjs +7 -0
- package/dist/README-7N542PBL.js +7 -0
- package/dist/{_index-LZFTZV7Z.cjs → _index-55HAH24D.cjs} +4 -1
- package/dist/{_index-X3IADTN2.js → _index-HE4B6FOA.js} +3 -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 +8 -8
- package/dist/apis/blueprint-manifest.d.cts +2 -2
- package/dist/apis/blueprint-manifest.d.ts +2 -2
- package/dist/apis/blueprint-manifest.js +2 -2
- package/dist/apis/configuration-hub.cjs +38 -0
- package/dist/apis/configuration-hub.d.cts +18 -0
- package/dist/apis/configuration-hub.d.ts +18 -0
- package/dist/apis/configuration-hub.js +38 -0
- 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.js +1 -1
- package/dist/apis/workflow.cjs +6 -6
- package/dist/apis/workflow.js +1 -1
- package/dist/bin/cli.js +1 -1
- package/dist/blueprint-manifest-DBEY5PPI.js +7 -0
- package/dist/blueprint-manifest-IEQ6YBY7.cjs +7 -0
- package/dist/{blueprint-manifest-runtime-E2FN43TB.js → blueprint-manifest-runtime-5UN52LW5.js} +1 -1
- package/dist/{blueprint-manifest-runtime-G4UK5VEX.cjs → blueprint-manifest-runtime-QN2IECSA.cjs} +2 -2
- package/dist/{blueprint-manifest.d-BGrGU787.d.ts → blueprint-manifest.d-BPyzoR0X.d.cts} +228 -9
- package/dist/{blueprint-manifest.d-BGrGU787.d.cts → blueprint-manifest.d-BPyzoR0X.d.ts} +228 -9
- package/dist/chunk-4JAOFRYX.js +14 -0
- package/dist/{chunk-YVN2SRSQ.js → chunk-7C4FQXMS.js} +6 -4
- package/dist/{chunk-LS3ISLMD.cjs → chunk-GGMGJYHO.cjs} +6 -4
- package/dist/{chunk-5APJZUIH.cjs → chunk-L544VG3B.cjs} +1 -1
- package/dist/{chunk-VPDA5SAH.js → chunk-O2YVXGPZ.js} +1 -1
- package/dist/chunk-Q7OKRNUG.cjs +14 -0
- package/dist/configuration-hub-LKSRCGYT.cjs +7 -0
- package/dist/configuration-hub-TZ2ULWV4.js +7 -0
- package/dist/configuration-hub-runtime-B7KKIHHY.cjs +5 -0
- package/dist/configuration-hub-runtime-TEDEKI7E.js +5 -0
- package/dist/configuration-hub.d-CqvhcMOn.d.cts +166 -0
- package/dist/configuration-hub.d-CqvhcMOn.d.ts +166 -0
- package/dist/index.cjs +26 -18
- package/dist/index.d.cts +81 -79
- package/dist/index.d.ts +81 -79
- package/dist/index.js +22 -14
- package/dist/{js-yaml-UPZKYVRY.js → js-yaml-DLCVPJ7G.js} +17 -15
- package/docs/blueprint-manifest.md +418 -40
- package/docs/configuration-hub.md +256 -0
- package/package.json +10 -1
- package/definitions/data-management-runtime.json +0 -1
- package/definitions/data-management.json +0 -972
- package/definitions/erp-integration-runtime.json +0 -1
- package/definitions/erp-integration.json +0 -6780
- package/definitions/target-runtime.json +0 -1
- package/definitions/target.json +0 -609
- package/dist/README-6UYTPMQO.cjs +0 -7
- package/dist/README-GS3DFP4W.js +0 -7
- package/dist/blueprint-manifest-ELK4SGN7.js +0 -7
- package/dist/blueprint-manifest-VBOWPK52.cjs +0 -7
|
@@ -0,0 +1,7 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,166 @@
|
|
|
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 };
|
|
@@ -0,0 +1,166 @@
|
|
|
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 };
|
package/dist/index.cjs
CHANGED
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
+
var _chunkHHMXS5NCcjs = require('./chunk-HHMXS5NC.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
3
6
|
var _chunkCYS6QBW6cjs = require('./chunk-CYS6QBW6.cjs');
|
|
4
7
|
|
|
5
8
|
|
|
6
9
|
var _chunkQNZPOA54cjs = require('./chunk-QNZPOA54.cjs');
|
|
7
10
|
|
|
8
11
|
|
|
12
|
+
var _chunkNEVFKRDUcjs = require('./chunk-NEVFKRDU.cjs');
|
|
13
|
+
|
|
14
|
+
|
|
9
15
|
var _chunkTZQFJ5GXcjs = require('./chunk-TZQFJ5GX.cjs');
|
|
10
16
|
|
|
11
17
|
|
|
@@ -24,7 +30,7 @@ var _chunkZ5TVWG3Icjs = require('./chunk-Z5TVWG3I.cjs');
|
|
|
24
30
|
var _chunkJIUTCNTBcjs = require('./chunk-JIUTCNTB.cjs');
|
|
25
31
|
|
|
26
32
|
|
|
27
|
-
var
|
|
33
|
+
var _chunkGWKHOJGDcjs = require('./chunk-GWKHOJGD.cjs');
|
|
28
34
|
|
|
29
35
|
|
|
30
36
|
var _chunkQOAWSFXAcjs = require('./chunk-QOAWSFXA.cjs');
|
|
@@ -48,7 +54,7 @@ var _chunkWQBBB6BNcjs = require('./chunk-WQBBB6BN.cjs');
|
|
|
48
54
|
var _chunkXDZ2JKJ4cjs = require('./chunk-XDZ2JKJ4.cjs');
|
|
49
55
|
|
|
50
56
|
|
|
51
|
-
var
|
|
57
|
+
var _chunk4W22EIRFcjs = require('./chunk-4W22EIRF.cjs');
|
|
52
58
|
|
|
53
59
|
|
|
54
60
|
var _chunkYO4M3BZLcjs = require('./chunk-YO4M3BZL.cjs');
|
|
@@ -72,7 +78,7 @@ var _chunk4ZMLRFDXcjs = require('./chunk-4ZMLRFDX.cjs');
|
|
|
72
78
|
var _chunkM2SSGV7Kcjs = require('./chunk-M2SSGV7K.cjs');
|
|
73
79
|
|
|
74
80
|
|
|
75
|
-
var
|
|
81
|
+
var _chunkEIIIKDOJcjs = require('./chunk-EIIIKDOJ.cjs');
|
|
76
82
|
|
|
77
83
|
|
|
78
84
|
var _chunkM56QQHVAcjs = require('./chunk-M56QQHVA.cjs');
|
|
@@ -96,13 +102,13 @@ var _chunkI6DG26UJcjs = require('./chunk-I6DG26UJ.cjs');
|
|
|
96
102
|
var _chunkBLNXQAMXcjs = require('./chunk-BLNXQAMX.cjs');
|
|
97
103
|
|
|
98
104
|
|
|
99
|
-
var
|
|
105
|
+
var _chunkG5FKTWUCcjs = require('./chunk-G5FKTWUC.cjs');
|
|
100
106
|
|
|
101
107
|
|
|
102
|
-
var
|
|
108
|
+
var _chunkL544VG3Bcjs = require('./chunk-L544VG3B.cjs');
|
|
103
109
|
|
|
104
110
|
|
|
105
|
-
var
|
|
111
|
+
var _chunkQ7OKRNUGcjs = require('./chunk-Q7OKRNUG.cjs');
|
|
106
112
|
|
|
107
113
|
|
|
108
114
|
var _chunkBM6NCHPLcjs = require('./chunk-BM6NCHPL.cjs');
|
|
@@ -120,9 +126,6 @@ var _chunkZL6KDJFTcjs = require('./chunk-ZL6KDJFT.cjs');
|
|
|
120
126
|
var _chunkIAHSYVYBcjs = require('./chunk-IAHSYVYB.cjs');
|
|
121
127
|
|
|
122
128
|
|
|
123
|
-
var _chunkEIIIKDOJcjs = require('./chunk-EIIIKDOJ.cjs');
|
|
124
|
-
|
|
125
|
-
|
|
126
129
|
var _chunkOXJOO2YFcjs = require('./chunk-OXJOO2YF.cjs');
|
|
127
130
|
|
|
128
131
|
|
|
@@ -149,7 +152,7 @@ var _chunkDVM27A7Ecjs = require('./chunk-DVM27A7E.cjs');
|
|
|
149
152
|
|
|
150
153
|
|
|
151
154
|
|
|
152
|
-
var
|
|
155
|
+
var _chunkGGMGJYHOcjs = require('./chunk-GGMGJYHO.cjs');
|
|
153
156
|
|
|
154
157
|
|
|
155
158
|
var _chunkNJK5F5TFcjs = require('./chunk-NJK5F5TF.cjs');
|
|
@@ -216,7 +219,7 @@ var resolveClient = (params) => {
|
|
|
216
219
|
}
|
|
217
220
|
if (!entry.instance) {
|
|
218
221
|
const definition = entry.loader();
|
|
219
|
-
entry.instance =
|
|
222
|
+
entry.instance = _chunkGGMGJYHOcjs.createApiClient.call(void 0, {
|
|
220
223
|
definition,
|
|
221
224
|
token: state.token,
|
|
222
225
|
headers: state.globalHeaders,
|
|
@@ -249,7 +252,7 @@ var resetAllClients = (registry) => {
|
|
|
249
252
|
};
|
|
250
253
|
|
|
251
254
|
// src/apis/_registry.ts
|
|
252
|
-
var expandDef = (mod) =>
|
|
255
|
+
var expandDef = (mod) => _chunkGGMGJYHOcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
|
|
253
256
|
var registerBuiltinApis = (registry) => {
|
|
254
257
|
registerApi({
|
|
255
258
|
registry,
|
|
@@ -294,7 +297,12 @@ var registerBuiltinApis = (registry) => {
|
|
|
294
297
|
registerApi({
|
|
295
298
|
registry,
|
|
296
299
|
name: "blueprintManifest",
|
|
297
|
-
loader: () => expandDef(
|
|
300
|
+
loader: () => expandDef(_chunkL544VG3Bcjs.require_blueprint_manifest_runtime.call(void 0, ))
|
|
301
|
+
});
|
|
302
|
+
registerApi({
|
|
303
|
+
registry,
|
|
304
|
+
name: "configurationHub",
|
|
305
|
+
loader: () => expandDef(_chunkQ7OKRNUGcjs.require_configuration_hub_runtime.call(void 0, ))
|
|
298
306
|
});
|
|
299
307
|
registerApi({
|
|
300
308
|
registry,
|
|
@@ -577,9 +585,9 @@ var createSDK = () => {
|
|
|
577
585
|
const available = [...registry.keys()].join(", ");
|
|
578
586
|
throw new Error(`Unknown API: "${name}". Available: ${available}`);
|
|
579
587
|
}
|
|
580
|
-
return
|
|
588
|
+
return _chunkGGMGJYHOcjs.createApiHandle.call(void 0, {
|
|
581
589
|
resolveClient: () => resolveClient({ registry, name, state }),
|
|
582
|
-
createClient: () =>
|
|
590
|
+
createClient: () => _chunkGGMGJYHOcjs.createApiClient.call(void 0, { definition: entry.loader(), apiName: name }),
|
|
583
591
|
apiName: name
|
|
584
592
|
});
|
|
585
593
|
};
|
|
@@ -627,9 +635,9 @@ var createSDK = () => {
|
|
|
627
635
|
return interceptorUse;
|
|
628
636
|
}
|
|
629
637
|
case "help":
|
|
630
|
-
return (apiName) =>
|
|
638
|
+
return (apiName) => _chunkGGMGJYHOcjs.help.call(void 0, apiName);
|
|
631
639
|
case "openapi":
|
|
632
|
-
return (apiName) =>
|
|
640
|
+
return (apiName) => _chunkGGMGJYHOcjs.openapi.call(void 0, apiName);
|
|
633
641
|
case "then":
|
|
634
642
|
case "catch":
|
|
635
643
|
case "finally":
|
|
@@ -659,4 +667,4 @@ var epilot = createSDK();
|
|
|
659
667
|
|
|
660
668
|
|
|
661
669
|
|
|
662
|
-
exports.applyLargeResponseInterceptor = applyLargeResponseInterceptor; exports.applyRetryInterceptor = applyRetryInterceptor; exports.authorize =
|
|
670
|
+
exports.applyLargeResponseInterceptor = applyLargeResponseInterceptor; exports.applyRetryInterceptor = applyRetryInterceptor; exports.authorize = _chunkGGMGJYHOcjs.authorize; exports.createSDK = createSDK; exports.epilot = epilot; exports.help = _chunkGGMGJYHOcjs.help; exports.openapi = _chunkGGMGJYHOcjs.openapi;
|