@epilot/cli 0.1.24 → 0.1.26

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.
@@ -2,16 +2,12 @@
2
2
  "openapi": "3.0.3",
3
3
  "info": {
4
4
  "title": "Configuration Hub API",
5
- "description": "Lightweight index API for exploring epilot organization configurations.\n\nProvides a unified tree view across all config types. Returns summary metadata only —\nthe frontend calls individual epilot APIs directly (via @epilot/sdk) for full config payloads.\n\n## Source APIs per resource type\n\nEach resource type maps to a specific epilot API. The frontend should use the corresponding\n@epilot/sdk client to fetch full config details (e.g., for the side panel JSON view).\n\n| Resource Type | Source API | SDK Client |\n|---|---|---|\n| `journey` | journey.sls.epilot.io | `@epilot/sdk/journey` |\n| `automation_flow` | automation.sls.epilot.io | `@epilot/sdk/automation` |\n| `workflow_definition` | workflow-definition.sls.epilot.io | `@epilot/sdk/workflow-definition` |\n| `closing_reason` | workflow-definition.sls.epilot.io | `@epilot/sdk/workflow-definition` |\n| `flow_template` | workflow-definition.sls.epilot.io | `@epilot/sdk/workflow-definition` |\n| `schema` | entity.sls.epilot.io | `@epilot/sdk/entity` |\n| `taxonomy` | entity.sls.epilot.io | `@epilot/sdk/entity` |\n| `taxonomy_classification` | entity.sls.epilot.io | `@epilot/sdk/entity` |\n| `emailtemplate` | entity.sls.epilot.io | `@epilot/sdk/entity` |\n| `product` | entity.sls.epilot.io | `@epilot/sdk/entity` |\n| `price` | entity.sls.epilot.io | `@epilot/sdk/entity` |\n| `tax` | entity.sls.epilot.io | `@epilot/sdk/entity` |\n| `coupon` | entity.sls.epilot.io | `@epilot/sdk/entity` |\n| `file` | entity.sls.epilot.io | `@epilot/sdk/entity` |\n| `document_template` | entity.sls.epilot.io | `@epilot/sdk/entity` |\n| `webhook` | webhooks.sls.epilot.io | `@epilot/sdk/webhooks` |\n| `saved_view` | entity.sls.epilot.io | `@epilot/sdk/entity` |\n| `dashboard` | entity.sls.epilot.io | `@epilot/sdk/entity` |\n| `kanban` | kanban.sls.epilot.io | `@epilot/sdk/kanban` |\n| `role` | permissions.sls.epilot.io | `@epilot/sdk/permissions` |\n| `usergroup` | user.sls.epilot.io | `@epilot/sdk/user` |\n| `validation_rule` | entity.sls.epilot.io | `@epilot/sdk/validation-rules` |\n| `integration` | entity.sls.epilot.io | `@epilot/sdk/entity` |\n| `app` | entity.sls.epilot.io | `@epilot/sdk/entity` |\n| `designbuilder` | design-builder-api.sls.epilot.io | `@epilot/sdk/design` |\n| `notification_template` | entity.sls.epilot.io | `@epilot/sdk/entity` |\n| `custom_variable` | entity.sls.epilot.io | `@epilot/sdk/template-variables` |\n| `environment_variable` | environments.sls.epilot.io | `@epilot/sdk/environments` |\n| `entity_mapping` | entity-mapping.sls.epilot.io | `@epilot/sdk/entity-mapping` |\n| `portal_config` | customer-portal.sls.epilot.io | `@epilot/sdk/customer-portal` |\n| `target` | entity.sls.epilot.io | `@epilot/sdk/entity` |\n| `product_recommendation` | entity.sls.epilot.io | `@epilot/sdk/entity` |\n| `access_token` | access-token.sls.epilot.io | `@epilot/sdk/access-token` |\n",
5
+ "description": "Lightweight index API for exploring epilot organization configurations.\n\nProvides a unified tree view across all config types. Returns summary metadata only —\nthe frontend calls individual epilot APIs directly (via @epilot/sdk) for full config payloads.\n\n## Source APIs per resource type\n\nEach resource type maps to a specific epilot API. The frontend should use the corresponding\n@epilot/sdk client to fetch full config details (e.g., for the side panel JSON view).\n\n| Resource Type | Source API | SDK Client |\n|---|---|---|\n| `journey` | journey.sls.epilot.io | `@epilot/sdk/journey` |\n| `automation_flow` | automation.sls.epilot.io | `@epilot/sdk/automation` |\n| `workflow_definition` | workflow-definition.sls.epilot.io | `@epilot/sdk/workflow-definition` |\n| `closing_reason` | workflow-definition.sls.epilot.io | `@epilot/sdk/workflow-definition` |\n| `flow_template` | workflow-definition.sls.epilot.io | `@epilot/sdk/workflow-definition` |\n| `schema` | entity.sls.epilot.io | `@epilot/sdk/entity` |\n| `taxonomy` | entity.sls.epilot.io | `@epilot/sdk/entity` |\n| `taxonomy_classification` | entity.sls.epilot.io | `@epilot/sdk/entity` |\n| `emailtemplate` | entity.sls.epilot.io | `@epilot/sdk/entity` |\n| `product` | entity.sls.epilot.io | `@epilot/sdk/entity` |\n| `price` | entity.sls.epilot.io | `@epilot/sdk/entity` |\n| `tax` | entity.sls.epilot.io | `@epilot/sdk/entity` |\n| `coupon` | entity.sls.epilot.io | `@epilot/sdk/entity` |\n| `file` | entity.sls.epilot.io | `@epilot/sdk/entity` |\n| `webhook` | webhooks.sls.epilot.io | `@epilot/sdk/webhooks` |\n| `saved_view` | entity.sls.epilot.io | `@epilot/sdk/entity` |\n| `dashboard` | entity.sls.epilot.io | `@epilot/sdk/entity` |\n| `kanban` | kanban.sls.epilot.io | `@epilot/sdk/kanban` |\n| `role` | permissions.sls.epilot.io | `@epilot/sdk/permissions` |\n| `usergroup` | user.sls.epilot.io | `@epilot/sdk/user` |\n| `validation_rule` | entity.sls.epilot.io | `@epilot/sdk/validation-rules` |\n| `integration` | entity.sls.epilot.io | `@epilot/sdk/entity` |\n| `app` | entity.sls.epilot.io | `@epilot/sdk/entity` |\n| `designbuilder` | entity.sls.epilot.io | `@epilot/sdk/entity` |\n| `notification_template` | entity.sls.epilot.io | `@epilot/sdk/entity` |\n| `custom_variable` | entity.sls.epilot.io | `@epilot/sdk/template-variables` |\n| `environment_variable` | environments.sls.epilot.io | `@epilot/sdk/environments` |\n| `entity_mapping` | entity-mapping.sls.epilot.io | `@epilot/sdk/entity-mapping` |\n| `portal_config` | customer-portal.sls.epilot.io | `@epilot/sdk/customer-portal` |\n| `target` | entity.sls.epilot.io | `@epilot/sdk/entity` |\n| `product_recommendation` | entity.sls.epilot.io | `@epilot/sdk/entity` |\n",
6
6
  "version": "0.2.0"
7
7
  },
8
8
  "servers": [
9
9
  {
10
10
  "url": "https://configuration-hub.sls.epilot.io"
11
- },
12
- {
13
- "url": "https://configuration-hub.dev.sls.epilot.io",
14
- "description": "Dev"
15
11
  }
16
12
  ],
17
13
  "security": [
@@ -110,35 +106,6 @@
110
106
  "schema": {
111
107
  "type": "string"
112
108
  }
113
- },
114
- {
115
- "name": "blueprint_ids",
116
- "in": "query",
117
- "description": "Filter by installed-blueprint IDs (comma-separated). Only configs installed by one of the listed blueprints are returned.",
118
- "schema": {
119
- "type": "string"
120
- }
121
- },
122
- {
123
- "name": "sort",
124
- "in": "query",
125
- "description": "Sort order. `updated_at` (default) sorts by most recently modified.\n`usage` sorts by the type-specific usage metric descending\n(submissions for journeys, executions for automations, entities for schemas, etc.).\n",
126
- "schema": {
127
- "type": "string",
128
- "enum": [
129
- "updated_at",
130
- "usage"
131
- ],
132
- "default": "updated_at"
133
- }
134
- },
135
- {
136
- "name": "active_only",
137
- "in": "query",
138
- "description": "If true, filter out configs that are explicitly inactive (active=false).\nConfigs with no `active` field are always included.\n",
139
- "schema": {
140
- "type": "boolean"
141
- }
142
109
  }
143
110
  ],
144
111
  "responses": {
@@ -211,65 +178,13 @@
211
178
  }
212
179
  }
213
180
  },
214
- "/v1/configs/{type}/{id}/used_by": {
215
- "get": {
216
- "operationId": "getConfigUsedBy",
217
- "summary": "getConfigUsedBy",
218
- "description": "Get configs that reference the given config (reverse dependencies).\nScans the indexed config items for references to this config's ID or aliases.\n",
219
- "tags": [
220
- "Configs"
221
- ],
222
- "parameters": [
223
- {
224
- "$ref": "#/components/parameters/ConfigType"
225
- },
226
- {
227
- "$ref": "#/components/parameters/ConfigId"
228
- }
229
- ],
230
- "responses": {
231
- "200": {
232
- "description": "List of configs that reference this config",
233
- "content": {
234
- "application/json": {
235
- "schema": {
236
- "$ref": "#/components/schemas/ConfigDependenciesResponse"
237
- }
238
- }
239
- }
240
- }
241
- }
242
- }
243
- },
244
- "/v1/configs/index": {
245
- "get": {
246
- "operationId": "getIndex",
247
- "summary": "getIndex",
248
- "description": "Return the current index build state for the caller's organization.\nClients poll this to decide whether to show a \"building\" indicator\nand when to refetch data.\n",
249
- "tags": [
250
- "Configs"
251
- ],
252
- "responses": {
253
- "200": {
254
- "description": "Current index status",
255
- "content": {
256
- "application/json": {
257
- "schema": {
258
- "$ref": "#/components/schemas/IndexStatusResponse"
259
- }
260
- }
261
- }
262
- }
263
- }
264
- }
265
- },
266
- "/v1/configs/index:rebuild": {
181
+ "/v1/index/rebuild": {
267
182
  "post": {
268
183
  "operationId": "rebuildIndex",
269
184
  "summary": "rebuildIndex",
270
- "description": "Rebuild the configuration index for the caller's organization.\nFire-and-forget: invokes the async worker and returns immediately.\nA new rebuild will cancel any in-flight build (see `build_token`).\n",
185
+ "description": "Rebuild the configuration index for the caller's organization.\nCalls all adapter APIs in parallel and stores results in DynamoDB.\nIf a build is already in progress (within 60s), returns immediately.\n",
271
186
  "tags": [
272
- "Configs"
187
+ "Index"
273
188
  ],
274
189
  "responses": {
275
190
  "200": {
@@ -350,7 +265,6 @@
350
265
  "tax",
351
266
  "coupon",
352
267
  "file",
353
- "document_template",
354
268
  "webhook",
355
269
  "saved_view",
356
270
  "dashboard",
@@ -369,8 +283,7 @@
369
283
  "entity_mapping",
370
284
  "portal_config",
371
285
  "target",
372
- "product_recommendation",
373
- "access_token"
286
+ "product_recommendation"
374
287
  ]
375
288
  },
376
289
  "ConfigTypeInfo": {
@@ -440,13 +353,6 @@
440
353
  },
441
354
  "description": "Tags / labels"
442
355
  },
443
- "aliases": {
444
- "type": "array",
445
- "items": {
446
- "type": "string"
447
- },
448
- "description": "Alternative identifiers (short IDs, slugs, variable keys) used in cross-references"
449
- },
450
356
  "purposes": {
451
357
  "type": "array",
452
358
  "items": {
@@ -458,11 +364,6 @@
458
364
  "type": "string",
459
365
  "format": "uri",
460
366
  "description": "Direct link to open this config in epilot"
461
- },
462
- "metadata": {
463
- "type": "object",
464
- "description": "Type-specific metadata (e.g., submission count for journeys)",
465
- "additionalProperties": true
466
367
  }
467
368
  },
468
369
  "required": [
@@ -492,7 +393,7 @@
492
393
  "type": "string",
493
394
  "description": "Cursor for fetching the next page. Absent when no more pages."
494
395
  },
495
- "results": {
396
+ "items": {
496
397
  "type": "array",
497
398
  "items": {
498
399
  "$ref": "#/components/schemas/ConfigNode"
@@ -503,7 +404,7 @@
503
404
  "type",
504
405
  "label",
505
406
  "icon",
506
- "results"
407
+ "items"
507
408
  ]
508
409
  },
509
410
  "ConfigDependenciesResponse": {
@@ -563,34 +464,6 @@
563
464
  "status"
564
465
  ]
565
466
  },
566
- "IndexStatusResponse": {
567
- "type": "object",
568
- "description": "Current index build state",
569
- "properties": {
570
- "status": {
571
- "type": "string",
572
- "enum": [
573
- "missing",
574
- "building",
575
- "ready",
576
- "failed"
577
- ]
578
- },
579
- "last_built_at": {
580
- "type": "string",
581
- "format": "date-time"
582
- },
583
- "total_items": {
584
- "type": "integer"
585
- },
586
- "build_duration_ms": {
587
- "type": "integer"
588
- }
589
- },
590
- "required": [
591
- "status"
592
- ]
593
- },
594
467
  "ErrorResponse": {
595
468
  "type": "object",
596
469
  "properties": {