@epilot/cli 0.1.17 → 0.1.18

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 CHANGED
@@ -29,7 +29,7 @@ npm install -g @epilot/cli
29
29
 
30
30
  <!-- usage-help -->
31
31
  ```
32
- epilot v0.1.17 — CLI for epilot APIs
32
+ epilot v0.1.18 — CLI for epilot APIs
33
33
 
34
34
  USAGE
35
35
  epilot <api> <operationId> [params...] [flags]
@@ -2,17 +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",
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
- "url": "https://configuration-hub.dev.sls.epilot.io",
11
- "description": "Dev"
12
- },
13
- {
14
- "url": "https://configuration-hub.sls.epilot.io",
15
- "description": "Production"
10
+ "url": "https://configuration-hub.sls.epilot.io"
16
11
  }
17
12
  ],
18
13
  "security": [
@@ -77,6 +72,40 @@
77
72
  },
78
73
  {
79
74
  "$ref": "#/components/parameters/SizeParam"
75
+ },
76
+ {
77
+ "name": "q",
78
+ "in": "query",
79
+ "description": "Search query to filter configs by name/title",
80
+ "schema": {
81
+ "type": "string"
82
+ }
83
+ },
84
+ {
85
+ "name": "updated_after",
86
+ "in": "query",
87
+ "description": "Filter configs updated after this date (ISO 8601)",
88
+ "schema": {
89
+ "type": "string",
90
+ "format": "date-time"
91
+ }
92
+ },
93
+ {
94
+ "name": "updated_before",
95
+ "in": "query",
96
+ "description": "Filter configs updated before this date (ISO 8601)",
97
+ "schema": {
98
+ "type": "string",
99
+ "format": "date-time"
100
+ }
101
+ },
102
+ {
103
+ "name": "purposes",
104
+ "in": "query",
105
+ "description": "Filter by purpose classification IDs (comma-separated)",
106
+ "schema": {
107
+ "type": "string"
108
+ }
80
109
  }
81
110
  ],
82
111
  "responses": {
@@ -148,6 +177,28 @@
148
177
  }
149
178
  }
150
179
  }
180
+ },
181
+ "/v1/index/rebuild": {
182
+ "post": {
183
+ "operationId": "rebuildIndex",
184
+ "summary": "rebuildIndex",
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",
186
+ "tags": [
187
+ "Index"
188
+ ],
189
+ "responses": {
190
+ "200": {
191
+ "description": "Index build status",
192
+ "content": {
193
+ "application/json": {
194
+ "schema": {
195
+ "$ref": "#/components/schemas/IndexRebuildResponse"
196
+ }
197
+ }
198
+ }
199
+ }
200
+ }
201
+ }
151
202
  }
152
203
  },
153
204
  "components": {
@@ -379,6 +430,40 @@
379
430
  "results"
380
431
  ]
381
432
  },
433
+ "IndexRebuildResponse": {
434
+ "type": "object",
435
+ "description": "Result of an index rebuild operation",
436
+ "properties": {
437
+ "status": {
438
+ "type": "string",
439
+ "enum": [
440
+ "ready",
441
+ "building",
442
+ "failed",
443
+ "already_building"
444
+ ]
445
+ },
446
+ "last_built_at": {
447
+ "type": "string",
448
+ "format": "date-time"
449
+ },
450
+ "total_items": {
451
+ "type": "integer"
452
+ },
453
+ "build_duration_ms": {
454
+ "type": "integer"
455
+ },
456
+ "failed_types": {
457
+ "type": "array",
458
+ "items": {
459
+ "type": "string"
460
+ }
461
+ }
462
+ },
463
+ "required": [
464
+ "status"
465
+ ]
466
+ },
382
467
  "ErrorResponse": {
383
468
  "type": "object",
384
469
  "properties": {
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  API_LIST
4
- } from "../chunk-XQLUS2BD.js";
4
+ } from "../chunk-JFIDAAH4.js";
5
5
 
6
6
  // bin/epilot.ts
7
7
  import { runMain } from "citty";
@@ -11,7 +11,7 @@ import { defineCommand } from "citty";
11
11
  var main = defineCommand({
12
12
  meta: {
13
13
  name: "epilot",
14
- version: "0.1.17",
14
+ version: "0.1.18",
15
15
  description: "CLI for epilot APIs"
16
16
  },
17
17
  args: {
@@ -27,8 +27,8 @@ var main = defineCommand({
27
27
  subCommands: {
28
28
  auth: () => import("../auth-AAF6Z5WZ.js").then((m) => m.default),
29
29
  profile: () => import("../profile-EK4HSQ57.js").then((m) => m.default),
30
- completion: () => import("../completion-KA3HJ6PR.js").then((m) => m.default),
31
- upgrade: () => import("../upgrade-RQP5SN7U.js").then((m) => m.default),
30
+ completion: () => import("../completion-INJETNZK.js").then((m) => m.default),
31
+ upgrade: () => import("../upgrade-RWBRFID7.js").then((m) => m.default),
32
32
  "access-token": () => import("../access-token-CIM4RLBP.js").then((m) => m.default),
33
33
  address: () => import("../address-EDRTUWTP.js").then((m) => m.default),
34
34
  "address-suggestions": () => import("../address-suggestions-S5WEST2N.js").then((m) => m.default),
@@ -90,11 +90,11 @@ process.stderr.on("error", (err) => {
90
90
  if (err.code === "EPIPE") process.exit(0);
91
91
  throw err;
92
92
  });
93
- var VERSION = true ? "0.1.17" : (await null).default.version;
93
+ var VERSION = true ? "0.1.18" : (await null).default.version;
94
94
  var args = process.argv.slice(2);
95
95
  var completionsIdx = args.indexOf("--_completions");
96
96
  if (completionsIdx >= 0) {
97
- const { handleCompletions } = await import("../completion-KA3HJ6PR.js");
97
+ const { handleCompletions } = await import("../completion-INJETNZK.js");
98
98
  handleCompletions(args[completionsIdx + 1], args[completionsIdx + 2]);
99
99
  process.exit(0);
100
100
  }
@@ -207,9 +207,9 @@ var API_LIST = [
207
207
  apiName: "configurationHub",
208
208
  kebabName: "configuration-hub",
209
209
  title: "Configuration Hub API",
210
- serverUrl: "https://configuration-hub.dev.sls.epilot.io",
211
- operationCount: 3,
212
- operationIds: ["listConfigTypes", "listConfigs", "getConfigDependencies"]
210
+ serverUrl: "https://configuration-hub.sls.epilot.io",
211
+ operationCount: 4,
212
+ operationIds: ["listConfigTypes", "listConfigs", "getConfigDependencies", "rebuildIndex"]
213
213
  },
214
214
  {
215
215
  apiName: "consent",
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  API_LIST
4
- } from "./chunk-XQLUS2BD.js";
4
+ } from "./chunk-JFIDAAH4.js";
5
5
  import {
6
6
  DIM,
7
7
  GREEN,
@@ -72,7 +72,7 @@ ${GREEN}${BOLD}Upgraded to @epilot/cli@${latest}${RESET}
72
72
  }
73
73
  });
74
74
  var getCurrentVersion = () => {
75
- if (true) return "0.1.17";
75
+ if (true) return "0.1.18";
76
76
  try {
77
77
  const output = execSync("npm ls -g @epilot/cli --depth=0 --json 2>/dev/null", {
78
78
  encoding: "utf-8",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/cli",
3
- "version": "0.1.17",
3
+ "version": "0.1.18",
4
4
  "description": "CLI for epilot APIs",
5
5
  "type": "module",
6
6
  "bin": {