@epilot/cli 0.1.95 → 0.1.96
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 -1
- package/definitions/deduplication.json +80 -4
- package/definitions/integration-toolkit.json +14 -10
- package/dist/bin/epilot.js +6 -6
- package/dist/{chunk-SOTT5WKJ.js → chunk-A4U3GMLI.js} +2 -1
- package/dist/{completion-IGVIBAFM.js → completion-YMYZM32H.js} +1 -1
- package/dist/{upgrade-W43OKEIV.js → upgrade-VVU7H3SR.js} +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -132,6 +132,35 @@
|
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
134
|
},
|
|
135
|
+
"/v1/duplicates/dismiss": {
|
|
136
|
+
"post": {
|
|
137
|
+
"operationId": "dismissDuplicates",
|
|
138
|
+
"summary": "dismissDuplicates",
|
|
139
|
+
"description": "Confirms entities as NOT duplicates: clears the internal duplicate-detection flags (_matching_entities) on each given entity, so they stop appearing as open duplicate sets. The records themselves are not modified otherwise.",
|
|
140
|
+
"tags": [],
|
|
141
|
+
"requestBody": {
|
|
142
|
+
"content": {
|
|
143
|
+
"application/json": {
|
|
144
|
+
"schema": {
|
|
145
|
+
"$ref": "#/components/schemas/DismissDuplicatesRequestBody"
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
"responses": {
|
|
151
|
+
"200": {
|
|
152
|
+
"description": "Flags cleared",
|
|
153
|
+
"content": {
|
|
154
|
+
"application/json": {
|
|
155
|
+
"schema": {
|
|
156
|
+
"$ref": "#/components/schemas/DismissDuplicatesResponse"
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
},
|
|
135
164
|
"/v1/uniqueness-criteria": {
|
|
136
165
|
"get": {
|
|
137
166
|
"operationId": "listUniquenessCriteria",
|
|
@@ -329,10 +358,19 @@
|
|
|
329
358
|
"minItems": 1
|
|
330
359
|
},
|
|
331
360
|
"DeduplicateRequestResponse": {
|
|
332
|
-
"type": "
|
|
333
|
-
"
|
|
334
|
-
"
|
|
335
|
-
|
|
361
|
+
"type": "object",
|
|
362
|
+
"properties": {
|
|
363
|
+
"deduplicatedEntities": {
|
|
364
|
+
"type": "array",
|
|
365
|
+
"items": {
|
|
366
|
+
"$ref": "#/components/schemas/Entity"
|
|
367
|
+
},
|
|
368
|
+
"description": "The merged survivor entity of each processed set"
|
|
369
|
+
}
|
|
370
|
+
},
|
|
371
|
+
"required": [
|
|
372
|
+
"deduplicatedEntities"
|
|
373
|
+
]
|
|
336
374
|
},
|
|
337
375
|
"Entity": {
|
|
338
376
|
"type": "object",
|
|
@@ -557,6 +595,44 @@
|
|
|
557
595
|
"matched_attributes"
|
|
558
596
|
]
|
|
559
597
|
},
|
|
598
|
+
"DismissDuplicatesRequestBody": {
|
|
599
|
+
"type": "object",
|
|
600
|
+
"properties": {
|
|
601
|
+
"schema": {
|
|
602
|
+
"type": "string",
|
|
603
|
+
"minLength": 1
|
|
604
|
+
},
|
|
605
|
+
"entityIds": {
|
|
606
|
+
"type": "array",
|
|
607
|
+
"items": {
|
|
608
|
+
"type": "string",
|
|
609
|
+
"minLength": 1
|
|
610
|
+
},
|
|
611
|
+
"minItems": 1,
|
|
612
|
+
"maxItems": 100,
|
|
613
|
+
"description": "Entities whose duplicate flags (_matching_entities) are cleared — the records are confirmed as NOT duplicates and stay separate"
|
|
614
|
+
}
|
|
615
|
+
},
|
|
616
|
+
"required": [
|
|
617
|
+
"schema",
|
|
618
|
+
"entityIds"
|
|
619
|
+
]
|
|
620
|
+
},
|
|
621
|
+
"DismissDuplicatesResponse": {
|
|
622
|
+
"type": "object",
|
|
623
|
+
"properties": {
|
|
624
|
+
"dismissed": {
|
|
625
|
+
"type": "array",
|
|
626
|
+
"items": {
|
|
627
|
+
"type": "string"
|
|
628
|
+
},
|
|
629
|
+
"description": "Entity ids whose duplicate flags were cleared"
|
|
630
|
+
}
|
|
631
|
+
},
|
|
632
|
+
"required": [
|
|
633
|
+
"dismissed"
|
|
634
|
+
]
|
|
635
|
+
},
|
|
560
636
|
"UniquenessCriteriaListResponse": {
|
|
561
637
|
"type": "object",
|
|
562
638
|
"properties": {
|
|
@@ -2075,7 +2075,7 @@
|
|
|
2075
2075
|
"/v2/integrations/{integrationId}/use-cases/{useCaseId}/secure-proxy-whitelist": {
|
|
2076
2076
|
"get": {
|
|
2077
2077
|
"operationId": "getSecureProxyWhitelist",
|
|
2078
|
-
"summary": "
|
|
2078
|
+
"summary": "getSecureProxyWhitelist",
|
|
2079
2079
|
"description": "Returns the current allowed_domains, allowed_ips, and vpc_mode for a secure_proxy use case.\nStaff-only — gated by internal-auth issuer AND admin-portal Cognito user pool membership.\nRejects Login-As tokens.\n",
|
|
2080
2080
|
"tags": [
|
|
2081
2081
|
"integrations",
|
|
@@ -2135,7 +2135,7 @@
|
|
|
2135
2135
|
},
|
|
2136
2136
|
"put": {
|
|
2137
2137
|
"operationId": "updateSecureProxyWhitelist",
|
|
2138
|
-
"summary": "
|
|
2138
|
+
"summary": "updateSecureProxyWhitelist",
|
|
2139
2139
|
"description": "Replaces allowed_domains and/or allowed_ips on a secure_proxy use case.\nAt least one of the two fields is required. Validation mirrors the CLI's\n`validateDomainPatterns` / `validateCidrs`. Writes a USECASE_HISTORY row\nwith the admin user's email as `changed_by`.\n\nUpdate semantics per field:\n - **omitted** — field is not modified; the stored value is preserved.\n - **non-empty array** — the stored value is replaced with the supplied list.\n - **empty array (`[]`)** — the list is cleared (stored as `[]`). This is\n the canonical way to remove all entries. `null` is not accepted.\n\nStaff-only — same auth gates as GET.\n",
|
|
2140
2140
|
"tags": [
|
|
2141
2141
|
"integrations",
|
|
@@ -2207,7 +2207,7 @@
|
|
|
2207
2207
|
"/v2/integrations/{integrationId}/use-cases/{useCaseId}/secure-proxy-whitelist/history": {
|
|
2208
2208
|
"get": {
|
|
2209
2209
|
"operationId": "listSecureProxyWhitelistHistory",
|
|
2210
|
-
"summary": "
|
|
2210
|
+
"summary": "listSecureProxyWhitelistHistory",
|
|
2211
2211
|
"description": "Returns the most recent USECASE_HISTORY entries for a secure_proxy use case,\nin reverse chronological order (newest first). Each entry includes the\nactor email (`changed_by`), the ISO-8601 timestamp (`history_created_at`),\nthe `change_description` (free-text action), and the full `configuration`\nsnapshot — from which UI-08 computes a before/after diff between consecutive\nentries.\n\nStaff-only — gated by internal-auth issuer AND admin-portal Cognito user pool\nmembership. Rejects Login-As tokens (same auth gate as the GET / PUT\nsecure-proxy-whitelist operations).\n\nThin wrapper over the service-layer `listUseCaseHistory` that powers\n`GET /v1/integrations/{integrationId}/use-cases/{useCaseId}/history` — the\nseparate path exists because the /v1 variant is tenant-gated and admin-portal\ninternal-auth tokens do not carry tenant permissions.\n",
|
|
2212
2212
|
"tags": [
|
|
2213
2213
|
"integrations",
|
|
@@ -3357,7 +3357,7 @@
|
|
|
3357
3357
|
"/v1/integrations/secure-proxies": {
|
|
3358
3358
|
"get": {
|
|
3359
3359
|
"operationId": "listSecureProxies",
|
|
3360
|
-
"summary": "
|
|
3360
|
+
"summary": "listSecureProxies",
|
|
3361
3361
|
"description": "Lists all secure_proxy use cases across all integrations for the authenticated organization.\nReturns minimal data suitable for dropdowns and selection UIs.\n",
|
|
3362
3362
|
"tags": [
|
|
3363
3363
|
"integrations"
|
|
@@ -3401,7 +3401,7 @@
|
|
|
3401
3401
|
"/v1/secure-proxy": {
|
|
3402
3402
|
"post": {
|
|
3403
3403
|
"operationId": "secureProxy",
|
|
3404
|
-
"summary": "
|
|
3404
|
+
"summary": "secureProxy",
|
|
3405
3405
|
"description": "Routes an HTTP request through a VPC with either static IP egress or VPN secure link access.\nThe VPC mode is determined by the referenced secure_proxy use case configuration.\nFor secure_link mode, the target URL must match the use case's allowed_domains whitelist.\n",
|
|
3406
3406
|
"tags": [
|
|
3407
3407
|
"proxy"
|
|
@@ -3484,7 +3484,7 @@
|
|
|
3484
3484
|
"/v1/managed-call/{slug}/execute": {
|
|
3485
3485
|
"post": {
|
|
3486
3486
|
"operationId": "managedCallExecute",
|
|
3487
|
-
"summary": "
|
|
3487
|
+
"summary": "managedCallExecute",
|
|
3488
3488
|
"description": "Execute a managed call operation synchronously. The slug in the path acts as the RPC method name.\nCalls an external partner API with JSONata mapping on both request and response.\n",
|
|
3489
3489
|
"tags": [
|
|
3490
3490
|
"managed-call"
|
|
@@ -3573,7 +3573,7 @@
|
|
|
3573
3573
|
"/v1/integrations/{integrationId}/generate-types-preview": {
|
|
3574
3574
|
"post": {
|
|
3575
3575
|
"operationId": "generateTypesPreview",
|
|
3576
|
-
"summary": "
|
|
3576
|
+
"summary": "generateTypesPreview",
|
|
3577
3577
|
"description": "Analyses the JSONata mappings of all managed-call use cases in the integration and returns scaffolded type descriptors. The frontend uses these to show the type editor modal where developers fill in leaf types.\n",
|
|
3578
3578
|
"tags": [
|
|
3579
3579
|
"integrations"
|
|
@@ -3623,7 +3623,7 @@
|
|
|
3623
3623
|
"/v1/integrations/{integrationId}/generate-types": {
|
|
3624
3624
|
"post": {
|
|
3625
3625
|
"operationId": "generateTypes",
|
|
3626
|
-
"summary": "
|
|
3626
|
+
"summary": "generateTypes",
|
|
3627
3627
|
"description": "Generates a complete TypeScript npm package with typed interfaces for all managed-call use cases. This is a stateless operation that does not persist any changes. Use the commit-types endpoint to lock configurations after review.\n",
|
|
3628
3628
|
"tags": [
|
|
3629
3629
|
"integrations"
|
|
@@ -3683,7 +3683,7 @@
|
|
|
3683
3683
|
"/v1/integrations/{integrationId}/commit-types": {
|
|
3684
3684
|
"post": {
|
|
3685
3685
|
"operationId": "commitTypes",
|
|
3686
|
-
"summary": "
|
|
3686
|
+
"summary": "commitTypes",
|
|
3687
3687
|
"description": "Commits the generated types by locking use case configurations and updating version tracking. Should be called after the user reviews and downloads the generated package.\n",
|
|
3688
3688
|
"tags": [
|
|
3689
3689
|
"integrations"
|
|
@@ -6214,7 +6214,11 @@
|
|
|
6214
6214
|
"change_description": {
|
|
6215
6215
|
"type": "string",
|
|
6216
6216
|
"maxLength": 2000,
|
|
6217
|
-
"description": "
|
|
6217
|
+
"description": "Reason given for the update that produced the current version. Absent when the update supplied none — it is not inherited from the previous version.\n"
|
|
6218
|
+
},
|
|
6219
|
+
"changed_by": {
|
|
6220
|
+
"type": "string",
|
|
6221
|
+
"description": "User ID recorded for the update that produced the current version. Absent when the update had no user context, e.g. an automated sync.\n"
|
|
6218
6222
|
},
|
|
6219
6223
|
"created_at": {
|
|
6220
6224
|
"type": "string",
|
package/dist/bin/epilot.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
API_LIST
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-A4U3GMLI.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.
|
|
14
|
+
version: "0.1.96",
|
|
15
15
|
description: "CLI for epilot APIs"
|
|
16
16
|
},
|
|
17
17
|
args: {
|
|
@@ -30,8 +30,8 @@ var main = defineCommand({
|
|
|
30
30
|
auth: () => import("../auth-WMXFMPWE.js").then((m) => m.default),
|
|
31
31
|
profile: () => import("../profile-OZJL5ZPT.js").then((m) => m.default),
|
|
32
32
|
config: () => import("../config-DGZIMLZK.js").then((m) => m.default),
|
|
33
|
-
completion: () => import("../completion-
|
|
34
|
-
upgrade: () => import("../upgrade-
|
|
33
|
+
completion: () => import("../completion-YMYZM32H.js").then((m) => m.default),
|
|
34
|
+
upgrade: () => import("../upgrade-VVU7H3SR.js").then((m) => m.default),
|
|
35
35
|
"access-token": () => import("../access-token-WWE6BDJH.js").then((m) => m.default),
|
|
36
36
|
address: () => import("../address-EH3C4CVB.js").then((m) => m.default),
|
|
37
37
|
"address-suggestions": () => import("../address-suggestions-RRSLOBFW.js").then((m) => m.default),
|
|
@@ -134,13 +134,13 @@ process.stderr.on("error", (err) => {
|
|
|
134
134
|
if (err.code === "EPIPE") process.exit(0);
|
|
135
135
|
throw err;
|
|
136
136
|
});
|
|
137
|
-
var VERSION = true ? "0.1.
|
|
137
|
+
var VERSION = true ? "0.1.96" : (await null).default.version;
|
|
138
138
|
var reorderedArgv = hoistFlagsAfterSubcommand(process.argv.slice(2));
|
|
139
139
|
process.argv = [process.argv[0], process.argv[1], ...reorderedArgv];
|
|
140
140
|
var args = process.argv.slice(2);
|
|
141
141
|
var completionsIdx = args.indexOf("--_completions");
|
|
142
142
|
if (completionsIdx >= 0) {
|
|
143
|
-
const { handleCompletions } = await import("../completion-
|
|
143
|
+
const { handleCompletions } = await import("../completion-YMYZM32H.js");
|
|
144
144
|
handleCompletions(args[completionsIdx + 1], args[completionsIdx + 2]);
|
|
145
145
|
process.exit(0);
|
|
146
146
|
}
|
|
@@ -519,12 +519,13 @@ var API_LIST = [
|
|
|
519
519
|
kebabName: "deduplication",
|
|
520
520
|
title: "Deduplication API",
|
|
521
521
|
serverUrl: "https://deduplication.sls.epilot.io",
|
|
522
|
-
operationCount:
|
|
522
|
+
operationCount: 10,
|
|
523
523
|
operationIds: [
|
|
524
524
|
"deduplicate",
|
|
525
525
|
"deduplicateAsync",
|
|
526
526
|
"getDeduplicationJob",
|
|
527
527
|
"detectDuplicates",
|
|
528
|
+
"dismissDuplicates",
|
|
528
529
|
"listUniquenessCriteria",
|
|
529
530
|
"createUniquenessCriteria",
|
|
530
531
|
"getUniquenessCriteria",
|
|
@@ -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.
|
|
75
|
+
if (true) return "0.1.96";
|
|
76
76
|
try {
|
|
77
77
|
const output = execSync("npm ls -g @epilot/cli --depth=0 --json 2>/dev/null", {
|
|
78
78
|
encoding: "utf-8",
|