@squidcloud/client 1.0.172 → 1.0.174
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/dist/cjs/index.js +3840 -3808
- package/dist/internal-common/src/public-types/ai-assistant.public-types.d.ts +0 -24
- package/dist/internal-common/src/public-types/ai-chatbot.public-context.d.ts +2 -0
- package/dist/internal-common/src/public-types/ai-chatbot.public-types.d.ts +1 -16
- package/dist/internal-common/src/public-types/api-call.public-context.d.ts +1 -1
- package/dist/internal-common/src/public-types/application.public-types.d.ts +0 -37
- package/dist/internal-common/src/public-types/integrations/ai_chatbot.public-types.d.ts +31 -0
- package/dist/internal-common/src/public-types/integrations/api.public-types.d.ts +41 -0
- package/dist/internal-common/src/public-types/pagination.public-types.d.ts +1 -1
- package/dist/internal-common/src/public-types/query.public-types.d.ts +1 -0
- package/dist/internal-common/src/public-types/secret.public-types.d.ts +8 -0
- package/dist/internal-common/src/types/api.types.d.ts +1 -2
- package/dist/internal-common/src/types/integrations/ai_chatbot.types.d.ts +1 -0
- package/dist/internal-common/src/types/integrations/api.types.d.ts +1 -0
- package/dist/internal-common/src/types/integrations/auth.types.d.ts +1 -0
- package/dist/internal-common/src/types/integrations/database.types.d.ts +1 -0
- package/dist/internal-common/src/types/integrations/observability.types.d.ts +1 -0
- package/dist/internal-common/src/types/integrations/queue-types.d.ts +1 -0
- package/dist/internal-common/src/types/integrations/schemas.d.ts +1 -0
- package/dist/internal-common/src/types/secret.types.d.ts +0 -9
- package/dist/internal-common/src/utils/object.d.ts +1 -1
- package/dist/internal-common/src/utils/squid-private-options.d.ts +15 -0
- package/dist/typescript-client/src/index.d.ts +5 -4
- package/dist/typescript-client/src/public-types.d.ts +2 -7
- package/dist/typescript-client/src/secret.client.d.ts +1 -2
- package/package.json +2 -2
- package/dist/internal-common/src/public-types/integrations/ai_chatbot.types.d.ts +0 -32
- package/dist/internal-common/src/public-types/integrations/api.types.d.ts +0 -81
- package/dist/internal-common/src/public-types/integrations/auth.types.d.ts +0 -54
- package/dist/internal-common/src/public-types/integrations/database.types.d.ts +0 -228
- package/dist/internal-common/src/public-types/integrations/observability.types.d.ts +0 -24
- package/dist/internal-common/src/public-types/integrations/queue-types.d.ts +0 -40
- package/dist/internal-common/src/public-types/integrations/schemas.d.ts +0 -72
|
@@ -1,228 +0,0 @@
|
|
|
1
|
-
import { BaseIntegrationConfig, BaseIntegrationSchema, DatabaseIntegrationType } from './schemas';
|
|
2
|
-
import { IntegrationSchemaType, IntegrationType } from '../integration.public-types';
|
|
3
|
-
import { CollectionName } from '../document.public-types';
|
|
4
|
-
import { CollectionSchema } from '../schema.public-types';
|
|
5
|
-
export interface MongoConnectionSecretOptions {
|
|
6
|
-
password?: string;
|
|
7
|
-
}
|
|
8
|
-
export interface MongoConnectionOptions {
|
|
9
|
-
secrets: MongoConnectionSecretOptions;
|
|
10
|
-
connectionString: string;
|
|
11
|
-
user?: string;
|
|
12
|
-
replicaSet?: string;
|
|
13
|
-
ssl?: {
|
|
14
|
-
certificateFile: string;
|
|
15
|
-
validate: boolean;
|
|
16
|
-
};
|
|
17
|
-
maxPoolSize?: number;
|
|
18
|
-
minPoolSize?: number;
|
|
19
|
-
socketTimeoutMS?: number;
|
|
20
|
-
serverSelectionTimeoutMS?: number;
|
|
21
|
-
keepAlive?: boolean;
|
|
22
|
-
directConnection?: boolean;
|
|
23
|
-
}
|
|
24
|
-
export interface MySqlConnectionSecretOptions {
|
|
25
|
-
password: string;
|
|
26
|
-
}
|
|
27
|
-
export interface ClickHouseConnectionSecretOptions {
|
|
28
|
-
password: string;
|
|
29
|
-
}
|
|
30
|
-
export interface BigQueryConnectionSecretOptions {
|
|
31
|
-
privateKey: string;
|
|
32
|
-
}
|
|
33
|
-
export interface OracleConnectionSecretOptions {
|
|
34
|
-
password: string;
|
|
35
|
-
}
|
|
36
|
-
export interface MssqlConnectionSecretOptions {
|
|
37
|
-
password: string;
|
|
38
|
-
}
|
|
39
|
-
export interface PostgresConnectionSecretOptions {
|
|
40
|
-
password: string;
|
|
41
|
-
sslCertificate?: string;
|
|
42
|
-
}
|
|
43
|
-
export interface MySqlConnectionOptions {
|
|
44
|
-
secrets: MySqlConnectionSecretOptions;
|
|
45
|
-
host: string;
|
|
46
|
-
user: string;
|
|
47
|
-
database: string;
|
|
48
|
-
connectionLimit?: number;
|
|
49
|
-
sslEnabled?: boolean;
|
|
50
|
-
}
|
|
51
|
-
export interface ClickHouseConnectionOptions {
|
|
52
|
-
secrets: ClickHouseConnectionSecretOptions;
|
|
53
|
-
host: string;
|
|
54
|
-
user: string;
|
|
55
|
-
database: string;
|
|
56
|
-
connectionLimit?: number;
|
|
57
|
-
sslEnabled?: boolean;
|
|
58
|
-
}
|
|
59
|
-
export interface BigQueryConnectionOptions {
|
|
60
|
-
secrets: BigQueryConnectionSecretOptions;
|
|
61
|
-
projectId: string;
|
|
62
|
-
datasetId: string;
|
|
63
|
-
email: string;
|
|
64
|
-
}
|
|
65
|
-
export interface OracleConnectionOptions {
|
|
66
|
-
secrets: OracleConnectionSecretOptions;
|
|
67
|
-
host: string;
|
|
68
|
-
user: string;
|
|
69
|
-
database: string;
|
|
70
|
-
connectionLimit?: number;
|
|
71
|
-
}
|
|
72
|
-
export interface MssqlConnectionOptions {
|
|
73
|
-
secrets: MssqlConnectionSecretOptions;
|
|
74
|
-
host: string;
|
|
75
|
-
user: string;
|
|
76
|
-
schemas: string;
|
|
77
|
-
database: string;
|
|
78
|
-
connectionLimit?: number;
|
|
79
|
-
sslEnabled?: boolean;
|
|
80
|
-
}
|
|
81
|
-
export interface PostgresConnectionOptions {
|
|
82
|
-
host: string;
|
|
83
|
-
user: string;
|
|
84
|
-
database: string;
|
|
85
|
-
schema?: string;
|
|
86
|
-
sslEnabled?: boolean;
|
|
87
|
-
secrets: PostgresConnectionSecretOptions;
|
|
88
|
-
}
|
|
89
|
-
export interface SnowflakeConnectionSecretOptions {
|
|
90
|
-
password: string;
|
|
91
|
-
}
|
|
92
|
-
export interface SnowflakeConnectionOptions {
|
|
93
|
-
secrets: SnowflakeConnectionSecretOptions;
|
|
94
|
-
account: string;
|
|
95
|
-
username: string;
|
|
96
|
-
database: string;
|
|
97
|
-
schema: string;
|
|
98
|
-
warehouse: string;
|
|
99
|
-
role: string;
|
|
100
|
-
}
|
|
101
|
-
type TableName = string;
|
|
102
|
-
export interface IntegrationDataSchema extends BaseIntegrationSchema {
|
|
103
|
-
type: IntegrationSchemaType.data;
|
|
104
|
-
collections: Record<TableName, CollectionSchema>;
|
|
105
|
-
}
|
|
106
|
-
export interface BaseDatabaseIntegrationConfig extends BaseIntegrationConfig {
|
|
107
|
-
type: DatabaseIntegrationType;
|
|
108
|
-
}
|
|
109
|
-
export interface MySqlIntegrationConfiguration {
|
|
110
|
-
connectionOptions: MySqlConnectionOptions;
|
|
111
|
-
}
|
|
112
|
-
export interface ClickHouseIntegrationConfiguration {
|
|
113
|
-
connectionOptions: ClickHouseConnectionOptions;
|
|
114
|
-
}
|
|
115
|
-
export interface BigQueryIntegrationConfiguration {
|
|
116
|
-
connectionOptions: BigQueryConnectionOptions;
|
|
117
|
-
}
|
|
118
|
-
export interface OracleIntegrationConfiguration {
|
|
119
|
-
connectionOptions: OracleConnectionOptions;
|
|
120
|
-
}
|
|
121
|
-
export interface MssqlIntegrationConfiguration {
|
|
122
|
-
connectionOptions: MssqlConnectionOptions;
|
|
123
|
-
}
|
|
124
|
-
export interface PostgresIntegrationConfiguration {
|
|
125
|
-
connectionOptions: PostgresConnectionOptions;
|
|
126
|
-
}
|
|
127
|
-
export interface MongoIntegrationConfiguration {
|
|
128
|
-
connectionOptions: MongoConnectionOptions;
|
|
129
|
-
}
|
|
130
|
-
export interface SnowflakeIntegrationConfiguration {
|
|
131
|
-
connectionOptions: SnowflakeConnectionOptions;
|
|
132
|
-
}
|
|
133
|
-
export interface MySqlIntegrationConfig extends BaseDatabaseIntegrationConfig {
|
|
134
|
-
type: IntegrationType.mysql;
|
|
135
|
-
configuration: MySqlIntegrationConfiguration;
|
|
136
|
-
}
|
|
137
|
-
export interface ClickHouseIntegrationConfig extends BaseDatabaseIntegrationConfig {
|
|
138
|
-
type: IntegrationType.clickhouse;
|
|
139
|
-
configuration: ClickHouseIntegrationConfiguration;
|
|
140
|
-
}
|
|
141
|
-
export interface BigQueryIntegrationConfig extends BaseDatabaseIntegrationConfig {
|
|
142
|
-
type: IntegrationType.bigquery;
|
|
143
|
-
configuration: BigQueryIntegrationConfiguration;
|
|
144
|
-
}
|
|
145
|
-
export interface OracleIntegrationConfig extends BaseDatabaseIntegrationConfig {
|
|
146
|
-
type: IntegrationType.oracledb;
|
|
147
|
-
configuration: OracleIntegrationConfiguration;
|
|
148
|
-
}
|
|
149
|
-
export interface MssqlIntegrationConfig extends BaseDatabaseIntegrationConfig {
|
|
150
|
-
type: IntegrationType.mssql;
|
|
151
|
-
configuration: MssqlIntegrationConfiguration;
|
|
152
|
-
}
|
|
153
|
-
export interface BasePostgresIntegration extends BaseDatabaseIntegrationConfig {
|
|
154
|
-
type: IntegrationType.postgres | IntegrationType.cockroach;
|
|
155
|
-
configuration: PostgresIntegrationConfiguration;
|
|
156
|
-
}
|
|
157
|
-
export interface PostgresIntegrationConfig extends BasePostgresIntegration {
|
|
158
|
-
type: IntegrationType.postgres;
|
|
159
|
-
}
|
|
160
|
-
export interface CockroachIntegrationConfig extends BasePostgresIntegration {
|
|
161
|
-
type: IntegrationType.cockroach;
|
|
162
|
-
}
|
|
163
|
-
export interface InternalIntegrationConfig extends BaseDatabaseIntegrationConfig {
|
|
164
|
-
type: IntegrationType.built_in_db;
|
|
165
|
-
}
|
|
166
|
-
export interface MongoIntegrationConfig extends BaseDatabaseIntegrationConfig {
|
|
167
|
-
type: IntegrationType.mongo;
|
|
168
|
-
configuration: MongoIntegrationConfiguration;
|
|
169
|
-
}
|
|
170
|
-
export interface SnowflakeIntegrationConfig extends BaseDatabaseIntegrationConfig {
|
|
171
|
-
type: IntegrationType.snowflake;
|
|
172
|
-
configuration: SnowflakeIntegrationConfiguration;
|
|
173
|
-
}
|
|
174
|
-
export interface CollectionReadiness {
|
|
175
|
-
hasPermissions: boolean;
|
|
176
|
-
grantPermissionsCommands: string[];
|
|
177
|
-
replicationEnabled: boolean;
|
|
178
|
-
enableReplicationCommands: string[];
|
|
179
|
-
}
|
|
180
|
-
export interface DiscoverDataConnectionSchemaResponse {
|
|
181
|
-
schema: IntegrationDataSchema;
|
|
182
|
-
collectionReadiness: Record<CollectionName, CollectionReadiness>;
|
|
183
|
-
}
|
|
184
|
-
interface DiscoverMongoDataConnectionSchemaRequest {
|
|
185
|
-
integrationType: IntegrationType.mongo;
|
|
186
|
-
connectionOptions: MongoConnectionOptions;
|
|
187
|
-
}
|
|
188
|
-
interface DiscoverInternalDataConnectionSchemaRequest {
|
|
189
|
-
integrationType: IntegrationType.built_in_db;
|
|
190
|
-
}
|
|
191
|
-
interface DiscoverMysqlDataConnectionSchemaRequest {
|
|
192
|
-
integrationType: IntegrationType.mysql;
|
|
193
|
-
connectionOptions: MySqlConnectionOptions;
|
|
194
|
-
}
|
|
195
|
-
interface DiscoverClickHouseDataConnectionSchemaRequest {
|
|
196
|
-
integrationType: IntegrationType.clickhouse;
|
|
197
|
-
connectionOptions: ClickHouseConnectionOptions;
|
|
198
|
-
}
|
|
199
|
-
interface DiscoverBigQueryDataConnectionSchemaRequest {
|
|
200
|
-
integrationType: IntegrationType.bigquery;
|
|
201
|
-
connectionOptions: BigQueryConnectionOptions;
|
|
202
|
-
}
|
|
203
|
-
interface DiscoverOracleDataConnectionSchemaRequest {
|
|
204
|
-
integrationType: IntegrationType.oracledb;
|
|
205
|
-
connectionOptions: OracleConnectionOptions;
|
|
206
|
-
}
|
|
207
|
-
interface DiscoverMssqlDataConnectionSchemaRequest {
|
|
208
|
-
integrationType: IntegrationType.mssql;
|
|
209
|
-
connectionOptions: MssqlConnectionOptions;
|
|
210
|
-
}
|
|
211
|
-
interface DiscoverPostgresDataConnectionSchemaRequest {
|
|
212
|
-
integrationType: IntegrationType.postgres;
|
|
213
|
-
connectionOptions: PostgresConnectionOptions;
|
|
214
|
-
}
|
|
215
|
-
interface DiscoverSnowflakeDataConnectionSchemaRequest {
|
|
216
|
-
integrationType: IntegrationType.snowflake;
|
|
217
|
-
connectionOptions: SnowflakeConnectionOptions;
|
|
218
|
-
}
|
|
219
|
-
interface DiscoverCockroachDataConnectionSchemaRequest {
|
|
220
|
-
integrationType: IntegrationType.cockroach;
|
|
221
|
-
connectionOptions: PostgresConnectionOptions;
|
|
222
|
-
}
|
|
223
|
-
export interface TestDataConnectionResponse {
|
|
224
|
-
success: boolean;
|
|
225
|
-
errorMessage?: string;
|
|
226
|
-
}
|
|
227
|
-
export type DiscoverDataConnectionSchemaRequest = DiscoverMongoDataConnectionSchemaRequest | DiscoverInternalDataConnectionSchemaRequest | DiscoverMysqlDataConnectionSchemaRequest | DiscoverClickHouseDataConnectionSchemaRequest | DiscoverBigQueryDataConnectionSchemaRequest | DiscoverOracleDataConnectionSchemaRequest | DiscoverMssqlDataConnectionSchemaRequest | DiscoverCockroachDataConnectionSchemaRequest | DiscoverPostgresDataConnectionSchemaRequest | DiscoverSnowflakeDataConnectionSchemaRequest;
|
|
228
|
-
export {};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { BaseIntegrationConfig } from './schemas';
|
|
2
|
-
import { IntegrationType } from '../integration.public-types';
|
|
3
|
-
export interface DatadogIntegrationConfig extends BaseIntegrationConfig {
|
|
4
|
-
type: IntegrationType.datadog;
|
|
5
|
-
configuration: DatadogIntegrationConfiguration;
|
|
6
|
-
}
|
|
7
|
-
export interface DatadogIntegrationConfiguration {
|
|
8
|
-
apiKey: string;
|
|
9
|
-
appKey: string;
|
|
10
|
-
datadogRegion: DatadogRegion;
|
|
11
|
-
}
|
|
12
|
-
export type DatadogRegion = 'us1' | 'us3' | 'us5' | 'eu1' | 'us1-fed' | 'ap1';
|
|
13
|
-
export interface NewRelicIntegrationConfig extends BaseIntegrationConfig {
|
|
14
|
-
type: IntegrationType.newrelic;
|
|
15
|
-
configuration: NewRelicIntegrationConfiguration;
|
|
16
|
-
}
|
|
17
|
-
export declare const datadogRegionMap: Record<DatadogRegion, string>;
|
|
18
|
-
export declare const datadogLogsUrlMap: Record<DatadogRegion, string>;
|
|
19
|
-
export type NewRelicRegion = 'worldwide' | 'eu';
|
|
20
|
-
export interface NewRelicIntegrationConfiguration {
|
|
21
|
-
apiKey: string;
|
|
22
|
-
newRelicRegion: NewRelicRegion;
|
|
23
|
-
}
|
|
24
|
-
export declare const newRelicRegionMap: Record<NewRelicRegion, string>;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { IntegrationType } from '../integration.public-types';
|
|
2
|
-
import { BaseIntegrationConfig, QueueIntegrationTypes } from './schemas';
|
|
3
|
-
export type QueueIntegrationType = (typeof QueueIntegrationTypes)[number];
|
|
4
|
-
export interface BaseQueueIntegrationConfig extends BaseIntegrationConfig {
|
|
5
|
-
type: QueueIntegrationType;
|
|
6
|
-
}
|
|
7
|
-
export interface KafkaConnectionSecretOptions {
|
|
8
|
-
password?: string;
|
|
9
|
-
}
|
|
10
|
-
export interface KafkaConnectionOptions {
|
|
11
|
-
secrets?: KafkaConnectionSecretOptions;
|
|
12
|
-
username?: string;
|
|
13
|
-
bootstrapServers: string;
|
|
14
|
-
}
|
|
15
|
-
export interface KafkaIntegrationConfiguration {
|
|
16
|
-
connectionOptions: KafkaConnectionOptions;
|
|
17
|
-
}
|
|
18
|
-
export interface KafkaIntegrationConfig extends BaseQueueIntegrationConfig {
|
|
19
|
-
type: IntegrationType.kafka;
|
|
20
|
-
configuration: KafkaIntegrationConfiguration;
|
|
21
|
-
}
|
|
22
|
-
export interface ConfluentIntegrationConfig extends BaseQueueIntegrationConfig {
|
|
23
|
-
type: IntegrationType.confluent;
|
|
24
|
-
configuration: KafkaIntegrationConfiguration;
|
|
25
|
-
}
|
|
26
|
-
export interface BuiltInQueueIntegrationConfig extends BaseQueueIntegrationConfig {
|
|
27
|
-
type: IntegrationType.built_in_queue;
|
|
28
|
-
}
|
|
29
|
-
export interface TestKafkaConnectionRequest {
|
|
30
|
-
type: IntegrationType.kafka;
|
|
31
|
-
configuration: {
|
|
32
|
-
connectionOptions: KafkaConnectionOptions;
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
export interface TestConfluentConnectionRequest {
|
|
36
|
-
type: IntegrationType.confluent;
|
|
37
|
-
configuration: {
|
|
38
|
-
connectionOptions: KafkaConnectionOptions;
|
|
39
|
-
};
|
|
40
|
-
}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { AiChatbotIntegrationConfig } from './ai_chatbot.types';
|
|
2
|
-
import { GraphQLIntegrationConfig, HttpApiIntegrationConfig, IntegrationApiSchema, IntegrationGraphQLSchema } from './api.types';
|
|
3
|
-
import { Auth0IntegrationConfig, CognitoIntegrationConfig, DescopeIntegrationConfig, JwtHmacIntegrationConfig, JwtRsaIntegrationConfig, OktaIntegrationConfig } from './auth.types';
|
|
4
|
-
import { BaseDatabaseIntegrationConfig, BigQueryIntegrationConfig, ClickHouseIntegrationConfig, CockroachIntegrationConfig, IntegrationDataSchema, InternalIntegrationConfig, MongoIntegrationConfig, MssqlIntegrationConfig, MySqlIntegrationConfig, OracleIntegrationConfig, PostgresIntegrationConfig, SnowflakeIntegrationConfig } from './database.types';
|
|
5
|
-
import { DatadogIntegrationConfig, NewRelicIntegrationConfig } from './observability.types';
|
|
6
|
-
import { IntegrationSchemaType, IntegrationType } from '../integration.public-types';
|
|
7
|
-
import { BuiltInQueueIntegrationConfig, ConfluentIntegrationConfig, KafkaIntegrationConfig } from './queue-types';
|
|
8
|
-
import { IntegrationId } from '../communication.public-types';
|
|
9
|
-
export interface IntegrationConfigTypes {
|
|
10
|
-
[IntegrationType.built_in_db]: InternalIntegrationConfig;
|
|
11
|
-
[IntegrationType.mongo]: MongoIntegrationConfig;
|
|
12
|
-
[IntegrationType.mysql]: MySqlIntegrationConfig;
|
|
13
|
-
[IntegrationType.clickhouse]: ClickHouseIntegrationConfig;
|
|
14
|
-
[IntegrationType.bigquery]: BigQueryIntegrationConfig;
|
|
15
|
-
[IntegrationType.oracledb]: OracleIntegrationConfig;
|
|
16
|
-
[IntegrationType.mssql]: MssqlIntegrationConfig;
|
|
17
|
-
[IntegrationType.postgres]: PostgresIntegrationConfig;
|
|
18
|
-
[IntegrationType.cockroach]: CockroachIntegrationConfig;
|
|
19
|
-
[IntegrationType.snowflake]: SnowflakeIntegrationConfig;
|
|
20
|
-
[IntegrationType.api]: HttpApiIntegrationConfig;
|
|
21
|
-
[IntegrationType.graphql]: GraphQLIntegrationConfig;
|
|
22
|
-
[IntegrationType.datadog]: DatadogIntegrationConfig;
|
|
23
|
-
[IntegrationType.newrelic]: NewRelicIntegrationConfig;
|
|
24
|
-
[IntegrationType.auth0]: Auth0IntegrationConfig;
|
|
25
|
-
[IntegrationType.jwt_rsa]: JwtRsaIntegrationConfig;
|
|
26
|
-
[IntegrationType.jwt_hmac]: JwtHmacIntegrationConfig;
|
|
27
|
-
[IntegrationType.ai_chatbot]: AiChatbotIntegrationConfig;
|
|
28
|
-
[IntegrationType.cognito]: CognitoIntegrationConfig;
|
|
29
|
-
[IntegrationType.okta]: OktaIntegrationConfig;
|
|
30
|
-
[IntegrationType.kafka]: KafkaIntegrationConfig;
|
|
31
|
-
[IntegrationType.confluent]: ConfluentIntegrationConfig;
|
|
32
|
-
[IntegrationType.built_in_queue]: BuiltInQueueIntegrationConfig;
|
|
33
|
-
[IntegrationType.descope]: DescopeIntegrationConfig;
|
|
34
|
-
}
|
|
35
|
-
export interface IntegrationSchemaTypes {
|
|
36
|
-
[IntegrationType.built_in_db]: IntegrationDataSchema;
|
|
37
|
-
[IntegrationType.mongo]: IntegrationDataSchema;
|
|
38
|
-
[IntegrationType.mysql]: IntegrationDataSchema;
|
|
39
|
-
[IntegrationType.clickhouse]: IntegrationDataSchema;
|
|
40
|
-
[IntegrationType.oracledb]: IntegrationDataSchema;
|
|
41
|
-
[IntegrationType.bigquery]: IntegrationDataSchema;
|
|
42
|
-
[IntegrationType.mssql]: IntegrationDataSchema;
|
|
43
|
-
[IntegrationType.postgres]: IntegrationDataSchema;
|
|
44
|
-
[IntegrationType.cockroach]: IntegrationDataSchema;
|
|
45
|
-
[IntegrationType.snowflake]: IntegrationDataSchema;
|
|
46
|
-
[IntegrationType.api]: IntegrationApiSchema;
|
|
47
|
-
[IntegrationType.graphql]: IntegrationGraphQLSchema;
|
|
48
|
-
}
|
|
49
|
-
export type IntegrationTypeWithConfig = keyof IntegrationConfigTypes;
|
|
50
|
-
export type IntegrationSchemaKeys = keyof IntegrationSchemaTypes;
|
|
51
|
-
export type IntegrationConfig = IntegrationConfigTypes[IntegrationTypeWithConfig];
|
|
52
|
-
export type IntegrationSchema = IntegrationSchemaTypes[IntegrationSchemaKeys];
|
|
53
|
-
export declare const DatabaseIntegrationTypes: readonly [IntegrationType.built_in_db, IntegrationType.mongo, IntegrationType.mysql, IntegrationType.clickhouse, IntegrationType.bigquery, IntegrationType.mssql, IntegrationType.postgres, IntegrationType.cockroach, IntegrationType.snowflake, IntegrationType.oracledb];
|
|
54
|
-
export type DatabaseIntegrationType = (typeof DatabaseIntegrationTypes)[number];
|
|
55
|
-
export type DatabaseIntegrationConfig = IntegrationConfigTypes[DatabaseIntegrationType];
|
|
56
|
-
export declare const AuthIntegrationTypes: readonly [IntegrationType.auth0, IntegrationType.jwt_rsa, IntegrationType.jwt_hmac, IntegrationType.cognito, IntegrationType.okta, IntegrationType.descope];
|
|
57
|
-
export declare const QueueIntegrationTypes: readonly [IntegrationType.built_in_queue, IntegrationType.kafka, IntegrationType.confluent];
|
|
58
|
-
export type AuthIntegrationType = (typeof AuthIntegrationTypes)[number];
|
|
59
|
-
export type AuthIntegrationConfig = IntegrationConfigTypes[AuthIntegrationType];
|
|
60
|
-
export declare function isDataIntegrationType(type: unknown): type is DatabaseIntegrationType;
|
|
61
|
-
export declare function isDataIntegration(integration: unknown): integration is BaseDatabaseIntegrationConfig;
|
|
62
|
-
export declare function isAuthIntegrationType(type: unknown): type is AuthIntegrationType;
|
|
63
|
-
export declare function isAuthIntegration(integration: unknown): integration is AuthIntegrationConfig;
|
|
64
|
-
export interface BaseIntegrationConfig {
|
|
65
|
-
id: IntegrationId;
|
|
66
|
-
type: IntegrationTypeWithConfig;
|
|
67
|
-
creationDate?: Date;
|
|
68
|
-
updateDate?: Date;
|
|
69
|
-
}
|
|
70
|
-
export interface BaseIntegrationSchema {
|
|
71
|
-
type: IntegrationSchemaType;
|
|
72
|
-
}
|