@squidcloud/local-backend 1.0.342 → 1.0.344
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/internal-common/src/public-types/ai-agent.public-types.js +5 -1
- package/dist/internal-common/src/public-types/ai-agent.public-types.js.map +1 -1
- package/dist/internal-common/src/public-types/code-executor.public-types.js.map +1 -1
- package/dist/internal-common/src/public-types/communication.public-types.js.map +1 -1
- package/dist/internal-common/src/public-types/integration.public-types.js.map +1 -1
- package/dist/internal-common/src/public-types/integrations/api.public-types.js.map +1 -1
- package/dist/internal-common/src/public-types/metric.public-types.js.map +1 -1
- package/dist/internal-common/src/public-types/query.public-types.js.map +1 -1
- package/dist/internal-common/src/public-types/socket.public-types.js.map +1 -1
- package/dist/internal-common/src/public-types-backend/mutation.public-context.js.map +1 -1
- package/dist/internal-common/src/types/ai-agent.types.js +6 -2
- package/dist/internal-common/src/types/ai-agent.types.js.map +1 -1
- package/dist/internal-common/src/types/file.types.js +3 -0
- package/dist/internal-common/src/types/file.types.js.map +1 -0
- package/dist/internal-common/src/utils/backend-transforms.js +25 -1
- package/dist/internal-common/src/utils/backend-transforms.js.map +1 -1
- package/dist/internal-common/src/utils/tsoa-utils.js +1 -1
- package/dist/internal-common/src/utils/tsoa-utils.js.map +1 -1
- package/dist/local-backend/src/index.js +0 -1
- package/dist/local-backend/src/index.js.map +1 -1
- package/dist/local-backend/src/local-backend.module.js +0 -2
- package/dist/local-backend/src/local-backend.module.js.map +1 -1
- package/dist/local-backend/src/local-backend.service.js +3 -10
- package/dist/local-backend/src/local-backend.service.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -3
- package/dist/internal-common/src/code-executor.types.d.ts +0 -24
- package/dist/internal-common/src/local-dev.types.d.ts +0 -57
- package/dist/internal-common/src/metric-name.d.ts +0 -3
- package/dist/internal-common/src/public-types/ai-agent.public-types.d.ts +0 -267
- package/dist/internal-common/src/public-types/api-client.public-types.d.ts +0 -5
- package/dist/internal-common/src/public-types/backend.public-types.d.ts +0 -8
- package/dist/internal-common/src/public-types/code-executor.public-types.d.ts +0 -15
- package/dist/internal-common/src/public-types/communication.public-types.d.ts +0 -11
- package/dist/internal-common/src/public-types/context.public-types.d.ts +0 -25
- package/dist/internal-common/src/public-types/document.public-types.d.ts +0 -22
- package/dist/internal-common/src/public-types/integration.public-types.d.ts +0 -20
- package/dist/internal-common/src/public-types/integrations/api.public-types.d.ts +0 -53
- package/dist/internal-common/src/public-types/metric.public-types.d.ts +0 -48
- package/dist/internal-common/src/public-types/openapi.public-types.d.ts +0 -6
- package/dist/internal-common/src/public-types/query.public-types.d.ts +0 -40
- package/dist/internal-common/src/public-types/scheduler.public-types.d.ts +0 -18
- package/dist/internal-common/src/public-types/schema.public-types.d.ts +0 -23
- package/dist/internal-common/src/public-types/secret.public-types.d.ts +0 -17
- package/dist/internal-common/src/public-types/socket.public-types.d.ts +0 -2
- package/dist/internal-common/src/public-types/typescript.public-types.d.ts +0 -12
- package/dist/internal-common/src/public-types-backend/ai-agent.public-context.d.ts +0 -11
- package/dist/internal-common/src/public-types-backend/api-call.public-context.d.ts +0 -20
- package/dist/internal-common/src/public-types-backend/application.public-types.d.ts +0 -89
- package/dist/internal-common/src/public-types-backend/bundle-api.public-types.d.ts +0 -81
- package/dist/internal-common/src/public-types-backend/bundle-data.public-types.d.ts +0 -15
- package/dist/internal-common/src/public-types-backend/distributed-lock.public-context.d.ts +0 -4
- package/dist/internal-common/src/public-types-backend/graphql.public-context.d.ts +0 -7
- package/dist/internal-common/src/public-types-backend/metric.public-context.d.ts +0 -5
- package/dist/internal-common/src/public-types-backend/mutation.public-context.d.ts +0 -62
- package/dist/internal-common/src/public-types-backend/native-query.public-context.d.ts +0 -18
- package/dist/internal-common/src/public-types-backend/query.public-context.d.ts +0 -46
- package/dist/internal-common/src/public-types-backend/storage.types.d.ts +0 -9
- package/dist/internal-common/src/public-types-backend/topic.public-context.d.ts +0 -10
- package/dist/internal-common/src/types/ai-agent.types.d.ts +0 -121
- package/dist/internal-common/src/types/api.types.d.ts +0 -34
- package/dist/internal-common/src/types/application.types.d.ts +0 -83
- package/dist/internal-common/src/types/backend-run.types.d.ts +0 -68
- package/dist/internal-common/src/types/bundle-data.types.d.ts +0 -92
- package/dist/internal-common/src/types/communication.types.d.ts +0 -13
- package/dist/internal-common/src/types/connector.types.d.ts +0 -11
- package/dist/internal-common/src/types/document.types.d.ts +0 -7
- package/dist/internal-common/src/types/integrations/api.types.d.ts +0 -106
- package/dist/internal-common/src/types/integrations/auth.types.d.ts +0 -44
- package/dist/internal-common/src/types/integrations/database.types.d.ts +0 -172
- package/dist/internal-common/src/types/integrations/observability.types.d.ts +0 -21
- package/dist/internal-common/src/types/integrations/queue-types.d.ts +0 -25
- package/dist/internal-common/src/types/integrations/schemas.d.ts +0 -108
- package/dist/internal-common/src/types/integrations/storage-types.d.ts +0 -42
- package/dist/internal-common/src/types/logger.types.d.ts +0 -21
- package/dist/internal-common/src/types/observability.types.d.ts +0 -64
- package/dist/internal-common/src/types/openapi.types.d.ts +0 -26
- package/dist/internal-common/src/types/query.types.d.ts +0 -41
- package/dist/internal-common/src/types/secret.types.d.ts +0 -60
- package/dist/internal-common/src/types/security.types.d.ts +0 -8
- package/dist/internal-common/src/types/service.types.d.ts +0 -18
- package/dist/internal-common/src/utils/backend-transforms.d.ts +0 -7
- package/dist/internal-common/src/utils/global.utils.d.ts +0 -8
- package/dist/internal-common/src/utils/http.d.ts +0 -1
- package/dist/internal-common/src/utils/metrics.types.d.ts +0 -2
- package/dist/internal-common/src/utils/node-utils.d.ts +0 -1
- package/dist/internal-common/src/utils/object.d.ts +0 -20
- package/dist/internal-common/src/utils/resolve.d.ts +0 -2
- package/dist/internal-common/src/utils/serialization.d.ts +0 -5
- package/dist/internal-common/src/utils/shell-runner.d.ts +0 -12
- package/dist/internal-common/src/utils/squid-code-bundle.utils.d.ts +0 -10
- package/dist/internal-common/src/utils/squid-service.utils.d.ts +0 -34
- package/dist/internal-common/src/utils/squid.constants.d.ts +0 -1
- package/dist/internal-common/src/utils/tsoa-utils.d.ts +0 -10
- package/dist/internal-common/src/utils.d.ts +0 -2
- package/dist/internal-common/src/websocket.impl.d.ts +0 -22
- package/dist/local-backend/src/index.d.ts +0 -7
- package/dist/local-backend/src/local-backend-connectors.service.d.ts +0 -6
- package/dist/local-backend/src/local-backend-socket.service.d.ts +0 -21
- package/dist/local-backend/src/local-backend.app.d.ts +0 -2
- package/dist/local-backend/src/local-backend.controller.d.ts +0 -9
- package/dist/local-backend/src/local-backend.controller.js +0 -50
- package/dist/local-backend/src/local-backend.controller.js.map +0 -1
- package/dist/local-backend/src/local-backend.module.d.ts +0 -9
- package/dist/local-backend/src/local-backend.service.d.ts +0 -21
- package/dist/local-backend/src/local-backend.types.d.ts +0 -1
- package/dist/local-backend/src/main.d.ts +0 -1
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { AppId, IntegrationId } from '../public-types/communication.public-types';
|
|
2
|
-
import { CollectionName } from '../public-types/document.public-types';
|
|
3
|
-
import { IntegrationType } from '../public-types/integration.public-types';
|
|
4
|
-
import { AppRunConfiguration } from './backend-run.types';
|
|
5
|
-
import { ApplicationBundleData } from './bundle-data.types';
|
|
6
|
-
import { AuthIntegrationType, DatabaseIntegrationType, IntegrationConfig, IntegrationConfigTypes, IntegrationSchema, IntegrationSchemaKeys, IntegrationSchemaTypes, IntegrationTypeWithConfig } from './integrations/schemas';
|
|
7
|
-
import { ServiceFunctionName } from '../public-types/backend.public-types';
|
|
8
|
-
import { MutationType } from '../public-types-backend/mutation.public-context';
|
|
9
|
-
export type CodeUrl = string;
|
|
10
|
-
export interface TriggerConfig {
|
|
11
|
-
integrationId: IntegrationId;
|
|
12
|
-
collectionName: CollectionName;
|
|
13
|
-
functionName: ServiceFunctionName;
|
|
14
|
-
mutationTypes: Array<MutationType> | undefined;
|
|
15
|
-
}
|
|
16
|
-
export interface WebhookConfig {
|
|
17
|
-
functionName: ServiceFunctionName;
|
|
18
|
-
}
|
|
19
|
-
export interface Application {
|
|
20
|
-
appId: AppId;
|
|
21
|
-
organizationId: string;
|
|
22
|
-
creationDate: Date;
|
|
23
|
-
updateDate: Date;
|
|
24
|
-
allowedHosts: string[];
|
|
25
|
-
integrations: Record<IntegrationId, IntegrationConfig>;
|
|
26
|
-
codeUrl?: string;
|
|
27
|
-
bundleData?: ApplicationBundleData;
|
|
28
|
-
archiveDate?: Date;
|
|
29
|
-
}
|
|
30
|
-
export interface Schema<T extends IntegrationSchema = any> {
|
|
31
|
-
appId: AppId;
|
|
32
|
-
integrationId: IntegrationId;
|
|
33
|
-
schema: T;
|
|
34
|
-
createdAt: Date;
|
|
35
|
-
updatedAt: Date;
|
|
36
|
-
}
|
|
37
|
-
export interface ApplicationInitDetails {
|
|
38
|
-
codeUrl: string;
|
|
39
|
-
codeUrlId: string;
|
|
40
|
-
appConfig: AppRunConfiguration;
|
|
41
|
-
}
|
|
42
|
-
export interface CreateApplicationRequest {
|
|
43
|
-
organizationId: string;
|
|
44
|
-
}
|
|
45
|
-
export interface CreateApplicationResponse {
|
|
46
|
-
appId: AppId;
|
|
47
|
-
builtInStorageIntegrationType: IntegrationType;
|
|
48
|
-
}
|
|
49
|
-
interface BaseUpsertIntegrationRequest<C extends IntegrationConfig> {
|
|
50
|
-
id: IntegrationId;
|
|
51
|
-
type: string;
|
|
52
|
-
config: Partial<C>;
|
|
53
|
-
schemaInitialized?: boolean;
|
|
54
|
-
}
|
|
55
|
-
type UpsertIntegrationRequests = {
|
|
56
|
-
[K in IntegrationTypeWithConfig]: BaseUpsertIntegrationRequest<ConfigurationTypes[K]>;
|
|
57
|
-
};
|
|
58
|
-
export type UpsertDataIntegrationRequest = UpsertIntegrationRequests[DatabaseIntegrationType];
|
|
59
|
-
export type UpsertGraphQLIntegrationRequest = UpsertIntegrationRequests['graphql'];
|
|
60
|
-
export type UpsertApiIntegrationRequest = UpsertIntegrationRequests['api'];
|
|
61
|
-
export type UpsertKafkaIntegrationRequest = UpsertIntegrationRequests['kafka'];
|
|
62
|
-
export type UpsertConfluentIntegrationRequest = UpsertIntegrationRequests['confluent'];
|
|
63
|
-
export type UpsertAuthIntegrationRequest = UpsertIntegrationRequests[AuthIntegrationType];
|
|
64
|
-
interface BaseUpsertIntegrationSchemaRequest<T extends IntegrationType, S extends IntegrationSchema> {
|
|
65
|
-
id: IntegrationId;
|
|
66
|
-
type: T;
|
|
67
|
-
schema: S;
|
|
68
|
-
}
|
|
69
|
-
type SchemaTypes = {
|
|
70
|
-
[K in IntegrationSchemaKeys]: IntegrationSchemaTypes[K];
|
|
71
|
-
};
|
|
72
|
-
type UpsertIntegrationSchemaRequests = {
|
|
73
|
-
[K in IntegrationSchemaKeys]: BaseUpsertIntegrationSchemaRequest<K, SchemaTypes[K]>;
|
|
74
|
-
};
|
|
75
|
-
export type UpsertIntegrationSchemaRequest = UpsertDataIntegrationSchemaRequest | UpsertGraphQLIntegrationSchemaRequest | UpsertApiIntegrationSchemaRequest;
|
|
76
|
-
export type UpsertDataIntegrationSchemaRequest = UpsertIntegrationSchemaRequests[DatabaseIntegrationType];
|
|
77
|
-
export type UpsertGraphQLIntegrationSchemaRequest = UpsertIntegrationSchemaRequests['graphql'];
|
|
78
|
-
export type UpsertApiIntegrationSchemaRequest = UpsertIntegrationSchemaRequests['api'];
|
|
79
|
-
export type UpsertIntegrationRequest = UpsertDataIntegrationRequest | UpsertGraphQLIntegrationRequest | UpsertApiIntegrationRequest | UpsertConfluentIntegrationRequest | UpsertKafkaIntegrationRequest | UpsertAuthIntegrationRequest;
|
|
80
|
-
type ConfigurationTypes = {
|
|
81
|
-
[K in IntegrationTypeWithConfig]: IntegrationConfigTypes[K];
|
|
82
|
-
};
|
|
83
|
-
export {};
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { Auth, RunContext } from '../public-types/context.public-types';
|
|
2
|
-
import { ApplicationSecrets } from './secret.types';
|
|
3
|
-
import { SecretKey, SecretValue } from '../public-types/secret.public-types';
|
|
4
|
-
import { SquidFile } from '../public-types-backend/bundle-api.public-types';
|
|
5
|
-
import { ConnectorId } from './connector.types';
|
|
6
|
-
import { ServiceFunctionName } from '../public-types/backend.public-types';
|
|
7
|
-
export interface ErrorResponse extends GeneralResponse {
|
|
8
|
-
ok: false;
|
|
9
|
-
error: string;
|
|
10
|
-
details?: string;
|
|
11
|
-
functionName: string;
|
|
12
|
-
}
|
|
13
|
-
export interface GeneralResponse {
|
|
14
|
-
ok: boolean;
|
|
15
|
-
}
|
|
16
|
-
export interface RunConfiguration {
|
|
17
|
-
codeUrl: string;
|
|
18
|
-
codeUrlId: string;
|
|
19
|
-
isSecurityRules: boolean;
|
|
20
|
-
appConfig: AppRunConfiguration;
|
|
21
|
-
}
|
|
22
|
-
export interface AppRunConfiguration {
|
|
23
|
-
connectors: Array<ConnectorRunConfiguration>;
|
|
24
|
-
}
|
|
25
|
-
export interface ConnectorRunConfiguration {
|
|
26
|
-
id: ConnectorId;
|
|
27
|
-
codeUrl: string;
|
|
28
|
-
codeUrlId: string;
|
|
29
|
-
}
|
|
30
|
-
export type CodeType = 'user' | 'connector';
|
|
31
|
-
export interface CodeJsConfig {
|
|
32
|
-
indexJsPath: string;
|
|
33
|
-
codeType: CodeType;
|
|
34
|
-
}
|
|
35
|
-
export interface LoadJsPayload {
|
|
36
|
-
indexJsConfigs: Array<CodeJsConfig>;
|
|
37
|
-
}
|
|
38
|
-
export declare const ExecuteFunctionSecureAnnotations: readonly ["secureAiAgent", "secureApi", "secureDistributedLock", "secureGraphQL", "secureMetricsReport", "secureMutation", "secureNamedQuery", "secureNativeQuery", "secureQuery", "secureQueueRead", "secureQueueWrite", "secureStorage"];
|
|
39
|
-
export type ExecuteFunctionSecureAnnotationType = (typeof ExecuteFunctionSecureAnnotations)[number];
|
|
40
|
-
export type ExecuteFunctionAnnotationType = 'aiFunction' | 'executable' | 'metadata' | 'openapi' | 'scheduler' | 'transformRead' | 'transformWrite' | 'trigger' | 'webhook' | 'getOpenApiSpecs' | ExecuteFunctionSecureAnnotationType;
|
|
41
|
-
export interface ExecuteFunctionPayload {
|
|
42
|
-
functionName: ServiceFunctionName;
|
|
43
|
-
params: Array<unknown>;
|
|
44
|
-
context: RunContext;
|
|
45
|
-
auth: Auth | undefined;
|
|
46
|
-
secrets: Record<SecretKey, SecretValue>;
|
|
47
|
-
apiKeys: Record<SecretKey, string>;
|
|
48
|
-
backendApiKey: string;
|
|
49
|
-
executeFunctionAnnotationType: ExecuteFunctionAnnotationType;
|
|
50
|
-
files: Array<SquidFile>;
|
|
51
|
-
}
|
|
52
|
-
export type WorkerActionType = 'loadJs' | 'executeFunction' | 'ping' | 'terminate' | 'heartbeat';
|
|
53
|
-
export interface ActionRequest {
|
|
54
|
-
action: WorkerActionType;
|
|
55
|
-
payload?: LoadJsPayload | ExecuteFunctionPayload;
|
|
56
|
-
}
|
|
57
|
-
export type LoadJsResponse = GeneralResponse;
|
|
58
|
-
export type TerminateResponse = GeneralResponse;
|
|
59
|
-
export interface ExecuteFunctionResponse extends GeneralResponse {
|
|
60
|
-
ok: true;
|
|
61
|
-
functionResponse: unknown;
|
|
62
|
-
}
|
|
63
|
-
export interface RunSecrets {
|
|
64
|
-
custom: Record<SecretKey, SecretValue>;
|
|
65
|
-
apiKeys: Record<SecretKey, string>;
|
|
66
|
-
backendApiKey: string;
|
|
67
|
-
}
|
|
68
|
-
export declare function convertToRunSecrets(appSecrets: ApplicationSecrets): RunSecrets;
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import { ApiEndpointId } from '../public-types/integrations/api.public-types';
|
|
2
|
-
import { SchedulerConfig } from '../public-types/scheduler.public-types';
|
|
3
|
-
import { OpenApiController } from './openapi.types';
|
|
4
|
-
import { IntegrationId } from '../public-types/communication.public-types';
|
|
5
|
-
import { CollectionName } from '../public-types/document.public-types';
|
|
6
|
-
import { TriggerConfig, WebhookConfig } from './application.types';
|
|
7
|
-
import { LimiterOptions } from '../public-types-backend/bundle-api.public-types';
|
|
8
|
-
import { SchedulerId, TriggerId, WebhookId } from '../public-types-backend/application.public-types';
|
|
9
|
-
import { AiFunctionAttributes, AiFunctionParam, DatabaseActionType, MetricActionType, StorageActionType, TopicActionType } from '../public-types-backend/bundle-data.public-types';
|
|
10
|
-
import { FunctionName, ServiceFunctionName, TopicName } from '../public-types/backend.public-types';
|
|
11
|
-
export interface ApplicationBundleData {
|
|
12
|
-
databases: Record<IntegrationId, DatabaseMetadata>;
|
|
13
|
-
storage: Record<IntegrationId, StorageMetadata>;
|
|
14
|
-
apis: Record<IntegrationId, {
|
|
15
|
-
endpoints: Record<ApiEndpointId, ApiMetadata>;
|
|
16
|
-
} & ApiMetadata>;
|
|
17
|
-
graphql: Record<IntegrationId, GraphQLMetadata>;
|
|
18
|
-
executables: Record<FunctionName, ExecutableMetadata>;
|
|
19
|
-
triggers: Record<TriggerId, TriggerConfig>;
|
|
20
|
-
schedulers: Record<SchedulerId, SchedulerConfig>;
|
|
21
|
-
webhooks: Record<WebhookId, WebhookConfig>;
|
|
22
|
-
nativeQueries: Record<IntegrationId, Array<ServiceFunctionName>>;
|
|
23
|
-
distributedLocks: {
|
|
24
|
-
security?: Array<ServiceFunctionName>;
|
|
25
|
-
mutexes?: Record<string, {
|
|
26
|
-
security?: Array<ServiceFunctionName>;
|
|
27
|
-
}>;
|
|
28
|
-
};
|
|
29
|
-
aiChatbots: Record<IntegrationId, {
|
|
30
|
-
profiles: Record<string, AiAgentMetadata>;
|
|
31
|
-
} & AiAgentMetadata>;
|
|
32
|
-
clientConnectionStateChangeHandlers?: Array<ServiceFunctionName>;
|
|
33
|
-
aiFunctions?: Record<FunctionName, AiFunctionMetadata>;
|
|
34
|
-
openApiControllers?: Array<OpenApiController>;
|
|
35
|
-
openApiControllersMap: Record<string, Array<OpenApiController>>;
|
|
36
|
-
queues?: Record<IntegrationId, QueueMetadata>;
|
|
37
|
-
metrics?: MetricsApplicationBundleData;
|
|
38
|
-
limits?: Record<ServiceFunctionName, LimiterOptions>;
|
|
39
|
-
}
|
|
40
|
-
export interface LocalBackendData {
|
|
41
|
-
applicationBundleData: ApplicationBundleData;
|
|
42
|
-
openApiSpecStr?: string;
|
|
43
|
-
openApiSpecsMap?: Record<string, string>;
|
|
44
|
-
}
|
|
45
|
-
export interface AiFunctionMetadata {
|
|
46
|
-
serviceFunction: ServiceFunctionName;
|
|
47
|
-
description: string;
|
|
48
|
-
params: Array<AiFunctionParam>;
|
|
49
|
-
attributes?: AiFunctionAttributes;
|
|
50
|
-
}
|
|
51
|
-
export interface DatabaseMetadata {
|
|
52
|
-
collections: Record<CollectionName, CollectionMetadata>;
|
|
53
|
-
security?: Record<DatabaseActionType, Array<ServiceFunctionName>>;
|
|
54
|
-
transform?: Record<DatabaseActionType, DatabaseTransformMetadata>;
|
|
55
|
-
}
|
|
56
|
-
export interface StorageMetadata {
|
|
57
|
-
security?: Record<StorageActionType, Array<ServiceFunctionName>>;
|
|
58
|
-
}
|
|
59
|
-
export interface QueueMetadata {
|
|
60
|
-
topics: Record<TopicName, TopicMetadata>;
|
|
61
|
-
security?: Record<DatabaseActionType, Array<ServiceFunctionName>>;
|
|
62
|
-
transform?: Record<DatabaseActionType, DatabaseTransformMetadata>;
|
|
63
|
-
}
|
|
64
|
-
export interface TopicMetadata {
|
|
65
|
-
security?: Record<TopicActionType, Array<ServiceFunctionName>>;
|
|
66
|
-
}
|
|
67
|
-
export interface MetricsApplicationBundleData {
|
|
68
|
-
security: Record<MetricActionType, Array<{
|
|
69
|
-
namePrefix: string;
|
|
70
|
-
serviceFunction: ServiceFunctionName;
|
|
71
|
-
}>>;
|
|
72
|
-
}
|
|
73
|
-
export interface CollectionMetadata {
|
|
74
|
-
security?: Record<DatabaseActionType, Array<ServiceFunctionName>>;
|
|
75
|
-
transform?: Record<DatabaseActionType, DatabaseTransformMetadata>;
|
|
76
|
-
}
|
|
77
|
-
export interface DatabaseTransformMetadata {
|
|
78
|
-
serviceFunction: ServiceFunctionName;
|
|
79
|
-
}
|
|
80
|
-
export interface ExecutableMetadata {
|
|
81
|
-
serviceFunction: ServiceFunctionName;
|
|
82
|
-
}
|
|
83
|
-
export interface ApiMetadata {
|
|
84
|
-
security: Array<ServiceFunctionName>;
|
|
85
|
-
}
|
|
86
|
-
interface GraphQLMetadata {
|
|
87
|
-
security: Array<ServiceFunctionName>;
|
|
88
|
-
}
|
|
89
|
-
export interface AiAgentMetadata {
|
|
90
|
-
security: Record<'chat', Array<ServiceFunctionName>>;
|
|
91
|
-
}
|
|
92
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { AppId, EnvironmentId, SquidDeveloperId } from '../public-types/communication.public-types';
|
|
2
|
-
export type ChatId = string;
|
|
3
|
-
export interface ParsedAppId {
|
|
4
|
-
appId: AppId;
|
|
5
|
-
environmentId: EnvironmentId;
|
|
6
|
-
squidDeveloperId?: SquidDeveloperId;
|
|
7
|
-
}
|
|
8
|
-
export declare function parseAppId(appId: AppId): ParsedAppId;
|
|
9
|
-
export declare function appIdWithEnvironmentId(appId: AppId, environmentId: EnvironmentId | undefined): AppId;
|
|
10
|
-
export declare function appIdWithEnvironmentIdAndDevId(appId: AppId, environmentId: EnvironmentId | undefined, developerId: SquidDeveloperId | undefined): AppId;
|
|
11
|
-
export declare function validateEnvironment(appId: AppId): ParsedAppId;
|
|
12
|
-
export declare function verifyWithSquidDevId(appId: AppId): void;
|
|
13
|
-
export declare function omitSquidDevId(appId: AppId): AppId;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { IntegrationType } from '../public-types/integration.public-types';
|
|
2
|
-
import { ApplicationBundleData } from './bundle-data.types';
|
|
3
|
-
export declare const CONNECTOR_IDS: readonly ["essentials", "confluence", "jira", "salesforce", "servicenow", "zendesk", "mail", "slack"];
|
|
4
|
-
export type ConnectorId = (typeof CONNECTOR_IDS)[number];
|
|
5
|
-
export interface ConnectorPackageMetadata {
|
|
6
|
-
id: ConnectorId;
|
|
7
|
-
integrationTypes: Array<IntegrationType>;
|
|
8
|
-
bundleData: ApplicationBundleData;
|
|
9
|
-
version: string;
|
|
10
|
-
}
|
|
11
|
-
export declare const CONNECTOR_METADATA_JSON_FILE = "connector-metadata.json";
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { IntegrationId, SquidDocId } from '../public-types/communication.public-types';
|
|
2
|
-
import { CollectionName, DocId, SquidDocIdObj } from '../public-types/document.public-types';
|
|
3
|
-
export type FullCollectionName = string;
|
|
4
|
-
export declare const SquidPlaceholderId = "__squidId";
|
|
5
|
-
export declare function parseSquidDocId(squidDocId: SquidDocId): SquidDocIdObj;
|
|
6
|
-
export declare function getSquidDocId(squidDocIdObj: SquidDocIdObj): SquidDocId;
|
|
7
|
-
export declare function getSquidDocId(docId: DocId, collectionName: CollectionName, integrationId: IntegrationId): SquidDocId;
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import { BaseIntegrationConfig, BaseIntegrationConfigWithConfiguration, BaseIntegrationSchema } from './schemas';
|
|
2
|
-
import { IntrospectionQuery } from 'graphql';
|
|
3
|
-
import { ApiInjectionSchema, GraphQLConnectionOptions, IntegrationApiEndpoints, OpenApiDiscoveryOptions } from '../../public-types/integrations/api.public-types';
|
|
4
|
-
export interface IntegrationGraphQLSchema extends BaseIntegrationSchema {
|
|
5
|
-
introspection: IntrospectionQuery;
|
|
6
|
-
}
|
|
7
|
-
export interface IntegrationApiSchema extends BaseIntegrationSchema {
|
|
8
|
-
baseUrl: string;
|
|
9
|
-
endpoints: IntegrationApiEndpoints;
|
|
10
|
-
injectionSchema?: ApiInjectionSchema;
|
|
11
|
-
}
|
|
12
|
-
export interface BaseHttpApiIntegrationConfiguration {
|
|
13
|
-
discoveryOptions: OpenApiDiscoveryOptions;
|
|
14
|
-
}
|
|
15
|
-
export interface BaseHttpApiIntegrationConfig extends BaseIntegrationConfigWithConfiguration<BaseHttpApiIntegrationConfiguration> {
|
|
16
|
-
}
|
|
17
|
-
export interface DefaultHttpApiIntegrationConfig extends BaseHttpApiIntegrationConfig {
|
|
18
|
-
}
|
|
19
|
-
export interface BaseGraphQLIntegrationConfig extends BaseIntegrationConfig {
|
|
20
|
-
configuration: {
|
|
21
|
-
connectionOptions: GraphQLConnectionOptions;
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
export interface DefaultGraphQLIntegrationConfig extends BaseGraphQLIntegrationConfig {
|
|
25
|
-
}
|
|
26
|
-
export interface DiscoverGraphQLConnectionSchemaRequest {
|
|
27
|
-
connectionOptions: GraphQLConnectionOptions;
|
|
28
|
-
}
|
|
29
|
-
export interface DiscoverGraphQLConnectionSchemaResponse {
|
|
30
|
-
schema: IntegrationGraphQLSchema;
|
|
31
|
-
}
|
|
32
|
-
export interface DiscoverOpenApiSchemaResponse {
|
|
33
|
-
schema: IntegrationApiSchema;
|
|
34
|
-
}
|
|
35
|
-
export interface DiscoverOpenApiSchemaFromFileResponse {
|
|
36
|
-
schema: IntegrationApiSchema;
|
|
37
|
-
}
|
|
38
|
-
export interface LinearIntegrationConfig extends BaseGraphQLIntegrationConfig {
|
|
39
|
-
configuration: {
|
|
40
|
-
connectionOptions: GraphQLConnectionOptions;
|
|
41
|
-
secrets: {
|
|
42
|
-
apiKey: string;
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
export interface ConfluenceIntegrationConfig extends BaseHttpApiIntegrationConfig {
|
|
47
|
-
configuration: {
|
|
48
|
-
discoveryOptions: OpenApiDiscoveryOptions;
|
|
49
|
-
apiKey: string;
|
|
50
|
-
domain: string;
|
|
51
|
-
email: string;
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
export interface ServiceNowIntegrationConfiguration {
|
|
55
|
-
domain: string;
|
|
56
|
-
isSingleUserMode: boolean;
|
|
57
|
-
username: string;
|
|
58
|
-
passwordKey: string;
|
|
59
|
-
}
|
|
60
|
-
export interface ServiceNowIntegrationConfig extends BaseIntegrationConfigWithConfiguration<ServiceNowIntegrationConfiguration> {
|
|
61
|
-
}
|
|
62
|
-
export interface JiraIntegrationConfiguration {
|
|
63
|
-
apiKey: string;
|
|
64
|
-
domain: string;
|
|
65
|
-
email: string;
|
|
66
|
-
}
|
|
67
|
-
export interface JiraIntegrationConfig extends BaseIntegrationConfigWithConfiguration<JiraIntegrationConfiguration> {
|
|
68
|
-
}
|
|
69
|
-
export interface SalesforceCrmIntegrationConfiguration {
|
|
70
|
-
domain: string;
|
|
71
|
-
consumerKey: string;
|
|
72
|
-
consumerSecret: string;
|
|
73
|
-
}
|
|
74
|
-
export interface SalesforceCrmIntegrationConfig extends BaseIntegrationConfigWithConfiguration<SalesforceCrmIntegrationConfiguration> {
|
|
75
|
-
}
|
|
76
|
-
export interface ZendeskIntegrationConfiguration {
|
|
77
|
-
domain: string;
|
|
78
|
-
email: string;
|
|
79
|
-
apiToken: string;
|
|
80
|
-
}
|
|
81
|
-
export interface ZendeskIntegrationConfig extends BaseIntegrationConfigWithConfiguration<ZendeskIntegrationConfiguration> {
|
|
82
|
-
}
|
|
83
|
-
export interface MailIntegrationConfiguration {
|
|
84
|
-
smtpHost: string;
|
|
85
|
-
smtpPort: number;
|
|
86
|
-
smtpUsername: string;
|
|
87
|
-
smtpEncryption: 'none' | 'tls' | 'ssl';
|
|
88
|
-
smtpFromAddress: string;
|
|
89
|
-
secrets: {
|
|
90
|
-
smtpPassword: string;
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
export interface MailIntegrationConfig extends BaseIntegrationConfigWithConfiguration<MailIntegrationConfiguration> {
|
|
94
|
-
}
|
|
95
|
-
export interface SlackIntegrationConfiguration {
|
|
96
|
-
appId: string;
|
|
97
|
-
clientId: string;
|
|
98
|
-
secrets: {
|
|
99
|
-
botUserAuthToken: string;
|
|
100
|
-
clientSecret: string;
|
|
101
|
-
signingSecret: string;
|
|
102
|
-
verificationToken: string;
|
|
103
|
-
};
|
|
104
|
-
}
|
|
105
|
-
export interface SlackIntegrationConfig extends BaseIntegrationConfigWithConfiguration<SlackIntegrationConfiguration> {
|
|
106
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { BaseIntegrationConfig } from './schemas';
|
|
2
|
-
export interface Auth0IntegrationConfig extends BaseIntegrationConfig {
|
|
3
|
-
configuration: {
|
|
4
|
-
domain: string;
|
|
5
|
-
clientId: string;
|
|
6
|
-
};
|
|
7
|
-
}
|
|
8
|
-
export interface CognitoIntegrationConfig extends BaseIntegrationConfig {
|
|
9
|
-
configuration: {
|
|
10
|
-
region: string;
|
|
11
|
-
userPoolId: string;
|
|
12
|
-
appClientId: string;
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
export interface OktaIntegrationConfig extends BaseIntegrationConfig {
|
|
16
|
-
configuration: {
|
|
17
|
-
domain: string;
|
|
18
|
-
clientId: string;
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
export interface JwtRsaIntegrationConfig extends BaseIntegrationConfig {
|
|
22
|
-
configuration: {
|
|
23
|
-
jwksUri: string;
|
|
24
|
-
validations?: {
|
|
25
|
-
aud?: string;
|
|
26
|
-
iss?: string;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
export interface JwtHmacIntegrationConfig extends BaseIntegrationConfig {
|
|
31
|
-
configuration: {
|
|
32
|
-
verifyUri?: string;
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
export interface DescopeIntegrationConfig extends BaseIntegrationConfig {
|
|
36
|
-
configuration: {
|
|
37
|
-
projectId: string;
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
export interface FirebaseAuthIntegrationConfig extends BaseIntegrationConfig {
|
|
41
|
-
configuration: {
|
|
42
|
-
projectId: string;
|
|
43
|
-
};
|
|
44
|
-
}
|
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
import { BaseIntegrationConfig, BaseIntegrationConfigWithConfiguration, BaseIntegrationSchema, CommonConnectionPrivateKeyAsSecrets, ConnectionOptionsPasswordAsSecrets, ConnectionOptionsWithSecrets, IntegrationConfig, IntegrationConfigurationWithConnectionOptions } from './schemas';
|
|
2
|
-
import { CollectionName } from '../../public-types/document.public-types';
|
|
3
|
-
import { CollectionSchema } from '../../public-types/schema.public-types';
|
|
4
|
-
import { AppId } from '../../public-types/communication.public-types';
|
|
5
|
-
export interface MongoConnectionSecretOptions extends Partial<ConnectionOptionsPasswordAsSecrets> {
|
|
6
|
-
}
|
|
7
|
-
export interface MongoConnectionOptions extends ConnectionOptionsWithSecrets<MongoConnectionSecretOptions> {
|
|
8
|
-
connectionString: string;
|
|
9
|
-
user?: string;
|
|
10
|
-
replicaSet?: string;
|
|
11
|
-
ssl?: {
|
|
12
|
-
certificateFile: string;
|
|
13
|
-
validate: boolean;
|
|
14
|
-
};
|
|
15
|
-
maxPoolSize?: number;
|
|
16
|
-
minPoolSize?: number;
|
|
17
|
-
socketTimeoutMS?: number;
|
|
18
|
-
serverSelectionTimeoutMS?: number;
|
|
19
|
-
keepAlive?: boolean;
|
|
20
|
-
directConnection?: boolean;
|
|
21
|
-
}
|
|
22
|
-
export interface MySqlConnectionSecretOptions extends ConnectionOptionsPasswordAsSecrets {
|
|
23
|
-
}
|
|
24
|
-
export interface ClickHouseConnectionSecretOptions extends ConnectionOptionsPasswordAsSecrets {
|
|
25
|
-
}
|
|
26
|
-
export interface BigQueryConnectionSecretOptions extends CommonConnectionPrivateKeyAsSecrets {
|
|
27
|
-
}
|
|
28
|
-
export interface OracleConnectionSecretOptions extends ConnectionOptionsPasswordAsSecrets {
|
|
29
|
-
}
|
|
30
|
-
export interface MssqlConnectionSecretOptions extends ConnectionOptionsPasswordAsSecrets {
|
|
31
|
-
}
|
|
32
|
-
export interface PostgresConnectionSecretOptions extends ConnectionOptionsPasswordAsSecrets {
|
|
33
|
-
sslCertificate?: string;
|
|
34
|
-
}
|
|
35
|
-
export interface SapHanaConnectionSecretOptions extends ConnectionOptionsPasswordAsSecrets {
|
|
36
|
-
}
|
|
37
|
-
export interface MySqlConnectionOptions extends ConnectionOptionsWithSecrets<MySqlConnectionSecretOptions> {
|
|
38
|
-
host: string;
|
|
39
|
-
user: string;
|
|
40
|
-
database: string;
|
|
41
|
-
connectionLimit?: number;
|
|
42
|
-
sslEnabled?: boolean;
|
|
43
|
-
}
|
|
44
|
-
export interface ClickHouseConnectionOptions extends ConnectionOptionsWithSecrets<ClickHouseConnectionSecretOptions> {
|
|
45
|
-
host: string;
|
|
46
|
-
user: string;
|
|
47
|
-
database: string;
|
|
48
|
-
connectionLimit?: number;
|
|
49
|
-
sslEnabled?: boolean;
|
|
50
|
-
}
|
|
51
|
-
export interface BigQueryConnectionOptions extends ConnectionOptionsWithSecrets<BigQueryConnectionSecretOptions> {
|
|
52
|
-
projectId: string;
|
|
53
|
-
datasetId: string;
|
|
54
|
-
email: string;
|
|
55
|
-
}
|
|
56
|
-
export interface OracleConnectionOptions extends ConnectionOptionsWithSecrets<OracleConnectionSecretOptions> {
|
|
57
|
-
host: string;
|
|
58
|
-
user: string;
|
|
59
|
-
database: string;
|
|
60
|
-
connectionLimit?: number;
|
|
61
|
-
}
|
|
62
|
-
export interface MssqlConnectionOptions extends ConnectionOptionsWithSecrets<MssqlConnectionSecretOptions> {
|
|
63
|
-
host: string;
|
|
64
|
-
user: string;
|
|
65
|
-
schemas: string;
|
|
66
|
-
database: string;
|
|
67
|
-
connectionLimit?: number;
|
|
68
|
-
sslEnabled?: boolean;
|
|
69
|
-
}
|
|
70
|
-
export interface PostgresConnectionOptions extends ConnectionOptionsWithSecrets<PostgresConnectionSecretOptions> {
|
|
71
|
-
host: string;
|
|
72
|
-
user: string;
|
|
73
|
-
database: string;
|
|
74
|
-
schema?: string;
|
|
75
|
-
sslEnabled?: boolean;
|
|
76
|
-
connectionLimit?: number;
|
|
77
|
-
}
|
|
78
|
-
export interface SapHanaConnectionOptions extends ConnectionOptionsWithSecrets<SapHanaConnectionSecretOptions> {
|
|
79
|
-
host: string;
|
|
80
|
-
user: string;
|
|
81
|
-
database: string;
|
|
82
|
-
schema?: string;
|
|
83
|
-
sslEnabled?: boolean;
|
|
84
|
-
connectionLimit?: number;
|
|
85
|
-
}
|
|
86
|
-
export interface SnowflakeConnectionSecretOptions extends ConnectionOptionsPasswordAsSecrets {
|
|
87
|
-
}
|
|
88
|
-
export interface SnowflakeConnectionOptions extends ConnectionOptionsWithSecrets<SnowflakeConnectionSecretOptions> {
|
|
89
|
-
account: string;
|
|
90
|
-
username: string;
|
|
91
|
-
database: string;
|
|
92
|
-
schema: string;
|
|
93
|
-
warehouse: string;
|
|
94
|
-
role: string;
|
|
95
|
-
connectionLimit?: number;
|
|
96
|
-
}
|
|
97
|
-
type TableName = string;
|
|
98
|
-
export interface IntegrationDataSchema extends BaseIntegrationSchema {
|
|
99
|
-
collections: Record<TableName, CollectionSchema>;
|
|
100
|
-
}
|
|
101
|
-
export interface BaseDatabaseIntegrationConfig<ConfigurationType extends object> extends BaseIntegrationConfigWithConfiguration<ConfigurationType> {
|
|
102
|
-
}
|
|
103
|
-
export interface MySqlIntegrationConfiguration extends IntegrationConfigurationWithConnectionOptions<MySqlConnectionOptions> {
|
|
104
|
-
}
|
|
105
|
-
export interface ClickHouseIntegrationConfiguration extends IntegrationConfigurationWithConnectionOptions<ClickHouseConnectionOptions> {
|
|
106
|
-
}
|
|
107
|
-
export interface BigQueryIntegrationConfiguration extends IntegrationConfigurationWithConnectionOptions<BigQueryConnectionOptions> {
|
|
108
|
-
}
|
|
109
|
-
export interface OracleIntegrationConfiguration extends IntegrationConfigurationWithConnectionOptions<OracleConnectionOptions> {
|
|
110
|
-
}
|
|
111
|
-
export interface MssqlIntegrationConfiguration extends IntegrationConfigurationWithConnectionOptions<MssqlConnectionOptions> {
|
|
112
|
-
}
|
|
113
|
-
export interface PostgresIntegrationConfiguration extends IntegrationConfigurationWithConnectionOptions<PostgresConnectionOptions> {
|
|
114
|
-
}
|
|
115
|
-
export interface SapHanaIntegrationConfiguration extends IntegrationConfigurationWithConnectionOptions<SapHanaConnectionOptions> {
|
|
116
|
-
}
|
|
117
|
-
export interface MongoIntegrationConfiguration extends IntegrationConfigurationWithConnectionOptions<MongoConnectionOptions> {
|
|
118
|
-
}
|
|
119
|
-
export interface SnowflakeIntegrationConfiguration extends IntegrationConfigurationWithConnectionOptions<SnowflakeConnectionOptions> {
|
|
120
|
-
}
|
|
121
|
-
export interface MySqlIntegrationConfig extends BaseDatabaseIntegrationConfig<MySqlIntegrationConfiguration> {
|
|
122
|
-
}
|
|
123
|
-
export interface ClickHouseIntegrationConfig extends BaseDatabaseIntegrationConfig<ClickHouseIntegrationConfiguration> {
|
|
124
|
-
}
|
|
125
|
-
export interface BigQueryIntegrationConfig extends BaseDatabaseIntegrationConfig<BigQueryIntegrationConfiguration> {
|
|
126
|
-
}
|
|
127
|
-
export interface OracleIntegrationConfig extends BaseDatabaseIntegrationConfig<OracleIntegrationConfiguration> {
|
|
128
|
-
}
|
|
129
|
-
export interface MssqlIntegrationConfig extends BaseDatabaseIntegrationConfig<MssqlIntegrationConfiguration> {
|
|
130
|
-
}
|
|
131
|
-
export interface BasePostgresIntegration extends BaseDatabaseIntegrationConfig<PostgresIntegrationConfiguration> {
|
|
132
|
-
}
|
|
133
|
-
export interface PostgresIntegrationConfig extends BasePostgresIntegration {
|
|
134
|
-
}
|
|
135
|
-
export interface SapHanaIntegrationConfig extends BaseDatabaseIntegrationConfig<SapHanaIntegrationConfiguration> {
|
|
136
|
-
}
|
|
137
|
-
export interface CockroachIntegrationConfig extends BasePostgresIntegration {
|
|
138
|
-
}
|
|
139
|
-
export interface InternalIntegrationConfig extends BaseIntegrationConfig {
|
|
140
|
-
}
|
|
141
|
-
export interface MongoIntegrationConfig extends BaseDatabaseIntegrationConfig<MongoIntegrationConfiguration> {
|
|
142
|
-
}
|
|
143
|
-
export interface SnowflakeIntegrationConfig extends BaseDatabaseIntegrationConfig<SnowflakeIntegrationConfiguration> {
|
|
144
|
-
}
|
|
145
|
-
export interface CollectionReadiness {
|
|
146
|
-
hasPermissions: boolean;
|
|
147
|
-
grantPermissionsCommands: string[];
|
|
148
|
-
replicationEnabled: boolean;
|
|
149
|
-
enableReplicationCommands: string[];
|
|
150
|
-
}
|
|
151
|
-
export interface DiscoverDataConnectionSchemaCoreRequest {
|
|
152
|
-
integrationConfig: IntegrationConfig;
|
|
153
|
-
useAi: boolean;
|
|
154
|
-
collections?: string[];
|
|
155
|
-
}
|
|
156
|
-
export interface DiscoverDataConnectionSchemaRequest {
|
|
157
|
-
appId: AppId;
|
|
158
|
-
integrationConfig: BaseIntegrationConfig & {
|
|
159
|
-
configuration: unknown;
|
|
160
|
-
};
|
|
161
|
-
collections?: string[];
|
|
162
|
-
useAi?: boolean;
|
|
163
|
-
}
|
|
164
|
-
export interface DiscoverDataConnectionSchemaResponse {
|
|
165
|
-
schema: IntegrationDataSchema;
|
|
166
|
-
collectionReadiness: Record<CollectionName, CollectionReadiness>;
|
|
167
|
-
}
|
|
168
|
-
export interface TestDataConnectionResponse {
|
|
169
|
-
success: boolean;
|
|
170
|
-
errorMessage?: string;
|
|
171
|
-
}
|
|
172
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { BaseIntegrationConfig } from './schemas';
|
|
2
|
-
export interface DatadogIntegrationConfig extends BaseIntegrationConfig {
|
|
3
|
-
configuration: DatadogIntegrationConfiguration;
|
|
4
|
-
}
|
|
5
|
-
export interface DatadogIntegrationConfiguration {
|
|
6
|
-
apiKey: string;
|
|
7
|
-
appKey: string;
|
|
8
|
-
datadogRegion: DatadogRegion;
|
|
9
|
-
}
|
|
10
|
-
export type DatadogRegion = 'us1' | 'us3' | 'us5' | 'eu1' | 'us1-fed' | 'ap1';
|
|
11
|
-
export interface NewRelicIntegrationConfig extends BaseIntegrationConfig {
|
|
12
|
-
configuration: NewRelicIntegrationConfiguration;
|
|
13
|
-
}
|
|
14
|
-
export declare const datadogRegionMap: Record<DatadogRegion, string>;
|
|
15
|
-
export declare const datadogLogsUrlMap: Record<DatadogRegion, string>;
|
|
16
|
-
export type NewRelicRegion = 'worldwide' | 'eu';
|
|
17
|
-
export interface NewRelicIntegrationConfiguration {
|
|
18
|
-
apiKey: string;
|
|
19
|
-
newRelicRegion: NewRelicRegion;
|
|
20
|
-
}
|
|
21
|
-
export declare const newRelicRegionMap: Record<NewRelicRegion, string>;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { BaseIntegrationConfig } from './schemas';
|
|
2
|
-
export interface BaseQueueIntegrationConfig extends BaseIntegrationConfig {
|
|
3
|
-
}
|
|
4
|
-
export interface KafkaConnectionSecretOptions {
|
|
5
|
-
password?: string;
|
|
6
|
-
schemaRegistryPassword?: string;
|
|
7
|
-
}
|
|
8
|
-
export interface KafkaConnectionOptions {
|
|
9
|
-
secrets?: KafkaConnectionSecretOptions;
|
|
10
|
-
username?: string;
|
|
11
|
-
bootstrapServers: string;
|
|
12
|
-
schemaRegistryUrl?: string;
|
|
13
|
-
schemaRegistryUsername?: string;
|
|
14
|
-
}
|
|
15
|
-
export interface KafkaIntegrationConfiguration {
|
|
16
|
-
connectionOptions: KafkaConnectionOptions;
|
|
17
|
-
}
|
|
18
|
-
export interface KafkaIntegrationConfig extends BaseQueueIntegrationConfig {
|
|
19
|
-
configuration: KafkaIntegrationConfiguration;
|
|
20
|
-
}
|
|
21
|
-
export interface ConfluentIntegrationConfig extends BaseQueueIntegrationConfig {
|
|
22
|
-
configuration: KafkaIntegrationConfiguration;
|
|
23
|
-
}
|
|
24
|
-
export interface BuiltInQueueIntegrationConfig extends BaseQueueIntegrationConfig {
|
|
25
|
-
}
|