@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.
Files changed (150) hide show
  1. package/README.md +1 -0
  2. package/definitions/blueprint-manifest-runtime.json +1 -1
  3. package/definitions/blueprint-manifest.json +239 -12
  4. package/definitions/configuration-hub-runtime.json +1 -0
  5. package/definitions/configuration-hub.json +399 -0
  6. package/dist/README-6MG272KM.cjs +7 -0
  7. package/dist/README-7N542PBL.js +7 -0
  8. package/dist/{_index-LZFTZV7Z.cjs → _index-55HAH24D.cjs} +4 -1
  9. package/dist/{_index-X3IADTN2.js → _index-HE4B6FOA.js} +3 -0
  10. package/dist/apis/access-token.cjs +6 -6
  11. package/dist/apis/access-token.js +1 -1
  12. package/dist/apis/address-suggestions.cjs +6 -6
  13. package/dist/apis/address-suggestions.js +1 -1
  14. package/dist/apis/address.cjs +6 -6
  15. package/dist/apis/address.js +1 -1
  16. package/dist/apis/ai-agents.cjs +6 -6
  17. package/dist/apis/ai-agents.js +1 -1
  18. package/dist/apis/app.cjs +6 -6
  19. package/dist/apis/app.js +1 -1
  20. package/dist/apis/audit-logs.cjs +6 -6
  21. package/dist/apis/audit-logs.js +1 -1
  22. package/dist/apis/automation.cjs +6 -6
  23. package/dist/apis/automation.js +1 -1
  24. package/dist/apis/billing.cjs +6 -6
  25. package/dist/apis/billing.js +1 -1
  26. package/dist/apis/blueprint-manifest.cjs +8 -8
  27. package/dist/apis/blueprint-manifest.d.cts +2 -2
  28. package/dist/apis/blueprint-manifest.d.ts +2 -2
  29. package/dist/apis/blueprint-manifest.js +2 -2
  30. package/dist/apis/configuration-hub.cjs +38 -0
  31. package/dist/apis/configuration-hub.d.cts +18 -0
  32. package/dist/apis/configuration-hub.d.ts +18 -0
  33. package/dist/apis/configuration-hub.js +38 -0
  34. package/dist/apis/consent.cjs +6 -6
  35. package/dist/apis/consent.js +1 -1
  36. package/dist/apis/customer-portal.cjs +6 -6
  37. package/dist/apis/customer-portal.js +1 -1
  38. package/dist/apis/dashboard.cjs +6 -6
  39. package/dist/apis/dashboard.js +1 -1
  40. package/dist/apis/data-governance.cjs +6 -6
  41. package/dist/apis/data-governance.js +1 -1
  42. package/dist/apis/deduplication.cjs +6 -6
  43. package/dist/apis/deduplication.js +1 -1
  44. package/dist/apis/design.cjs +6 -6
  45. package/dist/apis/design.js +1 -1
  46. package/dist/apis/document.cjs +6 -6
  47. package/dist/apis/document.js +1 -1
  48. package/dist/apis/email-settings.cjs +6 -6
  49. package/dist/apis/email-settings.js +1 -1
  50. package/dist/apis/email-template.cjs +6 -6
  51. package/dist/apis/email-template.js +1 -1
  52. package/dist/apis/entity-mapping.cjs +6 -6
  53. package/dist/apis/entity-mapping.js +1 -1
  54. package/dist/apis/entity.cjs +6 -6
  55. package/dist/apis/entity.js +1 -1
  56. package/dist/apis/environments.cjs +6 -6
  57. package/dist/apis/environments.js +1 -1
  58. package/dist/apis/event-catalog.cjs +6 -6
  59. package/dist/apis/event-catalog.js +1 -1
  60. package/dist/apis/file.cjs +6 -6
  61. package/dist/apis/file.js +1 -1
  62. package/dist/apis/iban.cjs +6 -6
  63. package/dist/apis/iban.js +1 -1
  64. package/dist/apis/integration-toolkit.cjs +6 -6
  65. package/dist/apis/integration-toolkit.js +1 -1
  66. package/dist/apis/journey.cjs +6 -6
  67. package/dist/apis/journey.js +1 -1
  68. package/dist/apis/kanban.cjs +6 -6
  69. package/dist/apis/kanban.js +1 -1
  70. package/dist/apis/message.cjs +6 -6
  71. package/dist/apis/message.js +1 -1
  72. package/dist/apis/metering.cjs +6 -6
  73. package/dist/apis/metering.js +1 -1
  74. package/dist/apis/notes.cjs +6 -6
  75. package/dist/apis/notes.js +1 -1
  76. package/dist/apis/notification.cjs +6 -6
  77. package/dist/apis/notification.js +1 -1
  78. package/dist/apis/organization.cjs +6 -6
  79. package/dist/apis/organization.js +1 -1
  80. package/dist/apis/partner-directory.cjs +6 -6
  81. package/dist/apis/partner-directory.js +1 -1
  82. package/dist/apis/permissions.cjs +6 -6
  83. package/dist/apis/permissions.js +1 -1
  84. package/dist/apis/pricing-tier.cjs +6 -6
  85. package/dist/apis/pricing-tier.js +1 -1
  86. package/dist/apis/pricing.cjs +6 -6
  87. package/dist/apis/pricing.js +1 -1
  88. package/dist/apis/purpose.cjs +6 -6
  89. package/dist/apis/purpose.js +1 -1
  90. package/dist/apis/query.cjs +6 -6
  91. package/dist/apis/query.js +1 -1
  92. package/dist/apis/sandbox.cjs +6 -6
  93. package/dist/apis/sandbox.js +1 -1
  94. package/dist/apis/sharing.cjs +6 -6
  95. package/dist/apis/sharing.js +1 -1
  96. package/dist/apis/submission.cjs +6 -6
  97. package/dist/apis/submission.js +1 -1
  98. package/dist/apis/target.cjs +6 -6
  99. package/dist/apis/target.js +1 -1
  100. package/dist/apis/targeting.cjs +6 -6
  101. package/dist/apis/targeting.js +1 -1
  102. package/dist/apis/template-variables.cjs +6 -6
  103. package/dist/apis/template-variables.js +1 -1
  104. package/dist/apis/user.cjs +6 -6
  105. package/dist/apis/user.js +1 -1
  106. package/dist/apis/validation-rules.cjs +6 -6
  107. package/dist/apis/validation-rules.js +1 -1
  108. package/dist/apis/webhooks.cjs +6 -6
  109. package/dist/apis/webhooks.js +1 -1
  110. package/dist/apis/workflow-definition.cjs +6 -6
  111. package/dist/apis/workflow-definition.js +1 -1
  112. package/dist/apis/workflow.cjs +6 -6
  113. package/dist/apis/workflow.js +1 -1
  114. package/dist/bin/cli.js +1 -1
  115. package/dist/blueprint-manifest-DBEY5PPI.js +7 -0
  116. package/dist/blueprint-manifest-IEQ6YBY7.cjs +7 -0
  117. package/dist/{blueprint-manifest-runtime-E2FN43TB.js → blueprint-manifest-runtime-5UN52LW5.js} +1 -1
  118. package/dist/{blueprint-manifest-runtime-G4UK5VEX.cjs → blueprint-manifest-runtime-QN2IECSA.cjs} +2 -2
  119. package/dist/{blueprint-manifest.d-BGrGU787.d.ts → blueprint-manifest.d-BPyzoR0X.d.cts} +228 -9
  120. package/dist/{blueprint-manifest.d-BGrGU787.d.cts → blueprint-manifest.d-BPyzoR0X.d.ts} +228 -9
  121. package/dist/chunk-4JAOFRYX.js +14 -0
  122. package/dist/{chunk-YVN2SRSQ.js → chunk-7C4FQXMS.js} +6 -4
  123. package/dist/{chunk-LS3ISLMD.cjs → chunk-GGMGJYHO.cjs} +6 -4
  124. package/dist/{chunk-5APJZUIH.cjs → chunk-L544VG3B.cjs} +1 -1
  125. package/dist/{chunk-VPDA5SAH.js → chunk-O2YVXGPZ.js} +1 -1
  126. package/dist/chunk-Q7OKRNUG.cjs +14 -0
  127. package/dist/configuration-hub-LKSRCGYT.cjs +7 -0
  128. package/dist/configuration-hub-TZ2ULWV4.js +7 -0
  129. package/dist/configuration-hub-runtime-B7KKIHHY.cjs +5 -0
  130. package/dist/configuration-hub-runtime-TEDEKI7E.js +5 -0
  131. package/dist/configuration-hub.d-CqvhcMOn.d.cts +166 -0
  132. package/dist/configuration-hub.d-CqvhcMOn.d.ts +166 -0
  133. package/dist/index.cjs +26 -18
  134. package/dist/index.d.cts +81 -79
  135. package/dist/index.d.ts +81 -79
  136. package/dist/index.js +22 -14
  137. package/dist/{js-yaml-UPZKYVRY.js → js-yaml-DLCVPJ7G.js} +17 -15
  138. package/docs/blueprint-manifest.md +418 -40
  139. package/docs/configuration-hub.md +256 -0
  140. package/package.json +10 -1
  141. package/definitions/data-management-runtime.json +0 -1
  142. package/definitions/data-management.json +0 -972
  143. package/definitions/erp-integration-runtime.json +0 -1
  144. package/definitions/erp-integration.json +0 -6780
  145. package/definitions/target-runtime.json +0 -1
  146. package/definitions/target.json +0 -609
  147. package/dist/README-6UYTPMQO.cjs +0 -7
  148. package/dist/README-GS3DFP4W.js +0 -7
  149. package/dist/blueprint-manifest-ELK4SGN7.js +0 -7
  150. 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,5 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkQ7OKRNUGcjs = require('./chunk-Q7OKRNUG.cjs');
4
+ require('./chunk-NJK5F5TF.cjs');
5
+ exports. default = _chunkQ7OKRNUGcjs.require_configuration_hub_runtime.call(void 0, );
@@ -0,0 +1,5 @@
1
+ import {
2
+ require_configuration_hub_runtime
3
+ } from "./chunk-4JAOFRYX.js";
4
+ import "./chunk-YPSWSI3M.js";
5
+ export default require_configuration_hub_runtime();
@@ -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 _chunkHHMXS5NCcjs = require('./chunk-HHMXS5NC.cjs');
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 _chunkNEVFKRDUcjs = require('./chunk-NEVFKRDU.cjs');
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 _chunkGWKHOJGDcjs = require('./chunk-GWKHOJGD.cjs');
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 _chunk4W22EIRFcjs = require('./chunk-4W22EIRF.cjs');
105
+ var _chunkG5FKTWUCcjs = require('./chunk-G5FKTWUC.cjs');
100
106
 
101
107
 
102
- var _chunkG5FKTWUCcjs = require('./chunk-G5FKTWUC.cjs');
108
+ var _chunkL544VG3Bcjs = require('./chunk-L544VG3B.cjs');
103
109
 
104
110
 
105
- var _chunk5APJZUIHcjs = require('./chunk-5APJZUIH.cjs');
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 _chunkLS3ISLMDcjs = require('./chunk-LS3ISLMD.cjs');
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 = _chunkLS3ISLMDcjs.createApiClient.call(void 0, {
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) => _chunkLS3ISLMDcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( 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(_chunk5APJZUIHcjs.require_blueprint_manifest_runtime.call(void 0, ))
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 _chunkLS3ISLMDcjs.createApiHandle.call(void 0, {
588
+ return _chunkGGMGJYHOcjs.createApiHandle.call(void 0, {
581
589
  resolveClient: () => resolveClient({ registry, name, state }),
582
- createClient: () => _chunkLS3ISLMDcjs.createApiClient.call(void 0, { definition: entry.loader(), apiName: name }),
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) => _chunkLS3ISLMDcjs.help.call(void 0, apiName);
638
+ return (apiName) => _chunkGGMGJYHOcjs.help.call(void 0, apiName);
631
639
  case "openapi":
632
- return (apiName) => _chunkLS3ISLMDcjs.openapi.call(void 0, 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 = _chunkLS3ISLMDcjs.authorize; exports.createSDK = createSDK; exports.epilot = epilot; exports.help = _chunkLS3ISLMDcjs.help; exports.openapi = _chunkLS3ISLMDcjs.openapi;
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;