@squidcloud/client 1.0.166 → 1.0.168
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 +35 -16
- package/package.json +1 -1
- package/dist/internal-common/src/public-types/ai-assistant.public-types.d.ts +0 -25
- package/dist/internal-common/src/public-types/ai-chatbot.public-context.d.ts +0 -12
- package/dist/internal-common/src/public-types/ai-chatbot.public-types.d.ts +0 -31
- package/dist/internal-common/src/public-types/api-call.public-context.d.ts +0 -14
- package/dist/internal-common/src/public-types/application.public-types.d.ts +0 -149
- package/dist/internal-common/src/public-types/base-query-builder.public-types.d.ts +0 -147
- package/dist/internal-common/src/public-types/bundle-api.public-types.d.ts +0 -57
- package/dist/internal-common/src/public-types/bundle-data.public-types.d.ts +0 -8
- package/dist/internal-common/src/public-types/communication.public-types.d.ts +0 -12
- package/dist/internal-common/src/public-types/context.public-types.d.ts +0 -40
- package/dist/internal-common/src/public-types/distributed-lock.public-context.d.ts +0 -4
- package/dist/internal-common/src/public-types/document.public-types.d.ts +0 -32
- package/dist/internal-common/src/public-types/graphql.public-context.d.ts +0 -7
- package/dist/internal-common/src/public-types/graphql.public-types.d.ts +0 -9
- package/dist/internal-common/src/public-types/http-status.enum.d.ts +0 -50
- package/dist/internal-common/src/public-types/integration.public-types.d.ts +0 -61
- 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 -206
- 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 -70
- package/dist/internal-common/src/public-types/mutation.public-context.d.ts +0 -14
- package/dist/internal-common/src/public-types/mutation.public-types.d.ts +0 -53
- package/dist/internal-common/src/public-types/native-query.public-context.d.ts +0 -7
- package/dist/internal-common/src/public-types/native-query.public-types.d.ts +0 -16
- package/dist/internal-common/src/public-types/pagination.public-types.d.ts +0 -62
- package/dist/internal-common/src/public-types/query.public-context.d.ts +0 -137
- package/dist/internal-common/src/public-types/query.public-types.d.ts +0 -64
- package/dist/internal-common/src/public-types/regions.public-types.d.ts +0 -5
- package/dist/internal-common/src/public-types/schema.public-types.d.ts +0 -46
- package/dist/internal-common/src/public-types/secret.public-types.d.ts +0 -16
- package/dist/internal-common/src/public-types/serialized-query.public-types.d.ts +0 -24
- package/dist/internal-common/src/public-types/socket.public-types.d.ts +0 -5
- package/dist/internal-common/src/public-types/topic.public-context.d.ts +0 -10
- package/dist/internal-common/src/public-types/typescript.public-types.d.ts +0 -15
- package/dist/internal-common/src/public-utils/id-utils.d.ts +0 -6
- package/dist/internal-common/src/types/ai-assistant.types.d.ts +0 -1
- package/dist/internal-common/src/types/ai-chatbot.types.d.ts +0 -1
- package/dist/internal-common/src/types/api.types.d.ts +0 -2
- package/dist/internal-common/src/types/backend-function.types.d.ts +0 -1
- package/dist/internal-common/src/types/backend-run.types.d.ts +0 -2
- package/dist/internal-common/src/types/bundle-data.types.d.ts +0 -4
- package/dist/internal-common/src/types/communication.types.d.ts +0 -1
- package/dist/internal-common/src/types/document.types.d.ts +0 -1
- package/dist/internal-common/src/types/mutation.types.d.ts +0 -1
- package/dist/internal-common/src/types/openapi.types.d.ts +0 -1
- package/dist/internal-common/src/types/query.types.d.ts +0 -1
- package/dist/internal-common/src/types/secret.types.d.ts +0 -11
- package/dist/internal-common/src/types/socket.types.d.ts +0 -7
- package/dist/internal-common/src/utils/array.d.ts +0 -1
- package/dist/internal-common/src/utils/assert.d.ts +0 -1
- package/dist/internal-common/src/utils/global.utils.d.ts +0 -1
- package/dist/internal-common/src/utils/http.d.ts +0 -2
- package/dist/internal-common/src/utils/lock.manager.d.ts +0 -14
- package/dist/internal-common/src/utils/object.d.ts +0 -5
- package/dist/internal-common/src/utils/serialization.d.ts +0 -5
- package/dist/internal-common/src/utils/validation.d.ts +0 -27
- package/dist/internal-common/src/websocket.impl.d.ts +0 -21
- package/dist/node_modules/json-schema-typed/draft-2020-12.d.ts +0 -1239
- package/dist/typescript-client/src/ai-assistant-client.d.ts +0 -73
- package/dist/typescript-client/src/ai-chatbot-client.d.ts +0 -174
- package/dist/typescript-client/src/ai-chatbot-client.factory.d.ts +0 -8
- package/dist/typescript-client/src/ai.types.d.ts +0 -63
- package/dist/typescript-client/src/api.manager.d.ts +0 -11
- package/dist/typescript-client/src/auth.manager.d.ts +0 -27
- package/dist/typescript-client/src/backend-function.manager.d.ts +0 -9
- package/dist/typescript-client/src/backend-transforms.d.ts +0 -0
- package/dist/typescript-client/src/client-id.service.d.ts +0 -27
- package/dist/typescript-client/src/collection-reference.d.ts +0 -80
- package/dist/typescript-client/src/collection-reference.factory.d.ts +0 -13
- package/dist/typescript-client/src/connection-details.d.ts +0 -23
- package/dist/typescript-client/src/data.manager.d.ts +0 -175
- package/dist/typescript-client/src/destruct.manager.d.ts +0 -13
- package/dist/typescript-client/src/distributed-lock.manager.d.ts +0 -16
- package/dist/typescript-client/src/document-identity.service.d.ts +0 -12
- package/dist/typescript-client/src/document-reference.d.ts +0 -149
- package/dist/typescript-client/src/document-reference.factory.d.ts +0 -13
- package/dist/typescript-client/src/document-store.d.ts +0 -14
- package/dist/typescript-client/src/graphql-client.d.ts +0 -14
- package/dist/typescript-client/src/graphql-client.factory.d.ts +0 -11
- package/dist/typescript-client/src/index.d.ts +0 -11
- package/dist/typescript-client/src/mutation/mutation-sender.d.ts +0 -12
- package/dist/typescript-client/src/native-query-manager.d.ts +0 -7
- package/dist/typescript-client/src/public-types.d.ts +0 -37
- package/dist/typescript-client/src/public-utils.d.ts +0 -1
- package/dist/typescript-client/src/query/deserializer.d.ts +0 -3
- package/dist/typescript-client/src/query/join-query-builder.factory.d.ts +0 -161
- package/dist/typescript-client/src/query/local-query-manager.d.ts +0 -9
- package/dist/typescript-client/src/query/query-builder.factory.d.ts +0 -77
- package/dist/typescript-client/src/query/query-sender.d.ts +0 -34
- package/dist/typescript-client/src/query/query-subscription.manager.d.ts +0 -133
- package/dist/typescript-client/src/query/query.types.d.ts +0 -49
- package/dist/typescript-client/src/queue.manager.d.ts +0 -7
- package/dist/typescript-client/src/rate-limiter.d.ts +0 -32
- package/dist/typescript-client/src/rpc.manager.d.ts +0 -30
- package/dist/typescript-client/src/secret.client.d.ts +0 -23
- package/dist/typescript-client/src/socket.manager.d.ts +0 -44
- package/dist/typescript-client/src/squid.d.ts +0 -245
- package/dist/typescript-client/src/state/state.service.spec.d.ts +0 -1
- package/dist/typescript-client/src/testing/setup-tests.d.ts +0 -1
- package/dist/typescript-client/src/types.d.ts +0 -2
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
export declare enum HttpStatus {
|
|
2
|
-
CONTINUE = 100,
|
|
3
|
-
SWITCHING_PROTOCOLS = 101,
|
|
4
|
-
PROCESSING = 102,
|
|
5
|
-
EARLYHINTS = 103,
|
|
6
|
-
OK = 200,
|
|
7
|
-
CREATED = 201,
|
|
8
|
-
ACCEPTED = 202,
|
|
9
|
-
NON_AUTHORITATIVE_INFORMATION = 203,
|
|
10
|
-
NO_CONTENT = 204,
|
|
11
|
-
RESET_CONTENT = 205,
|
|
12
|
-
PARTIAL_CONTENT = 206,
|
|
13
|
-
AMBIGUOUS = 300,
|
|
14
|
-
MOVED_PERMANENTLY = 301,
|
|
15
|
-
FOUND = 302,
|
|
16
|
-
SEE_OTHER = 303,
|
|
17
|
-
NOT_MODIFIED = 304,
|
|
18
|
-
TEMPORARY_REDIRECT = 307,
|
|
19
|
-
PERMANENT_REDIRECT = 308,
|
|
20
|
-
BAD_REQUEST = 400,
|
|
21
|
-
UNAUTHORIZED = 401,
|
|
22
|
-
PAYMENT_REQUIRED = 402,
|
|
23
|
-
FORBIDDEN = 403,
|
|
24
|
-
NOT_FOUND = 404,
|
|
25
|
-
METHOD_NOT_ALLOWED = 405,
|
|
26
|
-
NOT_ACCEPTABLE = 406,
|
|
27
|
-
PROXY_AUTHENTICATION_REQUIRED = 407,
|
|
28
|
-
REQUEST_TIMEOUT = 408,
|
|
29
|
-
CONFLICT = 409,
|
|
30
|
-
GONE = 410,
|
|
31
|
-
LENGTH_REQUIRED = 411,
|
|
32
|
-
PRECONDITION_FAILED = 412,
|
|
33
|
-
PAYLOAD_TOO_LARGE = 413,
|
|
34
|
-
URI_TOO_LONG = 414,
|
|
35
|
-
UNSUPPORTED_MEDIA_TYPE = 415,
|
|
36
|
-
REQUESTED_RANGE_NOT_SATISFIABLE = 416,
|
|
37
|
-
EXPECTATION_FAILED = 417,
|
|
38
|
-
I_AM_A_TEAPOT = 418,
|
|
39
|
-
MISDIRECTED = 421,
|
|
40
|
-
UNPROCESSABLE_ENTITY = 422,
|
|
41
|
-
FAILED_DEPENDENCY = 424,
|
|
42
|
-
PRECONDITION_REQUIRED = 428,
|
|
43
|
-
TOO_MANY_REQUESTS = 429,
|
|
44
|
-
INTERNAL_SERVER_ERROR = 500,
|
|
45
|
-
NOT_IMPLEMENTED = 501,
|
|
46
|
-
BAD_GATEWAY = 502,
|
|
47
|
-
SERVICE_UNAVAILABLE = 503,
|
|
48
|
-
GATEWAY_TIMEOUT = 504,
|
|
49
|
-
HTTP_VERSION_NOT_SUPPORTED = 505
|
|
50
|
-
}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
export declare enum IntegrationCategory {
|
|
2
|
-
'database' = "database",
|
|
3
|
-
'queue' = "queue",
|
|
4
|
-
'api' = "api",
|
|
5
|
-
'observability' = "observability",
|
|
6
|
-
'crm' = "crm",
|
|
7
|
-
'auth' = "auth",
|
|
8
|
-
'ai' = "ai"
|
|
9
|
-
}
|
|
10
|
-
export declare enum IntegrationType {
|
|
11
|
-
'built_in_db' = "built_in_db",
|
|
12
|
-
'mongo' = "mongo",
|
|
13
|
-
'mysql' = "mysql",
|
|
14
|
-
'mssql' = "mssql",
|
|
15
|
-
'postgres' = "postgres",
|
|
16
|
-
'cockroach' = "cockroach",
|
|
17
|
-
'api' = "api",
|
|
18
|
-
'graphql' = "graphql",
|
|
19
|
-
'snowflake' = "snowflake",
|
|
20
|
-
'datadog' = "datadog",
|
|
21
|
-
'newrelic' = "newrelic",
|
|
22
|
-
'auth0' = "auth0",
|
|
23
|
-
'jwt_rsa' = "jwt_rsa",
|
|
24
|
-
'jwt_hmac' = "jwt_hmac",
|
|
25
|
-
'ai_chatbot' = "ai_chatbot",
|
|
26
|
-
'cognito' = "cognito",
|
|
27
|
-
'okta' = "okta",
|
|
28
|
-
'descope' = "descope",
|
|
29
|
-
'kafka' = "kafka",
|
|
30
|
-
'confluent' = "confluent",
|
|
31
|
-
'built_in_queue' = "built_in_queue",
|
|
32
|
-
'algolia' = "algolia",
|
|
33
|
-
'elastic_observability' = "elastic_observability",
|
|
34
|
-
'elastic_search' = "elastic_search",
|
|
35
|
-
'elastic_enterprise_search' = "elastic_enterprise_search",
|
|
36
|
-
'sentry' = "sentry",
|
|
37
|
-
'sap_hana' = "sap_hana",
|
|
38
|
-
'salesforce_crm' = "salesforce_crm",
|
|
39
|
-
'documentdb' = "documentdb",
|
|
40
|
-
'dynamodb' = "dynamodb",
|
|
41
|
-
'cassandra' = "cassandra",
|
|
42
|
-
'clickhouse' = "clickhouse",
|
|
43
|
-
'alloydb' = "alloydb",
|
|
44
|
-
'spanner' = "spanner",
|
|
45
|
-
'db2' = "db2",
|
|
46
|
-
'mariadb' = "mariadb",
|
|
47
|
-
'oracledb' = "oracledb",
|
|
48
|
-
'redis' = "redis",
|
|
49
|
-
'xata' = "xata",
|
|
50
|
-
'azure_sql' = "azure_sql",
|
|
51
|
-
'azure_postgresql' = "azure_postgresql",
|
|
52
|
-
'azure_cosmosdb' = "azure_cosmosdb",
|
|
53
|
-
'firestore' = "firestore",
|
|
54
|
-
'bigquery' = "bigquery",
|
|
55
|
-
'cloudsql' = "cloudsql"
|
|
56
|
-
}
|
|
57
|
-
export declare enum IntegrationSchemaType {
|
|
58
|
-
'data' = "data",
|
|
59
|
-
'api' = "api",
|
|
60
|
-
'graphql' = "graphql"
|
|
61
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { BaseIntegrationConfig } from './schemas';
|
|
2
|
-
import { AiModelName } from '../ai-chatbot.public-types';
|
|
3
|
-
import { IntegrationType } from '../integration.public-types';
|
|
4
|
-
import { IntegrationId } from '../communication.public-types';
|
|
5
|
-
export interface AiChatbotIntegrationConfig extends BaseIntegrationConfig {
|
|
6
|
-
type: IntegrationType.ai_chatbot;
|
|
7
|
-
configuration: AiChatbotConfiguration;
|
|
8
|
-
}
|
|
9
|
-
export type AiChatbotConfiguration = {
|
|
10
|
-
apiKey?: string;
|
|
11
|
-
};
|
|
12
|
-
export type AiChatbotProfileMetadata = {
|
|
13
|
-
modelName: AiModelName;
|
|
14
|
-
isPublic: boolean;
|
|
15
|
-
strictContext: boolean;
|
|
16
|
-
instructions: Record<string, string>;
|
|
17
|
-
};
|
|
18
|
-
export type AiChatbotContextMetadata = {
|
|
19
|
-
title: string;
|
|
20
|
-
text: string;
|
|
21
|
-
preview: boolean;
|
|
22
|
-
sizeBytes?: number;
|
|
23
|
-
};
|
|
24
|
-
export interface AiChatbotProfile extends AiChatbotProfileMetadata {
|
|
25
|
-
contexts: Record<string, AiChatbotContextMetadata>;
|
|
26
|
-
}
|
|
27
|
-
export interface AiChatbotProfiles {
|
|
28
|
-
profiles: Record<string, AiChatbotProfile>;
|
|
29
|
-
}
|
|
30
|
-
export interface GetAiChatbotProfilesRequest {
|
|
31
|
-
integrationId: IntegrationId;
|
|
32
|
-
}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { BaseIntegrationConfig, BaseIntegrationSchema } from './schemas';
|
|
2
|
-
import { IntegrationSchemaType, IntegrationType } from '../integration.public-types';
|
|
3
|
-
import { IntrospectionQuery } from '../graphql.public-types';
|
|
4
|
-
import { FieldName } from '../document.public-types';
|
|
5
|
-
export type HttpMethod = 'post' | 'get' | 'delete' | 'patch' | 'put';
|
|
6
|
-
export type ApiEndpointId = string;
|
|
7
|
-
export type ApiParameterLocation = 'query' | 'body' | 'header' | 'path';
|
|
8
|
-
export type ApiResponseParameterLocation = 'header' | 'body';
|
|
9
|
-
export type ApiInjectionParameterLocation = 'header' | 'query';
|
|
10
|
-
export type FieldPath = string;
|
|
11
|
-
export type IntegrationApiEndpoints = Record<ApiEndpointId, ApiEndpoint>;
|
|
12
|
-
export interface IntegrationGraphQLSchema extends BaseIntegrationSchema {
|
|
13
|
-
type: IntegrationSchemaType.graphql;
|
|
14
|
-
introspection: IntrospectionQuery;
|
|
15
|
-
}
|
|
16
|
-
export interface IntegrationApiSchema extends BaseIntegrationSchema {
|
|
17
|
-
type: IntegrationSchemaType.api;
|
|
18
|
-
baseUrl: string;
|
|
19
|
-
endpoints: IntegrationApiEndpoints;
|
|
20
|
-
injectionSchema?: ApiInjectionSchema;
|
|
21
|
-
}
|
|
22
|
-
export interface ApiRequestField {
|
|
23
|
-
location: ApiParameterLocation;
|
|
24
|
-
}
|
|
25
|
-
export interface ApiResponseField {
|
|
26
|
-
location: ApiResponseParameterLocation;
|
|
27
|
-
path?: FieldPath;
|
|
28
|
-
}
|
|
29
|
-
export type ApiInjectionFieldType = 'secret' | 'regular';
|
|
30
|
-
export interface ApiInjectionField {
|
|
31
|
-
value: string;
|
|
32
|
-
type: ApiInjectionFieldType;
|
|
33
|
-
location: ApiInjectionParameterLocation;
|
|
34
|
-
}
|
|
35
|
-
export interface GraphQLConnectionOptions {
|
|
36
|
-
baseUrl: string;
|
|
37
|
-
injectionSchema?: ApiInjectionSchema;
|
|
38
|
-
}
|
|
39
|
-
export type ApiInjectionSchema = Record<FieldName, ApiInjectionField>;
|
|
40
|
-
export interface OpenApiDiscoveryOptions {
|
|
41
|
-
openApiSpecUrl: string;
|
|
42
|
-
}
|
|
43
|
-
export interface ApiEndpoint {
|
|
44
|
-
relativePath: string;
|
|
45
|
-
method: HttpMethod;
|
|
46
|
-
requestSchema?: Record<FieldName, ApiRequestField>;
|
|
47
|
-
responseSchema?: Record<FieldPath, ApiResponseField>;
|
|
48
|
-
injectionSchema?: ApiInjectionSchema;
|
|
49
|
-
}
|
|
50
|
-
export interface HttpApiIntegrationConfig extends BaseIntegrationConfig {
|
|
51
|
-
type: IntegrationType.api;
|
|
52
|
-
configuration?: {
|
|
53
|
-
discoveryOptions: OpenApiDiscoveryOptions;
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
export interface GraphQLIntegrationConfig extends BaseIntegrationConfig {
|
|
57
|
-
type: IntegrationType.graphql;
|
|
58
|
-
configuration: {
|
|
59
|
-
connectionOptions: GraphQLConnectionOptions;
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
export interface DiscoverGraphQLConnectionSchemaRequest {
|
|
63
|
-
integrationType: IntegrationType.graphql;
|
|
64
|
-
connectionOptions: GraphQLConnectionOptions;
|
|
65
|
-
}
|
|
66
|
-
export interface DiscoverOpenApiSchemaRequest {
|
|
67
|
-
integrationType: IntegrationType.api;
|
|
68
|
-
discoveryOptions: OpenApiDiscoveryOptions;
|
|
69
|
-
}
|
|
70
|
-
export interface TestGraphQLDataConnectionRequest {
|
|
71
|
-
type: IntegrationType.graphql;
|
|
72
|
-
configuration: {
|
|
73
|
-
connectionOptions: GraphQLConnectionOptions;
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
export interface DiscoverGraphQLConnectionSchemaResponse {
|
|
77
|
-
schema: IntegrationGraphQLSchema;
|
|
78
|
-
}
|
|
79
|
-
export interface DiscoverOpenApiSchemaResponse {
|
|
80
|
-
schema: IntegrationApiSchema;
|
|
81
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { BaseIntegrationConfig } from './schemas';
|
|
2
|
-
import { IntegrationType } from '../integration.public-types';
|
|
3
|
-
export interface Auth0IntegrationConfig extends BaseIntegrationConfig {
|
|
4
|
-
type: IntegrationType.auth0;
|
|
5
|
-
configuration: {
|
|
6
|
-
/** Auth0 domain. Used to build JWKS URL (https://$domain/.well-known/jwks.json) to check the JWT token signature.*/
|
|
7
|
-
domain: string;
|
|
8
|
-
/**
|
|
9
|
-
* The Auth0 audience is a parameter that ensures the JWT token is intended for the specific backend being accessed.
|
|
10
|
-
*
|
|
11
|
-
* Note: the audience for the web-app auth token is equal to the Auth0 web client id: it means that the web app
|
|
12
|
-
* client is a target audience for the JWT token. Such JWT tokens (ID tokens) should not be sent to the backend:
|
|
13
|
-
* backend calls should use another kind of JWT tokens (access tokens) issued by Auth0 for the backends.
|
|
14
|
-
*/
|
|
15
|
-
clientId: string;
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
export interface CognitoIntegrationConfig extends BaseIntegrationConfig {
|
|
19
|
-
type: IntegrationType.cognito;
|
|
20
|
-
configuration: {
|
|
21
|
-
region: string;
|
|
22
|
-
userPoolId: string;
|
|
23
|
-
appClientId: string;
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
export interface OktaIntegrationConfig extends BaseIntegrationConfig {
|
|
27
|
-
type: IntegrationType.okta;
|
|
28
|
-
configuration: {
|
|
29
|
-
domain: string;
|
|
30
|
-
clientId: string;
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
export interface JwtRsaIntegrationConfig extends BaseIntegrationConfig {
|
|
34
|
-
type: IntegrationType.jwt_rsa;
|
|
35
|
-
configuration: {
|
|
36
|
-
jwksUri: string;
|
|
37
|
-
validations?: {
|
|
38
|
-
aud?: string;
|
|
39
|
-
iss?: string;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
export interface JwtHmacIntegrationConfig extends BaseIntegrationConfig {
|
|
44
|
-
type: IntegrationType.jwt_hmac;
|
|
45
|
-
configuration: {
|
|
46
|
-
verifyUri?: string;
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
export interface DescopeIntegrationConfig extends BaseIntegrationConfig {
|
|
50
|
-
type: IntegrationType.descope;
|
|
51
|
-
configuration: {
|
|
52
|
-
projectId: string;
|
|
53
|
-
};
|
|
54
|
-
}
|
|
@@ -1,206 +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 BigQueryConnectionSecretOptions {
|
|
28
|
-
privateKey: string;
|
|
29
|
-
}
|
|
30
|
-
export interface OracleConnectionSecretOptions {
|
|
31
|
-
password: string;
|
|
32
|
-
}
|
|
33
|
-
export interface MssqlConnectionSecretOptions {
|
|
34
|
-
password: string;
|
|
35
|
-
}
|
|
36
|
-
export interface PostgresConnectionSecretOptions {
|
|
37
|
-
password: string;
|
|
38
|
-
sslCertificate?: string;
|
|
39
|
-
}
|
|
40
|
-
export interface MySqlConnectionOptions {
|
|
41
|
-
secrets: MySqlConnectionSecretOptions;
|
|
42
|
-
host: string;
|
|
43
|
-
user: string;
|
|
44
|
-
database: string;
|
|
45
|
-
connectionLimit?: number;
|
|
46
|
-
sslEnabled?: boolean;
|
|
47
|
-
}
|
|
48
|
-
export interface BigQueryConnectionOptions {
|
|
49
|
-
secrets: BigQueryConnectionSecretOptions;
|
|
50
|
-
projectId: string;
|
|
51
|
-
datasetId: string;
|
|
52
|
-
email: string;
|
|
53
|
-
}
|
|
54
|
-
export interface OracleConnectionOptions {
|
|
55
|
-
secrets: OracleConnectionSecretOptions;
|
|
56
|
-
host: string;
|
|
57
|
-
user: string;
|
|
58
|
-
database: string;
|
|
59
|
-
connectionLimit?: number;
|
|
60
|
-
}
|
|
61
|
-
export interface MssqlConnectionOptions {
|
|
62
|
-
secrets: MssqlConnectionSecretOptions;
|
|
63
|
-
host: string;
|
|
64
|
-
user: string;
|
|
65
|
-
schemas: string;
|
|
66
|
-
database: string;
|
|
67
|
-
connectionLimit?: number;
|
|
68
|
-
sslEnabled?: boolean;
|
|
69
|
-
}
|
|
70
|
-
export interface PostgresConnectionOptions {
|
|
71
|
-
host: string;
|
|
72
|
-
user: string;
|
|
73
|
-
database: string;
|
|
74
|
-
schema?: string;
|
|
75
|
-
sslEnabled?: boolean;
|
|
76
|
-
secrets: PostgresConnectionSecretOptions;
|
|
77
|
-
}
|
|
78
|
-
export interface SnowflakeConnectionSecretOptions {
|
|
79
|
-
password: string;
|
|
80
|
-
}
|
|
81
|
-
export interface SnowflakeConnectionOptions {
|
|
82
|
-
secrets: SnowflakeConnectionSecretOptions;
|
|
83
|
-
account: string;
|
|
84
|
-
username: string;
|
|
85
|
-
database: string;
|
|
86
|
-
schema: string;
|
|
87
|
-
warehouse: string;
|
|
88
|
-
role: string;
|
|
89
|
-
}
|
|
90
|
-
type TableName = string;
|
|
91
|
-
export interface IntegrationDataSchema extends BaseIntegrationSchema {
|
|
92
|
-
type: IntegrationSchemaType.data;
|
|
93
|
-
collections: Record<TableName, CollectionSchema>;
|
|
94
|
-
}
|
|
95
|
-
export interface BaseDatabaseIntegrationConfig extends BaseIntegrationConfig {
|
|
96
|
-
type: DatabaseIntegrationType;
|
|
97
|
-
}
|
|
98
|
-
export interface MySqlIntegrationConfiguration {
|
|
99
|
-
connectionOptions: MySqlConnectionOptions;
|
|
100
|
-
}
|
|
101
|
-
export interface BigQueryIntegrationConfiguration {
|
|
102
|
-
connectionOptions: BigQueryConnectionOptions;
|
|
103
|
-
}
|
|
104
|
-
export interface OracleIntegrationConfiguration {
|
|
105
|
-
connectionOptions: OracleConnectionOptions;
|
|
106
|
-
}
|
|
107
|
-
export interface MssqlIntegrationConfiguration {
|
|
108
|
-
connectionOptions: MssqlConnectionOptions;
|
|
109
|
-
}
|
|
110
|
-
export interface PostgresIntegrationConfiguration {
|
|
111
|
-
connectionOptions: PostgresConnectionOptions;
|
|
112
|
-
}
|
|
113
|
-
export interface MongoIntegrationConfiguration {
|
|
114
|
-
connectionOptions: MongoConnectionOptions;
|
|
115
|
-
}
|
|
116
|
-
export interface SnowflakeIntegrationConfiguration {
|
|
117
|
-
connectionOptions: SnowflakeConnectionOptions;
|
|
118
|
-
}
|
|
119
|
-
export interface MySqlIntegrationConfig extends BaseDatabaseIntegrationConfig {
|
|
120
|
-
type: IntegrationType.mysql;
|
|
121
|
-
configuration: MySqlIntegrationConfiguration;
|
|
122
|
-
}
|
|
123
|
-
export interface BigQueryIntegrationConfig extends BaseDatabaseIntegrationConfig {
|
|
124
|
-
type: IntegrationType.bigquery;
|
|
125
|
-
configuration: BigQueryIntegrationConfiguration;
|
|
126
|
-
}
|
|
127
|
-
export interface OracleIntegrationConfig extends BaseDatabaseIntegrationConfig {
|
|
128
|
-
type: IntegrationType.oracledb;
|
|
129
|
-
configuration: OracleIntegrationConfiguration;
|
|
130
|
-
}
|
|
131
|
-
export interface MssqlIntegrationConfig extends BaseDatabaseIntegrationConfig {
|
|
132
|
-
type: IntegrationType.mssql;
|
|
133
|
-
configuration: MssqlIntegrationConfiguration;
|
|
134
|
-
}
|
|
135
|
-
export interface BasePostgresIntegration extends BaseDatabaseIntegrationConfig {
|
|
136
|
-
type: IntegrationType.postgres | IntegrationType.cockroach;
|
|
137
|
-
configuration: PostgresIntegrationConfiguration;
|
|
138
|
-
}
|
|
139
|
-
export interface PostgresIntegrationConfig extends BasePostgresIntegration {
|
|
140
|
-
type: IntegrationType.postgres;
|
|
141
|
-
}
|
|
142
|
-
export interface CockroachIntegrationConfig extends BasePostgresIntegration {
|
|
143
|
-
type: IntegrationType.cockroach;
|
|
144
|
-
}
|
|
145
|
-
export interface InternalIntegrationConfig extends BaseDatabaseIntegrationConfig {
|
|
146
|
-
type: IntegrationType.built_in_db;
|
|
147
|
-
}
|
|
148
|
-
export interface MongoIntegrationConfig extends BaseDatabaseIntegrationConfig {
|
|
149
|
-
type: IntegrationType.mongo;
|
|
150
|
-
configuration: MongoIntegrationConfiguration;
|
|
151
|
-
}
|
|
152
|
-
export interface SnowflakeIntegrationConfig extends BaseDatabaseIntegrationConfig {
|
|
153
|
-
type: IntegrationType.snowflake;
|
|
154
|
-
configuration: SnowflakeIntegrationConfiguration;
|
|
155
|
-
}
|
|
156
|
-
export interface CollectionReadiness {
|
|
157
|
-
hasPermissions: boolean;
|
|
158
|
-
grantPermissionsCommands: string[];
|
|
159
|
-
replicationEnabled: boolean;
|
|
160
|
-
enableReplicationCommands: string[];
|
|
161
|
-
}
|
|
162
|
-
export interface DiscoverDataConnectionSchemaResponse {
|
|
163
|
-
schema: IntegrationDataSchema;
|
|
164
|
-
collectionReadiness: Record<CollectionName, CollectionReadiness>;
|
|
165
|
-
}
|
|
166
|
-
interface DiscoverMongoDataConnectionSchemaRequest {
|
|
167
|
-
integrationType: IntegrationType.mongo;
|
|
168
|
-
connectionOptions: MongoConnectionOptions;
|
|
169
|
-
}
|
|
170
|
-
interface DiscoverInternalDataConnectionSchemaRequest {
|
|
171
|
-
integrationType: IntegrationType.built_in_db;
|
|
172
|
-
}
|
|
173
|
-
interface DiscoverMysqlDataConnectionSchemaRequest {
|
|
174
|
-
integrationType: IntegrationType.mysql;
|
|
175
|
-
connectionOptions: MySqlConnectionOptions;
|
|
176
|
-
}
|
|
177
|
-
interface DiscoverBigQueryDataConnectionSchemaRequest {
|
|
178
|
-
integrationType: IntegrationType.bigquery;
|
|
179
|
-
connectionOptions: BigQueryConnectionOptions;
|
|
180
|
-
}
|
|
181
|
-
interface DiscoverOracleDataConnectionSchemaRequest {
|
|
182
|
-
integrationType: IntegrationType.oracledb;
|
|
183
|
-
connectionOptions: OracleConnectionOptions;
|
|
184
|
-
}
|
|
185
|
-
interface DiscoverMssqlDataConnectionSchemaRequest {
|
|
186
|
-
integrationType: IntegrationType.mssql;
|
|
187
|
-
connectionOptions: MssqlConnectionOptions;
|
|
188
|
-
}
|
|
189
|
-
interface DiscoverPostgresDataConnectionSchemaRequest {
|
|
190
|
-
integrationType: IntegrationType.postgres;
|
|
191
|
-
connectionOptions: PostgresConnectionOptions;
|
|
192
|
-
}
|
|
193
|
-
interface DiscoverSnowflakeDataConnectionSchemaRequest {
|
|
194
|
-
integrationType: IntegrationType.snowflake;
|
|
195
|
-
connectionOptions: SnowflakeConnectionOptions;
|
|
196
|
-
}
|
|
197
|
-
interface DiscoverCockroachDataConnectionSchemaRequest {
|
|
198
|
-
integrationType: IntegrationType.cockroach;
|
|
199
|
-
connectionOptions: PostgresConnectionOptions;
|
|
200
|
-
}
|
|
201
|
-
export interface TestDataConnectionResponse {
|
|
202
|
-
success: boolean;
|
|
203
|
-
errorMessage?: string;
|
|
204
|
-
}
|
|
205
|
-
export type DiscoverDataConnectionSchemaRequest = DiscoverMongoDataConnectionSchemaRequest | DiscoverInternalDataConnectionSchemaRequest | DiscoverMysqlDataConnectionSchemaRequest | DiscoverBigQueryDataConnectionSchemaRequest | DiscoverOracleDataConnectionSchemaRequest | DiscoverMssqlDataConnectionSchemaRequest | DiscoverCockroachDataConnectionSchemaRequest | DiscoverPostgresDataConnectionSchemaRequest | DiscoverSnowflakeDataConnectionSchemaRequest;
|
|
206
|
-
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,70 +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, 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.bigquery]: BigQueryIntegrationConfig;
|
|
14
|
-
[IntegrationType.oracledb]: OracleIntegrationConfig;
|
|
15
|
-
[IntegrationType.mssql]: MssqlIntegrationConfig;
|
|
16
|
-
[IntegrationType.postgres]: PostgresIntegrationConfig;
|
|
17
|
-
[IntegrationType.cockroach]: CockroachIntegrationConfig;
|
|
18
|
-
[IntegrationType.snowflake]: SnowflakeIntegrationConfig;
|
|
19
|
-
[IntegrationType.api]: HttpApiIntegrationConfig;
|
|
20
|
-
[IntegrationType.graphql]: GraphQLIntegrationConfig;
|
|
21
|
-
[IntegrationType.datadog]: DatadogIntegrationConfig;
|
|
22
|
-
[IntegrationType.newrelic]: NewRelicIntegrationConfig;
|
|
23
|
-
[IntegrationType.auth0]: Auth0IntegrationConfig;
|
|
24
|
-
[IntegrationType.jwt_rsa]: JwtRsaIntegrationConfig;
|
|
25
|
-
[IntegrationType.jwt_hmac]: JwtHmacIntegrationConfig;
|
|
26
|
-
[IntegrationType.ai_chatbot]: AiChatbotIntegrationConfig;
|
|
27
|
-
[IntegrationType.cognito]: CognitoIntegrationConfig;
|
|
28
|
-
[IntegrationType.okta]: OktaIntegrationConfig;
|
|
29
|
-
[IntegrationType.kafka]: KafkaIntegrationConfig;
|
|
30
|
-
[IntegrationType.confluent]: ConfluentIntegrationConfig;
|
|
31
|
-
[IntegrationType.built_in_queue]: BuiltInQueueIntegrationConfig;
|
|
32
|
-
[IntegrationType.descope]: DescopeIntegrationConfig;
|
|
33
|
-
}
|
|
34
|
-
export interface IntegrationSchemaTypes {
|
|
35
|
-
[IntegrationType.built_in_db]: IntegrationDataSchema;
|
|
36
|
-
[IntegrationType.mongo]: IntegrationDataSchema;
|
|
37
|
-
[IntegrationType.mysql]: IntegrationDataSchema;
|
|
38
|
-
[IntegrationType.oracledb]: IntegrationDataSchema;
|
|
39
|
-
[IntegrationType.bigquery]: IntegrationDataSchema;
|
|
40
|
-
[IntegrationType.mssql]: IntegrationDataSchema;
|
|
41
|
-
[IntegrationType.postgres]: IntegrationDataSchema;
|
|
42
|
-
[IntegrationType.cockroach]: IntegrationDataSchema;
|
|
43
|
-
[IntegrationType.snowflake]: IntegrationDataSchema;
|
|
44
|
-
[IntegrationType.api]: IntegrationApiSchema;
|
|
45
|
-
[IntegrationType.graphql]: IntegrationGraphQLSchema;
|
|
46
|
-
}
|
|
47
|
-
export type IntegrationTypeWithConfig = keyof IntegrationConfigTypes;
|
|
48
|
-
export type IntegrationSchemaKeys = keyof IntegrationSchemaTypes;
|
|
49
|
-
export type IntegrationConfig = IntegrationConfigTypes[IntegrationTypeWithConfig];
|
|
50
|
-
export type IntegrationSchema = IntegrationSchemaTypes[IntegrationSchemaKeys];
|
|
51
|
-
export declare const DatabaseIntegrationTypes: readonly [IntegrationType.built_in_db, IntegrationType.mongo, IntegrationType.mysql, IntegrationType.bigquery, IntegrationType.mssql, IntegrationType.postgres, IntegrationType.cockroach, IntegrationType.snowflake, IntegrationType.oracledb];
|
|
52
|
-
export type DatabaseIntegrationType = (typeof DatabaseIntegrationTypes)[number];
|
|
53
|
-
export type DatabaseIntegrationConfig = IntegrationConfigTypes[DatabaseIntegrationType];
|
|
54
|
-
export declare const AuthIntegrationTypes: readonly [IntegrationType.auth0, IntegrationType.jwt_rsa, IntegrationType.jwt_hmac, IntegrationType.cognito, IntegrationType.okta, IntegrationType.descope];
|
|
55
|
-
export declare const QueueIntegrationTypes: readonly [IntegrationType.built_in_queue, IntegrationType.kafka, IntegrationType.confluent];
|
|
56
|
-
export type AuthIntegrationType = (typeof AuthIntegrationTypes)[number];
|
|
57
|
-
export type AuthIntegrationConfig = IntegrationConfigTypes[AuthIntegrationType];
|
|
58
|
-
export declare function isDataIntegrationType(type: unknown): type is DatabaseIntegrationType;
|
|
59
|
-
export declare function isDataIntegration(integration: unknown): integration is BaseDatabaseIntegrationConfig;
|
|
60
|
-
export declare function isAuthIntegrationType(type: unknown): type is AuthIntegrationType;
|
|
61
|
-
export declare function isAuthIntegration(integration: unknown): integration is AuthIntegrationConfig;
|
|
62
|
-
export interface BaseIntegrationConfig {
|
|
63
|
-
id: IntegrationId;
|
|
64
|
-
type: IntegrationTypeWithConfig;
|
|
65
|
-
creationDate?: Date;
|
|
66
|
-
updateDate?: Date;
|
|
67
|
-
}
|
|
68
|
-
export interface BaseIntegrationSchema {
|
|
69
|
-
type: IntegrationSchemaType;
|
|
70
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Paths } from './typescript.public-types';
|
|
2
|
-
import { BeforeAndAfterDocs } from './document.public-types';
|
|
3
|
-
import { Mutation, MutationType } from './mutation.public-types';
|
|
4
|
-
/** The mutation context that will be provided to the security function. */
|
|
5
|
-
export declare class MutationContext<T = any> {
|
|
6
|
-
readonly mutation: Mutation<T>;
|
|
7
|
-
readonly beforeAndAfterDocs: BeforeAndAfterDocs<T>;
|
|
8
|
-
readonly serverTimeStamp: Date;
|
|
9
|
-
getMutationType(): MutationType;
|
|
10
|
-
get before(): T | undefined;
|
|
11
|
-
get after(): T | undefined;
|
|
12
|
-
/** Returns true if the mutation affects the provided path. */
|
|
13
|
-
affectsPath(path: Paths<T>): boolean;
|
|
14
|
-
}
|