@squidcloud/client 1.0.59 → 1.0.60
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/common/src/ai-assistant.schemas.d.ts +210 -0
- package/dist/common/src/ai-assistant.types.d.ts +76 -0
- package/dist/common/src/api-call.context.d.ts +1 -1
- package/dist/common/src/api.types.d.ts +1 -1
- package/dist/common/src/application.schemas.d.ts +32 -1
- package/dist/common/src/application.types.d.ts +16 -4
- package/dist/common/src/bundle-data.types.d.ts +1 -1
- package/dist/common/src/index.d.ts +3 -1
- package/dist/common/src/integrations/ai_assistant.types.d.ts +30 -0
- package/dist/common/src/integrations/api.types.d.ts +80 -0
- package/dist/common/src/integrations/auth.types.d.ts +22 -0
- package/dist/common/src/integrations/database.types.d.ts +236 -0
- package/dist/common/src/integrations/index.d.ts +97 -0
- package/dist/common/src/integrations/observability.types.d.ts +22 -0
- package/dist/common/src/secret.types.d.ts +0 -3
- package/dist/common/src/socket.types.d.ts +11 -3
- package/dist/common/src/utils/validation.d.ts +1 -1
- package/dist/index.js +6 -6
- package/dist/typescript-client/src/ai-assistant-client.d.ts +66 -0
- package/dist/typescript-client/src/ai-client.factory.d.ts +13 -0
- package/dist/typescript-client/src/api.manager.d.ts +4 -3
- package/dist/typescript-client/src/backend-function.manager.d.ts +3 -3
- package/dist/typescript-client/src/client-id.service.d.ts +24 -0
- package/dist/typescript-client/src/mutation/mutation-sender.d.ts +4 -3
- package/dist/typescript-client/src/named-query.manager.d.ts +4 -3
- package/dist/typescript-client/src/query/query-subscription.manager.d.ts +9 -4
- package/dist/typescript-client/src/rpc.manager.d.ts +4 -3
- package/dist/typescript-client/src/socket.manager.d.ts +11 -3
- package/dist/typescript-client/src/squid.d.ts +2 -1
- package/package.json +1 -1
- package/dist/common/src/integration.types.d.ts +0 -404
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
import { CollectionName } from '../document.types';
|
|
2
|
+
import { CollectionSchema } from '../schema/schema.types';
|
|
3
|
+
import { BaseIntegrationConfig, DatabaseIntegrationType, IntegrationType } from './index';
|
|
4
|
+
export interface MongoConnectionSecretOptions {
|
|
5
|
+
password?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface MongoConnectionOptions {
|
|
8
|
+
secrets: MongoConnectionSecretOptions;
|
|
9
|
+
connectionString: string;
|
|
10
|
+
user?: string;
|
|
11
|
+
replicaSet?: string;
|
|
12
|
+
ssl?: {
|
|
13
|
+
certificateFile: string;
|
|
14
|
+
validate: boolean;
|
|
15
|
+
};
|
|
16
|
+
maxPoolSize?: number;
|
|
17
|
+
minPoolSize?: number;
|
|
18
|
+
socketTimeoutMS?: number;
|
|
19
|
+
serverSelectionTimeoutMS?: number;
|
|
20
|
+
keepAlive?: boolean;
|
|
21
|
+
directConnection?: boolean;
|
|
22
|
+
}
|
|
23
|
+
export interface MySqlConnectionSecretOptions {
|
|
24
|
+
password: string;
|
|
25
|
+
}
|
|
26
|
+
export interface OracleConnectionSecretOptions {
|
|
27
|
+
password: string;
|
|
28
|
+
}
|
|
29
|
+
export interface MssqlConnectionSecretOptions {
|
|
30
|
+
password: string;
|
|
31
|
+
}
|
|
32
|
+
export interface PostgresConnectionSecretOptions {
|
|
33
|
+
password: string;
|
|
34
|
+
sslCertificate?: string;
|
|
35
|
+
}
|
|
36
|
+
export interface MySqlConnectionOptions {
|
|
37
|
+
secrets: MySqlConnectionSecretOptions;
|
|
38
|
+
host: string;
|
|
39
|
+
user: string;
|
|
40
|
+
database: string;
|
|
41
|
+
connectionLimit?: number;
|
|
42
|
+
sslEnabled?: boolean;
|
|
43
|
+
}
|
|
44
|
+
export interface OracleConnectionOptions {
|
|
45
|
+
secrets: OracleConnectionSecretOptions;
|
|
46
|
+
host: string;
|
|
47
|
+
user: string;
|
|
48
|
+
database: string;
|
|
49
|
+
connectionLimit?: number;
|
|
50
|
+
}
|
|
51
|
+
export interface MssqlConnectionOptions {
|
|
52
|
+
secrets: MssqlConnectionSecretOptions;
|
|
53
|
+
host: string;
|
|
54
|
+
user: string;
|
|
55
|
+
schema: string;
|
|
56
|
+
database: string;
|
|
57
|
+
connectionLimit?: number;
|
|
58
|
+
sslEnabled?: boolean;
|
|
59
|
+
}
|
|
60
|
+
export interface PostgresConnectionOptions {
|
|
61
|
+
host: string;
|
|
62
|
+
user: string;
|
|
63
|
+
database: string;
|
|
64
|
+
schema?: string;
|
|
65
|
+
sslEnabled?: boolean;
|
|
66
|
+
secrets: PostgresConnectionSecretOptions;
|
|
67
|
+
}
|
|
68
|
+
export interface SnowflakeConnectionSecretOptions {
|
|
69
|
+
password: string;
|
|
70
|
+
}
|
|
71
|
+
export interface SnowflakeConnectionOptions {
|
|
72
|
+
secrets: SnowflakeConnectionSecretOptions;
|
|
73
|
+
account: string;
|
|
74
|
+
username: string;
|
|
75
|
+
database: string;
|
|
76
|
+
schema: string;
|
|
77
|
+
warehouse: string;
|
|
78
|
+
role: string;
|
|
79
|
+
}
|
|
80
|
+
type TableName = string;
|
|
81
|
+
export interface IntegrationDataSchema {
|
|
82
|
+
collections: Record<TableName, CollectionSchema>;
|
|
83
|
+
}
|
|
84
|
+
export interface BaseDatabaseIntegrationConfig extends BaseIntegrationConfig {
|
|
85
|
+
type: DatabaseIntegrationType;
|
|
86
|
+
schema?: IntegrationDataSchema;
|
|
87
|
+
supportsExternalChanges: boolean;
|
|
88
|
+
}
|
|
89
|
+
export interface MySqlIntegrationConfiguration {
|
|
90
|
+
connectionOptions: MySqlConnectionOptions;
|
|
91
|
+
}
|
|
92
|
+
export interface OracleIntegrationConfiguration {
|
|
93
|
+
connectionOptions: OracleConnectionOptions;
|
|
94
|
+
}
|
|
95
|
+
export interface MssqlIntegrationConfiguration {
|
|
96
|
+
connectionOptions: MssqlConnectionOptions;
|
|
97
|
+
}
|
|
98
|
+
export interface PostgresIntegrationConfiguration {
|
|
99
|
+
connectionOptions: PostgresConnectionOptions;
|
|
100
|
+
}
|
|
101
|
+
export interface MongoIntegrationConfiguration {
|
|
102
|
+
connectionOptions: MongoConnectionOptions;
|
|
103
|
+
}
|
|
104
|
+
export interface SnowflakeIntegrationConfiguration {
|
|
105
|
+
connectionOptions: SnowflakeConnectionOptions;
|
|
106
|
+
}
|
|
107
|
+
export interface MySqlIntegrationConfig extends BaseDatabaseIntegrationConfig {
|
|
108
|
+
type: IntegrationType.mysql;
|
|
109
|
+
configuration: MySqlIntegrationConfiguration;
|
|
110
|
+
schema: IntegrationDataSchema;
|
|
111
|
+
}
|
|
112
|
+
export interface OracleIntegrationConfig extends BaseDatabaseIntegrationConfig {
|
|
113
|
+
type: IntegrationType.oracledb;
|
|
114
|
+
configuration: OracleIntegrationConfiguration;
|
|
115
|
+
schema: IntegrationDataSchema;
|
|
116
|
+
}
|
|
117
|
+
export interface MssqlIntegrationConfig extends BaseDatabaseIntegrationConfig {
|
|
118
|
+
type: IntegrationType.mssql;
|
|
119
|
+
configuration: MssqlIntegrationConfiguration;
|
|
120
|
+
schema: IntegrationDataSchema;
|
|
121
|
+
}
|
|
122
|
+
export interface BasePostgresIntegration extends BaseDatabaseIntegrationConfig {
|
|
123
|
+
type: IntegrationType.postgres | IntegrationType.cockroach;
|
|
124
|
+
configuration: PostgresIntegrationConfiguration;
|
|
125
|
+
schema: IntegrationDataSchema;
|
|
126
|
+
}
|
|
127
|
+
export interface PostgresIntegrationConfig extends BasePostgresIntegration {
|
|
128
|
+
type: IntegrationType.postgres;
|
|
129
|
+
}
|
|
130
|
+
export interface CockroachIntegrationConfig extends BasePostgresIntegration {
|
|
131
|
+
type: IntegrationType.cockroach;
|
|
132
|
+
supportsExternalChanges: false;
|
|
133
|
+
}
|
|
134
|
+
export interface InternalIntegrationConfig extends BaseDatabaseIntegrationConfig {
|
|
135
|
+
type: IntegrationType.built_in_db;
|
|
136
|
+
}
|
|
137
|
+
export interface MongoIntegrationConfig extends BaseDatabaseIntegrationConfig {
|
|
138
|
+
type: IntegrationType.mongo;
|
|
139
|
+
configuration: MongoIntegrationConfiguration;
|
|
140
|
+
}
|
|
141
|
+
export interface SnowflakeIntegrationConfig extends BaseDatabaseIntegrationConfig {
|
|
142
|
+
type: IntegrationType.snowflake;
|
|
143
|
+
configuration: SnowflakeIntegrationConfiguration;
|
|
144
|
+
schema: IntegrationDataSchema;
|
|
145
|
+
supportsExternalChanges: false;
|
|
146
|
+
}
|
|
147
|
+
interface TestMongoDataConnectionRequest {
|
|
148
|
+
type: IntegrationType.mongo;
|
|
149
|
+
configuration: {
|
|
150
|
+
connectionOptions: MongoConnectionOptions;
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
interface TestMysqlDataConnectionRequest {
|
|
154
|
+
type: IntegrationType.mysql;
|
|
155
|
+
configuration: {
|
|
156
|
+
connectionOptions: MySqlConnectionOptions;
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
interface TestOracleDataConnectionRequest {
|
|
160
|
+
type: IntegrationType.oracledb;
|
|
161
|
+
configuration: {
|
|
162
|
+
connectionOptions: OracleConnectionOptions;
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
interface TestMssqlDataConnectionRequest {
|
|
166
|
+
type: IntegrationType.mssql;
|
|
167
|
+
configuration: {
|
|
168
|
+
connectionOptions: MssqlConnectionOptions;
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
interface TestPostgresDataConnectionRequest {
|
|
172
|
+
type: IntegrationType.postgres;
|
|
173
|
+
configuration: {
|
|
174
|
+
connectionOptions: PostgresConnectionOptions;
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
interface TestSnowflakeDataConnectionRequest {
|
|
178
|
+
type: IntegrationType.snowflake;
|
|
179
|
+
configuration: {
|
|
180
|
+
connectionOptions: SnowflakeConnectionOptions;
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
interface TestCockroachDataConnectionRequest {
|
|
184
|
+
type: IntegrationType.cockroach;
|
|
185
|
+
configuration: {
|
|
186
|
+
connectionOptions: PostgresConnectionOptions;
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
export type TestDataConnectionRequest = TestMongoDataConnectionRequest | TestMysqlDataConnectionRequest | TestOracleDataConnectionRequest | TestMssqlDataConnectionRequest | TestCockroachDataConnectionRequest | TestPostgresDataConnectionRequest | TestSnowflakeDataConnectionRequest;
|
|
190
|
+
export interface CollectionReadiness {
|
|
191
|
+
hasPermissions: boolean;
|
|
192
|
+
grantPermissionsCommands: string[];
|
|
193
|
+
replicationEnabled: boolean;
|
|
194
|
+
enableReplicationCommands: string[];
|
|
195
|
+
}
|
|
196
|
+
export interface DiscoverDataConnectionSchemaResponse {
|
|
197
|
+
schema: IntegrationDataSchema;
|
|
198
|
+
collectionReadiness: Record<CollectionName, CollectionReadiness>;
|
|
199
|
+
}
|
|
200
|
+
interface DiscoverMongoDataConnectionSchemaRequest {
|
|
201
|
+
integrationType: IntegrationType.mongo;
|
|
202
|
+
connectionOptions: MongoConnectionOptions;
|
|
203
|
+
}
|
|
204
|
+
interface DiscoverInternalDataConnectionSchemaRequest {
|
|
205
|
+
integrationType: IntegrationType.built_in_db;
|
|
206
|
+
}
|
|
207
|
+
interface DiscoverMysqlDataConnectionSchemaRequest {
|
|
208
|
+
integrationType: IntegrationType.mysql;
|
|
209
|
+
connectionOptions: MySqlConnectionOptions;
|
|
210
|
+
}
|
|
211
|
+
interface DiscoverOracleDataConnectionSchemaRequest {
|
|
212
|
+
integrationType: IntegrationType.oracledb;
|
|
213
|
+
connectionOptions: OracleConnectionOptions;
|
|
214
|
+
}
|
|
215
|
+
interface DiscoverMssqlDataConnectionSchemaRequest {
|
|
216
|
+
integrationType: IntegrationType.mssql;
|
|
217
|
+
connectionOptions: MssqlConnectionOptions;
|
|
218
|
+
}
|
|
219
|
+
interface DiscoverPostgresDataConnectionSchemaRequest {
|
|
220
|
+
integrationType: IntegrationType.postgres;
|
|
221
|
+
connectionOptions: PostgresConnectionOptions;
|
|
222
|
+
}
|
|
223
|
+
interface DiscoverSnowflakeDataConnectionSchemaRequest {
|
|
224
|
+
integrationType: IntegrationType.snowflake;
|
|
225
|
+
connectionOptions: SnowflakeConnectionOptions;
|
|
226
|
+
}
|
|
227
|
+
interface DiscoverCockroachDataConnectionSchemaRequest {
|
|
228
|
+
integrationType: IntegrationType.cockroach;
|
|
229
|
+
connectionOptions: PostgresConnectionOptions;
|
|
230
|
+
}
|
|
231
|
+
export interface TestDataConnectionResponse {
|
|
232
|
+
success: boolean;
|
|
233
|
+
errorMessage?: string;
|
|
234
|
+
}
|
|
235
|
+
export type DiscoverDataConnectionSchemaRequest = DiscoverMongoDataConnectionSchemaRequest | DiscoverInternalDataConnectionSchemaRequest | DiscoverMysqlDataConnectionSchemaRequest | DiscoverOracleDataConnectionSchemaRequest | DiscoverMssqlDataConnectionSchemaRequest | DiscoverCockroachDataConnectionSchemaRequest | DiscoverPostgresDataConnectionSchemaRequest | DiscoverSnowflakeDataConnectionSchemaRequest;
|
|
236
|
+
export {};
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
export * from './ai_assistant.types';
|
|
2
|
+
export * from './api.types';
|
|
3
|
+
export * from './auth.types';
|
|
4
|
+
export * from './database.types';
|
|
5
|
+
export * from './observability.types';
|
|
6
|
+
import { IntegrationId } from '../communication.types';
|
|
7
|
+
import { AiAssistantIntegrationConfig } from './ai_assistant.types';
|
|
8
|
+
import { GraphQLIntegrationConfig, HttpApiIntegrationConfig, TestGraphQLDataConnectionRequest } from './api.types';
|
|
9
|
+
import { Auth0IntegrationConfig, JwtHmacIntegrationConfig, JwtRsaIntegrationConfig } from './auth.types';
|
|
10
|
+
import { BaseDatabaseIntegrationConfig, CockroachIntegrationConfig, InternalIntegrationConfig, MongoIntegrationConfig, MssqlIntegrationConfig, MySqlIntegrationConfig, OracleIntegrationConfig, PostgresIntegrationConfig, SnowflakeIntegrationConfig, TestDataConnectionRequest } from './database.types';
|
|
11
|
+
import { DatadogIntegrationConfig, NewRelicIntegrationConfig } from './observability.types';
|
|
12
|
+
export declare enum IntegrationCategory {
|
|
13
|
+
'database' = "database",
|
|
14
|
+
'api' = "api",
|
|
15
|
+
'observability' = "observability",
|
|
16
|
+
'crm' = "crm",
|
|
17
|
+
'auth' = "auth",
|
|
18
|
+
'ai' = "ai"
|
|
19
|
+
}
|
|
20
|
+
export declare enum IntegrationType {
|
|
21
|
+
'built_in_db' = "built_in_db",
|
|
22
|
+
'mongo' = "mongo",
|
|
23
|
+
'mysql' = "mysql",
|
|
24
|
+
'mssql' = "mssql",
|
|
25
|
+
'postgres' = "postgres",
|
|
26
|
+
'cockroach' = "cockroach",
|
|
27
|
+
'api' = "api",
|
|
28
|
+
'graphql' = "graphql",
|
|
29
|
+
'snowflake' = "snowflake",
|
|
30
|
+
'datadog' = "datadog",
|
|
31
|
+
'newrelic' = "newrelic",
|
|
32
|
+
'auth0' = "auth0",
|
|
33
|
+
'jwt_rsa' = "jwt_rsa",
|
|
34
|
+
'jwt_hmac' = "jwt_hmac",
|
|
35
|
+
'ai_assistant' = "ai_assistant",
|
|
36
|
+
'algolia' = "algolia",
|
|
37
|
+
'elastic_observability' = "elastic_observability",
|
|
38
|
+
'elastic_search' = "elastic_search",
|
|
39
|
+
'elastic_enterprise_search' = "elastic_enterprise_search",
|
|
40
|
+
'sentry' = "sentry",
|
|
41
|
+
'sap_hana' = "sap_hana",
|
|
42
|
+
'salesforce_crm' = "salesforce_crm",
|
|
43
|
+
'documentdb' = "documentdb",
|
|
44
|
+
'dynamodb' = "dynamodb",
|
|
45
|
+
'cassandra' = "cassandra",
|
|
46
|
+
'clickhouse' = "clickhouse",
|
|
47
|
+
'alloydb' = "alloydb",
|
|
48
|
+
'spanner' = "spanner",
|
|
49
|
+
'db2' = "db2",
|
|
50
|
+
'mariadb' = "mariadb",
|
|
51
|
+
'oracledb' = "oracledb",
|
|
52
|
+
'redis' = "redis",
|
|
53
|
+
'xata' = "xata",
|
|
54
|
+
'azure_sql' = "azure_sql"
|
|
55
|
+
}
|
|
56
|
+
export interface IntegrationConfigTypes {
|
|
57
|
+
[IntegrationType.built_in_db]: InternalIntegrationConfig;
|
|
58
|
+
[IntegrationType.mongo]: MongoIntegrationConfig;
|
|
59
|
+
[IntegrationType.mysql]: MySqlIntegrationConfig;
|
|
60
|
+
[IntegrationType.oracledb]: OracleIntegrationConfig;
|
|
61
|
+
[IntegrationType.mssql]: MssqlIntegrationConfig;
|
|
62
|
+
[IntegrationType.postgres]: PostgresIntegrationConfig;
|
|
63
|
+
[IntegrationType.cockroach]: CockroachIntegrationConfig;
|
|
64
|
+
[IntegrationType.snowflake]: SnowflakeIntegrationConfig;
|
|
65
|
+
[IntegrationType.api]: HttpApiIntegrationConfig;
|
|
66
|
+
[IntegrationType.graphql]: GraphQLIntegrationConfig;
|
|
67
|
+
[IntegrationType.datadog]: DatadogIntegrationConfig;
|
|
68
|
+
[IntegrationType.newrelic]: NewRelicIntegrationConfig;
|
|
69
|
+
[IntegrationType.auth0]: Auth0IntegrationConfig;
|
|
70
|
+
[IntegrationType.jwt_rsa]: JwtRsaIntegrationConfig;
|
|
71
|
+
[IntegrationType.jwt_hmac]: JwtHmacIntegrationConfig;
|
|
72
|
+
[IntegrationType.ai_assistant]: AiAssistantIntegrationConfig;
|
|
73
|
+
}
|
|
74
|
+
export declare const DatabaseIntegrationTypes: readonly [IntegrationType.built_in_db, IntegrationType.mongo, IntegrationType.mysql, IntegrationType.mssql, IntegrationType.postgres, IntegrationType.cockroach, IntegrationType.snowflake, IntegrationType.oracledb];
|
|
75
|
+
export type DatabaseIntegrationType = (typeof DatabaseIntegrationTypes)[number];
|
|
76
|
+
export type DatabaseIntegrationConfig = IntegrationConfigTypes[DatabaseIntegrationType];
|
|
77
|
+
export declare const ApiIntegrationTypes: readonly [IntegrationType.api, IntegrationType.graphql];
|
|
78
|
+
export declare const ObservabilityIntegrationTypes: readonly [IntegrationType.datadog, IntegrationType.newrelic];
|
|
79
|
+
export declare const AuthIntegrationTypes: readonly [IntegrationType.auth0, IntegrationType.jwt_rsa, IntegrationType.jwt_hmac];
|
|
80
|
+
export type ApiIntegrationType = (typeof ApiIntegrationTypes)[number];
|
|
81
|
+
export type ApiIntegrationConfig = IntegrationConfigTypes[ApiIntegrationType];
|
|
82
|
+
export type ObservabilityIntegrationType = (typeof ObservabilityIntegrationTypes)[number];
|
|
83
|
+
export type ObservabilityIntegrationConfig = IntegrationConfigTypes[ObservabilityIntegrationType];
|
|
84
|
+
export type AuthIntegrationType = (typeof AuthIntegrationTypes)[number];
|
|
85
|
+
export type AuthIntegrationConfig = IntegrationConfigTypes[AuthIntegrationType];
|
|
86
|
+
export declare function isDataIntegrationType(type: IntegrationType): type is DatabaseIntegrationType;
|
|
87
|
+
export declare function isDataIntegration(integration: any): integration is BaseDatabaseIntegrationConfig;
|
|
88
|
+
export declare function isAuthIntegrationType(type: IntegrationType): type is AuthIntegrationType;
|
|
89
|
+
export declare function isAuthIntegration(integration: any): integration is AuthIntegrationConfig;
|
|
90
|
+
export type IntegrationConfig = DatabaseIntegrationConfig | ApiIntegrationConfig | ObservabilityIntegrationConfig | AuthIntegrationConfig | AiAssistantIntegrationConfig;
|
|
91
|
+
export interface BaseIntegrationConfig {
|
|
92
|
+
id: IntegrationId;
|
|
93
|
+
type: IntegrationType;
|
|
94
|
+
creationDate: Date;
|
|
95
|
+
updateDate: Date;
|
|
96
|
+
}
|
|
97
|
+
export type TestConnectionRequest = TestDataConnectionRequest | TestGraphQLDataConnectionRequest;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { BaseIntegrationConfig, IntegrationType } from './index';
|
|
2
|
+
export interface DatadogIntegrationConfig extends BaseIntegrationConfig {
|
|
3
|
+
type: IntegrationType.datadog;
|
|
4
|
+
configuration: DatadogIntegrationConfiguration;
|
|
5
|
+
}
|
|
6
|
+
export interface NewRelicIntegrationConfig extends BaseIntegrationConfig {
|
|
7
|
+
type: IntegrationType.newrelic;
|
|
8
|
+
configuration: NewRelicIntegrationConfiguration;
|
|
9
|
+
}
|
|
10
|
+
export type DatadogRegion = 'us1' | 'us3' | 'us5' | 'eu1' | 'us1-fed';
|
|
11
|
+
export declare const datadogRegionMap: Record<DatadogRegion, string>;
|
|
12
|
+
export interface DatadogIntegrationConfiguration {
|
|
13
|
+
apiKey: string;
|
|
14
|
+
appKey: string;
|
|
15
|
+
datadogRegion: DatadogRegion;
|
|
16
|
+
}
|
|
17
|
+
export type NewRelicRegion = 'worldwide' | 'eu';
|
|
18
|
+
export declare const newRelicRegionMap: Record<NewRelicRegion, string>;
|
|
19
|
+
export interface NewRelicIntegrationConfiguration {
|
|
20
|
+
apiKey: string;
|
|
21
|
+
newRelicRegion: NewRelicRegion;
|
|
22
|
+
}
|
|
@@ -23,9 +23,6 @@ export type SetCustomSecretRequest = Omit<SecretEntry, 'lastUpdated'>;
|
|
|
23
23
|
export interface DeleteCustomSecretRequest {
|
|
24
24
|
key: SecretKey;
|
|
25
25
|
}
|
|
26
|
-
export interface GetApiKeyRequest {
|
|
27
|
-
apiKeyName: ApiKeyName;
|
|
28
|
-
}
|
|
29
26
|
export interface GetApiKeyResponse {
|
|
30
27
|
apiKey: string | undefined;
|
|
31
28
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ClientId, ClientRequestId, IntegrationId } from './communication.types';
|
|
2
|
+
import { AuthToken } from './context.types';
|
|
2
3
|
import { CollectionName, DocTimestamp, SquidDocId, SquidDocument } from './document.types';
|
|
3
4
|
import { MutationType } from './mutation.types';
|
|
4
|
-
import { AuthToken } from './context.types';
|
|
5
5
|
export type MessageId = string;
|
|
6
6
|
export type MessageFromClientType = 'acknowledge' | 'catchup' | 'kill' | 'acquireLock' | 'releaseLock';
|
|
7
7
|
interface BaseMessageFromClient {
|
|
@@ -35,7 +35,7 @@ export interface ReleaseLockMessage extends BaseMessageFromClient {
|
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
37
|
export type MessageFromClient = AcknowledgeMessage | CatchupMessage | KillMessage | AcquireLockMessage | ReleaseLockMessage;
|
|
38
|
-
export type MessageToClientType = 'mutations' | 'query' | 'backendFunction' | 'api' | 'namedQuery' | 'lockAcquired' | 'lockReleased';
|
|
38
|
+
export type MessageToClientType = 'mutations' | 'query' | 'backendFunction' | 'api' | 'namedQuery' | 'lockAcquired' | 'lockReleased' | 'aiAssistant';
|
|
39
39
|
interface BaseMessageToClient {
|
|
40
40
|
type: MessageToClientType;
|
|
41
41
|
messageId: MessageId;
|
|
@@ -73,7 +73,15 @@ export interface LockReleasedResponseMessageToClient extends BaseMessageToClient
|
|
|
73
73
|
lockId: string;
|
|
74
74
|
};
|
|
75
75
|
}
|
|
76
|
-
export
|
|
76
|
+
export interface AiAssistantMessageToClient extends BaseMessageToClient {
|
|
77
|
+
type: 'aiAssistant';
|
|
78
|
+
clientRequestId: ClientRequestId;
|
|
79
|
+
payload: {
|
|
80
|
+
token: string;
|
|
81
|
+
complete: boolean;
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
export type MessageToClient = MutationsMessageToClient | QueryResultMessageToClient | BackendFunctionMessageToClient | NamedQueryMessageToClient | ApiResponseMessageToClient | LockAcquiredResponseMessageToClient | LockReleasedResponseMessageToClient | AiAssistantMessageToClient;
|
|
77
85
|
export interface MutationsMessageToClient extends BaseMessageToClient {
|
|
78
86
|
type: 'mutations';
|
|
79
87
|
payload: Array<MutationResultData>;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { OpenIdProvider } from '../application.types';
|
|
7
7
|
import { HttpStatus } from '../http-status.enum';
|
|
8
|
-
export type StatusCode = HttpStatus.BAD_REQUEST | HttpStatus.NOT_FOUND | HttpStatus.FORBIDDEN | HttpStatus.UNAUTHORIZED;
|
|
8
|
+
export type StatusCode = HttpStatus.BAD_REQUEST | HttpStatus.NOT_FOUND | HttpStatus.FORBIDDEN | HttpStatus.UNAUTHORIZED | HttpStatus.CONFLICT;
|
|
9
9
|
export declare class ValidationError extends Error {
|
|
10
10
|
readonly statusCode: StatusCode;
|
|
11
11
|
readonly details?: any;
|