@ductape/sdk 0.1.17 → 0.1.19
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.
|
@@ -6,26 +6,36 @@ const STORAGE = {
|
|
|
6
6
|
aws: 's3',
|
|
7
7
|
gcp: 'gcs',
|
|
8
8
|
azure: 'blob',
|
|
9
|
+
mongodb_atlas: null,
|
|
10
|
+
neo4j_aura: null,
|
|
9
11
|
};
|
|
10
12
|
const BROKER = {
|
|
11
13
|
aws: 'sqs',
|
|
12
14
|
gcp: 'pubsub',
|
|
13
15
|
azure: 'servicebus',
|
|
16
|
+
mongodb_atlas: null,
|
|
17
|
+
neo4j_aura: null,
|
|
14
18
|
};
|
|
15
19
|
const DATABASE = {
|
|
16
20
|
aws: 'rds',
|
|
17
21
|
gcp: 'cloudsql',
|
|
18
22
|
azure: 'postgresql',
|
|
23
|
+
mongodb_atlas: 'atlas-cluster',
|
|
24
|
+
neo4j_aura: null,
|
|
19
25
|
};
|
|
20
26
|
const GRAPH = {
|
|
21
27
|
aws: 'neptune',
|
|
22
28
|
gcp: 'spanner-graph',
|
|
23
29
|
azure: 'cosmos-gremlin',
|
|
30
|
+
mongodb_atlas: null,
|
|
31
|
+
neo4j_aura: 'aura-instance',
|
|
24
32
|
};
|
|
25
33
|
const VECTOR = {
|
|
26
34
|
aws: 'opensearch',
|
|
27
35
|
gcp: 'vertex-vector-search',
|
|
28
36
|
azure: 'azure-search',
|
|
37
|
+
mongodb_atlas: null,
|
|
38
|
+
neo4j_aura: null,
|
|
29
39
|
};
|
|
30
40
|
const BY_KIND = {
|
|
31
41
|
storage: STORAGE,
|
|
@@ -33,7 +43,13 @@ const BY_KIND = {
|
|
|
33
43
|
databases: DATABASE,
|
|
34
44
|
graphs: GRAPH,
|
|
35
45
|
vectors: VECTOR,
|
|
36
|
-
caches: {
|
|
46
|
+
caches: {
|
|
47
|
+
aws: null,
|
|
48
|
+
gcp: null,
|
|
49
|
+
azure: null,
|
|
50
|
+
mongodb_atlas: null,
|
|
51
|
+
neo4j_aura: null,
|
|
52
|
+
},
|
|
37
53
|
};
|
|
38
54
|
function cloudServiceForProvider(componentType, provider) {
|
|
39
55
|
var _a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloud-service-map.util.js","sourceRoot":"","sources":["../../src/cloud/cloud-service-map.util.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"cloud-service-map.util.js","sourceRoot":"","sources":["../../src/cloud/cloud-service-map.util.ts"],"names":[],"mappings":";;AAyDA,0DAOC;AAED,kDAWC;AA3ED,MAAM,OAAO,GAAuD;IAClE,GAAG,EAAE,IAAI;IACT,GAAG,EAAE,KAAK;IACV,KAAK,EAAE,MAAM;IACb,aAAa,EAAE,IAAI;IACnB,UAAU,EAAE,IAAI;CACjB,CAAC;AAEF,MAAM,MAAM,GAAuD;IACjE,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,QAAQ;IACb,KAAK,EAAE,YAAY;IACnB,aAAa,EAAE,IAAI;IACnB,UAAU,EAAE,IAAI;CACjB,CAAC;AAEF,MAAM,QAAQ,GAAuD;IACnE,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,UAAU;IACf,KAAK,EAAE,YAAY;IACnB,aAAa,EAAE,eAAe;IAC9B,UAAU,EAAE,IAAI;CACjB,CAAC;AAEF,MAAM,KAAK,GAAuD;IAChE,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,eAAe;IACpB,KAAK,EAAE,gBAAgB;IACvB,aAAa,EAAE,IAAI;IACnB,UAAU,EAAE,eAAe;CAC5B,CAAC;AAEF,MAAM,MAAM,GAAuD;IACjE,GAAG,EAAE,YAAY;IACjB,GAAG,EAAE,sBAAsB;IAC3B,KAAK,EAAE,cAAc;IACrB,aAAa,EAAE,IAAI;IACnB,UAAU,EAAE,IAAI;CACjB,CAAC;AAEF,MAAM,OAAO,GAAmF;IAC9F,OAAO,EAAE,OAAO;IAChB,cAAc,EAAE,MAAM;IACtB,SAAS,EAAE,QAAQ;IACnB,MAAM,EAAE,KAAK;IACb,OAAO,EAAE,MAAM;IACf,MAAM,EAAE;QACN,GAAG,EAAE,IAAI;QACT,GAAG,EAAE,IAAI;QACT,KAAK,EAAE,IAAI;QACX,aAAa,EAAE,IAAI;QACnB,UAAU,EAAE,IAAI;KACjB;CACF,CAAC;AAEF,SAAgB,uBAAuB,CACrC,aAAiC,EACjC,QAAgB;;IAEhB,MAAM,GAAG,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IACnC,IAAI,CAAC,GAAG;QAAE,OAAO,IAAI,CAAC;IACtB,OAAO,MAAA,GAAG,CAAC,QAAyB,CAAC,mCAAI,IAAI,CAAC;AAChD,CAAC;AAED,SAAgB,mBAAmB,CACjC,aAAiC,EACjC,QAAgB;IAEhB,MAAM,OAAO,GAAG,uBAAuB,CAAC,aAAa,EAAE,QAAQ,CAAC,CAAC;IACjE,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CACb,gBAAgB,aAAa,+BAA+B,QAAQ,GAAG,CACxE,CAAC;IACJ,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Cloud provider connection and resource types (AWS, GCP, Azure).
|
|
2
|
+
* Cloud provider connection and resource types (AWS, GCP, Azure, MongoDB Atlas, Neo4j Aura).
|
|
3
3
|
*/
|
|
4
4
|
/** Supported cloud providers */
|
|
5
|
-
export type CloudProvider = 'aws' | 'gcp' | 'azure';
|
|
5
|
+
export type CloudProvider = 'aws' | 'gcp' | 'azure' | 'mongodb_atlas' | 'neo4j_aura';
|
|
6
6
|
/** How the cloud account is linked to Ductape */
|
|
7
|
-
export type CloudAuthMode = 'iam_role' | 'oauth' | 'service_principal' | 'workload_identity';
|
|
7
|
+
export type CloudAuthMode = 'iam_role' | 'oauth' | 'service_principal' | 'workload_identity' | 'api_key';
|
|
8
8
|
/** Connection lifecycle status */
|
|
9
9
|
export type CloudConnectionStatus = 'pending' | 'active' | 'error' | 'revoked';
|
|
10
10
|
/** Scopes gate which resource types can be listed/imported */
|
|
@@ -124,6 +124,13 @@ export interface ICompleteCloudConnectionInput {
|
|
|
124
124
|
default_location?: string;
|
|
125
125
|
/** Azure legacy blob-only (optional when using service principal) */
|
|
126
126
|
connection_string?: string;
|
|
127
|
+
/** MongoDB Atlas */
|
|
128
|
+
atlas_public_key?: string;
|
|
129
|
+
atlas_private_key?: string;
|
|
130
|
+
/** Neo4j Aura */
|
|
131
|
+
aura_client_id?: string;
|
|
132
|
+
aura_client_secret?: string;
|
|
133
|
+
aura_instance_id?: string;
|
|
127
134
|
}
|
|
128
135
|
export interface IValidateCloudConnectionResult {
|
|
129
136
|
valid: boolean;
|
|
@@ -132,7 +139,7 @@ export interface IValidateCloudConnectionResult {
|
|
|
132
139
|
tested_at?: string;
|
|
133
140
|
}
|
|
134
141
|
/** Cloud resource kinds exposed by the connector */
|
|
135
|
-
export type CloudResourceService = 's3' | 'sqs' | 'sns' | 'gcs' | 'pubsub' | 'blob' | 'servicebus' | 'rds' | 'postgresql' | 'cloudsql' | 'neptune' | 'cosmos-gremlin' | 'opensearch' | 'azure-search' | 'spanner-graph' | 'vertex-vector-search' | 'pinecone';
|
|
142
|
+
export type CloudResourceService = 's3' | 'sqs' | 'sns' | 'gcs' | 'pubsub' | 'blob' | 'servicebus' | 'rds' | 'postgresql' | 'cloudsql' | 'neptune' | 'cosmos-gremlin' | 'opensearch' | 'azure-search' | 'spanner-graph' | 'vertex-vector-search' | 'pinecone' | 'atlas-cluster' | 'aura-instance';
|
|
136
143
|
export interface ICloudResource {
|
|
137
144
|
id: string;
|
|
138
145
|
name: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Cloud provider connection and resource types (AWS, GCP, Azure).
|
|
3
|
+
* Cloud provider connection and resource types (AWS, GCP, Azure, MongoDB Atlas, Neo4j Aura).
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
//# sourceMappingURL=cloud.types.js.map
|